Struct aws_sdk_ec2::client::fluent_builders::CreateReplaceRootVolumeTask [−][src]
pub struct CreateReplaceRootVolumeTask<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateReplaceRootVolumeTask
.
Creates a root volume replacement task for an Amazon EC2 instance. The root volume can either be restored to its initial launch state, or it can be restored using a specific snapshot.
For more information, see Replace a root volume in the Amazon Elastic Compute Cloud User Guide.
Implementations
impl<C, M, R> CreateReplaceRootVolumeTask<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateReplaceRootVolumeTask<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateReplaceRootVolumeTaskOutput, SdkError<CreateReplaceRootVolumeTaskError>> where
R::Policy: SmithyRetryPolicy<CreateReplaceRootVolumeTaskInputOperationOutputAlias, CreateReplaceRootVolumeTaskOutput, CreateReplaceRootVolumeTaskError, CreateReplaceRootVolumeTaskInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateReplaceRootVolumeTaskOutput, SdkError<CreateReplaceRootVolumeTaskError>> where
R::Policy: SmithyRetryPolicy<CreateReplaceRootVolumeTaskInputOperationOutputAlias, CreateReplaceRootVolumeTaskOutput, CreateReplaceRootVolumeTaskError, CreateReplaceRootVolumeTaskInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The ID of the instance for which to replace the root volume.
The ID of the instance for which to replace the root volume.
The ID of the snapshot from which to restore the replacement root volume. If you want to restore the volume to the initial launch state, omit this parameter.
The ID of the snapshot from which to restore the replacement root volume. If you want to restore the volume to the initial launch state, omit this parameter.
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.
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.
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
.
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
.
Appends an item to TagSpecifications
.
To override the contents of this collection use set_tag_specifications
.
The tags to apply to the root volume replacement task.
The tags to apply to the root volume replacement task.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateReplaceRootVolumeTask<C, M, R>
impl<C, M, R> Send for CreateReplaceRootVolumeTask<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateReplaceRootVolumeTask<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateReplaceRootVolumeTask<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateReplaceRootVolumeTask<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more