File Explorer

/proc/self/root/var/runtime/node_modules/@aws-sdk/client-keyspaces/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.js17.6 KB · 508 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 KeyspacesServiceException = require('./models/KeyspacesServiceException'); const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "cassandra",    });};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 KeyspacesClient 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.defaultKeyspacesHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class CreateKeyspaceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "CreateKeyspace", {})    .n("KeyspacesClient", "CreateKeyspaceCommand")    .sc(schemas_0.CreateKeyspace$)    .build() {} class CreateTableCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "CreateTable", {})    .n("KeyspacesClient", "CreateTableCommand")    .sc(schemas_0.CreateTable$)    .build() {} class CreateTypeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "CreateType", {})    .n("KeyspacesClient", "CreateTypeCommand")    .sc(schemas_0.CreateType$)    .build() {} class DeleteKeyspaceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "DeleteKeyspace", {})    .n("KeyspacesClient", "DeleteKeyspaceCommand")    .sc(schemas_0.DeleteKeyspace$)    .build() {} class DeleteTableCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "DeleteTable", {})    .n("KeyspacesClient", "DeleteTableCommand")    .sc(schemas_0.DeleteTable$)    .build() {} class DeleteTypeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "DeleteType", {})    .n("KeyspacesClient", "DeleteTypeCommand")    .sc(schemas_0.DeleteType$)    .build() {} class GetKeyspaceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "GetKeyspace", {})    .n("KeyspacesClient", "GetKeyspaceCommand")    .sc(schemas_0.GetKeyspace$)    .build() {} class GetTableAutoScalingSettingsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "GetTableAutoScalingSettings", {})    .n("KeyspacesClient", "GetTableAutoScalingSettingsCommand")    .sc(schemas_0.GetTableAutoScalingSettings$)    .build() {} class GetTableCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "GetTable", {})    .n("KeyspacesClient", "GetTableCommand")    .sc(schemas_0.GetTable$)    .build() {} class GetTypeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "GetType", {})    .n("KeyspacesClient", "GetTypeCommand")    .sc(schemas_0.GetType$)    .build() {} class ListKeyspacesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "ListKeyspaces", {})    .n("KeyspacesClient", "ListKeyspacesCommand")    .sc(schemas_0.ListKeyspaces$)    .build() {} class ListTablesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "ListTables", {})    .n("KeyspacesClient", "ListTablesCommand")    .sc(schemas_0.ListTables$)    .build() {} class ListTagsForResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "ListTagsForResource", {})    .n("KeyspacesClient", "ListTagsForResourceCommand")    .sc(schemas_0.ListTagsForResource$)    .build() {} class ListTypesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "ListTypes", {})    .n("KeyspacesClient", "ListTypesCommand")    .sc(schemas_0.ListTypes$)    .build() {} class RestoreTableCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "RestoreTable", {})    .n("KeyspacesClient", "RestoreTableCommand")    .sc(schemas_0.RestoreTable$)    .build() {} class TagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "TagResource", {})    .n("KeyspacesClient", "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("KeyspacesService", "UntagResource", {})    .n("KeyspacesClient", "UntagResourceCommand")    .sc(schemas_0.UntagResource$)    .build() {} class UpdateKeyspaceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "UpdateKeyspace", {})    .n("KeyspacesClient", "UpdateKeyspaceCommand")    .sc(schemas_0.UpdateKeyspace$)    .build() {} class UpdateTableCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("KeyspacesService", "UpdateTable", {})    .n("KeyspacesClient", "UpdateTableCommand")    .sc(schemas_0.UpdateTable$)    .build() {} const paginateListKeyspaces = core.createPaginator(KeyspacesClient, ListKeyspacesCommand, "nextToken", "nextToken", "maxResults"); const paginateListTables = core.createPaginator(KeyspacesClient, ListTablesCommand, "nextToken", "nextToken", "maxResults"); const paginateListTagsForResource = core.createPaginator(KeyspacesClient, ListTagsForResourceCommand, "nextToken", "nextToken", "maxResults"); const paginateListTypes = core.createPaginator(KeyspacesClient, ListTypesCommand, "nextToken", "nextToken", "maxResults"); const commands = {    CreateKeyspaceCommand,    CreateTableCommand,    CreateTypeCommand,    DeleteKeyspaceCommand,    DeleteTableCommand,    DeleteTypeCommand,    GetKeyspaceCommand,    GetTableCommand,    GetTableAutoScalingSettingsCommand,    GetTypeCommand,    ListKeyspacesCommand,    ListTablesCommand,    ListTagsForResourceCommand,    ListTypesCommand,    RestoreTableCommand,    TagResourceCommand,    UntagResourceCommand,    UpdateKeyspaceCommand,    UpdateTableCommand,};const paginators = {    paginateListKeyspaces,    paginateListTables,    paginateListTagsForResource,    paginateListTypes,};class Keyspaces extends KeyspacesClient {}client.createAggregatedClient(commands, Keyspaces, { paginators }); const ThroughputMode = {    PAY_PER_REQUEST: "PAY_PER_REQUEST",    PROVISIONED: "PROVISIONED",};const CdcPropagateTags = {    NONE: "NONE",    TABLE: "TABLE",};const CdcStatus = {    DISABLED: "DISABLED",    DISABLING: "DISABLING",    ENABLED: "ENABLED",    ENABLING: "ENABLING",};const ViewType = {    KEYS_ONLY: "KEYS_ONLY",    NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES",    NEW_IMAGE: "NEW_IMAGE",    OLD_IMAGE: "OLD_IMAGE",};const ClientSideTimestampsStatus = {    ENABLED: "ENABLED",};const SortOrder = {    ASC: "ASC",    DESC: "DESC",};const Rs = {    MULTI_REGION: "MULTI_REGION",    SINGLE_REGION: "SINGLE_REGION",};const EncryptionType = {    AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY",    CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY",};const PointInTimeRecoveryStatus = {    DISABLED: "DISABLED",    ENABLED: "ENABLED",};const TimeToLiveStatus = {    ENABLED: "ENABLED",};const KeyspaceStatus = {    ACTIVE: "ACTIVE",    CREATING: "CREATING",    DELETING: "DELETING",    UPDATING: "UPDATING",};const TableStatus = {    ACTIVE: "ACTIVE",    CREATING: "CREATING",    DELETED: "DELETED",    DELETING: "DELETING",    INACCESSIBLE_ENCRYPTION_CREDENTIALS: "INACCESSIBLE_ENCRYPTION_CREDENTIALS",    RESTORING: "RESTORING",    UPDATING: "UPDATING",};const WarmThroughputStatus = {    AVAILABLE: "AVAILABLE",    UPDATING: "UPDATING",};const TypeStatus = {    ACTIVE: "ACTIVE",    CREATING: "CREATING",    DELETING: "DELETING",    RESTORING: "RESTORING",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.KeyspacesServiceException = KeyspacesServiceException.KeyspacesServiceException;exports.CdcPropagateTags = CdcPropagateTags;exports.CdcStatus = CdcStatus;exports.ClientSideTimestampsStatus = ClientSideTimestampsStatus;exports.CreateKeyspaceCommand = CreateKeyspaceCommand;exports.CreateTableCommand = CreateTableCommand;exports.CreateTypeCommand = CreateTypeCommand;exports.DeleteKeyspaceCommand = DeleteKeyspaceCommand;exports.DeleteTableCommand = DeleteTableCommand;exports.DeleteTypeCommand = DeleteTypeCommand;exports.EncryptionType = EncryptionType;exports.GetKeyspaceCommand = GetKeyspaceCommand;exports.GetTableAutoScalingSettingsCommand = GetTableAutoScalingSettingsCommand;exports.GetTableCommand = GetTableCommand;exports.GetTypeCommand = GetTypeCommand;exports.KeyspaceStatus = KeyspaceStatus;exports.Keyspaces = Keyspaces;exports.KeyspacesClient = KeyspacesClient;exports.ListKeyspacesCommand = ListKeyspacesCommand;exports.ListTablesCommand = ListTablesCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ListTypesCommand = ListTypesCommand;exports.PointInTimeRecoveryStatus = PointInTimeRecoveryStatus;exports.RestoreTableCommand = RestoreTableCommand;exports.Rs = Rs;exports.SortOrder = SortOrder;exports.TableStatus = TableStatus;exports.TagResourceCommand = TagResourceCommand;exports.ThroughputMode = ThroughputMode;exports.TimeToLiveStatus = TimeToLiveStatus;exports.TypeStatus = TypeStatus;exports.UntagResourceCommand = UntagResourceCommand;exports.UpdateKeyspaceCommand = UpdateKeyspaceCommand;exports.UpdateTableCommand = UpdateTableCommand;exports.ViewType = ViewType;exports.WarmThroughputStatus = WarmThroughputStatus;exports.paginateListKeyspaces = paginateListKeyspaces;exports.paginateListTables = paginateListTables;exports.paginateListTagsForResource = paginateListTagsForResource;exports.paginateListTypes = paginateListTypes;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];});