AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the CreateReplaceRootVolumeTask operation.
Replaces the EBS-backed root volume for a
running instance with a new
volume that is restored to the original root volume's launch state, that is restored
to a specific snapshot taken from the original root volume, or that is restored from
an AMI that has the same key characteristics as that of the instance.
For more information, see Replace a root volume in the Amazon Elastic Compute Cloud User Guide.
public class CreateReplaceRootVolumeTaskRequest : AmazonEC2Request IAmazonWebServiceRequest
The CreateReplaceRootVolumeTaskRequest type exposes the following members
Gets and sets the property ClientToken.
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.
Gets and sets the property DeleteReplacedRootVolume.
Indicates whether to automatically delete the original root volume after the root
volume replacement task completes. To delete the original root volume, specify
Gets and sets the property ImageId.
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.
Gets and sets the property InstanceId.
The ID of the instance for which to replace the root volume.
Gets and sets the property SnapshotId.
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.
Gets and sets the property TagSpecifications.
The tags to apply to the root volume replacement task.
.NET Core App:
Supported in: 3.1
Supported in: 2.0
Supported in: 4.5, 4.0, 3.5