UNPKG

@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 6.63 kB
"use strict"; // *** 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, { ...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?.associatedRoles; resourceInputs["availabilityZones"] = args?.availabilityZones; resourceInputs["backupRetentionPeriod"] = args?.backupRetentionPeriod; resourceInputs["copyTagsToSnapshot"] = args?.copyTagsToSnapshot; resourceInputs["dbClusterIdentifier"] = args?.dbClusterIdentifier; resourceInputs["dbClusterParameterGroupName"] = args?.dbClusterParameterGroupName; resourceInputs["dbInstanceParameterGroupName"] = args?.dbInstanceParameterGroupName; resourceInputs["dbPort"] = args?.dbPort; resourceInputs["dbSubnetGroupName"] = args?.dbSubnetGroupName; resourceInputs["deletionProtection"] = args?.deletionProtection; resourceInputs["enableCloudwatchLogsExports"] = args?.enableCloudwatchLogsExports; resourceInputs["engineVersion"] = args?.engineVersion; resourceInputs["iamAuthEnabled"] = args?.iamAuthEnabled; resourceInputs["kmsKeyId"] = args?.kmsKeyId; resourceInputs["preferredBackupWindow"] = args?.preferredBackupWindow; resourceInputs["preferredMaintenanceWindow"] = args?.preferredMaintenanceWindow; resourceInputs["restoreToTime"] = args?.restoreToTime; resourceInputs["restoreType"] = args?.restoreType; resourceInputs["serverlessScalingConfiguration"] = args?.serverlessScalingConfiguration; resourceInputs["snapshotIdentifier"] = args?.snapshotIdentifier; resourceInputs["sourceDbClusterIdentifier"] = args?.sourceDbClusterIdentifier; resourceInputs["storageEncrypted"] = args?.storageEncrypted; resourceInputs["tags"] = args?.tags; resourceInputs["useLatestRestorableTime"] = args?.useLatestRestorableTime; resourceInputs["vpcSecurityGroupIds"] = args?.vpcSecurityGroupIds; 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