Struct aws_sdk_ec2::input::CreateSnapshotInput [−][src]
#[non_exhaustive]pub struct CreateSnapshotInput {
pub description: Option<String>,
pub outpost_arn: Option<String>,
pub volume_id: Option<String>,
pub tag_specifications: Option<Vec<TagSpecification>>,
pub dry_run: 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.description: Option<String>
A description for the snapshot.
outpost_arn: Option<String>
The Amazon Resource Name (ARN) of the Outpost on which to create a local snapshot.
-
To create a snapshot of a volume in a Region, omit this parameter. The snapshot is created in the same Region as the volume.
-
To create a snapshot of a volume on an Outpost and store the snapshot in the Region, omit this parameter. The snapshot is created in the Region for the Outpost.
-
To create a snapshot of a volume on an Outpost and store the snapshot on an Outpost, specify the ARN of the destination Outpost. The snapshot must be created on the same Outpost as the volume.
For more information, see Create local snapshots from volumes on an Outpost in the Amazon Elastic Compute Cloud User Guide.
volume_id: Option<String>
The ID of the Amazon EBS volume.
tag_specifications: Option<Vec<TagSpecification>>
The tags to apply to the snapshot during creation.
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
.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateSnapshot, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateSnapshot, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateSnapshot
>
Creates a new builder-style object to manufacture CreateSnapshotInput
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 RefUnwindSafe for CreateSnapshotInput
impl Send for CreateSnapshotInput
impl Sync for CreateSnapshotInput
impl Unpin for CreateSnapshotInput
impl UnwindSafe for CreateSnapshotInput
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