Struct aws_sdk_storagegateway::operation::create_snapshot::builders::CreateSnapshotFluentBuilder
source · pub struct CreateSnapshotFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateSnapshot
.
Initiates a snapshot of a volume.
Storage Gateway provides the ability to back up point-in-time snapshots of your data to Amazon Simple Storage (Amazon S3) for durable off-site recovery, and also import the data to an Amazon Elastic Block Store (EBS) volume in Amazon Elastic Compute Cloud (EC2). You can take snapshots of your gateway volume on a scheduled or ad hoc basis. This API enables you to take an ad hoc snapshot. For more information, see Editing a snapshot schedule.
In the CreateSnapshot
request, you identify the volume by providing its Amazon Resource Name (ARN). You must also provide description for the snapshot. When Storage Gateway takes the snapshot of specified volume, the snapshot and description appears in the Storage Gateway console. In response, Storage Gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot. This operation is only supported in stored and cached volume gateway type.
To list or delete a snapshot, you must use the Amazon EC2 API. For more information, see DescribeSnapshots or DeleteSnapshot in the Amazon Elastic Compute Cloud API Reference.
Volume and snapshot IDs are changing to a longer length ID format. For more information, see the important note on the Welcome page.
Implementations§
source§impl CreateSnapshotFluentBuilder
impl CreateSnapshotFluentBuilder
sourcepub fn as_input(&self) -> &CreateSnapshotInputBuilder
pub fn as_input(&self) -> &CreateSnapshotInputBuilder
Access the CreateSnapshot as a reference.
sourcepub async fn send(
self
) -> Result<CreateSnapshotOutput, SdkError<CreateSnapshotError, HttpResponse>>
pub async fn send( self ) -> Result<CreateSnapshotOutput, SdkError<CreateSnapshotError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateSnapshotOutput, CreateSnapshotError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateSnapshotOutput, CreateSnapshotError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn volume_arn(self, input: impl Into<String>) -> Self
pub fn volume_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the volume. Use the ListVolumes
operation to return a list of gateway volumes.
sourcepub fn set_volume_arn(self, input: Option<String>) -> Self
pub fn set_volume_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the volume. Use the ListVolumes
operation to return a list of gateway volumes.
sourcepub fn get_volume_arn(&self) -> &Option<String>
pub fn get_volume_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the volume. Use the ListVolumes
operation to return a list of gateway volumes.
sourcepub fn snapshot_description(self, input: impl Into<String>) -> Self
pub fn snapshot_description(self, input: impl Into<String>) -> Self
Textual description of the snapshot that appears in the Amazon EC2 console, Elastic Block Store snapshots panel in the Description field, and in the Storage Gateway snapshot Details pane, Description field.
sourcepub fn set_snapshot_description(self, input: Option<String>) -> Self
pub fn set_snapshot_description(self, input: Option<String>) -> Self
Textual description of the snapshot that appears in the Amazon EC2 console, Elastic Block Store snapshots panel in the Description field, and in the Storage Gateway snapshot Details pane, Description field.
sourcepub fn get_snapshot_description(&self) -> &Option<String>
pub fn get_snapshot_description(&self) -> &Option<String>
Textual description of the snapshot that appears in the Amazon EC2 console, Elastic Block Store snapshots panel in the Description field, and in the Storage Gateway snapshot Details pane, Description field.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
A list of up to 50 tags that can be assigned to a snapshot. Each tag is a key-value pair.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
A list of up to 50 tags that can be assigned to a snapshot. Each tag is a key-value pair.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
A list of up to 50 tags that can be assigned to a snapshot. Each tag is a key-value pair.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
Trait Implementations§
source§impl Clone for CreateSnapshotFluentBuilder
impl Clone for CreateSnapshotFluentBuilder
source§fn clone(&self) -> CreateSnapshotFluentBuilder
fn clone(&self) -> CreateSnapshotFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateSnapshotFluentBuilder
impl !RefUnwindSafe for CreateSnapshotFluentBuilder
impl Send for CreateSnapshotFluentBuilder
impl Sync for CreateSnapshotFluentBuilder
impl Unpin for CreateSnapshotFluentBuilder
impl !UnwindSafe for CreateSnapshotFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more