aws_sdk_directory/client/create_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 [`CreateSnapshot`](crate::operation::create_snapshot::builders::CreateSnapshotFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`directory_id(impl Into<String>)`](crate::operation::create_snapshot::builders::CreateSnapshotFluentBuilder::directory_id) / [`set_directory_id(Option<String>)`](crate::operation::create_snapshot::builders::CreateSnapshotFluentBuilder::set_directory_id):<br>required: **true**<br><p>The identifier of the directory of which to take a snapshot.</p><br>
7 /// - [`name(impl Into<String>)`](crate::operation::create_snapshot::builders::CreateSnapshotFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_snapshot::builders::CreateSnapshotFluentBuilder::set_name):<br>required: **false**<br><p>The descriptive name to apply to the snapshot.</p><br>
8 /// - On success, responds with [`CreateSnapshotOutput`](crate::operation::create_snapshot::CreateSnapshotOutput) with field(s):
9 /// - [`snapshot_id(Option<String>)`](crate::operation::create_snapshot::CreateSnapshotOutput::snapshot_id): <p>The identifier of the snapshot that was created.</p>
10 /// - On failure, responds with [`SdkError<CreateSnapshotError>`](crate::operation::create_snapshot::CreateSnapshotError)
11 pub fn create_snapshot(&self) -> crate::operation::create_snapshot::builders::CreateSnapshotFluentBuilder {
12 crate::operation::create_snapshot::builders::CreateSnapshotFluentBuilder::new(self.handle.clone())
13 }
14}