File Explorer

/proc/self/root/proc/4/root/var/runtime/node_modules/@aws-sdk/client-mwaa/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.js37.3 KB · 1035 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, 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 { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");const { Sha256 } = require("@smithy/core/checksum"); const defaultMWAAHttpAuthSchemeParametersProvider = 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: "airflow",            region: authParameters.region,        },        propertiesExtractor: (config, context) => ({            signingProperties: {                config,                context,            },        }),    };}const defaultMWAAHttpAuthSchemeProvider = (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, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "airflow",    });};const commonParams = {    UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },    Endpoint: { type: "builtInParams", name: "endpoint" },    Region: { type: "builtInParams", name: "region" },    UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },}; var version = "3.1104.0";var packageInfo = {	version: version}; const k = "ref";const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];const _data = {    conditions: [        [c, [g]],        [c, j],        ["aws.partition", j, d],        [e, [{ [k]: "UseFIPS" }, b]],        [e, [{ [k]: "UseDualStack" }, b]],        [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],        [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]    ],    results: [        [a],        [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],        [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],        [g, i],        ["https://airflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],        [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],        ["https://airflow-fips.{Region}.{PartitionResult#dnsSuffix}", i],        [a, "FIPS is enabled but this partition does not support FIPS"],        ["https://airflow.{Region}.{PartitionResult#dualStackDnsSuffix}", i],        [a, "DualStack is enabled but this partition does not support DualStack"],        ["https://airflow.{Region}.{PartitionResult#dnsSuffix}", i],        [a, "Invalid Configuration: Missing Region"]    ]};const root = 2;const r = 100_000_000;const nodes = new Int32Array([    -1, 1, -1,    0, 12, 3,    1, 4, r + 11,    2, 5, r + 11,    3, 8, 6,    4, 7, r + 10,    5, r + 8, r + 9,    4, 10, 9,    6, r + 6, r + 7,    5, 11, r + 5,    6, r + 4, r + 5,    3, r + 1, 13,    4, r + 2, r + 3,]);const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); const cache = new EndpointCache({    size: 50,    params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],});const defaultEndpointResolver = (endpointParams, context = {}) => {    return cache.get(endpointParams, () => decideEndpoint(bdd, {        endpointParams: endpointParams,        logger: context.logger,    }));};customEndpointFunctions.aws = awsEndpointFunctions; class MWAAServiceException extends ServiceException {    constructor(options) {        super(options);        Object.setPrototypeOf(this, MWAAServiceException.prototype);    }} class AccessDeniedException extends MWAAServiceException {    name = "AccessDeniedException";    $fault = "client";    Message;    constructor(opts) {        super({            name: "AccessDeniedException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, AccessDeniedException.prototype);        this.Message = opts.Message;    }}class ResourceNotFoundException extends MWAAServiceException {    name = "ResourceNotFoundException";    $fault = "client";    constructor(opts) {        super({            name: "ResourceNotFoundException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ResourceNotFoundException.prototype);    }}class InternalServerException extends MWAAServiceException {    name = "InternalServerException";    $fault = "server";    constructor(opts) {        super({            name: "InternalServerException",            $fault: "server",            ...opts,        });        Object.setPrototypeOf(this, InternalServerException.prototype);    }}class ServiceUnavailableException extends MWAAServiceException {    name = "ServiceUnavailableException";    $fault = "server";    constructor(opts) {        super({            name: "ServiceUnavailableException",            $fault: "server",            ...opts,        });        Object.setPrototypeOf(this, ServiceUnavailableException.prototype);    }}class ValidationException extends MWAAServiceException {    name = "ValidationException";    $fault = "client";    constructor(opts) {        super({            name: "ValidationException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ValidationException.prototype);    }}class RestApiClientException extends MWAAServiceException {    name = "RestApiClientException";    $fault = "client";    RestApiStatusCode;    RestApiResponse;    constructor(opts) {        super({            name: "RestApiClientException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, RestApiClientException.prototype);        this.RestApiStatusCode = opts.RestApiStatusCode;        this.RestApiResponse = opts.RestApiResponse;    }}class RestApiServerException extends MWAAServiceException {    name = "RestApiServerException";    $fault = "client";    RestApiStatusCode;    RestApiResponse;    constructor(opts) {        super({            name: "RestApiServerException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, RestApiServerException.prototype);        this.RestApiStatusCode = opts.RestApiStatusCode;        this.RestApiResponse = opts.RestApiResponse;    }} const _A = "Arn";const _ACO = "AirflowConfigurationOptions";const _ADE = "AccessDeniedException";const _AI = "AirflowIdentity";const _AV = "AirflowVersion";const _B = "Body";const _CA = "CreatedAt";const _CCT = "CreateCliToken";const _CCTR = "CreateCliTokenRequest";const _CCTRr = "CreateCliTokenResponse";const _CE = "CreateEnvironment";const _CEI = "CreateEnvironmentInput";const _CEO = "CreateEnvironmentOutput";const _CEQ = "CeleryExecutorQueue";const _CT = "CliToken";const _CV = "ConfigValue";const _CWLGA = "CloudWatchLogGroupArn";const _CWLT = "CreateWebLoginToken";const _CWLTR = "CreateWebLoginTokenRequest";const _CWLTRr = "CreateWebLoginTokenResponse";const _D = "Dimension";const _DE = "DeleteEnvironment";const _DEI = "DeleteEnvironmentInput";const _DEO = "DeleteEnvironmentOutput";const _DPL = "DagProcessingLogs";const _DSP = "DagS3Path";const _DVES = "DatabaseVpcEndpointService";const _Di = "Dimensions";const _E = "Environment";const _EC = "EnvironmentClass";const _ECr = "ErrorCode";const _EM = "EndpointManagement";const _EMr = "ErrorMessage";const _EN = "EnvironmentName";const _ERA = "ExecutionRoleArn";const _En = "Environments";const _Ena = "Enabled";const _Er = "Error";const _GE = "GetEnvironment";const _GEI = "GetEnvironmentInput";const _GEO = "GetEnvironmentOutput";const _II = "IamIdentity";const _IRA = "InvokeRestApi";const _IRAR = "InvokeRestApiRequest";const _IRARn = "InvokeRestApiResponse";const _ISE = "InternalServerException";const _KK = "KmsKey";const _LC = "LoggingConfiguration";const _LCI = "LoggingConfigurationInput";const _LE = "ListEnvironments";const _LEI = "ListEnvironmentsInput";const _LEO = "ListEnvironmentsOutput";const _LL = "LogLevel";const _LTFR = "ListTagsForResource";const _LTFRI = "ListTagsForResourceInput";const _LTFRO = "ListTagsForResourceOutput";const _LU = "LastUpdate";const _M = "Message";const _MD = "MetricDatum";const _MDe = "MetricData";const _MLC = "ModuleLoggingConfiguration";const _MLCI = "ModuleLoggingConfigurationInput";const _MN = "MetricName";const _MR = "MaxResults";const _MW = "MaxWorkers";const _MWa = "MaxWebservers";const _MWi = "MinWorkers";const _MWin = "MinWebservers";const _Ma = "Maximum";const _Me = "Method";const _Mi = "Minimum";const _N = "Name";const _NC = "NetworkConfiguration";const _NT = "NextToken";const _P = "Path";const _PM = "PublishMetrics";const _PMI = "PublishMetricsInput";const _PMO = "PublishMetricsOutput";const _PSOV = "PluginsS3ObjectVersion";const _PSP = "PluginsS3Path";const _QP = "QueryParameters";const _RA = "ResourceArn";const _RACE = "RestApiClientException";const _RAR = "RestApiResponse";const _RARB = "RestApiRequestBody";const _RASC = "RestApiStatusCode";const _RASE = "RestApiServerException";const _RNFE = "ResourceNotFoundException";const _RSOV = "RequirementsS3ObjectVersion";const _RSP = "RequirementsS3Path";const _S = "Schedulers";const _SBA = "SourceBucketArn";const _SC = "SampleCount";const _SGI = "SecurityGroupIds";const _SI = "SubnetIds";const _SL = "SchedulerLogs";const _SRA = "ServiceRoleArn";const _SS = "StatisticSet";const _SSSOV = "StartupScriptS3ObjectVersion";const _SSSP = "StartupScriptS3Path";const _SUE = "ServiceUnavailableException";const _SV = "StatisticValues";const _So = "Source";const _St = "Status";const _Su = "Sum";const _T = "Token";const _TL = "TaskLogs";const _TR = "TagResource";const _TRI = "TagResourceInput";const _TRO = "TagResourceOutput";const _Ta = "Tags";const _Ti = "Timestamp";const _U = "Unit";const _UE = "UpdateError";const _UEI = "UpdateEnvironmentInput";const _UEO = "UpdateEnvironmentOutput";const _UEp = "UpdateEnvironment";const _UNCI = "UpdateNetworkConfigurationInput";const _UR = "UntagResource";const _URI = "UntagResourceInput";const _URO = "UntagResourceOutput";const _V = "Value";const _VE = "ValidationException";const _WAM = "WebserverAccessMode";const _WL = "WebserverLogs";const _WLo = "WorkerLogs";const _WMWS = "WeeklyMaintenanceWindowStart";const _WRS = "WorkerReplacementStrategy";const _WSH = "WebServerHostname";const _WT = "WebToken";const _WU = "WebserverUrl";const _WVES = "WebserverVpcEndpointService";const _c = "client";const _e = "error";const _en = "endpoint";const _h = "http";const _hE = "httpError";const _hQ = "httpQuery";const _m = "message";const _s = "smithy.ts.sdk.synthetic.com.amazonaws.mwaa";const _se = "server";const _tK = "tagKeys";const n0 = "com.amazonaws.mwaa";const _s_registry = TypeRegistry.for(_s);var MWAAServiceException$ = [-3, _s, "MWAAServiceException", 0, [], []];_s_registry.registerError(MWAAServiceException$, MWAAServiceException);const n0_registry = TypeRegistry.for(n0);var AccessDeniedException$ = [-3, n0, _ADE,    { [_e]: _c, [_hE]: 403 },    [_M],    [0]];n0_registry.registerError(AccessDeniedException$, AccessDeniedException);var InternalServerException$ = [-3, n0, _ISE,    { [_e]: _se, [_hE]: 500 },    [_m],    [0]];n0_registry.registerError(InternalServerException$, InternalServerException);var ResourceNotFoundException$ = [-3, n0, _RNFE,    { [_e]: _c, [_hE]: 404 },    [_m],    [0]];n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);var RestApiClientException$ = [-3, n0, _RACE,    { [_e]: _c, [_hE]: 400 },    [_RASC, _RAR],    [1, [() => RestApiResponse, 0]]];n0_registry.registerError(RestApiClientException$, RestApiClientException);var RestApiServerException$ = [-3, n0, _RASE,    { [_e]: _c, [_hE]: 400 },    [_RASC, _RAR],    [1, [() => RestApiResponse, 0]]];n0_registry.registerError(RestApiServerException$, RestApiServerException);var ServiceUnavailableException$ = [-3, n0, _SUE,    { [_e]: _se, [_hE]: 503 },    [_m],    [0]];n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);var ValidationException$ = [-3, n0, _VE,    { [_e]: _c, [_hE]: 400 },    [_m],    [0]];n0_registry.registerError(ValidationException$, ValidationException);const errorTypeRegistries = [    _s_registry,    n0_registry,];var ConfigValue = [0, n0, _CV, 8, 0];var RestApiRequestBody = [0, n0, _RARB, 8, 15];var RestApiResponse = [0, n0, _RAR, 8, 15];var Token = [0, n0, _T, 8, 0];var CreateCliTokenRequest$ = [3, n0, _CCTR,    0,    [_N],    [[0, 1]], 1];var CreateCliTokenResponse$ = [3, n0, _CCTRr,    0,    [_CT, _WSH],    [[() => Token, 0], 0]];var CreateEnvironmentInput$ = [3, n0, _CEI,    0,    [_N, _ERA, _SBA, _DSP, _NC, _PSP, _PSOV, _RSP, _RSOV, _SSSP, _SSSOV, _ACO, _EC, _MW, _KK, _AV, _LC, _WMWS, _Ta, _WAM, _MWi, _S, _EM, _MWin, _MWa],    [[0, 1], 0, 0, 0, () => NetworkConfiguration$, 0, 0, 0, 0, 0, 0, [() => AirflowConfigurationOptions, 0], 0, 1, 0, 0, () => LoggingConfigurationInput$, 0, 128 | 0, 0, 1, 1, 0, 1, 1], 5];var CreateEnvironmentOutput$ = [3, n0, _CEO,    0,    [_A],    [0]];var CreateWebLoginTokenRequest$ = [3, n0, _CWLTR,    0,    [_N],    [[0, 1]], 1];var CreateWebLoginTokenResponse$ = [3, n0, _CWLTRr,    0,    [_WT, _WSH, _II, _AI],    [[() => Token, 0], 0, 0, 0]];var DeleteEnvironmentInput$ = [3, n0, _DEI,    0,    [_N],    [[0, 1]], 1];var DeleteEnvironmentOutput$ = [3, n0, _DEO,    0,    [],    []];var Dimension$ = [3, n0, _D,    0,    [_N, _V],    [0, 0], 2];var Environment$ = [3, n0, _E,    0,    [_N, _St, _A, _CA, _WU, _ERA, _SRA, _KK, _AV, _SBA, _DSP, _PSP, _PSOV, _RSP, _RSOV, _SSSP, _SSSOV, _ACO, _EC, _MW, _NC, _LC, _LU, _WMWS, _Ta, _WAM, _MWi, _S, _WVES, _DVES, _CEQ, _EM, _MWin, _MWa],    [0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [() => AirflowConfigurationOptions, 0], 0, 1, () => NetworkConfiguration$, () => LoggingConfiguration$, () => LastUpdate$, 0, 128 | 0, 0, 1, 1, 0, 0, 0, 0, 1, 1]];var GetEnvironmentInput$ = [3, n0, _GEI,    0,    [_N],    [[0, 1]], 1];var GetEnvironmentOutput$ = [3, n0, _GEO,    0,    [_E],    [[() => Environment$, 0]]];var InvokeRestApiRequest$ = [3, n0, _IRAR,    0,    [_N, _P, _Me, _QP, _B],    [[0, 1], 0, 0, 15, [() => RestApiRequestBody, 0]], 3];var InvokeRestApiResponse$ = [3, n0, _IRARn,    0,    [_RASC, _RAR],    [1, [() => RestApiResponse, 0]]];var LastUpdate$ = [3, n0, _LU,    0,    [_St, _CA, _Er, _So, _WRS],    [0, 4, () => UpdateError$, 0, 0]];var ListEnvironmentsInput$ = [3, n0, _LEI,    0,    [_NT, _MR],    [[0, { [_hQ]: _NT }], [1, { [_hQ]: _MR }]]];var ListEnvironmentsOutput$ = [3, n0, _LEO,    0,    [_En, _NT],    [64 | 0, 0], 1];var ListTagsForResourceInput$ = [3, n0, _LTFRI,    0,    [_RA],    [[0, 1]], 1];var ListTagsForResourceOutput$ = [3, n0, _LTFRO,    0,    [_Ta],    [128 | 0]];var LoggingConfiguration$ = [3, n0, _LC,    0,    [_DPL, _SL, _WL, _WLo, _TL],    [() => ModuleLoggingConfiguration$, () => ModuleLoggingConfiguration$, () => ModuleLoggingConfiguration$, () => ModuleLoggingConfiguration$, () => ModuleLoggingConfiguration$]];var LoggingConfigurationInput$ = [3, n0, _LCI,    0,    [_DPL, _SL, _WL, _WLo, _TL],    [() => ModuleLoggingConfigurationInput$, () => ModuleLoggingConfigurationInput$, () => ModuleLoggingConfigurationInput$, () => ModuleLoggingConfigurationInput$, () => ModuleLoggingConfigurationInput$]];var MetricDatum$ = [3, n0, _MD,    0,    [_MN, _Ti, _Di, _V, _U, _SV],    [0, 4, () => Dimensions, 1, 0, () => StatisticSet$], 2];var ModuleLoggingConfiguration$ = [3, n0, _MLC,    0,    [_Ena, _LL, _CWLGA],    [2, 0, 0]];var ModuleLoggingConfigurationInput$ = [3, n0, _MLCI,    0,    [_Ena, _LL],    [2, 0], 2];var NetworkConfiguration$ = [3, n0, _NC,    0,    [_SI, _SGI],    [64 | 0, 64 | 0]];var PublishMetricsInput$ = [3, n0, _PMI,    0,    [_EN, _MDe],    [[0, 1], () => MetricData], 2];var PublishMetricsOutput$ = [3, n0, _PMO,    0,    [],    []];var StatisticSet$ = [3, n0, _SS,    0,    [_SC, _Su, _Mi, _Ma],    [1, 1, 1, 1]];var TagResourceInput$ = [3, n0, _TRI,    0,    [_RA, _Ta],    [[0, 1], 128 | 0], 2];var TagResourceOutput$ = [3, n0, _TRO,    0,    [],    []];var UntagResourceInput$ = [3, n0, _URI,    0,    [_RA, _tK],    [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2];var UntagResourceOutput$ = [3, n0, _URO,    0,    [],    []];var UpdateEnvironmentInput$ = [3, n0, _UEI,    0,    [_N, _ERA, _ACO, _AV, _DSP, _EC, _LC, _MW, _MWi, _MWa, _MWin, _WRS, _NC, _PSP, _PSOV, _RSP, _RSOV, _S, _SBA, _SSSP, _SSSOV, _WAM, _WMWS],    [[0, 1], 0, [() => AirflowConfigurationOptions, 0], 0, 0, 0, () => LoggingConfigurationInput$, 1, 1, 1, 1, 0, () => UpdateNetworkConfigurationInput$, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], 1];var UpdateEnvironmentOutput$ = [3, n0, _UEO,    0,    [_A],    [0]];var UpdateError$ = [3, n0, _UE,    0,    [_ECr, _EMr],    [0, 0]];var UpdateNetworkConfigurationInput$ = [3, n0, _UNCI,    0,    [_SGI],    [64 | 0], 1];var Dimensions = [1, n0, _Di,    0, () => Dimension$];var MetricData = [1, n0, _MDe,    0, () => MetricDatum$];var AirflowConfigurationOptions = [2, n0, _ACO,    8, [0,        0],    [() => ConfigValue,        0]];var CreateCliToken$ = [9, n0, _CCT,    { [_en]: ["env."], [_h]: ["POST", "/clitoken/{Name}", 200] }, () => CreateCliTokenRequest$, () => CreateCliTokenResponse$];var CreateEnvironment$ = [9, n0, _CE,    { [_en]: ["api."], [_h]: ["PUT", "/environments/{Name}", 200] }, () => CreateEnvironmentInput$, () => CreateEnvironmentOutput$];var CreateWebLoginToken$ = [9, n0, _CWLT,    { [_en]: ["env."], [_h]: ["POST", "/webtoken/{Name}", 200] }, () => CreateWebLoginTokenRequest$, () => CreateWebLoginTokenResponse$];var DeleteEnvironment$ = [9, n0, _DE,    { [_en]: ["api."], [_h]: ["DELETE", "/environments/{Name}", 200] }, () => DeleteEnvironmentInput$, () => DeleteEnvironmentOutput$];var GetEnvironment$ = [9, n0, _GE,    { [_en]: ["api."], [_h]: ["GET", "/environments/{Name}", 200] }, () => GetEnvironmentInput$, () => GetEnvironmentOutput$];var InvokeRestApi$ = [9, n0, _IRA,    { [_en]: ["env."], [_h]: ["POST", "/restapi/{Name}", 200] }, () => InvokeRestApiRequest$, () => InvokeRestApiResponse$];var ListEnvironments$ = [9, n0, _LE,    { [_en]: ["api."], [_h]: ["GET", "/environments", 200] }, () => ListEnvironmentsInput$, () => ListEnvironmentsOutput$];var ListTagsForResource$ = [9, n0, _LTFR,    { [_en]: ["api."], [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$];var PublishMetrics$ = [9, n0, _PM,    { [_en]: ["ops."], [_h]: ["POST", "/metrics/environments/{EnvironmentName}", 200] }, () => PublishMetricsInput$, () => PublishMetricsOutput$];var TagResource$ = [9, n0, _TR,    { [_en]: ["api."], [_h]: ["POST", "/tags/{ResourceArn}", 200] }, () => TagResourceInput$, () => TagResourceOutput$];var UntagResource$ = [9, n0, _UR,    { [_en]: ["api."], [_h]: ["DELETE", "/tags/{ResourceArn}", 200] }, () => UntagResourceInput$, () => UntagResourceOutput$];var UpdateEnvironment$ = [9, n0, _UEp,    { [_en]: ["api."], [_h]: ["PATCH", "/environments/{Name}", 200] }, () => UpdateEnvironmentInput$, () => UpdateEnvironmentOutput$]; const getRuntimeConfig$1 = (config) => {    return {        apiVersion: "2020-07-01",        base64Decoder: config?.base64Decoder ?? fromBase64,        base64Encoder: config?.base64Encoder ?? toBase64,        disableHostPrefix: config?.disableHostPrefix ?? false,        endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,        extensions: config?.extensions ?? [],        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultMWAAHttpAuthSchemeProvider,        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 ?? AwsRestJsonProtocol,        protocolSettings: config?.protocolSettings ?? {            defaultNamespace: "com.amazonaws.mwaa",            errorTypeRegistries,            version: "2020-07-01",            serviceTarget: "AmazonMWAA",        },        serviceId: config?.serviceId ?? "MWAA",        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 MWAAClient 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: defaultMWAAHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} const command = makeBuilder(commonParams, "AmazonMWAA", "MWAAClient", getEndpointPlugin);const _ep0 = {};const _mw0 = (Command, cs, config, o) => []; class CreateCliTokenCommand extends command(_ep0, _mw0, "CreateCliToken", CreateCliToken$) {} class CreateEnvironmentCommand extends command(_ep0, _mw0, "CreateEnvironment", CreateEnvironment$) {} class CreateWebLoginTokenCommand extends command(_ep0, _mw0, "CreateWebLoginToken", CreateWebLoginToken$) {} class DeleteEnvironmentCommand extends command(_ep0, _mw0, "DeleteEnvironment", DeleteEnvironment$) {} class GetEnvironmentCommand extends command(_ep0, _mw0, "GetEnvironment", GetEnvironment$) {} class InvokeRestApiCommand extends command(_ep0, _mw0, "InvokeRestApi", InvokeRestApi$) {} class ListEnvironmentsCommand extends command(_ep0, _mw0, "ListEnvironments", ListEnvironments$) {} class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {} class PublishMetricsCommand extends command(_ep0, _mw0, "PublishMetrics", PublishMetrics$) {} class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {} class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {} class UpdateEnvironmentCommand extends command(_ep0, _mw0, "UpdateEnvironment", UpdateEnvironment$) {} const paginateListEnvironments = createPaginator(MWAAClient, ListEnvironmentsCommand, "NextToken", "NextToken", "MaxResults"); const commands = {    CreateCliTokenCommand,    CreateEnvironmentCommand,    CreateWebLoginTokenCommand,    DeleteEnvironmentCommand,    GetEnvironmentCommand,    InvokeRestApiCommand,    ListEnvironmentsCommand,    ListTagsForResourceCommand,    PublishMetricsCommand,    TagResourceCommand,    UntagResourceCommand,    UpdateEnvironmentCommand,};const paginators = {    paginateListEnvironments,};class MWAA extends MWAAClient {}createAggregatedClient(commands, MWAA, { paginators }); const EndpointManagement = {    CUSTOMER: "CUSTOMER",    SERVICE: "SERVICE",};const LoggingLevel = {    CRITICAL: "CRITICAL",    DEBUG: "DEBUG",    ERROR: "ERROR",    INFO: "INFO",    WARNING: "WARNING",};const WebserverAccessMode = {    PRIVATE_ONLY: "PRIVATE_ONLY",    PUBLIC_AND_PRIVATE: "PUBLIC_AND_PRIVATE",    PUBLIC_ONLY: "PUBLIC_ONLY",};const UpdateStatus = {    FAILED: "FAILED",    PENDING: "PENDING",    SUCCESS: "SUCCESS",};const WorkerReplacementStrategy = {    FORCED: "FORCED",    GRACEFUL: "GRACEFUL",};const EnvironmentStatus = {    AVAILABLE: "AVAILABLE",    CREATE_FAILED: "CREATE_FAILED",    CREATING: "CREATING",    CREATING_SNAPSHOT: "CREATING_SNAPSHOT",    DELETED: "DELETED",    DELETING: "DELETING",    MAINTENANCE: "MAINTENANCE",    PENDING: "PENDING",    ROLLING_BACK: "ROLLING_BACK",    UNAVAILABLE: "UNAVAILABLE",    UPDATE_FAILED: "UPDATE_FAILED",    UPDATING: "UPDATING",};const RestApiMethod = {    DELETE: "DELETE",    GET: "GET",    PATCH: "PATCH",    POST: "POST",    PUT: "PUT",};const Unit = {    BITS: "Bits",    BITS_PER_SECOND: "Bits/Second",    BYTES: "Bytes",    BYTES_PER_SECOND: "Bytes/Second",    COUNT: "Count",    COUNT_PER_SECOND: "Count/Second",    GIGABITS: "Gigabits",    GIGABITS_PER_SECOND: "Gigabits/Second",    GIGABYTES: "Gigabytes",    GIGABYTES_PER_SECOND: "Gigabytes/Second",    KILOBITS: "Kilobits",    KILOBITS_PER_SECOND: "Kilobits/Second",    KILOBYTES: "Kilobytes",    KILOBYTES_PER_SECOND: "Kilobytes/Second",    MEGABITS: "Megabits",    MEGABITS_PER_SECOND: "Megabits/Second",    MEGABYTES: "Megabytes",    MEGABYTES_PER_SECOND: "Megabytes/Second",    MICROSECONDS: "Microseconds",    MILLISECONDS: "Milliseconds",    NONE: "None",    PERCENT: "Percent",    SECONDS: "Seconds",    TERABITS: "Terabits",    TERABITS_PER_SECOND: "Terabits/Second",    TERABYTES: "Terabytes",    TERABYTES_PER_SECOND: "Terabytes/Second",}; exports.AccessDeniedException = AccessDeniedException;exports.AccessDeniedException$ = AccessDeniedException$;exports.CreateCliToken$ = CreateCliToken$;exports.CreateCliTokenCommand = CreateCliTokenCommand;exports.CreateCliTokenRequest$ = CreateCliTokenRequest$;exports.CreateCliTokenResponse$ = CreateCliTokenResponse$;exports.CreateEnvironment$ = CreateEnvironment$;exports.CreateEnvironmentCommand = CreateEnvironmentCommand;exports.CreateEnvironmentInput$ = CreateEnvironmentInput$;exports.CreateEnvironmentOutput$ = CreateEnvironmentOutput$;exports.CreateWebLoginToken$ = CreateWebLoginToken$;exports.CreateWebLoginTokenCommand = CreateWebLoginTokenCommand;exports.CreateWebLoginTokenRequest$ = CreateWebLoginTokenRequest$;exports.CreateWebLoginTokenResponse$ = CreateWebLoginTokenResponse$;exports.DeleteEnvironment$ = DeleteEnvironment$;exports.DeleteEnvironmentCommand = DeleteEnvironmentCommand;exports.DeleteEnvironmentInput$ = DeleteEnvironmentInput$;exports.DeleteEnvironmentOutput$ = DeleteEnvironmentOutput$;exports.Dimension$ = Dimension$;exports.EndpointManagement = EndpointManagement;exports.Environment$ = Environment$;exports.EnvironmentStatus = EnvironmentStatus;exports.GetEnvironment$ = GetEnvironment$;exports.GetEnvironmentCommand = GetEnvironmentCommand;exports.GetEnvironmentInput$ = GetEnvironmentInput$;exports.GetEnvironmentOutput$ = GetEnvironmentOutput$;exports.InternalServerException = InternalServerException;exports.InternalServerException$ = InternalServerException$;exports.InvokeRestApi$ = InvokeRestApi$;exports.InvokeRestApiCommand = InvokeRestApiCommand;exports.InvokeRestApiRequest$ = InvokeRestApiRequest$;exports.InvokeRestApiResponse$ = InvokeRestApiResponse$;exports.LastUpdate$ = LastUpdate$;exports.ListEnvironments$ = ListEnvironments$;exports.ListEnvironmentsCommand = ListEnvironmentsCommand;exports.ListEnvironmentsInput$ = ListEnvironmentsInput$;exports.ListEnvironmentsOutput$ = ListEnvironmentsOutput$;exports.ListTagsForResource$ = ListTagsForResource$;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ListTagsForResourceInput$ = ListTagsForResourceInput$;exports.ListTagsForResourceOutput$ = ListTagsForResourceOutput$;exports.LoggingConfiguration$ = LoggingConfiguration$;exports.LoggingConfigurationInput$ = LoggingConfigurationInput$;exports.LoggingLevel = LoggingLevel;exports.MWAA = MWAA;exports.MWAAClient = MWAAClient;exports.MWAAServiceException = MWAAServiceException;exports.MWAAServiceException$ = MWAAServiceException$;exports.MetricDatum$ = MetricDatum$;exports.ModuleLoggingConfiguration$ = ModuleLoggingConfiguration$;exports.ModuleLoggingConfigurationInput$ = ModuleLoggingConfigurationInput$;exports.NetworkConfiguration$ = NetworkConfiguration$;exports.PublishMetrics$ = PublishMetrics$;exports.PublishMetricsCommand = PublishMetricsCommand;exports.PublishMetricsInput$ = PublishMetricsInput$;exports.PublishMetricsOutput$ = PublishMetricsOutput$;exports.ResourceNotFoundException = ResourceNotFoundException;exports.ResourceNotFoundException$ = ResourceNotFoundException$;exports.RestApiClientException = RestApiClientException;exports.RestApiClientException$ = RestApiClientException$;exports.RestApiMethod = RestApiMethod;exports.RestApiServerException = RestApiServerException;exports.RestApiServerException$ = RestApiServerException$;exports.ServiceUnavailableException = ServiceUnavailableException;exports.ServiceUnavailableException$ = ServiceUnavailableException$;exports.StatisticSet$ = StatisticSet$;exports.TagResource$ = TagResource$;exports.TagResourceCommand = TagResourceCommand;exports.TagResourceInput$ = TagResourceInput$;exports.TagResourceOutput$ = TagResourceOutput$;exports.Unit = Unit;exports.UntagResource$ = UntagResource$;exports.UntagResourceCommand = UntagResourceCommand;exports.UntagResourceInput$ = UntagResourceInput$;exports.UntagResourceOutput$ = UntagResourceOutput$;exports.UpdateEnvironment$ = UpdateEnvironment$;exports.UpdateEnvironmentCommand = UpdateEnvironmentCommand;exports.UpdateEnvironmentInput$ = UpdateEnvironmentInput$;exports.UpdateEnvironmentOutput$ = UpdateEnvironmentOutput$;exports.UpdateError$ = UpdateError$;exports.UpdateNetworkConfigurationInput$ = UpdateNetworkConfigurationInput$;exports.UpdateStatus = UpdateStatus;exports.ValidationException = ValidationException;exports.ValidationException$ = ValidationException$;exports.WebserverAccessMode = WebserverAccessMode;exports.WorkerReplacementStrategy = WorkerReplacementStrategy;exports.errorTypeRegistries = errorTypeRegistries;exports.paginateListEnvironments = paginateListEnvironments;