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 6.84 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, { ...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?.aclName === undefined && !opts.urn) { throw new Error("Missing required property 'aclName'"); } if (args?.nodeType === undefined && !opts.urn) { throw new Error("Missing required property 'nodeType'"); } resourceInputs["aclName"] = args?.aclName; resourceInputs["autoMinorVersionUpgrade"] = args?.autoMinorVersionUpgrade; resourceInputs["clusterEndpoint"] = args?.clusterEndpoint; resourceInputs["clusterName"] = args?.clusterName; resourceInputs["dataTiering"] = args?.dataTiering; resourceInputs["description"] = args?.description; resourceInputs["engine"] = args?.engine; resourceInputs["engineVersion"] = args?.engineVersion; resourceInputs["finalSnapshotName"] = args?.finalSnapshotName; resourceInputs["ipDiscovery"] = args?.ipDiscovery; resourceInputs["kmsKeyId"] = args?.kmsKeyId; resourceInputs["maintenanceWindow"] = args?.maintenanceWindow; resourceInputs["multiRegionClusterName"] = args?.multiRegionClusterName; resourceInputs["networkType"] = args?.networkType; resourceInputs["nodeType"] = args?.nodeType; resourceInputs["numReplicasPerShard"] = args?.numReplicasPerShard; resourceInputs["numShards"] = args?.numShards; resourceInputs["parameterGroupName"] = args?.parameterGroupName; resourceInputs["port"] = args?.port; resourceInputs["securityGroupIds"] = args?.securityGroupIds; resourceInputs["snapshotArns"] = args?.snapshotArns; resourceInputs["snapshotName"] = args?.snapshotName; resourceInputs["snapshotRetentionLimit"] = args?.snapshotRetentionLimit; resourceInputs["snapshotWindow"] = args?.snapshotWindow; resourceInputs["snsTopicArn"] = args?.snsTopicArn; resourceInputs["snsTopicStatus"] = args?.snsTopicStatus; resourceInputs["subnetGroupName"] = args?.subnetGroupName; resourceInputs["tags"] = args?.tags; resourceInputs["tlsEnabled"] = args?.tlsEnabled; 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