clients/client-neptune/README.md
AWS SDK for JavaScript Neptune Client for Node.js, Browser and React Native.
<fullname>Amazon Neptune</fullname>
<p>Amazon Neptune is a fast, reliable, fully-managed graph database service that makes it easy to build and run applications that work with highly connected datasets. The core of Amazon Neptune is a purpose-built, high-performance graph database engine optimized for storing billions of relationships and querying the graph with milliseconds latency. Amazon Neptune supports popular graph models Property Graph and W3C's RDF, and their respective query languages Apache TinkerPop Gremlin and SPARQL, allowing you to easily build queries that efficiently navigate highly connected datasets. Neptune powers graph use cases such as recommendation engines, fraud detection, knowledge graphs, drug discovery, and network security.</p> <p>This interface reference for Amazon Neptune contains documentation for a programming or command line interface you can use to manage Amazon Neptune. Note that Amazon Neptune is asynchronous, which means that some interfaces might require techniques such as polling or callback functions to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a command is applied immediately, on the next instance reboot, or during the maintenance window. The reference structure is as follows, and we list following some related topics from the user guide.</p>To install this package, use the CLI of your favorite package manager:
npm install @aws-sdk/client-neptuneyarn add @aws-sdk/client-neptunepnpm add @aws-sdk/client-neptuneThe AWS SDK is modulized by clients and commands.
To send a request, you only need to import the NeptuneClient and
the commands you need, for example ListTagsForResourceCommand:
// ES5 example
const { NeptuneClient, ListTagsForResourceCommand } = require("@aws-sdk/client-neptune");
// ES6+ example
import { NeptuneClient, ListTagsForResourceCommand } from "@aws-sdk/client-neptune";
To send a request:
send operation on the client, providing the command object as input.const client = new NeptuneClient({ region: "REGION" });
const params = { /** input parameters */ };
const command = new ListTagsForResourceCommand(params);
We recommend using the await operator to wait for the promise returned by send operation as follows:
// async/await.
try {
const data = await client.send(command);
// process data.
} catch (error) {
// error handling.
} finally {
// finally.
}
You can also use Promise chaining.
client
.send(command)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
})
.finally(() => {
// finally.
});
The aggregated client class is exported from the same package, but without the "Client" suffix.
Neptune extends NeptuneClient and additionally supports all operations, waiters, and paginators as methods.
This style may be familiar to you from the AWS SDK for JavaScript v2.
If you are bundling the AWS SDK, we recommend using only the bare-bones client (NeptuneClient).
More details are in the blog post on
modular packages in AWS SDK for JavaScript.
import { Neptune } from "@aws-sdk/client-neptune";
const client = new Neptune({ region: "REGION" });
// async/await.
try {
const data = await client.listTagsForResource(params);
// process data.
} catch (error) {
// error handling.
}
// Promises.
client
.listTagsForResource(params)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
});
// callbacks (not recommended).
client.listTagsForResource(params, (err, data) => {
// process err and data.
});
When the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).
try {
const data = await client.send(command);
// process data.
} catch (error) {
const { requestId, cfId, extendedRequestId } = error.$metadata;
console.log({ requestId, cfId, extendedRequestId });
/**
* The keys within exceptions are also parsed.
* You can access them by specifying exception names:
* if (error.name === 'SomeServiceException') {
* const value = error.specialKeyInException;
* }
*/
}
See also docs/ERROR_HANDLING.
Please use these community resources for getting help. We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
aws-sdk-js
on AWS Developer Blog.aws-sdk-js.To test your universal JavaScript code in Node.js, browser and react-native environments, visit our code samples repo.
This client code is generated automatically. Any modifications will be overwritten the next time the @aws-sdk/client-neptune package is updated.
To contribute to client you can check our generate clients scripts.
This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.
Command API Reference / Input / Output
</details> <details> <summary> AddSourceIdentifierToSubscription </summary>Command API Reference / Input / Output
</details> <details> <summary> AddTagsToResource </summary>Command API Reference / Input / Output
</details> <details> <summary> ApplyPendingMaintenanceAction </summary>Command API Reference / Input / Output
</details> <details> <summary> CopyDBClusterParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CopyDBClusterSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> CopyDBParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBClusterEndpoint </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBClusterParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBClusterSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBInstance </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDBSubnetGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateEventSubscription </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateGlobalCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBClusterEndpoint </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBClusterParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBClusterSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBInstance </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDBSubnetGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteEventSubscription </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteGlobalCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBClusterEndpoints </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBClusterParameterGroups </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBClusterParameters </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBClusters </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBClusterSnapshotAttributes </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBClusterSnapshots </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBEngineVersions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBInstances </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBParameterGroups </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBParameters </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeDBSubnetGroups </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeEngineDefaultClusterParameters </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeEngineDefaultParameters </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeEventCategories </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeEvents </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeEventSubscriptions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeGlobalClusters </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeOrderableDBInstanceOptions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribePendingMaintenanceActions </summary>Command API Reference / Input / Output
</details> <details> <summary> DescribeValidDBInstanceModifications </summary>Command API Reference / Input / Output
</details> <details> <summary> FailoverDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> FailoverGlobalCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> ListTagsForResource </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBClusterEndpoint </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBClusterParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBClusterSnapshotAttribute </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBInstance </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyDBSubnetGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyEventSubscription </summary>Command API Reference / Input / Output
</details> <details> <summary> ModifyGlobalCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> PromoteReadReplicaDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> RebootDBInstance </summary>Command API Reference / Input / Output
</details> <details> <summary> RemoveFromGlobalCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> RemoveRoleFromDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> RemoveSourceIdentifierFromSubscription </summary>Command API Reference / Input / Output
</details> <details> <summary> RemoveTagsFromResource </summary>Command API Reference / Input / Output
</details> <details> <summary> ResetDBClusterParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> ResetDBParameterGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> RestoreDBClusterFromSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> RestoreDBClusterToPointInTime </summary>Command API Reference / Input / Output
</details> <details> <summary> StartDBCluster </summary>Command API Reference / Input / Output
</details> <details> <summary> StopDBCluster </summary> </details> <details> <summary> SwitchoverGlobalCluster </summary> </details>