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)

126 lines 7.41 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.Cluster = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * The AWS::MemoryDB::Cluster resource creates an Amazon MemoryDB Cluster. */ class Cluster extends pulumi.CustomResource { /** * Get an existing Cluster 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 Cluster(name, undefined, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Cluster. 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'] === Cluster.__pulumiType; } /** * Create a Cluster 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) { if ((!args || args.aclName === undefined) && !opts.urn) { throw new Error("Missing required property 'aclName'"); } if ((!args || args.nodeType === undefined) && !opts.urn) { throw new Error("Missing required property 'nodeType'"); } resourceInputs["aclName"] = args ? args.aclName : undefined; resourceInputs["autoMinorVersionUpgrade"] = args ? args.autoMinorVersionUpgrade : undefined; resourceInputs["clusterEndpoint"] = args ? args.clusterEndpoint : undefined; resourceInputs["clusterName"] = args ? args.clusterName : undefined; resourceInputs["dataTiering"] = args ? args.dataTiering : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["engine"] = args ? args.engine : undefined; resourceInputs["engineVersion"] = args ? args.engineVersion : undefined; resourceInputs["finalSnapshotName"] = args ? args.finalSnapshotName : undefined; resourceInputs["ipDiscovery"] = args ? args.ipDiscovery : undefined; resourceInputs["kmsKeyId"] = args ? args.kmsKeyId : undefined; resourceInputs["maintenanceWindow"] = args ? args.maintenanceWindow : undefined; resourceInputs["multiRegionClusterName"] = args ? args.multiRegionClusterName : undefined; resourceInputs["networkType"] = args ? args.networkType : undefined; resourceInputs["nodeType"] = args ? args.nodeType : undefined; resourceInputs["numReplicasPerShard"] = args ? args.numReplicasPerShard : undefined; resourceInputs["numShards"] = args ? args.numShards : undefined; resourceInputs["parameterGroupName"] = args ? args.parameterGroupName : undefined; resourceInputs["port"] = args ? args.port : undefined; resourceInputs["securityGroupIds"] = args ? args.securityGroupIds : undefined; resourceInputs["snapshotArns"] = args ? args.snapshotArns : undefined; resourceInputs["snapshotName"] = args ? args.snapshotName : undefined; resourceInputs["snapshotRetentionLimit"] = args ? args.snapshotRetentionLimit : undefined; resourceInputs["snapshotWindow"] = args ? args.snapshotWindow : undefined; resourceInputs["snsTopicArn"] = args ? args.snsTopicArn : undefined; resourceInputs["snsTopicStatus"] = args ? args.snsTopicStatus : undefined; resourceInputs["subnetGroupName"] = args ? args.subnetGroupName : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["tlsEnabled"] = args ? args.tlsEnabled : undefined; resourceInputs["arn"] = undefined /*out*/; resourceInputs["parameterGroupStatus"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; } else { resourceInputs["aclName"] = undefined /*out*/; resourceInputs["arn"] = undefined /*out*/; resourceInputs["autoMinorVersionUpgrade"] = undefined /*out*/; resourceInputs["clusterEndpoint"] = undefined /*out*/; resourceInputs["clusterName"] = undefined /*out*/; resourceInputs["dataTiering"] = undefined /*out*/; resourceInputs["description"] = undefined /*out*/; resourceInputs["engine"] = undefined /*out*/; resourceInputs["engineVersion"] = undefined /*out*/; resourceInputs["finalSnapshotName"] = undefined /*out*/; resourceInputs["ipDiscovery"] = undefined /*out*/; resourceInputs["kmsKeyId"] = undefined /*out*/; resourceInputs["maintenanceWindow"] = undefined /*out*/; resourceInputs["multiRegionClusterName"] = undefined /*out*/; resourceInputs["networkType"] = undefined /*out*/; resourceInputs["nodeType"] = undefined /*out*/; resourceInputs["numReplicasPerShard"] = undefined /*out*/; resourceInputs["numShards"] = undefined /*out*/; resourceInputs["parameterGroupName"] = undefined /*out*/; resourceInputs["parameterGroupStatus"] = undefined /*out*/; resourceInputs["port"] = undefined /*out*/; resourceInputs["securityGroupIds"] = undefined /*out*/; resourceInputs["snapshotArns"] = undefined /*out*/; resourceInputs["snapshotName"] = undefined /*out*/; resourceInputs["snapshotRetentionLimit"] = undefined /*out*/; resourceInputs["snapshotWindow"] = undefined /*out*/; resourceInputs["snsTopicArn"] = undefined /*out*/; resourceInputs["snsTopicStatus"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["subnetGroupName"] = undefined /*out*/; resourceInputs["tags"] = undefined /*out*/; resourceInputs["tlsEnabled"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const replaceOnChanges = { replaceOnChanges: ["clusterName", "dataTiering", "kmsKeyId", "multiRegionClusterName", "networkType", "port", "snapshotArns[*]", "snapshotName", "subnetGroupName", "tlsEnabled"] }; opts = pulumi.mergeOptions(opts, replaceOnChanges); super(Cluster.__pulumiType, name, resourceInputs, opts); } } exports.Cluster = Cluster; /** @internal */ Cluster.__pulumiType = 'aws-native:memorydb:Cluster'; //# sourceMappingURL=cluster.js.map