File Explorer

/var/runtime/node_modules/@aws-sdk/client-mediastore/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.js36.2 KB · 1062 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 { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");const { Sha256 } = require("@smithy/core/checksum"); const defaultMediaStoreHttpAuthSchemeParametersProvider = 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: "mediastore",            region: authParameters.region,        },        propertiesExtractor: (config, context) => ({            signingProperties: {                config,                context,            },        }),    };}const defaultMediaStoreHttpAuthSchemeProvider = (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: "mediastore",    });};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://mediastore-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],        [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],        ["https://mediastore-fips.{Region}.{PartitionResult#dnsSuffix}", i],        [a, "FIPS is enabled but this partition does not support FIPS"],        ["https://mediastore.{Region}.{PartitionResult#dualStackDnsSuffix}", i],        [a, "DualStack is enabled but this partition does not support DualStack"],        ["https://mediastore.{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 MediaStoreServiceException extends ServiceException {    constructor(options) {        super(options);        Object.setPrototypeOf(this, MediaStoreServiceException.prototype);    }} class ContainerInUseException extends MediaStoreServiceException {    name = "ContainerInUseException";    $fault = "client";    Message;    constructor(opts) {        super({            name: "ContainerInUseException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ContainerInUseException.prototype);        this.Message = opts.Message;    }}class ContainerNotFoundException extends MediaStoreServiceException {    name = "ContainerNotFoundException";    $fault = "client";    Message;    constructor(opts) {        super({            name: "ContainerNotFoundException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ContainerNotFoundException.prototype);        this.Message = opts.Message;    }}class CorsPolicyNotFoundException extends MediaStoreServiceException {    name = "CorsPolicyNotFoundException";    $fault = "client";    Message;    constructor(opts) {        super({            name: "CorsPolicyNotFoundException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, CorsPolicyNotFoundException.prototype);        this.Message = opts.Message;    }}class InternalServerError extends MediaStoreServiceException {    name = "InternalServerError";    $fault = "server";    Message;    constructor(opts) {        super({            name: "InternalServerError",            $fault: "server",            ...opts,        });        Object.setPrototypeOf(this, InternalServerError.prototype);        this.Message = opts.Message;    }}class LimitExceededException extends MediaStoreServiceException {    name = "LimitExceededException";    $fault = "client";    Message;    constructor(opts) {        super({            name: "LimitExceededException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, LimitExceededException.prototype);        this.Message = opts.Message;    }}class PolicyNotFoundException extends MediaStoreServiceException {    name = "PolicyNotFoundException";    $fault = "client";    Message;    constructor(opts) {        super({            name: "PolicyNotFoundException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, PolicyNotFoundException.prototype);        this.Message = opts.Message;    }} const _AH = "AllowedHeaders";const _ALE = "AccessLoggingEnabled";const _AM = "AllowedMethods";const _AO = "AllowedOrigins";const _ARN = "ARN";const _C = "Container";const _CC = "CreateContainer";const _CCI = "CreateContainerInput";const _CCO = "CreateContainerOutput";const _CIUE = "ContainerInUseException";const _CL = "ContainerList";const _CLM = "ContainerLevelMetrics";const _CN = "ContainerName";const _CNFE = "ContainerNotFoundException";const _CP = "CorsPolicy";const _CPNFE = "CorsPolicyNotFoundException";const _CR = "CorsRule";const _CT = "CreationTime";const _Co = "Containers";const _DC = "DeleteContainer";const _DCI = "DeleteContainerInput";const _DCIe = "DescribeContainerInput";const _DCO = "DeleteContainerOutput";const _DCOe = "DescribeContainerOutput";const _DCP = "DeleteContainerPolicy";const _DCPI = "DeleteContainerPolicyInput";const _DCPIe = "DeleteCorsPolicyInput";const _DCPO = "DeleteContainerPolicyOutput";const _DCPOe = "DeleteCorsPolicyOutput";const _DCPe = "DeleteCorsPolicy";const _DCe = "DescribeContainer";const _DLP = "DeleteLifecyclePolicy";const _DLPI = "DeleteLifecyclePolicyInput";const _DLPO = "DeleteLifecyclePolicyOutput";const _DMP = "DeleteMetricPolicy";const _DMPI = "DeleteMetricPolicyInput";const _DMPO = "DeleteMetricPolicyOutput";const _E = "Endpoint";const _EH = "ExposeHeaders";const _GCP = "GetContainerPolicy";const _GCPI = "GetContainerPolicyInput";const _GCPIe = "GetCorsPolicyInput";const _GCPO = "GetContainerPolicyOutput";const _GCPOe = "GetCorsPolicyOutput";const _GCPe = "GetCorsPolicy";const _GLP = "GetLifecyclePolicy";const _GLPI = "GetLifecyclePolicyInput";const _GLPO = "GetLifecyclePolicyOutput";const _GMP = "GetMetricPolicy";const _GMPI = "GetMetricPolicyInput";const _GMPO = "GetMetricPolicyOutput";const _ISE = "InternalServerError";const _K = "Key";const _LC = "ListContainers";const _LCI = "ListContainersInput";const _LCO = "ListContainersOutput";const _LEE = "LimitExceededException";const _LP = "LifecyclePolicy";const _LTFR = "ListTagsForResource";const _LTFRI = "ListTagsForResourceInput";const _LTFRO = "ListTagsForResourceOutput";const _M = "Message";const _MAS = "MaxAgeSeconds";const _MP = "MetricPolicy";const _MPR = "MetricPolicyRules";const _MPRe = "MetricPolicyRule";const _MR = "MaxResults";const _N = "Name";const _NT = "NextToken";const _OG = "ObjectGroup";const _OGN = "ObjectGroupName";const _P = "Policy";const _PCP = "PutContainerPolicy";const _PCPI = "PutContainerPolicyInput";const _PCPIu = "PutCorsPolicyInput";const _PCPO = "PutContainerPolicyOutput";const _PCPOu = "PutCorsPolicyOutput";const _PCPu = "PutCorsPolicy";const _PLP = "PutLifecyclePolicy";const _PLPI = "PutLifecyclePolicyInput";const _PLPO = "PutLifecyclePolicyOutput";const _PMP = "PutMetricPolicy";const _PMPI = "PutMetricPolicyInput";const _PMPO = "PutMetricPolicyOutput";const _PNFE = "PolicyNotFoundException";const _R = "Resource";const _S = "Status";const _SAL = "StartAccessLogging";const _SALI = "StartAccessLoggingInput";const _SALIt = "StopAccessLoggingInput";const _SALO = "StartAccessLoggingOutput";const _SALOt = "StopAccessLoggingOutput";const _SALt = "StopAccessLogging";const _T = "Tags";const _TK = "TagKeys";const _TL = "TagList";const _TR = "TagResource";const _TRI = "TagResourceInput";const _TRO = "TagResourceOutput";const _Ta = "Tag";const _UR = "UntagResource";const _URI = "UntagResourceInput";const _URO = "UntagResourceOutput";const _V = "Value";const _c = "client";const _e = "error";const _s = "smithy.ts.sdk.synthetic.com.amazonaws.mediastore";const _se = "server";const n0 = "com.amazonaws.mediastore";const _s_registry = TypeRegistry.for(_s);var MediaStoreServiceException$ = [-3, _s, "MediaStoreServiceException", 0, [], []];_s_registry.registerError(MediaStoreServiceException$, MediaStoreServiceException);const n0_registry = TypeRegistry.for(n0);var ContainerInUseException$ = [-3, n0, _CIUE,    { [_e]: _c },    [_M],    [0]];n0_registry.registerError(ContainerInUseException$, ContainerInUseException);var ContainerNotFoundException$ = [-3, n0, _CNFE,    { [_e]: _c },    [_M],    [0]];n0_registry.registerError(ContainerNotFoundException$, ContainerNotFoundException);var CorsPolicyNotFoundException$ = [-3, n0, _CPNFE,    { [_e]: _c },    [_M],    [0]];n0_registry.registerError(CorsPolicyNotFoundException$, CorsPolicyNotFoundException);var InternalServerError$ = [-3, n0, _ISE,    { [_e]: _se },    [_M],    [0]];n0_registry.registerError(InternalServerError$, InternalServerError);var LimitExceededException$ = [-3, n0, _LEE,    { [_e]: _c },    [_M],    [0]];n0_registry.registerError(LimitExceededException$, LimitExceededException);var PolicyNotFoundException$ = [-3, n0, _PNFE,    { [_e]: _c },    [_M],    [0]];n0_registry.registerError(PolicyNotFoundException$, PolicyNotFoundException);const errorTypeRegistries = [    _s_registry,    n0_registry,];var Container$ = [3, n0, _C,    0,    [_E, _CT, _ARN, _N, _S, _ALE],    [0, 4, 0, 0, 0, 2]];var CorsRule$ = [3, n0, _CR,    0,    [_AO, _AH, _AM, _MAS, _EH],    [64 | 0, 64 | 0, 64 | 0, 1, 64 | 0], 2];var CreateContainerInput$ = [3, n0, _CCI,    0,    [_CN, _T],    [0, () => TagList], 1];var CreateContainerOutput$ = [3, n0, _CCO,    0,    [_C],    [() => Container$], 1];var DeleteContainerInput$ = [3, n0, _DCI,    0,    [_CN],    [0], 1];var DeleteContainerOutput$ = [3, n0, _DCO,    0,    [],    []];var DeleteContainerPolicyInput$ = [3, n0, _DCPI,    0,    [_CN],    [0], 1];var DeleteContainerPolicyOutput$ = [3, n0, _DCPO,    0,    [],    []];var DeleteCorsPolicyInput$ = [3, n0, _DCPIe,    0,    [_CN],    [0], 1];var DeleteCorsPolicyOutput$ = [3, n0, _DCPOe,    0,    [],    []];var DeleteLifecyclePolicyInput$ = [3, n0, _DLPI,    0,    [_CN],    [0], 1];var DeleteLifecyclePolicyOutput$ = [3, n0, _DLPO,    0,    [],    []];var DeleteMetricPolicyInput$ = [3, n0, _DMPI,    0,    [_CN],    [0], 1];var DeleteMetricPolicyOutput$ = [3, n0, _DMPO,    0,    [],    []];var DescribeContainerInput$ = [3, n0, _DCIe,    0,    [_CN],    [0]];var DescribeContainerOutput$ = [3, n0, _DCOe,    0,    [_C],    [() => Container$]];var GetContainerPolicyInput$ = [3, n0, _GCPI,    0,    [_CN],    [0], 1];var GetContainerPolicyOutput$ = [3, n0, _GCPO,    0,    [_P],    [0], 1];var GetCorsPolicyInput$ = [3, n0, _GCPIe,    0,    [_CN],    [0], 1];var GetCorsPolicyOutput$ = [3, n0, _GCPOe,    0,    [_CP],    [() => CorsPolicy], 1];var GetLifecyclePolicyInput$ = [3, n0, _GLPI,    0,    [_CN],    [0], 1];var GetLifecyclePolicyOutput$ = [3, n0, _GLPO,    0,    [_LP],    [0], 1];var GetMetricPolicyInput$ = [3, n0, _GMPI,    0,    [_CN],    [0], 1];var GetMetricPolicyOutput$ = [3, n0, _GMPO,    0,    [_MP],    [() => MetricPolicy$], 1];var ListContainersInput$ = [3, n0, _LCI,    0,    [_NT, _MR],    [0, 1]];var ListContainersOutput$ = [3, n0, _LCO,    0,    [_Co, _NT],    [() => ContainerList, 0], 1];var ListTagsForResourceInput$ = [3, n0, _LTFRI,    0,    [_R],    [0], 1];var ListTagsForResourceOutput$ = [3, n0, _LTFRO,    0,    [_T],    [() => TagList]];var MetricPolicy$ = [3, n0, _MP,    0,    [_CLM, _MPR],    [0, () => MetricPolicyRules], 1];var MetricPolicyRule$ = [3, n0, _MPRe,    0,    [_OG, _OGN],    [0, 0], 2];var PutContainerPolicyInput$ = [3, n0, _PCPI,    0,    [_CN, _P],    [0, 0], 2];var PutContainerPolicyOutput$ = [3, n0, _PCPO,    0,    [],    []];var PutCorsPolicyInput$ = [3, n0, _PCPIu,    0,    [_CN, _CP],    [0, () => CorsPolicy], 2];var PutCorsPolicyOutput$ = [3, n0, _PCPOu,    0,    [],    []];var PutLifecyclePolicyInput$ = [3, n0, _PLPI,    0,    [_CN, _LP],    [0, 0], 2];var PutLifecyclePolicyOutput$ = [3, n0, _PLPO,    0,    [],    []];var PutMetricPolicyInput$ = [3, n0, _PMPI,    0,    [_CN, _MP],    [0, () => MetricPolicy$], 2];var PutMetricPolicyOutput$ = [3, n0, _PMPO,    0,    [],    []];var StartAccessLoggingInput$ = [3, n0, _SALI,    0,    [_CN],    [0], 1];var StartAccessLoggingOutput$ = [3, n0, _SALO,    0,    [],    []];var StopAccessLoggingInput$ = [3, n0, _SALIt,    0,    [_CN],    [0], 1];var StopAccessLoggingOutput$ = [3, n0, _SALOt,    0,    [],    []];var Tag$ = [3, n0, _Ta,    0,    [_K, _V],    [0, 0], 1];var TagResourceInput$ = [3, n0, _TRI,    0,    [_R, _T],    [0, () => TagList], 2];var TagResourceOutput$ = [3, n0, _TRO,    0,    [],    []];var UntagResourceInput$ = [3, n0, _URI,    0,    [_R, _TK],    [0, 64 | 0], 2];var UntagResourceOutput$ = [3, n0, _URO,    0,    [],    []];var ContainerList = [1, n0, _CL,    0, () => Container$];var CorsPolicy = [1, n0, _CP,    0, () => CorsRule$];var MetricPolicyRules = [1, n0, _MPR,    0, () => MetricPolicyRule$];var TagList = [1, n0, _TL,    0, () => Tag$];var CreateContainer$ = [9, n0, _CC,    0, () => CreateContainerInput$, () => CreateContainerOutput$];var DeleteContainer$ = [9, n0, _DC,    0, () => DeleteContainerInput$, () => DeleteContainerOutput$];var DeleteContainerPolicy$ = [9, n0, _DCP,    0, () => DeleteContainerPolicyInput$, () => DeleteContainerPolicyOutput$];var DeleteCorsPolicy$ = [9, n0, _DCPe,    0, () => DeleteCorsPolicyInput$, () => DeleteCorsPolicyOutput$];var DeleteLifecyclePolicy$ = [9, n0, _DLP,    0, () => DeleteLifecyclePolicyInput$, () => DeleteLifecyclePolicyOutput$];var DeleteMetricPolicy$ = [9, n0, _DMP,    0, () => DeleteMetricPolicyInput$, () => DeleteMetricPolicyOutput$];var DescribeContainer$ = [9, n0, _DCe,    0, () => DescribeContainerInput$, () => DescribeContainerOutput$];var GetContainerPolicy$ = [9, n0, _GCP,    0, () => GetContainerPolicyInput$, () => GetContainerPolicyOutput$];var GetCorsPolicy$ = [9, n0, _GCPe,    0, () => GetCorsPolicyInput$, () => GetCorsPolicyOutput$];var GetLifecyclePolicy$ = [9, n0, _GLP,    0, () => GetLifecyclePolicyInput$, () => GetLifecyclePolicyOutput$];var GetMetricPolicy$ = [9, n0, _GMP,    0, () => GetMetricPolicyInput$, () => GetMetricPolicyOutput$];var ListContainers$ = [9, n0, _LC,    0, () => ListContainersInput$, () => ListContainersOutput$];var ListTagsForResource$ = [9, n0, _LTFR,    0, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$];var PutContainerPolicy$ = [9, n0, _PCP,    0, () => PutContainerPolicyInput$, () => PutContainerPolicyOutput$];var PutCorsPolicy$ = [9, n0, _PCPu,    0, () => PutCorsPolicyInput$, () => PutCorsPolicyOutput$];var PutLifecyclePolicy$ = [9, n0, _PLP,    0, () => PutLifecyclePolicyInput$, () => PutLifecyclePolicyOutput$];var PutMetricPolicy$ = [9, n0, _PMP,    0, () => PutMetricPolicyInput$, () => PutMetricPolicyOutput$];var StartAccessLogging$ = [9, n0, _SAL,    0, () => StartAccessLoggingInput$, () => StartAccessLoggingOutput$];var StopAccessLogging$ = [9, n0, _SALt,    0, () => StopAccessLoggingInput$, () => StopAccessLoggingOutput$];var TagResource$ = [9, n0, _TR,    0, () => TagResourceInput$, () => TagResourceOutput$];var UntagResource$ = [9, n0, _UR,    0, () => UntagResourceInput$, () => UntagResourceOutput$]; const getRuntimeConfig$1 = (config) => {    return {        apiVersion: "2017-09-01",        base64Decoder: config?.base64Decoder ?? fromBase64,        base64Encoder: config?.base64Encoder ?? toBase64,        disableHostPrefix: config?.disableHostPrefix ?? false,        endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,        extensions: config?.extensions ?? [],        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultMediaStoreHttpAuthSchemeProvider,        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_1Protocol,        protocolSettings: config?.protocolSettings ?? {            defaultNamespace: "com.amazonaws.mediastore",            errorTypeRegistries,            xmlNamespace: "https://mediastore.amazonaws.com/doc/2017-09-01",            version: "2017-09-01",            serviceTarget: "MediaStore_20170901",        },        serviceId: config?.serviceId ?? "MediaStore",        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 MediaStoreClient 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: defaultMediaStoreHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} const command = makeBuilder(commonParams, "MediaStore_20170901", "MediaStoreClient", getEndpointPlugin);const _ep0 = {};const _mw0 = (Command, cs, config, o) => []; class CreateContainerCommand extends command(_ep0, _mw0, "CreateContainer", CreateContainer$) {} class DeleteContainerCommand extends command(_ep0, _mw0, "DeleteContainer", DeleteContainer$) {} class DeleteContainerPolicyCommand extends command(_ep0, _mw0, "DeleteContainerPolicy", DeleteContainerPolicy$) {} class DeleteCorsPolicyCommand extends command(_ep0, _mw0, "DeleteCorsPolicy", DeleteCorsPolicy$) {} class DeleteLifecyclePolicyCommand extends command(_ep0, _mw0, "DeleteLifecyclePolicy", DeleteLifecyclePolicy$) {} class DeleteMetricPolicyCommand extends command(_ep0, _mw0, "DeleteMetricPolicy", DeleteMetricPolicy$) {} class DescribeContainerCommand extends command(_ep0, _mw0, "DescribeContainer", DescribeContainer$) {} class GetContainerPolicyCommand extends command(_ep0, _mw0, "GetContainerPolicy", GetContainerPolicy$) {} class GetCorsPolicyCommand extends command(_ep0, _mw0, "GetCorsPolicy", GetCorsPolicy$) {} class GetLifecyclePolicyCommand extends command(_ep0, _mw0, "GetLifecyclePolicy", GetLifecyclePolicy$) {} class GetMetricPolicyCommand extends command(_ep0, _mw0, "GetMetricPolicy", GetMetricPolicy$) {} class ListContainersCommand extends command(_ep0, _mw0, "ListContainers", ListContainers$) {} class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {} class PutContainerPolicyCommand extends command(_ep0, _mw0, "PutContainerPolicy", PutContainerPolicy$) {} class PutCorsPolicyCommand extends command(_ep0, _mw0, "PutCorsPolicy", PutCorsPolicy$) {} class PutLifecyclePolicyCommand extends command(_ep0, _mw0, "PutLifecyclePolicy", PutLifecyclePolicy$) {} class PutMetricPolicyCommand extends command(_ep0, _mw0, "PutMetricPolicy", PutMetricPolicy$) {} class StartAccessLoggingCommand extends command(_ep0, _mw0, "StartAccessLogging", StartAccessLogging$) {} class StopAccessLoggingCommand extends command(_ep0, _mw0, "StopAccessLogging", StopAccessLogging$) {} class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {} class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {} const paginateListContainers = createPaginator(MediaStoreClient, ListContainersCommand, "NextToken", "NextToken", "MaxResults"); const commands = {    CreateContainerCommand,    DeleteContainerCommand,    DeleteContainerPolicyCommand,    DeleteCorsPolicyCommand,    DeleteLifecyclePolicyCommand,    DeleteMetricPolicyCommand,    DescribeContainerCommand,    GetContainerPolicyCommand,    GetCorsPolicyCommand,    GetLifecyclePolicyCommand,    GetMetricPolicyCommand,    ListContainersCommand,    ListTagsForResourceCommand,    PutContainerPolicyCommand,    PutCorsPolicyCommand,    PutLifecyclePolicyCommand,    PutMetricPolicyCommand,    StartAccessLoggingCommand,    StopAccessLoggingCommand,    TagResourceCommand,    UntagResourceCommand,};const paginators = {    paginateListContainers,};class MediaStore extends MediaStoreClient {}createAggregatedClient(commands, MediaStore, { paginators }); const MethodName = {    DELETE: "DELETE",    GET: "GET",    HEAD: "HEAD",    PUT: "PUT",};const ContainerStatus = {    ACTIVE: "ACTIVE",    CREATING: "CREATING",    DELETING: "DELETING",};const ContainerLevelMetrics = {    DISABLED: "DISABLED",    ENABLED: "ENABLED",}; exports.Container$ = Container$;exports.ContainerInUseException = ContainerInUseException;exports.ContainerInUseException$ = ContainerInUseException$;exports.ContainerLevelMetrics = ContainerLevelMetrics;exports.ContainerNotFoundException = ContainerNotFoundException;exports.ContainerNotFoundException$ = ContainerNotFoundException$;exports.ContainerStatus = ContainerStatus;exports.CorsPolicyNotFoundException = CorsPolicyNotFoundException;exports.CorsPolicyNotFoundException$ = CorsPolicyNotFoundException$;exports.CorsRule$ = CorsRule$;exports.CreateContainer$ = CreateContainer$;exports.CreateContainerCommand = CreateContainerCommand;exports.CreateContainerInput$ = CreateContainerInput$;exports.CreateContainerOutput$ = CreateContainerOutput$;exports.DeleteContainer$ = DeleteContainer$;exports.DeleteContainerCommand = DeleteContainerCommand;exports.DeleteContainerInput$ = DeleteContainerInput$;exports.DeleteContainerOutput$ = DeleteContainerOutput$;exports.DeleteContainerPolicy$ = DeleteContainerPolicy$;exports.DeleteContainerPolicyCommand = DeleteContainerPolicyCommand;exports.DeleteContainerPolicyInput$ = DeleteContainerPolicyInput$;exports.DeleteContainerPolicyOutput$ = DeleteContainerPolicyOutput$;exports.DeleteCorsPolicy$ = DeleteCorsPolicy$;exports.DeleteCorsPolicyCommand = DeleteCorsPolicyCommand;exports.DeleteCorsPolicyInput$ = DeleteCorsPolicyInput$;exports.DeleteCorsPolicyOutput$ = DeleteCorsPolicyOutput$;exports.DeleteLifecyclePolicy$ = DeleteLifecyclePolicy$;exports.DeleteLifecyclePolicyCommand = DeleteLifecyclePolicyCommand;exports.DeleteLifecyclePolicyInput$ = DeleteLifecyclePolicyInput$;exports.DeleteLifecyclePolicyOutput$ = DeleteLifecyclePolicyOutput$;exports.DeleteMetricPolicy$ = DeleteMetricPolicy$;exports.DeleteMetricPolicyCommand = DeleteMetricPolicyCommand;exports.DeleteMetricPolicyInput$ = DeleteMetricPolicyInput$;exports.DeleteMetricPolicyOutput$ = DeleteMetricPolicyOutput$;exports.DescribeContainer$ = DescribeContainer$;exports.DescribeContainerCommand = DescribeContainerCommand;exports.DescribeContainerInput$ = DescribeContainerInput$;exports.DescribeContainerOutput$ = DescribeContainerOutput$;exports.GetContainerPolicy$ = GetContainerPolicy$;exports.GetContainerPolicyCommand = GetContainerPolicyCommand;exports.GetContainerPolicyInput$ = GetContainerPolicyInput$;exports.GetContainerPolicyOutput$ = GetContainerPolicyOutput$;exports.GetCorsPolicy$ = GetCorsPolicy$;exports.GetCorsPolicyCommand = GetCorsPolicyCommand;exports.GetCorsPolicyInput$ = GetCorsPolicyInput$;exports.GetCorsPolicyOutput$ = GetCorsPolicyOutput$;exports.GetLifecyclePolicy$ = GetLifecyclePolicy$;exports.GetLifecyclePolicyCommand = GetLifecyclePolicyCommand;exports.GetLifecyclePolicyInput$ = GetLifecyclePolicyInput$;exports.GetLifecyclePolicyOutput$ = GetLifecyclePolicyOutput$;exports.GetMetricPolicy$ = GetMetricPolicy$;exports.GetMetricPolicyCommand = GetMetricPolicyCommand;exports.GetMetricPolicyInput$ = GetMetricPolicyInput$;exports.GetMetricPolicyOutput$ = GetMetricPolicyOutput$;exports.InternalServerError = InternalServerError;exports.InternalServerError$ = InternalServerError$;exports.LimitExceededException = LimitExceededException;exports.LimitExceededException$ = LimitExceededException$;exports.ListContainers$ = ListContainers$;exports.ListContainersCommand = ListContainersCommand;exports.ListContainersInput$ = ListContainersInput$;exports.ListContainersOutput$ = ListContainersOutput$;exports.ListTagsForResource$ = ListTagsForResource$;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ListTagsForResourceInput$ = ListTagsForResourceInput$;exports.ListTagsForResourceOutput$ = ListTagsForResourceOutput$;exports.MediaStore = MediaStore;exports.MediaStoreClient = MediaStoreClient;exports.MediaStoreServiceException = MediaStoreServiceException;exports.MediaStoreServiceException$ = MediaStoreServiceException$;exports.MethodName = MethodName;exports.MetricPolicy$ = MetricPolicy$;exports.MetricPolicyRule$ = MetricPolicyRule$;exports.PolicyNotFoundException = PolicyNotFoundException;exports.PolicyNotFoundException$ = PolicyNotFoundException$;exports.PutContainerPolicy$ = PutContainerPolicy$;exports.PutContainerPolicyCommand = PutContainerPolicyCommand;exports.PutContainerPolicyInput$ = PutContainerPolicyInput$;exports.PutContainerPolicyOutput$ = PutContainerPolicyOutput$;exports.PutCorsPolicy$ = PutCorsPolicy$;exports.PutCorsPolicyCommand = PutCorsPolicyCommand;exports.PutCorsPolicyInput$ = PutCorsPolicyInput$;exports.PutCorsPolicyOutput$ = PutCorsPolicyOutput$;exports.PutLifecyclePolicy$ = PutLifecyclePolicy$;exports.PutLifecyclePolicyCommand = PutLifecyclePolicyCommand;exports.PutLifecyclePolicyInput$ = PutLifecyclePolicyInput$;exports.PutLifecyclePolicyOutput$ = PutLifecyclePolicyOutput$;exports.PutMetricPolicy$ = PutMetricPolicy$;exports.PutMetricPolicyCommand = PutMetricPolicyCommand;exports.PutMetricPolicyInput$ = PutMetricPolicyInput$;exports.PutMetricPolicyOutput$ = PutMetricPolicyOutput$;exports.StartAccessLogging$ = StartAccessLogging$;exports.StartAccessLoggingCommand = StartAccessLoggingCommand;exports.StartAccessLoggingInput$ = StartAccessLoggingInput$;exports.StartAccessLoggingOutput$ = StartAccessLoggingOutput$;exports.StopAccessLogging$ = StopAccessLogging$;exports.StopAccessLoggingCommand = StopAccessLoggingCommand;exports.StopAccessLoggingInput$ = StopAccessLoggingInput$;exports.StopAccessLoggingOutput$ = StopAccessLoggingOutput$;exports.Tag$ = Tag$;exports.TagResource$ = TagResource$;exports.TagResourceCommand = TagResourceCommand;exports.TagResourceInput$ = TagResourceInput$;exports.TagResourceOutput$ = TagResourceOutput$;exports.UntagResource$ = UntagResource$;exports.UntagResourceCommand = UntagResourceCommand;exports.UntagResourceInput$ = UntagResourceInput$;exports.UntagResourceOutput$ = UntagResourceOutput$;exports.errorTypeRegistries = errorTypeRegistries;exports.paginateListContainers = paginateListContainers;