@pulumi/aws-native
Version:
The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)
114 lines • 7.11 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.DbCluster = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* The AWS::Neptune::DBCluster resource creates an Amazon Neptune DB cluster.
*/
class DbCluster extends pulumi.CustomResource {
/**
* Get an existing DbCluster 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 opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, opts) {
return new DbCluster(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of DbCluster. 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'] === DbCluster.__pulumiType;
}
/**
* Create a DbCluster resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name, args, opts) {
let resourceInputs = {};
opts = opts || {};
if (!opts.id) {
resourceInputs["associatedRoles"] = args ? args.associatedRoles : undefined;
resourceInputs["availabilityZones"] = args ? args.availabilityZones : undefined;
resourceInputs["backupRetentionPeriod"] = args ? args.backupRetentionPeriod : undefined;
resourceInputs["copyTagsToSnapshot"] = args ? args.copyTagsToSnapshot : undefined;
resourceInputs["dbClusterIdentifier"] = args ? args.dbClusterIdentifier : undefined;
resourceInputs["dbClusterParameterGroupName"] = args ? args.dbClusterParameterGroupName : undefined;
resourceInputs["dbInstanceParameterGroupName"] = args ? args.dbInstanceParameterGroupName : undefined;
resourceInputs["dbPort"] = args ? args.dbPort : undefined;
resourceInputs["dbSubnetGroupName"] = args ? args.dbSubnetGroupName : undefined;
resourceInputs["deletionProtection"] = args ? args.deletionProtection : undefined;
resourceInputs["enableCloudwatchLogsExports"] = args ? args.enableCloudwatchLogsExports : undefined;
resourceInputs["engineVersion"] = args ? args.engineVersion : undefined;
resourceInputs["iamAuthEnabled"] = args ? args.iamAuthEnabled : undefined;
resourceInputs["kmsKeyId"] = args ? args.kmsKeyId : undefined;
resourceInputs["preferredBackupWindow"] = args ? args.preferredBackupWindow : undefined;
resourceInputs["preferredMaintenanceWindow"] = args ? args.preferredMaintenanceWindow : undefined;
resourceInputs["restoreToTime"] = args ? args.restoreToTime : undefined;
resourceInputs["restoreType"] = args ? args.restoreType : undefined;
resourceInputs["serverlessScalingConfiguration"] = args ? args.serverlessScalingConfiguration : undefined;
resourceInputs["snapshotIdentifier"] = args ? args.snapshotIdentifier : undefined;
resourceInputs["sourceDbClusterIdentifier"] = args ? args.sourceDbClusterIdentifier : undefined;
resourceInputs["storageEncrypted"] = args ? args.storageEncrypted : undefined;
resourceInputs["tags"] = args ? args.tags : undefined;
resourceInputs["useLatestRestorableTime"] = args ? args.useLatestRestorableTime : undefined;
resourceInputs["vpcSecurityGroupIds"] = args ? args.vpcSecurityGroupIds : undefined;
resourceInputs["clusterResourceId"] = undefined /*out*/;
resourceInputs["endpoint"] = undefined /*out*/;
resourceInputs["port"] = undefined /*out*/;
resourceInputs["readEndpoint"] = undefined /*out*/;
}
else {
resourceInputs["associatedRoles"] = undefined /*out*/;
resourceInputs["availabilityZones"] = undefined /*out*/;
resourceInputs["backupRetentionPeriod"] = undefined /*out*/;
resourceInputs["clusterResourceId"] = undefined /*out*/;
resourceInputs["copyTagsToSnapshot"] = undefined /*out*/;
resourceInputs["dbClusterIdentifier"] = undefined /*out*/;
resourceInputs["dbClusterParameterGroupName"] = undefined /*out*/;
resourceInputs["dbInstanceParameterGroupName"] = undefined /*out*/;
resourceInputs["dbPort"] = undefined /*out*/;
resourceInputs["dbSubnetGroupName"] = undefined /*out*/;
resourceInputs["deletionProtection"] = undefined /*out*/;
resourceInputs["enableCloudwatchLogsExports"] = undefined /*out*/;
resourceInputs["endpoint"] = undefined /*out*/;
resourceInputs["engineVersion"] = undefined /*out*/;
resourceInputs["iamAuthEnabled"] = undefined /*out*/;
resourceInputs["kmsKeyId"] = undefined /*out*/;
resourceInputs["port"] = undefined /*out*/;
resourceInputs["preferredBackupWindow"] = undefined /*out*/;
resourceInputs["preferredMaintenanceWindow"] = undefined /*out*/;
resourceInputs["readEndpoint"] = undefined /*out*/;
resourceInputs["restoreToTime"] = undefined /*out*/;
resourceInputs["restoreType"] = undefined /*out*/;
resourceInputs["serverlessScalingConfiguration"] = undefined /*out*/;
resourceInputs["snapshotIdentifier"] = undefined /*out*/;
resourceInputs["sourceDbClusterIdentifier"] = undefined /*out*/;
resourceInputs["storageEncrypted"] = undefined /*out*/;
resourceInputs["tags"] = undefined /*out*/;
resourceInputs["useLatestRestorableTime"] = undefined /*out*/;
resourceInputs["vpcSecurityGroupIds"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const replaceOnChanges = { replaceOnChanges: ["availabilityZones[*]", "dbClusterIdentifier", "dbSubnetGroupName", "kmsKeyId", "restoreToTime", "restoreType", "snapshotIdentifier", "sourceDbClusterIdentifier", "storageEncrypted", "useLatestRestorableTime"] };
opts = pulumi.mergeOptions(opts, replaceOnChanges);
super(DbCluster.__pulumiType, name, resourceInputs, opts);
}
}
exports.DbCluster = DbCluster;
/** @internal */
DbCluster.__pulumiType = 'aws-native:neptune:DbCluster';
//# sourceMappingURL=dbCluster.js.map