File Explorer

/proc/self/root/var/runtime/node_modules/@aws-sdk/client-elasticache/dist-cjs

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

index.js68.5 KB · 1793 lines
'use strict'; var client$1 = require('@aws-sdk/core/client');var core = require('@smithy/core');var client = require('@smithy/core/client');var config = require('@smithy/core/config');var endpoints = require('@smithy/core/endpoints');var protocols = require('@smithy/core/protocols');var retry = require('@smithy/core/retry');var schema = require('@smithy/core/schema');var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');var runtimeConfig = require('./runtimeConfig');var schemas_0 = require('./schemas/schemas_0');var errors = require('./models/errors');var ElastiCacheServiceException = require('./models/ElastiCacheServiceException'); const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "elasticache",    });};const commonParams = {    UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },    Endpoint: { type: "builtInParams", name: "endpoint" },    Region: { type: "builtInParams", name: "region" },    UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },}; const getHttpAuthExtensionConfiguration = (runtimeConfig) => {    const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;    let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;    let _credentials = runtimeConfig.credentials;    return {        setHttpAuthScheme(httpAuthScheme) {            const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);            if (index === -1) {                _httpAuthSchemes.push(httpAuthScheme);            }            else {                _httpAuthSchemes.splice(index, 1, httpAuthScheme);            }        },        httpAuthSchemes() {            return _httpAuthSchemes;        },        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {            _httpAuthSchemeProvider = httpAuthSchemeProvider;        },        httpAuthSchemeProvider() {            return _httpAuthSchemeProvider;        },        setCredentials(credentials) {            _credentials = credentials;        },        credentials() {            return _credentials;        },    };};const resolveHttpAuthRuntimeConfig = (config) => {    return {        httpAuthSchemes: config.httpAuthSchemes(),        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),        credentials: config.credentials(),    };}; const resolveRuntimeExtensions = (runtimeConfig, extensions) => {    const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));    extensions.forEach((extension) => extension.configure(extensionConfiguration));    return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));}; class ElastiCacheClient extends client.Client {    config;    constructor(...[configuration]) {        const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});        super(_config_0);        this.initConfig = _config_0;        const _config_1 = resolveClientEndpointParameters(_config_0);        const _config_2 = client$1.resolveUserAgentConfig(_config_1);        const _config_3 = retry.resolveRetryConfig(_config_2);        const _config_4 = config.resolveRegionConfig(_config_3);        const _config_5 = client$1.resolveHostHeaderConfig(_config_4);        const _config_6 = endpoints.resolveEndpointConfig(_config_5);        const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);        const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);        this.config = _config_8;        this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));        this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));        this.middlewareStack.use(retry.getRetryPlugin(this.config));        this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));        this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));        this.middlewareStack.use(client$1.getLoggerPlugin(this.config));        this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));        this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {            httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultElastiCacheHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class AddTagsToResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "AddTagsToResource", {})    .n("ElastiCacheClient", "AddTagsToResourceCommand")    .sc(schemas_0.AddTagsToResource$)    .build() {} class AuthorizeCacheSecurityGroupIngressCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "AuthorizeCacheSecurityGroupIngress", {})    .n("ElastiCacheClient", "AuthorizeCacheSecurityGroupIngressCommand")    .sc(schemas_0.AuthorizeCacheSecurityGroupIngress$)    .build() {} class BatchApplyUpdateActionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "BatchApplyUpdateAction", {})    .n("ElastiCacheClient", "BatchApplyUpdateActionCommand")    .sc(schemas_0.BatchApplyUpdateAction$)    .build() {} class BatchStopUpdateActionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "BatchStopUpdateAction", {})    .n("ElastiCacheClient", "BatchStopUpdateActionCommand")    .sc(schemas_0.BatchStopUpdateAction$)    .build() {} class CompleteMigrationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "CompleteMigration", {})    .n("ElastiCacheClient", "CompleteMigrationCommand")    .sc(schemas_0.CompleteMigration$)    .build() {} class CopyServerlessCacheSnapshotCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "CopyServerlessCacheSnapshot", {})    .n("ElastiCacheClient", "CopyServerlessCacheSnapshotCommand")    .sc(schemas_0.CopyServerlessCacheSnapshot$)    .build() {} class CopySnapshotCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "CopySnapshot", {})    .n("ElastiCacheClient", "CopySnapshotCommand")    .sc(schemas_0.CopySnapshot$)    .build() {} class CreateCacheClusterCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "CreateCacheCluster", {})    .n("ElastiCacheClient", "CreateCacheClusterCommand")    .sc(schemas_0.CreateCacheCluster$)    .build() {} class CreateCacheParameterGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "CreateCacheParameterGroup", {})    .n("ElastiCacheClient", "CreateCacheParameterGroupCommand")    .sc(schemas_0.CreateCacheParameterGroup$)    .build() {} class CreateCacheSecurityGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "CreateCacheSecurityGroup", {})    .n("ElastiCacheClient", "CreateCacheSecurityGroupCommand")    .sc(schemas_0.CreateCacheSecurityGroup$)    .build() {} class CreateCacheSubnetGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "CreateCacheSubnetGroup", {})    .n("ElastiCacheClient", "CreateCacheSubnetGroupCommand")    .sc(schemas_0.CreateCacheSubnetGroup$)    .build() {} class CreateGlobalReplicationGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "CreateGlobalReplicationGroup", {})    .n("ElastiCacheClient", "CreateGlobalReplicationGroupCommand")    .sc(schemas_0.CreateGlobalReplicationGroup$)    .build() {} class CreateReplicationGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "CreateReplicationGroup", {})    .n("ElastiCacheClient", "CreateReplicationGroupCommand")    .sc(schemas_0.CreateReplicationGroup$)    .build() {} class CreateServerlessCacheCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "CreateServerlessCache", {})    .n("ElastiCacheClient", "CreateServerlessCacheCommand")    .sc(schemas_0.CreateServerlessCache$)    .build() {} class CreateServerlessCacheSnapshotCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "CreateServerlessCacheSnapshot", {})    .n("ElastiCacheClient", "CreateServerlessCacheSnapshotCommand")    .sc(schemas_0.CreateServerlessCacheSnapshot$)    .build() {} class CreateSnapshotCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "CreateSnapshot", {})    .n("ElastiCacheClient", "CreateSnapshotCommand")    .sc(schemas_0.CreateSnapshot$)    .build() {} class CreateUserCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "CreateUser", {})    .n("ElastiCacheClient", "CreateUserCommand")    .sc(schemas_0.CreateUser$)    .build() {} class CreateUserGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "CreateUserGroup", {})    .n("ElastiCacheClient", "CreateUserGroupCommand")    .sc(schemas_0.CreateUserGroup$)    .build() {} class DecreaseNodeGroupsInGlobalReplicationGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DecreaseNodeGroupsInGlobalReplicationGroup", {})    .n("ElastiCacheClient", "DecreaseNodeGroupsInGlobalReplicationGroupCommand")    .sc(schemas_0.DecreaseNodeGroupsInGlobalReplicationGroup$)    .build() {} class DecreaseReplicaCountCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DecreaseReplicaCount", {})    .n("ElastiCacheClient", "DecreaseReplicaCountCommand")    .sc(schemas_0.DecreaseReplicaCount$)    .build() {} class DeleteCacheClusterCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DeleteCacheCluster", {})    .n("ElastiCacheClient", "DeleteCacheClusterCommand")    .sc(schemas_0.DeleteCacheCluster$)    .build() {} class DeleteCacheParameterGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DeleteCacheParameterGroup", {})    .n("ElastiCacheClient", "DeleteCacheParameterGroupCommand")    .sc(schemas_0.DeleteCacheParameterGroup$)    .build() {} class DeleteCacheSecurityGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DeleteCacheSecurityGroup", {})    .n("ElastiCacheClient", "DeleteCacheSecurityGroupCommand")    .sc(schemas_0.DeleteCacheSecurityGroup$)    .build() {} class DeleteCacheSubnetGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DeleteCacheSubnetGroup", {})    .n("ElastiCacheClient", "DeleteCacheSubnetGroupCommand")    .sc(schemas_0.DeleteCacheSubnetGroup$)    .build() {} class DeleteGlobalReplicationGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DeleteGlobalReplicationGroup", {})    .n("ElastiCacheClient", "DeleteGlobalReplicationGroupCommand")    .sc(schemas_0.DeleteGlobalReplicationGroup$)    .build() {} class DeleteReplicationGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DeleteReplicationGroup", {})    .n("ElastiCacheClient", "DeleteReplicationGroupCommand")    .sc(schemas_0.DeleteReplicationGroup$)    .build() {} class DeleteServerlessCacheCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DeleteServerlessCache", {})    .n("ElastiCacheClient", "DeleteServerlessCacheCommand")    .sc(schemas_0.DeleteServerlessCache$)    .build() {} class DeleteServerlessCacheSnapshotCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DeleteServerlessCacheSnapshot", {})    .n("ElastiCacheClient", "DeleteServerlessCacheSnapshotCommand")    .sc(schemas_0.DeleteServerlessCacheSnapshot$)    .build() {} class DeleteSnapshotCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DeleteSnapshot", {})    .n("ElastiCacheClient", "DeleteSnapshotCommand")    .sc(schemas_0.DeleteSnapshot$)    .build() {} class DeleteUserCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DeleteUser", {})    .n("ElastiCacheClient", "DeleteUserCommand")    .sc(schemas_0.DeleteUser$)    .build() {} class DeleteUserGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DeleteUserGroup", {})    .n("ElastiCacheClient", "DeleteUserGroupCommand")    .sc(schemas_0.DeleteUserGroup$)    .build() {} class DescribeCacheClustersCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeCacheClusters", {})    .n("ElastiCacheClient", "DescribeCacheClustersCommand")    .sc(schemas_0.DescribeCacheClusters$)    .build() {} class DescribeCacheEngineVersionsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeCacheEngineVersions", {})    .n("ElastiCacheClient", "DescribeCacheEngineVersionsCommand")    .sc(schemas_0.DescribeCacheEngineVersions$)    .build() {} class DescribeCacheParameterGroupsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeCacheParameterGroups", {})    .n("ElastiCacheClient", "DescribeCacheParameterGroupsCommand")    .sc(schemas_0.DescribeCacheParameterGroups$)    .build() {} class DescribeCacheParametersCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeCacheParameters", {})    .n("ElastiCacheClient", "DescribeCacheParametersCommand")    .sc(schemas_0.DescribeCacheParameters$)    .build() {} class DescribeCacheSecurityGroupsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeCacheSecurityGroups", {})    .n("ElastiCacheClient", "DescribeCacheSecurityGroupsCommand")    .sc(schemas_0.DescribeCacheSecurityGroups$)    .build() {} class DescribeCacheSubnetGroupsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeCacheSubnetGroups", {})    .n("ElastiCacheClient", "DescribeCacheSubnetGroupsCommand")    .sc(schemas_0.DescribeCacheSubnetGroups$)    .build() {} class DescribeEngineDefaultParametersCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeEngineDefaultParameters", {})    .n("ElastiCacheClient", "DescribeEngineDefaultParametersCommand")    .sc(schemas_0.DescribeEngineDefaultParameters$)    .build() {} class DescribeEventsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeEvents", {})    .n("ElastiCacheClient", "DescribeEventsCommand")    .sc(schemas_0.DescribeEvents$)    .build() {} class DescribeGlobalReplicationGroupsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeGlobalReplicationGroups", {})    .n("ElastiCacheClient", "DescribeGlobalReplicationGroupsCommand")    .sc(schemas_0.DescribeGlobalReplicationGroups$)    .build() {} class DescribeReplicationGroupsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeReplicationGroups", {})    .n("ElastiCacheClient", "DescribeReplicationGroupsCommand")    .sc(schemas_0.DescribeReplicationGroups$)    .build() {} class DescribeReservedCacheNodesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeReservedCacheNodes", {})    .n("ElastiCacheClient", "DescribeReservedCacheNodesCommand")    .sc(schemas_0.DescribeReservedCacheNodes$)    .build() {} class DescribeReservedCacheNodesOfferingsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeReservedCacheNodesOfferings", {})    .n("ElastiCacheClient", "DescribeReservedCacheNodesOfferingsCommand")    .sc(schemas_0.DescribeReservedCacheNodesOfferings$)    .build() {} class DescribeServerlessCachesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeServerlessCaches", {})    .n("ElastiCacheClient", "DescribeServerlessCachesCommand")    .sc(schemas_0.DescribeServerlessCaches$)    .build() {} class DescribeServerlessCacheSnapshotsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeServerlessCacheSnapshots", {})    .n("ElastiCacheClient", "DescribeServerlessCacheSnapshotsCommand")    .sc(schemas_0.DescribeServerlessCacheSnapshots$)    .build() {} class DescribeServiceUpdatesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeServiceUpdates", {})    .n("ElastiCacheClient", "DescribeServiceUpdatesCommand")    .sc(schemas_0.DescribeServiceUpdates$)    .build() {} class DescribeSnapshotsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeSnapshots", {})    .n("ElastiCacheClient", "DescribeSnapshotsCommand")    .sc(schemas_0.DescribeSnapshots$)    .build() {} class DescribeUpdateActionsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeUpdateActions", {})    .n("ElastiCacheClient", "DescribeUpdateActionsCommand")    .sc(schemas_0.DescribeUpdateActions$)    .build() {} class DescribeUserGroupsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeUserGroups", {})    .n("ElastiCacheClient", "DescribeUserGroupsCommand")    .sc(schemas_0.DescribeUserGroups$)    .build() {} class DescribeUsersCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DescribeUsers", {})    .n("ElastiCacheClient", "DescribeUsersCommand")    .sc(schemas_0.DescribeUsers$)    .build() {} class DisassociateGlobalReplicationGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "DisassociateGlobalReplicationGroup", {})    .n("ElastiCacheClient", "DisassociateGlobalReplicationGroupCommand")    .sc(schemas_0.DisassociateGlobalReplicationGroup$)    .build() {} class ExportServerlessCacheSnapshotCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "ExportServerlessCacheSnapshot", {})    .n("ElastiCacheClient", "ExportServerlessCacheSnapshotCommand")    .sc(schemas_0.ExportServerlessCacheSnapshot$)    .build() {} class FailoverGlobalReplicationGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "FailoverGlobalReplicationGroup", {})    .n("ElastiCacheClient", "FailoverGlobalReplicationGroupCommand")    .sc(schemas_0.FailoverGlobalReplicationGroup$)    .build() {} class IncreaseNodeGroupsInGlobalReplicationGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "IncreaseNodeGroupsInGlobalReplicationGroup", {})    .n("ElastiCacheClient", "IncreaseNodeGroupsInGlobalReplicationGroupCommand")    .sc(schemas_0.IncreaseNodeGroupsInGlobalReplicationGroup$)    .build() {} class IncreaseReplicaCountCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "IncreaseReplicaCount", {})    .n("ElastiCacheClient", "IncreaseReplicaCountCommand")    .sc(schemas_0.IncreaseReplicaCount$)    .build() {} class ListAllowedNodeTypeModificationsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "ListAllowedNodeTypeModifications", {})    .n("ElastiCacheClient", "ListAllowedNodeTypeModificationsCommand")    .sc(schemas_0.ListAllowedNodeTypeModifications$)    .build() {} class ListTagsForResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "ListTagsForResource", {})    .n("ElastiCacheClient", "ListTagsForResourceCommand")    .sc(schemas_0.ListTagsForResource$)    .build() {} class ModifyCacheClusterCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "ModifyCacheCluster", {})    .n("ElastiCacheClient", "ModifyCacheClusterCommand")    .sc(schemas_0.ModifyCacheCluster$)    .build() {} class ModifyCacheParameterGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "ModifyCacheParameterGroup", {})    .n("ElastiCacheClient", "ModifyCacheParameterGroupCommand")    .sc(schemas_0.ModifyCacheParameterGroup$)    .build() {} class ModifyCacheSubnetGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "ModifyCacheSubnetGroup", {})    .n("ElastiCacheClient", "ModifyCacheSubnetGroupCommand")    .sc(schemas_0.ModifyCacheSubnetGroup$)    .build() {} class ModifyGlobalReplicationGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "ModifyGlobalReplicationGroup", {})    .n("ElastiCacheClient", "ModifyGlobalReplicationGroupCommand")    .sc(schemas_0.ModifyGlobalReplicationGroup$)    .build() {} class ModifyReplicationGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "ModifyReplicationGroup", {})    .n("ElastiCacheClient", "ModifyReplicationGroupCommand")    .sc(schemas_0.ModifyReplicationGroup$)    .build() {} class ModifyReplicationGroupShardConfigurationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "ModifyReplicationGroupShardConfiguration", {})    .n("ElastiCacheClient", "ModifyReplicationGroupShardConfigurationCommand")    .sc(schemas_0.ModifyReplicationGroupShardConfiguration$)    .build() {} class ModifyServerlessCacheCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "ModifyServerlessCache", {})    .n("ElastiCacheClient", "ModifyServerlessCacheCommand")    .sc(schemas_0.ModifyServerlessCache$)    .build() {} class ModifyUserCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "ModifyUser", {})    .n("ElastiCacheClient", "ModifyUserCommand")    .sc(schemas_0.ModifyUser$)    .build() {} class ModifyUserGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "ModifyUserGroup", {})    .n("ElastiCacheClient", "ModifyUserGroupCommand")    .sc(schemas_0.ModifyUserGroup$)    .build() {} class PurchaseReservedCacheNodesOfferingCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "PurchaseReservedCacheNodesOffering", {})    .n("ElastiCacheClient", "PurchaseReservedCacheNodesOfferingCommand")    .sc(schemas_0.PurchaseReservedCacheNodesOffering$)    .build() {} class RebalanceSlotsInGlobalReplicationGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "RebalanceSlotsInGlobalReplicationGroup", {})    .n("ElastiCacheClient", "RebalanceSlotsInGlobalReplicationGroupCommand")    .sc(schemas_0.RebalanceSlotsInGlobalReplicationGroup$)    .build() {} class RebootCacheClusterCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "RebootCacheCluster", {})    .n("ElastiCacheClient", "RebootCacheClusterCommand")    .sc(schemas_0.RebootCacheCluster$)    .build() {} class RemoveTagsFromResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "RemoveTagsFromResource", {})    .n("ElastiCacheClient", "RemoveTagsFromResourceCommand")    .sc(schemas_0.RemoveTagsFromResource$)    .build() {} class ResetCacheParameterGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "ResetCacheParameterGroup", {})    .n("ElastiCacheClient", "ResetCacheParameterGroupCommand")    .sc(schemas_0.ResetCacheParameterGroup$)    .build() {} class RevokeCacheSecurityGroupIngressCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "RevokeCacheSecurityGroupIngress", {})    .n("ElastiCacheClient", "RevokeCacheSecurityGroupIngressCommand")    .sc(schemas_0.RevokeCacheSecurityGroupIngress$)    .build() {} class StartMigrationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "StartMigration", {})    .n("ElastiCacheClient", "StartMigrationCommand")    .sc(schemas_0.StartMigration$)    .build() {} class TestFailoverCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "TestFailover", {})    .n("ElastiCacheClient", "TestFailoverCommand")    .sc(schemas_0.TestFailover$)    .build() {} class TestMigrationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonElastiCacheV9", "TestMigration", {})    .n("ElastiCacheClient", "TestMigrationCommand")    .sc(schemas_0.TestMigration$)    .build() {} const paginateDescribeCacheClusters = core.createPaginator(ElastiCacheClient, DescribeCacheClustersCommand, "Marker", "Marker", "MaxRecords"); const paginateDescribeCacheEngineVersions = core.createPaginator(ElastiCacheClient, DescribeCacheEngineVersionsCommand, "Marker", "Marker", "MaxRecords"); const paginateDescribeCacheParameterGroups = core.createPaginator(ElastiCacheClient, DescribeCacheParameterGroupsCommand, "Marker", "Marker", "MaxRecords"); const paginateDescribeCacheParameters = core.createPaginator(ElastiCacheClient, DescribeCacheParametersCommand, "Marker", "Marker", "MaxRecords"); const paginateDescribeCacheSecurityGroups = core.createPaginator(ElastiCacheClient, DescribeCacheSecurityGroupsCommand, "Marker", "Marker", "MaxRecords"); const paginateDescribeCacheSubnetGroups = core.createPaginator(ElastiCacheClient, DescribeCacheSubnetGroupsCommand, "Marker", "Marker", "MaxRecords"); const paginateDescribeEngineDefaultParameters = core.createPaginator(ElastiCacheClient, DescribeEngineDefaultParametersCommand, "Marker", "EngineDefaults.Marker", "MaxRecords"); const paginateDescribeEvents = core.createPaginator(ElastiCacheClient, DescribeEventsCommand, "Marker", "Marker", "MaxRecords"); const paginateDescribeGlobalReplicationGroups = core.createPaginator(ElastiCacheClient, DescribeGlobalReplicationGroupsCommand, "Marker", "Marker", "MaxRecords"); const paginateDescribeReplicationGroups = core.createPaginator(ElastiCacheClient, DescribeReplicationGroupsCommand, "Marker", "Marker", "MaxRecords"); const paginateDescribeReservedCacheNodesOfferings = core.createPaginator(ElastiCacheClient, DescribeReservedCacheNodesOfferingsCommand, "Marker", "Marker", "MaxRecords"); const paginateDescribeReservedCacheNodes = core.createPaginator(ElastiCacheClient, DescribeReservedCacheNodesCommand, "Marker", "Marker", "MaxRecords"); const paginateDescribeServerlessCacheSnapshots = core.createPaginator(ElastiCacheClient, DescribeServerlessCacheSnapshotsCommand, "NextToken", "NextToken", "MaxResults"); const paginateDescribeServerlessCaches = core.createPaginator(ElastiCacheClient, DescribeServerlessCachesCommand, "NextToken", "NextToken", "MaxResults"); const paginateDescribeServiceUpdates = core.createPaginator(ElastiCacheClient, DescribeServiceUpdatesCommand, "Marker", "Marker", "MaxRecords"); const paginateDescribeSnapshots = core.createPaginator(ElastiCacheClient, DescribeSnapshotsCommand, "Marker", "Marker", "MaxRecords"); const paginateDescribeUpdateActions = core.createPaginator(ElastiCacheClient, DescribeUpdateActionsCommand, "Marker", "Marker", "MaxRecords"); const paginateDescribeUserGroups = core.createPaginator(ElastiCacheClient, DescribeUserGroupsCommand, "Marker", "Marker", "MaxRecords"); const paginateDescribeUsers = core.createPaginator(ElastiCacheClient, DescribeUsersCommand, "Marker", "Marker", "MaxRecords"); const checkState$3 = async (client$1, input) => {    let reason;    try {        let result = await client$1.send(new DescribeCacheClustersCommand(input));        reason = result;        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.CacheClusters);                let projection_3 = flat_1.map((element_2) => {                    return element_2.CacheClusterStatus;                });                return projection_3;            };            let allStringEq_5 = (returnComparator().length > 0);            for (let element_4 of returnComparator()) {                allStringEq_5 = allStringEq_5 && (element_4 == "available");            }            if (allStringEq_5) {                return { state: client.WaiterState.SUCCESS, reason };            }        }        catch (e) { }        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.CacheClusters);                let projection_3 = flat_1.map((element_2) => {                    return element_2.CacheClusterStatus;                });                return projection_3;            };            for (let anyStringEq_4 of returnComparator()) {                if (anyStringEq_4 == "deleted") {                    return { state: client.WaiterState.FAILURE, reason };                }            }        }        catch (e) { }        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.CacheClusters);                let projection_3 = flat_1.map((element_2) => {                    return element_2.CacheClusterStatus;                });                return projection_3;            };            for (let anyStringEq_4 of returnComparator()) {                if (anyStringEq_4 == "deleting") {                    return { state: client.WaiterState.FAILURE, reason };                }            }        }        catch (e) { }        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.CacheClusters);                let projection_3 = flat_1.map((element_2) => {                    return element_2.CacheClusterStatus;                });                return projection_3;            };            for (let anyStringEq_4 of returnComparator()) {                if (anyStringEq_4 == "incompatible-network") {                    return { state: client.WaiterState.FAILURE, reason };                }            }        }        catch (e) { }        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.CacheClusters);                let projection_3 = flat_1.map((element_2) => {                    return element_2.CacheClusterStatus;                });                return projection_3;            };            for (let anyStringEq_4 of returnComparator()) {                if (anyStringEq_4 == "restore-failed") {                    return { state: client.WaiterState.FAILURE, reason };                }            }        }        catch (e) { }    }    catch (exception) {        reason = exception;    }    return { state: client.WaiterState.RETRY, reason };};const waitForCacheClusterAvailable = async (params, input) => {    const serviceDefaults = { minDelay: 15, maxDelay: 120 };    return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);};const waitUntilCacheClusterAvailable = async (params, input) => {    const serviceDefaults = { minDelay: 15, maxDelay: 120 };    const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);    return client.checkExceptions(result);}; const checkState$2 = async (client$1, input) => {    let reason;    try {        let result = await client$1.send(new DescribeCacheClustersCommand(input));        reason = result;        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.CacheClusters);                let projection_3 = flat_1.map((element_2) => {                    return element_2.CacheClusterStatus;                });                return projection_3;            };            let allStringEq_5 = (returnComparator().length > 0);            for (let element_4 of returnComparator()) {                allStringEq_5 = allStringEq_5 && (element_4 == "deleted");            }            if (allStringEq_5) {                return { state: client.WaiterState.SUCCESS, reason };            }        }        catch (e) { }        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.CacheClusters);                let projection_3 = flat_1.map((element_2) => {                    return element_2.CacheClusterStatus;                });                return projection_3;            };            for (let anyStringEq_4 of returnComparator()) {                if (anyStringEq_4 == "available") {                    return { state: client.WaiterState.FAILURE, reason };                }            }        }        catch (e) { }        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.CacheClusters);                let projection_3 = flat_1.map((element_2) => {                    return element_2.CacheClusterStatus;                });                return projection_3;            };            for (let anyStringEq_4 of returnComparator()) {                if (anyStringEq_4 == "creating") {                    return { state: client.WaiterState.FAILURE, reason };                }            }        }        catch (e) { }        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.CacheClusters);                let projection_3 = flat_1.map((element_2) => {                    return element_2.CacheClusterStatus;                });                return projection_3;            };            for (let anyStringEq_4 of returnComparator()) {                if (anyStringEq_4 == "incompatible-network") {                    return { state: client.WaiterState.FAILURE, reason };                }            }        }        catch (e) { }        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.CacheClusters);                let projection_3 = flat_1.map((element_2) => {                    return element_2.CacheClusterStatus;                });                return projection_3;            };            for (let anyStringEq_4 of returnComparator()) {                if (anyStringEq_4 == "modifying") {                    return { state: client.WaiterState.FAILURE, reason };                }            }        }        catch (e) { }        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.CacheClusters);                let projection_3 = flat_1.map((element_2) => {                    return element_2.CacheClusterStatus;                });                return projection_3;            };            for (let anyStringEq_4 of returnComparator()) {                if (anyStringEq_4 == "restore-failed") {                    return { state: client.WaiterState.FAILURE, reason };                }            }        }        catch (e) { }        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.CacheClusters);                let projection_3 = flat_1.map((element_2) => {                    return element_2.CacheClusterStatus;                });                return projection_3;            };            for (let anyStringEq_4 of returnComparator()) {                if (anyStringEq_4 == "snapshotting") {                    return { state: client.WaiterState.FAILURE, reason };                }            }        }        catch (e) { }    }    catch (exception) {        reason = exception;        if (exception.name === "CacheClusterNotFoundFault") {            return { state: client.WaiterState.SUCCESS, reason };        }    }    return { state: client.WaiterState.RETRY, reason };};const waitForCacheClusterDeleted = async (params, input) => {    const serviceDefaults = { minDelay: 15, maxDelay: 120 };    return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);};const waitUntilCacheClusterDeleted = async (params, input) => {    const serviceDefaults = { minDelay: 15, maxDelay: 120 };    const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);    return client.checkExceptions(result);}; const checkState$1 = async (client$1, input) => {    let reason;    try {        let result = await client$1.send(new DescribeReplicationGroupsCommand(input));        reason = result;        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.ReplicationGroups);                let projection_3 = flat_1.map((element_2) => {                    return element_2.Status;                });                return projection_3;            };            let allStringEq_5 = (returnComparator().length > 0);            for (let element_4 of returnComparator()) {                allStringEq_5 = allStringEq_5 && (element_4 == "available");            }            if (allStringEq_5) {                return { state: client.WaiterState.SUCCESS, reason };            }        }        catch (e) { }        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.ReplicationGroups);                let projection_3 = flat_1.map((element_2) => {                    return element_2.Status;                });                return projection_3;            };            for (let anyStringEq_4 of returnComparator()) {                if (anyStringEq_4 == "deleted") {                    return { state: client.WaiterState.FAILURE, reason };                }            }        }        catch (e) { }    }    catch (exception) {        reason = exception;    }    return { state: client.WaiterState.RETRY, reason };};const waitForReplicationGroupAvailable = async (params, input) => {    const serviceDefaults = { minDelay: 15, maxDelay: 120 };    return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);};const waitUntilReplicationGroupAvailable = async (params, input) => {    const serviceDefaults = { minDelay: 15, maxDelay: 120 };    const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);    return client.checkExceptions(result);}; const checkState = async (client$1, input) => {    let reason;    try {        let result = await client$1.send(new DescribeReplicationGroupsCommand(input));        reason = result;        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.ReplicationGroups);                let projection_3 = flat_1.map((element_2) => {                    return element_2.Status;                });                return projection_3;            };            let allStringEq_5 = (returnComparator().length > 0);            for (let element_4 of returnComparator()) {                allStringEq_5 = allStringEq_5 && (element_4 == "deleted");            }            if (allStringEq_5) {                return { state: client.WaiterState.SUCCESS, reason };            }        }        catch (e) { }        try {            const returnComparator = () => {                let flat_1 = [].concat(...result.ReplicationGroups);                let projection_3 = flat_1.map((element_2) => {                    return element_2.Status;                });                return projection_3;            };            for (let anyStringEq_4 of returnComparator()) {                if (anyStringEq_4 == "available") {                    return { state: client.WaiterState.FAILURE, reason };                }            }        }        catch (e) { }    }    catch (exception) {        reason = exception;        if (exception.name === "ReplicationGroupNotFoundFault") {            return { state: client.WaiterState.SUCCESS, reason };        }    }    return { state: client.WaiterState.RETRY, reason };};const waitForReplicationGroupDeleted = async (params, input) => {    const serviceDefaults = { minDelay: 15, maxDelay: 120 };    return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);};const waitUntilReplicationGroupDeleted = async (params, input) => {    const serviceDefaults = { minDelay: 15, maxDelay: 120 };    const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);    return client.checkExceptions(result);}; const commands = {    AddTagsToResourceCommand,    AuthorizeCacheSecurityGroupIngressCommand,    BatchApplyUpdateActionCommand,    BatchStopUpdateActionCommand,    CompleteMigrationCommand,    CopyServerlessCacheSnapshotCommand,    CopySnapshotCommand,    CreateCacheClusterCommand,    CreateCacheParameterGroupCommand,    CreateCacheSecurityGroupCommand,    CreateCacheSubnetGroupCommand,    CreateGlobalReplicationGroupCommand,    CreateReplicationGroupCommand,    CreateServerlessCacheCommand,    CreateServerlessCacheSnapshotCommand,    CreateSnapshotCommand,    CreateUserCommand,    CreateUserGroupCommand,    DecreaseNodeGroupsInGlobalReplicationGroupCommand,    DecreaseReplicaCountCommand,    DeleteCacheClusterCommand,    DeleteCacheParameterGroupCommand,    DeleteCacheSecurityGroupCommand,    DeleteCacheSubnetGroupCommand,    DeleteGlobalReplicationGroupCommand,    DeleteReplicationGroupCommand,    DeleteServerlessCacheCommand,    DeleteServerlessCacheSnapshotCommand,    DeleteSnapshotCommand,    DeleteUserCommand,    DeleteUserGroupCommand,    DescribeCacheClustersCommand,    DescribeCacheEngineVersionsCommand,    DescribeCacheParameterGroupsCommand,    DescribeCacheParametersCommand,    DescribeCacheSecurityGroupsCommand,    DescribeCacheSubnetGroupsCommand,    DescribeEngineDefaultParametersCommand,    DescribeEventsCommand,    DescribeGlobalReplicationGroupsCommand,    DescribeReplicationGroupsCommand,    DescribeReservedCacheNodesCommand,    DescribeReservedCacheNodesOfferingsCommand,    DescribeServerlessCachesCommand,    DescribeServerlessCacheSnapshotsCommand,    DescribeServiceUpdatesCommand,    DescribeSnapshotsCommand,    DescribeUpdateActionsCommand,    DescribeUserGroupsCommand,    DescribeUsersCommand,    DisassociateGlobalReplicationGroupCommand,    ExportServerlessCacheSnapshotCommand,    FailoverGlobalReplicationGroupCommand,    IncreaseNodeGroupsInGlobalReplicationGroupCommand,    IncreaseReplicaCountCommand,    ListAllowedNodeTypeModificationsCommand,    ListTagsForResourceCommand,    ModifyCacheClusterCommand,    ModifyCacheParameterGroupCommand,    ModifyCacheSubnetGroupCommand,    ModifyGlobalReplicationGroupCommand,    ModifyReplicationGroupCommand,    ModifyReplicationGroupShardConfigurationCommand,    ModifyServerlessCacheCommand,    ModifyUserCommand,    ModifyUserGroupCommand,    PurchaseReservedCacheNodesOfferingCommand,    RebalanceSlotsInGlobalReplicationGroupCommand,    RebootCacheClusterCommand,    RemoveTagsFromResourceCommand,    ResetCacheParameterGroupCommand,    RevokeCacheSecurityGroupIngressCommand,    StartMigrationCommand,    TestFailoverCommand,    TestMigrationCommand,};const paginators = {    paginateDescribeCacheClusters,    paginateDescribeCacheEngineVersions,    paginateDescribeCacheParameterGroups,    paginateDescribeCacheParameters,    paginateDescribeCacheSecurityGroups,    paginateDescribeCacheSubnetGroups,    paginateDescribeEngineDefaultParameters,    paginateDescribeEvents,    paginateDescribeGlobalReplicationGroups,    paginateDescribeReplicationGroups,    paginateDescribeReservedCacheNodes,    paginateDescribeReservedCacheNodesOfferings,    paginateDescribeServerlessCaches,    paginateDescribeServerlessCacheSnapshots,    paginateDescribeServiceUpdates,    paginateDescribeSnapshots,    paginateDescribeUpdateActions,    paginateDescribeUserGroups,    paginateDescribeUsers,};const waiters = {    waitUntilCacheClusterAvailable,    waitUntilCacheClusterDeleted,    waitUntilReplicationGroupAvailable,    waitUntilReplicationGroupDeleted,};class ElastiCache extends ElastiCacheClient {}client.createAggregatedClient(commands, ElastiCache, { paginators, waiters }); const UpdateActionStatus = {    COMPLETE: "complete",    IN_PROGRESS: "in-progress",    NOT_APPLICABLE: "not-applicable",    NOT_APPLIED: "not-applied",    SCHEDULED: "scheduled",    SCHEDULING: "scheduling",    STOPPED: "stopped",    STOPPING: "stopping",    WAITING_TO_START: "waiting-to-start",};const AutomaticFailoverStatus = {    DISABLED: "disabled",    DISABLING: "disabling",    ENABLED: "enabled",    ENABLING: "enabling",};const ClusterMode = {    COMPATIBLE: "compatible",    DISABLED: "disabled",    ENABLED: "enabled",};const DataTieringStatus = {    DISABLED: "disabled",    ENABLED: "enabled",};const IpDiscovery = {    IPV4: "ipv4",    IPV6: "ipv6",};const DestinationType = {    CloudWatchLogs: "cloudwatch-logs",    KinesisFirehose: "kinesis-firehose",};const LogFormat = {    JSON: "json",    TEXT: "text",};const LogType = {    ENGINE_LOG: "engine-log",    SLOW_LOG: "slow-log",};const LogDeliveryConfigurationStatus = {    ACTIVE: "active",    DISABLING: "disabling",    ENABLING: "enabling",    ERROR: "error",    MODIFYING: "modifying",};const MultiAZStatus = {    DISABLED: "disabled",    ENABLED: "enabled",};const NetworkType = {    DUAL_STACK: "dual_stack",    IPV4: "ipv4",    IPV6: "ipv6",};const AuthTokenUpdateStatus = {    ROTATING: "ROTATING",    SETTING: "SETTING",};const PendingAutomaticFailoverStatus = {    DISABLED: "disabled",    ENABLED: "enabled",};const TransitEncryptionMode = {    PREFERRED: "preferred",    REQUIRED: "required",};const AZMode = {    CROSS_AZ: "cross-az",    SINGLE_AZ: "single-az",};const OutpostMode = {    CROSS_OUTPOST: "cross-outpost",    SINGLE_OUTPOST: "single-outpost",};const DataStorageUnit = {    GB: "GB",};const InputAuthenticationType = {    IAM: "iam",    NO_PASSWORD: "no-password-required",    PASSWORD: "password",};const AuthenticationType = {    IAM: "iam",    NO_PASSWORD: "no-password",    PASSWORD: "password",};const ChangeType = {    immediate: "immediate",    requires_reboot: "requires-reboot",};const SourceType = {    cache_cluster: "cache-cluster",    cache_parameter_group: "cache-parameter-group",    cache_security_group: "cache-security-group",    cache_subnet_group: "cache-subnet-group",    replication_group: "replication-group",    serverless_cache: "serverless-cache",    serverless_cache_snapshot: "serverless-cache-snapshot",    user: "user",    user_group: "user-group",};const ServiceUpdateStatus = {    AVAILABLE: "available",    CANCELLED: "cancelled",    EXPIRED: "expired",};const ServiceUpdateSeverity = {    CRITICAL: "critical",    IMPORTANT: "important",    LOW: "low",    MEDIUM: "medium",};const ServiceUpdateType = {    SECURITY_UPDATE: "security-update",};const NodeUpdateInitiatedBy = {    CUSTOMER: "customer",    SYSTEM: "system",};const NodeUpdateStatus = {    COMPLETE: "complete",    IN_PROGRESS: "in-progress",    NOT_APPLIED: "not-applied",    STOPPED: "stopped",    STOPPING: "stopping",    WAITING_TO_START: "waiting-to-start",};const SlaMet = {    NA: "n/a",    NO: "no",    YES: "yes",};const AuthTokenUpdateStrategyType = {    DELETE: "DELETE",    ROTATE: "ROTATE",    SET: "SET",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.ElastiCacheServiceException = ElastiCacheServiceException.ElastiCacheServiceException;exports.AZMode = AZMode;exports.AddTagsToResourceCommand = AddTagsToResourceCommand;exports.AuthTokenUpdateStatus = AuthTokenUpdateStatus;exports.AuthTokenUpdateStrategyType = AuthTokenUpdateStrategyType;exports.AuthenticationType = AuthenticationType;exports.AuthorizeCacheSecurityGroupIngressCommand = AuthorizeCacheSecurityGroupIngressCommand;exports.AutomaticFailoverStatus = AutomaticFailoverStatus;exports.BatchApplyUpdateActionCommand = BatchApplyUpdateActionCommand;exports.BatchStopUpdateActionCommand = BatchStopUpdateActionCommand;exports.ChangeType = ChangeType;exports.ClusterMode = ClusterMode;exports.CompleteMigrationCommand = CompleteMigrationCommand;exports.CopyServerlessCacheSnapshotCommand = CopyServerlessCacheSnapshotCommand;exports.CopySnapshotCommand = CopySnapshotCommand;exports.CreateCacheClusterCommand = CreateCacheClusterCommand;exports.CreateCacheParameterGroupCommand = CreateCacheParameterGroupCommand;exports.CreateCacheSecurityGroupCommand = CreateCacheSecurityGroupCommand;exports.CreateCacheSubnetGroupCommand = CreateCacheSubnetGroupCommand;exports.CreateGlobalReplicationGroupCommand = CreateGlobalReplicationGroupCommand;exports.CreateReplicationGroupCommand = CreateReplicationGroupCommand;exports.CreateServerlessCacheCommand = CreateServerlessCacheCommand;exports.CreateServerlessCacheSnapshotCommand = CreateServerlessCacheSnapshotCommand;exports.CreateSnapshotCommand = CreateSnapshotCommand;exports.CreateUserCommand = CreateUserCommand;exports.CreateUserGroupCommand = CreateUserGroupCommand;exports.DataStorageUnit = DataStorageUnit;exports.DataTieringStatus = DataTieringStatus;exports.DecreaseNodeGroupsInGlobalReplicationGroupCommand = DecreaseNodeGroupsInGlobalReplicationGroupCommand;exports.DecreaseReplicaCountCommand = DecreaseReplicaCountCommand;exports.DeleteCacheClusterCommand = DeleteCacheClusterCommand;exports.DeleteCacheParameterGroupCommand = DeleteCacheParameterGroupCommand;exports.DeleteCacheSecurityGroupCommand = DeleteCacheSecurityGroupCommand;exports.DeleteCacheSubnetGroupCommand = DeleteCacheSubnetGroupCommand;exports.DeleteGlobalReplicationGroupCommand = DeleteGlobalReplicationGroupCommand;exports.DeleteReplicationGroupCommand = DeleteReplicationGroupCommand;exports.DeleteServerlessCacheCommand = DeleteServerlessCacheCommand;exports.DeleteServerlessCacheSnapshotCommand = DeleteServerlessCacheSnapshotCommand;exports.DeleteSnapshotCommand = DeleteSnapshotCommand;exports.DeleteUserCommand = DeleteUserCommand;exports.DeleteUserGroupCommand = DeleteUserGroupCommand;exports.DescribeCacheClustersCommand = DescribeCacheClustersCommand;exports.DescribeCacheEngineVersionsCommand = DescribeCacheEngineVersionsCommand;exports.DescribeCacheParameterGroupsCommand = DescribeCacheParameterGroupsCommand;exports.DescribeCacheParametersCommand = DescribeCacheParametersCommand;exports.DescribeCacheSecurityGroupsCommand = DescribeCacheSecurityGroupsCommand;exports.DescribeCacheSubnetGroupsCommand = DescribeCacheSubnetGroupsCommand;exports.DescribeEngineDefaultParametersCommand = DescribeEngineDefaultParametersCommand;exports.DescribeEventsCommand = DescribeEventsCommand;exports.DescribeGlobalReplicationGroupsCommand = DescribeGlobalReplicationGroupsCommand;exports.DescribeReplicationGroupsCommand = DescribeReplicationGroupsCommand;exports.DescribeReservedCacheNodesCommand = DescribeReservedCacheNodesCommand;exports.DescribeReservedCacheNodesOfferingsCommand = DescribeReservedCacheNodesOfferingsCommand;exports.DescribeServerlessCacheSnapshotsCommand = DescribeServerlessCacheSnapshotsCommand;exports.DescribeServerlessCachesCommand = DescribeServerlessCachesCommand;exports.DescribeServiceUpdatesCommand = DescribeServiceUpdatesCommand;exports.DescribeSnapshotsCommand = DescribeSnapshotsCommand;exports.DescribeUpdateActionsCommand = DescribeUpdateActionsCommand;exports.DescribeUserGroupsCommand = DescribeUserGroupsCommand;exports.DescribeUsersCommand = DescribeUsersCommand;exports.DestinationType = DestinationType;exports.DisassociateGlobalReplicationGroupCommand = DisassociateGlobalReplicationGroupCommand;exports.ElastiCache = ElastiCache;exports.ElastiCacheClient = ElastiCacheClient;exports.ExportServerlessCacheSnapshotCommand = ExportServerlessCacheSnapshotCommand;exports.FailoverGlobalReplicationGroupCommand = FailoverGlobalReplicationGroupCommand;exports.IncreaseNodeGroupsInGlobalReplicationGroupCommand = IncreaseNodeGroupsInGlobalReplicationGroupCommand;exports.IncreaseReplicaCountCommand = IncreaseReplicaCountCommand;exports.InputAuthenticationType = InputAuthenticationType;exports.IpDiscovery = IpDiscovery;exports.ListAllowedNodeTypeModificationsCommand = ListAllowedNodeTypeModificationsCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.LogDeliveryConfigurationStatus = LogDeliveryConfigurationStatus;exports.LogFormat = LogFormat;exports.LogType = LogType;exports.ModifyCacheClusterCommand = ModifyCacheClusterCommand;exports.ModifyCacheParameterGroupCommand = ModifyCacheParameterGroupCommand;exports.ModifyCacheSubnetGroupCommand = ModifyCacheSubnetGroupCommand;exports.ModifyGlobalReplicationGroupCommand = ModifyGlobalReplicationGroupCommand;exports.ModifyReplicationGroupCommand = ModifyReplicationGroupCommand;exports.ModifyReplicationGroupShardConfigurationCommand = ModifyReplicationGroupShardConfigurationCommand;exports.ModifyServerlessCacheCommand = ModifyServerlessCacheCommand;exports.ModifyUserCommand = ModifyUserCommand;exports.ModifyUserGroupCommand = ModifyUserGroupCommand;exports.MultiAZStatus = MultiAZStatus;exports.NetworkType = NetworkType;exports.NodeUpdateInitiatedBy = NodeUpdateInitiatedBy;exports.NodeUpdateStatus = NodeUpdateStatus;exports.OutpostMode = OutpostMode;exports.PendingAutomaticFailoverStatus = PendingAutomaticFailoverStatus;exports.PurchaseReservedCacheNodesOfferingCommand = PurchaseReservedCacheNodesOfferingCommand;exports.RebalanceSlotsInGlobalReplicationGroupCommand = RebalanceSlotsInGlobalReplicationGroupCommand;exports.RebootCacheClusterCommand = RebootCacheClusterCommand;exports.RemoveTagsFromResourceCommand = RemoveTagsFromResourceCommand;exports.ResetCacheParameterGroupCommand = ResetCacheParameterGroupCommand;exports.RevokeCacheSecurityGroupIngressCommand = RevokeCacheSecurityGroupIngressCommand;exports.ServiceUpdateSeverity = ServiceUpdateSeverity;exports.ServiceUpdateStatus = ServiceUpdateStatus;exports.ServiceUpdateType = ServiceUpdateType;exports.SlaMet = SlaMet;exports.SourceType = SourceType;exports.StartMigrationCommand = StartMigrationCommand;exports.TestFailoverCommand = TestFailoverCommand;exports.TestMigrationCommand = TestMigrationCommand;exports.TransitEncryptionMode = TransitEncryptionMode;exports.UpdateActionStatus = UpdateActionStatus;exports.paginateDescribeCacheClusters = paginateDescribeCacheClusters;exports.paginateDescribeCacheEngineVersions = paginateDescribeCacheEngineVersions;exports.paginateDescribeCacheParameterGroups = paginateDescribeCacheParameterGroups;exports.paginateDescribeCacheParameters = paginateDescribeCacheParameters;exports.paginateDescribeCacheSecurityGroups = paginateDescribeCacheSecurityGroups;exports.paginateDescribeCacheSubnetGroups = paginateDescribeCacheSubnetGroups;exports.paginateDescribeEngineDefaultParameters = paginateDescribeEngineDefaultParameters;exports.paginateDescribeEvents = paginateDescribeEvents;exports.paginateDescribeGlobalReplicationGroups = paginateDescribeGlobalReplicationGroups;exports.paginateDescribeReplicationGroups = paginateDescribeReplicationGroups;exports.paginateDescribeReservedCacheNodes = paginateDescribeReservedCacheNodes;exports.paginateDescribeReservedCacheNodesOfferings = paginateDescribeReservedCacheNodesOfferings;exports.paginateDescribeServerlessCacheSnapshots = paginateDescribeServerlessCacheSnapshots;exports.paginateDescribeServerlessCaches = paginateDescribeServerlessCaches;exports.paginateDescribeServiceUpdates = paginateDescribeServiceUpdates;exports.paginateDescribeSnapshots = paginateDescribeSnapshots;exports.paginateDescribeUpdateActions = paginateDescribeUpdateActions;exports.paginateDescribeUserGroups = paginateDescribeUserGroups;exports.paginateDescribeUsers = paginateDescribeUsers;exports.waitForCacheClusterAvailable = waitForCacheClusterAvailable;exports.waitForCacheClusterDeleted = waitForCacheClusterDeleted;exports.waitForReplicationGroupAvailable = waitForReplicationGroupAvailable;exports.waitForReplicationGroupDeleted = waitForReplicationGroupDeleted;exports.waitUntilCacheClusterAvailable = waitUntilCacheClusterAvailable;exports.waitUntilCacheClusterDeleted = waitUntilCacheClusterDeleted;exports.waitUntilReplicationGroupAvailable = waitUntilReplicationGroupAvailable;exports.waitUntilReplicationGroupDeleted = waitUntilReplicationGroupDeleted;Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&    !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&    Object.defineProperty(exports, '__proto__', {        enumerable: true,        value: schemas_0['__proto__']    }); Object.keys(schemas_0).forEach(function (k) {    if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];});Object.prototype.hasOwnProperty.call(errors, '__proto__') &&    !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&    Object.defineProperty(exports, '__proto__', {        enumerable: true,        value: errors['__proto__']    }); Object.keys(errors).forEach(function (k) {    if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];});