File Explorer

/proc/self/root/proc/self/root/var/runtime/node_modules/@aws-sdk/client-dax/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.js16.9 KB · 477 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 DAXServiceException = require('./models/DAXServiceException'); const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "dax",    });};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 DAXClient 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.defaultDAXHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class CreateClusterCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "CreateCluster", {})    .n("DAXClient", "CreateClusterCommand")    .sc(schemas_0.CreateCluster$)    .build() {} class CreateParameterGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "CreateParameterGroup", {})    .n("DAXClient", "CreateParameterGroupCommand")    .sc(schemas_0.CreateParameterGroup$)    .build() {} class CreateSubnetGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "CreateSubnetGroup", {})    .n("DAXClient", "CreateSubnetGroupCommand")    .sc(schemas_0.CreateSubnetGroup$)    .build() {} class DecreaseReplicationFactorCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "DecreaseReplicationFactor", {})    .n("DAXClient", "DecreaseReplicationFactorCommand")    .sc(schemas_0.DecreaseReplicationFactor$)    .build() {} class DeleteClusterCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "DeleteCluster", {})    .n("DAXClient", "DeleteClusterCommand")    .sc(schemas_0.DeleteCluster$)    .build() {} class DeleteParameterGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "DeleteParameterGroup", {})    .n("DAXClient", "DeleteParameterGroupCommand")    .sc(schemas_0.DeleteParameterGroup$)    .build() {} class DeleteSubnetGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "DeleteSubnetGroup", {})    .n("DAXClient", "DeleteSubnetGroupCommand")    .sc(schemas_0.DeleteSubnetGroup$)    .build() {} class DescribeClustersCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "DescribeClusters", {})    .n("DAXClient", "DescribeClustersCommand")    .sc(schemas_0.DescribeClusters$)    .build() {} class DescribeDefaultParametersCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "DescribeDefaultParameters", {})    .n("DAXClient", "DescribeDefaultParametersCommand")    .sc(schemas_0.DescribeDefaultParameters$)    .build() {} class DescribeEventsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "DescribeEvents", {})    .n("DAXClient", "DescribeEventsCommand")    .sc(schemas_0.DescribeEvents$)    .build() {} class DescribeParameterGroupsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "DescribeParameterGroups", {})    .n("DAXClient", "DescribeParameterGroupsCommand")    .sc(schemas_0.DescribeParameterGroups$)    .build() {} class DescribeParametersCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "DescribeParameters", {})    .n("DAXClient", "DescribeParametersCommand")    .sc(schemas_0.DescribeParameters$)    .build() {} class DescribeSubnetGroupsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "DescribeSubnetGroups", {})    .n("DAXClient", "DescribeSubnetGroupsCommand")    .sc(schemas_0.DescribeSubnetGroups$)    .build() {} class IncreaseReplicationFactorCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "IncreaseReplicationFactor", {})    .n("DAXClient", "IncreaseReplicationFactorCommand")    .sc(schemas_0.IncreaseReplicationFactor$)    .build() {} class ListTagsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "ListTags", {})    .n("DAXClient", "ListTagsCommand")    .sc(schemas_0.ListTags$)    .build() {} class RebootNodeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "RebootNode", {})    .n("DAXClient", "RebootNodeCommand")    .sc(schemas_0.RebootNode$)    .build() {} class TagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "TagResource", {})    .n("DAXClient", "TagResourceCommand")    .sc(schemas_0.TagResource$)    .build() {} class UntagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "UntagResource", {})    .n("DAXClient", "UntagResourceCommand")    .sc(schemas_0.UntagResource$)    .build() {} class UpdateClusterCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "UpdateCluster", {})    .n("DAXClient", "UpdateClusterCommand")    .sc(schemas_0.UpdateCluster$)    .build() {} class UpdateParameterGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "UpdateParameterGroup", {})    .n("DAXClient", "UpdateParameterGroupCommand")    .sc(schemas_0.UpdateParameterGroup$)    .build() {} class UpdateSubnetGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonDAXV3", "UpdateSubnetGroup", {})    .n("DAXClient", "UpdateSubnetGroupCommand")    .sc(schemas_0.UpdateSubnetGroup$)    .build() {} const commands = {    CreateClusterCommand,    CreateParameterGroupCommand,    CreateSubnetGroupCommand,    DecreaseReplicationFactorCommand,    DeleteClusterCommand,    DeleteParameterGroupCommand,    DeleteSubnetGroupCommand,    DescribeClustersCommand,    DescribeDefaultParametersCommand,    DescribeEventsCommand,    DescribeParameterGroupsCommand,    DescribeParametersCommand,    DescribeSubnetGroupsCommand,    IncreaseReplicationFactorCommand,    ListTagsCommand,    RebootNodeCommand,    TagResourceCommand,    UntagResourceCommand,    UpdateClusterCommand,    UpdateParameterGroupCommand,    UpdateSubnetGroupCommand,};class DAX extends DAXClient {}client.createAggregatedClient(commands, DAX); const ClusterEndpointEncryptionType = {    NONE: "NONE",    TLS: "TLS",};const NetworkType = {    DUAL_STACK: "dual_stack",    IPV4: "ipv4",    IPV6: "ipv6",};const SSEStatus = {    DISABLED: "DISABLED",    DISABLING: "DISABLING",    ENABLED: "ENABLED",    ENABLING: "ENABLING",};const ChangeType = {    IMMEDIATE: "IMMEDIATE",    REQUIRES_REBOOT: "REQUIRES_REBOOT",};const IsModifiable = {    CONDITIONAL: "CONDITIONAL",    FALSE: "FALSE",    TRUE: "TRUE",};const ParameterType = {    DEFAULT: "DEFAULT",    NODE_TYPE_SPECIFIC: "NODE_TYPE_SPECIFIC",};const SourceType = {    CLUSTER: "CLUSTER",    PARAMETER_GROUP: "PARAMETER_GROUP",    SUBNET_GROUP: "SUBNET_GROUP",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.DAXServiceException = DAXServiceException.DAXServiceException;exports.ChangeType = ChangeType;exports.ClusterEndpointEncryptionType = ClusterEndpointEncryptionType;exports.CreateClusterCommand = CreateClusterCommand;exports.CreateParameterGroupCommand = CreateParameterGroupCommand;exports.CreateSubnetGroupCommand = CreateSubnetGroupCommand;exports.DAX = DAX;exports.DAXClient = DAXClient;exports.DecreaseReplicationFactorCommand = DecreaseReplicationFactorCommand;exports.DeleteClusterCommand = DeleteClusterCommand;exports.DeleteParameterGroupCommand = DeleteParameterGroupCommand;exports.DeleteSubnetGroupCommand = DeleteSubnetGroupCommand;exports.DescribeClustersCommand = DescribeClustersCommand;exports.DescribeDefaultParametersCommand = DescribeDefaultParametersCommand;exports.DescribeEventsCommand = DescribeEventsCommand;exports.DescribeParameterGroupsCommand = DescribeParameterGroupsCommand;exports.DescribeParametersCommand = DescribeParametersCommand;exports.DescribeSubnetGroupsCommand = DescribeSubnetGroupsCommand;exports.IncreaseReplicationFactorCommand = IncreaseReplicationFactorCommand;exports.IsModifiable = IsModifiable;exports.ListTagsCommand = ListTagsCommand;exports.NetworkType = NetworkType;exports.ParameterType = ParameterType;exports.RebootNodeCommand = RebootNodeCommand;exports.SSEStatus = SSEStatus;exports.SourceType = SourceType;exports.TagResourceCommand = TagResourceCommand;exports.UntagResourceCommand = UntagResourceCommand;exports.UpdateClusterCommand = UpdateClusterCommand;exports.UpdateParameterGroupCommand = UpdateParameterGroupCommand;exports.UpdateSubnetGroupCommand = UpdateSubnetGroupCommand;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];});