#[non_exhaustive]pub struct CreateSnapshotsInputBuilder { /* private fields */ }
Expand description
A builder for CreateSnapshotsInput
.
Implementations§
source§impl CreateSnapshotsInputBuilder
impl CreateSnapshotsInputBuilder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description propagated to every snapshot specified by the instance.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description propagated to every snapshot specified by the instance.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description propagated to every snapshot specified by the instance.
sourcepub fn instance_specification(self, input: InstanceSpecification) -> Self
pub fn instance_specification(self, input: InstanceSpecification) -> Self
The instance to specify which volumes should be included in the snapshots.
This field is required.sourcepub fn set_instance_specification(
self,
input: Option<InstanceSpecification>
) -> Self
pub fn set_instance_specification( self, input: Option<InstanceSpecification> ) -> Self
The instance to specify which volumes should be included in the snapshots.
sourcepub fn get_instance_specification(&self) -> &Option<InstanceSpecification>
pub fn get_instance_specification(&self) -> &Option<InstanceSpecification>
The instance to specify which volumes should be included in the snapshots.
sourcepub fn outpost_arn(self, input: impl Into<String>) -> Self
pub fn outpost_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Outpost on which to create the local snapshots.
-
To create snapshots from an instance in a Region, omit this parameter. The snapshots are created in the same Region as the instance.
-
To create snapshots from an instance on an Outpost and store the snapshots in the Region, omit this parameter. The snapshots are created in the Region for the Outpost.
-
To create snapshots from an instance on an Outpost and store the snapshots on an Outpost, specify the ARN of the destination Outpost. The snapshots must be created on the same Outpost as the instance.
For more information, see Create multi-volume local snapshots from instances on an Outpost in the Amazon Elastic Compute Cloud User Guide.
sourcepub fn set_outpost_arn(self, input: Option<String>) -> Self
pub fn set_outpost_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Outpost on which to create the local snapshots.
-
To create snapshots from an instance in a Region, omit this parameter. The snapshots are created in the same Region as the instance.
-
To create snapshots from an instance on an Outpost and store the snapshots in the Region, omit this parameter. The snapshots are created in the Region for the Outpost.
-
To create snapshots from an instance on an Outpost and store the snapshots on an Outpost, specify the ARN of the destination Outpost. The snapshots must be created on the same Outpost as the instance.
For more information, see Create multi-volume local snapshots from instances on an Outpost in the Amazon Elastic Compute Cloud User Guide.
sourcepub fn get_outpost_arn(&self) -> &Option<String>
pub fn get_outpost_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the Outpost on which to create the local snapshots.
-
To create snapshots from an instance in a Region, omit this parameter. The snapshots are created in the same Region as the instance.
-
To create snapshots from an instance on an Outpost and store the snapshots in the Region, omit this parameter. The snapshots are created in the Region for the Outpost.
-
To create snapshots from an instance on an Outpost and store the snapshots on an Outpost, specify the ARN of the destination Outpost. The snapshots must be created on the same Outpost as the instance.
For more information, see Create multi-volume local snapshots from instances on an Outpost in the Amazon Elastic Compute Cloud User Guide.
sourcepub fn tag_specifications(self, input: TagSpecification) -> Self
pub fn tag_specifications(self, input: TagSpecification) -> Self
Appends an item to tag_specifications
.
To override the contents of this collection use set_tag_specifications
.
Tags to apply to every snapshot specified by the instance.
sourcepub fn set_tag_specifications(
self,
input: Option<Vec<TagSpecification>>
) -> Self
pub fn set_tag_specifications( self, input: Option<Vec<TagSpecification>> ) -> Self
Tags to apply to every snapshot specified by the instance.
sourcepub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
pub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
Tags to apply to every snapshot specified by the instance.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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 set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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 get_dry_run(&self) -> &Option<bool>
pub fn get_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
.
Copies the tags from the specified volume to corresponding snapshot.
Copies the tags from the specified volume to corresponding snapshot.
Copies the tags from the specified volume to corresponding snapshot.
sourcepub fn build(self) -> Result<CreateSnapshotsInput, BuildError>
pub fn build(self) -> Result<CreateSnapshotsInput, BuildError>
Consumes the builder and constructs a CreateSnapshotsInput
.
source§impl CreateSnapshotsInputBuilder
impl CreateSnapshotsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateSnapshotsOutput, SdkError<CreateSnapshotsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateSnapshotsOutput, SdkError<CreateSnapshotsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateSnapshotsInputBuilder
impl Clone for CreateSnapshotsInputBuilder
source§fn clone(&self) -> CreateSnapshotsInputBuilder
fn clone(&self) -> CreateSnapshotsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateSnapshotsInputBuilder
impl Debug for CreateSnapshotsInputBuilder
source§impl Default for CreateSnapshotsInputBuilder
impl Default for CreateSnapshotsInputBuilder
source§fn default() -> CreateSnapshotsInputBuilder
fn default() -> CreateSnapshotsInputBuilder
source§impl PartialEq for CreateSnapshotsInputBuilder
impl PartialEq for CreateSnapshotsInputBuilder
source§fn eq(&self, other: &CreateSnapshotsInputBuilder) -> bool
fn eq(&self, other: &CreateSnapshotsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.