Class: Aws::EC2::Types::ModifyVolumeRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#dry_run ⇒ Boolean

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Returns:

  • (Boolean)


74935
74936
74937
74938
74939
74940
74941
74942
74943
74944
74945
74946
74947
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 74935

class ModifyVolumeRequest < Struct.new(
  :dry_run,
  :volume_id,
  :size,
  :volume_type,
  :iops,
  :throughput,
  :multi_attach_enabled,
  :multi_availability_zone_configuration,
  :trim_on_attach)
  SENSITIVE = []
  include Aws::Structure
end

#iops ⇒ Integer

The target IOPS rate of the volume. This parameter is valid only for gp3, gp3a, io1, io2, and io2a volumes.

The following are the supported values for each volume type:

  • gp3: 3,000 - 80,000 IOPS

  • gp3a: 1,000 - 80,000 IOPS

  • io1: 100 - 64,000 IOPS

  • io2: 100 - 256,000 IOPS

  • io2a: 100 - 256,000 IOPS

Instances built on the Nitro System can support up to 256,000 IOPS. Other instances can support up to 32,000 IOPS.

Default: The existing value is retained if you keep the same volume type. If you change the volume type to io1, io2, io2a, gp3, or gp3a, the default is 3,000.

Returns:

  • (Integer)


74935
74936
74937
74938
74939
74940
74941
74942
74943
74944
74945
74946
74947
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 74935

class ModifyVolumeRequest < Struct.new(
  :dry_run,
  :volume_id,
  :size,
  :volume_type,
  :iops,
  :throughput,
  :multi_attach_enabled,
  :multi_availability_zone_configuration,
  :trim_on_attach)
  SENSITIVE = []
  include Aws::Structure
end

#multi_attach_enabled ⇒ Boolean

Specifies whether to enable Amazon EBS Multi-Attach. If you enable Multi-Attach, you can attach the volume to up to 16 Nitro-based instances in the same Availability Zone. This parameter is supported with io1, io2, and io2a volumes only. For more information, see Amazon EBS Multi-Attach in the Amazon EBS User Guide.

Returns:

  • (Boolean)


74935
74936
74937
74938
74939
74940
74941
74942
74943
74944
74945
74946
74947
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 74935

class ModifyVolumeRequest < Struct.new(
  :dry_run,
  :volume_id,
  :size,
  :volume_type,
  :iops,
  :throughput,
  :multi_attach_enabled,
  :multi_availability_zone_configuration,
  :trim_on_attach)
  SENSITIVE = []
  include Aws::Structure
end

#multi_availability_zone_configuration ⇒ Types::MultiAvailabilityZoneVolumeConfigurationModifyRequest

The Multi-Availability Zone configuration for the volume. To move the standby replica to a different Availability Zone, specify the new standby Availability Zone in StandbyAvailabilityZones.



74935
74936
74937
74938
74939
74940
74941
74942
74943
74944
74945
74946
74947
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 74935

class ModifyVolumeRequest < Struct.new(
  :dry_run,
  :volume_id,
  :size,
  :volume_type,
  :iops,
  :throughput,
  :multi_attach_enabled,
  :multi_availability_zone_configuration,
  :trim_on_attach)
  SENSITIVE = []
  include Aws::Structure
end

#size ⇒ Integer

The target size of the volume, in GiB. The target volume size must be greater than or equal to the existing size of the volume.

The following are the supported volumes sizes for each volume type:

  • gp2: 1 - 16,384 GiB

  • gp3: 1 - 65,536 GiB

  • gp3a: 1 - 65,536 GiB

  • io1: 4 - 16,384 GiB

  • io2: 4 - 65,536 GiB

  • io2a: 4 - 65,536 GiB

  • st1 and sc1: 125 - 16,384 GiB

  • standard: 1 - 1024 GiB

Default: The existing size is retained.

Returns:

  • (Integer)


74935
74936
74937
74938
74939
74940
74941
74942
74943
74944
74945
74946
74947
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 74935

class ModifyVolumeRequest < Struct.new(
  :dry_run,
  :volume_id,
  :size,
  :volume_type,
  :iops,
  :throughput,
  :multi_attach_enabled,
  :multi_availability_zone_configuration,
  :trim_on_attach)
  SENSITIVE = []
  include Aws::Structure
end

#throughput ⇒ Integer

The target throughput of the volume, in MiB/s. This parameter is valid only for gp3 and gp3a volumes. The maximum value is 2,000.

Default: The existing value is retained if the source and target volume type is gp3 or gp3a. Otherwise, the default value is 125.

Valid Range: Minimum value of 125. Maximum value of 2,000.

Returns:

  • (Integer)


74935
74936
74937
74938
74939
74940
74941
74942
74943
74944
74945
74946
74947
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 74935

class ModifyVolumeRequest < Struct.new(
  :dry_run,
  :volume_id,
  :size,
  :volume_type,
  :iops,
  :throughput,
  :multi_attach_enabled,
  :multi_availability_zone_configuration,
  :trim_on_attach)
  SENSITIVE = []
  include Aws::Structure
end

#trim_on_attach ⇒ String

Specifies whether the volume reports TRIM support to the operating system when the volume is attached to an EC2 instance. Amazon EBS applies this intent only when the volume attaches to an EC2 instance, and TRIM support on the volume stays the same for the life of the attachment. To check whether an attached volume is reporting TRIM support, use TrimState in the attachments of the volume using DescribeVolumes. Volumes created from a snapshot don't inherit the source volume's setting. For more information, see Amazon EBS TRIM in the Amazon EBS User Guide.

If you use ModifyVolume to change this setting, you must detach and reattach the volume to the EC2 instance.

Valid values:

  • enabled: The volume reports TRIM support to the operating system.

  • disabled: The volume does not report TRIM support to the operating system.

Returns:

  • (String)


74935
74936
74937
74938
74939
74940
74941
74942
74943
74944
74945
74946
74947
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 74935

class ModifyVolumeRequest < Struct.new(
  :dry_run,
  :volume_id,
  :size,
  :volume_type,
  :iops,
  :throughput,
  :multi_attach_enabled,
  :multi_availability_zone_configuration,
  :trim_on_attach)
  SENSITIVE = []
  include Aws::Structure
end

#volume_id ⇒ String

The ID of the volume.

Returns:

  • (String)


74935
74936
74937
74938
74939
74940
74941
74942
74943
74944
74945
74946
74947
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 74935

class ModifyVolumeRequest < Struct.new(
  :dry_run,
  :volume_id,
  :size,
  :volume_type,
  :iops,
  :throughput,
  :multi_attach_enabled,
  :multi_availability_zone_configuration,
  :trim_on_attach)
  SENSITIVE = []
  include Aws::Structure
end

#volume_type ⇒ String

The target EBS volume type of the volume. For more information, see Amazon EBS volume types in the Amazon EBS User Guide.

Default: The existing type is retained.

Returns:

  • (String)


74935
74936
74937
74938
74939
74940
74941
74942
74943
74944
74945
74946
74947
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 74935

class ModifyVolumeRequest < Struct.new(
  :dry_run,
  :volume_id,
  :size,
  :volume_type,
  :iops,
  :throughput,
  :multi_attach_enabled,
  :multi_availability_zone_configuration,
  :trim_on_attach)
  SENSITIVE = []
  include Aws::Structure
end