pub struct ExportSnapshotFluentBuilder { /* private fields */ }
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§
source§impl ExportSnapshotFluentBuilder
impl ExportSnapshotFluentBuilder
sourcepub fn as_input(&self) -> &ExportSnapshotInputBuilder
pub fn as_input(&self) -> &ExportSnapshotInputBuilder
Access the ExportSnapshot as a reference.
sourcepub async fn send(
self
) -> Result<ExportSnapshotOutput, SdkError<ExportSnapshotError, HttpResponse>>
pub async fn send( self ) -> Result<ExportSnapshotOutput, SdkError<ExportSnapshotError, 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<ExportSnapshotOutput, ExportSnapshotError, Self>
pub fn customize( self ) -> CustomizableOperation<ExportSnapshotOutput, ExportSnapshotError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn source_snapshot_name(self, input: impl Into<String>) -> Self
pub fn source_snapshot_name(self, input: impl Into<String>) -> Self
The name of the instance or disk snapshot to be exported to Amazon EC2.
sourcepub fn set_source_snapshot_name(self, input: Option<String>) -> Self
pub fn set_source_snapshot_name(self, input: Option<String>) -> Self
The name of the instance or disk snapshot to be exported to Amazon EC2.
sourcepub fn get_source_snapshot_name(&self) -> &Option<String>
pub fn get_source_snapshot_name(&self) -> &Option<String>
The name of the instance or disk snapshot to be exported to Amazon EC2.
Trait Implementations§
source§impl Clone for ExportSnapshotFluentBuilder
impl Clone for ExportSnapshotFluentBuilder
source§fn clone(&self) -> ExportSnapshotFluentBuilder
fn clone(&self) -> ExportSnapshotFluentBuilder
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 ExportSnapshotFluentBuilder
impl !RefUnwindSafe for ExportSnapshotFluentBuilder
impl Send for ExportSnapshotFluentBuilder
impl Sync for ExportSnapshotFluentBuilder
impl Unpin for ExportSnapshotFluentBuilder
impl !UnwindSafe for ExportSnapshotFluentBuilder
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