pub struct Client { /* private fields */ }Expand description
Client for Amazon Neptune Graph
Client for invoking operations on Amazon Neptune Graph. Each operation on Amazon Neptune Graph is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env() instead, which returns a ConfigLoader that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_neptunegraph::Client::new(&config);Occasionally, SDKs may have additional service-specific values that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Builder struct implements From<&SdkConfig>, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_neptunegraph::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();See the aws-config docs and Config for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the CancelExportTask operation has
a Client::cancel_export_task, function which returns a builder for that operation.
The fluent builder ultimately has a send() function that returns an async future that
returns a result, as illustrated below:
let result = client.cancel_export_task()
.task_identifier("example")
.send()
.await;The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize module for more
information.
§Waiters
This client provides wait_until methods behind the Waiters trait.
To use them, simply import the trait, and then call one of the wait_until methods. This will
return a waiter fluent builder that takes various parameters, which are documented on the builder
type. Once parameters have been provided, the wait method can be called to initiate waiting.
For example, if there was a wait_until_thing method, it could look like:
let result = client.wait_until_thing()
.thing_id("someId")
.wait(Duration::from_secs(120))
.await;Implementations§
Source§impl Client
impl Client
Sourcepub fn cancel_export_task(&self) -> CancelExportTaskFluentBuilder
pub fn cancel_export_task(&self) -> CancelExportTaskFluentBuilder
Constructs a fluent builder for the CancelExportTask operation.
- The fluent builder is configurable:
task_identifier(impl Into<String>)/set_task_identifier(Option<String>):
required: trueThe unique identifier of the export task.
- On success, responds with
CancelExportTaskOutputwith field(s):graph_id(String):The source graph identifier of the cancelled export task.
role_arn(String):The ARN of the IAM role that will allow the exporting of data to the destination.
task_id(String):The unique identifier of the export task.
status(ExportTaskStatus):The current status of the export task. The status is
CANCELLINGwhen the export task is cancelled.format(ExportFormat):The format of the cancelled export task.
destination(String):The Amazon S3 URI of the cancelled export task where data will be exported to.
kms_key_identifier(String):The KMS key identifier of the cancelled export task.
parquet_type(Option<ParquetType>):The parquet type of the cancelled export task.
status_reason(Option<String>):The reason that the export task has this status value.
- On failure, responds with
SdkError<CancelExportTaskError>
Source§impl Client
impl Client
Sourcepub fn cancel_import_task(&self) -> CancelImportTaskFluentBuilder
pub fn cancel_import_task(&self) -> CancelImportTaskFluentBuilder
Constructs a fluent builder for the CancelImportTask operation.
- The fluent builder is configurable:
task_identifier(impl Into<String>)/set_task_identifier(Option<String>):
required: trueThe unique identifier of the import task.
- On success, responds with
CancelImportTaskOutputwith field(s):graph_id(Option<String>):The unique identifier of the Neptune Analytics graph.
task_id(String):The unique identifier of the import task.
source(String):A URL identifying to the location of the data to be imported. This can be an Amazon S3 path, or can point to a Neptune database endpoint or snapshot.
format(Option<Format>):Specifies the format of S3 data to be imported. Valid values are
CSV, which identifies the Gremlin CSV format orOPENCYPHER, which identies the openCypher load format.parquet_type(Option<ParquetType>):The parquet type of the cancelled import task.
role_arn(String):The ARN of the IAM role that will allow access to the data that is to be imported.
status(ImportTaskStatus):Current status of the task. Status is CANCELLING when the import task is cancelled.
- On failure, responds with
SdkError<CancelImportTaskError>
Source§impl Client
impl Client
Sourcepub fn cancel_query(&self) -> CancelQueryFluentBuilder
pub fn cancel_query(&self) -> CancelQueryFluentBuilder
Constructs a fluent builder for the CancelQuery operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
query_id(impl Into<String>)/set_query_id(Option<String>):
required: trueThe unique identifier of the query to cancel.
- On success, responds with
CancelQueryOutput - On failure, responds with
SdkError<CancelQueryError>
Source§impl Client
impl Client
Sourcepub fn create_graph(&self) -> CreateGraphFluentBuilder
pub fn create_graph(&self) -> CreateGraphFluentBuilder
Constructs a fluent builder for the CreateGraph operation.
- The fluent builder is configurable:
graph_name(impl Into<String>)/set_graph_name(Option<String>):
required: trueA name for the new Neptune Analytics graph to be created.
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.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseAdds 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.
public_connectivity(bool)/set_public_connectivity(Option<bool>):
required: falseSpecifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (
trueto enable, orfalseto disable.kms_key_identifier(impl Into<String>)/set_kms_key_identifier(Option<String>):
required: falseSpecifies a KMS key to use to encrypt data in the new graph.
vector_search_configuration(VectorSearchConfiguration)/set_vector_search_configuration(Option<VectorSearchConfiguration>):
required: falseSpecifies the number of dimensions for vector embeddings that will be loaded into the graph. The value is specified as
dimension=value. Max = 65,535replica_count(i32)/set_replica_count(Option<i32>):
required: falseThe number of replicas in other AZs. Min =0, Max = 2, Default = 1.
Additional charges equivalent to the m-NCUs selected for the graph apply for each replica.
deletion_protection(bool)/set_deletion_protection(Option<bool>):
required: falseIndicates whether or not to enable deletion protection on the graph. The graph can’t be deleted when deletion protection is enabled. (
trueorfalse).provisioned_memory(i32)/set_provisioned_memory(Option<i32>):
required: trueThe provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Min = 16
- On success, responds with
CreateGraphOutputwith field(s):id(String):The ID of the graph.
name(String):The graph name. For example:
my-graph-1.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.
arn(String):The ARN of the graph.
status(Option<GraphStatus>):The current status of the graph.
status_reason(Option<String>):The reason the status was given.
create_time(Option<DateTime>):The time when the graph was created.
provisioned_memory(Option<i32>):The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.
Min = 16
endpoint(Option<String>):The graph endpoint.
public_connectivity(Option<bool>):Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.
If enabling public connectivity for the first time, there will be a delay while it is enabled.
vector_search_configuration(Option<VectorSearchConfiguration>):The vector-search configuration for the graph, which specifies the vector dimension to use in the vector index, if any.
replica_count(Option<i32>):The number of replicas in other AZs.
Default: If not specified, the default value is 1.
kms_key_identifier(Option<String>):Specifies the KMS key used to encrypt data in the new graph.
source_snapshot_id(Option<String>):The ID of the source graph.
deletion_protection(Option<bool>):A value that indicates whether the graph has deletion protection enabled. The graph can’t be deleted when deletion protection is enabled.
build_number(Option<String>):The build number of the graph software.
- On failure, responds with
SdkError<CreateGraphError>
Source§impl Client
impl Client
Sourcepub fn create_graph_snapshot(&self) -> CreateGraphSnapshotFluentBuilder
pub fn create_graph_snapshot(&self) -> CreateGraphSnapshotFluentBuilder
Constructs a fluent builder for the CreateGraphSnapshot operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
snapshot_name(impl Into<String>)/set_snapshot_name(Option<String>):
required: trueThe snapshot name. For example:
my-snapshot-1.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.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseAdds 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.
- On success, responds with
CreateGraphSnapshotOutputwith field(s):id(String):The ID of the snapshot created.
name(String):The name of the snapshot created.
arn(String):The ARN of the snapshot created.
source_graph_id(Option<String>):The Id of the Neptune Analytics graph from which the snapshot is created.
snapshot_create_time(Option<DateTime>):The snapshot creation time
status(Option<SnapshotStatus>):The current state of the snapshot.
kms_key_identifier(Option<String>):The ID of the KMS key used to encrypt and decrypt graph data.
- On failure, responds with
SdkError<CreateGraphSnapshotError>
Source§impl Client
impl Client
Sourcepub fn create_graph_using_import_task(
&self,
) -> CreateGraphUsingImportTaskFluentBuilder
pub fn create_graph_using_import_task( &self, ) -> CreateGraphUsingImportTaskFluentBuilder
Constructs a fluent builder for the CreateGraphUsingImportTask operation.
- The fluent builder is configurable:
graph_name(impl Into<String>)/set_graph_name(Option<String>):
required: trueA name for the new Neptune Analytics graph to be created.
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.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseAdds 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.
public_connectivity(bool)/set_public_connectivity(Option<bool>):
required: falseSpecifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (
trueto enable, orfalseto disable).kms_key_identifier(impl Into<String>)/set_kms_key_identifier(Option<String>):
required: falseSpecifies a KMS key to use to encrypt data imported into the new graph.
vector_search_configuration(VectorSearchConfiguration)/set_vector_search_configuration(Option<VectorSearchConfiguration>):
required: falseSpecifies the number of dimensions for vector embeddings that will be loaded into the graph. The value is specified as
dimension=value. Max = 65,535replica_count(i32)/set_replica_count(Option<i32>):
required: falseThe number of replicas in other AZs to provision on the new graph after import. Default = 0, Min = 0, Max = 2.
Additional charges equivalent to the m-NCUs selected for the graph apply for each replica.
deletion_protection(bool)/set_deletion_protection(Option<bool>):
required: falseIndicates whether or not to enable deletion protection on the graph. The graph can’t be deleted when deletion protection is enabled. (
trueorfalse).import_options(ImportOptions)/set_import_options(Option<ImportOptions>):
required: falseContains options for controlling the import process. For example, if the
failOnErrorkey is set tofalse, the import skips problem data and attempts to continue (whereas if set totrue, the default, or if omitted, the import operation halts immediately when an error is encountered.max_provisioned_memory(i32)/set_max_provisioned_memory(Option<i32>):
required: falseThe maximum provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Default: 1024, or the approved upper limit for your account.
If both the minimum and maximum values are specified, the final
provisioned-memorywill be chosen per the actual size of your imported data. If neither value is specified, 128 m-NCUs are used.min_provisioned_memory(i32)/set_min_provisioned_memory(Option<i32>):
required: falseThe minimum provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Default: 16
fail_on_error(bool)/set_fail_on_error(Option<bool>):
required: falseIf set to
true, the task halts when an import error is encountered. If set tofalse, the task skips the data that caused the error and continues if possible.source(impl Into<String>)/set_source(Option<String>):
required: trueA URL identifying to the location of the data to be imported. This can be an Amazon S3 path, or can point to a Neptune database endpoint or snapshot.
format(Format)/set_format(Option<Format>):
required: falseSpecifies the format of S3 data to be imported. Valid values are
CSV, which identifies the Gremlin CSV format,OPEN_CYPHER, which identifies the openCypher load format, orntriples, which identifies the RDF n-triples format.parquet_type(ParquetType)/set_parquet_type(Option<ParquetType>):
required: falseThe parquet type of the import task.
blank_node_handling(BlankNodeHandling)/set_blank_node_handling(Option<BlankNodeHandling>):
required: falseThe method to handle blank nodes in the dataset. Currently, only
convertToIriis supported, meaning blank nodes are converted to unique IRIs at load time. Must be provided when format isntriples. For more information, see Handling RDF values.role_arn(impl Into<String>)/set_role_arn(Option<String>):
required: trueThe ARN of the IAM role that will allow access to the data that is to be imported.
- On success, responds with
CreateGraphUsingImportTaskOutputwith field(s):graph_id(Option<String>):The unique identifier of the Neptune Analytics graph.
task_id(String):The unique identifier of the import task.
source(String):A URL identifying to the location of the data to be imported. This can be an Amazon S3 path, or can point to a Neptune database endpoint or snapshot.
format(Option<Format>):Specifies the format of S3 data to be imported. Valid values are
CSV, which identifies the Gremlin CSV format,OPENCYPHER, which identifies the openCypher load format, orntriples, which identifies the RDF n-triples format.parquet_type(Option<ParquetType>):The parquet type of the import task.
role_arn(String):The ARN of the IAM role that will allow access to the data that is to be imported.
status(ImportTaskStatus):The status of the import task.
import_options(Option<ImportOptions>):Contains options for controlling the import process. For example, if the
failOnErrorkey is set tofalse, the import skips problem data and attempts to continue (whereas if set totrue, the default, or if omitted, the import operation halts immediately when an error is encountered.
- On failure, responds with
SdkError<CreateGraphUsingImportTaskError>
Source§impl Client
impl Client
Sourcepub fn create_private_graph_endpoint(
&self,
) -> CreatePrivateGraphEndpointFluentBuilder
pub fn create_private_graph_endpoint( &self, ) -> CreatePrivateGraphEndpointFluentBuilder
Constructs a fluent builder for the CreatePrivateGraphEndpoint operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
vpc_id(impl Into<String>)/set_vpc_id(Option<String>):
required: falseThe VPC in which the private graph endpoint needs to be created.
subnet_ids(impl Into<String>)/set_subnet_ids(Option<Vec::<String>>):
required: falseSubnets in which private graph endpoint ENIs are created.
vpc_security_group_ids(impl Into<String>)/set_vpc_security_group_ids(Option<Vec::<String>>):
required: falseSecurity groups to be attached to the private graph endpoint..
- On success, responds with
CreatePrivateGraphEndpointOutputwith field(s):vpc_id(String):VPC in which the private graph endpoint is created.
subnet_ids(Vec::<String>):Subnets in which the private graph endpoint ENIs are created.
status(PrivateGraphEndpointStatus):Status of the private graph endpoint.
vpc_endpoint_id(Option<String>):Endpoint ID of the prviate grpah endpoint.
- On failure, responds with
SdkError<CreatePrivateGraphEndpointError>
Source§impl Client
impl Client
Sourcepub fn delete_graph(&self) -> DeleteGraphFluentBuilder
pub fn delete_graph(&self) -> DeleteGraphFluentBuilder
Constructs a fluent builder for the DeleteGraph operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
skip_snapshot(bool)/set_skip_snapshot(Option<bool>):
required: trueDetermines whether a final graph snapshot is created before the graph is deleted. If
trueis specified, no graph snapshot is created. Iffalseis specified, a graph snapshot is created before the graph is deleted.
- On success, responds with
DeleteGraphOutputwith field(s):id(String):The unique identifier of the graph.
name(String):The name of the graph.
arn(String):The ARN associated with the graph.
status(Option<GraphStatus>):The status of the graph.
status_reason(Option<String>):The reason for the status of the graph.
create_time(Option<DateTime>):The time at which the graph was created.
provisioned_memory(Option<i32>):The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.
endpoint(Option<String>):The graph endpoint.
public_connectivity(Option<bool>):If
true, the graph has a public endpoint, otherwise not.vector_search_configuration(Option<VectorSearchConfiguration>):Specifies the number of dimensions for vector embeddings loaded into the graph. Max = 65535
replica_count(Option<i32>):The number of replicas for the graph.
kms_key_identifier(Option<String>):The ID of the KMS key used to encrypt and decrypt graph data.
source_snapshot_id(Option<String>):The ID of the snapshot from which the graph was created, if the graph was recovered from a snapshot.
deletion_protection(Option<bool>):If
true, deletion protection was enabled for the graph.build_number(Option<String>):The build number associated with the graph.
- On failure, responds with
SdkError<DeleteGraphError>
Source§impl Client
impl Client
Sourcepub fn delete_graph_snapshot(&self) -> DeleteGraphSnapshotFluentBuilder
pub fn delete_graph_snapshot(&self) -> DeleteGraphSnapshotFluentBuilder
Constructs a fluent builder for the DeleteGraphSnapshot operation.
- The fluent builder is configurable:
snapshot_identifier(impl Into<String>)/set_snapshot_identifier(Option<String>):
required: trueID of the graph snapshot to be deleted.
- On success, responds with
DeleteGraphSnapshotOutputwith field(s):id(String):The unique identifier of the graph snapshot.
name(String):The snapshot name. For example:
my-snapshot-1.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.
arn(String):The ARN of the graph snapshot.
source_graph_id(Option<String>):The graph identifier for the graph from which the snapshot was created.
snapshot_create_time(Option<DateTime>):The time when the snapshot was created.
status(Option<SnapshotStatus>):The status of the graph snapshot.
kms_key_identifier(Option<String>):The ID of the KMS key used to encrypt and decrypt the snapshot.
- On failure, responds with
SdkError<DeleteGraphSnapshotError>
Source§impl Client
impl Client
Sourcepub fn delete_private_graph_endpoint(
&self,
) -> DeletePrivateGraphEndpointFluentBuilder
pub fn delete_private_graph_endpoint( &self, ) -> DeletePrivateGraphEndpointFluentBuilder
Constructs a fluent builder for the DeletePrivateGraphEndpoint operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
vpc_id(impl Into<String>)/set_vpc_id(Option<String>):
required: trueThe ID of the VPC where the private endpoint is located.
- On success, responds with
DeletePrivateGraphEndpointOutputwith field(s):vpc_id(String):The ID of the VPC where the private endpoint was deleted.
subnet_ids(Vec::<String>):The subnet IDs involved.
status(PrivateGraphEndpointStatus):The status of the delete operation.
vpc_endpoint_id(Option<String>):The ID of the VPC endpoint that was deleted.
- On failure, responds with
SdkError<DeletePrivateGraphEndpointError>
Source§impl Client
impl Client
Sourcepub fn execute_query(&self) -> ExecuteQueryFluentBuilder
pub fn execute_query(&self) -> ExecuteQueryFluentBuilder
Constructs a fluent builder for the ExecuteQuery operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
query_string(impl Into<String>)/set_query_string(Option<String>):
required: trueThe query string to be executed.
language(QueryLanguage)/set_language(Option<QueryLanguage>):
required: trueThe query language the query is written in. Currently only openCypher is supported.
parameters(impl Into<String>, Document)/set_parameters(Option<HashMap::<String, Document>>):
required: falseThe data parameters the query can use in JSON format. For example: {“name”: “john”, “age”: 20}. (optional)
plan_cache(PlanCacheType)/set_plan_cache(Option<PlanCacheType>):
required: falseQuery plan cache is a feature that saves the query plan and reuses it on successive executions of the same query. This reduces query latency, and works for both
READandUPDATEqueries. The plan cache is an LRU cache with a 5 minute TTL and a capacity of 1000.explain_mode(ExplainMode)/set_explain_mode(Option<ExplainMode>):
required: falseThe explain mode parameter returns a query explain instead of the actual query results. A query explain can be used to gather insights about the query execution such as planning decisions, time spent on each operator, solutions flowing etc.
query_timeout_milliseconds(i32)/set_query_timeout_milliseconds(Option<i32>):
required: falseSpecifies the query timeout duration, in milliseconds. (optional)
- On success, responds with
ExecuteQueryOutputwith field(s):payload(ByteStream):The query results.
- On failure, responds with
SdkError<ExecuteQueryError>
Source§impl Client
impl Client
Sourcepub fn get_export_task(&self) -> GetExportTaskFluentBuilder
pub fn get_export_task(&self) -> GetExportTaskFluentBuilder
Constructs a fluent builder for the GetExportTask operation.
- The fluent builder is configurable:
task_identifier(impl Into<String>)/set_task_identifier(Option<String>):
required: trueThe unique identifier of the export task.
- On success, responds with
GetExportTaskOutputwith field(s):graph_id(String):The source graph identifier of the export task.
role_arn(String):The ARN of the IAM role that will allow data to be exported to the destination.
task_id(String):The unique identifier of the export task.
status(ExportTaskStatus):The current status of the export task.
format(ExportFormat):The format of the export task.
destination(String):The Amazon S3 URI of the export task where data will be exported.
kms_key_identifier(String):The KMS key identifier of the export task.
parquet_type(Option<ParquetType>):The parquet type of the export task.
status_reason(Option<String>):The reason that the export task has this status value.
export_task_details(Option<ExportTaskDetails>):The details of the export task.
export_filter(Option<ExportFilter>):The export filter of the export task.
- On failure, responds with
SdkError<GetExportTaskError>
Source§impl Client
impl Client
Sourcepub fn get_graph(&self) -> GetGraphFluentBuilder
pub fn get_graph(&self) -> GetGraphFluentBuilder
Constructs a fluent builder for the GetGraph operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
- On success, responds with
GetGraphOutputwith field(s):id(String):The unique identifier of the graph.
name(String):The name of the graph.
arn(String):The ARN associated with the graph.
status(Option<GraphStatus>):The status of the graph.
status_reason(Option<String>):The reason that the graph has this status.
create_time(Option<DateTime>):The time at which the graph was created.
provisioned_memory(Option<i32>):The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.
endpoint(Option<String>):The graph endpoint.
public_connectivity(Option<bool>):If
true, the graph has a public endpoint, otherwise not.vector_search_configuration(Option<VectorSearchConfiguration>):Specifies the number of dimensions for vector embeddings loaded into the graph. Max = 65535
replica_count(Option<i32>):The number of replicas for the graph.
kms_key_identifier(Option<String>):The ID of the KMS key used to encrypt and decrypt graph data.
source_snapshot_id(Option<String>):The ID of the snapshot from which the graph was created, if it was created from a snapshot.
deletion_protection(Option<bool>):If
true, deletion protection is enabled for the graph.build_number(Option<String>):The build number of the graph.
- On failure, responds with
SdkError<GetGraphError>
Source§impl Client
impl Client
Sourcepub fn get_graph_snapshot(&self) -> GetGraphSnapshotFluentBuilder
pub fn get_graph_snapshot(&self) -> GetGraphSnapshotFluentBuilder
Constructs a fluent builder for the GetGraphSnapshot operation.
- The fluent builder is configurable:
snapshot_identifier(impl Into<String>)/set_snapshot_identifier(Option<String>):
required: trueThe ID of the snapshot to retrieve.
- On success, responds with
GetGraphSnapshotOutputwith field(s):id(String):The unique identifier of the graph snapshot.
name(String):The snapshot name. For example:
my-snapshot-1.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.
arn(String):The ARN of the graph snapshot.
source_graph_id(Option<String>):The graph identifier for the graph for which a snapshot is to be created.
snapshot_create_time(Option<DateTime>):The time when the snapshot was created.
status(Option<SnapshotStatus>):The status of the graph snapshot.
kms_key_identifier(Option<String>):The ID of the KMS key used to encrypt and decrypt the snapshot.
- On failure, responds with
SdkError<GetGraphSnapshotError>
Source§impl Client
impl Client
Sourcepub fn get_graph_summary(&self) -> GetGraphSummaryFluentBuilder
pub fn get_graph_summary(&self) -> GetGraphSummaryFluentBuilder
Constructs a fluent builder for the GetGraphSummary operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
mode(GraphSummaryMode)/set_mode(Option<GraphSummaryMode>):
required: falseThe summary mode can take one of two values:
basic(the default), anddetailed.
- On success, responds with
GetGraphSummaryOutputwith field(s):version(Option<String>):Display the version of this tool.
last_statistics_computation_time(Option<DateTime>):The timestamp, in ISO 8601 format, of the time at which Neptune Analytics last computed statistics.
graph_summary(Option<GraphDataSummary>):The graph summary.
- On failure, responds with
SdkError<GetGraphSummaryError>
Source§impl Client
impl Client
Sourcepub fn get_import_task(&self) -> GetImportTaskFluentBuilder
pub fn get_import_task(&self) -> GetImportTaskFluentBuilder
Constructs a fluent builder for the GetImportTask operation.
- The fluent builder is configurable:
task_identifier(impl Into<String>)/set_task_identifier(Option<String>):
required: trueThe unique identifier of the import task.
- On success, responds with
GetImportTaskOutputwith field(s):graph_id(Option<String>):The unique identifier of the Neptune Analytics graph.
task_id(String):The unique identifier of the import task.
source(String):A URL identifying to the location of the data to be imported. This can be an Amazon S3 path, or can point to a Neptune database endpoint or snapshot
format(Option<Format>):Specifies the format of S3 data to be imported. Valid values are
CSV, which identifies the Gremlin CSV format orOPENCYPHER, which identies the openCypher load format.parquet_type(Option<ParquetType>):The parquet type of the import task.
role_arn(String):The ARN of the IAM role that will allow access to the data that is to be imported.
status(ImportTaskStatus):The status of the import task:
-
INITIALIZING – The necessary resources needed to create the graph are being prepared.
-
ANALYZING_DATA – The data is being analyzed to determine the optimal infrastructure configuration for the new graph.
-
RE_PROVISIONING – The data did not fit into the provisioned graph, so it is being re-provisioned with more capacity.
-
IMPORTING – The data is being loaded.
-
ERROR_ENCOUNTERED – An error has been encountered while trying to create the graph and import the data.
-
ERROR_ENCOUNTERED_ROLLING_BACK – Because of the error that was encountered, the graph is being rolled back and all its resources released.
-
SUCCEEDED – Graph creation and data loading succeeded.
-
FAILED – Graph creation or data loading failed. When the status is
FAILED, you can useget-graphsto get more information about the state of the graph. -
CANCELLING – Because you cancelled the import task, cancellation is in progress.
-
CANCELLED – You have successfully cancelled the import task.
-
import_options(Option<ImportOptions>):Contains options for controlling the import process. For example, if the
failOnErrorkey is set tofalse, the import skips problem data and attempts to continue (whereas if set totrue, the default, or if omitted, the import operation halts immediately when an error is encountered.import_task_details(Option<ImportTaskDetails>):Contains details about the specified import task.
attempt_number(Option<i32>):The number of the current attempts to execute the import task.
status_reason(Option<String>):The reason that the import task has this status value.
- On failure, responds with
SdkError<GetImportTaskError>
Source§impl Client
impl Client
Sourcepub fn get_private_graph_endpoint(&self) -> GetPrivateGraphEndpointFluentBuilder
pub fn get_private_graph_endpoint(&self) -> GetPrivateGraphEndpointFluentBuilder
Constructs a fluent builder for the GetPrivateGraphEndpoint operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
vpc_id(impl Into<String>)/set_vpc_id(Option<String>):
required: trueThe ID of the VPC where the private endpoint is located.
- On success, responds with
GetPrivateGraphEndpointOutputwith field(s):vpc_id(String):The ID of the VPC where the private endpoint is located.
subnet_ids(Vec::<String>):The subnet IDs involved.
status(PrivateGraphEndpointStatus):The current status of the private endpoint.
vpc_endpoint_id(Option<String>):The ID of the private endpoint.
- On failure, responds with
SdkError<GetPrivateGraphEndpointError>
Source§impl Client
impl Client
Sourcepub fn get_query(&self) -> GetQueryFluentBuilder
pub fn get_query(&self) -> GetQueryFluentBuilder
Constructs a fluent builder for the GetQuery operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
query_id(impl Into<String>)/set_query_id(Option<String>):
required: trueThe ID of the query in question.
- On success, responds with
GetQueryOutputwith field(s):id(Option<String>):The ID of the query in question.
query_string(Option<String>):The query in question.
waited(Option<i32>):Indicates how long the query waited, in milliseconds.
elapsed(Option<i32>):The number of milliseconds the query has been running.
state(Option<QueryState>):State of the query.
- On failure, responds with
SdkError<GetQueryError>
Source§impl Client
impl Client
Sourcepub fn list_export_tasks(&self) -> ListExportTasksFluentBuilder
pub fn list_export_tasks(&self) -> ListExportTasksFluentBuilder
Constructs a fluent builder for the ListExportTasks operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: falseThe unique identifier of the Neptune Analytics graph.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falsePagination token used to paginate input.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of export tasks to return.
- On success, responds with
ListExportTasksOutputwith field(s):tasks(Vec::<ExportTaskSummary>):The requested list of export tasks.
next_token(Option<String>):Pagination token used to paginate output.
- On failure, responds with
SdkError<ListExportTasksError>
Source§impl Client
impl Client
Sourcepub fn list_graph_snapshots(&self) -> ListGraphSnapshotsFluentBuilder
pub fn list_graph_snapshots(&self) -> ListGraphSnapshotsFluentBuilder
Constructs a fluent builder for the ListGraphSnapshots operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: falseThe unique identifier of the Neptune Analytics graph.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falsePagination token used to paginate output.
When this value is provided as input, the service returns results from where the previous response left off. When this value is present in output, it indicates that there are more results to retrieve.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe total number of records to return in the command’s output.
If the total number of records available is more than the value specified,
nextTokenis provided in the command’s output. To resume pagination, provide thenextTokenoutput value in thenextTokenargument of a subsequent command. Do not use thenextTokenresponse element directly outside of the Amazon CLI.
- On success, responds with
ListGraphSnapshotsOutputwith field(s):graph_snapshots(Vec::<GraphSnapshotSummary>):The requested list of snapshots.
next_token(Option<String>):Pagination token used to paginate output.
When this value is provided as input, the service returns results from where the previous response left off. When this value is present in output, it indicates that there are more results to retrieve.
- On failure, responds with
SdkError<ListGraphSnapshotsError>
Source§impl Client
impl Client
Sourcepub fn list_graphs(&self) -> ListGraphsFluentBuilder
pub fn list_graphs(&self) -> ListGraphsFluentBuilder
Constructs a fluent builder for the ListGraphs operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falsePagination token used to paginate output.
When this value is provided as input, the service returns results from where the previous response left off. When this value is present in output, it indicates that there are more results to retrieve.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe total number of records to return in the command’s output.
If the total number of records available is more than the value specified,
nextTokenis provided in the command’s output. To resume pagination, provide thenextTokenoutput value in thenextTokenargument of a subsequent command. Do not use thenextTokenresponse element directly outside of the Amazon CLI.
- On success, responds with
ListGraphsOutputwith field(s):graphs(Vec::<GraphSummary>):A list of the graphs.
next_token(Option<String>):Pagination token used to paginate output.
When this value is provided as input, the service returns results from where the previous response left off. When this value is present in output, it indicates that there are more results to retrieve.
- On failure, responds with
SdkError<ListGraphsError>
Source§impl Client
impl Client
Sourcepub fn list_import_tasks(&self) -> ListImportTasksFluentBuilder
pub fn list_import_tasks(&self) -> ListImportTasksFluentBuilder
Constructs a fluent builder for the ListImportTasks operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falsePagination token used to paginate output.
When this value is provided as input, the service returns results from where the previous response left off. When this value is present in output, it indicates that there are more results to retrieve.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe total number of records to return in the command’s output.
If the total number of records available is more than the value specified,
nextTokenis provided in the command’s output. To resume pagination, provide thenextTokenoutput value in thenextTokenargument of a subsequent command. Do not use thenextTokenresponse element directly outside of the Amazon CLI.
- On success, responds with
ListImportTasksOutputwith field(s):tasks(Vec::<ImportTaskSummary>):The requested list of import tasks.
next_token(Option<String>):Pagination token used to paginate output.
When this value is provided as input, the service returns results from where the previous response left off. When this value is present in output, it indicates that there are more results to retrieve.
- On failure, responds with
SdkError<ListImportTasksError>
Source§impl Client
impl Client
Sourcepub fn list_private_graph_endpoints(
&self,
) -> ListPrivateGraphEndpointsFluentBuilder
pub fn list_private_graph_endpoints( &self, ) -> ListPrivateGraphEndpointsFluentBuilder
Constructs a fluent builder for the ListPrivateGraphEndpoints operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falsePagination token used to paginate output.
When this value is provided as input, the service returns results from where the previous response left off. When this value is present in output, it indicates that there are more results to retrieve.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe total number of records to return in the command’s output.
If the total number of records available is more than the value specified,
nextTokenis provided in the command’s output. To resume pagination, provide thenextTokenoutput value in thenextTokenargument of a subsequent command. Do not use thenextTokenresponse element directly outside of the Amazon CLI.
- On success, responds with
ListPrivateGraphEndpointsOutputwith field(s):private_graph_endpoints(Vec::<PrivateGraphEndpointSummary>):A list of private endpoints for the specified Neptune Analytics graph.
next_token(Option<String>):Pagination token used to paginate output.
When this value is provided as input, the service returns results from where the previous response left off. When this value is present in output, it indicates that there are more results to retrieve.
- On failure, responds with
SdkError<ListPrivateGraphEndpointsError>
Source§impl Client
impl Client
Sourcepub fn list_queries(&self) -> ListQueriesFluentBuilder
pub fn list_queries(&self) -> ListQueriesFluentBuilder
Constructs a fluent builder for the ListQueries operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
max_results(i32)/set_max_results(Option<i32>):
required: trueThe maximum number of results to be fetched by the API.
state(QueryStateInput)/set_state(Option<QueryStateInput>):
required: falseFiltered list of queries based on state.
- On success, responds with
ListQueriesOutputwith field(s):queries(Vec::<QuerySummary>):A list of current openCypher queries.
- On failure, responds with
SdkError<ListQueriesError>
Source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe ARN of the resource.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<HashMap::<String, String>>):The list of metadata tags associated with the resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
Source§impl Client
impl Client
Sourcepub fn reset_graph(&self) -> ResetGraphFluentBuilder
pub fn reset_graph(&self) -> ResetGraphFluentBuilder
Constructs a fluent builder for the ResetGraph operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueID of the graph to reset.
skip_snapshot(bool)/set_skip_snapshot(Option<bool>):
required: trueDetermines whether a final graph snapshot is created before the graph data is deleted. If set to
true, no graph snapshot is created. If set tofalse, a graph snapshot is created before the data is deleted.
- On success, responds with
ResetGraphOutputwith field(s):id(String):The unique identifier of the graph.
name(String):The name of the graph.
arn(String):The ARN associated with the graph.
status(Option<GraphStatus>):The status of the graph.
status_reason(Option<String>):The reason that the graph has this status.
create_time(Option<DateTime>):The time at which the graph was created.
provisioned_memory(Option<i32>):The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.
endpoint(Option<String>):The graph endpoint.
public_connectivity(Option<bool>):If
true, the graph has a public endpoint, otherwise not.vector_search_configuration(Option<VectorSearchConfiguration>):Specifies the number of dimensions for vector embeddings loaded into the graph. Max = 65535
replica_count(Option<i32>):The number of replicas for the graph.
kms_key_identifier(Option<String>):The ID of the KMS key used to encrypt and decrypt graph data.
source_snapshot_id(Option<String>):The ID of the snapshot from which the graph was created, if any.
deletion_protection(Option<bool>):If
true, deletion protection is enabled for the graph.build_number(Option<String>):The build number of the graph.
- On failure, responds with
SdkError<ResetGraphError>
Source§impl Client
impl Client
Sourcepub fn restore_graph_from_snapshot(
&self,
) -> RestoreGraphFromSnapshotFluentBuilder
pub fn restore_graph_from_snapshot( &self, ) -> RestoreGraphFromSnapshotFluentBuilder
Constructs a fluent builder for the RestoreGraphFromSnapshot operation.
- The fluent builder is configurable:
snapshot_identifier(impl Into<String>)/set_snapshot_identifier(Option<String>):
required: trueThe ID of the snapshot in question.
graph_name(impl Into<String>)/set_graph_name(Option<String>):
required: trueA name for the new Neptune Analytics graph to be created from the snapshot.
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.
provisioned_memory(i32)/set_provisioned_memory(Option<i32>):
required: falseThe provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.
Min = 16
deletion_protection(bool)/set_deletion_protection(Option<bool>):
required: falseA value that indicates whether the graph has deletion protection enabled. The graph can’t be deleted when deletion protection is enabled.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseAdds 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.
replica_count(i32)/set_replica_count(Option<i32>):
required: falseThe number of replicas in other AZs. Min =0, Max = 2, Default =1
Additional charges equivalent to the m-NCUs selected for the graph apply for each replica.
public_connectivity(bool)/set_public_connectivity(Option<bool>):
required: falseSpecifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (
trueto enable, orfalseto disable).
- On success, responds with
RestoreGraphFromSnapshotOutputwith field(s):id(String):The unique identifier of the graph.
name(String):The name of the graph.
arn(String):The ARN associated with the graph.
status(Option<GraphStatus>):The status of the graph.
status_reason(Option<String>):The reason that the graph has this status.
create_time(Option<DateTime>):The time at which the graph was created.
provisioned_memory(Option<i32>):The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.
endpoint(Option<String>):The graph endpoint.
public_connectivity(Option<bool>):If
true, the graph has a public endpoint, otherwise not.vector_search_configuration(Option<VectorSearchConfiguration>):Specifies the number of dimensions for vector embeddings loaded into the graph. Max = 65535
replica_count(Option<i32>):The number of replicas for the graph.
kms_key_identifier(Option<String>):The ID of the KMS key used to encrypt and decrypt graph data.
source_snapshot_id(Option<String>):The ID of the snapshot from which the graph was created, if any.
deletion_protection(Option<bool>):If
true, deletion protection is enabled for the graph.build_number(Option<String>):The build number of the graph.
- On failure, responds with
SdkError<RestoreGraphFromSnapshotError>
Source§impl Client
impl Client
Sourcepub fn start_export_task(&self) -> StartExportTaskFluentBuilder
pub fn start_export_task(&self) -> StartExportTaskFluentBuilder
Constructs a fluent builder for the StartExportTask operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe source graph identifier of the export task.
role_arn(impl Into<String>)/set_role_arn(Option<String>):
required: trueThe ARN of the IAM role that will allow data to be exported to the destination.
format(ExportFormat)/set_format(Option<ExportFormat>):
required: trueThe format of the export task.
destination(impl Into<String>)/set_destination(Option<String>):
required: trueThe Amazon S3 URI where data will be exported to.
kms_key_identifier(impl Into<String>)/set_kms_key_identifier(Option<String>):
required: trueThe KMS key identifier of the export task.
parquet_type(ParquetType)/set_parquet_type(Option<ParquetType>):
required: falseThe parquet type of the export task.
export_filter(ExportFilter)/set_export_filter(Option<ExportFilter>):
required: falseThe export filter of the export task.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseTags to be applied to the export task.
- On success, responds with
StartExportTaskOutputwith field(s):graph_id(String):The source graph identifier of the export task.
role_arn(String):The ARN of the IAM role that will allow data to be exported to the destination.
task_id(String):The unique identifier of the export task.
status(ExportTaskStatus):The current status of the export task.
format(ExportFormat):The format of the export task.
destination(String):The Amazon S3 URI of the export task where data will be exported to.
kms_key_identifier(String):The KMS key identifier of the export task.
parquet_type(Option<ParquetType>):The parquet type of the export task.
status_reason(Option<String>):The reason that the export task has this status value.
export_filter(Option<ExportFilter>):The export filter of the export task.
- On failure, responds with
SdkError<StartExportTaskError>
Source§impl Client
impl Client
Sourcepub fn start_graph(&self) -> StartGraphFluentBuilder
pub fn start_graph(&self) -> StartGraphFluentBuilder
Constructs a fluent builder for the StartGraph operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
- On success, responds with
StartGraphOutputwith field(s):id(String):The unique identifier of the graph.
name(String):The name of the graph.
arn(String):The ARN associated with the graph.
status(Option<GraphStatus>):The status of the graph.
status_reason(Option<String>):The reason that the graph has this status.
create_time(Option<DateTime>):The time at which the graph was created.
provisioned_memory(Option<i32>):The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.
endpoint(Option<String>):The graph endpoint.
public_connectivity(Option<bool>):If
true, the graph has a public endpoint, otherwise not.vector_search_configuration(Option<VectorSearchConfiguration>):Specifies the number of dimensions for vector embeddings loaded into the graph. Max = 65535
replica_count(Option<i32>):The number of replicas for the graph.
kms_key_identifier(Option<String>):The ID of the KMS key used to encrypt and decrypt graph data.
source_snapshot_id(Option<String>):The ID of the snapshot from which the graph was created, if it was created from a snapshot.
deletion_protection(Option<bool>):If
true, deletion protection is enabled for the graph.build_number(Option<String>):The build number of the graph.
- On failure, responds with
SdkError<StartGraphError>
Source§impl Client
impl Client
Sourcepub fn start_import_task(&self) -> StartImportTaskFluentBuilder
pub fn start_import_task(&self) -> StartImportTaskFluentBuilder
Constructs a fluent builder for the StartImportTask operation.
- The fluent builder is configurable:
import_options(ImportOptions)/set_import_options(Option<ImportOptions>):
required: falseOptions for how to perform an import.
fail_on_error(bool)/set_fail_on_error(Option<bool>):
required: falseIf set to true, the task halts when an import error is encountered. If set to false, the task skips the data that caused the error and continues if possible.
source(impl Into<String>)/set_source(Option<String>):
required: trueA URL identifying the location of the data to be imported. This can be an Amazon S3 path, or can point to a Neptune database endpoint or snapshot.
format(Format)/set_format(Option<Format>):
required: falseSpecifies the format of Amazon S3 data to be imported. Valid values are CSV, which identifies the Gremlin CSV format or OPENCYPHER, which identies the openCypher load format.
parquet_type(ParquetType)/set_parquet_type(Option<ParquetType>):
required: falseThe parquet type of the import task.
blank_node_handling(BlankNodeHandling)/set_blank_node_handling(Option<BlankNodeHandling>):
required: falseThe method to handle blank nodes in the dataset. Currently, only
convertToIriis supported, meaning blank nodes are converted to unique IRIs at load time. Must be provided when format isntriples. For more information, see Handling RDF values.graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
role_arn(impl Into<String>)/set_role_arn(Option<String>):
required: trueThe ARN of the IAM role that will allow access to the data that is to be imported.
- On success, responds with
StartImportTaskOutputwith field(s):graph_id(Option<String>):The unique identifier of the Neptune Analytics graph.
task_id(String):The unique identifier of the import task.
source(String):A URL identifying the location of the data to be imported. This can be an Amazon S3 path, or can point to a Neptune database endpoint or snapshot.
format(Option<Format>):Specifies the format of Amazon S3 data to be imported. Valid values are CSV, which identifies the Gremlin CSV format or OPENCYPHER, which identies the openCypher load format.
parquet_type(Option<ParquetType>):The parquet type of the import task.
role_arn(String):The ARN of the IAM role that will allow access to the data that is to be imported.
status(ImportTaskStatus):The status of the import task.
import_options(Option<ImportOptions>):Options for how to perform an import.
- On failure, responds with
SdkError<StartImportTaskError>
Source§impl Client
impl Client
Sourcepub fn stop_graph(&self) -> StopGraphFluentBuilder
pub fn stop_graph(&self) -> StopGraphFluentBuilder
Constructs a fluent builder for the StopGraph operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
- On success, responds with
StopGraphOutputwith field(s):id(String):The unique identifier of the graph.
name(String):The name of the graph.
arn(String):The ARN associated with the graph.
status(Option<GraphStatus>):The status of the graph.
status_reason(Option<String>):The reason that the graph has this status.
create_time(Option<DateTime>):The time at which the graph was created.
provisioned_memory(Option<i32>):The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.
endpoint(Option<String>):The graph endpoint.
public_connectivity(Option<bool>):If true, the graph has a public endpoint, otherwise not.
vector_search_configuration(Option<VectorSearchConfiguration>):Specifies the number of dimensions for vector embeddings loaded into the graph. Max = 65535
replica_count(Option<i32>):The number of replicas for the graph.
kms_key_identifier(Option<String>):The ID of the KMS key used to encrypt and decrypt graph data.
source_snapshot_id(Option<String>):The ID of the snapshot from which the graph was created, if it was created from a snapshot.
deletion_protection(Option<bool>):If
true, deletion protection is enabled for the graph.build_number(Option<String>):The build number of the graph.
- On failure, responds with
SdkError<StopGraphError>
Source§impl Client
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueARN of the resource for which tags need to be added.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: trueThe tags to be assigned to the Neptune Analytics resource.
The tags are metadata that are specified as a list of key-value pairs:
Key (string) – A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length. It can’t be prefixed with
aws:and can only contain the set of Unicode characters specified by this Java regular expression:“^([\p{L}\p{Z}\p{N}.:/=+-]*)$”).Value (string) – A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length. It can’t be prefixed with
aws:and can only contain the set of Unicode characters specified by this Java regular expression:“^([\p{L}\p{Z}\p{N}.:/=+-]*)$”).
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
Source§impl Client
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueARN of the resource whose tag needs to be removed.
tag_keys(impl Into<String>)/set_tag_keys(Option<Vec::<String>>):
required: trueTag keys for the tags to be removed.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_graph(&self) -> UpdateGraphFluentBuilder
pub fn update_graph(&self) -> UpdateGraphFluentBuilder
Constructs a fluent builder for the UpdateGraph operation.
- The fluent builder is configurable:
graph_identifier(impl Into<String>)/set_graph_identifier(Option<String>):
required: trueThe unique identifier of the Neptune Analytics graph.
public_connectivity(bool)/set_public_connectivity(Option<bool>):
required: falseSpecifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (
trueto enable, orfalseto disable.provisioned_memory(i32)/set_provisioned_memory(Option<i32>):
required: falseThe provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.
Min = 16
deletion_protection(bool)/set_deletion_protection(Option<bool>):
required: falseA value that indicates whether the graph has deletion protection enabled. The graph can’t be deleted when deletion protection is enabled.
- On success, responds with
UpdateGraphOutputwith field(s):id(String):The unique identifier of the graph.
name(String):The name of the graph.
arn(String):The ARN associated with the graph.
status(Option<GraphStatus>):The status of the graph.
status_reason(Option<String>):The reason that the graph has this status.
create_time(Option<DateTime>):The time at which the graph was created.
provisioned_memory(Option<i32>):The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.
endpoint(Option<String>):The graph endpoint.
public_connectivity(Option<bool>):If
true, the graph has a public endpoint, otherwise not.vector_search_configuration(Option<VectorSearchConfiguration>):Specifies the number of dimensions for vector embeddings loaded into the graph. Max = 65535
replica_count(Option<i32>):The number of replicas for the graph.
kms_key_identifier(Option<String>):The ID of the KMS key used to encrypt and decrypt graph data.
source_snapshot_id(Option<String>):The ID of the snapshot from which the graph was created, if any.
deletion_protection(Option<bool>):If
true, deletion protection is enabled for the graph.build_number(Option<String>):The build number of the graph.
- On failure, responds with
SdkError<UpdateGraphError>
Source§impl Client
impl Client
Sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_implconfigured. - Identity caching is enabled without a
sleep_implandtime_sourceconfigured. - No
behavior_versionis provided.
The panic message for each of these will have instructions on how to resolve them.
Source§impl Client
impl Client
Sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it. - This method will panic if no
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.
Trait Implementations§
Source§impl Waiters for Client
impl Waiters for Client
Source§fn wait_until_export_task_successful(&self) -> ExportTaskSuccessfulFluentBuilder
fn wait_until_export_task_successful(&self) -> ExportTaskSuccessfulFluentBuilder
Source§fn wait_until_export_task_cancelled(&self) -> ExportTaskCancelledFluentBuilder
fn wait_until_export_task_cancelled(&self) -> ExportTaskCancelledFluentBuilder
Source§fn wait_until_graph_available(&self) -> GraphAvailableFluentBuilder
fn wait_until_graph_available(&self) -> GraphAvailableFluentBuilder
Source§fn wait_until_graph_deleted(&self) -> GraphDeletedFluentBuilder
fn wait_until_graph_deleted(&self) -> GraphDeletedFluentBuilder
Source§fn wait_until_graph_stopped(&self) -> GraphStoppedFluentBuilder
fn wait_until_graph_stopped(&self) -> GraphStoppedFluentBuilder
Source§fn wait_until_graph_snapshot_available(
&self,
) -> GraphSnapshotAvailableFluentBuilder
fn wait_until_graph_snapshot_available( &self, ) -> GraphSnapshotAvailableFluentBuilder
Source§fn wait_until_graph_snapshot_deleted(&self) -> GraphSnapshotDeletedFluentBuilder
fn wait_until_graph_snapshot_deleted(&self) -> GraphSnapshotDeletedFluentBuilder
Source§fn wait_until_import_task_successful(&self) -> ImportTaskSuccessfulFluentBuilder
fn wait_until_import_task_successful(&self) -> ImportTaskSuccessfulFluentBuilder
Source§fn wait_until_import_task_cancelled(&self) -> ImportTaskCancelledFluentBuilder
fn wait_until_import_task_cancelled(&self) -> ImportTaskCancelledFluentBuilder
Source§fn wait_until_private_graph_endpoint_available(
&self,
) -> PrivateGraphEndpointAvailableFluentBuilder
fn wait_until_private_graph_endpoint_available( &self, ) -> PrivateGraphEndpointAvailableFluentBuilder
Source§fn wait_until_private_graph_endpoint_deleted(
&self,
) -> PrivateGraphEndpointDeletedFluentBuilder
fn wait_until_private_graph_endpoint_deleted( &self, ) -> PrivateGraphEndpointDeletedFluentBuilder
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);