aws_sdk_neptunegraph/client/
create_graph.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 [`CreateGraph`](crate::operation::create_graph::builders::CreateGraphFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`graph_name(impl Into<String>)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::graph_name) / [`set_graph_name(Option<String>)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::set_graph_name):<br>required: **true**<br><p>A name for the new Neptune Analytics graph to be created.</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>
7    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::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>
8    ///   - [`public_connectivity(bool)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::public_connectivity) / [`set_public_connectivity(Option<bool>)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::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>
9    ///   - [`kms_key_identifier(impl Into<String>)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::kms_key_identifier) / [`set_kms_key_identifier(Option<String>)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::set_kms_key_identifier):<br>required: **false**<br><p>Specifies a KMS key to use to encrypt data in the new graph.</p><br>
10    ///   - [`vector_search_configuration(VectorSearchConfiguration)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::vector_search_configuration) / [`set_vector_search_configuration(Option<VectorSearchConfiguration>)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::set_vector_search_configuration):<br>required: **false**<br><p>Specifies the number of dimensions for vector embeddings that will be loaded into the graph. The value is specified as <code>dimension=</code>value. Max = 65,535</p><br>
11    ///   - [`replica_count(i32)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::replica_count) / [`set_replica_count(Option<i32>)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::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>
12    ///   - [`deletion_protection(bool)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::deletion_protection) / [`set_deletion_protection(Option<bool>)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::set_deletion_protection):<br>required: **false**<br><p>Indicates whether or not to enable deletion protection on the graph. The graph can’t be deleted when deletion protection is enabled. (<code>true</code> or <code>false</code>).</p><br>
13    ///   - [`provisioned_memory(i32)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::provisioned_memory) / [`set_provisioned_memory(Option<i32>)`](crate::operation::create_graph::builders::CreateGraphFluentBuilder::set_provisioned_memory):<br>required: **true**<br><p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Min = 16</p><br>
14    /// - On success, responds with [`CreateGraphOutput`](crate::operation::create_graph::CreateGraphOutput) with field(s):
15    ///   - [`id(String)`](crate::operation::create_graph::CreateGraphOutput::id): <p>The ID of the graph.</p>
16    ///   - [`name(String)`](crate::operation::create_graph::CreateGraphOutput::name): <p>The graph name. For example: <code>my-graph-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>
17    ///   - [`arn(String)`](crate::operation::create_graph::CreateGraphOutput::arn): <p>The ARN of the graph.</p>
18    ///   - [`status(Option<GraphStatus>)`](crate::operation::create_graph::CreateGraphOutput::status): <p>The current status of the graph.</p>
19    ///   - [`status_reason(Option<String>)`](crate::operation::create_graph::CreateGraphOutput::status_reason): <p>The reason the status was given.</p>
20    ///   - [`create_time(Option<DateTime>)`](crate::operation::create_graph::CreateGraphOutput::create_time): <p>The time when the graph was created.</p>
21    ///   - [`provisioned_memory(Option<i32>)`](crate::operation::create_graph::CreateGraphOutput::provisioned_memory): <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.</p> <p>Min = 16</p>
22    ///   - [`endpoint(Option<String>)`](crate::operation::create_graph::CreateGraphOutput::endpoint): <p>The graph endpoint.</p>
23    ///   - [`public_connectivity(Option<bool>)`](crate::operation::create_graph::CreateGraphOutput::public_connectivity): <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.</p><note>  <p>If enabling public connectivity for the first time, there will be a delay while it is enabled.</p> </note>
24    ///   - [`vector_search_configuration(Option<VectorSearchConfiguration>)`](crate::operation::create_graph::CreateGraphOutput::vector_search_configuration): <p>The vector-search configuration for the graph, which specifies the vector dimension to use in the vector index, if any.</p>
25    ///   - [`replica_count(Option<i32>)`](crate::operation::create_graph::CreateGraphOutput::replica_count): <p>The number of replicas in other AZs.</p> <p>Default: If not specified, the default value is 1.</p>
26    ///   - [`kms_key_identifier(Option<String>)`](crate::operation::create_graph::CreateGraphOutput::kms_key_identifier): <p>Specifies the KMS key used to encrypt data in the new graph.</p>
27    ///   - [`source_snapshot_id(Option<String>)`](crate::operation::create_graph::CreateGraphOutput::source_snapshot_id): <p>The ID of the source graph.</p>
28    ///   - [`deletion_protection(Option<bool>)`](crate::operation::create_graph::CreateGraphOutput::deletion_protection): <p>A value that indicates whether the graph has deletion protection enabled. The graph can't be deleted when deletion protection is enabled.</p>
29    ///   - [`build_number(Option<String>)`](crate::operation::create_graph::CreateGraphOutput::build_number): <p>The build number of the graph software.</p>
30    /// - On failure, responds with [`SdkError<CreateGraphError>`](crate::operation::create_graph::CreateGraphError)
31    pub fn create_graph(&self) -> crate::operation::create_graph::builders::CreateGraphFluentBuilder {
32        crate::operation::create_graph::builders::CreateGraphFluentBuilder::new(self.handle.clone())
33    }
34}