aws_sdk_lightsail/client/
export_snapshot.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ExportSnapshot`](crate::operation::export_snapshot::builders::ExportSnapshotFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`source_snapshot_name(impl Into<String>)`](crate::operation::export_snapshot::builders::ExportSnapshotFluentBuilder::source_snapshot_name) / [`set_source_snapshot_name(Option<String>)`](crate::operation::export_snapshot::builders::ExportSnapshotFluentBuilder::set_source_snapshot_name):<br>required: **true**<br><p>The name of the instance or disk snapshot to be exported to Amazon EC2.</p><br>
7    /// - On success, responds with [`ExportSnapshotOutput`](crate::operation::export_snapshot::ExportSnapshotOutput) with field(s):
8    ///   - [`operations(Option<Vec::<Operation>>)`](crate::operation::export_snapshot::ExportSnapshotOutput::operations): <p>An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.</p>
9    /// - On failure, responds with [`SdkError<ExportSnapshotError>`](crate::operation::export_snapshot::ExportSnapshotError)
10    pub fn export_snapshot(&self) -> crate::operation::export_snapshot::builders::ExportSnapshotFluentBuilder {
11        crate::operation::export_snapshot::builders::ExportSnapshotFluentBuilder::new(self.handle.clone())
12    }
13}