Struct aws_sdk_ec2::operation::create_snapshot::CreateSnapshotInput
source · #[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§
source§impl CreateSnapshotInput
impl CreateSnapshotInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description for the snapshot.
sourcepub fn outpost_arn(&self) -> Option<&str>
pub fn outpost_arn(&self) -> Option<&str>
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.
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the snapshot during creation.
source§impl CreateSnapshotInput
impl CreateSnapshotInput
sourcepub fn builder() -> CreateSnapshotInputBuilder
pub fn builder() -> CreateSnapshotInputBuilder
Creates a new builder-style object to manufacture CreateSnapshotInput
.
Trait Implementations§
source§impl Clone for CreateSnapshotInput
impl Clone for CreateSnapshotInput
source§fn clone(&self) -> CreateSnapshotInput
fn clone(&self) -> CreateSnapshotInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateSnapshotInput
impl Debug for CreateSnapshotInput
source§impl PartialEq<CreateSnapshotInput> for CreateSnapshotInput
impl PartialEq<CreateSnapshotInput> for CreateSnapshotInput
source§fn eq(&self, other: &CreateSnapshotInput) -> bool
fn eq(&self, other: &CreateSnapshotInput) -> bool
self
and other
values to be equal, and is used
by ==
.