@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
117 lines • 5 kB
JavaScript
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Graph = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* The `aws.neptunegraph.Graph` resource creates an Amazon Analytics Graph.
*
* ## Example Usage
*
* ### Neptune Graph (with Vector Search configuration)
*
* Creates a Neptune Graph with 16GB provisioned memory, vector search capability with 128 dimensions, and a single replica for high availability.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* // Create Neptune Graph
* const example = new aws.neptunegraph.Graph("example", {
* graphName: "example-graph-test-20250203",
* provisionedMemory: 16,
* deletionProtection: false,
* publicConnectivity: false,
* replicaCount: 1,
* kmsKeyIdentifier: "arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012",
* vectorSearchConfiguration: {
* vectorSearchDimension: 128,
* },
* tags: {
* Environment: "Development",
* ModifiedBy: "AWS",
* },
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import `aws_neptunegraph_graph` using the graph identifier. For example:
*
* ```sh
* $ pulumi import aws:neptunegraph/graph:Graph example "graph_id"
* ```
*/
class Graph extends pulumi.CustomResource {
/**
* Get an existing Graph resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new Graph(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of Graph. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === Graph.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["arn"] = state?.arn;
resourceInputs["deletionProtection"] = state?.deletionProtection;
resourceInputs["endpoint"] = state?.endpoint;
resourceInputs["graphName"] = state?.graphName;
resourceInputs["graphNamePrefix"] = state?.graphNamePrefix;
resourceInputs["kmsKeyIdentifier"] = state?.kmsKeyIdentifier;
resourceInputs["provisionedMemory"] = state?.provisionedMemory;
resourceInputs["publicConnectivity"] = state?.publicConnectivity;
resourceInputs["region"] = state?.region;
resourceInputs["replicaCount"] = state?.replicaCount;
resourceInputs["tags"] = state?.tags;
resourceInputs["tagsAll"] = state?.tagsAll;
resourceInputs["timeouts"] = state?.timeouts;
resourceInputs["vectorSearchConfiguration"] = state?.vectorSearchConfiguration;
}
else {
const args = argsOrState;
if (args?.provisionedMemory === undefined && !opts.urn) {
throw new Error("Missing required property 'provisionedMemory'");
}
resourceInputs["deletionProtection"] = args?.deletionProtection;
resourceInputs["graphName"] = args?.graphName;
resourceInputs["graphNamePrefix"] = args?.graphNamePrefix;
resourceInputs["kmsKeyIdentifier"] = args?.kmsKeyIdentifier;
resourceInputs["provisionedMemory"] = args?.provisionedMemory;
resourceInputs["publicConnectivity"] = args?.publicConnectivity;
resourceInputs["region"] = args?.region;
resourceInputs["replicaCount"] = args?.replicaCount;
resourceInputs["tags"] = args?.tags;
resourceInputs["timeouts"] = args?.timeouts;
resourceInputs["vectorSearchConfiguration"] = args?.vectorSearchConfiguration;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["endpoint"] = undefined /*out*/;
resourceInputs["tagsAll"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Graph.__pulumiType, name, resourceInputs, opts);
}
}
exports.Graph = Graph;
/** @internal */
Graph.__pulumiType = 'aws:neptunegraph/graph:Graph';
//# sourceMappingURL=graph.js.map
;