Class: Aws::EC2::Types::ModifyVolumeRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::ModifyVolumeRequest
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
#iops ⇒ Integer
The target IOPS rate of the volume.
-
#multi_attach_enabled ⇒ Boolean
Specifies whether to enable Amazon EBS Multi-Attach.
-
#multi_availability_zone_configuration ⇒ Types::MultiAvailabilityZoneVolumeConfigurationModifyRequest
The Multi-Availability Zone configuration for the volume.
-
#size ⇒ Integer
The target size of the volume, in GiB.
-
#throughput ⇒ Integer
The target throughput of the volume, in MiB/s.
-
#trim_on_attach ⇒ String
Specifies whether the volume reports TRIM support to the operating system when the volume is attached to an EC2 instance.
-
#volume_id ⇒ String
The ID of the volume.
-
#volume_type ⇒ String
The target EBS volume type of the volume.
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.
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 IOPSgp3a: 1,000 - 80,000 IOPSio1: 100 - 64,000 IOPSio2: 100 - 256,000 IOPSio2a: 100 - 256,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.
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.
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 GiBgp3: 1 - 65,536 GiBgp3a: 1 - 65,536 GiBio1: 4 - 16,384 GiBio2: 4 - 65,536 GiBio2a: 4 - 65,536 GiBst1andsc1: 125 - 16,384 GiBstandard: 1 - 1024 GiB
Default: The existing size is retained.
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.
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.
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.
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.
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 |