Struct aws_sdk_ec2::operation::create_replace_root_volume_task::CreateReplaceRootVolumeTaskInput
source · #[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>>,
pub image_id: Option<String>,
pub delete_replaced_root_volume: Option<bool>,
}
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. 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.
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.
image_id: Option<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.
delete_replaced_root_volume: Option<bool>
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.
Implementations§
source§impl CreateReplaceRootVolumeTaskInput
impl CreateReplaceRootVolumeTaskInput
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance for which to replace the root volume.
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
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.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
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.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> 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
.
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the root volume replacement task.
sourcepub fn image_id(&self) -> Option<&str>
pub fn image_id(&self) -> Option<&str>
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.
sourcepub fn delete_replaced_root_volume(&self) -> Option<bool>
pub fn delete_replaced_root_volume(&self) -> Option<bool>
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.
source§impl CreateReplaceRootVolumeTaskInput
impl CreateReplaceRootVolumeTaskInput
sourcepub fn builder() -> CreateReplaceRootVolumeTaskInputBuilder
pub fn builder() -> CreateReplaceRootVolumeTaskInputBuilder
Creates a new builder-style object to manufacture CreateReplaceRootVolumeTaskInput
.
Trait Implementations§
source§impl Clone for CreateReplaceRootVolumeTaskInput
impl Clone for CreateReplaceRootVolumeTaskInput
source§fn clone(&self) -> CreateReplaceRootVolumeTaskInput
fn clone(&self) -> CreateReplaceRootVolumeTaskInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq<CreateReplaceRootVolumeTaskInput> for CreateReplaceRootVolumeTaskInput
impl PartialEq<CreateReplaceRootVolumeTaskInput> for CreateReplaceRootVolumeTaskInput
source§fn eq(&self, other: &CreateReplaceRootVolumeTaskInput) -> bool
fn eq(&self, other: &CreateReplaceRootVolumeTaskInput) -> bool
self
and other
values to be equal, and is used
by ==
.