Class: Aws::EC2::Types::CreateReplaceRootVolumeTaskRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::CreateReplaceRootVolumeTaskRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#client_token ⇒ String
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
-
#delete_replaced_root_volume ⇒ Boolean
Indicates whether to automatically delete the original root volume after the root volume replacement task completes.
-
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
#image_id ⇒ String
The ID of the AMI to use to restore the root volume.
-
#instance_id ⇒ String
The ID of the instance for which to replace the root volume.
-
#snapshot_id ⇒ String
The ID of the snapshot from which to restore the replacement root volume.
-
#tag_specifications ⇒ Array<Types::TagSpecification>
The tags to apply to the root volume replacement task.
Instance Attribute Details
#client_token ⇒ String
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency. For more information, see [Ensuring idempotency].
**A suitable default value is auto-generated.** You should normally not need to pass this option.
[1]: docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 |
# File 'lib/aws-sdk-ec2/types.rb', line 11128 class CreateReplaceRootVolumeTaskRequest < Struct.new( :instance_id, :snapshot_id, :client_token, :dry_run, :tag_specifications, :image_id, :delete_replaced_root_volume) SENSITIVE = [] include Aws::Structure end |
#delete_replaced_root_volume ⇒ Boolean
Indicates whether to automatically delete the original root volume after the root volume replacement task completes. To delete the original root volume, specify ‘true`. If you choose to keep the original root volume after the replacement task completes, you must manually delete it when you no longer need it.
11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 |
# File 'lib/aws-sdk-ec2/types.rb', line 11128 class CreateReplaceRootVolumeTaskRequest < Struct.new( :instance_id, :snapshot_id, :client_token, :dry_run, :tag_specifications, :image_id, :delete_replaced_root_volume) SENSITIVE = [] include Aws::Structure end |
#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`.
11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 |
# File 'lib/aws-sdk-ec2/types.rb', line 11128 class CreateReplaceRootVolumeTaskRequest < Struct.new( :instance_id, :snapshot_id, :client_token, :dry_run, :tag_specifications, :image_id, :delete_replaced_root_volume) SENSITIVE = [] include Aws::Structure end |
#image_id ⇒ String
The ID of the AMI to use to restore the root volume. The specified AMI must have the same product code, billing information, architecture type, and virtualization type as that of the instance.
If you want to restore the replacement volume from a specific snapshot, or if you want to restore it to its launch state, omit this parameter.
11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 |
# File 'lib/aws-sdk-ec2/types.rb', line 11128 class CreateReplaceRootVolumeTaskRequest < Struct.new( :instance_id, :snapshot_id, :client_token, :dry_run, :tag_specifications, :image_id, :delete_replaced_root_volume) SENSITIVE = [] include Aws::Structure end |
#instance_id ⇒ String
The ID of the instance for which to replace the root volume.
11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 |
# File 'lib/aws-sdk-ec2/types.rb', line 11128 class CreateReplaceRootVolumeTaskRequest < Struct.new( :instance_id, :snapshot_id, :client_token, :dry_run, :tag_specifications, :image_id, :delete_replaced_root_volume) SENSITIVE = [] include Aws::Structure end |
#snapshot_id ⇒ String
The ID of the snapshot from which to restore the replacement root volume. The specified snapshot must be a snapshot that you previously created from the original root volume.
If you want to restore the replacement root volume to the initial launch state, or if you want to restore the replacement root volume from an AMI, omit this parameter.
11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 |
# File 'lib/aws-sdk-ec2/types.rb', line 11128 class CreateReplaceRootVolumeTaskRequest < Struct.new( :instance_id, :snapshot_id, :client_token, :dry_run, :tag_specifications, :image_id, :delete_replaced_root_volume) SENSITIVE = [] include Aws::Structure end |
#tag_specifications ⇒ Array<Types::TagSpecification>
The tags to apply to the root volume replacement task.
11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 |
# File 'lib/aws-sdk-ec2/types.rb', line 11128 class CreateReplaceRootVolumeTaskRequest < Struct.new( :instance_id, :snapshot_id, :client_token, :dry_run, :tag_specifications, :image_id, :delete_replaced_root_volume) SENSITIVE = [] include Aws::Structure end |