Struct aws_sdk_lightsail::client::fluent_builders::ExportSnapshot [−][src]
pub struct ExportSnapshot<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to ExportSnapshot
.
Exports an Amazon Lightsail instance or block storage disk snapshot to Amazon Elastic Compute Cloud (Amazon EC2). This operation results in an export snapshot record that can be used with the create cloud formation stack
operation to create new Amazon EC2 instances.
Exported instance snapshots appear in Amazon EC2 as Amazon Machine Images (AMIs), and the instance system disk appears as an Amazon Elastic Block Store (Amazon EBS) volume. Exported disk snapshots appear in Amazon EC2 as Amazon EBS volumes. Snapshots are exported to the same Amazon Web Services Region in Amazon EC2 as the source Lightsail snapshot.
The export snapshot
operation supports tag-based access control via resource tags applied to the resource identified by source snapshot name
. For more information, see the Amazon Lightsail Developer Guide.
Use the get instance snapshots
or get disk snapshots
operations to get a list of snapshots that you can export to Amazon EC2.
Implementations
impl<C, M, R> ExportSnapshot<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ExportSnapshot<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<ExportSnapshotOutput, SdkError<ExportSnapshotError>> where
R::Policy: SmithyRetryPolicy<ExportSnapshotInputOperationOutputAlias, ExportSnapshotOutput, ExportSnapshotError, ExportSnapshotInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<ExportSnapshotOutput, SdkError<ExportSnapshotError>> where
R::Policy: SmithyRetryPolicy<ExportSnapshotInputOperationOutputAlias, ExportSnapshotOutput, ExportSnapshotError, ExportSnapshotInputOperationRetryAlias>,
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.
The name of the instance or disk snapshot to be exported to Amazon EC2.
The name of the instance or disk snapshot to be exported to Amazon EC2.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for ExportSnapshot<C, M, R>
impl<C, M, R> Send for ExportSnapshot<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for ExportSnapshot<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for ExportSnapshot<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for ExportSnapshot<C, M, R>
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