File Explorer

/var/runtime/node_modules/@aws-sdk/client-interconnect/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.js35.7 KB · 991 lines
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");const { Command: $Command } = require("@smithy/core/client");exports.$Command = $Command;exports.__Client = Client;const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");const { defaultProvider } = require("@aws-sdk/credential-provider-node");const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");const { Sha256 } = require("@smithy/core/checksum"); const defaultInterconnectHttpAuthSchemeParametersProvider = async (config, context, input) => {    return {        operation: getSmithyContext(context).operation,        region: await normalizeProvider(config.region)() || (() => {            throw new Error("expected `region` to be configured for `aws.auth#sigv4`");        })(),    };};function createAwsAuthSigv4HttpAuthOption(authParameters) {    return {        schemeId: "aws.auth#sigv4",        signingProperties: {            name: "interconnect",            region: authParameters.region,        },        propertiesExtractor: (config, context) => ({            signingProperties: {                config,                context,            },        }),    };}const defaultInterconnectHttpAuthSchemeProvider = (authParameters) => {    const options = [];    switch (authParameters.operation) {        default: {            options.push(createAwsAuthSigv4HttpAuthOption(authParameters));        }    }    return options;};const resolveHttpAuthSchemeConfig = (config) => {    const config_0 = resolveAwsSdkSigV4Config(config);    return Object.assign(config_0, {        authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),    });}; const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "interconnect",    });};const commonParams = {    UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },    Endpoint: { type: "builtInParams", name: "endpoint" },    Region: { type: "builtInParams", name: "region" },}; var version = "3.1104.0";var packageInfo = {	version: version}; const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];const _data = {    conditions: [        [a, [b]],        [a, c],        ["aws.partition", c, "PartitionResult"],        ["booleanEquals", [{ ref: "UseFIPS" }, true]]    ],    results: [        [-1],        [-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],        [b, {}],        ["https://interconnect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],        ["https://interconnect.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],        [-1, "Invalid Configuration: Missing Region"]    ]};const root = 2;const r = 100_000_000;const nodes = new Int32Array([    -1, 1, -1,    0, 6, 3,    1, 4, r + 5,    2, 5, r + 5,    3, r + 3, r + 4,    3, r + 1, r + 2,]);const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); const cache = new EndpointCache({    size: 50,    params: ["Endpoint", "Region", "UseFIPS"],});const defaultEndpointResolver = (endpointParams, context = {}) => {    return cache.get(endpointParams, () => decideEndpoint(bdd, {        endpointParams: endpointParams,        logger: context.logger,    }));};customEndpointFunctions.aws = awsEndpointFunctions; class InterconnectServiceException extends ServiceException {    constructor(options) {        super(options);        Object.setPrototypeOf(this, InterconnectServiceException.prototype);    }} class AccessDeniedException extends InterconnectServiceException {    name = "AccessDeniedException";    $fault = "client";    constructor(opts) {        super({            name: "AccessDeniedException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, AccessDeniedException.prototype);    }}class InterconnectClientException extends InterconnectServiceException {    name = "InterconnectClientException";    $fault = "client";    constructor(opts) {        super({            name: "InterconnectClientException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, InterconnectClientException.prototype);    }}class InterconnectServerException extends InterconnectServiceException {    name = "InterconnectServerException";    $fault = "server";    constructor(opts) {        super({            name: "InterconnectServerException",            $fault: "server",            ...opts,        });        Object.setPrototypeOf(this, InterconnectServerException.prototype);    }}class InterconnectValidationException extends InterconnectServiceException {    name = "InterconnectValidationException";    $fault = "client";    constructor(opts) {        super({            name: "InterconnectValidationException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, InterconnectValidationException.prototype);    }}class ResourceNotFoundException extends InterconnectServiceException {    name = "ResourceNotFoundException";    $fault = "client";    constructor(opts) {        super({            name: "ResourceNotFoundException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ResourceNotFoundException.prototype);    }}class ServiceQuotaExceededException extends InterconnectServiceException {    name = "ServiceQuotaExceededException";    $fault = "client";    constructor(opts) {        super({            name: "ServiceQuotaExceededException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);    }}class ThrottlingException extends InterconnectServiceException {    name = "ThrottlingException";    $fault = "client";    constructor(opts) {        super({            name: "ThrottlingException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ThrottlingException.prototype);    }} const _ACP = "AcceptConnectionProposal";const _ACPR = "AcceptConnectionProposalRequest";const _ACPRc = "AcceptConnectionProposalResponse";const _ADE = "AccessDeniedException";const _AK = "ActivationKey";const _AP = "AttachPoint";const _APD = "AttachPointDescriptor";const _APDL = "AttachPointDescriptorList";const _B = "Bandwidths";const _C = "Connection";const _CC = "CreateConnection";const _CCR = "CreateConnectionRequest";const _CCRr = "CreateConnectionResponse";const _CS = "ConnectionSummary";const _CSL = "ConnectionSummariesList";const _DC = "DeleteConnection";const _DCP = "DescribeConnectionProposal";const _DCPR = "DescribeConnectionProposalRequest";const _DCPRe = "DescribeConnectionProposalResponse";const _DCR = "DeleteConnectionRequest";const _DCRe = "DeleteConnectionResponse";const _E = "Environment";const _EL = "EnvironmentList";const _GC = "GetConnection";const _GCR = "GetConnectionRequest";const _GCRe = "GetConnectionResponse";const _GE = "GetEnvironment";const _GER = "GetEnvironmentRequest";const _GERe = "GetEnvironmentResponse";const _ICE = "InterconnectClientException";const _ISE = "InterconnectServerException";const _IVE = "InterconnectValidationException";const _LAP = "ListAttachPoints";const _LAPR = "ListAttachPointsRequest";const _LAPRi = "ListAttachPointsResponse";const _LC = "ListConnections";const _LCR = "ListConnectionsRequest";const _LCRi = "ListConnectionsResponse";const _LE = "ListEnvironments";const _LER = "ListEnvironmentsRequest";const _LERi = "ListEnvironmentsResponse";const _LTFR = "ListTagsForResource";const _LTFRR = "ListTagsForResourceRequest";const _LTFRRi = "ListTagsForResourceResponse";const _P = "Provider";const _RAI = "RemoteAccountIdentifier";const _RNFE = "ResourceNotFoundException";const _SQEE = "ServiceQuotaExceededException";const _TE = "ThrottlingException";const _TR = "TagResource";const _TRR = "TagResourceRequest";const _TRRa = "TagResourceResponse";const _UC = "UpdateConnection";const _UCR = "UpdateConnectionRequest";const _UCRp = "UpdateConnectionResponse";const _UR = "UntagResource";const _URR = "UntagResourceRequest";const _URRn = "UntagResourceResponse";const _a = "available";const _aK = "activationKey";const _aP = "attachPoint";const _aPU = "activationPageUrl";const _aPt = "attachPoints";const _ar = "arn";const _b = "bandwidth";const _bT = "billingTier";const _ba = "bandwidths";const _c = "client";const _cSP = "cloudServiceProvider";const _cT = "clientToken";const _co = "connection";const _con = "connections";const _d = "description";const _dCG = "directConnectGateway";const _e = "error";const _eI = "environmentId";const _en = "environment";const _env = "environments";const _hE = "httpError";const _i = "identifier";const _id = "id";const _l = "location";const _lMP = "lastMileProvider";const _m = "message";const _mR = "maxResults";const _n = "name";const _nT = "nextToken";const _oA = "ownerAccount";const _p = "provider";const _rA = "remoteAccount";const _rIT = "remoteIdentifierType";const _s = "smithy.ts.sdk.synthetic.com.amazonaws.interconnect";const _sI = "sharedId";const _se = "server";const _st = "state";const _su = "supported";const _t = "tags";const _tK = "tagKeys";const _ty = "type";const n0 = "com.amazonaws.interconnect";const _s_registry = TypeRegistry.for(_s);var InterconnectServiceException$ = [-3, _s, "InterconnectServiceException", 0, [], []];_s_registry.registerError(InterconnectServiceException$, InterconnectServiceException);const n0_registry = TypeRegistry.for(n0);var AccessDeniedException$ = [-3, n0, _ADE,    { [_e]: _c, [_hE]: 403 },    [_m],    [0]];n0_registry.registerError(AccessDeniedException$, AccessDeniedException);var InterconnectClientException$ = [-3, n0, _ICE,    { [_e]: _c, [_hE]: 400 },    [_m],    [0], 1];n0_registry.registerError(InterconnectClientException$, InterconnectClientException);var InterconnectServerException$ = [-3, n0, _ISE,    { [_e]: _se, [_hE]: 500 },    [_m],    [0], 1];n0_registry.registerError(InterconnectServerException$, InterconnectServerException);var InterconnectValidationException$ = [-3, n0, _IVE,    { [_e]: _c, [_hE]: 400 },    [_m],    [0], 1];n0_registry.registerError(InterconnectValidationException$, InterconnectValidationException);var ResourceNotFoundException$ = [-3, n0, _RNFE,    { [_e]: _c, [_hE]: 404 },    [_m],    [0]];n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);var ServiceQuotaExceededException$ = [-3, n0, _SQEE,    { [_e]: _c, [_hE]: 402 },    [_m],    [0]];n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);var ThrottlingException$ = [-3, n0, _TE,    { [_e]: _c, [_hE]: 429 },    [_m],    [0]];n0_registry.registerError(ThrottlingException$, ThrottlingException);const errorTypeRegistries = [    _s_registry,    n0_registry,];var ActivationKey = [0, n0, _AK, 8, 0];var AcceptConnectionProposalRequest$ = [3, n0, _ACPR,    0,    [_aP, _aK, _d, _t, _cT],    [() => AttachPoint$, [() => ActivationKey, 0], 0, 128 | 0, [0, 4]], 2];var AcceptConnectionProposalResponse$ = [3, n0, _ACPRc,    0,    [_co],    [[() => Connection$, 0]]];var AttachPointDescriptor$ = [3, n0, _APD,    0,    [_ty, _i, _n],    [0, 0, 0], 3];var Bandwidths$ = [3, n0, _B,    0,    [_a, _su],    [64 | 0, 64 | 0]];var Connection$ = [3, n0, _C,    0,    [_id, _ar, _d, _b, _aP, _eI, _p, _l, _ty, _st, _sI, _oA, _aK, _bT, _t],    [0, 0, 0, 0, () => AttachPoint$, 0, () => Provider$, 0, 0, 0, 0, 0, [() => ActivationKey, 0], 1, 128 | 0], 13];var ConnectionSummary$ = [3, n0, _CS,    0,    [_id, _ar, _d, _b, _aP, _eI, _p, _l, _ty, _st, _sI, _bT],    [0, 0, 0, 0, () => AttachPoint$, 0, () => Provider$, 0, 0, 0, 0, 1], 11];var CreateConnectionRequest$ = [3, n0, _CCR,    0,    [_b, _aP, _eI, _d, _rA, _t, _cT],    [0, () => AttachPoint$, 0, 0, () => RemoteAccountIdentifier$, 128 | 0, [0, 4]], 3];var CreateConnectionResponse$ = [3, n0, _CCRr,    0,    [_co],    [[() => Connection$, 0]]];var DeleteConnectionRequest$ = [3, n0, _DCR,    0,    [_i, _cT],    [0, [0, 4]], 1];var DeleteConnectionResponse$ = [3, n0, _DCRe,    0,    [_co],    [[() => Connection$, 0]], 1];var DescribeConnectionProposalRequest$ = [3, n0, _DCPR,    0,    [_aK],    [[() => ActivationKey, 0]], 1];var DescribeConnectionProposalResponse$ = [3, n0, _DCPRe,    0,    [_b, _eI, _p, _l],    [0, 0, () => Provider$, 0], 4];var Environment$ = [3, n0, _E,    0,    [_p, _l, _eI, _st, _ba, _ty, _aPU, _rIT],    [() => Provider$, 0, 0, 0, () => Bandwidths$, 0, 0, 0], 6];var GetConnectionRequest$ = [3, n0, _GCR,    0,    [_i],    [0], 1];var GetConnectionResponse$ = [3, n0, _GCRe,    0,    [_co],    [[() => Connection$, 0]]];var GetEnvironmentRequest$ = [3, n0, _GER,    0,    [_id],    [0], 1];var GetEnvironmentResponse$ = [3, n0, _GERe,    0,    [_en],    [() => Environment$], 1];var ListAttachPointsRequest$ = [3, n0, _LAPR,    0,    [_eI, _mR, _nT],    [0, 1, 0], 1];var ListAttachPointsResponse$ = [3, n0, _LAPRi,    0,    [_aPt, _nT],    [() => AttachPointDescriptorList, 0], 1];var ListConnectionsRequest$ = [3, n0, _LCR,    0,    [_mR, _nT, _st, _eI, _p, _aP],    [1, 0, 0, 0, () => Provider$, () => AttachPoint$]];var ListConnectionsResponse$ = [3, n0, _LCRi,    0,    [_con, _nT],    [() => ConnectionSummariesList, 0]];var ListEnvironmentsRequest$ = [3, n0, _LER,    0,    [_mR, _nT, _p, _l],    [1, 0, () => Provider$, 0]];var ListEnvironmentsResponse$ = [3, n0, _LERi,    0,    [_env, _nT],    [() => EnvironmentList, 0], 1];var ListTagsForResourceRequest$ = [3, n0, _LTFRR,    0,    [_ar],    [0], 1];var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,    0,    [_t],    [128 | 0]];var TagResourceRequest$ = [3, n0, _TRR,    0,    [_ar, _t],    [0, 128 | 0], 2];var TagResourceResponse$ = [3, n0, _TRRa,    0,    [],    []];var UntagResourceRequest$ = [3, n0, _URR,    0,    [_ar, _tK],    [0, 64 | 0], 2];var UntagResourceResponse$ = [3, n0, _URRn,    0,    [],    []];var UpdateConnectionRequest$ = [3, n0, _UCR,    0,    [_i, _d, _b, _cT],    [0, 0, 0, [0, 4]], 1];var UpdateConnectionResponse$ = [3, n0, _UCRp,    0,    [_co],    [[() => Connection$, 0]]];var AttachPointDescriptorList = [1, n0, _APDL,    0, () => AttachPointDescriptor$];var ConnectionSummariesList = [1, n0, _CSL,    0, () => ConnectionSummary$];var EnvironmentList = [1, n0, _EL,    0, () => Environment$];var AttachPoint$ = [4, n0, _AP,    0,    [_dCG, _ar],    [0, 0]];var Provider$ = [4, n0, _P,    0,    [_cSP, _lMP],    [0, 0]];var RemoteAccountIdentifier$ = [4, n0, _RAI,    0,    [_i],    [0]];var AcceptConnectionProposal$ = [9, n0, _ACP,    2, () => AcceptConnectionProposalRequest$, () => AcceptConnectionProposalResponse$];var CreateConnection$ = [9, n0, _CC,    2, () => CreateConnectionRequest$, () => CreateConnectionResponse$];var DeleteConnection$ = [9, n0, _DC,    2, () => DeleteConnectionRequest$, () => DeleteConnectionResponse$];var DescribeConnectionProposal$ = [9, n0, _DCP,    0, () => DescribeConnectionProposalRequest$, () => DescribeConnectionProposalResponse$];var GetConnection$ = [9, n0, _GC,    0, () => GetConnectionRequest$, () => GetConnectionResponse$];var GetEnvironment$ = [9, n0, _GE,    0, () => GetEnvironmentRequest$, () => GetEnvironmentResponse$];var ListAttachPoints$ = [9, n0, _LAP,    0, () => ListAttachPointsRequest$, () => ListAttachPointsResponse$];var ListConnections$ = [9, n0, _LC,    0, () => ListConnectionsRequest$, () => ListConnectionsResponse$];var ListEnvironments$ = [9, n0, _LE,    0, () => ListEnvironmentsRequest$, () => ListEnvironmentsResponse$];var ListTagsForResource$ = [9, n0, _LTFR,    0, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$];var TagResource$ = [9, n0, _TR,    0, () => TagResourceRequest$, () => TagResourceResponse$];var UntagResource$ = [9, n0, _UR,    0, () => UntagResourceRequest$, () => UntagResourceResponse$];var UpdateConnection$ = [9, n0, _UC,    2, () => UpdateConnectionRequest$, () => UpdateConnectionResponse$]; const getRuntimeConfig$1 = (config) => {    return {        apiVersion: "2022-07-26",        base64Decoder: config?.base64Decoder ?? fromBase64,        base64Encoder: config?.base64Encoder ?? toBase64,        disableHostPrefix: config?.disableHostPrefix ?? false,        endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,        extensions: config?.extensions ?? [],        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultInterconnectHttpAuthSchemeProvider,        httpAuthSchemes: config?.httpAuthSchemes ?? [            {                schemeId: "aws.auth#sigv4",                identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),                signer: new AwsSdkSigV4Signer(),            },        ],        logger: config?.logger ?? new NoOpLogger(),        protocol: config?.protocol ?? AwsJson1_0Protocol,        protocolSettings: config?.protocolSettings ?? {            defaultNamespace: "com.amazonaws.interconnect",            errorTypeRegistries,            version: "2022-07-26",            serviceTarget: "Interconnect",        },        serviceId: config?.serviceId ?? "Interconnect",        sha256: config?.sha256 ?? Sha256,        urlParser: config?.urlParser ?? parseUrl,        utf8Decoder: config?.utf8Decoder ?? fromUtf8,        utf8Encoder: config?.utf8Encoder ?? toUtf8,    };}; const getRuntimeConfig = (config) => {    emitWarningIfUnsupportedVersion(process.version);    const defaultsMode = resolveDefaultsModeConfig(config);    const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);    const clientSharedValues = getRuntimeConfig$1(config);    emitWarningIfUnsupportedVersion$1(process.version);    const loaderConfig = {        profile: config?.profile,        logger: clientSharedValues.logger,    };    return {        ...clientSharedValues,        ...config,        runtime: "node",        defaultsMode,        authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),        bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,        credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,        defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),        maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),        region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),        requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),        retryMode: config?.retryMode ??            loadConfig({                ...NODE_RETRY_MODE_CONFIG_OPTIONS,                default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,            }, config),        streamCollector: config?.streamCollector ?? streamCollector,        useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),        useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),        userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),    };}; 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(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));    extensions.forEach((extension) => extension.configure(extensionConfiguration));    return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));}; class InterconnectClient extends Client {    config;    constructor(...[configuration]) {        const _config_0 = getRuntimeConfig(configuration || {});        super(_config_0);        this.initConfig = _config_0;        const _config_1 = resolveClientEndpointParameters(_config_0);        const _config_2 = resolveUserAgentConfig(_config_1);        const _config_3 = resolveRetryConfig(_config_2);        const _config_4 = resolveRegionConfig(_config_3);        const _config_5 = resolveHostHeaderConfig(_config_4);        const _config_6 = resolveEndpointConfig(_config_5);        const _config_7 = resolveHttpAuthSchemeConfig(_config_6);        const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);        this.config = _config_8;        this.middlewareStack.use(getSchemaSerdePlugin(this.config));        this.middlewareStack.use(getUserAgentPlugin(this.config));        this.middlewareStack.use(getRetryPlugin(this.config));        this.middlewareStack.use(getContentLengthPlugin(this.config));        this.middlewareStack.use(getHostHeaderPlugin(this.config));        this.middlewareStack.use(getLoggerPlugin(this.config));        this.middlewareStack.use(getRecursionDetectionPlugin(this.config));        this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {            httpAuthSchemeParametersProvider: defaultInterconnectHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} const command = makeBuilder(commonParams, "Interconnect", "InterconnectClient", getEndpointPlugin);const _ep0 = {};const _mw0 = (Command, cs, config, o) => []; class AcceptConnectionProposalCommand extends command(_ep0, _mw0, "AcceptConnectionProposal", AcceptConnectionProposal$) {} class CreateConnectionCommand extends command(_ep0, _mw0, "CreateConnection", CreateConnection$) {} class DeleteConnectionCommand extends command(_ep0, _mw0, "DeleteConnection", DeleteConnection$) {} class DescribeConnectionProposalCommand extends command(_ep0, _mw0, "DescribeConnectionProposal", DescribeConnectionProposal$) {} class GetConnectionCommand extends command(_ep0, _mw0, "GetConnection", GetConnection$) {} class GetEnvironmentCommand extends command(_ep0, _mw0, "GetEnvironment", GetEnvironment$) {} class ListAttachPointsCommand extends command(_ep0, _mw0, "ListAttachPoints", ListAttachPoints$) {} class ListConnectionsCommand extends command(_ep0, _mw0, "ListConnections", ListConnections$) {} class ListEnvironmentsCommand extends command(_ep0, _mw0, "ListEnvironments", ListEnvironments$) {} class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {} class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {} class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {} class UpdateConnectionCommand extends command(_ep0, _mw0, "UpdateConnection", UpdateConnection$) {} const paginateListAttachPoints = createPaginator(InterconnectClient, ListAttachPointsCommand, "nextToken", "nextToken", "maxResults"); const paginateListConnections = createPaginator(InterconnectClient, ListConnectionsCommand, "nextToken", "nextToken", "maxResults"); const paginateListEnvironments = createPaginator(InterconnectClient, ListEnvironmentsCommand, "nextToken", "nextToken", "maxResults"); const checkState$1 = async (client, input) => {    let reason;    try {        let result = await client.send(new GetConnectionCommand(input));        reason = result;        try {            const returnComparator = () => {                return result.connection.state;            };            if (returnComparator() === "available") {                return { state: WaiterState.SUCCESS, reason };            }        }        catch (e) { }        try {            const returnComparator = () => {                return result.connection.state;            };            if (returnComparator() === "deleted") {                return { state: WaiterState.FAILURE, reason };            }        }        catch (e) { }        try {            const returnComparator = () => {                return result.connection.state;            };            if (returnComparator() === "down") {                return { state: WaiterState.FAILURE, reason };            }        }        catch (e) { }    }    catch (exception) {        reason = exception;    }    return { state: WaiterState.RETRY, reason };};const waitForConnectionAvailable = async (params, input) => {    const serviceDefaults = { minDelay: 30, maxDelay: 120 };    return createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);};const waitUntilConnectionAvailable = async (params, input) => {    const serviceDefaults = { minDelay: 30, maxDelay: 120 };    const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);    return checkExceptions(result);}; const checkState = async (client, input) => {    let reason;    try {        let result = await client.send(new GetConnectionCommand(input));        reason = result;        try {            const returnComparator = () => {                return result.connection.state;            };            if (returnComparator() === "deleted") {                return { state: WaiterState.SUCCESS, reason };            }        }        catch (e) { }    }    catch (exception) {        reason = exception;    }    return { state: WaiterState.RETRY, reason };};const waitForConnectionDeleted = async (params, input) => {    const serviceDefaults = { minDelay: 30, maxDelay: 120 };    return createWaiter({ ...serviceDefaults, ...params }, input, checkState);};const waitUntilConnectionDeleted = async (params, input) => {    const serviceDefaults = { minDelay: 30, maxDelay: 120 };    const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);    return checkExceptions(result);}; const commands = {    AcceptConnectionProposalCommand,    CreateConnectionCommand,    DeleteConnectionCommand,    DescribeConnectionProposalCommand,    GetConnectionCommand,    GetEnvironmentCommand,    ListAttachPointsCommand,    ListConnectionsCommand,    ListEnvironmentsCommand,    ListTagsForResourceCommand,    TagResourceCommand,    UntagResourceCommand,    UpdateConnectionCommand,};const paginators = {    paginateListAttachPoints,    paginateListConnections,    paginateListEnvironments,};const waiters = {    waitUntilConnectionAvailable,    waitUntilConnectionDeleted,};class Interconnect extends InterconnectClient {}createAggregatedClient(commands, Interconnect, { paginators, waiters }); const ConnectionState = {    AVAILABLE: "available",    DELETED: "deleted",    DELETING: "deleting",    DOWN: "down",    FAILED: "failed",    PENDING: "pending",    REQUESTED: "requested",    UPDATING: "updating",};const AttachPointType = {    DirectConnectGateway: "DirectConnectGateway",};const RemoteAccountIdentifierType = {    ACCOUNT: "account",    EMAIL: "email",};const EnvironmentState = {    AVAILABLE: "available",    LIMITED: "limited",    UNAVAILABLE: "unavailable",}; exports.AcceptConnectionProposal$ = AcceptConnectionProposal$;exports.AcceptConnectionProposalCommand = AcceptConnectionProposalCommand;exports.AcceptConnectionProposalRequest$ = AcceptConnectionProposalRequest$;exports.AcceptConnectionProposalResponse$ = AcceptConnectionProposalResponse$;exports.AccessDeniedException = AccessDeniedException;exports.AccessDeniedException$ = AccessDeniedException$;exports.AttachPoint$ = AttachPoint$;exports.AttachPointDescriptor$ = AttachPointDescriptor$;exports.AttachPointType = AttachPointType;exports.Bandwidths$ = Bandwidths$;exports.Connection$ = Connection$;exports.ConnectionState = ConnectionState;exports.ConnectionSummary$ = ConnectionSummary$;exports.CreateConnection$ = CreateConnection$;exports.CreateConnectionCommand = CreateConnectionCommand;exports.CreateConnectionRequest$ = CreateConnectionRequest$;exports.CreateConnectionResponse$ = CreateConnectionResponse$;exports.DeleteConnection$ = DeleteConnection$;exports.DeleteConnectionCommand = DeleteConnectionCommand;exports.DeleteConnectionRequest$ = DeleteConnectionRequest$;exports.DeleteConnectionResponse$ = DeleteConnectionResponse$;exports.DescribeConnectionProposal$ = DescribeConnectionProposal$;exports.DescribeConnectionProposalCommand = DescribeConnectionProposalCommand;exports.DescribeConnectionProposalRequest$ = DescribeConnectionProposalRequest$;exports.DescribeConnectionProposalResponse$ = DescribeConnectionProposalResponse$;exports.Environment$ = Environment$;exports.EnvironmentState = EnvironmentState;exports.GetConnection$ = GetConnection$;exports.GetConnectionCommand = GetConnectionCommand;exports.GetConnectionRequest$ = GetConnectionRequest$;exports.GetConnectionResponse$ = GetConnectionResponse$;exports.GetEnvironment$ = GetEnvironment$;exports.GetEnvironmentCommand = GetEnvironmentCommand;exports.GetEnvironmentRequest$ = GetEnvironmentRequest$;exports.GetEnvironmentResponse$ = GetEnvironmentResponse$;exports.Interconnect = Interconnect;exports.InterconnectClient = InterconnectClient;exports.InterconnectClientException = InterconnectClientException;exports.InterconnectClientException$ = InterconnectClientException$;exports.InterconnectServerException = InterconnectServerException;exports.InterconnectServerException$ = InterconnectServerException$;exports.InterconnectServiceException = InterconnectServiceException;exports.InterconnectServiceException$ = InterconnectServiceException$;exports.InterconnectValidationException = InterconnectValidationException;exports.InterconnectValidationException$ = InterconnectValidationException$;exports.ListAttachPoints$ = ListAttachPoints$;exports.ListAttachPointsCommand = ListAttachPointsCommand;exports.ListAttachPointsRequest$ = ListAttachPointsRequest$;exports.ListAttachPointsResponse$ = ListAttachPointsResponse$;exports.ListConnections$ = ListConnections$;exports.ListConnectionsCommand = ListConnectionsCommand;exports.ListConnectionsRequest$ = ListConnectionsRequest$;exports.ListConnectionsResponse$ = ListConnectionsResponse$;exports.ListEnvironments$ = ListEnvironments$;exports.ListEnvironmentsCommand = ListEnvironmentsCommand;exports.ListEnvironmentsRequest$ = ListEnvironmentsRequest$;exports.ListEnvironmentsResponse$ = ListEnvironmentsResponse$;exports.ListTagsForResource$ = ListTagsForResource$;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;exports.Provider$ = Provider$;exports.RemoteAccountIdentifier$ = RemoteAccountIdentifier$;exports.RemoteAccountIdentifierType = RemoteAccountIdentifierType;exports.ResourceNotFoundException = ResourceNotFoundException;exports.ResourceNotFoundException$ = ResourceNotFoundException$;exports.ServiceQuotaExceededException = ServiceQuotaExceededException;exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;exports.TagResource$ = TagResource$;exports.TagResourceCommand = TagResourceCommand;exports.TagResourceRequest$ = TagResourceRequest$;exports.TagResourceResponse$ = TagResourceResponse$;exports.ThrottlingException = ThrottlingException;exports.ThrottlingException$ = ThrottlingException$;exports.UntagResource$ = UntagResource$;exports.UntagResourceCommand = UntagResourceCommand;exports.UntagResourceRequest$ = UntagResourceRequest$;exports.UntagResourceResponse$ = UntagResourceResponse$;exports.UpdateConnection$ = UpdateConnection$;exports.UpdateConnectionCommand = UpdateConnectionCommand;exports.UpdateConnectionRequest$ = UpdateConnectionRequest$;exports.UpdateConnectionResponse$ = UpdateConnectionResponse$;exports.errorTypeRegistries = errorTypeRegistries;exports.paginateListAttachPoints = paginateListAttachPoints;exports.paginateListConnections = paginateListConnections;exports.paginateListEnvironments = paginateListEnvironments;exports.waitForConnectionAvailable = waitForConnectionAvailable;exports.waitForConnectionDeleted = waitForConnectionDeleted;exports.waitUntilConnectionAvailable = waitUntilConnectionAvailable;exports.waitUntilConnectionDeleted = waitUntilConnectionDeleted;