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)

149 lines • 9.15 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.ReplicationGroup = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource type definition for AWS::ElastiCache::ReplicationGroup */ class ReplicationGroup extends pulumi.CustomResource { /** * Get an existing ReplicationGroup 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 ReplicationGroup(name, undefined, { ...opts, id: id }); } /** * Returns true if the given object is an instance of ReplicationGroup. 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'] === ReplicationGroup.__pulumiType; } /** * Create a ReplicationGroup 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?.replicationGroupDescription === undefined && !opts.urn) { throw new Error("Missing required property 'replicationGroupDescription'"); } resourceInputs["atRestEncryptionEnabled"] = args?.atRestEncryptionEnabled; resourceInputs["authToken"] = args?.authToken; resourceInputs["autoMinorVersionUpgrade"] = args?.autoMinorVersionUpgrade; resourceInputs["automaticFailoverEnabled"] = args?.automaticFailoverEnabled; resourceInputs["cacheNodeType"] = args?.cacheNodeType; resourceInputs["cacheParameterGroupName"] = args?.cacheParameterGroupName; resourceInputs["cacheSecurityGroupNames"] = args?.cacheSecurityGroupNames; resourceInputs["cacheSubnetGroupName"] = args?.cacheSubnetGroupName; resourceInputs["clusterMode"] = args?.clusterMode; resourceInputs["dataTieringEnabled"] = args?.dataTieringEnabled; resourceInputs["durability"] = args?.durability; resourceInputs["engine"] = args?.engine; resourceInputs["engineVersion"] = args?.engineVersion; resourceInputs["globalReplicationGroupId"] = args?.globalReplicationGroupId; resourceInputs["ipDiscovery"] = args?.ipDiscovery; resourceInputs["kmsKeyId"] = args?.kmsKeyId; resourceInputs["logDeliveryConfigurations"] = args?.logDeliveryConfigurations; resourceInputs["multiAzEnabled"] = args?.multiAzEnabled; resourceInputs["networkType"] = args?.networkType; resourceInputs["nodeGroupConfiguration"] = args?.nodeGroupConfiguration; resourceInputs["notificationTopicArn"] = args?.notificationTopicArn; resourceInputs["numCacheClusters"] = args?.numCacheClusters; resourceInputs["numNodeGroups"] = args?.numNodeGroups; resourceInputs["port"] = args?.port; resourceInputs["preferredCacheClusterAzs"] = args?.preferredCacheClusterAzs; resourceInputs["preferredMaintenanceWindow"] = args?.preferredMaintenanceWindow; resourceInputs["primaryClusterId"] = args?.primaryClusterId; resourceInputs["replicasPerNodeGroup"] = args?.replicasPerNodeGroup; resourceInputs["replicationGroupDescription"] = args?.replicationGroupDescription; resourceInputs["replicationGroupId"] = args?.replicationGroupId; resourceInputs["securityGroupIds"] = args?.securityGroupIds; resourceInputs["snapshotArns"] = args?.snapshotArns; resourceInputs["snapshotName"] = args?.snapshotName; resourceInputs["snapshotRetentionLimit"] = args?.snapshotRetentionLimit; resourceInputs["snapshotWindow"] = args?.snapshotWindow; resourceInputs["snapshottingClusterId"] = args?.snapshottingClusterId; resourceInputs["tags"] = args?.tags; resourceInputs["transitEncryptionEnabled"] = args?.transitEncryptionEnabled; resourceInputs["transitEncryptionMode"] = args?.transitEncryptionMode; resourceInputs["userGroupIds"] = args?.userGroupIds; resourceInputs["configurationEndPoint"] = undefined /*out*/; resourceInputs["effectiveDurability"] = undefined /*out*/; resourceInputs["primaryEndPoint"] = undefined /*out*/; resourceInputs["readEndPoint"] = undefined /*out*/; resourceInputs["readerEndPoint"] = undefined /*out*/; } else { resourceInputs["atRestEncryptionEnabled"] = undefined /*out*/; resourceInputs["authToken"] = undefined /*out*/; resourceInputs["autoMinorVersionUpgrade"] = undefined /*out*/; resourceInputs["automaticFailoverEnabled"] = undefined /*out*/; resourceInputs["cacheNodeType"] = undefined /*out*/; resourceInputs["cacheParameterGroupName"] = undefined /*out*/; resourceInputs["cacheSecurityGroupNames"] = undefined /*out*/; resourceInputs["cacheSubnetGroupName"] = undefined /*out*/; resourceInputs["clusterMode"] = undefined /*out*/; resourceInputs["configurationEndPoint"] = undefined /*out*/; resourceInputs["dataTieringEnabled"] = undefined /*out*/; resourceInputs["durability"] = undefined /*out*/; resourceInputs["effectiveDurability"] = undefined /*out*/; resourceInputs["engine"] = undefined /*out*/; resourceInputs["engineVersion"] = undefined /*out*/; resourceInputs["globalReplicationGroupId"] = undefined /*out*/; resourceInputs["ipDiscovery"] = undefined /*out*/; resourceInputs["kmsKeyId"] = undefined /*out*/; resourceInputs["logDeliveryConfigurations"] = undefined /*out*/; resourceInputs["multiAzEnabled"] = undefined /*out*/; resourceInputs["networkType"] = undefined /*out*/; resourceInputs["nodeGroupConfiguration"] = undefined /*out*/; resourceInputs["notificationTopicArn"] = undefined /*out*/; resourceInputs["numCacheClusters"] = undefined /*out*/; resourceInputs["numNodeGroups"] = undefined /*out*/; resourceInputs["port"] = undefined /*out*/; resourceInputs["preferredCacheClusterAzs"] = undefined /*out*/; resourceInputs["preferredMaintenanceWindow"] = undefined /*out*/; resourceInputs["primaryClusterId"] = undefined /*out*/; resourceInputs["primaryEndPoint"] = undefined /*out*/; resourceInputs["readEndPoint"] = undefined /*out*/; resourceInputs["readerEndPoint"] = undefined /*out*/; resourceInputs["replicasPerNodeGroup"] = undefined /*out*/; resourceInputs["replicationGroupDescription"] = undefined /*out*/; resourceInputs["replicationGroupId"] = undefined /*out*/; resourceInputs["securityGroupIds"] = undefined /*out*/; resourceInputs["snapshotArns"] = undefined /*out*/; resourceInputs["snapshotName"] = undefined /*out*/; resourceInputs["snapshotRetentionLimit"] = undefined /*out*/; resourceInputs["snapshotWindow"] = undefined /*out*/; resourceInputs["snapshottingClusterId"] = undefined /*out*/; resourceInputs["tags"] = undefined /*out*/; resourceInputs["transitEncryptionEnabled"] = undefined /*out*/; resourceInputs["transitEncryptionMode"] = undefined /*out*/; resourceInputs["userGroupIds"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const replaceOnChanges = { replaceOnChanges: ["atRestEncryptionEnabled", "cacheSubnetGroupName", "dataTieringEnabled", "globalReplicationGroupId", "kmsKeyId", "networkType", "port", "preferredCacheClusterAzs[*]", "replicationGroupId", "snapshotArns[*]", "snapshotName"] }; opts = pulumi.mergeOptions(opts, replaceOnChanges); super(ReplicationGroup.__pulumiType, name, resourceInputs, opts); } } exports.ReplicationGroup = ReplicationGroup; /** @internal */ ReplicationGroup.__pulumiType = 'aws-native:elasticache:ReplicationGroup'; //# sourceMappingURL=replicationGroup.js.map