aws_sdk_neptunegraph/client/create_graph_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 [`CreateGraphSnapshot`](crate::operation::create_graph_snapshot::builders::CreateGraphSnapshotFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`graph_identifier(impl Into<String>)`](crate::operation::create_graph_snapshot::builders::CreateGraphSnapshotFluentBuilder::graph_identifier) / [`set_graph_identifier(Option<String>)`](crate::operation::create_graph_snapshot::builders::CreateGraphSnapshotFluentBuilder::set_graph_identifier):<br>required: **true**<br><p>The unique identifier of the Neptune Analytics graph.</p><br>
7 /// - [`snapshot_name(impl Into<String>)`](crate::operation::create_graph_snapshot::builders::CreateGraphSnapshotFluentBuilder::snapshot_name) / [`set_snapshot_name(Option<String>)`](crate::operation::create_graph_snapshot::builders::CreateGraphSnapshotFluentBuilder::set_snapshot_name):<br>required: **true**<br><p>The snapshot name. For example: <code>my-snapshot-1</code>.</p> <p>The name must contain from 1 to 63 letters, numbers, or hyphens, and its first character must be a letter. It cannot end with a hyphen or contain two consecutive hyphens. Only lowercase letters are allowed.</p><br>
8 /// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_graph_snapshot::builders::CreateGraphSnapshotFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_graph_snapshot::builders::CreateGraphSnapshotFluentBuilder::set_tags):<br>required: **false**<br><p>Adds metadata tags to the new graph. These tags can also be used with cost allocation reporting, or used in a Condition statement in an IAM policy.</p><br>
9 /// - On success, responds with [`CreateGraphSnapshotOutput`](crate::operation::create_graph_snapshot::CreateGraphSnapshotOutput) with field(s):
10 /// - [`id(String)`](crate::operation::create_graph_snapshot::CreateGraphSnapshotOutput::id): <p>The ID of the snapshot created.</p>
11 /// - [`name(String)`](crate::operation::create_graph_snapshot::CreateGraphSnapshotOutput::name): <p>The name of the snapshot created.</p>
12 /// - [`arn(String)`](crate::operation::create_graph_snapshot::CreateGraphSnapshotOutput::arn): <p>The ARN of the snapshot created.</p>
13 /// - [`source_graph_id(Option<String>)`](crate::operation::create_graph_snapshot::CreateGraphSnapshotOutput::source_graph_id): <p>The Id of the Neptune Analytics graph from which the snapshot is created.</p>
14 /// - [`snapshot_create_time(Option<DateTime>)`](crate::operation::create_graph_snapshot::CreateGraphSnapshotOutput::snapshot_create_time): <p>The snapshot creation time</p>
15 /// - [`status(Option<SnapshotStatus>)`](crate::operation::create_graph_snapshot::CreateGraphSnapshotOutput::status): <p>The current state of the snapshot.</p>
16 /// - [`kms_key_identifier(Option<String>)`](crate::operation::create_graph_snapshot::CreateGraphSnapshotOutput::kms_key_identifier): <p>The ID of the KMS key used to encrypt and decrypt graph data.</p>
17 /// - On failure, responds with [`SdkError<CreateGraphSnapshotError>`](crate::operation::create_graph_snapshot::CreateGraphSnapshotError)
18 pub fn create_graph_snapshot(&self) -> crate::operation::create_graph_snapshot::builders::CreateGraphSnapshotFluentBuilder {
19 crate::operation::create_graph_snapshot::builders::CreateGraphSnapshotFluentBuilder::new(self.handle.clone())
20 }
21}