1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RestoreGraphFromSnapshot`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`snapshot_identifier(impl Into<String>)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::snapshot_identifier) / [`set_snapshot_identifier(Option<String>)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::set_snapshot_identifier):<br>required: **true**<br><p>The ID of the snapshot in question.</p><br>
    ///   - [`graph_name(impl Into<String>)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::graph_name) / [`set_graph_name(Option<String>)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::set_graph_name):<br>required: **true**<br><p>A name for the new Neptune Analytics graph to be created from the snapshot.</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.</p><br>
    ///   - [`provisioned_memory(i32)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::provisioned_memory) / [`set_provisioned_memory(Option<i32>)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::set_provisioned_memory):<br>required: **false**<br><p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.</p> <p>Min = 128</p><br>
    ///   - [`deletion_protection(bool)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::deletion_protection) / [`set_deletion_protection(Option<bool>)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::set_deletion_protection):<br>required: **false**<br><p>A value that indicates whether the graph has deletion protection enabled. The graph can't be deleted when deletion protection is enabled.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::set_tags):<br>required: **false**<br><p>Adds metadata tags to the snapshot. These tags can also be used with cost allocation reporting, or used in a Condition statement in an IAM policy.</p><br>
    ///   - [`replica_count(i32)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::replica_count) / [`set_replica_count(Option<i32>)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::set_replica_count):<br>required: **false**<br><p>The number of replicas in other AZs. Min =0, Max = 2, Default =1</p><important>  <p>Additional charges equivalent to the m-NCUs selected for the graph apply for each replica.</p> </important><br>
    ///   - [`public_connectivity(bool)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::public_connectivity) / [`set_public_connectivity(Option<bool>)`](crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::set_public_connectivity):<br>required: **false**<br><p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (<code>true</code> to enable, or <code>false</code> to disable).</p><br>
    /// - On success, responds with [`RestoreGraphFromSnapshotOutput`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput) with field(s):
    ///   - [`id(String)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::id): <p>The unique identifier of the graph.</p>
    ///   - [`name(String)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::name): <p>The name of the graph.</p>
    ///   - [`arn(String)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::arn): <p>The ARN associated with the graph.</p>
    ///   - [`status(Option<GraphStatus>)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::status): <p>The status of the graph.</p>
    ///   - [`status_reason(Option<String>)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::status_reason): <p>The reason that the graph has this status.</p>
    ///   - [`create_time(Option<DateTime>)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::create_time): <p>The time at which the graph was created.</p>
    ///   - [`provisioned_memory(Option<i32>)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::provisioned_memory): <p>The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.</p>
    ///   - [`endpoint(Option<String>)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::endpoint): <p>The graph endpoint.</p>
    ///   - [`public_connectivity(Option<bool>)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::public_connectivity): <p>If <code>true</code>, the graph has a public endpoint, otherwise not.</p>
    ///   - [`vector_search_configuration(Option<VectorSearchConfiguration>)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::vector_search_configuration): <p>Specifies the number of dimensions for vector embeddings loaded into the graph. Max = 65535</p>
    ///   - [`replica_count(Option<i32>)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::replica_count): <p>The number of replicas for the graph.</p>
    ///   - [`kms_key_identifier(Option<String>)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::kms_key_identifier): <p>The ID of the KMS key used to encrypt and decrypt graph data.</p>
    ///   - [`source_snapshot_id(Option<String>)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::source_snapshot_id): <p>The ID of the snapshot from which the graph was created, if any.</p>
    ///   - [`deletion_protection(Option<bool>)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::deletion_protection): <p>If <code>true</code>, deletion protection is enabled for the graph.</p>
    ///   - [`build_number(Option<String>)`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotOutput::build_number): <p>The build number of the graph.</p>
    /// - On failure, responds with [`SdkError<RestoreGraphFromSnapshotError>`](crate::operation::restore_graph_from_snapshot::RestoreGraphFromSnapshotError)
    pub fn restore_graph_from_snapshot(&self) -> crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder {
        crate::operation::restore_graph_from_snapshot::builders::RestoreGraphFromSnapshotFluentBuilder::new(self.handle.clone())
    }
}