UNPKG

failure-lambda

Version:

Failure injection for AWS Lambda - chaos engineering made simple

744 lines (727 loc) 26.4 kB
#!/usr/bin/env node import { awsEndpointFunctions, defaultProvider } from "./chunk-5O7KUBNU.js"; import "./chunk-DLNZVS3G.js"; import { createAggregatedClient } from "./chunk-V4BSKZG7.js"; import { AwsRestJsonProtocol } from "./chunk-ZJL5KTIU.js"; import { AwsSdkSigV4Signer, Client, Command, DEFAULT_RETRY_MODE, DefaultIdentityProviderConfig, EndpointCache, Hash, NODE_APP_ID_CONFIG_OPTIONS, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NoOpLogger, ServiceException, TypeRegistry, calculateBodyLength, createDefaultUserAgentProvider, customEndpointFunctions, emitWarningIfUnsupportedVersion, emitWarningIfUnsupportedVersion2, getAwsRegionExtensionConfiguration, getContentLengthPlugin, getDefaultExtensionConfiguration, getEndpointPlugin, getHostHeaderPlugin, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpHandlerExtensionConfiguration, getHttpSigningPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getRetryPlugin, getSchemaSerdePlugin, getSmithyContext, getUserAgentPlugin, loadConfigsForDefaultMode, normalizeProvider, resolveAwsRegionExtensionConfiguration, resolveAwsSdkSigV4Config, resolveDefaultRuntimeConfig, resolveDefaultsModeConfig, resolveEndpoint, resolveEndpointConfig, resolveHostHeaderConfig, resolveHttpHandlerRuntimeConfig, resolveRegionConfig, resolveRetryConfig, resolveUserAgentConfig } from "./chunk-762XZWE7.js"; import { loadConfig, parseUrl } from "./chunk-2345QE66.js"; import "./chunk-LILC4PLL.js"; import "./chunk-52D4AVIU.js"; import "./chunk-VSWURCYJ.js"; import { NodeHttpHandler, fromBase64, streamCollector, toBase64 } from "./chunk-W3M6RT2M.js"; import "./chunk-XDZ73E2B.js"; import { fromUtf8, toUtf8 } from "./chunk-VACN7GDP.js"; import "./chunk-S6KKH4HA.js"; import "./chunk-M4AFYEP7.js"; import "./chunk-UT3JLF3M.js"; // node_modules/@aws-sdk/client-appconfigdata/dist-es/auth/httpAuthSchemeProvider.js var defaultAppConfigDataHttpAuthSchemeParametersProvider = 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: "appconfig", region: authParameters.region }, propertiesExtractor: (config, context) => ({ signingProperties: { config, context } }) }; } var defaultAppConfigDataHttpAuthSchemeProvider = (authParameters) => { const options = []; switch (authParameters.operation) { default: { options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); } } return options; }; var resolveHttpAuthSchemeConfig = (config) => { const config_0 = resolveAwsSdkSigV4Config(config); return Object.assign(config_0, { authSchemePreference: normalizeProvider(config.authSchemePreference ?? []) }); }; // node_modules/@aws-sdk/client-appconfigdata/dist-es/endpoint/EndpointParameters.js var resolveClientEndpointParameters = (options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "appconfig" }); }; var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } }; // node_modules/@aws-sdk/client-appconfigdata/package.json var package_default = { name: "@aws-sdk/client-appconfigdata", description: "AWS SDK for JavaScript Appconfigdata Client for Node.js, Browser and React Native", version: "3.995.0", scripts: { build: "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs", "build:cjs": "node ../../scripts/compilation/inline client-appconfigdata", "build:es": "tsc -p tsconfig.es.json", "build:include:deps": 'yarn g:turbo run build -F="$npm_package_name"', "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", clean: "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo", "extract:docs": "api-extractor run --local", "generate:client": "node ../../scripts/generate-clients/single-service --solo appconfigdata", "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs" }, main: "./dist-cjs/index.js", types: "./dist-types/index.d.ts", module: "./dist-es/index.js", sideEffects: false, dependencies: { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "^3.973.11", "@aws-sdk/credential-provider-node": "^3.972.10", "@aws-sdk/middleware-host-header": "^3.972.3", "@aws-sdk/middleware-logger": "^3.972.3", "@aws-sdk/middleware-recursion-detection": "^3.972.3", "@aws-sdk/middleware-user-agent": "^3.972.11", "@aws-sdk/region-config-resolver": "^3.972.3", "@aws-sdk/types": "^3.973.1", "@aws-sdk/util-endpoints": "3.995.0", "@aws-sdk/util-user-agent-browser": "^3.972.3", "@aws-sdk/util-user-agent-node": "^3.972.10", "@smithy/config-resolver": "^4.4.6", "@smithy/core": "^3.23.2", "@smithy/fetch-http-handler": "^5.3.9", "@smithy/hash-node": "^4.2.8", "@smithy/invalid-dependency": "^4.2.8", "@smithy/middleware-content-length": "^4.2.8", "@smithy/middleware-endpoint": "^4.4.16", "@smithy/middleware-retry": "^4.4.33", "@smithy/middleware-serde": "^4.2.9", "@smithy/middleware-stack": "^4.2.8", "@smithy/node-config-provider": "^4.3.8", "@smithy/node-http-handler": "^4.4.10", "@smithy/protocol-http": "^5.3.8", "@smithy/smithy-client": "^4.11.5", "@smithy/types": "^4.12.0", "@smithy/url-parser": "^4.2.8", "@smithy/util-base64": "^4.3.0", "@smithy/util-body-length-browser": "^4.2.0", "@smithy/util-body-length-node": "^4.2.1", "@smithy/util-defaults-mode-browser": "^4.3.32", "@smithy/util-defaults-mode-node": "^4.2.35", "@smithy/util-endpoints": "^3.2.8", "@smithy/util-middleware": "^4.2.8", "@smithy/util-retry": "^4.2.8", "@smithy/util-stream": "^4.5.12", "@smithy/util-utf8": "^4.2.0", tslib: "^2.6.2" }, devDependencies: { "@tsconfig/node20": "20.1.8", "@types/node": "^20.14.8", concurrently: "7.0.0", "downlevel-dts": "0.10.1", premove: "4.0.0", typescript: "~5.8.3" }, engines: { node: ">=20.0.0" }, typesVersions: { "<4.0": { "dist-types/*": [ "dist-types/ts3.4/*" ] } }, files: [ "dist-*/**" ], author: { name: "AWS SDK for JavaScript Team", url: "https://aws.amazon.com/javascript/" }, license: "Apache-2.0", browser: { "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" }, "react-native": { "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" }, homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-appconfigdata", repository: { type: "git", url: "https://github.com/aws/aws-sdk-js-v3.git", directory: "clients/client-appconfigdata" } }; // node_modules/@aws-sdk/client-appconfigdata/dist-es/endpoint/ruleset.js var u = "required"; var v = "fn"; var w = "argv"; var x = "ref"; var a = true; var b = "isSet"; var c = "booleanEquals"; var d = "error"; var e = "endpoint"; var f = "tree"; var g = "PartitionResult"; var h = "getAttr"; var i = { [u]: false, "type": "string" }; var j = { [u]: true, "default": false, "type": "boolean" }; var k = { [x]: "Endpoint" }; var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }; var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }; var n = {}; var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }; var p = { [x]: g }; var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }; var r = [l]; var s = [m]; var t = [{ [x]: "Region" }]; var _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://appconfigdata-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://appconfigdata.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://appconfigdata-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://appconfigdata.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://appconfigdata.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] }; var ruleSet = _data; // node_modules/@aws-sdk/client-appconfigdata/dist-es/endpoint/endpointResolver.js var cache = new EndpointCache({ size: 50, params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"] }); var defaultEndpointResolver = (endpointParams, context = {}) => { return cache.get(endpointParams, () => resolveEndpoint(ruleSet, { endpointParams, logger: context.logger })); }; customEndpointFunctions.aws = awsEndpointFunctions; // node_modules/@aws-sdk/client-appconfigdata/dist-es/models/AppConfigDataServiceException.js var AppConfigDataServiceException = class _AppConfigDataServiceException extends ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, _AppConfigDataServiceException.prototype); } }; // node_modules/@aws-sdk/client-appconfigdata/dist-es/models/errors.js var BadRequestException = class _BadRequestException extends AppConfigDataServiceException { name = "BadRequestException"; $fault = "client"; Message; Reason; Details; constructor(opts) { super({ name: "BadRequestException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _BadRequestException.prototype); this.Message = opts.Message; this.Reason = opts.Reason; this.Details = opts.Details; } }; var InternalServerException = class _InternalServerException extends AppConfigDataServiceException { name = "InternalServerException"; $fault = "server"; Message; constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalServerException.prototype); this.Message = opts.Message; } }; var ResourceNotFoundException = class _ResourceNotFoundException extends AppConfigDataServiceException { name = "ResourceNotFoundException"; $fault = "client"; Message; ResourceType; ReferencedBy; constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); this.Message = opts.Message; this.ResourceType = opts.ResourceType; this.ReferencedBy = opts.ReferencedBy; } }; var ThrottlingException = class _ThrottlingException extends AppConfigDataServiceException { name = "ThrottlingException"; $fault = "client"; Message; constructor(opts) { super({ name: "ThrottlingException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ThrottlingException.prototype); this.Message = opts.Message; } }; // node_modules/@aws-sdk/client-appconfigdata/dist-es/schemas/schemas_0.js var _AI = "ApplicationIdentifier"; var _BRD = "BadRequestDetails"; var _BRE = "BadRequestException"; var _C = "Configuration"; var _CPI = "ConfigurationProfileIdentifier"; var _CT = "ConfigurationToken"; var _CT_ = "Content-Type"; var _CTo = "ContentType"; var _D = "Details"; var _EI = "EnvironmentIdentifier"; var _GLC = "GetLatestConfiguration"; var _GLCR = "GetLatestConfigurationRequest"; var _GLCRe = "GetLatestConfigurationResponse"; var _ICT = "InitialConfigurationToken"; var _IP = "InvalidParameters"; var _IPD = "InvalidParameterDetail"; var _IPM = "InvalidParameterMap"; var _ISE = "InternalServerException"; var _M = "Message"; var _NPCT = "NextPollConfigurationToken"; var _NPCT_ = "Next-Poll-Configuration-Token"; var _NPIIS = "NextPollIntervalInSeconds"; var _NPIIS_ = "Next-Poll-Interval-In-Seconds"; var _P = "Problem"; var _R = "Reason"; var _RB = "ReferencedBy"; var _RMPIIS = "RequiredMinimumPollIntervalInSeconds"; var _RNFE = "ResourceNotFoundException"; var _RT = "ResourceType"; var _SB = "SensitiveBlob"; var _SCS = "StartConfigurationSession"; var _SCSR = "StartConfigurationSessionRequest"; var _SCSRt = "StartConfigurationSessionResponse"; var _TE = "ThrottlingException"; var _VL = "VersionLabel"; var _VL_ = "Version-Label"; var _c = "client"; var _ct = "configuration_token"; var _e = "error"; var _h = "http"; var _hE = "httpError"; var _hH = "httpHeader"; var _hQ = "httpQuery"; var _s = "smithy.ts.sdk.synthetic.com.amazonaws.appconfigdata"; var _se = "server"; var n0 = "com.amazonaws.appconfigdata"; var _s_registry = TypeRegistry.for(_s); var AppConfigDataServiceException$ = [-3, _s, "AppConfigDataServiceException", 0, [], []]; _s_registry.registerError(AppConfigDataServiceException$, AppConfigDataServiceException); var n0_registry = TypeRegistry.for(n0); var BadRequestException$ = [ -3, n0, _BRE, { [_e]: _c, [_hE]: 400 }, [_M, _R, _D], [0, 0, () => BadRequestDetails$] ]; n0_registry.registerError(BadRequestException$, BadRequestException); 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, _RT, _RB], [0, 0, 128 | 0] ]; n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException); var ThrottlingException$ = [ -3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_M], [0] ]; n0_registry.registerError(ThrottlingException$, ThrottlingException); var errorTypeRegistries = [ _s_registry, n0_registry ]; var SensitiveBlob = [0, n0, _SB, 8, 21]; var GetLatestConfigurationRequest$ = [ 3, n0, _GLCR, 0, [_CT], [[0, { [_hQ]: _ct }]], 1 ]; var GetLatestConfigurationResponse$ = [ 3, n0, _GLCRe, 0, [_NPCT, _NPIIS, _CTo, _C, _VL], [[0, { [_hH]: _NPCT_ }], [1, { [_hH]: _NPIIS_ }], [0, { [_hH]: _CT_ }], [() => SensitiveBlob, 16], [0, { [_hH]: _VL_ }]] ]; var InvalidParameterDetail$ = [ 3, n0, _IPD, 0, [_P], [0] ]; var StartConfigurationSessionRequest$ = [ 3, n0, _SCSR, 0, [_AI, _EI, _CPI, _RMPIIS], [0, 0, 0, 1], 3 ]; var StartConfigurationSessionResponse$ = [ 3, n0, _SCSRt, 0, [_ICT], [0] ]; var InvalidParameterMap = [ 2, n0, _IPM, 0, 0, () => InvalidParameterDetail$ ]; var StringMap = 128 | 0; var BadRequestDetails$ = [ 4, n0, _BRD, 0, [_IP], [() => InvalidParameterMap] ]; var GetLatestConfiguration$ = [ 9, n0, _GLC, { [_h]: ["GET", "/configuration", 200] }, () => GetLatestConfigurationRequest$, () => GetLatestConfigurationResponse$ ]; var StartConfigurationSession$ = [ 9, n0, _SCS, { [_h]: ["POST", "/configurationsessions", 201] }, () => StartConfigurationSessionRequest$, () => StartConfigurationSessionResponse$ ]; // node_modules/@aws-sdk/client-appconfigdata/dist-es/runtimeConfig.shared.js var getRuntimeConfig = (config) => { return { apiVersion: "2021-11-11", base64Decoder: config?.base64Decoder ?? fromBase64, base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, extensions: config?.extensions ?? [], httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultAppConfigDataHttpAuthSchemeProvider, 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.appconfigdata", errorTypeRegistries, version: "2021-11-11", serviceTarget: "AppConfigData" }, serviceId: config?.serviceId ?? "AppConfigData", urlParser: config?.urlParser ?? parseUrl, utf8Decoder: config?.utf8Decoder ?? fromUtf8, utf8Encoder: config?.utf8Encoder ?? toUtf8 }; }; // node_modules/@aws-sdk/client-appconfigdata/dist-es/runtimeConfig.js var getRuntimeConfig2 = (config) => { emitWarningIfUnsupportedVersion2(process.version); const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getRuntimeConfig(config); emitWarningIfUnsupportedVersion(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: package_default.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), sha256: config?.sha256 ?? Hash.bind(null, "sha256"), 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) }; }; // node_modules/@aws-sdk/client-appconfigdata/dist-es/auth/httpAuthExtensionConfiguration.js var 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; } }; }; var resolveHttpAuthRuntimeConfig = (config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() }; }; // node_modules/@aws-sdk/client-appconfigdata/dist-es/runtimeExtensions.js var 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)); }; // node_modules/@aws-sdk/client-appconfigdata/dist-es/AppConfigDataClient.js var AppConfigDataClient = class extends Client { config; constructor(...[configuration]) { const _config_0 = getRuntimeConfig2(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: defaultAppConfigDataHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials }) })); this.middlewareStack.use(getHttpSigningPlugin(this.config)); } destroy() { super.destroy(); } }; // node_modules/@aws-sdk/client-appconfigdata/dist-es/commands/GetLatestConfigurationCommand.js var GetLatestConfigurationCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) { return [getEndpointPlugin(config, Command2.getEndpointParameterInstructions())]; }).s("AppConfigData", "GetLatestConfiguration", {}).n("AppConfigDataClient", "GetLatestConfigurationCommand").sc(GetLatestConfiguration$).build() { }; // node_modules/@aws-sdk/client-appconfigdata/dist-es/commands/StartConfigurationSessionCommand.js var StartConfigurationSessionCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) { return [getEndpointPlugin(config, Command2.getEndpointParameterInstructions())]; }).s("AppConfigData", "StartConfigurationSession", {}).n("AppConfigDataClient", "StartConfigurationSessionCommand").sc(StartConfigurationSession$).build() { }; // node_modules/@aws-sdk/client-appconfigdata/dist-es/AppConfigData.js var commands = { GetLatestConfigurationCommand, StartConfigurationSessionCommand }; var AppConfigData = class extends AppConfigDataClient { }; createAggregatedClient(commands, AppConfigData); // node_modules/@aws-sdk/client-appconfigdata/dist-es/models/enums.js var InvalidParameterProblem = { CORRUPTED: "Corrupted", EXPIRED: "Expired", POLL_INTERVAL_NOT_SATISFIED: "PollIntervalNotSatisfied" }; var BadRequestReason = { INVALID_PARAMETERS: "InvalidParameters" }; var ResourceType = { APPLICATION: "Application", CONFIGURATION: "Configuration", CONFIGURATION_PROFILE: "ConfigurationProfile", DEPLOYMENT: "Deployment", ENVIRONMENT: "Environment" }; export { Command as $Command, AppConfigData, AppConfigDataClient, AppConfigDataServiceException, AppConfigDataServiceException$, BadRequestDetails$, BadRequestException, BadRequestException$, BadRequestReason, GetLatestConfiguration$, GetLatestConfigurationCommand, GetLatestConfigurationRequest$, GetLatestConfigurationResponse$, InternalServerException, InternalServerException$, InvalidParameterDetail$, InvalidParameterProblem, ResourceNotFoundException, ResourceNotFoundException$, ResourceType, StartConfigurationSession$, StartConfigurationSessionCommand, StartConfigurationSessionRequest$, StartConfigurationSessionResponse$, ThrottlingException, ThrottlingException$, Client as __Client, errorTypeRegistries }; //# sourceMappingURL=dist-es-EEVCNQFQ.js.map