Struct aws_sdk_ec2::input::CreateReplaceRootVolumeTaskInput [−][src]
#[non_exhaustive]pub struct CreateReplaceRootVolumeTaskInput {
pub instance_id: Option<String>,
pub snapshot_id: Option<String>,
pub client_token: Option<String>,
pub dry_run: Option<bool>,
pub tag_specifications: Option<Vec<TagSpecification>>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.instance_id: Option<String>
The ID of the instance for which to replace the root volume.
snapshot_id: Option<String>
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.
client_token: Option<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.
dry_run: Option<bool>
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
.
tag_specifications: Option<Vec<TagSpecification>>
The tags to apply to the root volume replacement task.
Implementations
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateReplaceRootVolumeTask, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateReplaceRootVolumeTask, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateReplaceRootVolumeTask
>
Creates a new builder-style object to manufacture CreateReplaceRootVolumeTaskInput
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.
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
.
The tags to apply to the root volume replacement task.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for CreateReplaceRootVolumeTaskInput
impl Sync for CreateReplaceRootVolumeTaskInput
impl Unpin for CreateReplaceRootVolumeTaskInput
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