File Explorer

/proc/2/root/var/runtime/node_modules/@aws-sdk/client-savingsplans/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.9 KB · 976 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 } = 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 defaultSavingsplansHttpAuthSchemeParametersProvider = 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: "savingsplans",            region: authParameters.region,        },        propertiesExtractor: (config, context) => ({            signingProperties: {                config,                context,            },        }),    };}const defaultSavingsplansHttpAuthSchemeProvider = (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: "savingsplans",    });};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 l = "ref";const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [l]: "Endpoint" }, h = { [l]: d }, i = { "authSchemes": [{ "name": "sigv4", "signingName": "savingsplans", "signingRegion": "us-east-1" }] }, j = {}, k = [{ [l]: "Region" }];const _data = {    conditions: [        [c, [g]],        [c, k],        ["aws.partition", k, d],        [e, [{ [l]: "UseFIPS" }, b]],        ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws"]],        [e, [{ [l]: "UseDualStack" }, b]],        [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],        [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]]    ],    results: [        [a],        ["https://savingsplans.global.api.aws", i],        ["https://savingsplans.{Region}.{PartitionResult#dualStackDnsSuffix}", j],        [a, "DualStack is enabled but this partition does not support DualStack"],        [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],        [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],        [g, j],        ["https://savingsplans.amazonaws.com", i],        ["https://savingsplans-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", j],        [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],        ["https://savingsplans-fips.{Region}.{PartitionResult#dnsSuffix}", j],        [a, "FIPS is enabled but this partition does not support FIPS"],        ["https://savingsplans.{Region}.{PartitionResult#dnsSuffix}", j],        [a, "Invalid Configuration: Missing Region"]    ]};const root = 2;const r = 100_000_000;const nodes = new Int32Array([    -1, 1, -1,    0, 16, 3,    1, 6, 4,    3, r + 13, 5,    5, r + 1, r + 13,    2, 7, r + 13,    3, 12, 8,    4, 11, 9,    5, 10, r + 12,    7, r + 2, r + 3,    5, r + 1, r + 7,    5, 14, 13,    6, r + 10, r + 11,    6, 15, r + 9,    7, r + 8, r + 9,    3, r + 4, 17,    5, r + 5, r + 6,]);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 SavingsplansServiceException extends ServiceException {    constructor(options) {        super(options);        Object.setPrototypeOf(this, SavingsplansServiceException.prototype);    }} class InternalServerException extends SavingsplansServiceException {    name = "InternalServerException";    $fault = "server";    constructor(opts) {        super({            name: "InternalServerException",            $fault: "server",            ...opts,        });        Object.setPrototypeOf(this, InternalServerException.prototype);    }}class ResourceNotFoundException extends SavingsplansServiceException {    name = "ResourceNotFoundException";    $fault = "client";    constructor(opts) {        super({            name: "ResourceNotFoundException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ResourceNotFoundException.prototype);    }}class ServiceQuotaExceededException extends SavingsplansServiceException {    name = "ServiceQuotaExceededException";    $fault = "client";    constructor(opts) {        super({            name: "ServiceQuotaExceededException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);    }}class ValidationException extends SavingsplansServiceException {    name = "ValidationException";    $fault = "client";    constructor(opts) {        super({            name: "ValidationException",            $fault: "client",            ...opts,        });        Object.setPrototypeOf(this, ValidationException.prototype);    }} const _CSP = "CreateSavingsPlan";const _CSPR = "CreateSavingsPlanRequest";const _CSPRr = "CreateSavingsPlanResponse";const _DQSP = "DeleteQueuedSavingsPlan";const _DQSPR = "DeleteQueuedSavingsPlanRequest";const _DQSPRe = "DeleteQueuedSavingsPlanResponse";const _DSP = "DescribeSavingsPlans";const _DSPO = "DescribeSavingsPlansOfferings";const _DSPOR = "DescribeSavingsPlansOfferingsRequest";const _DSPORR = "DescribeSavingsPlansOfferingRatesRequest";const _DSPORRe = "DescribeSavingsPlansOfferingRatesResponse";const _DSPORe = "DescribeSavingsPlansOfferingsResponse";const _DSPORes = "DescribeSavingsPlansOfferingRates";const _DSPR = "DescribeSavingsPlansRequest";const _DSPRR = "DescribeSavingsPlanRatesRequest";const _DSPRRe = "DescribeSavingsPlanRatesResponse";const _DSPRe = "DescribeSavingsPlansResponse";const _DSPRes = "DescribeSavingsPlanRates";const _ISE = "InternalServerException";const _LTFR = "ListTagsForResource";const _LTFRR = "ListTagsForResourceRequest";const _LTFRRi = "ListTagsForResourceResponse";const _PSPO = "ParentSavingsPlanOffering";const _RNFE = "ResourceNotFoundException";const _RSP = "ReturnSavingsPlan";const _RSPR = "ReturnSavingsPlanRequest";const _RSPRe = "ReturnSavingsPlanResponse";const _SP = "SavingsPlan";const _SPF = "SavingsPlanFilter";const _SPFL = "SavingsPlanFilterList";const _SPL = "SavingsPlanList";const _SPO = "SavingsPlanOffering";const _SPOFE = "SavingsPlanOfferingFilterElement";const _SPOFL = "SavingsPlanOfferingFiltersList";const _SPOL = "SavingsPlanOfferingsList";const _SPOP = "SavingsPlanOfferingProperty";const _SPOPL = "SavingsPlanOfferingPropertyList";const _SPOR = "SavingsPlanOfferingRate";const _SPORFE = "SavingsPlanOfferingRateFilterElement";const _SPORFL = "SavingsPlanOfferingRateFiltersList";const _SPORL = "SavingsPlanOfferingRatesList";const _SPORP = "SavingsPlanOfferingRateProperty";const _SPORPL = "SavingsPlanOfferingRatePropertyList";const _SPR = "SavingsPlanRate";const _SPRF = "SavingsPlanRateFilter";const _SPRFL = "SavingsPlanRateFilterList";const _SPRL = "SavingsPlanRateList";const _SPRP = "SavingsPlanRateProperty";const _SPRPL = "SavingsPlanRatePropertyList";const _SQEE = "ServiceQuotaExceededException";const _TR = "TagResource";const _TRR = "TagResourceRequest";const _TRRa = "TagResourceResponse";const _UR = "UntagResource";const _URR = "UntagResourceRequest";const _URRn = "UntagResourceResponse";const _VE = "ValidationException";const _aQE = "awsQueryError";const _c = "client";const _cT = "clientToken";const _co = "commitment";const _cu = "currencies";const _cur = "currency";const _d = "durations";const _dS = "durationSeconds";const _de = "descriptions";const _des = "description";const _e = "error";const _eIF = "ec2InstanceFamily";const _en = "end";const _f = "filters";const _h = "http";const _hE = "httpError";const _m = "message";const _mR = "maxResults";const _n = "name";const _nT = "nextToken";const _o = "operations";const _oI = "offeringIds";const _oIf = "offeringId";const _op = "operation";const _p = "products";const _pD = "planDescription";const _pO = "paymentOptions";const _pOa = "paymentOption";const _pT = "purchaseTime";const _pTl = "planTypes";const _pTla = "planType";const _pTr = "productType";const _pTro = "productTypes";const _pr = "properties";const _r = "region";const _rA = "resourceArn";const _rPA = "recurringPaymentAmount";const _rU = "returnableUntil";const _ra = "rate";const _s = "smithy.ts.sdk.synthetic.com.amazonaws.savingsplans";const _sC = "serviceCodes";const _sCe = "serviceCode";const _sP = "savingsPlans";const _sPA = "savingsPlanArns";const _sPAa = "savingsPlanArn";const _sPI = "savingsPlanId";const _sPIa = "savingsPlanIds";const _sPO = "savingsPlanOffering";const _sPOI = "savingsPlanOfferingId";const _sPOIa = "savingsPlanOfferingIds";const _sPPO = "savingsPlanPaymentOptions";const _sPT = "savingsPlanTypes";const _sPTa = "savingsPlanType";const _sR = "searchResults";const _se = "server";const _st = "states";const _sta = "start";const _stat = "state";const _t = "tags";const _tDIS = "termDurationInSeconds";const _tK = "tagKeys";const _u = "unit";const _uPA = "upfrontPaymentAmount";const _uT = "usageTypes";const _uTs = "usageType";const _v = "values";const _va = "value";const n0 = "com.amazonaws.savingsplans";const _s_registry = TypeRegistry.for(_s);var SavingsplansServiceException$ = [-3, _s, "SavingsplansServiceException", 0, [], []];_s_registry.registerError(SavingsplansServiceException$, SavingsplansServiceException);const n0_registry = TypeRegistry.for(n0);var InternalServerException$ = [-3, n0, _ISE,    { [_aQE]: [`InternalServerException`, 500], [_e]: _se, [_hE]: 500 },    [_m],    [0], 1];n0_registry.registerError(InternalServerException$, InternalServerException);var ResourceNotFoundException$ = [-3, n0, _RNFE,    { [_aQE]: [`ResourceNotFoundException`, 404], [_e]: _c, [_hE]: 404 },    [_m],    [0], 1];n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);var ServiceQuotaExceededException$ = [-3, n0, _SQEE,    { [_aQE]: [`ServiceQuotaExceededException`, 402], [_e]: _c, [_hE]: 402 },    [_m],    [0], 1];n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);var ValidationException$ = [-3, n0, _VE,    { [_aQE]: [`ValidationException`, 400], [_e]: _c, [_hE]: 400 },    [_m],    [0], 1];n0_registry.registerError(ValidationException$, ValidationException);const errorTypeRegistries = [    _s_registry,    n0_registry,];var CreateSavingsPlanRequest$ = [3, n0, _CSPR,    0,    [_sPOI, _co, _uPA, _pT, _cT, _t],    [0, 0, 0, 4, [0, 4], 128 | 0], 2];var CreateSavingsPlanResponse$ = [3, n0, _CSPRr,    0,    [_sPI],    [0]];var DeleteQueuedSavingsPlanRequest$ = [3, n0, _DQSPR,    0,    [_sPI],    [0], 1];var DeleteQueuedSavingsPlanResponse$ = [3, n0, _DQSPRe,    0,    [],    []];var DescribeSavingsPlanRatesRequest$ = [3, n0, _DSPRR,    0,    [_sPI, _f, _nT, _mR],    [0, () => SavingsPlanRateFilterList, 0, 1], 1];var DescribeSavingsPlanRatesResponse$ = [3, n0, _DSPRRe,    0,    [_sPI, _sR, _nT],    [0, () => SavingsPlanRateList, 0]];var DescribeSavingsPlansOfferingRatesRequest$ = [3, n0, _DSPORR,    0,    [_sPOIa, _sPPO, _sPT, _p, _sC, _uT, _o, _f, _nT, _mR],    [64 | 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, () => SavingsPlanOfferingRateFiltersList, 0, 1]];var DescribeSavingsPlansOfferingRatesResponse$ = [3, n0, _DSPORRe,    0,    [_sR, _nT],    [() => SavingsPlanOfferingRatesList, 0]];var DescribeSavingsPlansOfferingsRequest$ = [3, n0, _DSPOR,    0,    [_oI, _pO, _pTr, _pTl, _d, _cu, _de, _sC, _uT, _o, _f, _nT, _mR],    [64 | 0, 64 | 0, 0, 64 | 0, 64 | 1, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, () => SavingsPlanOfferingFiltersList, 0, 1]];var DescribeSavingsPlansOfferingsResponse$ = [3, n0, _DSPORe,    0,    [_sR, _nT],    [() => SavingsPlanOfferingsList, 0]];var DescribeSavingsPlansRequest$ = [3, n0, _DSPR,    0,    [_sPA, _sPIa, _nT, _mR, _st, _f],    [64 | 0, 64 | 0, 0, 1, 64 | 0, () => SavingsPlanFilterList]];var DescribeSavingsPlansResponse$ = [3, n0, _DSPRe,    0,    [_sP, _nT],    [() => SavingsPlanList, 0]];var ListTagsForResourceRequest$ = [3, n0, _LTFRR,    0,    [_rA],    [0], 1];var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,    0,    [_t],    [128 | 0]];var ParentSavingsPlanOffering$ = [3, n0, _PSPO,    0,    [_oIf, _pOa, _pTla, _dS, _cur, _pD],    [0, 0, 0, 1, 0, 0]];var ReturnSavingsPlanRequest$ = [3, n0, _RSPR,    0,    [_sPI, _cT],    [0, [0, 4]], 1];var ReturnSavingsPlanResponse$ = [3, n0, _RSPRe,    0,    [_sPI],    [0]];var SavingsPlan$ = [3, n0, _SP,    0,    [_oIf, _sPI, _sPAa, _des, _sta, _en, _stat, _r, _eIF, _sPTa, _pOa, _pTro, _cur, _co, _uPA, _rPA, _tDIS, _t, _rU],    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64 | 0, 0, 0, 0, 0, 1, 128 | 0, 0]];var SavingsPlanFilter$ = [3, n0, _SPF,    0,    [_n, _v],    [0, 64 | 0]];var SavingsPlanOffering$ = [3, n0, _SPO,    0,    [_oIf, _pTro, _pTla, _des, _pOa, _dS, _cur, _sCe, _uTs, _op, _pr],    [0, 64 | 0, 0, 0, 0, 1, 0, 0, 0, 0, () => SavingsPlanOfferingPropertyList]];var SavingsPlanOfferingFilterElement$ = [3, n0, _SPOFE,    0,    [_n, _v],    [0, 64 | 0]];var SavingsPlanOfferingProperty$ = [3, n0, _SPOP,    0,    [_n, _va],    [0, 0]];var SavingsPlanOfferingRate$ = [3, n0, _SPOR,    0,    [_sPO, _ra, _u, _pTr, _sCe, _uTs, _op, _pr],    [() => ParentSavingsPlanOffering$, 0, 0, 0, 0, 0, 0, () => SavingsPlanOfferingRatePropertyList]];var SavingsPlanOfferingRateFilterElement$ = [3, n0, _SPORFE,    0,    [_n, _v],    [0, 64 | 0]];var SavingsPlanOfferingRateProperty$ = [3, n0, _SPORP,    0,    [_n, _va],    [0, 0]];var SavingsPlanRate$ = [3, n0, _SPR,    0,    [_ra, _cur, _u, _pTr, _sCe, _uTs, _op, _pr],    [0, 0, 0, 0, 0, 0, 0, () => SavingsPlanRatePropertyList]];var SavingsPlanRateFilter$ = [3, n0, _SPRF,    0,    [_n, _v],    [0, 64 | 0]];var SavingsPlanRateProperty$ = [3, n0, _SPRP,    0,    [_n, _va],    [0, 0]];var TagResourceRequest$ = [3, n0, _TRR,    0,    [_rA, _t],    [0, 128 | 0], 2];var TagResourceResponse$ = [3, n0, _TRRa,    0,    [],    []];var UntagResourceRequest$ = [3, n0, _URR,    0,    [_rA, _tK],    [0, 64 | 0], 2];var UntagResourceResponse$ = [3, n0, _URRn,    0,    [],    []];var SavingsPlanFilterList = [1, n0, _SPFL,    0, () => SavingsPlanFilter$];var SavingsPlanList = [1, n0, _SPL,    0, () => SavingsPlan$];var SavingsPlanOfferingFiltersList = [1, n0, _SPOFL,    0, () => SavingsPlanOfferingFilterElement$];var SavingsPlanOfferingPropertyList = [1, n0, _SPOPL,    0, () => SavingsPlanOfferingProperty$];var SavingsPlanOfferingRateFiltersList = [1, n0, _SPORFL,    0, () => SavingsPlanOfferingRateFilterElement$];var SavingsPlanOfferingRatePropertyList = [1, n0, _SPORPL,    0, () => SavingsPlanOfferingRateProperty$];var SavingsPlanOfferingRatesList = [1, n0, _SPORL,    0, () => SavingsPlanOfferingRate$];var SavingsPlanOfferingsList = [1, n0, _SPOL,    0, () => SavingsPlanOffering$];var SavingsPlanRateFilterList = [1, n0, _SPRFL,    0, () => SavingsPlanRateFilter$];var SavingsPlanRateList = [1, n0, _SPRL,    0, () => SavingsPlanRate$];var SavingsPlanRatePropertyList = [1, n0, _SPRPL,    0, () => SavingsPlanRateProperty$];var CreateSavingsPlan$ = [9, n0, _CSP,    { [_h]: ["POST", "/CreateSavingsPlan", 200] }, () => CreateSavingsPlanRequest$, () => CreateSavingsPlanResponse$];var DeleteQueuedSavingsPlan$ = [9, n0, _DQSP,    { [_h]: ["POST", "/DeleteQueuedSavingsPlan", 200] }, () => DeleteQueuedSavingsPlanRequest$, () => DeleteQueuedSavingsPlanResponse$];var DescribeSavingsPlanRates$ = [9, n0, _DSPRes,    { [_h]: ["POST", "/DescribeSavingsPlanRates", 200] }, () => DescribeSavingsPlanRatesRequest$, () => DescribeSavingsPlanRatesResponse$];var DescribeSavingsPlans$ = [9, n0, _DSP,    { [_h]: ["POST", "/DescribeSavingsPlans", 200] }, () => DescribeSavingsPlansRequest$, () => DescribeSavingsPlansResponse$];var DescribeSavingsPlansOfferingRates$ = [9, n0, _DSPORes,    { [_h]: ["POST", "/DescribeSavingsPlansOfferingRates", 200] }, () => DescribeSavingsPlansOfferingRatesRequest$, () => DescribeSavingsPlansOfferingRatesResponse$];var DescribeSavingsPlansOfferings$ = [9, n0, _DSPO,    { [_h]: ["POST", "/DescribeSavingsPlansOfferings", 200] }, () => DescribeSavingsPlansOfferingsRequest$, () => DescribeSavingsPlansOfferingsResponse$];var ListTagsForResource$ = [9, n0, _LTFR,    { [_h]: ["POST", "/ListTagsForResource", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$];var ReturnSavingsPlan$ = [9, n0, _RSP,    { [_h]: ["POST", "/ReturnSavingsPlan", 200] }, () => ReturnSavingsPlanRequest$, () => ReturnSavingsPlanResponse$];var TagResource$ = [9, n0, _TR,    { [_h]: ["POST", "/TagResource", 200] }, () => TagResourceRequest$, () => TagResourceResponse$];var UntagResource$ = [9, n0, _UR,    { [_h]: ["POST", "/UntagResource", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$]; const getRuntimeConfig$1 = (config) => {    return {        apiVersion: "2019-06-28",        base64Decoder: config?.base64Decoder ?? fromBase64,        base64Encoder: config?.base64Encoder ?? toBase64,        disableHostPrefix: config?.disableHostPrefix ?? false,        endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,        extensions: config?.extensions ?? [],        httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSavingsplansHttpAuthSchemeProvider,        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.savingsplans",            errorTypeRegistries,            version: "2019-06-28",            serviceTarget: "AWSSavingsPlan",        },        serviceId: config?.serviceId ?? "savingsplans",        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 SavingsplansClient 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: defaultSavingsplansHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} const command = makeBuilder(commonParams, "AWSSavingsPlan", "SavingsplansClient", getEndpointPlugin);const _ep0 = {};const _mw0 = (Command, cs, config, o) => []; class CreateSavingsPlanCommand extends command(_ep0, _mw0, "CreateSavingsPlan", CreateSavingsPlan$) {} class DeleteQueuedSavingsPlanCommand extends command(_ep0, _mw0, "DeleteQueuedSavingsPlan", DeleteQueuedSavingsPlan$) {} class DescribeSavingsPlanRatesCommand extends command(_ep0, _mw0, "DescribeSavingsPlanRates", DescribeSavingsPlanRates$) {} class DescribeSavingsPlansCommand extends command(_ep0, _mw0, "DescribeSavingsPlans", DescribeSavingsPlans$) {} class DescribeSavingsPlansOfferingRatesCommand extends command(_ep0, _mw0, "DescribeSavingsPlansOfferingRates", DescribeSavingsPlansOfferingRates$) {} class DescribeSavingsPlansOfferingsCommand extends command(_ep0, _mw0, "DescribeSavingsPlansOfferings", DescribeSavingsPlansOfferings$) {} class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {} class ReturnSavingsPlanCommand extends command(_ep0, _mw0, "ReturnSavingsPlan", ReturnSavingsPlan$) {} class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {} class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {} const commands = {    CreateSavingsPlanCommand,    DeleteQueuedSavingsPlanCommand,    DescribeSavingsPlanRatesCommand,    DescribeSavingsPlansCommand,    DescribeSavingsPlansOfferingRatesCommand,    DescribeSavingsPlansOfferingsCommand,    ListTagsForResourceCommand,    ReturnSavingsPlanCommand,    TagResourceCommand,    UntagResourceCommand,};class Savingsplans extends SavingsplansClient {}createAggregatedClient(commands, Savingsplans); const SavingsPlanRateFilterName = {    INSTANCE_TYPE: "instanceType",    OPERATION: "operation",    PRODUCT_DESCRIPTION: "productDescription",    PRODUCT_TYPE: "productType",    REGION: "region",    SERVICE_CODE: "serviceCode",    TENANCY: "tenancy",    USAGE_TYPE: "usageType",};const CurrencyCode = {    CNY: "CNY",    EUR: "EUR",    USD: "USD",};const SavingsPlanProductType = {    DMS: "DMS",    DOCDB: "DocDB",    DSQL: "DSQL",    DYNAMODB: "DynamoDB",    EC2: "EC2",    ELASTICACHE: "ElastiCache",    FARGATE: "Fargate",    KEYSPACES: "Keyspaces",    LAMBDA: "Lambda",    NEPTUNE: "Neptune",    OPENSEARCH: "OpenSearch",    RDS: "RDS",    SAGEMAKER: "SageMaker",    TIMESTREAM: "Timestream",};const SavingsPlanRatePropertyKey = {    INSTANCE_FAMILY: "instanceFamily",    INSTANCE_TYPE: "instanceType",    PRODUCT_DESCRIPTION: "productDescription",    REGION: "region",    TENANCY: "tenancy",};const SavingsPlanRateServiceCode = {    AURORA: "AuroraDSQL",    DMS: "AWSDatabaseMigrationSvc",    DOCDB: "AmazonDocDB",    DYNAMODB: "AmazonDynamoDB",    EC2: "AmazonEC2",    ELASTICACHE: "AmazonElastiCache",    ES: "AmazonES",    FARGATE: "AmazonECS",    FARGATE_EKS: "AmazonEKS",    LAMBDA: "AWSLambda",    MCS: "AmazonMCS",    NEPTUNE: "AmazonNeptune",    RDS: "AmazonRDS",    SAGEMAKER: "AmazonSageMaker",    TIMESTREAM: "AmazonTimestream",};const SavingsPlanRateUnit = {    ACU_HR: "ACU-Hr",    DCU_HR: "DCU-Hr",    DPU: "DPU",    ELASTI_CACHE_PROCESSING_UNIT: "ElastiCacheProcessingUnit",    GB_HOURS: "GB-Hours",    HOURS: "Hrs",    JOBS: "Jobs",    LAMBDA_GB_SECOND: "Lambda-GB-Second",    NCU_HR: "NCU-hr",    OCU_HRS: "OCU-hours",    READ_CAPACITY_UNIT_HRS: "ReadCapacityUnit-Hrs",    READ_REQUEST_UNITS: "ReadRequestUnits",    REPLICATED_WRITE_CAPACITY_UNIT_HRS: "ReplicatedWriteCapacityUnit-Hrs",    REPLICATED_WRITE_REQUEST_UNITS: "ReplicatedWriteRequestUnits",    REQUEST: "Request",    WRITE_CAPACITY_UNIT_HRS: "WriteCapacityUnit-Hrs",    WRITE_REQUEST_UNITS: "WriteRequestUnits",};const SavingsPlansFilterName = {    COMMITMENT: "commitment",    EC2_INSTANCE_FAMILY: "ec2-instance-family",    END: "end",    INSTANCE_FAMILY: "instance-family",    PAYMENT_OPTION: "payment-option",    REGION: "region",    SAVINGS_PLAN_TYPE: "savings-plan-type",    START: "start",    TERM: "term",    UPFRONT: "upfront",};const SavingsPlanState = {    ACTIVE: "active",    PAYMENT_FAILED: "payment-failed",    PAYMENT_PENDING: "payment-pending",    PENDING_RETURN: "pending-return",    QUEUED: "queued",    QUEUED_DELETED: "queued-deleted",    RETIRED: "retired",    RETURNED: "returned",};const SavingsPlanPaymentOption = {    ALL_UPFRONT: "All Upfront",    NO_UPFRONT: "No Upfront",    PARTIAL_UPFRONT: "Partial Upfront",};const SavingsPlanType = {    COMPUTE: "Compute",    DATABASE: "Database",    EC2_INSTANCE: "EC2Instance",    SAGEMAKER: "SageMaker",};const SavingsPlanRateFilterAttribute = {    INSTANCE_FAMILY: "instanceFamily",    INSTANCE_TYPE: "instanceType",    PRODUCT_DESCRIPTION: "productDescription",    PRODUCT_ID: "productId",    REGION: "region",    TENANCY: "tenancy",};const SavingsPlanOfferingFilterAttribute = {    instanceFamily: "instanceFamily",    region: "region",};const SavingsPlanOfferingPropertyKey = {    INSTANCE_FAMILY: "instanceFamily",    REGION: "region",}; exports.CreateSavingsPlan$ = CreateSavingsPlan$;exports.CreateSavingsPlanCommand = CreateSavingsPlanCommand;exports.CreateSavingsPlanRequest$ = CreateSavingsPlanRequest$;exports.CreateSavingsPlanResponse$ = CreateSavingsPlanResponse$;exports.CurrencyCode = CurrencyCode;exports.DeleteQueuedSavingsPlan$ = DeleteQueuedSavingsPlan$;exports.DeleteQueuedSavingsPlanCommand = DeleteQueuedSavingsPlanCommand;exports.DeleteQueuedSavingsPlanRequest$ = DeleteQueuedSavingsPlanRequest$;exports.DeleteQueuedSavingsPlanResponse$ = DeleteQueuedSavingsPlanResponse$;exports.DescribeSavingsPlanRates$ = DescribeSavingsPlanRates$;exports.DescribeSavingsPlanRatesCommand = DescribeSavingsPlanRatesCommand;exports.DescribeSavingsPlanRatesRequest$ = DescribeSavingsPlanRatesRequest$;exports.DescribeSavingsPlanRatesResponse$ = DescribeSavingsPlanRatesResponse$;exports.DescribeSavingsPlans$ = DescribeSavingsPlans$;exports.DescribeSavingsPlansCommand = DescribeSavingsPlansCommand;exports.DescribeSavingsPlansOfferingRates$ = DescribeSavingsPlansOfferingRates$;exports.DescribeSavingsPlansOfferingRatesCommand = DescribeSavingsPlansOfferingRatesCommand;exports.DescribeSavingsPlansOfferingRatesRequest$ = DescribeSavingsPlansOfferingRatesRequest$;exports.DescribeSavingsPlansOfferingRatesResponse$ = DescribeSavingsPlansOfferingRatesResponse$;exports.DescribeSavingsPlansOfferings$ = DescribeSavingsPlansOfferings$;exports.DescribeSavingsPlansOfferingsCommand = DescribeSavingsPlansOfferingsCommand;exports.DescribeSavingsPlansOfferingsRequest$ = DescribeSavingsPlansOfferingsRequest$;exports.DescribeSavingsPlansOfferingsResponse$ = DescribeSavingsPlansOfferingsResponse$;exports.DescribeSavingsPlansRequest$ = DescribeSavingsPlansRequest$;exports.DescribeSavingsPlansResponse$ = DescribeSavingsPlansResponse$;exports.InternalServerException = InternalServerException;exports.InternalServerException$ = InternalServerException$;exports.ListTagsForResource$ = ListTagsForResource$;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;exports.ParentSavingsPlanOffering$ = ParentSavingsPlanOffering$;exports.ResourceNotFoundException = ResourceNotFoundException;exports.ResourceNotFoundException$ = ResourceNotFoundException$;exports.ReturnSavingsPlan$ = ReturnSavingsPlan$;exports.ReturnSavingsPlanCommand = ReturnSavingsPlanCommand;exports.ReturnSavingsPlanRequest$ = ReturnSavingsPlanRequest$;exports.ReturnSavingsPlanResponse$ = ReturnSavingsPlanResponse$;exports.SavingsPlan$ = SavingsPlan$;exports.SavingsPlanFilter$ = SavingsPlanFilter$;exports.SavingsPlanOffering$ = SavingsPlanOffering$;exports.SavingsPlanOfferingFilterAttribute = SavingsPlanOfferingFilterAttribute;exports.SavingsPlanOfferingFilterElement$ = SavingsPlanOfferingFilterElement$;exports.SavingsPlanOfferingProperty$ = SavingsPlanOfferingProperty$;exports.SavingsPlanOfferingPropertyKey = SavingsPlanOfferingPropertyKey;exports.SavingsPlanOfferingRate$ = SavingsPlanOfferingRate$;exports.SavingsPlanOfferingRateFilterElement$ = SavingsPlanOfferingRateFilterElement$;exports.SavingsPlanOfferingRateProperty$ = SavingsPlanOfferingRateProperty$;exports.SavingsPlanPaymentOption = SavingsPlanPaymentOption;exports.SavingsPlanProductType = SavingsPlanProductType;exports.SavingsPlanRate$ = SavingsPlanRate$;exports.SavingsPlanRateFilter$ = SavingsPlanRateFilter$;exports.SavingsPlanRateFilterAttribute = SavingsPlanRateFilterAttribute;exports.SavingsPlanRateFilterName = SavingsPlanRateFilterName;exports.SavingsPlanRateProperty$ = SavingsPlanRateProperty$;exports.SavingsPlanRatePropertyKey = SavingsPlanRatePropertyKey;exports.SavingsPlanRateServiceCode = SavingsPlanRateServiceCode;exports.SavingsPlanRateUnit = SavingsPlanRateUnit;exports.SavingsPlanState = SavingsPlanState;exports.SavingsPlanType = SavingsPlanType;exports.SavingsPlansFilterName = SavingsPlansFilterName;exports.Savingsplans = Savingsplans;exports.SavingsplansClient = SavingsplansClient;exports.SavingsplansServiceException = SavingsplansServiceException;exports.SavingsplansServiceException$ = SavingsplansServiceException$;exports.ServiceQuotaExceededException = ServiceQuotaExceededException;exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;exports.TagResource$ = TagResource$;exports.TagResourceCommand = TagResourceCommand;exports.TagResourceRequest$ = TagResourceRequest$;exports.TagResourceResponse$ = TagResourceResponse$;exports.UntagResource$ = UntagResource$;exports.UntagResourceCommand = UntagResourceCommand;exports.UntagResourceRequest$ = UntagResourceRequest$;exports.UntagResourceResponse$ = UntagResourceResponse$;exports.ValidationException = ValidationException;exports.ValidationException$ = ValidationException$;exports.errorTypeRegistries = errorTypeRegistries;