Class: Aws::EC2::Types::ModifyVolumeRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::ModifyVolumeRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
When making an API call, you may pass ModifyVolumeRequest data as a hash:
{
dry_run: false,
volume_id: "String", # required
size: 1,
volume_type: "standard", # accepts standard, io1, gp2, sc1, st1
iops: 1,
}
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
Target IOPS rate of the volume to be modified.
-
#size ⇒ Integer
Target size in GiB of the volume to be modified.
- #volume_id ⇒ String
-
#volume_type ⇒ String
Target EBS volume type of the volume to be modified.
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`.
16896 16897 16898 16899 16900 16901 16902 16903 |
# File 'lib/aws-sdk-ec2/types.rb', line 16896 class ModifyVolumeRequest < Struct.new( :dry_run, :volume_id, :size, :volume_type, :iops) include Aws::Structure end |
#iops ⇒ Integer
Target IOPS rate of the volume to be modified.
Only valid for Provisioned IOPS SSD (‘io1`) volumes. For more information about `io1` IOPS configuration, see [docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops][1].
Default: If no IOPS value is specified, the existing value is retained.
[1]: docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops
16896 16897 16898 16899 16900 16901 16902 16903 |
# File 'lib/aws-sdk-ec2/types.rb', line 16896 class ModifyVolumeRequest < Struct.new( :dry_run, :volume_id, :size, :volume_type, :iops) include Aws::Structure end |
#size ⇒ Integer
Target size in GiB of the volume to be modified. Target volume size must be greater than or equal to than the existing size of the volume. For information about available EBS volume sizes, see [docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html][1].
Default: If no size is specified, the existing size is retained.
[1]: docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html
16896 16897 16898 16899 16900 16901 16902 16903 |
# File 'lib/aws-sdk-ec2/types.rb', line 16896 class ModifyVolumeRequest < Struct.new( :dry_run, :volume_id, :size, :volume_type, :iops) include Aws::Structure end |
#volume_id ⇒ String
16896 16897 16898 16899 16900 16901 16902 16903 |
# File 'lib/aws-sdk-ec2/types.rb', line 16896 class ModifyVolumeRequest < Struct.new( :dry_run, :volume_id, :size, :volume_type, :iops) include Aws::Structure end |
#volume_type ⇒ String
Target EBS volume type of the volume to be modified
The API does not support modifications for volume type ‘standard`. You also cannot change the type of a volume to `standard`.
Default: If no type is specified, the existing type is retained.
16896 16897 16898 16899 16900 16901 16902 16903 |
# File 'lib/aws-sdk-ec2/types.rb', line 16896 class ModifyVolumeRequest < Struct.new( :dry_run, :volume_id, :size, :volume_type, :iops) include Aws::Structure end |