File Explorer

/proc/self/root/proc/self/root/var/runtime/node_modules/@aws-sdk/client-support/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.js15.0 KB · 376 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 SupportServiceException = require('./models/SupportServiceException'); const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "support",    });};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 SupportClient 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.defaultSupportHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class AddAttachmentsToSetCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "AddAttachmentsToSet", {})    .n("SupportClient", "AddAttachmentsToSetCommand")    .sc(schemas_0.AddAttachmentsToSet$)    .build() {} class AddCommunicationToCaseCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "AddCommunicationToCase", {})    .n("SupportClient", "AddCommunicationToCaseCommand")    .sc(schemas_0.AddCommunicationToCase$)    .build() {} class CreateCaseCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "CreateCase", {})    .n("SupportClient", "CreateCaseCommand")    .sc(schemas_0.CreateCase$)    .build() {} class DescribeAttachmentCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "DescribeAttachment", {})    .n("SupportClient", "DescribeAttachmentCommand")    .sc(schemas_0.DescribeAttachment$)    .build() {} class DescribeCasesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "DescribeCases", {})    .n("SupportClient", "DescribeCasesCommand")    .sc(schemas_0.DescribeCases$)    .build() {} class DescribeCommunicationsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "DescribeCommunications", {})    .n("SupportClient", "DescribeCommunicationsCommand")    .sc(schemas_0.DescribeCommunications$)    .build() {} class DescribeCreateCaseOptionsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "DescribeCreateCaseOptions", {})    .n("SupportClient", "DescribeCreateCaseOptionsCommand")    .sc(schemas_0.DescribeCreateCaseOptions$)    .build() {} class DescribeServicesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "DescribeServices", {})    .n("SupportClient", "DescribeServicesCommand")    .sc(schemas_0.DescribeServices$)    .build() {} class DescribeSeverityLevelsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "DescribeSeverityLevels", {})    .n("SupportClient", "DescribeSeverityLevelsCommand")    .sc(schemas_0.DescribeSeverityLevels$)    .build() {} class DescribeSupportedLanguagesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "DescribeSupportedLanguages", {})    .n("SupportClient", "DescribeSupportedLanguagesCommand")    .sc(schemas_0.DescribeSupportedLanguages$)    .build() {} class DescribeTrustedAdvisorCheckRefreshStatusesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "DescribeTrustedAdvisorCheckRefreshStatuses", {})    .n("SupportClient", "DescribeTrustedAdvisorCheckRefreshStatusesCommand")    .sc(schemas_0.DescribeTrustedAdvisorCheckRefreshStatuses$)    .build() {} class DescribeTrustedAdvisorCheckResultCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "DescribeTrustedAdvisorCheckResult", {})    .n("SupportClient", "DescribeTrustedAdvisorCheckResultCommand")    .sc(schemas_0.DescribeTrustedAdvisorCheckResult$)    .build() {} class DescribeTrustedAdvisorChecksCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "DescribeTrustedAdvisorChecks", {})    .n("SupportClient", "DescribeTrustedAdvisorChecksCommand")    .sc(schemas_0.DescribeTrustedAdvisorChecks$)    .build() {} class DescribeTrustedAdvisorCheckSummariesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "DescribeTrustedAdvisorCheckSummaries", {})    .n("SupportClient", "DescribeTrustedAdvisorCheckSummariesCommand")    .sc(schemas_0.DescribeTrustedAdvisorCheckSummaries$)    .build() {} class RefreshTrustedAdvisorCheckCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "RefreshTrustedAdvisorCheck", {})    .n("SupportClient", "RefreshTrustedAdvisorCheckCommand")    .sc(schemas_0.RefreshTrustedAdvisorCheck$)    .build() {} class ResolveCaseCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSSupport_20130415", "ResolveCase", {})    .n("SupportClient", "ResolveCaseCommand")    .sc(schemas_0.ResolveCase$)    .build() {} const paginateDescribeCases = core.createPaginator(SupportClient, DescribeCasesCommand, "nextToken", "nextToken", "maxResults"); const paginateDescribeCommunications = core.createPaginator(SupportClient, DescribeCommunicationsCommand, "nextToken", "nextToken", "maxResults"); const commands = {    AddAttachmentsToSetCommand,    AddCommunicationToCaseCommand,    CreateCaseCommand,    DescribeAttachmentCommand,    DescribeCasesCommand,    DescribeCommunicationsCommand,    DescribeCreateCaseOptionsCommand,    DescribeServicesCommand,    DescribeSeverityLevelsCommand,    DescribeSupportedLanguagesCommand,    DescribeTrustedAdvisorCheckRefreshStatusesCommand,    DescribeTrustedAdvisorCheckResultCommand,    DescribeTrustedAdvisorChecksCommand,    DescribeTrustedAdvisorCheckSummariesCommand,    RefreshTrustedAdvisorCheckCommand,    ResolveCaseCommand,};const paginators = {    paginateDescribeCases,    paginateDescribeCommunications,};class Support extends SupportClient {}client.createAggregatedClient(commands, Support, { paginators }); exports.$Command = client.Command;exports.__Client = client.Client;exports.SupportServiceException = SupportServiceException.SupportServiceException;exports.AddAttachmentsToSetCommand = AddAttachmentsToSetCommand;exports.AddCommunicationToCaseCommand = AddCommunicationToCaseCommand;exports.CreateCaseCommand = CreateCaseCommand;exports.DescribeAttachmentCommand = DescribeAttachmentCommand;exports.DescribeCasesCommand = DescribeCasesCommand;exports.DescribeCommunicationsCommand = DescribeCommunicationsCommand;exports.DescribeCreateCaseOptionsCommand = DescribeCreateCaseOptionsCommand;exports.DescribeServicesCommand = DescribeServicesCommand;exports.DescribeSeverityLevelsCommand = DescribeSeverityLevelsCommand;exports.DescribeSupportedLanguagesCommand = DescribeSupportedLanguagesCommand;exports.DescribeTrustedAdvisorCheckRefreshStatusesCommand = DescribeTrustedAdvisorCheckRefreshStatusesCommand;exports.DescribeTrustedAdvisorCheckResultCommand = DescribeTrustedAdvisorCheckResultCommand;exports.DescribeTrustedAdvisorCheckSummariesCommand = DescribeTrustedAdvisorCheckSummariesCommand;exports.DescribeTrustedAdvisorChecksCommand = DescribeTrustedAdvisorChecksCommand;exports.RefreshTrustedAdvisorCheckCommand = RefreshTrustedAdvisorCheckCommand;exports.ResolveCaseCommand = ResolveCaseCommand;exports.Support = Support;exports.SupportClient = SupportClient;exports.paginateDescribeCases = paginateDescribeCases;exports.paginateDescribeCommunications = paginateDescribeCommunications;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];});