aws_sdk_ec2/client/enable_fast_snapshot_restores.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 [`EnableFastSnapshotRestores`](crate::operation::enable_fast_snapshot_restores::builders::EnableFastSnapshotRestoresFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`availability_zones(impl Into<String>)`](crate::operation::enable_fast_snapshot_restores::builders::EnableFastSnapshotRestoresFluentBuilder::availability_zones) / [`set_availability_zones(Option<Vec::<String>>)`](crate::operation::enable_fast_snapshot_restores::builders::EnableFastSnapshotRestoresFluentBuilder::set_availability_zones):<br>required: **true**<br><p>One or more Availability Zones. For example, <code>us-east-2a</code>.</p><br>
7 /// - [`source_snapshot_ids(impl Into<String>)`](crate::operation::enable_fast_snapshot_restores::builders::EnableFastSnapshotRestoresFluentBuilder::source_snapshot_ids) / [`set_source_snapshot_ids(Option<Vec::<String>>)`](crate::operation::enable_fast_snapshot_restores::builders::EnableFastSnapshotRestoresFluentBuilder::set_source_snapshot_ids):<br>required: **true**<br><p>The IDs of one or more snapshots. For example, <code>snap-1234567890abcdef0</code>. You can specify a snapshot that was shared with you from another Amazon Web Services account.</p><br>
8 /// - [`dry_run(bool)`](crate::operation::enable_fast_snapshot_restores::builders::EnableFastSnapshotRestoresFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::enable_fast_snapshot_restores::builders::EnableFastSnapshotRestoresFluentBuilder::set_dry_run):<br>required: **false**<br><p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
9 /// - On success, responds with [`EnableFastSnapshotRestoresOutput`](crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresOutput) with field(s):
10 /// - [`successful(Option<Vec::<EnableFastSnapshotRestoreSuccessItem>>)`](crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresOutput::successful): <p>Information about the snapshots for which fast snapshot restores were successfully enabled.</p>
11 /// - [`unsuccessful(Option<Vec::<EnableFastSnapshotRestoreErrorItem>>)`](crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresOutput::unsuccessful): <p>Information about the snapshots for which fast snapshot restores could not be enabled.</p>
12 /// - On failure, responds with [`SdkError<EnableFastSnapshotRestoresError>`](crate::operation::enable_fast_snapshot_restores::EnableFastSnapshotRestoresError)
13 pub fn enable_fast_snapshot_restores(
14 &self,
15 ) -> crate::operation::enable_fast_snapshot_restores::builders::EnableFastSnapshotRestoresFluentBuilder {
16 crate::operation::enable_fast_snapshot_restores::builders::EnableFastSnapshotRestoresFluentBuilder::new(self.handle.clone())
17 }
18}