From 712306db8305dc6cbe788f399872cedf984ecba7 Mon Sep 17 00:00:00 2001 From: AWS CDK Automation <43080478+aws-cdk-automation@users.noreply.github.com> Date: Wed, 14 Feb 2024 11:22:19 -0800 Subject: [PATCH 01/22] chore: npm-check-updates && yarn upgrade (#29012) Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date. --- package.json | 6 +- .../@aws-cdk-testing/cli-integ/package.json | 6 +- .../framework-integ/package.json | 6 +- ...efaultTestDeployAssertD40B5C28.assets.json | 10 +- ...aultTestDeployAssertD40B5C28.template.json | 4 +- .../index.js | 16 +- .../index.js | 30 +- .../node_modules/.yarn-integrity | 0 .../node_modules/delay/index.d.ts | 0 .../node_modules/delay/index.js | 0 .../node_modules/delay/license | 0 .../node_modules/delay/package.json | 0 .../node_modules/delay/readme.md | 0 .../package.json | 0 .../yarn.lock | 0 ...cdk-integ-lambda-nodejs-latest.assets.json | 10 +- ...k-integ-lambda-nodejs-latest.template.json | 2 +- .../integ.latest.js.snapshot/manifest.json | 4 +- .../test/integ.latest.js.snapshot/tree.json | 2 +- .../cloud-assembly-schema/package.json | 4 +- .../@aws-cdk/cloudformation-diff/package.json | 4 +- .../custom-resource-handlers/package.json | 2 +- packages/@aws-cdk/cx-api/FEATURE_FLAGS.md | 4 +- packages/@aws-cdk/cx-api/package.json | 4 +- .../integ-runner/THIRD_PARTY_LICENSES | 53 +- packages/@aws-cdk/integ-runner/package.json | 2 +- packages/aws-cdk-lib/package.json | 8 +- packages/aws-cdk/THIRD_PARTY_LICENSES | 269 +++++-- .../app/typescript/package.json | 2 +- .../lib/typescript/package.json | 2 +- .../sample-app/typescript/package.json | 2 +- packages/aws-cdk/package.json | 12 +- packages/awslint/package.json | 4 +- packages/cdk-assets/package.json | 2 +- tools/@aws-cdk/cdk-build-tools/package.json | 10 +- tools/@aws-cdk/cdk-release/package.json | 2 +- tools/@aws-cdk/eslint-plugin/package.json | 2 +- tools/@aws-cdk/node-bundle/package.json | 4 +- tools/@aws-cdk/pkglint/package.json | 8 +- tools/@aws-cdk/yarn-cling/package.json | 4 +- yarn.lock | 715 ++++++++++-------- 41 files changed, 689 insertions(+), 526 deletions(-) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.3f0f15596be1e3fbbf4a0571522aa1e5312d44abff27360f8d043c1b0704bcf4.bundle => asset.310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17.bundle}/index.js (99%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a => asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06}/index.js (74%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a => asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06}/node_modules/.yarn-integrity (100%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a => asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06}/node_modules/delay/index.d.ts (100%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a => asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06}/node_modules/delay/index.js (100%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a => asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06}/node_modules/delay/license (100%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a => asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06}/node_modules/delay/package.json (100%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a => asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06}/node_modules/delay/readme.md (100%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a => asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06}/package.json (100%) rename packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/{asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a => asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06}/yarn.lock (100%) diff --git a/package.json b/package.json index 8c7237567a431..fbd0aee37880c 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "@types/prettier": "2.6.0", "@yarnpkg/lockfile": "^1.1.0", "aws-sdk-js-codemod": "^0.28.2", - "cdk-generate-synthetic-examples": "^0.1.302", + "cdk-generate-synthetic-examples": "^0.1.303", "conventional-changelog-cli": "^2.2.2", "fs-extra": "^9.1.0", "graceful-fs": "^4.2.11", @@ -28,11 +28,11 @@ "jsii-diff": "1.94.0", "jsii-pacmak": "1.94.0", "jsii-reflect": "1.94.0", - "jsii-rosetta": "~5.3.9", + "jsii-rosetta": "~5.3.15", "lerna": "^7.4.2", "nx": "^16.10.0", "patch-package": "^6.5.1", - "semver": "^7.5.4", + "semver": "^7.6.0", "standard-version": "^9.5.0", "ts-jest": "^29.1.2", "ts-node": "^10.9.2", diff --git a/packages/@aws-cdk-testing/cli-integ/package.json b/packages/@aws-cdk-testing/cli-integ/package.json index b4c8f73232fdb..27ba6d78100a2 100644 --- a/packages/@aws-cdk-testing/cli-integ/package.json +++ b/packages/@aws-cdk-testing/cli-integ/package.json @@ -30,7 +30,7 @@ "license": "Apache-2.0", "devDependencies": { "@aws-cdk/cdk-build-tools": "0.0.0", - "@types/semver": "^7.5.6", + "@types/semver": "^7.5.7", "@types/yargs": "^15.0.19", "@types/fs-extra": "^9.0.13", "@types/glob": "^7.2.0", @@ -39,7 +39,7 @@ }, "dependencies": { "@octokit/rest": "^18.12.0", - "aws-sdk": "^2.1548.0", + "aws-sdk": "^2.1557.0", "axios": "^1.6.7", "fs-extra": "^9.1.0", "glob": "^7.2.3", @@ -48,7 +48,7 @@ "make-runnable": "^1.4.1", "npm": "^8.19.4", "p-queue": "^6.6.2", - "semver": "^7.5.4", + "semver": "^7.6.0", "sinon": "^9.2.4", "ts-mock-imports": "^1.3.8", "yaml": "1.10.2", diff --git a/packages/@aws-cdk-testing/framework-integ/package.json b/packages/@aws-cdk-testing/framework-integ/package.json index deffb66816533..484fe220b916e 100644 --- a/packages/@aws-cdk-testing/framework-integ/package.json +++ b/packages/@aws-cdk-testing/framework-integ/package.json @@ -41,10 +41,10 @@ "@aws-cdk/integ-tests-alpha": "0.0.0", "@aws-cdk/lambda-layer-kubectl-v24": "^2.0.242", "aws-cdk-lib": "0.0.0", - "aws-sdk": "^2.1548.0", + "aws-sdk": "^2.1557.0", "aws-sdk-mock": "5.6.0", - "cdk8s": "2.68.33", - "cdk8s-plus-27": "2.7.75", + "cdk8s": "2.68.37", + "cdk8s-plus-27": "2.7.77", "constructs": "^10.0.0" }, "repository": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json index a8ee0a3b6b08c..07b64f10dba94 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json @@ -1,20 +1,20 @@ { "version": "36.0.0", "files": { - "3f0f15596be1e3fbbf4a0571522aa1e5312d44abff27360f8d043c1b0704bcf4": { + "310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17": { "source": { - "path": "asset.3f0f15596be1e3fbbf4a0571522aa1e5312d44abff27360f8d043c1b0704bcf4.bundle", + "path": "asset.310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17.bundle", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "3f0f15596be1e3fbbf4a0571522aa1e5312d44abff27360f8d043c1b0704bcf4.zip", + "objectKey": "310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "8c7d8dd6b7968eb470ce57f10b6a2fea18825f74754b711e59049576259b61c5": { + "04d04e8dfc855e56d5dc79f2621d5e6d2a9d3a5f9e51677e351b2cc007e5cdf0": { "source": { "path": "LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "8c7d8dd6b7968eb470ce57f10b6a2fea18825f74754b711e59049576259b61c5.json", + "objectKey": "04d04e8dfc855e56d5dc79f2621d5e6d2a9d3a5f9e51677e351b2cc007e5cdf0.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json index b25a269d34123..ba92131b3e4c6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json @@ -27,7 +27,7 @@ } }, "flattenResponse": "false", - "salt": "1706034179137" + "salt": "1707936553352" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -127,7 +127,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "3f0f15596be1e3fbbf4a0571522aa1e5312d44abff27360f8d043c1b0704bcf4.zip" + "S3Key": "310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17.zip" }, "Timeout": 120, "Handler": "index.handler", diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3f0f15596be1e3fbbf4a0571522aa1e5312d44abff27360f8d043c1b0704bcf4.bundle/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17.bundle/index.js similarity index 99% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3f0f15596be1e3fbbf4a0571522aa1e5312d44abff27360f8d043c1b0704bcf4.bundle/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17.bundle/index.js index c13d3dc96a272..58396e8540522 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3f0f15596be1e3fbbf4a0571522aa1e5312d44abff27360f8d043c1b0704bcf4.bundle/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17.bundle/index.js @@ -14732,9 +14732,11 @@ var require_runtimeConfig_shared = __commonJS({ // ../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js var require_dist_cjs45 = __commonJS({ "../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js"(exports2, module2) { + var __create2 = Object.create; var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __getProtoOf2 = Object.getPrototypeOf; var __hasOwnProp2 = Object.prototype.hasOwnProperty; var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); var __export2 = (target, all) => { @@ -14749,6 +14751,14 @@ var require_dist_cjs45 = __commonJS({ } return to; }; + var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target, + mod + )); var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); var src_exports = {}; __export2(src_exports, { @@ -14756,7 +14766,6 @@ var require_dist_cjs45 = __commonJS({ }); module2.exports = __toCommonJS2(src_exports); var import_config_resolver = require_dist_cjs21(); - var import_credential_provider_imds = require_dist_cjs40(); var import_node_config_provider = require_dist_cjs24(); var import_property_provider = require_dist_cjs6(); var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; @@ -14819,8 +14828,9 @@ var require_dist_cjs45 = __commonJS({ } if (!process.env[ENV_IMDS_DISABLED]) { try { - const endpoint = await (0, import_credential_provider_imds.getInstanceMetadataEndpoint)(); - return (await (0, import_credential_provider_imds.httpRequest)({ ...endpoint, path: IMDS_REGION_PATH })).toString(); + const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM2(require_dist_cjs40())); + const endpoint = await getInstanceMetadataEndpoint(); + return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString(); } catch (e) { } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/index.js similarity index 74% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/index.js index 0097f007d1901..c49f73b358355 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/index.js @@ -1,12 +1,12 @@ -"use strict";var TL=Object.create;var Wa=Object.defineProperty;var BL=Object.getOwnPropertyDescriptor;var qL=Object.getOwnPropertyNames;var DL=Object.getPrototypeOf,ML=Object.prototype.hasOwnProperty;var Le=(e,n)=>()=>(e&&(n=e(e=0)),n);var m=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),Ai=(e,n)=>{for(var t in n)Wa(e,t,{get:n[t],enumerable:!0})},US=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of qL(n))!ML.call(e,o)&&o!==t&&Wa(e,o,{get:()=>n[o],enumerable:!(r=BL(n,o))||r.enumerable});return e};var Oi=(e,n,t)=>(t=e!=null?TL(DL(e)):{},US(n||!e||!e.__esModule?Wa(t,"default",{value:e,enumerable:!0}):t,e)),Y=e=>US(Wa({},"__esModule",{value:!0}),e);var ee={};Ai(ee,{__addDisposableResource:()=>db,__assign:()=>Ya,__asyncDelegator:()=>tb,__asyncGenerator:()=>eb,__asyncValues:()=>nb,__await:()=>br,__awaiter:()=>XS,__classPrivateFieldGet:()=>ib,__classPrivateFieldIn:()=>cb,__classPrivateFieldSet:()=>ab,__createBinding:()=>Qa,__decorate:()=>$S,__disposeResources:()=>lb,__esDecorate:()=>FL,__exportStar:()=>YS,__extends:()=>GS,__generator:()=>WS,__importDefault:()=>sb,__importStar:()=>ob,__makeTemplateObject:()=>rb,__metadata:()=>VS,__param:()=>KS,__propKey:()=>jL,__read:()=>zm,__rest:()=>HS,__runInitializers:()=>LL,__setFunctionName:()=>zL,__spread:()=>JS,__spreadArray:()=>ZS,__spreadArrays:()=>QS,__values:()=>Ja,default:()=>HL});function GS(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");jm(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function HS(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(c=e[i])&&(s=(o<3?c(s):o>3?c(n,t,s):c(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function KS(e,n){return function(t,r){n(t,r,e)}}function FL(e,n,t,r,o,s){function c(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var i=r.kind,u=i==="getter"?"get":i==="setter"?"set":"value",l=!n&&e?r.static?e:e.prototype:null,a=n||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),y,g=!1,C=t.length-1;C>=0;C--){var v={};for(var A in r)v[A]=A==="access"?{}:r[A];for(var A in r.access)v.access[A]=r.access[A];v.addInitializer=function(G){if(g)throw new TypeError("Cannot add initializers after decoration has completed");s.push(c(G||null))};var E=(0,t[C])(i==="accessor"?{get:a.get,set:a.set}:a[u],v);if(i==="accessor"){if(E===void 0)continue;if(E===null||typeof E!="object")throw new TypeError("Object expected");(y=c(E.get))&&(a.get=y),(y=c(E.set))&&(a.set=y),(y=c(E.init))&&o.unshift(y)}else(y=c(E))&&(i==="field"?o.unshift(y):a[u]=y)}l&&Object.defineProperty(l,r.name,a),g=!0}function LL(e,n,t){for(var r=arguments.length>2,o=0;o0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function zm(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,s=[],c;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){c={error:i}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return s}function JS(){for(var e=[],n=0;n1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(v){y(s[0][3],v)}}function u(g){g.value instanceof br?Promise.resolve(g.value.v).then(l,a):y(s[0][2],g)}function l(g){i("next",g)}function a(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function tb(e){var n,t;return n={},r("next"),r("throw",function(o){throw o}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(o,s){n[o]=e[o]?function(c){return(t=!t)?{value:br(e[o](c)),done:!1}:s?s(c):c}:s}}function nb(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof Ja=="function"?Ja(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(c){return new Promise(function(i,u){c=e[s](c),o(i,u,c.done,c.value)})}}function o(s,c,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},c)}}function rb(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function ob(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&Qa(n,e,t);return UL(n,e),n}function sb(e){return e&&e.__esModule?e:{default:e}}function ib(e,n,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(e):r?r.value:n.get(e)}function ab(e,n,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?e!==n||!o:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,t):o?o.value=t:n.set(e,t),t}function cb(e,n){if(n===null||typeof n!="object"&&typeof n!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?n===e:e.has(n)}function db(e,n,t){if(n!=null){if(typeof n!="object"&&typeof n!="function")throw new TypeError("Object expected.");var r;if(t){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:n,dispose:r,async:t})}else t&&e.stack.push({async:!0});return n}function lb(e){function n(r){e.error=e.hasError?new GL(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function t(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(t,function(s){return n(s),t()})}catch(s){n(s)}}if(e.hasError)throw e.error}return t()}var jm,Ya,Qa,UL,GL,HL,te=Le(()=>{jm=function(e,n){return jm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},jm(e,n)};Ya=function(){return Ya=Object.assign||function(n){for(var t,r=1,o=arguments.length;r{var Za=Object.defineProperty,$L=Object.getOwnPropertyDescriptor,KL=Object.getOwnPropertyNames,VL=Object.prototype.hasOwnProperty,ec=(e,n)=>Za(e,"name",{value:n,configurable:!0}),XL=(e,n)=>{for(var t in n)Za(e,t,{get:n[t],enumerable:!0})},WL=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of KL(n))!VL.call(e,o)&&o!==t&&Za(e,o,{get:()=>n[o],enumerable:!(r=$L(n,o))||r.enumerable});return e},YL=e=>WL(Za({},"__esModule",{value:!0}),e),ub={};XL(ub,{AlgorithmId:()=>yb,EndpointURLScheme:()=>fb,FieldPosition:()=>gb,HttpApiKeyAuthLocation:()=>pb,HttpAuthLocation:()=>mb,IniSectionType:()=>hb,RequestHandlerProtocol:()=>_b,SMITHY_CONTEXT_KEY:()=>tj,getDefaultClientConfiguration:()=>ZL,resolveDefaultRuntimeConfig:()=>ej});Cb.exports=YL(ub);var mb=(e=>(e.HEADER="header",e.QUERY="query",e))(mb||{}),pb=(e=>(e.HEADER="header",e.QUERY="query",e))(pb||{}),fb=(e=>(e.HTTP="http",e.HTTPS="https",e))(fb||{}),yb=(e=>(e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256",e))(yb||{}),JL=ec(e=>{let n=[];return e.sha256!==void 0&&n.push({algorithmId:()=>"sha256",checksumConstructor:()=>e.sha256}),e.md5!=null&&n.push({algorithmId:()=>"md5",checksumConstructor:()=>e.md5}),{_checksumAlgorithms:n,addChecksumAlgorithm(t){this._checksumAlgorithms.push(t)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),QL=ec(e=>{let n={};return e.checksumAlgorithms().forEach(t=>{n[t.algorithmId()]=t.checksumConstructor()}),n},"resolveChecksumRuntimeConfig"),ZL=ec(e=>({...JL(e)}),"getDefaultClientConfiguration"),ej=ec(e=>({...QL(e)}),"resolveDefaultRuntimeConfig"),gb=(e=>(e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER",e))(gb||{}),tj="__smithy_context",hb=(e=>(e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services",e))(hb||{}),_b=(e=>(e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0",e))(_b||{})});var Ne=m((dbe,Ab)=>{var tc=Object.defineProperty,nj=Object.getOwnPropertyDescriptor,rj=Object.getOwnPropertyNames,oj=Object.prototype.hasOwnProperty,wn=(e,n)=>tc(e,"name",{value:n,configurable:!0}),sj=(e,n)=>{for(var t in n)tc(e,t,{get:n[t],enumerable:!0})},ij=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of rj(n))!oj.call(e,o)&&o!==t&&tc(e,o,{get:()=>n[o],enumerable:!(r=nj(n,o))||r.enumerable});return e},aj=e=>ij(tc({},"__esModule",{value:!0}),e),Sb={};sj(Sb,{Field:()=>uj,Fields:()=>mj,HttpRequest:()=>pj,HttpResponse:()=>fj,getHttpHandlerExtensionConfiguration:()=>cj,isValidHostname:()=>kb,resolveHttpHandlerRuntimeConfig:()=>dj});Ab.exports=aj(Sb);var cj=wn(e=>{let n=e.httpHandler;return{setHttpHandler(t){n=t},httpHandler(){return n},updateHttpClientConfig(t,r){n.updateHttpClientConfig(t,r)},httpHandlerConfigs(){return n.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),dj=wn(e=>({httpHandler:e.httpHandler()}),"resolveHttpHandlerRuntimeConfig"),lj=w(),bb=class{constructor({name:n,kind:t=lj.FieldPosition.HEADER,values:r=[]}){this.name=n,this.kind=t,this.values=r}add(n){this.values.push(n)}set(n){this.values=n}remove(n){this.values=this.values.filter(t=>t!==n)}toString(){return this.values.map(n=>n.includes(",")||n.includes(" ")?`"${n}"`:n).join(", ")}get(){return this.values}};wn(bb,"Field");var uj=bb,Eb=class{constructor({fields:n=[],encoding:t="utf-8"}){this.entries={},n.forEach(this.setField.bind(this)),this.encoding=t}setField(n){this.entries[n.name.toLowerCase()]=n}getField(n){return this.entries[n.toLowerCase()]}removeField(n){delete this.entries[n.toLowerCase()]}getByType(n){return Object.values(this.entries).filter(t=>t.kind===n)}};wn(Eb,"Fields");var mj=Eb,Pb=class vb{constructor(n){this.method=n.method||"GET",this.hostname=n.hostname||"localhost",this.port=n.port,this.query=n.query||{},this.headers=n.headers||{},this.body=n.body,this.protocol=n.protocol?n.protocol.slice(-1)!==":"?`${n.protocol}:`:n.protocol:"https:",this.path=n.path?n.path.charAt(0)!=="/"?`/${n.path}`:n.path:"/",this.username=n.username,this.password=n.password,this.fragment=n.fragment}static isInstance(n){if(!n)return!1;let t=n;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t.query=="object"&&typeof t.headers=="object"}clone(){let n=new vb({...this,headers:{...this.headers}});return n.query&&(n.query=wb(n.query)),n}};wn(Pb,"HttpRequest");var pj=Pb;function wb(e){return Object.keys(e).reduce((n,t)=>{let r=e[t];return{...n,[t]:Array.isArray(r)?[...r]:r}},{})}wn(wb,"cloneQuery");var xb=class{constructor(n){this.statusCode=n.statusCode,this.reason=n.reason,this.headers=n.headers||{},this.body=n.body}static isInstance(n){if(!n)return!1;let t=n;return typeof t.statusCode=="number"&&typeof t.headers=="object"}};wn(xb,"HttpResponse");var fj=xb;function kb(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}wn(kb,"isValidHostname")});var Nb=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.getAddExpectContinuePlugin=Zt.addExpectContinueMiddlewareOptions=Zt.addExpectContinueMiddleware=void 0;var yj=Ne();function Ob(e){return n=>async t=>{let{request:r}=t;return yj.HttpRequest.isInstance(r)&&r.body&&e.runtime==="node"&&(r.headers={...r.headers,Expect:"100-continue"}),n({...t,request:r})}}Zt.addExpectContinueMiddleware=Ob;Zt.addExpectContinueMiddlewareOptions={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0};var gj=e=>({applyToStack:n=>{n.add(Ob(e),Zt.addExpectContinueMiddlewareOptions)}});Zt.getAddExpectContinuePlugin=gj});var Ni=m(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.getHostHeaderPlugin=pt.hostHeaderMiddlewareOptions=pt.hostHeaderMiddleware=pt.resolveHostHeaderConfig=void 0;var hj=Ne();function _j(e){return e}pt.resolveHostHeaderConfig=_j;var Cj=e=>n=>async t=>{if(!hj.HttpRequest.isInstance(t.request))return n(t);let{request:r}=t,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]="";else if(!r.headers.host){let s=r.hostname;r.port!=null&&(s+=`:${r.port}`),r.headers.host=s}return n(t)};pt.hostHeaderMiddleware=Cj;pt.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var Sj=e=>({applyToStack:n=>{n.add((0,pt.hostHeaderMiddleware)(e),pt.hostHeaderMiddlewareOptions)}});pt.getHostHeaderPlugin=Sj});var Ib=m(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getLoggerPlugin=Nt.loggerMiddlewareOptions=Nt.loggerMiddleware=void 0;var bj=()=>(e,n)=>async t=>{var r,o;try{let s=await e(t),{clientName:c,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=n,{overrideInputFilterSensitiveLog:a,overrideOutputFilterSensitiveLog:y}=l,g=a??n.inputFilterSensitiveLog,C=y??n.outputFilterSensitiveLog,{$metadata:v,...A}=s.output;return(r=u==null?void 0:u.info)===null||r===void 0||r.call(u,{clientName:c,commandName:i,input:g(t.input),output:C(A),metadata:v}),s}catch(s){let{clientName:c,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=n,{overrideInputFilterSensitiveLog:a}=l,y=a??n.inputFilterSensitiveLog;throw(o=u==null?void 0:u.error)===null||o===void 0||o.call(u,{clientName:c,commandName:i,input:y(t.input),error:s,metadata:s.$metadata}),s}};Nt.loggerMiddleware=bj;Nt.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var Ej=e=>({applyToStack:n=>{n.add((0,Nt.loggerMiddleware)(),Nt.loggerMiddlewareOptions)}});Nt.getLoggerPlugin=Ej});var Ii=m(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var Pj=(te(),Y(ee));Pj.__exportStar(Ib(),Um)});var Ri=m(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.getRecursionDetectionPlugin=It.addRecursionDetectionMiddlewareOptions=It.recursionDetectionMiddleware=void 0;var vj=Ne(),Rb="X-Amzn-Trace-Id",wj="AWS_LAMBDA_FUNCTION_NAME",xj="_X_AMZN_TRACE_ID",kj=e=>n=>async t=>{let{request:r}=t;if(!vj.HttpRequest.isInstance(r)||e.runtime!=="node"||r.headers.hasOwnProperty(Rb))return n(t);let o=process.env[wj],s=process.env[xj],c=i=>typeof i=="string"&&i.length>0;return c(o)&&c(s)&&(r.headers[Rb]=s),n({...t,request:r})};It.recursionDetectionMiddleware=kj;It.addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"};var Aj=e=>({applyToStack:n=>{n.add((0,It.recursionDetectionMiddleware)(e),It.addRecursionDetectionMiddlewareOptions)}});It.getRecursionDetectionPlugin=Aj});var Mb=m((ybe,Db)=>{var nc=Object.defineProperty,Oj=Object.getOwnPropertyDescriptor,Nj=Object.getOwnPropertyNames,Ij=Object.prototype.hasOwnProperty,ft=(e,n)=>nc(e,"name",{value:n,configurable:!0}),Rj=(e,n)=>{for(var t in n)nc(e,t,{get:n[t],enumerable:!0})},Tj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Nj(n))!Ij.call(e,o)&&o!==t&&nc(e,o,{get:()=>n[o],enumerable:!(r=Oj(n,o))||r.enumerable});return e},Bj=e=>Tj(nc({},"__esModule",{value:!0}),e),qb={};Rj(qb,{constructStack:()=>Gm});Db.exports=Bj(qb);var ir=ft((e,n)=>{let t=[];if(e&&t.push(e),n)for(let r of n)t.push(r);return t},"getAllAliases"),xn=ft((e,n)=>`${e||"anonymous"}${n&&n.length>0?` (a.k.a. ${n.join(",")})`:""}`,"getMiddlewareNameWithAliases"),Gm=ft(()=>{let e=[],n=[],t=!1,r=new Set,o=ft(y=>y.sort((g,C)=>Tb[C.step]-Tb[g.step]||Bb[C.priority||"normal"]-Bb[g.priority||"normal"]),"sort"),s=ft(y=>{let g=!1,C=ft(v=>{let A=ir(v.name,v.aliases);if(A.includes(y)){g=!0;for(let E of A)r.delete(E);return!1}return!0},"filterCb");return e=e.filter(C),n=n.filter(C),g},"removeByName"),c=ft(y=>{let g=!1,C=ft(v=>{if(v.middleware===y){g=!0;for(let A of ir(v.name,v.aliases))r.delete(A);return!1}return!0},"filterCb");return e=e.filter(C),n=n.filter(C),g},"removeByReference"),i=ft(y=>{var g;return e.forEach(C=>{y.add(C.middleware,{...C})}),n.forEach(C=>{y.addRelativeTo(C.middleware,{...C})}),(g=y.identifyOnResolve)==null||g.call(y,a.identifyOnResolve()),y},"cloneTo"),u=ft(y=>{let g=[];return y.before.forEach(C=>{C.before.length===0&&C.after.length===0?g.push(C):g.push(...u(C))}),g.push(y),y.after.reverse().forEach(C=>{C.before.length===0&&C.after.length===0?g.push(C):g.push(...u(C))}),g},"expandRelativeMiddlewareList"),l=ft((y=!1)=>{let g=[],C=[],v={};return e.forEach(E=>{let G={...E,before:[],after:[]};for(let ye of ir(G.name,G.aliases))v[ye]=G;g.push(G)}),n.forEach(E=>{let G={...E,before:[],after:[]};for(let ye of ir(G.name,G.aliases))v[ye]=G;C.push(G)}),C.forEach(E=>{if(E.toMiddleware){let G=v[E.toMiddleware];if(G===void 0){if(y)return;throw new Error(`${E.toMiddleware} is not found when adding ${xn(E.name,E.aliases)} middleware ${E.relation} ${E.toMiddleware}`)}E.relation==="after"&&G.after.push(E),E.relation==="before"&&G.before.push(E)}}),o(g).map(u).reduce((E,G)=>(E.push(...G),E),[])},"getMiddlewareList"),a={add:(y,g={})=>{let{name:C,override:v,aliases:A}=g,E={step:"initialize",priority:"normal",middleware:y,...g},G=ir(C,A);if(G.length>0){if(G.some(ye=>r.has(ye))){if(!v)throw new Error(`Duplicate middleware name '${xn(C,A)}'`);for(let ye of G){let nt=e.findIndex(mt=>{var vn;return mt.name===ye||((vn=mt.aliases)==null?void 0:vn.some(sr=>sr===ye))});if(nt===-1)continue;let Ae=e[nt];if(Ae.step!==E.step||E.priority!==Ae.priority)throw new Error(`"${xn(Ae.name,Ae.aliases)}" middleware with ${Ae.priority} priority in ${Ae.step} step cannot be overridden by "${xn(C,A)}" middleware with ${E.priority} priority in ${E.step} step.`);e.splice(nt,1)}}for(let ye of G)r.add(ye)}e.push(E)},addRelativeTo:(y,g)=>{let{name:C,override:v,aliases:A}=g,E={middleware:y,...g},G=ir(C,A);if(G.length>0){if(G.some(ye=>r.has(ye))){if(!v)throw new Error(`Duplicate middleware name '${xn(C,A)}'`);for(let ye of G){let nt=n.findIndex(mt=>{var vn;return mt.name===ye||((vn=mt.aliases)==null?void 0:vn.some(sr=>sr===ye))});if(nt===-1)continue;let Ae=n[nt];if(Ae.toMiddleware!==E.toMiddleware||Ae.relation!==E.relation)throw new Error(`"${xn(Ae.name,Ae.aliases)}" middleware ${Ae.relation} "${Ae.toMiddleware}" middleware cannot be overridden by "${xn(C,A)}" middleware ${E.relation} "${E.toMiddleware}" middleware.`);n.splice(nt,1)}}for(let ye of G)r.add(ye)}n.push(E)},clone:()=>i(Gm()),use:y=>{y.applyToStack(a)},remove:y=>typeof y=="string"?s(y):c(y),removeByTag:y=>{let g=!1,C=ft(v=>{let{tags:A,name:E,aliases:G}=v;if(A&&A.includes(y)){let ye=ir(E,G);for(let nt of ye)r.delete(nt);return g=!0,!1}return!0},"filterCb");return e=e.filter(C),n=n.filter(C),g},concat:y=>{var g;let C=i(Gm());return C.use(y),C.identifyOnResolve(t||C.identifyOnResolve()||(((g=y.identifyOnResolve)==null?void 0:g.call(y))??!1)),C},applyToStack:i,identify:()=>l(!0).map(y=>{let g=y.step??y.relation+" "+y.toMiddleware;return xn(y.name,y.aliases)+" - "+g}),identifyOnResolve(y){return typeof y=="boolean"&&(t=y),t},resolve:(y,g)=>{for(let C of l().map(v=>v.middleware).reverse())y=C(y,g);return t&&console.log(a.identify()),y}};return a},"constructStack"),Tb={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Bb={high:3,normal:2,low:1}});var oc=m((gbe,Lb)=>{var rc=Object.defineProperty,qj=Object.getOwnPropertyDescriptor,Dj=Object.getOwnPropertyNames,Mj=Object.prototype.hasOwnProperty,Fj=(e,n)=>rc(e,"name",{value:n,configurable:!0}),Lj=(e,n)=>{for(var t in n)rc(e,t,{get:n[t],enumerable:!0})},jj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Dj(n))!Mj.call(e,o)&&o!==t&&rc(e,o,{get:()=>n[o],enumerable:!(r=qj(n,o))||r.enumerable});return e},zj=e=>jj(rc({},"__esModule",{value:!0}),e),Fb={};Lj(Fb,{isArrayBuffer:()=>Uj});Lb.exports=zj(Fb);var Uj=Fj(e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]","isArrayBuffer")});var Er=m((hbe,Ub)=>{var sc=Object.defineProperty,Gj=Object.getOwnPropertyDescriptor,Hj=Object.getOwnPropertyNames,$j=Object.prototype.hasOwnProperty,jb=(e,n)=>sc(e,"name",{value:n,configurable:!0}),Kj=(e,n)=>{for(var t in n)sc(e,t,{get:n[t],enumerable:!0})},Vj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Hj(n))!$j.call(e,o)&&o!==t&&sc(e,o,{get:()=>n[o],enumerable:!(r=Gj(n,o))||r.enumerable});return e},Xj=e=>Vj(sc({},"__esModule",{value:!0}),e),zb={};Kj(zb,{fromArrayBuffer:()=>Yj,fromString:()=>Jj});Ub.exports=Xj(zb);var Wj=oc(),Hm=require("buffer"),Yj=jb((e,n=0,t=e.byteLength-n)=>{if(!(0,Wj.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Hm.Buffer.from(e,n,t)},"fromArrayBuffer"),Jj=jb((e,n)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return n?Hm.Buffer.from(e,n):Hm.Buffer.from(e)},"fromString")});var Gb=m(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.fromBase64=void 0;var Qj=Er(),Zj=/^[A-Za-z0-9+/]*={0,2}$/,ez=e=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Zj.exec(e))throw new TypeError("Invalid base64 string.");let n=(0,Qj.fromString)(e,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)};ic.fromBase64=ez});var Hb=m(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.toBase64=void 0;var tz=Er(),nz=e=>(0,tz.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64");ac.toBase64=nz});var Pr=m((Sbe,cc)=>{var $b=Object.defineProperty,rz=Object.getOwnPropertyDescriptor,oz=Object.getOwnPropertyNames,sz=Object.prototype.hasOwnProperty,$m=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of oz(n))!sz.call(e,o)&&o!==t&&$b(e,o,{get:()=>n[o],enumerable:!(r=rz(n,o))||r.enumerable});return e},Kb=(e,n,t)=>($m(e,n,"default"),t&&$m(t,n,"default")),iz=e=>$m($b({},"__esModule",{value:!0}),e),Km={};cc.exports=iz(Km);Kb(Km,Gb(),cc.exports);Kb(Km,Hb(),cc.exports)});var yt=m((bbe,Yb)=>{var dc=Object.defineProperty,az=Object.getOwnPropertyDescriptor,cz=Object.getOwnPropertyNames,dz=Object.prototype.hasOwnProperty,Vm=(e,n)=>dc(e,"name",{value:n,configurable:!0}),lz=(e,n)=>{for(var t in n)dc(e,t,{get:n[t],enumerable:!0})},uz=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of cz(n))!dz.call(e,o)&&o!==t&&dc(e,o,{get:()=>n[o],enumerable:!(r=az(n,o))||r.enumerable});return e},mz=e=>uz(dc({},"__esModule",{value:!0}),e),Vb={};lz(Vb,{fromUtf8:()=>Wb,toUint8Array:()=>pz,toUtf8:()=>fz});Yb.exports=mz(Vb);var Xb=Er(),Wb=Vm(e=>{let n=(0,Xb.fromString)(e,"utf8");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),pz=Vm(e=>typeof e=="string"?Wb(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),"toUint8Array"),fz=Vm(e=>(0,Xb.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8"),"toUtf8")});var Jb=m(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.getAwsChunkedEncodingStream=void 0;var yz=require("stream"),gz=(e,n)=>{let{base64Encoder:t,bodyLengthChecker:r,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:c}=n,i=t!==void 0&&o!==void 0&&s!==void 0&&c!==void 0,u=i?c(o,e):void 0,l=new yz.Readable({read:()=>{}});return e.on("data",a=>{let y=r(a)||0;l.push(`${y.toString(16)}\r +"use strict";var TL=Object.create;var Ya=Object.defineProperty;var BL=Object.getOwnPropertyDescriptor;var qL=Object.getOwnPropertyNames;var DL=Object.getPrototypeOf,ML=Object.prototype.hasOwnProperty;var Le=(e,n)=>()=>(e&&(n=e(e=0)),n);var m=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),Ai=(e,n)=>{for(var t in n)Ya(e,t,{get:n[t],enumerable:!0})},US=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of qL(n))!ML.call(e,o)&&o!==t&&Ya(e,o,{get:()=>n[o],enumerable:!(r=BL(n,o))||r.enumerable});return e};var Oi=(e,n,t)=>(t=e!=null?TL(DL(e)):{},US(n||!e||!e.__esModule?Ya(t,"default",{value:e,enumerable:!0}):t,e)),Y=e=>US(Ya({},"__esModule",{value:!0}),e);var ee={};Ai(ee,{__addDisposableResource:()=>db,__assign:()=>Ja,__asyncDelegator:()=>tb,__asyncGenerator:()=>eb,__asyncValues:()=>nb,__await:()=>br,__awaiter:()=>XS,__classPrivateFieldGet:()=>ib,__classPrivateFieldIn:()=>cb,__classPrivateFieldSet:()=>ab,__createBinding:()=>Za,__decorate:()=>$S,__disposeResources:()=>lb,__esDecorate:()=>FL,__exportStar:()=>YS,__extends:()=>GS,__generator:()=>WS,__importDefault:()=>sb,__importStar:()=>ob,__makeTemplateObject:()=>rb,__metadata:()=>VS,__param:()=>KS,__propKey:()=>jL,__read:()=>zm,__rest:()=>HS,__runInitializers:()=>LL,__setFunctionName:()=>zL,__spread:()=>JS,__spreadArray:()=>ZS,__spreadArrays:()=>QS,__values:()=>Qa,default:()=>HL});function GS(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");jm(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function HS(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(c=e[i])&&(s=(o<3?c(s):o>3?c(n,t,s):c(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function KS(e,n){return function(t,r){n(t,r,e)}}function FL(e,n,t,r,o,s){function c(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var i=r.kind,u=i==="getter"?"get":i==="setter"?"set":"value",l=!n&&e?r.static?e:e.prototype:null,a=n||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),y,g=!1,C=t.length-1;C>=0;C--){var v={};for(var A in r)v[A]=A==="access"?{}:r[A];for(var A in r.access)v.access[A]=r.access[A];v.addInitializer=function(G){if(g)throw new TypeError("Cannot add initializers after decoration has completed");s.push(c(G||null))};var E=(0,t[C])(i==="accessor"?{get:a.get,set:a.set}:a[u],v);if(i==="accessor"){if(E===void 0)continue;if(E===null||typeof E!="object")throw new TypeError("Object expected");(y=c(E.get))&&(a.get=y),(y=c(E.set))&&(a.set=y),(y=c(E.init))&&o.unshift(y)}else(y=c(E))&&(i==="field"?o.unshift(y):a[u]=y)}l&&Object.defineProperty(l,r.name,a),g=!0}function LL(e,n,t){for(var r=arguments.length>2,o=0;o0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function zm(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,s=[],c;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){c={error:i}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return s}function JS(){for(var e=[],n=0;n1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(v){y(s[0][3],v)}}function u(g){g.value instanceof br?Promise.resolve(g.value.v).then(l,a):y(s[0][2],g)}function l(g){i("next",g)}function a(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function tb(e){var n,t;return n={},r("next"),r("throw",function(o){throw o}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(o,s){n[o]=e[o]?function(c){return(t=!t)?{value:br(e[o](c)),done:!1}:s?s(c):c}:s}}function nb(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof Qa=="function"?Qa(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(c){return new Promise(function(i,u){c=e[s](c),o(i,u,c.done,c.value)})}}function o(s,c,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},c)}}function rb(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function ob(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&Za(n,e,t);return UL(n,e),n}function sb(e){return e&&e.__esModule?e:{default:e}}function ib(e,n,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(e):r?r.value:n.get(e)}function ab(e,n,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?e!==n||!o:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,t):o?o.value=t:n.set(e,t),t}function cb(e,n){if(n===null||typeof n!="object"&&typeof n!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?n===e:e.has(n)}function db(e,n,t){if(n!=null){if(typeof n!="object"&&typeof n!="function")throw new TypeError("Object expected.");var r;if(t){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:n,dispose:r,async:t})}else t&&e.stack.push({async:!0});return n}function lb(e){function n(r){e.error=e.hasError?new GL(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function t(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(t,function(s){return n(s),t()})}catch(s){n(s)}}if(e.hasError)throw e.error}return t()}var jm,Ja,Za,UL,GL,HL,te=Le(()=>{jm=function(e,n){return jm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},jm(e,n)};Ja=function(){return Ja=Object.assign||function(n){for(var t,r=1,o=arguments.length;r{var ec=Object.defineProperty,$L=Object.getOwnPropertyDescriptor,KL=Object.getOwnPropertyNames,VL=Object.prototype.hasOwnProperty,tc=(e,n)=>ec(e,"name",{value:n,configurable:!0}),XL=(e,n)=>{for(var t in n)ec(e,t,{get:n[t],enumerable:!0})},WL=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of KL(n))!VL.call(e,o)&&o!==t&&ec(e,o,{get:()=>n[o],enumerable:!(r=$L(n,o))||r.enumerable});return e},YL=e=>WL(ec({},"__esModule",{value:!0}),e),ub={};XL(ub,{AlgorithmId:()=>yb,EndpointURLScheme:()=>fb,FieldPosition:()=>gb,HttpApiKeyAuthLocation:()=>pb,HttpAuthLocation:()=>mb,IniSectionType:()=>hb,RequestHandlerProtocol:()=>_b,SMITHY_CONTEXT_KEY:()=>tj,getDefaultClientConfiguration:()=>ZL,resolveDefaultRuntimeConfig:()=>ej});Cb.exports=YL(ub);var mb=(e=>(e.HEADER="header",e.QUERY="query",e))(mb||{}),pb=(e=>(e.HEADER="header",e.QUERY="query",e))(pb||{}),fb=(e=>(e.HTTP="http",e.HTTPS="https",e))(fb||{}),yb=(e=>(e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256",e))(yb||{}),JL=tc(e=>{let n=[];return e.sha256!==void 0&&n.push({algorithmId:()=>"sha256",checksumConstructor:()=>e.sha256}),e.md5!=null&&n.push({algorithmId:()=>"md5",checksumConstructor:()=>e.md5}),{_checksumAlgorithms:n,addChecksumAlgorithm(t){this._checksumAlgorithms.push(t)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),QL=tc(e=>{let n={};return e.checksumAlgorithms().forEach(t=>{n[t.algorithmId()]=t.checksumConstructor()}),n},"resolveChecksumRuntimeConfig"),ZL=tc(e=>({...JL(e)}),"getDefaultClientConfiguration"),ej=tc(e=>({...QL(e)}),"resolveDefaultRuntimeConfig"),gb=(e=>(e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER",e))(gb||{}),tj="__smithy_context",hb=(e=>(e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services",e))(hb||{}),_b=(e=>(e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0",e))(_b||{})});var Ne=m((ube,Ab)=>{var nc=Object.defineProperty,nj=Object.getOwnPropertyDescriptor,rj=Object.getOwnPropertyNames,oj=Object.prototype.hasOwnProperty,wn=(e,n)=>nc(e,"name",{value:n,configurable:!0}),sj=(e,n)=>{for(var t in n)nc(e,t,{get:n[t],enumerable:!0})},ij=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of rj(n))!oj.call(e,o)&&o!==t&&nc(e,o,{get:()=>n[o],enumerable:!(r=nj(n,o))||r.enumerable});return e},aj=e=>ij(nc({},"__esModule",{value:!0}),e),Sb={};sj(Sb,{Field:()=>uj,Fields:()=>mj,HttpRequest:()=>pj,HttpResponse:()=>fj,getHttpHandlerExtensionConfiguration:()=>cj,isValidHostname:()=>kb,resolveHttpHandlerRuntimeConfig:()=>dj});Ab.exports=aj(Sb);var cj=wn(e=>{let n=e.httpHandler;return{setHttpHandler(t){n=t},httpHandler(){return n},updateHttpClientConfig(t,r){n.updateHttpClientConfig(t,r)},httpHandlerConfigs(){return n.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),dj=wn(e=>({httpHandler:e.httpHandler()}),"resolveHttpHandlerRuntimeConfig"),lj=w(),bb=class{constructor({name:n,kind:t=lj.FieldPosition.HEADER,values:r=[]}){this.name=n,this.kind=t,this.values=r}add(n){this.values.push(n)}set(n){this.values=n}remove(n){this.values=this.values.filter(t=>t!==n)}toString(){return this.values.map(n=>n.includes(",")||n.includes(" ")?`"${n}"`:n).join(", ")}get(){return this.values}};wn(bb,"Field");var uj=bb,Eb=class{constructor({fields:n=[],encoding:t="utf-8"}){this.entries={},n.forEach(this.setField.bind(this)),this.encoding=t}setField(n){this.entries[n.name.toLowerCase()]=n}getField(n){return this.entries[n.toLowerCase()]}removeField(n){delete this.entries[n.toLowerCase()]}getByType(n){return Object.values(this.entries).filter(t=>t.kind===n)}};wn(Eb,"Fields");var mj=Eb,Pb=class vb{constructor(n){this.method=n.method||"GET",this.hostname=n.hostname||"localhost",this.port=n.port,this.query=n.query||{},this.headers=n.headers||{},this.body=n.body,this.protocol=n.protocol?n.protocol.slice(-1)!==":"?`${n.protocol}:`:n.protocol:"https:",this.path=n.path?n.path.charAt(0)!=="/"?`/${n.path}`:n.path:"/",this.username=n.username,this.password=n.password,this.fragment=n.fragment}static isInstance(n){if(!n)return!1;let t=n;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t.query=="object"&&typeof t.headers=="object"}clone(){let n=new vb({...this,headers:{...this.headers}});return n.query&&(n.query=wb(n.query)),n}};wn(Pb,"HttpRequest");var pj=Pb;function wb(e){return Object.keys(e).reduce((n,t)=>{let r=e[t];return{...n,[t]:Array.isArray(r)?[...r]:r}},{})}wn(wb,"cloneQuery");var xb=class{constructor(n){this.statusCode=n.statusCode,this.reason=n.reason,this.headers=n.headers||{},this.body=n.body}static isInstance(n){if(!n)return!1;let t=n;return typeof t.statusCode=="number"&&typeof t.headers=="object"}};wn(xb,"HttpResponse");var fj=xb;function kb(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}wn(kb,"isValidHostname")});var Nb=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.getAddExpectContinuePlugin=Zt.addExpectContinueMiddlewareOptions=Zt.addExpectContinueMiddleware=void 0;var yj=Ne();function Ob(e){return n=>async t=>{let{request:r}=t;return yj.HttpRequest.isInstance(r)&&r.body&&e.runtime==="node"&&(r.headers={...r.headers,Expect:"100-continue"}),n({...t,request:r})}}Zt.addExpectContinueMiddleware=Ob;Zt.addExpectContinueMiddlewareOptions={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0};var gj=e=>({applyToStack:n=>{n.add(Ob(e),Zt.addExpectContinueMiddlewareOptions)}});Zt.getAddExpectContinuePlugin=gj});var Ni=m(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.getHostHeaderPlugin=pt.hostHeaderMiddlewareOptions=pt.hostHeaderMiddleware=pt.resolveHostHeaderConfig=void 0;var hj=Ne();function _j(e){return e}pt.resolveHostHeaderConfig=_j;var Cj=e=>n=>async t=>{if(!hj.HttpRequest.isInstance(t.request))return n(t);let{request:r}=t,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]="";else if(!r.headers.host){let s=r.hostname;r.port!=null&&(s+=`:${r.port}`),r.headers.host=s}return n(t)};pt.hostHeaderMiddleware=Cj;pt.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var Sj=e=>({applyToStack:n=>{n.add((0,pt.hostHeaderMiddleware)(e),pt.hostHeaderMiddlewareOptions)}});pt.getHostHeaderPlugin=Sj});var Ib=m(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getLoggerPlugin=Nt.loggerMiddlewareOptions=Nt.loggerMiddleware=void 0;var bj=()=>(e,n)=>async t=>{var r,o;try{let s=await e(t),{clientName:c,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=n,{overrideInputFilterSensitiveLog:a,overrideOutputFilterSensitiveLog:y}=l,g=a??n.inputFilterSensitiveLog,C=y??n.outputFilterSensitiveLog,{$metadata:v,...A}=s.output;return(r=u==null?void 0:u.info)===null||r===void 0||r.call(u,{clientName:c,commandName:i,input:g(t.input),output:C(A),metadata:v}),s}catch(s){let{clientName:c,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=n,{overrideInputFilterSensitiveLog:a}=l,y=a??n.inputFilterSensitiveLog;throw(o=u==null?void 0:u.error)===null||o===void 0||o.call(u,{clientName:c,commandName:i,input:y(t.input),error:s,metadata:s.$metadata}),s}};Nt.loggerMiddleware=bj;Nt.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var Ej=e=>({applyToStack:n=>{n.add((0,Nt.loggerMiddleware)(),Nt.loggerMiddlewareOptions)}});Nt.getLoggerPlugin=Ej});var Ii=m(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var Pj=(te(),Y(ee));Pj.__exportStar(Ib(),Um)});var Ri=m(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.getRecursionDetectionPlugin=It.addRecursionDetectionMiddlewareOptions=It.recursionDetectionMiddleware=void 0;var vj=Ne(),Rb="X-Amzn-Trace-Id",wj="AWS_LAMBDA_FUNCTION_NAME",xj="_X_AMZN_TRACE_ID",kj=e=>n=>async t=>{let{request:r}=t;if(!vj.HttpRequest.isInstance(r)||e.runtime!=="node"||r.headers.hasOwnProperty(Rb))return n(t);let o=process.env[wj],s=process.env[xj],c=i=>typeof i=="string"&&i.length>0;return c(o)&&c(s)&&(r.headers[Rb]=s),n({...t,request:r})};It.recursionDetectionMiddleware=kj;It.addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"};var Aj=e=>({applyToStack:n=>{n.add((0,It.recursionDetectionMiddleware)(e),It.addRecursionDetectionMiddlewareOptions)}});It.getRecursionDetectionPlugin=Aj});var Mb=m((hbe,Db)=>{var rc=Object.defineProperty,Oj=Object.getOwnPropertyDescriptor,Nj=Object.getOwnPropertyNames,Ij=Object.prototype.hasOwnProperty,ft=(e,n)=>rc(e,"name",{value:n,configurable:!0}),Rj=(e,n)=>{for(var t in n)rc(e,t,{get:n[t],enumerable:!0})},Tj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Nj(n))!Ij.call(e,o)&&o!==t&&rc(e,o,{get:()=>n[o],enumerable:!(r=Oj(n,o))||r.enumerable});return e},Bj=e=>Tj(rc({},"__esModule",{value:!0}),e),qb={};Rj(qb,{constructStack:()=>Gm});Db.exports=Bj(qb);var ir=ft((e,n)=>{let t=[];if(e&&t.push(e),n)for(let r of n)t.push(r);return t},"getAllAliases"),xn=ft((e,n)=>`${e||"anonymous"}${n&&n.length>0?` (a.k.a. ${n.join(",")})`:""}`,"getMiddlewareNameWithAliases"),Gm=ft(()=>{let e=[],n=[],t=!1,r=new Set,o=ft(y=>y.sort((g,C)=>Tb[C.step]-Tb[g.step]||Bb[C.priority||"normal"]-Bb[g.priority||"normal"]),"sort"),s=ft(y=>{let g=!1,C=ft(v=>{let A=ir(v.name,v.aliases);if(A.includes(y)){g=!0;for(let E of A)r.delete(E);return!1}return!0},"filterCb");return e=e.filter(C),n=n.filter(C),g},"removeByName"),c=ft(y=>{let g=!1,C=ft(v=>{if(v.middleware===y){g=!0;for(let A of ir(v.name,v.aliases))r.delete(A);return!1}return!0},"filterCb");return e=e.filter(C),n=n.filter(C),g},"removeByReference"),i=ft(y=>{var g;return e.forEach(C=>{y.add(C.middleware,{...C})}),n.forEach(C=>{y.addRelativeTo(C.middleware,{...C})}),(g=y.identifyOnResolve)==null||g.call(y,a.identifyOnResolve()),y},"cloneTo"),u=ft(y=>{let g=[];return y.before.forEach(C=>{C.before.length===0&&C.after.length===0?g.push(C):g.push(...u(C))}),g.push(y),y.after.reverse().forEach(C=>{C.before.length===0&&C.after.length===0?g.push(C):g.push(...u(C))}),g},"expandRelativeMiddlewareList"),l=ft((y=!1)=>{let g=[],C=[],v={};return e.forEach(E=>{let G={...E,before:[],after:[]};for(let ye of ir(G.name,G.aliases))v[ye]=G;g.push(G)}),n.forEach(E=>{let G={...E,before:[],after:[]};for(let ye of ir(G.name,G.aliases))v[ye]=G;C.push(G)}),C.forEach(E=>{if(E.toMiddleware){let G=v[E.toMiddleware];if(G===void 0){if(y)return;throw new Error(`${E.toMiddleware} is not found when adding ${xn(E.name,E.aliases)} middleware ${E.relation} ${E.toMiddleware}`)}E.relation==="after"&&G.after.push(E),E.relation==="before"&&G.before.push(E)}}),o(g).map(u).reduce((E,G)=>(E.push(...G),E),[])},"getMiddlewareList"),a={add:(y,g={})=>{let{name:C,override:v,aliases:A}=g,E={step:"initialize",priority:"normal",middleware:y,...g},G=ir(C,A);if(G.length>0){if(G.some(ye=>r.has(ye))){if(!v)throw new Error(`Duplicate middleware name '${xn(C,A)}'`);for(let ye of G){let nt=e.findIndex(mt=>{var vn;return mt.name===ye||((vn=mt.aliases)==null?void 0:vn.some(sr=>sr===ye))});if(nt===-1)continue;let Ae=e[nt];if(Ae.step!==E.step||E.priority!==Ae.priority)throw new Error(`"${xn(Ae.name,Ae.aliases)}" middleware with ${Ae.priority} priority in ${Ae.step} step cannot be overridden by "${xn(C,A)}" middleware with ${E.priority} priority in ${E.step} step.`);e.splice(nt,1)}}for(let ye of G)r.add(ye)}e.push(E)},addRelativeTo:(y,g)=>{let{name:C,override:v,aliases:A}=g,E={middleware:y,...g},G=ir(C,A);if(G.length>0){if(G.some(ye=>r.has(ye))){if(!v)throw new Error(`Duplicate middleware name '${xn(C,A)}'`);for(let ye of G){let nt=n.findIndex(mt=>{var vn;return mt.name===ye||((vn=mt.aliases)==null?void 0:vn.some(sr=>sr===ye))});if(nt===-1)continue;let Ae=n[nt];if(Ae.toMiddleware!==E.toMiddleware||Ae.relation!==E.relation)throw new Error(`"${xn(Ae.name,Ae.aliases)}" middleware ${Ae.relation} "${Ae.toMiddleware}" middleware cannot be overridden by "${xn(C,A)}" middleware ${E.relation} "${E.toMiddleware}" middleware.`);n.splice(nt,1)}}for(let ye of G)r.add(ye)}n.push(E)},clone:()=>i(Gm()),use:y=>{y.applyToStack(a)},remove:y=>typeof y=="string"?s(y):c(y),removeByTag:y=>{let g=!1,C=ft(v=>{let{tags:A,name:E,aliases:G}=v;if(A&&A.includes(y)){let ye=ir(E,G);for(let nt of ye)r.delete(nt);return g=!0,!1}return!0},"filterCb");return e=e.filter(C),n=n.filter(C),g},concat:y=>{var g;let C=i(Gm());return C.use(y),C.identifyOnResolve(t||C.identifyOnResolve()||(((g=y.identifyOnResolve)==null?void 0:g.call(y))??!1)),C},applyToStack:i,identify:()=>l(!0).map(y=>{let g=y.step??y.relation+" "+y.toMiddleware;return xn(y.name,y.aliases)+" - "+g}),identifyOnResolve(y){return typeof y=="boolean"&&(t=y),t},resolve:(y,g)=>{for(let C of l().map(v=>v.middleware).reverse())y=C(y,g);return t&&console.log(a.identify()),y}};return a},"constructStack"),Tb={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Bb={high:3,normal:2,low:1}});var sc=m((_be,Lb)=>{var oc=Object.defineProperty,qj=Object.getOwnPropertyDescriptor,Dj=Object.getOwnPropertyNames,Mj=Object.prototype.hasOwnProperty,Fj=(e,n)=>oc(e,"name",{value:n,configurable:!0}),Lj=(e,n)=>{for(var t in n)oc(e,t,{get:n[t],enumerable:!0})},jj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Dj(n))!Mj.call(e,o)&&o!==t&&oc(e,o,{get:()=>n[o],enumerable:!(r=qj(n,o))||r.enumerable});return e},zj=e=>jj(oc({},"__esModule",{value:!0}),e),Fb={};Lj(Fb,{isArrayBuffer:()=>Uj});Lb.exports=zj(Fb);var Uj=Fj(e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]","isArrayBuffer")});var Er=m((Cbe,Ub)=>{var ic=Object.defineProperty,Gj=Object.getOwnPropertyDescriptor,Hj=Object.getOwnPropertyNames,$j=Object.prototype.hasOwnProperty,jb=(e,n)=>ic(e,"name",{value:n,configurable:!0}),Kj=(e,n)=>{for(var t in n)ic(e,t,{get:n[t],enumerable:!0})},Vj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Hj(n))!$j.call(e,o)&&o!==t&&ic(e,o,{get:()=>n[o],enumerable:!(r=Gj(n,o))||r.enumerable});return e},Xj=e=>Vj(ic({},"__esModule",{value:!0}),e),zb={};Kj(zb,{fromArrayBuffer:()=>Yj,fromString:()=>Jj});Ub.exports=Xj(zb);var Wj=sc(),Hm=require("buffer"),Yj=jb((e,n=0,t=e.byteLength-n)=>{if(!(0,Wj.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Hm.Buffer.from(e,n,t)},"fromArrayBuffer"),Jj=jb((e,n)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return n?Hm.Buffer.from(e,n):Hm.Buffer.from(e)},"fromString")});var Gb=m(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.fromBase64=void 0;var Qj=Er(),Zj=/^[A-Za-z0-9+/]*={0,2}$/,ez=e=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Zj.exec(e))throw new TypeError("Invalid base64 string.");let n=(0,Qj.fromString)(e,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)};ac.fromBase64=ez});var Hb=m(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.toBase64=void 0;var tz=Er(),nz=e=>(0,tz.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64");cc.toBase64=nz});var Pr=m((Ebe,dc)=>{var $b=Object.defineProperty,rz=Object.getOwnPropertyDescriptor,oz=Object.getOwnPropertyNames,sz=Object.prototype.hasOwnProperty,$m=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of oz(n))!sz.call(e,o)&&o!==t&&$b(e,o,{get:()=>n[o],enumerable:!(r=rz(n,o))||r.enumerable});return e},Kb=(e,n,t)=>($m(e,n,"default"),t&&$m(t,n,"default")),iz=e=>$m($b({},"__esModule",{value:!0}),e),Km={};dc.exports=iz(Km);Kb(Km,Gb(),dc.exports);Kb(Km,Hb(),dc.exports)});var yt=m((Pbe,Yb)=>{var lc=Object.defineProperty,az=Object.getOwnPropertyDescriptor,cz=Object.getOwnPropertyNames,dz=Object.prototype.hasOwnProperty,Vm=(e,n)=>lc(e,"name",{value:n,configurable:!0}),lz=(e,n)=>{for(var t in n)lc(e,t,{get:n[t],enumerable:!0})},uz=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of cz(n))!dz.call(e,o)&&o!==t&&lc(e,o,{get:()=>n[o],enumerable:!(r=az(n,o))||r.enumerable});return e},mz=e=>uz(lc({},"__esModule",{value:!0}),e),Vb={};lz(Vb,{fromUtf8:()=>Wb,toUint8Array:()=>pz,toUtf8:()=>fz});Yb.exports=mz(Vb);var Xb=Er(),Wb=Vm(e=>{let n=(0,Xb.fromString)(e,"utf8");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),pz=Vm(e=>typeof e=="string"?Wb(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),"toUint8Array"),fz=Vm(e=>(0,Xb.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8"),"toUtf8")});var Jb=m(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.getAwsChunkedEncodingStream=void 0;var yz=require("stream"),gz=(e,n)=>{let{base64Encoder:t,bodyLengthChecker:r,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:c}=n,i=t!==void 0&&o!==void 0&&s!==void 0&&c!==void 0,u=i?c(o,e):void 0,l=new yz.Readable({read:()=>{}});return e.on("data",a=>{let y=r(a)||0;l.push(`${y.toString(16)}\r `),l.push(a),l.push(`\r `)}),e.on("end",async()=>{if(l.push(`0\r `),i){let a=t(await u);l.push(`${s}:${a}\r `),l.push(`\r -`)}l.push(null)}),l};lc.getAwsChunkedEncodingStream=gz});var Wm=m((Pbe,eE)=>{var uc=Object.defineProperty,hz=Object.getOwnPropertyDescriptor,_z=Object.getOwnPropertyNames,Cz=Object.prototype.hasOwnProperty,Xm=(e,n)=>uc(e,"name",{value:n,configurable:!0}),Sz=(e,n)=>{for(var t in n)uc(e,t,{get:n[t],enumerable:!0})},bz=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of _z(n))!Cz.call(e,o)&&o!==t&&uc(e,o,{get:()=>n[o],enumerable:!(r=hz(n,o))||r.enumerable});return e},Ez=e=>bz(uc({},"__esModule",{value:!0}),e),Qb={};Sz(Qb,{escapeUri:()=>Zb,escapeUriPath:()=>vz});eE.exports=Ez(Qb);var Zb=Xm(e=>encodeURIComponent(e).replace(/[!'()*]/g,Pz),"escapeUri"),Pz=Xm(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),vz=Xm(e=>e.split("/").map(Zb).join("/"),"escapeUriPath")});var oE=m((vbe,rE)=>{var mc=Object.defineProperty,wz=Object.getOwnPropertyDescriptor,xz=Object.getOwnPropertyNames,kz=Object.prototype.hasOwnProperty,Az=(e,n)=>mc(e,"name",{value:n,configurable:!0}),Oz=(e,n)=>{for(var t in n)mc(e,t,{get:n[t],enumerable:!0})},Nz=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of xz(n))!kz.call(e,o)&&o!==t&&mc(e,o,{get:()=>n[o],enumerable:!(r=wz(n,o))||r.enumerable});return e},Iz=e=>Nz(mc({},"__esModule",{value:!0}),e),tE={};Oz(tE,{buildQueryString:()=>nE});rE.exports=Iz(tE);var Ym=Wm();function nE(e){let n=[];for(let t of Object.keys(e).sort()){let r=e[t];if(t=(0,Ym.escapeUri)(t),Array.isArray(r))for(let o=0,s=r.length;o{var Rz=Object.create,Ti=Object.defineProperty,Tz=Object.getOwnPropertyDescriptor,Bz=Object.getOwnPropertyNames,qz=Object.getPrototypeOf,Dz=Object.prototype.hasOwnProperty,je=(e,n)=>Ti(e,"name",{value:n,configurable:!0}),Mz=(e,n)=>{for(var t in n)Ti(e,t,{get:n[t],enumerable:!0})},dE=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Bz(n))!Dz.call(e,o)&&o!==t&&Ti(e,o,{get:()=>n[o],enumerable:!(r=Tz(n,o))||r.enumerable});return e},Fz=(e,n,t)=>(t=e!=null?Rz(qz(e)):{},dE(n||!e||!e.__esModule?Ti(t,"default",{value:e,enumerable:!0}):t,e)),Lz=e=>dE(Ti({},"__esModule",{value:!0}),e),lE={};Mz(lE,{DEFAULT_REQUEST_TIMEOUT:()=>Hz,NodeHttp2Handler:()=>Wz,NodeHttpHandler:()=>$z,streamCollector:()=>Jz});PE.exports=Lz(lE);var uE=Ne(),mE=oE(),sE=require("http"),iE=require("https"),jz=["ECONNRESET","EPIPE","ETIMEDOUT"],pE=je(e=>{let n={};for(let t of Object.keys(e)){let r=e[t];n[t]=Array.isArray(r)?r.join(","):r}return n},"getTransformedHeaders"),zz=je((e,n,t=0)=>{if(!t)return;let r=setTimeout(()=>{e.destroy(),n(Object.assign(new Error(`Socket timed out without establishing a connection within ${t} ms`),{name:"TimeoutError"}))},t);e.on("socket",o=>{o.connecting?o.on("connect",()=>{clearTimeout(r)}):clearTimeout(r)})},"setConnectionTimeout"),Uz=je((e,{keepAlive:n,keepAliveMsecs:t})=>{n===!0&&e.on("socket",r=>{r.setKeepAlive(n,t||0)})},"setSocketKeepAlive"),Gz=je((e,n,t=0)=>{e.setTimeout(t,()=>{e.destroy(),n(Object.assign(new Error(`Connection timed out after ${t} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),fE=require("stream"),aE=1e3;async function Jm(e,n,t=aE){let r=n.headers??{},o=r.Expect||r.expect,s=-1,c=!1;o==="100-continue"&&await Promise.race([new Promise(i=>{s=Number(setTimeout(i,Math.max(aE,t)))}),new Promise(i=>{e.on("continue",()=>{clearTimeout(s),i()}),e.on("error",()=>{c=!0,clearTimeout(s),i()})})]),c||yE(e,n.body)}je(Jm,"writeRequestBody");function yE(e,n){n instanceof fE.Readable?n.pipe(e):n?e.end(Buffer.from(n)):e.end()}je(yE,"writeBody");var Hz=0,gE=class hE{constructor(n){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((t,r)=>{typeof n=="function"?n().then(o=>{t(this.resolveDefaultConfig(o))}).catch(r):t(this.resolveDefaultConfig(n))})}static create(n){return typeof(n==null?void 0:n.handle)=="function"?n:new hE(n)}resolveDefaultConfig(n){let{requestTimeout:t,connectionTimeout:r,socketTimeout:o,httpAgent:s,httpsAgent:c}=n||{},i=!0,u=50;return{connectionTimeout:r,requestTimeout:t??o,httpAgent:s||new sE.Agent({keepAlive:i,maxSockets:u}),httpsAgent:c||new iE.Agent({keepAlive:i,maxSockets:u})}}destroy(){var n,t,r,o;(t=(n=this.config)==null?void 0:n.httpAgent)==null||t.destroy(),(o=(r=this.config)==null?void 0:r.httpsAgent)==null||o.destroy()}async handle(n,{abortSignal:t}={}){return this.config||(this.config=await this.configProvider),new Promise((r,o)=>{let s,c=je(async E=>{await s,r(E)},"resolve"),i=je(async E=>{await s,o(E)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(t!=null&&t.aborted){let E=new Error("Request aborted");E.name="AbortError",i(E);return}let u=n.protocol==="https:",l=(0,mE.buildQueryString)(n.query||{}),a;if(n.username!=null||n.password!=null){let E=n.username??"",G=n.password??"";a=`${E}:${G}`}let y=n.path;l&&(y+=`?${l}`),n.fragment&&(y+=`#${n.fragment}`);let g={headers:n.headers,host:n.hostname,method:n.method,path:y,port:n.port,agent:u?this.config.httpsAgent:this.config.httpAgent,auth:a},v=(u?iE.request:sE.request)(g,E=>{let G=new uE.HttpResponse({statusCode:E.statusCode||-1,reason:E.statusMessage,headers:pE(E.headers),body:E});c({response:G})});v.on("error",E=>{jz.includes(E.code)?i(Object.assign(E,{name:"TimeoutError"})):i(E)}),zz(v,i,this.config.connectionTimeout),Gz(v,i,this.config.requestTimeout),t&&(t.onabort=()=>{v.abort();let E=new Error("Request aborted");E.name="AbortError",i(E)});let A=g.agent;typeof A=="object"&&"keepAlive"in A&&Uz(v,{keepAlive:A.keepAlive,keepAliveMsecs:A.keepAliveMsecs}),s=Jm(v,n,this.config.requestTimeout).catch(o)})}updateHttpClientConfig(n,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>({...r,[n]:t}))}httpHandlerConfigs(){return this.config??{}}};je(gE,"NodeHttpHandler");var $z=gE,cE=require("http2"),Kz=Fz(require("http2")),_E=class{constructor(n){this.sessions=[],this.sessions=n??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(n){this.sessions.push(n)}contains(n){return this.sessions.includes(n)}remove(n){this.sessions=this.sessions.filter(t=>t!==n)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(n){for(let t of this.sessions)t===n&&(t.destroyed||t.destroy())}};je(_E,"NodeHttp2ConnectionPool");var Vz=_E,CE=class{constructor(n){if(this.sessionCache=new Map,this.config=n,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(n,t){let r=this.getUrlString(n),o=this.sessionCache.get(r);if(o){let u=o.poll();if(u&&!this.config.disableConcurrency)return u}let s=Kz.default.connect(r);this.config.maxConcurrency&&s.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+n.destination.toString())}),s.unref();let c=je(()=>{s.destroy(),this.deleteSession(r,s)},"destroySessionCb");s.on("goaway",c),s.on("error",c),s.on("frameError",c),s.on("close",()=>this.deleteSession(r,s)),t.requestTimeout&&s.setTimeout(t.requestTimeout,c);let i=this.sessionCache.get(r)||new Vz;return i.offerLast(s),this.sessionCache.set(r,i),s}deleteSession(n,t){let r=this.sessionCache.get(n);r&&r.contains(t)&&(r.remove(t),this.sessionCache.set(n,r))}release(n,t){var r;let o=this.getUrlString(n);(r=this.sessionCache.get(o))==null||r.offerLast(t)}destroy(){for(let[n,t]of this.sessionCache){for(let r of t)r.destroyed||r.destroy(),t.remove(r);this.sessionCache.delete(n)}}setMaxConcurrentStreams(n){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=n}setDisableConcurrentStreams(n){this.config.disableConcurrency=n}getUrlString(n){return n.destination.toString()}};je(CE,"NodeHttp2ConnectionManager");var Xz=CE,SE=class bE{constructor(n){this.metadata={handlerProtocol:"h2"},this.connectionManager=new Xz({}),this.configProvider=new Promise((t,r)=>{typeof n=="function"?n().then(o=>{t(o||{})}).catch(r):t(n||{})})}static create(n){return typeof(n==null?void 0:n.handle)=="function"?n:new bE(n)}destroy(){this.connectionManager.destroy()}async handle(n,{abortSignal:t}={}){this.config||(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams&&this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams));let{requestTimeout:r,disableConcurrentStreams:o}=this.config;return new Promise((s,c)=>{var i;let u=!1,l,a=je(async Oe=>{await l,s(Oe)},"resolve"),y=je(async Oe=>{await l,c(Oe)},"reject");if(t!=null&&t.aborted){u=!0;let Oe=new Error("Request aborted");Oe.name="AbortError",y(Oe);return}let{hostname:g,method:C,port:v,protocol:A,query:E}=n,G="";if(n.username!=null||n.password!=null){let Oe=n.username??"",ki=n.password??"";G=`${Oe}:${ki}@`}let ye=`${A}//${G}${g}${v?`:${v}`:""}`,nt={destination:new URL(ye)},Ae=this.connectionManager.lease(nt,{requestTimeout:(i=this.config)==null?void 0:i.sessionTimeout,disableConcurrentStreams:o||!1}),mt=je(Oe=>{o&&this.destroySession(Ae),u=!0,y(Oe)},"rejectWithDestroy"),vn=(0,mE.buildQueryString)(E||{}),sr=n.path;vn&&(sr+=`?${vn}`),n.fragment&&(sr+=`#${n.fragment}`);let Et=Ae.request({...n.headers,[cE.constants.HTTP2_HEADER_PATH]:sr,[cE.constants.HTTP2_HEADER_METHOD]:C});Ae.ref(),Et.on("response",Oe=>{let ki=new uE.HttpResponse({statusCode:Oe[":status"]||-1,headers:pE(Oe),body:Et});u=!0,a({response:ki}),o&&(Ae.close(),this.connectionManager.deleteSession(ye,Ae))}),r&&Et.setTimeout(r,()=>{Et.close();let Oe=new Error(`Stream timed out because of no activity for ${r} ms`);Oe.name="TimeoutError",mt(Oe)}),t&&(t.onabort=()=>{Et.close();let Oe=new Error("Request aborted");Oe.name="AbortError",mt(Oe)}),Et.on("frameError",(Oe,ki,RL)=>{mt(new Error(`Frame type id ${Oe} in stream id ${RL} has failed with code ${ki}.`))}),Et.on("error",mt),Et.on("aborted",()=>{mt(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Et.rstCode}.`))}),Et.on("close",()=>{Ae.unref(),o&&Ae.destroy(),u||mt(new Error("Unexpected error: http2 request did not get a response"))}),l=Jm(Et,n,r)})}updateHttpClientConfig(n,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>({...r,[n]:t}))}httpHandlerConfigs(){return this.config??{}}destroySession(n){n.destroyed||n.destroy()}};je(SE,"NodeHttp2Handler");var Wz=SE,EE=class extends fE.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(n,t,r){this.bufferedBytes.push(n),r()}};je(EE,"Collector");var Yz=EE,Jz=je(e=>new Promise((n,t)=>{let r=new Yz;e.pipe(r),e.on("error",o=>{r.end(),t(o)}),r.on("error",t),r.on("finish",function(){let o=new Uint8Array(Buffer.concat(this.bufferedBytes));n(o)})}),"streamCollector")});var wE=m(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.sdkStreamMixin=void 0;var Qz=vr(),Zz=Er(),Qm=require("stream"),eU=require("util"),vE="The stream has already been transformed.",tU=e=>{var n,t;if(!(e instanceof Qm.Readable)){let s=((t=(n=e==null?void 0:e.__proto__)===null||n===void 0?void 0:n.constructor)===null||t===void 0?void 0:t.name)||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let r=!1,o=async()=>{if(r)throw new Error(vE);return r=!0,await(0,Qz.streamCollector)(e)};return Object.assign(e,{transformToByteArray:o,transformToString:async s=>{let c=await o();return s===void 0||Buffer.isEncoding(s)?(0,Zz.fromArrayBuffer)(c.buffer,c.byteOffset,c.byteLength).toString(s):new eU.TextDecoder(s).decode(c)},transformToWebStream:()=>{if(r)throw new Error(vE);if(e.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof Qm.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return r=!0,Qm.Readable.toWeb(e)}})};pc.sdkStreamMixin=tU});var np=m((Nbe,gc)=>{var fc=Object.defineProperty,nU=Object.getOwnPropertyDescriptor,rU=Object.getOwnPropertyNames,oU=Object.prototype.hasOwnProperty,tp=(e,n)=>fc(e,"name",{value:n,configurable:!0}),sU=(e,n)=>{for(var t in n)fc(e,t,{get:n[t],enumerable:!0})},Zm=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of rU(n))!oU.call(e,o)&&o!==t&&fc(e,o,{get:()=>n[o],enumerable:!(r=nU(n,o))||r.enumerable});return e},xE=(e,n,t)=>(Zm(e,n,"default"),t&&Zm(t,n,"default")),iU=e=>Zm(fc({},"__esModule",{value:!0}),e),yc={};sU(yc,{Uint8ArrayBlobAdapter:()=>ep});gc.exports=iU(yc);var kE=Pr(),AE=yt();function OE(e,n="utf-8"){return n==="base64"?(0,kE.toBase64)(e):(0,AE.toUtf8)(e)}tp(OE,"transformToString");function NE(e,n){return n==="base64"?ep.mutate((0,kE.fromBase64)(e)):ep.mutate((0,AE.fromUtf8)(e))}tp(NE,"transformFromString");var IE=class RE extends Uint8Array{static fromString(n,t="utf-8"){switch(typeof n){case"string":return NE(n,t);default:throw new Error(`Unsupported conversion from ${typeof n} to Uint8ArrayBlobAdapter.`)}}static mutate(n){return Object.setPrototypeOf(n,RE.prototype),n}transformToString(n="utf-8"){return OE(this,n)}};tp(IE,"Uint8ArrayBlobAdapter");var ep=IE;xE(yc,Jb(),gc.exports);xE(yc,wE(),gc.exports)});var b=m((qbe,nP)=>{var bc=Object.defineProperty,aU=Object.getOwnPropertyDescriptor,cU=Object.getOwnPropertyNames,dU=Object.prototype.hasOwnProperty,U=(e,n)=>bc(e,"name",{value:n,configurable:!0}),lU=(e,n)=>{for(var t in n)bc(e,t,{get:n[t],enumerable:!0})},uU=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of cU(n))!dU.call(e,o)&&o!==t&&bc(e,o,{get:()=>n[o],enumerable:!(r=aU(n,o))||r.enumerable});return e},mU=e=>uU(bc({},"__esModule",{value:!0}),e),BE={};lU(BE,{Client:()=>fU,Command:()=>LE,LazyJsonString:()=>l3,NoOpLogger:()=>pU,SENSITIVE_STRING:()=>hU,ServiceException:()=>QU,StringWrapper:()=>Fi,_json:()=>dp,collectBody:()=>yU,convertMap:()=>u3,createAggregatedClient:()=>_U,dateToUtcString:()=>KE,decorateServiceException:()=>WE,emitWarningIfUnsupportedVersion:()=>n3,expectBoolean:()=>SU,expectByte:()=>cp,expectFloat32:()=>_c,expectInt:()=>EU,expectInt32:()=>ip,expectLong:()=>Di,expectNonNull:()=>vU,expectNumber:()=>qi,expectObject:()=>zE,expectShort:()=>ap,expectString:()=>wU,expectUnion:()=>xU,extendedEncodeURIComponent:()=>Sc,getArrayIfSingleItem:()=>d3,getDefaultClientConfiguration:()=>a3,getDefaultExtensionConfiguration:()=>JE,getValueFromTextNode:()=>QE,handleFloat:()=>OU,limitedParseDouble:()=>mp,limitedParseFloat:()=>NU,limitedParseFloat32:()=>IU,loadConfigsForDefaultMode:()=>t3,logger:()=>Mi,map:()=>fp,parseBoolean:()=>CU,parseEpochTimestamp:()=>GU,parseRfc3339DateTime:()=>DU,parseRfc3339DateTimeWithOffset:()=>FU,parseRfc7231DateTime:()=>UU,resolveDefaultRuntimeConfig:()=>c3,resolvedPath:()=>g3,serializeFloat:()=>h3,splitEvery:()=>tP,strictParseByte:()=>$E,strictParseDouble:()=>up,strictParseFloat:()=>kU,strictParseFloat32:()=>UE,strictParseInt:()=>RU,strictParseInt32:()=>TU,strictParseLong:()=>HE,strictParseShort:()=>wr,take:()=>m3,throwDefaultError:()=>YE,withBaseException:()=>ZU});nP.exports=mU(BE);var qE=class{trace(){}debug(){}info(){}warn(){}error(){}};U(qE,"NoOpLogger");var pU=qE,DE=Mb(),ME=class{constructor(n){this.middlewareStack=(0,DE.constructStack)(),this.config=n}send(n,t,r){let o=typeof t!="function"?t:void 0,s=typeof t=="function"?t:r,c=n.resolveMiddleware(this.middlewareStack,this.config,o);if(s)c(n).then(i=>s(null,i.output),i=>s(i)).catch(()=>{});else return c(n).then(i=>i.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};U(ME,"Client");var fU=ME,rp=np(),yU=U(async(e=new Uint8Array,n)=>{if(e instanceof Uint8Array)return rp.Uint8ArrayBlobAdapter.mutate(e);if(!e)return rp.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let t=n.streamCollector(e);return rp.Uint8ArrayBlobAdapter.mutate(await t)},"collectBody"),sp=w(),FE=class{constructor(){this.middlewareStack=(0,DE.constructStack)()}static classBuilder(){return new gU}resolveMiddlewareWithContext(n,t,r,{middlewareFn:o,clientName:s,commandName:c,inputFilterSensitiveLog:i,outputFilterSensitiveLog:u,smithyContext:l,additionalContext:a,CommandCtor:y}){for(let E of o.bind(this)(y,n,t,r))this.middlewareStack.use(E);let g=n.concat(this.middlewareStack),{logger:C}=t,v={logger:C,clientName:s,commandName:c,inputFilterSensitiveLog:i,outputFilterSensitiveLog:u,[sp.SMITHY_CONTEXT_KEY]:{...l},...a},{requestHandler:A}=t;return g.resolve(E=>A.handle(E.request,r||{}),v)}};U(FE,"Command");var LE=FE,jE=class{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=n=>n,this._outputFilterSensitiveLog=n=>n,this._serializer=null,this._deserializer=null}init(n){this._init=n}ep(n){return this._ep=n,this}m(n){return this._middlewareFn=n,this}s(n,t,r={}){return this._smithyContext={service:n,operation:t,...r},this}c(n={}){return this._additionalContext=n,this}n(n,t){return this._clientName=n,this._commandName=t,this}f(n=r=>r,t=r=>r){return this._inputFilterSensitiveLog=n,this._outputFilterSensitiveLog=t,this}ser(n){return this._serializer=n,this}de(n){return this._deserializer=n,this}build(){var n;let t=this,r;return r=(n=class extends LE{constructor(o){super(),this.input=o,this.serialize=t._serializer,this.deserialize=t._deserializer,t._init(this)}static getEndpointParameterInstructions(){return t._ep}resolveMiddleware(o,s,c){return this.resolveMiddlewareWithContext(o,s,c,{CommandCtor:r,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog,outputFilterSensitiveLog:t._outputFilterSensitiveLog,smithyContext:t._smithyContext,additionalContext:t._additionalContext})}},U(n,"CommandRef"),n)}};U(jE,"ClassBuilder");var gU=jE,hU="***SensitiveInformation***",_U=U((e,n)=>{for(let t of Object.keys(e)){let r=e[t],o=U(async function(c,i,u){let l=new r(c);if(typeof i=="function")this.send(l,i);else if(typeof u=="function"){if(typeof i!="object")throw new Error(`Expected http options but got ${typeof i}`);this.send(l,i||{},u)}else return this.send(l,i)},"methodImpl"),s=(t[0].toLowerCase()+t.slice(1)).replace(/Command$/,"");n.prototype[s]=o}},"createAggregatedClient"),CU=U(e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}},"parseBoolean"),SU=U(e=>{if(e!=null){if(typeof e=="number"){if((e===0||e===1)&&Mi.warn(Cc(`Expected boolean, got ${typeof e}: ${e}`)),e===0)return!1;if(e===1)return!0}if(typeof e=="string"){let n=e.toLowerCase();if((n==="false"||n==="true")&&Mi.warn(Cc(`Expected boolean, got ${typeof e}: ${e}`)),n==="false")return!1;if(n==="true")return!0}if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)}},"expectBoolean"),qi=U(e=>{if(e!=null){if(typeof e=="string"){let n=parseFloat(e);if(!Number.isNaN(n))return String(n)!==String(e)&&Mi.warn(Cc(`Expected number but observed string: ${e}`)),n}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},"expectNumber"),bU=Math.ceil(2**127*(2-2**-23)),_c=U(e=>{let n=qi(e);if(n!==void 0&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0&&Math.abs(n)>bU)throw new TypeError(`Expected 32-bit float, got ${e}`);return n},"expectFloat32"),Di=U(e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},"expectLong"),EU=Di,ip=U(e=>lp(e,32),"expectInt32"),ap=U(e=>lp(e,16),"expectShort"),cp=U(e=>lp(e,8),"expectByte"),lp=U((e,n)=>{let t=Di(e);if(t!==void 0&&PU(t,n)!==t)throw new TypeError(`Expected ${n}-bit integer, got ${e}`);return t},"expectSizedInt"),PU=U((e,n)=>{switch(n){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},"castInt"),vU=U((e,n)=>{if(e==null)throw n?new TypeError(`Expected a non-null value for ${n}`):new TypeError("Expected a non-null value");return e},"expectNonNull"),zE=U(e=>{if(e==null)return;if(typeof e=="object"&&!Array.isArray(e))return e;let n=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${n}: ${e}`)},"expectObject"),wU=U(e=>{if(e!=null){if(typeof e=="string")return e;if(["boolean","number","bigint"].includes(typeof e))return Mi.warn(Cc(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},"expectString"),xU=U(e=>{if(e==null)return;let n=zE(e),t=Object.entries(n).filter(([,r])=>r!=null).map(([r])=>r);if(t.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(t.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${t} were not null.`);return n},"expectUnion"),up=U(e=>qi(typeof e=="string"?kr(e):e),"strictParseDouble"),kU=up,UE=U(e=>_c(typeof e=="string"?kr(e):e),"strictParseFloat32"),AU=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,kr=U(e=>{let n=e.match(AU);if(n===null||n[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},"parseNumber"),mp=U(e=>typeof e=="string"?GE(e):qi(e),"limitedParseDouble"),OU=mp,NU=mp,IU=U(e=>typeof e=="string"?GE(e):_c(e),"limitedParseFloat32"),GE=U(e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},"parseFloatString"),HE=U(e=>Di(typeof e=="string"?kr(e):e),"strictParseLong"),RU=HE,TU=U(e=>ip(typeof e=="string"?kr(e):e),"strictParseInt32"),wr=U(e=>ap(typeof e=="string"?kr(e):e),"strictParseShort"),$E=U(e=>cp(typeof e=="string"?kr(e):e),"strictParseByte"),Cc=U(e=>String(new TypeError(e).stack||e).split(` +`)}l.push(null)}),l};uc.getAwsChunkedEncodingStream=gz});var Wm=m((wbe,eE)=>{var mc=Object.defineProperty,hz=Object.getOwnPropertyDescriptor,_z=Object.getOwnPropertyNames,Cz=Object.prototype.hasOwnProperty,Xm=(e,n)=>mc(e,"name",{value:n,configurable:!0}),Sz=(e,n)=>{for(var t in n)mc(e,t,{get:n[t],enumerable:!0})},bz=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of _z(n))!Cz.call(e,o)&&o!==t&&mc(e,o,{get:()=>n[o],enumerable:!(r=hz(n,o))||r.enumerable});return e},Ez=e=>bz(mc({},"__esModule",{value:!0}),e),Qb={};Sz(Qb,{escapeUri:()=>Zb,escapeUriPath:()=>vz});eE.exports=Ez(Qb);var Zb=Xm(e=>encodeURIComponent(e).replace(/[!'()*]/g,Pz),"escapeUri"),Pz=Xm(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),vz=Xm(e=>e.split("/").map(Zb).join("/"),"escapeUriPath")});var oE=m((xbe,rE)=>{var pc=Object.defineProperty,wz=Object.getOwnPropertyDescriptor,xz=Object.getOwnPropertyNames,kz=Object.prototype.hasOwnProperty,Az=(e,n)=>pc(e,"name",{value:n,configurable:!0}),Oz=(e,n)=>{for(var t in n)pc(e,t,{get:n[t],enumerable:!0})},Nz=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of xz(n))!kz.call(e,o)&&o!==t&&pc(e,o,{get:()=>n[o],enumerable:!(r=wz(n,o))||r.enumerable});return e},Iz=e=>Nz(pc({},"__esModule",{value:!0}),e),tE={};Oz(tE,{buildQueryString:()=>nE});rE.exports=Iz(tE);var Ym=Wm();function nE(e){let n=[];for(let t of Object.keys(e).sort()){let r=e[t];if(t=(0,Ym.escapeUri)(t),Array.isArray(r))for(let o=0,s=r.length;o{var Rz=Object.create,Ti=Object.defineProperty,Tz=Object.getOwnPropertyDescriptor,Bz=Object.getOwnPropertyNames,qz=Object.getPrototypeOf,Dz=Object.prototype.hasOwnProperty,je=(e,n)=>Ti(e,"name",{value:n,configurable:!0}),Mz=(e,n)=>{for(var t in n)Ti(e,t,{get:n[t],enumerable:!0})},dE=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Bz(n))!Dz.call(e,o)&&o!==t&&Ti(e,o,{get:()=>n[o],enumerable:!(r=Tz(n,o))||r.enumerable});return e},Fz=(e,n,t)=>(t=e!=null?Rz(qz(e)):{},dE(n||!e||!e.__esModule?Ti(t,"default",{value:e,enumerable:!0}):t,e)),Lz=e=>dE(Ti({},"__esModule",{value:!0}),e),lE={};Mz(lE,{DEFAULT_REQUEST_TIMEOUT:()=>Hz,NodeHttp2Handler:()=>Wz,NodeHttpHandler:()=>$z,streamCollector:()=>Jz});PE.exports=Lz(lE);var uE=Ne(),mE=oE(),sE=require("http"),iE=require("https"),jz=["ECONNRESET","EPIPE","ETIMEDOUT"],pE=je(e=>{let n={};for(let t of Object.keys(e)){let r=e[t];n[t]=Array.isArray(r)?r.join(","):r}return n},"getTransformedHeaders"),zz=je((e,n,t=0)=>{if(!t)return;let r=setTimeout(()=>{e.destroy(),n(Object.assign(new Error(`Socket timed out without establishing a connection within ${t} ms`),{name:"TimeoutError"}))},t);e.on("socket",o=>{o.connecting?o.on("connect",()=>{clearTimeout(r)}):clearTimeout(r)})},"setConnectionTimeout"),Uz=je((e,{keepAlive:n,keepAliveMsecs:t})=>{n===!0&&e.on("socket",r=>{r.setKeepAlive(n,t||0)})},"setSocketKeepAlive"),Gz=je((e,n,t=0)=>{e.setTimeout(t,()=>{e.destroy(),n(Object.assign(new Error(`Connection timed out after ${t} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),fE=require("stream"),aE=1e3;async function Jm(e,n,t=aE){let r=n.headers??{},o=r.Expect||r.expect,s=-1,c=!1;o==="100-continue"&&await Promise.race([new Promise(i=>{s=Number(setTimeout(i,Math.max(aE,t)))}),new Promise(i=>{e.on("continue",()=>{clearTimeout(s),i()}),e.on("error",()=>{c=!0,clearTimeout(s),i()})})]),c||yE(e,n.body)}je(Jm,"writeRequestBody");function yE(e,n){n instanceof fE.Readable?n.pipe(e):n?e.end(Buffer.from(n)):e.end()}je(yE,"writeBody");var Hz=0,gE=class hE{constructor(n){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((t,r)=>{typeof n=="function"?n().then(o=>{t(this.resolveDefaultConfig(o))}).catch(r):t(this.resolveDefaultConfig(n))})}static create(n){return typeof(n==null?void 0:n.handle)=="function"?n:new hE(n)}resolveDefaultConfig(n){let{requestTimeout:t,connectionTimeout:r,socketTimeout:o,httpAgent:s,httpsAgent:c}=n||{},i=!0,u=50;return{connectionTimeout:r,requestTimeout:t??o,httpAgent:s||new sE.Agent({keepAlive:i,maxSockets:u}),httpsAgent:c||new iE.Agent({keepAlive:i,maxSockets:u})}}destroy(){var n,t,r,o;(t=(n=this.config)==null?void 0:n.httpAgent)==null||t.destroy(),(o=(r=this.config)==null?void 0:r.httpsAgent)==null||o.destroy()}async handle(n,{abortSignal:t}={}){return this.config||(this.config=await this.configProvider),new Promise((r,o)=>{let s,c=je(async E=>{await s,r(E)},"resolve"),i=je(async E=>{await s,o(E)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(t!=null&&t.aborted){let E=new Error("Request aborted");E.name="AbortError",i(E);return}let u=n.protocol==="https:",l=(0,mE.buildQueryString)(n.query||{}),a;if(n.username!=null||n.password!=null){let E=n.username??"",G=n.password??"";a=`${E}:${G}`}let y=n.path;l&&(y+=`?${l}`),n.fragment&&(y+=`#${n.fragment}`);let g={headers:n.headers,host:n.hostname,method:n.method,path:y,port:n.port,agent:u?this.config.httpsAgent:this.config.httpAgent,auth:a},v=(u?iE.request:sE.request)(g,E=>{let G=new uE.HttpResponse({statusCode:E.statusCode||-1,reason:E.statusMessage,headers:pE(E.headers),body:E});c({response:G})});v.on("error",E=>{jz.includes(E.code)?i(Object.assign(E,{name:"TimeoutError"})):i(E)}),zz(v,i,this.config.connectionTimeout),Gz(v,i,this.config.requestTimeout),t&&(t.onabort=()=>{v.abort();let E=new Error("Request aborted");E.name="AbortError",i(E)});let A=g.agent;typeof A=="object"&&"keepAlive"in A&&Uz(v,{keepAlive:A.keepAlive,keepAliveMsecs:A.keepAliveMsecs}),s=Jm(v,n,this.config.requestTimeout).catch(o)})}updateHttpClientConfig(n,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>({...r,[n]:t}))}httpHandlerConfigs(){return this.config??{}}};je(gE,"NodeHttpHandler");var $z=gE,cE=require("http2"),Kz=Fz(require("http2")),_E=class{constructor(n){this.sessions=[],this.sessions=n??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(n){this.sessions.push(n)}contains(n){return this.sessions.includes(n)}remove(n){this.sessions=this.sessions.filter(t=>t!==n)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(n){for(let t of this.sessions)t===n&&(t.destroyed||t.destroy())}};je(_E,"NodeHttp2ConnectionPool");var Vz=_E,CE=class{constructor(n){if(this.sessionCache=new Map,this.config=n,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(n,t){let r=this.getUrlString(n),o=this.sessionCache.get(r);if(o){let u=o.poll();if(u&&!this.config.disableConcurrency)return u}let s=Kz.default.connect(r);this.config.maxConcurrency&&s.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+n.destination.toString())}),s.unref();let c=je(()=>{s.destroy(),this.deleteSession(r,s)},"destroySessionCb");s.on("goaway",c),s.on("error",c),s.on("frameError",c),s.on("close",()=>this.deleteSession(r,s)),t.requestTimeout&&s.setTimeout(t.requestTimeout,c);let i=this.sessionCache.get(r)||new Vz;return i.offerLast(s),this.sessionCache.set(r,i),s}deleteSession(n,t){let r=this.sessionCache.get(n);r&&r.contains(t)&&(r.remove(t),this.sessionCache.set(n,r))}release(n,t){var r;let o=this.getUrlString(n);(r=this.sessionCache.get(o))==null||r.offerLast(t)}destroy(){for(let[n,t]of this.sessionCache){for(let r of t)r.destroyed||r.destroy(),t.remove(r);this.sessionCache.delete(n)}}setMaxConcurrentStreams(n){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=n}setDisableConcurrentStreams(n){this.config.disableConcurrency=n}getUrlString(n){return n.destination.toString()}};je(CE,"NodeHttp2ConnectionManager");var Xz=CE,SE=class bE{constructor(n){this.metadata={handlerProtocol:"h2"},this.connectionManager=new Xz({}),this.configProvider=new Promise((t,r)=>{typeof n=="function"?n().then(o=>{t(o||{})}).catch(r):t(n||{})})}static create(n){return typeof(n==null?void 0:n.handle)=="function"?n:new bE(n)}destroy(){this.connectionManager.destroy()}async handle(n,{abortSignal:t}={}){this.config||(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams&&this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams));let{requestTimeout:r,disableConcurrentStreams:o}=this.config;return new Promise((s,c)=>{var i;let u=!1,l,a=je(async Oe=>{await l,s(Oe)},"resolve"),y=je(async Oe=>{await l,c(Oe)},"reject");if(t!=null&&t.aborted){u=!0;let Oe=new Error("Request aborted");Oe.name="AbortError",y(Oe);return}let{hostname:g,method:C,port:v,protocol:A,query:E}=n,G="";if(n.username!=null||n.password!=null){let Oe=n.username??"",ki=n.password??"";G=`${Oe}:${ki}@`}let ye=`${A}//${G}${g}${v?`:${v}`:""}`,nt={destination:new URL(ye)},Ae=this.connectionManager.lease(nt,{requestTimeout:(i=this.config)==null?void 0:i.sessionTimeout,disableConcurrentStreams:o||!1}),mt=je(Oe=>{o&&this.destroySession(Ae),u=!0,y(Oe)},"rejectWithDestroy"),vn=(0,mE.buildQueryString)(E||{}),sr=n.path;vn&&(sr+=`?${vn}`),n.fragment&&(sr+=`#${n.fragment}`);let Et=Ae.request({...n.headers,[cE.constants.HTTP2_HEADER_PATH]:sr,[cE.constants.HTTP2_HEADER_METHOD]:C});Ae.ref(),Et.on("response",Oe=>{let ki=new uE.HttpResponse({statusCode:Oe[":status"]||-1,headers:pE(Oe),body:Et});u=!0,a({response:ki}),o&&(Ae.close(),this.connectionManager.deleteSession(ye,Ae))}),r&&Et.setTimeout(r,()=>{Et.close();let Oe=new Error(`Stream timed out because of no activity for ${r} ms`);Oe.name="TimeoutError",mt(Oe)}),t&&(t.onabort=()=>{Et.close();let Oe=new Error("Request aborted");Oe.name="AbortError",mt(Oe)}),Et.on("frameError",(Oe,ki,RL)=>{mt(new Error(`Frame type id ${Oe} in stream id ${RL} has failed with code ${ki}.`))}),Et.on("error",mt),Et.on("aborted",()=>{mt(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Et.rstCode}.`))}),Et.on("close",()=>{Ae.unref(),o&&Ae.destroy(),u||mt(new Error("Unexpected error: http2 request did not get a response"))}),l=Jm(Et,n,r)})}updateHttpClientConfig(n,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>({...r,[n]:t}))}httpHandlerConfigs(){return this.config??{}}destroySession(n){n.destroyed||n.destroy()}};je(SE,"NodeHttp2Handler");var Wz=SE,EE=class extends fE.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(n,t,r){this.bufferedBytes.push(n),r()}};je(EE,"Collector");var Yz=EE,Jz=je(e=>new Promise((n,t)=>{let r=new Yz;e.pipe(r),e.on("error",o=>{r.end(),t(o)}),r.on("error",t),r.on("finish",function(){let o=new Uint8Array(Buffer.concat(this.bufferedBytes));n(o)})}),"streamCollector")});var wE=m(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.sdkStreamMixin=void 0;var Qz=vr(),Zz=Er(),Qm=require("stream"),eU=require("util"),vE="The stream has already been transformed.",tU=e=>{var n,t;if(!(e instanceof Qm.Readable)){let s=((t=(n=e==null?void 0:e.__proto__)===null||n===void 0?void 0:n.constructor)===null||t===void 0?void 0:t.name)||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let r=!1,o=async()=>{if(r)throw new Error(vE);return r=!0,await(0,Qz.streamCollector)(e)};return Object.assign(e,{transformToByteArray:o,transformToString:async s=>{let c=await o();return s===void 0||Buffer.isEncoding(s)?(0,Zz.fromArrayBuffer)(c.buffer,c.byteOffset,c.byteLength).toString(s):new eU.TextDecoder(s).decode(c)},transformToWebStream:()=>{if(r)throw new Error(vE);if(e.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof Qm.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return r=!0,Qm.Readable.toWeb(e)}})};fc.sdkStreamMixin=tU});var np=m((Rbe,hc)=>{var yc=Object.defineProperty,nU=Object.getOwnPropertyDescriptor,rU=Object.getOwnPropertyNames,oU=Object.prototype.hasOwnProperty,tp=(e,n)=>yc(e,"name",{value:n,configurable:!0}),sU=(e,n)=>{for(var t in n)yc(e,t,{get:n[t],enumerable:!0})},Zm=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of rU(n))!oU.call(e,o)&&o!==t&&yc(e,o,{get:()=>n[o],enumerable:!(r=nU(n,o))||r.enumerable});return e},xE=(e,n,t)=>(Zm(e,n,"default"),t&&Zm(t,n,"default")),iU=e=>Zm(yc({},"__esModule",{value:!0}),e),gc={};sU(gc,{Uint8ArrayBlobAdapter:()=>ep});hc.exports=iU(gc);var kE=Pr(),AE=yt();function OE(e,n="utf-8"){return n==="base64"?(0,kE.toBase64)(e):(0,AE.toUtf8)(e)}tp(OE,"transformToString");function NE(e,n){return n==="base64"?ep.mutate((0,kE.fromBase64)(e)):ep.mutate((0,AE.fromUtf8)(e))}tp(NE,"transformFromString");var IE=class RE extends Uint8Array{static fromString(n,t="utf-8"){switch(typeof n){case"string":return NE(n,t);default:throw new Error(`Unsupported conversion from ${typeof n} to Uint8ArrayBlobAdapter.`)}}static mutate(n){return Object.setPrototypeOf(n,RE.prototype),n}transformToString(n="utf-8"){return OE(this,n)}};tp(IE,"Uint8ArrayBlobAdapter");var ep=IE;xE(gc,Jb(),hc.exports);xE(gc,wE(),hc.exports)});var b=m((Mbe,nP)=>{var Ec=Object.defineProperty,aU=Object.getOwnPropertyDescriptor,cU=Object.getOwnPropertyNames,dU=Object.prototype.hasOwnProperty,U=(e,n)=>Ec(e,"name",{value:n,configurable:!0}),lU=(e,n)=>{for(var t in n)Ec(e,t,{get:n[t],enumerable:!0})},uU=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of cU(n))!dU.call(e,o)&&o!==t&&Ec(e,o,{get:()=>n[o],enumerable:!(r=aU(n,o))||r.enumerable});return e},mU=e=>uU(Ec({},"__esModule",{value:!0}),e),BE={};lU(BE,{Client:()=>fU,Command:()=>LE,LazyJsonString:()=>l3,NoOpLogger:()=>pU,SENSITIVE_STRING:()=>hU,ServiceException:()=>QU,StringWrapper:()=>Fi,_json:()=>dp,collectBody:()=>yU,convertMap:()=>u3,createAggregatedClient:()=>_U,dateToUtcString:()=>KE,decorateServiceException:()=>WE,emitWarningIfUnsupportedVersion:()=>n3,expectBoolean:()=>SU,expectByte:()=>cp,expectFloat32:()=>Cc,expectInt:()=>EU,expectInt32:()=>ip,expectLong:()=>Di,expectNonNull:()=>vU,expectNumber:()=>qi,expectObject:()=>zE,expectShort:()=>ap,expectString:()=>wU,expectUnion:()=>xU,extendedEncodeURIComponent:()=>bc,getArrayIfSingleItem:()=>d3,getDefaultClientConfiguration:()=>a3,getDefaultExtensionConfiguration:()=>JE,getValueFromTextNode:()=>QE,handleFloat:()=>OU,limitedParseDouble:()=>mp,limitedParseFloat:()=>NU,limitedParseFloat32:()=>IU,loadConfigsForDefaultMode:()=>t3,logger:()=>Mi,map:()=>fp,parseBoolean:()=>CU,parseEpochTimestamp:()=>GU,parseRfc3339DateTime:()=>DU,parseRfc3339DateTimeWithOffset:()=>FU,parseRfc7231DateTime:()=>UU,resolveDefaultRuntimeConfig:()=>c3,resolvedPath:()=>g3,serializeFloat:()=>h3,splitEvery:()=>tP,strictParseByte:()=>$E,strictParseDouble:()=>up,strictParseFloat:()=>kU,strictParseFloat32:()=>UE,strictParseInt:()=>RU,strictParseInt32:()=>TU,strictParseLong:()=>HE,strictParseShort:()=>wr,take:()=>m3,throwDefaultError:()=>YE,withBaseException:()=>ZU});nP.exports=mU(BE);var qE=class{trace(){}debug(){}info(){}warn(){}error(){}};U(qE,"NoOpLogger");var pU=qE,DE=Mb(),ME=class{constructor(n){this.middlewareStack=(0,DE.constructStack)(),this.config=n}send(n,t,r){let o=typeof t!="function"?t:void 0,s=typeof t=="function"?t:r,c=n.resolveMiddleware(this.middlewareStack,this.config,o);if(s)c(n).then(i=>s(null,i.output),i=>s(i)).catch(()=>{});else return c(n).then(i=>i.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};U(ME,"Client");var fU=ME,rp=np(),yU=U(async(e=new Uint8Array,n)=>{if(e instanceof Uint8Array)return rp.Uint8ArrayBlobAdapter.mutate(e);if(!e)return rp.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let t=n.streamCollector(e);return rp.Uint8ArrayBlobAdapter.mutate(await t)},"collectBody"),sp=w(),FE=class{constructor(){this.middlewareStack=(0,DE.constructStack)()}static classBuilder(){return new gU}resolveMiddlewareWithContext(n,t,r,{middlewareFn:o,clientName:s,commandName:c,inputFilterSensitiveLog:i,outputFilterSensitiveLog:u,smithyContext:l,additionalContext:a,CommandCtor:y}){for(let E of o.bind(this)(y,n,t,r))this.middlewareStack.use(E);let g=n.concat(this.middlewareStack),{logger:C}=t,v={logger:C,clientName:s,commandName:c,inputFilterSensitiveLog:i,outputFilterSensitiveLog:u,[sp.SMITHY_CONTEXT_KEY]:{...l},...a},{requestHandler:A}=t;return g.resolve(E=>A.handle(E.request,r||{}),v)}};U(FE,"Command");var LE=FE,jE=class{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=n=>n,this._outputFilterSensitiveLog=n=>n,this._serializer=null,this._deserializer=null}init(n){this._init=n}ep(n){return this._ep=n,this}m(n){return this._middlewareFn=n,this}s(n,t,r={}){return this._smithyContext={service:n,operation:t,...r},this}c(n={}){return this._additionalContext=n,this}n(n,t){return this._clientName=n,this._commandName=t,this}f(n=r=>r,t=r=>r){return this._inputFilterSensitiveLog=n,this._outputFilterSensitiveLog=t,this}ser(n){return this._serializer=n,this}de(n){return this._deserializer=n,this}build(){var n;let t=this,r;return r=(n=class extends LE{constructor(o){super(),this.input=o,this.serialize=t._serializer,this.deserialize=t._deserializer,t._init(this)}static getEndpointParameterInstructions(){return t._ep}resolveMiddleware(o,s,c){return this.resolveMiddlewareWithContext(o,s,c,{CommandCtor:r,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog,outputFilterSensitiveLog:t._outputFilterSensitiveLog,smithyContext:t._smithyContext,additionalContext:t._additionalContext})}},U(n,"CommandRef"),n)}};U(jE,"ClassBuilder");var gU=jE,hU="***SensitiveInformation***",_U=U((e,n)=>{for(let t of Object.keys(e)){let r=e[t],o=U(async function(c,i,u){let l=new r(c);if(typeof i=="function")this.send(l,i);else if(typeof u=="function"){if(typeof i!="object")throw new Error(`Expected http options but got ${typeof i}`);this.send(l,i||{},u)}else return this.send(l,i)},"methodImpl"),s=(t[0].toLowerCase()+t.slice(1)).replace(/Command$/,"");n.prototype[s]=o}},"createAggregatedClient"),CU=U(e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}},"parseBoolean"),SU=U(e=>{if(e!=null){if(typeof e=="number"){if((e===0||e===1)&&Mi.warn(Sc(`Expected boolean, got ${typeof e}: ${e}`)),e===0)return!1;if(e===1)return!0}if(typeof e=="string"){let n=e.toLowerCase();if((n==="false"||n==="true")&&Mi.warn(Sc(`Expected boolean, got ${typeof e}: ${e}`)),n==="false")return!1;if(n==="true")return!0}if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)}},"expectBoolean"),qi=U(e=>{if(e!=null){if(typeof e=="string"){let n=parseFloat(e);if(!Number.isNaN(n))return String(n)!==String(e)&&Mi.warn(Sc(`Expected number but observed string: ${e}`)),n}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},"expectNumber"),bU=Math.ceil(2**127*(2-2**-23)),Cc=U(e=>{let n=qi(e);if(n!==void 0&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0&&Math.abs(n)>bU)throw new TypeError(`Expected 32-bit float, got ${e}`);return n},"expectFloat32"),Di=U(e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},"expectLong"),EU=Di,ip=U(e=>lp(e,32),"expectInt32"),ap=U(e=>lp(e,16),"expectShort"),cp=U(e=>lp(e,8),"expectByte"),lp=U((e,n)=>{let t=Di(e);if(t!==void 0&&PU(t,n)!==t)throw new TypeError(`Expected ${n}-bit integer, got ${e}`);return t},"expectSizedInt"),PU=U((e,n)=>{switch(n){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},"castInt"),vU=U((e,n)=>{if(e==null)throw n?new TypeError(`Expected a non-null value for ${n}`):new TypeError("Expected a non-null value");return e},"expectNonNull"),zE=U(e=>{if(e==null)return;if(typeof e=="object"&&!Array.isArray(e))return e;let n=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${n}: ${e}`)},"expectObject"),wU=U(e=>{if(e!=null){if(typeof e=="string")return e;if(["boolean","number","bigint"].includes(typeof e))return Mi.warn(Sc(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},"expectString"),xU=U(e=>{if(e==null)return;let n=zE(e),t=Object.entries(n).filter(([,r])=>r!=null).map(([r])=>r);if(t.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(t.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${t} were not null.`);return n},"expectUnion"),up=U(e=>qi(typeof e=="string"?kr(e):e),"strictParseDouble"),kU=up,UE=U(e=>Cc(typeof e=="string"?kr(e):e),"strictParseFloat32"),AU=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,kr=U(e=>{let n=e.match(AU);if(n===null||n[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},"parseNumber"),mp=U(e=>typeof e=="string"?GE(e):qi(e),"limitedParseDouble"),OU=mp,NU=mp,IU=U(e=>typeof e=="string"?GE(e):Cc(e),"limitedParseFloat32"),GE=U(e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},"parseFloatString"),HE=U(e=>Di(typeof e=="string"?kr(e):e),"strictParseLong"),RU=HE,TU=U(e=>ip(typeof e=="string"?kr(e):e),"strictParseInt32"),wr=U(e=>ap(typeof e=="string"?kr(e):e),"strictParseShort"),$E=U(e=>cp(typeof e=="string"?kr(e):e),"strictParseByte"),Sc=U(e=>String(new TypeError(e).stack||e).split(` `).slice(0,5).filter(n=>!n.includes("stackTraceWarning")).join(` -`),"stackTraceWarning"),Mi={warn:console.warn},BU=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],pp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function KE(e){let n=e.getUTCFullYear(),t=e.getUTCMonth(),r=e.getUTCDay(),o=e.getUTCDate(),s=e.getUTCHours(),c=e.getUTCMinutes(),i=e.getUTCSeconds(),u=o<10?`0${o}`:`${o}`,l=s<10?`0${s}`:`${s}`,a=c<10?`0${c}`:`${c}`,y=i<10?`0${i}`:`${i}`;return`${BU[r]}, ${u} ${pp[t]} ${n} ${l}:${a}:${y} GMT`}U(KE,"dateToUtcString");var qU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),DU=U(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let n=qU.exec(e);if(!n)throw new TypeError("Invalid RFC-3339 date-time value");let[t,r,o,s,c,i,u,l]=n,a=wr(xr(r)),y=Rt(o,"month",1,12),g=Rt(s,"day",1,31);return Bi(a,y,g,{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l})},"parseRfc3339DateTime"),MU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),FU=U(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let n=MU.exec(e);if(!n)throw new TypeError("Invalid RFC-3339 date-time value");let[t,r,o,s,c,i,u,l,a]=n,y=wr(xr(r)),g=Rt(o,"month",1,12),C=Rt(s,"day",1,31),v=Bi(y,g,C,{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l});return a.toUpperCase()!="Z"&&v.setTime(v.getTime()-JU(a)),v},"parseRfc3339DateTimeWithOffset"),LU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),jU=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),zU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),UU=U(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let n=LU.exec(e);if(n){let[t,r,o,s,c,i,u,l]=n;return Bi(wr(xr(s)),op(o),Rt(r,"day",1,31),{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l})}if(n=jU.exec(e),n){let[t,r,o,s,c,i,u,l]=n;return KU(Bi(HU(s),op(o),Rt(r,"day",1,31),{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l}))}if(n=zU.exec(e),n){let[t,r,o,s,c,i,u,l]=n;return Bi(wr(xr(l)),op(r),Rt(o.trimLeft(),"day",1,31),{hours:s,minutes:c,seconds:i,fractionalMilliseconds:u})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),GU=U(e=>{if(e==null)return;let n;if(typeof e=="number")n=e;else if(typeof e=="string")n=up(e);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(n)||n===1/0||n===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(n*1e3))},"parseEpochTimestamp"),Bi=U((e,n,t,r)=>{let o=n-1;return XU(e,o,t),new Date(Date.UTC(e,o,t,Rt(r.hours,"hour",0,23),Rt(r.minutes,"minute",0,59),Rt(r.seconds,"seconds",0,60),YU(r.fractionalMilliseconds)))},"buildDate"),HU=U(e=>{let n=new Date().getUTCFullYear(),t=Math.floor(n/100)*100+wr(xr(e));return te.getTime()-new Date().getTime()>$U?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,"adjustRfc850Year"),op=U(e=>{let n=pp.indexOf(e);if(n<0)throw new TypeError(`Invalid month: ${e}`);return n+1},"parseMonthByShortName"),VU=[31,28,31,30,31,30,31,31,30,31,30,31],XU=U((e,n,t)=>{let r=VU[n];if(n===1&&WU(e)&&(r=29),t>r)throw new TypeError(`Invalid day for ${pp[n]} in ${e}: ${t}`)},"validateDayOfMonth"),WU=U(e=>e%4===0&&(e%100!==0||e%400===0),"isLeapYear"),Rt=U((e,n,t,r)=>{let o=$E(xr(e));if(or)throw new TypeError(`${n} must be between ${t} and ${r}, inclusive`);return o},"parseDateValue"),YU=U(e=>e==null?0:UE("0."+e)*1e3,"parseMilliseconds"),JU=U(e=>{let n=e[0],t=1;if(n=="+")t=1;else if(n=="-")t=-1;else throw new TypeError(`Offset direction, ${n}, must be "+" or "-"`);let r=Number(e.substring(1,3)),o=Number(e.substring(4,6));return t*(r*60+o)*60*1e3},"parseOffsetToMilliseconds"),xr=U(e=>{let n=0;for(;n{Object.entries(n).filter(([,r])=>r!==void 0).forEach(([r,o])=>{(e[r]==null||e[r]==="")&&(e[r]=o)});let t=e.message||e.Message||"UnknownError";return e.message=t,delete e.Message,e},"decorateServiceException"),YE=U(({output:e,parsedBody:n,exceptionCtor:t,errorCode:r})=>{let o=e3(e),s=o.httpStatusCode?o.httpStatusCode+"":void 0,c=new t({name:(n==null?void 0:n.code)||(n==null?void 0:n.Code)||r||s||"UnknownError",$fault:"client",$metadata:o});throw WE(c,n)},"throwDefaultError"),ZU=U(e=>({output:n,parsedBody:t,errorCode:r})=>{YE({output:n,parsedBody:t,exceptionCtor:e,errorCode:r})},"withBaseException"),e3=U(e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),"deserializeMetadata"),t3=U(e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},"loadConfigsForDefaultMode"),TE=!1,n3=U(e=>{e&&!TE&&parseInt(e.substring(1,e.indexOf(".")))<14&&(TE=!0)},"emitWarningIfUnsupportedVersion"),r3=U(e=>{let n=[];for(let t in sp.AlgorithmId){let r=sp.AlgorithmId[t];e[r]!==void 0&&n.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}return{_checksumAlgorithms:n,addChecksumAlgorithm(t){this._checksumAlgorithms.push(t)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),o3=U(e=>{let n={};return e.checksumAlgorithms().forEach(t=>{n[t.algorithmId()]=t.checksumConstructor()}),n},"resolveChecksumRuntimeConfig"),s3=U(e=>{let n=e.retryStrategy;return{setRetryStrategy(t){n=t},retryStrategy(){return n}}},"getRetryConfiguration"),i3=U(e=>{let n={};return n.retryStrategy=e.retryStrategy(),n},"resolveRetryRuntimeConfig"),JE=U(e=>({...r3(e),...s3(e)}),"getDefaultExtensionConfiguration"),a3=JE,c3=U(e=>({...o3(e),...i3(e)}),"resolveDefaultRuntimeConfig");function Sc(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(n){return"%"+n.charCodeAt(0).toString(16).toUpperCase()})}U(Sc,"extendedEncodeURIComponent");var d3=U(e=>Array.isArray(e)?e:[e],"getArrayIfSingleItem"),QE=U(e=>{let n="#text";for(let t in e)e.hasOwnProperty(t)&&e[t][n]!==void 0?e[t]=e[t][n]:typeof e[t]=="object"&&e[t]!==null&&(e[t]=QE(e[t]));return e},"getValueFromTextNode"),Fi=U(function(){let e=Object.getPrototypeOf(this).constructor,n=Function.bind.apply(String,[null,...arguments]),t=new n;return Object.setPrototypeOf(t,e.prototype),t},"StringWrapper");Fi.prototype=Object.create(String.prototype,{constructor:{value:Fi,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Fi,String);var ZE=class hc extends Fi{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(n){return n instanceof hc?n:n instanceof String||typeof n=="string"?new hc(n):new hc(JSON.stringify(n))}};U(ZE,"LazyJsonString");var l3=ZE;function fp(e,n,t){let r,o,s;if(typeof n>"u"&&typeof t>"u")r={},s=e;else{if(r=e,typeof n=="function")return o=n,s=t,p3(r,o,s);s=n}for(let c of Object.keys(s)){if(!Array.isArray(s[c])){r[c]=s[c];continue}eP(r,null,s,c)}return r}U(fp,"map");var u3=U(e=>{let n={};for(let[t,r]of Object.entries(e||{}))n[t]=[,r];return n},"convertMap"),m3=U((e,n)=>{let t={};for(let r in n)eP(t,e,n,r);return t},"take"),p3=U((e,n,t)=>fp(e,Object.entries(t).reduce((r,[o,s])=>(Array.isArray(s)?r[o]=s:typeof s=="function"?r[o]=[n,s()]:r[o]=[n,s],r),{})),"mapWithFilter"),eP=U((e,n,t,r)=>{if(n!==null){let c=t[r];typeof c=="function"&&(c=[,c]);let[i=f3,u=y3,l=r]=c;(typeof i=="function"&&i(n[l])||typeof i!="function"&&i)&&(e[r]=u(n[l]));return}let[o,s]=t[r];if(typeof s=="function"){let c,i=o===void 0&&(c=s())!=null,u=typeof o=="function"&&!!o(void 0)||typeof o!="function"&&!!o;i?e[r]=c:u&&(e[r]=s())}else{let c=o===void 0&&s!=null,i=typeof o=="function"&&!!o(s)||typeof o!="function"&&!!o;(c||i)&&(e[r]=s)}},"applyInstruction"),f3=U(e=>e!=null,"nonNullish"),y3=U(e=>e,"pass"),g3=U((e,n,t,r,o,s)=>{if(n!=null&&n[t]!==void 0){let c=r();if(c.length<=0)throw new Error("Empty value provided for input HTTP label: "+t+".");e=e.replace(o,s?c.split("/").map(i=>Sc(i)).join("/"):Sc(c))}else throw new Error("No value provided for input HTTP label: "+t+".");return e},"resolvedPath"),h3=U(e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}},"serializeFloat"),dp=U(e=>{if(e==null)return{};if(Array.isArray(e))return e.filter(n=>n!=null).map(dp);if(typeof e=="object"){let n={};for(let t of Object.keys(e))e[t]!=null&&(n[t]=dp(e[t]));return n}return e},"_json");function tP(e,n,t){if(t<=0||!Number.isInteger(t))throw new Error("Invalid number of delimiters ("+t+") for splitEvery.");let r=e.split(n);if(t===1)return r;let o=[],s="";for(let c=0;c{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.getCheckContentLengthHeaderPlugin=en.checkContentLengthHeaderMiddlewareOptions=en.checkContentLengthHeader=void 0;var _3=Ne(),C3=b(),S3="content-length";function rP(){return(e,n)=>async t=>{var r;let{request:o}=t;if(_3.HttpRequest.isInstance(o)&&!o.headers[S3]){let s="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof((r=n==null?void 0:n.logger)===null||r===void 0?void 0:r.warn)=="function"&&!(n.logger instanceof C3.NoOpLogger)?n.logger.warn(s):console.warn(s)}return e({...t})}}en.checkContentLengthHeader=rP;en.checkContentLengthHeaderMiddlewareOptions={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0};var b3=e=>({applyToStack:n=>{n.add(rP(),en.checkContentLengthHeaderMiddlewareOptions)}});en.getCheckContentLengthHeaderPlugin=b3});var sP=m(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.resolveS3Config=void 0;var E3=e=>{var n,t,r;return{...e,forcePathStyle:(n=e.forcePathStyle)!==null&&n!==void 0?n:!1,useAccelerateEndpoint:(t=e.useAccelerateEndpoint)!==null&&t!==void 0?t:!1,disableMultiregionAccessPoints:(r=e.disableMultiregionAccessPoints)!==null&&r!==void 0?r:!1}};Ec.resolveS3Config=E3});var aP=m(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getThrow200ExceptionsPlugin=Tt.throw200ExceptionsMiddlewareOptions=Tt.throw200ExceptionsMiddleware=void 0;var P3=Ne(),v3=e=>n=>async t=>{let r=await n(t),{response:o}=r;if(!P3.HttpResponse.isInstance(o))return r;let{statusCode:s,body:c}=o;if(s<200||s>=300)return r;let i=await iP(c,e),u=await w3(i,e);if(i.length===0){let l=new Error("S3 aborted request");throw l.name="InternalError",l}return u&&u.match("")&&(o.statusCode=400),o.body=i,r};Tt.throw200ExceptionsMiddleware=v3;var iP=(e=new Uint8Array,n)=>e instanceof Uint8Array?Promise.resolve(e):n.streamCollector(e)||Promise.resolve(new Uint8Array),w3=(e,n)=>iP(e,n).then(t=>n.utf8Encoder(t));Tt.throw200ExceptionsMiddlewareOptions={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0};var x3=e=>({applyToStack:n=>{n.addRelativeTo((0,Tt.throw200ExceptionsMiddleware)(e),Tt.throw200ExceptionsMiddlewareOptions)}});Tt.getThrow200ExceptionsPlugin=x3});var yp=m(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.build=kn.parse=kn.validate=void 0;var k3=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;kn.validate=k3;var A3=e=>{let n=e.split(":");if(n.length<6||n[0]!=="arn")throw new Error("Malformed ARN");let[,t,r,o,s,...c]=n;return{partition:t,service:r,region:o,accountId:s,resource:c.join(":")}};kn.parse=A3;var O3=e=>{let{partition:n="aws",service:t,region:r,accountId:o,resource:s}=e;if([t,r,o,s].some(c=>typeof c!="string"))throw new Error("Input ARN object is invalid");return`arn:${n}:${t}:${r}:${o}:${s}`};kn.build=O3});var dP=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.getValidateBucketNamePlugin=tn.validateBucketNameMiddlewareOptions=tn.validateBucketNameMiddleware=void 0;var N3=yp();function cP(){return e=>async n=>{let{input:{Bucket:t}}=n;if(typeof t=="string"&&!(0,N3.validate)(t)&&t.indexOf("/")>=0){let r=new Error(`Bucket name shouldn't contain '/', received '${t}'`);throw r.name="InvalidBucketName",r}return e({...n})}}tn.validateBucketNameMiddleware=cP;tn.validateBucketNameMiddlewareOptions={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0};var I3=e=>({applyToStack:n=>{n.add(cP(),tn.validateBucketNameMiddlewareOptions)}});tn.getValidateBucketNamePlugin=I3});var Or=m(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var Pc=(te(),Y(ee));Pc.__exportStar(oP(),Ar);Pc.__exportStar(sP(),Ar);Pc.__exportStar(aP(),Ar);Pc.__exportStar(dP(),Ar)});var xe=m((Gbe,hP)=>{var vc=Object.defineProperty,R3=Object.getOwnPropertyDescriptor,T3=Object.getOwnPropertyNames,B3=Object.prototype.hasOwnProperty,ar=(e,n)=>vc(e,"name",{value:n,configurable:!0}),q3=(e,n)=>{for(var t in n)vc(e,t,{get:n[t],enumerable:!0})},D3=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of T3(n))!B3.call(e,o)&&o!==t&&vc(e,o,{get:()=>n[o],enumerable:!(r=R3(n,o))||r.enumerable});return e},M3=e=>D3(vc({},"__esModule",{value:!0}),e),lP={};q3(lP,{CredentialsProviderError:()=>F3,ProviderError:()=>wc,TokenProviderError:()=>L3,chain:()=>j3,fromStatic:()=>z3,memoize:()=>U3});hP.exports=M3(lP);var uP=class mP extends Error{constructor(n,t=!0){super(n),this.tryNextLink=t,this.name="ProviderError",Object.setPrototypeOf(this,mP.prototype)}static from(n,t=!0){return Object.assign(new this(n.message,t),n)}};ar(uP,"ProviderError");var wc=uP,pP=class fP extends wc{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="CredentialsProviderError",Object.setPrototypeOf(this,fP.prototype)}};ar(pP,"CredentialsProviderError");var F3=pP,yP=class gP extends wc{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="TokenProviderError",Object.setPrototypeOf(this,gP.prototype)}};ar(yP,"TokenProviderError");var L3=yP,j3=ar((...e)=>async()=>{if(e.length===0)throw new wc("No providers in chain");let n;for(let t of e)try{return await t()}catch(r){if(n=r,r!=null&&r.tryNextLink)continue;throw r}throw n},"chain"),z3=ar(e=>()=>Promise.resolve(e),"fromStatic"),U3=ar((e,n,t)=>{let r,o,s,c=!1,i=ar(async()=>{o||(o=e());try{r=await o,s=!0,c=!1}finally{o=void 0}return r},"coalesceProvider");return n===void 0?async u=>((!s||u!=null&&u.forceRefresh)&&(r=await i()),r):async u=>((!s||u!=null&&u.forceRefresh)&&(r=await i()),c?r:t&&!t(r)?(c=!0,r):(n(r)&&await i(),r))},"memoize")});var Cp={};Ai(Cp,{__assign:()=>hp,__asyncDelegator:()=>tG,__asyncGenerator:()=>eG,__asyncValues:()=>nG,__await:()=>Li,__awaiter:()=>X3,__classPrivateFieldGet:()=>iG,__classPrivateFieldSet:()=>aG,__createBinding:()=>Y3,__decorate:()=>$3,__exportStar:()=>J3,__extends:()=>G3,__generator:()=>W3,__importDefault:()=>sG,__importStar:()=>oG,__makeTemplateObject:()=>rG,__metadata:()=>V3,__param:()=>K3,__read:()=>_P,__rest:()=>H3,__spread:()=>Q3,__spreadArrays:()=>Z3,__values:()=>_p});function G3(e,n){gp(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function H3(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(c=e[i])&&(s=(o<3?c(s):o>3?c(n,t,s):c(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function K3(e,n){return function(t,r){n(t,r,e)}}function V3(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)}function X3(e,n,t,r){function o(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function i(a){try{l(r.next(a))}catch(y){c(y)}}function u(a){try{l(r.throw(a))}catch(y){c(y)}}function l(a){a.done?s(a.value):o(a.value).then(i,u)}l((r=r.apply(e,n||[])).next())})}function W3(e,n){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,c;return c={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function i(l){return function(a){return u([l,a])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,o&&(s=l[0]&2?o.return:l[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;switch(o=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function _P(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,s=[],c;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){c={error:i}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return s}function Q3(){for(var e=[],n=0;n1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(v){y(s[0][3],v)}}function u(g){g.value instanceof Li?Promise.resolve(g.value.v).then(l,a):y(s[0][2],g)}function l(g){i("next",g)}function a(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function tG(e){var n,t;return n={},r("next"),r("throw",function(o){throw o}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(o,s){n[o]=e[o]?function(c){return(t=!t)?{value:Li(e[o](c)),done:o==="return"}:s?s(c):c}:s}}function nG(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof _p=="function"?_p(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(c){return new Promise(function(i,u){c=e[s](c),o(i,u,c.done,c.value)})}}function o(s,c,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},c)}}function rG(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function oG(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function sG(e){return e&&e.__esModule?e:{default:e}}function iG(e,n){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return n.get(e)}function aG(e,n,t){if(!n.has(e))throw new TypeError("attempted to set private field on non-instance");return n.set(e,t),t}var gp,hp,Sp=Le(()=>{gp=function(e,n){return gp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},gp(e,n)};hp=function(){return hp=Object.assign||function(n){for(var t,r=1,o=arguments.length;r{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.toUtf8=Nr.fromUtf8=void 0;var cG=e=>{let n=[];for(let t=0,r=e.length;t>6|192,o&63|128);else if(t+1>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else n.push(o>>12|224,o>>6&63|128,o&63|128)}return Uint8Array.from(n)};Nr.fromUtf8=cG;var dG=e=>{let n="";for(let t=0,r=e.length;ti.toString(16)).join("%");n+=decodeURIComponent(c)}else n+=String.fromCharCode((o&15)<<12|(e[++t]&63)<<6|e[++t]&63)}return n};Nr.toUtf8=dG});var SP=m(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.toUtf8=Ir.fromUtf8=void 0;function lG(e){return new TextEncoder().encode(e)}Ir.fromUtf8=lG;function uG(e){return new TextDecoder("utf-8").decode(e)}Ir.toUtf8=uG});var PP=m(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.toUtf8=Rr.fromUtf8=void 0;var bP=CP(),EP=SP(),mG=e=>typeof TextEncoder=="function"?(0,EP.fromUtf8)(e):(0,bP.fromUtf8)(e);Rr.fromUtf8=mG;var pG=e=>typeof TextDecoder=="function"?(0,EP.toUtf8)(e):(0,bP.toUtf8)(e);Rr.toUtf8=pG});var vP=m(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.convertToBuffer=void 0;var fG=PP(),yG=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:fG.fromUtf8;function gG(e){return e instanceof Uint8Array?e:typeof e=="string"?yG(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}xc.convertToBuffer=gG});var wP=m(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.isEmptyData=void 0;function hG(e){return typeof e=="string"?e.length===0:e.byteLength===0}kc.isEmptyData=hG});var xP=m(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.numToUint8=void 0;function _G(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}Ac.numToUint8=_G});var kP=m(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.uint32ArrayFrom=void 0;function CG(e){if(!Uint32Array.from){for(var n=new Uint32Array(e.length),t=0;t{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.uint32ArrayFrom=Bt.numToUint8=Bt.isEmptyData=Bt.convertToBuffer=void 0;var SG=vP();Object.defineProperty(Bt,"convertToBuffer",{enumerable:!0,get:function(){return SG.convertToBuffer}});var bG=wP();Object.defineProperty(Bt,"isEmptyData",{enumerable:!0,get:function(){return bG.isEmptyData}});var EG=xP();Object.defineProperty(Bt,"numToUint8",{enumerable:!0,get:function(){return EG.numToUint8}});var PG=kP();Object.defineProperty(Bt,"uint32ArrayFrom",{enumerable:!0,get:function(){return PG.uint32ArrayFrom}})});var NP=m(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.AwsCrc32=void 0;var AP=(Sp(),Y(Cp)),bp=ji(),OP=zi(),vG=function(){function e(){this.crc32=new OP.Crc32}return e.prototype.update=function(n){(0,bp.isEmptyData)(n)||this.crc32.update((0,bp.convertToBuffer)(n))},e.prototype.digest=function(){return AP.__awaiter(this,void 0,void 0,function(){return AP.__generator(this,function(n){return[2,(0,bp.numToUint8)(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new OP.Crc32},e}();Nc.AwsCrc32=vG});var zi=m(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.AwsCrc32=An.Crc32=An.crc32=void 0;var wG=(Sp(),Y(Cp)),xG=ji();function kG(e){return new IP().update(e).digest()}An.crc32=kG;var IP=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(n){var t,r;try{for(var o=wG.__values(n),s=o.next();!s.done;s=o.next()){var c=s.value;this.checksum=this.checksum>>>8^OG[(this.checksum^c)&255]}}catch(i){t={error:i}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();An.Crc32=IP;var AG=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],OG=(0,xG.uint32ArrayFrom)(AG),NG=NP();Object.defineProperty(An,"AwsCrc32",{enumerable:!0,get:function(){return NG.AwsCrc32}})});var Pp=m((eEe,MP)=>{var Ic=Object.defineProperty,IG=Object.getOwnPropertyDescriptor,RG=Object.getOwnPropertyNames,TG=Object.prototype.hasOwnProperty,RP=(e,n)=>Ic(e,"name",{value:n,configurable:!0}),BG=(e,n)=>{for(var t in n)Ic(e,t,{get:n[t],enumerable:!0})},qG=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of RG(n))!TG.call(e,o)&&o!==t&&Ic(e,o,{get:()=>n[o],enumerable:!(r=IG(n,o))||r.enumerable});return e},DG=e=>qG(Ic({},"__esModule",{value:!0}),e),TP={};BG(TP,{fromHex:()=>qP,toHex:()=>DP});MP.exports=DG(TP);var BP={},Ep={};for(let e=0;e<256;e++){let n=e.toString(16).toLowerCase();n.length===1&&(n=`0${n}`),BP[e]=n,Ep[n]=e}function qP(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let n=new Uint8Array(e.length/2);for(let t=0;t{var Tc=Object.defineProperty,MG=Object.getOwnPropertyDescriptor,FG=Object.getOwnPropertyNames,LG=Object.prototype.hasOwnProperty,nn=(e,n)=>Tc(e,"name",{value:n,configurable:!0}),jG=(e,n)=>{for(var t in n)Tc(e,t,{get:n[t],enumerable:!0})},zG=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of FG(n))!LG.call(e,o)&&o!==t&&Tc(e,o,{get:()=>n[o],enumerable:!(r=MG(n,o))||r.enumerable});return e},UG=e=>zG(Tc({},"__esModule",{value:!0}),e),LP={};jG(LP,{EventStreamCodec:()=>t2,HeaderMarshaller:()=>GP,Int64:()=>Rc,MessageDecoderStream:()=>n2,MessageEncoderStream:()=>r2,SmithyMessageDecoderStream:()=>o2,SmithyMessageEncoderStream:()=>s2});JP.exports=UG(LP);var GG=zi(),cr=Pp(),jP=class zP{constructor(n){if(this.bytes=n,n.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(n){if(n>9223372036854776e3||n<-9223372036854776e3)throw new Error(`${n} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,o=Math.abs(Math.round(n));r>-1&&o>0;r--,o/=256)t[r]=o;return n<0&&vp(t),new zP(t)}valueOf(){let n=this.bytes.slice(0),t=n[0]&128;return t&&vp(n),parseInt((0,cr.toHex)(n),16)*(t?-1:1)}toString(){return String(this.valueOf())}};nn(jP,"Int64");var Rc=jP;function vp(e){for(let n=0;n<8;n++)e[n]^=255;for(let n=7;n>-1&&(e[n]++,e[n]===0);n--);}nn(vp,"negate");var UP=class{constructor(n,t){this.toUtf8=n,this.fromUtf8=t}format(n){let t=[];for(let s of Object.keys(n)){let c=this.fromUtf8(s);t.push(Uint8Array.from([c.byteLength]),c,this.formatHeaderValue(n[s]))}let r=new Uint8Array(t.reduce((s,c)=>s+c.byteLength,0)),o=0;for(let s of t)r.set(s,o),o+=s.byteLength;return r}formatHeaderValue(n){switch(n.type){case"boolean":return Uint8Array.from([n.value?0:1]);case"byte":return Uint8Array.from([2,n.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,n.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,n.value,!1),new Uint8Array(r.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(n.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+n.value.byteLength));s.setUint8(0,6),s.setUint16(1,n.value.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(n.value,3),c;case"string":let i=this.fromUtf8(n.value),u=new DataView(new ArrayBuffer(3+i.byteLength));u.setUint8(0,7),u.setUint16(1,i.byteLength,!1);let l=new Uint8Array(u.buffer);return l.set(i,3),l;case"timestamp":let a=new Uint8Array(9);return a[0]=8,a.set(Rc.fromNumber(n.value.valueOf()).bytes,1),a;case"uuid":if(!QG.test(n.value))throw new Error(`Invalid UUID received: ${n.value}`);let y=new Uint8Array(17);return y[0]=9,y.set((0,cr.fromHex)(n.value.replace(/\-/g,"")),1),y}}parse(n){let t={},r=0;for(;r{var Bc=Object.defineProperty,i2=Object.getOwnPropertyDescriptor,a2=Object.getOwnPropertyNames,c2=Object.prototype.hasOwnProperty,ZP=(e,n)=>Bc(e,"name",{value:n,configurable:!0}),d2=(e,n)=>{for(var t in n)Bc(e,t,{get:n[t],enumerable:!0})},l2=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of a2(n))!c2.call(e,o)&&o!==t&&Bc(e,o,{get:()=>n[o],enumerable:!(r=i2(n,o))||r.enumerable});return e},u2=e=>l2(Bc({},"__esModule",{value:!0}),e),e0={};d2(e0,{getSmithyContext:()=>m2,normalizeProvider:()=>p2});t0.exports=u2(e0);var QP=w(),m2=ZP(e=>e[QP.SMITHY_CONTEXT_KEY]||(e[QP.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),p2=ZP(e=>{if(typeof e=="function")return e;let n=Promise.resolve(e);return()=>n},"normalizeProvider")});var Np=m((lEe,h0)=>{var jc=Object.defineProperty,f2=Object.getOwnPropertyDescriptor,y2=Object.getOwnPropertyNames,g2=Object.prototype.hasOwnProperty,$e=(e,n)=>jc(e,"name",{value:n,configurable:!0}),h2=(e,n)=>{for(var t in n)jc(e,t,{get:n[t],enumerable:!0})},_2=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of y2(n))!g2.call(e,o)&&o!==t&&jc(e,o,{get:()=>n[o],enumerable:!(r=f2(n,o))||r.enumerable});return e},C2=e=>_2(jc({},"__esModule",{value:!0}),e),s0={};h2(s0,{SignatureV4:()=>H2,clearCredentialCache:()=>M2,createScope:()=>Fc,getCanonicalHeaders:()=>Ap,getCanonicalQuery:()=>p0,getPayloadHash:()=>Lc,getSigningKey:()=>m0,moveHeadersToQuery:()=>y0,prepareRequest:()=>Op});h0.exports=C2(s0);var S2=wp(),n0=Tr(),Ui=yt(),b2="X-Amz-Algorithm",E2="X-Amz-Credential",i0="X-Amz-Date",P2="X-Amz-SignedHeaders",v2="X-Amz-Expires",a0="X-Amz-Signature",c0="X-Amz-Security-Token",d0="authorization",l0=i0.toLowerCase(),w2="date",x2=[d0,l0,w2],k2=a0.toLowerCase(),kp="x-amz-content-sha256",A2=c0.toLowerCase(),O2={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},N2=/^proxy-/,I2=/^sec-/,xp="AWS4-HMAC-SHA256",R2="AWS4-HMAC-SHA256-PAYLOAD",T2="UNSIGNED-PAYLOAD",B2=50,u0="aws4_request",q2=60*60*24*7,Br=Pp(),D2=yt(),qr={},Mc=[],Fc=$e((e,n,t)=>`${e}/${n}/${t}/${u0}`,"createScope"),m0=$e(async(e,n,t,r,o)=>{let s=await r0(e,n.secretAccessKey,n.accessKeyId),c=`${t}:${r}:${o}:${(0,Br.toHex)(s)}:${n.sessionToken}`;if(c in qr)return qr[c];for(Mc.push(c);Mc.length>B2;)delete qr[Mc.shift()];let i=`AWS4${n.secretAccessKey}`;for(let u of[t,r,o,u0])i=await r0(e,i,u);return qr[c]=i},"getSigningKey"),M2=$e(()=>{Mc.length=0,Object.keys(qr).forEach(e=>{delete qr[e]})},"clearCredentialCache"),r0=$e((e,n,t)=>{let r=new e(n);return r.update((0,D2.toUint8Array)(t)),r.digest()},"hmac"),Ap=$e(({headers:e},n,t)=>{let r={};for(let o of Object.keys(e).sort()){if(e[o]==null)continue;let s=o.toLowerCase();(s in O2||n!=null&&n.has(s)||N2.test(s)||I2.test(s))&&(!t||t&&!t.has(s))||(r[s]=e[o].trim().replace(/\s+/g," "))}return r},"getCanonicalHeaders"),qc=Wm(),p0=$e(({query:e={}})=>{let n=[],t={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===k2)continue;n.push(r);let o=e[r];typeof o=="string"?t[r]=`${(0,qc.escapeUri)(r)}=${(0,qc.escapeUri)(o)}`:Array.isArray(o)&&(t[r]=o.slice(0).reduce((s,c)=>s.concat([`${(0,qc.escapeUri)(r)}=${(0,qc.escapeUri)(c)}`]),[]).sort().join("&"))}return n.map(r=>t[r]).filter(r=>r).join("&")},"getCanonicalQuery"),F2=oc(),L2=yt(),Lc=$e(async({headers:e,body:n},t)=>{for(let r of Object.keys(e))if(r.toLowerCase()===kp)return e[r];if(n==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof n=="string"||ArrayBuffer.isView(n)||(0,F2.isArrayBuffer)(n)){let r=new t;return r.update((0,L2.toUint8Array)(n)),(0,Br.toHex)(await r.digest())}return T2},"getPayloadHash"),j2=$e((e,n)=>{e=e.toLowerCase();for(let t of Object.keys(n))if(e===t.toLowerCase())return!0;return!1},"hasHeader"),f0=$e(({headers:e,query:n,...t})=>({...t,headers:{...e},query:n?z2(n):void 0}),"cloneRequest"),z2=$e(e=>Object.keys(e).reduce((n,t)=>{let r=e[t];return{...n,[t]:Array.isArray(r)?[...r]:r}},{}),"cloneQuery"),y0=$e((e,n={})=>{var t;let{headers:r,query:o={}}=typeof e.clone=="function"?e.clone():f0(e);for(let s of Object.keys(r)){let c=s.toLowerCase();c.slice(0,6)==="x-amz-"&&!((t=n.unhoistableHeaders)!=null&&t.has(c))&&(o[s]=r[s],delete r[s])}return{...e,headers:r,query:o}},"moveHeadersToQuery"),Op=$e(e=>{e=typeof e.clone=="function"?e.clone():f0(e);for(let n of Object.keys(e.headers))x2.indexOf(n.toLowerCase())>-1&&delete e.headers[n];return e},"prepareRequest"),U2=$e(e=>G2(e).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),G2=$e(e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e,"toDate"),g0=class{constructor({applyChecksum:n,credentials:t,region:r,service:o,sha256:s,uriEscapePath:c=!0}){this.headerMarshaller=new S2.HeaderMarshaller(Ui.toUtf8,Ui.fromUtf8),this.service=o,this.sha256=s,this.uriEscapePath=c,this.applyChecksum=typeof n=="boolean"?n:!0,this.regionProvider=(0,n0.normalizeProvider)(r),this.credentialProvider=(0,n0.normalizeProvider)(t)}async presign(n,t={}){let{signingDate:r=new Date,expiresIn:o=3600,unsignableHeaders:s,unhoistableHeaders:c,signableHeaders:i,signingRegion:u,signingService:l}=t,a=await this.credentialProvider();this.validateResolvedCredentials(a);let y=u??await this.regionProvider(),{longDate:g,shortDate:C}=Dc(r);if(o>q2)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let v=Fc(C,y,l??this.service),A=y0(Op(n),{unhoistableHeaders:c});a.sessionToken&&(A.query[c0]=a.sessionToken),A.query[b2]=xp,A.query[E2]=`${a.accessKeyId}/${v}`,A.query[i0]=g,A.query[v2]=o.toString(10);let E=Ap(A,s,i);return A.query[P2]=o0(E),A.query[a0]=await this.getSignature(g,v,this.getSigningKey(a,y,C,l),this.createCanonicalRequest(A,E,await Lc(n,this.sha256))),A}async sign(n,t){return typeof n=="string"?this.signString(n,t):n.headers&&n.payload?this.signEvent(n,t):n.message?this.signMessage(n,t):this.signRequest(n,t)}async signEvent({headers:n,payload:t},{signingDate:r=new Date,priorSignature:o,signingRegion:s,signingService:c}){let i=s??await this.regionProvider(),{shortDate:u,longDate:l}=Dc(r),a=Fc(u,i,c??this.service),y=await Lc({headers:{},body:t},this.sha256),g=new this.sha256;g.update(n);let C=(0,Br.toHex)(await g.digest()),v=[R2,l,a,o,C,y].join(` -`);return this.signString(v,{signingDate:r,signingRegion:i,signingService:c})}async signMessage(n,{signingDate:t=new Date,signingRegion:r,signingService:o}){return this.signEvent({headers:this.headerMarshaller.format(n.message.headers),payload:n.message.body},{signingDate:t,signingRegion:r,signingService:o,priorSignature:n.priorSignature}).then(c=>({message:n.message,signature:c}))}async signString(n,{signingDate:t=new Date,signingRegion:r,signingService:o}={}){let s=await this.credentialProvider();this.validateResolvedCredentials(s);let c=r??await this.regionProvider(),{shortDate:i}=Dc(t),u=new this.sha256(await this.getSigningKey(s,c,i,o));return u.update((0,Ui.toUint8Array)(n)),(0,Br.toHex)(await u.digest())}async signRequest(n,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:o,signingRegion:s,signingService:c}={}){let i=await this.credentialProvider();this.validateResolvedCredentials(i);let u=s??await this.regionProvider(),l=Op(n),{longDate:a,shortDate:y}=Dc(t),g=Fc(y,u,c??this.service);l.headers[l0]=a,i.sessionToken&&(l.headers[A2]=i.sessionToken);let C=await Lc(l,this.sha256);!j2(kp,l.headers)&&this.applyChecksum&&(l.headers[kp]=C);let v=Ap(l,o,r),A=await this.getSignature(a,g,this.getSigningKey(i,u,y,c),this.createCanonicalRequest(l,v,C));return l.headers[d0]=`${xp} Credential=${i.accessKeyId}/${g}, SignedHeaders=${o0(v)}, Signature=${A}`,l}createCanonicalRequest(n,t,r){let o=Object.keys(t).sort();return`${n.method} +`),"stackTraceWarning"),Mi={warn:console.warn},BU=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],pp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function KE(e){let n=e.getUTCFullYear(),t=e.getUTCMonth(),r=e.getUTCDay(),o=e.getUTCDate(),s=e.getUTCHours(),c=e.getUTCMinutes(),i=e.getUTCSeconds(),u=o<10?`0${o}`:`${o}`,l=s<10?`0${s}`:`${s}`,a=c<10?`0${c}`:`${c}`,y=i<10?`0${i}`:`${i}`;return`${BU[r]}, ${u} ${pp[t]} ${n} ${l}:${a}:${y} GMT`}U(KE,"dateToUtcString");var qU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),DU=U(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let n=qU.exec(e);if(!n)throw new TypeError("Invalid RFC-3339 date-time value");let[t,r,o,s,c,i,u,l]=n,a=wr(xr(r)),y=Rt(o,"month",1,12),g=Rt(s,"day",1,31);return Bi(a,y,g,{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l})},"parseRfc3339DateTime"),MU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),FU=U(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let n=MU.exec(e);if(!n)throw new TypeError("Invalid RFC-3339 date-time value");let[t,r,o,s,c,i,u,l,a]=n,y=wr(xr(r)),g=Rt(o,"month",1,12),C=Rt(s,"day",1,31),v=Bi(y,g,C,{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l});return a.toUpperCase()!="Z"&&v.setTime(v.getTime()-JU(a)),v},"parseRfc3339DateTimeWithOffset"),LU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),jU=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),zU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),UU=U(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let n=LU.exec(e);if(n){let[t,r,o,s,c,i,u,l]=n;return Bi(wr(xr(s)),op(o),Rt(r,"day",1,31),{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l})}if(n=jU.exec(e),n){let[t,r,o,s,c,i,u,l]=n;return KU(Bi(HU(s),op(o),Rt(r,"day",1,31),{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l}))}if(n=zU.exec(e),n){let[t,r,o,s,c,i,u,l]=n;return Bi(wr(xr(l)),op(r),Rt(o.trimLeft(),"day",1,31),{hours:s,minutes:c,seconds:i,fractionalMilliseconds:u})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),GU=U(e=>{if(e==null)return;let n;if(typeof e=="number")n=e;else if(typeof e=="string")n=up(e);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(n)||n===1/0||n===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(n*1e3))},"parseEpochTimestamp"),Bi=U((e,n,t,r)=>{let o=n-1;return XU(e,o,t),new Date(Date.UTC(e,o,t,Rt(r.hours,"hour",0,23),Rt(r.minutes,"minute",0,59),Rt(r.seconds,"seconds",0,60),YU(r.fractionalMilliseconds)))},"buildDate"),HU=U(e=>{let n=new Date().getUTCFullYear(),t=Math.floor(n/100)*100+wr(xr(e));return te.getTime()-new Date().getTime()>$U?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,"adjustRfc850Year"),op=U(e=>{let n=pp.indexOf(e);if(n<0)throw new TypeError(`Invalid month: ${e}`);return n+1},"parseMonthByShortName"),VU=[31,28,31,30,31,30,31,31,30,31,30,31],XU=U((e,n,t)=>{let r=VU[n];if(n===1&&WU(e)&&(r=29),t>r)throw new TypeError(`Invalid day for ${pp[n]} in ${e}: ${t}`)},"validateDayOfMonth"),WU=U(e=>e%4===0&&(e%100!==0||e%400===0),"isLeapYear"),Rt=U((e,n,t,r)=>{let o=$E(xr(e));if(or)throw new TypeError(`${n} must be between ${t} and ${r}, inclusive`);return o},"parseDateValue"),YU=U(e=>e==null?0:UE("0."+e)*1e3,"parseMilliseconds"),JU=U(e=>{let n=e[0],t=1;if(n=="+")t=1;else if(n=="-")t=-1;else throw new TypeError(`Offset direction, ${n}, must be "+" or "-"`);let r=Number(e.substring(1,3)),o=Number(e.substring(4,6));return t*(r*60+o)*60*1e3},"parseOffsetToMilliseconds"),xr=U(e=>{let n=0;for(;n{Object.entries(n).filter(([,r])=>r!==void 0).forEach(([r,o])=>{(e[r]==null||e[r]==="")&&(e[r]=o)});let t=e.message||e.Message||"UnknownError";return e.message=t,delete e.Message,e},"decorateServiceException"),YE=U(({output:e,parsedBody:n,exceptionCtor:t,errorCode:r})=>{let o=e3(e),s=o.httpStatusCode?o.httpStatusCode+"":void 0,c=new t({name:(n==null?void 0:n.code)||(n==null?void 0:n.Code)||r||s||"UnknownError",$fault:"client",$metadata:o});throw WE(c,n)},"throwDefaultError"),ZU=U(e=>({output:n,parsedBody:t,errorCode:r})=>{YE({output:n,parsedBody:t,exceptionCtor:e,errorCode:r})},"withBaseException"),e3=U(e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),"deserializeMetadata"),t3=U(e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},"loadConfigsForDefaultMode"),TE=!1,n3=U(e=>{e&&!TE&&parseInt(e.substring(1,e.indexOf(".")))<14&&(TE=!0)},"emitWarningIfUnsupportedVersion"),r3=U(e=>{let n=[];for(let t in sp.AlgorithmId){let r=sp.AlgorithmId[t];e[r]!==void 0&&n.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}return{_checksumAlgorithms:n,addChecksumAlgorithm(t){this._checksumAlgorithms.push(t)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),o3=U(e=>{let n={};return e.checksumAlgorithms().forEach(t=>{n[t.algorithmId()]=t.checksumConstructor()}),n},"resolveChecksumRuntimeConfig"),s3=U(e=>{let n=e.retryStrategy;return{setRetryStrategy(t){n=t},retryStrategy(){return n}}},"getRetryConfiguration"),i3=U(e=>{let n={};return n.retryStrategy=e.retryStrategy(),n},"resolveRetryRuntimeConfig"),JE=U(e=>({...r3(e),...s3(e)}),"getDefaultExtensionConfiguration"),a3=JE,c3=U(e=>({...o3(e),...i3(e)}),"resolveDefaultRuntimeConfig");function bc(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(n){return"%"+n.charCodeAt(0).toString(16).toUpperCase()})}U(bc,"extendedEncodeURIComponent");var d3=U(e=>Array.isArray(e)?e:[e],"getArrayIfSingleItem"),QE=U(e=>{let n="#text";for(let t in e)e.hasOwnProperty(t)&&e[t][n]!==void 0?e[t]=e[t][n]:typeof e[t]=="object"&&e[t]!==null&&(e[t]=QE(e[t]));return e},"getValueFromTextNode"),Fi=U(function(){let e=Object.getPrototypeOf(this).constructor,n=Function.bind.apply(String,[null,...arguments]),t=new n;return Object.setPrototypeOf(t,e.prototype),t},"StringWrapper");Fi.prototype=Object.create(String.prototype,{constructor:{value:Fi,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Fi,String);var ZE=class _c extends Fi{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(n){return n instanceof _c?n:n instanceof String||typeof n=="string"?new _c(n):new _c(JSON.stringify(n))}};U(ZE,"LazyJsonString");var l3=ZE;function fp(e,n,t){let r,o,s;if(typeof n>"u"&&typeof t>"u")r={},s=e;else{if(r=e,typeof n=="function")return o=n,s=t,p3(r,o,s);s=n}for(let c of Object.keys(s)){if(!Array.isArray(s[c])){r[c]=s[c];continue}eP(r,null,s,c)}return r}U(fp,"map");var u3=U(e=>{let n={};for(let[t,r]of Object.entries(e||{}))n[t]=[,r];return n},"convertMap"),m3=U((e,n)=>{let t={};for(let r in n)eP(t,e,n,r);return t},"take"),p3=U((e,n,t)=>fp(e,Object.entries(t).reduce((r,[o,s])=>(Array.isArray(s)?r[o]=s:typeof s=="function"?r[o]=[n,s()]:r[o]=[n,s],r),{})),"mapWithFilter"),eP=U((e,n,t,r)=>{if(n!==null){let c=t[r];typeof c=="function"&&(c=[,c]);let[i=f3,u=y3,l=r]=c;(typeof i=="function"&&i(n[l])||typeof i!="function"&&i)&&(e[r]=u(n[l]));return}let[o,s]=t[r];if(typeof s=="function"){let c,i=o===void 0&&(c=s())!=null,u=typeof o=="function"&&!!o(void 0)||typeof o!="function"&&!!o;i?e[r]=c:u&&(e[r]=s())}else{let c=o===void 0&&s!=null,i=typeof o=="function"&&!!o(s)||typeof o!="function"&&!!o;(c||i)&&(e[r]=s)}},"applyInstruction"),f3=U(e=>e!=null,"nonNullish"),y3=U(e=>e,"pass"),g3=U((e,n,t,r,o,s)=>{if(n!=null&&n[t]!==void 0){let c=r();if(c.length<=0)throw new Error("Empty value provided for input HTTP label: "+t+".");e=e.replace(o,s?c.split("/").map(i=>bc(i)).join("/"):bc(c))}else throw new Error("No value provided for input HTTP label: "+t+".");return e},"resolvedPath"),h3=U(e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}},"serializeFloat"),dp=U(e=>{if(e==null)return{};if(Array.isArray(e))return e.filter(n=>n!=null).map(dp);if(typeof e=="object"){let n={};for(let t of Object.keys(e))e[t]!=null&&(n[t]=dp(e[t]));return n}return e},"_json");function tP(e,n,t){if(t<=0||!Number.isInteger(t))throw new Error("Invalid number of delimiters ("+t+") for splitEvery.");let r=e.split(n);if(t===1)return r;let o=[],s="";for(let c=0;c{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.getCheckContentLengthHeaderPlugin=en.checkContentLengthHeaderMiddlewareOptions=en.checkContentLengthHeader=void 0;var _3=Ne(),C3=b(),S3="content-length";function rP(){return(e,n)=>async t=>{var r;let{request:o}=t;if(_3.HttpRequest.isInstance(o)&&!o.headers[S3]){let s="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof((r=n==null?void 0:n.logger)===null||r===void 0?void 0:r.warn)=="function"&&!(n.logger instanceof C3.NoOpLogger)?n.logger.warn(s):console.warn(s)}return e({...t})}}en.checkContentLengthHeader=rP;en.checkContentLengthHeaderMiddlewareOptions={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0};var b3=e=>({applyToStack:n=>{n.add(rP(),en.checkContentLengthHeaderMiddlewareOptions)}});en.getCheckContentLengthHeaderPlugin=b3});var sP=m(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.resolveS3Config=void 0;var E3=e=>{var n,t,r;return{...e,forcePathStyle:(n=e.forcePathStyle)!==null&&n!==void 0?n:!1,useAccelerateEndpoint:(t=e.useAccelerateEndpoint)!==null&&t!==void 0?t:!1,disableMultiregionAccessPoints:(r=e.disableMultiregionAccessPoints)!==null&&r!==void 0?r:!1}};Pc.resolveS3Config=E3});var aP=m(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getThrow200ExceptionsPlugin=Tt.throw200ExceptionsMiddlewareOptions=Tt.throw200ExceptionsMiddleware=void 0;var P3=Ne(),v3=e=>n=>async t=>{let r=await n(t),{response:o}=r;if(!P3.HttpResponse.isInstance(o))return r;let{statusCode:s,body:c}=o;if(s<200||s>=300)return r;let i=await iP(c,e),u=await w3(i,e);if(i.length===0){let l=new Error("S3 aborted request");throw l.name="InternalError",l}return u&&u.match("")&&(o.statusCode=400),o.body=i,r};Tt.throw200ExceptionsMiddleware=v3;var iP=(e=new Uint8Array,n)=>e instanceof Uint8Array?Promise.resolve(e):n.streamCollector(e)||Promise.resolve(new Uint8Array),w3=(e,n)=>iP(e,n).then(t=>n.utf8Encoder(t));Tt.throw200ExceptionsMiddlewareOptions={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0};var x3=e=>({applyToStack:n=>{n.addRelativeTo((0,Tt.throw200ExceptionsMiddleware)(e),Tt.throw200ExceptionsMiddlewareOptions)}});Tt.getThrow200ExceptionsPlugin=x3});var yp=m(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.build=kn.parse=kn.validate=void 0;var k3=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;kn.validate=k3;var A3=e=>{let n=e.split(":");if(n.length<6||n[0]!=="arn")throw new Error("Malformed ARN");let[,t,r,o,s,...c]=n;return{partition:t,service:r,region:o,accountId:s,resource:c.join(":")}};kn.parse=A3;var O3=e=>{let{partition:n="aws",service:t,region:r,accountId:o,resource:s}=e;if([t,r,o,s].some(c=>typeof c!="string"))throw new Error("Input ARN object is invalid");return`arn:${n}:${t}:${r}:${o}:${s}`};kn.build=O3});var dP=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.getValidateBucketNamePlugin=tn.validateBucketNameMiddlewareOptions=tn.validateBucketNameMiddleware=void 0;var N3=yp();function cP(){return e=>async n=>{let{input:{Bucket:t}}=n;if(typeof t=="string"&&!(0,N3.validate)(t)&&t.indexOf("/")>=0){let r=new Error(`Bucket name shouldn't contain '/', received '${t}'`);throw r.name="InvalidBucketName",r}return e({...n})}}tn.validateBucketNameMiddleware=cP;tn.validateBucketNameMiddlewareOptions={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0};var I3=e=>({applyToStack:n=>{n.add(cP(),tn.validateBucketNameMiddlewareOptions)}});tn.getValidateBucketNamePlugin=I3});var Or=m(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var vc=(te(),Y(ee));vc.__exportStar(oP(),Ar);vc.__exportStar(sP(),Ar);vc.__exportStar(aP(),Ar);vc.__exportStar(dP(),Ar)});var xe=m(($be,hP)=>{var wc=Object.defineProperty,R3=Object.getOwnPropertyDescriptor,T3=Object.getOwnPropertyNames,B3=Object.prototype.hasOwnProperty,ar=(e,n)=>wc(e,"name",{value:n,configurable:!0}),q3=(e,n)=>{for(var t in n)wc(e,t,{get:n[t],enumerable:!0})},D3=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of T3(n))!B3.call(e,o)&&o!==t&&wc(e,o,{get:()=>n[o],enumerable:!(r=R3(n,o))||r.enumerable});return e},M3=e=>D3(wc({},"__esModule",{value:!0}),e),lP={};q3(lP,{CredentialsProviderError:()=>F3,ProviderError:()=>xc,TokenProviderError:()=>L3,chain:()=>j3,fromStatic:()=>z3,memoize:()=>U3});hP.exports=M3(lP);var uP=class mP extends Error{constructor(n,t=!0){super(n),this.tryNextLink=t,this.name="ProviderError",Object.setPrototypeOf(this,mP.prototype)}static from(n,t=!0){return Object.assign(new this(n.message,t),n)}};ar(uP,"ProviderError");var xc=uP,pP=class fP extends xc{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="CredentialsProviderError",Object.setPrototypeOf(this,fP.prototype)}};ar(pP,"CredentialsProviderError");var F3=pP,yP=class gP extends xc{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="TokenProviderError",Object.setPrototypeOf(this,gP.prototype)}};ar(yP,"TokenProviderError");var L3=yP,j3=ar((...e)=>async()=>{if(e.length===0)throw new xc("No providers in chain");let n;for(let t of e)try{return await t()}catch(r){if(n=r,r!=null&&r.tryNextLink)continue;throw r}throw n},"chain"),z3=ar(e=>()=>Promise.resolve(e),"fromStatic"),U3=ar((e,n,t)=>{let r,o,s,c=!1,i=ar(async()=>{o||(o=e());try{r=await o,s=!0,c=!1}finally{o=void 0}return r},"coalesceProvider");return n===void 0?async u=>((!s||u!=null&&u.forceRefresh)&&(r=await i()),r):async u=>((!s||u!=null&&u.forceRefresh)&&(r=await i()),c?r:t&&!t(r)?(c=!0,r):(n(r)&&await i(),r))},"memoize")});var Cp={};Ai(Cp,{__assign:()=>hp,__asyncDelegator:()=>tG,__asyncGenerator:()=>eG,__asyncValues:()=>nG,__await:()=>Li,__awaiter:()=>X3,__classPrivateFieldGet:()=>iG,__classPrivateFieldSet:()=>aG,__createBinding:()=>Y3,__decorate:()=>$3,__exportStar:()=>J3,__extends:()=>G3,__generator:()=>W3,__importDefault:()=>sG,__importStar:()=>oG,__makeTemplateObject:()=>rG,__metadata:()=>V3,__param:()=>K3,__read:()=>_P,__rest:()=>H3,__spread:()=>Q3,__spreadArrays:()=>Z3,__values:()=>_p});function G3(e,n){gp(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function H3(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(c=e[i])&&(s=(o<3?c(s):o>3?c(n,t,s):c(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function K3(e,n){return function(t,r){n(t,r,e)}}function V3(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)}function X3(e,n,t,r){function o(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function i(a){try{l(r.next(a))}catch(y){c(y)}}function u(a){try{l(r.throw(a))}catch(y){c(y)}}function l(a){a.done?s(a.value):o(a.value).then(i,u)}l((r=r.apply(e,n||[])).next())})}function W3(e,n){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,c;return c={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function i(l){return function(a){return u([l,a])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,o&&(s=l[0]&2?o.return:l[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;switch(o=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function _P(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,s=[],c;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){c={error:i}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return s}function Q3(){for(var e=[],n=0;n1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(v){y(s[0][3],v)}}function u(g){g.value instanceof Li?Promise.resolve(g.value.v).then(l,a):y(s[0][2],g)}function l(g){i("next",g)}function a(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function tG(e){var n,t;return n={},r("next"),r("throw",function(o){throw o}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(o,s){n[o]=e[o]?function(c){return(t=!t)?{value:Li(e[o](c)),done:o==="return"}:s?s(c):c}:s}}function nG(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof _p=="function"?_p(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(c){return new Promise(function(i,u){c=e[s](c),o(i,u,c.done,c.value)})}}function o(s,c,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},c)}}function rG(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function oG(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function sG(e){return e&&e.__esModule?e:{default:e}}function iG(e,n){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return n.get(e)}function aG(e,n,t){if(!n.has(e))throw new TypeError("attempted to set private field on non-instance");return n.set(e,t),t}var gp,hp,Sp=Le(()=>{gp=function(e,n){return gp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},gp(e,n)};hp=function(){return hp=Object.assign||function(n){for(var t,r=1,o=arguments.length;r{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.toUtf8=Nr.fromUtf8=void 0;var cG=e=>{let n=[];for(let t=0,r=e.length;t>6|192,o&63|128);else if(t+1>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else n.push(o>>12|224,o>>6&63|128,o&63|128)}return Uint8Array.from(n)};Nr.fromUtf8=cG;var dG=e=>{let n="";for(let t=0,r=e.length;ti.toString(16)).join("%");n+=decodeURIComponent(c)}else n+=String.fromCharCode((o&15)<<12|(e[++t]&63)<<6|e[++t]&63)}return n};Nr.toUtf8=dG});var SP=m(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.toUtf8=Ir.fromUtf8=void 0;function lG(e){return new TextEncoder().encode(e)}Ir.fromUtf8=lG;function uG(e){return new TextDecoder("utf-8").decode(e)}Ir.toUtf8=uG});var PP=m(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.toUtf8=Rr.fromUtf8=void 0;var bP=CP(),EP=SP(),mG=e=>typeof TextEncoder=="function"?(0,EP.fromUtf8)(e):(0,bP.fromUtf8)(e);Rr.fromUtf8=mG;var pG=e=>typeof TextDecoder=="function"?(0,EP.toUtf8)(e):(0,bP.toUtf8)(e);Rr.toUtf8=pG});var vP=m(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.convertToBuffer=void 0;var fG=PP(),yG=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:fG.fromUtf8;function gG(e){return e instanceof Uint8Array?e:typeof e=="string"?yG(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}kc.convertToBuffer=gG});var wP=m(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.isEmptyData=void 0;function hG(e){return typeof e=="string"?e.length===0:e.byteLength===0}Ac.isEmptyData=hG});var xP=m(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.numToUint8=void 0;function _G(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}Oc.numToUint8=_G});var kP=m(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.uint32ArrayFrom=void 0;function CG(e){if(!Uint32Array.from){for(var n=new Uint32Array(e.length),t=0;t{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.uint32ArrayFrom=Bt.numToUint8=Bt.isEmptyData=Bt.convertToBuffer=void 0;var SG=vP();Object.defineProperty(Bt,"convertToBuffer",{enumerable:!0,get:function(){return SG.convertToBuffer}});var bG=wP();Object.defineProperty(Bt,"isEmptyData",{enumerable:!0,get:function(){return bG.isEmptyData}});var EG=xP();Object.defineProperty(Bt,"numToUint8",{enumerable:!0,get:function(){return EG.numToUint8}});var PG=kP();Object.defineProperty(Bt,"uint32ArrayFrom",{enumerable:!0,get:function(){return PG.uint32ArrayFrom}})});var NP=m(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.AwsCrc32=void 0;var AP=(Sp(),Y(Cp)),bp=ji(),OP=zi(),vG=function(){function e(){this.crc32=new OP.Crc32}return e.prototype.update=function(n){(0,bp.isEmptyData)(n)||this.crc32.update((0,bp.convertToBuffer)(n))},e.prototype.digest=function(){return AP.__awaiter(this,void 0,void 0,function(){return AP.__generator(this,function(n){return[2,(0,bp.numToUint8)(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new OP.Crc32},e}();Ic.AwsCrc32=vG});var zi=m(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.AwsCrc32=An.Crc32=An.crc32=void 0;var wG=(Sp(),Y(Cp)),xG=ji();function kG(e){return new IP().update(e).digest()}An.crc32=kG;var IP=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(n){var t,r;try{for(var o=wG.__values(n),s=o.next();!s.done;s=o.next()){var c=s.value;this.checksum=this.checksum>>>8^OG[(this.checksum^c)&255]}}catch(i){t={error:i}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();An.Crc32=IP;var AG=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],OG=(0,xG.uint32ArrayFrom)(AG),NG=NP();Object.defineProperty(An,"AwsCrc32",{enumerable:!0,get:function(){return NG.AwsCrc32}})});var Pp=m((nEe,MP)=>{var Rc=Object.defineProperty,IG=Object.getOwnPropertyDescriptor,RG=Object.getOwnPropertyNames,TG=Object.prototype.hasOwnProperty,RP=(e,n)=>Rc(e,"name",{value:n,configurable:!0}),BG=(e,n)=>{for(var t in n)Rc(e,t,{get:n[t],enumerable:!0})},qG=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of RG(n))!TG.call(e,o)&&o!==t&&Rc(e,o,{get:()=>n[o],enumerable:!(r=IG(n,o))||r.enumerable});return e},DG=e=>qG(Rc({},"__esModule",{value:!0}),e),TP={};BG(TP,{fromHex:()=>qP,toHex:()=>DP});MP.exports=DG(TP);var BP={},Ep={};for(let e=0;e<256;e++){let n=e.toString(16).toLowerCase();n.length===1&&(n=`0${n}`),BP[e]=n,Ep[n]=e}function qP(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let n=new Uint8Array(e.length/2);for(let t=0;t{var Bc=Object.defineProperty,MG=Object.getOwnPropertyDescriptor,FG=Object.getOwnPropertyNames,LG=Object.prototype.hasOwnProperty,nn=(e,n)=>Bc(e,"name",{value:n,configurable:!0}),jG=(e,n)=>{for(var t in n)Bc(e,t,{get:n[t],enumerable:!0})},zG=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of FG(n))!LG.call(e,o)&&o!==t&&Bc(e,o,{get:()=>n[o],enumerable:!(r=MG(n,o))||r.enumerable});return e},UG=e=>zG(Bc({},"__esModule",{value:!0}),e),LP={};jG(LP,{EventStreamCodec:()=>t2,HeaderMarshaller:()=>GP,Int64:()=>Tc,MessageDecoderStream:()=>n2,MessageEncoderStream:()=>r2,SmithyMessageDecoderStream:()=>o2,SmithyMessageEncoderStream:()=>s2});JP.exports=UG(LP);var GG=zi(),cr=Pp(),jP=class zP{constructor(n){if(this.bytes=n,n.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(n){if(n>9223372036854776e3||n<-9223372036854776e3)throw new Error(`${n} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,o=Math.abs(Math.round(n));r>-1&&o>0;r--,o/=256)t[r]=o;return n<0&&vp(t),new zP(t)}valueOf(){let n=this.bytes.slice(0),t=n[0]&128;return t&&vp(n),parseInt((0,cr.toHex)(n),16)*(t?-1:1)}toString(){return String(this.valueOf())}};nn(jP,"Int64");var Tc=jP;function vp(e){for(let n=0;n<8;n++)e[n]^=255;for(let n=7;n>-1&&(e[n]++,e[n]===0);n--);}nn(vp,"negate");var UP=class{constructor(n,t){this.toUtf8=n,this.fromUtf8=t}format(n){let t=[];for(let s of Object.keys(n)){let c=this.fromUtf8(s);t.push(Uint8Array.from([c.byteLength]),c,this.formatHeaderValue(n[s]))}let r=new Uint8Array(t.reduce((s,c)=>s+c.byteLength,0)),o=0;for(let s of t)r.set(s,o),o+=s.byteLength;return r}formatHeaderValue(n){switch(n.type){case"boolean":return Uint8Array.from([n.value?0:1]);case"byte":return Uint8Array.from([2,n.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,n.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,n.value,!1),new Uint8Array(r.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(n.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+n.value.byteLength));s.setUint8(0,6),s.setUint16(1,n.value.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(n.value,3),c;case"string":let i=this.fromUtf8(n.value),u=new DataView(new ArrayBuffer(3+i.byteLength));u.setUint8(0,7),u.setUint16(1,i.byteLength,!1);let l=new Uint8Array(u.buffer);return l.set(i,3),l;case"timestamp":let a=new Uint8Array(9);return a[0]=8,a.set(Tc.fromNumber(n.value.valueOf()).bytes,1),a;case"uuid":if(!QG.test(n.value))throw new Error(`Invalid UUID received: ${n.value}`);let y=new Uint8Array(17);return y[0]=9,y.set((0,cr.fromHex)(n.value.replace(/\-/g,"")),1),y}}parse(n){let t={},r=0;for(;r{var qc=Object.defineProperty,i2=Object.getOwnPropertyDescriptor,a2=Object.getOwnPropertyNames,c2=Object.prototype.hasOwnProperty,ZP=(e,n)=>qc(e,"name",{value:n,configurable:!0}),d2=(e,n)=>{for(var t in n)qc(e,t,{get:n[t],enumerable:!0})},l2=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of a2(n))!c2.call(e,o)&&o!==t&&qc(e,o,{get:()=>n[o],enumerable:!(r=i2(n,o))||r.enumerable});return e},u2=e=>l2(qc({},"__esModule",{value:!0}),e),e0={};d2(e0,{getSmithyContext:()=>m2,normalizeProvider:()=>p2});t0.exports=u2(e0);var QP=w(),m2=ZP(e=>e[QP.SMITHY_CONTEXT_KEY]||(e[QP.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),p2=ZP(e=>{if(typeof e=="function")return e;let n=Promise.resolve(e);return()=>n},"normalizeProvider")});var Np=m((mEe,h0)=>{var zc=Object.defineProperty,f2=Object.getOwnPropertyDescriptor,y2=Object.getOwnPropertyNames,g2=Object.prototype.hasOwnProperty,$e=(e,n)=>zc(e,"name",{value:n,configurable:!0}),h2=(e,n)=>{for(var t in n)zc(e,t,{get:n[t],enumerable:!0})},_2=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of y2(n))!g2.call(e,o)&&o!==t&&zc(e,o,{get:()=>n[o],enumerable:!(r=f2(n,o))||r.enumerable});return e},C2=e=>_2(zc({},"__esModule",{value:!0}),e),s0={};h2(s0,{SignatureV4:()=>H2,clearCredentialCache:()=>M2,createScope:()=>Lc,getCanonicalHeaders:()=>Ap,getCanonicalQuery:()=>p0,getPayloadHash:()=>jc,getSigningKey:()=>m0,moveHeadersToQuery:()=>y0,prepareRequest:()=>Op});h0.exports=C2(s0);var S2=wp(),n0=Tr(),Ui=yt(),b2="X-Amz-Algorithm",E2="X-Amz-Credential",i0="X-Amz-Date",P2="X-Amz-SignedHeaders",v2="X-Amz-Expires",a0="X-Amz-Signature",c0="X-Amz-Security-Token",d0="authorization",l0=i0.toLowerCase(),w2="date",x2=[d0,l0,w2],k2=a0.toLowerCase(),kp="x-amz-content-sha256",A2=c0.toLowerCase(),O2={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},N2=/^proxy-/,I2=/^sec-/,xp="AWS4-HMAC-SHA256",R2="AWS4-HMAC-SHA256-PAYLOAD",T2="UNSIGNED-PAYLOAD",B2=50,u0="aws4_request",q2=60*60*24*7,Br=Pp(),D2=yt(),qr={},Fc=[],Lc=$e((e,n,t)=>`${e}/${n}/${t}/${u0}`,"createScope"),m0=$e(async(e,n,t,r,o)=>{let s=await r0(e,n.secretAccessKey,n.accessKeyId),c=`${t}:${r}:${o}:${(0,Br.toHex)(s)}:${n.sessionToken}`;if(c in qr)return qr[c];for(Fc.push(c);Fc.length>B2;)delete qr[Fc.shift()];let i=`AWS4${n.secretAccessKey}`;for(let u of[t,r,o,u0])i=await r0(e,i,u);return qr[c]=i},"getSigningKey"),M2=$e(()=>{Fc.length=0,Object.keys(qr).forEach(e=>{delete qr[e]})},"clearCredentialCache"),r0=$e((e,n,t)=>{let r=new e(n);return r.update((0,D2.toUint8Array)(t)),r.digest()},"hmac"),Ap=$e(({headers:e},n,t)=>{let r={};for(let o of Object.keys(e).sort()){if(e[o]==null)continue;let s=o.toLowerCase();(s in O2||n!=null&&n.has(s)||N2.test(s)||I2.test(s))&&(!t||t&&!t.has(s))||(r[s]=e[o].trim().replace(/\s+/g," "))}return r},"getCanonicalHeaders"),Dc=Wm(),p0=$e(({query:e={}})=>{let n=[],t={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===k2)continue;n.push(r);let o=e[r];typeof o=="string"?t[r]=`${(0,Dc.escapeUri)(r)}=${(0,Dc.escapeUri)(o)}`:Array.isArray(o)&&(t[r]=o.slice(0).reduce((s,c)=>s.concat([`${(0,Dc.escapeUri)(r)}=${(0,Dc.escapeUri)(c)}`]),[]).sort().join("&"))}return n.map(r=>t[r]).filter(r=>r).join("&")},"getCanonicalQuery"),F2=sc(),L2=yt(),jc=$e(async({headers:e,body:n},t)=>{for(let r of Object.keys(e))if(r.toLowerCase()===kp)return e[r];if(n==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof n=="string"||ArrayBuffer.isView(n)||(0,F2.isArrayBuffer)(n)){let r=new t;return r.update((0,L2.toUint8Array)(n)),(0,Br.toHex)(await r.digest())}return T2},"getPayloadHash"),j2=$e((e,n)=>{e=e.toLowerCase();for(let t of Object.keys(n))if(e===t.toLowerCase())return!0;return!1},"hasHeader"),f0=$e(({headers:e,query:n,...t})=>({...t,headers:{...e},query:n?z2(n):void 0}),"cloneRequest"),z2=$e(e=>Object.keys(e).reduce((n,t)=>{let r=e[t];return{...n,[t]:Array.isArray(r)?[...r]:r}},{}),"cloneQuery"),y0=$e((e,n={})=>{var t;let{headers:r,query:o={}}=typeof e.clone=="function"?e.clone():f0(e);for(let s of Object.keys(r)){let c=s.toLowerCase();c.slice(0,6)==="x-amz-"&&!((t=n.unhoistableHeaders)!=null&&t.has(c))&&(o[s]=r[s],delete r[s])}return{...e,headers:r,query:o}},"moveHeadersToQuery"),Op=$e(e=>{e=typeof e.clone=="function"?e.clone():f0(e);for(let n of Object.keys(e.headers))x2.indexOf(n.toLowerCase())>-1&&delete e.headers[n];return e},"prepareRequest"),U2=$e(e=>G2(e).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),G2=$e(e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e,"toDate"),g0=class{constructor({applyChecksum:n,credentials:t,region:r,service:o,sha256:s,uriEscapePath:c=!0}){this.headerMarshaller=new S2.HeaderMarshaller(Ui.toUtf8,Ui.fromUtf8),this.service=o,this.sha256=s,this.uriEscapePath=c,this.applyChecksum=typeof n=="boolean"?n:!0,this.regionProvider=(0,n0.normalizeProvider)(r),this.credentialProvider=(0,n0.normalizeProvider)(t)}async presign(n,t={}){let{signingDate:r=new Date,expiresIn:o=3600,unsignableHeaders:s,unhoistableHeaders:c,signableHeaders:i,signingRegion:u,signingService:l}=t,a=await this.credentialProvider();this.validateResolvedCredentials(a);let y=u??await this.regionProvider(),{longDate:g,shortDate:C}=Mc(r);if(o>q2)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let v=Lc(C,y,l??this.service),A=y0(Op(n),{unhoistableHeaders:c});a.sessionToken&&(A.query[c0]=a.sessionToken),A.query[b2]=xp,A.query[E2]=`${a.accessKeyId}/${v}`,A.query[i0]=g,A.query[v2]=o.toString(10);let E=Ap(A,s,i);return A.query[P2]=o0(E),A.query[a0]=await this.getSignature(g,v,this.getSigningKey(a,y,C,l),this.createCanonicalRequest(A,E,await jc(n,this.sha256))),A}async sign(n,t){return typeof n=="string"?this.signString(n,t):n.headers&&n.payload?this.signEvent(n,t):n.message?this.signMessage(n,t):this.signRequest(n,t)}async signEvent({headers:n,payload:t},{signingDate:r=new Date,priorSignature:o,signingRegion:s,signingService:c}){let i=s??await this.regionProvider(),{shortDate:u,longDate:l}=Mc(r),a=Lc(u,i,c??this.service),y=await jc({headers:{},body:t},this.sha256),g=new this.sha256;g.update(n);let C=(0,Br.toHex)(await g.digest()),v=[R2,l,a,o,C,y].join(` +`);return this.signString(v,{signingDate:r,signingRegion:i,signingService:c})}async signMessage(n,{signingDate:t=new Date,signingRegion:r,signingService:o}){return this.signEvent({headers:this.headerMarshaller.format(n.message.headers),payload:n.message.body},{signingDate:t,signingRegion:r,signingService:o,priorSignature:n.priorSignature}).then(c=>({message:n.message,signature:c}))}async signString(n,{signingDate:t=new Date,signingRegion:r,signingService:o}={}){let s=await this.credentialProvider();this.validateResolvedCredentials(s);let c=r??await this.regionProvider(),{shortDate:i}=Mc(t),u=new this.sha256(await this.getSigningKey(s,c,i,o));return u.update((0,Ui.toUint8Array)(n)),(0,Br.toHex)(await u.digest())}async signRequest(n,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:o,signingRegion:s,signingService:c}={}){let i=await this.credentialProvider();this.validateResolvedCredentials(i);let u=s??await this.regionProvider(),l=Op(n),{longDate:a,shortDate:y}=Mc(t),g=Lc(y,u,c??this.service);l.headers[l0]=a,i.sessionToken&&(l.headers[A2]=i.sessionToken);let C=await jc(l,this.sha256);!j2(kp,l.headers)&&this.applyChecksum&&(l.headers[kp]=C);let v=Ap(l,o,r),A=await this.getSignature(a,g,this.getSigningKey(i,u,y,c),this.createCanonicalRequest(l,v,C));return l.headers[d0]=`${xp} Credential=${i.accessKeyId}/${g}, SignedHeaders=${o0(v)}, Signature=${A}`,l}createCanonicalRequest(n,t,r){let o=Object.keys(t).sort();return`${n.method} ${this.getCanonicalPath(n)} ${p0(n)} ${o.map(s=>`${s}:${t[s]}`).join(` @@ -16,17 +16,17 @@ ${o.join(";")} ${r}`}async createStringToSign(n,t,r){let o=new this.sha256;o.update((0,Ui.toUint8Array)(r));let s=await o.digest();return`${xp} ${n} ${t} -${(0,Br.toHex)(s)}`}getCanonicalPath({path:n}){if(this.uriEscapePath){let t=[];for(let s of n.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?t.pop():t.push(s));let r=`${n!=null&&n.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&(n!=null&&n.endsWith("/"))?"/":""}`;return encodeURIComponent(r).replace(/%2F/g,"/")}return n}async getSignature(n,t,r,o){let s=await this.createStringToSign(n,t,o),c=new this.sha256(await r);return c.update((0,Ui.toUint8Array)(s)),(0,Br.toHex)(await c.digest())}getSigningKey(n,t,r,o){return m0(this.sha256,n,r,t,o||this.service)}validateResolvedCredentials(n){if(typeof n!="object"||typeof n.accessKeyId!="string"||typeof n.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}};$e(g0,"SignatureV4");var H2=g0,Dc=$e(e=>{let n=U2(e).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}},"formatDate"),o0=$e(e=>Object.keys(e).sort().join(";"),"getCanonicalHeaderList")});var C0=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.resolveSigV4AuthConfig=Mr.resolveAwsAuthConfig=void 0;var $2=xe(),Ip=Np(),Dr=Tr(),K2=3e5,V2=e=>{let n=e.credentials?_0(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:t=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:o}=e,s;return e.signer?s=(0,Dr.normalizeProvider)(e.signer):e.regionInfoProvider?s=()=>(0,Dr.normalizeProvider)(e.region)().then(async c=>[await e.regionInfoProvider(c,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},c]).then(([c,i])=>{let{signingRegion:u,signingService:l}=c;e.signingRegion=e.signingRegion||u||i,e.signingName=e.signingName||l||e.serviceId;let a={...e,credentials:n,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:t},y=e.signerConstructor||Ip.SignatureV4;return new y(a)}):s=async c=>{c=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,Dr.normalizeProvider)(e.region)(),properties:{}},c);let i=c.signingRegion,u=c.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||u||e.serviceId;let l={...e,credentials:n,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:t},a=e.signerConstructor||Ip.SignatureV4;return new a(l)},{...e,systemClockOffset:r,signingEscapePath:t,credentials:n,signer:s}};Mr.resolveAwsAuthConfig=V2;var X2=e=>{let n=e.credentials?_0(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:t=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:o}=e,s;return e.signer?s=(0,Dr.normalizeProvider)(e.signer):s=(0,Dr.normalizeProvider)(new Ip.SignatureV4({credentials:n,region:e.region,service:e.signingName,sha256:o,uriEscapePath:t})),{...e,systemClockOffset:r,signingEscapePath:t,credentials:n,signer:s}};Mr.resolveSigV4AuthConfig=X2;var _0=e=>typeof e=="function"?(0,$2.memoize)(e,n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()n.expiration!==void 0):(0,Dr.normalizeProvider)(e)});var Rp=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.getSkewCorrectedDate=void 0;var W2=e=>new Date(Date.now()+e);zc.getSkewCorrectedDate=W2});var S0=m(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.isClockSkewed=void 0;var Y2=Rp(),J2=(e,n)=>Math.abs((0,Y2.getSkewCorrectedDate)(n).getTime()-e)>=3e5;Uc.isClockSkewed=J2});var b0=m(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.getUpdatedSystemClockOffset=void 0;var Q2=S0(),Z2=(e,n)=>{let t=Date.parse(e);return(0,Q2.isClockSkewed)(t,n)?t-Date.now():n};Gc.getUpdatedSystemClockOffset=Z2});var w0=m(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.getSigV4AuthPlugin=ct.getAwsAuthPlugin=ct.awsAuthMiddlewareOptions=ct.awsAuthMiddleware=void 0;var v0=Ne(),eH=Rp(),E0=b0(),tH=e=>(n,t)=>async function(r){var o,s,c,i;if(!v0.HttpRequest.isInstance(r.request))return n(r);let u=(c=(s=(o=t.endpointV2)===null||o===void 0?void 0:o.properties)===null||s===void 0?void 0:s.authSchemes)===null||c===void 0?void 0:c[0],l=(u==null?void 0:u.name)==="sigv4a"?(i=u==null?void 0:u.signingRegionSet)===null||i===void 0?void 0:i.join(","):void 0,a=await e.signer(u),y=await n({...r,request:await a.sign(r.request,{signingDate:(0,eH.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:l||t.signing_region,signingService:t.signing_service})}).catch(C=>{var v;let A=(v=C.ServerTime)!==null&&v!==void 0?v:P0(C.$response);throw A&&(e.systemClockOffset=(0,E0.getUpdatedSystemClockOffset)(A,e.systemClockOffset)),C}),g=P0(y.response);return g&&(e.systemClockOffset=(0,E0.getUpdatedSystemClockOffset)(g,e.systemClockOffset)),y};ct.awsAuthMiddleware=tH;var P0=e=>{var n,t,r;return v0.HttpResponse.isInstance(e)?(t=(n=e.headers)===null||n===void 0?void 0:n.date)!==null&&t!==void 0?t:(r=e.headers)===null||r===void 0?void 0:r.Date:void 0};ct.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var nH=e=>({applyToStack:n=>{n.addRelativeTo((0,ct.awsAuthMiddleware)(e),ct.awsAuthMiddlewareOptions)}});ct.getAwsAuthPlugin=nH;ct.getSigV4AuthPlugin=ct.getAwsAuthPlugin});var rn=m(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var x0=(te(),Y(ee));x0.__exportStar(C0(),Hc);x0.__exportStar(w0(),Hc)});var k0=m($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.resolveUserAgentConfig=void 0;function rH(e){return{...e,customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent}}$c.resolveUserAgentConfig=rH});var A0=m((_Ee,oH)=>{oH.exports={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"}});var Tp=m(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.getUserAgentPrefix=Pt.useDefaultPartitionInfo=Pt.setPartitionInfo=Pt.partition=void 0;var sH=(te(),Y(ee)),O0=sH.__importDefault(A0()),N0=O0.default,I0="",iH=e=>{let{partitions:n}=N0;for(let r of n){let{regions:o,outputs:s}=r;for(let[c,i]of Object.entries(o))if(c===e)return{...s,...i}}for(let r of n){let{regionRegex:o,outputs:s}=r;if(new RegExp(o).test(e))return{...s}}let t=n.find(r=>r.id==="aws");if(!t)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...t.outputs}};Pt.partition=iH;var aH=(e,n="")=>{N0=e,I0=n};Pt.setPartitionInfo=aH;var cH=()=>{(0,Pt.setPartitionInfo)(O0.default,"")};Pt.useDefaultPartitionInfo=cH;var dH=()=>I0;Pt.getUserAgentPrefix=dH});var Vc=m(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.isIpAddress=void 0;var lH=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),uH=e=>lH.test(e)||e.startsWith("[")&&e.endsWith("]");Kc.isIpAddress=uH});var R0=m(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.debugId=void 0;Xc.debugId="endpoints"});var T0=m(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.toDebugString=void 0;function Bp(e){return typeof e!="object"||e==null?e:"ref"in e?`$${Bp(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Bp).join(", ")})`:JSON.stringify(e,null,2)}Wc.toDebugString=Bp});var Gi=m(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var B0=(te(),Y(ee));B0.__exportStar(R0(),Yc);B0.__exportStar(T0(),Yc)});var q0=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.EndpointError=void 0;var qp=class extends Error{constructor(n){super(n),this.name="EndpointError"}};Jc.EndpointError=qp});var M0=m(D0=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0})});var L0=m(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0})});var z0=m(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0})});var G0=m(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0})});var $0=m(H0=>{"use strict";Object.defineProperty(H0,"__esModule",{value:!0})});var gt=m(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});var Fr=(te(),Y(ee));Fr.__exportStar(q0(),Nn);Fr.__exportStar(M0(),Nn);Fr.__exportStar(L0(),Nn);Fr.__exportStar(z0(),Nn);Fr.__exportStar(G0(),Nn);Fr.__exportStar($0(),Nn)});var Dp=m(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.isValidHostLabel=void 0;var mH=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),pH=(e,n=!1)=>{if(!n)return mH.test(e);let t=e.split(".");for(let r of t)if(!(0,Hi.isValidHostLabel)(r))return!1;return!0};Hi.isValidHostLabel=pH});var K0=m($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.isVirtualHostableS3Bucket=void 0;var fH=Vc(),yH=Dp(),gH=(e,n=!1)=>{if(n){for(let t of e.split("."))if(!(0,$i.isVirtualHostableS3Bucket)(t))return!1;return!0}return!(!(0,yH.isValidHostLabel)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,fH.isIpAddress)(e))};$i.isVirtualHostableS3Bucket=gH});var V0=m(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.parseArn=void 0;var hH=e=>{let n=e.split(":");if(n.length<6)return null;let[t,r,o,s,c,...i]=n;return t!=="arn"||r===""||o===""||i[0]===""?null:{partition:r,service:o,region:s,accountId:c,resourceId:i[0].includes("/")?i[0].split("/"):i}};Qc.parseArn=hH});var X0=m(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});var Mp=(te(),Y(ee));Mp.__exportStar(K0(),Ki);Mp.__exportStar(V0(),Ki);Mp.__exportStar(Tp(),Ki)});var W0=m(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.booleanEquals=void 0;var _H=(e,n)=>e===n;Zc.booleanEquals=_H});var J0=m(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.getAttrPathList=void 0;var Y0=gt(),CH=e=>{let n=e.split("."),t=[];for(let r of n){let o=r.indexOf("[");if(o!==-1){if(r.indexOf("]")!==r.length-1)throw new Y0.EndpointError(`Path: '${e}' does not end with ']'`);let s=r.slice(o+1,-1);if(Number.isNaN(parseInt(s)))throw new Y0.EndpointError(`Invalid array index: '${s}' in path: '${e}'`);o!==0&&t.push(r.slice(0,o)),t.push(s)}else t.push(r)}return t};ed.getAttrPathList=CH});var Q0=m(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.getAttr=void 0;var SH=gt(),bH=J0(),EH=(e,n)=>(0,bH.getAttrPathList)(n).reduce((t,r)=>{if(typeof t!="object")throw new SH.EndpointError(`Index '${r}' in '${n}' not found in '${JSON.stringify(e)}'`);return Array.isArray(t)?t[parseInt(r)]:t[r]},e);td.getAttr=EH});var Z0=m(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.isSet=void 0;var PH=e=>e!=null;nd.isSet=PH});var ev=m(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.not=void 0;var vH=e=>!e;rd.not=vH});var nv=m(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0})});var rv=m(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.HttpAuthLocation=void 0;var wH=w();Object.defineProperty(od,"HttpAuthLocation",{enumerable:!0,get:function(){return wH.HttpAuthLocation}})});var sv=m(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0})});var av=m(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0})});var dv=m(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0})});var uv=m(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0})});var pv=m(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0})});var yv=m(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0})});var hv=m(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0})});var _v=m(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.HostAddressType=void 0;var xH;(function(e){e.AAAA="AAAA",e.A="A"})(xH=Vi.HostAddressType||(Vi.HostAddressType={}))});var Sv=m(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0})});var bv=m(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.EndpointURLScheme=void 0;var kH=w();Object.defineProperty(sd,"EndpointURLScheme",{enumerable:!0,get:function(){return kH.EndpointURLScheme}})});var Pv=m(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0})});var wv=m(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0})});var kv=m(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0})});var Ov=m(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0})});var Iv=m(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0})});var Tv=m(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0})});var qv=m(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0})});var Mv=m(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0})});var Fv=m(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});var Xi=(te(),Y(ee));Xi.__exportStar(Ov(),lr);Xi.__exportStar(Iv(),lr);Xi.__exportStar(Tv(),lr);Xi.__exportStar(qv(),lr);Xi.__exportStar(Mv(),lr)});var jv=m(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0})});var Uv=m(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0})});var Hv=m(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0})});var Kv=m($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0})});var Xv=m(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0})});var Yv=m(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0})});var Qv=m(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0})});var ew=m(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0})});var nw=m(tw=>{"use strict";Object.defineProperty(tw,"__esModule",{value:!0})});var ow=m(rw=>{"use strict";Object.defineProperty(rw,"__esModule",{value:!0})});var iw=m(sw=>{"use strict";Object.defineProperty(sw,"__esModule",{value:!0})});var cw=m(aw=>{"use strict";Object.defineProperty(aw,"__esModule",{value:!0})});var dw=m(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.RequestHandlerProtocol=void 0;var AH=w();Object.defineProperty(id,"RequestHandlerProtocol",{enumerable:!0,get:function(){return AH.RequestHandlerProtocol}})});var uw=m(lw=>{"use strict";Object.defineProperty(lw,"__esModule",{value:!0})});var pw=m(mw=>{"use strict";Object.defineProperty(mw,"__esModule",{value:!0})});var yw=m(fw=>{"use strict";Object.defineProperty(fw,"__esModule",{value:!0})});var gw=m(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});var me=(te(),Y(ee));me.__exportStar(nv(),le);me.__exportStar(rv(),le);me.__exportStar(sv(),le);me.__exportStar(av(),le);me.__exportStar(dv(),le);me.__exportStar(uv(),le);me.__exportStar(pv(),le);me.__exportStar(yv(),le);me.__exportStar(hv(),le);me.__exportStar(_v(),le);me.__exportStar(Sv(),le);me.__exportStar(bv(),le);me.__exportStar(Pv(),le);me.__exportStar(wv(),le);me.__exportStar(kv(),le);me.__exportStar(Fv(),le);me.__exportStar(jv(),le);me.__exportStar(Uv(),le);me.__exportStar(Hv(),le);me.__exportStar(Kv(),le);me.__exportStar(Xv(),le);me.__exportStar(Yv(),le);me.__exportStar(Qv(),le);me.__exportStar(ew(),le);me.__exportStar(nw(),le);me.__exportStar(ow(),le);me.__exportStar(iw(),le);me.__exportStar(cw(),le);me.__exportStar(dw(),le);me.__exportStar(uw(),le);me.__exportStar(pw(),le);me.__exportStar(yw(),le)});var hw=m(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.parseURL=void 0;var Lp=gw(),OH=Vc(),Fp={[Lp.EndpointURLScheme.HTTP]:80,[Lp.EndpointURLScheme.HTTPS]:443},NH=e=>{let n=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:g,port:C,protocol:v="",path:A="",query:E={}}=e,G=new URL(`${v}//${g}${C?`:${C}`:""}${A}`);return G.search=Object.entries(E).map(([ye,nt])=>`${ye}=${nt}`).join("&"),G}return new URL(e)}catch{return null}})();if(!n)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let t=n.href,{host:r,hostname:o,pathname:s,protocol:c,search:i}=n;if(i)return null;let u=c.slice(0,-1);if(!Object.values(Lp.EndpointURLScheme).includes(u))return null;let l=(0,OH.isIpAddress)(o),a=t.includes(`${r}:${Fp[u]}`)||typeof e=="string"&&e.includes(`${r}:${Fp[u]}`),y=`${r}${a?`:${Fp[u]}`:""}`;return{scheme:u,authority:y,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:l}};ad.parseURL=NH});var _w=m(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.stringEquals=void 0;var IH=(e,n)=>e===n;cd.stringEquals=IH});var Cw=m(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.substring=void 0;var RH=(e,n,t,r)=>n>=t||e.length{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.uriEncode=void 0;var TH=e=>encodeURIComponent(e).replace(/[!*'()]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`);ld.uriEncode=TH});var jp=m(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.aws=void 0;var qt=(te(),Y(ee));dt.aws=qt.__importStar(X0());qt.__exportStar(W0(),dt);qt.__exportStar(Q0(),dt);qt.__exportStar(Z0(),dt);qt.__exportStar(Dp(),dt);qt.__exportStar(ev(),dt);qt.__exportStar(hw(),dt);qt.__exportStar(_w(),dt);qt.__exportStar(Cw(),dt);qt.__exportStar(Sw(),dt)});var zp=m(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.evaluateTemplate=void 0;var BH=jp(),qH=(e,n)=>{let t=[],r={...n.endpointParams,...n.referenceRecord},o=0;for(;o{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.getReferenceValue=void 0;var DH=({ref:e},n)=>({...n.endpointParams,...n.referenceRecord})[e];md.getReferenceValue=DH});var Wi=m(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.evaluateExpression=void 0;var MH=gt(),FH=Up(),LH=zp(),jH=bw(),zH=(e,n,t)=>{if(typeof e=="string")return(0,LH.evaluateTemplate)(e,t);if(e.fn)return(0,FH.callFunction)(e,t);if(e.ref)return(0,jH.getReferenceValue)(e,t);throw new MH.EndpointError(`'${n}': ${String(e)} is not a string, function or reference.`)};pd.evaluateExpression=zH});var Up=m(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.callFunction=void 0;var UH=(te(),Y(ee)),GH=UH.__importStar(jp()),HH=Wi(),$H=({fn:e,argv:n},t)=>{let r=n.map(o=>["boolean","number"].includes(typeof o)?o:(0,HH.evaluateExpression)(o,"arg",t));return e.split(".").reduce((o,s)=>o[s],GH)(...r)};fd.callFunction=$H});var Ew=m(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.evaluateCondition=void 0;var Gp=Gi(),KH=gt(),VH=Up(),XH=({assign:e,...n},t)=>{var r,o;if(e&&e in t.referenceRecord)throw new KH.EndpointError(`'${e}' is already defined in Reference Record.`);let s=(0,VH.callFunction)(n,t);return(o=(r=t.logger)===null||r===void 0?void 0:r.debug)===null||o===void 0||o.call(r,Gp.debugId,`evaluateCondition: ${(0,Gp.toDebugString)(n)} = ${(0,Gp.toDebugString)(s)}`),{result:s===""?!0:!!s,...e!=null&&{toAssign:{name:e,value:s}}}};yd.evaluateCondition=XH});var hd=m(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.evaluateConditions=void 0;var Pw=Gi(),WH=Ew(),YH=(e=[],n)=>{var t,r;let o={};for(let s of e){let{result:c,toAssign:i}=(0,WH.evaluateCondition)(s,{...n,referenceRecord:{...n.referenceRecord,...o}});if(!c)return{result:c};i&&(o[i.name]=i.value,(r=(t=n.logger)===null||t===void 0?void 0:t.debug)===null||r===void 0||r.call(t,Pw.debugId,`assign: ${i.name} := ${(0,Pw.toDebugString)(i.value)}`))}return{result:!0,referenceRecord:o}};gd.evaluateConditions=YH});var vw=m(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.getEndpointHeaders=void 0;var JH=gt(),QH=Wi(),ZH=(e,n)=>Object.entries(e).reduce((t,[r,o])=>({...t,[r]:o.map(s=>{let c=(0,QH.evaluateExpression)(s,"Header value entry",n);if(typeof c!="string")throw new JH.EndpointError(`Header '${r}' value '${c}' is not a string`);return c})}),{});_d.getEndpointHeaders=ZH});var xw=m(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.getEndpointProperty=void 0;var ww=gt(),e$=zp(),t$=Hp(),n$=(e,n)=>{if(Array.isArray(e))return e.map(t=>(0,Yi.getEndpointProperty)(t,n));switch(typeof e){case"string":return(0,e$.evaluateTemplate)(e,n);case"object":if(e===null)throw new ww.EndpointError(`Unexpected endpoint property: ${e}`);return(0,t$.getEndpointProperties)(e,n);case"boolean":return e;default:throw new ww.EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};Yi.getEndpointProperty=n$});var Hp=m(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.getEndpointProperties=void 0;var r$=xw(),o$=(e,n)=>Object.entries(e).reduce((t,[r,o])=>({...t,[r]:(0,r$.getEndpointProperty)(o,n)}),{});Cd.getEndpointProperties=o$});var kw=m(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.getEndpointUrl=void 0;var s$=gt(),i$=Wi(),a$=(e,n)=>{let t=(0,i$.evaluateExpression)(e,"Endpoint URL",n);if(typeof t=="string")try{return new URL(t)}catch(r){throw console.error(`Failed to construct URL with ${t}`,r),r}throw new s$.EndpointError(`Endpoint URL must be a string, got ${typeof t}`)};Sd.getEndpointUrl=a$});var Ow=m(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.evaluateEndpointRule=void 0;var Aw=Gi(),c$=hd(),d$=vw(),l$=Hp(),u$=kw(),m$=(e,n)=>{var t,r;let{conditions:o,endpoint:s}=e,{result:c,referenceRecord:i}=(0,c$.evaluateConditions)(o,n);if(!c)return;let u={...n,referenceRecord:{...n.referenceRecord,...i}},{url:l,properties:a,headers:y}=s;return(r=(t=n.logger)===null||t===void 0?void 0:t.debug)===null||r===void 0||r.call(t,Aw.debugId,`Resolving endpoint from template: ${(0,Aw.toDebugString)(s)}`),{...y!=null&&{headers:(0,d$.getEndpointHeaders)(y,u)},...a!=null&&{properties:(0,l$.getEndpointProperties)(a,u)},url:(0,u$.getEndpointUrl)(l,u)}};bd.evaluateEndpointRule=m$});var Nw=m(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.evaluateErrorRule=void 0;var p$=gt(),f$=hd(),y$=Wi(),g$=(e,n)=>{let{conditions:t,error:r}=e,{result:o,referenceRecord:s}=(0,f$.evaluateConditions)(t,n);if(o)throw new p$.EndpointError((0,y$.evaluateExpression)(r,"Error",{...n,referenceRecord:{...n.referenceRecord,...s}}))};Ed.evaluateErrorRule=g$});var Iw=m(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.evaluateTreeRule=void 0;var h$=hd(),_$=$p(),C$=(e,n)=>{let{conditions:t,rules:r}=e,{result:o,referenceRecord:s}=(0,h$.evaluateConditions)(t,n);if(o)return(0,_$.evaluateRules)(r,{...n,referenceRecord:{...n.referenceRecord,...s}})};Pd.evaluateTreeRule=C$});var $p=m(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.evaluateRules=void 0;var Rw=gt(),S$=Ow(),b$=Nw(),E$=Iw(),P$=(e,n)=>{for(let t of e)if(t.type==="endpoint"){let r=(0,S$.evaluateEndpointRule)(t,n);if(r)return r}else if(t.type==="error")(0,b$.evaluateErrorRule)(t,n);else if(t.type==="tree"){let r=(0,E$.evaluateTreeRule)(t,n);if(r)return r}else throw new Rw.EndpointError(`Unknown endpoint rule: ${t}`);throw new Rw.EndpointError("Rules evaluation failed")};vd.evaluateRules=P$});var Tw=m(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var v$=(te(),Y(ee));v$.__exportStar($p(),Kp)});var Bw=m(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.resolveEndpoint=void 0;var wd=Gi(),w$=gt(),x$=Tw(),k$=(e,n)=>{var t,r,o,s,c,i;let{endpointParams:u,logger:l}=n,{parameters:a,rules:y}=e;(r=(t=n.logger)===null||t===void 0?void 0:t.debug)===null||r===void 0||r.call(t,`${wd.debugId} Initial EndpointParams: ${(0,wd.toDebugString)(u)}`);let g=Object.entries(a).filter(([,A])=>A.default!=null).map(([A,E])=>[A,E.default]);if(g.length>0)for(let[A,E]of g)u[A]=(o=u[A])!==null&&o!==void 0?o:E;let C=Object.entries(a).filter(([,A])=>A.required).map(([A])=>A);for(let A of C)if(u[A]==null)throw new w$.EndpointError(`Missing required parameter: '${A}'`);let v=(0,x$.evaluateRules)(y,{endpointParams:u,logger:l,referenceRecord:{}});if(!((s=n.endpointParams)===null||s===void 0)&&s.Endpoint)try{let A=new URL(n.endpointParams.Endpoint),{protocol:E,port:G}=A;v.url.protocol=E,v.url.port=G}catch{}return(i=(c=n.logger)===null||c===void 0?void 0:c.debug)===null||i===void 0||i.call(c,`${wd.debugId} Resolved endpoint: ${(0,wd.toDebugString)(v)}`),v};xd.resolveEndpoint=k$});var jr=m(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});var kd=(te(),Y(ee));kd.__exportStar(Tp(),Lr);kd.__exportStar(Vc(),Lr);kd.__exportStar(Bw(),Lr);kd.__exportStar(gt(),Lr)});var qw=m(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.UA_ESCAPE_CHAR=Je.UA_VALUE_ESCAPE_REGEX=Je.UA_NAME_ESCAPE_REGEX=Je.UA_NAME_SEPARATOR=Je.SPACE=Je.X_AMZ_USER_AGENT=Je.USER_AGENT=void 0;Je.USER_AGENT="user-agent";Je.X_AMZ_USER_AGENT="x-amz-user-agent";Je.SPACE=" ";Je.UA_NAME_SEPARATOR="/";Je.UA_NAME_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;Je.UA_VALUE_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;Je.UA_ESCAPE_CHAR="-"});var Dw=m(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.getUserAgentPlugin=Dt.getUserAgentMiddlewareOptions=Dt.userAgentMiddleware=void 0;var A$=jr(),O$=Ne(),st=qw(),N$=e=>(n,t)=>async r=>{var o,s;let{request:c}=r;if(!O$.HttpRequest.isInstance(c))return n(r);let{headers:i}=c,u=((o=t==null?void 0:t.userAgent)===null||o===void 0?void 0:o.map(Vp))||[],l=(await e.defaultUserAgentProvider()).map(Vp),a=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(Vp))||[],y=(0,A$.getUserAgentPrefix)(),g=(y?[y]:[]).concat([...l,...u,...a]).join(st.SPACE),C=[...l.filter(v=>v.startsWith("aws-sdk-")),...a].join(st.SPACE);return e.runtime!=="browser"?(C&&(i[st.X_AMZ_USER_AGENT]=i[st.X_AMZ_USER_AGENT]?`${i[st.USER_AGENT]} ${C}`:C),i[st.USER_AGENT]=g):i[st.X_AMZ_USER_AGENT]=g,n({...r,request:c})};Dt.userAgentMiddleware=N$;var Vp=e=>{var n;let t=e[0].split(st.UA_NAME_SEPARATOR).map(i=>i.replace(st.UA_NAME_ESCAPE_REGEX,st.UA_ESCAPE_CHAR)).join(st.UA_NAME_SEPARATOR),r=(n=e[1])===null||n===void 0?void 0:n.replace(st.UA_VALUE_ESCAPE_REGEX,st.UA_ESCAPE_CHAR),o=t.indexOf(st.UA_NAME_SEPARATOR),s=t.substring(0,o),c=t.substring(o+1);return s==="api"&&(c=c.toLowerCase()),[s,c,r].filter(i=>i&&i.length>0).reduce((i,u,l)=>{switch(l){case 0:return u;case 1:return`${i}/${u}`;default:return`${i}#${u}`}},"")};Dt.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var I$=e=>({applyToStack:n=>{n.add((0,Dt.userAgentMiddleware)(e),Dt.getUserAgentMiddlewareOptions)}});Dt.getUserAgentPlugin=I$});var Ji=m(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var Mw=(te(),Y(ee));Mw.__exportStar(k0(),Ad);Mw.__exportStar(Dw(),Ad)});var Nd=m((WPe,zw)=>{var Od=Object.defineProperty,R$=Object.getOwnPropertyDescriptor,T$=Object.getOwnPropertyNames,B$=Object.prototype.hasOwnProperty,Fw=(e,n)=>Od(e,"name",{value:n,configurable:!0}),q$=(e,n)=>{for(var t in n)Od(e,t,{get:n[t],enumerable:!0})},D$=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of T$(n))!B$.call(e,o)&&o!==t&&Od(e,o,{get:()=>n[o],enumerable:!(r=R$(n,o))||r.enumerable});return e},M$=e=>D$(Od({},"__esModule",{value:!0}),e),Lw={};q$(Lw,{SelectorType:()=>jw,booleanSelector:()=>F$,numberSelector:()=>L$});zw.exports=M$(Lw);var F$=Fw((e,n,t)=>{if(n in e){if(e[n]==="true")return!0;if(e[n]==="false")return!1;throw new Error(`Cannot load ${t} "${n}". Expected "true" or "false", got ${e[n]}.`)}},"booleanSelector"),L$=Fw((e,n,t)=>{if(!(n in e))return;let r=parseInt(e[n],10);if(Number.isNaN(r))throw new TypeError(`Cannot load ${t} '${n}'. Expected number, got '${e[n]}'.`);return r},"numberSelector"),jw=(e=>(e.ENV="env",e.CONFIG="shared config entry",e))(jw||{})});var Mt=m((YPe,Qw)=>{var Rd=Object.defineProperty,j$=Object.getOwnPropertyDescriptor,z$=Object.getOwnPropertyNames,U$=Object.prototype.hasOwnProperty,vt=(e,n)=>Rd(e,"name",{value:n,configurable:!0}),G$=(e,n)=>{for(var t in n)Rd(e,t,{get:n[t],enumerable:!0})},H$=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of z$(n))!U$.call(e,o)&&o!==t&&Rd(e,o,{get:()=>n[o],enumerable:!(r=j$(n,o))||r.enumerable});return e},$$=e=>H$(Rd({},"__esModule",{value:!0}),e),Hw={};G$(Hw,{CONFIG_USE_DUALSTACK_ENDPOINT:()=>Kw,CONFIG_USE_FIPS_ENDPOINT:()=>Xw,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>K$,DEFAULT_USE_FIPS_ENDPOINT:()=>X$,ENV_USE_DUALSTACK_ENDPOINT:()=>$w,ENV_USE_FIPS_ENDPOINT:()=>Vw,NODE_REGION_CONFIG_FILE_OPTIONS:()=>eK,NODE_REGION_CONFIG_OPTIONS:()=>Z$,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>V$,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>W$,REGION_ENV_NAME:()=>Ww,REGION_INI_NAME:()=>Yw,getRegionInfo:()=>sK,resolveCustomEndpointsConfig:()=>Y$,resolveEndpointsConfig:()=>Q$,resolveRegionConfig:()=>tK});Qw.exports=$$(Hw);var In=Nd(),$w="AWS_USE_DUALSTACK_ENDPOINT",Kw="use_dualstack_endpoint",K$=!1,V$={environmentVariableSelector:e=>(0,In.booleanSelector)(e,$w,In.SelectorType.ENV),configFileSelector:e=>(0,In.booleanSelector)(e,Kw,In.SelectorType.CONFIG),default:!1},Vw="AWS_USE_FIPS_ENDPOINT",Xw="use_fips_endpoint",X$=!1,W$={environmentVariableSelector:e=>(0,In.booleanSelector)(e,Vw,In.SelectorType.ENV),configFileSelector:e=>(0,In.booleanSelector)(e,Xw,In.SelectorType.CONFIG),default:!1},Id=Tr(),Y$=vt(e=>{let{endpoint:n,urlParser:t}=e;return{...e,tls:e.tls??!0,endpoint:(0,Id.normalizeProvider)(typeof n=="string"?t(n):n),isCustomEndpoint:!0,useDualstackEndpoint:(0,Id.normalizeProvider)(e.useDualstackEndpoint??!1)}},"resolveCustomEndpointsConfig"),J$=vt(async e=>{let{tls:n=!0}=e,t=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(t))throw new Error("Invalid region in client config");let o=await e.useDualstackEndpoint(),s=await e.useFipsEndpoint(),{hostname:c}=await e.regionInfoProvider(t,{useDualstackEndpoint:o,useFipsEndpoint:s})??{};if(!c)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${n?"https:":"http:"}//${c}`)},"getEndpointFromRegion"),Q$=vt(e=>{let n=(0,Id.normalizeProvider)(e.useDualstackEndpoint??!1),{endpoint:t,useFipsEndpoint:r,urlParser:o}=e;return{...e,tls:e.tls??!0,endpoint:t?(0,Id.normalizeProvider)(typeof t=="string"?o(t):t):()=>J$({...e,useDualstackEndpoint:n,useFipsEndpoint:r}),isCustomEndpoint:!!t,useDualstackEndpoint:n}},"resolveEndpointsConfig"),Ww="AWS_REGION",Yw="region",Z$={environmentVariableSelector:e=>e[Ww],configFileSelector:e=>e[Yw],default:()=>{throw new Error("Region is missing")}},eK={preferredFile:"credentials"},Jw=vt(e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),"isFipsRegion"),Uw=vt(e=>Jw(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,"getRealRegion"),tK=vt(e=>{let{region:n,useFipsEndpoint:t}=e;if(!n)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof n=="string")return Uw(n);let r=await n();return Uw(r)},useFipsEndpoint:async()=>{let r=typeof n=="string"?n:await n();return Jw(r)?!0:typeof t!="function"?Promise.resolve(!!t):t()}}},"resolveRegionConfig"),Gw=vt((e=[],{useFipsEndpoint:n,useDualstackEndpoint:t})=>{var r;return(r=e.find(({tags:o})=>n===o.includes("fips")&&t===o.includes("dualstack")))==null?void 0:r.hostname},"getHostnameFromVariants"),nK=vt((e,{regionHostname:n,partitionHostname:t})=>n||(t?t.replace("{region}",e):void 0),"getResolvedHostname"),rK=vt((e,{partitionHash:n})=>Object.keys(n||{}).find(t=>n[t].regions.includes(e))??"aws","getResolvedPartition"),oK=vt((e,{signingRegion:n,regionRegex:t,useFipsEndpoint:r})=>{if(n)return n;if(r){let o=t.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=e.match(o);if(s)return s[0].slice(1,-1)}},"getResolvedSigningRegion"),sK=vt((e,{useFipsEndpoint:n=!1,useDualstackEndpoint:t=!1,signingService:r,regionHash:o,partitionHash:s})=>{var c,i,u,l,a;let y=rK(e,{partitionHash:s}),g=e in o?e:((c=s[y])==null?void 0:c.endpoint)??e,C={useFipsEndpoint:n,useDualstackEndpoint:t},v=Gw((i=o[g])==null?void 0:i.variants,C),A=Gw((u=s[y])==null?void 0:u.variants,C),E=nK(g,{regionHostname:v,partitionHostname:A});if(E===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:g,useFipsEndpoint:n,useDualstackEndpoint:t}}`);let G=oK(E,{signingRegion:(l=o[g])==null?void 0:l.signingRegion,regionRegex:s[y].regionRegex,useFipsEndpoint:n});return{partition:y,signingService:r,hostname:E,...G&&{signingRegion:G},...((a=o[g])==null?void 0:a.signingService)&&{signingService:o[g].signingService}}},"getRegionInfo")});var tx=m((JPe,ex)=>{var Td=Object.defineProperty,iK=Object.getOwnPropertyDescriptor,aK=Object.getOwnPropertyNames,cK=Object.prototype.hasOwnProperty,dK=(e,n)=>Td(e,"name",{value:n,configurable:!0}),lK=(e,n)=>{for(var t in n)Td(e,t,{get:n[t],enumerable:!0})},uK=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of aK(n))!cK.call(e,o)&&o!==t&&Td(e,o,{get:()=>n[o],enumerable:!(r=iK(n,o))||r.enumerable});return e},mK=e=>uK(Td({},"__esModule",{value:!0}),e),Zw={};lK(Zw,{resolveEventStreamSerdeConfig:()=>pK});ex.exports=mK(Zw);var pK=dK(e=>({...e,eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),"resolveEventStreamSerdeConfig")});var Qi=m((QPe,ix)=>{var Bd=Object.defineProperty,fK=Object.getOwnPropertyDescriptor,yK=Object.getOwnPropertyNames,gK=Object.prototype.hasOwnProperty,rx=(e,n)=>Bd(e,"name",{value:n,configurable:!0}),hK=(e,n)=>{for(var t in n)Bd(e,t,{get:n[t],enumerable:!0})},_K=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of yK(n))!gK.call(e,o)&&o!==t&&Bd(e,o,{get:()=>n[o],enumerable:!(r=fK(n,o))||r.enumerable});return e},CK=e=>_K(Bd({},"__esModule",{value:!0}),e),ox={};hK(ox,{contentLengthMiddleware:()=>Xp,contentLengthMiddlewareOptions:()=>sx,getContentLengthPlugin:()=>bK});ix.exports=CK(ox);var SK=Ne(),nx="content-length";function Xp(e){return n=>async t=>{let r=t.request;if(SK.HttpRequest.isInstance(r)){let{body:o,headers:s}=r;if(o&&Object.keys(s).map(c=>c.toLowerCase()).indexOf(nx)===-1)try{let c=e(o);r.headers={...r.headers,[nx]:String(c)}}catch{}}return n({...t,request:r})}}rx(Xp,"contentLengthMiddleware");var sx={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},bK=rx(e=>({applyToStack:n=>{n.add(Xp(e.bodyLengthChecker),sx)}}),"getContentLengthPlugin")});var Zi=m(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.getHomeDir=void 0;var EK=require("os"),PK=require("path"),Wp={},vK=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",wK=()=>{let{HOME:e,USERPROFILE:n,HOMEPATH:t,HOMEDRIVE:r=`C:${PK.sep}`}=process.env;if(e)return e;if(n)return n;if(t)return`${r}${t}`;let o=vK();return Wp[o]||(Wp[o]=(0,EK.homedir)()),Wp[o]};qd.getHomeDir=wK});var Yp=m(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.getSSOTokenFilepath=void 0;var xK=require("crypto"),kK=require("path"),AK=Zi(),OK=e=>{let t=(0,xK.createHash)("sha1").update(e).digest("hex");return(0,kK.join)((0,AK.getHomeDir)(),".aws","sso","cache",`${t}.json`)};Dd.getSSOTokenFilepath=OK});var ax=m(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.getSSOTokenFromFile=void 0;var NK=require("fs"),IK=Yp(),{readFile:RK}=NK.promises,TK=async e=>{let n=(0,IK.getSSOTokenFilepath)(e),t=await RK(n,"utf8");return JSON.parse(t)};Md.getSSOTokenFromFile=TK});var Qp=m(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.slurpFile=void 0;var BK=require("fs"),{readFile:qK}=BK.promises,Jp={},DK=(e,n)=>((!Jp[e]||n!=null&&n.ignoreCache)&&(Jp[e]=qK(e,"utf8")),Jp[e]);Fd.slurpFile=DK});var wt=m((r0e,ta)=>{var jd=Object.defineProperty,MK=Object.getOwnPropertyDescriptor,FK=Object.getOwnPropertyNames,LK=Object.prototype.hasOwnProperty,ht=(e,n)=>jd(e,"name",{value:n,configurable:!0}),jK=(e,n)=>{for(var t in n)jd(e,t,{get:n[t],enumerable:!0})},Zp=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of FK(n))!LK.call(e,o)&&o!==t&&jd(e,o,{get:()=>n[o],enumerable:!(r=MK(n,o))||r.enumerable});return e},tf=(e,n,t)=>(Zp(e,n,"default"),t&&Zp(t,n,"default")),zK=e=>Zp(jd({},"__esModule",{value:!0}),e),ea={};jK(ea,{CONFIG_PREFIX_SEPARATOR:()=>ur,DEFAULT_PROFILE:()=>ux,ENV_PROFILE:()=>lx,getProfileName:()=>UK,loadSharedConfigFiles:()=>fx,loadSsoSessionData:()=>eV,parseKnownFiles:()=>nV});ta.exports=zK(ea);tf(ea,Zi(),ta.exports);var lx="AWS_PROFILE",ux="default",UK=ht(e=>e.profile||process.env[lx]||ux,"getProfileName");tf(ea,Yp(),ta.exports);tf(ea,ax(),ta.exports);var Ld=w(),GK=ht(e=>Object.entries(e).filter(([n])=>{let t=n.indexOf(ur);return t===-1?!1:Object.values(Ld.IniSectionType).includes(n.substring(0,t))}).reduce((n,[t,r])=>{let o=t.indexOf(ur),s=t.substring(0,o)===Ld.IniSectionType.PROFILE?t.substring(o+1):t;return n[s]=r,n},{...e.default&&{default:e.default}}),"getConfigData"),mx=require("path"),HK=Zi(),$K="AWS_CONFIG_FILE",px=ht(()=>process.env[$K]||(0,mx.join)((0,HK.getHomeDir)(),".aws","config"),"getConfigFilepath"),KK=Zi(),VK="AWS_SHARED_CREDENTIALS_FILE",XK=ht(()=>process.env[VK]||(0,mx.join)((0,KK.getHomeDir)(),".aws","credentials"),"getCredentialsFilepath"),WK=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,YK=["__proto__","profile __proto__"],ef=ht(e=>{let n={},t,r;for(let o of e.split(/\r?\n/)){let s=o.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){t=void 0,r=void 0;let i=s.substring(1,s.length-1),u=WK.exec(i);if(u){let[,l,,a]=u;Object.values(Ld.IniSectionType).includes(l)&&(t=[l,a].join(ur))}else t=i;if(YK.includes(i))throw new Error(`Found invalid profile name "${i}"`)}else if(t){let i=s.indexOf("=");if(![0,-1].includes(i)){let[u,l]=[s.substring(0,i).trim(),s.substring(i+1).trim()];if(l==="")r=u;else{r&&o.trimStart()===o&&(r=void 0),n[t]=n[t]||{};let a=r?[r,u].join(ur):u;n[t][a]=l}}}}return n},"parseIni"),cx=Qp(),dx=ht(()=>({}),"swallowError"),ur=".",fx=ht(async(e={})=>{let{filepath:n=XK(),configFilepath:t=px()}=e,r=await Promise.all([(0,cx.slurpFile)(t,{ignoreCache:e.ignoreCache}).then(ef).then(GK).catch(dx),(0,cx.slurpFile)(n,{ignoreCache:e.ignoreCache}).then(ef).catch(dx)]);return{configFile:r[0],credentialsFile:r[1]}},"loadSharedConfigFiles"),JK=ht(e=>Object.entries(e).filter(([n])=>n.startsWith(Ld.IniSectionType.SSO_SESSION+ur)).reduce((n,[t,r])=>({...n,[t.split(ur)[1]]:r}),{}),"getSsoSessionData"),QK=Qp(),ZK=ht(()=>({}),"swallowError"),eV=ht(async(e={})=>(0,QK.slurpFile)(e.configFilepath??px()).then(ef).then(JK).catch(ZK),"loadSsoSessionData"),tV=ht((...e)=>{let n={};for(let t of e)for(let[r,o]of Object.entries(t))n[r]!==void 0?Object.assign(n[r],o):n[r]=o;return n},"mergeConfigFiles"),nV=ht(async e=>{let n=await fx(e);return tV(n.configFile,n.credentialsFile)},"parseKnownFiles")});var on=m((o0e,hx)=>{var zd=Object.defineProperty,rV=Object.getOwnPropertyDescriptor,oV=Object.getOwnPropertyNames,sV=Object.prototype.hasOwnProperty,ra=(e,n)=>zd(e,"name",{value:n,configurable:!0}),iV=(e,n)=>{for(var t in n)zd(e,t,{get:n[t],enumerable:!0})},aV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of oV(n))!sV.call(e,o)&&o!==t&&zd(e,o,{get:()=>n[o],enumerable:!(r=rV(n,o))||r.enumerable});return e},cV=e=>aV(zd({},"__esModule",{value:!0}),e),gx={};iV(gx,{loadConfig:()=>pV});hx.exports=cV(gx);var na=xe(),dV=ra(e=>async()=>{try{let n=e(process.env);if(n===void 0)throw new Error;return n}catch(n){throw new na.CredentialsProviderError(n.message||`Cannot load config from environment variables with getter: ${e}`)}},"fromEnv"),yx=wt(),lV=ra((e,{preferredFile:n="config",...t}={})=>async()=>{let r=(0,yx.getProfileName)(t),{configFile:o,credentialsFile:s}=await(0,yx.loadSharedConfigFiles)(t),c=s[r]||{},i=o[r]||{},u=n==="config"?{...c,...i}:{...i,...c};try{let a=e(u,n==="config"?o:s);if(a===void 0)throw new Error;return a}catch(l){throw new na.CredentialsProviderError(l.message||`Cannot load config for profile ${r} in SDK configuration files with getter: ${e}`)}},"fromSharedConfigFiles"),uV=ra(e=>typeof e=="function","isFunction"),mV=ra(e=>uV(e)?async()=>await e():(0,na.fromStatic)(e),"fromStatic"),pV=ra(({environmentVariableSelector:e,configFileSelector:n,default:t},r={})=>(0,na.memoize)((0,na.chain)(dV(e),lV(n,r),mV(t))),"loadConfig")});var bx=m(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.getEndpointUrlConfig=void 0;var _x=wt(),Cx="AWS_ENDPOINT_URL",Sx="endpoint_url",fV=e=>({environmentVariableSelector:n=>{let t=e.split(" ").map(s=>s.toUpperCase()),r=n[[Cx,...t].join("_")];if(r)return r;let o=n[Cx];if(o)return o},configFileSelector:(n,t)=>{if(t&&n.services){let o=t[["services",n.services].join(_x.CONFIG_PREFIX_SEPARATOR)];if(o){let s=e.split(" ").map(i=>i.toLowerCase()),c=o[[s.join("_"),Sx].join(_x.CONFIG_PREFIX_SEPARATOR)];if(c)return c}}let r=n[Sx];if(r)return r},default:void 0});Ud.getEndpointUrlConfig=fV});var Ex=m(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.getEndpointFromConfig=void 0;var yV=on(),gV=bx(),hV=async e=>(0,yV.loadConfig)((0,gV.getEndpointUrlConfig)(e))();Gd.getEndpointFromConfig=hV});var xx=m((a0e,wx)=>{var Hd=Object.defineProperty,_V=Object.getOwnPropertyDescriptor,CV=Object.getOwnPropertyNames,SV=Object.prototype.hasOwnProperty,bV=(e,n)=>Hd(e,"name",{value:n,configurable:!0}),EV=(e,n)=>{for(var t in n)Hd(e,t,{get:n[t],enumerable:!0})},PV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of CV(n))!SV.call(e,o)&&o!==t&&Hd(e,o,{get:()=>n[o],enumerable:!(r=_V(n,o))||r.enumerable});return e},vV=e=>PV(Hd({},"__esModule",{value:!0}),e),Px={};EV(Px,{parseQueryString:()=>vx});wx.exports=vV(Px);function vx(e){let n={};if(e=e.replace(/^\?/,""),e)for(let t of e.split("&")){let[r,o=null]=t.split("=");r=decodeURIComponent(r),o&&(o=decodeURIComponent(o)),r in n?Array.isArray(n[r])?n[r].push(o):n[r]=[n[r],o]:n[r]=o}return n}bV(vx,"parseQueryString")});var mr=m((c0e,Ox)=>{var $d=Object.defineProperty,wV=Object.getOwnPropertyDescriptor,xV=Object.getOwnPropertyNames,kV=Object.prototype.hasOwnProperty,AV=(e,n)=>$d(e,"name",{value:n,configurable:!0}),OV=(e,n)=>{for(var t in n)$d(e,t,{get:n[t],enumerable:!0})},NV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of xV(n))!kV.call(e,o)&&o!==t&&$d(e,o,{get:()=>n[o],enumerable:!(r=wV(n,o))||r.enumerable});return e},IV=e=>NV($d({},"__esModule",{value:!0}),e),kx={};OV(kx,{parseUrl:()=>Ax});Ox.exports=IV(kx);var RV=xx(),Ax=AV(e=>{if(typeof e=="string")return Ax(new URL(e));let{hostname:n,pathname:t,port:r,protocol:o,search:s}=e,c;return s&&(c=(0,RV.parseQueryString)(s)),{hostname:n,port:r?parseInt(r):void 0,protocol:o,path:t,query:c}},"parseUrl")});var k=m((d0e,Dx)=>{var Kd=Object.defineProperty,TV=Object.getOwnPropertyDescriptor,BV=Object.getOwnPropertyNames,qV=Object.prototype.hasOwnProperty,nf=(e,n)=>Kd(e,"name",{value:n,configurable:!0}),DV=(e,n)=>{for(var t in n)Kd(e,t,{get:n[t],enumerable:!0})},MV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of BV(n))!qV.call(e,o)&&o!==t&&Kd(e,o,{get:()=>n[o],enumerable:!(r=TV(n,o))||r.enumerable});return e},FV=e=>MV(Kd({},"__esModule",{value:!0}),e),Nx={};DV(Nx,{deserializerMiddleware:()=>Ix,deserializerMiddlewareOption:()=>Tx,getSerdePlugin:()=>qx,serializerMiddleware:()=>Rx,serializerMiddlewareOption:()=>Bx});Dx.exports=FV(Nx);var Ix=nf((e,n)=>(t,r)=>async o=>{let{response:s}=await t(o);try{let c=await n(s,e);return{response:s,output:c}}catch(c){if(Object.defineProperty(c,"$response",{value:s}),!("$metadata"in c)){let i="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";c.message+=` - `+i}throw c}},"deserializerMiddleware"),Rx=nf((e,n)=>(t,r)=>async o=>{var s;let c=(s=r.endpointV2)!=null&&s.url&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint;if(!c)throw new Error("No valid endpoint provider available.");let i=await n(o.input,{...e,endpoint:c});return t({...o,request:i})},"serializerMiddleware"),Tx={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Bx={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function qx(e,n,t){return{applyToStack:r=>{r.add(Ix(e,t),Tx),r.add(Rx(e,n),Bx)}}}nf(qx,"getSerdePlugin")});var x=m((l0e,Gx)=>{var Xd=Object.defineProperty,LV=Object.getOwnPropertyDescriptor,jV=Object.getOwnPropertyNames,zV=Object.prototype.hasOwnProperty,xt=(e,n)=>Xd(e,"name",{value:n,configurable:!0}),UV=(e,n)=>{for(var t in n)Xd(e,t,{get:n[t],enumerable:!0})},GV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of jV(n))!zV.call(e,o)&&o!==t&&Xd(e,o,{get:()=>n[o],enumerable:!(r=LV(n,o))||r.enumerable});return e},HV=e=>GV(Xd({},"__esModule",{value:!0}),e),Fx={};UV(Fx,{endpointMiddleware:()=>zx,endpointMiddlewareOptions:()=>Ux,getEndpointFromInstructions:()=>Lx,getEndpointPlugin:()=>e6,resolveEndpointConfig:()=>t6,resolveParams:()=>jx,toEndpointV1:()=>rf});Gx.exports=HV(Fx);var $V=xt(async e=>{let n=(e==null?void 0:e.Bucket)||"";if(typeof e.Bucket=="string"&&(e.Bucket=n.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),YV(n)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!WV(n)||n.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||n.toLowerCase()!==n||n.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},"resolveParamsForS3"),KV=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,VV=/(\d+\.){3}\d+/,XV=/\.\./,WV=xt(e=>KV.test(e)&&!VV.test(e)&&!XV.test(e),"isDnsCompatibleBucketName"),YV=xt(e=>{let[n,t,r,o,s,c]=e.split(":"),i=n==="arn"&&e.split(":").length>=6,u=[n,t,r,s,c].filter(Boolean).length===5;if(i&&!u)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return n==="arn"&&!!t&&!!r&&!!s&&!!c},"isArnBucketName"),JV=xt((e,n,t)=>{let r=xt(async()=>{let o=t[e]??t[n];return typeof o=="function"?o():o},"configProvider");return e==="credentialScope"||n==="CredentialScope"?async()=>{let o=typeof t.credentials=="function"?await t.credentials():t.credentials;return(o==null?void 0:o.credentialScope)??(o==null?void 0:o.CredentialScope)}:e==="endpoint"||n==="endpoint"?async()=>{let o=await r();if(o&&typeof o=="object"){if("url"in o)return o.url.href;if("hostname"in o){let{protocol:s,hostname:c,port:i,path:u}=o;return`${s}//${c}${i?":"+i:""}${u}`}}return o}:r},"createConfigValueProvider"),QV=Ex(),Mx=mr(),rf=xt(e=>typeof e=="object"?"url"in e?(0,Mx.parseUrl)(e.url):e:(0,Mx.parseUrl)(e),"toEndpointV1"),Lx=xt(async(e,n,t,r)=>{if(!t.endpoint){let c=await(0,QV.getEndpointFromConfig)(t.serviceId||"");c&&(t.endpoint=()=>Promise.resolve(rf(c)))}let o=await jx(e,n,t);if(typeof t.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return t.endpointProvider(o,r)},"getEndpointFromInstructions"),jx=xt(async(e,n,t)=>{var r;let o={},s=((r=n==null?void 0:n.getEndpointParameterInstructions)==null?void 0:r.call(n))||{};for(let[c,i]of Object.entries(s))switch(i.type){case"staticContextParams":o[c]=i.value;break;case"contextParams":o[c]=e[i.name];break;case"clientContextParams":case"builtInParams":o[c]=await JV(i.name,c,t)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return Object.keys(s).length===0&&Object.assign(o,t),String(t.serviceId).toLowerCase()==="s3"&&await $V(o),o},"resolveParams"),Vd=Tr(),zx=xt(({config:e,instructions:n})=>(t,r)=>async o=>{var s,c,i;let u=await Lx(o.input,{getEndpointParameterInstructions(){return n}},{...e},r);r.endpointV2=u,r.authSchemes=(s=u.properties)==null?void 0:s.authSchemes;let l=(c=r.authSchemes)==null?void 0:c[0];if(l){r.signing_region=l.signingRegion,r.signing_service=l.signingName;let a=(0,Vd.getSmithyContext)(r),y=(i=a==null?void 0:a.selectedHttpAuthScheme)==null?void 0:i.httpAuthOption;y&&(y.signingProperties=Object.assign(y.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return t({...o})},"endpointMiddleware"),ZV=k(),Ux={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:ZV.serializerMiddlewareOption.name},e6=xt((e,n)=>({applyToStack:t=>{t.addRelativeTo(zx({config:e,instructions:n}),Ux)}}),"getEndpointPlugin"),t6=xt(e=>{let n=e.tls??!0,{endpoint:t}=e,r=t!=null?async()=>rf(await(0,Vd.normalizeProvider)(t)()):void 0;return{...e,endpoint:r,tls:n,isCustomEndpoint:!!t,useDualstackEndpoint:(0,Vd.normalizeProvider)(e.useDualstackEndpoint??!1),useFipsEndpoint:(0,Vd.normalizeProvider)(e.useFipsEndpoint??!1)}},"resolveEndpointConfig")});function oa(){return Wd>Yd.length-16&&(Hx.default.randomFillSync(Yd),Wd=0),Yd.slice(Wd,Wd+=16)}var Hx,Yd,Wd,of=Le(()=>{Hx=Oi(require("crypto")),Yd=new Uint8Array(256),Wd=Yd.length});var $x,Kx=Le(()=>{$x=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function n6(e){return typeof e=="string"&&$x.test(e)}var Rn,sa=Le(()=>{Kx();Rn=n6});function r6(e,n=0){let t=(Ke[e[n+0]]+Ke[e[n+1]]+Ke[e[n+2]]+Ke[e[n+3]]+"-"+Ke[e[n+4]]+Ke[e[n+5]]+"-"+Ke[e[n+6]]+Ke[e[n+7]]+"-"+Ke[e[n+8]]+Ke[e[n+9]]+"-"+Ke[e[n+10]]+Ke[e[n+11]]+Ke[e[n+12]]+Ke[e[n+13]]+Ke[e[n+14]]+Ke[e[n+15]]).toLowerCase();if(!Rn(t))throw TypeError("Stringified UUID is invalid");return t}var Ke,Tn,ia=Le(()=>{sa();Ke=[];for(let e=0;e<256;++e)Ke.push((e+256).toString(16).substr(1));Tn=r6});function o6(e,n,t){let r=n&&t||0,o=n||new Array(16);e=e||{};let s=e.node||Vx,c=e.clockseq!==void 0?e.clockseq:sf;if(s==null||c==null){let g=e.random||(e.rng||oa)();s==null&&(s=Vx=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]),c==null&&(c=sf=(g[6]<<8|g[7])&16383)}let i=e.msecs!==void 0?e.msecs:Date.now(),u=e.nsecs!==void 0?e.nsecs:cf+1,l=i-af+(u-cf)/1e4;if(l<0&&e.clockseq===void 0&&(c=c+1&16383),(l<0||i>af)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");af=i,cf=u,sf=c,i+=122192928e5;let a=((i&268435455)*1e4+u)%4294967296;o[r++]=a>>>24&255,o[r++]=a>>>16&255,o[r++]=a>>>8&255,o[r++]=a&255;let y=i/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=y&255,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=c>>>8|128,o[r++]=c&255;for(let g=0;g<6;++g)o[r+g]=s[g];return n||Tn(o)}var Vx,sf,af,cf,Xx,Wx=Le(()=>{of();ia();af=0,cf=0;Xx=o6});function s6(e){if(!Rn(e))throw TypeError("Invalid UUID");let n,t=new Uint8Array(16);return t[0]=(n=parseInt(e.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=n&255,t[4]=(n=parseInt(e.slice(9,13),16))>>>8,t[5]=n&255,t[6]=(n=parseInt(e.slice(14,18),16))>>>8,t[7]=n&255,t[8]=(n=parseInt(e.slice(19,23),16))>>>8,t[9]=n&255,t[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=n&255,t}var Jd,df=Le(()=>{sa();Jd=s6});function i6(e){e=unescape(encodeURIComponent(e));let n=[];for(let t=0;t{ia();df();a6="6ba7b810-9dad-11d1-80b4-00c04fd430c8",c6="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});function d6(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Yx.default.createHash("md5").update(e).digest()}var Yx,Jx,Qx=Le(()=>{Yx=Oi(require("crypto"));Jx=d6});var l6,Zx,ek=Le(()=>{lf();Qx();l6=Qd("v3",48,Jx),Zx=l6});function u6(e,n,t){e=e||{};let r=e.random||(e.rng||oa)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,n){t=t||0;for(let o=0;o<16;++o)n[t+o]=r[o];return n}return Tn(r)}var tk,nk=Le(()=>{of();ia();tk=u6});function m6(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),rk.default.createHash("sha1").update(e).digest()}var rk,ok,sk=Le(()=>{rk=Oi(require("crypto"));ok=m6});var p6,ik,ak=Le(()=>{lf();sk();p6=Qd("v5",80,ok),ik=p6});var ck,dk=Le(()=>{ck="00000000-0000-0000-0000-000000000000"});function f6(e){if(!Rn(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var lk,uk=Le(()=>{sa();lk=f6});var mk={};Ai(mk,{NIL:()=>ck,parse:()=>Jd,stringify:()=>Tn,v1:()=>Xx,v3:()=>Zx,v4:()=>tk,v5:()=>ik,validate:()=>Rn,version:()=>lk});var pk=Le(()=>{Wx();ek();nk();ak();dk();uk();sa();ia();df()});var uf=m((X0e,gk)=>{var Zd=Object.defineProperty,y6=Object.getOwnPropertyDescriptor,g6=Object.getOwnPropertyNames,h6=Object.prototype.hasOwnProperty,aa=(e,n)=>Zd(e,"name",{value:n,configurable:!0}),_6=(e,n)=>{for(var t in n)Zd(e,t,{get:n[t],enumerable:!0})},C6=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of g6(n))!h6.call(e,o)&&o!==t&&Zd(e,o,{get:()=>n[o],enumerable:!(r=y6(n,o))||r.enumerable});return e},S6=e=>C6(Zd({},"__esModule",{value:!0}),e),fk={};_6(fk,{isClockSkewError:()=>k6,isRetryableByTrait:()=>x6,isServerError:()=>O6,isThrottlingError:()=>A6,isTransientError:()=>yk});gk.exports=S6(fk);var b6=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],E6=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],P6=["TimeoutError","RequestTimeout","RequestTimeoutException"],v6=[500,502,503,504],w6=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],x6=aa(e=>e.$retryable!==void 0,"isRetryableByTrait"),k6=aa(e=>b6.includes(e.name),"isClockSkewError"),A6=aa(e=>{var n,t;return((n=e.$metadata)==null?void 0:n.httpStatusCode)===429||E6.includes(e.name)||((t=e.$retryable)==null?void 0:t.throttling)==!0},"isThrottlingError"),yk=aa(e=>{var n;return P6.includes(e.name)||w6.includes((e==null?void 0:e.code)||"")||v6.includes(((n=e.$metadata)==null?void 0:n.httpStatusCode)||0)},"isTransientError"),O6=aa(e=>{var n;if(((n=e.$metadata)==null?void 0:n.httpStatusCode)!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!yk(e)}return!1},"isServerError")});var zr=m((Z0e,Ok)=>{var el=Object.defineProperty,N6=Object.getOwnPropertyDescriptor,I6=Object.getOwnPropertyNames,R6=Object.prototype.hasOwnProperty,kt=(e,n)=>el(e,"name",{value:n,configurable:!0}),T6=(e,n)=>{for(var t in n)el(e,t,{get:n[t],enumerable:!0})},B6=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of I6(n))!R6.call(e,o)&&o!==t&&el(e,o,{get:()=>n[o],enumerable:!(r=N6(n,o))||r.enumerable});return e},q6=e=>B6(el({},"__esModule",{value:!0}),e),_k={};T6(_k,{AdaptiveRetryStrategy:()=>z6,ConfiguredRetryStrategy:()=>U6,DEFAULT_MAX_ATTEMPTS:()=>mf,DEFAULT_RETRY_DELAY_BASE:()=>ca,DEFAULT_RETRY_MODE:()=>D6,DefaultRateLimiter:()=>bk,INITIAL_RETRY_TOKENS:()=>pf,INVOCATION_ID_HEADER:()=>F6,MAXIMUM_RETRY_DELAY:()=>ff,NO_RETRY_INCREMENT:()=>wk,REQUEST_HEADER:()=>L6,RETRY_COST:()=>Pk,RETRY_MODES:()=>Ck,StandardRetryStrategy:()=>yf,THROTTLING_RETRY_DELAY_BASE:()=>Ek,TIMEOUT_RETRY_COST:()=>vk});Ok.exports=q6(_k);var Ck=(e=>(e.STANDARD="standard",e.ADAPTIVE="adaptive",e))(Ck||{}),mf=3,D6="standard",M6=uf(),Sk=class{constructor(n){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(n==null?void 0:n.beta)??.7,this.minCapacity=(n==null?void 0:n.minCapacity)??1,this.minFillRate=(n==null?void 0:n.minFillRate)??.5,this.scaleConstant=(n==null?void 0:n.scaleConstant)??.4,this.smooth=(n==null?void 0:n.smooth)??.8;let t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(n){if(this.enabled){if(this.refillTokenBucket(),n>this.currentCapacity){let t=(n-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>setTimeout(r,t))}this.currentCapacity=this.currentCapacity-n}}refillTokenBucket(){let n=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=n;return}let t=(n-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=n}updateClientSendingRate(n){let t;if(this.updateMeasuredRate(),(0,M6.isThrottlingError)(n)){let o=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=o,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(o),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(n){return this.getPrecise(n*this.beta)}cubicSuccess(n){return this.getPrecise(this.scaleConstant*Math.pow(n-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(n){this.refillTokenBucket(),this.fillRate=Math.max(n,this.minFillRate),this.maxCapacity=Math.max(n,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let n=this.getCurrentTimeInSeconds(),t=Math.floor(n*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let r=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(n){return parseFloat(n.toFixed(8))}};kt(Sk,"DefaultRateLimiter");var bk=Sk,ca=100,ff=20*1e3,Ek=500,pf=500,Pk=5,vk=10,wk=1,F6="amz-sdk-invocation-id",L6="amz-sdk-request",j6=kt(()=>{let e=ca;return{computeNextBackoffDelay:kt(r=>Math.floor(Math.min(ff,Math.random()*2**r*e)),"computeNextBackoffDelay"),setDelayBase:kt(r=>{e=r},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),hk=kt(({retryDelay:e,retryCount:n,retryCost:t})=>({getRetryCount:kt(()=>n,"getRetryCount"),getRetryDelay:kt(()=>Math.min(ff,e),"getRetryDelay"),getRetryCost:kt(()=>t,"getRetryCost")}),"createDefaultRetryToken"),xk=class{constructor(n){this.maxAttempts=n,this.mode="standard",this.capacity=pf,this.retryBackoffStrategy=j6(),this.maxAttemptsProvider=typeof n=="function"?n:async()=>n}async acquireInitialRetryToken(n){return hk({retryDelay:ca,retryCount:0})}async refreshRetryTokenForRetry(n,t){let r=await this.getMaxAttempts();if(this.shouldRetry(n,t,r)){let o=t.errorType;this.retryBackoffStrategy.setDelayBase(o==="THROTTLING"?Ek:ca);let s=this.retryBackoffStrategy.computeNextBackoffDelay(n.getRetryCount()),c=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,s):s,i=this.getCapacityCost(o);return this.capacity-=i,hk({retryDelay:c,retryCount:n.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(n){this.capacity=Math.max(pf,this.capacity+(n.getRetryCost()??wk))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${mf}`),mf}}shouldRetry(n,t,r){return n.getRetryCount()+1=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(n){return n==="TRANSIENT"?vk:Pk}isRetryableError(n){return n==="THROTTLING"||n==="TRANSIENT"}};kt(xk,"StandardRetryStrategy");var yf=xk,kk=class{constructor(n,t){this.maxAttemptsProvider=n,this.mode="adaptive";let{rateLimiter:r}=t??{};this.rateLimiter=r??new bk,this.standardRetryStrategy=new yf(n)}async acquireInitialRetryToken(n){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(n)}async refreshRetryTokenForRetry(n,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(n,t)}recordSuccess(n){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(n)}};kt(kk,"AdaptiveRetryStrategy");var z6=kk,Ak=class extends yf{constructor(n,t=ca){super(typeof n=="function"?n:async()=>n),typeof t=="number"?this.computeNextBackoffDelay=()=>t:this.computeNextBackoffDelay=t}async refreshRetryTokenForRetry(n,t){let r=await super.refreshRetryTokenForRetry(n,t);return r.getRetryDelay=()=>this.computeNextBackoffDelay(r.getRetryCount()),r}};kt(Ak,"ConfiguredRetryStrategy");var U6=Ak});var Nk=m(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.isStreamingPayload=void 0;var G6=require("stream"),H6=e=>(e==null?void 0:e.body)instanceof G6.Readable||typeof ReadableStream<"u"&&(e==null?void 0:e.body)instanceof ReadableStream;tl.isStreamingPayload=H6});var sn=m((rve,Vk)=>{var nl=Object.defineProperty,$6=Object.getOwnPropertyDescriptor,K6=Object.getOwnPropertyNames,V6=Object.prototype.hasOwnProperty,Te=(e,n)=>nl(e,"name",{value:n,configurable:!0}),X6=(e,n)=>{for(var t in n)nl(e,t,{get:n[t],enumerable:!0})},W6=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of K6(n))!V6.call(e,o)&&o!==t&&nl(e,o,{get:()=>n[o],enumerable:!(r=$6(n,o))||r.enumerable});return e},Y6=e=>W6(nl({},"__esModule",{value:!0}),e),Rk={};X6(Rk,{AdaptiveRetryStrategy:()=>Z6,CONFIG_MAX_ATTEMPTS:()=>hf,CONFIG_RETRY_MODE:()=>zk,ENV_MAX_ATTEMPTS:()=>gf,ENV_RETRY_MODE:()=>jk,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>eX,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>nX,StandardRetryStrategy:()=>Fk,defaultDelayDecider:()=>Bk,defaultRetryDecider:()=>qk,getOmitRetryHeadersPlugin:()=>rX,getRetryAfterHint:()=>Kk,getRetryPlugin:()=>dX,omitRetryHeadersMiddleware:()=>Uk,omitRetryHeadersMiddlewareOptions:()=>Gk,resolveRetryConfig:()=>tX,retryMiddleware:()=>Hk,retryMiddlewareOptions:()=>$k});Vk.exports=Y6(Rk);var Ur=Ne(),Tk=(pk(),Y(mk)),ve=zr(),J6=Te((e,n)=>{let t=e,r=(n==null?void 0:n.noRetryIncrement)??ve.NO_RETRY_INCREMENT,o=(n==null?void 0:n.retryCost)??ve.RETRY_COST,s=(n==null?void 0:n.timeoutRetryCost)??ve.TIMEOUT_RETRY_COST,c=e,i=Te(y=>y.name==="TimeoutError"?s:o,"getCapacityAmount"),u=Te(y=>i(y)<=c,"hasRetryTokens");return Object.freeze({hasRetryTokens:u,retrieveRetryTokens:Te(y=>{if(!u(y))throw new Error("No retry token available");let g=i(y);return c-=g,g},"retrieveRetryTokens"),releaseRetryTokens:Te(y=>{c+=y??r,c=Math.min(c,t)},"releaseRetryTokens")})},"getDefaultRetryQuota"),Bk=Te((e,n)=>Math.floor(Math.min(ve.MAXIMUM_RETRY_DELAY,Math.random()*2**n*e)),"defaultDelayDecider"),Bn=uf(),qk=Te(e=>e?(0,Bn.isRetryableByTrait)(e)||(0,Bn.isClockSkewError)(e)||(0,Bn.isThrottlingError)(e)||(0,Bn.isTransientError)(e):!1,"defaultRetryDecider"),Dk=Te(e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),"asSdkError"),Mk=class{constructor(n,t){this.maxAttemptsProvider=n,this.mode=ve.RETRY_MODES.STANDARD,this.retryDecider=(t==null?void 0:t.retryDecider)??qk,this.delayDecider=(t==null?void 0:t.delayDecider)??Bk,this.retryQuota=(t==null?void 0:t.retryQuota)??J6(ve.INITIAL_RETRY_TOKENS)}shouldRetry(n,t,r){return tsetTimeout(v,C));continue}throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=s,a.$metadata.totalRetryDelay=c,a}}};Te(Mk,"StandardRetryStrategy");var Fk=Mk,Q6=Te(e=>{if(!Ur.HttpResponse.isInstance(e))return;let n=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!n)return;let t=e.headers[n],r=Number(t);return Number.isNaN(r)?new Date(t).getTime()-Date.now():r*1e3},"getDelayFromRetryAfterHeader"),Lk=class extends Fk{constructor(n,t){let{rateLimiter:r,...o}=t??{};super(n,o),this.rateLimiter=r??new ve.DefaultRateLimiter,this.mode=ve.RETRY_MODES.ADAPTIVE}async retry(n,t){return super.retry(n,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};Te(Lk,"AdaptiveRetryStrategy");var Z6=Lk,Ik=Tr(),gf="AWS_MAX_ATTEMPTS",hf="max_attempts",eX={environmentVariableSelector:e=>{let n=e[gf];if(!n)return;let t=parseInt(n);if(Number.isNaN(t))throw new Error(`Environment variable ${gf} mast be a number, got "${n}"`);return t},configFileSelector:e=>{let n=e[hf];if(!n)return;let t=parseInt(n);if(Number.isNaN(t))throw new Error(`Shared config file entry ${hf} mast be a number, got "${n}"`);return t},default:ve.DEFAULT_MAX_ATTEMPTS},tX=Te(e=>{let{retryStrategy:n}=e,t=(0,Ik.normalizeProvider)(e.maxAttempts??ve.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:t,retryStrategy:async()=>n||(await(0,Ik.normalizeProvider)(e.retryMode)()===ve.RETRY_MODES.ADAPTIVE?new ve.AdaptiveRetryStrategy(t):new ve.StandardRetryStrategy(t))}},"resolveRetryConfig"),jk="AWS_RETRY_MODE",zk="retry_mode",nX={environmentVariableSelector:e=>e[jk],configFileSelector:e=>e[zk],default:ve.DEFAULT_RETRY_MODE},Uk=Te(()=>e=>async n=>{let{request:t}=n;return Ur.HttpRequest.isInstance(t)&&(delete t.headers[ve.INVOCATION_ID_HEADER],delete t.headers[ve.REQUEST_HEADER]),e(n)},"omitRetryHeadersMiddleware"),Gk={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},rX=Te(e=>({applyToStack:n=>{n.addRelativeTo(Uk(),Gk)}}),"getOmitRetryHeadersPlugin"),oX=b(),sX=Nk(),Hk=Te(e=>(n,t)=>async r=>{var o;let s=await e.retryStrategy(),c=await e.maxAttempts();if(iX(s)){s=s;let i=await s.acquireInitialRetryToken(t.partition_id),u=new Error,l=0,a=0,{request:y}=r,g=Ur.HttpRequest.isInstance(y);for(g&&(y.headers[ve.INVOCATION_ID_HEADER]=(0,Tk.v4)());;)try{g&&(y.headers[ve.REQUEST_HEADER]=`attempt=${l+1}; max=${c}`);let{response:C,output:v}=await n(r);return s.recordSuccess(i),v.$metadata.attempts=l+1,v.$metadata.totalRetryDelay=a,{response:C,output:v}}catch(C){let v=aX(C);if(u=Dk(C),g&&(0,sX.isStreamingPayload)(y))throw(o=t.logger instanceof oX.NoOpLogger?console:t.logger)==null||o.warn("An error was encountered in a non-retryable streaming request."),u;try{i=await s.refreshRetryTokenForRetry(i,v)}catch{throw u.$metadata||(u.$metadata={}),u.$metadata.attempts=l+1,u.$metadata.totalRetryDelay=a,u}l=i.getRetryCount();let A=i.getRetryDelay();a+=A,await new Promise(E=>setTimeout(E,A))}}else return s=s,s!=null&&s.mode&&(t.userAgent=[...t.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(n,r)},"retryMiddleware"),iX=Te(e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u","isRetryStrategyV2"),aX=Te(e=>{let n={errorType:cX(e)},t=Kk(e.$response);return t&&(n.retryAfterHint=t),n},"getRetryErrorInfo"),cX=Te(e=>(0,Bn.isThrottlingError)(e)?"THROTTLING":(0,Bn.isTransientError)(e)?"TRANSIENT":(0,Bn.isServerError)(e)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),$k={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},dX=Te(e=>({applyToStack:n=>{n.add(Hk(e),$k)}}),"getRetryPlugin"),Kk=Te(e=>{if(!Ur.HttpResponse.isInstance(e))return;let n=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!n)return;let t=e.headers[n],r=Number(t);return Number.isNaN(r)?new Date(t):new Date(r*1e3)},"getRetryAfterHint")});var Xk=m(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.resolveClientEndpointParameters=void 0;var lX=e=>({...e,useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:"s3"});rl.resolveClientEndpointParameters=lX});var Wk=m((sve,uX)=>{uX.exports={name:"@aws-sdk/client-s3",description:"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3",test:"yarn test:unit","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js","test:unit":"ts-mocha test/**/*.spec.ts"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":"3.0.0","@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.421.0","@aws-sdk/credential-provider-node":"3.421.0","@aws-sdk/middleware-bucket-endpoint":"3.418.0","@aws-sdk/middleware-expect-continue":"3.418.0","@aws-sdk/middleware-flexible-checksums":"3.418.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-location-constraint":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-sdk-s3":"3.418.0","@aws-sdk/middleware-signing":"3.418.0","@aws-sdk/middleware-ssec":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/signature-v4-multi-region":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@aws-sdk/xml-builder":"3.310.0","@smithy/config-resolver":"^2.0.10","@smithy/eventstream-serde-browser":"^2.0.9","@smithy/eventstream-serde-config-resolver":"^2.0.9","@smithy/eventstream-serde-node":"^2.0.9","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-blob-browser":"^2.0.9","@smithy/hash-node":"^2.0.9","@smithy/hash-stream-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/md5-js":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-stream":"^2.0.12","@smithy/util-utf8":"^2.0.0","@smithy/util-waiter":"^2.0.9","fast-xml-parser":"4.2.5",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.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-s3",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-s3"}}});var Yk=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.resolveStsAuthConfig=void 0;var mX=rn(),pX=(e,{stsClientCtor:n})=>(0,mX.resolveAwsAuthConfig)({...e,stsClientCtor:n});ol.resolveStsAuthConfig=pX});var Jk=m(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.resolveClientEndpointParameters=void 0;var fX=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"});sl.resolveClientEndpointParameters=fX});var Qk=m((cve,yX)=>{yX.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.421.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-sdk-sts":"3.418.0","@aws-sdk/middleware-signing":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0","fast-xml-parser":"4.2.5",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.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-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var il=m(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.STSServiceException=Gr.__ServiceException=void 0;var Zk=b();Object.defineProperty(Gr,"__ServiceException",{enumerable:!0,get:function(){return Zk.ServiceException}});var _f=class e extends Zk.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};Gr.STSServiceException=_f});var Dn=m(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.GetSessionTokenResponseFilterSensitiveLog=ie.GetFederationTokenResponseFilterSensitiveLog=ie.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=ie.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=ie.AssumeRoleWithSAMLResponseFilterSensitiveLog=ie.AssumeRoleWithSAMLRequestFilterSensitiveLog=ie.AssumeRoleResponseFilterSensitiveLog=ie.CredentialsFilterSensitiveLog=ie.InvalidAuthorizationMessageException=ie.IDPCommunicationErrorException=ie.InvalidIdentityTokenException=ie.IDPRejectedClaimException=ie.RegionDisabledException=ie.PackedPolicyTooLargeException=ie.MalformedPolicyDocumentException=ie.ExpiredTokenException=void 0;var kf=b(),qn=il(),Cf=class e extends qn.STSServiceException{constructor(n){super({name:"ExpiredTokenException",$fault:"client",...n}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.ExpiredTokenException=Cf;var Sf=class e extends qn.STSServiceException{constructor(n){super({name:"MalformedPolicyDocumentException",$fault:"client",...n}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.MalformedPolicyDocumentException=Sf;var bf=class e extends qn.STSServiceException{constructor(n){super({name:"PackedPolicyTooLargeException",$fault:"client",...n}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.PackedPolicyTooLargeException=bf;var Ef=class e extends qn.STSServiceException{constructor(n){super({name:"RegionDisabledException",$fault:"client",...n}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.RegionDisabledException=Ef;var Pf=class e extends qn.STSServiceException{constructor(n){super({name:"IDPRejectedClaimException",$fault:"client",...n}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.IDPRejectedClaimException=Pf;var vf=class e extends qn.STSServiceException{constructor(n){super({name:"InvalidIdentityTokenException",$fault:"client",...n}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.InvalidIdentityTokenException=vf;var wf=class e extends qn.STSServiceException{constructor(n){super({name:"IDPCommunicationErrorException",$fault:"client",...n}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.IDPCommunicationErrorException=wf;var xf=class e extends qn.STSServiceException{constructor(n){super({name:"InvalidAuthorizationMessageException",$fault:"client",...n}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.InvalidAuthorizationMessageException=xf;var gX=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:kf.SENSITIVE_STRING}});ie.CredentialsFilterSensitiveLog=gX;var hX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.AssumeRoleResponseFilterSensitiveLog=hX;var _X=e=>({...e,...e.SAMLAssertion&&{SAMLAssertion:kf.SENSITIVE_STRING}});ie.AssumeRoleWithSAMLRequestFilterSensitiveLog=_X;var CX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.AssumeRoleWithSAMLResponseFilterSensitiveLog=CX;var SX=e=>({...e,...e.WebIdentityToken&&{WebIdentityToken:kf.SENSITIVE_STRING}});ie.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=SX;var bX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=bX;var EX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.GetFederationTokenResponseFilterSensitiveLog=EX;var PX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.GetSessionTokenResponseFilterSensitiveLog=PX});var al=m(an=>{"use strict";var eA=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",vX=eA+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",tA="["+eA+"]["+vX+"]*",wX=new RegExp("^"+tA+"$"),xX=function(e,n){let t=[],r=n.exec(e);for(;r;){let o=[];o.startIndex=n.lastIndex-r[0].length;let s=r.length;for(let c=0;c"u")};an.isExist=function(e){return typeof e<"u"};an.isEmptyObject=function(e){return Object.keys(e).length===0};an.merge=function(e,n,t){if(n){let r=Object.keys(n),o=r.length;for(let s=0;s{"use strict";var Af=al(),AX={allowBooleanAttributes:!1,unpairedTags:[]};iA.validate=function(e,n){n=Object.assign({},AX,n);let t=[],r=!1,o=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let s=0;s"&&e[s]!==" "&&e[s]!==" "&&e[s]!==` +${(0,Br.toHex)(s)}`}getCanonicalPath({path:n}){if(this.uriEscapePath){let t=[];for(let s of n.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?t.pop():t.push(s));let r=`${n!=null&&n.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&(n!=null&&n.endsWith("/"))?"/":""}`;return encodeURIComponent(r).replace(/%2F/g,"/")}return n}async getSignature(n,t,r,o){let s=await this.createStringToSign(n,t,o),c=new this.sha256(await r);return c.update((0,Ui.toUint8Array)(s)),(0,Br.toHex)(await c.digest())}getSigningKey(n,t,r,o){return m0(this.sha256,n,r,t,o||this.service)}validateResolvedCredentials(n){if(typeof n!="object"||typeof n.accessKeyId!="string"||typeof n.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}};$e(g0,"SignatureV4");var H2=g0,Mc=$e(e=>{let n=U2(e).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}},"formatDate"),o0=$e(e=>Object.keys(e).sort().join(";"),"getCanonicalHeaderList")});var C0=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.resolveSigV4AuthConfig=Mr.resolveAwsAuthConfig=void 0;var $2=xe(),Ip=Np(),Dr=Tr(),K2=3e5,V2=e=>{let n=e.credentials?_0(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:t=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:o}=e,s;return e.signer?s=(0,Dr.normalizeProvider)(e.signer):e.regionInfoProvider?s=()=>(0,Dr.normalizeProvider)(e.region)().then(async c=>[await e.regionInfoProvider(c,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},c]).then(([c,i])=>{let{signingRegion:u,signingService:l}=c;e.signingRegion=e.signingRegion||u||i,e.signingName=e.signingName||l||e.serviceId;let a={...e,credentials:n,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:t},y=e.signerConstructor||Ip.SignatureV4;return new y(a)}):s=async c=>{c=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,Dr.normalizeProvider)(e.region)(),properties:{}},c);let i=c.signingRegion,u=c.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||u||e.serviceId;let l={...e,credentials:n,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:t},a=e.signerConstructor||Ip.SignatureV4;return new a(l)},{...e,systemClockOffset:r,signingEscapePath:t,credentials:n,signer:s}};Mr.resolveAwsAuthConfig=V2;var X2=e=>{let n=e.credentials?_0(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:t=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:o}=e,s;return e.signer?s=(0,Dr.normalizeProvider)(e.signer):s=(0,Dr.normalizeProvider)(new Ip.SignatureV4({credentials:n,region:e.region,service:e.signingName,sha256:o,uriEscapePath:t})),{...e,systemClockOffset:r,signingEscapePath:t,credentials:n,signer:s}};Mr.resolveSigV4AuthConfig=X2;var _0=e=>typeof e=="function"?(0,$2.memoize)(e,n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()n.expiration!==void 0):(0,Dr.normalizeProvider)(e)});var Rp=m(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.getSkewCorrectedDate=void 0;var W2=e=>new Date(Date.now()+e);Uc.getSkewCorrectedDate=W2});var S0=m(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.isClockSkewed=void 0;var Y2=Rp(),J2=(e,n)=>Math.abs((0,Y2.getSkewCorrectedDate)(n).getTime()-e)>=3e5;Gc.isClockSkewed=J2});var b0=m(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.getUpdatedSystemClockOffset=void 0;var Q2=S0(),Z2=(e,n)=>{let t=Date.parse(e);return(0,Q2.isClockSkewed)(t,n)?t-Date.now():n};Hc.getUpdatedSystemClockOffset=Z2});var w0=m(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.getSigV4AuthPlugin=ct.getAwsAuthPlugin=ct.awsAuthMiddlewareOptions=ct.awsAuthMiddleware=void 0;var v0=Ne(),eH=Rp(),E0=b0(),tH=e=>(n,t)=>async function(r){var o,s,c,i;if(!v0.HttpRequest.isInstance(r.request))return n(r);let u=(c=(s=(o=t.endpointV2)===null||o===void 0?void 0:o.properties)===null||s===void 0?void 0:s.authSchemes)===null||c===void 0?void 0:c[0],l=(u==null?void 0:u.name)==="sigv4a"?(i=u==null?void 0:u.signingRegionSet)===null||i===void 0?void 0:i.join(","):void 0,a=await e.signer(u),y=await n({...r,request:await a.sign(r.request,{signingDate:(0,eH.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:l||t.signing_region,signingService:t.signing_service})}).catch(C=>{var v;let A=(v=C.ServerTime)!==null&&v!==void 0?v:P0(C.$response);throw A&&(e.systemClockOffset=(0,E0.getUpdatedSystemClockOffset)(A,e.systemClockOffset)),C}),g=P0(y.response);return g&&(e.systemClockOffset=(0,E0.getUpdatedSystemClockOffset)(g,e.systemClockOffset)),y};ct.awsAuthMiddleware=tH;var P0=e=>{var n,t,r;return v0.HttpResponse.isInstance(e)?(t=(n=e.headers)===null||n===void 0?void 0:n.date)!==null&&t!==void 0?t:(r=e.headers)===null||r===void 0?void 0:r.Date:void 0};ct.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var nH=e=>({applyToStack:n=>{n.addRelativeTo((0,ct.awsAuthMiddleware)(e),ct.awsAuthMiddlewareOptions)}});ct.getAwsAuthPlugin=nH;ct.getSigV4AuthPlugin=ct.getAwsAuthPlugin});var rn=m($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});var x0=(te(),Y(ee));x0.__exportStar(C0(),$c);x0.__exportStar(w0(),$c)});var k0=m(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.resolveUserAgentConfig=void 0;function rH(e){return{...e,customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent}}Kc.resolveUserAgentConfig=rH});var A0=m((SEe,oH)=>{oH.exports={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"}});var Tp=m(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.getUserAgentPrefix=Pt.useDefaultPartitionInfo=Pt.setPartitionInfo=Pt.partition=void 0;var sH=(te(),Y(ee)),O0=sH.__importDefault(A0()),N0=O0.default,I0="",iH=e=>{let{partitions:n}=N0;for(let r of n){let{regions:o,outputs:s}=r;for(let[c,i]of Object.entries(o))if(c===e)return{...s,...i}}for(let r of n){let{regionRegex:o,outputs:s}=r;if(new RegExp(o).test(e))return{...s}}let t=n.find(r=>r.id==="aws");if(!t)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...t.outputs}};Pt.partition=iH;var aH=(e,n="")=>{N0=e,I0=n};Pt.setPartitionInfo=aH;var cH=()=>{(0,Pt.setPartitionInfo)(O0.default,"")};Pt.useDefaultPartitionInfo=cH;var dH=()=>I0;Pt.getUserAgentPrefix=dH});var Xc=m(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.isIpAddress=void 0;var lH=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),uH=e=>lH.test(e)||e.startsWith("[")&&e.endsWith("]");Vc.isIpAddress=uH});var R0=m(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.debugId=void 0;Wc.debugId="endpoints"});var T0=m(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.toDebugString=void 0;function Bp(e){return typeof e!="object"||e==null?e:"ref"in e?`$${Bp(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Bp).join(", ")})`:JSON.stringify(e,null,2)}Yc.toDebugString=Bp});var Gi=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var B0=(te(),Y(ee));B0.__exportStar(R0(),Jc);B0.__exportStar(T0(),Jc)});var q0=m(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.EndpointError=void 0;var qp=class extends Error{constructor(n){super(n),this.name="EndpointError"}};Qc.EndpointError=qp});var M0=m(D0=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0})});var L0=m(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0})});var z0=m(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0})});var G0=m(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0})});var $0=m(H0=>{"use strict";Object.defineProperty(H0,"__esModule",{value:!0})});var gt=m(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});var Fr=(te(),Y(ee));Fr.__exportStar(q0(),Nn);Fr.__exportStar(M0(),Nn);Fr.__exportStar(L0(),Nn);Fr.__exportStar(z0(),Nn);Fr.__exportStar(G0(),Nn);Fr.__exportStar($0(),Nn)});var Dp=m(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.isValidHostLabel=void 0;var mH=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),pH=(e,n=!1)=>{if(!n)return mH.test(e);let t=e.split(".");for(let r of t)if(!(0,Hi.isValidHostLabel)(r))return!1;return!0};Hi.isValidHostLabel=pH});var K0=m($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.isVirtualHostableS3Bucket=void 0;var fH=Xc(),yH=Dp(),gH=(e,n=!1)=>{if(n){for(let t of e.split("."))if(!(0,$i.isVirtualHostableS3Bucket)(t))return!1;return!0}return!(!(0,yH.isValidHostLabel)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,fH.isIpAddress)(e))};$i.isVirtualHostableS3Bucket=gH});var V0=m(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.parseArn=void 0;var hH=e=>{let n=e.split(":");if(n.length<6)return null;let[t,r,o,s,c,...i]=n;return t!=="arn"||r===""||o===""||i[0]===""?null:{partition:r,service:o,region:s,accountId:c,resourceId:i[0].includes("/")?i[0].split("/"):i}};Zc.parseArn=hH});var X0=m(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});var Mp=(te(),Y(ee));Mp.__exportStar(K0(),Ki);Mp.__exportStar(V0(),Ki);Mp.__exportStar(Tp(),Ki)});var W0=m(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.booleanEquals=void 0;var _H=(e,n)=>e===n;ed.booleanEquals=_H});var J0=m(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.getAttrPathList=void 0;var Y0=gt(),CH=e=>{let n=e.split("."),t=[];for(let r of n){let o=r.indexOf("[");if(o!==-1){if(r.indexOf("]")!==r.length-1)throw new Y0.EndpointError(`Path: '${e}' does not end with ']'`);let s=r.slice(o+1,-1);if(Number.isNaN(parseInt(s)))throw new Y0.EndpointError(`Invalid array index: '${s}' in path: '${e}'`);o!==0&&t.push(r.slice(0,o)),t.push(s)}else t.push(r)}return t};td.getAttrPathList=CH});var Q0=m(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.getAttr=void 0;var SH=gt(),bH=J0(),EH=(e,n)=>(0,bH.getAttrPathList)(n).reduce((t,r)=>{if(typeof t!="object")throw new SH.EndpointError(`Index '${r}' in '${n}' not found in '${JSON.stringify(e)}'`);return Array.isArray(t)?t[parseInt(r)]:t[r]},e);nd.getAttr=EH});var Z0=m(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.isSet=void 0;var PH=e=>e!=null;rd.isSet=PH});var ev=m(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.not=void 0;var vH=e=>!e;od.not=vH});var nv=m(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0})});var rv=m(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.HttpAuthLocation=void 0;var wH=w();Object.defineProperty(sd,"HttpAuthLocation",{enumerable:!0,get:function(){return wH.HttpAuthLocation}})});var sv=m(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0})});var av=m(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0})});var dv=m(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0})});var uv=m(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0})});var pv=m(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0})});var yv=m(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0})});var hv=m(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0})});var _v=m(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.HostAddressType=void 0;var xH;(function(e){e.AAAA="AAAA",e.A="A"})(xH=Vi.HostAddressType||(Vi.HostAddressType={}))});var Sv=m(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0})});var bv=m(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.EndpointURLScheme=void 0;var kH=w();Object.defineProperty(id,"EndpointURLScheme",{enumerable:!0,get:function(){return kH.EndpointURLScheme}})});var Pv=m(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0})});var wv=m(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0})});var kv=m(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0})});var Ov=m(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0})});var Iv=m(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0})});var Tv=m(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0})});var qv=m(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0})});var Mv=m(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0})});var Fv=m(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});var Xi=(te(),Y(ee));Xi.__exportStar(Ov(),lr);Xi.__exportStar(Iv(),lr);Xi.__exportStar(Tv(),lr);Xi.__exportStar(qv(),lr);Xi.__exportStar(Mv(),lr)});var jv=m(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0})});var Uv=m(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0})});var Hv=m(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0})});var Kv=m($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0})});var Xv=m(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0})});var Yv=m(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0})});var Qv=m(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0})});var ew=m(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0})});var nw=m(tw=>{"use strict";Object.defineProperty(tw,"__esModule",{value:!0})});var ow=m(rw=>{"use strict";Object.defineProperty(rw,"__esModule",{value:!0})});var iw=m(sw=>{"use strict";Object.defineProperty(sw,"__esModule",{value:!0})});var cw=m(aw=>{"use strict";Object.defineProperty(aw,"__esModule",{value:!0})});var dw=m(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.RequestHandlerProtocol=void 0;var AH=w();Object.defineProperty(ad,"RequestHandlerProtocol",{enumerable:!0,get:function(){return AH.RequestHandlerProtocol}})});var uw=m(lw=>{"use strict";Object.defineProperty(lw,"__esModule",{value:!0})});var pw=m(mw=>{"use strict";Object.defineProperty(mw,"__esModule",{value:!0})});var yw=m(fw=>{"use strict";Object.defineProperty(fw,"__esModule",{value:!0})});var gw=m(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});var me=(te(),Y(ee));me.__exportStar(nv(),le);me.__exportStar(rv(),le);me.__exportStar(sv(),le);me.__exportStar(av(),le);me.__exportStar(dv(),le);me.__exportStar(uv(),le);me.__exportStar(pv(),le);me.__exportStar(yv(),le);me.__exportStar(hv(),le);me.__exportStar(_v(),le);me.__exportStar(Sv(),le);me.__exportStar(bv(),le);me.__exportStar(Pv(),le);me.__exportStar(wv(),le);me.__exportStar(kv(),le);me.__exportStar(Fv(),le);me.__exportStar(jv(),le);me.__exportStar(Uv(),le);me.__exportStar(Hv(),le);me.__exportStar(Kv(),le);me.__exportStar(Xv(),le);me.__exportStar(Yv(),le);me.__exportStar(Qv(),le);me.__exportStar(ew(),le);me.__exportStar(nw(),le);me.__exportStar(ow(),le);me.__exportStar(iw(),le);me.__exportStar(cw(),le);me.__exportStar(dw(),le);me.__exportStar(uw(),le);me.__exportStar(pw(),le);me.__exportStar(yw(),le)});var hw=m(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.parseURL=void 0;var Lp=gw(),OH=Xc(),Fp={[Lp.EndpointURLScheme.HTTP]:80,[Lp.EndpointURLScheme.HTTPS]:443},NH=e=>{let n=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:g,port:C,protocol:v="",path:A="",query:E={}}=e,G=new URL(`${v}//${g}${C?`:${C}`:""}${A}`);return G.search=Object.entries(E).map(([ye,nt])=>`${ye}=${nt}`).join("&"),G}return new URL(e)}catch{return null}})();if(!n)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let t=n.href,{host:r,hostname:o,pathname:s,protocol:c,search:i}=n;if(i)return null;let u=c.slice(0,-1);if(!Object.values(Lp.EndpointURLScheme).includes(u))return null;let l=(0,OH.isIpAddress)(o),a=t.includes(`${r}:${Fp[u]}`)||typeof e=="string"&&e.includes(`${r}:${Fp[u]}`),y=`${r}${a?`:${Fp[u]}`:""}`;return{scheme:u,authority:y,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:l}};cd.parseURL=NH});var _w=m(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.stringEquals=void 0;var IH=(e,n)=>e===n;dd.stringEquals=IH});var Cw=m(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.substring=void 0;var RH=(e,n,t,r)=>n>=t||e.length{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.uriEncode=void 0;var TH=e=>encodeURIComponent(e).replace(/[!*'()]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`);ud.uriEncode=TH});var jp=m(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.aws=void 0;var qt=(te(),Y(ee));dt.aws=qt.__importStar(X0());qt.__exportStar(W0(),dt);qt.__exportStar(Q0(),dt);qt.__exportStar(Z0(),dt);qt.__exportStar(Dp(),dt);qt.__exportStar(ev(),dt);qt.__exportStar(hw(),dt);qt.__exportStar(_w(),dt);qt.__exportStar(Cw(),dt);qt.__exportStar(Sw(),dt)});var zp=m(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.evaluateTemplate=void 0;var BH=jp(),qH=(e,n)=>{let t=[],r={...n.endpointParams,...n.referenceRecord},o=0;for(;o{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.getReferenceValue=void 0;var DH=({ref:e},n)=>({...n.endpointParams,...n.referenceRecord})[e];pd.getReferenceValue=DH});var Wi=m(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.evaluateExpression=void 0;var MH=gt(),FH=Up(),LH=zp(),jH=bw(),zH=(e,n,t)=>{if(typeof e=="string")return(0,LH.evaluateTemplate)(e,t);if(e.fn)return(0,FH.callFunction)(e,t);if(e.ref)return(0,jH.getReferenceValue)(e,t);throw new MH.EndpointError(`'${n}': ${String(e)} is not a string, function or reference.`)};fd.evaluateExpression=zH});var Up=m(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.callFunction=void 0;var UH=(te(),Y(ee)),GH=UH.__importStar(jp()),HH=Wi(),$H=({fn:e,argv:n},t)=>{let r=n.map(o=>["boolean","number"].includes(typeof o)?o:(0,HH.evaluateExpression)(o,"arg",t));return e.split(".").reduce((o,s)=>o[s],GH)(...r)};yd.callFunction=$H});var Ew=m(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.evaluateCondition=void 0;var Gp=Gi(),KH=gt(),VH=Up(),XH=({assign:e,...n},t)=>{var r,o;if(e&&e in t.referenceRecord)throw new KH.EndpointError(`'${e}' is already defined in Reference Record.`);let s=(0,VH.callFunction)(n,t);return(o=(r=t.logger)===null||r===void 0?void 0:r.debug)===null||o===void 0||o.call(r,Gp.debugId,`evaluateCondition: ${(0,Gp.toDebugString)(n)} = ${(0,Gp.toDebugString)(s)}`),{result:s===""?!0:!!s,...e!=null&&{toAssign:{name:e,value:s}}}};gd.evaluateCondition=XH});var _d=m(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.evaluateConditions=void 0;var Pw=Gi(),WH=Ew(),YH=(e=[],n)=>{var t,r;let o={};for(let s of e){let{result:c,toAssign:i}=(0,WH.evaluateCondition)(s,{...n,referenceRecord:{...n.referenceRecord,...o}});if(!c)return{result:c};i&&(o[i.name]=i.value,(r=(t=n.logger)===null||t===void 0?void 0:t.debug)===null||r===void 0||r.call(t,Pw.debugId,`assign: ${i.name} := ${(0,Pw.toDebugString)(i.value)}`))}return{result:!0,referenceRecord:o}};hd.evaluateConditions=YH});var vw=m(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.getEndpointHeaders=void 0;var JH=gt(),QH=Wi(),ZH=(e,n)=>Object.entries(e).reduce((t,[r,o])=>({...t,[r]:o.map(s=>{let c=(0,QH.evaluateExpression)(s,"Header value entry",n);if(typeof c!="string")throw new JH.EndpointError(`Header '${r}' value '${c}' is not a string`);return c})}),{});Cd.getEndpointHeaders=ZH});var xw=m(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.getEndpointProperty=void 0;var ww=gt(),e$=zp(),t$=Hp(),n$=(e,n)=>{if(Array.isArray(e))return e.map(t=>(0,Yi.getEndpointProperty)(t,n));switch(typeof e){case"string":return(0,e$.evaluateTemplate)(e,n);case"object":if(e===null)throw new ww.EndpointError(`Unexpected endpoint property: ${e}`);return(0,t$.getEndpointProperties)(e,n);case"boolean":return e;default:throw new ww.EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};Yi.getEndpointProperty=n$});var Hp=m(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.getEndpointProperties=void 0;var r$=xw(),o$=(e,n)=>Object.entries(e).reduce((t,[r,o])=>({...t,[r]:(0,r$.getEndpointProperty)(o,n)}),{});Sd.getEndpointProperties=o$});var kw=m(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.getEndpointUrl=void 0;var s$=gt(),i$=Wi(),a$=(e,n)=>{let t=(0,i$.evaluateExpression)(e,"Endpoint URL",n);if(typeof t=="string")try{return new URL(t)}catch(r){throw console.error(`Failed to construct URL with ${t}`,r),r}throw new s$.EndpointError(`Endpoint URL must be a string, got ${typeof t}`)};bd.getEndpointUrl=a$});var Ow=m(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.evaluateEndpointRule=void 0;var Aw=Gi(),c$=_d(),d$=vw(),l$=Hp(),u$=kw(),m$=(e,n)=>{var t,r;let{conditions:o,endpoint:s}=e,{result:c,referenceRecord:i}=(0,c$.evaluateConditions)(o,n);if(!c)return;let u={...n,referenceRecord:{...n.referenceRecord,...i}},{url:l,properties:a,headers:y}=s;return(r=(t=n.logger)===null||t===void 0?void 0:t.debug)===null||r===void 0||r.call(t,Aw.debugId,`Resolving endpoint from template: ${(0,Aw.toDebugString)(s)}`),{...y!=null&&{headers:(0,d$.getEndpointHeaders)(y,u)},...a!=null&&{properties:(0,l$.getEndpointProperties)(a,u)},url:(0,u$.getEndpointUrl)(l,u)}};Ed.evaluateEndpointRule=m$});var Nw=m(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.evaluateErrorRule=void 0;var p$=gt(),f$=_d(),y$=Wi(),g$=(e,n)=>{let{conditions:t,error:r}=e,{result:o,referenceRecord:s}=(0,f$.evaluateConditions)(t,n);if(o)throw new p$.EndpointError((0,y$.evaluateExpression)(r,"Error",{...n,referenceRecord:{...n.referenceRecord,...s}}))};Pd.evaluateErrorRule=g$});var Iw=m(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.evaluateTreeRule=void 0;var h$=_d(),_$=$p(),C$=(e,n)=>{let{conditions:t,rules:r}=e,{result:o,referenceRecord:s}=(0,h$.evaluateConditions)(t,n);if(o)return(0,_$.evaluateRules)(r,{...n,referenceRecord:{...n.referenceRecord,...s}})};vd.evaluateTreeRule=C$});var $p=m(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.evaluateRules=void 0;var Rw=gt(),S$=Ow(),b$=Nw(),E$=Iw(),P$=(e,n)=>{for(let t of e)if(t.type==="endpoint"){let r=(0,S$.evaluateEndpointRule)(t,n);if(r)return r}else if(t.type==="error")(0,b$.evaluateErrorRule)(t,n);else if(t.type==="tree"){let r=(0,E$.evaluateTreeRule)(t,n);if(r)return r}else throw new Rw.EndpointError(`Unknown endpoint rule: ${t}`);throw new Rw.EndpointError("Rules evaluation failed")};wd.evaluateRules=P$});var Tw=m(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var v$=(te(),Y(ee));v$.__exportStar($p(),Kp)});var Bw=m(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.resolveEndpoint=void 0;var xd=Gi(),w$=gt(),x$=Tw(),k$=(e,n)=>{var t,r,o,s,c,i;let{endpointParams:u,logger:l}=n,{parameters:a,rules:y}=e;(r=(t=n.logger)===null||t===void 0?void 0:t.debug)===null||r===void 0||r.call(t,`${xd.debugId} Initial EndpointParams: ${(0,xd.toDebugString)(u)}`);let g=Object.entries(a).filter(([,A])=>A.default!=null).map(([A,E])=>[A,E.default]);if(g.length>0)for(let[A,E]of g)u[A]=(o=u[A])!==null&&o!==void 0?o:E;let C=Object.entries(a).filter(([,A])=>A.required).map(([A])=>A);for(let A of C)if(u[A]==null)throw new w$.EndpointError(`Missing required parameter: '${A}'`);let v=(0,x$.evaluateRules)(y,{endpointParams:u,logger:l,referenceRecord:{}});if(!((s=n.endpointParams)===null||s===void 0)&&s.Endpoint)try{let A=new URL(n.endpointParams.Endpoint),{protocol:E,port:G}=A;v.url.protocol=E,v.url.port=G}catch{}return(i=(c=n.logger)===null||c===void 0?void 0:c.debug)===null||i===void 0||i.call(c,`${xd.debugId} Resolved endpoint: ${(0,xd.toDebugString)(v)}`),v};kd.resolveEndpoint=k$});var jr=m(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});var Ad=(te(),Y(ee));Ad.__exportStar(Tp(),Lr);Ad.__exportStar(Xc(),Lr);Ad.__exportStar(Bw(),Lr);Ad.__exportStar(gt(),Lr)});var qw=m(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.UA_ESCAPE_CHAR=Je.UA_VALUE_ESCAPE_REGEX=Je.UA_NAME_ESCAPE_REGEX=Je.UA_NAME_SEPARATOR=Je.SPACE=Je.X_AMZ_USER_AGENT=Je.USER_AGENT=void 0;Je.USER_AGENT="user-agent";Je.X_AMZ_USER_AGENT="x-amz-user-agent";Je.SPACE=" ";Je.UA_NAME_SEPARATOR="/";Je.UA_NAME_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;Je.UA_VALUE_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;Je.UA_ESCAPE_CHAR="-"});var Dw=m(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.getUserAgentPlugin=Dt.getUserAgentMiddlewareOptions=Dt.userAgentMiddleware=void 0;var A$=jr(),O$=Ne(),st=qw(),N$=e=>(n,t)=>async r=>{var o,s;let{request:c}=r;if(!O$.HttpRequest.isInstance(c))return n(r);let{headers:i}=c,u=((o=t==null?void 0:t.userAgent)===null||o===void 0?void 0:o.map(Vp))||[],l=(await e.defaultUserAgentProvider()).map(Vp),a=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(Vp))||[],y=(0,A$.getUserAgentPrefix)(),g=(y?[y]:[]).concat([...l,...u,...a]).join(st.SPACE),C=[...l.filter(v=>v.startsWith("aws-sdk-")),...a].join(st.SPACE);return e.runtime!=="browser"?(C&&(i[st.X_AMZ_USER_AGENT]=i[st.X_AMZ_USER_AGENT]?`${i[st.USER_AGENT]} ${C}`:C),i[st.USER_AGENT]=g):i[st.X_AMZ_USER_AGENT]=g,n({...r,request:c})};Dt.userAgentMiddleware=N$;var Vp=e=>{var n;let t=e[0].split(st.UA_NAME_SEPARATOR).map(i=>i.replace(st.UA_NAME_ESCAPE_REGEX,st.UA_ESCAPE_CHAR)).join(st.UA_NAME_SEPARATOR),r=(n=e[1])===null||n===void 0?void 0:n.replace(st.UA_VALUE_ESCAPE_REGEX,st.UA_ESCAPE_CHAR),o=t.indexOf(st.UA_NAME_SEPARATOR),s=t.substring(0,o),c=t.substring(o+1);return s==="api"&&(c=c.toLowerCase()),[s,c,r].filter(i=>i&&i.length>0).reduce((i,u,l)=>{switch(l){case 0:return u;case 1:return`${i}/${u}`;default:return`${i}#${u}`}},"")};Dt.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var I$=e=>({applyToStack:n=>{n.add((0,Dt.userAgentMiddleware)(e),Dt.getUserAgentMiddlewareOptions)}});Dt.getUserAgentPlugin=I$});var Ji=m(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var Mw=(te(),Y(ee));Mw.__exportStar(k0(),Od);Mw.__exportStar(Dw(),Od)});var Id=m((JPe,zw)=>{var Nd=Object.defineProperty,R$=Object.getOwnPropertyDescriptor,T$=Object.getOwnPropertyNames,B$=Object.prototype.hasOwnProperty,Fw=(e,n)=>Nd(e,"name",{value:n,configurable:!0}),q$=(e,n)=>{for(var t in n)Nd(e,t,{get:n[t],enumerable:!0})},D$=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of T$(n))!B$.call(e,o)&&o!==t&&Nd(e,o,{get:()=>n[o],enumerable:!(r=R$(n,o))||r.enumerable});return e},M$=e=>D$(Nd({},"__esModule",{value:!0}),e),Lw={};q$(Lw,{SelectorType:()=>jw,booleanSelector:()=>F$,numberSelector:()=>L$});zw.exports=M$(Lw);var F$=Fw((e,n,t)=>{if(n in e){if(e[n]==="true")return!0;if(e[n]==="false")return!1;throw new Error(`Cannot load ${t} "${n}". Expected "true" or "false", got ${e[n]}.`)}},"booleanSelector"),L$=Fw((e,n,t)=>{if(!(n in e))return;let r=parseInt(e[n],10);if(Number.isNaN(r))throw new TypeError(`Cannot load ${t} '${n}'. Expected number, got '${e[n]}'.`);return r},"numberSelector"),jw=(e=>(e.ENV="env",e.CONFIG="shared config entry",e))(jw||{})});var Mt=m((QPe,Qw)=>{var Td=Object.defineProperty,j$=Object.getOwnPropertyDescriptor,z$=Object.getOwnPropertyNames,U$=Object.prototype.hasOwnProperty,vt=(e,n)=>Td(e,"name",{value:n,configurable:!0}),G$=(e,n)=>{for(var t in n)Td(e,t,{get:n[t],enumerable:!0})},H$=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of z$(n))!U$.call(e,o)&&o!==t&&Td(e,o,{get:()=>n[o],enumerable:!(r=j$(n,o))||r.enumerable});return e},$$=e=>H$(Td({},"__esModule",{value:!0}),e),Hw={};G$(Hw,{CONFIG_USE_DUALSTACK_ENDPOINT:()=>Kw,CONFIG_USE_FIPS_ENDPOINT:()=>Xw,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>K$,DEFAULT_USE_FIPS_ENDPOINT:()=>X$,ENV_USE_DUALSTACK_ENDPOINT:()=>$w,ENV_USE_FIPS_ENDPOINT:()=>Vw,NODE_REGION_CONFIG_FILE_OPTIONS:()=>eK,NODE_REGION_CONFIG_OPTIONS:()=>Z$,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>V$,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>W$,REGION_ENV_NAME:()=>Ww,REGION_INI_NAME:()=>Yw,getRegionInfo:()=>sK,resolveCustomEndpointsConfig:()=>Y$,resolveEndpointsConfig:()=>Q$,resolveRegionConfig:()=>tK});Qw.exports=$$(Hw);var In=Id(),$w="AWS_USE_DUALSTACK_ENDPOINT",Kw="use_dualstack_endpoint",K$=!1,V$={environmentVariableSelector:e=>(0,In.booleanSelector)(e,$w,In.SelectorType.ENV),configFileSelector:e=>(0,In.booleanSelector)(e,Kw,In.SelectorType.CONFIG),default:!1},Vw="AWS_USE_FIPS_ENDPOINT",Xw="use_fips_endpoint",X$=!1,W$={environmentVariableSelector:e=>(0,In.booleanSelector)(e,Vw,In.SelectorType.ENV),configFileSelector:e=>(0,In.booleanSelector)(e,Xw,In.SelectorType.CONFIG),default:!1},Rd=Tr(),Y$=vt(e=>{let{endpoint:n,urlParser:t}=e;return{...e,tls:e.tls??!0,endpoint:(0,Rd.normalizeProvider)(typeof n=="string"?t(n):n),isCustomEndpoint:!0,useDualstackEndpoint:(0,Rd.normalizeProvider)(e.useDualstackEndpoint??!1)}},"resolveCustomEndpointsConfig"),J$=vt(async e=>{let{tls:n=!0}=e,t=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(t))throw new Error("Invalid region in client config");let o=await e.useDualstackEndpoint(),s=await e.useFipsEndpoint(),{hostname:c}=await e.regionInfoProvider(t,{useDualstackEndpoint:o,useFipsEndpoint:s})??{};if(!c)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${n?"https:":"http:"}//${c}`)},"getEndpointFromRegion"),Q$=vt(e=>{let n=(0,Rd.normalizeProvider)(e.useDualstackEndpoint??!1),{endpoint:t,useFipsEndpoint:r,urlParser:o}=e;return{...e,tls:e.tls??!0,endpoint:t?(0,Rd.normalizeProvider)(typeof t=="string"?o(t):t):()=>J$({...e,useDualstackEndpoint:n,useFipsEndpoint:r}),isCustomEndpoint:!!t,useDualstackEndpoint:n}},"resolveEndpointsConfig"),Ww="AWS_REGION",Yw="region",Z$={environmentVariableSelector:e=>e[Ww],configFileSelector:e=>e[Yw],default:()=>{throw new Error("Region is missing")}},eK={preferredFile:"credentials"},Jw=vt(e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),"isFipsRegion"),Uw=vt(e=>Jw(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,"getRealRegion"),tK=vt(e=>{let{region:n,useFipsEndpoint:t}=e;if(!n)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof n=="string")return Uw(n);let r=await n();return Uw(r)},useFipsEndpoint:async()=>{let r=typeof n=="string"?n:await n();return Jw(r)?!0:typeof t!="function"?Promise.resolve(!!t):t()}}},"resolveRegionConfig"),Gw=vt((e=[],{useFipsEndpoint:n,useDualstackEndpoint:t})=>{var r;return(r=e.find(({tags:o})=>n===o.includes("fips")&&t===o.includes("dualstack")))==null?void 0:r.hostname},"getHostnameFromVariants"),nK=vt((e,{regionHostname:n,partitionHostname:t})=>n||(t?t.replace("{region}",e):void 0),"getResolvedHostname"),rK=vt((e,{partitionHash:n})=>Object.keys(n||{}).find(t=>n[t].regions.includes(e))??"aws","getResolvedPartition"),oK=vt((e,{signingRegion:n,regionRegex:t,useFipsEndpoint:r})=>{if(n)return n;if(r){let o=t.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=e.match(o);if(s)return s[0].slice(1,-1)}},"getResolvedSigningRegion"),sK=vt((e,{useFipsEndpoint:n=!1,useDualstackEndpoint:t=!1,signingService:r,regionHash:o,partitionHash:s})=>{var c,i,u,l,a;let y=rK(e,{partitionHash:s}),g=e in o?e:((c=s[y])==null?void 0:c.endpoint)??e,C={useFipsEndpoint:n,useDualstackEndpoint:t},v=Gw((i=o[g])==null?void 0:i.variants,C),A=Gw((u=s[y])==null?void 0:u.variants,C),E=nK(g,{regionHostname:v,partitionHostname:A});if(E===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:g,useFipsEndpoint:n,useDualstackEndpoint:t}}`);let G=oK(E,{signingRegion:(l=o[g])==null?void 0:l.signingRegion,regionRegex:s[y].regionRegex,useFipsEndpoint:n});return{partition:y,signingService:r,hostname:E,...G&&{signingRegion:G},...((a=o[g])==null?void 0:a.signingService)&&{signingService:o[g].signingService}}},"getRegionInfo")});var tx=m((ZPe,ex)=>{var Bd=Object.defineProperty,iK=Object.getOwnPropertyDescriptor,aK=Object.getOwnPropertyNames,cK=Object.prototype.hasOwnProperty,dK=(e,n)=>Bd(e,"name",{value:n,configurable:!0}),lK=(e,n)=>{for(var t in n)Bd(e,t,{get:n[t],enumerable:!0})},uK=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of aK(n))!cK.call(e,o)&&o!==t&&Bd(e,o,{get:()=>n[o],enumerable:!(r=iK(n,o))||r.enumerable});return e},mK=e=>uK(Bd({},"__esModule",{value:!0}),e),Zw={};lK(Zw,{resolveEventStreamSerdeConfig:()=>pK});ex.exports=mK(Zw);var pK=dK(e=>({...e,eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),"resolveEventStreamSerdeConfig")});var Qi=m((e0e,ix)=>{var qd=Object.defineProperty,fK=Object.getOwnPropertyDescriptor,yK=Object.getOwnPropertyNames,gK=Object.prototype.hasOwnProperty,rx=(e,n)=>qd(e,"name",{value:n,configurable:!0}),hK=(e,n)=>{for(var t in n)qd(e,t,{get:n[t],enumerable:!0})},_K=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of yK(n))!gK.call(e,o)&&o!==t&&qd(e,o,{get:()=>n[o],enumerable:!(r=fK(n,o))||r.enumerable});return e},CK=e=>_K(qd({},"__esModule",{value:!0}),e),ox={};hK(ox,{contentLengthMiddleware:()=>Xp,contentLengthMiddlewareOptions:()=>sx,getContentLengthPlugin:()=>bK});ix.exports=CK(ox);var SK=Ne(),nx="content-length";function Xp(e){return n=>async t=>{let r=t.request;if(SK.HttpRequest.isInstance(r)){let{body:o,headers:s}=r;if(o&&Object.keys(s).map(c=>c.toLowerCase()).indexOf(nx)===-1)try{let c=e(o);r.headers={...r.headers,[nx]:String(c)}}catch{}}return n({...t,request:r})}}rx(Xp,"contentLengthMiddleware");var sx={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},bK=rx(e=>({applyToStack:n=>{n.add(Xp(e.bodyLengthChecker),sx)}}),"getContentLengthPlugin")});var Zi=m(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.getHomeDir=void 0;var EK=require("os"),PK=require("path"),Wp={},vK=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",wK=()=>{let{HOME:e,USERPROFILE:n,HOMEPATH:t,HOMEDRIVE:r=`C:${PK.sep}`}=process.env;if(e)return e;if(n)return n;if(t)return`${r}${t}`;let o=vK();return Wp[o]||(Wp[o]=(0,EK.homedir)()),Wp[o]};Dd.getHomeDir=wK});var Yp=m(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.getSSOTokenFilepath=void 0;var xK=require("crypto"),kK=require("path"),AK=Zi(),OK=e=>{let t=(0,xK.createHash)("sha1").update(e).digest("hex");return(0,kK.join)((0,AK.getHomeDir)(),".aws","sso","cache",`${t}.json`)};Md.getSSOTokenFilepath=OK});var ax=m(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.getSSOTokenFromFile=void 0;var NK=require("fs"),IK=Yp(),{readFile:RK}=NK.promises,TK=async e=>{let n=(0,IK.getSSOTokenFilepath)(e),t=await RK(n,"utf8");return JSON.parse(t)};Fd.getSSOTokenFromFile=TK});var Qp=m(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.slurpFile=void 0;var BK=require("fs"),{readFile:qK}=BK.promises,Jp={},DK=(e,n)=>((!Jp[e]||n!=null&&n.ignoreCache)&&(Jp[e]=qK(e,"utf8")),Jp[e]);Ld.slurpFile=DK});var wt=m((s0e,ta)=>{var zd=Object.defineProperty,MK=Object.getOwnPropertyDescriptor,FK=Object.getOwnPropertyNames,LK=Object.prototype.hasOwnProperty,ht=(e,n)=>zd(e,"name",{value:n,configurable:!0}),jK=(e,n)=>{for(var t in n)zd(e,t,{get:n[t],enumerable:!0})},Zp=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of FK(n))!LK.call(e,o)&&o!==t&&zd(e,o,{get:()=>n[o],enumerable:!(r=MK(n,o))||r.enumerable});return e},tf=(e,n,t)=>(Zp(e,n,"default"),t&&Zp(t,n,"default")),zK=e=>Zp(zd({},"__esModule",{value:!0}),e),ea={};jK(ea,{CONFIG_PREFIX_SEPARATOR:()=>ur,DEFAULT_PROFILE:()=>ux,ENV_PROFILE:()=>lx,getProfileName:()=>UK,loadSharedConfigFiles:()=>fx,loadSsoSessionData:()=>eV,parseKnownFiles:()=>nV});ta.exports=zK(ea);tf(ea,Zi(),ta.exports);var lx="AWS_PROFILE",ux="default",UK=ht(e=>e.profile||process.env[lx]||ux,"getProfileName");tf(ea,Yp(),ta.exports);tf(ea,ax(),ta.exports);var jd=w(),GK=ht(e=>Object.entries(e).filter(([n])=>{let t=n.indexOf(ur);return t===-1?!1:Object.values(jd.IniSectionType).includes(n.substring(0,t))}).reduce((n,[t,r])=>{let o=t.indexOf(ur),s=t.substring(0,o)===jd.IniSectionType.PROFILE?t.substring(o+1):t;return n[s]=r,n},{...e.default&&{default:e.default}}),"getConfigData"),mx=require("path"),HK=Zi(),$K="AWS_CONFIG_FILE",px=ht(()=>process.env[$K]||(0,mx.join)((0,HK.getHomeDir)(),".aws","config"),"getConfigFilepath"),KK=Zi(),VK="AWS_SHARED_CREDENTIALS_FILE",XK=ht(()=>process.env[VK]||(0,mx.join)((0,KK.getHomeDir)(),".aws","credentials"),"getCredentialsFilepath"),WK=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,YK=["__proto__","profile __proto__"],ef=ht(e=>{let n={},t,r;for(let o of e.split(/\r?\n/)){let s=o.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){t=void 0,r=void 0;let i=s.substring(1,s.length-1),u=WK.exec(i);if(u){let[,l,,a]=u;Object.values(jd.IniSectionType).includes(l)&&(t=[l,a].join(ur))}else t=i;if(YK.includes(i))throw new Error(`Found invalid profile name "${i}"`)}else if(t){let i=s.indexOf("=");if(![0,-1].includes(i)){let[u,l]=[s.substring(0,i).trim(),s.substring(i+1).trim()];if(l==="")r=u;else{r&&o.trimStart()===o&&(r=void 0),n[t]=n[t]||{};let a=r?[r,u].join(ur):u;n[t][a]=l}}}}return n},"parseIni"),cx=Qp(),dx=ht(()=>({}),"swallowError"),ur=".",fx=ht(async(e={})=>{let{filepath:n=XK(),configFilepath:t=px()}=e,r=await Promise.all([(0,cx.slurpFile)(t,{ignoreCache:e.ignoreCache}).then(ef).then(GK).catch(dx),(0,cx.slurpFile)(n,{ignoreCache:e.ignoreCache}).then(ef).catch(dx)]);return{configFile:r[0],credentialsFile:r[1]}},"loadSharedConfigFiles"),JK=ht(e=>Object.entries(e).filter(([n])=>n.startsWith(jd.IniSectionType.SSO_SESSION+ur)).reduce((n,[t,r])=>({...n,[t.split(ur)[1]]:r}),{}),"getSsoSessionData"),QK=Qp(),ZK=ht(()=>({}),"swallowError"),eV=ht(async(e={})=>(0,QK.slurpFile)(e.configFilepath??px()).then(ef).then(JK).catch(ZK),"loadSsoSessionData"),tV=ht((...e)=>{let n={};for(let t of e)for(let[r,o]of Object.entries(t))n[r]!==void 0?Object.assign(n[r],o):n[r]=o;return n},"mergeConfigFiles"),nV=ht(async e=>{let n=await fx(e);return tV(n.configFile,n.credentialsFile)},"parseKnownFiles")});var on=m((i0e,hx)=>{var Ud=Object.defineProperty,rV=Object.getOwnPropertyDescriptor,oV=Object.getOwnPropertyNames,sV=Object.prototype.hasOwnProperty,ra=(e,n)=>Ud(e,"name",{value:n,configurable:!0}),iV=(e,n)=>{for(var t in n)Ud(e,t,{get:n[t],enumerable:!0})},aV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of oV(n))!sV.call(e,o)&&o!==t&&Ud(e,o,{get:()=>n[o],enumerable:!(r=rV(n,o))||r.enumerable});return e},cV=e=>aV(Ud({},"__esModule",{value:!0}),e),gx={};iV(gx,{loadConfig:()=>pV});hx.exports=cV(gx);var na=xe(),dV=ra(e=>async()=>{try{let n=e(process.env);if(n===void 0)throw new Error;return n}catch(n){throw new na.CredentialsProviderError(n.message||`Cannot load config from environment variables with getter: ${e}`)}},"fromEnv"),yx=wt(),lV=ra((e,{preferredFile:n="config",...t}={})=>async()=>{let r=(0,yx.getProfileName)(t),{configFile:o,credentialsFile:s}=await(0,yx.loadSharedConfigFiles)(t),c=s[r]||{},i=o[r]||{},u=n==="config"?{...c,...i}:{...i,...c};try{let a=e(u,n==="config"?o:s);if(a===void 0)throw new Error;return a}catch(l){throw new na.CredentialsProviderError(l.message||`Cannot load config for profile ${r} in SDK configuration files with getter: ${e}`)}},"fromSharedConfigFiles"),uV=ra(e=>typeof e=="function","isFunction"),mV=ra(e=>uV(e)?async()=>await e():(0,na.fromStatic)(e),"fromStatic"),pV=ra(({environmentVariableSelector:e,configFileSelector:n,default:t},r={})=>(0,na.memoize)((0,na.chain)(dV(e),lV(n,r),mV(t))),"loadConfig")});var bx=m(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.getEndpointUrlConfig=void 0;var _x=wt(),Cx="AWS_ENDPOINT_URL",Sx="endpoint_url",fV=e=>({environmentVariableSelector:n=>{let t=e.split(" ").map(s=>s.toUpperCase()),r=n[[Cx,...t].join("_")];if(r)return r;let o=n[Cx];if(o)return o},configFileSelector:(n,t)=>{if(t&&n.services){let o=t[["services",n.services].join(_x.CONFIG_PREFIX_SEPARATOR)];if(o){let s=e.split(" ").map(i=>i.toLowerCase()),c=o[[s.join("_"),Sx].join(_x.CONFIG_PREFIX_SEPARATOR)];if(c)return c}}let r=n[Sx];if(r)return r},default:void 0});Gd.getEndpointUrlConfig=fV});var Ex=m(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.getEndpointFromConfig=void 0;var yV=on(),gV=bx(),hV=async e=>(0,yV.loadConfig)((0,gV.getEndpointUrlConfig)(e))();Hd.getEndpointFromConfig=hV});var xx=m((d0e,wx)=>{var $d=Object.defineProperty,_V=Object.getOwnPropertyDescriptor,CV=Object.getOwnPropertyNames,SV=Object.prototype.hasOwnProperty,bV=(e,n)=>$d(e,"name",{value:n,configurable:!0}),EV=(e,n)=>{for(var t in n)$d(e,t,{get:n[t],enumerable:!0})},PV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of CV(n))!SV.call(e,o)&&o!==t&&$d(e,o,{get:()=>n[o],enumerable:!(r=_V(n,o))||r.enumerable});return e},vV=e=>PV($d({},"__esModule",{value:!0}),e),Px={};EV(Px,{parseQueryString:()=>vx});wx.exports=vV(Px);function vx(e){let n={};if(e=e.replace(/^\?/,""),e)for(let t of e.split("&")){let[r,o=null]=t.split("=");r=decodeURIComponent(r),o&&(o=decodeURIComponent(o)),r in n?Array.isArray(n[r])?n[r].push(o):n[r]=[n[r],o]:n[r]=o}return n}bV(vx,"parseQueryString")});var mr=m((l0e,Ox)=>{var Kd=Object.defineProperty,wV=Object.getOwnPropertyDescriptor,xV=Object.getOwnPropertyNames,kV=Object.prototype.hasOwnProperty,AV=(e,n)=>Kd(e,"name",{value:n,configurable:!0}),OV=(e,n)=>{for(var t in n)Kd(e,t,{get:n[t],enumerable:!0})},NV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of xV(n))!kV.call(e,o)&&o!==t&&Kd(e,o,{get:()=>n[o],enumerable:!(r=wV(n,o))||r.enumerable});return e},IV=e=>NV(Kd({},"__esModule",{value:!0}),e),kx={};OV(kx,{parseUrl:()=>Ax});Ox.exports=IV(kx);var RV=xx(),Ax=AV(e=>{if(typeof e=="string")return Ax(new URL(e));let{hostname:n,pathname:t,port:r,protocol:o,search:s}=e,c;return s&&(c=(0,RV.parseQueryString)(s)),{hostname:n,port:r?parseInt(r):void 0,protocol:o,path:t,query:c}},"parseUrl")});var k=m((u0e,Dx)=>{var Vd=Object.defineProperty,TV=Object.getOwnPropertyDescriptor,BV=Object.getOwnPropertyNames,qV=Object.prototype.hasOwnProperty,nf=(e,n)=>Vd(e,"name",{value:n,configurable:!0}),DV=(e,n)=>{for(var t in n)Vd(e,t,{get:n[t],enumerable:!0})},MV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of BV(n))!qV.call(e,o)&&o!==t&&Vd(e,o,{get:()=>n[o],enumerable:!(r=TV(n,o))||r.enumerable});return e},FV=e=>MV(Vd({},"__esModule",{value:!0}),e),Nx={};DV(Nx,{deserializerMiddleware:()=>Ix,deserializerMiddlewareOption:()=>Tx,getSerdePlugin:()=>qx,serializerMiddleware:()=>Rx,serializerMiddlewareOption:()=>Bx});Dx.exports=FV(Nx);var Ix=nf((e,n)=>(t,r)=>async o=>{let{response:s}=await t(o);try{let c=await n(s,e);return{response:s,output:c}}catch(c){if(Object.defineProperty(c,"$response",{value:s}),!("$metadata"in c)){let i="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";c.message+=` + `+i}throw c}},"deserializerMiddleware"),Rx=nf((e,n)=>(t,r)=>async o=>{var s;let c=(s=r.endpointV2)!=null&&s.url&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint;if(!c)throw new Error("No valid endpoint provider available.");let i=await n(o.input,{...e,endpoint:c});return t({...o,request:i})},"serializerMiddleware"),Tx={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Bx={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function qx(e,n,t){return{applyToStack:r=>{r.add(Ix(e,t),Tx),r.add(Rx(e,n),Bx)}}}nf(qx,"getSerdePlugin")});var x=m((m0e,Gx)=>{var Wd=Object.defineProperty,LV=Object.getOwnPropertyDescriptor,jV=Object.getOwnPropertyNames,zV=Object.prototype.hasOwnProperty,xt=(e,n)=>Wd(e,"name",{value:n,configurable:!0}),UV=(e,n)=>{for(var t in n)Wd(e,t,{get:n[t],enumerable:!0})},GV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of jV(n))!zV.call(e,o)&&o!==t&&Wd(e,o,{get:()=>n[o],enumerable:!(r=LV(n,o))||r.enumerable});return e},HV=e=>GV(Wd({},"__esModule",{value:!0}),e),Fx={};UV(Fx,{endpointMiddleware:()=>zx,endpointMiddlewareOptions:()=>Ux,getEndpointFromInstructions:()=>Lx,getEndpointPlugin:()=>e6,resolveEndpointConfig:()=>t6,resolveParams:()=>jx,toEndpointV1:()=>rf});Gx.exports=HV(Fx);var $V=xt(async e=>{let n=(e==null?void 0:e.Bucket)||"";if(typeof e.Bucket=="string"&&(e.Bucket=n.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),YV(n)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!WV(n)||n.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||n.toLowerCase()!==n||n.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},"resolveParamsForS3"),KV=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,VV=/(\d+\.){3}\d+/,XV=/\.\./,WV=xt(e=>KV.test(e)&&!VV.test(e)&&!XV.test(e),"isDnsCompatibleBucketName"),YV=xt(e=>{let[n,t,r,o,s,c]=e.split(":"),i=n==="arn"&&e.split(":").length>=6,u=[n,t,r,s,c].filter(Boolean).length===5;if(i&&!u)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return n==="arn"&&!!t&&!!r&&!!s&&!!c},"isArnBucketName"),JV=xt((e,n,t)=>{let r=xt(async()=>{let o=t[e]??t[n];return typeof o=="function"?o():o},"configProvider");return e==="credentialScope"||n==="CredentialScope"?async()=>{let o=typeof t.credentials=="function"?await t.credentials():t.credentials;return(o==null?void 0:o.credentialScope)??(o==null?void 0:o.CredentialScope)}:e==="endpoint"||n==="endpoint"?async()=>{let o=await r();if(o&&typeof o=="object"){if("url"in o)return o.url.href;if("hostname"in o){let{protocol:s,hostname:c,port:i,path:u}=o;return`${s}//${c}${i?":"+i:""}${u}`}}return o}:r},"createConfigValueProvider"),QV=Ex(),Mx=mr(),rf=xt(e=>typeof e=="object"?"url"in e?(0,Mx.parseUrl)(e.url):e:(0,Mx.parseUrl)(e),"toEndpointV1"),Lx=xt(async(e,n,t,r)=>{if(!t.endpoint){let c=await(0,QV.getEndpointFromConfig)(t.serviceId||"");c&&(t.endpoint=()=>Promise.resolve(rf(c)))}let o=await jx(e,n,t);if(typeof t.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return t.endpointProvider(o,r)},"getEndpointFromInstructions"),jx=xt(async(e,n,t)=>{var r;let o={},s=((r=n==null?void 0:n.getEndpointParameterInstructions)==null?void 0:r.call(n))||{};for(let[c,i]of Object.entries(s))switch(i.type){case"staticContextParams":o[c]=i.value;break;case"contextParams":o[c]=e[i.name];break;case"clientContextParams":case"builtInParams":o[c]=await JV(i.name,c,t)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return Object.keys(s).length===0&&Object.assign(o,t),String(t.serviceId).toLowerCase()==="s3"&&await $V(o),o},"resolveParams"),Xd=Tr(),zx=xt(({config:e,instructions:n})=>(t,r)=>async o=>{var s,c,i;let u=await Lx(o.input,{getEndpointParameterInstructions(){return n}},{...e},r);r.endpointV2=u,r.authSchemes=(s=u.properties)==null?void 0:s.authSchemes;let l=(c=r.authSchemes)==null?void 0:c[0];if(l){r.signing_region=l.signingRegion,r.signing_service=l.signingName;let a=(0,Xd.getSmithyContext)(r),y=(i=a==null?void 0:a.selectedHttpAuthScheme)==null?void 0:i.httpAuthOption;y&&(y.signingProperties=Object.assign(y.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return t({...o})},"endpointMiddleware"),ZV=k(),Ux={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:ZV.serializerMiddlewareOption.name},e6=xt((e,n)=>({applyToStack:t=>{t.addRelativeTo(zx({config:e,instructions:n}),Ux)}}),"getEndpointPlugin"),t6=xt(e=>{let n=e.tls??!0,{endpoint:t}=e,r=t!=null?async()=>rf(await(0,Xd.normalizeProvider)(t)()):void 0;return{...e,endpoint:r,tls:n,isCustomEndpoint:!!t,useDualstackEndpoint:(0,Xd.normalizeProvider)(e.useDualstackEndpoint??!1),useFipsEndpoint:(0,Xd.normalizeProvider)(e.useFipsEndpoint??!1)}},"resolveEndpointConfig")});function oa(){return Yd>Jd.length-16&&(Hx.default.randomFillSync(Jd),Yd=0),Jd.slice(Yd,Yd+=16)}var Hx,Jd,Yd,of=Le(()=>{Hx=Oi(require("crypto")),Jd=new Uint8Array(256),Yd=Jd.length});var $x,Kx=Le(()=>{$x=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function n6(e){return typeof e=="string"&&$x.test(e)}var Rn,sa=Le(()=>{Kx();Rn=n6});function r6(e,n=0){let t=(Ke[e[n+0]]+Ke[e[n+1]]+Ke[e[n+2]]+Ke[e[n+3]]+"-"+Ke[e[n+4]]+Ke[e[n+5]]+"-"+Ke[e[n+6]]+Ke[e[n+7]]+"-"+Ke[e[n+8]]+Ke[e[n+9]]+"-"+Ke[e[n+10]]+Ke[e[n+11]]+Ke[e[n+12]]+Ke[e[n+13]]+Ke[e[n+14]]+Ke[e[n+15]]).toLowerCase();if(!Rn(t))throw TypeError("Stringified UUID is invalid");return t}var Ke,Tn,ia=Le(()=>{sa();Ke=[];for(let e=0;e<256;++e)Ke.push((e+256).toString(16).substr(1));Tn=r6});function o6(e,n,t){let r=n&&t||0,o=n||new Array(16);e=e||{};let s=e.node||Vx,c=e.clockseq!==void 0?e.clockseq:sf;if(s==null||c==null){let g=e.random||(e.rng||oa)();s==null&&(s=Vx=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]),c==null&&(c=sf=(g[6]<<8|g[7])&16383)}let i=e.msecs!==void 0?e.msecs:Date.now(),u=e.nsecs!==void 0?e.nsecs:cf+1,l=i-af+(u-cf)/1e4;if(l<0&&e.clockseq===void 0&&(c=c+1&16383),(l<0||i>af)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");af=i,cf=u,sf=c,i+=122192928e5;let a=((i&268435455)*1e4+u)%4294967296;o[r++]=a>>>24&255,o[r++]=a>>>16&255,o[r++]=a>>>8&255,o[r++]=a&255;let y=i/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=y&255,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=c>>>8|128,o[r++]=c&255;for(let g=0;g<6;++g)o[r+g]=s[g];return n||Tn(o)}var Vx,sf,af,cf,Xx,Wx=Le(()=>{of();ia();af=0,cf=0;Xx=o6});function s6(e){if(!Rn(e))throw TypeError("Invalid UUID");let n,t=new Uint8Array(16);return t[0]=(n=parseInt(e.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=n&255,t[4]=(n=parseInt(e.slice(9,13),16))>>>8,t[5]=n&255,t[6]=(n=parseInt(e.slice(14,18),16))>>>8,t[7]=n&255,t[8]=(n=parseInt(e.slice(19,23),16))>>>8,t[9]=n&255,t[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=n&255,t}var Qd,df=Le(()=>{sa();Qd=s6});function i6(e){e=unescape(encodeURIComponent(e));let n=[];for(let t=0;t{ia();df();a6="6ba7b810-9dad-11d1-80b4-00c04fd430c8",c6="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});function d6(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Yx.default.createHash("md5").update(e).digest()}var Yx,Jx,Qx=Le(()=>{Yx=Oi(require("crypto"));Jx=d6});var l6,Zx,ek=Le(()=>{lf();Qx();l6=Zd("v3",48,Jx),Zx=l6});function u6(e,n,t){e=e||{};let r=e.random||(e.rng||oa)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,n){t=t||0;for(let o=0;o<16;++o)n[t+o]=r[o];return n}return Tn(r)}var tk,nk=Le(()=>{of();ia();tk=u6});function m6(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),rk.default.createHash("sha1").update(e).digest()}var rk,ok,sk=Le(()=>{rk=Oi(require("crypto"));ok=m6});var p6,ik,ak=Le(()=>{lf();sk();p6=Zd("v5",80,ok),ik=p6});var ck,dk=Le(()=>{ck="00000000-0000-0000-0000-000000000000"});function f6(e){if(!Rn(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var lk,uk=Le(()=>{sa();lk=f6});var mk={};Ai(mk,{NIL:()=>ck,parse:()=>Qd,stringify:()=>Tn,v1:()=>Xx,v3:()=>Zx,v4:()=>tk,v5:()=>ik,validate:()=>Rn,version:()=>lk});var pk=Le(()=>{Wx();ek();nk();ak();dk();uk();sa();ia();df()});var uf=m((Y0e,gk)=>{var el=Object.defineProperty,y6=Object.getOwnPropertyDescriptor,g6=Object.getOwnPropertyNames,h6=Object.prototype.hasOwnProperty,aa=(e,n)=>el(e,"name",{value:n,configurable:!0}),_6=(e,n)=>{for(var t in n)el(e,t,{get:n[t],enumerable:!0})},C6=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of g6(n))!h6.call(e,o)&&o!==t&&el(e,o,{get:()=>n[o],enumerable:!(r=y6(n,o))||r.enumerable});return e},S6=e=>C6(el({},"__esModule",{value:!0}),e),fk={};_6(fk,{isClockSkewError:()=>k6,isRetryableByTrait:()=>x6,isServerError:()=>O6,isThrottlingError:()=>A6,isTransientError:()=>yk});gk.exports=S6(fk);var b6=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],E6=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],P6=["TimeoutError","RequestTimeout","RequestTimeoutException"],v6=[500,502,503,504],w6=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],x6=aa(e=>e.$retryable!==void 0,"isRetryableByTrait"),k6=aa(e=>b6.includes(e.name),"isClockSkewError"),A6=aa(e=>{var n,t;return((n=e.$metadata)==null?void 0:n.httpStatusCode)===429||E6.includes(e.name)||((t=e.$retryable)==null?void 0:t.throttling)==!0},"isThrottlingError"),yk=aa(e=>{var n;return P6.includes(e.name)||w6.includes((e==null?void 0:e.code)||"")||v6.includes(((n=e.$metadata)==null?void 0:n.httpStatusCode)||0)},"isTransientError"),O6=aa(e=>{var n;if(((n=e.$metadata)==null?void 0:n.httpStatusCode)!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!yk(e)}return!1},"isServerError")});var zr=m((tve,Ok)=>{var tl=Object.defineProperty,N6=Object.getOwnPropertyDescriptor,I6=Object.getOwnPropertyNames,R6=Object.prototype.hasOwnProperty,kt=(e,n)=>tl(e,"name",{value:n,configurable:!0}),T6=(e,n)=>{for(var t in n)tl(e,t,{get:n[t],enumerable:!0})},B6=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of I6(n))!R6.call(e,o)&&o!==t&&tl(e,o,{get:()=>n[o],enumerable:!(r=N6(n,o))||r.enumerable});return e},q6=e=>B6(tl({},"__esModule",{value:!0}),e),_k={};T6(_k,{AdaptiveRetryStrategy:()=>z6,ConfiguredRetryStrategy:()=>U6,DEFAULT_MAX_ATTEMPTS:()=>mf,DEFAULT_RETRY_DELAY_BASE:()=>ca,DEFAULT_RETRY_MODE:()=>D6,DefaultRateLimiter:()=>bk,INITIAL_RETRY_TOKENS:()=>pf,INVOCATION_ID_HEADER:()=>F6,MAXIMUM_RETRY_DELAY:()=>ff,NO_RETRY_INCREMENT:()=>wk,REQUEST_HEADER:()=>L6,RETRY_COST:()=>Pk,RETRY_MODES:()=>Ck,StandardRetryStrategy:()=>yf,THROTTLING_RETRY_DELAY_BASE:()=>Ek,TIMEOUT_RETRY_COST:()=>vk});Ok.exports=q6(_k);var Ck=(e=>(e.STANDARD="standard",e.ADAPTIVE="adaptive",e))(Ck||{}),mf=3,D6="standard",M6=uf(),Sk=class{constructor(n){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(n==null?void 0:n.beta)??.7,this.minCapacity=(n==null?void 0:n.minCapacity)??1,this.minFillRate=(n==null?void 0:n.minFillRate)??.5,this.scaleConstant=(n==null?void 0:n.scaleConstant)??.4,this.smooth=(n==null?void 0:n.smooth)??.8;let t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(n){if(this.enabled){if(this.refillTokenBucket(),n>this.currentCapacity){let t=(n-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>setTimeout(r,t))}this.currentCapacity=this.currentCapacity-n}}refillTokenBucket(){let n=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=n;return}let t=(n-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=n}updateClientSendingRate(n){let t;if(this.updateMeasuredRate(),(0,M6.isThrottlingError)(n)){let o=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=o,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(o),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(n){return this.getPrecise(n*this.beta)}cubicSuccess(n){return this.getPrecise(this.scaleConstant*Math.pow(n-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(n){this.refillTokenBucket(),this.fillRate=Math.max(n,this.minFillRate),this.maxCapacity=Math.max(n,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let n=this.getCurrentTimeInSeconds(),t=Math.floor(n*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let r=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(n){return parseFloat(n.toFixed(8))}};kt(Sk,"DefaultRateLimiter");var bk=Sk,ca=100,ff=20*1e3,Ek=500,pf=500,Pk=5,vk=10,wk=1,F6="amz-sdk-invocation-id",L6="amz-sdk-request",j6=kt(()=>{let e=ca;return{computeNextBackoffDelay:kt(r=>Math.floor(Math.min(ff,Math.random()*2**r*e)),"computeNextBackoffDelay"),setDelayBase:kt(r=>{e=r},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),hk=kt(({retryDelay:e,retryCount:n,retryCost:t})=>({getRetryCount:kt(()=>n,"getRetryCount"),getRetryDelay:kt(()=>Math.min(ff,e),"getRetryDelay"),getRetryCost:kt(()=>t,"getRetryCost")}),"createDefaultRetryToken"),xk=class{constructor(n){this.maxAttempts=n,this.mode="standard",this.capacity=pf,this.retryBackoffStrategy=j6(),this.maxAttemptsProvider=typeof n=="function"?n:async()=>n}async acquireInitialRetryToken(n){return hk({retryDelay:ca,retryCount:0})}async refreshRetryTokenForRetry(n,t){let r=await this.getMaxAttempts();if(this.shouldRetry(n,t,r)){let o=t.errorType;this.retryBackoffStrategy.setDelayBase(o==="THROTTLING"?Ek:ca);let s=this.retryBackoffStrategy.computeNextBackoffDelay(n.getRetryCount()),c=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,s):s,i=this.getCapacityCost(o);return this.capacity-=i,hk({retryDelay:c,retryCount:n.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(n){this.capacity=Math.max(pf,this.capacity+(n.getRetryCost()??wk))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${mf}`),mf}}shouldRetry(n,t,r){return n.getRetryCount()+1=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(n){return n==="TRANSIENT"?vk:Pk}isRetryableError(n){return n==="THROTTLING"||n==="TRANSIENT"}};kt(xk,"StandardRetryStrategy");var yf=xk,kk=class{constructor(n,t){this.maxAttemptsProvider=n,this.mode="adaptive";let{rateLimiter:r}=t??{};this.rateLimiter=r??new bk,this.standardRetryStrategy=new yf(n)}async acquireInitialRetryToken(n){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(n)}async refreshRetryTokenForRetry(n,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(n,t)}recordSuccess(n){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(n)}};kt(kk,"AdaptiveRetryStrategy");var z6=kk,Ak=class extends yf{constructor(n,t=ca){super(typeof n=="function"?n:async()=>n),typeof t=="number"?this.computeNextBackoffDelay=()=>t:this.computeNextBackoffDelay=t}async refreshRetryTokenForRetry(n,t){let r=await super.refreshRetryTokenForRetry(n,t);return r.getRetryDelay=()=>this.computeNextBackoffDelay(r.getRetryCount()),r}};kt(Ak,"ConfiguredRetryStrategy");var U6=Ak});var Nk=m(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.isStreamingPayload=void 0;var G6=require("stream"),H6=e=>(e==null?void 0:e.body)instanceof G6.Readable||typeof ReadableStream<"u"&&(e==null?void 0:e.body)instanceof ReadableStream;nl.isStreamingPayload=H6});var sn=m((sve,Vk)=>{var rl=Object.defineProperty,$6=Object.getOwnPropertyDescriptor,K6=Object.getOwnPropertyNames,V6=Object.prototype.hasOwnProperty,Te=(e,n)=>rl(e,"name",{value:n,configurable:!0}),X6=(e,n)=>{for(var t in n)rl(e,t,{get:n[t],enumerable:!0})},W6=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of K6(n))!V6.call(e,o)&&o!==t&&rl(e,o,{get:()=>n[o],enumerable:!(r=$6(n,o))||r.enumerable});return e},Y6=e=>W6(rl({},"__esModule",{value:!0}),e),Rk={};X6(Rk,{AdaptiveRetryStrategy:()=>Z6,CONFIG_MAX_ATTEMPTS:()=>hf,CONFIG_RETRY_MODE:()=>zk,ENV_MAX_ATTEMPTS:()=>gf,ENV_RETRY_MODE:()=>jk,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>eX,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>nX,StandardRetryStrategy:()=>Fk,defaultDelayDecider:()=>Bk,defaultRetryDecider:()=>qk,getOmitRetryHeadersPlugin:()=>rX,getRetryAfterHint:()=>Kk,getRetryPlugin:()=>dX,omitRetryHeadersMiddleware:()=>Uk,omitRetryHeadersMiddlewareOptions:()=>Gk,resolveRetryConfig:()=>tX,retryMiddleware:()=>Hk,retryMiddlewareOptions:()=>$k});Vk.exports=Y6(Rk);var Ur=Ne(),Tk=(pk(),Y(mk)),ve=zr(),J6=Te((e,n)=>{let t=e,r=(n==null?void 0:n.noRetryIncrement)??ve.NO_RETRY_INCREMENT,o=(n==null?void 0:n.retryCost)??ve.RETRY_COST,s=(n==null?void 0:n.timeoutRetryCost)??ve.TIMEOUT_RETRY_COST,c=e,i=Te(y=>y.name==="TimeoutError"?s:o,"getCapacityAmount"),u=Te(y=>i(y)<=c,"hasRetryTokens");return Object.freeze({hasRetryTokens:u,retrieveRetryTokens:Te(y=>{if(!u(y))throw new Error("No retry token available");let g=i(y);return c-=g,g},"retrieveRetryTokens"),releaseRetryTokens:Te(y=>{c+=y??r,c=Math.min(c,t)},"releaseRetryTokens")})},"getDefaultRetryQuota"),Bk=Te((e,n)=>Math.floor(Math.min(ve.MAXIMUM_RETRY_DELAY,Math.random()*2**n*e)),"defaultDelayDecider"),Bn=uf(),qk=Te(e=>e?(0,Bn.isRetryableByTrait)(e)||(0,Bn.isClockSkewError)(e)||(0,Bn.isThrottlingError)(e)||(0,Bn.isTransientError)(e):!1,"defaultRetryDecider"),Dk=Te(e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),"asSdkError"),Mk=class{constructor(n,t){this.maxAttemptsProvider=n,this.mode=ve.RETRY_MODES.STANDARD,this.retryDecider=(t==null?void 0:t.retryDecider)??qk,this.delayDecider=(t==null?void 0:t.delayDecider)??Bk,this.retryQuota=(t==null?void 0:t.retryQuota)??J6(ve.INITIAL_RETRY_TOKENS)}shouldRetry(n,t,r){return tsetTimeout(v,C));continue}throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=s,a.$metadata.totalRetryDelay=c,a}}};Te(Mk,"StandardRetryStrategy");var Fk=Mk,Q6=Te(e=>{if(!Ur.HttpResponse.isInstance(e))return;let n=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!n)return;let t=e.headers[n],r=Number(t);return Number.isNaN(r)?new Date(t).getTime()-Date.now():r*1e3},"getDelayFromRetryAfterHeader"),Lk=class extends Fk{constructor(n,t){let{rateLimiter:r,...o}=t??{};super(n,o),this.rateLimiter=r??new ve.DefaultRateLimiter,this.mode=ve.RETRY_MODES.ADAPTIVE}async retry(n,t){return super.retry(n,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};Te(Lk,"AdaptiveRetryStrategy");var Z6=Lk,Ik=Tr(),gf="AWS_MAX_ATTEMPTS",hf="max_attempts",eX={environmentVariableSelector:e=>{let n=e[gf];if(!n)return;let t=parseInt(n);if(Number.isNaN(t))throw new Error(`Environment variable ${gf} mast be a number, got "${n}"`);return t},configFileSelector:e=>{let n=e[hf];if(!n)return;let t=parseInt(n);if(Number.isNaN(t))throw new Error(`Shared config file entry ${hf} mast be a number, got "${n}"`);return t},default:ve.DEFAULT_MAX_ATTEMPTS},tX=Te(e=>{let{retryStrategy:n}=e,t=(0,Ik.normalizeProvider)(e.maxAttempts??ve.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:t,retryStrategy:async()=>n||(await(0,Ik.normalizeProvider)(e.retryMode)()===ve.RETRY_MODES.ADAPTIVE?new ve.AdaptiveRetryStrategy(t):new ve.StandardRetryStrategy(t))}},"resolveRetryConfig"),jk="AWS_RETRY_MODE",zk="retry_mode",nX={environmentVariableSelector:e=>e[jk],configFileSelector:e=>e[zk],default:ve.DEFAULT_RETRY_MODE},Uk=Te(()=>e=>async n=>{let{request:t}=n;return Ur.HttpRequest.isInstance(t)&&(delete t.headers[ve.INVOCATION_ID_HEADER],delete t.headers[ve.REQUEST_HEADER]),e(n)},"omitRetryHeadersMiddleware"),Gk={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},rX=Te(e=>({applyToStack:n=>{n.addRelativeTo(Uk(),Gk)}}),"getOmitRetryHeadersPlugin"),oX=b(),sX=Nk(),Hk=Te(e=>(n,t)=>async r=>{var o;let s=await e.retryStrategy(),c=await e.maxAttempts();if(iX(s)){s=s;let i=await s.acquireInitialRetryToken(t.partition_id),u=new Error,l=0,a=0,{request:y}=r,g=Ur.HttpRequest.isInstance(y);for(g&&(y.headers[ve.INVOCATION_ID_HEADER]=(0,Tk.v4)());;)try{g&&(y.headers[ve.REQUEST_HEADER]=`attempt=${l+1}; max=${c}`);let{response:C,output:v}=await n(r);return s.recordSuccess(i),v.$metadata.attempts=l+1,v.$metadata.totalRetryDelay=a,{response:C,output:v}}catch(C){let v=aX(C);if(u=Dk(C),g&&(0,sX.isStreamingPayload)(y))throw(o=t.logger instanceof oX.NoOpLogger?console:t.logger)==null||o.warn("An error was encountered in a non-retryable streaming request."),u;try{i=await s.refreshRetryTokenForRetry(i,v)}catch{throw u.$metadata||(u.$metadata={}),u.$metadata.attempts=l+1,u.$metadata.totalRetryDelay=a,u}l=i.getRetryCount();let A=i.getRetryDelay();a+=A,await new Promise(E=>setTimeout(E,A))}}else return s=s,s!=null&&s.mode&&(t.userAgent=[...t.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(n,r)},"retryMiddleware"),iX=Te(e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u","isRetryStrategyV2"),aX=Te(e=>{let n={errorType:cX(e)},t=Kk(e.$response);return t&&(n.retryAfterHint=t),n},"getRetryErrorInfo"),cX=Te(e=>(0,Bn.isThrottlingError)(e)?"THROTTLING":(0,Bn.isTransientError)(e)?"TRANSIENT":(0,Bn.isServerError)(e)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),$k={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},dX=Te(e=>({applyToStack:n=>{n.add(Hk(e),$k)}}),"getRetryPlugin"),Kk=Te(e=>{if(!Ur.HttpResponse.isInstance(e))return;let n=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!n)return;let t=e.headers[n],r=Number(t);return Number.isNaN(r)?new Date(t):new Date(r*1e3)},"getRetryAfterHint")});var Xk=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.resolveClientEndpointParameters=void 0;var lX=e=>({...e,useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:"s3"});ol.resolveClientEndpointParameters=lX});var Wk=m((ave,uX)=>{uX.exports={name:"@aws-sdk/client-s3",description:"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3",test:"yarn test:unit","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js","test:unit":"ts-mocha test/**/*.spec.ts"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":"3.0.0","@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.421.0","@aws-sdk/credential-provider-node":"3.421.0","@aws-sdk/middleware-bucket-endpoint":"3.418.0","@aws-sdk/middleware-expect-continue":"3.418.0","@aws-sdk/middleware-flexible-checksums":"3.418.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-location-constraint":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-sdk-s3":"3.418.0","@aws-sdk/middleware-signing":"3.418.0","@aws-sdk/middleware-ssec":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/signature-v4-multi-region":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@aws-sdk/xml-builder":"3.310.0","@smithy/config-resolver":"^2.0.10","@smithy/eventstream-serde-browser":"^2.0.9","@smithy/eventstream-serde-config-resolver":"^2.0.9","@smithy/eventstream-serde-node":"^2.0.9","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-blob-browser":"^2.0.9","@smithy/hash-node":"^2.0.9","@smithy/hash-stream-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/md5-js":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-stream":"^2.0.12","@smithy/util-utf8":"^2.0.0","@smithy/util-waiter":"^2.0.9","fast-xml-parser":"4.2.5",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.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-s3",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-s3"}}});var Yk=m(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.resolveStsAuthConfig=void 0;var mX=rn(),pX=(e,{stsClientCtor:n})=>(0,mX.resolveAwsAuthConfig)({...e,stsClientCtor:n});sl.resolveStsAuthConfig=pX});var Jk=m(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.resolveClientEndpointParameters=void 0;var fX=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"});il.resolveClientEndpointParameters=fX});var Qk=m((lve,yX)=>{yX.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.421.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-sdk-sts":"3.418.0","@aws-sdk/middleware-signing":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0","fast-xml-parser":"4.2.5",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.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-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var al=m(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.STSServiceException=Gr.__ServiceException=void 0;var Zk=b();Object.defineProperty(Gr,"__ServiceException",{enumerable:!0,get:function(){return Zk.ServiceException}});var _f=class e extends Zk.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};Gr.STSServiceException=_f});var Dn=m(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.GetSessionTokenResponseFilterSensitiveLog=ie.GetFederationTokenResponseFilterSensitiveLog=ie.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=ie.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=ie.AssumeRoleWithSAMLResponseFilterSensitiveLog=ie.AssumeRoleWithSAMLRequestFilterSensitiveLog=ie.AssumeRoleResponseFilterSensitiveLog=ie.CredentialsFilterSensitiveLog=ie.InvalidAuthorizationMessageException=ie.IDPCommunicationErrorException=ie.InvalidIdentityTokenException=ie.IDPRejectedClaimException=ie.RegionDisabledException=ie.PackedPolicyTooLargeException=ie.MalformedPolicyDocumentException=ie.ExpiredTokenException=void 0;var kf=b(),qn=al(),Cf=class e extends qn.STSServiceException{constructor(n){super({name:"ExpiredTokenException",$fault:"client",...n}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.ExpiredTokenException=Cf;var Sf=class e extends qn.STSServiceException{constructor(n){super({name:"MalformedPolicyDocumentException",$fault:"client",...n}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.MalformedPolicyDocumentException=Sf;var bf=class e extends qn.STSServiceException{constructor(n){super({name:"PackedPolicyTooLargeException",$fault:"client",...n}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.PackedPolicyTooLargeException=bf;var Ef=class e extends qn.STSServiceException{constructor(n){super({name:"RegionDisabledException",$fault:"client",...n}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.RegionDisabledException=Ef;var Pf=class e extends qn.STSServiceException{constructor(n){super({name:"IDPRejectedClaimException",$fault:"client",...n}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.IDPRejectedClaimException=Pf;var vf=class e extends qn.STSServiceException{constructor(n){super({name:"InvalidIdentityTokenException",$fault:"client",...n}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.InvalidIdentityTokenException=vf;var wf=class e extends qn.STSServiceException{constructor(n){super({name:"IDPCommunicationErrorException",$fault:"client",...n}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.IDPCommunicationErrorException=wf;var xf=class e extends qn.STSServiceException{constructor(n){super({name:"InvalidAuthorizationMessageException",$fault:"client",...n}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ie.InvalidAuthorizationMessageException=xf;var gX=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:kf.SENSITIVE_STRING}});ie.CredentialsFilterSensitiveLog=gX;var hX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.AssumeRoleResponseFilterSensitiveLog=hX;var _X=e=>({...e,...e.SAMLAssertion&&{SAMLAssertion:kf.SENSITIVE_STRING}});ie.AssumeRoleWithSAMLRequestFilterSensitiveLog=_X;var CX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.AssumeRoleWithSAMLResponseFilterSensitiveLog=CX;var SX=e=>({...e,...e.WebIdentityToken&&{WebIdentityToken:kf.SENSITIVE_STRING}});ie.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=SX;var bX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=bX;var EX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.GetFederationTokenResponseFilterSensitiveLog=EX;var PX=e=>({...e,...e.Credentials&&{Credentials:(0,ie.CredentialsFilterSensitiveLog)(e.Credentials)}});ie.GetSessionTokenResponseFilterSensitiveLog=PX});var cl=m(an=>{"use strict";var eA=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",vX=eA+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",tA="["+eA+"]["+vX+"]*",wX=new RegExp("^"+tA+"$"),xX=function(e,n){let t=[],r=n.exec(e);for(;r;){let o=[];o.startIndex=n.lastIndex-r[0].length;let s=r.length;for(let c=0;c"u")};an.isExist=function(e){return typeof e<"u"};an.isEmptyObject=function(e){return Object.keys(e).length===0};an.merge=function(e,n,t){if(n){let r=Object.keys(n),o=r.length;for(let s=0;s{"use strict";var Af=cl(),AX={allowBooleanAttributes:!1,unpairedTags:[]};iA.validate=function(e,n){n=Object.assign({},AX,n);let t=[],r=!1,o=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let s=0;s"&&e[s]!==" "&&e[s]!==" "&&e[s]!==` `&&e[s]!=="\r";s++)u+=e[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!DX(u)){let y;return u.trim().length===0?y="Invalid space after '<'.":y="Tag '"+u+"' is an invalid name.",Be("InvalidTag",y,it(e,s))}let l=IX(e,s);if(l===!1)return Be("InvalidAttr","Attributes for '"+u+"' have open quote.",it(e,s));let a=l.value;if(s=l.index,a[a.length-1]==="/"){let y=s-a.length;a=a.substring(0,a.length-1);let g=sA(a,n);if(g===!0)r=!0;else return Be(g.err.code,g.err.msg,it(e,y+g.err.line))}else if(i)if(l.tagClosed){if(a.trim().length>0)return Be("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",it(e,c));{let y=t.pop();if(u!==y.tagName){let g=it(e,y.tagStartPos);return Be("InvalidTag","Expected closing tag '"+y.tagName+"' (opened in line "+g.line+", col "+g.col+") instead of closing tag '"+u+"'.",it(e,c))}t.length==0&&(o=!0)}}else return Be("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",it(e,s));else{let y=sA(a,n);if(y!==!0)return Be(y.err.code,y.err.msg,it(e,s-a.length+y.err.line));if(o===!0)return Be("InvalidXml","Multiple possible root nodes found.",it(e,s));n.unpairedTags.indexOf(u)!==-1||t.push({tagName:u,tagStartPos:c}),r=!0}for(s++;s0)return Be("InvalidXml","Invalid '"+JSON.stringify(t.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Be("InvalidXml","Start tag expected.",1);return!0};function nA(e){return e===" "||e===" "||e===` -`||e==="\r"}function rA(e,n){let t=n;for(;n5&&r==="xml")return Be("InvalidXml","XML declaration allowed only at the start of the document.",it(e,n));if(e[n]=="?"&&e[n+1]==">"){n++;break}else continue}return n}function oA(e,n){if(e.length>n+5&&e[n+1]==="-"&&e[n+2]==="-"){for(n+=3;n"){n+=2;break}}else if(e.length>n+8&&e[n+1]==="D"&&e[n+2]==="O"&&e[n+3]==="C"&&e[n+4]==="T"&&e[n+5]==="Y"&&e[n+6]==="P"&&e[n+7]==="E"){let t=1;for(n+=8;n"&&(t--,t===0))break}else if(e.length>n+9&&e[n+1]==="["&&e[n+2]==="C"&&e[n+3]==="D"&&e[n+4]==="A"&&e[n+5]==="T"&&e[n+6]==="A"&&e[n+7]==="["){for(n+=8;n"){n+=2;break}}return n}var OX='"',NX="'";function IX(e,n){let t="",r="",o=!1;for(;n"&&r===""){o=!0;break}t+=e[n]}return r!==""?!1:{value:t,index:n,tagClosed:o}}var RX=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function sA(e,n){let t=Af.getAllMatches(e,RX),r={};for(let o=0;o{var aA={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,n,t){return e}},MX=function(e){return Object.assign({},aA,e)};Nf.buildOptions=MX;Nf.defaultOptions=aA});var lA=m((fve,dA)=>{"use strict";var If=class{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,t){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:t})}addChild(n){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child})}};dA.exports=If});var mA=m((yve,uA)=>{var FX=al();function LX(e,n){let t={};if(e[n+3]==="O"&&e[n+4]==="C"&&e[n+5]==="T"&&e[n+6]==="Y"&&e[n+7]==="P"&&e[n+8]==="E"){n=n+9;let r=1,o=!1,s=!1,c="";for(;n"){if(s?e[n-1]==="-"&&e[n-2]==="-"&&(s=!1,r--):r--,r===0)break}else e[n]==="["?o=!0:c+=e[n];if(r!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:t,i:n}}function jX(e,n){let t="";for(;n{var VX=/^[-+]?0x[a-fA-F0-9]+$/,XX=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var WX={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function YX(e,n={}){if(n=Object.assign({},WX,n),!e||typeof e!="string")return e;let t=e.trim();if(n.skipLike!==void 0&&n.skipLike.test(t))return e;if(n.hex&&VX.test(t))return Number.parseInt(t,16);{let r=XX.exec(t);if(r){let o=r[1],s=r[2],c=JX(r[3]),i=r[4]||r[6];if(!n.leadingZeros&&s.length>0&&o&&t[2]!==".")return e;if(!n.leadingZeros&&s.length>0&&!o&&t[1]!==".")return e;{let u=Number(t),l=""+u;return l.search(/[eE]/)!==-1||i?n.eNotation?u:e:t.indexOf(".")!==-1?l==="0"&&c===""||l===c||o&&l==="-"+c?u:e:s?c===l||o+c===l?u:e:t===l||t===o+l?u:e}}else return e}}function JX(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substr(0,e.length-1))),e}pA.exports=YX});var gA=m((_ve,yA)=>{"use strict";var qf=al(),la=lA(),QX=mA(),ZX=fA(),hve="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,qf.nameRegexp),Rf=class{constructor(n){this.options=n,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"}},this.addExternalEntities=e8,this.parseXml=s8,this.parseTextData=t8,this.resolveNameSpace=n8,this.buildAttributesMap=o8,this.isItStopNode=d8,this.replaceEntitiesValue=a8,this.readStopNodeData=u8,this.saveTextToParentTag=c8,this.addChild=i8}};function e8(e){let n=Object.keys(e);for(let t=0;t0)){c||(e=this.replaceEntitiesValue(e));let i=this.options.tagValueProcessor(n,e,t,o,s);return i==null?e:typeof i!=typeof e||i!==e?i:this.options.trimValues?Bf(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?Bf(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function n8(e){if(this.options.removeNSPrefix){let n=e.split(":"),t=e.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(e=t+n[1])}return e}var r8=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function o8(e,n,t){if(!this.options.ignoreAttributes&&typeof e=="string"){let r=qf.getAllMatches(e,r8),o=r.length,s={};for(let c=0;c",s,"Closing Tag is not closed."),u=e.substring(s+2,i).trim();if(this.options.removeNSPrefix){let y=u.indexOf(":");y!==-1&&(u=u.substr(y+1))}this.options.transformTagName&&(u=this.options.transformTagName(u)),t&&(r=this.saveTextToParentTag(r,t,o));let l=o.substring(o.lastIndexOf(".")+1);if(u&&this.options.unpairedTags.indexOf(u)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let a=0;l&&this.options.unpairedTags.indexOf(l)!==-1?(a=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):a=o.lastIndexOf("."),o=o.substring(0,a),t=this.tagsNodeStack.pop(),r="",s=i}else if(e[s+1]==="?"){let i=Tf(e,s,!1,"?>");if(!i)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,t,o),!(this.options.ignoreDeclaration&&i.tagName==="?xml"||this.options.ignorePiTags)){let u=new la(i.tagName);u.add(this.options.textNodeName,""),i.tagName!==i.tagExp&&i.attrExpPresent&&(u[":@"]=this.buildAttributesMap(i.tagExp,o,i.tagName)),this.addChild(t,u,o)}s=i.closeIndex+1}else if(e.substr(s+1,3)==="!--"){let i=pr(e,"-->",s+4,"Comment is not closed.");if(this.options.commentPropName){let u=e.substring(s+4,i-2);r=this.saveTextToParentTag(r,t,o),t.add(this.options.commentPropName,[{[this.options.textNodeName]:u}])}s=i}else if(e.substr(s+1,2)==="!D"){let i=QX(e,s);this.docTypeEntities=i.entities,s=i.i}else if(e.substr(s+1,2)==="!["){let i=pr(e,"]]>",s,"CDATA is not closed.")-2,u=e.substring(s+9,i);if(r=this.saveTextToParentTag(r,t,o),this.options.cdataPropName)t.add(this.options.cdataPropName,[{[this.options.textNodeName]:u}]);else{let l=this.parseTextData(u,t.tagname,o,!0,!1,!0);l==null&&(l=""),t.add(this.options.textNodeName,l)}s=i+2}else{let i=Tf(e,s,this.options.removeNSPrefix),u=i.tagName,l=i.tagExp,a=i.attrExpPresent,y=i.closeIndex;this.options.transformTagName&&(u=this.options.transformTagName(u)),t&&r&&t.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,t,o,!1));let g=t;if(g&&this.options.unpairedTags.indexOf(g.tagname)!==-1&&(t=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),u!==n.tagname&&(o+=o?"."+u:u),this.isItStopNode(this.options.stopNodes,o,u)){let C="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)s=i.closeIndex;else if(this.options.unpairedTags.indexOf(u)!==-1)s=i.closeIndex;else{let A=this.readStopNodeData(e,u,y+1);if(!A)throw new Error(`Unexpected end of ${u}`);s=A.i,C=A.tagContent}let v=new la(u);u!==l&&a&&(v[":@"]=this.buildAttributesMap(l,o,u)),C&&(C=this.parseTextData(C,u,o,!0,a,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),v.add(this.options.textNodeName,C),this.addChild(t,v,o)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){u[u.length-1]==="/"?(u=u.substr(0,u.length-1),l=u):l=l.substr(0,l.length-1),this.options.transformTagName&&(u=this.options.transformTagName(u));let C=new la(u);u!==l&&a&&(C[":@"]=this.buildAttributesMap(l,o,u)),this.addChild(t,C,o),o=o.substr(0,o.lastIndexOf("."))}else{let C=new la(u);this.tagsNodeStack.push(t),u!==l&&a&&(C[":@"]=this.buildAttributesMap(l,o,u)),this.addChild(t,C,o),t=C}r="",s=y}}else r+=e[s];return n.child};function i8(e,n,t){let r=this.options.updateTag(n.tagname,t,n[":@"]);r===!1||(typeof r=="string"&&(n.tagname=r),e.addChild(n))}var a8=function(e){if(this.options.processEntities){for(let n in this.docTypeEntities){let t=this.docTypeEntities[n];e=e.replace(t.regx,t.val)}for(let n in this.lastEntities){let t=this.lastEntities[n];e=e.replace(t.regex,t.val)}if(this.options.htmlEntities)for(let n in this.htmlEntities){let t=this.htmlEntities[n];e=e.replace(t.regex,t.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function c8(e,n,t,r){return e&&(r===void 0&&(r=Object.keys(n.child).length===0),e=this.parseTextData(e,n.tagname,t,!1,n[":@"]?Object.keys(n[":@"]).length!==0:!1,r),e!==void 0&&e!==""&&n.add(this.options.textNodeName,e),e=""),e}function d8(e,n,t){let r="*."+t;for(let o in e){let s=e[o];if(r===s||n===s)return!0}return!1}function l8(e,n,t=">"){let r,o="";for(let s=n;s",t,`${n} is not closed`);if(e.substring(t+2,s).trim()===n&&(o--,o===0))return{tagContent:e.substring(r,t),i:s};t=s}else if(e[t+1]==="?")t=pr(e,"?>",t+1,"StopNode is not closed.");else if(e.substr(t+1,3)==="!--")t=pr(e,"-->",t+3,"StopNode is not closed.");else if(e.substr(t+1,2)==="![")t=pr(e,"]]>",t,"StopNode is not closed.")-2;else{let s=Tf(e,t,">");s&&((s&&s.tagName)===n&&s.tagExp[s.tagExp.length-1]!=="/"&&o++,t=s.closeIndex)}}function Bf(e,n,t){if(n&&typeof e=="string"){let r=e.trim();return r==="true"?!0:r==="false"?!1:ZX(e,t)}else return qf.isExist(e)?e:""}yA.exports=Rf});var CA=m(_A=>{"use strict";function m8(e,n){return hA(e,n)}function hA(e,n,t){let r,o={};for(let s=0;s0&&(o[n.textNodeName]=r):r!==void 0&&(o[n.textNodeName]=r),o}function p8(e){let n=Object.keys(e);for(let t=0;t{var{buildOptions:g8}=cA(),h8=gA(),{prettify:_8}=CA(),C8=Of(),Df=class{constructor(n){this.externalEntities={},this.options=g8(n)}parse(n,t){if(typeof n!="string")if(n.toString)n=n.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});let s=C8.validate(n,t);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}let r=new h8(this.options);r.addExternalEntities(this.externalEntities);let o=r.parseXml(n);return this.options.preserveOrder||o===void 0?o:_8(o,this.options)}addEntity(n,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(n.indexOf("&")!==-1||n.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[n]=t}};SA.exports=Df});var xA=m((bve,wA)=>{var S8=` -`;function b8(e,n){let t="";return n.format&&n.indentBy.length>0&&(t=S8),PA(e,n,"",t)}function PA(e,n,t,r){let o="",s=!1;for(let c=0;c`,s=!1;continue}else if(u===n.commentPropName){o+=r+``,s=!0;continue}else if(u[0]==="?"){let v=EA(i[":@"],n),A=u==="?xml"?"":r,E=i[u][0][n.textNodeName];E=E.length!==0?" "+E:"",o+=A+`<${u}${E}${v}?>`,s=!0;continue}let a=r;a!==""&&(a+=n.indentBy);let y=EA(i[":@"],n),g=r+`<${u}${y}`,C=PA(i[u],n,l,a);n.unpairedTags.indexOf(u)!==-1?n.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!C||C.length===0)&&n.suppressEmptyNode?o+=g+"/>":C&&C.endsWith(">")?o+=g+`>${C}${r}`:(o+=g+">",C&&r!==""&&(C.includes("/>")||C.includes("`),s=!0}return o}function E8(e){let n=Object.keys(e);for(let t=0;t0&&n.processEntities)for(let t=0;t{"use strict";var v8=xA(),w8={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Mn(e){this.options=Object.assign({},w8,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=A8),this.processTextOrObjNode=x8,this.options.format?(this.indentate=k8,this.tagEndChar=`> +`||e==="\r"}function rA(e,n){let t=n;for(;n5&&r==="xml")return Be("InvalidXml","XML declaration allowed only at the start of the document.",it(e,n));if(e[n]=="?"&&e[n+1]==">"){n++;break}else continue}return n}function oA(e,n){if(e.length>n+5&&e[n+1]==="-"&&e[n+2]==="-"){for(n+=3;n"){n+=2;break}}else if(e.length>n+8&&e[n+1]==="D"&&e[n+2]==="O"&&e[n+3]==="C"&&e[n+4]==="T"&&e[n+5]==="Y"&&e[n+6]==="P"&&e[n+7]==="E"){let t=1;for(n+=8;n"&&(t--,t===0))break}else if(e.length>n+9&&e[n+1]==="["&&e[n+2]==="C"&&e[n+3]==="D"&&e[n+4]==="A"&&e[n+5]==="T"&&e[n+6]==="A"&&e[n+7]==="["){for(n+=8;n"){n+=2;break}}return n}var OX='"',NX="'";function IX(e,n){let t="",r="",o=!1;for(;n"&&r===""){o=!0;break}t+=e[n]}return r!==""?!1:{value:t,index:n,tagClosed:o}}var RX=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function sA(e,n){let t=Af.getAllMatches(e,RX),r={};for(let o=0;o{var aA={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,n,t){return e}},MX=function(e){return Object.assign({},aA,e)};Nf.buildOptions=MX;Nf.defaultOptions=aA});var lA=m((gve,dA)=>{"use strict";var If=class{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,t){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:t})}addChild(n){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child})}};dA.exports=If});var mA=m((hve,uA)=>{var FX=cl();function LX(e,n){let t={};if(e[n+3]==="O"&&e[n+4]==="C"&&e[n+5]==="T"&&e[n+6]==="Y"&&e[n+7]==="P"&&e[n+8]==="E"){n=n+9;let r=1,o=!1,s=!1,c="";for(;n"){if(s?e[n-1]==="-"&&e[n-2]==="-"&&(s=!1,r--):r--,r===0)break}else e[n]==="["?o=!0:c+=e[n];if(r!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:t,i:n}}function jX(e,n){let t="";for(;n{var VX=/^[-+]?0x[a-fA-F0-9]+$/,XX=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var WX={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function YX(e,n={}){if(n=Object.assign({},WX,n),!e||typeof e!="string")return e;let t=e.trim();if(n.skipLike!==void 0&&n.skipLike.test(t))return e;if(n.hex&&VX.test(t))return Number.parseInt(t,16);{let r=XX.exec(t);if(r){let o=r[1],s=r[2],c=JX(r[3]),i=r[4]||r[6];if(!n.leadingZeros&&s.length>0&&o&&t[2]!==".")return e;if(!n.leadingZeros&&s.length>0&&!o&&t[1]!==".")return e;{let u=Number(t),l=""+u;return l.search(/[eE]/)!==-1||i?n.eNotation?u:e:t.indexOf(".")!==-1?l==="0"&&c===""||l===c||o&&l==="-"+c?u:e:s?c===l||o+c===l?u:e:t===l||t===o+l?u:e}}else return e}}function JX(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substr(0,e.length-1))),e}pA.exports=YX});var gA=m((Sve,yA)=>{"use strict";var qf=cl(),la=lA(),QX=mA(),ZX=fA(),Cve="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,qf.nameRegexp),Rf=class{constructor(n){this.options=n,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"}},this.addExternalEntities=e8,this.parseXml=s8,this.parseTextData=t8,this.resolveNameSpace=n8,this.buildAttributesMap=o8,this.isItStopNode=d8,this.replaceEntitiesValue=a8,this.readStopNodeData=u8,this.saveTextToParentTag=c8,this.addChild=i8}};function e8(e){let n=Object.keys(e);for(let t=0;t0)){c||(e=this.replaceEntitiesValue(e));let i=this.options.tagValueProcessor(n,e,t,o,s);return i==null?e:typeof i!=typeof e||i!==e?i:this.options.trimValues?Bf(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?Bf(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function n8(e){if(this.options.removeNSPrefix){let n=e.split(":"),t=e.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(e=t+n[1])}return e}var r8=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function o8(e,n,t){if(!this.options.ignoreAttributes&&typeof e=="string"){let r=qf.getAllMatches(e,r8),o=r.length,s={};for(let c=0;c",s,"Closing Tag is not closed."),u=e.substring(s+2,i).trim();if(this.options.removeNSPrefix){let y=u.indexOf(":");y!==-1&&(u=u.substr(y+1))}this.options.transformTagName&&(u=this.options.transformTagName(u)),t&&(r=this.saveTextToParentTag(r,t,o));let l=o.substring(o.lastIndexOf(".")+1);if(u&&this.options.unpairedTags.indexOf(u)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let a=0;l&&this.options.unpairedTags.indexOf(l)!==-1?(a=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):a=o.lastIndexOf("."),o=o.substring(0,a),t=this.tagsNodeStack.pop(),r="",s=i}else if(e[s+1]==="?"){let i=Tf(e,s,!1,"?>");if(!i)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,t,o),!(this.options.ignoreDeclaration&&i.tagName==="?xml"||this.options.ignorePiTags)){let u=new la(i.tagName);u.add(this.options.textNodeName,""),i.tagName!==i.tagExp&&i.attrExpPresent&&(u[":@"]=this.buildAttributesMap(i.tagExp,o,i.tagName)),this.addChild(t,u,o)}s=i.closeIndex+1}else if(e.substr(s+1,3)==="!--"){let i=pr(e,"-->",s+4,"Comment is not closed.");if(this.options.commentPropName){let u=e.substring(s+4,i-2);r=this.saveTextToParentTag(r,t,o),t.add(this.options.commentPropName,[{[this.options.textNodeName]:u}])}s=i}else if(e.substr(s+1,2)==="!D"){let i=QX(e,s);this.docTypeEntities=i.entities,s=i.i}else if(e.substr(s+1,2)==="!["){let i=pr(e,"]]>",s,"CDATA is not closed.")-2,u=e.substring(s+9,i);if(r=this.saveTextToParentTag(r,t,o),this.options.cdataPropName)t.add(this.options.cdataPropName,[{[this.options.textNodeName]:u}]);else{let l=this.parseTextData(u,t.tagname,o,!0,!1,!0);l==null&&(l=""),t.add(this.options.textNodeName,l)}s=i+2}else{let i=Tf(e,s,this.options.removeNSPrefix),u=i.tagName,l=i.tagExp,a=i.attrExpPresent,y=i.closeIndex;this.options.transformTagName&&(u=this.options.transformTagName(u)),t&&r&&t.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,t,o,!1));let g=t;if(g&&this.options.unpairedTags.indexOf(g.tagname)!==-1&&(t=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),u!==n.tagname&&(o+=o?"."+u:u),this.isItStopNode(this.options.stopNodes,o,u)){let C="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)s=i.closeIndex;else if(this.options.unpairedTags.indexOf(u)!==-1)s=i.closeIndex;else{let A=this.readStopNodeData(e,u,y+1);if(!A)throw new Error(`Unexpected end of ${u}`);s=A.i,C=A.tagContent}let v=new la(u);u!==l&&a&&(v[":@"]=this.buildAttributesMap(l,o,u)),C&&(C=this.parseTextData(C,u,o,!0,a,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),v.add(this.options.textNodeName,C),this.addChild(t,v,o)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){u[u.length-1]==="/"?(u=u.substr(0,u.length-1),l=u):l=l.substr(0,l.length-1),this.options.transformTagName&&(u=this.options.transformTagName(u));let C=new la(u);u!==l&&a&&(C[":@"]=this.buildAttributesMap(l,o,u)),this.addChild(t,C,o),o=o.substr(0,o.lastIndexOf("."))}else{let C=new la(u);this.tagsNodeStack.push(t),u!==l&&a&&(C[":@"]=this.buildAttributesMap(l,o,u)),this.addChild(t,C,o),t=C}r="",s=y}}else r+=e[s];return n.child};function i8(e,n,t){let r=this.options.updateTag(n.tagname,t,n[":@"]);r===!1||(typeof r=="string"&&(n.tagname=r),e.addChild(n))}var a8=function(e){if(this.options.processEntities){for(let n in this.docTypeEntities){let t=this.docTypeEntities[n];e=e.replace(t.regx,t.val)}for(let n in this.lastEntities){let t=this.lastEntities[n];e=e.replace(t.regex,t.val)}if(this.options.htmlEntities)for(let n in this.htmlEntities){let t=this.htmlEntities[n];e=e.replace(t.regex,t.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function c8(e,n,t,r){return e&&(r===void 0&&(r=Object.keys(n.child).length===0),e=this.parseTextData(e,n.tagname,t,!1,n[":@"]?Object.keys(n[":@"]).length!==0:!1,r),e!==void 0&&e!==""&&n.add(this.options.textNodeName,e),e=""),e}function d8(e,n,t){let r="*."+t;for(let o in e){let s=e[o];if(r===s||n===s)return!0}return!1}function l8(e,n,t=">"){let r,o="";for(let s=n;s",t,`${n} is not closed`);if(e.substring(t+2,s).trim()===n&&(o--,o===0))return{tagContent:e.substring(r,t),i:s};t=s}else if(e[t+1]==="?")t=pr(e,"?>",t+1,"StopNode is not closed.");else if(e.substr(t+1,3)==="!--")t=pr(e,"-->",t+3,"StopNode is not closed.");else if(e.substr(t+1,2)==="![")t=pr(e,"]]>",t,"StopNode is not closed.")-2;else{let s=Tf(e,t,">");s&&((s&&s.tagName)===n&&s.tagExp[s.tagExp.length-1]!=="/"&&o++,t=s.closeIndex)}}function Bf(e,n,t){if(n&&typeof e=="string"){let r=e.trim();return r==="true"?!0:r==="false"?!1:ZX(e,t)}else return qf.isExist(e)?e:""}yA.exports=Rf});var CA=m(_A=>{"use strict";function m8(e,n){return hA(e,n)}function hA(e,n,t){let r,o={};for(let s=0;s0&&(o[n.textNodeName]=r):r!==void 0&&(o[n.textNodeName]=r),o}function p8(e){let n=Object.keys(e);for(let t=0;t{var{buildOptions:g8}=cA(),h8=gA(),{prettify:_8}=CA(),C8=Of(),Df=class{constructor(n){this.externalEntities={},this.options=g8(n)}parse(n,t){if(typeof n!="string")if(n.toString)n=n.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});let s=C8.validate(n,t);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}let r=new h8(this.options);r.addExternalEntities(this.externalEntities);let o=r.parseXml(n);return this.options.preserveOrder||o===void 0?o:_8(o,this.options)}addEntity(n,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(n.indexOf("&")!==-1||n.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[n]=t}};SA.exports=Df});var xA=m((Pve,wA)=>{var S8=` +`;function b8(e,n){let t="";return n.format&&n.indentBy.length>0&&(t=S8),PA(e,n,"",t)}function PA(e,n,t,r){let o="",s=!1;for(let c=0;c`,s=!1;continue}else if(u===n.commentPropName){o+=r+``,s=!0;continue}else if(u[0]==="?"){let v=EA(i[":@"],n),A=u==="?xml"?"":r,E=i[u][0][n.textNodeName];E=E.length!==0?" "+E:"",o+=A+`<${u}${E}${v}?>`,s=!0;continue}let a=r;a!==""&&(a+=n.indentBy);let y=EA(i[":@"],n),g=r+`<${u}${y}`,C=PA(i[u],n,l,a);n.unpairedTags.indexOf(u)!==-1?n.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!C||C.length===0)&&n.suppressEmptyNode?o+=g+"/>":C&&C.endsWith(">")?o+=g+`>${C}${r}`:(o+=g+">",C&&r!==""&&(C.includes("/>")||C.includes("`),s=!0}return o}function E8(e){let n=Object.keys(e);for(let t=0;t0&&n.processEntities)for(let t=0;t{"use strict";var v8=xA(),w8={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Mn(e){this.options=Object.assign({},w8,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=A8),this.processTextOrObjNode=x8,this.options.format?(this.indentate=k8,this.tagEndChar=`> `,this.newLine=` -`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Mn.prototype.build=function(e){return this.options.preserveOrder?v8(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)};Mn.prototype.j2x=function(e,n){let t="",r="";for(let o in e)if(!(typeof e[o]>"u"))if(e[o]===null)o[0]==="?"?r+=this.indentate(n)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(n)+"<"+o+"/"+this.tagEndChar;else if(e[o]instanceof Date)r+=this.buildTextValNode(e[o],o,"",n);else if(typeof e[o]!="object"){let s=this.isAttribute(o);if(s)t+=this.buildAttrPairStr(s,""+e[o]);else if(o===this.options.textNodeName){let c=this.options.tagValueProcessor(o,""+e[o]);r+=this.replaceEntitiesValue(c)}else r+=this.buildTextValNode(e[o],o,"",n)}else if(Array.isArray(e[o])){let s=e[o].length,c="";for(let i=0;i"u"||(u===null?o[0]==="?"?r+=this.indentate(n)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(n)+"<"+o+"/"+this.tagEndChar:typeof u=="object"?this.options.oneListGroup?c+=this.j2x(u,n+1).val:c+=this.processTextOrObjNode(u,o,n):c+=this.buildTextValNode(u,o,"",n))}this.options.oneListGroup&&(c=this.buildObjectNode(c,o,"",n)),r+=c}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let s=Object.keys(e[o]),c=s.length;for(let i=0;i"+e+o:this.options.commentPropName!==!1&&n===this.options.commentPropName&&s.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+"<"+n+t+s+this.tagEndChar+e+this.indentate(r)+o}};Mn.prototype.closeTag=function(e){let n="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(n="/"):this.options.suppressEmptyNode?n="/":n=`>`+this.newLine;if(this.options.commentPropName!==!1&&n===this.options.commentPropName)return this.indentate(r)+``+this.newLine;if(n[0]==="?")return this.indentate(r)+"<"+n+t+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(n,e);return o=this.replaceEntitiesValue(o),o===""?this.indentate(r)+"<"+n+t+this.closeTag(n)+this.tagEndChar:this.indentate(r)+"<"+n+t+">"+o+"0&&this.options.processEntities)for(let n=0;n{"use strict";var O8=Of(),N8=bA(),I8=AA();OA.exports={XMLParser:N8,XMLValidator:O8,XMLBuilder:I8}});var dn=m(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.de_GetSessionTokenCommand=ue.de_GetFederationTokenCommand=ue.de_GetCallerIdentityCommand=ue.de_GetAccessKeyInfoCommand=ue.de_DecodeAuthorizationMessageCommand=ue.de_AssumeRoleWithWebIdentityCommand=ue.de_AssumeRoleWithSAMLCommand=ue.de_AssumeRoleCommand=ue.se_GetSessionTokenCommand=ue.se_GetFederationTokenCommand=ue.se_GetCallerIdentityCommand=ue.se_GetAccessKeyInfoCommand=ue.se_DecodeAuthorizationMessageCommand=ue.se_AssumeRoleWithWebIdentityCommand=ue.se_AssumeRoleWithSAMLCommand=ue.se_AssumeRoleCommand=void 0;var R8=Ne(),W=b(),T8=Mf(),Fn=Dn(),B8=il(),q8=async(e,n)=>{let t=zn,r;return r=Gn({...a4(e,n),Action:"AssumeRole",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_AssumeRoleCommand=q8;var D8=async(e,n)=>{let t=zn,r;return r=Gn({...c4(e,n),Action:"AssumeRoleWithSAML",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_AssumeRoleWithSAMLCommand=D8;var M8=async(e,n)=>{let t=zn,r;return r=Gn({...d4(e,n),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_AssumeRoleWithWebIdentityCommand=M8;var F8=async(e,n)=>{let t=zn,r;return r=Gn({...l4(e,n),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_DecodeAuthorizationMessageCommand=F8;var L8=async(e,n)=>{let t=zn,r;return r=Gn({...u4(e,n),Action:"GetAccessKeyInfo",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetAccessKeyInfoCommand=L8;var j8=async(e,n)=>{let t=zn,r;return r=Gn({...m4(e,n),Action:"GetCallerIdentity",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetCallerIdentityCommand=j8;var z8=async(e,n)=>{let t=zn,r;return r=Gn({...p4(e,n),Action:"GetFederationToken",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetFederationTokenCommand=z8;var U8=async(e,n)=>{let t=zn,r;return r=Gn({...f4(e,n),Action:"GetSessionToken",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetSessionTokenCommand=U8;var G8=async(e,n)=>{if(e.statusCode>=300)return H8(e,n);let t=await cn(e.body,n),r={};return r=S4(t.AssumeRoleResult,n),{$metadata:Qe(e),...r}};ue.de_AssumeRoleCommand=G8;var H8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Ff(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await cl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await dl(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},$8=async(e,n)=>{if(e.statusCode>=300)return K8(e,n);let t=await cn(e.body,n),r={};return r=b4(t.AssumeRoleWithSAMLResult,n),{$metadata:Qe(e),...r}};ue.de_AssumeRoleWithSAMLCommand=$8;var K8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Ff(t,n);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await NA(t,n);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await IA(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await cl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await dl(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},V8=async(e,n)=>{if(e.statusCode>=300)return X8(e,n);let t=await cn(e.body,n),r={};return r=E4(t.AssumeRoleWithWebIdentityResult,n),{$metadata:Qe(e),...r}};ue.de_AssumeRoleWithWebIdentityCommand=V8;var X8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Ff(t,n);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await s4(t,n);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await NA(t,n);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await IA(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await cl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await dl(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},W8=async(e,n)=>{if(e.statusCode>=300)return Y8(e,n);let t=await cn(e.body,n),r={};return r=P4(t.DecodeAuthorizationMessageResult,n),{$metadata:Qe(e),...r}};ue.de_DecodeAuthorizationMessageCommand=W8;var Y8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await i4(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},J8=async(e,n)=>{if(e.statusCode>=300)return Q8(e,n);let t=await cn(e.body,n),r={};return r=x4(t.GetAccessKeyInfoResult,n),{$metadata:Qe(e),...r}};ue.de_GetAccessKeyInfoCommand=J8;var Q8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body),o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})},Z8=async(e,n)=>{if(e.statusCode>=300)return e4(e,n);let t=await cn(e.body,n),r={};return r=k4(t.GetCallerIdentityResult,n),{$metadata:Qe(e),...r}};ue.de_GetCallerIdentityCommand=Z8;var e4=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body),o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})},t4=async(e,n)=>{if(e.statusCode>=300)return n4(e,n);let t=await cn(e.body,n),r={};return r=A4(t.GetFederationTokenResult,n),{$metadata:Qe(e),...r}};ue.de_GetFederationTokenCommand=t4;var n4=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await cl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await dl(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},r4=async(e,n)=>{if(e.statusCode>=300)return o4(e,n);let t=await cn(e.body,n),r={};return r=O4(t.GetSessionTokenResult,n),{$metadata:Qe(e),...r}};ue.de_GetSessionTokenCommand=r4;var o4=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},Ff=async(e,n)=>{let t=e.body,r=v4(t.Error,n),o=new Fn.ExpiredTokenException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},s4=async(e,n)=>{let t=e.body,r=N4(t.Error,n),o=new Fn.IDPCommunicationErrorException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},NA=async(e,n)=>{let t=e.body,r=I4(t.Error,n),o=new Fn.IDPRejectedClaimException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},i4=async(e,n)=>{let t=e.body,r=R4(t.Error,n),o=new Fn.InvalidAuthorizationMessageException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},IA=async(e,n)=>{let t=e.body,r=T4(t.Error,n),o=new Fn.InvalidIdentityTokenException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},cl=async(e,n)=>{let t=e.body,r=B4(t.Error,n),o=new Fn.MalformedPolicyDocumentException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},dl=async(e,n)=>{let t=e.body,r=q4(t.Error,n),o=new Fn.PackedPolicyTooLargeException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},ua=async(e,n)=>{let t=e.body,r=D4(t.Error,n),o=new Fn.RegionDisabledException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},a4=(e,n)=>{var r,o,s,c;let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.RoleSessionName!=null&&(t.RoleSessionName=e.RoleSessionName),e.PolicyArns!=null){let i=ll(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(i).forEach(([u,l])=>{let a=`PolicyArns.${u}`;t[a]=l})}if(e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.Tags!=null){let i=RA(e.Tags,n);((o=e.Tags)==null?void 0:o.length)===0&&(t.Tags=[]),Object.entries(i).forEach(([u,l])=>{let a=`Tags.${u}`;t[a]=l})}if(e.TransitiveTagKeys!=null){let i=C4(e.TransitiveTagKeys,n);((s=e.TransitiveTagKeys)==null?void 0:s.length)===0&&(t.TransitiveTagKeys=[]),Object.entries(i).forEach(([u,l])=>{let a=`TransitiveTagKeys.${u}`;t[a]=l})}if(e.ExternalId!=null&&(t.ExternalId=e.ExternalId),e.SerialNumber!=null&&(t.SerialNumber=e.SerialNumber),e.TokenCode!=null&&(t.TokenCode=e.TokenCode),e.SourceIdentity!=null&&(t.SourceIdentity=e.SourceIdentity),e.ProvidedContexts!=null){let i=h4(e.ProvidedContexts,n);((c=e.ProvidedContexts)==null?void 0:c.length)===0&&(t.ProvidedContexts=[]),Object.entries(i).forEach(([u,l])=>{let a=`ProvidedContexts.${u}`;t[a]=l})}return t},c4=(e,n)=>{var r;let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.PrincipalArn!=null&&(t.PrincipalArn=e.PrincipalArn),e.SAMLAssertion!=null&&(t.SAMLAssertion=e.SAMLAssertion),e.PolicyArns!=null){let o=ll(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(o).forEach(([s,c])=>{let i=`PolicyArns.${s}`;t[i]=c})}return e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),t},d4=(e,n)=>{var r;let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.RoleSessionName!=null&&(t.RoleSessionName=e.RoleSessionName),e.WebIdentityToken!=null&&(t.WebIdentityToken=e.WebIdentityToken),e.ProviderId!=null&&(t.ProviderId=e.ProviderId),e.PolicyArns!=null){let o=ll(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(o).forEach(([s,c])=>{let i=`PolicyArns.${s}`;t[i]=c})}return e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),t},l4=(e,n)=>{let t={};return e.EncodedMessage!=null&&(t.EncodedMessage=e.EncodedMessage),t},u4=(e,n)=>{let t={};return e.AccessKeyId!=null&&(t.AccessKeyId=e.AccessKeyId),t},m4=(e,n)=>({}),p4=(e,n)=>{var r,o;let t={};if(e.Name!=null&&(t.Name=e.Name),e.Policy!=null&&(t.Policy=e.Policy),e.PolicyArns!=null){let s=ll(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(s).forEach(([c,i])=>{let u=`PolicyArns.${c}`;t[u]=i})}if(e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.Tags!=null){let s=RA(e.Tags,n);((o=e.Tags)==null?void 0:o.length)===0&&(t.Tags=[]),Object.entries(s).forEach(([c,i])=>{let u=`Tags.${c}`;t[u]=i})}return t},f4=(e,n)=>{let t={};return e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.SerialNumber!=null&&(t.SerialNumber=e.SerialNumber),e.TokenCode!=null&&(t.TokenCode=e.TokenCode),t},ll=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=y4(o,n);Object.entries(s).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},y4=(e,n)=>{let t={};return e.arn!=null&&(t.arn=e.arn),t},g4=(e,n)=>{let t={};return e.ProviderArn!=null&&(t.ProviderArn=e.ProviderArn),e.ContextAssertion!=null&&(t.ContextAssertion=e.ContextAssertion),t},h4=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=g4(o,n);Object.entries(s).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},_4=(e,n)=>{let t={};return e.Key!=null&&(t.Key=e.Key),e.Value!=null&&(t.Value=e.Value),t},C4=(e,n)=>{let t={},r=1;for(let o of e)o!==null&&(t[`member.${r}`]=o,r++);return t},RA=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=_4(o,n);Object.entries(s).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},Lf=(e,n)=>{let t={};return e.AssumedRoleId!==void 0&&(t.AssumedRoleId=(0,W.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(t.Arn=(0,W.expectString)(e.Arn)),t},S4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=Lf(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),t},b4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=Lf(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(t.Subject=(0,W.expectString)(e.Subject)),e.SubjectType!==void 0&&(t.SubjectType=(0,W.expectString)(e.SubjectType)),e.Issuer!==void 0&&(t.Issuer=(0,W.expectString)(e.Issuer)),e.Audience!==void 0&&(t.Audience=(0,W.expectString)(e.Audience)),e.NameQualifier!==void 0&&(t.NameQualifier=(0,W.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),t},E4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.SubjectFromWebIdentityToken!==void 0&&(t.SubjectFromWebIdentityToken=(0,W.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=Lf(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(t.Provider=(0,W.expectString)(e.Provider)),e.Audience!==void 0&&(t.Audience=(0,W.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),t},ma=(e,n)=>{let t={};return e.AccessKeyId!==void 0&&(t.AccessKeyId=(0,W.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(t.SecretAccessKey=(0,W.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(t.SessionToken=(0,W.expectString)(e.SessionToken)),e.Expiration!==void 0&&(t.Expiration=(0,W.expectNonNull)((0,W.parseRfc3339DateTimeWithOffset)(e.Expiration))),t},P4=(e,n)=>{let t={};return e.DecodedMessage!==void 0&&(t.DecodedMessage=(0,W.expectString)(e.DecodedMessage)),t},v4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},w4=(e,n)=>{let t={};return e.FederatedUserId!==void 0&&(t.FederatedUserId=(0,W.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(t.Arn=(0,W.expectString)(e.Arn)),t},x4=(e,n)=>{let t={};return e.Account!==void 0&&(t.Account=(0,W.expectString)(e.Account)),t},k4=(e,n)=>{let t={};return e.UserId!==void 0&&(t.UserId=(0,W.expectString)(e.UserId)),e.Account!==void 0&&(t.Account=(0,W.expectString)(e.Account)),e.Arn!==void 0&&(t.Arn=(0,W.expectString)(e.Arn)),t},A4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.FederatedUser!==void 0&&(t.FederatedUser=w4(e.FederatedUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),t},O4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),t},N4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},I4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},R4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},T4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},B4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},q4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},D4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},Qe=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),M4=(e,n)=>(0,W.collectBody)(e,n).then(t=>n.utf8Encoder(t)),Ln=(0,W.withBaseException)(B8.STSServiceException),jn=async(e,n,t,r,o)=>{let{hostname:s,protocol:c="https",port:i,path:u}=await e.endpoint(),l={protocol:c,hostname:s,port:i,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+t:u+t,headers:n};return r!==void 0&&(l.hostname=r),o!==void 0&&(l.body=o),new R8.HttpRequest(l)},zn={"content-type":"application/x-www-form-urlencoded"},cn=(e,n)=>M4(e,n).then(t=>{if(t.length){let r=new T8.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(u,l)=>l.trim()===""&&l.includes(` +`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Mn.prototype.build=function(e){return this.options.preserveOrder?v8(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)};Mn.prototype.j2x=function(e,n){let t="",r="";for(let o in e)if(!(typeof e[o]>"u"))if(e[o]===null)o[0]==="?"?r+=this.indentate(n)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(n)+"<"+o+"/"+this.tagEndChar;else if(e[o]instanceof Date)r+=this.buildTextValNode(e[o],o,"",n);else if(typeof e[o]!="object"){let s=this.isAttribute(o);if(s)t+=this.buildAttrPairStr(s,""+e[o]);else if(o===this.options.textNodeName){let c=this.options.tagValueProcessor(o,""+e[o]);r+=this.replaceEntitiesValue(c)}else r+=this.buildTextValNode(e[o],o,"",n)}else if(Array.isArray(e[o])){let s=e[o].length,c="";for(let i=0;i"u"||(u===null?o[0]==="?"?r+=this.indentate(n)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(n)+"<"+o+"/"+this.tagEndChar:typeof u=="object"?this.options.oneListGroup?c+=this.j2x(u,n+1).val:c+=this.processTextOrObjNode(u,o,n):c+=this.buildTextValNode(u,o,"",n))}this.options.oneListGroup&&(c=this.buildObjectNode(c,o,"",n)),r+=c}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let s=Object.keys(e[o]),c=s.length;for(let i=0;i"+e+o:this.options.commentPropName!==!1&&n===this.options.commentPropName&&s.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+"<"+n+t+s+this.tagEndChar+e+this.indentate(r)+o}};Mn.prototype.closeTag=function(e){let n="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(n="/"):this.options.suppressEmptyNode?n="/":n=`>`+this.newLine;if(this.options.commentPropName!==!1&&n===this.options.commentPropName)return this.indentate(r)+``+this.newLine;if(n[0]==="?")return this.indentate(r)+"<"+n+t+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(n,e);return o=this.replaceEntitiesValue(o),o===""?this.indentate(r)+"<"+n+t+this.closeTag(n)+this.tagEndChar:this.indentate(r)+"<"+n+t+">"+o+"0&&this.options.processEntities)for(let n=0;n{"use strict";var O8=Of(),N8=bA(),I8=AA();OA.exports={XMLParser:N8,XMLValidator:O8,XMLBuilder:I8}});var dn=m(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.de_GetSessionTokenCommand=ue.de_GetFederationTokenCommand=ue.de_GetCallerIdentityCommand=ue.de_GetAccessKeyInfoCommand=ue.de_DecodeAuthorizationMessageCommand=ue.de_AssumeRoleWithWebIdentityCommand=ue.de_AssumeRoleWithSAMLCommand=ue.de_AssumeRoleCommand=ue.se_GetSessionTokenCommand=ue.se_GetFederationTokenCommand=ue.se_GetCallerIdentityCommand=ue.se_GetAccessKeyInfoCommand=ue.se_DecodeAuthorizationMessageCommand=ue.se_AssumeRoleWithWebIdentityCommand=ue.se_AssumeRoleWithSAMLCommand=ue.se_AssumeRoleCommand=void 0;var R8=Ne(),W=b(),T8=Mf(),Fn=Dn(),B8=al(),q8=async(e,n)=>{let t=zn,r;return r=Gn({...a4(e,n),Action:"AssumeRole",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_AssumeRoleCommand=q8;var D8=async(e,n)=>{let t=zn,r;return r=Gn({...c4(e,n),Action:"AssumeRoleWithSAML",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_AssumeRoleWithSAMLCommand=D8;var M8=async(e,n)=>{let t=zn,r;return r=Gn({...d4(e,n),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_AssumeRoleWithWebIdentityCommand=M8;var F8=async(e,n)=>{let t=zn,r;return r=Gn({...l4(e,n),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_DecodeAuthorizationMessageCommand=F8;var L8=async(e,n)=>{let t=zn,r;return r=Gn({...u4(e,n),Action:"GetAccessKeyInfo",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetAccessKeyInfoCommand=L8;var j8=async(e,n)=>{let t=zn,r;return r=Gn({...m4(e,n),Action:"GetCallerIdentity",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetCallerIdentityCommand=j8;var z8=async(e,n)=>{let t=zn,r;return r=Gn({...p4(e,n),Action:"GetFederationToken",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetFederationTokenCommand=z8;var U8=async(e,n)=>{let t=zn,r;return r=Gn({...f4(e,n),Action:"GetSessionToken",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};ue.se_GetSessionTokenCommand=U8;var G8=async(e,n)=>{if(e.statusCode>=300)return H8(e,n);let t=await cn(e.body,n),r={};return r=S4(t.AssumeRoleResult,n),{$metadata:Qe(e),...r}};ue.de_AssumeRoleCommand=G8;var H8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Ff(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await dl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await ll(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},$8=async(e,n)=>{if(e.statusCode>=300)return K8(e,n);let t=await cn(e.body,n),r={};return r=b4(t.AssumeRoleWithSAMLResult,n),{$metadata:Qe(e),...r}};ue.de_AssumeRoleWithSAMLCommand=$8;var K8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Ff(t,n);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await NA(t,n);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await IA(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await dl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await ll(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},V8=async(e,n)=>{if(e.statusCode>=300)return X8(e,n);let t=await cn(e.body,n),r={};return r=E4(t.AssumeRoleWithWebIdentityResult,n),{$metadata:Qe(e),...r}};ue.de_AssumeRoleWithWebIdentityCommand=V8;var X8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Ff(t,n);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await s4(t,n);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await NA(t,n);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await IA(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await dl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await ll(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},W8=async(e,n)=>{if(e.statusCode>=300)return Y8(e,n);let t=await cn(e.body,n),r={};return r=P4(t.DecodeAuthorizationMessageResult,n),{$metadata:Qe(e),...r}};ue.de_DecodeAuthorizationMessageCommand=W8;var Y8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await i4(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},J8=async(e,n)=>{if(e.statusCode>=300)return Q8(e,n);let t=await cn(e.body,n),r={};return r=x4(t.GetAccessKeyInfoResult,n),{$metadata:Qe(e),...r}};ue.de_GetAccessKeyInfoCommand=J8;var Q8=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body),o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})},Z8=async(e,n)=>{if(e.statusCode>=300)return e4(e,n);let t=await cn(e.body,n),r={};return r=k4(t.GetCallerIdentityResult,n),{$metadata:Qe(e),...r}};ue.de_GetCallerIdentityCommand=Z8;var e4=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body),o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})},t4=async(e,n)=>{if(e.statusCode>=300)return n4(e,n);let t=await cn(e.body,n),r={};return r=A4(t.GetFederationTokenResult,n),{$metadata:Qe(e),...r}};ue.de_GetFederationTokenCommand=t4;var n4=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await dl(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await ll(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},r4=async(e,n)=>{if(e.statusCode>=300)return o4(e,n);let t=await cn(e.body,n),r={};return r=O4(t.GetSessionTokenResult,n),{$metadata:Qe(e),...r}};ue.de_GetSessionTokenCommand=r4;var o4=async(e,n)=>{let t={...e,body:await Un(e.body,n)},r=Hn(e,t.body);switch(r){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ua(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},Ff=async(e,n)=>{let t=e.body,r=v4(t.Error,n),o=new Fn.ExpiredTokenException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},s4=async(e,n)=>{let t=e.body,r=N4(t.Error,n),o=new Fn.IDPCommunicationErrorException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},NA=async(e,n)=>{let t=e.body,r=I4(t.Error,n),o=new Fn.IDPRejectedClaimException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},i4=async(e,n)=>{let t=e.body,r=R4(t.Error,n),o=new Fn.InvalidAuthorizationMessageException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},IA=async(e,n)=>{let t=e.body,r=T4(t.Error,n),o=new Fn.InvalidIdentityTokenException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},dl=async(e,n)=>{let t=e.body,r=B4(t.Error,n),o=new Fn.MalformedPolicyDocumentException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},ll=async(e,n)=>{let t=e.body,r=q4(t.Error,n),o=new Fn.PackedPolicyTooLargeException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},ua=async(e,n)=>{let t=e.body,r=D4(t.Error,n),o=new Fn.RegionDisabledException({$metadata:Qe(e),...r});return(0,W.decorateServiceException)(o,t)},a4=(e,n)=>{var r,o,s,c;let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.RoleSessionName!=null&&(t.RoleSessionName=e.RoleSessionName),e.PolicyArns!=null){let i=ul(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(i).forEach(([u,l])=>{let a=`PolicyArns.${u}`;t[a]=l})}if(e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.Tags!=null){let i=RA(e.Tags,n);((o=e.Tags)==null?void 0:o.length)===0&&(t.Tags=[]),Object.entries(i).forEach(([u,l])=>{let a=`Tags.${u}`;t[a]=l})}if(e.TransitiveTagKeys!=null){let i=C4(e.TransitiveTagKeys,n);((s=e.TransitiveTagKeys)==null?void 0:s.length)===0&&(t.TransitiveTagKeys=[]),Object.entries(i).forEach(([u,l])=>{let a=`TransitiveTagKeys.${u}`;t[a]=l})}if(e.ExternalId!=null&&(t.ExternalId=e.ExternalId),e.SerialNumber!=null&&(t.SerialNumber=e.SerialNumber),e.TokenCode!=null&&(t.TokenCode=e.TokenCode),e.SourceIdentity!=null&&(t.SourceIdentity=e.SourceIdentity),e.ProvidedContexts!=null){let i=h4(e.ProvidedContexts,n);((c=e.ProvidedContexts)==null?void 0:c.length)===0&&(t.ProvidedContexts=[]),Object.entries(i).forEach(([u,l])=>{let a=`ProvidedContexts.${u}`;t[a]=l})}return t},c4=(e,n)=>{var r;let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.PrincipalArn!=null&&(t.PrincipalArn=e.PrincipalArn),e.SAMLAssertion!=null&&(t.SAMLAssertion=e.SAMLAssertion),e.PolicyArns!=null){let o=ul(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(o).forEach(([s,c])=>{let i=`PolicyArns.${s}`;t[i]=c})}return e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),t},d4=(e,n)=>{var r;let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.RoleSessionName!=null&&(t.RoleSessionName=e.RoleSessionName),e.WebIdentityToken!=null&&(t.WebIdentityToken=e.WebIdentityToken),e.ProviderId!=null&&(t.ProviderId=e.ProviderId),e.PolicyArns!=null){let o=ul(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(o).forEach(([s,c])=>{let i=`PolicyArns.${s}`;t[i]=c})}return e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),t},l4=(e,n)=>{let t={};return e.EncodedMessage!=null&&(t.EncodedMessage=e.EncodedMessage),t},u4=(e,n)=>{let t={};return e.AccessKeyId!=null&&(t.AccessKeyId=e.AccessKeyId),t},m4=(e,n)=>({}),p4=(e,n)=>{var r,o;let t={};if(e.Name!=null&&(t.Name=e.Name),e.Policy!=null&&(t.Policy=e.Policy),e.PolicyArns!=null){let s=ul(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(s).forEach(([c,i])=>{let u=`PolicyArns.${c}`;t[u]=i})}if(e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.Tags!=null){let s=RA(e.Tags,n);((o=e.Tags)==null?void 0:o.length)===0&&(t.Tags=[]),Object.entries(s).forEach(([c,i])=>{let u=`Tags.${c}`;t[u]=i})}return t},f4=(e,n)=>{let t={};return e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.SerialNumber!=null&&(t.SerialNumber=e.SerialNumber),e.TokenCode!=null&&(t.TokenCode=e.TokenCode),t},ul=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=y4(o,n);Object.entries(s).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},y4=(e,n)=>{let t={};return e.arn!=null&&(t.arn=e.arn),t},g4=(e,n)=>{let t={};return e.ProviderArn!=null&&(t.ProviderArn=e.ProviderArn),e.ContextAssertion!=null&&(t.ContextAssertion=e.ContextAssertion),t},h4=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=g4(o,n);Object.entries(s).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},_4=(e,n)=>{let t={};return e.Key!=null&&(t.Key=e.Key),e.Value!=null&&(t.Value=e.Value),t},C4=(e,n)=>{let t={},r=1;for(let o of e)o!==null&&(t[`member.${r}`]=o,r++);return t},RA=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=_4(o,n);Object.entries(s).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},Lf=(e,n)=>{let t={};return e.AssumedRoleId!==void 0&&(t.AssumedRoleId=(0,W.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(t.Arn=(0,W.expectString)(e.Arn)),t},S4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=Lf(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),t},b4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=Lf(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(t.Subject=(0,W.expectString)(e.Subject)),e.SubjectType!==void 0&&(t.SubjectType=(0,W.expectString)(e.SubjectType)),e.Issuer!==void 0&&(t.Issuer=(0,W.expectString)(e.Issuer)),e.Audience!==void 0&&(t.Audience=(0,W.expectString)(e.Audience)),e.NameQualifier!==void 0&&(t.NameQualifier=(0,W.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),t},E4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.SubjectFromWebIdentityToken!==void 0&&(t.SubjectFromWebIdentityToken=(0,W.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=Lf(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(t.Provider=(0,W.expectString)(e.Provider)),e.Audience!==void 0&&(t.Audience=(0,W.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,W.expectString)(e.SourceIdentity)),t},ma=(e,n)=>{let t={};return e.AccessKeyId!==void 0&&(t.AccessKeyId=(0,W.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(t.SecretAccessKey=(0,W.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(t.SessionToken=(0,W.expectString)(e.SessionToken)),e.Expiration!==void 0&&(t.Expiration=(0,W.expectNonNull)((0,W.parseRfc3339DateTimeWithOffset)(e.Expiration))),t},P4=(e,n)=>{let t={};return e.DecodedMessage!==void 0&&(t.DecodedMessage=(0,W.expectString)(e.DecodedMessage)),t},v4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},w4=(e,n)=>{let t={};return e.FederatedUserId!==void 0&&(t.FederatedUserId=(0,W.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(t.Arn=(0,W.expectString)(e.Arn)),t},x4=(e,n)=>{let t={};return e.Account!==void 0&&(t.Account=(0,W.expectString)(e.Account)),t},k4=(e,n)=>{let t={};return e.UserId!==void 0&&(t.UserId=(0,W.expectString)(e.UserId)),e.Account!==void 0&&(t.Account=(0,W.expectString)(e.Account)),e.Arn!==void 0&&(t.Arn=(0,W.expectString)(e.Arn)),t},A4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.FederatedUser!==void 0&&(t.FederatedUser=w4(e.FederatedUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),t},O4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),t},N4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},I4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},R4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},T4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},B4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},q4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},D4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},Qe=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),M4=(e,n)=>(0,W.collectBody)(e,n).then(t=>n.utf8Encoder(t)),Ln=(0,W.withBaseException)(B8.STSServiceException),jn=async(e,n,t,r,o)=>{let{hostname:s,protocol:c="https",port:i,path:u}=await e.endpoint(),l={protocol:c,hostname:s,port:i,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+t:u+t,headers:n};return r!==void 0&&(l.hostname=r),o!==void 0&&(l.body=o),new R8.HttpRequest(l)},zn={"content-type":"application/x-www-form-urlencoded"},cn=(e,n)=>M4(e,n).then(t=>{if(t.length){let r=new T8.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(u,l)=>l.trim()===""&&l.includes(` `)?"":void 0});r.addEntity("#xD","\r"),r.addEntity("#10",` -`);let o=r.parse(t),s="#text",c=Object.keys(o)[0],i=o[c];return i[s]&&(i[c]=i[s],delete i[s]),(0,W.getValueFromTextNode)(i)}return{}}),Un=async(e,n)=>{let t=await cn(e,n);return t.Error&&(t.Error.message=t.Error.message??t.Error.Message),t},Gn=e=>Object.entries(e).map(([n,t])=>(0,W.extendedEncodeURIComponent)(n)+"="+(0,W.extendedEncodeURIComponent)(t)).join("&"),Hn=(e,n)=>{var t;if(((t=n.Error)==null?void 0:t.Code)!==void 0)return n.Error.Code;if(e.statusCode==404)return"NotFound"}});var ul=m(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.AssumeRoleCommand=Hr.$Command=void 0;var F4=rn(),L4=x(),j4=k(),BA=b();Object.defineProperty(Hr,"$Command",{enumerable:!0,get:function(){return BA.Command}});var z4=w(),U4=Dn(),TA=dn(),jf=class e extends BA.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,j4.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,L4.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,F4.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:U4.AssumeRoleResponseFilterSensitiveLog,[z4.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRole"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,TA.se_AssumeRoleCommand)(n,t)}deserialize(n,t){return(0,TA.de_AssumeRoleCommand)(n,t)}};Hr.AssumeRoleCommand=jf});var ml=m($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.AssumeRoleWithWebIdentityCommand=$r.$Command=void 0;var G4=x(),H4=k(),MA=b();Object.defineProperty($r,"$Command",{enumerable:!0,get:function(){return MA.Command}});var $4=w(),qA=Dn(),DA=dn(),zf=class e extends MA.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,H4.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,G4.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:qA.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:qA.AssumeRoleWithWebIdentityResponseFilterSensitiveLog,[$4.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithWebIdentity"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,DA.se_AssumeRoleWithWebIdentityCommand)(n,t)}deserialize(n,t){return(0,DA.de_AssumeRoleWithWebIdentityCommand)(n,t)}};$r.AssumeRoleWithWebIdentityCommand=zf});var Uf=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.decorateDefaultCredentialProvider=Ft.getDefaultRoleAssumerWithWebIdentity=Ft.getDefaultRoleAssumer=void 0;var K4=ul(),V4=ml(),FA="us-east-1",LA=e=>typeof e!="function"?e===void 0?FA:e:async()=>{try{return await e()}catch{return FA}},X4=(e,n)=>{let t,r;return async(o,s)=>{if(r=o,!t){let{logger:i,region:u,requestHandler:l}=e;t=new n({logger:i,credentialDefaultProvider:()=>async()=>r,region:LA(u||e.region),...l?{requestHandler:l}:{}})}let{Credentials:c}=await t.send(new K4.AssumeRoleCommand(s));if(!c||!c.AccessKeyId||!c.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.SessionToken,expiration:c.Expiration}}};Ft.getDefaultRoleAssumer=X4;var W4=(e,n)=>{let t;return async r=>{if(!t){let{logger:s,region:c,requestHandler:i}=e;t=new n({logger:s,region:LA(c||e.region),...i?{requestHandler:i}:{}})}let{Credentials:o}=await t.send(new V4.AssumeRoleWithWebIdentityCommand(r));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration}}};Ft.getDefaultRoleAssumerWithWebIdentity=W4;var Y4=e=>n=>e({roleAssumer:(0,Ft.getDefaultRoleAssumer)(n,n.stsClientCtor),roleAssumerWithWebIdentity:(0,Ft.getDefaultRoleAssumerWithWebIdentity)(n,n.stsClientCtor),...n});Ft.decorateDefaultCredentialProvider=Y4});var jA=m(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.fromEnv=Ze.ENV_EXPIRATION=Ze.ENV_SESSION=Ze.ENV_SECRET=Ze.ENV_KEY=void 0;var J4=xe();Ze.ENV_KEY="AWS_ACCESS_KEY_ID";Ze.ENV_SECRET="AWS_SECRET_ACCESS_KEY";Ze.ENV_SESSION="AWS_SESSION_TOKEN";Ze.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var Q4=()=>async()=>{let e=process.env[Ze.ENV_KEY],n=process.env[Ze.ENV_SECRET],t=process.env[Ze.ENV_SESSION],r=process.env[Ze.ENV_EXPIRATION];if(e&&n)return{accessKeyId:e,secretAccessKey:n,...t&&{sessionToken:t},...r&&{expiration:new Date(r)}};throw new J4.CredentialsProviderError("Unable to find environment variable credentials.")};Ze.fromEnv=Q4});var Hf=m(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var Z4=(te(),Y(ee));Z4.__exportStar(jA(),Gf)});var gl=m((Nve,eO)=>{var yl=Object.defineProperty,eW=Object.getOwnPropertyDescriptor,tW=Object.getOwnPropertyNames,nW=Object.prototype.hasOwnProperty,qe=(e,n)=>yl(e,"name",{value:n,configurable:!0}),rW=(e,n)=>{for(var t in n)yl(e,t,{get:n[t],enumerable:!0})},oW=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of tW(n))!nW.call(e,o)&&o!==t&&yl(e,o,{get:()=>n[o],enumerable:!(r=eW(n,o))||r.enumerable});return e},sW=e=>oW(yl({},"__esModule",{value:!0}),e),HA={};rW(HA,{DEFAULT_MAX_RETRIES:()=>XA,DEFAULT_TIMEOUT:()=>VA,ENV_CMDS_AUTH_TOKEN:()=>Vf,ENV_CMDS_FULL_URI:()=>pl,ENV_CMDS_RELATIVE_URI:()=>fl,fromContainerMetadata:()=>dW,fromInstanceMetadata:()=>NW,getInstanceMetadataEndpoint:()=>QA,httpRequest:()=>Kr,providerConfigFromInit:()=>Xf});eO.exports=sW(HA);var iW=require("url"),Lt=xe(),aW=require("buffer"),cW=require("http");function Kr(e){return new Promise((n,t)=>{var r;let o=(0,cW.request)({method:"GET",...e,hostname:(r=e.hostname)==null?void 0:r.replace(/^\[(.+)\]$/,"$1")});o.on("error",s=>{t(Object.assign(new Lt.ProviderError("Unable to connect to instance metadata service"),s)),o.destroy()}),o.on("timeout",()=>{t(new Lt.ProviderError("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",s=>{let{statusCode:c=400}=s;(c<200||300<=c)&&(t(Object.assign(new Lt.ProviderError("Error response received from instance metadata service"),{statusCode:c})),o.destroy());let i=[];s.on("data",u=>{i.push(u)}),s.on("end",()=>{n(aW.Buffer.concat(i)),o.destroy()})}),o.end()})}qe(Kr,"httpRequest");var $A=qe(e=>!!e&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string","isImdsCredentials"),KA=qe(e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)}),"fromImdsCredentials"),VA=1e3,XA=0,Xf=qe(({maxRetries:e=XA,timeout:n=VA})=>({maxRetries:e,timeout:n}),"providerConfigFromInit"),Kf=qe((e,n)=>{let t=e();for(let r=0;r{let{timeout:n,maxRetries:t}=Xf(e);return()=>Kf(async()=>{let r=await fW(),o=JSON.parse(await lW(n,r));if(!$A(o))throw new Lt.CredentialsProviderError("Invalid response received from instance metadata service.");return KA(o)},t)},"fromContainerMetadata"),lW=qe(async(e,n)=>(process.env[Vf]&&(n.headers={...n.headers,Authorization:process.env[Vf]}),(await Kr({...n,timeout:e})).toString()),"requestFromEcsImds"),uW="169.254.170.2",mW={localhost:!0,"127.0.0.1":!0},pW={"http:":!0,"https:":!0},fW=qe(async()=>{if(process.env[fl])return{hostname:uW,path:process.env[fl]};if(process.env[pl]){let e=(0,iW.parse)(process.env[pl]);if(!e.hostname||!(e.hostname in mW))throw new Lt.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in pW))throw new Lt.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new Lt.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${fl} or ${pl} environment variable is set`,!1)},"getCmdsUri"),WA=class YA extends Lt.CredentialsProviderError{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,YA.prototype)}};qe(WA,"InstanceMetadataV1FallbackError");var yW=WA,Wf=on(),gW=mr(),hW="AWS_EC2_METADATA_SERVICE_ENDPOINT",_W="ec2_metadata_service_endpoint",CW={environmentVariableSelector:e=>e[hW],configFileSelector:e=>e[_W],default:void 0},JA=(e=>(e.IPv4="IPv4",e.IPv6="IPv6",e))(JA||{}),SW="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",bW="ec2_metadata_service_endpoint_mode",EW={environmentVariableSelector:e=>e[SW],configFileSelector:e=>e[bW],default:"IPv4"},QA=qe(async()=>(0,gW.parseUrl)(await PW()||await vW()),"getInstanceMetadataEndpoint"),PW=qe(async()=>(0,Wf.loadConfig)(CW)(),"getFromEndpointConfig"),vW=qe(async()=>{let e=await(0,Wf.loadConfig)(EW)();switch(e){case"IPv4":return"http://169.254.169.254";case"IPv6":return"http://[fd00:ec2::254]";default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(JA)}`)}},"getFromEndpointModeConfig"),wW=5*60,xW=5*60,kW="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",zA=qe((e,n)=>{let t=wW+Math.floor(Math.random()*xW),r=new Date(Date.now()+t*1e3);n.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+kW);let o=e.originalExpiration??e.expiration;return{...e,...o?{originalExpiration:o}:{},expiration:r}},"getExtendedInstanceMetadataCredentials"),AW=qe((e,n={})=>{let t=(n==null?void 0:n.logger)||console,r;return async()=>{let o;try{o=await e(),o.expiration&&o.expiration.getTime()AW(IW(e),{logger:e.logger}),"fromInstanceMetadata"),IW=qe(e=>{let n=!1,{logger:t,profile:r}=e,{timeout:o,maxRetries:s}=Xf(e),c=qe(async(i,u)=>{var l;if(n||((l=u.headers)==null?void 0:l[GA])==null){let g=!1,C=!1,v=await(0,Wf.loadConfig)({environmentVariableSelector:A=>{let E=A[$f];if(C=!!E&&E!=="false",E===void 0)throw new Lt.CredentialsProviderError(`${$f} not set in env, checking config file next.`);return C},configFileSelector:A=>{let E=A[UA];return g=!!E&&E!=="false",g},default:!1},{profile:r})();if(e.ec2MetadataV1Disabled||v){let A=[];throw e.ec2MetadataV1Disabled&&A.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),g&&A.push(`config file profile (${UA})`),C&&A.push(`process environment variable (${$f})`),new yW(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${A.join(", ")}].`)}}let y=(await Kf(async()=>{let g;try{g=await TW(u)}catch(C){throw C.statusCode===401&&(n=!1),C}return g},i)).trim();return Kf(async()=>{let g;try{g=await BW(y,u)}catch(C){throw C.statusCode===401&&(n=!1),C}return g},i)},"getCredentials");return async()=>{let i=await QA();if(n)return t==null||t.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),c(s,{...i,timeout:o});{let u;try{u=(await RW({...i,timeout:o})).toString()}catch(l){if((l==null?void 0:l.statusCode)===400)throw Object.assign(l,{message:"EC2 Metadata token request returned error"});return(l.message==="TimeoutError"||[403,404,405].includes(l.statusCode))&&(n=!0),t==null||t.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),c(s,{...i,timeout:o})}return c(s,{...i,headers:{[GA]:u},timeout:o})}}},"getInstanceImdsProvider"),RW=qe(async e=>Kr({...e,path:OW,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),TW=qe(async e=>(await Kr({...e,path:ZA})).toString(),"getProfile"),BW=qe(async(e,n)=>{let t=JSON.parse((await Kr({...n,path:ZA+e})).toString());if(!$A(t))throw new Lt.CredentialsProviderError("Invalid response received from instance metadata service.");return KA(t)},"getCredentialsFromProfile")});var nO=m(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.resolveCredentialSource=void 0;var qW=Hf(),tO=gl(),DW=xe(),MW=(e,n)=>{let t={EcsContainer:tO.fromContainerMetadata,Ec2InstanceMetadata:tO.fromInstanceMetadata,Environment:qW.fromEnv};if(e in t)return t[e]();throw new DW.CredentialsProviderError(`Unsupported credential source in profile ${n}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};hl.resolveCredentialSource=MW});var rO=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.resolveAssumeRoleCredentials=Vr.isAssumeRoleProfile=void 0;var Yf=xe(),FW=wt(),LW=nO(),jW=Jf(),zW=e=>!!e&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(UW(e)||GW(e));Vr.isAssumeRoleProfile=zW;var UW=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",GW=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",HW=async(e,n,t,r={})=>{let o=n[e];if(!t.roleAssumer)throw new Yf.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:s}=o;if(s&&s in r)throw new Yf.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,FW.getProfileName)(t)}. Profiles visited: `+Object.keys(r).join(", "),!1);let c=s?(0,jW.resolveProfileData)(s,n,t,{...r,[s]:!0}):(0,LW.resolveCredentialSource)(o.credential_source,e)(),i={RoleArn:o.role_arn,RoleSessionName:o.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:o.external_id,DurationSeconds:parseInt(o.duration_seconds||"3600",10)},{mfa_serial:u}=o;if(u){if(!t.mfaCodeProvider)throw new Yf.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);i.SerialNumber=u,i.TokenCode=await t.mfaCodeProvider(u)}let l=await c;return t.roleAssumer(l,i)};Vr.resolveAssumeRoleCredentials=HW});var oO=m(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.getValidatedProcessCredentials=void 0;var $W=(e,n)=>{if(n.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(n.AccessKeyId===void 0||n.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(n.Expiration){let t=new Date;if(new Date(n.Expiration){"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.resolveProcessCredentials=void 0;var Qf=xe(),KW=require("child_process"),VW=require("util"),XW=oO(),WW=async(e,n)=>{let t=n[e];if(n[e]){let r=t.credential_process;if(r!==void 0){let o=(0,VW.promisify)(KW.exec);try{let{stdout:s}=await o(r),c;try{c=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,XW.getValidatedProcessCredentials)(e,c)}catch(s){throw new Qf.CredentialsProviderError(s.message)}}else throw new Qf.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new Qf.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};Cl.resolveProcessCredentials=WW});var aO=m(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.fromProcess=void 0;var iO=wt(),YW=sO(),JW=(e={})=>async()=>{let n=await(0,iO.parseKnownFiles)(e);return(0,YW.resolveProcessCredentials)((0,iO.getProfileName)(e),n)};Sl.fromProcess=JW});var ey=m(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var QW=(te(),Y(ee));QW.__exportStar(aO(),Zf)});var cO=m(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.resolveProcessCredentials=Xr.isProcessProfile=void 0;var ZW=ey(),e5=e=>!!e&&typeof e=="object"&&typeof e.credential_process=="string";Xr.isProcessProfile=e5;var t5=async(e,n)=>(0,ZW.fromProcess)({...e,profile:n})();Xr.resolveProcessCredentials=t5});var ty=m(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.isSsoProfile=void 0;var n5=e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string");bl.isSsoProfile=n5});var dO=m(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.resolveClientEndpointParameters=void 0;var r5=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"});El.resolveClientEndpointParameters=r5});var lO=m((jve,o5)=>{o5.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.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-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var mO=m((Pl,uO)=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.isCrtAvailable=void 0;var s5=()=>{try{return typeof require=="function"&&typeof uO<"u"&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};Pl.isCrtAvailable=s5});var pa=m(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.defaultUserAgent=jt.UA_APP_ID_INI_NAME=jt.UA_APP_ID_ENV_NAME=void 0;var i5=on(),pO=require("os"),ny=require("process"),a5=mO();jt.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";jt.UA_APP_ID_INI_NAME="sdk-ua-app-id";var c5=({serviceId:e,clientVersion:n})=>{let t=[["aws-sdk-js",n],["ua","2.0"],[`os/${(0,pO.platform)()}`,(0,pO.release)()],["lang/js"],["md/nodejs",`${ny.versions.node}`]],r=(0,a5.isCrtAvailable)();r&&t.push(r),e&&t.push([`api/${e}`,n]),ny.env.AWS_EXECUTION_ENV&&t.push([`exec-env/${ny.env.AWS_EXECUTION_ENV}`]);let o=(0,i5.loadConfig)({environmentVariableSelector:c=>c[jt.UA_APP_ID_ENV_NAME],configFileSelector:c=>c[jt.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let c=await o;s=c?[...t,[`app/${c}`]]:[...t]}return s}};jt.defaultUserAgent=c5});var fa=m((Gve,_O)=>{var vl=Object.defineProperty,d5=Object.getOwnPropertyDescriptor,l5=Object.getOwnPropertyNames,u5=Object.prototype.hasOwnProperty,yO=(e,n)=>vl(e,"name",{value:n,configurable:!0}),m5=(e,n)=>{for(var t in n)vl(e,t,{get:n[t],enumerable:!0})},p5=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of l5(n))!u5.call(e,o)&&o!==t&&vl(e,o,{get:()=>n[o],enumerable:!(r=d5(n,o))||r.enumerable});return e},f5=e=>p5(vl({},"__esModule",{value:!0}),e),gO={};m5(gO,{Hash:()=>h5});_O.exports=f5(gO);var ry=Er(),y5=yt(),g5=require("buffer"),fO=require("crypto"),hO=class{constructor(n,t){this.algorithmIdentifier=n,this.secret=t,this.reset()}update(n,t){this.hash.update((0,y5.toUint8Array)(oy(n,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,fO.createHmac)(this.algorithmIdentifier,oy(this.secret)):(0,fO.createHash)(this.algorithmIdentifier)}};yO(hO,"Hash");var h5=hO;function oy(e,n){return g5.Buffer.isBuffer(e)?e:typeof e=="string"?(0,ry.fromString)(e,n):ArrayBuffer.isView(e)?(0,ry.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,ry.fromArrayBuffer)(e)}yO(oy,"castSourceData")});var ya=m((Hve,bO)=>{var wl=Object.defineProperty,_5=Object.getOwnPropertyDescriptor,C5=Object.getOwnPropertyNames,S5=Object.prototype.hasOwnProperty,b5=(e,n)=>wl(e,"name",{value:n,configurable:!0}),E5=(e,n)=>{for(var t in n)wl(e,t,{get:n[t],enumerable:!0})},P5=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of C5(n))!S5.call(e,o)&&o!==t&&wl(e,o,{get:()=>n[o],enumerable:!(r=_5(n,o))||r.enumerable});return e},v5=e=>P5(wl({},"__esModule",{value:!0}),e),SO={};E5(SO,{calculateBodyLength:()=>w5});bO.exports=v5(SO);var CO=require("fs"),w5=b5(e=>{if(!e)return 0;if(typeof e=="string")return Buffer.from(e).length;if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.start=="number"&&typeof e.end=="number")return e.end+1-e.start;if(typeof e.path=="string"||Buffer.isBuffer(e.path))return(0,CO.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,CO.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)},"calculateBodyLength")});var BO=m(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.ruleSet=void 0;var IO="required",un="fn",mn="argv",Yr="ref",EO="isSet",ln="tree",Wr="error",ga="endpoint",sy="PartitionResult",PO={[IO]:!1,type:"String"},vO={[IO]:!0,default:!1,type:"Boolean"},wO={[Yr]:"Endpoint"},RO={[un]:"booleanEquals",[mn]:[{[Yr]:"UseFIPS"},!0]},TO={[un]:"booleanEquals",[mn]:[{[Yr]:"UseDualStack"},!0]},zt={},xO={[un]:"booleanEquals",[mn]:[!0,{[un]:"getAttr",[mn]:[{[Yr]:sy},"supportsFIPS"]}]},kO={[un]:"booleanEquals",[mn]:[!0,{[un]:"getAttr",[mn]:[{[Yr]:sy},"supportsDualStack"]}]},AO=[RO],OO=[TO],NO=[{[Yr]:"Region"}],x5={version:"1.0",parameters:{Region:PO,UseDualStack:vO,UseFIPS:vO,Endpoint:PO},rules:[{conditions:[{[un]:EO,[mn]:[wO]}],type:ln,rules:[{conditions:AO,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Wr},{conditions:OO,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Wr},{endpoint:{url:wO,properties:zt,headers:zt},type:ga}]},{conditions:[{[un]:EO,[mn]:NO}],type:ln,rules:[{conditions:[{[un]:"aws.partition",[mn]:NO,assign:sy}],type:ln,rules:[{conditions:[RO,TO],type:ln,rules:[{conditions:[xO,kO],type:ln,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zt,headers:zt},type:ga}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Wr}]},{conditions:AO,type:ln,rules:[{conditions:[xO],type:ln,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:zt,headers:zt},type:ga}]},{error:"FIPS is enabled but this partition does not support FIPS",type:Wr}]},{conditions:OO,type:ln,rules:[{conditions:[kO],type:ln,rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zt,headers:zt},type:ga}]},{error:"DualStack is enabled but this partition does not support DualStack",type:Wr}]},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:zt,headers:zt},type:ga}]}]},{error:"Invalid Configuration: Missing Region",type:Wr}]};xl.ruleSet=x5});var qO=m(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.defaultEndpointResolver=void 0;var k5=jr(),A5=BO(),O5=(e,n={})=>(0,k5.resolveEndpoint)(A5.ruleSet,{endpointParams:e,logger:n.logger});kl.defaultEndpointResolver=O5});var FO=m(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.getRuntimeConfig=void 0;var N5=b(),I5=mr(),DO=Pr(),MO=yt(),R5=qO(),T5=e=>({apiVersion:"2019-06-10",base64Decoder:(e==null?void 0:e.base64Decoder)??DO.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??DO.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??R5.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new N5.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"SSO",urlParser:(e==null?void 0:e.urlParser)??I5.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??MO.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??MO.toUtf8});Al.getRuntimeConfig=T5});var ha=m((Xve,HO)=>{var Ol=Object.defineProperty,B5=Object.getOwnPropertyDescriptor,q5=Object.getOwnPropertyNames,D5=Object.prototype.hasOwnProperty,iy=(e,n)=>Ol(e,"name",{value:n,configurable:!0}),M5=(e,n)=>{for(var t in n)Ol(e,t,{get:n[t],enumerable:!0})},F5=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of q5(n))!D5.call(e,o)&&o!==t&&Ol(e,o,{get:()=>n[o],enumerable:!(r=B5(n,o))||r.enumerable});return e},L5=e=>F5(Ol({},"__esModule",{value:!0}),e),GO={};M5(GO,{resolveDefaultsModeConfig:()=>W5});HO.exports=L5(GO);var j5=Mt(),LO=gl(),jO=on(),z5=xe(),U5="AWS_EXECUTION_ENV",zO="AWS_REGION",UO="AWS_DEFAULT_REGION",G5="AWS_EC2_METADATA_DISABLED",H5=["in-region","cross-region","mobile","standard","legacy"],$5="/latest/meta-data/placement/region",K5="AWS_DEFAULTS_MODE",V5="defaults_mode",X5={environmentVariableSelector:e=>e[K5],configFileSelector:e=>e[V5],default:"legacy"},W5=iy(({region:e=(0,jO.loadConfig)(j5.NODE_REGION_CONFIG_OPTIONS),defaultsMode:n=(0,jO.loadConfig)(X5)}={})=>(0,z5.memoize)(async()=>{let t=typeof n=="function"?await n():n;switch(t==null?void 0:t.toLowerCase()){case"auto":return Y5(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(t==null?void 0:t.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${H5.join(", ")}, got ${t}`)}}),"resolveDefaultsModeConfig"),Y5=iy(async e=>{if(e){let n=typeof e=="function"?await e():e,t=await J5();return t?n===t?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),J5=iy(async()=>{if(process.env[U5]&&(process.env[zO]||process.env[UO]))return process.env[zO]??process.env[UO];if(!process.env[G5])try{let e=await(0,LO.getInstanceMetadataEndpoint)();return(await(0,LO.httpRequest)({...e,path:$5})).toString()}catch{}},"inferPhysicalRegion")});var VO=m(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.getRuntimeConfig=void 0;var Q5=(te(),Y(ee)),Z5=Q5.__importDefault(lO()),e9=pa(),Nl=Mt(),t9=fa(),$O=sn(),_a=on(),KO=vr(),n9=ya(),r9=zr(),o9=FO(),s9=b(),i9=ha(),a9=b(),c9=e=>{(0,a9.emitWarningIfUnsupportedVersion)(process.version);let n=(0,i9.resolveDefaultsModeConfig)(e),t=()=>n().then(s9.loadConfigsForDefaultMode),r=(0,o9.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??n9.calculateBodyLength,defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,e9.defaultUserAgent)({serviceId:r.serviceId,clientVersion:Z5.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,_a.loadConfig)($O.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(e==null?void 0:e.region)??(0,_a.loadConfig)(Nl.NODE_REGION_CONFIG_OPTIONS,Nl.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new KO.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,_a.loadConfig)({...$O.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||r9.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??t9.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??KO.streamCollector,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,_a.loadConfig)(Nl.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,_a.loadConfig)(Nl.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};Il.getRuntimeConfig=c9});var XO=m(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.resolveAwsRegionExtensionConfiguration=Jr.getAwsRegionExtensionConfiguration=void 0;var d9=e=>{let n=async()=>{if(e.region===void 0)throw new Error("Region is missing from runtimeConfig");let t=e.region;return typeof t=="string"?t:t()};return{setRegion(t){n=t},region(){return n}}};Jr.getAwsRegionExtensionConfiguration=d9;var l9=e=>({region:e.region()});Jr.resolveAwsRegionExtensionConfiguration=l9});var WO=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.NODE_REGION_CONFIG_FILE_OPTIONS=_t.NODE_REGION_CONFIG_OPTIONS=_t.REGION_INI_NAME=_t.REGION_ENV_NAME=void 0;_t.REGION_ENV_NAME="AWS_REGION";_t.REGION_INI_NAME="region";_t.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[_t.REGION_ENV_NAME],configFileSelector:e=>e[_t.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};_t.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var ay=m(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.isFipsRegion=void 0;var u9=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));Rl.isFipsRegion=u9});var YO=m(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.getRealRegion=void 0;var m9=ay(),p9=e=>(0,m9.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;Tl.getRealRegion=p9});var QO=m(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.resolveRegionConfig=void 0;var JO=YO(),f9=ay(),y9=e=>{let{region:n,useFipsEndpoint:t}=e;if(!n)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof n=="string")return(0,JO.getRealRegion)(n);let r=await n();return(0,JO.getRealRegion)(r)},useFipsEndpoint:async()=>{let r=typeof n=="string"?n:await n();return(0,f9.isFipsRegion)(r)?!0:typeof t!="function"?Promise.resolve(!!t):t()}}};Bl.resolveRegionConfig=y9});var eN=m(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var ZO=(te(),Y(ee));ZO.__exportStar(WO(),ql);ZO.__exportStar(QO(),ql)});var Ml=m(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var tN=(te(),Y(ee));tN.__exportStar(XO(),Dl);tN.__exportStar(eN(),Dl)});var sN=m(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.resolveRuntimeExtensions=void 0;var nN=Ml(),rN=Ne(),oN=b(),cy=e=>e,g9=(e,n)=>{let t={...cy((0,nN.getAwsRegionExtensionConfiguration)(e)),...cy((0,oN.getDefaultExtensionConfiguration)(e)),...cy((0,rN.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,nN.resolveAwsRegionExtensionConfiguration)(t),...(0,oN.resolveDefaultRuntimeConfig)(t),...(0,rN.resolveHttpHandlerRuntimeConfig)(t)}};Fl.resolveRuntimeExtensions=g9});var Ca=m(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.SSOClient=Qr.__Client=void 0;var iN=Ni(),h9=Ii(),_9=Ri(),aN=Ji(),C9=Mt(),S9=Qi(),b9=x(),cN=sn(),dN=b();Object.defineProperty(Qr,"__Client",{enumerable:!0,get:function(){return dN.Client}});var E9=dO(),P9=VO(),v9=sN(),dy=class extends dN.Client{constructor(...[n]){let t=(0,P9.getRuntimeConfig)(n||{}),r=(0,E9.resolveClientEndpointParameters)(t),o=(0,C9.resolveRegionConfig)(r),s=(0,b9.resolveEndpointConfig)(o),c=(0,cN.resolveRetryConfig)(s),i=(0,iN.resolveHostHeaderConfig)(c),u=(0,aN.resolveUserAgentConfig)(i),l=(0,v9.resolveRuntimeExtensions)(u,(n==null?void 0:n.extensions)||[]);super(l),this.config=l,this.middlewareStack.use((0,cN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,S9.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,iN.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,h9.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,_9.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,aN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Qr.SSOClient=dy});var Ll=m(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.SSOServiceException=Zr.__ServiceException=void 0;var lN=b();Object.defineProperty(Zr,"__ServiceException",{enumerable:!0,get:function(){return lN.ServiceException}});var ly=class e extends lN.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};Zr.SSOServiceException=ly});var fr=m(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.LogoutRequestFilterSensitiveLog=we.ListAccountsRequestFilterSensitiveLog=we.ListAccountRolesRequestFilterSensitiveLog=we.GetRoleCredentialsResponseFilterSensitiveLog=we.RoleCredentialsFilterSensitiveLog=we.GetRoleCredentialsRequestFilterSensitiveLog=we.UnauthorizedException=we.TooManyRequestsException=we.ResourceNotFoundException=we.InvalidRequestException=void 0;var eo=b(),jl=Ll(),uy=class e extends jl.SSOServiceException{constructor(n){super({name:"InvalidRequestException",$fault:"client",...n}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.InvalidRequestException=uy;var my=class e extends jl.SSOServiceException{constructor(n){super({name:"ResourceNotFoundException",$fault:"client",...n}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.ResourceNotFoundException=my;var py=class e extends jl.SSOServiceException{constructor(n){super({name:"TooManyRequestsException",$fault:"client",...n}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.TooManyRequestsException=py;var fy=class e extends jl.SSOServiceException{constructor(n){super({name:"UnauthorizedException",$fault:"client",...n}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.UnauthorizedException=fy;var w9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.GetRoleCredentialsRequestFilterSensitiveLog=w9;var x9=e=>({...e,...e.secretAccessKey&&{secretAccessKey:eo.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:eo.SENSITIVE_STRING}});we.RoleCredentialsFilterSensitiveLog=x9;var k9=e=>({...e,...e.roleCredentials&&{roleCredentials:(0,we.RoleCredentialsFilterSensitiveLog)(e.roleCredentials)}});we.GetRoleCredentialsResponseFilterSensitiveLog=k9;var A9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.ListAccountRolesRequestFilterSensitiveLog=A9;var O9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.ListAccountsRequestFilterSensitiveLog=O9;var N9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.LogoutRequestFilterSensitiveLog=N9});var Sa=m(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.de_LogoutCommand=ze.de_ListAccountsCommand=ze.de_ListAccountRolesCommand=ze.de_GetRoleCredentialsCommand=ze.se_LogoutCommand=ze.se_ListAccountsCommand=ze.se_ListAccountRolesCommand=ze.se_GetRoleCredentialsCommand=void 0;var zl=Ne(),J=b(),Ul=fr(),I9=Ll(),R9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,u=(0,J.map)({role_name:[,(0,J.expectNonNull)(e.roleName,"roleName")],account_id:[,(0,J.expectNonNull)(e.accountId,"accountId")]}),l;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};ze.se_GetRoleCredentialsCommand=R9;var T9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,u=(0,J.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,(0,J.expectNonNull)(e.accountId,"accountId")]}),l;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};ze.se_ListAccountRolesCommand=T9;var B9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,u=(0,J.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]}),l;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};ze.se_ListAccountsCommand=B9;var q9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,u;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})};ze.se_LogoutCommand=q9;var D9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return M9(e,n);let t=(0,J.map)({$metadata:$n(e)}),r=(0,J.expectNonNull)((0,J.expectObject)(await Xl(e.body,n)),"body"),o=(0,J.take)(r,{roleCredentials:J._json});return Object.assign(t,o),t};ze.de_GetRoleCredentialsCommand=D9;var M9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await yy(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},F9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return L9(e,n);let t=(0,J.map)({$metadata:$n(e)}),r=(0,J.expectNonNull)((0,J.expectObject)(await Xl(e.body,n)),"body"),o=(0,J.take)(r,{nextToken:J.expectString,roleList:J._json});return Object.assign(t,o),t};ze.de_ListAccountRolesCommand=F9;var L9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await yy(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},j9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return z9(e,n);let t=(0,J.map)({$metadata:$n(e)}),r=(0,J.expectNonNull)((0,J.expectObject)(await Xl(e.body,n)),"body"),o=(0,J.take)(r,{accountList:J._json,nextToken:J.expectString});return Object.assign(t,o),t};ze.de_ListAccountsCommand=j9;var z9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await yy(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},U9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return G9(e,n);let t=(0,J.map)({$metadata:$n(e)});return await(0,J.collectBody)(e.body,n),t};ze.de_LogoutCommand=U9;var G9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},Gl=(0,J.withBaseException)(I9.SSOServiceException),Hl=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.InvalidRequestException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},yy=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.ResourceNotFoundException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},$l=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.TooManyRequestsException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},Kl=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.UnauthorizedException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},$n=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),H9=(e,n)=>(0,J.collectBody)(e,n).then(t=>n.utf8Encoder(t)),Vl=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Xl=(e,n)=>H9(e,n).then(t=>t.length?JSON.parse(t):{}),Wl=async(e,n)=>{let t=await Xl(e,n);return t.message=t.message??t.Message,t},Yl=(e,n)=>{let t=(s,c)=>Object.keys(s).find(i=>i.toLowerCase()===c.toLowerCase()),r=s=>{let c=s;return typeof c=="number"&&(c=c.toString()),c.indexOf(",")>=0&&(c=c.split(",")[0]),c.indexOf(":")>=0&&(c=c.split(":")[0]),c.indexOf("#")>=0&&(c=c.split("#")[1]),c},o=t(e.headers,"x-amzn-errortype");if(o!==void 0)return r(e.headers[o]);if(n.code!==void 0)return r(n.code);if(n.__type!==void 0)return r(n.__type)}});var hy=m(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.GetRoleCredentialsCommand=to.$Command=void 0;var $9=x(),K9=k(),pN=b();Object.defineProperty(to,"$Command",{enumerable:!0,get:function(){return pN.Command}});var V9=w(),uN=fr(),mN=Sa(),gy=class e extends pN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,K9.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,$9.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:uN.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:uN.GetRoleCredentialsResponseFilterSensitiveLog,[V9.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"GetRoleCredentials"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,mN.se_GetRoleCredentialsCommand)(n,t)}deserialize(n,t){return(0,mN.de_GetRoleCredentialsCommand)(n,t)}};to.GetRoleCredentialsCommand=gy});var Jl=m(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.ListAccountRolesCommand=no.$Command=void 0;var X9=x(),W9=k(),yN=b();Object.defineProperty(no,"$Command",{enumerable:!0,get:function(){return yN.Command}});var Y9=w(),J9=fr(),fN=Sa(),_y=class e extends yN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,W9.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,X9.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:J9.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[Y9.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccountRoles"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,fN.se_ListAccountRolesCommand)(n,t)}deserialize(n,t){return(0,fN.de_ListAccountRolesCommand)(n,t)}};no.ListAccountRolesCommand=_y});var Ql=m(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.ListAccountsCommand=ro.$Command=void 0;var Q9=x(),Z9=k(),hN=b();Object.defineProperty(ro,"$Command",{enumerable:!0,get:function(){return hN.Command}});var eY=w(),tY=fr(),gN=Sa(),Cy=class e extends hN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Z9.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Q9.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:tY.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[eY.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccounts"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,gN.se_ListAccountsCommand)(n,t)}deserialize(n,t){return(0,gN.de_ListAccountsCommand)(n,t)}};ro.ListAccountsCommand=Cy});var by=m(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.LogoutCommand=oo.$Command=void 0;var nY=x(),rY=k(),CN=b();Object.defineProperty(oo,"$Command",{enumerable:!0,get:function(){return CN.Command}});var oY=w(),sY=fr(),_N=Sa(),Sy=class e extends CN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,rY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,nY.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:sY.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[oY.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"Logout"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_N.se_LogoutCommand)(n,t)}deserialize(n,t){return(0,_N.de_LogoutCommand)(n,t)}};oo.LogoutCommand=Sy});var SN=m(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.SSO=void 0;var iY=b(),aY=hy(),cY=Jl(),dY=Ql(),lY=by(),uY=Ca(),mY={GetRoleCredentialsCommand:aY.GetRoleCredentialsCommand,ListAccountRolesCommand:cY.ListAccountRolesCommand,ListAccountsCommand:dY.ListAccountsCommand,LogoutCommand:lY.LogoutCommand},Zl=class extends uY.SSOClient{};eu.SSO=Zl;(0,iY.createAggregatedClient)(mY,Zl)});var bN=m(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});var tu=(te(),Y(ee));tu.__exportStar(hy(),so);tu.__exportStar(Jl(),so);tu.__exportStar(Ql(),so);tu.__exportStar(by(),so)});var PN=m(EN=>{"use strict";Object.defineProperty(EN,"__esModule",{value:!0})});var vN=m(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.paginateListAccountRoles=void 0;var pY=Jl(),fY=Ca(),yY=async(e,n,...t)=>await e.send(new pY.ListAccountRolesCommand(n),...t);async function*gY(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.nextToken=r,n.maxResults=e.pageSize,e.client instanceof fY.SSOClient)s=await yY(e.client,n,...t);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let c=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}nu.paginateListAccountRoles=gY});var wN=m(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.paginateListAccounts=void 0;var hY=Ql(),_Y=Ca(),CY=async(e,n,...t)=>await e.send(new hY.ListAccountsCommand(n),...t);async function*SY(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.nextToken=r,n.maxResults=e.pageSize,e.client instanceof _Y.SSOClient)s=await CY(e.client,n,...t);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let c=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}ru.paginateListAccounts=SY});var xN=m(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var Ey=(te(),Y(ee));Ey.__exportStar(PN(),ba);Ey.__exportStar(vN(),ba);Ey.__exportStar(wN(),ba)});var kN=m(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var bY=(te(),Y(ee));bY.__exportStar(fr(),Py)});var AN=m(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.SSOServiceException=void 0;var Ea=(te(),Y(ee));Ea.__exportStar(Ca(),pn);Ea.__exportStar(SN(),pn);Ea.__exportStar(bN(),pn);Ea.__exportStar(xN(),pn);Ea.__exportStar(kN(),pn);var EY=Ll();Object.defineProperty(pn,"SSOServiceException",{enumerable:!0,get:function(){return EY.SSOServiceException}})});var iu=m(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.UnsupportedGrantTypeException=he.UnauthorizedClientException=he.SlowDownException=he.SSOOIDCClient=he.InvalidScopeException=he.InvalidRequestException=he.InvalidClientException=he.InternalServerException=he.ExpiredTokenException=he.CreateTokenCommand=he.AuthorizationPendingException=he.AccessDeniedException=void 0;var ON=Ni(),PY=Ii(),vY=Ri(),NN=Ji(),wY=Mt(),xY=Qi(),kY=x(),IN=sn(),AY=b(),OY=e=>{var n,t;return{...e,useDualstackEndpoint:(n=e.useDualstackEndpoint)!==null&&n!==void 0?n:!1,useFipsEndpoint:(t=e.useFipsEndpoint)!==null&&t!==void 0?t:!1,defaultSigningName:"awsssooidc"}},NY={version:"3.387.0"},IY=pa(),ou=Mt(),RY=fa(),RN=sn(),Pa=on(),TN=vr(),TY=ya(),BY=zr(),qY=b(),DY=mr(),BN=Pr(),qN=yt(),MY=jr(),GN="required",fn="fn",yn="argv",io="ref",vy="PartitionResult",Ut="tree",va="error",wa="endpoint",DN={[GN]:!1,type:"String"},MN={[GN]:!0,default:!1,type:"Boolean"},HN={[io]:"Endpoint"},$N={[fn]:"booleanEquals",[yn]:[{[io]:"UseFIPS"},!0]},KN={[fn]:"booleanEquals",[yn]:[{[io]:"UseDualStack"},!0]},Gt={},FN={[fn]:"booleanEquals",[yn]:[!0,{[fn]:"getAttr",[yn]:[{[io]:vy},"supportsFIPS"]}]},LN={[fn]:"booleanEquals",[yn]:[!0,{[fn]:"getAttr",[yn]:[{[io]:vy},"supportsDualStack"]}]},jN=[HN],zN=[$N],UN=[KN],FY={version:"1.0",parameters:{Region:DN,UseDualStack:MN,UseFIPS:MN,Endpoint:DN},rules:[{conditions:[{[fn]:"aws.partition",[yn]:[{[io]:"Region"}],assign:vy}],type:Ut,rules:[{conditions:[{[fn]:"isSet",[yn]:jN},{[fn]:"parseURL",[yn]:jN,assign:"url"}],type:Ut,rules:[{conditions:zN,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:va},{type:Ut,rules:[{conditions:UN,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:va},{endpoint:{url:HN,properties:Gt,headers:Gt},type:wa}]}]},{conditions:[$N,KN],type:Ut,rules:[{conditions:[FN,LN],type:Ut,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Gt,headers:Gt},type:wa}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:va}]},{conditions:zN,type:Ut,rules:[{conditions:[FN],type:Ut,rules:[{type:Ut,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Gt,headers:Gt},type:wa}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:va}]},{conditions:UN,type:Ut,rules:[{conditions:[LN],type:Ut,rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Gt,headers:Gt},type:wa}]},{error:"DualStack is enabled but this partition does not support DualStack",type:va}]},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:Gt,headers:Gt},type:wa}]}]},LY=FY,jY=(e,n={})=>(0,MY.resolveEndpoint)(LY,{endpointParams:e,logger:n.logger}),zY=e=>{var n,t,r,o,s,c,i,u,l;return{apiVersion:"2019-06-10",base64Decoder:(n=e==null?void 0:e.base64Decoder)!==null&&n!==void 0?n:BN.fromBase64,base64Encoder:(t=e==null?void 0:e.base64Encoder)!==null&&t!==void 0?t:BN.toBase64,disableHostPrefix:(r=e==null?void 0:e.disableHostPrefix)!==null&&r!==void 0?r:!1,endpointProvider:(o=e==null?void 0:e.endpointProvider)!==null&&o!==void 0?o:jY,logger:(s=e==null?void 0:e.logger)!==null&&s!==void 0?s:new qY.NoOpLogger,serviceId:(c=e==null?void 0:e.serviceId)!==null&&c!==void 0?c:"SSO OIDC",urlParser:(i=e==null?void 0:e.urlParser)!==null&&i!==void 0?i:DY.parseUrl,utf8Decoder:(u=e==null?void 0:e.utf8Decoder)!==null&&u!==void 0?u:qN.fromUtf8,utf8Encoder:(l=e==null?void 0:e.utf8Encoder)!==null&&l!==void 0?l:qN.toUtf8}},UY=b(),GY=ha(),HY=b(),$Y=e=>{var n,t,r,o,s,c,i,u,l,a;(0,HY.emitWarningIfUnsupportedVersion)(process.version);let y=(0,GY.resolveDefaultsModeConfig)(e),g=()=>y().then(UY.loadConfigsForDefaultMode),C=zY(e);return{...C,...e,runtime:"node",defaultsMode:y,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:TY.calculateBodyLength,defaultUserAgentProvider:(t=e==null?void 0:e.defaultUserAgentProvider)!==null&&t!==void 0?t:(0,IY.defaultUserAgent)({serviceId:C.serviceId,clientVersion:NY.version}),maxAttempts:(r=e==null?void 0:e.maxAttempts)!==null&&r!==void 0?r:(0,Pa.loadConfig)(RN.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(o=e==null?void 0:e.region)!==null&&o!==void 0?o:(0,Pa.loadConfig)(ou.NODE_REGION_CONFIG_OPTIONS,ou.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(s=e==null?void 0:e.requestHandler)!==null&&s!==void 0?s:new TN.NodeHttpHandler(g),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:(0,Pa.loadConfig)({...RN.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await g()).retryMode||BY.DEFAULT_RETRY_MODE}),sha256:(i=e==null?void 0:e.sha256)!==null&&i!==void 0?i:RY.Hash.bind(null,"sha256"),streamCollector:(u=e==null?void 0:e.streamCollector)!==null&&u!==void 0?u:TN.streamCollector,useDualstackEndpoint:(l=e==null?void 0:e.useDualstackEndpoint)!==null&&l!==void 0?l:(0,Pa.loadConfig)(ou.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(a=e==null?void 0:e.useFipsEndpoint)!==null&&a!==void 0?a:(0,Pa.loadConfig)(ou.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}},VN=class extends AY.Client{constructor(...[e]){let n=$Y(e||{}),t=OY(n),r=(0,wY.resolveRegionConfig)(t),o=(0,kY.resolveEndpointConfig)(r),s=(0,IN.resolveRetryConfig)(o),c=(0,ON.resolveHostHeaderConfig)(s),i=(0,NN.resolveUserAgentConfig)(c);super(i),this.config=i,this.middlewareStack.use((0,IN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,xY.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,ON.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,PY.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,vY.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,NN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};he.SSOOIDCClient=VN;var KY=b(),VY=x(),XY=k(),WY=b(),wy=Ne(),R=b(),YY=b(),lt=class XN extends YY.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,XN.prototype)}},WN=class YN extends lt{constructor(n){super({name:"AccessDeniedException",$fault:"client",...n}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,YN.prototype),this.error=n.error,this.error_description=n.error_description}};he.AccessDeniedException=WN;var JN=class QN extends lt{constructor(n){super({name:"AuthorizationPendingException",$fault:"client",...n}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,QN.prototype),this.error=n.error,this.error_description=n.error_description}};he.AuthorizationPendingException=JN;var ZN=class eI extends lt{constructor(n){super({name:"ExpiredTokenException",$fault:"client",...n}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,eI.prototype),this.error=n.error,this.error_description=n.error_description}};he.ExpiredTokenException=ZN;var tI=class nI extends lt{constructor(n){super({name:"InternalServerException",$fault:"server",...n}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,nI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InternalServerException=tI;var rI=class oI extends lt{constructor(n){super({name:"InvalidClientException",$fault:"client",...n}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,oI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InvalidClientException=rI;var JY=class sI extends lt{constructor(n){super({name:"InvalidGrantException",$fault:"client",...n}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,sI.prototype),this.error=n.error,this.error_description=n.error_description}},iI=class aI extends lt{constructor(n){super({name:"InvalidRequestException",$fault:"client",...n}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,aI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InvalidRequestException=iI;var cI=class dI extends lt{constructor(n){super({name:"InvalidScopeException",$fault:"client",...n}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,dI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InvalidScopeException=cI;var lI=class uI extends lt{constructor(n){super({name:"SlowDownException",$fault:"client",...n}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,uI.prototype),this.error=n.error,this.error_description=n.error_description}};he.SlowDownException=lI;var mI=class pI extends lt{constructor(n){super({name:"UnauthorizedClientException",$fault:"client",...n}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,pI.prototype),this.error=n.error,this.error_description=n.error_description}};he.UnauthorizedClientException=mI;var fI=class yI extends lt{constructor(n){super({name:"UnsupportedGrantTypeException",$fault:"client",...n}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,yI.prototype),this.error=n.error,this.error_description=n.error_description}};he.UnsupportedGrantTypeException=fI;var QY=class gI extends lt{constructor(n){super({name:"InvalidClientMetadataException",$fault:"client",...n}),this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,gI.prototype),this.error=n.error,this.error_description=n.error_description}},ZY=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/token`,u;return u=JSON.stringify((0,R.take)(e,{clientId:[],clientSecret:[],code:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:l=>(0,R._json)(l)})),new wy.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})},e7=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/client/register`,u;return u=JSON.stringify((0,R.take)(e,{clientName:[],clientType:[],scopes:l=>(0,R._json)(l)})),new wy.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})},t7=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/device_authorization`,u;return u=JSON.stringify((0,R.take)(e,{clientId:[],clientSecret:[],startUrl:[]})),new wy.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})},n7=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return r7(e,n);let t=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await su(e.body,n)),"body"),o=(0,R.take)(r,{accessToken:R.expectString,expiresIn:R.expectInt32,idToken:R.expectString,refreshToken:R.expectString,tokenType:R.expectString});return Object.assign(t,o),t},r7=async(e,n)=>{let t={...e,body:await Oy(e.body,n)},r=Ny(e,t.body);switch(r){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await c7(t,n);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await d7(t,n);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await l7(t,n);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await ky(t,n);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await hI(t,n);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await m7(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Ay(t,n);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await _I(t,n);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await CI(t,n);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await SI(t,n);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await p7(t,n);default:let o=t.body;return xy({output:e,parsedBody:o,errorCode:r})}},o7=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return s7(e,n);let t=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await su(e.body,n)),"body"),o=(0,R.take)(r,{authorizationEndpoint:R.expectString,clientId:R.expectString,clientIdIssuedAt:R.expectLong,clientSecret:R.expectString,clientSecretExpiresAt:R.expectLong,tokenEndpoint:R.expectString});return Object.assign(t,o),t},s7=async(e,n)=>{let t={...e,body:await Oy(e.body,n)},r=Ny(e,t.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await ky(t,n);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await u7(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Ay(t,n);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await _I(t,n);default:let o=t.body;return xy({output:e,parsedBody:o,errorCode:r})}},i7=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return a7(e,n);let t=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await su(e.body,n)),"body"),o=(0,R.take)(r,{deviceCode:R.expectString,expiresIn:R.expectInt32,interval:R.expectInt32,userCode:R.expectString,verificationUri:R.expectString,verificationUriComplete:R.expectString});return Object.assign(t,o),t},a7=async(e,n)=>{let t={...e,body:await Oy(e.body,n)},r=Ny(e,t.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await ky(t,n);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await hI(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Ay(t,n);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await CI(t,n);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await SI(t,n);default:let o=t.body;return xy({output:e,parsedBody:o,errorCode:r})}},xy=(0,R.withBaseException)(lt),c7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new WN({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},d7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new JN({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},l7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new ZN({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},ky=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new tI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},hI=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new rI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},u7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new QY({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},m7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new JY({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},Ay=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new iI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},_I=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new cI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},CI=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new lI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},SI=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new mI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},p7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new fI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},rt=e=>{var n,t;return{httpStatusCode:e.statusCode,requestId:(t=(n=e.headers["x-amzn-requestid"])!==null&&n!==void 0?n:e.headers["x-amzn-request-id"])!==null&&t!==void 0?t:e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},f7=(e,n)=>(0,R.collectBody)(e,n).then(t=>n.utf8Encoder(t)),su=(e,n)=>f7(e,n).then(t=>t.length?JSON.parse(t):{}),Oy=async(e,n)=>{var t;let r=await su(e,n);return r.message=(t=r.message)!==null&&t!==void 0?t:r.Message,r},Ny=(e,n)=>{let t=(s,c)=>Object.keys(s).find(i=>i.toLowerCase()===c.toLowerCase()),r=s=>{let c=s;return typeof c=="number"&&(c=c.toString()),c.indexOf(",")>=0&&(c=c.split(",")[0]),c.indexOf(":")>=0&&(c=c.split(":")[0]),c.indexOf("#")>=0&&(c=c.split("#")[1]),c},o=t(e.headers,"x-amzn-errortype");if(o!==void 0)return r(e.headers[o]);if(n.code!==void 0)return r(n.code);if(n.__type!==void 0)return r(n.__type)},bI=class EI extends WY.Command{constructor(n){super(),this.input=n}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(n,t,r){this.middlewareStack.use((0,XY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,VY.getEndpointPlugin)(t,EI.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"CreateTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return ZY(n,t)}deserialize(n,t){return n7(n,t)}};he.CreateTokenCommand=bI;var y7=x(),g7=k(),h7=b(),_7=class PI extends h7.Command{constructor(n){super(),this.input=n}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(n,t,r){this.middlewareStack.use((0,g7.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,y7.getEndpointPlugin)(t,PI.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"RegisterClientCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return e7(n,t)}deserialize(n,t){return o7(n,t)}},C7=x(),S7=k(),b7=b(),E7=class vI extends b7.Command{constructor(n){super(),this.input=n}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(n,t,r){this.middlewareStack.use((0,S7.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,C7.getEndpointPlugin)(t,vI.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"StartDeviceAuthorizationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return t7(n,t)}deserialize(n,t){return i7(n,t)}},P7={CreateTokenCommand:bI,RegisterClientCommand:_7,StartDeviceAuthorizationCommand:E7},v7=class extends VN{};(0,KY.createAggregatedClient)(P7,v7)});var au=m(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.REFRESH_MESSAGE=ao.EXPIRE_WINDOW_MS=void 0;ao.EXPIRE_WINDOW_MS=5*60*1e3;ao.REFRESH_MESSAGE="To refresh this SSO session run 'aws sso login' with the corresponding profile."});var wI=m(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.getSsoOidcClient=void 0;var w7=iu(),Iy={},x7=e=>{if(Iy[e])return Iy[e];let n=new w7.SSOOIDCClient({region:e});return Iy[e]=n,n};cu.getSsoOidcClient=x7});var xI=m(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.getNewSsoOidcToken=void 0;var k7=iu(),A7=wI(),O7=(e,n)=>(0,A7.getSsoOidcClient)(n).send(new k7.CreateTokenCommand({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}));du.getNewSsoOidcToken=O7});var kI=m(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.validateTokenExpiry=void 0;var N7=xe(),I7=au(),R7=e=>{if(e.expiration&&e.expiration.getTime(){"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.validateTokenKey=void 0;var T7=xe(),B7=au(),q7=(e,n,t=!1)=>{if(typeof n>"u")throw new T7.TokenProviderError(`Value not present for '${e}' in SSO Token${t?". Cannot refresh":""}. ${B7.REFRESH_MESSAGE}`,!1)};uu.validateTokenKey=q7});var OI=m(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.writeSSOTokenToFile=void 0;var D7=wt(),M7=require("fs"),{writeFile:F7}=M7.promises,L7=(e,n)=>{let t=(0,D7.getSSOTokenFilepath)(e),r=JSON.stringify(n,null,2);return F7(t,r)};mu.writeSSOTokenToFile=L7});var Ry=m(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.fromSso=void 0;var xa=xe(),pu=wt(),NI=au(),j7=xI(),II=kI(),yr=AI(),z7=OI(),RI=new Date(0),U7=(e={})=>async()=>{let n=await(0,pu.parseKnownFiles)(e),t=(0,pu.getProfileName)(e),r=n[t];if(r){if(!r.sso_session)throw new xa.TokenProviderError(`Profile '${t}' is missing required property 'sso_session'.`)}else throw new xa.TokenProviderError(`Profile '${t}' could not be found in shared credentials file.`,!1);let o=r.sso_session,c=(await(0,pu.loadSsoSessionData)(e))[o];if(!c)throw new xa.TokenProviderError(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let C of["sso_start_url","sso_region"])if(!c[C])throw new xa.TokenProviderError(`Sso session '${o}' is missing required property '${C}'.`,!1);let i=c.sso_start_url,u=c.sso_region,l;try{l=await(0,pu.getSSOTokenFromFile)(o)}catch{throw new xa.TokenProviderError(`The SSO session token associated with profile=${t} was not found or is invalid. ${NI.REFRESH_MESSAGE}`,!1)}(0,yr.validateTokenKey)("accessToken",l.accessToken),(0,yr.validateTokenKey)("expiresAt",l.expiresAt);let{accessToken:a,expiresAt:y}=l,g={token:a,expiration:new Date(y)};if(g.expiration.getTime()-Date.now()>NI.EXPIRE_WINDOW_MS)return g;if(Date.now()-RI.getTime()<30*1e3)return(0,II.validateTokenExpiry)(g),g;(0,yr.validateTokenKey)("clientId",l.clientId,!0),(0,yr.validateTokenKey)("clientSecret",l.clientSecret,!0),(0,yr.validateTokenKey)("refreshToken",l.refreshToken,!0);try{RI.setTime(Date.now());let C=await(0,j7.getNewSsoOidcToken)(l,u);(0,yr.validateTokenKey)("accessToken",C.accessToken),(0,yr.validateTokenKey)("expiresIn",C.expiresIn);let v=new Date(Date.now()+C.expiresIn*1e3);try{await(0,z7.writeSSOTokenToFile)(o,{...l,accessToken:C.accessToken,expiresAt:v.toISOString(),refreshToken:C.refreshToken})}catch{}return{token:C.accessToken,expiration:v}}catch{return(0,II.validateTokenExpiry)(g),g}};fu.fromSso=U7});var TI=m(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.fromStatic=void 0;var G7=xe(),H7=({token:e})=>async()=>{if(!e||!e.token)throw new G7.TokenProviderError("Please pass a valid token to fromStatic",!1);return e};yu.fromStatic=H7});var BI=m(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.nodeProvider=void 0;var Ty=xe(),$7=Ry(),K7=(e={})=>(0,Ty.memoize)((0,Ty.chain)((0,$7.fromSso)(e),async()=>{throw new Ty.TokenProviderError("Could not load token from any providers",!1)}),n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()<3e5,n=>n.expiration!==void 0);gu.nodeProvider=K7});var qI=m(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});var hu=(te(),Y(ee));hu.__exportStar(iu(),co);hu.__exportStar(Ry(),co);hu.__exportStar(TI(),co);hu.__exportStar(BI(),co)});var MI=m(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.resolveSSOCredentials=void 0;var DI=AN(),V7=qI(),ka=xe(),X7=wt(),Aa=!1,W7=async({ssoStartUrl:e,ssoSession:n,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:c})=>{let i,u="To refresh this SSO session run aws sso login with the corresponding profile.";if(n)try{let E=await(0,V7.fromSso)({profile:c})();i={accessToken:E.token,expiresAt:new Date(E.expiration).toISOString()}}catch(E){throw new ka.CredentialsProviderError(E.message,Aa)}else try{i=await(0,X7.getSSOTokenFromFile)(e)}catch{throw new ka.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${u}`,Aa)}if(new Date(i.expiresAt).getTime()-Date.now()<=0)throw new ka.CredentialsProviderError(`The SSO session associated with this profile has expired. ${u}`,Aa);let{accessToken:l}=i,a=s||new DI.SSOClient({region:r}),y;try{y=await a.send(new DI.GetRoleCredentialsCommand({accountId:t,roleName:o,accessToken:l}))}catch(E){throw ka.CredentialsProviderError.from(E,Aa)}let{roleCredentials:{accessKeyId:g,secretAccessKey:C,sessionToken:v,expiration:A}={}}=y;if(!g||!C||!v||!A)throw new ka.CredentialsProviderError("SSO returns an invalid temporary credential.",Aa);return{accessKeyId:g,secretAccessKey:C,sessionToken:v,expiration:new Date(A)}};_u.resolveSSOCredentials=W7});var By=m(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.validateSsoProfile=void 0;var Y7=xe(),J7=e=>{let{sso_start_url:n,sso_account_id:t,sso_region:r,sso_role_name:o}=e;if(!n||!t||!r||!o)throw new Y7.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")} -Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};Cu.validateSsoProfile=J7});var LI=m(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.fromSSO=void 0;var Oa=xe(),qy=wt(),Q7=ty(),FI=MI(),Z7=By(),eJ=(e={})=>async()=>{let{ssoStartUrl:n,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,ssoSession:c}=e,i=(0,qy.getProfileName)(e);if(!n&&!t&&!r&&!o&&!c){let l=(await(0,qy.parseKnownFiles)(e))[i];if(!l)throw new Oa.CredentialsProviderError(`Profile ${i} was not found.`);if(!(0,Q7.isSsoProfile)(l))throw new Oa.CredentialsProviderError(`Profile ${i} is not configured with SSO credentials.`);if(l!=null&&l.sso_session){let E=(await(0,qy.loadSsoSessionData)(e))[l.sso_session],G=` configurations in profile ${i} and sso-session ${l.sso_session}`;if(r&&r!==E.sso_region)throw new Oa.CredentialsProviderError("Conflicting SSO region"+G,!1);if(n&&n!==E.sso_start_url)throw new Oa.CredentialsProviderError("Conflicting SSO start_url"+G,!1);l.sso_region=E.sso_region,l.sso_start_url=E.sso_start_url}let{sso_start_url:a,sso_account_id:y,sso_region:g,sso_role_name:C,sso_session:v}=(0,Z7.validateSsoProfile)(l);return(0,FI.resolveSSOCredentials)({ssoStartUrl:a,ssoSession:v,ssoAccountId:y,ssoRegion:g,ssoRoleName:C,ssoClient:s,profile:i})}else{if(!n||!t||!r||!o)throw new Oa.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,FI.resolveSSOCredentials)({ssoStartUrl:n,ssoSession:c,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:i})}};Su.fromSSO=eJ});var zI=m(jI=>{"use strict";Object.defineProperty(jI,"__esModule",{value:!0})});var Eu=m(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});var bu=(te(),Y(ee));bu.__exportStar(LI(),lo);bu.__exportStar(ty(),lo);bu.__exportStar(zI(),lo);bu.__exportStar(By(),lo)});var GI=m(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.resolveSsoCredentials=uo.isSsoProfile=void 0;var UI=Eu(),tJ=Eu();Object.defineProperty(uo,"isSsoProfile",{enumerable:!0,get:function(){return tJ.isSsoProfile}});var nJ=e=>{let{sso_start_url:n,sso_account_id:t,sso_session:r,sso_region:o,sso_role_name:s}=(0,UI.validateSsoProfile)(e);return(0,UI.fromSSO)({ssoStartUrl:n,ssoAccountId:t,ssoSession:r,ssoRegion:o,ssoRoleName:s})()};uo.resolveSsoCredentials=nJ});var HI=m(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.resolveStaticCredentials=mo.isStaticCredsProfile=void 0;var rJ=e=>!!e&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1;mo.isStaticCredsProfile=rJ;var oJ=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});mo.resolveStaticCredentials=oJ});var Dy=m(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.fromWebToken=void 0;var sJ=xe(),iJ=e=>()=>{let{roleArn:n,roleSessionName:t,webIdentityToken:r,providerId:o,policyArns:s,policy:c,durationSeconds:i,roleAssumerWithWebIdentity:u}=e;if(!u)throw new sJ.CredentialsProviderError(`Role Arn '${n}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return u({RoleArn:n,RoleSessionName:t??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:o,PolicyArns:s,Policy:c,DurationSeconds:i})};Pu.fromWebToken=iJ});var $I=m(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.fromTokenFile=void 0;var aJ=xe(),cJ=require("fs"),dJ=Dy(),lJ="AWS_WEB_IDENTITY_TOKEN_FILE",uJ="AWS_ROLE_ARN",mJ="AWS_ROLE_SESSION_NAME",pJ=(e={})=>async()=>{var n,t,r;let o=(n=e==null?void 0:e.webIdentityTokenFile)!==null&&n!==void 0?n:process.env[lJ],s=(t=e==null?void 0:e.roleArn)!==null&&t!==void 0?t:process.env[uJ],c=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[mJ];if(!o||!s)throw new aJ.CredentialsProviderError("Web identity configuration not specified");return(0,dJ.fromWebToken)({...e,webIdentityToken:(0,cJ.readFileSync)(o,{encoding:"ascii"}),roleArn:s,roleSessionName:c})()};vu.fromTokenFile=pJ});var My=m(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var KI=(te(),Y(ee));KI.__exportStar($I(),wu);KI.__exportStar(Dy(),wu)});var VI=m(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.resolveWebIdentityCredentials=po.isWebIdentityProfile=void 0;var fJ=My(),yJ=e=>!!e&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1;po.isWebIdentityProfile=yJ;var gJ=async(e,n)=>(0,fJ.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity})();po.resolveWebIdentityCredentials=gJ});var Jf=m(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.resolveProfileData=void 0;var hJ=xe(),XI=rO(),WI=cO(),YI=GI(),xu=HI(),JI=VI(),_J=async(e,n,t,r={})=>{let o=n[e];if(Object.keys(r).length>0&&(0,xu.isStaticCredsProfile)(o))return(0,xu.resolveStaticCredentials)(o);if((0,XI.isAssumeRoleProfile)(o))return(0,XI.resolveAssumeRoleCredentials)(e,n,t,r);if((0,xu.isStaticCredsProfile)(o))return(0,xu.resolveStaticCredentials)(o);if((0,JI.isWebIdentityProfile)(o))return(0,JI.resolveWebIdentityCredentials)(o,t);if((0,WI.isProcessProfile)(o))return(0,WI.resolveProcessCredentials)(t,e);if((0,YI.isSsoProfile)(o))return(0,YI.resolveSsoCredentials)(o);throw new hJ.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};ku.resolveProfileData=_J});var ZI=m(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.fromIni=void 0;var QI=wt(),CJ=Jf(),SJ=(e={})=>async()=>{let n=await(0,QI.parseKnownFiles)(e);return(0,CJ.resolveProfileData)((0,QI.getProfileName)(e),n,e)};Au.fromIni=SJ});var eR=m(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});var bJ=(te(),Y(ee));bJ.__exportStar(ZI(),Fy)});var tR=m(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.remoteProvider=gr.ENV_IMDS_DISABLED=void 0;var Ou=gl(),EJ=xe();gr.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var PJ=e=>process.env[Ou.ENV_CMDS_RELATIVE_URI]||process.env[Ou.ENV_CMDS_FULL_URI]?(0,Ou.fromContainerMetadata)(e):process.env[gr.ENV_IMDS_DISABLED]?async()=>{throw new EJ.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,Ou.fromInstanceMetadata)(e);gr.remoteProvider=PJ});var nR=m(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.defaultProvider=void 0;var vJ=Hf(),wJ=eR(),xJ=ey(),kJ=Eu(),AJ=My(),Ly=xe(),OJ=wt(),NJ=tR(),IJ=(e={})=>(0,Ly.memoize)((0,Ly.chain)(...e.profile||process.env[OJ.ENV_PROFILE]?[]:[(0,vJ.fromEnv)()],(0,kJ.fromSSO)(e),(0,wJ.fromIni)(e),(0,xJ.fromProcess)(e),(0,AJ.fromTokenFile)(e),(0,NJ.remoteProvider)(e),async()=>{throw new Ly.CredentialsProviderError("Could not load credentials from any providers",!1)}),n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()<3e5,n=>n.expiration!==void 0);Nu.defaultProvider=IJ});var zy=m(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});var RJ=(te(),Y(ee));RJ.__exportStar(nR(),jy)});var vR=m(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.ruleSet=void 0;var fR="required",oe="type",pe="fn",fe="argv",Kn="ref",rR=!1,TJ=!0,hr="booleanEquals",Ht="tree",Ve="stringEquals",yR="sigv4",gR="sts",hR="us-east-1",Ee="endpoint",oR="https://sts.{Region}.{PartitionResult#dnsSuffix}",fo="error",Gy="getAttr",sR={[fR]:!1,[oe]:"String"},Uy={[fR]:!0,default:!1,[oe]:"Boolean"},_R={[Kn]:"Endpoint"},iR={[pe]:"isSet",[fe]:[{[Kn]:"Region"}]},Xe={[Kn]:"Region"},aR={[pe]:"aws.partition",[fe]:[Xe],assign:"PartitionResult"},CR={[Kn]:"UseFIPS"},SR={[Kn]:"UseDualStack"},et={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:yR,signingName:gR,signingRegion:hR}]},headers:{}},ut={},cR={conditions:[{[pe]:Ve,[fe]:[Xe,"aws-global"]}],[Ee]:et,[oe]:Ee},bR={[pe]:hr,[fe]:[CR,!0]},ER={[pe]:hr,[fe]:[SR,!0]},dR={[pe]:hr,[fe]:[!0,{[pe]:Gy,[fe]:[{[Kn]:"PartitionResult"},"supportsFIPS"]}]},PR={[Kn]:"PartitionResult"},lR={[pe]:hr,[fe]:[!0,{[pe]:Gy,[fe]:[PR,"supportsDualStack"]}]},uR=[{[pe]:"isSet",[fe]:[_R]}],mR=[bR],pR=[ER],BJ={version:"1.0",parameters:{Region:sR,UseDualStack:Uy,UseFIPS:Uy,Endpoint:sR,UseGlobalEndpoint:Uy},rules:[{conditions:[{[pe]:hr,[fe]:[{[Kn]:"UseGlobalEndpoint"},TJ]},{[pe]:"not",[fe]:uR},iR,aR,{[pe]:hr,[fe]:[CR,rR]},{[pe]:hr,[fe]:[SR,rR]}],[oe]:Ht,rules:[{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-northeast-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-south-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-southeast-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-southeast-2"]}],endpoint:et,[oe]:Ee},cR,{conditions:[{[pe]:Ve,[fe]:[Xe,"ca-central-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-central-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-north-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-west-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-west-2"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-west-3"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"sa-east-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,hR]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"us-east-2"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"us-west-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"us-west-2"]}],endpoint:et,[oe]:Ee},{endpoint:{url:oR,properties:{authSchemes:[{name:yR,signingName:gR,signingRegion:"{Region}"}]},headers:ut},[oe]:Ee}]},{conditions:uR,[oe]:Ht,rules:[{conditions:mR,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[oe]:fo},{conditions:pR,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[oe]:fo},{endpoint:{url:_R,properties:ut,headers:ut},[oe]:Ee}]},{conditions:[iR],[oe]:Ht,rules:[{conditions:[aR],[oe]:Ht,rules:[{conditions:[bR,ER],[oe]:Ht,rules:[{conditions:[dR,lR],[oe]:Ht,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ut,headers:ut},[oe]:Ee}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[oe]:fo}]},{conditions:mR,[oe]:Ht,rules:[{conditions:[dR],[oe]:Ht,rules:[{conditions:[{[pe]:Ve,[fe]:["aws-us-gov",{[pe]:Gy,[fe]:[PR,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:ut,headers:ut},[oe]:Ee},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ut,headers:ut},[oe]:Ee}]},{error:"FIPS is enabled but this partition does not support FIPS",[oe]:fo}]},{conditions:pR,[oe]:Ht,rules:[{conditions:[lR],[oe]:Ht,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ut,headers:ut},[oe]:Ee}]},{error:"DualStack is enabled but this partition does not support DualStack",[oe]:fo}]},cR,{endpoint:{url:oR,properties:ut,headers:ut},[oe]:Ee}]}]},{error:"Invalid Configuration: Missing Region",[oe]:fo}]};Iu.ruleSet=BJ});var wR=m(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.defaultEndpointResolver=void 0;var qJ=jr(),DJ=vR(),MJ=(e,n={})=>(0,qJ.resolveEndpoint)(DJ.ruleSet,{endpointParams:e,logger:n.logger});Ru.defaultEndpointResolver=MJ});var AR=m(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.getRuntimeConfig=void 0;var FJ=b(),LJ=mr(),xR=Pr(),kR=yt(),jJ=wR(),zJ=e=>({apiVersion:"2011-06-15",base64Decoder:(e==null?void 0:e.base64Decoder)??xR.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??xR.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??jJ.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new FJ.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"STS",urlParser:(e==null?void 0:e.urlParser)??LJ.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??kR.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??kR.toUtf8});Tu.getRuntimeConfig=zJ});var IR=m(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.getRuntimeConfig=void 0;var UJ=(te(),Y(ee)),GJ=UJ.__importDefault(Qk()),HJ=Uf(),$J=zy(),KJ=pa(),Bu=Mt(),VJ=fa(),OR=sn(),Na=on(),NR=vr(),XJ=ya(),WJ=zr(),YJ=AR(),JJ=b(),QJ=ha(),ZJ=b(),eQ=e=>{(0,ZJ.emitWarningIfUnsupportedVersion)(process.version);let n=(0,QJ.resolveDefaultsModeConfig)(e),t=()=>n().then(JJ.loadConfigsForDefaultMode),r=(0,YJ.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??XJ.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,HJ.decorateDefaultCredentialProvider)($J.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,KJ.defaultUserAgent)({serviceId:r.serviceId,clientVersion:GJ.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,Na.loadConfig)(OR.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(e==null?void 0:e.region)??(0,Na.loadConfig)(Bu.NODE_REGION_CONFIG_OPTIONS,Bu.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new NR.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,Na.loadConfig)({...OR.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||WJ.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??VJ.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??NR.streamCollector,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,Na.loadConfig)(Bu.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,Na.loadConfig)(Bu.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};qu.getRuntimeConfig=eQ});var qR=m(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.resolveRuntimeExtensions=void 0;var RR=Ml(),TR=Ne(),BR=b(),Hy=e=>e,tQ=(e,n)=>{let t={...Hy((0,RR.getAwsRegionExtensionConfiguration)(e)),...Hy((0,BR.getDefaultExtensionConfiguration)(e)),...Hy((0,TR.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,RR.resolveAwsRegionExtensionConfiguration)(t),...(0,BR.resolveDefaultRuntimeConfig)(t),...(0,TR.resolveHttpHandlerRuntimeConfig)(t)}};Du.resolveRuntimeExtensions=tQ});var Mu=m(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.STSClient=yo.__Client=void 0;var DR=Ni(),nQ=Ii(),rQ=Ri(),oQ=Yk(),MR=Ji(),sQ=Mt(),iQ=Qi(),aQ=x(),FR=sn(),LR=b();Object.defineProperty(yo,"__Client",{enumerable:!0,get:function(){return LR.Client}});var cQ=Jk(),dQ=IR(),lQ=qR(),$y=class e extends LR.Client{constructor(...[n]){let t=(0,dQ.getRuntimeConfig)(n||{}),r=(0,cQ.resolveClientEndpointParameters)(t),o=(0,sQ.resolveRegionConfig)(r),s=(0,aQ.resolveEndpointConfig)(o),c=(0,FR.resolveRetryConfig)(s),i=(0,DR.resolveHostHeaderConfig)(c),u=(0,oQ.resolveStsAuthConfig)(i,{stsClientCtor:e}),l=(0,MR.resolveUserAgentConfig)(u),a=(0,lQ.resolveRuntimeExtensions)(l,(n==null?void 0:n.extensions)||[]);super(a),this.config=a,this.middlewareStack.use((0,FR.getRetryPlugin)(this.config)),this.middlewareStack.use((0,iQ.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,DR.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,nQ.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,rQ.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,MR.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};yo.STSClient=$y});var Vy=m(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.AssumeRoleWithSAMLCommand=go.$Command=void 0;var uQ=x(),mQ=k(),UR=b();Object.defineProperty(go,"$Command",{enumerable:!0,get:function(){return UR.Command}});var pQ=w(),jR=Dn(),zR=dn(),Ky=class e extends UR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,mQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,uQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:jR.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:jR.AssumeRoleWithSAMLResponseFilterSensitiveLog,[pQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithSAML"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,zR.se_AssumeRoleWithSAMLCommand)(n,t)}deserialize(n,t){return(0,zR.de_AssumeRoleWithSAMLCommand)(n,t)}};go.AssumeRoleWithSAMLCommand=Ky});var Wy=m(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.DecodeAuthorizationMessageCommand=ho.$Command=void 0;var fQ=rn(),yQ=x(),gQ=k(),HR=b();Object.defineProperty(ho,"$Command",{enumerable:!0,get:function(){return HR.Command}});var hQ=w(),GR=dn(),Xy=class e extends HR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,gQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,yQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,fQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[hQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"DecodeAuthorizationMessage"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,GR.se_DecodeAuthorizationMessageCommand)(n,t)}deserialize(n,t){return(0,GR.de_DecodeAuthorizationMessageCommand)(n,t)}};ho.DecodeAuthorizationMessageCommand=Xy});var Jy=m(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.GetAccessKeyInfoCommand=_o.$Command=void 0;var _Q=rn(),CQ=x(),SQ=k(),KR=b();Object.defineProperty(_o,"$Command",{enumerable:!0,get:function(){return KR.Command}});var bQ=w(),$R=dn(),Yy=class e extends KR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,SQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,CQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,_Q.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[bQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetAccessKeyInfo"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,$R.se_GetAccessKeyInfoCommand)(n,t)}deserialize(n,t){return(0,$R.de_GetAccessKeyInfoCommand)(n,t)}};_o.GetAccessKeyInfoCommand=Yy});var Zy=m(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.GetCallerIdentityCommand=Co.$Command=void 0;var EQ=rn(),PQ=x(),vQ=k(),XR=b();Object.defineProperty(Co,"$Command",{enumerable:!0,get:function(){return XR.Command}});var wQ=w(),VR=dn(),Qy=class e extends XR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,vQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,PQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,EQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[wQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetCallerIdentity"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,VR.se_GetCallerIdentityCommand)(n,t)}deserialize(n,t){return(0,VR.de_GetCallerIdentityCommand)(n,t)}};Co.GetCallerIdentityCommand=Qy});var tg=m(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.GetFederationTokenCommand=So.$Command=void 0;var xQ=rn(),kQ=x(),AQ=k(),YR=b();Object.defineProperty(So,"$Command",{enumerable:!0,get:function(){return YR.Command}});var OQ=w(),NQ=Dn(),WR=dn(),eg=class e extends YR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,AQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,kQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,xQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:NQ.GetFederationTokenResponseFilterSensitiveLog,[OQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetFederationToken"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,WR.se_GetFederationTokenCommand)(n,t)}deserialize(n,t){return(0,WR.de_GetFederationTokenCommand)(n,t)}};So.GetFederationTokenCommand=eg});var rg=m(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.GetSessionTokenCommand=bo.$Command=void 0;var IQ=rn(),RQ=x(),TQ=k(),QR=b();Object.defineProperty(bo,"$Command",{enumerable:!0,get:function(){return QR.Command}});var BQ=w(),qQ=Dn(),JR=dn(),ng=class e extends QR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,TQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,RQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,IQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:qQ.GetSessionTokenResponseFilterSensitiveLog,[BQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetSessionToken"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,JR.se_GetSessionTokenCommand)(n,t)}deserialize(n,t){return(0,JR.de_GetSessionTokenCommand)(n,t)}};bo.GetSessionTokenCommand=ng});var ZR=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.STS=void 0;var DQ=b(),MQ=ul(),FQ=Vy(),LQ=ml(),jQ=Wy(),zQ=Jy(),UQ=Zy(),GQ=tg(),HQ=rg(),$Q=Mu(),KQ={AssumeRoleCommand:MQ.AssumeRoleCommand,AssumeRoleWithSAMLCommand:FQ.AssumeRoleWithSAMLCommand,AssumeRoleWithWebIdentityCommand:LQ.AssumeRoleWithWebIdentityCommand,DecodeAuthorizationMessageCommand:jQ.DecodeAuthorizationMessageCommand,GetAccessKeyInfoCommand:zQ.GetAccessKeyInfoCommand,GetCallerIdentityCommand:UQ.GetCallerIdentityCommand,GetFederationTokenCommand:GQ.GetFederationTokenCommand,GetSessionTokenCommand:HQ.GetSessionTokenCommand},Fu=class extends $Q.STSClient{};Lu.STS=Fu;(0,DQ.createAggregatedClient)(KQ,Fu)});var eT=m($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});var Vn=(te(),Y(ee));Vn.__exportStar(ul(),$t);Vn.__exportStar(Vy(),$t);Vn.__exportStar(ml(),$t);Vn.__exportStar(Wy(),$t);Vn.__exportStar(Jy(),$t);Vn.__exportStar(Zy(),$t);Vn.__exportStar(tg(),$t);Vn.__exportStar(rg(),$t)});var tT=m(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});var VQ=(te(),Y(ee));VQ.__exportStar(Dn(),og)});var sT=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.decorateDefaultCredentialProvider=Kt.getDefaultRoleAssumerWithWebIdentity=Kt.getDefaultRoleAssumer=void 0;var nT=Uf(),rT=Mu(),oT=(e,n)=>n?class extends e{constructor(r){super(r);for(let o of n)this.middlewareStack.use(o)}}:e,XQ=(e={},n)=>(0,nT.getDefaultRoleAssumer)(e,oT(rT.STSClient,n));Kt.getDefaultRoleAssumer=XQ;var WQ=(e={},n)=>(0,nT.getDefaultRoleAssumerWithWebIdentity)(e,oT(rT.STSClient,n));Kt.getDefaultRoleAssumerWithWebIdentity=WQ;var YQ=e=>n=>e({roleAssumer:(0,Kt.getDefaultRoleAssumer)(n),roleAssumerWithWebIdentity:(0,Kt.getDefaultRoleAssumerWithWebIdentity)(n),...n});Kt.decorateDefaultCredentialProvider=YQ});var iT=m(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.STSServiceException=void 0;var Ia=(te(),Y(ee));Ia.__exportStar(Mu(),gn);Ia.__exportStar(ZR(),gn);Ia.__exportStar(eT(),gn);Ia.__exportStar(tT(),gn);Ia.__exportStar(sT(),gn);var JQ=il();Object.defineProperty(gn,"STSServiceException",{enumerable:!0,get:function(){return JQ.STSServiceException}})});var aT=m(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS=Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME=Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME=void 0;var ju=Nd();Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME="s3_disable_multiregion_access_points";Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,ju.booleanSelector)(e,Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME,ju.SelectorType.ENV),configFileSelector:e=>(0,ju.booleanSelector)(e,Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME,ju.SelectorType.CONFIG),default:!1}});var cT=m(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.NODE_USE_ARN_REGION_CONFIG_OPTIONS=Xt.NODE_USE_ARN_REGION_INI_NAME=Xt.NODE_USE_ARN_REGION_ENV_NAME=void 0;var zu=Nd();Xt.NODE_USE_ARN_REGION_ENV_NAME="AWS_S3_USE_ARN_REGION";Xt.NODE_USE_ARN_REGION_INI_NAME="s3_use_arn_region";Xt.NODE_USE_ARN_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,zu.booleanSelector)(e,Xt.NODE_USE_ARN_REGION_ENV_NAME,zu.SelectorType.ENV),configFileSelector:e=>(0,zu.booleanSelector)(e,Xt.NODE_USE_ARN_REGION_INI_NAME,zu.SelectorType.CONFIG),default:!1}});var ag=m(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.validateMrapAlias=Z.validateNoFIPS=Z.validateNoDualstack=Z.getArnResources=Z.validateCustomEndpoint=Z.validateDNSHostLabel=Z.validateAccountId=Z.validateRegionalClient=Z.validateRegion=Z.validatePartition=Z.validateOutpostService=Z.validateS3Service=Z.validateService=Z.validateArnEndpointOptions=Z.getSuffixForArnEndpoint=Z.getSuffix=Z.isDnsCompatibleBucketName=Z.isBucketNameOptions=Z.S3_HOSTNAME_PATTERN=Z.DOT_PATTERN=void 0;var QQ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,ZQ=/(\d+\.){3}\d+/,eZ=/\.\./;Z.DOT_PATTERN=/\./;Z.S3_HOSTNAME_PATTERN=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;var dT=/^s3(-external-1)?\.amazonaws\.com$/,ig="amazonaws.com",tZ=e=>typeof e.bucketName=="string";Z.isBucketNameOptions=tZ;var nZ=e=>QQ.test(e)&&!ZQ.test(e)&&!eZ.test(e);Z.isDnsCompatibleBucketName=nZ;var lT=e=>{let n=e.match(Z.S3_HOSTNAME_PATTERN);return[n[4],e.replace(new RegExp(`^${n[0]}`),"")]},rZ=e=>dT.test(e)?["us-east-1",ig]:lT(e);Z.getSuffix=rZ;var oZ=e=>dT.test(e)?[e.replace(`.${ig}`,""),ig]:lT(e);Z.getSuffixForArnEndpoint=oZ;var sZ=e=>{if(e.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!e.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")};Z.validateArnEndpointOptions=sZ;var iZ=e=>{if(e!=="s3"&&e!=="s3-outposts"&&e!=="s3-object-lambda")throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component")};Z.validateService=iZ;var aZ=e=>{if(e!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")};Z.validateS3Service=aZ;var cZ=e=>{if(e!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")};Z.validateOutpostService=cZ;var dZ=(e,n)=>{if(e!==n.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${e}" but expected "${n.clientPartition}"`)};Z.validatePartition=dZ;var lZ=(e,n)=>{if(e==="")throw new Error("ARN region is empty");if(n.useFipsEndpoint)if(n.allowFipsRegion){if(!sg(e,n.clientRegion))throw new Error(`Client FIPS region ${n.clientRegion} doesn't match region ${e} in ARN`)}else throw new Error("FIPS region is not supported");if(!n.useArnRegion&&!sg(e,n.clientRegion||"")&&!sg(e,n.clientSigningRegion||""))throw new Error(`Region in ARN is incompatible, got ${e} but expected ${n.clientRegion}`)};Z.validateRegion=lZ;var uZ=e=>{if(["s3-external-1","aws-global"].includes(e))throw new Error(`Client region ${e} is not regional`)};Z.validateRegionalClient=uZ;var sg=(e,n)=>e===n,mZ=e=>{if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")};Z.validateAccountId=mZ;var pZ=(e,n={tlsCompatible:!0})=>{if(e.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||n!=null&&n.tlsCompatible&&Z.DOT_PATTERN.test(e))throw new Error(`Invalid DNS label ${e}`)};Z.validateDNSHostLabel=pZ;var fZ=e=>{if(e.isCustomEndpoint){if(e.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported with custom endpoint")}};Z.validateCustomEndpoint=fZ;var yZ=e=>{let n=e.includes(":")?":":"/",[t,...r]=e.split(n);if(t==="accesspoint"){if(r.length!==1||r[0]==="")throw new Error(`Access Point ARN should have one resource accesspoint${n}{accesspointname}`);return{accesspointName:r[0]}}else if(t==="outpost"){if(!r[0]||r[1]!=="accesspoint"||!r[2]||r.length!==3)throw new Error(`Outpost ARN should have resource outpost${n}{outpostId}${n}accesspoint${n}{accesspointName}`);let[o,s,c]=r;return{outpostId:o,accesspointName:c}}else throw new Error(`ARN resource should begin with 'accesspoint${n}' or 'outpost${n}'`)};Z.getArnResources=yZ;var gZ=e=>{if(e)throw new Error("Dualstack endpoint is not supported with Outpost or Multi-region Access Point ARN.")};Z.validateNoDualstack=gZ;var hZ=e=>{if(e)throw new Error("FIPS region is not supported with Outpost.")};Z.validateNoFIPS=hZ;var _Z=e=>{try{e.split(".").forEach(n=>{(0,Z.validateDNSHostLabel)(n)})}catch{throw new Error(`"${e}" is not a DNS compatible name.`)}};Z.validateMrapAlias=_Z});var cg=m(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.bucketHostname=void 0;var ge=ag(),CZ=e=>((0,ge.validateCustomEndpoint)(e),(0,ge.isBucketNameOptions)(e)?SZ(e):bZ(e));Uu.bucketHostname=CZ;var SZ=({accelerateEndpoint:e=!1,clientRegion:n,baseHostname:t,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,pathStyleEndpoint:c=!1,tlsCompatible:i=!0,isCustomEndpoint:u=!1})=>{let[l,a]=u?[n,t]:(0,ge.getSuffix)(t);return c||!(0,ge.isDnsCompatibleBucketName)(r)||i&&ge.DOT_PATTERN.test(r)?{bucketEndpoint:!1,hostname:o?`s3.dualstack.${l}.${a}`:t}:(e?t=`s3-accelerate${o?".dualstack":""}.${a}`:o&&(t=`s3.dualstack.${l}.${a}`),{bucketEndpoint:!0,hostname:`${r}.${t}`})},bZ=e=>{let{isCustomEndpoint:n,baseHostname:t,clientRegion:r}=e,o=n?t:(0,ge.getSuffixForArnEndpoint)(t)[1],{pathStyleEndpoint:s,accelerateEndpoint:c=!1,fipsEndpoint:i=!1,tlsCompatible:u=!0,bucketName:l,clientPartition:a="aws"}=e;(0,ge.validateArnEndpointOptions)({pathStyleEndpoint:s,accelerateEndpoint:c,tlsCompatible:u});let{service:y,partition:g,accountId:C,region:v,resource:A}=l;(0,ge.validateService)(y),(0,ge.validatePartition)(g,{clientPartition:a}),(0,ge.validateAccountId)(C);let{accesspointName:E,outpostId:G}=(0,ge.getArnResources)(A);return y==="s3-object-lambda"?EZ({...e,tlsCompatible:u,bucketName:l,accesspointName:E,hostnameSuffix:o}):v===""?PZ({...e,clientRegion:r,mrapAlias:E,hostnameSuffix:o}):G?vZ({...e,clientRegion:r,outpostId:G,accesspointName:E,hostnameSuffix:o}):wZ({...e,clientRegion:r,accesspointName:E,hostnameSuffix:o})},EZ=({dualstackEndpoint:e=!1,fipsEndpoint:n=!1,tlsCompatible:t=!0,useArnRegion:r,clientRegion:o,clientSigningRegion:s=o,accesspointName:c,bucketName:i,hostnameSuffix:u})=>{let{accountId:l,region:a,service:y}=i;(0,ge.validateRegionalClient)(o),(0,ge.validateRegion)(a,{useArnRegion:r,clientRegion:o,clientSigningRegion:s,allowFipsRegion:!0,useFipsEndpoint:n}),(0,ge.validateNoDualstack)(e);let g=`${c}-${l}`;(0,ge.validateDNSHostLabel)(g,{tlsCompatible:t});let C=r?a:o,v=r?a:s;return{bucketEndpoint:!0,hostname:`${g}.${y}${n?"-fips":""}.${C}.${u}`,signingRegion:v,signingService:y}},PZ=({disableMultiregionAccessPoints:e,dualstackEndpoint:n=!1,isCustomEndpoint:t,mrapAlias:r,hostnameSuffix:o})=>{if(e===!0)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return(0,ge.validateMrapAlias)(r),(0,ge.validateNoDualstack)(n),{bucketEndpoint:!0,hostname:`${r}${t?"":".accesspoint.s3-global"}.${o}`,signingRegion:"*"}},vZ=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,outpostId:o,dualstackEndpoint:s=!1,fipsEndpoint:c=!1,tlsCompatible:i=!0,accesspointName:u,isCustomEndpoint:l,hostnameSuffix:a})=>{(0,ge.validateRegionalClient)(n),(0,ge.validateRegion)(r.region,{useArnRegion:e,clientRegion:n,clientSigningRegion:t,useFipsEndpoint:c});let y=`${u}-${r.accountId}`;(0,ge.validateDNSHostLabel)(y,{tlsCompatible:i});let g=e?r.region:n,C=e?r.region:t;return(0,ge.validateOutpostService)(r.service),(0,ge.validateDNSHostLabel)(o,{tlsCompatible:i}),(0,ge.validateNoDualstack)(s),(0,ge.validateNoFIPS)(c),{bucketEndpoint:!0,hostname:`${`${y}.${o}`}${l?"":`.s3-outposts.${g}`}.${a}`,signingRegion:C,signingService:"s3-outposts"}},wZ=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:c=!0,accesspointName:i,isCustomEndpoint:u,hostnameSuffix:l})=>{(0,ge.validateRegionalClient)(n),(0,ge.validateRegion)(r.region,{useArnRegion:e,clientRegion:n,clientSigningRegion:t,allowFipsRegion:!0,useFipsEndpoint:s});let a=`${i}-${r.accountId}`;(0,ge.validateDNSHostLabel)(a,{tlsCompatible:c});let y=e?r.region:n,g=e?r.region:t;return(0,ge.validateS3Service)(r.service),{bucketEndpoint:!0,hostname:`${a}${u?"":`.s3-accesspoint${s?"-fips":""}${o?".dualstack":""}.${y}`}.${l}`,signingRegion:g}}});var pT=m(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.getBucketEndpointPlugin=Wt.bucketEndpointMiddlewareOptions=Wt.bucketEndpointMiddleware=void 0;var uT=yp(),xZ=Ne(),mT=cg(),kZ=e=>(n,t)=>async r=>{let{Bucket:o}=r.input,s=e.bucketEndpoint,c=r.request;if(xZ.HttpRequest.isInstance(c)){if(e.bucketEndpoint)c.hostname=o;else if((0,uT.validate)(o)){let i=(0,uT.parse)(o),u=await e.region(),l=await e.useDualstackEndpoint(),a=await e.useFipsEndpoint(),{partition:y,signingRegion:g=u}=await e.regionInfoProvider(u,{useDualstackEndpoint:l,useFipsEndpoint:a})||{},C=await e.useArnRegion(),{hostname:v,bucketEndpoint:A,signingRegion:E,signingService:G}=(0,mT.bucketHostname)({bucketName:i,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:l,fipsEndpoint:a,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol==="https:",useArnRegion:C,clientPartition:y,clientSigningRegion:g,clientRegion:u,isCustomEndpoint:e.isCustomEndpoint,disableMultiregionAccessPoints:await e.disableMultiregionAccessPoints()});E&&E!==g&&(t.signing_region=E),G&&G!=="s3"&&(t.signing_service=G),c.hostname=v,s=A}else{let i=await e.region(),u=await e.useDualstackEndpoint(),l=await e.useFipsEndpoint(),{hostname:a,bucketEndpoint:y}=(0,mT.bucketHostname)({bucketName:o,clientRegion:i,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:u,fipsEndpoint:l,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol==="https:",isCustomEndpoint:e.isCustomEndpoint});c.hostname=a,s=y}s&&(c.path=c.path.replace(/^(\/)?[^\/]+/,""),c.path===""&&(c.path="/"))}return n({...r,request:c})};Wt.bucketEndpointMiddleware=kZ;Wt.bucketEndpointMiddlewareOptions={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0};var AZ=e=>({applyToStack:n=>{n.addRelativeTo((0,Wt.bucketEndpointMiddleware)(e),Wt.bucketEndpointMiddlewareOptions)}});Wt.getBucketEndpointPlugin=AZ});var fT=m(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.resolveBucketEndpointConfig=void 0;function OZ(e){let{bucketEndpoint:n=!1,forcePathStyle:t=!1,useAccelerateEndpoint:r=!1,useArnRegion:o=!1,disableMultiregionAccessPoints:s=!1}=e;return{...e,bucketEndpoint:n,forcePathStyle:t,useAccelerateEndpoint:r,useArnRegion:typeof o=="function"?o:()=>Promise.resolve(o),disableMultiregionAccessPoints:typeof s=="function"?s:()=>Promise.resolve(s)}}Gu.resolveBucketEndpointConfig=OZ});var yT=m(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.validateNoFIPS=Se.validateNoDualstack=Se.validateDNSHostLabel=Se.validateRegion=Se.validateAccountId=Se.validatePartition=Se.validateOutpostService=Se.getSuffixForArnEndpoint=Se.getArnResources=void 0;var Ra=(te(),Y(ee));Ra.__exportStar(aT(),Se);Ra.__exportStar(cT(),Se);Ra.__exportStar(pT(),Se);Ra.__exportStar(cg(),Se);Ra.__exportStar(fT(),Se);var hn=ag();Object.defineProperty(Se,"getArnResources",{enumerable:!0,get:function(){return hn.getArnResources}});Object.defineProperty(Se,"getSuffixForArnEndpoint",{enumerable:!0,get:function(){return hn.getSuffixForArnEndpoint}});Object.defineProperty(Se,"validateOutpostService",{enumerable:!0,get:function(){return hn.validateOutpostService}});Object.defineProperty(Se,"validatePartition",{enumerable:!0,get:function(){return hn.validatePartition}});Object.defineProperty(Se,"validateAccountId",{enumerable:!0,get:function(){return hn.validateAccountId}});Object.defineProperty(Se,"validateRegion",{enumerable:!0,get:function(){return hn.validateRegion}});Object.defineProperty(Se,"validateDNSHostLabel",{enumerable:!0,get:function(){return hn.validateDNSHostLabel}});Object.defineProperty(Se,"validateNoDualstack",{enumerable:!0,get:function(){return hn.validateNoDualstack}});Object.defineProperty(Se,"validateNoFIPS",{enumerable:!0,get:function(){return hn.validateNoFIPS}})});var ET=m((Exe,bT)=>{var Hu=Object.defineProperty,NZ=Object.getOwnPropertyDescriptor,IZ=Object.getOwnPropertyNames,RZ=Object.prototype.hasOwnProperty,Eo=(e,n)=>Hu(e,"name",{value:n,configurable:!0}),TZ=(e,n)=>{for(var t in n)Hu(e,t,{get:n[t],enumerable:!0})},BZ=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of IZ(n))!RZ.call(e,o)&&o!==t&&Hu(e,o,{get:()=>n[o],enumerable:!(r=NZ(n,o))||r.enumerable});return e},qZ=e=>BZ(Hu({},"__esModule",{value:!0}),e),gT={};TZ(gT,{EventStreamMarshaller:()=>ST,eventStreamSerdeProvider:()=>DZ});bT.exports=qZ(gT);var Ta=wp();function hT(e){let n=0,t=0,r=null,o=null,s=Eo(i=>{if(typeof i!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+i);n=i,t=4,r=new Uint8Array(i),new DataView(r.buffer).setUint32(0,i,!1)},"allocateMessage"),c=Eo(async function*(){let i=e[Symbol.asyncIterator]();for(;;){let{value:u,done:l}=await i.next();if(l){if(n)if(n===t)yield r;else throw new Error("Truncated event message received.");else return;return}let a=u.length,y=0;for(;ynew ST(e),"eventStreamSerdeProvider")});var AT=m((vxe,kT)=>{var $u=Object.defineProperty,MZ=Object.getOwnPropertyDescriptor,FZ=Object.getOwnPropertyNames,LZ=Object.prototype.hasOwnProperty,dg=(e,n)=>$u(e,"name",{value:n,configurable:!0}),jZ=(e,n)=>{for(var t in n)$u(e,t,{get:n[t],enumerable:!0})},zZ=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of FZ(n))!LZ.call(e,o)&&o!==t&&$u(e,o,{get:()=>n[o],enumerable:!(r=MZ(n,o))||r.enumerable});return e},UZ=e=>zZ($u({},"__esModule",{value:!0}),e),PT={};jZ(PT,{EventStreamMarshaller:()=>xT,eventStreamSerdeProvider:()=>$Z});kT.exports=UZ(PT);var GZ=ET(),HZ=require("stream");async function*vT(e){let n=!1,t=!1,r=new Array;for(e.on("error",o=>{if(n||(n=!0),o)throw o}),e.on("data",o=>{r.push(o)}),e.on("end",()=>{n=!0});!t;){let o=await new Promise(s=>setTimeout(()=>s(r.shift()),0));o&&(yield o),t=n&&r.length===0}}dg(vT,"readabletoIterable");var wT=class{constructor({utf8Encoder:n,utf8Decoder:t}){this.universalMarshaller=new GZ.EventStreamMarshaller({utf8Decoder:t,utf8Encoder:n})}deserialize(n,t){let r=typeof n[Symbol.asyncIterator]=="function"?n:vT(n);return this.universalMarshaller.deserialize(r,t)}serialize(n,t){return HZ.Readable.from(this.universalMarshaller.serialize(n,t))}};dg(wT,"EventStreamMarshaller");var xT=wT,$Z=dg(e=>new xT(e),"eventStreamSerdeProvider")});var TT=m((xxe,RT)=>{var Ku=Object.defineProperty,KZ=Object.getOwnPropertyDescriptor,VZ=Object.getOwnPropertyNames,XZ=Object.prototype.hasOwnProperty,Vu=(e,n)=>Ku(e,"name",{value:n,configurable:!0}),WZ=(e,n)=>{for(var t in n)Ku(e,t,{get:n[t],enumerable:!0})},YZ=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of VZ(n))!XZ.call(e,o)&&o!==t&&Ku(e,o,{get:()=>n[o],enumerable:!(r=KZ(n,o))||r.enumerable});return e},JZ=e=>YZ(Ku({},"__esModule",{value:!0}),e),OT={};WZ(OT,{fileStreamHasher:()=>tee,readableStreamHasher:()=>ree});RT.exports=JZ(OT);var QZ=require("fs"),ZZ=yt(),eee=require("stream"),NT=class extends eee.Writable{constructor(n,t){super(t),this.hash=n}_write(n,t,r){try{this.hash.update((0,ZZ.toUint8Array)(n))}catch(o){return r(o)}r()}};Vu(NT,"HashCalculator");var IT=NT,tee=Vu((e,n)=>new Promise((t,r)=>{if(!nee(n)){r(new Error("Unable to calculate hash for non-file streams."));return}let o=(0,QZ.createReadStream)(n.path,{start:n.start,end:n.end}),s=new e,c=new IT(s);o.pipe(c),o.on("error",i=>{c.end(),r(i)}),c.on("error",r),c.on("finish",function(){s.digest().then(t).catch(r)})}),"fileStreamHasher"),nee=Vu(e=>typeof e.path=="string","isReadStream"),ree=Vu((e,n)=>{if(n.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let t=new e,r=new IT(t);return n.pipe(r),new Promise((o,s)=>{n.on("error",c=>{r.end(),s(c)}),r.on("error",s),r.on("finish",()=>{t.digest().then(o).catch(s)})})},"readableStreamHasher")});var Wu=m(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.signatureV4CrtContainer=void 0;Xu.signatureV4CrtContainer={CrtSignerV4:null}});var BT=m(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.loadCrt=void 0;var oee=Wu();function see(){if(!oee.signatureV4CrtContainer.CrtSignerV4)try{typeof require=="function"&&(require.call(null,"@aws-sdk/signature-v4-crt"),process.emitWarning(`The package @aws-sdk/signature-v4-crt has been loaded dynamically. +`);let o=r.parse(t),s="#text",c=Object.keys(o)[0],i=o[c];return i[s]&&(i[c]=i[s],delete i[s]),(0,W.getValueFromTextNode)(i)}return{}}),Un=async(e,n)=>{let t=await cn(e,n);return t.Error&&(t.Error.message=t.Error.message??t.Error.Message),t},Gn=e=>Object.entries(e).map(([n,t])=>(0,W.extendedEncodeURIComponent)(n)+"="+(0,W.extendedEncodeURIComponent)(t)).join("&"),Hn=(e,n)=>{var t;if(((t=n.Error)==null?void 0:t.Code)!==void 0)return n.Error.Code;if(e.statusCode==404)return"NotFound"}});var ml=m(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.AssumeRoleCommand=Hr.$Command=void 0;var F4=rn(),L4=x(),j4=k(),BA=b();Object.defineProperty(Hr,"$Command",{enumerable:!0,get:function(){return BA.Command}});var z4=w(),U4=Dn(),TA=dn(),jf=class e extends BA.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,j4.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,L4.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,F4.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:U4.AssumeRoleResponseFilterSensitiveLog,[z4.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRole"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,TA.se_AssumeRoleCommand)(n,t)}deserialize(n,t){return(0,TA.de_AssumeRoleCommand)(n,t)}};Hr.AssumeRoleCommand=jf});var pl=m($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.AssumeRoleWithWebIdentityCommand=$r.$Command=void 0;var G4=x(),H4=k(),MA=b();Object.defineProperty($r,"$Command",{enumerable:!0,get:function(){return MA.Command}});var $4=w(),qA=Dn(),DA=dn(),zf=class e extends MA.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,H4.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,G4.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:qA.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:qA.AssumeRoleWithWebIdentityResponseFilterSensitiveLog,[$4.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithWebIdentity"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,DA.se_AssumeRoleWithWebIdentityCommand)(n,t)}deserialize(n,t){return(0,DA.de_AssumeRoleWithWebIdentityCommand)(n,t)}};$r.AssumeRoleWithWebIdentityCommand=zf});var Uf=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.decorateDefaultCredentialProvider=Ft.getDefaultRoleAssumerWithWebIdentity=Ft.getDefaultRoleAssumer=void 0;var K4=ml(),V4=pl(),FA="us-east-1",LA=e=>typeof e!="function"?e===void 0?FA:e:async()=>{try{return await e()}catch{return FA}},X4=(e,n)=>{let t,r;return async(o,s)=>{if(r=o,!t){let{logger:i,region:u,requestHandler:l}=e;t=new n({logger:i,credentialDefaultProvider:()=>async()=>r,region:LA(u||e.region),...l?{requestHandler:l}:{}})}let{Credentials:c}=await t.send(new K4.AssumeRoleCommand(s));if(!c||!c.AccessKeyId||!c.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.SessionToken,expiration:c.Expiration}}};Ft.getDefaultRoleAssumer=X4;var W4=(e,n)=>{let t;return async r=>{if(!t){let{logger:s,region:c,requestHandler:i}=e;t=new n({logger:s,region:LA(c||e.region),...i?{requestHandler:i}:{}})}let{Credentials:o}=await t.send(new V4.AssumeRoleWithWebIdentityCommand(r));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration}}};Ft.getDefaultRoleAssumerWithWebIdentity=W4;var Y4=e=>n=>e({roleAssumer:(0,Ft.getDefaultRoleAssumer)(n,n.stsClientCtor),roleAssumerWithWebIdentity:(0,Ft.getDefaultRoleAssumerWithWebIdentity)(n,n.stsClientCtor),...n});Ft.decorateDefaultCredentialProvider=Y4});var jA=m(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.fromEnv=Ze.ENV_EXPIRATION=Ze.ENV_SESSION=Ze.ENV_SECRET=Ze.ENV_KEY=void 0;var J4=xe();Ze.ENV_KEY="AWS_ACCESS_KEY_ID";Ze.ENV_SECRET="AWS_SECRET_ACCESS_KEY";Ze.ENV_SESSION="AWS_SESSION_TOKEN";Ze.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var Q4=()=>async()=>{let e=process.env[Ze.ENV_KEY],n=process.env[Ze.ENV_SECRET],t=process.env[Ze.ENV_SESSION],r=process.env[Ze.ENV_EXPIRATION];if(e&&n)return{accessKeyId:e,secretAccessKey:n,...t&&{sessionToken:t},...r&&{expiration:new Date(r)}};throw new J4.CredentialsProviderError("Unable to find environment variable credentials.")};Ze.fromEnv=Q4});var Hf=m(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var Z4=(te(),Y(ee));Z4.__exportStar(jA(),Gf)});var hl=m((Rve,eO)=>{var gl=Object.defineProperty,eW=Object.getOwnPropertyDescriptor,tW=Object.getOwnPropertyNames,nW=Object.prototype.hasOwnProperty,qe=(e,n)=>gl(e,"name",{value:n,configurable:!0}),rW=(e,n)=>{for(var t in n)gl(e,t,{get:n[t],enumerable:!0})},oW=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of tW(n))!nW.call(e,o)&&o!==t&&gl(e,o,{get:()=>n[o],enumerable:!(r=eW(n,o))||r.enumerable});return e},sW=e=>oW(gl({},"__esModule",{value:!0}),e),HA={};rW(HA,{DEFAULT_MAX_RETRIES:()=>XA,DEFAULT_TIMEOUT:()=>VA,ENV_CMDS_AUTH_TOKEN:()=>Vf,ENV_CMDS_FULL_URI:()=>fl,ENV_CMDS_RELATIVE_URI:()=>yl,fromContainerMetadata:()=>dW,fromInstanceMetadata:()=>NW,getInstanceMetadataEndpoint:()=>QA,httpRequest:()=>Kr,providerConfigFromInit:()=>Xf});eO.exports=sW(HA);var iW=require("url"),Lt=xe(),aW=require("buffer"),cW=require("http");function Kr(e){return new Promise((n,t)=>{var r;let o=(0,cW.request)({method:"GET",...e,hostname:(r=e.hostname)==null?void 0:r.replace(/^\[(.+)\]$/,"$1")});o.on("error",s=>{t(Object.assign(new Lt.ProviderError("Unable to connect to instance metadata service"),s)),o.destroy()}),o.on("timeout",()=>{t(new Lt.ProviderError("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",s=>{let{statusCode:c=400}=s;(c<200||300<=c)&&(t(Object.assign(new Lt.ProviderError("Error response received from instance metadata service"),{statusCode:c})),o.destroy());let i=[];s.on("data",u=>{i.push(u)}),s.on("end",()=>{n(aW.Buffer.concat(i)),o.destroy()})}),o.end()})}qe(Kr,"httpRequest");var $A=qe(e=>!!e&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string","isImdsCredentials"),KA=qe(e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)}),"fromImdsCredentials"),VA=1e3,XA=0,Xf=qe(({maxRetries:e=XA,timeout:n=VA})=>({maxRetries:e,timeout:n}),"providerConfigFromInit"),Kf=qe((e,n)=>{let t=e();for(let r=0;r{let{timeout:n,maxRetries:t}=Xf(e);return()=>Kf(async()=>{let r=await fW(),o=JSON.parse(await lW(n,r));if(!$A(o))throw new Lt.CredentialsProviderError("Invalid response received from instance metadata service.");return KA(o)},t)},"fromContainerMetadata"),lW=qe(async(e,n)=>(process.env[Vf]&&(n.headers={...n.headers,Authorization:process.env[Vf]}),(await Kr({...n,timeout:e})).toString()),"requestFromEcsImds"),uW="169.254.170.2",mW={localhost:!0,"127.0.0.1":!0},pW={"http:":!0,"https:":!0},fW=qe(async()=>{if(process.env[yl])return{hostname:uW,path:process.env[yl]};if(process.env[fl]){let e=(0,iW.parse)(process.env[fl]);if(!e.hostname||!(e.hostname in mW))throw new Lt.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in pW))throw new Lt.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new Lt.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${yl} or ${fl} environment variable is set`,!1)},"getCmdsUri"),WA=class YA extends Lt.CredentialsProviderError{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,YA.prototype)}};qe(WA,"InstanceMetadataV1FallbackError");var yW=WA,Wf=on(),gW=mr(),hW="AWS_EC2_METADATA_SERVICE_ENDPOINT",_W="ec2_metadata_service_endpoint",CW={environmentVariableSelector:e=>e[hW],configFileSelector:e=>e[_W],default:void 0},JA=(e=>(e.IPv4="IPv4",e.IPv6="IPv6",e))(JA||{}),SW="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",bW="ec2_metadata_service_endpoint_mode",EW={environmentVariableSelector:e=>e[SW],configFileSelector:e=>e[bW],default:"IPv4"},QA=qe(async()=>(0,gW.parseUrl)(await PW()||await vW()),"getInstanceMetadataEndpoint"),PW=qe(async()=>(0,Wf.loadConfig)(CW)(),"getFromEndpointConfig"),vW=qe(async()=>{let e=await(0,Wf.loadConfig)(EW)();switch(e){case"IPv4":return"http://169.254.169.254";case"IPv6":return"http://[fd00:ec2::254]";default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(JA)}`)}},"getFromEndpointModeConfig"),wW=5*60,xW=5*60,kW="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",zA=qe((e,n)=>{let t=wW+Math.floor(Math.random()*xW),r=new Date(Date.now()+t*1e3);n.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+kW);let o=e.originalExpiration??e.expiration;return{...e,...o?{originalExpiration:o}:{},expiration:r}},"getExtendedInstanceMetadataCredentials"),AW=qe((e,n={})=>{let t=(n==null?void 0:n.logger)||console,r;return async()=>{let o;try{o=await e(),o.expiration&&o.expiration.getTime()AW(IW(e),{logger:e.logger}),"fromInstanceMetadata"),IW=qe(e=>{let n=!1,{logger:t,profile:r}=e,{timeout:o,maxRetries:s}=Xf(e),c=qe(async(i,u)=>{var l;if(n||((l=u.headers)==null?void 0:l[GA])==null){let g=!1,C=!1,v=await(0,Wf.loadConfig)({environmentVariableSelector:A=>{let E=A[$f];if(C=!!E&&E!=="false",E===void 0)throw new Lt.CredentialsProviderError(`${$f} not set in env, checking config file next.`);return C},configFileSelector:A=>{let E=A[UA];return g=!!E&&E!=="false",g},default:!1},{profile:r})();if(e.ec2MetadataV1Disabled||v){let A=[];throw e.ec2MetadataV1Disabled&&A.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),g&&A.push(`config file profile (${UA})`),C&&A.push(`process environment variable (${$f})`),new yW(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${A.join(", ")}].`)}}let y=(await Kf(async()=>{let g;try{g=await TW(u)}catch(C){throw C.statusCode===401&&(n=!1),C}return g},i)).trim();return Kf(async()=>{let g;try{g=await BW(y,u)}catch(C){throw C.statusCode===401&&(n=!1),C}return g},i)},"getCredentials");return async()=>{let i=await QA();if(n)return t==null||t.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),c(s,{...i,timeout:o});{let u;try{u=(await RW({...i,timeout:o})).toString()}catch(l){if((l==null?void 0:l.statusCode)===400)throw Object.assign(l,{message:"EC2 Metadata token request returned error"});return(l.message==="TimeoutError"||[403,404,405].includes(l.statusCode))&&(n=!0),t==null||t.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),c(s,{...i,timeout:o})}return c(s,{...i,headers:{[GA]:u},timeout:o})}}},"getInstanceImdsProvider"),RW=qe(async e=>Kr({...e,path:OW,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),TW=qe(async e=>(await Kr({...e,path:ZA})).toString(),"getProfile"),BW=qe(async(e,n)=>{let t=JSON.parse((await Kr({...n,path:ZA+e})).toString());if(!$A(t))throw new Lt.CredentialsProviderError("Invalid response received from instance metadata service.");return KA(t)},"getCredentialsFromProfile")});var nO=m(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.resolveCredentialSource=void 0;var qW=Hf(),tO=hl(),DW=xe(),MW=(e,n)=>{let t={EcsContainer:tO.fromContainerMetadata,Ec2InstanceMetadata:tO.fromInstanceMetadata,Environment:qW.fromEnv};if(e in t)return t[e]();throw new DW.CredentialsProviderError(`Unsupported credential source in profile ${n}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};_l.resolveCredentialSource=MW});var rO=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.resolveAssumeRoleCredentials=Vr.isAssumeRoleProfile=void 0;var Yf=xe(),FW=wt(),LW=nO(),jW=Jf(),zW=e=>!!e&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(UW(e)||GW(e));Vr.isAssumeRoleProfile=zW;var UW=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",GW=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",HW=async(e,n,t,r={})=>{let o=n[e];if(!t.roleAssumer)throw new Yf.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:s}=o;if(s&&s in r)throw new Yf.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,FW.getProfileName)(t)}. Profiles visited: `+Object.keys(r).join(", "),!1);let c=s?(0,jW.resolveProfileData)(s,n,t,{...r,[s]:!0}):(0,LW.resolveCredentialSource)(o.credential_source,e)(),i={RoleArn:o.role_arn,RoleSessionName:o.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:o.external_id,DurationSeconds:parseInt(o.duration_seconds||"3600",10)},{mfa_serial:u}=o;if(u){if(!t.mfaCodeProvider)throw new Yf.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);i.SerialNumber=u,i.TokenCode=await t.mfaCodeProvider(u)}let l=await c;return t.roleAssumer(l,i)};Vr.resolveAssumeRoleCredentials=HW});var oO=m(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.getValidatedProcessCredentials=void 0;var $W=(e,n)=>{if(n.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(n.AccessKeyId===void 0||n.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(n.Expiration){let t=new Date;if(new Date(n.Expiration){"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.resolveProcessCredentials=void 0;var Qf=xe(),KW=require("child_process"),VW=require("util"),XW=oO(),WW=async(e,n)=>{let t=n[e];if(n[e]){let r=t.credential_process;if(r!==void 0){let o=(0,VW.promisify)(KW.exec);try{let{stdout:s}=await o(r),c;try{c=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,XW.getValidatedProcessCredentials)(e,c)}catch(s){throw new Qf.CredentialsProviderError(s.message)}}else throw new Qf.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new Qf.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};Sl.resolveProcessCredentials=WW});var aO=m(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.fromProcess=void 0;var iO=wt(),YW=sO(),JW=(e={})=>async()=>{let n=await(0,iO.parseKnownFiles)(e);return(0,YW.resolveProcessCredentials)((0,iO.getProfileName)(e),n)};bl.fromProcess=JW});var ey=m(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var QW=(te(),Y(ee));QW.__exportStar(aO(),Zf)});var cO=m(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.resolveProcessCredentials=Xr.isProcessProfile=void 0;var ZW=ey(),e5=e=>!!e&&typeof e=="object"&&typeof e.credential_process=="string";Xr.isProcessProfile=e5;var t5=async(e,n)=>(0,ZW.fromProcess)({...e,profile:n})();Xr.resolveProcessCredentials=t5});var ty=m(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.isSsoProfile=void 0;var n5=e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string");El.isSsoProfile=n5});var dO=m(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.resolveClientEndpointParameters=void 0;var r5=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"});Pl.resolveClientEndpointParameters=r5});var lO=m((Uve,o5)=>{o5.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.421.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.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-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var mO=m((vl,uO)=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.isCrtAvailable=void 0;var s5=()=>{try{return typeof require=="function"&&typeof uO<"u"&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};vl.isCrtAvailable=s5});var pa=m(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.defaultUserAgent=jt.UA_APP_ID_INI_NAME=jt.UA_APP_ID_ENV_NAME=void 0;var i5=on(),pO=require("os"),ny=require("process"),a5=mO();jt.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";jt.UA_APP_ID_INI_NAME="sdk-ua-app-id";var c5=({serviceId:e,clientVersion:n})=>{let t=[["aws-sdk-js",n],["ua","2.0"],[`os/${(0,pO.platform)()}`,(0,pO.release)()],["lang/js"],["md/nodejs",`${ny.versions.node}`]],r=(0,a5.isCrtAvailable)();r&&t.push(r),e&&t.push([`api/${e}`,n]),ny.env.AWS_EXECUTION_ENV&&t.push([`exec-env/${ny.env.AWS_EXECUTION_ENV}`]);let o=(0,i5.loadConfig)({environmentVariableSelector:c=>c[jt.UA_APP_ID_ENV_NAME],configFileSelector:c=>c[jt.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let c=await o;s=c?[...t,[`app/${c}`]]:[...t]}return s}};jt.defaultUserAgent=c5});var fa=m(($ve,_O)=>{var wl=Object.defineProperty,d5=Object.getOwnPropertyDescriptor,l5=Object.getOwnPropertyNames,u5=Object.prototype.hasOwnProperty,yO=(e,n)=>wl(e,"name",{value:n,configurable:!0}),m5=(e,n)=>{for(var t in n)wl(e,t,{get:n[t],enumerable:!0})},p5=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of l5(n))!u5.call(e,o)&&o!==t&&wl(e,o,{get:()=>n[o],enumerable:!(r=d5(n,o))||r.enumerable});return e},f5=e=>p5(wl({},"__esModule",{value:!0}),e),gO={};m5(gO,{Hash:()=>h5});_O.exports=f5(gO);var ry=Er(),y5=yt(),g5=require("buffer"),fO=require("crypto"),hO=class{constructor(n,t){this.algorithmIdentifier=n,this.secret=t,this.reset()}update(n,t){this.hash.update((0,y5.toUint8Array)(oy(n,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,fO.createHmac)(this.algorithmIdentifier,oy(this.secret)):(0,fO.createHash)(this.algorithmIdentifier)}};yO(hO,"Hash");var h5=hO;function oy(e,n){return g5.Buffer.isBuffer(e)?e:typeof e=="string"?(0,ry.fromString)(e,n):ArrayBuffer.isView(e)?(0,ry.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,ry.fromArrayBuffer)(e)}yO(oy,"castSourceData")});var ya=m((Kve,bO)=>{var xl=Object.defineProperty,_5=Object.getOwnPropertyDescriptor,C5=Object.getOwnPropertyNames,S5=Object.prototype.hasOwnProperty,b5=(e,n)=>xl(e,"name",{value:n,configurable:!0}),E5=(e,n)=>{for(var t in n)xl(e,t,{get:n[t],enumerable:!0})},P5=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of C5(n))!S5.call(e,o)&&o!==t&&xl(e,o,{get:()=>n[o],enumerable:!(r=_5(n,o))||r.enumerable});return e},v5=e=>P5(xl({},"__esModule",{value:!0}),e),SO={};E5(SO,{calculateBodyLength:()=>w5});bO.exports=v5(SO);var CO=require("fs"),w5=b5(e=>{if(!e)return 0;if(typeof e=="string")return Buffer.from(e).length;if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.start=="number"&&typeof e.end=="number")return e.end+1-e.start;if(typeof e.path=="string"||Buffer.isBuffer(e.path))return(0,CO.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,CO.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)},"calculateBodyLength")});var BO=m(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.ruleSet=void 0;var IO="required",un="fn",mn="argv",Yr="ref",EO="isSet",ln="tree",Wr="error",ga="endpoint",sy="PartitionResult",PO={[IO]:!1,type:"String"},vO={[IO]:!0,default:!1,type:"Boolean"},wO={[Yr]:"Endpoint"},RO={[un]:"booleanEquals",[mn]:[{[Yr]:"UseFIPS"},!0]},TO={[un]:"booleanEquals",[mn]:[{[Yr]:"UseDualStack"},!0]},zt={},xO={[un]:"booleanEquals",[mn]:[!0,{[un]:"getAttr",[mn]:[{[Yr]:sy},"supportsFIPS"]}]},kO={[un]:"booleanEquals",[mn]:[!0,{[un]:"getAttr",[mn]:[{[Yr]:sy},"supportsDualStack"]}]},AO=[RO],OO=[TO],NO=[{[Yr]:"Region"}],x5={version:"1.0",parameters:{Region:PO,UseDualStack:vO,UseFIPS:vO,Endpoint:PO},rules:[{conditions:[{[un]:EO,[mn]:[wO]}],type:ln,rules:[{conditions:AO,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Wr},{conditions:OO,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Wr},{endpoint:{url:wO,properties:zt,headers:zt},type:ga}]},{conditions:[{[un]:EO,[mn]:NO}],type:ln,rules:[{conditions:[{[un]:"aws.partition",[mn]:NO,assign:sy}],type:ln,rules:[{conditions:[RO,TO],type:ln,rules:[{conditions:[xO,kO],type:ln,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zt,headers:zt},type:ga}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Wr}]},{conditions:AO,type:ln,rules:[{conditions:[xO],type:ln,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:zt,headers:zt},type:ga}]},{error:"FIPS is enabled but this partition does not support FIPS",type:Wr}]},{conditions:OO,type:ln,rules:[{conditions:[kO],type:ln,rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zt,headers:zt},type:ga}]},{error:"DualStack is enabled but this partition does not support DualStack",type:Wr}]},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:zt,headers:zt},type:ga}]}]},{error:"Invalid Configuration: Missing Region",type:Wr}]};kl.ruleSet=x5});var qO=m(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.defaultEndpointResolver=void 0;var k5=jr(),A5=BO(),O5=(e,n={})=>(0,k5.resolveEndpoint)(A5.ruleSet,{endpointParams:e,logger:n.logger});Al.defaultEndpointResolver=O5});var FO=m(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.getRuntimeConfig=void 0;var N5=b(),I5=mr(),DO=Pr(),MO=yt(),R5=qO(),T5=e=>({apiVersion:"2019-06-10",base64Decoder:(e==null?void 0:e.base64Decoder)??DO.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??DO.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??R5.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new N5.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"SSO",urlParser:(e==null?void 0:e.urlParser)??I5.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??MO.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??MO.toUtf8});Ol.getRuntimeConfig=T5});var _a=m((Yve,HO)=>{var B5=Object.create,ha=Object.defineProperty,q5=Object.getOwnPropertyDescriptor,D5=Object.getOwnPropertyNames,M5=Object.getPrototypeOf,F5=Object.prototype.hasOwnProperty,iy=(e,n)=>ha(e,"name",{value:n,configurable:!0}),L5=(e,n)=>{for(var t in n)ha(e,t,{get:n[t],enumerable:!0})},UO=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of D5(n))!F5.call(e,o)&&o!==t&&ha(e,o,{get:()=>n[o],enumerable:!(r=q5(n,o))||r.enumerable});return e},j5=(e,n,t)=>(t=e!=null?B5(M5(e)):{},UO(n||!e||!e.__esModule?ha(t,"default",{value:e,enumerable:!0}):t,e)),z5=e=>UO(ha({},"__esModule",{value:!0}),e),GO={};L5(GO,{resolveDefaultsModeConfig:()=>J5});HO.exports=z5(GO);var U5=Mt(),LO=on(),G5=xe(),H5="AWS_EXECUTION_ENV",jO="AWS_REGION",zO="AWS_DEFAULT_REGION",$5="AWS_EC2_METADATA_DISABLED",K5=["in-region","cross-region","mobile","standard","legacy"],V5="/latest/meta-data/placement/region",X5="AWS_DEFAULTS_MODE",W5="defaults_mode",Y5={environmentVariableSelector:e=>e[X5],configFileSelector:e=>e[W5],default:"legacy"},J5=iy(({region:e=(0,LO.loadConfig)(U5.NODE_REGION_CONFIG_OPTIONS),defaultsMode:n=(0,LO.loadConfig)(Y5)}={})=>(0,G5.memoize)(async()=>{let t=typeof n=="function"?await n():n;switch(t==null?void 0:t.toLowerCase()){case"auto":return Q5(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(t==null?void 0:t.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${K5.join(", ")}, got ${t}`)}}),"resolveDefaultsModeConfig"),Q5=iy(async e=>{if(e){let n=typeof e=="function"?await e():e,t=await Z5();return t?n===t?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),Z5=iy(async()=>{if(process.env[H5]&&(process.env[jO]||process.env[zO]))return process.env[jO]??process.env[zO];if(!process.env[$5])try{let{getInstanceMetadataEndpoint:e,httpRequest:n}=await Promise.resolve().then(()=>j5(hl())),t=await e();return(await n({...t,path:V5})).toString()}catch{}},"inferPhysicalRegion")});var VO=m(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.getRuntimeConfig=void 0;var e9=(te(),Y(ee)),t9=e9.__importDefault(lO()),n9=pa(),Nl=Mt(),r9=fa(),$O=sn(),Ca=on(),KO=vr(),o9=ya(),s9=zr(),i9=FO(),a9=b(),c9=_a(),d9=b(),l9=e=>{(0,d9.emitWarningIfUnsupportedVersion)(process.version);let n=(0,c9.resolveDefaultsModeConfig)(e),t=()=>n().then(a9.loadConfigsForDefaultMode),r=(0,i9.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??o9.calculateBodyLength,defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,n9.defaultUserAgent)({serviceId:r.serviceId,clientVersion:t9.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,Ca.loadConfig)($O.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(e==null?void 0:e.region)??(0,Ca.loadConfig)(Nl.NODE_REGION_CONFIG_OPTIONS,Nl.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new KO.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,Ca.loadConfig)({...$O.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||s9.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??r9.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??KO.streamCollector,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,Ca.loadConfig)(Nl.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,Ca.loadConfig)(Nl.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};Il.getRuntimeConfig=l9});var XO=m(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.resolveAwsRegionExtensionConfiguration=Jr.getAwsRegionExtensionConfiguration=void 0;var u9=e=>{let n=async()=>{if(e.region===void 0)throw new Error("Region is missing from runtimeConfig");let t=e.region;return typeof t=="string"?t:t()};return{setRegion(t){n=t},region(){return n}}};Jr.getAwsRegionExtensionConfiguration=u9;var m9=e=>({region:e.region()});Jr.resolveAwsRegionExtensionConfiguration=m9});var WO=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.NODE_REGION_CONFIG_FILE_OPTIONS=_t.NODE_REGION_CONFIG_OPTIONS=_t.REGION_INI_NAME=_t.REGION_ENV_NAME=void 0;_t.REGION_ENV_NAME="AWS_REGION";_t.REGION_INI_NAME="region";_t.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[_t.REGION_ENV_NAME],configFileSelector:e=>e[_t.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};_t.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var ay=m(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.isFipsRegion=void 0;var p9=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));Rl.isFipsRegion=p9});var YO=m(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.getRealRegion=void 0;var f9=ay(),y9=e=>(0,f9.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;Tl.getRealRegion=y9});var QO=m(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.resolveRegionConfig=void 0;var JO=YO(),g9=ay(),h9=e=>{let{region:n,useFipsEndpoint:t}=e;if(!n)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof n=="string")return(0,JO.getRealRegion)(n);let r=await n();return(0,JO.getRealRegion)(r)},useFipsEndpoint:async()=>{let r=typeof n=="string"?n:await n();return(0,g9.isFipsRegion)(r)?!0:typeof t!="function"?Promise.resolve(!!t):t()}}};Bl.resolveRegionConfig=h9});var eN=m(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var ZO=(te(),Y(ee));ZO.__exportStar(WO(),ql);ZO.__exportStar(QO(),ql)});var Ml=m(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var tN=(te(),Y(ee));tN.__exportStar(XO(),Dl);tN.__exportStar(eN(),Dl)});var sN=m(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.resolveRuntimeExtensions=void 0;var nN=Ml(),rN=Ne(),oN=b(),cy=e=>e,_9=(e,n)=>{let t={...cy((0,nN.getAwsRegionExtensionConfiguration)(e)),...cy((0,oN.getDefaultExtensionConfiguration)(e)),...cy((0,rN.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,nN.resolveAwsRegionExtensionConfiguration)(t),...(0,oN.resolveDefaultRuntimeConfig)(t),...(0,rN.resolveHttpHandlerRuntimeConfig)(t)}};Fl.resolveRuntimeExtensions=_9});var Sa=m(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.SSOClient=Qr.__Client=void 0;var iN=Ni(),C9=Ii(),S9=Ri(),aN=Ji(),b9=Mt(),E9=Qi(),P9=x(),cN=sn(),dN=b();Object.defineProperty(Qr,"__Client",{enumerable:!0,get:function(){return dN.Client}});var v9=dO(),w9=VO(),x9=sN(),dy=class extends dN.Client{constructor(...[n]){let t=(0,w9.getRuntimeConfig)(n||{}),r=(0,v9.resolveClientEndpointParameters)(t),o=(0,b9.resolveRegionConfig)(r),s=(0,P9.resolveEndpointConfig)(o),c=(0,cN.resolveRetryConfig)(s),i=(0,iN.resolveHostHeaderConfig)(c),u=(0,aN.resolveUserAgentConfig)(i),l=(0,x9.resolveRuntimeExtensions)(u,(n==null?void 0:n.extensions)||[]);super(l),this.config=l,this.middlewareStack.use((0,cN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,E9.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,iN.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,C9.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,S9.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,aN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Qr.SSOClient=dy});var Ll=m(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.SSOServiceException=Zr.__ServiceException=void 0;var lN=b();Object.defineProperty(Zr,"__ServiceException",{enumerable:!0,get:function(){return lN.ServiceException}});var ly=class e extends lN.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};Zr.SSOServiceException=ly});var fr=m(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.LogoutRequestFilterSensitiveLog=we.ListAccountsRequestFilterSensitiveLog=we.ListAccountRolesRequestFilterSensitiveLog=we.GetRoleCredentialsResponseFilterSensitiveLog=we.RoleCredentialsFilterSensitiveLog=we.GetRoleCredentialsRequestFilterSensitiveLog=we.UnauthorizedException=we.TooManyRequestsException=we.ResourceNotFoundException=we.InvalidRequestException=void 0;var eo=b(),jl=Ll(),uy=class e extends jl.SSOServiceException{constructor(n){super({name:"InvalidRequestException",$fault:"client",...n}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.InvalidRequestException=uy;var my=class e extends jl.SSOServiceException{constructor(n){super({name:"ResourceNotFoundException",$fault:"client",...n}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.ResourceNotFoundException=my;var py=class e extends jl.SSOServiceException{constructor(n){super({name:"TooManyRequestsException",$fault:"client",...n}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.TooManyRequestsException=py;var fy=class e extends jl.SSOServiceException{constructor(n){super({name:"UnauthorizedException",$fault:"client",...n}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};we.UnauthorizedException=fy;var k9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.GetRoleCredentialsRequestFilterSensitiveLog=k9;var A9=e=>({...e,...e.secretAccessKey&&{secretAccessKey:eo.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:eo.SENSITIVE_STRING}});we.RoleCredentialsFilterSensitiveLog=A9;var O9=e=>({...e,...e.roleCredentials&&{roleCredentials:(0,we.RoleCredentialsFilterSensitiveLog)(e.roleCredentials)}});we.GetRoleCredentialsResponseFilterSensitiveLog=O9;var N9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.ListAccountRolesRequestFilterSensitiveLog=N9;var I9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.ListAccountsRequestFilterSensitiveLog=I9;var R9=e=>({...e,...e.accessToken&&{accessToken:eo.SENSITIVE_STRING}});we.LogoutRequestFilterSensitiveLog=R9});var ba=m(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.de_LogoutCommand=ze.de_ListAccountsCommand=ze.de_ListAccountRolesCommand=ze.de_GetRoleCredentialsCommand=ze.se_LogoutCommand=ze.se_ListAccountsCommand=ze.se_ListAccountRolesCommand=ze.se_GetRoleCredentialsCommand=void 0;var zl=Ne(),J=b(),Ul=fr(),T9=Ll(),B9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,u=(0,J.map)({role_name:[,(0,J.expectNonNull)(e.roleName,"roleName")],account_id:[,(0,J.expectNonNull)(e.accountId,"accountId")]}),l;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};ze.se_GetRoleCredentialsCommand=B9;var q9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,u=(0,J.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,(0,J.expectNonNull)(e.accountId,"accountId")]}),l;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};ze.se_ListAccountRolesCommand=q9;var D9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,u=(0,J.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]}),l;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};ze.se_ListAccountsCommand=D9;var M9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,J.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,u;return new zl.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})};ze.se_LogoutCommand=M9;var F9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return L9(e,n);let t=(0,J.map)({$metadata:$n(e)}),r=(0,J.expectNonNull)((0,J.expectObject)(await Xl(e.body,n)),"body"),o=(0,J.take)(r,{roleCredentials:J._json});return Object.assign(t,o),t};ze.de_GetRoleCredentialsCommand=F9;var L9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await yy(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},j9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return z9(e,n);let t=(0,J.map)({$metadata:$n(e)}),r=(0,J.expectNonNull)((0,J.expectObject)(await Xl(e.body,n)),"body"),o=(0,J.take)(r,{nextToken:J.expectString,roleList:J._json});return Object.assign(t,o),t};ze.de_ListAccountRolesCommand=j9;var z9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await yy(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},U9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return G9(e,n);let t=(0,J.map)({$metadata:$n(e)}),r=(0,J.expectNonNull)((0,J.expectObject)(await Xl(e.body,n)),"body"),o=(0,J.take)(r,{accountList:J._json,nextToken:J.expectString});return Object.assign(t,o),t};ze.de_ListAccountsCommand=U9;var G9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await yy(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},H9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $9(e,n);let t=(0,J.map)({$metadata:$n(e)});return await(0,J.collectBody)(e.body,n),t};ze.de_LogoutCommand=H9;var $9=async(e,n)=>{let t={...e,body:await Wl(e.body,n)},r=Yl(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Hl(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await $l(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Kl(t,n);default:let o=t.body;return Gl({output:e,parsedBody:o,errorCode:r})}},Gl=(0,J.withBaseException)(T9.SSOServiceException),Hl=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.InvalidRequestException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},yy=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.ResourceNotFoundException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},$l=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.TooManyRequestsException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},Kl=async(e,n)=>{let t=(0,J.map)({}),r=e.body,o=(0,J.take)(r,{message:J.expectString});Object.assign(t,o);let s=new Ul.UnauthorizedException({$metadata:$n(e),...t});return(0,J.decorateServiceException)(s,e.body)},$n=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),K9=(e,n)=>(0,J.collectBody)(e,n).then(t=>n.utf8Encoder(t)),Vl=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Xl=(e,n)=>K9(e,n).then(t=>t.length?JSON.parse(t):{}),Wl=async(e,n)=>{let t=await Xl(e,n);return t.message=t.message??t.Message,t},Yl=(e,n)=>{let t=(s,c)=>Object.keys(s).find(i=>i.toLowerCase()===c.toLowerCase()),r=s=>{let c=s;return typeof c=="number"&&(c=c.toString()),c.indexOf(",")>=0&&(c=c.split(",")[0]),c.indexOf(":")>=0&&(c=c.split(":")[0]),c.indexOf("#")>=0&&(c=c.split("#")[1]),c},o=t(e.headers,"x-amzn-errortype");if(o!==void 0)return r(e.headers[o]);if(n.code!==void 0)return r(n.code);if(n.__type!==void 0)return r(n.__type)}});var hy=m(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.GetRoleCredentialsCommand=to.$Command=void 0;var V9=x(),X9=k(),pN=b();Object.defineProperty(to,"$Command",{enumerable:!0,get:function(){return pN.Command}});var W9=w(),uN=fr(),mN=ba(),gy=class e extends pN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,X9.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,V9.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:uN.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:uN.GetRoleCredentialsResponseFilterSensitiveLog,[W9.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"GetRoleCredentials"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,mN.se_GetRoleCredentialsCommand)(n,t)}deserialize(n,t){return(0,mN.de_GetRoleCredentialsCommand)(n,t)}};to.GetRoleCredentialsCommand=gy});var Jl=m(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.ListAccountRolesCommand=no.$Command=void 0;var Y9=x(),J9=k(),yN=b();Object.defineProperty(no,"$Command",{enumerable:!0,get:function(){return yN.Command}});var Q9=w(),Z9=fr(),fN=ba(),_y=class e extends yN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,J9.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Y9.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:Z9.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[Q9.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccountRoles"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,fN.se_ListAccountRolesCommand)(n,t)}deserialize(n,t){return(0,fN.de_ListAccountRolesCommand)(n,t)}};no.ListAccountRolesCommand=_y});var Ql=m(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.ListAccountsCommand=ro.$Command=void 0;var eY=x(),tY=k(),hN=b();Object.defineProperty(ro,"$Command",{enumerable:!0,get:function(){return hN.Command}});var nY=w(),rY=fr(),gN=ba(),Cy=class e extends hN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,tY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,eY.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:rY.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[nY.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccounts"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,gN.se_ListAccountsCommand)(n,t)}deserialize(n,t){return(0,gN.de_ListAccountsCommand)(n,t)}};ro.ListAccountsCommand=Cy});var by=m(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.LogoutCommand=oo.$Command=void 0;var oY=x(),sY=k(),CN=b();Object.defineProperty(oo,"$Command",{enumerable:!0,get:function(){return CN.Command}});var iY=w(),aY=fr(),_N=ba(),Sy=class e extends CN.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,sY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,oY.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:aY.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[iY.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"Logout"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_N.se_LogoutCommand)(n,t)}deserialize(n,t){return(0,_N.de_LogoutCommand)(n,t)}};oo.LogoutCommand=Sy});var SN=m(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.SSO=void 0;var cY=b(),dY=hy(),lY=Jl(),uY=Ql(),mY=by(),pY=Sa(),fY={GetRoleCredentialsCommand:dY.GetRoleCredentialsCommand,ListAccountRolesCommand:lY.ListAccountRolesCommand,ListAccountsCommand:uY.ListAccountsCommand,LogoutCommand:mY.LogoutCommand},Zl=class extends pY.SSOClient{};eu.SSO=Zl;(0,cY.createAggregatedClient)(fY,Zl)});var bN=m(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});var tu=(te(),Y(ee));tu.__exportStar(hy(),so);tu.__exportStar(Jl(),so);tu.__exportStar(Ql(),so);tu.__exportStar(by(),so)});var PN=m(EN=>{"use strict";Object.defineProperty(EN,"__esModule",{value:!0})});var vN=m(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.paginateListAccountRoles=void 0;var yY=Jl(),gY=Sa(),hY=async(e,n,...t)=>await e.send(new yY.ListAccountRolesCommand(n),...t);async function*_Y(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.nextToken=r,n.maxResults=e.pageSize,e.client instanceof gY.SSOClient)s=await hY(e.client,n,...t);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let c=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}nu.paginateListAccountRoles=_Y});var wN=m(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.paginateListAccounts=void 0;var CY=Ql(),SY=Sa(),bY=async(e,n,...t)=>await e.send(new CY.ListAccountsCommand(n),...t);async function*EY(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.nextToken=r,n.maxResults=e.pageSize,e.client instanceof SY.SSOClient)s=await bY(e.client,n,...t);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let c=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}ru.paginateListAccounts=EY});var xN=m(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var Ey=(te(),Y(ee));Ey.__exportStar(PN(),Ea);Ey.__exportStar(vN(),Ea);Ey.__exportStar(wN(),Ea)});var kN=m(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var PY=(te(),Y(ee));PY.__exportStar(fr(),Py)});var AN=m(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.SSOServiceException=void 0;var Pa=(te(),Y(ee));Pa.__exportStar(Sa(),pn);Pa.__exportStar(SN(),pn);Pa.__exportStar(bN(),pn);Pa.__exportStar(xN(),pn);Pa.__exportStar(kN(),pn);var vY=Ll();Object.defineProperty(pn,"SSOServiceException",{enumerable:!0,get:function(){return vY.SSOServiceException}})});var iu=m(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.UnsupportedGrantTypeException=he.UnauthorizedClientException=he.SlowDownException=he.SSOOIDCClient=he.InvalidScopeException=he.InvalidRequestException=he.InvalidClientException=he.InternalServerException=he.ExpiredTokenException=he.CreateTokenCommand=he.AuthorizationPendingException=he.AccessDeniedException=void 0;var ON=Ni(),wY=Ii(),xY=Ri(),NN=Ji(),kY=Mt(),AY=Qi(),OY=x(),IN=sn(),NY=b(),IY=e=>{var n,t;return{...e,useDualstackEndpoint:(n=e.useDualstackEndpoint)!==null&&n!==void 0?n:!1,useFipsEndpoint:(t=e.useFipsEndpoint)!==null&&t!==void 0?t:!1,defaultSigningName:"awsssooidc"}},RY={version:"3.387.0"},TY=pa(),ou=Mt(),BY=fa(),RN=sn(),va=on(),TN=vr(),qY=ya(),DY=zr(),MY=b(),FY=mr(),BN=Pr(),qN=yt(),LY=jr(),GN="required",fn="fn",yn="argv",io="ref",vy="PartitionResult",Ut="tree",wa="error",xa="endpoint",DN={[GN]:!1,type:"String"},MN={[GN]:!0,default:!1,type:"Boolean"},HN={[io]:"Endpoint"},$N={[fn]:"booleanEquals",[yn]:[{[io]:"UseFIPS"},!0]},KN={[fn]:"booleanEquals",[yn]:[{[io]:"UseDualStack"},!0]},Gt={},FN={[fn]:"booleanEquals",[yn]:[!0,{[fn]:"getAttr",[yn]:[{[io]:vy},"supportsFIPS"]}]},LN={[fn]:"booleanEquals",[yn]:[!0,{[fn]:"getAttr",[yn]:[{[io]:vy},"supportsDualStack"]}]},jN=[HN],zN=[$N],UN=[KN],jY={version:"1.0",parameters:{Region:DN,UseDualStack:MN,UseFIPS:MN,Endpoint:DN},rules:[{conditions:[{[fn]:"aws.partition",[yn]:[{[io]:"Region"}],assign:vy}],type:Ut,rules:[{conditions:[{[fn]:"isSet",[yn]:jN},{[fn]:"parseURL",[yn]:jN,assign:"url"}],type:Ut,rules:[{conditions:zN,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:wa},{type:Ut,rules:[{conditions:UN,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:wa},{endpoint:{url:HN,properties:Gt,headers:Gt},type:xa}]}]},{conditions:[$N,KN],type:Ut,rules:[{conditions:[FN,LN],type:Ut,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Gt,headers:Gt},type:xa}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:wa}]},{conditions:zN,type:Ut,rules:[{conditions:[FN],type:Ut,rules:[{type:Ut,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Gt,headers:Gt},type:xa}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:wa}]},{conditions:UN,type:Ut,rules:[{conditions:[LN],type:Ut,rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Gt,headers:Gt},type:xa}]},{error:"DualStack is enabled but this partition does not support DualStack",type:wa}]},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:Gt,headers:Gt},type:xa}]}]},zY=jY,UY=(e,n={})=>(0,LY.resolveEndpoint)(zY,{endpointParams:e,logger:n.logger}),GY=e=>{var n,t,r,o,s,c,i,u,l;return{apiVersion:"2019-06-10",base64Decoder:(n=e==null?void 0:e.base64Decoder)!==null&&n!==void 0?n:BN.fromBase64,base64Encoder:(t=e==null?void 0:e.base64Encoder)!==null&&t!==void 0?t:BN.toBase64,disableHostPrefix:(r=e==null?void 0:e.disableHostPrefix)!==null&&r!==void 0?r:!1,endpointProvider:(o=e==null?void 0:e.endpointProvider)!==null&&o!==void 0?o:UY,logger:(s=e==null?void 0:e.logger)!==null&&s!==void 0?s:new MY.NoOpLogger,serviceId:(c=e==null?void 0:e.serviceId)!==null&&c!==void 0?c:"SSO OIDC",urlParser:(i=e==null?void 0:e.urlParser)!==null&&i!==void 0?i:FY.parseUrl,utf8Decoder:(u=e==null?void 0:e.utf8Decoder)!==null&&u!==void 0?u:qN.fromUtf8,utf8Encoder:(l=e==null?void 0:e.utf8Encoder)!==null&&l!==void 0?l:qN.toUtf8}},HY=b(),$Y=_a(),KY=b(),VY=e=>{var n,t,r,o,s,c,i,u,l,a;(0,KY.emitWarningIfUnsupportedVersion)(process.version);let y=(0,$Y.resolveDefaultsModeConfig)(e),g=()=>y().then(HY.loadConfigsForDefaultMode),C=GY(e);return{...C,...e,runtime:"node",defaultsMode:y,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:qY.calculateBodyLength,defaultUserAgentProvider:(t=e==null?void 0:e.defaultUserAgentProvider)!==null&&t!==void 0?t:(0,TY.defaultUserAgent)({serviceId:C.serviceId,clientVersion:RY.version}),maxAttempts:(r=e==null?void 0:e.maxAttempts)!==null&&r!==void 0?r:(0,va.loadConfig)(RN.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(o=e==null?void 0:e.region)!==null&&o!==void 0?o:(0,va.loadConfig)(ou.NODE_REGION_CONFIG_OPTIONS,ou.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(s=e==null?void 0:e.requestHandler)!==null&&s!==void 0?s:new TN.NodeHttpHandler(g),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:(0,va.loadConfig)({...RN.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await g()).retryMode||DY.DEFAULT_RETRY_MODE}),sha256:(i=e==null?void 0:e.sha256)!==null&&i!==void 0?i:BY.Hash.bind(null,"sha256"),streamCollector:(u=e==null?void 0:e.streamCollector)!==null&&u!==void 0?u:TN.streamCollector,useDualstackEndpoint:(l=e==null?void 0:e.useDualstackEndpoint)!==null&&l!==void 0?l:(0,va.loadConfig)(ou.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(a=e==null?void 0:e.useFipsEndpoint)!==null&&a!==void 0?a:(0,va.loadConfig)(ou.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}},VN=class extends NY.Client{constructor(...[e]){let n=VY(e||{}),t=IY(n),r=(0,kY.resolveRegionConfig)(t),o=(0,OY.resolveEndpointConfig)(r),s=(0,IN.resolveRetryConfig)(o),c=(0,ON.resolveHostHeaderConfig)(s),i=(0,NN.resolveUserAgentConfig)(c);super(i),this.config=i,this.middlewareStack.use((0,IN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,AY.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,ON.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,wY.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,xY.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,NN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};he.SSOOIDCClient=VN;var XY=b(),WY=x(),YY=k(),JY=b(),wy=Ne(),R=b(),QY=b(),lt=class XN extends QY.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,XN.prototype)}},WN=class YN extends lt{constructor(n){super({name:"AccessDeniedException",$fault:"client",...n}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,YN.prototype),this.error=n.error,this.error_description=n.error_description}};he.AccessDeniedException=WN;var JN=class QN extends lt{constructor(n){super({name:"AuthorizationPendingException",$fault:"client",...n}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,QN.prototype),this.error=n.error,this.error_description=n.error_description}};he.AuthorizationPendingException=JN;var ZN=class eI extends lt{constructor(n){super({name:"ExpiredTokenException",$fault:"client",...n}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,eI.prototype),this.error=n.error,this.error_description=n.error_description}};he.ExpiredTokenException=ZN;var tI=class nI extends lt{constructor(n){super({name:"InternalServerException",$fault:"server",...n}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,nI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InternalServerException=tI;var rI=class oI extends lt{constructor(n){super({name:"InvalidClientException",$fault:"client",...n}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,oI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InvalidClientException=rI;var ZY=class sI extends lt{constructor(n){super({name:"InvalidGrantException",$fault:"client",...n}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,sI.prototype),this.error=n.error,this.error_description=n.error_description}},iI=class aI extends lt{constructor(n){super({name:"InvalidRequestException",$fault:"client",...n}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,aI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InvalidRequestException=iI;var cI=class dI extends lt{constructor(n){super({name:"InvalidScopeException",$fault:"client",...n}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,dI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InvalidScopeException=cI;var lI=class uI extends lt{constructor(n){super({name:"SlowDownException",$fault:"client",...n}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,uI.prototype),this.error=n.error,this.error_description=n.error_description}};he.SlowDownException=lI;var mI=class pI extends lt{constructor(n){super({name:"UnauthorizedClientException",$fault:"client",...n}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,pI.prototype),this.error=n.error,this.error_description=n.error_description}};he.UnauthorizedClientException=mI;var fI=class yI extends lt{constructor(n){super({name:"UnsupportedGrantTypeException",$fault:"client",...n}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,yI.prototype),this.error=n.error,this.error_description=n.error_description}};he.UnsupportedGrantTypeException=fI;var e7=class gI extends lt{constructor(n){super({name:"InvalidClientMetadataException",$fault:"client",...n}),this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,gI.prototype),this.error=n.error,this.error_description=n.error_description}},t7=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/token`,u;return u=JSON.stringify((0,R.take)(e,{clientId:[],clientSecret:[],code:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:l=>(0,R._json)(l)})),new wy.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})},n7=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/client/register`,u;return u=JSON.stringify((0,R.take)(e,{clientName:[],clientType:[],scopes:l=>(0,R._json)(l)})),new wy.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})},r7=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/device_authorization`,u;return u=JSON.stringify((0,R.take)(e,{clientId:[],clientSecret:[],startUrl:[]})),new wy.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})},o7=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return s7(e,n);let t=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await su(e.body,n)),"body"),o=(0,R.take)(r,{accessToken:R.expectString,expiresIn:R.expectInt32,idToken:R.expectString,refreshToken:R.expectString,tokenType:R.expectString});return Object.assign(t,o),t},s7=async(e,n)=>{let t={...e,body:await Oy(e.body,n)},r=Ny(e,t.body);switch(r){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await l7(t,n);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await u7(t,n);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await m7(t,n);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await ky(t,n);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await hI(t,n);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await f7(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Ay(t,n);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await _I(t,n);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await CI(t,n);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await SI(t,n);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await y7(t,n);default:let o=t.body;return xy({output:e,parsedBody:o,errorCode:r})}},i7=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return a7(e,n);let t=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await su(e.body,n)),"body"),o=(0,R.take)(r,{authorizationEndpoint:R.expectString,clientId:R.expectString,clientIdIssuedAt:R.expectLong,clientSecret:R.expectString,clientSecretExpiresAt:R.expectLong,tokenEndpoint:R.expectString});return Object.assign(t,o),t},a7=async(e,n)=>{let t={...e,body:await Oy(e.body,n)},r=Ny(e,t.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await ky(t,n);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await p7(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Ay(t,n);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await _I(t,n);default:let o=t.body;return xy({output:e,parsedBody:o,errorCode:r})}},c7=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return d7(e,n);let t=(0,R.map)({$metadata:rt(e)}),r=(0,R.expectNonNull)((0,R.expectObject)(await su(e.body,n)),"body"),o=(0,R.take)(r,{deviceCode:R.expectString,expiresIn:R.expectInt32,interval:R.expectInt32,userCode:R.expectString,verificationUri:R.expectString,verificationUriComplete:R.expectString});return Object.assign(t,o),t},d7=async(e,n)=>{let t={...e,body:await Oy(e.body,n)},r=Ny(e,t.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await ky(t,n);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await hI(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Ay(t,n);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await CI(t,n);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await SI(t,n);default:let o=t.body;return xy({output:e,parsedBody:o,errorCode:r})}},xy=(0,R.withBaseException)(lt),l7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new WN({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},u7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new JN({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},m7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new ZN({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},ky=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new tI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},hI=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new rI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},p7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new e7({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},f7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new ZY({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},Ay=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new iI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},_I=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new cI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},CI=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new lI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},SI=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new mI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},y7=async(e,n)=>{let t=(0,R.map)({}),r=e.body,o=(0,R.take)(r,{error:R.expectString,error_description:R.expectString});Object.assign(t,o);let s=new fI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},rt=e=>{var n,t;return{httpStatusCode:e.statusCode,requestId:(t=(n=e.headers["x-amzn-requestid"])!==null&&n!==void 0?n:e.headers["x-amzn-request-id"])!==null&&t!==void 0?t:e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},g7=(e,n)=>(0,R.collectBody)(e,n).then(t=>n.utf8Encoder(t)),su=(e,n)=>g7(e,n).then(t=>t.length?JSON.parse(t):{}),Oy=async(e,n)=>{var t;let r=await su(e,n);return r.message=(t=r.message)!==null&&t!==void 0?t:r.Message,r},Ny=(e,n)=>{let t=(s,c)=>Object.keys(s).find(i=>i.toLowerCase()===c.toLowerCase()),r=s=>{let c=s;return typeof c=="number"&&(c=c.toString()),c.indexOf(",")>=0&&(c=c.split(",")[0]),c.indexOf(":")>=0&&(c=c.split(":")[0]),c.indexOf("#")>=0&&(c=c.split("#")[1]),c},o=t(e.headers,"x-amzn-errortype");if(o!==void 0)return r(e.headers[o]);if(n.code!==void 0)return r(n.code);if(n.__type!==void 0)return r(n.__type)},bI=class EI extends JY.Command{constructor(n){super(),this.input=n}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(n,t,r){this.middlewareStack.use((0,YY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,WY.getEndpointPlugin)(t,EI.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"CreateTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return t7(n,t)}deserialize(n,t){return o7(n,t)}};he.CreateTokenCommand=bI;var h7=x(),_7=k(),C7=b(),S7=class PI extends C7.Command{constructor(n){super(),this.input=n}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_7.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,h7.getEndpointPlugin)(t,PI.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"RegisterClientCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return n7(n,t)}deserialize(n,t){return i7(n,t)}},b7=x(),E7=k(),P7=b(),v7=class vI extends P7.Command{constructor(n){super(),this.input=n}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(n,t,r){this.middlewareStack.use((0,E7.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,b7.getEndpointPlugin)(t,vI.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"StartDeviceAuthorizationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return r7(n,t)}deserialize(n,t){return c7(n,t)}},w7={CreateTokenCommand:bI,RegisterClientCommand:S7,StartDeviceAuthorizationCommand:v7},x7=class extends VN{};(0,XY.createAggregatedClient)(w7,x7)});var au=m(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.REFRESH_MESSAGE=ao.EXPIRE_WINDOW_MS=void 0;ao.EXPIRE_WINDOW_MS=5*60*1e3;ao.REFRESH_MESSAGE="To refresh this SSO session run 'aws sso login' with the corresponding profile."});var wI=m(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.getSsoOidcClient=void 0;var k7=iu(),Iy={},A7=e=>{if(Iy[e])return Iy[e];let n=new k7.SSOOIDCClient({region:e});return Iy[e]=n,n};cu.getSsoOidcClient=A7});var xI=m(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.getNewSsoOidcToken=void 0;var O7=iu(),N7=wI(),I7=(e,n)=>(0,N7.getSsoOidcClient)(n).send(new O7.CreateTokenCommand({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}));du.getNewSsoOidcToken=I7});var kI=m(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.validateTokenExpiry=void 0;var R7=xe(),T7=au(),B7=e=>{if(e.expiration&&e.expiration.getTime(){"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.validateTokenKey=void 0;var q7=xe(),D7=au(),M7=(e,n,t=!1)=>{if(typeof n>"u")throw new q7.TokenProviderError(`Value not present for '${e}' in SSO Token${t?". Cannot refresh":""}. ${D7.REFRESH_MESSAGE}`,!1)};uu.validateTokenKey=M7});var OI=m(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.writeSSOTokenToFile=void 0;var F7=wt(),L7=require("fs"),{writeFile:j7}=L7.promises,z7=(e,n)=>{let t=(0,F7.getSSOTokenFilepath)(e),r=JSON.stringify(n,null,2);return j7(t,r)};mu.writeSSOTokenToFile=z7});var Ry=m(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.fromSso=void 0;var ka=xe(),pu=wt(),NI=au(),U7=xI(),II=kI(),yr=AI(),G7=OI(),RI=new Date(0),H7=(e={})=>async()=>{let n=await(0,pu.parseKnownFiles)(e),t=(0,pu.getProfileName)(e),r=n[t];if(r){if(!r.sso_session)throw new ka.TokenProviderError(`Profile '${t}' is missing required property 'sso_session'.`)}else throw new ka.TokenProviderError(`Profile '${t}' could not be found in shared credentials file.`,!1);let o=r.sso_session,c=(await(0,pu.loadSsoSessionData)(e))[o];if(!c)throw new ka.TokenProviderError(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let C of["sso_start_url","sso_region"])if(!c[C])throw new ka.TokenProviderError(`Sso session '${o}' is missing required property '${C}'.`,!1);let i=c.sso_start_url,u=c.sso_region,l;try{l=await(0,pu.getSSOTokenFromFile)(o)}catch{throw new ka.TokenProviderError(`The SSO session token associated with profile=${t} was not found or is invalid. ${NI.REFRESH_MESSAGE}`,!1)}(0,yr.validateTokenKey)("accessToken",l.accessToken),(0,yr.validateTokenKey)("expiresAt",l.expiresAt);let{accessToken:a,expiresAt:y}=l,g={token:a,expiration:new Date(y)};if(g.expiration.getTime()-Date.now()>NI.EXPIRE_WINDOW_MS)return g;if(Date.now()-RI.getTime()<30*1e3)return(0,II.validateTokenExpiry)(g),g;(0,yr.validateTokenKey)("clientId",l.clientId,!0),(0,yr.validateTokenKey)("clientSecret",l.clientSecret,!0),(0,yr.validateTokenKey)("refreshToken",l.refreshToken,!0);try{RI.setTime(Date.now());let C=await(0,U7.getNewSsoOidcToken)(l,u);(0,yr.validateTokenKey)("accessToken",C.accessToken),(0,yr.validateTokenKey)("expiresIn",C.expiresIn);let v=new Date(Date.now()+C.expiresIn*1e3);try{await(0,G7.writeSSOTokenToFile)(o,{...l,accessToken:C.accessToken,expiresAt:v.toISOString(),refreshToken:C.refreshToken})}catch{}return{token:C.accessToken,expiration:v}}catch{return(0,II.validateTokenExpiry)(g),g}};fu.fromSso=H7});var TI=m(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.fromStatic=void 0;var $7=xe(),K7=({token:e})=>async()=>{if(!e||!e.token)throw new $7.TokenProviderError("Please pass a valid token to fromStatic",!1);return e};yu.fromStatic=K7});var BI=m(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.nodeProvider=void 0;var Ty=xe(),V7=Ry(),X7=(e={})=>(0,Ty.memoize)((0,Ty.chain)((0,V7.fromSso)(e),async()=>{throw new Ty.TokenProviderError("Could not load token from any providers",!1)}),n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()<3e5,n=>n.expiration!==void 0);gu.nodeProvider=X7});var qI=m(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});var hu=(te(),Y(ee));hu.__exportStar(iu(),co);hu.__exportStar(Ry(),co);hu.__exportStar(TI(),co);hu.__exportStar(BI(),co)});var MI=m(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.resolveSSOCredentials=void 0;var DI=AN(),W7=qI(),Aa=xe(),Y7=wt(),Oa=!1,J7=async({ssoStartUrl:e,ssoSession:n,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:c})=>{let i,u="To refresh this SSO session run aws sso login with the corresponding profile.";if(n)try{let E=await(0,W7.fromSso)({profile:c})();i={accessToken:E.token,expiresAt:new Date(E.expiration).toISOString()}}catch(E){throw new Aa.CredentialsProviderError(E.message,Oa)}else try{i=await(0,Y7.getSSOTokenFromFile)(e)}catch{throw new Aa.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${u}`,Oa)}if(new Date(i.expiresAt).getTime()-Date.now()<=0)throw new Aa.CredentialsProviderError(`The SSO session associated with this profile has expired. ${u}`,Oa);let{accessToken:l}=i,a=s||new DI.SSOClient({region:r}),y;try{y=await a.send(new DI.GetRoleCredentialsCommand({accountId:t,roleName:o,accessToken:l}))}catch(E){throw Aa.CredentialsProviderError.from(E,Oa)}let{roleCredentials:{accessKeyId:g,secretAccessKey:C,sessionToken:v,expiration:A}={}}=y;if(!g||!C||!v||!A)throw new Aa.CredentialsProviderError("SSO returns an invalid temporary credential.",Oa);return{accessKeyId:g,secretAccessKey:C,sessionToken:v,expiration:new Date(A)}};_u.resolveSSOCredentials=J7});var By=m(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.validateSsoProfile=void 0;var Q7=xe(),Z7=e=>{let{sso_start_url:n,sso_account_id:t,sso_region:r,sso_role_name:o}=e;if(!n||!t||!r||!o)throw new Q7.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")} +Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};Cu.validateSsoProfile=Z7});var LI=m(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.fromSSO=void 0;var Na=xe(),qy=wt(),eJ=ty(),FI=MI(),tJ=By(),nJ=(e={})=>async()=>{let{ssoStartUrl:n,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,ssoSession:c}=e,i=(0,qy.getProfileName)(e);if(!n&&!t&&!r&&!o&&!c){let l=(await(0,qy.parseKnownFiles)(e))[i];if(!l)throw new Na.CredentialsProviderError(`Profile ${i} was not found.`);if(!(0,eJ.isSsoProfile)(l))throw new Na.CredentialsProviderError(`Profile ${i} is not configured with SSO credentials.`);if(l!=null&&l.sso_session){let E=(await(0,qy.loadSsoSessionData)(e))[l.sso_session],G=` configurations in profile ${i} and sso-session ${l.sso_session}`;if(r&&r!==E.sso_region)throw new Na.CredentialsProviderError("Conflicting SSO region"+G,!1);if(n&&n!==E.sso_start_url)throw new Na.CredentialsProviderError("Conflicting SSO start_url"+G,!1);l.sso_region=E.sso_region,l.sso_start_url=E.sso_start_url}let{sso_start_url:a,sso_account_id:y,sso_region:g,sso_role_name:C,sso_session:v}=(0,tJ.validateSsoProfile)(l);return(0,FI.resolveSSOCredentials)({ssoStartUrl:a,ssoSession:v,ssoAccountId:y,ssoRegion:g,ssoRoleName:C,ssoClient:s,profile:i})}else{if(!n||!t||!r||!o)throw new Na.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,FI.resolveSSOCredentials)({ssoStartUrl:n,ssoSession:c,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:i})}};Su.fromSSO=nJ});var zI=m(jI=>{"use strict";Object.defineProperty(jI,"__esModule",{value:!0})});var Eu=m(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});var bu=(te(),Y(ee));bu.__exportStar(LI(),lo);bu.__exportStar(ty(),lo);bu.__exportStar(zI(),lo);bu.__exportStar(By(),lo)});var GI=m(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.resolveSsoCredentials=uo.isSsoProfile=void 0;var UI=Eu(),rJ=Eu();Object.defineProperty(uo,"isSsoProfile",{enumerable:!0,get:function(){return rJ.isSsoProfile}});var oJ=e=>{let{sso_start_url:n,sso_account_id:t,sso_session:r,sso_region:o,sso_role_name:s}=(0,UI.validateSsoProfile)(e);return(0,UI.fromSSO)({ssoStartUrl:n,ssoAccountId:t,ssoSession:r,ssoRegion:o,ssoRoleName:s})()};uo.resolveSsoCredentials=oJ});var HI=m(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.resolveStaticCredentials=mo.isStaticCredsProfile=void 0;var sJ=e=>!!e&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1;mo.isStaticCredsProfile=sJ;var iJ=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});mo.resolveStaticCredentials=iJ});var Dy=m(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.fromWebToken=void 0;var aJ=xe(),cJ=e=>()=>{let{roleArn:n,roleSessionName:t,webIdentityToken:r,providerId:o,policyArns:s,policy:c,durationSeconds:i,roleAssumerWithWebIdentity:u}=e;if(!u)throw new aJ.CredentialsProviderError(`Role Arn '${n}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return u({RoleArn:n,RoleSessionName:t??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:o,PolicyArns:s,Policy:c,DurationSeconds:i})};Pu.fromWebToken=cJ});var $I=m(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.fromTokenFile=void 0;var dJ=xe(),lJ=require("fs"),uJ=Dy(),mJ="AWS_WEB_IDENTITY_TOKEN_FILE",pJ="AWS_ROLE_ARN",fJ="AWS_ROLE_SESSION_NAME",yJ=(e={})=>async()=>{var n,t,r;let o=(n=e==null?void 0:e.webIdentityTokenFile)!==null&&n!==void 0?n:process.env[mJ],s=(t=e==null?void 0:e.roleArn)!==null&&t!==void 0?t:process.env[pJ],c=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[fJ];if(!o||!s)throw new dJ.CredentialsProviderError("Web identity configuration not specified");return(0,uJ.fromWebToken)({...e,webIdentityToken:(0,lJ.readFileSync)(o,{encoding:"ascii"}),roleArn:s,roleSessionName:c})()};vu.fromTokenFile=yJ});var My=m(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var KI=(te(),Y(ee));KI.__exportStar($I(),wu);KI.__exportStar(Dy(),wu)});var VI=m(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.resolveWebIdentityCredentials=po.isWebIdentityProfile=void 0;var gJ=My(),hJ=e=>!!e&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1;po.isWebIdentityProfile=hJ;var _J=async(e,n)=>(0,gJ.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity})();po.resolveWebIdentityCredentials=_J});var Jf=m(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.resolveProfileData=void 0;var CJ=xe(),XI=rO(),WI=cO(),YI=GI(),xu=HI(),JI=VI(),SJ=async(e,n,t,r={})=>{let o=n[e];if(Object.keys(r).length>0&&(0,xu.isStaticCredsProfile)(o))return(0,xu.resolveStaticCredentials)(o);if((0,XI.isAssumeRoleProfile)(o))return(0,XI.resolveAssumeRoleCredentials)(e,n,t,r);if((0,xu.isStaticCredsProfile)(o))return(0,xu.resolveStaticCredentials)(o);if((0,JI.isWebIdentityProfile)(o))return(0,JI.resolveWebIdentityCredentials)(o,t);if((0,WI.isProcessProfile)(o))return(0,WI.resolveProcessCredentials)(t,e);if((0,YI.isSsoProfile)(o))return(0,YI.resolveSsoCredentials)(o);throw new CJ.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};ku.resolveProfileData=SJ});var ZI=m(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.fromIni=void 0;var QI=wt(),bJ=Jf(),EJ=(e={})=>async()=>{let n=await(0,QI.parseKnownFiles)(e);return(0,bJ.resolveProfileData)((0,QI.getProfileName)(e),n,e)};Au.fromIni=EJ});var eR=m(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});var PJ=(te(),Y(ee));PJ.__exportStar(ZI(),Fy)});var tR=m(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.remoteProvider=gr.ENV_IMDS_DISABLED=void 0;var Ou=hl(),vJ=xe();gr.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var wJ=e=>process.env[Ou.ENV_CMDS_RELATIVE_URI]||process.env[Ou.ENV_CMDS_FULL_URI]?(0,Ou.fromContainerMetadata)(e):process.env[gr.ENV_IMDS_DISABLED]?async()=>{throw new vJ.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,Ou.fromInstanceMetadata)(e);gr.remoteProvider=wJ});var nR=m(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.defaultProvider=void 0;var xJ=Hf(),kJ=eR(),AJ=ey(),OJ=Eu(),NJ=My(),Ly=xe(),IJ=wt(),RJ=tR(),TJ=(e={})=>(0,Ly.memoize)((0,Ly.chain)(...e.profile||process.env[IJ.ENV_PROFILE]?[]:[(0,xJ.fromEnv)()],(0,OJ.fromSSO)(e),(0,kJ.fromIni)(e),(0,AJ.fromProcess)(e),(0,NJ.fromTokenFile)(e),(0,RJ.remoteProvider)(e),async()=>{throw new Ly.CredentialsProviderError("Could not load credentials from any providers",!1)}),n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()<3e5,n=>n.expiration!==void 0);Nu.defaultProvider=TJ});var zy=m(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});var BJ=(te(),Y(ee));BJ.__exportStar(nR(),jy)});var vR=m(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.ruleSet=void 0;var fR="required",oe="type",pe="fn",fe="argv",Kn="ref",rR=!1,qJ=!0,hr="booleanEquals",Ht="tree",Ve="stringEquals",yR="sigv4",gR="sts",hR="us-east-1",Ee="endpoint",oR="https://sts.{Region}.{PartitionResult#dnsSuffix}",fo="error",Gy="getAttr",sR={[fR]:!1,[oe]:"String"},Uy={[fR]:!0,default:!1,[oe]:"Boolean"},_R={[Kn]:"Endpoint"},iR={[pe]:"isSet",[fe]:[{[Kn]:"Region"}]},Xe={[Kn]:"Region"},aR={[pe]:"aws.partition",[fe]:[Xe],assign:"PartitionResult"},CR={[Kn]:"UseFIPS"},SR={[Kn]:"UseDualStack"},et={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:yR,signingName:gR,signingRegion:hR}]},headers:{}},ut={},cR={conditions:[{[pe]:Ve,[fe]:[Xe,"aws-global"]}],[Ee]:et,[oe]:Ee},bR={[pe]:hr,[fe]:[CR,!0]},ER={[pe]:hr,[fe]:[SR,!0]},dR={[pe]:hr,[fe]:[!0,{[pe]:Gy,[fe]:[{[Kn]:"PartitionResult"},"supportsFIPS"]}]},PR={[Kn]:"PartitionResult"},lR={[pe]:hr,[fe]:[!0,{[pe]:Gy,[fe]:[PR,"supportsDualStack"]}]},uR=[{[pe]:"isSet",[fe]:[_R]}],mR=[bR],pR=[ER],DJ={version:"1.0",parameters:{Region:sR,UseDualStack:Uy,UseFIPS:Uy,Endpoint:sR,UseGlobalEndpoint:Uy},rules:[{conditions:[{[pe]:hr,[fe]:[{[Kn]:"UseGlobalEndpoint"},qJ]},{[pe]:"not",[fe]:uR},iR,aR,{[pe]:hr,[fe]:[CR,rR]},{[pe]:hr,[fe]:[SR,rR]}],[oe]:Ht,rules:[{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-northeast-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-south-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-southeast-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"ap-southeast-2"]}],endpoint:et,[oe]:Ee},cR,{conditions:[{[pe]:Ve,[fe]:[Xe,"ca-central-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-central-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-north-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-west-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-west-2"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"eu-west-3"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"sa-east-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,hR]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"us-east-2"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"us-west-1"]}],endpoint:et,[oe]:Ee},{conditions:[{[pe]:Ve,[fe]:[Xe,"us-west-2"]}],endpoint:et,[oe]:Ee},{endpoint:{url:oR,properties:{authSchemes:[{name:yR,signingName:gR,signingRegion:"{Region}"}]},headers:ut},[oe]:Ee}]},{conditions:uR,[oe]:Ht,rules:[{conditions:mR,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[oe]:fo},{conditions:pR,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[oe]:fo},{endpoint:{url:_R,properties:ut,headers:ut},[oe]:Ee}]},{conditions:[iR],[oe]:Ht,rules:[{conditions:[aR],[oe]:Ht,rules:[{conditions:[bR,ER],[oe]:Ht,rules:[{conditions:[dR,lR],[oe]:Ht,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ut,headers:ut},[oe]:Ee}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[oe]:fo}]},{conditions:mR,[oe]:Ht,rules:[{conditions:[dR],[oe]:Ht,rules:[{conditions:[{[pe]:Ve,[fe]:["aws-us-gov",{[pe]:Gy,[fe]:[PR,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:ut,headers:ut},[oe]:Ee},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ut,headers:ut},[oe]:Ee}]},{error:"FIPS is enabled but this partition does not support FIPS",[oe]:fo}]},{conditions:pR,[oe]:Ht,rules:[{conditions:[lR],[oe]:Ht,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ut,headers:ut},[oe]:Ee}]},{error:"DualStack is enabled but this partition does not support DualStack",[oe]:fo}]},cR,{endpoint:{url:oR,properties:ut,headers:ut},[oe]:Ee}]}]},{error:"Invalid Configuration: Missing Region",[oe]:fo}]};Iu.ruleSet=DJ});var wR=m(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.defaultEndpointResolver=void 0;var MJ=jr(),FJ=vR(),LJ=(e,n={})=>(0,MJ.resolveEndpoint)(FJ.ruleSet,{endpointParams:e,logger:n.logger});Ru.defaultEndpointResolver=LJ});var AR=m(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.getRuntimeConfig=void 0;var jJ=b(),zJ=mr(),xR=Pr(),kR=yt(),UJ=wR(),GJ=e=>({apiVersion:"2011-06-15",base64Decoder:(e==null?void 0:e.base64Decoder)??xR.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??xR.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??UJ.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new jJ.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"STS",urlParser:(e==null?void 0:e.urlParser)??zJ.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??kR.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??kR.toUtf8});Tu.getRuntimeConfig=GJ});var IR=m(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.getRuntimeConfig=void 0;var HJ=(te(),Y(ee)),$J=HJ.__importDefault(Qk()),KJ=Uf(),VJ=zy(),XJ=pa(),Bu=Mt(),WJ=fa(),OR=sn(),Ia=on(),NR=vr(),YJ=ya(),JJ=zr(),QJ=AR(),ZJ=b(),eQ=_a(),tQ=b(),nQ=e=>{(0,tQ.emitWarningIfUnsupportedVersion)(process.version);let n=(0,eQ.resolveDefaultsModeConfig)(e),t=()=>n().then(ZJ.loadConfigsForDefaultMode),r=(0,QJ.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??YJ.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,KJ.decorateDefaultCredentialProvider)(VJ.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,XJ.defaultUserAgent)({serviceId:r.serviceId,clientVersion:$J.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,Ia.loadConfig)(OR.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(e==null?void 0:e.region)??(0,Ia.loadConfig)(Bu.NODE_REGION_CONFIG_OPTIONS,Bu.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new NR.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,Ia.loadConfig)({...OR.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||JJ.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??WJ.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??NR.streamCollector,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,Ia.loadConfig)(Bu.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,Ia.loadConfig)(Bu.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};qu.getRuntimeConfig=nQ});var qR=m(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.resolveRuntimeExtensions=void 0;var RR=Ml(),TR=Ne(),BR=b(),Hy=e=>e,rQ=(e,n)=>{let t={...Hy((0,RR.getAwsRegionExtensionConfiguration)(e)),...Hy((0,BR.getDefaultExtensionConfiguration)(e)),...Hy((0,TR.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,RR.resolveAwsRegionExtensionConfiguration)(t),...(0,BR.resolveDefaultRuntimeConfig)(t),...(0,TR.resolveHttpHandlerRuntimeConfig)(t)}};Du.resolveRuntimeExtensions=rQ});var Mu=m(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.STSClient=yo.__Client=void 0;var DR=Ni(),oQ=Ii(),sQ=Ri(),iQ=Yk(),MR=Ji(),aQ=Mt(),cQ=Qi(),dQ=x(),FR=sn(),LR=b();Object.defineProperty(yo,"__Client",{enumerable:!0,get:function(){return LR.Client}});var lQ=Jk(),uQ=IR(),mQ=qR(),$y=class e extends LR.Client{constructor(...[n]){let t=(0,uQ.getRuntimeConfig)(n||{}),r=(0,lQ.resolveClientEndpointParameters)(t),o=(0,aQ.resolveRegionConfig)(r),s=(0,dQ.resolveEndpointConfig)(o),c=(0,FR.resolveRetryConfig)(s),i=(0,DR.resolveHostHeaderConfig)(c),u=(0,iQ.resolveStsAuthConfig)(i,{stsClientCtor:e}),l=(0,MR.resolveUserAgentConfig)(u),a=(0,mQ.resolveRuntimeExtensions)(l,(n==null?void 0:n.extensions)||[]);super(a),this.config=a,this.middlewareStack.use((0,FR.getRetryPlugin)(this.config)),this.middlewareStack.use((0,cQ.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,DR.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,oQ.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,sQ.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,MR.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};yo.STSClient=$y});var Vy=m(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.AssumeRoleWithSAMLCommand=go.$Command=void 0;var pQ=x(),fQ=k(),UR=b();Object.defineProperty(go,"$Command",{enumerable:!0,get:function(){return UR.Command}});var yQ=w(),jR=Dn(),zR=dn(),Ky=class e extends UR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,fQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,pQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:jR.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:jR.AssumeRoleWithSAMLResponseFilterSensitiveLog,[yQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithSAML"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,zR.se_AssumeRoleWithSAMLCommand)(n,t)}deserialize(n,t){return(0,zR.de_AssumeRoleWithSAMLCommand)(n,t)}};go.AssumeRoleWithSAMLCommand=Ky});var Wy=m(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.DecodeAuthorizationMessageCommand=ho.$Command=void 0;var gQ=rn(),hQ=x(),_Q=k(),HR=b();Object.defineProperty(ho,"$Command",{enumerable:!0,get:function(){return HR.Command}});var CQ=w(),GR=dn(),Xy=class e extends HR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_Q.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,gQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[CQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"DecodeAuthorizationMessage"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,GR.se_DecodeAuthorizationMessageCommand)(n,t)}deserialize(n,t){return(0,GR.de_DecodeAuthorizationMessageCommand)(n,t)}};ho.DecodeAuthorizationMessageCommand=Xy});var Jy=m(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.GetAccessKeyInfoCommand=_o.$Command=void 0;var SQ=rn(),bQ=x(),EQ=k(),KR=b();Object.defineProperty(_o,"$Command",{enumerable:!0,get:function(){return KR.Command}});var PQ=w(),$R=dn(),Yy=class e extends KR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,EQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,bQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,SQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[PQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetAccessKeyInfo"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,$R.se_GetAccessKeyInfoCommand)(n,t)}deserialize(n,t){return(0,$R.de_GetAccessKeyInfoCommand)(n,t)}};_o.GetAccessKeyInfoCommand=Yy});var Zy=m(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.GetCallerIdentityCommand=Co.$Command=void 0;var vQ=rn(),wQ=x(),xQ=k(),XR=b();Object.defineProperty(Co,"$Command",{enumerable:!0,get:function(){return XR.Command}});var kQ=w(),VR=dn(),Qy=class e extends XR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,xQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,wQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,vQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[kQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetCallerIdentity"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,VR.se_GetCallerIdentityCommand)(n,t)}deserialize(n,t){return(0,VR.de_GetCallerIdentityCommand)(n,t)}};Co.GetCallerIdentityCommand=Qy});var tg=m(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.GetFederationTokenCommand=So.$Command=void 0;var AQ=rn(),OQ=x(),NQ=k(),YR=b();Object.defineProperty(So,"$Command",{enumerable:!0,get:function(){return YR.Command}});var IQ=w(),RQ=Dn(),WR=dn(),eg=class e extends YR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,NQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,OQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,AQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:RQ.GetFederationTokenResponseFilterSensitiveLog,[IQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetFederationToken"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,WR.se_GetFederationTokenCommand)(n,t)}deserialize(n,t){return(0,WR.de_GetFederationTokenCommand)(n,t)}};So.GetFederationTokenCommand=eg});var rg=m(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.GetSessionTokenCommand=bo.$Command=void 0;var TQ=rn(),BQ=x(),qQ=k(),QR=b();Object.defineProperty(bo,"$Command",{enumerable:!0,get:function(){return QR.Command}});var DQ=w(),MQ=Dn(),JR=dn(),ng=class e extends QR.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,qQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,BQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,TQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:MQ.GetSessionTokenResponseFilterSensitiveLog,[DQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetSessionToken"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,JR.se_GetSessionTokenCommand)(n,t)}deserialize(n,t){return(0,JR.de_GetSessionTokenCommand)(n,t)}};bo.GetSessionTokenCommand=ng});var ZR=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.STS=void 0;var FQ=b(),LQ=ml(),jQ=Vy(),zQ=pl(),UQ=Wy(),GQ=Jy(),HQ=Zy(),$Q=tg(),KQ=rg(),VQ=Mu(),XQ={AssumeRoleCommand:LQ.AssumeRoleCommand,AssumeRoleWithSAMLCommand:jQ.AssumeRoleWithSAMLCommand,AssumeRoleWithWebIdentityCommand:zQ.AssumeRoleWithWebIdentityCommand,DecodeAuthorizationMessageCommand:UQ.DecodeAuthorizationMessageCommand,GetAccessKeyInfoCommand:GQ.GetAccessKeyInfoCommand,GetCallerIdentityCommand:HQ.GetCallerIdentityCommand,GetFederationTokenCommand:$Q.GetFederationTokenCommand,GetSessionTokenCommand:KQ.GetSessionTokenCommand},Fu=class extends VQ.STSClient{};Lu.STS=Fu;(0,FQ.createAggregatedClient)(XQ,Fu)});var eT=m($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});var Vn=(te(),Y(ee));Vn.__exportStar(ml(),$t);Vn.__exportStar(Vy(),$t);Vn.__exportStar(pl(),$t);Vn.__exportStar(Wy(),$t);Vn.__exportStar(Jy(),$t);Vn.__exportStar(Zy(),$t);Vn.__exportStar(tg(),$t);Vn.__exportStar(rg(),$t)});var tT=m(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});var WQ=(te(),Y(ee));WQ.__exportStar(Dn(),og)});var sT=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.decorateDefaultCredentialProvider=Kt.getDefaultRoleAssumerWithWebIdentity=Kt.getDefaultRoleAssumer=void 0;var nT=Uf(),rT=Mu(),oT=(e,n)=>n?class extends e{constructor(r){super(r);for(let o of n)this.middlewareStack.use(o)}}:e,YQ=(e={},n)=>(0,nT.getDefaultRoleAssumer)(e,oT(rT.STSClient,n));Kt.getDefaultRoleAssumer=YQ;var JQ=(e={},n)=>(0,nT.getDefaultRoleAssumerWithWebIdentity)(e,oT(rT.STSClient,n));Kt.getDefaultRoleAssumerWithWebIdentity=JQ;var QQ=e=>n=>e({roleAssumer:(0,Kt.getDefaultRoleAssumer)(n),roleAssumerWithWebIdentity:(0,Kt.getDefaultRoleAssumerWithWebIdentity)(n),...n});Kt.decorateDefaultCredentialProvider=QQ});var iT=m(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.STSServiceException=void 0;var Ra=(te(),Y(ee));Ra.__exportStar(Mu(),gn);Ra.__exportStar(ZR(),gn);Ra.__exportStar(eT(),gn);Ra.__exportStar(tT(),gn);Ra.__exportStar(sT(),gn);var ZQ=al();Object.defineProperty(gn,"STSServiceException",{enumerable:!0,get:function(){return ZQ.STSServiceException}})});var aT=m(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS=Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME=Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME=void 0;var ju=Id();Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME="s3_disable_multiregion_access_points";Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,ju.booleanSelector)(e,Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME,ju.SelectorType.ENV),configFileSelector:e=>(0,ju.booleanSelector)(e,Vt.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME,ju.SelectorType.CONFIG),default:!1}});var cT=m(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.NODE_USE_ARN_REGION_CONFIG_OPTIONS=Xt.NODE_USE_ARN_REGION_INI_NAME=Xt.NODE_USE_ARN_REGION_ENV_NAME=void 0;var zu=Id();Xt.NODE_USE_ARN_REGION_ENV_NAME="AWS_S3_USE_ARN_REGION";Xt.NODE_USE_ARN_REGION_INI_NAME="s3_use_arn_region";Xt.NODE_USE_ARN_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,zu.booleanSelector)(e,Xt.NODE_USE_ARN_REGION_ENV_NAME,zu.SelectorType.ENV),configFileSelector:e=>(0,zu.booleanSelector)(e,Xt.NODE_USE_ARN_REGION_INI_NAME,zu.SelectorType.CONFIG),default:!1}});var ag=m(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.validateMrapAlias=Z.validateNoFIPS=Z.validateNoDualstack=Z.getArnResources=Z.validateCustomEndpoint=Z.validateDNSHostLabel=Z.validateAccountId=Z.validateRegionalClient=Z.validateRegion=Z.validatePartition=Z.validateOutpostService=Z.validateS3Service=Z.validateService=Z.validateArnEndpointOptions=Z.getSuffixForArnEndpoint=Z.getSuffix=Z.isDnsCompatibleBucketName=Z.isBucketNameOptions=Z.S3_HOSTNAME_PATTERN=Z.DOT_PATTERN=void 0;var eZ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,tZ=/(\d+\.){3}\d+/,nZ=/\.\./;Z.DOT_PATTERN=/\./;Z.S3_HOSTNAME_PATTERN=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;var dT=/^s3(-external-1)?\.amazonaws\.com$/,ig="amazonaws.com",rZ=e=>typeof e.bucketName=="string";Z.isBucketNameOptions=rZ;var oZ=e=>eZ.test(e)&&!tZ.test(e)&&!nZ.test(e);Z.isDnsCompatibleBucketName=oZ;var lT=e=>{let n=e.match(Z.S3_HOSTNAME_PATTERN);return[n[4],e.replace(new RegExp(`^${n[0]}`),"")]},sZ=e=>dT.test(e)?["us-east-1",ig]:lT(e);Z.getSuffix=sZ;var iZ=e=>dT.test(e)?[e.replace(`.${ig}`,""),ig]:lT(e);Z.getSuffixForArnEndpoint=iZ;var aZ=e=>{if(e.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!e.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")};Z.validateArnEndpointOptions=aZ;var cZ=e=>{if(e!=="s3"&&e!=="s3-outposts"&&e!=="s3-object-lambda")throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component")};Z.validateService=cZ;var dZ=e=>{if(e!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")};Z.validateS3Service=dZ;var lZ=e=>{if(e!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")};Z.validateOutpostService=lZ;var uZ=(e,n)=>{if(e!==n.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${e}" but expected "${n.clientPartition}"`)};Z.validatePartition=uZ;var mZ=(e,n)=>{if(e==="")throw new Error("ARN region is empty");if(n.useFipsEndpoint)if(n.allowFipsRegion){if(!sg(e,n.clientRegion))throw new Error(`Client FIPS region ${n.clientRegion} doesn't match region ${e} in ARN`)}else throw new Error("FIPS region is not supported");if(!n.useArnRegion&&!sg(e,n.clientRegion||"")&&!sg(e,n.clientSigningRegion||""))throw new Error(`Region in ARN is incompatible, got ${e} but expected ${n.clientRegion}`)};Z.validateRegion=mZ;var pZ=e=>{if(["s3-external-1","aws-global"].includes(e))throw new Error(`Client region ${e} is not regional`)};Z.validateRegionalClient=pZ;var sg=(e,n)=>e===n,fZ=e=>{if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")};Z.validateAccountId=fZ;var yZ=(e,n={tlsCompatible:!0})=>{if(e.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||n!=null&&n.tlsCompatible&&Z.DOT_PATTERN.test(e))throw new Error(`Invalid DNS label ${e}`)};Z.validateDNSHostLabel=yZ;var gZ=e=>{if(e.isCustomEndpoint){if(e.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported with custom endpoint")}};Z.validateCustomEndpoint=gZ;var hZ=e=>{let n=e.includes(":")?":":"/",[t,...r]=e.split(n);if(t==="accesspoint"){if(r.length!==1||r[0]==="")throw new Error(`Access Point ARN should have one resource accesspoint${n}{accesspointname}`);return{accesspointName:r[0]}}else if(t==="outpost"){if(!r[0]||r[1]!=="accesspoint"||!r[2]||r.length!==3)throw new Error(`Outpost ARN should have resource outpost${n}{outpostId}${n}accesspoint${n}{accesspointName}`);let[o,s,c]=r;return{outpostId:o,accesspointName:c}}else throw new Error(`ARN resource should begin with 'accesspoint${n}' or 'outpost${n}'`)};Z.getArnResources=hZ;var _Z=e=>{if(e)throw new Error("Dualstack endpoint is not supported with Outpost or Multi-region Access Point ARN.")};Z.validateNoDualstack=_Z;var CZ=e=>{if(e)throw new Error("FIPS region is not supported with Outpost.")};Z.validateNoFIPS=CZ;var SZ=e=>{try{e.split(".").forEach(n=>{(0,Z.validateDNSHostLabel)(n)})}catch{throw new Error(`"${e}" is not a DNS compatible name.`)}};Z.validateMrapAlias=SZ});var cg=m(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.bucketHostname=void 0;var ge=ag(),bZ=e=>((0,ge.validateCustomEndpoint)(e),(0,ge.isBucketNameOptions)(e)?EZ(e):PZ(e));Uu.bucketHostname=bZ;var EZ=({accelerateEndpoint:e=!1,clientRegion:n,baseHostname:t,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,pathStyleEndpoint:c=!1,tlsCompatible:i=!0,isCustomEndpoint:u=!1})=>{let[l,a]=u?[n,t]:(0,ge.getSuffix)(t);return c||!(0,ge.isDnsCompatibleBucketName)(r)||i&&ge.DOT_PATTERN.test(r)?{bucketEndpoint:!1,hostname:o?`s3.dualstack.${l}.${a}`:t}:(e?t=`s3-accelerate${o?".dualstack":""}.${a}`:o&&(t=`s3.dualstack.${l}.${a}`),{bucketEndpoint:!0,hostname:`${r}.${t}`})},PZ=e=>{let{isCustomEndpoint:n,baseHostname:t,clientRegion:r}=e,o=n?t:(0,ge.getSuffixForArnEndpoint)(t)[1],{pathStyleEndpoint:s,accelerateEndpoint:c=!1,fipsEndpoint:i=!1,tlsCompatible:u=!0,bucketName:l,clientPartition:a="aws"}=e;(0,ge.validateArnEndpointOptions)({pathStyleEndpoint:s,accelerateEndpoint:c,tlsCompatible:u});let{service:y,partition:g,accountId:C,region:v,resource:A}=l;(0,ge.validateService)(y),(0,ge.validatePartition)(g,{clientPartition:a}),(0,ge.validateAccountId)(C);let{accesspointName:E,outpostId:G}=(0,ge.getArnResources)(A);return y==="s3-object-lambda"?vZ({...e,tlsCompatible:u,bucketName:l,accesspointName:E,hostnameSuffix:o}):v===""?wZ({...e,clientRegion:r,mrapAlias:E,hostnameSuffix:o}):G?xZ({...e,clientRegion:r,outpostId:G,accesspointName:E,hostnameSuffix:o}):kZ({...e,clientRegion:r,accesspointName:E,hostnameSuffix:o})},vZ=({dualstackEndpoint:e=!1,fipsEndpoint:n=!1,tlsCompatible:t=!0,useArnRegion:r,clientRegion:o,clientSigningRegion:s=o,accesspointName:c,bucketName:i,hostnameSuffix:u})=>{let{accountId:l,region:a,service:y}=i;(0,ge.validateRegionalClient)(o),(0,ge.validateRegion)(a,{useArnRegion:r,clientRegion:o,clientSigningRegion:s,allowFipsRegion:!0,useFipsEndpoint:n}),(0,ge.validateNoDualstack)(e);let g=`${c}-${l}`;(0,ge.validateDNSHostLabel)(g,{tlsCompatible:t});let C=r?a:o,v=r?a:s;return{bucketEndpoint:!0,hostname:`${g}.${y}${n?"-fips":""}.${C}.${u}`,signingRegion:v,signingService:y}},wZ=({disableMultiregionAccessPoints:e,dualstackEndpoint:n=!1,isCustomEndpoint:t,mrapAlias:r,hostnameSuffix:o})=>{if(e===!0)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return(0,ge.validateMrapAlias)(r),(0,ge.validateNoDualstack)(n),{bucketEndpoint:!0,hostname:`${r}${t?"":".accesspoint.s3-global"}.${o}`,signingRegion:"*"}},xZ=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,outpostId:o,dualstackEndpoint:s=!1,fipsEndpoint:c=!1,tlsCompatible:i=!0,accesspointName:u,isCustomEndpoint:l,hostnameSuffix:a})=>{(0,ge.validateRegionalClient)(n),(0,ge.validateRegion)(r.region,{useArnRegion:e,clientRegion:n,clientSigningRegion:t,useFipsEndpoint:c});let y=`${u}-${r.accountId}`;(0,ge.validateDNSHostLabel)(y,{tlsCompatible:i});let g=e?r.region:n,C=e?r.region:t;return(0,ge.validateOutpostService)(r.service),(0,ge.validateDNSHostLabel)(o,{tlsCompatible:i}),(0,ge.validateNoDualstack)(s),(0,ge.validateNoFIPS)(c),{bucketEndpoint:!0,hostname:`${`${y}.${o}`}${l?"":`.s3-outposts.${g}`}.${a}`,signingRegion:C,signingService:"s3-outposts"}},kZ=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:c=!0,accesspointName:i,isCustomEndpoint:u,hostnameSuffix:l})=>{(0,ge.validateRegionalClient)(n),(0,ge.validateRegion)(r.region,{useArnRegion:e,clientRegion:n,clientSigningRegion:t,allowFipsRegion:!0,useFipsEndpoint:s});let a=`${i}-${r.accountId}`;(0,ge.validateDNSHostLabel)(a,{tlsCompatible:c});let y=e?r.region:n,g=e?r.region:t;return(0,ge.validateS3Service)(r.service),{bucketEndpoint:!0,hostname:`${a}${u?"":`.s3-accesspoint${s?"-fips":""}${o?".dualstack":""}.${y}`}.${l}`,signingRegion:g}}});var pT=m(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.getBucketEndpointPlugin=Wt.bucketEndpointMiddlewareOptions=Wt.bucketEndpointMiddleware=void 0;var uT=yp(),AZ=Ne(),mT=cg(),OZ=e=>(n,t)=>async r=>{let{Bucket:o}=r.input,s=e.bucketEndpoint,c=r.request;if(AZ.HttpRequest.isInstance(c)){if(e.bucketEndpoint)c.hostname=o;else if((0,uT.validate)(o)){let i=(0,uT.parse)(o),u=await e.region(),l=await e.useDualstackEndpoint(),a=await e.useFipsEndpoint(),{partition:y,signingRegion:g=u}=await e.regionInfoProvider(u,{useDualstackEndpoint:l,useFipsEndpoint:a})||{},C=await e.useArnRegion(),{hostname:v,bucketEndpoint:A,signingRegion:E,signingService:G}=(0,mT.bucketHostname)({bucketName:i,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:l,fipsEndpoint:a,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol==="https:",useArnRegion:C,clientPartition:y,clientSigningRegion:g,clientRegion:u,isCustomEndpoint:e.isCustomEndpoint,disableMultiregionAccessPoints:await e.disableMultiregionAccessPoints()});E&&E!==g&&(t.signing_region=E),G&&G!=="s3"&&(t.signing_service=G),c.hostname=v,s=A}else{let i=await e.region(),u=await e.useDualstackEndpoint(),l=await e.useFipsEndpoint(),{hostname:a,bucketEndpoint:y}=(0,mT.bucketHostname)({bucketName:o,clientRegion:i,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:u,fipsEndpoint:l,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol==="https:",isCustomEndpoint:e.isCustomEndpoint});c.hostname=a,s=y}s&&(c.path=c.path.replace(/^(\/)?[^\/]+/,""),c.path===""&&(c.path="/"))}return n({...r,request:c})};Wt.bucketEndpointMiddleware=OZ;Wt.bucketEndpointMiddlewareOptions={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0};var NZ=e=>({applyToStack:n=>{n.addRelativeTo((0,Wt.bucketEndpointMiddleware)(e),Wt.bucketEndpointMiddlewareOptions)}});Wt.getBucketEndpointPlugin=NZ});var fT=m(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.resolveBucketEndpointConfig=void 0;function IZ(e){let{bucketEndpoint:n=!1,forcePathStyle:t=!1,useAccelerateEndpoint:r=!1,useArnRegion:o=!1,disableMultiregionAccessPoints:s=!1}=e;return{...e,bucketEndpoint:n,forcePathStyle:t,useAccelerateEndpoint:r,useArnRegion:typeof o=="function"?o:()=>Promise.resolve(o),disableMultiregionAccessPoints:typeof s=="function"?s:()=>Promise.resolve(s)}}Gu.resolveBucketEndpointConfig=IZ});var yT=m(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.validateNoFIPS=Se.validateNoDualstack=Se.validateDNSHostLabel=Se.validateRegion=Se.validateAccountId=Se.validatePartition=Se.validateOutpostService=Se.getSuffixForArnEndpoint=Se.getArnResources=void 0;var Ta=(te(),Y(ee));Ta.__exportStar(aT(),Se);Ta.__exportStar(cT(),Se);Ta.__exportStar(pT(),Se);Ta.__exportStar(cg(),Se);Ta.__exportStar(fT(),Se);var hn=ag();Object.defineProperty(Se,"getArnResources",{enumerable:!0,get:function(){return hn.getArnResources}});Object.defineProperty(Se,"getSuffixForArnEndpoint",{enumerable:!0,get:function(){return hn.getSuffixForArnEndpoint}});Object.defineProperty(Se,"validateOutpostService",{enumerable:!0,get:function(){return hn.validateOutpostService}});Object.defineProperty(Se,"validatePartition",{enumerable:!0,get:function(){return hn.validatePartition}});Object.defineProperty(Se,"validateAccountId",{enumerable:!0,get:function(){return hn.validateAccountId}});Object.defineProperty(Se,"validateRegion",{enumerable:!0,get:function(){return hn.validateRegion}});Object.defineProperty(Se,"validateDNSHostLabel",{enumerable:!0,get:function(){return hn.validateDNSHostLabel}});Object.defineProperty(Se,"validateNoDualstack",{enumerable:!0,get:function(){return hn.validateNoDualstack}});Object.defineProperty(Se,"validateNoFIPS",{enumerable:!0,get:function(){return hn.validateNoFIPS}})});var ET=m((vxe,bT)=>{var Hu=Object.defineProperty,RZ=Object.getOwnPropertyDescriptor,TZ=Object.getOwnPropertyNames,BZ=Object.prototype.hasOwnProperty,Eo=(e,n)=>Hu(e,"name",{value:n,configurable:!0}),qZ=(e,n)=>{for(var t in n)Hu(e,t,{get:n[t],enumerable:!0})},DZ=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of TZ(n))!BZ.call(e,o)&&o!==t&&Hu(e,o,{get:()=>n[o],enumerable:!(r=RZ(n,o))||r.enumerable});return e},MZ=e=>DZ(Hu({},"__esModule",{value:!0}),e),gT={};qZ(gT,{EventStreamMarshaller:()=>ST,eventStreamSerdeProvider:()=>FZ});bT.exports=MZ(gT);var Ba=wp();function hT(e){let n=0,t=0,r=null,o=null,s=Eo(i=>{if(typeof i!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+i);n=i,t=4,r=new Uint8Array(i),new DataView(r.buffer).setUint32(0,i,!1)},"allocateMessage"),c=Eo(async function*(){let i=e[Symbol.asyncIterator]();for(;;){let{value:u,done:l}=await i.next();if(l){if(n)if(n===t)yield r;else throw new Error("Truncated event message received.");else return;return}let a=u.length,y=0;for(;ynew ST(e),"eventStreamSerdeProvider")});var AT=m((xxe,kT)=>{var $u=Object.defineProperty,LZ=Object.getOwnPropertyDescriptor,jZ=Object.getOwnPropertyNames,zZ=Object.prototype.hasOwnProperty,dg=(e,n)=>$u(e,"name",{value:n,configurable:!0}),UZ=(e,n)=>{for(var t in n)$u(e,t,{get:n[t],enumerable:!0})},GZ=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of jZ(n))!zZ.call(e,o)&&o!==t&&$u(e,o,{get:()=>n[o],enumerable:!(r=LZ(n,o))||r.enumerable});return e},HZ=e=>GZ($u({},"__esModule",{value:!0}),e),PT={};UZ(PT,{EventStreamMarshaller:()=>xT,eventStreamSerdeProvider:()=>VZ});kT.exports=HZ(PT);var $Z=ET(),KZ=require("stream");async function*vT(e){let n=!1,t=!1,r=new Array;for(e.on("error",o=>{if(n||(n=!0),o)throw o}),e.on("data",o=>{r.push(o)}),e.on("end",()=>{n=!0});!t;){let o=await new Promise(s=>setTimeout(()=>s(r.shift()),0));o&&(yield o),t=n&&r.length===0}}dg(vT,"readabletoIterable");var wT=class{constructor({utf8Encoder:n,utf8Decoder:t}){this.universalMarshaller=new $Z.EventStreamMarshaller({utf8Decoder:t,utf8Encoder:n})}deserialize(n,t){let r=typeof n[Symbol.asyncIterator]=="function"?n:vT(n);return this.universalMarshaller.deserialize(r,t)}serialize(n,t){return KZ.Readable.from(this.universalMarshaller.serialize(n,t))}};dg(wT,"EventStreamMarshaller");var xT=wT,VZ=dg(e=>new xT(e),"eventStreamSerdeProvider")});var TT=m((Axe,RT)=>{var Ku=Object.defineProperty,XZ=Object.getOwnPropertyDescriptor,WZ=Object.getOwnPropertyNames,YZ=Object.prototype.hasOwnProperty,Vu=(e,n)=>Ku(e,"name",{value:n,configurable:!0}),JZ=(e,n)=>{for(var t in n)Ku(e,t,{get:n[t],enumerable:!0})},QZ=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of WZ(n))!YZ.call(e,o)&&o!==t&&Ku(e,o,{get:()=>n[o],enumerable:!(r=XZ(n,o))||r.enumerable});return e},ZZ=e=>QZ(Ku({},"__esModule",{value:!0}),e),OT={};JZ(OT,{fileStreamHasher:()=>ree,readableStreamHasher:()=>see});RT.exports=ZZ(OT);var eee=require("fs"),tee=yt(),nee=require("stream"),NT=class extends nee.Writable{constructor(n,t){super(t),this.hash=n}_write(n,t,r){try{this.hash.update((0,tee.toUint8Array)(n))}catch(o){return r(o)}r()}};Vu(NT,"HashCalculator");var IT=NT,ree=Vu((e,n)=>new Promise((t,r)=>{if(!oee(n)){r(new Error("Unable to calculate hash for non-file streams."));return}let o=(0,eee.createReadStream)(n.path,{start:n.start,end:n.end}),s=new e,c=new IT(s);o.pipe(c),o.on("error",i=>{c.end(),r(i)}),c.on("error",r),c.on("finish",function(){s.digest().then(t).catch(r)})}),"fileStreamHasher"),oee=Vu(e=>typeof e.path=="string","isReadStream"),see=Vu((e,n)=>{if(n.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let t=new e,r=new IT(t);return n.pipe(r),new Promise((o,s)=>{n.on("error",c=>{r.end(),s(c)}),r.on("error",s),r.on("finish",()=>{t.digest().then(o).catch(s)})})},"readableStreamHasher")});var Wu=m(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.signatureV4CrtContainer=void 0;Xu.signatureV4CrtContainer={CrtSignerV4:null}});var BT=m(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.loadCrt=void 0;var iee=Wu();function aee(){if(!iee.signatureV4CrtContainer.CrtSignerV4)try{typeof require=="function"&&(require.call(null,"@aws-sdk/signature-v4-crt"),process.emitWarning(`The package @aws-sdk/signature-v4-crt has been loaded dynamically. To avoid this warning, please explicitly import the package in your application with: import "@aws-sdk/signature-v4-crt"; // ESM @@ -36,11 +36,11 @@ In a future version of the AWS SDK for JavaScript (v3), this warning will become an error and dynamic loading will not be available. See https://github.com/aws/aws-sdk-js-v3/issues/5229. -`))}catch{}}Yu.loadCrt=see});var qT=m(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.SignatureV4MultiRegion=void 0;var iee=Np(),aee=BT(),cee=Wu(),lg=class{constructor(n){this.sigv4Signer=new iee.SignatureV4(n),this.signerOptions=n}async sign(n,t={}){if(t.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().sign(n,t)}return this.sigv4Signer.sign(n,t)}async presign(n,t={}){if(t.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().presign(n,t)}return this.sigv4Signer.presign(n,t)}getSigv4aSigner(){if(!this.sigv4aSigner){let n=null;try{if((0,aee.loadCrt)(),n=cee.signatureV4CrtContainer.CrtSignerV4,typeof n!="function")throw new Error}catch(t){throw t.message=`${t.message} +`))}catch{}}Yu.loadCrt=aee});var qT=m(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.SignatureV4MultiRegion=void 0;var cee=Np(),dee=BT(),lee=Wu(),lg=class{constructor(n){this.sigv4Signer=new cee.SignatureV4(n),this.signerOptions=n}async sign(n,t={}){if(t.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().sign(n,t)}return this.sigv4Signer.sign(n,t)}async presign(n,t={}){if(t.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().presign(n,t)}return this.sigv4Signer.presign(n,t)}getSigv4aSigner(){if(!this.sigv4aSigner){let n=null;try{if((0,dee.loadCrt)(),n=lee.signatureV4CrtContainer.CrtSignerV4,typeof n!="function")throw new Error}catch(t){throw t.message=`${t.message} Please check if you have installed "@aws-sdk/signature-v4-crt" package explicitly. -For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`,t}this.sigv4aSigner=new n({...this.signerOptions,signingAlgorithm:1})}return this.sigv4aSigner}};Ju.SignatureV4MultiRegion=lg});var MT=m(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var DT=(te(),Y(ee));DT.__exportStar(qT(),Qu);DT.__exportStar(Wu(),Qu)});var XB=m(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.ruleSet=void 0;var Mg="required",h="type",S="conditions",O="fn",N="argv",re="ref",We="assign",$="url",K="properties",Cn="authSchemes",Sn="disableDoubleEncoding",bn="signingName",Yn="signingRegion",V="headers",FT=!1,Yt=!0,Jt="isSet",j="tree",tt="booleanEquals",H="error",nm="aws.partition",ke="stringEquals",Re="getAttr",Ct="name",Ba="substring",IB="hardwareType",RB="regionPrefix",LT="bucketAliasSuffix",Bg="outpostId",_r="isValidHostLabel",Ot="not",TB="parseURL",Fg="s3-outposts",z="endpoint",jT="aws.isVirtualHostableS3Bucket",vo="s3",BB="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",qB="{url#scheme}://{Bucket}.{url#authority}{url#path}",DB="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",zT="https://{Bucket}.s3.{partitionResult#dnsSuffix}",MB="aws.parseArn",FB="bucketArn",LB="arnType",rm="",Lg="s3-object-lambda",jB="accesspoint",jg="accessPointName",UT="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",GT="mrapPartition",HT="outpostType",$T="arnPrefix",zB="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",KT="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",qg="{url#scheme}://{url#authority}{url#path}",VT="https://s3.{partitionResult#dnsSuffix}",ug={[Mg]:!1,[h]:"String"},Po={[Mg]:!0,default:!1,[h]:"Boolean"},mg={[Mg]:!1,[h]:"Boolean"},At={[O]:tt,[N]:[{[re]:"Accelerate"},!0]},Pe={[O]:tt,[N]:[{[re]:"UseFIPS"},!0]},_e={[O]:tt,[N]:[{[re]:"UseDualStack"},!0]},Ie={[O]:Jt,[N]:[{[re]:"Endpoint"}]},UB={[O]:nm,[N]:[{[re]:"Region"}],[We]:"partitionResult"},XT={[O]:ke,[N]:[{[O]:Re,[N]:[{[re]:"partitionResult"},Ct]},"aws-cn"]},GB={[O]:Jt,[N]:[{[re]:"Bucket"}]},_n={[re]:"Bucket"},WT={[re]:IB},YT={[S]:[{[O]:Ot,[N]:[Ie]}],[H]:"Expected a endpoint to be specified but no endpoint was found",[h]:H},ne={[O]:Ot,[N]:[Ie]},ot={[O]:TB,[N]:[{[re]:"Endpoint"}],[We]:"url"},Zu={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Fg,[Yn]:"{Region}"}]},ae={},pg={[O]:tt,[N]:[{[re]:"ForcePathStyle"},!1]},dee={[re]:"ForcePathStyle"},De={[O]:tt,[N]:[{[re]:"Accelerate"},!1]},Fe={[O]:ke,[N]:[{[re]:"Region"},"aws-global"]},Ue={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"us-east-1"}]},de={[O]:Ot,[N]:[Fe]},Ge={[O]:tt,[N]:[{[re]:"UseGlobalEndpoint"},!0]},JT={[$]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:{[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"{Region}"}]},[V]:{}},Me={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"{Region}"}]},He={[O]:tt,[N]:[{[re]:"UseGlobalEndpoint"},!1]},ce={[O]:tt,[N]:[{[re]:"UseDualStack"},!1]},QT={[$]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},se={[O]:tt,[N]:[{[re]:"UseFIPS"},!1]},ZT={[$]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},eB={[$]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},fg={[O]:tt,[N]:[{[O]:Re,[N]:[{[re]:"url"},"isIp"]},!0]},HB={[re]:"url"},yg={[O]:tt,[N]:[{[O]:Re,[N]:[HB,"isIp"]},!1]},gg={[$]:BB,[K]:Me,[V]:{}},Dg={[$]:qB,[K]:Me,[V]:{}},tB={[z]:Dg,[h]:z},hg={[$]:DB,[K]:Me,[V]:{}},nB={[$]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},em={[H]:"Invalid region: region was not a valid DNS name.",[h]:H},at={[re]:FB},$B={[re]:LB},_g={[O]:Re,[N]:[at,"service"]},zg={[re]:jg},rB={[S]:[_e],[H]:"S3 Object Lambda does not support Dual-stack",[h]:H},oB={[S]:[At],[H]:"S3 Object Lambda does not support S3 Accelerate",[h]:H},sB={[S]:[{[O]:Jt,[N]:[{[re]:"DisableAccessPoints"}]},{[O]:tt,[N]:[{[re]:"DisableAccessPoints"},!0]}],[H]:"Access points are not supported for this operation",[h]:H},Cg={[S]:[{[O]:Jt,[N]:[{[re]:"UseArnRegion"}]},{[O]:tt,[N]:[{[re]:"UseArnRegion"},!1]},{[O]:Ot,[N]:[{[O]:ke,[N]:[{[O]:Re,[N]:[at,"region"]},"{Region}"]}]}],[H]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[h]:H},KB={[O]:Re,[N]:[{[re]:"bucketPartition"},Ct]},VB={[O]:Re,[N]:[at,"accountId"]},Sg={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Lg,[Yn]:"{bucketArn#region}"}]},iB={[H]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[h]:H},bg={[H]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[h]:H},Eg={[H]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[h]:H},Pg={[H]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[h]:H},aB={[H]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[h]:H},cB={[H]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[h]:H},qa={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"{bucketArn#region}"}]},dB={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Fg,[Yn]:"{bucketArn#region}"}]},lB={[O]:MB,[N]:[_n]},uB={[$]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},mB={[$]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},pB={[$]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},vg={[$]:zB,[K]:Me,[V]:{}},fB={[$]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},yB={[re]:"UseObjectLambdaEndpoint"},wg={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Lg,[Yn]:"{Region}"}]},gB={[$]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},hB={[$]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},_B={[$]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},xg={[$]:qg,[K]:Me,[V]:{}},CB={[$]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},kg=[{[re]:"Region"}],lee=[{[re]:"Endpoint"}],SB=[_n],bB=[{[O]:_r,[N]:[{[re]:Bg},!1]}],EB=[{[O]:ke,[N]:[{[re]:RB},"beta"]}],Da=[Ie,ot],PB=[GB],Xn=[UB],vB=[{[O]:_r,[N]:[{[re]:"Region"},!1]}],Wn=[{[O]:ke,[N]:[{[re]:"Region"},"us-east-1"]}],Ag=[{[O]:ke,[N]:[$B,jB]}],wB=[{[O]:Re,[N]:[at,"resourceId[1]"],[We]:jg},{[O]:Ot,[N]:[{[O]:ke,[N]:[zg,rm]}]}],uee=[at,"resourceId[1]"],xB=[_e],Og=[At],Ng=[{[O]:Ot,[N]:[{[O]:ke,[N]:[{[O]:Re,[N]:[at,"region"]},rm]}]}],kB=[{[O]:Ot,[N]:[{[O]:Jt,[N]:[{[O]:Re,[N]:[at,"resourceId[2]"]}]}]}],mee=[at,"resourceId[2]"],Ig=[{[O]:nm,[N]:[{[O]:Re,[N]:[at,"region"]}],[We]:"bucketPartition"}],AB=[{[O]:ke,[N]:[KB,{[O]:Re,[N]:[{[re]:"partitionResult"},Ct]}]}],Rg=[{[O]:_r,[N]:[{[O]:Re,[N]:[at,"region"]},!0]}],Tg=[{[O]:_r,[N]:[VB,!1]}],OB=[{[O]:_r,[N]:[zg,!1]}],tm=[Pe],NB=[{[O]:_r,[N]:[{[re]:"Region"},!0]}],pee={version:"1.0",parameters:{Bucket:ug,Region:ug,UseFIPS:Po,UseDualStack:Po,Endpoint:ug,ForcePathStyle:Po,Accelerate:Po,UseGlobalEndpoint:Po,UseObjectLambdaEndpoint:mg,DisableAccessPoints:mg,DisableMultiRegionAccessPoints:Po,UseArnRegion:mg},rules:[{[S]:[{[O]:Jt,[N]:kg}],[h]:j,rules:[{[S]:[At,Pe],error:"Accelerate cannot be used with FIPS",[h]:H},{[S]:[_e,Ie],error:"Cannot set dual-stack in combination with a custom endpoint.",[h]:H},{[S]:[Ie,Pe],error:"A custom endpoint cannot be combined with FIPS",[h]:H},{[S]:[Ie,At],error:"A custom endpoint cannot be combined with S3 Accelerate",[h]:H},{[S]:[Pe,UB,XT],error:"Partition does not support FIPS",[h]:H},{[S]:[GB,{[O]:Ba,[N]:[_n,49,50,Yt],[We]:IB},{[O]:Ba,[N]:[_n,8,12,Yt],[We]:RB},{[O]:Ba,[N]:[_n,0,7,Yt],[We]:LT},{[O]:Ba,[N]:[_n,32,49,Yt],[We]:Bg},{[O]:nm,[N]:kg,[We]:"regionPartition"},{[O]:ke,[N]:[{[re]:LT},"--op-s3"]}],[h]:j,rules:[{[S]:bB,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[WT,"e"]}],[h]:j,rules:[{[S]:EB,[h]:j,rules:[YT,{[S]:Da,endpoint:{[$]:"https://{Bucket}.ec2.{url#authority}",[K]:Zu,[V]:ae},[h]:z}]},{endpoint:{[$]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[K]:Zu,[V]:ae},[h]:z}]},{[S]:[{[O]:ke,[N]:[WT,"o"]}],[h]:j,rules:[{[S]:EB,[h]:j,rules:[YT,{[S]:Da,endpoint:{[$]:"https://{Bucket}.op-{outpostId}.{url#authority}",[K]:Zu,[V]:ae},[h]:z}]},{endpoint:{[$]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[K]:Zu,[V]:ae},[h]:z}]},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[h]:H}]},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[h]:H}]},{[S]:PB,[h]:j,rules:[{[S]:[Ie,{[O]:Ot,[N]:[{[O]:Jt,[N]:[{[O]:TB,[N]:lee}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[h]:H},{[S]:[pg,{[O]:jT,[N]:[_n,FT]}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:vB,[h]:j,rules:[{[S]:[At,XT],error:"S3 Accelerate cannot be used in this region",[h]:H},{[S]:[_e,Pe,De,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,Pe,De,ne,de,Ge],[h]:j,rules:[{endpoint:JT,[h]:z}]},{[S]:[_e,Pe,De,ne,de,He],endpoint:JT,[h]:z},{[S]:[ce,Pe,De,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,Pe,De,ne,de,Ge],[h]:j,rules:[{endpoint:QT,[h]:z}]},{[S]:[ce,Pe,De,ne,de,He],endpoint:QT,[h]:z},{[S]:[_e,se,At,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,se,At,ne,de,Ge],[h]:j,rules:[{endpoint:ZT,[h]:z}]},{[S]:[_e,se,At,ne,de,He],endpoint:ZT,[h]:z},{[S]:[_e,se,De,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,se,De,ne,de,Ge],[h]:j,rules:[{endpoint:eB,[h]:z}]},{[S]:[_e,se,De,ne,de,He],endpoint:eB,[h]:z},{[S]:[ce,se,De,Ie,ot,fg,Fe],endpoint:{[$]:BB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,De,Ie,ot,yg,Fe],endpoint:{[$]:qB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,De,Ie,ot,fg,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:gg,[h]:z},{endpoint:gg,[h]:z}]},{[S]:[ce,se,De,Ie,ot,yg,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:Dg,[h]:z},tB]},{[S]:[ce,se,De,Ie,ot,fg,de,He],endpoint:gg,[h]:z},{[S]:[ce,se,De,Ie,ot,yg,de,He],endpoint:Dg,[h]:z},{[S]:[ce,se,At,ne,Fe],endpoint:{[$]:DB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,At,ne,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:hg,[h]:z},{endpoint:hg,[h]:z}]},{[S]:[ce,se,At,ne,de,He],endpoint:hg,[h]:z},{[S]:[ce,se,De,ne,Fe],endpoint:{[$]:zT,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,De,ne,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:zT,[K]:Me,[V]:ae},[h]:z},{endpoint:nB,[h]:z}]},{[S]:[ce,se,De,ne,de,He],endpoint:nB,[h]:z}]},em]}]},{[S]:[Ie,ot,{[O]:ke,[N]:[{[O]:Re,[N]:[HB,"scheme"]},"http"]},{[O]:jT,[N]:[_n,Yt]},pg,se,ce,De],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:vB,[h]:j,rules:[tB]},em]}]},{[S]:[pg,{[O]:MB,[N]:SB,[We]:FB}],[h]:j,rules:[{[S]:[{[O]:Re,[N]:[at,"resourceId[0]"],[We]:LB},{[O]:Ot,[N]:[{[O]:ke,[N]:[$B,rm]}]}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[_g,Lg]}],[h]:j,rules:[{[S]:Ag,[h]:j,rules:[{[S]:wB,[h]:j,rules:[rB,oB,{[S]:Ng,[h]:j,rules:[sB,{[S]:kB,[h]:j,rules:[Cg,{[S]:Ig,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:AB,[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[VB,rm]}],error:"Invalid ARN: Missing account id",[h]:H},{[S]:Tg,[h]:j,rules:[{[S]:OB,[h]:j,rules:[{[S]:Da,endpoint:{[$]:UT,[K]:Sg,[V]:ae},[h]:z},{[S]:tm,endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Sg,[V]:ae},[h]:z},{endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Sg,[V]:ae},[h]:z}]},iB]},bg]},Eg]},Pg]}]}]},aB]},{error:"Invalid ARN: bucket ARN is missing a region",[h]:H}]},cB]},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[h]:H}]},{[S]:Ag,[h]:j,rules:[{[S]:wB,[h]:j,rules:[{[S]:Ng,[h]:j,rules:[{[S]:Ag,[h]:j,rules:[{[S]:Ng,[h]:j,rules:[sB,{[S]:kB,[h]:j,rules:[Cg,{[S]:Ig,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[KB,"{partitionResult#name}"]}],[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[_g,vo]}],[h]:j,rules:[{[S]:Tg,[h]:j,rules:[{[S]:OB,[h]:j,rules:[{[S]:Og,error:"Access Points do not support S3 Accelerate",[h]:H},{[S]:[Pe,_e],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:qa,[V]:ae},[h]:z},{[S]:[Pe,ce],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:qa,[V]:ae},[h]:z},{[S]:[se,_e],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:qa,[V]:ae},[h]:z},{[S]:[se,ce,Ie,ot],endpoint:{[$]:UT,[K]:qa,[V]:ae},[h]:z},{[S]:[se,ce],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:qa,[V]:ae},[h]:z}]},iB]},bg]},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[h]:H}]},Eg]},Pg]}]}]},aB]}]}]},{[S]:[{[O]:_r,[N]:[zg,Yt]}],[h]:j,rules:[{[S]:xB,error:"S3 MRAP does not support dual-stack",[h]:H},{[S]:tm,error:"S3 MRAP does not support FIPS",[h]:H},{[S]:Og,error:"S3 MRAP does not support S3 Accelerate",[h]:H},{[S]:[{[O]:tt,[N]:[{[re]:"DisableMultiRegionAccessPoints"},Yt]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[h]:H},{[S]:[{[O]:nm,[N]:kg,[We]:GT}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[{[O]:Re,[N]:[{[re]:GT},Ct]},{[O]:Re,[N]:[at,"partition"]}]}],[h]:j,rules:[{endpoint:{[$]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[K]:{[Cn]:[{[Sn]:Yt,name:"sigv4a",[bn]:vo,signingRegionSet:["*"]}]},[V]:ae},[h]:z}]},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[h]:H}]}]},{error:"Invalid Access Point Name",[h]:H}]},cB]},{[S]:[{[O]:ke,[N]:[_g,Fg]}],[h]:j,rules:[{[S]:xB,error:"S3 Outposts does not support Dual-stack",[h]:H},{[S]:tm,error:"S3 Outposts does not support FIPS",[h]:H},{[S]:Og,error:"S3 Outposts does not support S3 Accelerate",[h]:H},{[S]:[{[O]:Jt,[N]:[{[O]:Re,[N]:[at,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[h]:H},{[S]:[{[O]:Re,[N]:uee,[We]:Bg}],[h]:j,rules:[{[S]:bB,[h]:j,rules:[Cg,{[S]:Ig,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:AB,[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:Tg,[h]:j,rules:[{[S]:[{[O]:Re,[N]:mee,[We]:HT}],[h]:j,rules:[{[S]:[{[O]:Re,[N]:[at,"resourceId[3]"],[We]:jg}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[{[re]:HT},jB]}],[h]:j,rules:[{[S]:Da,endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[K]:dB,[V]:ae},[h]:z},{endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:dB,[V]:ae},[h]:z}]},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[h]:H}]},{error:"Invalid ARN: expected an access point name",[h]:H}]},{error:"Invalid ARN: Expected a 4-component resource",[h]:H}]},bg]},Eg]},Pg]}]}]},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[h]:H}]},{error:"Invalid ARN: The Outpost Id was not set",[h]:H}]},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[h]:H}]},{error:"Invalid ARN: No ARN type specified",[h]:H}]},{[S]:[{[O]:Ba,[N]:[_n,0,4,FT],[We]:$T},{[O]:ke,[N]:[{[re]:$T},"arn:"]},{[O]:Ot,[N]:[{[O]:Jt,[N]:[lB]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[h]:H},{[S]:[{[O]:tt,[N]:[dee,Yt]},lB],error:"Path-style addressing cannot be used with ARN buckets",[h]:H},{[S]:[{[O]:"uriEncode",[N]:SB,[We]:"uri_encoded_bucket"}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:[De],[h]:j,rules:[{[S]:[_e,ne,Pe,Fe],endpoint:{[$]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,ne,Pe,de,Ge],[h]:j,rules:[{endpoint:uB,[h]:z}]},{[S]:[_e,ne,Pe,de,He],endpoint:uB,[h]:z},{[S]:[ce,ne,Pe,Fe],endpoint:{[$]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,ne,Pe,de,Ge],[h]:j,rules:[{endpoint:mB,[h]:z}]},{[S]:[ce,ne,Pe,de,He],endpoint:mB,[h]:z},{[S]:[_e,ne,se,Fe],endpoint:{[$]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,ne,se,de,Ge],[h]:j,rules:[{endpoint:pB,[h]:z}]},{[S]:[_e,ne,se,de,He],endpoint:pB,[h]:z},{[S]:[ce,Ie,ot,se,Fe],endpoint:{[$]:zB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,Ie,ot,se,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:vg,[h]:z},{endpoint:vg,[h]:z}]},{[S]:[ce,Ie,ot,se,de,He],endpoint:vg,[h]:z},{[S]:[ce,ne,se,Fe],endpoint:{[$]:KT,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,ne,se,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:KT,[K]:Me,[V]:ae},[h]:z},{endpoint:fB,[h]:z}]},{[S]:[ce,ne,se,de,He],endpoint:fB,[h]:z}]},{error:"Path-style addressing cannot be used with S3 Accelerate",[h]:H}]}]}]},{[S]:[{[O]:Jt,[N]:[yB]},{[O]:tt,[N]:[yB,Yt]}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:NB,[h]:j,rules:[rB,oB,{[S]:Da,endpoint:{[$]:qg,[K]:wg,[V]:ae},[h]:z},{[S]:tm,endpoint:{[$]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[K]:wg,[V]:ae},[h]:z},{endpoint:{[$]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[K]:wg,[V]:ae},[h]:z}]},em]}]},{[S]:[{[O]:Ot,[N]:PB}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:NB,[h]:j,rules:[{[S]:[Pe,_e,ne,Fe],endpoint:{[$]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[Pe,_e,ne,de,Ge],[h]:j,rules:[{endpoint:gB,[h]:z}]},{[S]:[Pe,_e,ne,de,He],endpoint:gB,[h]:z},{[S]:[Pe,ce,ne,Fe],endpoint:{[$]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[Pe,ce,ne,de,Ge],[h]:j,rules:[{endpoint:hB,[h]:z}]},{[S]:[Pe,ce,ne,de,He],endpoint:hB,[h]:z},{[S]:[se,_e,ne,Fe],endpoint:{[$]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[se,_e,ne,de,Ge],[h]:j,rules:[{endpoint:_B,[h]:z}]},{[S]:[se,_e,ne,de,He],endpoint:_B,[h]:z},{[S]:[se,ce,Ie,ot,Fe],endpoint:{[$]:qg,[K]:Ue,[V]:ae},[h]:z},{[S]:[se,ce,Ie,ot,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:xg,[h]:z},{endpoint:xg,[h]:z}]},{[S]:[se,ce,Ie,ot,de,He],endpoint:xg,[h]:z},{[S]:[se,ce,ne,Fe],endpoint:{[$]:VT,[K]:Ue,[V]:ae},[h]:z},{[S]:[se,ce,ne,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:VT,[K]:Me,[V]:ae},[h]:z},{endpoint:CB,[h]:z}]},{[S]:[se,ce,ne,de,He],endpoint:CB,[h]:z}]},em]}]}]},{error:"A region must be set when sending requests to S3.",[h]:H}]};om.ruleSet=pee});var WB=m(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.defaultEndpointResolver=void 0;var fee=jr(),yee=XB(),gee=(e,n={})=>(0,fee.resolveEndpoint)(yee.ruleSet,{endpointParams:e,logger:n.logger});sm.defaultEndpointResolver=gee});var ZB=m(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.getRuntimeConfig=void 0;var hee=MT(),_ee=b(),Cee=mr(),YB=Pr(),JB=np(),QB=yt(),See=WB(),bee=e=>({apiVersion:"2006-03-01",base64Decoder:(e==null?void 0:e.base64Decoder)??YB.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??YB.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??See.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],getAwsChunkedEncodingStream:(e==null?void 0:e.getAwsChunkedEncodingStream)??JB.getAwsChunkedEncodingStream,logger:(e==null?void 0:e.logger)??new _ee.NoOpLogger,sdkStreamMixin:(e==null?void 0:e.sdkStreamMixin)??JB.sdkStreamMixin,serviceId:(e==null?void 0:e.serviceId)??"S3",signerConstructor:(e==null?void 0:e.signerConstructor)??hee.SignatureV4MultiRegion,signingEscapePath:(e==null?void 0:e.signingEscapePath)??!1,urlParser:(e==null?void 0:e.urlParser)??Cee.parseUrl,useArnRegion:(e==null?void 0:e.useArnRegion)??!1,utf8Decoder:(e==null?void 0:e.utf8Decoder)??QB.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??QB.toUtf8});im.getRuntimeConfig=bee});var nq=m(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.getRuntimeConfig=void 0;var Eee=(te(),Y(ee)),Pee=Eee.__importDefault(Wk()),vee=iT(),wee=zy(),xee=yT(),kee=pa(),am=Mt(),Aee=AT(),Ug=fa(),Oee=TT(),eq=sn(),wo=on(),tq=vr(),Nee=ya(),Iee=zr(),Ree=ZB(),Tee=b(),Bee=ha(),qee=b(),Dee=e=>{(0,qee.emitWarningIfUnsupportedVersion)(process.version);let n=(0,Bee.resolveDefaultsModeConfig)(e),t=()=>n().then(Tee.loadConfigsForDefaultMode),r=(0,Ree.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??Nee.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,vee.decorateDefaultCredentialProvider)(wee.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,kee.defaultUserAgent)({serviceId:r.serviceId,clientVersion:Pee.default.version}),eventStreamSerdeProvider:(e==null?void 0:e.eventStreamSerdeProvider)??Aee.eventStreamSerdeProvider,maxAttempts:(e==null?void 0:e.maxAttempts)??(0,wo.loadConfig)(eq.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),md5:(e==null?void 0:e.md5)??Ug.Hash.bind(null,"md5"),region:(e==null?void 0:e.region)??(0,wo.loadConfig)(am.NODE_REGION_CONFIG_OPTIONS,am.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new tq.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,wo.loadConfig)({...eq.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||Iee.DEFAULT_RETRY_MODE}),sha1:(e==null?void 0:e.sha1)??Ug.Hash.bind(null,"sha1"),sha256:(e==null?void 0:e.sha256)??Ug.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??tq.streamCollector,streamHasher:(e==null?void 0:e.streamHasher)??Oee.readableStreamHasher,useArnRegion:(e==null?void 0:e.useArnRegion)??(0,wo.loadConfig)(xee.NODE_USE_ARN_REGION_CONFIG_OPTIONS),useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,wo.loadConfig)(am.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,wo.loadConfig)(am.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};cm.getRuntimeConfig=Dee});var iq=m(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.resolveRuntimeExtensions=void 0;var rq=Ml(),oq=Ne(),sq=b(),Gg=e=>e,Mee=(e,n)=>{let t={...Gg((0,rq.getAwsRegionExtensionConfiguration)(e)),...Gg((0,sq.getDefaultExtensionConfiguration)(e)),...Gg((0,oq.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,rq.resolveAwsRegionExtensionConfiguration)(t),...(0,sq.resolveDefaultRuntimeConfig)(t),...(0,oq.resolveHttpHandlerRuntimeConfig)(t)}};dm.resolveRuntimeExtensions=Mee});var Ma=m(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.S3Client=xo.__Client=void 0;var Fee=Nb(),aq=Ni(),Lee=Ii(),jee=Ri(),cq=Or(),dq=rn(),lq=Ji(),zee=Mt(),Uee=tx(),Gee=Qi(),Hee=x(),uq=sn(),mq=b();Object.defineProperty(xo,"__Client",{enumerable:!0,get:function(){return mq.Client}});var $ee=Xk(),Kee=nq(),Vee=iq(),Hg=class extends mq.Client{constructor(...[n]){let t=(0,Kee.getRuntimeConfig)(n||{}),r=(0,$ee.resolveClientEndpointParameters)(t),o=(0,zee.resolveRegionConfig)(r),s=(0,Hee.resolveEndpointConfig)(o),c=(0,uq.resolveRetryConfig)(s),i=(0,aq.resolveHostHeaderConfig)(c),u=(0,dq.resolveAwsAuthConfig)(i),l=(0,cq.resolveS3Config)(u),a=(0,lq.resolveUserAgentConfig)(l),y=(0,Uee.resolveEventStreamSerdeConfig)(a),g=(0,Vee.resolveRuntimeExtensions)(y,(n==null?void 0:n.extensions)||[]);super(g),this.config=g,this.middlewareStack.use((0,uq.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Gee.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,aq.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Lee.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,jee.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,dq.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,cq.getValidateBucketNamePlugin)(this.config)),this.middlewareStack.use((0,Fee.getAddExpectContinuePlugin)(this.config)),this.middlewareStack.use((0,lq.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};xo.S3Client=Hg});var pq=m(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.escapeAttribute=void 0;function Xee(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}lm.escapeAttribute=Xee});var fq=m(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.escapeElement=void 0;function Wee(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}um.escapeElement=Wee});var Kg=m(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.XmlText=void 0;var Yee=fq(),$g=class{constructor(n){this.value=n}toString(){return(0,Yee.escapeElement)(""+this.value)}};mm.XmlText=$g});var yq=m(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.XmlNode=void 0;var Jee=pq(),Qee=Kg(),Vg=class e{static of(n,t,r){let o=new e(n);return t!==void 0&&o.addChildNode(new Qee.XmlText(t)),r!==void 0&&o.withName(r),o}constructor(n,t=[]){this.name=n,this.children=t,this.attributes={}}withName(n){return this.name=n,this}addAttribute(n,t){return this.attributes[n]=t,this}addChildNode(n){return this.children.push(n),this}removeAttribute(n){return delete this.attributes[n],this}toString(){let n=!!this.children.length,t=`<${this.name}`,r=this.attributes;for(let o of Object.keys(r)){let s=r[o];typeof s<"u"&&s!==null&&(t+=` ${o}="${(0,Jee.escapeAttribute)(""+s)}"`)}return t+=n?`>${this.children.map(o=>o.toString()).join("")}`:"/>"}};pm.XmlNode=Vg});var hq=m(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});var gq=(te(),Y(ee));gq.__exportStar(yq(),fm);gq.__exportStar(Kg(),fm)});var Fa=m(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.S3ServiceException=ko.__ServiceException=void 0;var _q=b();Object.defineProperty(ko,"__ServiceException",{enumerable:!0,get:function(){return _q.ServiceException}});var Xg=class e extends _q.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};ko.S3ServiceException=Xg});var Ye=m(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.ReplicationStatus=_.Protocol=_.BucketVersioningStatus=_.MFADeleteStatus=_.Payer=_.ReplicationRuleStatus=_.SseKmsEncryptedObjectsStatus=_.ReplicaModificationsStatus=_.ReplicationRuleFilter=_.ExistingObjectReplicationStatus=_.ReplicationTimeStatus=_.MetricsStatus=_.DeleteMarkerReplicationStatus=_.FilterRuleName=_.Event=_.MetricsFilter=_.BucketLogsPermission=_.ExpirationStatus=_.TransitionStorageClass=_.LifecycleRuleFilter=_.InventoryFrequency=_.InventoryOptionalField=_.InventoryIncludedObjectVersions=_.InventoryFormat=_.IntelligentTieringAccessTier=_.IntelligentTieringStatus=_.StorageClassAnalysisSchemaVersion=_.AnalyticsS3ExportFileFormat=_.AnalyticsFilter=_.ObjectOwnership=_.BucketLocationConstraint=_.BucketCannedACL=_.BucketAlreadyOwnedByYou=_.BucketAlreadyExists=_.ObjectNotInActiveTierError=_.TaggingDirective=_.StorageClass=_.ObjectLockMode=_.ObjectLockLegalHoldStatus=_.MetadataDirective=_.ChecksumAlgorithm=_.ObjectCannedACL=_.ServerSideEncryption=_.OwnerOverride=_.Permission=_.Type=_.BucketAccelerateStatus=_.NoSuchUpload=_.RequestPayer=_.RequestCharged=void 0;_.PutObjectRequestFilterSensitiveLog=_.PutObjectOutputFilterSensitiveLog=_.PutBucketInventoryConfigurationRequestFilterSensitiveLog=_.PutBucketEncryptionRequestFilterSensitiveLog=_.ListPartsRequestFilterSensitiveLog=_.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=_.HeadObjectRequestFilterSensitiveLog=_.HeadObjectOutputFilterSensitiveLog=_.GetObjectTorrentOutputFilterSensitiveLog=_.GetObjectAttributesRequestFilterSensitiveLog=_.GetObjectRequestFilterSensitiveLog=_.GetObjectOutputFilterSensitiveLog=_.GetBucketInventoryConfigurationOutputFilterSensitiveLog=_.InventoryConfigurationFilterSensitiveLog=_.InventoryDestinationFilterSensitiveLog=_.InventoryS3BucketDestinationFilterSensitiveLog=_.InventoryEncryptionFilterSensitiveLog=_.SSEKMSFilterSensitiveLog=_.GetBucketEncryptionOutputFilterSensitiveLog=_.ServerSideEncryptionConfigurationFilterSensitiveLog=_.ServerSideEncryptionRuleFilterSensitiveLog=_.ServerSideEncryptionByDefaultFilterSensitiveLog=_.CreateMultipartUploadRequestFilterSensitiveLog=_.CreateMultipartUploadOutputFilterSensitiveLog=_.CopyObjectRequestFilterSensitiveLog=_.CopyObjectOutputFilterSensitiveLog=_.CompleteMultipartUploadRequestFilterSensitiveLog=_.CompleteMultipartUploadOutputFilterSensitiveLog=_.MFADelete=_.ObjectVersionStorageClass=_.NoSuchBucket=_.OptionalObjectAttributes=_.ObjectStorageClass=_.EncodingType=_.ArchiveStatus=_.NotFound=_.ObjectLockRetentionMode=_.ObjectLockEnabled=_.ObjectAttributes=_.NoSuchKey=_.InvalidObjectState=_.ChecksumMode=void 0;var Ce=b(),Jn=Fa();_.RequestCharged={requester:"requester"};_.RequestPayer={requester:"requester"};var Wg=class e extends Jn.S3ServiceException{constructor(n){super({name:"NoSuchUpload",$fault:"client",...n}),this.name="NoSuchUpload",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchUpload=Wg;_.BucketAccelerateStatus={Enabled:"Enabled",Suspended:"Suspended"};_.Type={AmazonCustomerByEmail:"AmazonCustomerByEmail",CanonicalUser:"CanonicalUser",Group:"Group"};_.Permission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",READ_ACP:"READ_ACP",WRITE:"WRITE",WRITE_ACP:"WRITE_ACP"};_.OwnerOverride={Destination:"Destination"};_.ServerSideEncryption={AES256:"AES256",aws_kms:"aws:kms",aws_kms_dsse:"aws:kms:dsse"};_.ObjectCannedACL={authenticated_read:"authenticated-read",aws_exec_read:"aws-exec-read",bucket_owner_full_control:"bucket-owner-full-control",bucket_owner_read:"bucket-owner-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};_.ChecksumAlgorithm={CRC32:"CRC32",CRC32C:"CRC32C",SHA1:"SHA1",SHA256:"SHA256"};_.MetadataDirective={COPY:"COPY",REPLACE:"REPLACE"};_.ObjectLockLegalHoldStatus={OFF:"OFF",ON:"ON"};_.ObjectLockMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};_.StorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};_.TaggingDirective={COPY:"COPY",REPLACE:"REPLACE"};var Yg=class e extends Jn.S3ServiceException{constructor(n){super({name:"ObjectNotInActiveTierError",$fault:"client",...n}),this.name="ObjectNotInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.ObjectNotInActiveTierError=Yg;var Jg=class e extends Jn.S3ServiceException{constructor(n){super({name:"BucketAlreadyExists",$fault:"client",...n}),this.name="BucketAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.BucketAlreadyExists=Jg;var Qg=class e extends Jn.S3ServiceException{constructor(n){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...n}),this.name="BucketAlreadyOwnedByYou",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.BucketAlreadyOwnedByYou=Qg;_.BucketCannedACL={authenticated_read:"authenticated-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};_.BucketLocationConstraint={EU:"EU",af_south_1:"af-south-1",ap_east_1:"ap-east-1",ap_northeast_1:"ap-northeast-1",ap_northeast_2:"ap-northeast-2",ap_northeast_3:"ap-northeast-3",ap_south_1:"ap-south-1",ap_south_2:"ap-south-2",ap_southeast_1:"ap-southeast-1",ap_southeast_2:"ap-southeast-2",ap_southeast_3:"ap-southeast-3",ca_central_1:"ca-central-1",cn_north_1:"cn-north-1",cn_northwest_1:"cn-northwest-1",eu_central_1:"eu-central-1",eu_north_1:"eu-north-1",eu_south_1:"eu-south-1",eu_south_2:"eu-south-2",eu_west_1:"eu-west-1",eu_west_2:"eu-west-2",eu_west_3:"eu-west-3",me_south_1:"me-south-1",sa_east_1:"sa-east-1",us_east_2:"us-east-2",us_gov_east_1:"us-gov-east-1",us_gov_west_1:"us-gov-west-1",us_west_1:"us-west-1",us_west_2:"us-west-2"};_.ObjectOwnership={BucketOwnerEnforced:"BucketOwnerEnforced",BucketOwnerPreferred:"BucketOwnerPreferred",ObjectWriter:"ObjectWriter"};var Zee;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(Zee=_.AnalyticsFilter||(_.AnalyticsFilter={}));_.AnalyticsS3ExportFileFormat={CSV:"CSV"};_.StorageClassAnalysisSchemaVersion={V_1:"V_1"};_.IntelligentTieringStatus={Disabled:"Disabled",Enabled:"Enabled"};_.IntelligentTieringAccessTier={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};_.InventoryFormat={CSV:"CSV",ORC:"ORC",Parquet:"Parquet"};_.InventoryIncludedObjectVersions={All:"All",Current:"Current"};_.InventoryOptionalField={BucketKeyStatus:"BucketKeyStatus",ChecksumAlgorithm:"ChecksumAlgorithm",ETag:"ETag",EncryptionStatus:"EncryptionStatus",IntelligentTieringAccessTier:"IntelligentTieringAccessTier",IsMultipartUploaded:"IsMultipartUploaded",LastModifiedDate:"LastModifiedDate",ObjectAccessControlList:"ObjectAccessControlList",ObjectLockLegalHoldStatus:"ObjectLockLegalHoldStatus",ObjectLockMode:"ObjectLockMode",ObjectLockRetainUntilDate:"ObjectLockRetainUntilDate",ObjectOwner:"ObjectOwner",ReplicationStatus:"ReplicationStatus",Size:"Size",StorageClass:"StorageClass"};_.InventoryFrequency={Daily:"Daily",Weekly:"Weekly"};var ete;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.ObjectSizeGreaterThan!==void 0?t.ObjectSizeGreaterThan(n.ObjectSizeGreaterThan):n.ObjectSizeLessThan!==void 0?t.ObjectSizeLessThan(n.ObjectSizeLessThan):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(ete=_.LifecycleRuleFilter||(_.LifecycleRuleFilter={}));_.TransitionStorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",STANDARD_IA:"STANDARD_IA"};_.ExpirationStatus={Disabled:"Disabled",Enabled:"Enabled"};_.BucketLogsPermission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",WRITE:"WRITE"};var tte;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.AccessPointArn!==void 0?t.AccessPointArn(n.AccessPointArn):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(tte=_.MetricsFilter||(_.MetricsFilter={}));_.Event={s3_IntelligentTiering:"s3:IntelligentTiering",s3_LifecycleExpiration_:"s3:LifecycleExpiration:*",s3_LifecycleExpiration_Delete:"s3:LifecycleExpiration:Delete",s3_LifecycleExpiration_DeleteMarkerCreated:"s3:LifecycleExpiration:DeleteMarkerCreated",s3_LifecycleTransition:"s3:LifecycleTransition",s3_ObjectAcl_Put:"s3:ObjectAcl:Put",s3_ObjectCreated_:"s3:ObjectCreated:*",s3_ObjectCreated_CompleteMultipartUpload:"s3:ObjectCreated:CompleteMultipartUpload",s3_ObjectCreated_Copy:"s3:ObjectCreated:Copy",s3_ObjectCreated_Post:"s3:ObjectCreated:Post",s3_ObjectCreated_Put:"s3:ObjectCreated:Put",s3_ObjectRemoved_:"s3:ObjectRemoved:*",s3_ObjectRemoved_Delete:"s3:ObjectRemoved:Delete",s3_ObjectRemoved_DeleteMarkerCreated:"s3:ObjectRemoved:DeleteMarkerCreated",s3_ObjectRestore_:"s3:ObjectRestore:*",s3_ObjectRestore_Completed:"s3:ObjectRestore:Completed",s3_ObjectRestore_Delete:"s3:ObjectRestore:Delete",s3_ObjectRestore_Post:"s3:ObjectRestore:Post",s3_ObjectTagging_:"s3:ObjectTagging:*",s3_ObjectTagging_Delete:"s3:ObjectTagging:Delete",s3_ObjectTagging_Put:"s3:ObjectTagging:Put",s3_ReducedRedundancyLostObject:"s3:ReducedRedundancyLostObject",s3_Replication_:"s3:Replication:*",s3_Replication_OperationFailedReplication:"s3:Replication:OperationFailedReplication",s3_Replication_OperationMissedThreshold:"s3:Replication:OperationMissedThreshold",s3_Replication_OperationNotTracked:"s3:Replication:OperationNotTracked",s3_Replication_OperationReplicatedAfterThreshold:"s3:Replication:OperationReplicatedAfterThreshold"};_.FilterRuleName={prefix:"prefix",suffix:"suffix"};_.DeleteMarkerReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};_.MetricsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ReplicationTimeStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ExistingObjectReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};var nte;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(nte=_.ReplicationRuleFilter||(_.ReplicationRuleFilter={}));_.ReplicaModificationsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.SseKmsEncryptedObjectsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ReplicationRuleStatus={Disabled:"Disabled",Enabled:"Enabled"};_.Payer={BucketOwner:"BucketOwner",Requester:"Requester"};_.MFADeleteStatus={Disabled:"Disabled",Enabled:"Enabled"};_.BucketVersioningStatus={Enabled:"Enabled",Suspended:"Suspended"};_.Protocol={http:"http",https:"https"};_.ReplicationStatus={COMPLETE:"COMPLETE",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",REPLICA:"REPLICA"};_.ChecksumMode={ENABLED:"ENABLED"};var Zg=class e extends Jn.S3ServiceException{constructor(n){super({name:"InvalidObjectState",$fault:"client",...n}),this.name="InvalidObjectState",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.StorageClass=n.StorageClass,this.AccessTier=n.AccessTier}};_.InvalidObjectState=Zg;var eh=class e extends Jn.S3ServiceException{constructor(n){super({name:"NoSuchKey",$fault:"client",...n}),this.name="NoSuchKey",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchKey=eh;_.ObjectAttributes={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"};_.ObjectLockEnabled={Enabled:"Enabled"};_.ObjectLockRetentionMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};var th=class e extends Jn.S3ServiceException{constructor(n){super({name:"NotFound",$fault:"client",...n}),this.name="NotFound",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NotFound=th;_.ArchiveStatus={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};_.EncodingType={url:"url"};_.ObjectStorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};_.OptionalObjectAttributes={RESTORE_STATUS:"RestoreStatus"};var nh=class e extends Jn.S3ServiceException{constructor(n){super({name:"NoSuchBucket",$fault:"client",...n}),this.name="NoSuchBucket",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchBucket=nh;_.ObjectVersionStorageClass={STANDARD:"STANDARD"};_.MFADelete={Disabled:"Disabled",Enabled:"Enabled"};var rte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.CompleteMultipartUploadOutputFilterSensitiveLog=rte;var ote=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.CompleteMultipartUploadRequestFilterSensitiveLog=ote;var ste=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CopyObjectOutputFilterSensitiveLog=ste;var ite=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Ce.SENSITIVE_STRING}});_.CopyObjectRequestFilterSensitiveLog=ite;var ate=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CreateMultipartUploadOutputFilterSensitiveLog=ate;var cte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CreateMultipartUploadRequestFilterSensitiveLog=cte;var dte=e=>({...e,...e.KMSMasterKeyID&&{KMSMasterKeyID:Ce.SENSITIVE_STRING}});_.ServerSideEncryptionByDefaultFilterSensitiveLog=dte;var lte=e=>({...e,...e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:(0,_.ServerSideEncryptionByDefaultFilterSensitiveLog)(e.ApplyServerSideEncryptionByDefault)}});_.ServerSideEncryptionRuleFilterSensitiveLog=lte;var ute=e=>({...e,...e.Rules&&{Rules:e.Rules.map(n=>(0,_.ServerSideEncryptionRuleFilterSensitiveLog)(n))}});_.ServerSideEncryptionConfigurationFilterSensitiveLog=ute;var mte=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,_.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});_.GetBucketEncryptionOutputFilterSensitiveLog=mte;var pte=e=>({...e,...e.KeyId&&{KeyId:Ce.SENSITIVE_STRING}});_.SSEKMSFilterSensitiveLog=pte;var fte=e=>({...e,...e.SSEKMS&&{SSEKMS:(0,_.SSEKMSFilterSensitiveLog)(e.SSEKMS)}});_.InventoryEncryptionFilterSensitiveLog=fte;var yte=e=>({...e,...e.Encryption&&{Encryption:(0,_.InventoryEncryptionFilterSensitiveLog)(e.Encryption)}});_.InventoryS3BucketDestinationFilterSensitiveLog=yte;var gte=e=>({...e,...e.S3BucketDestination&&{S3BucketDestination:(0,_.InventoryS3BucketDestinationFilterSensitiveLog)(e.S3BucketDestination)}});_.InventoryDestinationFilterSensitiveLog=gte;var hte=e=>({...e,...e.Destination&&{Destination:(0,_.InventoryDestinationFilterSensitiveLog)(e.Destination)}});_.InventoryConfigurationFilterSensitiveLog=hte;var _te=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,_.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});_.GetBucketInventoryConfigurationOutputFilterSensitiveLog=_te;var Cte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.GetObjectOutputFilterSensitiveLog=Cte;var Ste=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.GetObjectRequestFilterSensitiveLog=Ste;var bte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.GetObjectAttributesRequestFilterSensitiveLog=bte;var Ete=e=>({...e});_.GetObjectTorrentOutputFilterSensitiveLog=Ete;var Pte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.HeadObjectOutputFilterSensitiveLog=Pte;var vte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.HeadObjectRequestFilterSensitiveLog=vte;var wte=e=>({...e,...e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map(n=>(0,_.InventoryConfigurationFilterSensitiveLog)(n))}});_.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=wte;var xte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.ListPartsRequestFilterSensitiveLog=xte;var kte=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,_.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});_.PutBucketEncryptionRequestFilterSensitiveLog=kte;var Ate=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,_.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});_.PutBucketInventoryConfigurationRequestFilterSensitiveLog=Ate;var Ote=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.PutObjectOutputFilterSensitiveLog=Ote;var Nte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.PutObjectRequestFilterSensitiveLog=Nte});var Zn=m(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.WriteGetObjectResponseRequestFilterSensitiveLog=X.UploadPartCopyRequestFilterSensitiveLog=X.UploadPartCopyOutputFilterSensitiveLog=X.UploadPartRequestFilterSensitiveLog=X.UploadPartOutputFilterSensitiveLog=X.SelectObjectContentRequestFilterSensitiveLog=X.SelectObjectContentOutputFilterSensitiveLog=X.SelectObjectContentEventStreamFilterSensitiveLog=X.RestoreObjectRequestFilterSensitiveLog=X.RestoreRequestFilterSensitiveLog=X.OutputLocationFilterSensitiveLog=X.S3LocationFilterSensitiveLog=X.EncryptionFilterSensitiveLog=X.SelectObjectContentEventStream=X.RestoreRequestType=X.QuoteFields=X.JSONType=X.FileHeaderInfo=X.CompressionType=X.ExpressionType=X.Tier=X.ObjectAlreadyInActiveTierError=void 0;var Qn=b(),Ite=Fa(),rh=class e extends Ite.S3ServiceException{constructor(n){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...n}),this.name="ObjectAlreadyInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};X.ObjectAlreadyInActiveTierError=rh;X.Tier={Bulk:"Bulk",Expedited:"Expedited",Standard:"Standard"};X.ExpressionType={SQL:"SQL"};X.CompressionType={BZIP2:"BZIP2",GZIP:"GZIP",NONE:"NONE"};X.FileHeaderInfo={IGNORE:"IGNORE",NONE:"NONE",USE:"USE"};X.JSONType={DOCUMENT:"DOCUMENT",LINES:"LINES"};X.QuoteFields={ALWAYS:"ALWAYS",ASNEEDED:"ASNEEDED"};X.RestoreRequestType={SELECT:"SELECT"};var Rte;(function(e){e.visit=(n,t)=>n.Records!==void 0?t.Records(n.Records):n.Stats!==void 0?t.Stats(n.Stats):n.Progress!==void 0?t.Progress(n.Progress):n.Cont!==void 0?t.Cont(n.Cont):n.End!==void 0?t.End(n.End):t._(n.$unknown[0],n.$unknown[1])})(Rte=X.SelectObjectContentEventStream||(X.SelectObjectContentEventStream={}));var Tte=e=>({...e,...e.KMSKeyId&&{KMSKeyId:Qn.SENSITIVE_STRING}});X.EncryptionFilterSensitiveLog=Tte;var Bte=e=>({...e,...e.Encryption&&{Encryption:(0,X.EncryptionFilterSensitiveLog)(e.Encryption)}});X.S3LocationFilterSensitiveLog=Bte;var qte=e=>({...e,...e.S3&&{S3:(0,X.S3LocationFilterSensitiveLog)(e.S3)}});X.OutputLocationFilterSensitiveLog=qte;var Dte=e=>({...e,...e.OutputLocation&&{OutputLocation:(0,X.OutputLocationFilterSensitiveLog)(e.OutputLocation)}});X.RestoreRequestFilterSensitiveLog=Dte;var Mte=e=>({...e,...e.RestoreRequest&&{RestoreRequest:(0,X.RestoreRequestFilterSensitiveLog)(e.RestoreRequest)}});X.RestoreObjectRequestFilterSensitiveLog=Mte;var Fte=e=>{if(e.Records!==void 0)return{Records:e.Records};if(e.Stats!==void 0)return{Stats:e.Stats};if(e.Progress!==void 0)return{Progress:e.Progress};if(e.Cont!==void 0)return{Cont:e.Cont};if(e.End!==void 0)return{End:e.End};if(e.$unknown!==void 0)return{[e.$unknown[0]]:"UNKNOWN"}};X.SelectObjectContentEventStreamFilterSensitiveLog=Fte;var Lte=e=>({...e,...e.Payload&&{Payload:"STREAMING_CONTENT"}});X.SelectObjectContentOutputFilterSensitiveLog=Lte;var jte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING}});X.SelectObjectContentRequestFilterSensitiveLog=jte;var zte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.UploadPartOutputFilterSensitiveLog=zte;var Ute=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING}});X.UploadPartRequestFilterSensitiveLog=Ute;var Gte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.UploadPartCopyOutputFilterSensitiveLog=Gte;var Hte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Qn.SENSITIVE_STRING}});X.UploadPartCopyRequestFilterSensitiveLog=Hte;var $te=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.WriteGetObjectResponseRequestFilterSensitiveLog=$te});var q=m(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.se_GetObjectTorrentCommand=p.se_GetObjectTaggingCommand=p.se_GetObjectRetentionCommand=p.se_GetObjectLockConfigurationCommand=p.se_GetObjectLegalHoldCommand=p.se_GetObjectAttributesCommand=p.se_GetObjectAclCommand=p.se_GetObjectCommand=p.se_GetBucketWebsiteCommand=p.se_GetBucketVersioningCommand=p.se_GetBucketTaggingCommand=p.se_GetBucketRequestPaymentCommand=p.se_GetBucketReplicationCommand=p.se_GetBucketPolicyStatusCommand=p.se_GetBucketPolicyCommand=p.se_GetBucketOwnershipControlsCommand=p.se_GetBucketNotificationConfigurationCommand=p.se_GetBucketMetricsConfigurationCommand=p.se_GetBucketLoggingCommand=p.se_GetBucketLocationCommand=p.se_GetBucketLifecycleConfigurationCommand=p.se_GetBucketInventoryConfigurationCommand=p.se_GetBucketIntelligentTieringConfigurationCommand=p.se_GetBucketEncryptionCommand=p.se_GetBucketCorsCommand=p.se_GetBucketAnalyticsConfigurationCommand=p.se_GetBucketAclCommand=p.se_GetBucketAccelerateConfigurationCommand=p.se_DeletePublicAccessBlockCommand=p.se_DeleteObjectTaggingCommand=p.se_DeleteObjectsCommand=p.se_DeleteObjectCommand=p.se_DeleteBucketWebsiteCommand=p.se_DeleteBucketTaggingCommand=p.se_DeleteBucketReplicationCommand=p.se_DeleteBucketPolicyCommand=p.se_DeleteBucketOwnershipControlsCommand=p.se_DeleteBucketMetricsConfigurationCommand=p.se_DeleteBucketLifecycleCommand=p.se_DeleteBucketInventoryConfigurationCommand=p.se_DeleteBucketIntelligentTieringConfigurationCommand=p.se_DeleteBucketEncryptionCommand=p.se_DeleteBucketCorsCommand=p.se_DeleteBucketAnalyticsConfigurationCommand=p.se_DeleteBucketCommand=p.se_CreateMultipartUploadCommand=p.se_CreateBucketCommand=p.se_CopyObjectCommand=p.se_CompleteMultipartUploadCommand=p.se_AbortMultipartUploadCommand=void 0;p.de_DeleteBucketAnalyticsConfigurationCommand=p.de_DeleteBucketCommand=p.de_CreateMultipartUploadCommand=p.de_CreateBucketCommand=p.de_CopyObjectCommand=p.de_CompleteMultipartUploadCommand=p.de_AbortMultipartUploadCommand=p.se_WriteGetObjectResponseCommand=p.se_UploadPartCopyCommand=p.se_UploadPartCommand=p.se_SelectObjectContentCommand=p.se_RestoreObjectCommand=p.se_PutPublicAccessBlockCommand=p.se_PutObjectTaggingCommand=p.se_PutObjectRetentionCommand=p.se_PutObjectLockConfigurationCommand=p.se_PutObjectLegalHoldCommand=p.se_PutObjectAclCommand=p.se_PutObjectCommand=p.se_PutBucketWebsiteCommand=p.se_PutBucketVersioningCommand=p.se_PutBucketTaggingCommand=p.se_PutBucketRequestPaymentCommand=p.se_PutBucketReplicationCommand=p.se_PutBucketPolicyCommand=p.se_PutBucketOwnershipControlsCommand=p.se_PutBucketNotificationConfigurationCommand=p.se_PutBucketMetricsConfigurationCommand=p.se_PutBucketLoggingCommand=p.se_PutBucketLifecycleConfigurationCommand=p.se_PutBucketInventoryConfigurationCommand=p.se_PutBucketIntelligentTieringConfigurationCommand=p.se_PutBucketEncryptionCommand=p.se_PutBucketCorsCommand=p.se_PutBucketAnalyticsConfigurationCommand=p.se_PutBucketAclCommand=p.se_PutBucketAccelerateConfigurationCommand=p.se_ListPartsCommand=p.se_ListObjectVersionsCommand=p.se_ListObjectsV2Command=p.se_ListObjectsCommand=p.se_ListMultipartUploadsCommand=p.se_ListBucketsCommand=p.se_ListBucketMetricsConfigurationsCommand=p.se_ListBucketInventoryConfigurationsCommand=p.se_ListBucketIntelligentTieringConfigurationsCommand=p.se_ListBucketAnalyticsConfigurationsCommand=p.se_HeadObjectCommand=p.se_HeadBucketCommand=p.se_GetPublicAccessBlockCommand=void 0;p.de_ListBucketMetricsConfigurationsCommand=p.de_ListBucketInventoryConfigurationsCommand=p.de_ListBucketIntelligentTieringConfigurationsCommand=p.de_ListBucketAnalyticsConfigurationsCommand=p.de_HeadObjectCommand=p.de_HeadBucketCommand=p.de_GetPublicAccessBlockCommand=p.de_GetObjectTorrentCommand=p.de_GetObjectTaggingCommand=p.de_GetObjectRetentionCommand=p.de_GetObjectLockConfigurationCommand=p.de_GetObjectLegalHoldCommand=p.de_GetObjectAttributesCommand=p.de_GetObjectAclCommand=p.de_GetObjectCommand=p.de_GetBucketWebsiteCommand=p.de_GetBucketVersioningCommand=p.de_GetBucketTaggingCommand=p.de_GetBucketRequestPaymentCommand=p.de_GetBucketReplicationCommand=p.de_GetBucketPolicyStatusCommand=p.de_GetBucketPolicyCommand=p.de_GetBucketOwnershipControlsCommand=p.de_GetBucketNotificationConfigurationCommand=p.de_GetBucketMetricsConfigurationCommand=p.de_GetBucketLoggingCommand=p.de_GetBucketLocationCommand=p.de_GetBucketLifecycleConfigurationCommand=p.de_GetBucketInventoryConfigurationCommand=p.de_GetBucketIntelligentTieringConfigurationCommand=p.de_GetBucketEncryptionCommand=p.de_GetBucketCorsCommand=p.de_GetBucketAnalyticsConfigurationCommand=p.de_GetBucketAclCommand=p.de_GetBucketAccelerateConfigurationCommand=p.de_DeletePublicAccessBlockCommand=p.de_DeleteObjectTaggingCommand=p.de_DeleteObjectsCommand=p.de_DeleteObjectCommand=p.de_DeleteBucketWebsiteCommand=p.de_DeleteBucketTaggingCommand=p.de_DeleteBucketReplicationCommand=p.de_DeleteBucketPolicyCommand=p.de_DeleteBucketOwnershipControlsCommand=p.de_DeleteBucketMetricsConfigurationCommand=p.de_DeleteBucketLifecycleCommand=p.de_DeleteBucketInventoryConfigurationCommand=p.de_DeleteBucketIntelligentTieringConfigurationCommand=p.de_DeleteBucketEncryptionCommand=p.de_DeleteBucketCorsCommand=void 0;p.de_WriteGetObjectResponseCommand=p.de_UploadPartCopyCommand=p.de_UploadPartCommand=p.de_SelectObjectContentCommand=p.de_RestoreObjectCommand=p.de_PutPublicAccessBlockCommand=p.de_PutObjectTaggingCommand=p.de_PutObjectRetentionCommand=p.de_PutObjectLockConfigurationCommand=p.de_PutObjectLegalHoldCommand=p.de_PutObjectAclCommand=p.de_PutObjectCommand=p.de_PutBucketWebsiteCommand=p.de_PutBucketVersioningCommand=p.de_PutBucketTaggingCommand=p.de_PutBucketRequestPaymentCommand=p.de_PutBucketReplicationCommand=p.de_PutBucketPolicyCommand=p.de_PutBucketOwnershipControlsCommand=p.de_PutBucketNotificationConfigurationCommand=p.de_PutBucketMetricsConfigurationCommand=p.de_PutBucketLoggingCommand=p.de_PutBucketLifecycleConfigurationCommand=p.de_PutBucketInventoryConfigurationCommand=p.de_PutBucketIntelligentTieringConfigurationCommand=p.de_PutBucketEncryptionCommand=p.de_PutBucketCorsCommand=p.de_PutBucketAnalyticsConfigurationCommand=p.de_PutBucketAclCommand=p.de_PutBucketAccelerateConfigurationCommand=p.de_ListPartsCommand=p.de_ListObjectVersionsCommand=p.de_ListObjectsV2Command=p.de_ListObjectsCommand=p.de_ListMultipartUploadsCommand=p.de_ListBucketsCommand=void 0;var f=hq(),B=Ne(),d=b(),Kte=Mf(),St=Ye(),Vte=Zn(),Xte=Fa(),Wte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"AbortMultipartUpload"],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_AbortMultipartUploadCommand=Wte;var Yte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"CompleteMultipartUpload"],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;e.MultipartUpload!==void 0&&(l=Pq(e.MultipartUpload,n));let a;return e.MultipartUpload!==void 0&&(a=Pq(e.MultipartUpload,n),a=a.withName("CompleteMultipartUpload"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_CompleteMultipartUploadCommand=Yte;var Jte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>P(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>P(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],expires:[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-metadata-directive":e.MetadataDirective,"x-amz-tagging-directive":e.TaggingDirective,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm,"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey,"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((a,y)=>(a[`x-amz-meta-${y.toLowerCase()}`]=e.Metadata[y],a),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"CopyObject"]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_CopyObjectCommand=Jte;var Qte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-acl":e.ACL,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-bucket-object-lock-enabled":[()=>P(e.ObjectLockEnabledForBucket),()=>e.ObjectLockEnabledForBucket.toString()],"x-amz-object-ownership":e.ObjectOwnership}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;e.CreateBucketConfiguration!==void 0&&(u=wq(e.CreateBucketConfiguration,n));let l;return e.CreateBucketConfiguration!==void 0&&(l=wq(e.CreateBucketConfiguration,n),u='',l.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),u+=l.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,body:u})};p.se_CreateBucketCommand=Qte;var Zte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,expires:[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((a,y)=>(a[`x-amz-meta-${y.toLowerCase()}`]=e.Metadata[y],a),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({uploads:[,""],"x-id":[,"CreateMultipartUpload"]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_CreateMultipartUploadCommand=Zte;var ene=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,body:u})};p.se_DeleteBucketCommand=ene;var tne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketAnalyticsConfigurationCommand=tne;var nne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketCorsCommand=nne;var rne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketEncryptionCommand=rne;var one=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketIntelligentTieringConfigurationCommand=one;var sne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketInventoryConfigurationCommand=sne;var ine=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketLifecycleCommand=ine;var ane=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketMetricsConfigurationCommand=ane;var cne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketOwnershipControlsCommand=cne;var dne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketPolicyCommand=dne;var lne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketReplicationCommand=lne;var une=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketTaggingCommand=une;var mne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketWebsiteCommand=mne;var pne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>P(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"DeleteObject"],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectCommand=pne;var fne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>P(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({delete:[,""],"x-id":[,"DeleteObjects"]}),l;e.Delete!==void 0&&(l=xq(e.Delete,n));let a;return e.Delete!==void 0&&(a=xq(e.Delete,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectsCommand=fne;var yne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectTaggingCommand=yne;var gne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeletePublicAccessBlockCommand=gne;var hne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAccelerateConfigurationCommand=hne;var _ne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAclCommand=_ne;var Cne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],"x-id":[,"GetBucketAnalyticsConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAnalyticsConfigurationCommand=Cne;var Sne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketCorsCommand=Sne;var bne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketEncryptionCommand=bne;var Ene=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],"x-id":[,"GetBucketIntelligentTieringConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketIntelligentTieringConfigurationCommand=Ene;var Pne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],"x-id":[,"GetBucketInventoryConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketInventoryConfigurationCommand=Pne;var vne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLifecycleConfigurationCommand=vne;var wne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({location:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLocationCommand=wne;var xne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLoggingCommand=xne;var kne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],"x-id":[,"GetBucketMetricsConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketMetricsConfigurationCommand=kne;var Ane=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketNotificationConfigurationCommand=Ane;var One=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketOwnershipControlsCommand=One;var Nne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketPolicyCommand=Nne;var Ine=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policyStatus:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketPolicyStatusCommand=Ine;var Rne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketReplicationCommand=Rne;var Tne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketRequestPaymentCommand=Tne;var Bne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketTaggingCommand=Bne;var qne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketVersioningCommand=qne;var Dne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketWebsiteCommand=Dne;var Mne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"if-match":e.IfMatch,"if-modified-since":[()=>P(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>P(e.IfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"GetObject"],"response-cache-control":[,e.ResponseCacheControl],"response-content-disposition":[,e.ResponseContentDisposition],"response-content-encoding":[,e.ResponseContentEncoding],"response-content-language":[,e.ResponseContentLanguage],"response-content-type":[,e.ResponseContentType],"response-expires":[()=>e.ResponseExpires!==void 0,()=>(0,d.dateToUtcString)(e.ResponseExpires).toString()],versionId:[,e.VersionId],partNumber:[()=>e.PartNumber!==void 0,()=>e.PartNumber.toString()]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectCommand=Mne;var Fne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({acl:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectAclCommand=Fne;var Lne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-max-parts":[()=>P(e.MaxParts),()=>e.MaxParts.toString()],"x-amz-part-number-marker":e.PartNumberMarker,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-object-attributes":[()=>P(e.ObjectAttributes),()=>(e.ObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({attributes:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectAttributesCommand=Lne;var jne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"legal-hold":[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectLegalHoldCommand=jne;var zne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectLockConfigurationCommand=zne;var Une=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({retention:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectRetentionCommand=Une;var Gne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectTaggingCommand=Gne;var Hne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({torrent:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectTorrentCommand=Hne;var $ne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetPublicAccessBlockCommand=$ne;var Kne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"HEAD",headers:c,path:i,body:u})};p.se_HeadBucketCommand=Kne;var Vne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"if-match":e.IfMatch,"if-modified-since":[()=>P(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>P(e.IfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({versionId:[,e.VersionId],partNumber:[()=>e.PartNumber!==void 0,()=>e.PartNumber.toString()]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"HEAD",headers:c,path:i,query:u,body:l})};p.se_HeadObjectCommand=Vne;var Xne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],"x-id":[,"ListBucketAnalyticsConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketAnalyticsConfigurationsCommand=Xne;var Wne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],"x-id":[,"ListBucketIntelligentTieringConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketIntelligentTieringConfigurationsCommand=Wne;var Yne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],"x-id":[,"ListBucketInventoryConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketInventoryConfigurationsCommand=Yne;var Jne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],"x-id":[,"ListBucketMetricsConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketMetricsConfigurationsCommand=Jne;var Qne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/xml"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`,u;return u="",new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,body:u})};p.se_ListBucketsCommand=Qne;var Zne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({uploads:[,""],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"key-marker":[,e.KeyMarker],"max-uploads":[()=>e.MaxUploads!==void 0,()=>e.MaxUploads.toString()],prefix:[,e.Prefix],"upload-id-marker":[,e.UploadIdMarker]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListMultipartUploadsCommand=Zne;var ere=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>P(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],marker:[,e.Marker],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectsCommand=ere;var tre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>P(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"list-type":[,"2"],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix],"continuation-token":[,e.ContinuationToken],"fetch-owner":[()=>e.FetchOwner!==void 0,()=>e.FetchOwner.toString()],"start-after":[,e.StartAfter]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectsV2Command=tre;var nre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer,"x-amz-optional-object-attributes":[()=>P(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versions:[,""],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"key-marker":[,e.KeyMarker],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix],"version-id-marker":[,e.VersionIdMarker]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectVersionsCommand=nre;var rre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"ListParts"],"max-parts":[()=>e.MaxParts!==void 0,()=>e.MaxParts.toString()],"part-number-marker":[,e.PartNumberMarker],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListPartsCommand=rre;var ore=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;e.AccelerateConfiguration!==void 0&&(l=Cq(e.AccelerateConfiguration,n));let a;return e.AccelerateConfiguration!==void 0&&(a=Cq(e.AccelerateConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAccelerateConfigurationCommand=ore;var sre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-acl":e.ACL,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;e.AccessControlPolicy!==void 0&&(l=ym(e.AccessControlPolicy,n));let a;return e.AccessControlPolicy!==void 0&&(a=ym(e.AccessControlPolicy,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAclCommand=sre;var ire=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.AnalyticsConfiguration!==void 0&&(l=Sq(e.AnalyticsConfiguration,n));let a;return e.AnalyticsConfiguration!==void 0&&(a=Sq(e.AnalyticsConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAnalyticsConfigurationCommand=ire;var are=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;e.CORSConfiguration!==void 0&&(l=vq(e.CORSConfiguration,n));let a;return e.CORSConfiguration!==void 0&&(a=vq(e.CORSConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketCorsCommand=are;var cre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;e.ServerSideEncryptionConfiguration!==void 0&&(l=Lq(e.ServerSideEncryptionConfiguration,n));let a;return e.ServerSideEncryptionConfiguration!==void 0&&(a=Lq(e.ServerSideEncryptionConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketEncryptionCommand=cre;var dre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/xml"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.IntelligentTieringConfiguration!==void 0&&(l=kq(e.IntelligentTieringConfiguration,n));let a;return e.IntelligentTieringConfiguration!==void 0&&(a=kq(e.IntelligentTieringConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketIntelligentTieringConfigurationCommand=dre;var lre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.InventoryConfiguration!==void 0&&(l=Aq(e.InventoryConfiguration,n));let a;return e.InventoryConfiguration!==void 0&&(a=Aq(e.InventoryConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketInventoryConfigurationCommand=lre;var ure=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;e.LifecycleConfiguration!==void 0&&(l=bq(e.LifecycleConfiguration,n));let a;return e.LifecycleConfiguration!==void 0&&(a=bq(e.LifecycleConfiguration,n),a=a.withName("LifecycleConfiguration"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketLifecycleConfigurationCommand=ure;var mre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;e.BucketLoggingStatus!==void 0&&(l=Eq(e.BucketLoggingStatus,n));let a;return e.BucketLoggingStatus!==void 0&&(a=Eq(e.BucketLoggingStatus,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketLoggingCommand=mre;var pre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.MetricsConfiguration!==void 0&&(l=Oq(e.MetricsConfiguration,n));let a;return e.MetricsConfiguration!==void 0&&(a=Oq(e.MetricsConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketMetricsConfigurationCommand=pre;var fre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-skip-destination-validation":[()=>P(e.SkipDestinationValidation),()=>e.SkipDestinationValidation.toString()]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;e.NotificationConfiguration!==void 0&&(l=Nq(e.NotificationConfiguration,n));let a;return e.NotificationConfiguration!==void 0&&(a=Nq(e.NotificationConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketNotificationConfigurationCommand=fre;var yre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;e.OwnershipControls!==void 0&&(l=Bq(e.OwnershipControls,n));let a;return e.OwnershipControls!==void 0&&(a=Bq(e.OwnershipControls,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketOwnershipControlsCommand=yre;var gre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"text/plain","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-confirm-remove-self-bucket-access":[()=>P(e.ConfirmRemoveSelfBucketAccess),()=>e.ConfirmRemoveSelfBucketAccess.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;e.Policy!==void 0&&(l=e.Policy);let a;return e.Policy!==void 0&&(a=e.Policy,l=a),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketPolicyCommand=gre;var hre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-bucket-object-lock-token":e.Token,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;e.ReplicationConfiguration!==void 0&&(l=Dq(e.ReplicationConfiguration,n));let a;return e.ReplicationConfiguration!==void 0&&(a=Dq(e.ReplicationConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketReplicationCommand=hre;var _re=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;e.RequestPaymentConfiguration!==void 0&&(l=Mq(e.RequestPaymentConfiguration,n));let a;return e.RequestPaymentConfiguration!==void 0&&(a=Mq(e.RequestPaymentConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketRequestPaymentCommand=_re;var Cre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;e.Tagging!==void 0&&(l=La(e.Tagging,n));let a;return e.Tagging!==void 0&&(a=La(e.Tagging,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketTaggingCommand=Cre;var Sre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-mfa":e.MFA,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;e.VersioningConfiguration!==void 0&&(l=jq(e.VersioningConfiguration,n));let a;return e.VersioningConfiguration!==void 0&&(a=jq(e.VersioningConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketVersioningCommand=Sre;var bre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;e.WebsiteConfiguration!==void 0&&(l=zq(e.WebsiteConfiguration,n));let a;return e.WebsiteConfiguration!==void 0&&(a=zq(e.WebsiteConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketWebsiteCommand=bre;var Ere=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":e.ContentType||"application/octet-stream","x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-length":[()=>P(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,expires:[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((y,g)=>(y[`x-amz-meta-${g.toLowerCase()}`]=e.Metadata[g],y),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"PutObject"]}),l;e.Body!==void 0&&(l=e.Body);let a;return e.Body!==void 0&&(a=e.Body,l=a),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectCommand=Ere;var Pre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-acl":e.ACL,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({acl:[,""],versionId:[,e.VersionId]}),l;e.AccessControlPolicy!==void 0&&(l=ym(e.AccessControlPolicy,n));let a;return e.AccessControlPolicy!==void 0&&(a=ym(e.AccessControlPolicy,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectAclCommand=Pre;var vre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"legal-hold":[,""],versionId:[,e.VersionId]}),l;e.LegalHold!==void 0&&(l=Rq(e.LegalHold,n));let a;return e.LegalHold!==void 0&&(a=Rq(e.LegalHold,n),a=a.withName("LegalHold"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectLegalHoldCommand=vre;var wre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bucket-object-lock-token":e.Token,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;e.ObjectLockConfiguration!==void 0&&(l=Iq(e.ObjectLockConfiguration,n));let a;return e.ObjectLockConfiguration!==void 0&&(a=Iq(e.ObjectLockConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectLockConfigurationCommand=wre;var xre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>P(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({retention:[,""],versionId:[,e.VersionId]}),l;e.Retention!==void 0&&(l=Tq(e.Retention,n));let a;return e.Retention!==void 0&&(a=Tq(e.Retention,n),a=a.withName("Retention"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectRetentionCommand=xre;var kre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;e.Tagging!==void 0&&(l=La(e.Tagging,n));let a;return e.Tagging!==void 0&&(a=La(e.Tagging,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectTaggingCommand=kre;var Are=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;e.PublicAccessBlockConfiguration!==void 0&&(l=qq(e.PublicAccessBlockConfiguration,n));let a;return e.PublicAccessBlockConfiguration!==void 0&&(a=qq(e.PublicAccessBlockConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutPublicAccessBlockCommand=Are;var Ore=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({restore:[,""],"x-id":[,"RestoreObject"],versionId:[,e.VersionId]}),l;e.RestoreRequest!==void 0&&(l=Fq(e.RestoreRequest,n));let a;return e.RestoreRequest!==void 0&&(a=Fq(e.RestoreRequest,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_RestoreObjectCommand=Ore;var Nre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({select:[,""],"select-type":[,"2"],"x-id":[,"SelectObjectContent"]}),l;l='';let a=new f.XmlNode("SelectObjectContentRequest");if(a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),e.Expression!==void 0){let y=f.XmlNode.of("Expression",e.Expression).withName("Expression");a.addChildNode(y)}if(e.ExpressionType!==void 0){let y=f.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");a.addChildNode(y)}if(e.InputSerialization!==void 0){let y=Kq(e.InputSerialization,n).withName("InputSerialization");a.addChildNode(y)}if(e.OutputSerialization!==void 0){let y=Vq(e.OutputSerialization,n).withName("OutputSerialization");a.addChildNode(y)}if(e.RequestProgress!==void 0){let y=qce(e.RequestProgress,n).withName("RequestProgress");a.addChildNode(y)}if(e.ScanRange!==void 0){let y=jce(e.ScanRange,n).withName("ScanRange");a.addChildNode(y)}return l+=a.toString(),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_SelectObjectContentCommand=Nre;var Ire=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/octet-stream","content-length":[()=>P(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"UploadPart"],partNumber:[(0,d.expectNonNull)(e.PartNumber,"PartNumber")!=null,()=>e.PartNumber.toString()],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;e.Body!==void 0&&(l=e.Body);let a;return e.Body!==void 0&&(a=e.Body,l=a),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_UploadPartCommand=Ire;var Rre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>P(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>P(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],"x-amz-copy-source-range":e.CopySourceRange,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm,"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey,"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"UploadPartCopy"],partNumber:[(0,d.expectNonNull)(e.PartNumber,"PartNumber")!=null,()=>e.PartNumber.toString()],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_UploadPartCopyCommand=Rre;var Tre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-content-sha256":"UNSIGNED-PAYLOAD","content-type":"application/octet-stream","x-amz-request-route":e.RequestRoute,"x-amz-request-token":e.RequestToken,"x-amz-fwd-status":[()=>P(e.StatusCode),()=>e.StatusCode.toString()],"x-amz-fwd-error-code":e.ErrorCode,"x-amz-fwd-error-message":e.ErrorMessage,"x-amz-fwd-header-accept-ranges":e.AcceptRanges,"x-amz-fwd-header-cache-control":e.CacheControl,"x-amz-fwd-header-content-disposition":e.ContentDisposition,"x-amz-fwd-header-content-encoding":e.ContentEncoding,"x-amz-fwd-header-content-language":e.ContentLanguage,"content-length":[()=>P(e.ContentLength),()=>e.ContentLength.toString()],"x-amz-fwd-header-content-range":e.ContentRange,"x-amz-fwd-header-content-type":e.ContentType,"x-amz-fwd-header-x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-fwd-header-x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-fwd-header-x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-fwd-header-x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-fwd-header-x-amz-delete-marker":[()=>P(e.DeleteMarker),()=>e.DeleteMarker.toString()],"x-amz-fwd-header-etag":e.ETag,"x-amz-fwd-header-expires":[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-fwd-header-x-amz-expiration":e.Expiration,"x-amz-fwd-header-last-modified":[()=>P(e.LastModified),()=>(0,d.dateToUtcString)(e.LastModified).toString()],"x-amz-fwd-header-x-amz-missing-meta":[()=>P(e.MissingMeta),()=>e.MissingMeta.toString()],"x-amz-fwd-header-x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-fwd-header-x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-fwd-header-x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-fwd-header-x-amz-mp-parts-count":[()=>P(e.PartsCount),()=>e.PartsCount.toString()],"x-amz-fwd-header-x-amz-replication-status":e.ReplicationStatus,"x-amz-fwd-header-x-amz-request-charged":e.RequestCharged,"x-amz-fwd-header-x-amz-restore":e.Restore,"x-amz-fwd-header-x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-fwd-header-x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-fwd-header-x-amz-storage-class":e.StorageClass,"x-amz-fwd-header-x-amz-tagging-count":[()=>P(e.TagCount),()=>e.TagCount.toString()],"x-amz-fwd-header-x-amz-version-id":e.VersionId,"x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((g,C)=>(g[`x-amz-meta-${C.toLowerCase()}`]=e.Metadata[C],g),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/WriteGetObjectResponse`,u=(0,d.map)({"x-id":[,"WriteGetObjectResponse"]}),l;e.Body!==void 0&&(l=e.Body);let a;e.Body!==void 0&&(a=e.Body,l=a);let{hostname:y}=await n.endpoint();if(n.disableHostPrefix!==!0){if(y="{RequestRoute}."+y,e.RequestRoute===void 0)throw new Error("Empty value provided for input host prefix: RequestRoute.");if(y=y.replace("{RequestRoute}",e.RequestRoute),!(0,B.isValidHostname)(y))throw new Error("ValidationError: prefixed hostname must be hostname compatible.")}return new B.HttpRequest({protocol:r,hostname:y,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_WriteGetObjectResponseCommand=Tre;var Bre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return qre(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_AbortMultipartUploadCommand=Bre;var qre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":throw await aae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Dre=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mre(e,n);let t=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(r.ChecksumCRC32)),r.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(r.ChecksumCRC32C)),r.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(r.ChecksumSHA1)),r.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(r.ChecksumSHA256)),r.ETag!==void 0&&(t.ETag=(0,d.expectString)(r.ETag)),r.Key!==void 0&&(t.Key=(0,d.expectString)(r.Key)),r.Location!==void 0&&(t.Location=(0,d.expectString)(r.Location)),t};p.de_CompleteMultipartUploadCommand=Dre;var Mre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Fre=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lre(e,n);let t=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],CopySourceVersionId:[,e.headers["x-amz-copy-source-version-id"]],VersionId:[,e.headers["x-amz-version-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectObject)(await Q(e.body,n));return t.CopyObjectResult=Ede(r,n),t};p.de_CopyObjectCommand=Fre;var Lre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":throw await dae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},jre=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zre(e,n);let t=(0,d.map)({$metadata:I(e),Location:[,e.headers.location]});return await(0,d.collectBody)(e.body,n),t};p.de_CreateBucketCommand=jre;var zre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"BucketAlreadyExists":case"com.amazonaws.s3#BucketAlreadyExists":throw await oae(t,n);case"BucketAlreadyOwnedByYou":case"com.amazonaws.s3#BucketAlreadyOwnedByYou":throw await sae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Ure=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gre(e,n);let t=(0,d.map)({$metadata:I(e),AbortDate:[()=>e.headers["x-amz-abort-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["x-amz-abort-date"]))],AbortRuleId:[,e.headers["x-amz-abort-rule-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]],ChecksumAlgorithm:[,e.headers["x-amz-checksum-algorithm"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.Key!==void 0&&(t.Key=(0,d.expectString)(r.Key)),r.UploadId!==void 0&&(t.UploadId=(0,d.expectString)(r.UploadId)),t};p.de_CreateMultipartUploadCommand=Ure;var Gre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Hre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return $re(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketCommand=Hre;var $re=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Kre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Vre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketAnalyticsConfigurationCommand=Kre;var Vre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Xre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Wre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketCorsCommand=Xre;var Wre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Yre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Jre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketEncryptionCommand=Yre;var Jre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Qre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Zre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketIntelligentTieringConfigurationCommand=Qre;var Zre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},eoe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return toe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketInventoryConfigurationCommand=eoe;var toe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},noe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return roe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketLifecycleCommand=noe;var roe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ooe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return soe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketMetricsConfigurationCommand=ooe;var soe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ioe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return aoe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketOwnershipControlsCommand=ioe;var aoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},coe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return doe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketPolicyCommand=coe;var doe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},loe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return uoe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketReplicationCommand=loe;var uoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},moe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return poe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketTaggingCommand=moe;var poe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},foe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return yoe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketWebsiteCommand=foe;var yoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},goe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return hoe(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],VersionId:[,e.headers["x-amz-version-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteObjectCommand=goe;var hoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},_oe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Coe(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Deleted===""?t.Deleted=[]:r.Deleted!==void 0&&(t.Deleted=Ade((0,d.getArrayIfSingleItem)(r.Deleted),n)),r.Error===""?t.Errors=[]:r.Error!==void 0&&(t.Errors=Mde((0,d.getArrayIfSingleItem)(r.Error),n)),t};p.de_DeleteObjectsCommand=_oe;var Coe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Soe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return boe(e,n);let t=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteObjectTaggingCommand=Soe;var boe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Eoe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Poe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeletePublicAccessBlockCommand=Eoe;var Poe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},voe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return woe(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Status!==void 0&&(t.Status=(0,d.expectString)(r.Status)),t};p.de_GetBucketAccelerateConfigurationCommand=voe;var woe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},xoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return koe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.AccessControlList===""?t.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(t.Grants=Qq((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),n)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),t};p.de_GetBucketAclCommand=xoe;var koe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Aoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ooe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.AnalyticsConfiguration=Wq(r,n),t};p.de_GetBucketAnalyticsConfigurationCommand=Aoe;var Ooe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Noe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ioe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CORSRule===""?t.CORSRules=[]:r.CORSRule!==void 0&&(t.CORSRules=wde((0,d.getArrayIfSingleItem)(r.CORSRule),n)),t};p.de_GetBucketCorsCommand=Noe;var Ioe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Roe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Toe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.ServerSideEncryptionConfiguration=Jle(r,n),t};p.de_GetBucketEncryptionCommand=Roe;var Toe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Boe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qoe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.IntelligentTieringConfiguration=eD(r,n),t};p.de_GetBucketIntelligentTieringConfigurationCommand=Boe;var qoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Doe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Moe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.InventoryConfiguration=tD(r,n),t};p.de_GetBucketInventoryConfigurationCommand=Doe;var Moe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Foe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Loe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Rule===""?t.Rules=[]:r.Rule!==void 0&&(t.Rules=cle((0,d.getArrayIfSingleItem)(r.Rule),n)),t};p.de_GetBucketLifecycleConfigurationCommand=Foe;var Loe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},joe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zoe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.LocationConstraint!==void 0&&(t.LocationConstraint=(0,d.expectString)(r.LocationConstraint)),t};p.de_GetBucketLocationCommand=joe;var zoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Uoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Goe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.LoggingEnabled!==void 0&&(t.LoggingEnabled=dle(r.LoggingEnabled,n)),t};p.de_GetBucketLoggingCommand=Uoe;var Goe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Hoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $oe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.MetricsConfiguration=nD(r,n),t};p.de_GetBucketMetricsConfigurationCommand=Hoe;var $oe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Koe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Voe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.EventBridgeConfiguration!==void 0&&(t.EventBridgeConfiguration=Fde(r.EventBridgeConfiguration,n)),r.CloudFunctionConfiguration===""?t.LambdaFunctionConfigurations=[]:r.CloudFunctionConfiguration!==void 0&&(t.LambdaFunctionConfigurations=rle((0,d.getArrayIfSingleItem)(r.CloudFunctionConfiguration),n)),r.QueueConfiguration===""?t.QueueConfigurations=[]:r.QueueConfiguration!==void 0&&(t.QueueConfigurations=Mle((0,d.getArrayIfSingleItem)(r.QueueConfiguration),n)),r.TopicConfiguration===""?t.TopicConfigurations=[]:r.TopicConfiguration!==void 0&&(t.TopicConfigurations=mue((0,d.getArrayIfSingleItem)(r.TopicConfiguration),n)),t};p.de_GetBucketNotificationConfigurationCommand=Koe;var Voe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Xoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Woe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.OwnershipControls=kle(r,n),t};p.de_GetBucketOwnershipControlsCommand=Xoe;var Woe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Yoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Joe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=await iD(e.body,n);return t.Policy=(0,d.expectString)(r),t};p.de_GetBucketPolicyCommand=Yoe;var Joe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Qoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zoe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.PolicyStatus=Tle(r,n),t};p.de_GetBucketPolicyStatusCommand=Qoe;var Zoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ese=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return tse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.ReplicationConfiguration=zle(r,n),t};p.de_GetBucketReplicationCommand=ese;var tse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},nse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return rse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Payer!==void 0&&(t.Payer=(0,d.expectString)(r.Payer)),t};p.de_GetBucketRequestPaymentCommand=nse;var rse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ose=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return sse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.TagSet===""?t.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(t.TagSet=Cr((0,d.getArrayIfSingleItem)(r.TagSet.Tag),n)),t};p.de_GetBucketTaggingCommand=ose;var sse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ise=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return ase(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.MfaDelete!==void 0&&(t.MFADelete=(0,d.expectString)(r.MfaDelete)),r.Status!==void 0&&(t.Status=(0,d.expectString)(r.Status)),t};p.de_GetBucketVersioningCommand=ise;var ase=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},cse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return dse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ErrorDocument!==void 0&&(t.ErrorDocument=Dde(r.ErrorDocument,n)),r.IndexDocument!==void 0&&(t.IndexDocument=$de(r.IndexDocument,n)),r.RedirectAllRequestsTo!==void 0&&(t.RedirectAllRequestsTo=Lle(r.RedirectAllRequestsTo,n)),r.RoutingRules===""?t.RoutingRules=[]:r.RoutingRules!==void 0&&r.RoutingRules.RoutingRule!==void 0&&(t.RoutingRules=Xle((0,d.getArrayIfSingleItem)(r.RoutingRules.RoutingRule),n)),t};p.de_GetBucketWebsiteCommand=cse;var dse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},lse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return use(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],ContentLength:[()=>e.headers["content-length"]!==void 0,()=>(0,d.strictParseLong)(e.headers["content-length"])],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],MissingMeta:[()=>e.headers["x-amz-missing-meta"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentRange:[,e.headers["content-range"]],ContentType:[,e.headers["content-type"]],Expires:[()=>e.headers.expires!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>e.headers["x-amz-mp-parts-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-mp-parts-count"])],TagCount:[()=>e.headers["x-amz-tagging-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-tagging-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>e.headers["x-amz-object-lock-retain-until-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter(o=>o.startsWith("x-amz-meta-")).reduce((o,s)=>(o[s.substring(11)]=e.headers[s],o),{})]}),r=e.body;return n.sdkStreamMixin(r),t.Body=r,t};p.de_GetObjectCommand=lse;var use=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":throw await iae(t,n);case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},mse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return pse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.AccessControlList===""?t.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(t.Grants=Qq((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),n)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),t};p.de_GetObjectAclCommand=mse;var pse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},fse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return yse(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],VersionId:[,e.headers["x-amz-version-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Checksum!==void 0&&(t.Checksum=_de(r.Checksum,n)),r.ETag!==void 0&&(t.ETag=(0,d.expectString)(r.ETag)),r.ObjectParts!==void 0&&(t.ObjectParts=Gde(r.ObjectParts,n)),r.ObjectSize!==void 0&&(t.ObjectSize=(0,d.strictParseLong)(r.ObjectSize)),r.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(r.StorageClass)),t};p.de_GetObjectAttributesCommand=fse;var yse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},gse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return hse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.LegalHold=ble(r,n),t};p.de_GetObjectLegalHoldCommand=gse;var hse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},_se=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.ObjectLockConfiguration=Sle(r,n),t};p.de_GetObjectLockConfigurationCommand=_se;var Cse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Sse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return bse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.Retention=Ele(r,n),t};p.de_GetObjectRetentionCommand=Sse;var bse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Ese=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Pse(e,n);let t=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.TagSet===""?t.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(t.TagSet=Cr((0,d.getArrayIfSingleItem)(r.TagSet.Tag),n)),t};p.de_GetObjectTaggingCommand=Ese;var Pse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},vse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return wse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=e.body;return n.sdkStreamMixin(r),t.Body=r,t};p.de_GetObjectTorrentCommand=vse;var wse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},xse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return kse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.PublicAccessBlockConfiguration=qle(r,n),t};p.de_GetPublicAccessBlockCommand=xse;var kse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Ase=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ose(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_HeadBucketCommand=Ase;var Ose=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await Gq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Nse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ise(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],ArchiveStatus:[,e.headers["x-amz-archive-status"]],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],ContentLength:[()=>e.headers["content-length"]!==void 0,()=>(0,d.strictParseLong)(e.headers["content-length"])],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ETag:[,e.headers.etag],MissingMeta:[()=>e.headers["x-amz-missing-meta"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentType:[,e.headers["content-type"]],Expires:[()=>e.headers.expires!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>e.headers["x-amz-mp-parts-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-mp-parts-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>e.headers["x-amz-object-lock-retain-until-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter(r=>r.startsWith("x-amz-meta-")).reduce((r,o)=>(r[o.substring(11)]=e.headers[o],r),{})]});return await(0,d.collectBody)(e.body,n),t};p.de_HeadObjectCommand=Nse;var Ise=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await Gq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Rse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.AnalyticsConfiguration===""?t.AnalyticsConfigurationList=[]:r.AnalyticsConfiguration!==void 0&&(t.AnalyticsConfigurationList=mde((0,d.getArrayIfSingleItem)(r.AnalyticsConfiguration),n)),r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketAnalyticsConfigurationsCommand=Rse;var Tse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Bse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IntelligentTieringConfiguration===""?t.IntelligentTieringConfigurationList=[]:r.IntelligentTieringConfiguration!==void 0&&(t.IntelligentTieringConfigurationList=Vde((0,d.getArrayIfSingleItem)(r.IntelligentTieringConfiguration),n)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketIntelligentTieringConfigurationsCommand=Bse;var qse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Dse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.InventoryConfiguration===""?t.InventoryConfigurationList=[]:r.InventoryConfiguration!==void 0&&(t.InventoryConfigurationList=Wde((0,d.getArrayIfSingleItem)(r.InventoryConfiguration),n)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketInventoryConfigurationsCommand=Dse;var Mse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Fse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.MetricsConfiguration===""?t.MetricsConfigurationList=[]:r.MetricsConfiguration!==void 0&&(t.MetricsConfigurationList=mle((0,d.getArrayIfSingleItem)(r.MetricsConfiguration),n)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketMetricsConfigurationsCommand=Fse;var Lse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},jse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Buckets===""?t.Buckets=[]:r.Buckets!==void 0&&r.Buckets.Bucket!==void 0&&(t.Buckets=hde((0,d.getArrayIfSingleItem)(r.Buckets.Bucket),n)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),t};p.de_ListBucketsCommand=jse;var zse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Use=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyMarker!==void 0&&(t.KeyMarker=(0,d.expectString)(r.KeyMarker)),r.MaxUploads!==void 0&&(t.MaxUploads=(0,d.strictParseInt32)(r.MaxUploads)),r.NextKeyMarker!==void 0&&(t.NextKeyMarker=(0,d.expectString)(r.NextKeyMarker)),r.NextUploadIdMarker!==void 0&&(t.NextUploadIdMarker=(0,d.expectString)(r.NextUploadIdMarker)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),r.UploadIdMarker!==void 0&&(t.UploadIdMarker=(0,d.expectString)(r.UploadIdMarker)),r.Upload===""?t.Uploads=[]:r.Upload!==void 0&&(t.Uploads=yle((0,d.getArrayIfSingleItem)(r.Upload),n)),t};p.de_ListMultipartUploadsCommand=Use;var Gse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Hse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $se(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Contents===""?t.Contents=[]:r.Contents!==void 0&&(t.Contents=rD((0,d.getArrayIfSingleItem)(r.Contents),n)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.Marker!==void 0&&(t.Marker=(0,d.expectString)(r.Marker)),r.MaxKeys!==void 0&&(t.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(t.Name=(0,d.expectString)(r.Name)),r.NextMarker!==void 0&&(t.NextMarker=(0,d.expectString)(r.NextMarker)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),t};p.de_ListObjectsCommand=Hse;var $se=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await Uq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Kse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Contents===""?t.Contents=[]:r.Contents!==void 0&&(t.Contents=rD((0,d.getArrayIfSingleItem)(r.Contents),n)),r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyCount!==void 0&&(t.KeyCount=(0,d.strictParseInt32)(r.KeyCount)),r.MaxKeys!==void 0&&(t.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(t.Name=(0,d.expectString)(r.Name)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),r.StartAfter!==void 0&&(t.StartAfter=(0,d.expectString)(r.StartAfter)),t};p.de_ListObjectsV2Command=Kse;var Vse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await Uq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Xse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Wse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.DeleteMarker===""?t.DeleteMarkers=[]:r.DeleteMarker!==void 0&&(t.DeleteMarkers=Ide((0,d.getArrayIfSingleItem)(r.DeleteMarker),n)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyMarker!==void 0&&(t.KeyMarker=(0,d.expectString)(r.KeyMarker)),r.MaxKeys!==void 0&&(t.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(t.Name=(0,d.expectString)(r.Name)),r.NextKeyMarker!==void 0&&(t.NextKeyMarker=(0,d.expectString)(r.NextKeyMarker)),r.NextVersionIdMarker!==void 0&&(t.NextVersionIdMarker=(0,d.expectString)(r.NextVersionIdMarker)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),r.VersionIdMarker!==void 0&&(t.VersionIdMarker=(0,d.expectString)(r.VersionIdMarker)),r.Version===""?t.Versions=[]:r.Version!==void 0&&(t.Versions=xle((0,d.getArrayIfSingleItem)(r.Version),n)),t};p.de_ListObjectVersionsCommand=Xse;var Wse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Yse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Jse(e,n);let t=(0,d.map)({$metadata:I(e),AbortDate:[()=>e.headers["x-amz-abort-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["x-amz-abort-date"]))],AbortRuleId:[,e.headers["x-amz-abort-rule-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=(0,d.expectString)(r.ChecksumAlgorithm)),r.Initiator!==void 0&&(t.Initiator=Zq(r.Initiator,n)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.Key!==void 0&&(t.Key=(0,d.expectString)(r.Key)),r.MaxParts!==void 0&&(t.MaxParts=(0,d.strictParseInt32)(r.MaxParts)),r.NextPartNumberMarker!==void 0&&(t.NextPartNumberMarker=(0,d.expectString)(r.NextPartNumberMarker)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),r.PartNumberMarker!==void 0&&(t.PartNumberMarker=(0,d.expectString)(r.PartNumberMarker)),r.Part===""?t.Parts=[]:r.Part!==void 0&&(t.Parts=Ile((0,d.getArrayIfSingleItem)(r.Part),n)),r.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(r.StorageClass)),r.UploadId!==void 0&&(t.UploadId=(0,d.expectString)(r.UploadId)),t};p.de_ListPartsCommand=Yse;var Jse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Qse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zse(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAccelerateConfigurationCommand=Qse;var Zse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},eie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return tie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAclCommand=eie;var tie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},nie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return rie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAnalyticsConfigurationCommand=nie;var rie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},oie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return sie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketCorsCommand=oie;var sie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},iie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return aie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketEncryptionCommand=iie;var aie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},cie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return die(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketIntelligentTieringConfigurationCommand=cie;var die=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},lie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return uie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketInventoryConfigurationCommand=lie;var uie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},mie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return pie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketLifecycleConfigurationCommand=mie;var pie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},fie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return yie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketLoggingCommand=fie;var yie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},gie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return hie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketMetricsConfigurationCommand=gie;var hie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},_ie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketNotificationConfigurationCommand=_ie;var Cie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Sie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return bie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketOwnershipControlsCommand=Sie;var bie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Eie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Pie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketPolicyCommand=Eie;var Pie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},vie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return wie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketReplicationCommand=vie;var wie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},xie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return kie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketRequestPaymentCommand=xie;var kie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Aie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Oie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketTaggingCommand=Aie;var Oie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Nie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Iie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketVersioningCommand=Nie;var Iie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Rie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketWebsiteCommand=Rie;var Tie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Bie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qie(e,n);let t=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectCommand=Bie;var qie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Die=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectAclCommand=Die;var Mie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Fie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectLegalHoldCommand=Fie;var Lie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},jie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectLockConfigurationCommand=jie;var zie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Uie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectRetentionCommand=Uie;var Gie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Hie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $ie(e,n);let t=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectTaggingCommand=Hie;var $ie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Kie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutPublicAccessBlockCommand=Kie;var Vie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Xie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Wie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]],RestoreOutputPath:[,e.headers["x-amz-restore-output-path"]]});return await(0,d.collectBody)(e.body,n),t};p.de_RestoreObjectCommand=Xie;var Wie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"ObjectAlreadyInActiveTierError":case"com.amazonaws.s3#ObjectAlreadyInActiveTierError":throw await cae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Yie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Jie(e,n);let t=(0,d.map)({$metadata:I(e)}),r=e.body;return t.Payload=lae(r,n),t};p.de_SelectObjectContentCommand=Yie;var Jie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Qie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zie(e,n);let t=(0,d.map)({$metadata:I(e),ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_UploadPartCommand=Qie;var Zie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},eae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return tae(e,n);let t=(0,d.map)({$metadata:I(e),CopySourceVersionId:[,e.headers["x-amz-copy-source-version-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectObject)(await Q(e.body,n));return t.CopyPartResult=Pde(r,n),t};p.de_UploadPartCopyCommand=eae;var tae=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},nae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return rae(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_WriteGetObjectResponseCommand=nae;var rae=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},D=(0,d.withBaseException)(Xte.S3ServiceException),oae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.BucketAlreadyExists({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},sae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.BucketAlreadyOwnedByYou({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},iae=async(e,n)=>{let t=(0,d.map)({}),r=e.body;r.AccessTier!==void 0&&(t.AccessTier=(0,d.expectString)(r.AccessTier)),r.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(r.StorageClass));let o=new St.InvalidObjectState({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},Uq=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NoSuchBucket({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},gm=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NoSuchKey({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},aae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NoSuchUpload({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},Gq=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NotFound({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},cae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new Vte.ObjectAlreadyInActiveTierError({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},dae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.ObjectNotInActiveTierError({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},lae=(e,n)=>n.eventStreamMarshaller.deserialize(e,async t=>t.Records!=null?{Records:await fae(t.Records,n)}:t.Stats!=null?{Stats:await yae(t.Stats,n)}:t.Progress!=null?{Progress:await pae(t.Progress,n)}:t.Cont!=null?{Cont:await uae(t.Cont,n)}:t.End!=null?{End:await mae(t.End,n)}:{$unknown:e}),uae=async(e,n)=>{let t={},r=await Q(e.body,n);return Object.assign(t,bde(r,n)),t},mae=async(e,n)=>{let t={},r=await Q(e.body,n);return Object.assign(t,Bde(r,n)),t},pae=async(e,n)=>{let t={},r=await Q(e.body,n);return t.Details=Ble(r,n),t},fae=async(e,n)=>{let t={};return t.Payload=e.body,t},yae=async(e,n)=>{let t={},r=await Q(e.body,n);return t.Details=oue(r,n),t},gae=(e,n)=>{let t=new f.XmlNode("AbortIncompleteMultipartUpload");if(e.DaysAfterInitiation!=null){let r=f.XmlNode.of("DaysAfterInitiation",String(e.DaysAfterInitiation)).withName("DaysAfterInitiation");t.addChildNode(r)}return t},Cq=(e,n)=>{let t=new f.XmlNode("AccelerateConfiguration");if(e.Status!=null){let r=f.XmlNode.of("BucketAccelerateStatus",e.Status).withName("Status");t.addChildNode(r)}return t},ym=(e,n)=>{let t=new f.XmlNode("AccessControlPolicy");if(e.Grants!=null){let r=$q(e.Grants,n),o=new f.XmlNode("AccessControlList");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Owner!=null){let r=bce(e.Owner,n).withName("Owner");t.addChildNode(r)}return t},hae=(e,n)=>{let t=new f.XmlNode("AccessControlTranslation");if(e.Owner!=null){let r=f.XmlNode.of("OwnerOverride",e.Owner).withName("Owner");t.addChildNode(r)}return t},_ae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedHeader",t).withName("member")),Cae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedMethod",t).withName("member")),Sae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedOrigin",t).withName("member")),bae=(e,n)=>{let t=new f.XmlNode("AnalyticsAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},Sq=(e,n)=>{let t=new f.XmlNode("AnalyticsConfiguration");if(e.Id!=null){let r=f.XmlNode.of("AnalyticsId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=Pae(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.StorageClassAnalysis!=null){let r=Wce(e.StorageClassAnalysis,n).withName("StorageClassAnalysis");t.addChildNode(r)}return t},Eae=(e,n)=>{let t=new f.XmlNode("AnalyticsExportDestination");if(e.S3BucketDestination!=null){let r=vae(e.S3BucketDestination,n).withName("S3BucketDestination");t.addChildNode(r)}return t},Pae=(e,n)=>{let t=new f.XmlNode("AnalyticsFilter");return St.AnalyticsFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},And:r=>{let o=bae(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},vae=(e,n)=>{let t=new f.XmlNode("AnalyticsS3BucketDestination");if(e.Format!=null){let r=f.XmlNode.of("AnalyticsS3ExportFileFormat",e.Format).withName("Format");t.addChildNode(r)}if(e.BucketAccountId!=null){let r=f.XmlNode.of("AccountId",e.BucketAccountId).withName("BucketAccountId");t.addChildNode(r)}if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return t},bq=(e,n)=>{let t=new f.XmlNode("BucketLifecycleConfiguration");return e.Rules!=null&&cce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},Eq=(e,n)=>{let t=new f.XmlNode("BucketLoggingStatus");if(e.LoggingEnabled!=null){let r=dce(e.LoggingEnabled,n).withName("LoggingEnabled");t.addChildNode(r)}return t},Pq=(e,n)=>{let t=new f.XmlNode("CompletedMultipartUpload");return e.Parts!=null&&xae(e.Parts,n).map(o=>{o=o.withName("Part"),t.addChildNode(o)}),t},wae=(e,n)=>{let t=new f.XmlNode("CompletedPart");if(e.ETag!=null){let r=f.XmlNode.of("ETag",e.ETag).withName("ETag");t.addChildNode(r)}if(e.ChecksumCRC32!=null){let r=f.XmlNode.of("ChecksumCRC32",e.ChecksumCRC32).withName("ChecksumCRC32");t.addChildNode(r)}if(e.ChecksumCRC32C!=null){let r=f.XmlNode.of("ChecksumCRC32C",e.ChecksumCRC32C).withName("ChecksumCRC32C");t.addChildNode(r)}if(e.ChecksumSHA1!=null){let r=f.XmlNode.of("ChecksumSHA1",e.ChecksumSHA1).withName("ChecksumSHA1");t.addChildNode(r)}if(e.ChecksumSHA256!=null){let r=f.XmlNode.of("ChecksumSHA256",e.ChecksumSHA256).withName("ChecksumSHA256");t.addChildNode(r)}if(e.PartNumber!=null){let r=f.XmlNode.of("PartNumber",String(e.PartNumber)).withName("PartNumber");t.addChildNode(r)}return t},xae=(e,n)=>e.filter(t=>t!=null).map(t=>wae(t,n).withName("member")),kae=(e,n)=>{let t=new f.XmlNode("Condition");if(e.HttpErrorCodeReturnedEquals!=null){let r=f.XmlNode.of("HttpErrorCodeReturnedEquals",e.HttpErrorCodeReturnedEquals).withName("HttpErrorCodeReturnedEquals");t.addChildNode(r)}if(e.KeyPrefixEquals!=null){let r=f.XmlNode.of("KeyPrefixEquals",e.KeyPrefixEquals).withName("KeyPrefixEquals");t.addChildNode(r)}return t},vq=(e,n)=>{let t=new f.XmlNode("CORSConfiguration");return e.CORSRules!=null&&Oae(e.CORSRules,n).map(o=>{o=o.withName("CORSRule"),t.addChildNode(o)}),t},Aae=(e,n)=>{let t=new f.XmlNode("CORSRule");if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.AllowedHeaders!=null&&_ae(e.AllowedHeaders,n).map(o=>{o=o.withName("AllowedHeader"),t.addChildNode(o)}),e.AllowedMethods!=null&&Cae(e.AllowedMethods,n).map(o=>{o=o.withName("AllowedMethod"),t.addChildNode(o)}),e.AllowedOrigins!=null&&Sae(e.AllowedOrigins,n).map(o=>{o=o.withName("AllowedOrigin"),t.addChildNode(o)}),e.ExposeHeaders!=null&&jae(e.ExposeHeaders,n).map(o=>{o=o.withName("ExposeHeader"),t.addChildNode(o)}),e.MaxAgeSeconds!=null){let r=f.XmlNode.of("MaxAgeSeconds",String(e.MaxAgeSeconds)).withName("MaxAgeSeconds");t.addChildNode(r)}return t},Oae=(e,n)=>e.filter(t=>t!=null).map(t=>Aae(t,n).withName("member")),wq=(e,n)=>{let t=new f.XmlNode("CreateBucketConfiguration");if(e.LocationConstraint!=null){let r=f.XmlNode.of("BucketLocationConstraint",e.LocationConstraint).withName("LocationConstraint");t.addChildNode(r)}return t},Nae=(e,n)=>{let t=new f.XmlNode("CSVInput");if(e.FileHeaderInfo!=null){let r=f.XmlNode.of("FileHeaderInfo",e.FileHeaderInfo).withName("FileHeaderInfo");t.addChildNode(r)}if(e.Comments!=null){let r=f.XmlNode.of("Comments",e.Comments).withName("Comments");t.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=f.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");t.addChildNode(r)}if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}if(e.FieldDelimiter!=null){let r=f.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");t.addChildNode(r)}if(e.QuoteCharacter!=null){let r=f.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");t.addChildNode(r)}if(e.AllowQuotedRecordDelimiter!=null){let r=f.XmlNode.of("AllowQuotedRecordDelimiter",String(e.AllowQuotedRecordDelimiter)).withName("AllowQuotedRecordDelimiter");t.addChildNode(r)}return t},Iae=(e,n)=>{let t=new f.XmlNode("CSVOutput");if(e.QuoteFields!=null){let r=f.XmlNode.of("QuoteFields",e.QuoteFields).withName("QuoteFields");t.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=f.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");t.addChildNode(r)}if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}if(e.FieldDelimiter!=null){let r=f.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");t.addChildNode(r)}if(e.QuoteCharacter!=null){let r=f.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");t.addChildNode(r)}return t},Rae=(e,n)=>{let t=new f.XmlNode("DefaultRetention");if(e.Mode!=null){let r=f.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");t.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.Years!=null){let r=f.XmlNode.of("Years",String(e.Years)).withName("Years");t.addChildNode(r)}return t},xq=(e,n)=>{let t=new f.XmlNode("Delete");if(e.Objects!=null&&_ce(e.Objects,n).map(o=>{o=o.withName("Object"),t.addChildNode(o)}),e.Quiet!=null){let r=f.XmlNode.of("Quiet",String(e.Quiet)).withName("Quiet");t.addChildNode(r)}return t},Tae=(e,n)=>{let t=new f.XmlNode("DeleteMarkerReplication");if(e.Status!=null){let r=f.XmlNode.of("DeleteMarkerReplicationStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Bae=(e,n)=>{let t=new f.XmlNode("Destination");if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Account!=null){let r=f.XmlNode.of("AccountId",e.Account).withName("Account");t.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}if(e.AccessControlTranslation!=null){let r=hae(e.AccessControlTranslation,n).withName("AccessControlTranslation");t.addChildNode(r)}if(e.EncryptionConfiguration!=null){let r=Dae(e.EncryptionConfiguration,n).withName("EncryptionConfiguration");t.addChildNode(r)}if(e.ReplicationTime!=null){let r=Bce(e.ReplicationTime,n).withName("ReplicationTime");t.addChildNode(r)}if(e.Metrics!=null){let r=uce(e.Metrics,n).withName("Metrics");t.addChildNode(r)}return t},qae=(e,n)=>{let t=new f.XmlNode("Encryption");if(e.EncryptionType!=null){let r=f.XmlNode.of("ServerSideEncryption",e.EncryptionType).withName("EncryptionType");t.addChildNode(r)}if(e.KMSKeyId!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KMSKeyId).withName("KMSKeyId");t.addChildNode(r)}if(e.KMSContext!=null){let r=f.XmlNode.of("KMSContext",e.KMSContext).withName("KMSContext");t.addChildNode(r)}return t},Dae=(e,n)=>{let t=new f.XmlNode("EncryptionConfiguration");if(e.ReplicaKmsKeyID!=null){let r=f.XmlNode.of("ReplicaKmsKeyID",e.ReplicaKmsKeyID).withName("ReplicaKmsKeyID");t.addChildNode(r)}return t},Mae=(e,n)=>{let t=new f.XmlNode("ErrorDocument");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}return t},Fae=(e,n)=>new f.XmlNode("EventBridgeConfiguration"),oh=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("Event",t).withName("member")),Lae=(e,n)=>{let t=new f.XmlNode("ExistingObjectReplication");if(e.Status!=null){let r=f.XmlNode.of("ExistingObjectReplicationStatus",e.Status).withName("Status");t.addChildNode(r)}return t},jae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("ExposeHeader",t).withName("member")),zae=(e,n)=>{let t=new f.XmlNode("FilterRule");if(e.Name!=null){let r=f.XmlNode.of("FilterRuleName",e.Name).withName("Name");t.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("FilterRuleValue",e.Value).withName("Value");t.addChildNode(r)}return t},Uae=(e,n)=>e.filter(t=>t!=null).map(t=>zae(t,n).withName("member")),Gae=(e,n)=>{let t=new f.XmlNode("GlacierJobParameters");if(e.Tier!=null){let r=f.XmlNode.of("Tier",e.Tier).withName("Tier");t.addChildNode(r)}return t},Hae=(e,n)=>{let t=new f.XmlNode("Grant");if(e.Grantee!=null){let r=Hq(e.Grantee,n).withName("Grantee");r.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),t.addChildNode(r)}if(e.Permission!=null){let r=f.XmlNode.of("Permission",e.Permission).withName("Permission");t.addChildNode(r)}return t},Hq=(e,n)=>{let t=new f.XmlNode("Grantee");if(e.DisplayName!=null){let r=f.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");t.addChildNode(r)}if(e.EmailAddress!=null){let r=f.XmlNode.of("EmailAddress",e.EmailAddress).withName("EmailAddress");t.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.URI!=null){let r=f.XmlNode.of("URI",e.URI).withName("URI");t.addChildNode(r)}return e.Type!=null&&t.addAttribute("xsi:type",e.Type),t},$q=(e,n)=>e.filter(t=>t!=null).map(t=>Hae(t,n).withName("Grant")),$ae=(e,n)=>{let t=new f.XmlNode("IndexDocument");if(e.Suffix!=null){let r=f.XmlNode.of("Suffix",e.Suffix).withName("Suffix");t.addChildNode(r)}return t},Kq=(e,n)=>{let t=new f.XmlNode("InputSerialization");if(e.CSV!=null){let r=Nae(e.CSV,n).withName("CSV");t.addChildNode(r)}if(e.CompressionType!=null){let r=f.XmlNode.of("CompressionType",e.CompressionType).withName("CompressionType");t.addChildNode(r)}if(e.JSON!=null){let r=ece(e.JSON,n).withName("JSON");t.addChildNode(r)}if(e.Parquet!=null){let r=vce(e.Parquet,n).withName("Parquet");t.addChildNode(r)}return t},Kae=(e,n)=>{let t=new f.XmlNode("IntelligentTieringAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},kq=(e,n)=>{let t=new f.XmlNode("IntelligentTieringConfiguration");if(e.Id!=null){let r=f.XmlNode.of("IntelligentTieringId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=Vae(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("IntelligentTieringStatus",e.Status).withName("Status");t.addChildNode(r)}return e.Tierings!=null&&ede(e.Tierings,n).map(o=>{o=o.withName("Tiering"),t.addChildNode(o)}),t},Vae=(e,n)=>{let t=new f.XmlNode("IntelligentTieringFilter");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tag!=null){let r=Ao(e.Tag,n).withName("Tag");t.addChildNode(r)}if(e.And!=null){let r=Kae(e.And,n).withName("And");t.addChildNode(r)}return t},Aq=(e,n)=>{let t=new f.XmlNode("InventoryConfiguration");if(e.Destination!=null){let r=Xae(e.Destination,n).withName("Destination");t.addChildNode(r)}if(e.IsEnabled!=null){let r=f.XmlNode.of("IsEnabled",String(e.IsEnabled)).withName("IsEnabled");t.addChildNode(r)}if(e.Filter!=null){let r=Yae(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Id!=null){let r=f.XmlNode.of("InventoryId",e.Id).withName("Id");t.addChildNode(r)}if(e.IncludedObjectVersions!=null){let r=f.XmlNode.of("InventoryIncludedObjectVersions",e.IncludedObjectVersions).withName("IncludedObjectVersions");t.addChildNode(r)}if(e.OptionalFields!=null){let r=Jae(e.OptionalFields,n),o=new f.XmlNode("OptionalFields");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Schedule!=null){let r=Zae(e.Schedule,n).withName("Schedule");t.addChildNode(r)}return t},Xae=(e,n)=>{let t=new f.XmlNode("InventoryDestination");if(e.S3BucketDestination!=null){let r=Qae(e.S3BucketDestination,n).withName("S3BucketDestination");t.addChildNode(r)}return t},Wae=(e,n)=>{let t=new f.XmlNode("InventoryEncryption");if(e.SSES3!=null){let r=Xce(e.SSES3,n).withName("SSE-S3");t.addChildNode(r)}if(e.SSEKMS!=null){let r=Kce(e.SSEKMS,n).withName("SSE-KMS");t.addChildNode(r)}return t},Yae=(e,n)=>{let t=new f.XmlNode("InventoryFilter");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return t},Jae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("InventoryOptionalField",t).withName("Field")),Qae=(e,n)=>{let t=new f.XmlNode("InventoryS3BucketDestination");if(e.AccountId!=null){let r=f.XmlNode.of("AccountId",e.AccountId).withName("AccountId");t.addChildNode(r)}if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Format!=null){let r=f.XmlNode.of("InventoryFormat",e.Format).withName("Format");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Encryption!=null){let r=Wae(e.Encryption,n).withName("Encryption");t.addChildNode(r)}return t},Zae=(e,n)=>{let t=new f.XmlNode("InventorySchedule");if(e.Frequency!=null){let r=f.XmlNode.of("InventoryFrequency",e.Frequency).withName("Frequency");t.addChildNode(r)}return t},ece=(e,n)=>{let t=new f.XmlNode("JSONInput");if(e.Type!=null){let r=f.XmlNode.of("JSONType",e.Type).withName("Type");t.addChildNode(r)}return t},tce=(e,n)=>{let t=new f.XmlNode("JSONOutput");if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}return t},nce=(e,n)=>{let t=new f.XmlNode("LambdaFunctionConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.LambdaFunctionArn!=null){let r=f.XmlNode.of("LambdaFunctionArn",e.LambdaFunctionArn).withName("CloudFunction");t.addChildNode(r)}if(e.Events!=null&&oh(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=sh(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},rce=(e,n)=>e.filter(t=>t!=null).map(t=>nce(t,n).withName("member")),oce=(e,n)=>{let t=new f.XmlNode("LifecycleExpiration");if(e.Date!=null){let r=f.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");t.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.ExpiredObjectDeleteMarker!=null){let r=f.XmlNode.of("ExpiredObjectDeleteMarker",String(e.ExpiredObjectDeleteMarker)).withName("ExpiredObjectDeleteMarker");t.addChildNode(r)}return t},sce=(e,n)=>{let t=new f.XmlNode("LifecycleRule");if(e.Expiration!=null){let r=oce(e.Expiration,n).withName("Expiration");t.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Filter!=null){let r=ace(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("ExpirationStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.Transitions!=null&&ode(e.Transitions,n).map(o=>{o=o.withName("Transition"),t.addChildNode(o)}),e.NoncurrentVersionTransitions!=null&&gce(e.NoncurrentVersionTransitions,n).map(o=>{o=o.withName("NoncurrentVersionTransition"),t.addChildNode(o)}),e.NoncurrentVersionExpiration!=null){let r=fce(e.NoncurrentVersionExpiration,n).withName("NoncurrentVersionExpiration");t.addChildNode(r)}if(e.AbortIncompleteMultipartUpload!=null){let r=gae(e.AbortIncompleteMultipartUpload,n).withName("AbortIncompleteMultipartUpload");t.addChildNode(r)}return t},ice=(e,n)=>{let t=new f.XmlNode("LifecycleRuleAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),e.ObjectSizeGreaterThan!=null){let r=f.XmlNode.of("ObjectSizeGreaterThanBytes",String(e.ObjectSizeGreaterThan)).withName("ObjectSizeGreaterThan");t.addChildNode(r)}if(e.ObjectSizeLessThan!=null){let r=f.XmlNode.of("ObjectSizeLessThanBytes",String(e.ObjectSizeLessThan)).withName("ObjectSizeLessThan");t.addChildNode(r)}return t},ace=(e,n)=>{let t=new f.XmlNode("LifecycleRuleFilter");return St.LifecycleRuleFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},ObjectSizeGreaterThan:r=>{let o=f.XmlNode.of("ObjectSizeGreaterThanBytes",String(r)).withName("ObjectSizeGreaterThan");t.addChildNode(o)},ObjectSizeLessThan:r=>{let o=f.XmlNode.of("ObjectSizeLessThanBytes",String(r)).withName("ObjectSizeLessThan");t.addChildNode(o)},And:r=>{let o=ice(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},cce=(e,n)=>e.filter(t=>t!=null).map(t=>sce(t,n).withName("member")),dce=(e,n)=>{let t=new f.XmlNode("LoggingEnabled");if(e.TargetBucket!=null){let r=f.XmlNode.of("TargetBucket",e.TargetBucket).withName("TargetBucket");t.addChildNode(r)}if(e.TargetGrants!=null){let r=Qce(e.TargetGrants,n),o=new f.XmlNode("TargetGrants");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.TargetPrefix!=null){let r=f.XmlNode.of("TargetPrefix",e.TargetPrefix).withName("TargetPrefix");t.addChildNode(r)}return t},lce=(e,n)=>{let t=new f.XmlNode("MetadataEntry");if(e.Name!=null){let r=f.XmlNode.of("MetadataKey",e.Name).withName("Name");t.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("MetadataValue",e.Value).withName("Value");t.addChildNode(r)}return t},uce=(e,n)=>{let t=new f.XmlNode("Metrics");if(e.Status!=null){let r=f.XmlNode.of("MetricsStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.EventThreshold!=null){let r=Xq(e.EventThreshold,n).withName("EventThreshold");t.addChildNode(r)}return t},mce=(e,n)=>{let t=new f.XmlNode("MetricsAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),e.AccessPointArn!=null){let r=f.XmlNode.of("AccessPointArn",e.AccessPointArn).withName("AccessPointArn");t.addChildNode(r)}return t},Oq=(e,n)=>{let t=new f.XmlNode("MetricsConfiguration");if(e.Id!=null){let r=f.XmlNode.of("MetricsId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=pce(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},pce=(e,n)=>{let t=new f.XmlNode("MetricsFilter");return St.MetricsFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},AccessPointArn:r=>{let o=f.XmlNode.of("AccessPointArn",r).withName("AccessPointArn");t.addChildNode(o)},And:r=>{let o=mce(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},fce=(e,n)=>{let t=new f.XmlNode("NoncurrentVersionExpiration");if(e.NoncurrentDays!=null){let r=f.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");t.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=f.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");t.addChildNode(r)}return t},yce=(e,n)=>{let t=new f.XmlNode("NoncurrentVersionTransition");if(e.NoncurrentDays!=null){let r=f.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");t.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=f.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");t.addChildNode(r)}return t},gce=(e,n)=>e.filter(t=>t!=null).map(t=>yce(t,n).withName("member")),Nq=(e,n)=>{let t=new f.XmlNode("NotificationConfiguration");if(e.TopicConfigurations!=null&&nde(e.TopicConfigurations,n).map(o=>{o=o.withName("TopicConfiguration"),t.addChildNode(o)}),e.QueueConfigurations!=null&&xce(e.QueueConfigurations,n).map(o=>{o=o.withName("QueueConfiguration"),t.addChildNode(o)}),e.LambdaFunctionConfigurations!=null&&rce(e.LambdaFunctionConfigurations,n).map(o=>{o=o.withName("CloudFunctionConfiguration"),t.addChildNode(o)}),e.EventBridgeConfiguration!=null){let r=Fae(e.EventBridgeConfiguration,n).withName("EventBridgeConfiguration");t.addChildNode(r)}return t},sh=(e,n)=>{let t=new f.XmlNode("NotificationConfigurationFilter");if(e.Key!=null){let r=Fce(e.Key,n).withName("S3Key");t.addChildNode(r)}return t},hce=(e,n)=>{let t=new f.XmlNode("ObjectIdentifier");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}if(e.VersionId!=null){let r=f.XmlNode.of("ObjectVersionId",e.VersionId).withName("VersionId");t.addChildNode(r)}return t},_ce=(e,n)=>e.filter(t=>t!=null).map(t=>hce(t,n).withName("member")),Iq=(e,n)=>{let t=new f.XmlNode("ObjectLockConfiguration");if(e.ObjectLockEnabled!=null){let r=f.XmlNode.of("ObjectLockEnabled",e.ObjectLockEnabled).withName("ObjectLockEnabled");t.addChildNode(r)}if(e.Rule!=null){let r=Cce(e.Rule,n).withName("Rule");t.addChildNode(r)}return t},Rq=(e,n)=>{let t=new f.XmlNode("ObjectLockLegalHold");if(e.Status!=null){let r=f.XmlNode.of("ObjectLockLegalHoldStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Tq=(e,n)=>{let t=new f.XmlNode("ObjectLockRetention");if(e.Mode!=null){let r=f.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");t.addChildNode(r)}if(e.RetainUntilDate!=null){let r=f.XmlNode.of("Date",(e.RetainUntilDate.toISOString().split(".")[0]+"Z").toString()).withName("RetainUntilDate");t.addChildNode(r)}return t},Cce=(e,n)=>{let t=new f.XmlNode("ObjectLockRule");if(e.DefaultRetention!=null){let r=Rae(e.DefaultRetention,n).withName("DefaultRetention");t.addChildNode(r)}return t},Sce=(e,n)=>{let t=new f.XmlNode("OutputLocation");if(e.S3!=null){let r=Lce(e.S3,n).withName("S3");t.addChildNode(r)}return t},Vq=(e,n)=>{let t=new f.XmlNode("OutputSerialization");if(e.CSV!=null){let r=Iae(e.CSV,n).withName("CSV");t.addChildNode(r)}if(e.JSON!=null){let r=tce(e.JSON,n).withName("JSON");t.addChildNode(r)}return t},bce=(e,n)=>{let t=new f.XmlNode("Owner");if(e.DisplayName!=null){let r=f.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");t.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}return t},Bq=(e,n)=>{let t=new f.XmlNode("OwnershipControls");return e.Rules!=null&&Pce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},Ece=(e,n)=>{let t=new f.XmlNode("OwnershipControlsRule");if(e.ObjectOwnership!=null){let r=f.XmlNode.of("ObjectOwnership",e.ObjectOwnership).withName("ObjectOwnership");t.addChildNode(r)}return t},Pce=(e,n)=>e.filter(t=>t!=null).map(t=>Ece(t,n).withName("member")),vce=(e,n)=>new f.XmlNode("ParquetInput"),qq=(e,n)=>{let t=new f.XmlNode("PublicAccessBlockConfiguration");if(e.BlockPublicAcls!=null){let r=f.XmlNode.of("Setting",String(e.BlockPublicAcls)).withName("BlockPublicAcls");t.addChildNode(r)}if(e.IgnorePublicAcls!=null){let r=f.XmlNode.of("Setting",String(e.IgnorePublicAcls)).withName("IgnorePublicAcls");t.addChildNode(r)}if(e.BlockPublicPolicy!=null){let r=f.XmlNode.of("Setting",String(e.BlockPublicPolicy)).withName("BlockPublicPolicy");t.addChildNode(r)}if(e.RestrictPublicBuckets!=null){let r=f.XmlNode.of("Setting",String(e.RestrictPublicBuckets)).withName("RestrictPublicBuckets");t.addChildNode(r)}return t},wce=(e,n)=>{let t=new f.XmlNode("QueueConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.QueueArn!=null){let r=f.XmlNode.of("QueueArn",e.QueueArn).withName("Queue");t.addChildNode(r)}if(e.Events!=null&&oh(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=sh(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},xce=(e,n)=>e.filter(t=>t!=null).map(t=>wce(t,n).withName("member")),kce=(e,n)=>{let t=new f.XmlNode("Redirect");if(e.HostName!=null){let r=f.XmlNode.of("HostName",e.HostName).withName("HostName");t.addChildNode(r)}if(e.HttpRedirectCode!=null){let r=f.XmlNode.of("HttpRedirectCode",e.HttpRedirectCode).withName("HttpRedirectCode");t.addChildNode(r)}if(e.Protocol!=null){let r=f.XmlNode.of("Protocol",e.Protocol).withName("Protocol");t.addChildNode(r)}if(e.ReplaceKeyPrefixWith!=null){let r=f.XmlNode.of("ReplaceKeyPrefixWith",e.ReplaceKeyPrefixWith).withName("ReplaceKeyPrefixWith");t.addChildNode(r)}if(e.ReplaceKeyWith!=null){let r=f.XmlNode.of("ReplaceKeyWith",e.ReplaceKeyWith).withName("ReplaceKeyWith");t.addChildNode(r)}return t},Ace=(e,n)=>{let t=new f.XmlNode("RedirectAllRequestsTo");if(e.HostName!=null){let r=f.XmlNode.of("HostName",e.HostName).withName("HostName");t.addChildNode(r)}if(e.Protocol!=null){let r=f.XmlNode.of("Protocol",e.Protocol).withName("Protocol");t.addChildNode(r)}return t},Oce=(e,n)=>{let t=new f.XmlNode("ReplicaModifications");if(e.Status!=null){let r=f.XmlNode.of("ReplicaModificationsStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Dq=(e,n)=>{let t=new f.XmlNode("ReplicationConfiguration");if(e.Role!=null){let r=f.XmlNode.of("Role",e.Role).withName("Role");t.addChildNode(r)}return e.Rules!=null&&Tce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},Nce=(e,n)=>{let t=new f.XmlNode("ReplicationRule");if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.Priority!=null){let r=f.XmlNode.of("Priority",String(e.Priority)).withName("Priority");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Filter!=null){let r=Rce(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("ReplicationRuleStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.SourceSelectionCriteria!=null){let r=$ce(e.SourceSelectionCriteria,n).withName("SourceSelectionCriteria");t.addChildNode(r)}if(e.ExistingObjectReplication!=null){let r=Lae(e.ExistingObjectReplication,n).withName("ExistingObjectReplication");t.addChildNode(r)}if(e.Destination!=null){let r=Bae(e.Destination,n).withName("Destination");t.addChildNode(r)}if(e.DeleteMarkerReplication!=null){let r=Tae(e.DeleteMarkerReplication,n).withName("DeleteMarkerReplication");t.addChildNode(r)}return t},Ice=(e,n)=>{let t=new f.XmlNode("ReplicationRuleAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},Rce=(e,n)=>{let t=new f.XmlNode("ReplicationRuleFilter");return St.ReplicationRuleFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},And:r=>{let o=Ice(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},Tce=(e,n)=>e.filter(t=>t!=null).map(t=>Nce(t,n).withName("member")),Bce=(e,n)=>{let t=new f.XmlNode("ReplicationTime");if(e.Status!=null){let r=f.XmlNode.of("ReplicationTimeStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.Time!=null){let r=Xq(e.Time,n).withName("Time");t.addChildNode(r)}return t},Xq=(e,n)=>{let t=new f.XmlNode("ReplicationTimeValue");if(e.Minutes!=null){let r=f.XmlNode.of("Minutes",String(e.Minutes)).withName("Minutes");t.addChildNode(r)}return t},Mq=(e,n)=>{let t=new f.XmlNode("RequestPaymentConfiguration");if(e.Payer!=null){let r=f.XmlNode.of("Payer",e.Payer).withName("Payer");t.addChildNode(r)}return t},qce=(e,n)=>{let t=new f.XmlNode("RequestProgress");if(e.Enabled!=null){let r=f.XmlNode.of("EnableRequestProgress",String(e.Enabled)).withName("Enabled");t.addChildNode(r)}return t},Fq=(e,n)=>{let t=new f.XmlNode("RestoreRequest");if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.GlacierJobParameters!=null){let r=Gae(e.GlacierJobParameters,n).withName("GlacierJobParameters");t.addChildNode(r)}if(e.Type!=null){let r=f.XmlNode.of("RestoreRequestType",e.Type).withName("Type");t.addChildNode(r)}if(e.Tier!=null){let r=f.XmlNode.of("Tier",e.Tier).withName("Tier");t.addChildNode(r)}if(e.Description!=null){let r=f.XmlNode.of("Description",e.Description).withName("Description");t.addChildNode(r)}if(e.SelectParameters!=null){let r=zce(e.SelectParameters,n).withName("SelectParameters");t.addChildNode(r)}if(e.OutputLocation!=null){let r=Sce(e.OutputLocation,n).withName("OutputLocation");t.addChildNode(r)}return t},Dce=(e,n)=>{let t=new f.XmlNode("RoutingRule");if(e.Condition!=null){let r=kae(e.Condition,n).withName("Condition");t.addChildNode(r)}if(e.Redirect!=null){let r=kce(e.Redirect,n).withName("Redirect");t.addChildNode(r)}return t},Mce=(e,n)=>e.filter(t=>t!=null).map(t=>Dce(t,n).withName("RoutingRule")),Fce=(e,n)=>{let t=new f.XmlNode("S3KeyFilter");return e.FilterRules!=null&&Uae(e.FilterRules,n).map(o=>{o=o.withName("FilterRule"),t.addChildNode(o)}),t},Lce=(e,n)=>{let t=new f.XmlNode("S3Location");if(e.BucketName!=null){let r=f.XmlNode.of("BucketName",e.BucketName).withName("BucketName");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("LocationPrefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Encryption!=null){let r=qae(e.Encryption,n).withName("Encryption");t.addChildNode(r)}if(e.CannedACL!=null){let r=f.XmlNode.of("ObjectCannedACL",e.CannedACL).withName("CannedACL");t.addChildNode(r)}if(e.AccessControlList!=null){let r=$q(e.AccessControlList,n),o=new f.XmlNode("AccessControlList");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Tagging!=null){let r=La(e.Tagging,n).withName("Tagging");t.addChildNode(r)}if(e.UserMetadata!=null){let r=sde(e.UserMetadata,n),o=new f.XmlNode("UserMetadata");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.StorageClass!=null){let r=f.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}return t},jce=(e,n)=>{let t=new f.XmlNode("ScanRange");if(e.Start!=null){let r=f.XmlNode.of("Start",String(e.Start)).withName("Start");t.addChildNode(r)}if(e.End!=null){let r=f.XmlNode.of("End",String(e.End)).withName("End");t.addChildNode(r)}return t},zce=(e,n)=>{let t=new f.XmlNode("SelectParameters");if(e.InputSerialization!=null){let r=Kq(e.InputSerialization,n).withName("InputSerialization");t.addChildNode(r)}if(e.ExpressionType!=null){let r=f.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");t.addChildNode(r)}if(e.Expression!=null){let r=f.XmlNode.of("Expression",e.Expression).withName("Expression");t.addChildNode(r)}if(e.OutputSerialization!=null){let r=Vq(e.OutputSerialization,n).withName("OutputSerialization");t.addChildNode(r)}return t},Uce=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionByDefault");if(e.SSEAlgorithm!=null){let r=f.XmlNode.of("ServerSideEncryption",e.SSEAlgorithm).withName("SSEAlgorithm");t.addChildNode(r)}if(e.KMSMasterKeyID!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KMSMasterKeyID).withName("KMSMasterKeyID");t.addChildNode(r)}return t},Lq=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionConfiguration");return e.Rules!=null&&Hce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},Gce=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionRule");if(e.ApplyServerSideEncryptionByDefault!=null){let r=Uce(e.ApplyServerSideEncryptionByDefault,n).withName("ApplyServerSideEncryptionByDefault");t.addChildNode(r)}if(e.BucketKeyEnabled!=null){let r=f.XmlNode.of("BucketKeyEnabled",String(e.BucketKeyEnabled)).withName("BucketKeyEnabled");t.addChildNode(r)}return t},Hce=(e,n)=>e.filter(t=>t!=null).map(t=>Gce(t,n).withName("member")),$ce=(e,n)=>{let t=new f.XmlNode("SourceSelectionCriteria");if(e.SseKmsEncryptedObjects!=null){let r=Vce(e.SseKmsEncryptedObjects,n).withName("SseKmsEncryptedObjects");t.addChildNode(r)}if(e.ReplicaModifications!=null){let r=Oce(e.ReplicaModifications,n).withName("ReplicaModifications");t.addChildNode(r)}return t},Kce=(e,n)=>{let t=new f.XmlNode("SSE-KMS");if(e.KeyId!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KeyId).withName("KeyId");t.addChildNode(r)}return t},Vce=(e,n)=>{let t=new f.XmlNode("SseKmsEncryptedObjects");if(e.Status!=null){let r=f.XmlNode.of("SseKmsEncryptedObjectsStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Xce=(e,n)=>new f.XmlNode("SSE-S3"),Wce=(e,n)=>{let t=new f.XmlNode("StorageClassAnalysis");if(e.DataExport!=null){let r=Yce(e.DataExport,n).withName("DataExport");t.addChildNode(r)}return t},Yce=(e,n)=>{let t=new f.XmlNode("StorageClassAnalysisDataExport");if(e.OutputSchemaVersion!=null){let r=f.XmlNode.of("StorageClassAnalysisSchemaVersion",e.OutputSchemaVersion).withName("OutputSchemaVersion");t.addChildNode(r)}if(e.Destination!=null){let r=Eae(e.Destination,n).withName("Destination");t.addChildNode(r)}return t},Ao=(e,n)=>{let t=new f.XmlNode("Tag");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("Value",e.Value).withName("Value");t.addChildNode(r)}return t},La=(e,n)=>{let t=new f.XmlNode("Tagging");if(e.TagSet!=null){let r=Oo(e.TagSet,n),o=new f.XmlNode("TagSet");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}return t},Oo=(e,n)=>e.filter(t=>t!=null).map(t=>Ao(t,n).withName("Tag")),Jce=(e,n)=>{let t=new f.XmlNode("TargetGrant");if(e.Grantee!=null){let r=Hq(e.Grantee,n).withName("Grantee");r.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),t.addChildNode(r)}if(e.Permission!=null){let r=f.XmlNode.of("BucketLogsPermission",e.Permission).withName("Permission");t.addChildNode(r)}return t},Qce=(e,n)=>e.filter(t=>t!=null).map(t=>Jce(t,n).withName("Grant")),Zce=(e,n)=>{let t=new f.XmlNode("Tiering");if(e.Days!=null){let r=f.XmlNode.of("IntelligentTieringDays",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.AccessTier!=null){let r=f.XmlNode.of("IntelligentTieringAccessTier",e.AccessTier).withName("AccessTier");t.addChildNode(r)}return t},ede=(e,n)=>e.filter(t=>t!=null).map(t=>Zce(t,n).withName("member")),tde=(e,n)=>{let t=new f.XmlNode("TopicConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.TopicArn!=null){let r=f.XmlNode.of("TopicArn",e.TopicArn).withName("Topic");t.addChildNode(r)}if(e.Events!=null&&oh(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=sh(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},nde=(e,n)=>e.filter(t=>t!=null).map(t=>tde(t,n).withName("member")),rde=(e,n)=>{let t=new f.XmlNode("Transition");if(e.Date!=null){let r=f.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");t.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}return t},ode=(e,n)=>e.filter(t=>t!=null).map(t=>rde(t,n).withName("member")),sde=(e,n)=>e.filter(t=>t!=null).map(t=>lce(t,n).withName("MetadataEntry")),jq=(e,n)=>{let t=new f.XmlNode("VersioningConfiguration");if(e.MFADelete!=null){let r=f.XmlNode.of("MFADelete",e.MFADelete).withName("MfaDelete");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("BucketVersioningStatus",e.Status).withName("Status");t.addChildNode(r)}return t},zq=(e,n)=>{let t=new f.XmlNode("WebsiteConfiguration");if(e.ErrorDocument!=null){let r=Mae(e.ErrorDocument,n).withName("ErrorDocument");t.addChildNode(r)}if(e.IndexDocument!=null){let r=$ae(e.IndexDocument,n).withName("IndexDocument");t.addChildNode(r)}if(e.RedirectAllRequestsTo!=null){let r=Ace(e.RedirectAllRequestsTo,n).withName("RedirectAllRequestsTo");t.addChildNode(r)}if(e.RoutingRules!=null){let r=Mce(e.RoutingRules,n),o=new f.XmlNode("RoutingRules");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}return t},ide=(e,n)=>{let t={};return e.DaysAfterInitiation!==void 0&&(t.DaysAfterInitiation=(0,d.strictParseInt32)(e.DaysAfterInitiation)),t},ade=(e,n)=>{let t={};return e.Owner!==void 0&&(t.Owner=(0,d.expectString)(e.Owner)),t},cde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),dde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),lde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),ude=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),t},Wq=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(t.Filter=fde((0,d.expectUnion)(e.Filter),n)),e.StorageClassAnalysis!==void 0&&(t.StorageClassAnalysis=sue(e.StorageClassAnalysis,n)),t},mde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Wq(t,n)),pde=(e,n)=>{let t={};return e.S3BucketDestination!==void 0&&(t.S3BucketDestination=yde(e.S3BucketDestination,n)),t},fde=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.And!==void 0?{And:ude(e.And,n)}:{$unknown:Object.entries(e)[0]},yde=(e,n)=>{let t={};return e.Format!==void 0&&(t.Format=(0,d.expectString)(e.Format)),e.BucketAccountId!==void 0&&(t.BucketAccountId=(0,d.expectString)(e.BucketAccountId)),e.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(e.Bucket)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},gde=(e,n)=>{let t={};return e.Name!==void 0&&(t.Name=(0,d.expectString)(e.Name)),e.CreationDate!==void 0&&(t.CreationDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.CreationDate))),t},hde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>gde(t,n)),_de=(e,n)=>{let t={};return e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},Yq=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Cde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},hm=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Cde(t,n)),Sde=(e,n)=>{let t={};return e.HttpErrorCodeReturnedEquals!==void 0&&(t.HttpErrorCodeReturnedEquals=(0,d.expectString)(e.HttpErrorCodeReturnedEquals)),e.KeyPrefixEquals!==void 0&&(t.KeyPrefixEquals=(0,d.expectString)(e.KeyPrefixEquals)),t},bde=(e,n)=>({}),Ede=(e,n)=>{let t={};return e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},Pde=(e,n)=>{let t={};return e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},vde=(e,n)=>{let t={};return e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.AllowedHeader===""?t.AllowedHeaders=[]:e.AllowedHeader!==void 0&&(t.AllowedHeaders=cde((0,d.getArrayIfSingleItem)(e.AllowedHeader),n)),e.AllowedMethod===""?t.AllowedMethods=[]:e.AllowedMethod!==void 0&&(t.AllowedMethods=dde((0,d.getArrayIfSingleItem)(e.AllowedMethod),n)),e.AllowedOrigin===""?t.AllowedOrigins=[]:e.AllowedOrigin!==void 0&&(t.AllowedOrigins=lde((0,d.getArrayIfSingleItem)(e.AllowedOrigin),n)),e.ExposeHeader===""?t.ExposeHeaders=[]:e.ExposeHeader!==void 0&&(t.ExposeHeaders=jde((0,d.getArrayIfSingleItem)(e.ExposeHeader),n)),e.MaxAgeSeconds!==void 0&&(t.MaxAgeSeconds=(0,d.strictParseInt32)(e.MaxAgeSeconds)),t},wde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>vde(t,n)),xde=(e,n)=>{let t={};return e.Mode!==void 0&&(t.Mode=(0,d.expectString)(e.Mode)),e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.Years!==void 0&&(t.Years=(0,d.strictParseInt32)(e.Years)),t},kde=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.DeleteMarker!==void 0&&(t.DeleteMarker=(0,d.parseBoolean)(e.DeleteMarker)),e.DeleteMarkerVersionId!==void 0&&(t.DeleteMarkerVersionId=(0,d.expectString)(e.DeleteMarkerVersionId)),t},Ade=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>kde(t,n)),Ode=(e,n)=>{let t={};return e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.IsLatest!==void 0&&(t.IsLatest=(0,d.parseBoolean)(e.IsLatest)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),t},Nde=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Ide=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ode(t,n)),Rde=(e,n)=>{let t={};return e.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(e.Bucket)),e.Account!==void 0&&(t.Account=(0,d.expectString)(e.Account)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.AccessControlTranslation!==void 0&&(t.AccessControlTranslation=ade(e.AccessControlTranslation,n)),e.EncryptionConfiguration!==void 0&&(t.EncryptionConfiguration=Tde(e.EncryptionConfiguration,n)),e.ReplicationTime!==void 0&&(t.ReplicationTime=Kle(e.ReplicationTime,n)),e.Metrics!==void 0&&(t.Metrics=lle(e.Metrics,n)),t},Tde=(e,n)=>{let t={};return e.ReplicaKmsKeyID!==void 0&&(t.ReplicaKmsKeyID=(0,d.expectString)(e.ReplicaKmsKeyID)),t},Bde=(e,n)=>({}),qde=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.Code!==void 0&&(t.Code=(0,d.expectString)(e.Code)),e.Message!==void 0&&(t.Message=(0,d.expectString)(e.Message)),t},Dde=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),t},Mde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>qde(t,n)),Fde=(e,n)=>({}),ih=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Lde=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},jde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),zde=(e,n)=>{let t={};return e.Name!==void 0&&(t.Name=(0,d.expectString)(e.Name)),e.Value!==void 0&&(t.Value=(0,d.expectString)(e.Value)),t},Ude=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>zde(t,n)),Gde=(e,n)=>{let t={};return e.PartsCount!==void 0&&(t.TotalPartsCount=(0,d.strictParseInt32)(e.PartsCount)),e.PartNumberMarker!==void 0&&(t.PartNumberMarker=(0,d.expectString)(e.PartNumberMarker)),e.NextPartNumberMarker!==void 0&&(t.NextPartNumberMarker=(0,d.expectString)(e.NextPartNumberMarker)),e.MaxParts!==void 0&&(t.MaxParts=(0,d.strictParseInt32)(e.MaxParts)),e.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(e.IsTruncated)),e.Part===""?t.Parts=[]:e.Part!==void 0&&(t.Parts=Rle((0,d.getArrayIfSingleItem)(e.Part),n)),t},Hde=(e,n)=>{let t={};return e.Grantee!==void 0&&(t.Grantee=Jq(e.Grantee,n)),e.Permission!==void 0&&(t.Permission=(0,d.expectString)(e.Permission)),t},Jq=(e,n)=>{let t={};return e.DisplayName!==void 0&&(t.DisplayName=(0,d.expectString)(e.DisplayName)),e.EmailAddress!==void 0&&(t.EmailAddress=(0,d.expectString)(e.EmailAddress)),e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.URI!==void 0&&(t.URI=(0,d.expectString)(e.URI)),e["xsi:type"]!==void 0&&(t.Type=(0,d.expectString)(e["xsi:type"])),t},Qq=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Hde(t,n)),$de=(e,n)=>{let t={};return e.Suffix!==void 0&&(t.Suffix=(0,d.expectString)(e.Suffix)),t},Zq=(e,n)=>{let t={};return e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.DisplayName!==void 0&&(t.DisplayName=(0,d.expectString)(e.DisplayName)),t},Kde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),t},eD=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter!==void 0&&(t.Filter=Xde(e.Filter,n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Tiering===""?t.Tierings=[]:e.Tiering!==void 0&&(t.Tierings=lue((0,d.getArrayIfSingleItem)(e.Tiering),n)),t},Vde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>eD(t,n)),Xde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag!==void 0&&(t.Tag=No(e.Tag,n)),e.And!==void 0&&(t.And=Kde(e.And,n)),t},tD=(e,n)=>{let t={};return e.Destination!==void 0&&(t.Destination=Yde(e.Destination,n)),e.IsEnabled!==void 0&&(t.IsEnabled=(0,d.parseBoolean)(e.IsEnabled)),e.Filter!==void 0&&(t.Filter=Qde(e.Filter,n)),e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.IncludedObjectVersions!==void 0&&(t.IncludedObjectVersions=(0,d.expectString)(e.IncludedObjectVersions)),e.OptionalFields===""?t.OptionalFields=[]:e.OptionalFields!==void 0&&e.OptionalFields.Field!==void 0&&(t.OptionalFields=Zde((0,d.getArrayIfSingleItem)(e.OptionalFields.Field),n)),e.Schedule!==void 0&&(t.Schedule=tle(e.Schedule,n)),t},Wde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>tD(t,n)),Yde=(e,n)=>{let t={};return e.S3BucketDestination!==void 0&&(t.S3BucketDestination=ele(e.S3BucketDestination,n)),t},Jde=(e,n)=>{let t={};return e["SSE-S3"]!==void 0&&(t.SSES3=rue(e["SSE-S3"],n)),e["SSE-KMS"]!==void 0&&(t.SSEKMS=tue(e["SSE-KMS"],n)),t},Qde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},Zde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),ele=(e,n)=>{let t={};return e.AccountId!==void 0&&(t.AccountId=(0,d.expectString)(e.AccountId)),e.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(e.Bucket)),e.Format!==void 0&&(t.Format=(0,d.expectString)(e.Format)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Encryption!==void 0&&(t.Encryption=Jde(e.Encryption,n)),t},tle=(e,n)=>{let t={};return e.Frequency!==void 0&&(t.Frequency=(0,d.expectString)(e.Frequency)),t},nle=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.CloudFunction!==void 0&&(t.LambdaFunctionArn=(0,d.expectString)(e.CloudFunction)),e.Event===""?t.Events=[]:e.Event!==void 0&&(t.Events=ih((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=ah(e.Filter,n)),t},rle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>nle(t,n)),ole=(e,n)=>{let t={};return e.Date!==void 0&&(t.Date=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Date))),e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.ExpiredObjectDeleteMarker!==void 0&&(t.ExpiredObjectDeleteMarker=(0,d.parseBoolean)(e.ExpiredObjectDeleteMarker)),t},sle=(e,n)=>{let t={};return e.Expiration!==void 0&&(t.Expiration=ole(e.Expiration,n)),e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Filter===""||e.Filter!==void 0&&(t.Filter=ale((0,d.expectUnion)(e.Filter),n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Transition===""?t.Transitions=[]:e.Transition!==void 0&&(t.Transitions=fue((0,d.getArrayIfSingleItem)(e.Transition),n)),e.NoncurrentVersionTransition===""?t.NoncurrentVersionTransitions=[]:e.NoncurrentVersionTransition!==void 0&&(t.NoncurrentVersionTransitions=_le((0,d.getArrayIfSingleItem)(e.NoncurrentVersionTransition),n)),e.NoncurrentVersionExpiration!==void 0&&(t.NoncurrentVersionExpiration=gle(e.NoncurrentVersionExpiration,n)),e.AbortIncompleteMultipartUpload!==void 0&&(t.AbortIncompleteMultipartUpload=ide(e.AbortIncompleteMultipartUpload,n)),t},ile=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),e.ObjectSizeGreaterThan!==void 0&&(t.ObjectSizeGreaterThan=(0,d.strictParseLong)(e.ObjectSizeGreaterThan)),e.ObjectSizeLessThan!==void 0&&(t.ObjectSizeLessThan=(0,d.strictParseLong)(e.ObjectSizeLessThan)),t},ale=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.ObjectSizeGreaterThan!==void 0?{ObjectSizeGreaterThan:(0,d.strictParseLong)(e.ObjectSizeGreaterThan)}:e.ObjectSizeLessThan!==void 0?{ObjectSizeLessThan:(0,d.strictParseLong)(e.ObjectSizeLessThan)}:e.And!==void 0?{And:ile(e.And,n)}:{$unknown:Object.entries(e)[0]},cle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>sle(t,n)),dle=(e,n)=>{let t={};return e.TargetBucket!==void 0&&(t.TargetBucket=(0,d.expectString)(e.TargetBucket)),e.TargetGrants===""?t.TargetGrants=[]:e.TargetGrants!==void 0&&e.TargetGrants.Grant!==void 0&&(t.TargetGrants=cue((0,d.getArrayIfSingleItem)(e.TargetGrants.Grant),n)),e.TargetPrefix!==void 0&&(t.TargetPrefix=(0,d.expectString)(e.TargetPrefix)),t},lle=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.EventThreshold!==void 0&&(t.EventThreshold=oD(e.EventThreshold,n)),t},ule=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),e.AccessPointArn!==void 0&&(t.AccessPointArn=(0,d.expectString)(e.AccessPointArn)),t},nD=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(t.Filter=ple((0,d.expectUnion)(e.Filter),n)),t},mle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>nD(t,n)),ple=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.AccessPointArn!==void 0?{AccessPointArn:(0,d.expectString)(e.AccessPointArn)}:e.And!==void 0?{And:ule(e.And,n)}:{$unknown:Object.entries(e)[0]},fle=(e,n)=>{let t={};return e.UploadId!==void 0&&(t.UploadId=(0,d.expectString)(e.UploadId)),e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.Initiated!==void 0&&(t.Initiated=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Initiated))),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.Initiator!==void 0&&(t.Initiator=Zq(e.Initiator,n)),e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=(0,d.expectString)(e.ChecksumAlgorithm)),t},yle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>fle(t,n)),gle=(e,n)=>{let t={};return e.NoncurrentDays!==void 0&&(t.NoncurrentDays=(0,d.strictParseInt32)(e.NoncurrentDays)),e.NewerNoncurrentVersions!==void 0&&(t.NewerNoncurrentVersions=(0,d.strictParseInt32)(e.NewerNoncurrentVersions)),t},hle=(e,n)=>{let t={};return e.NoncurrentDays!==void 0&&(t.NoncurrentDays=(0,d.strictParseInt32)(e.NoncurrentDays)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.NewerNoncurrentVersions!==void 0&&(t.NewerNoncurrentVersions=(0,d.strictParseInt32)(e.NewerNoncurrentVersions)),t},_le=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>hle(t,n)),ah=(e,n)=>{let t={};return e.S3Key!==void 0&&(t.Key=Wle(e.S3Key,n)),t},Cle=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.ChecksumAlgorithm===""?t.ChecksumAlgorithm=[]:e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=Yq((0,d.getArrayIfSingleItem)(e.ChecksumAlgorithm),n)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.RestoreStatus!==void 0&&(t.RestoreStatus=sD(e.RestoreStatus,n)),t},rD=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Cle(t,n)),Sle=(e,n)=>{let t={};return e.ObjectLockEnabled!==void 0&&(t.ObjectLockEnabled=(0,d.expectString)(e.ObjectLockEnabled)),e.Rule!==void 0&&(t.Rule=Ple(e.Rule,n)),t},ble=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Ele=(e,n)=>{let t={};return e.Mode!==void 0&&(t.Mode=(0,d.expectString)(e.Mode)),e.RetainUntilDate!==void 0&&(t.RetainUntilDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.RetainUntilDate))),t},Ple=(e,n)=>{let t={};return e.DefaultRetention!==void 0&&(t.DefaultRetention=xde(e.DefaultRetention,n)),t},vle=(e,n)=>{let t={};return e.PartNumber!==void 0&&(t.PartNumber=(0,d.strictParseInt32)(e.PartNumber)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},wle=(e,n)=>{let t={};return e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.ChecksumAlgorithm===""?t.ChecksumAlgorithm=[]:e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=Yq((0,d.getArrayIfSingleItem)(e.ChecksumAlgorithm),n)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.IsLatest!==void 0&&(t.IsLatest=(0,d.parseBoolean)(e.IsLatest)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.RestoreStatus!==void 0&&(t.RestoreStatus=sD(e.RestoreStatus,n)),t},xle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>wle(t,n)),er=(e,n)=>{let t={};return e.DisplayName!==void 0&&(t.DisplayName=(0,d.expectString)(e.DisplayName)),e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),t},kle=(e,n)=>{let t={};return e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=Ole((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Ale=(e,n)=>{let t={};return e.ObjectOwnership!==void 0&&(t.ObjectOwnership=(0,d.expectString)(e.ObjectOwnership)),t},Ole=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ale(t,n)),Nle=(e,n)=>{let t={};return e.PartNumber!==void 0&&(t.PartNumber=(0,d.strictParseInt32)(e.PartNumber)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},Ile=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Nle(t,n)),Rle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>vle(t,n)),Tle=(e,n)=>{let t={};return e.IsPublic!==void 0&&(t.IsPublic=(0,d.parseBoolean)(e.IsPublic)),t},Ble=(e,n)=>{let t={};return e.BytesScanned!==void 0&&(t.BytesScanned=(0,d.strictParseLong)(e.BytesScanned)),e.BytesProcessed!==void 0&&(t.BytesProcessed=(0,d.strictParseLong)(e.BytesProcessed)),e.BytesReturned!==void 0&&(t.BytesReturned=(0,d.strictParseLong)(e.BytesReturned)),t},qle=(e,n)=>{let t={};return e.BlockPublicAcls!==void 0&&(t.BlockPublicAcls=(0,d.parseBoolean)(e.BlockPublicAcls)),e.IgnorePublicAcls!==void 0&&(t.IgnorePublicAcls=(0,d.parseBoolean)(e.IgnorePublicAcls)),e.BlockPublicPolicy!==void 0&&(t.BlockPublicPolicy=(0,d.parseBoolean)(e.BlockPublicPolicy)),e.RestrictPublicBuckets!==void 0&&(t.RestrictPublicBuckets=(0,d.parseBoolean)(e.RestrictPublicBuckets)),t},Dle=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Queue!==void 0&&(t.QueueArn=(0,d.expectString)(e.Queue)),e.Event===""?t.Events=[]:e.Event!==void 0&&(t.Events=ih((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=ah(e.Filter,n)),t},Mle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Dle(t,n)),Fle=(e,n)=>{let t={};return e.HostName!==void 0&&(t.HostName=(0,d.expectString)(e.HostName)),e.HttpRedirectCode!==void 0&&(t.HttpRedirectCode=(0,d.expectString)(e.HttpRedirectCode)),e.Protocol!==void 0&&(t.Protocol=(0,d.expectString)(e.Protocol)),e.ReplaceKeyPrefixWith!==void 0&&(t.ReplaceKeyPrefixWith=(0,d.expectString)(e.ReplaceKeyPrefixWith)),e.ReplaceKeyWith!==void 0&&(t.ReplaceKeyWith=(0,d.expectString)(e.ReplaceKeyWith)),t},Lle=(e,n)=>{let t={};return e.HostName!==void 0&&(t.HostName=(0,d.expectString)(e.HostName)),e.Protocol!==void 0&&(t.Protocol=(0,d.expectString)(e.Protocol)),t},jle=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},zle=(e,n)=>{let t={};return e.Role!==void 0&&(t.Role=(0,d.expectString)(e.Role)),e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=$le((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Ule=(e,n)=>{let t={};return e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.Priority!==void 0&&(t.Priority=(0,d.strictParseInt32)(e.Priority)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Filter===""||e.Filter!==void 0&&(t.Filter=Hle((0,d.expectUnion)(e.Filter),n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.SourceSelectionCriteria!==void 0&&(t.SourceSelectionCriteria=eue(e.SourceSelectionCriteria,n)),e.ExistingObjectReplication!==void 0&&(t.ExistingObjectReplication=Lde(e.ExistingObjectReplication,n)),e.Destination!==void 0&&(t.Destination=Rde(e.Destination,n)),e.DeleteMarkerReplication!==void 0&&(t.DeleteMarkerReplication=Nde(e.DeleteMarkerReplication,n)),t},Gle=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),t},Hle=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.And!==void 0?{And:Gle(e.And,n)}:{$unknown:Object.entries(e)[0]},$le=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ule(t,n)),Kle=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Time!==void 0&&(t.Time=oD(e.Time,n)),t},oD=(e,n)=>{let t={};return e.Minutes!==void 0&&(t.Minutes=(0,d.strictParseInt32)(e.Minutes)),t},sD=(e,n)=>{let t={};return e.IsRestoreInProgress!==void 0&&(t.IsRestoreInProgress=(0,d.parseBoolean)(e.IsRestoreInProgress)),e.RestoreExpiryDate!==void 0&&(t.RestoreExpiryDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.RestoreExpiryDate))),t},Vle=(e,n)=>{let t={};return e.Condition!==void 0&&(t.Condition=Sde(e.Condition,n)),e.Redirect!==void 0&&(t.Redirect=Fle(e.Redirect,n)),t},Xle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Vle(t,n)),Wle=(e,n)=>{let t={};return e.FilterRule===""?t.FilterRules=[]:e.FilterRule!==void 0&&(t.FilterRules=Ude((0,d.getArrayIfSingleItem)(e.FilterRule),n)),t},Yle=(e,n)=>{let t={};return e.SSEAlgorithm!==void 0&&(t.SSEAlgorithm=(0,d.expectString)(e.SSEAlgorithm)),e.KMSMasterKeyID!==void 0&&(t.KMSMasterKeyID=(0,d.expectString)(e.KMSMasterKeyID)),t},Jle=(e,n)=>{let t={};return e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=Zle((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Qle=(e,n)=>{let t={};return e.ApplyServerSideEncryptionByDefault!==void 0&&(t.ApplyServerSideEncryptionByDefault=Yle(e.ApplyServerSideEncryptionByDefault,n)),e.BucketKeyEnabled!==void 0&&(t.BucketKeyEnabled=(0,d.parseBoolean)(e.BucketKeyEnabled)),t},Zle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Qle(t,n)),eue=(e,n)=>{let t={};return e.SseKmsEncryptedObjects!==void 0&&(t.SseKmsEncryptedObjects=nue(e.SseKmsEncryptedObjects,n)),e.ReplicaModifications!==void 0&&(t.ReplicaModifications=jle(e.ReplicaModifications,n)),t},tue=(e,n)=>{let t={};return e.KeyId!==void 0&&(t.KeyId=(0,d.expectString)(e.KeyId)),t},nue=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},rue=(e,n)=>({}),oue=(e,n)=>{let t={};return e.BytesScanned!==void 0&&(t.BytesScanned=(0,d.strictParseLong)(e.BytesScanned)),e.BytesProcessed!==void 0&&(t.BytesProcessed=(0,d.strictParseLong)(e.BytesProcessed)),e.BytesReturned!==void 0&&(t.BytesReturned=(0,d.strictParseLong)(e.BytesReturned)),t},sue=(e,n)=>{let t={};return e.DataExport!==void 0&&(t.DataExport=iue(e.DataExport,n)),t},iue=(e,n)=>{let t={};return e.OutputSchemaVersion!==void 0&&(t.OutputSchemaVersion=(0,d.expectString)(e.OutputSchemaVersion)),e.Destination!==void 0&&(t.Destination=pde(e.Destination,n)),t},No=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.Value!==void 0&&(t.Value=(0,d.expectString)(e.Value)),t},Cr=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>No(t,n)),aue=(e,n)=>{let t={};return e.Grantee!==void 0&&(t.Grantee=Jq(e.Grantee,n)),e.Permission!==void 0&&(t.Permission=(0,d.expectString)(e.Permission)),t},cue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>aue(t,n)),due=(e,n)=>{let t={};return e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.AccessTier!==void 0&&(t.AccessTier=(0,d.expectString)(e.AccessTier)),t},lue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>due(t,n)),uue=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Topic!==void 0&&(t.TopicArn=(0,d.expectString)(e.Topic)),e.Event===""?t.Events=[]:e.Event!==void 0&&(t.Events=ih((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=ah(e.Filter,n)),t},mue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>uue(t,n)),pue=(e,n)=>{let t={};return e.Date!==void 0&&(t.Date=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Date))),e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),t},fue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>pue(t,n)),I=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),iD=(e,n)=>(0,d.collectBody)(e,n).then(t=>n.utf8Encoder(t)),P=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Q=(e,n)=>iD(e,n).then(t=>{if(t.length){let r=new Kte.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(u,l)=>l.trim()===""&&l.includes(` +For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`,t}this.sigv4aSigner=new n({...this.signerOptions,signingAlgorithm:1})}return this.sigv4aSigner}};Ju.SignatureV4MultiRegion=lg});var MT=m(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var DT=(te(),Y(ee));DT.__exportStar(qT(),Qu);DT.__exportStar(Wu(),Qu)});var XB=m(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.ruleSet=void 0;var Mg="required",h="type",S="conditions",O="fn",N="argv",re="ref",We="assign",$="url",K="properties",Cn="authSchemes",Sn="disableDoubleEncoding",bn="signingName",Yn="signingRegion",V="headers",FT=!1,Yt=!0,Jt="isSet",j="tree",tt="booleanEquals",H="error",nm="aws.partition",ke="stringEquals",Re="getAttr",Ct="name",qa="substring",IB="hardwareType",RB="regionPrefix",LT="bucketAliasSuffix",Bg="outpostId",_r="isValidHostLabel",Ot="not",TB="parseURL",Fg="s3-outposts",z="endpoint",jT="aws.isVirtualHostableS3Bucket",vo="s3",BB="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",qB="{url#scheme}://{Bucket}.{url#authority}{url#path}",DB="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",zT="https://{Bucket}.s3.{partitionResult#dnsSuffix}",MB="aws.parseArn",FB="bucketArn",LB="arnType",rm="",Lg="s3-object-lambda",jB="accesspoint",jg="accessPointName",UT="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",GT="mrapPartition",HT="outpostType",$T="arnPrefix",zB="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",KT="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",qg="{url#scheme}://{url#authority}{url#path}",VT="https://s3.{partitionResult#dnsSuffix}",ug={[Mg]:!1,[h]:"String"},Po={[Mg]:!0,default:!1,[h]:"Boolean"},mg={[Mg]:!1,[h]:"Boolean"},At={[O]:tt,[N]:[{[re]:"Accelerate"},!0]},Pe={[O]:tt,[N]:[{[re]:"UseFIPS"},!0]},_e={[O]:tt,[N]:[{[re]:"UseDualStack"},!0]},Ie={[O]:Jt,[N]:[{[re]:"Endpoint"}]},UB={[O]:nm,[N]:[{[re]:"Region"}],[We]:"partitionResult"},XT={[O]:ke,[N]:[{[O]:Re,[N]:[{[re]:"partitionResult"},Ct]},"aws-cn"]},GB={[O]:Jt,[N]:[{[re]:"Bucket"}]},_n={[re]:"Bucket"},WT={[re]:IB},YT={[S]:[{[O]:Ot,[N]:[Ie]}],[H]:"Expected a endpoint to be specified but no endpoint was found",[h]:H},ne={[O]:Ot,[N]:[Ie]},ot={[O]:TB,[N]:[{[re]:"Endpoint"}],[We]:"url"},Zu={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Fg,[Yn]:"{Region}"}]},ae={},pg={[O]:tt,[N]:[{[re]:"ForcePathStyle"},!1]},uee={[re]:"ForcePathStyle"},De={[O]:tt,[N]:[{[re]:"Accelerate"},!1]},Fe={[O]:ke,[N]:[{[re]:"Region"},"aws-global"]},Ue={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"us-east-1"}]},de={[O]:Ot,[N]:[Fe]},Ge={[O]:tt,[N]:[{[re]:"UseGlobalEndpoint"},!0]},JT={[$]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:{[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"{Region}"}]},[V]:{}},Me={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"{Region}"}]},He={[O]:tt,[N]:[{[re]:"UseGlobalEndpoint"},!1]},ce={[O]:tt,[N]:[{[re]:"UseDualStack"},!1]},QT={[$]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},se={[O]:tt,[N]:[{[re]:"UseFIPS"},!1]},ZT={[$]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},eB={[$]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},fg={[O]:tt,[N]:[{[O]:Re,[N]:[{[re]:"url"},"isIp"]},!0]},HB={[re]:"url"},yg={[O]:tt,[N]:[{[O]:Re,[N]:[HB,"isIp"]},!1]},gg={[$]:BB,[K]:Me,[V]:{}},Dg={[$]:qB,[K]:Me,[V]:{}},tB={[z]:Dg,[h]:z},hg={[$]:DB,[K]:Me,[V]:{}},nB={[$]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},em={[H]:"Invalid region: region was not a valid DNS name.",[h]:H},at={[re]:FB},$B={[re]:LB},_g={[O]:Re,[N]:[at,"service"]},zg={[re]:jg},rB={[S]:[_e],[H]:"S3 Object Lambda does not support Dual-stack",[h]:H},oB={[S]:[At],[H]:"S3 Object Lambda does not support S3 Accelerate",[h]:H},sB={[S]:[{[O]:Jt,[N]:[{[re]:"DisableAccessPoints"}]},{[O]:tt,[N]:[{[re]:"DisableAccessPoints"},!0]}],[H]:"Access points are not supported for this operation",[h]:H},Cg={[S]:[{[O]:Jt,[N]:[{[re]:"UseArnRegion"}]},{[O]:tt,[N]:[{[re]:"UseArnRegion"},!1]},{[O]:Ot,[N]:[{[O]:ke,[N]:[{[O]:Re,[N]:[at,"region"]},"{Region}"]}]}],[H]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[h]:H},KB={[O]:Re,[N]:[{[re]:"bucketPartition"},Ct]},VB={[O]:Re,[N]:[at,"accountId"]},Sg={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Lg,[Yn]:"{bucketArn#region}"}]},iB={[H]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[h]:H},bg={[H]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[h]:H},Eg={[H]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[h]:H},Pg={[H]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[h]:H},aB={[H]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[h]:H},cB={[H]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[h]:H},Da={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:vo,[Yn]:"{bucketArn#region}"}]},dB={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Fg,[Yn]:"{bucketArn#region}"}]},lB={[O]:MB,[N]:[_n]},uB={[$]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},mB={[$]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},pB={[$]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},vg={[$]:zB,[K]:Me,[V]:{}},fB={[$]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},yB={[re]:"UseObjectLambdaEndpoint"},wg={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Lg,[Yn]:"{Region}"}]},gB={[$]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},hB={[$]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},_B={[$]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},xg={[$]:qg,[K]:Me,[V]:{}},CB={[$]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},kg=[{[re]:"Region"}],mee=[{[re]:"Endpoint"}],SB=[_n],bB=[{[O]:_r,[N]:[{[re]:Bg},!1]}],EB=[{[O]:ke,[N]:[{[re]:RB},"beta"]}],Ma=[Ie,ot],PB=[GB],Xn=[UB],vB=[{[O]:_r,[N]:[{[re]:"Region"},!1]}],Wn=[{[O]:ke,[N]:[{[re]:"Region"},"us-east-1"]}],Ag=[{[O]:ke,[N]:[$B,jB]}],wB=[{[O]:Re,[N]:[at,"resourceId[1]"],[We]:jg},{[O]:Ot,[N]:[{[O]:ke,[N]:[zg,rm]}]}],pee=[at,"resourceId[1]"],xB=[_e],Og=[At],Ng=[{[O]:Ot,[N]:[{[O]:ke,[N]:[{[O]:Re,[N]:[at,"region"]},rm]}]}],kB=[{[O]:Ot,[N]:[{[O]:Jt,[N]:[{[O]:Re,[N]:[at,"resourceId[2]"]}]}]}],fee=[at,"resourceId[2]"],Ig=[{[O]:nm,[N]:[{[O]:Re,[N]:[at,"region"]}],[We]:"bucketPartition"}],AB=[{[O]:ke,[N]:[KB,{[O]:Re,[N]:[{[re]:"partitionResult"},Ct]}]}],Rg=[{[O]:_r,[N]:[{[O]:Re,[N]:[at,"region"]},!0]}],Tg=[{[O]:_r,[N]:[VB,!1]}],OB=[{[O]:_r,[N]:[zg,!1]}],tm=[Pe],NB=[{[O]:_r,[N]:[{[re]:"Region"},!0]}],yee={version:"1.0",parameters:{Bucket:ug,Region:ug,UseFIPS:Po,UseDualStack:Po,Endpoint:ug,ForcePathStyle:Po,Accelerate:Po,UseGlobalEndpoint:Po,UseObjectLambdaEndpoint:mg,DisableAccessPoints:mg,DisableMultiRegionAccessPoints:Po,UseArnRegion:mg},rules:[{[S]:[{[O]:Jt,[N]:kg}],[h]:j,rules:[{[S]:[At,Pe],error:"Accelerate cannot be used with FIPS",[h]:H},{[S]:[_e,Ie],error:"Cannot set dual-stack in combination with a custom endpoint.",[h]:H},{[S]:[Ie,Pe],error:"A custom endpoint cannot be combined with FIPS",[h]:H},{[S]:[Ie,At],error:"A custom endpoint cannot be combined with S3 Accelerate",[h]:H},{[S]:[Pe,UB,XT],error:"Partition does not support FIPS",[h]:H},{[S]:[GB,{[O]:qa,[N]:[_n,49,50,Yt],[We]:IB},{[O]:qa,[N]:[_n,8,12,Yt],[We]:RB},{[O]:qa,[N]:[_n,0,7,Yt],[We]:LT},{[O]:qa,[N]:[_n,32,49,Yt],[We]:Bg},{[O]:nm,[N]:kg,[We]:"regionPartition"},{[O]:ke,[N]:[{[re]:LT},"--op-s3"]}],[h]:j,rules:[{[S]:bB,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[WT,"e"]}],[h]:j,rules:[{[S]:EB,[h]:j,rules:[YT,{[S]:Ma,endpoint:{[$]:"https://{Bucket}.ec2.{url#authority}",[K]:Zu,[V]:ae},[h]:z}]},{endpoint:{[$]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[K]:Zu,[V]:ae},[h]:z}]},{[S]:[{[O]:ke,[N]:[WT,"o"]}],[h]:j,rules:[{[S]:EB,[h]:j,rules:[YT,{[S]:Ma,endpoint:{[$]:"https://{Bucket}.op-{outpostId}.{url#authority}",[K]:Zu,[V]:ae},[h]:z}]},{endpoint:{[$]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[K]:Zu,[V]:ae},[h]:z}]},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[h]:H}]},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[h]:H}]},{[S]:PB,[h]:j,rules:[{[S]:[Ie,{[O]:Ot,[N]:[{[O]:Jt,[N]:[{[O]:TB,[N]:mee}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[h]:H},{[S]:[pg,{[O]:jT,[N]:[_n,FT]}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:vB,[h]:j,rules:[{[S]:[At,XT],error:"S3 Accelerate cannot be used in this region",[h]:H},{[S]:[_e,Pe,De,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,Pe,De,ne,de,Ge],[h]:j,rules:[{endpoint:JT,[h]:z}]},{[S]:[_e,Pe,De,ne,de,He],endpoint:JT,[h]:z},{[S]:[ce,Pe,De,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,Pe,De,ne,de,Ge],[h]:j,rules:[{endpoint:QT,[h]:z}]},{[S]:[ce,Pe,De,ne,de,He],endpoint:QT,[h]:z},{[S]:[_e,se,At,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,se,At,ne,de,Ge],[h]:j,rules:[{endpoint:ZT,[h]:z}]},{[S]:[_e,se,At,ne,de,He],endpoint:ZT,[h]:z},{[S]:[_e,se,De,ne,Fe],endpoint:{[$]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,se,De,ne,de,Ge],[h]:j,rules:[{endpoint:eB,[h]:z}]},{[S]:[_e,se,De,ne,de,He],endpoint:eB,[h]:z},{[S]:[ce,se,De,Ie,ot,fg,Fe],endpoint:{[$]:BB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,De,Ie,ot,yg,Fe],endpoint:{[$]:qB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,De,Ie,ot,fg,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:gg,[h]:z},{endpoint:gg,[h]:z}]},{[S]:[ce,se,De,Ie,ot,yg,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:Dg,[h]:z},tB]},{[S]:[ce,se,De,Ie,ot,fg,de,He],endpoint:gg,[h]:z},{[S]:[ce,se,De,Ie,ot,yg,de,He],endpoint:Dg,[h]:z},{[S]:[ce,se,At,ne,Fe],endpoint:{[$]:DB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,At,ne,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:hg,[h]:z},{endpoint:hg,[h]:z}]},{[S]:[ce,se,At,ne,de,He],endpoint:hg,[h]:z},{[S]:[ce,se,De,ne,Fe],endpoint:{[$]:zT,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,se,De,ne,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:zT,[K]:Me,[V]:ae},[h]:z},{endpoint:nB,[h]:z}]},{[S]:[ce,se,De,ne,de,He],endpoint:nB,[h]:z}]},em]}]},{[S]:[Ie,ot,{[O]:ke,[N]:[{[O]:Re,[N]:[HB,"scheme"]},"http"]},{[O]:jT,[N]:[_n,Yt]},pg,se,ce,De],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:vB,[h]:j,rules:[tB]},em]}]},{[S]:[pg,{[O]:MB,[N]:SB,[We]:FB}],[h]:j,rules:[{[S]:[{[O]:Re,[N]:[at,"resourceId[0]"],[We]:LB},{[O]:Ot,[N]:[{[O]:ke,[N]:[$B,rm]}]}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[_g,Lg]}],[h]:j,rules:[{[S]:Ag,[h]:j,rules:[{[S]:wB,[h]:j,rules:[rB,oB,{[S]:Ng,[h]:j,rules:[sB,{[S]:kB,[h]:j,rules:[Cg,{[S]:Ig,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:AB,[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[VB,rm]}],error:"Invalid ARN: Missing account id",[h]:H},{[S]:Tg,[h]:j,rules:[{[S]:OB,[h]:j,rules:[{[S]:Ma,endpoint:{[$]:UT,[K]:Sg,[V]:ae},[h]:z},{[S]:tm,endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Sg,[V]:ae},[h]:z},{endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Sg,[V]:ae},[h]:z}]},iB]},bg]},Eg]},Pg]}]}]},aB]},{error:"Invalid ARN: bucket ARN is missing a region",[h]:H}]},cB]},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[h]:H}]},{[S]:Ag,[h]:j,rules:[{[S]:wB,[h]:j,rules:[{[S]:Ng,[h]:j,rules:[{[S]:Ag,[h]:j,rules:[{[S]:Ng,[h]:j,rules:[sB,{[S]:kB,[h]:j,rules:[Cg,{[S]:Ig,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[KB,"{partitionResult#name}"]}],[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[_g,vo]}],[h]:j,rules:[{[S]:Tg,[h]:j,rules:[{[S]:OB,[h]:j,rules:[{[S]:Og,error:"Access Points do not support S3 Accelerate",[h]:H},{[S]:[Pe,_e],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Da,[V]:ae},[h]:z},{[S]:[Pe,ce],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Da,[V]:ae},[h]:z},{[S]:[se,_e],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Da,[V]:ae},[h]:z},{[S]:[se,ce,Ie,ot],endpoint:{[$]:UT,[K]:Da,[V]:ae},[h]:z},{[S]:[se,ce],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Da,[V]:ae},[h]:z}]},iB]},bg]},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[h]:H}]},Eg]},Pg]}]}]},aB]}]}]},{[S]:[{[O]:_r,[N]:[zg,Yt]}],[h]:j,rules:[{[S]:xB,error:"S3 MRAP does not support dual-stack",[h]:H},{[S]:tm,error:"S3 MRAP does not support FIPS",[h]:H},{[S]:Og,error:"S3 MRAP does not support S3 Accelerate",[h]:H},{[S]:[{[O]:tt,[N]:[{[re]:"DisableMultiRegionAccessPoints"},Yt]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[h]:H},{[S]:[{[O]:nm,[N]:kg,[We]:GT}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[{[O]:Re,[N]:[{[re]:GT},Ct]},{[O]:Re,[N]:[at,"partition"]}]}],[h]:j,rules:[{endpoint:{[$]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[K]:{[Cn]:[{[Sn]:Yt,name:"sigv4a",[bn]:vo,signingRegionSet:["*"]}]},[V]:ae},[h]:z}]},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[h]:H}]}]},{error:"Invalid Access Point Name",[h]:H}]},cB]},{[S]:[{[O]:ke,[N]:[_g,Fg]}],[h]:j,rules:[{[S]:xB,error:"S3 Outposts does not support Dual-stack",[h]:H},{[S]:tm,error:"S3 Outposts does not support FIPS",[h]:H},{[S]:Og,error:"S3 Outposts does not support S3 Accelerate",[h]:H},{[S]:[{[O]:Jt,[N]:[{[O]:Re,[N]:[at,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[h]:H},{[S]:[{[O]:Re,[N]:pee,[We]:Bg}],[h]:j,rules:[{[S]:bB,[h]:j,rules:[Cg,{[S]:Ig,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:AB,[h]:j,rules:[{[S]:Rg,[h]:j,rules:[{[S]:Tg,[h]:j,rules:[{[S]:[{[O]:Re,[N]:fee,[We]:HT}],[h]:j,rules:[{[S]:[{[O]:Re,[N]:[at,"resourceId[3]"],[We]:jg}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[{[re]:HT},jB]}],[h]:j,rules:[{[S]:Ma,endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[K]:dB,[V]:ae},[h]:z},{endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:dB,[V]:ae},[h]:z}]},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[h]:H}]},{error:"Invalid ARN: expected an access point name",[h]:H}]},{error:"Invalid ARN: Expected a 4-component resource",[h]:H}]},bg]},Eg]},Pg]}]}]},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[h]:H}]},{error:"Invalid ARN: The Outpost Id was not set",[h]:H}]},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[h]:H}]},{error:"Invalid ARN: No ARN type specified",[h]:H}]},{[S]:[{[O]:qa,[N]:[_n,0,4,FT],[We]:$T},{[O]:ke,[N]:[{[re]:$T},"arn:"]},{[O]:Ot,[N]:[{[O]:Jt,[N]:[lB]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[h]:H},{[S]:[{[O]:tt,[N]:[uee,Yt]},lB],error:"Path-style addressing cannot be used with ARN buckets",[h]:H},{[S]:[{[O]:"uriEncode",[N]:SB,[We]:"uri_encoded_bucket"}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:[De],[h]:j,rules:[{[S]:[_e,ne,Pe,Fe],endpoint:{[$]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,ne,Pe,de,Ge],[h]:j,rules:[{endpoint:uB,[h]:z}]},{[S]:[_e,ne,Pe,de,He],endpoint:uB,[h]:z},{[S]:[ce,ne,Pe,Fe],endpoint:{[$]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,ne,Pe,de,Ge],[h]:j,rules:[{endpoint:mB,[h]:z}]},{[S]:[ce,ne,Pe,de,He],endpoint:mB,[h]:z},{[S]:[_e,ne,se,Fe],endpoint:{[$]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Ue,[V]:ae},[h]:z},{[S]:[_e,ne,se,de,Ge],[h]:j,rules:[{endpoint:pB,[h]:z}]},{[S]:[_e,ne,se,de,He],endpoint:pB,[h]:z},{[S]:[ce,Ie,ot,se,Fe],endpoint:{[$]:zB,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,Ie,ot,se,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:vg,[h]:z},{endpoint:vg,[h]:z}]},{[S]:[ce,Ie,ot,se,de,He],endpoint:vg,[h]:z},{[S]:[ce,ne,se,Fe],endpoint:{[$]:KT,[K]:Ue,[V]:ae},[h]:z},{[S]:[ce,ne,se,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:KT,[K]:Me,[V]:ae},[h]:z},{endpoint:fB,[h]:z}]},{[S]:[ce,ne,se,de,He],endpoint:fB,[h]:z}]},{error:"Path-style addressing cannot be used with S3 Accelerate",[h]:H}]}]}]},{[S]:[{[O]:Jt,[N]:[yB]},{[O]:tt,[N]:[yB,Yt]}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:NB,[h]:j,rules:[rB,oB,{[S]:Ma,endpoint:{[$]:qg,[K]:wg,[V]:ae},[h]:z},{[S]:tm,endpoint:{[$]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[K]:wg,[V]:ae},[h]:z},{endpoint:{[$]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[K]:wg,[V]:ae},[h]:z}]},em]}]},{[S]:[{[O]:Ot,[N]:PB}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:NB,[h]:j,rules:[{[S]:[Pe,_e,ne,Fe],endpoint:{[$]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[Pe,_e,ne,de,Ge],[h]:j,rules:[{endpoint:gB,[h]:z}]},{[S]:[Pe,_e,ne,de,He],endpoint:gB,[h]:z},{[S]:[Pe,ce,ne,Fe],endpoint:{[$]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[Pe,ce,ne,de,Ge],[h]:j,rules:[{endpoint:hB,[h]:z}]},{[S]:[Pe,ce,ne,de,He],endpoint:hB,[h]:z},{[S]:[se,_e,ne,Fe],endpoint:{[$]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ue,[V]:ae},[h]:z},{[S]:[se,_e,ne,de,Ge],[h]:j,rules:[{endpoint:_B,[h]:z}]},{[S]:[se,_e,ne,de,He],endpoint:_B,[h]:z},{[S]:[se,ce,Ie,ot,Fe],endpoint:{[$]:qg,[K]:Ue,[V]:ae},[h]:z},{[S]:[se,ce,Ie,ot,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:xg,[h]:z},{endpoint:xg,[h]:z}]},{[S]:[se,ce,Ie,ot,de,He],endpoint:xg,[h]:z},{[S]:[se,ce,ne,Fe],endpoint:{[$]:VT,[K]:Ue,[V]:ae},[h]:z},{[S]:[se,ce,ne,de,Ge],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:VT,[K]:Me,[V]:ae},[h]:z},{endpoint:CB,[h]:z}]},{[S]:[se,ce,ne,de,He],endpoint:CB,[h]:z}]},em]}]}]},{error:"A region must be set when sending requests to S3.",[h]:H}]};om.ruleSet=yee});var WB=m(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.defaultEndpointResolver=void 0;var gee=jr(),hee=XB(),_ee=(e,n={})=>(0,gee.resolveEndpoint)(hee.ruleSet,{endpointParams:e,logger:n.logger});sm.defaultEndpointResolver=_ee});var ZB=m(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.getRuntimeConfig=void 0;var Cee=MT(),See=b(),bee=mr(),YB=Pr(),JB=np(),QB=yt(),Eee=WB(),Pee=e=>({apiVersion:"2006-03-01",base64Decoder:(e==null?void 0:e.base64Decoder)??YB.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??YB.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??Eee.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],getAwsChunkedEncodingStream:(e==null?void 0:e.getAwsChunkedEncodingStream)??JB.getAwsChunkedEncodingStream,logger:(e==null?void 0:e.logger)??new See.NoOpLogger,sdkStreamMixin:(e==null?void 0:e.sdkStreamMixin)??JB.sdkStreamMixin,serviceId:(e==null?void 0:e.serviceId)??"S3",signerConstructor:(e==null?void 0:e.signerConstructor)??Cee.SignatureV4MultiRegion,signingEscapePath:(e==null?void 0:e.signingEscapePath)??!1,urlParser:(e==null?void 0:e.urlParser)??bee.parseUrl,useArnRegion:(e==null?void 0:e.useArnRegion)??!1,utf8Decoder:(e==null?void 0:e.utf8Decoder)??QB.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??QB.toUtf8});im.getRuntimeConfig=Pee});var nq=m(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.getRuntimeConfig=void 0;var vee=(te(),Y(ee)),wee=vee.__importDefault(Wk()),xee=iT(),kee=zy(),Aee=yT(),Oee=pa(),am=Mt(),Nee=AT(),Ug=fa(),Iee=TT(),eq=sn(),wo=on(),tq=vr(),Ree=ya(),Tee=zr(),Bee=ZB(),qee=b(),Dee=_a(),Mee=b(),Fee=e=>{(0,Mee.emitWarningIfUnsupportedVersion)(process.version);let n=(0,Dee.resolveDefaultsModeConfig)(e),t=()=>n().then(qee.loadConfigsForDefaultMode),r=(0,Bee.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??Ree.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,xee.decorateDefaultCredentialProvider)(kee.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,Oee.defaultUserAgent)({serviceId:r.serviceId,clientVersion:wee.default.version}),eventStreamSerdeProvider:(e==null?void 0:e.eventStreamSerdeProvider)??Nee.eventStreamSerdeProvider,maxAttempts:(e==null?void 0:e.maxAttempts)??(0,wo.loadConfig)(eq.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),md5:(e==null?void 0:e.md5)??Ug.Hash.bind(null,"md5"),region:(e==null?void 0:e.region)??(0,wo.loadConfig)(am.NODE_REGION_CONFIG_OPTIONS,am.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new tq.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,wo.loadConfig)({...eq.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||Tee.DEFAULT_RETRY_MODE}),sha1:(e==null?void 0:e.sha1)??Ug.Hash.bind(null,"sha1"),sha256:(e==null?void 0:e.sha256)??Ug.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??tq.streamCollector,streamHasher:(e==null?void 0:e.streamHasher)??Iee.readableStreamHasher,useArnRegion:(e==null?void 0:e.useArnRegion)??(0,wo.loadConfig)(Aee.NODE_USE_ARN_REGION_CONFIG_OPTIONS),useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,wo.loadConfig)(am.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,wo.loadConfig)(am.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};cm.getRuntimeConfig=Fee});var iq=m(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.resolveRuntimeExtensions=void 0;var rq=Ml(),oq=Ne(),sq=b(),Gg=e=>e,Lee=(e,n)=>{let t={...Gg((0,rq.getAwsRegionExtensionConfiguration)(e)),...Gg((0,sq.getDefaultExtensionConfiguration)(e)),...Gg((0,oq.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,rq.resolveAwsRegionExtensionConfiguration)(t),...(0,sq.resolveDefaultRuntimeConfig)(t),...(0,oq.resolveHttpHandlerRuntimeConfig)(t)}};dm.resolveRuntimeExtensions=Lee});var Fa=m(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.S3Client=xo.__Client=void 0;var jee=Nb(),aq=Ni(),zee=Ii(),Uee=Ri(),cq=Or(),dq=rn(),lq=Ji(),Gee=Mt(),Hee=tx(),$ee=Qi(),Kee=x(),uq=sn(),mq=b();Object.defineProperty(xo,"__Client",{enumerable:!0,get:function(){return mq.Client}});var Vee=Xk(),Xee=nq(),Wee=iq(),Hg=class extends mq.Client{constructor(...[n]){let t=(0,Xee.getRuntimeConfig)(n||{}),r=(0,Vee.resolveClientEndpointParameters)(t),o=(0,Gee.resolveRegionConfig)(r),s=(0,Kee.resolveEndpointConfig)(o),c=(0,uq.resolveRetryConfig)(s),i=(0,aq.resolveHostHeaderConfig)(c),u=(0,dq.resolveAwsAuthConfig)(i),l=(0,cq.resolveS3Config)(u),a=(0,lq.resolveUserAgentConfig)(l),y=(0,Hee.resolveEventStreamSerdeConfig)(a),g=(0,Wee.resolveRuntimeExtensions)(y,(n==null?void 0:n.extensions)||[]);super(g),this.config=g,this.middlewareStack.use((0,uq.getRetryPlugin)(this.config)),this.middlewareStack.use((0,$ee.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,aq.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,zee.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Uee.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,dq.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,cq.getValidateBucketNamePlugin)(this.config)),this.middlewareStack.use((0,jee.getAddExpectContinuePlugin)(this.config)),this.middlewareStack.use((0,lq.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};xo.S3Client=Hg});var pq=m(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.escapeAttribute=void 0;function Yee(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}lm.escapeAttribute=Yee});var fq=m(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.escapeElement=void 0;function Jee(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}um.escapeElement=Jee});var Kg=m(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.XmlText=void 0;var Qee=fq(),$g=class{constructor(n){this.value=n}toString(){return(0,Qee.escapeElement)(""+this.value)}};mm.XmlText=$g});var yq=m(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.XmlNode=void 0;var Zee=pq(),ete=Kg(),Vg=class e{static of(n,t,r){let o=new e(n);return t!==void 0&&o.addChildNode(new ete.XmlText(t)),r!==void 0&&o.withName(r),o}constructor(n,t=[]){this.name=n,this.children=t,this.attributes={}}withName(n){return this.name=n,this}addAttribute(n,t){return this.attributes[n]=t,this}addChildNode(n){return this.children.push(n),this}removeAttribute(n){return delete this.attributes[n],this}toString(){let n=!!this.children.length,t=`<${this.name}`,r=this.attributes;for(let o of Object.keys(r)){let s=r[o];typeof s<"u"&&s!==null&&(t+=` ${o}="${(0,Zee.escapeAttribute)(""+s)}"`)}return t+=n?`>${this.children.map(o=>o.toString()).join("")}`:"/>"}};pm.XmlNode=Vg});var hq=m(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});var gq=(te(),Y(ee));gq.__exportStar(yq(),fm);gq.__exportStar(Kg(),fm)});var La=m(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.S3ServiceException=ko.__ServiceException=void 0;var _q=b();Object.defineProperty(ko,"__ServiceException",{enumerable:!0,get:function(){return _q.ServiceException}});var Xg=class e extends _q.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};ko.S3ServiceException=Xg});var Ye=m(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.ReplicationStatus=_.Protocol=_.BucketVersioningStatus=_.MFADeleteStatus=_.Payer=_.ReplicationRuleStatus=_.SseKmsEncryptedObjectsStatus=_.ReplicaModificationsStatus=_.ReplicationRuleFilter=_.ExistingObjectReplicationStatus=_.ReplicationTimeStatus=_.MetricsStatus=_.DeleteMarkerReplicationStatus=_.FilterRuleName=_.Event=_.MetricsFilter=_.BucketLogsPermission=_.ExpirationStatus=_.TransitionStorageClass=_.LifecycleRuleFilter=_.InventoryFrequency=_.InventoryOptionalField=_.InventoryIncludedObjectVersions=_.InventoryFormat=_.IntelligentTieringAccessTier=_.IntelligentTieringStatus=_.StorageClassAnalysisSchemaVersion=_.AnalyticsS3ExportFileFormat=_.AnalyticsFilter=_.ObjectOwnership=_.BucketLocationConstraint=_.BucketCannedACL=_.BucketAlreadyOwnedByYou=_.BucketAlreadyExists=_.ObjectNotInActiveTierError=_.TaggingDirective=_.StorageClass=_.ObjectLockMode=_.ObjectLockLegalHoldStatus=_.MetadataDirective=_.ChecksumAlgorithm=_.ObjectCannedACL=_.ServerSideEncryption=_.OwnerOverride=_.Permission=_.Type=_.BucketAccelerateStatus=_.NoSuchUpload=_.RequestPayer=_.RequestCharged=void 0;_.PutObjectRequestFilterSensitiveLog=_.PutObjectOutputFilterSensitiveLog=_.PutBucketInventoryConfigurationRequestFilterSensitiveLog=_.PutBucketEncryptionRequestFilterSensitiveLog=_.ListPartsRequestFilterSensitiveLog=_.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=_.HeadObjectRequestFilterSensitiveLog=_.HeadObjectOutputFilterSensitiveLog=_.GetObjectTorrentOutputFilterSensitiveLog=_.GetObjectAttributesRequestFilterSensitiveLog=_.GetObjectRequestFilterSensitiveLog=_.GetObjectOutputFilterSensitiveLog=_.GetBucketInventoryConfigurationOutputFilterSensitiveLog=_.InventoryConfigurationFilterSensitiveLog=_.InventoryDestinationFilterSensitiveLog=_.InventoryS3BucketDestinationFilterSensitiveLog=_.InventoryEncryptionFilterSensitiveLog=_.SSEKMSFilterSensitiveLog=_.GetBucketEncryptionOutputFilterSensitiveLog=_.ServerSideEncryptionConfigurationFilterSensitiveLog=_.ServerSideEncryptionRuleFilterSensitiveLog=_.ServerSideEncryptionByDefaultFilterSensitiveLog=_.CreateMultipartUploadRequestFilterSensitiveLog=_.CreateMultipartUploadOutputFilterSensitiveLog=_.CopyObjectRequestFilterSensitiveLog=_.CopyObjectOutputFilterSensitiveLog=_.CompleteMultipartUploadRequestFilterSensitiveLog=_.CompleteMultipartUploadOutputFilterSensitiveLog=_.MFADelete=_.ObjectVersionStorageClass=_.NoSuchBucket=_.OptionalObjectAttributes=_.ObjectStorageClass=_.EncodingType=_.ArchiveStatus=_.NotFound=_.ObjectLockRetentionMode=_.ObjectLockEnabled=_.ObjectAttributes=_.NoSuchKey=_.InvalidObjectState=_.ChecksumMode=void 0;var Ce=b(),Jn=La();_.RequestCharged={requester:"requester"};_.RequestPayer={requester:"requester"};var Wg=class e extends Jn.S3ServiceException{constructor(n){super({name:"NoSuchUpload",$fault:"client",...n}),this.name="NoSuchUpload",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchUpload=Wg;_.BucketAccelerateStatus={Enabled:"Enabled",Suspended:"Suspended"};_.Type={AmazonCustomerByEmail:"AmazonCustomerByEmail",CanonicalUser:"CanonicalUser",Group:"Group"};_.Permission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",READ_ACP:"READ_ACP",WRITE:"WRITE",WRITE_ACP:"WRITE_ACP"};_.OwnerOverride={Destination:"Destination"};_.ServerSideEncryption={AES256:"AES256",aws_kms:"aws:kms",aws_kms_dsse:"aws:kms:dsse"};_.ObjectCannedACL={authenticated_read:"authenticated-read",aws_exec_read:"aws-exec-read",bucket_owner_full_control:"bucket-owner-full-control",bucket_owner_read:"bucket-owner-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};_.ChecksumAlgorithm={CRC32:"CRC32",CRC32C:"CRC32C",SHA1:"SHA1",SHA256:"SHA256"};_.MetadataDirective={COPY:"COPY",REPLACE:"REPLACE"};_.ObjectLockLegalHoldStatus={OFF:"OFF",ON:"ON"};_.ObjectLockMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};_.StorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};_.TaggingDirective={COPY:"COPY",REPLACE:"REPLACE"};var Yg=class e extends Jn.S3ServiceException{constructor(n){super({name:"ObjectNotInActiveTierError",$fault:"client",...n}),this.name="ObjectNotInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.ObjectNotInActiveTierError=Yg;var Jg=class e extends Jn.S3ServiceException{constructor(n){super({name:"BucketAlreadyExists",$fault:"client",...n}),this.name="BucketAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.BucketAlreadyExists=Jg;var Qg=class e extends Jn.S3ServiceException{constructor(n){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...n}),this.name="BucketAlreadyOwnedByYou",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.BucketAlreadyOwnedByYou=Qg;_.BucketCannedACL={authenticated_read:"authenticated-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};_.BucketLocationConstraint={EU:"EU",af_south_1:"af-south-1",ap_east_1:"ap-east-1",ap_northeast_1:"ap-northeast-1",ap_northeast_2:"ap-northeast-2",ap_northeast_3:"ap-northeast-3",ap_south_1:"ap-south-1",ap_south_2:"ap-south-2",ap_southeast_1:"ap-southeast-1",ap_southeast_2:"ap-southeast-2",ap_southeast_3:"ap-southeast-3",ca_central_1:"ca-central-1",cn_north_1:"cn-north-1",cn_northwest_1:"cn-northwest-1",eu_central_1:"eu-central-1",eu_north_1:"eu-north-1",eu_south_1:"eu-south-1",eu_south_2:"eu-south-2",eu_west_1:"eu-west-1",eu_west_2:"eu-west-2",eu_west_3:"eu-west-3",me_south_1:"me-south-1",sa_east_1:"sa-east-1",us_east_2:"us-east-2",us_gov_east_1:"us-gov-east-1",us_gov_west_1:"us-gov-west-1",us_west_1:"us-west-1",us_west_2:"us-west-2"};_.ObjectOwnership={BucketOwnerEnforced:"BucketOwnerEnforced",BucketOwnerPreferred:"BucketOwnerPreferred",ObjectWriter:"ObjectWriter"};var tte;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(tte=_.AnalyticsFilter||(_.AnalyticsFilter={}));_.AnalyticsS3ExportFileFormat={CSV:"CSV"};_.StorageClassAnalysisSchemaVersion={V_1:"V_1"};_.IntelligentTieringStatus={Disabled:"Disabled",Enabled:"Enabled"};_.IntelligentTieringAccessTier={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};_.InventoryFormat={CSV:"CSV",ORC:"ORC",Parquet:"Parquet"};_.InventoryIncludedObjectVersions={All:"All",Current:"Current"};_.InventoryOptionalField={BucketKeyStatus:"BucketKeyStatus",ChecksumAlgorithm:"ChecksumAlgorithm",ETag:"ETag",EncryptionStatus:"EncryptionStatus",IntelligentTieringAccessTier:"IntelligentTieringAccessTier",IsMultipartUploaded:"IsMultipartUploaded",LastModifiedDate:"LastModifiedDate",ObjectAccessControlList:"ObjectAccessControlList",ObjectLockLegalHoldStatus:"ObjectLockLegalHoldStatus",ObjectLockMode:"ObjectLockMode",ObjectLockRetainUntilDate:"ObjectLockRetainUntilDate",ObjectOwner:"ObjectOwner",ReplicationStatus:"ReplicationStatus",Size:"Size",StorageClass:"StorageClass"};_.InventoryFrequency={Daily:"Daily",Weekly:"Weekly"};var nte;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.ObjectSizeGreaterThan!==void 0?t.ObjectSizeGreaterThan(n.ObjectSizeGreaterThan):n.ObjectSizeLessThan!==void 0?t.ObjectSizeLessThan(n.ObjectSizeLessThan):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(nte=_.LifecycleRuleFilter||(_.LifecycleRuleFilter={}));_.TransitionStorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",STANDARD_IA:"STANDARD_IA"};_.ExpirationStatus={Disabled:"Disabled",Enabled:"Enabled"};_.BucketLogsPermission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",WRITE:"WRITE"};var rte;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.AccessPointArn!==void 0?t.AccessPointArn(n.AccessPointArn):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(rte=_.MetricsFilter||(_.MetricsFilter={}));_.Event={s3_IntelligentTiering:"s3:IntelligentTiering",s3_LifecycleExpiration_:"s3:LifecycleExpiration:*",s3_LifecycleExpiration_Delete:"s3:LifecycleExpiration:Delete",s3_LifecycleExpiration_DeleteMarkerCreated:"s3:LifecycleExpiration:DeleteMarkerCreated",s3_LifecycleTransition:"s3:LifecycleTransition",s3_ObjectAcl_Put:"s3:ObjectAcl:Put",s3_ObjectCreated_:"s3:ObjectCreated:*",s3_ObjectCreated_CompleteMultipartUpload:"s3:ObjectCreated:CompleteMultipartUpload",s3_ObjectCreated_Copy:"s3:ObjectCreated:Copy",s3_ObjectCreated_Post:"s3:ObjectCreated:Post",s3_ObjectCreated_Put:"s3:ObjectCreated:Put",s3_ObjectRemoved_:"s3:ObjectRemoved:*",s3_ObjectRemoved_Delete:"s3:ObjectRemoved:Delete",s3_ObjectRemoved_DeleteMarkerCreated:"s3:ObjectRemoved:DeleteMarkerCreated",s3_ObjectRestore_:"s3:ObjectRestore:*",s3_ObjectRestore_Completed:"s3:ObjectRestore:Completed",s3_ObjectRestore_Delete:"s3:ObjectRestore:Delete",s3_ObjectRestore_Post:"s3:ObjectRestore:Post",s3_ObjectTagging_:"s3:ObjectTagging:*",s3_ObjectTagging_Delete:"s3:ObjectTagging:Delete",s3_ObjectTagging_Put:"s3:ObjectTagging:Put",s3_ReducedRedundancyLostObject:"s3:ReducedRedundancyLostObject",s3_Replication_:"s3:Replication:*",s3_Replication_OperationFailedReplication:"s3:Replication:OperationFailedReplication",s3_Replication_OperationMissedThreshold:"s3:Replication:OperationMissedThreshold",s3_Replication_OperationNotTracked:"s3:Replication:OperationNotTracked",s3_Replication_OperationReplicatedAfterThreshold:"s3:Replication:OperationReplicatedAfterThreshold"};_.FilterRuleName={prefix:"prefix",suffix:"suffix"};_.DeleteMarkerReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};_.MetricsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ReplicationTimeStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ExistingObjectReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};var ote;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(ote=_.ReplicationRuleFilter||(_.ReplicationRuleFilter={}));_.ReplicaModificationsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.SseKmsEncryptedObjectsStatus={Disabled:"Disabled",Enabled:"Enabled"};_.ReplicationRuleStatus={Disabled:"Disabled",Enabled:"Enabled"};_.Payer={BucketOwner:"BucketOwner",Requester:"Requester"};_.MFADeleteStatus={Disabled:"Disabled",Enabled:"Enabled"};_.BucketVersioningStatus={Enabled:"Enabled",Suspended:"Suspended"};_.Protocol={http:"http",https:"https"};_.ReplicationStatus={COMPLETE:"COMPLETE",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",REPLICA:"REPLICA"};_.ChecksumMode={ENABLED:"ENABLED"};var Zg=class e extends Jn.S3ServiceException{constructor(n){super({name:"InvalidObjectState",$fault:"client",...n}),this.name="InvalidObjectState",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.StorageClass=n.StorageClass,this.AccessTier=n.AccessTier}};_.InvalidObjectState=Zg;var eh=class e extends Jn.S3ServiceException{constructor(n){super({name:"NoSuchKey",$fault:"client",...n}),this.name="NoSuchKey",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchKey=eh;_.ObjectAttributes={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"};_.ObjectLockEnabled={Enabled:"Enabled"};_.ObjectLockRetentionMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};var th=class e extends Jn.S3ServiceException{constructor(n){super({name:"NotFound",$fault:"client",...n}),this.name="NotFound",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NotFound=th;_.ArchiveStatus={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};_.EncodingType={url:"url"};_.ObjectStorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};_.OptionalObjectAttributes={RESTORE_STATUS:"RestoreStatus"};var nh=class e extends Jn.S3ServiceException{constructor(n){super({name:"NoSuchBucket",$fault:"client",...n}),this.name="NoSuchBucket",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};_.NoSuchBucket=nh;_.ObjectVersionStorageClass={STANDARD:"STANDARD"};_.MFADelete={Disabled:"Disabled",Enabled:"Enabled"};var ste=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.CompleteMultipartUploadOutputFilterSensitiveLog=ste;var ite=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.CompleteMultipartUploadRequestFilterSensitiveLog=ite;var ate=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CopyObjectOutputFilterSensitiveLog=ate;var cte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Ce.SENSITIVE_STRING}});_.CopyObjectRequestFilterSensitiveLog=cte;var dte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CreateMultipartUploadOutputFilterSensitiveLog=dte;var lte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CreateMultipartUploadRequestFilterSensitiveLog=lte;var ute=e=>({...e,...e.KMSMasterKeyID&&{KMSMasterKeyID:Ce.SENSITIVE_STRING}});_.ServerSideEncryptionByDefaultFilterSensitiveLog=ute;var mte=e=>({...e,...e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:(0,_.ServerSideEncryptionByDefaultFilterSensitiveLog)(e.ApplyServerSideEncryptionByDefault)}});_.ServerSideEncryptionRuleFilterSensitiveLog=mte;var pte=e=>({...e,...e.Rules&&{Rules:e.Rules.map(n=>(0,_.ServerSideEncryptionRuleFilterSensitiveLog)(n))}});_.ServerSideEncryptionConfigurationFilterSensitiveLog=pte;var fte=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,_.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});_.GetBucketEncryptionOutputFilterSensitiveLog=fte;var yte=e=>({...e,...e.KeyId&&{KeyId:Ce.SENSITIVE_STRING}});_.SSEKMSFilterSensitiveLog=yte;var gte=e=>({...e,...e.SSEKMS&&{SSEKMS:(0,_.SSEKMSFilterSensitiveLog)(e.SSEKMS)}});_.InventoryEncryptionFilterSensitiveLog=gte;var hte=e=>({...e,...e.Encryption&&{Encryption:(0,_.InventoryEncryptionFilterSensitiveLog)(e.Encryption)}});_.InventoryS3BucketDestinationFilterSensitiveLog=hte;var _te=e=>({...e,...e.S3BucketDestination&&{S3BucketDestination:(0,_.InventoryS3BucketDestinationFilterSensitiveLog)(e.S3BucketDestination)}});_.InventoryDestinationFilterSensitiveLog=_te;var Cte=e=>({...e,...e.Destination&&{Destination:(0,_.InventoryDestinationFilterSensitiveLog)(e.Destination)}});_.InventoryConfigurationFilterSensitiveLog=Cte;var Ste=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,_.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});_.GetBucketInventoryConfigurationOutputFilterSensitiveLog=Ste;var bte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.GetObjectOutputFilterSensitiveLog=bte;var Ete=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.GetObjectRequestFilterSensitiveLog=Ete;var Pte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.GetObjectAttributesRequestFilterSensitiveLog=Pte;var vte=e=>({...e});_.GetObjectTorrentOutputFilterSensitiveLog=vte;var wte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.HeadObjectOutputFilterSensitiveLog=wte;var xte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.HeadObjectRequestFilterSensitiveLog=xte;var kte=e=>({...e,...e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map(n=>(0,_.InventoryConfigurationFilterSensitiveLog)(n))}});_.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=kte;var Ate=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.ListPartsRequestFilterSensitiveLog=Ate;var Ote=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,_.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});_.PutBucketEncryptionRequestFilterSensitiveLog=Ote;var Nte=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,_.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});_.PutBucketInventoryConfigurationRequestFilterSensitiveLog=Nte;var Ite=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.PutObjectOutputFilterSensitiveLog=Ite;var Rte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.PutObjectRequestFilterSensitiveLog=Rte});var Zn=m(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.WriteGetObjectResponseRequestFilterSensitiveLog=X.UploadPartCopyRequestFilterSensitiveLog=X.UploadPartCopyOutputFilterSensitiveLog=X.UploadPartRequestFilterSensitiveLog=X.UploadPartOutputFilterSensitiveLog=X.SelectObjectContentRequestFilterSensitiveLog=X.SelectObjectContentOutputFilterSensitiveLog=X.SelectObjectContentEventStreamFilterSensitiveLog=X.RestoreObjectRequestFilterSensitiveLog=X.RestoreRequestFilterSensitiveLog=X.OutputLocationFilterSensitiveLog=X.S3LocationFilterSensitiveLog=X.EncryptionFilterSensitiveLog=X.SelectObjectContentEventStream=X.RestoreRequestType=X.QuoteFields=X.JSONType=X.FileHeaderInfo=X.CompressionType=X.ExpressionType=X.Tier=X.ObjectAlreadyInActiveTierError=void 0;var Qn=b(),Tte=La(),rh=class e extends Tte.S3ServiceException{constructor(n){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...n}),this.name="ObjectAlreadyInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};X.ObjectAlreadyInActiveTierError=rh;X.Tier={Bulk:"Bulk",Expedited:"Expedited",Standard:"Standard"};X.ExpressionType={SQL:"SQL"};X.CompressionType={BZIP2:"BZIP2",GZIP:"GZIP",NONE:"NONE"};X.FileHeaderInfo={IGNORE:"IGNORE",NONE:"NONE",USE:"USE"};X.JSONType={DOCUMENT:"DOCUMENT",LINES:"LINES"};X.QuoteFields={ALWAYS:"ALWAYS",ASNEEDED:"ASNEEDED"};X.RestoreRequestType={SELECT:"SELECT"};var Bte;(function(e){e.visit=(n,t)=>n.Records!==void 0?t.Records(n.Records):n.Stats!==void 0?t.Stats(n.Stats):n.Progress!==void 0?t.Progress(n.Progress):n.Cont!==void 0?t.Cont(n.Cont):n.End!==void 0?t.End(n.End):t._(n.$unknown[0],n.$unknown[1])})(Bte=X.SelectObjectContentEventStream||(X.SelectObjectContentEventStream={}));var qte=e=>({...e,...e.KMSKeyId&&{KMSKeyId:Qn.SENSITIVE_STRING}});X.EncryptionFilterSensitiveLog=qte;var Dte=e=>({...e,...e.Encryption&&{Encryption:(0,X.EncryptionFilterSensitiveLog)(e.Encryption)}});X.S3LocationFilterSensitiveLog=Dte;var Mte=e=>({...e,...e.S3&&{S3:(0,X.S3LocationFilterSensitiveLog)(e.S3)}});X.OutputLocationFilterSensitiveLog=Mte;var Fte=e=>({...e,...e.OutputLocation&&{OutputLocation:(0,X.OutputLocationFilterSensitiveLog)(e.OutputLocation)}});X.RestoreRequestFilterSensitiveLog=Fte;var Lte=e=>({...e,...e.RestoreRequest&&{RestoreRequest:(0,X.RestoreRequestFilterSensitiveLog)(e.RestoreRequest)}});X.RestoreObjectRequestFilterSensitiveLog=Lte;var jte=e=>{if(e.Records!==void 0)return{Records:e.Records};if(e.Stats!==void 0)return{Stats:e.Stats};if(e.Progress!==void 0)return{Progress:e.Progress};if(e.Cont!==void 0)return{Cont:e.Cont};if(e.End!==void 0)return{End:e.End};if(e.$unknown!==void 0)return{[e.$unknown[0]]:"UNKNOWN"}};X.SelectObjectContentEventStreamFilterSensitiveLog=jte;var zte=e=>({...e,...e.Payload&&{Payload:"STREAMING_CONTENT"}});X.SelectObjectContentOutputFilterSensitiveLog=zte;var Ute=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING}});X.SelectObjectContentRequestFilterSensitiveLog=Ute;var Gte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.UploadPartOutputFilterSensitiveLog=Gte;var Hte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING}});X.UploadPartRequestFilterSensitiveLog=Hte;var $te=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.UploadPartCopyOutputFilterSensitiveLog=$te;var Kte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Qn.SENSITIVE_STRING}});X.UploadPartCopyRequestFilterSensitiveLog=Kte;var Vte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.WriteGetObjectResponseRequestFilterSensitiveLog=Vte});var q=m(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.se_GetObjectTorrentCommand=p.se_GetObjectTaggingCommand=p.se_GetObjectRetentionCommand=p.se_GetObjectLockConfigurationCommand=p.se_GetObjectLegalHoldCommand=p.se_GetObjectAttributesCommand=p.se_GetObjectAclCommand=p.se_GetObjectCommand=p.se_GetBucketWebsiteCommand=p.se_GetBucketVersioningCommand=p.se_GetBucketTaggingCommand=p.se_GetBucketRequestPaymentCommand=p.se_GetBucketReplicationCommand=p.se_GetBucketPolicyStatusCommand=p.se_GetBucketPolicyCommand=p.se_GetBucketOwnershipControlsCommand=p.se_GetBucketNotificationConfigurationCommand=p.se_GetBucketMetricsConfigurationCommand=p.se_GetBucketLoggingCommand=p.se_GetBucketLocationCommand=p.se_GetBucketLifecycleConfigurationCommand=p.se_GetBucketInventoryConfigurationCommand=p.se_GetBucketIntelligentTieringConfigurationCommand=p.se_GetBucketEncryptionCommand=p.se_GetBucketCorsCommand=p.se_GetBucketAnalyticsConfigurationCommand=p.se_GetBucketAclCommand=p.se_GetBucketAccelerateConfigurationCommand=p.se_DeletePublicAccessBlockCommand=p.se_DeleteObjectTaggingCommand=p.se_DeleteObjectsCommand=p.se_DeleteObjectCommand=p.se_DeleteBucketWebsiteCommand=p.se_DeleteBucketTaggingCommand=p.se_DeleteBucketReplicationCommand=p.se_DeleteBucketPolicyCommand=p.se_DeleteBucketOwnershipControlsCommand=p.se_DeleteBucketMetricsConfigurationCommand=p.se_DeleteBucketLifecycleCommand=p.se_DeleteBucketInventoryConfigurationCommand=p.se_DeleteBucketIntelligentTieringConfigurationCommand=p.se_DeleteBucketEncryptionCommand=p.se_DeleteBucketCorsCommand=p.se_DeleteBucketAnalyticsConfigurationCommand=p.se_DeleteBucketCommand=p.se_CreateMultipartUploadCommand=p.se_CreateBucketCommand=p.se_CopyObjectCommand=p.se_CompleteMultipartUploadCommand=p.se_AbortMultipartUploadCommand=void 0;p.de_DeleteBucketAnalyticsConfigurationCommand=p.de_DeleteBucketCommand=p.de_CreateMultipartUploadCommand=p.de_CreateBucketCommand=p.de_CopyObjectCommand=p.de_CompleteMultipartUploadCommand=p.de_AbortMultipartUploadCommand=p.se_WriteGetObjectResponseCommand=p.se_UploadPartCopyCommand=p.se_UploadPartCommand=p.se_SelectObjectContentCommand=p.se_RestoreObjectCommand=p.se_PutPublicAccessBlockCommand=p.se_PutObjectTaggingCommand=p.se_PutObjectRetentionCommand=p.se_PutObjectLockConfigurationCommand=p.se_PutObjectLegalHoldCommand=p.se_PutObjectAclCommand=p.se_PutObjectCommand=p.se_PutBucketWebsiteCommand=p.se_PutBucketVersioningCommand=p.se_PutBucketTaggingCommand=p.se_PutBucketRequestPaymentCommand=p.se_PutBucketReplicationCommand=p.se_PutBucketPolicyCommand=p.se_PutBucketOwnershipControlsCommand=p.se_PutBucketNotificationConfigurationCommand=p.se_PutBucketMetricsConfigurationCommand=p.se_PutBucketLoggingCommand=p.se_PutBucketLifecycleConfigurationCommand=p.se_PutBucketInventoryConfigurationCommand=p.se_PutBucketIntelligentTieringConfigurationCommand=p.se_PutBucketEncryptionCommand=p.se_PutBucketCorsCommand=p.se_PutBucketAnalyticsConfigurationCommand=p.se_PutBucketAclCommand=p.se_PutBucketAccelerateConfigurationCommand=p.se_ListPartsCommand=p.se_ListObjectVersionsCommand=p.se_ListObjectsV2Command=p.se_ListObjectsCommand=p.se_ListMultipartUploadsCommand=p.se_ListBucketsCommand=p.se_ListBucketMetricsConfigurationsCommand=p.se_ListBucketInventoryConfigurationsCommand=p.se_ListBucketIntelligentTieringConfigurationsCommand=p.se_ListBucketAnalyticsConfigurationsCommand=p.se_HeadObjectCommand=p.se_HeadBucketCommand=p.se_GetPublicAccessBlockCommand=void 0;p.de_ListBucketMetricsConfigurationsCommand=p.de_ListBucketInventoryConfigurationsCommand=p.de_ListBucketIntelligentTieringConfigurationsCommand=p.de_ListBucketAnalyticsConfigurationsCommand=p.de_HeadObjectCommand=p.de_HeadBucketCommand=p.de_GetPublicAccessBlockCommand=p.de_GetObjectTorrentCommand=p.de_GetObjectTaggingCommand=p.de_GetObjectRetentionCommand=p.de_GetObjectLockConfigurationCommand=p.de_GetObjectLegalHoldCommand=p.de_GetObjectAttributesCommand=p.de_GetObjectAclCommand=p.de_GetObjectCommand=p.de_GetBucketWebsiteCommand=p.de_GetBucketVersioningCommand=p.de_GetBucketTaggingCommand=p.de_GetBucketRequestPaymentCommand=p.de_GetBucketReplicationCommand=p.de_GetBucketPolicyStatusCommand=p.de_GetBucketPolicyCommand=p.de_GetBucketOwnershipControlsCommand=p.de_GetBucketNotificationConfigurationCommand=p.de_GetBucketMetricsConfigurationCommand=p.de_GetBucketLoggingCommand=p.de_GetBucketLocationCommand=p.de_GetBucketLifecycleConfigurationCommand=p.de_GetBucketInventoryConfigurationCommand=p.de_GetBucketIntelligentTieringConfigurationCommand=p.de_GetBucketEncryptionCommand=p.de_GetBucketCorsCommand=p.de_GetBucketAnalyticsConfigurationCommand=p.de_GetBucketAclCommand=p.de_GetBucketAccelerateConfigurationCommand=p.de_DeletePublicAccessBlockCommand=p.de_DeleteObjectTaggingCommand=p.de_DeleteObjectsCommand=p.de_DeleteObjectCommand=p.de_DeleteBucketWebsiteCommand=p.de_DeleteBucketTaggingCommand=p.de_DeleteBucketReplicationCommand=p.de_DeleteBucketPolicyCommand=p.de_DeleteBucketOwnershipControlsCommand=p.de_DeleteBucketMetricsConfigurationCommand=p.de_DeleteBucketLifecycleCommand=p.de_DeleteBucketInventoryConfigurationCommand=p.de_DeleteBucketIntelligentTieringConfigurationCommand=p.de_DeleteBucketEncryptionCommand=p.de_DeleteBucketCorsCommand=void 0;p.de_WriteGetObjectResponseCommand=p.de_UploadPartCopyCommand=p.de_UploadPartCommand=p.de_SelectObjectContentCommand=p.de_RestoreObjectCommand=p.de_PutPublicAccessBlockCommand=p.de_PutObjectTaggingCommand=p.de_PutObjectRetentionCommand=p.de_PutObjectLockConfigurationCommand=p.de_PutObjectLegalHoldCommand=p.de_PutObjectAclCommand=p.de_PutObjectCommand=p.de_PutBucketWebsiteCommand=p.de_PutBucketVersioningCommand=p.de_PutBucketTaggingCommand=p.de_PutBucketRequestPaymentCommand=p.de_PutBucketReplicationCommand=p.de_PutBucketPolicyCommand=p.de_PutBucketOwnershipControlsCommand=p.de_PutBucketNotificationConfigurationCommand=p.de_PutBucketMetricsConfigurationCommand=p.de_PutBucketLoggingCommand=p.de_PutBucketLifecycleConfigurationCommand=p.de_PutBucketInventoryConfigurationCommand=p.de_PutBucketIntelligentTieringConfigurationCommand=p.de_PutBucketEncryptionCommand=p.de_PutBucketCorsCommand=p.de_PutBucketAnalyticsConfigurationCommand=p.de_PutBucketAclCommand=p.de_PutBucketAccelerateConfigurationCommand=p.de_ListPartsCommand=p.de_ListObjectVersionsCommand=p.de_ListObjectsV2Command=p.de_ListObjectsCommand=p.de_ListMultipartUploadsCommand=p.de_ListBucketsCommand=void 0;var f=hq(),B=Ne(),d=b(),Xte=Mf(),St=Ye(),Wte=Zn(),Yte=La(),Jte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"AbortMultipartUpload"],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_AbortMultipartUploadCommand=Jte;var Qte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"CompleteMultipartUpload"],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;e.MultipartUpload!==void 0&&(l=Pq(e.MultipartUpload,n));let a;return e.MultipartUpload!==void 0&&(a=Pq(e.MultipartUpload,n),a=a.withName("CompleteMultipartUpload"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_CompleteMultipartUploadCommand=Qte;var Zte=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>P(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>P(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],expires:[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-metadata-directive":e.MetadataDirective,"x-amz-tagging-directive":e.TaggingDirective,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm,"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey,"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((a,y)=>(a[`x-amz-meta-${y.toLowerCase()}`]=e.Metadata[y],a),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"CopyObject"]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_CopyObjectCommand=Zte;var ene=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-acl":e.ACL,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-bucket-object-lock-enabled":[()=>P(e.ObjectLockEnabledForBucket),()=>e.ObjectLockEnabledForBucket.toString()],"x-amz-object-ownership":e.ObjectOwnership}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;e.CreateBucketConfiguration!==void 0&&(u=wq(e.CreateBucketConfiguration,n));let l;return e.CreateBucketConfiguration!==void 0&&(l=wq(e.CreateBucketConfiguration,n),u='',l.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),u+=l.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,body:u})};p.se_CreateBucketCommand=ene;var tne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,expires:[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((a,y)=>(a[`x-amz-meta-${y.toLowerCase()}`]=e.Metadata[y],a),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({uploads:[,""],"x-id":[,"CreateMultipartUpload"]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_CreateMultipartUploadCommand=tne;var nne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,body:u})};p.se_DeleteBucketCommand=nne;var rne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketAnalyticsConfigurationCommand=rne;var one=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketCorsCommand=one;var sne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketEncryptionCommand=sne;var ine=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketIntelligentTieringConfigurationCommand=ine;var ane=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketInventoryConfigurationCommand=ane;var cne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketLifecycleCommand=cne;var dne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketMetricsConfigurationCommand=dne;var lne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketOwnershipControlsCommand=lne;var une=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketPolicyCommand=une;var mne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketReplicationCommand=mne;var pne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketTaggingCommand=pne;var fne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketWebsiteCommand=fne;var yne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>P(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"DeleteObject"],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectCommand=yne;var gne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>P(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({delete:[,""],"x-id":[,"DeleteObjects"]}),l;e.Delete!==void 0&&(l=xq(e.Delete,n));let a;return e.Delete!==void 0&&(a=xq(e.Delete,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectsCommand=gne;var hne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectTaggingCommand=hne;var _ne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeletePublicAccessBlockCommand=_ne;var Cne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAccelerateConfigurationCommand=Cne;var Sne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAclCommand=Sne;var bne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],"x-id":[,"GetBucketAnalyticsConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAnalyticsConfigurationCommand=bne;var Ene=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketCorsCommand=Ene;var Pne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketEncryptionCommand=Pne;var vne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],"x-id":[,"GetBucketIntelligentTieringConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketIntelligentTieringConfigurationCommand=vne;var wne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],"x-id":[,"GetBucketInventoryConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketInventoryConfigurationCommand=wne;var xne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLifecycleConfigurationCommand=xne;var kne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({location:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLocationCommand=kne;var Ane=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLoggingCommand=Ane;var One=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],"x-id":[,"GetBucketMetricsConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketMetricsConfigurationCommand=One;var Nne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketNotificationConfigurationCommand=Nne;var Ine=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketOwnershipControlsCommand=Ine;var Rne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketPolicyCommand=Rne;var Tne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policyStatus:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketPolicyStatusCommand=Tne;var Bne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketReplicationCommand=Bne;var qne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketRequestPaymentCommand=qne;var Dne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketTaggingCommand=Dne;var Mne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketVersioningCommand=Mne;var Fne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketWebsiteCommand=Fne;var Lne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"if-match":e.IfMatch,"if-modified-since":[()=>P(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>P(e.IfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"GetObject"],"response-cache-control":[,e.ResponseCacheControl],"response-content-disposition":[,e.ResponseContentDisposition],"response-content-encoding":[,e.ResponseContentEncoding],"response-content-language":[,e.ResponseContentLanguage],"response-content-type":[,e.ResponseContentType],"response-expires":[()=>e.ResponseExpires!==void 0,()=>(0,d.dateToUtcString)(e.ResponseExpires).toString()],versionId:[,e.VersionId],partNumber:[()=>e.PartNumber!==void 0,()=>e.PartNumber.toString()]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectCommand=Lne;var jne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({acl:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectAclCommand=jne;var zne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-max-parts":[()=>P(e.MaxParts),()=>e.MaxParts.toString()],"x-amz-part-number-marker":e.PartNumberMarker,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-object-attributes":[()=>P(e.ObjectAttributes),()=>(e.ObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({attributes:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectAttributesCommand=zne;var Une=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"legal-hold":[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectLegalHoldCommand=Une;var Gne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectLockConfigurationCommand=Gne;var Hne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({retention:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectRetentionCommand=Hne;var $ne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectTaggingCommand=$ne;var Kne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({torrent:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectTorrentCommand=Kne;var Vne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetPublicAccessBlockCommand=Vne;var Xne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"HEAD",headers:c,path:i,body:u})};p.se_HeadBucketCommand=Xne;var Wne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"if-match":e.IfMatch,"if-modified-since":[()=>P(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>P(e.IfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({versionId:[,e.VersionId],partNumber:[()=>e.PartNumber!==void 0,()=>e.PartNumber.toString()]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"HEAD",headers:c,path:i,query:u,body:l})};p.se_HeadObjectCommand=Wne;var Yne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],"x-id":[,"ListBucketAnalyticsConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketAnalyticsConfigurationsCommand=Yne;var Jne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],"x-id":[,"ListBucketIntelligentTieringConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketIntelligentTieringConfigurationsCommand=Jne;var Qne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],"x-id":[,"ListBucketInventoryConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketInventoryConfigurationsCommand=Qne;var Zne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],"x-id":[,"ListBucketMetricsConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketMetricsConfigurationsCommand=Zne;var ere=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/xml"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`,u;return u="",new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,body:u})};p.se_ListBucketsCommand=ere;var tre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({uploads:[,""],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"key-marker":[,e.KeyMarker],"max-uploads":[()=>e.MaxUploads!==void 0,()=>e.MaxUploads.toString()],prefix:[,e.Prefix],"upload-id-marker":[,e.UploadIdMarker]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListMultipartUploadsCommand=tre;var nre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>P(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],marker:[,e.Marker],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectsCommand=nre;var rre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>P(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"list-type":[,"2"],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix],"continuation-token":[,e.ContinuationToken],"fetch-owner":[()=>e.FetchOwner!==void 0,()=>e.FetchOwner.toString()],"start-after":[,e.StartAfter]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectsV2Command=rre;var ore=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer,"x-amz-optional-object-attributes":[()=>P(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versions:[,""],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"key-marker":[,e.KeyMarker],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix],"version-id-marker":[,e.VersionIdMarker]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectVersionsCommand=ore;var sre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"ListParts"],"max-parts":[()=>e.MaxParts!==void 0,()=>e.MaxParts.toString()],"part-number-marker":[,e.PartNumberMarker],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListPartsCommand=sre;var ire=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;e.AccelerateConfiguration!==void 0&&(l=Cq(e.AccelerateConfiguration,n));let a;return e.AccelerateConfiguration!==void 0&&(a=Cq(e.AccelerateConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAccelerateConfigurationCommand=ire;var are=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-acl":e.ACL,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;e.AccessControlPolicy!==void 0&&(l=ym(e.AccessControlPolicy,n));let a;return e.AccessControlPolicy!==void 0&&(a=ym(e.AccessControlPolicy,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAclCommand=are;var cre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.AnalyticsConfiguration!==void 0&&(l=Sq(e.AnalyticsConfiguration,n));let a;return e.AnalyticsConfiguration!==void 0&&(a=Sq(e.AnalyticsConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAnalyticsConfigurationCommand=cre;var dre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;e.CORSConfiguration!==void 0&&(l=vq(e.CORSConfiguration,n));let a;return e.CORSConfiguration!==void 0&&(a=vq(e.CORSConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketCorsCommand=dre;var lre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;e.ServerSideEncryptionConfiguration!==void 0&&(l=Lq(e.ServerSideEncryptionConfiguration,n));let a;return e.ServerSideEncryptionConfiguration!==void 0&&(a=Lq(e.ServerSideEncryptionConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketEncryptionCommand=lre;var ure=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/xml"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.IntelligentTieringConfiguration!==void 0&&(l=kq(e.IntelligentTieringConfiguration,n));let a;return e.IntelligentTieringConfiguration!==void 0&&(a=kq(e.IntelligentTieringConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketIntelligentTieringConfigurationCommand=ure;var mre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.InventoryConfiguration!==void 0&&(l=Aq(e.InventoryConfiguration,n));let a;return e.InventoryConfiguration!==void 0&&(a=Aq(e.InventoryConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketInventoryConfigurationCommand=mre;var pre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;e.LifecycleConfiguration!==void 0&&(l=bq(e.LifecycleConfiguration,n));let a;return e.LifecycleConfiguration!==void 0&&(a=bq(e.LifecycleConfiguration,n),a=a.withName("LifecycleConfiguration"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketLifecycleConfigurationCommand=pre;var fre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;e.BucketLoggingStatus!==void 0&&(l=Eq(e.BucketLoggingStatus,n));let a;return e.BucketLoggingStatus!==void 0&&(a=Eq(e.BucketLoggingStatus,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketLoggingCommand=fre;var yre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.MetricsConfiguration!==void 0&&(l=Oq(e.MetricsConfiguration,n));let a;return e.MetricsConfiguration!==void 0&&(a=Oq(e.MetricsConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketMetricsConfigurationCommand=yre;var gre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-skip-destination-validation":[()=>P(e.SkipDestinationValidation),()=>e.SkipDestinationValidation.toString()]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;e.NotificationConfiguration!==void 0&&(l=Nq(e.NotificationConfiguration,n));let a;return e.NotificationConfiguration!==void 0&&(a=Nq(e.NotificationConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketNotificationConfigurationCommand=gre;var hre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;e.OwnershipControls!==void 0&&(l=Bq(e.OwnershipControls,n));let a;return e.OwnershipControls!==void 0&&(a=Bq(e.OwnershipControls,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketOwnershipControlsCommand=hre;var _re=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"text/plain","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-confirm-remove-self-bucket-access":[()=>P(e.ConfirmRemoveSelfBucketAccess),()=>e.ConfirmRemoveSelfBucketAccess.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;e.Policy!==void 0&&(l=e.Policy);let a;return e.Policy!==void 0&&(a=e.Policy,l=a),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketPolicyCommand=_re;var Cre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-bucket-object-lock-token":e.Token,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;e.ReplicationConfiguration!==void 0&&(l=Dq(e.ReplicationConfiguration,n));let a;return e.ReplicationConfiguration!==void 0&&(a=Dq(e.ReplicationConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketReplicationCommand=Cre;var Sre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;e.RequestPaymentConfiguration!==void 0&&(l=Mq(e.RequestPaymentConfiguration,n));let a;return e.RequestPaymentConfiguration!==void 0&&(a=Mq(e.RequestPaymentConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketRequestPaymentCommand=Sre;var bre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;e.Tagging!==void 0&&(l=ja(e.Tagging,n));let a;return e.Tagging!==void 0&&(a=ja(e.Tagging,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketTaggingCommand=bre;var Ere=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-mfa":e.MFA,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;e.VersioningConfiguration!==void 0&&(l=jq(e.VersioningConfiguration,n));let a;return e.VersioningConfiguration!==void 0&&(a=jq(e.VersioningConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketVersioningCommand=Ere;var Pre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;e.WebsiteConfiguration!==void 0&&(l=zq(e.WebsiteConfiguration,n));let a;return e.WebsiteConfiguration!==void 0&&(a=zq(e.WebsiteConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketWebsiteCommand=Pre;var vre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":e.ContentType||"application/octet-stream","x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-length":[()=>P(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,expires:[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((y,g)=>(y[`x-amz-meta-${g.toLowerCase()}`]=e.Metadata[g],y),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"PutObject"]}),l;e.Body!==void 0&&(l=e.Body);let a;return e.Body!==void 0&&(a=e.Body,l=a),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectCommand=vre;var wre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-acl":e.ACL,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({acl:[,""],versionId:[,e.VersionId]}),l;e.AccessControlPolicy!==void 0&&(l=ym(e.AccessControlPolicy,n));let a;return e.AccessControlPolicy!==void 0&&(a=ym(e.AccessControlPolicy,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectAclCommand=wre;var xre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"legal-hold":[,""],versionId:[,e.VersionId]}),l;e.LegalHold!==void 0&&(l=Rq(e.LegalHold,n));let a;return e.LegalHold!==void 0&&(a=Rq(e.LegalHold,n),a=a.withName("LegalHold"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectLegalHoldCommand=xre;var kre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bucket-object-lock-token":e.Token,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;e.ObjectLockConfiguration!==void 0&&(l=Iq(e.ObjectLockConfiguration,n));let a;return e.ObjectLockConfiguration!==void 0&&(a=Iq(e.ObjectLockConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectLockConfigurationCommand=kre;var Are=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>P(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({retention:[,""],versionId:[,e.VersionId]}),l;e.Retention!==void 0&&(l=Tq(e.Retention,n));let a;return e.Retention!==void 0&&(a=Tq(e.Retention,n),a=a.withName("Retention"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectRetentionCommand=Are;var Ore=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;e.Tagging!==void 0&&(l=ja(e.Tagging,n));let a;return e.Tagging!==void 0&&(a=ja(e.Tagging,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectTaggingCommand=Ore;var Nre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;e.PublicAccessBlockConfiguration!==void 0&&(l=qq(e.PublicAccessBlockConfiguration,n));let a;return e.PublicAccessBlockConfiguration!==void 0&&(a=qq(e.PublicAccessBlockConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutPublicAccessBlockCommand=Nre;var Ire=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({restore:[,""],"x-id":[,"RestoreObject"],versionId:[,e.VersionId]}),l;e.RestoreRequest!==void 0&&(l=Fq(e.RestoreRequest,n));let a;return e.RestoreRequest!==void 0&&(a=Fq(e.RestoreRequest,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_RestoreObjectCommand=Ire;var Rre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({select:[,""],"select-type":[,"2"],"x-id":[,"SelectObjectContent"]}),l;l='';let a=new f.XmlNode("SelectObjectContentRequest");if(a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),e.Expression!==void 0){let y=f.XmlNode.of("Expression",e.Expression).withName("Expression");a.addChildNode(y)}if(e.ExpressionType!==void 0){let y=f.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");a.addChildNode(y)}if(e.InputSerialization!==void 0){let y=Kq(e.InputSerialization,n).withName("InputSerialization");a.addChildNode(y)}if(e.OutputSerialization!==void 0){let y=Vq(e.OutputSerialization,n).withName("OutputSerialization");a.addChildNode(y)}if(e.RequestProgress!==void 0){let y=Mce(e.RequestProgress,n).withName("RequestProgress");a.addChildNode(y)}if(e.ScanRange!==void 0){let y=Uce(e.ScanRange,n).withName("ScanRange");a.addChildNode(y)}return l+=a.toString(),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_SelectObjectContentCommand=Rre;var Tre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/octet-stream","content-length":[()=>P(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"UploadPart"],partNumber:[(0,d.expectNonNull)(e.PartNumber,"PartNumber")!=null,()=>e.PartNumber.toString()],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;e.Body!==void 0&&(l=e.Body);let a;return e.Body!==void 0&&(a=e.Body,l=a),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_UploadPartCommand=Tre;var Bre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>P(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>P(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],"x-amz-copy-source-range":e.CopySourceRange,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm,"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey,"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"UploadPartCopy"],partNumber:[(0,d.expectNonNull)(e.PartNumber,"PartNumber")!=null,()=>e.PartNumber.toString()],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_UploadPartCopyCommand=Bre;var qre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-content-sha256":"UNSIGNED-PAYLOAD","content-type":"application/octet-stream","x-amz-request-route":e.RequestRoute,"x-amz-request-token":e.RequestToken,"x-amz-fwd-status":[()=>P(e.StatusCode),()=>e.StatusCode.toString()],"x-amz-fwd-error-code":e.ErrorCode,"x-amz-fwd-error-message":e.ErrorMessage,"x-amz-fwd-header-accept-ranges":e.AcceptRanges,"x-amz-fwd-header-cache-control":e.CacheControl,"x-amz-fwd-header-content-disposition":e.ContentDisposition,"x-amz-fwd-header-content-encoding":e.ContentEncoding,"x-amz-fwd-header-content-language":e.ContentLanguage,"content-length":[()=>P(e.ContentLength),()=>e.ContentLength.toString()],"x-amz-fwd-header-content-range":e.ContentRange,"x-amz-fwd-header-content-type":e.ContentType,"x-amz-fwd-header-x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-fwd-header-x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-fwd-header-x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-fwd-header-x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-fwd-header-x-amz-delete-marker":[()=>P(e.DeleteMarker),()=>e.DeleteMarker.toString()],"x-amz-fwd-header-etag":e.ETag,"x-amz-fwd-header-expires":[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-fwd-header-x-amz-expiration":e.Expiration,"x-amz-fwd-header-last-modified":[()=>P(e.LastModified),()=>(0,d.dateToUtcString)(e.LastModified).toString()],"x-amz-fwd-header-x-amz-missing-meta":[()=>P(e.MissingMeta),()=>e.MissingMeta.toString()],"x-amz-fwd-header-x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-fwd-header-x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-fwd-header-x-amz-object-lock-retain-until-date":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-fwd-header-x-amz-mp-parts-count":[()=>P(e.PartsCount),()=>e.PartsCount.toString()],"x-amz-fwd-header-x-amz-replication-status":e.ReplicationStatus,"x-amz-fwd-header-x-amz-request-charged":e.RequestCharged,"x-amz-fwd-header-x-amz-restore":e.Restore,"x-amz-fwd-header-x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-fwd-header-x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-fwd-header-x-amz-storage-class":e.StorageClass,"x-amz-fwd-header-x-amz-tagging-count":[()=>P(e.TagCount),()=>e.TagCount.toString()],"x-amz-fwd-header-x-amz-version-id":e.VersionId,"x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((g,C)=>(g[`x-amz-meta-${C.toLowerCase()}`]=e.Metadata[C],g),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/WriteGetObjectResponse`,u=(0,d.map)({"x-id":[,"WriteGetObjectResponse"]}),l;e.Body!==void 0&&(l=e.Body);let a;e.Body!==void 0&&(a=e.Body,l=a);let{hostname:y}=await n.endpoint();if(n.disableHostPrefix!==!0){if(y="{RequestRoute}."+y,e.RequestRoute===void 0)throw new Error("Empty value provided for input host prefix: RequestRoute.");if(y=y.replace("{RequestRoute}",e.RequestRoute),!(0,B.isValidHostname)(y))throw new Error("ValidationError: prefixed hostname must be hostname compatible.")}return new B.HttpRequest({protocol:r,hostname:y,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_WriteGetObjectResponseCommand=qre;var Dre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Mre(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_AbortMultipartUploadCommand=Dre;var Mre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":throw await dae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Fre=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lre(e,n);let t=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(r.ChecksumCRC32)),r.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(r.ChecksumCRC32C)),r.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(r.ChecksumSHA1)),r.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(r.ChecksumSHA256)),r.ETag!==void 0&&(t.ETag=(0,d.expectString)(r.ETag)),r.Key!==void 0&&(t.Key=(0,d.expectString)(r.Key)),r.Location!==void 0&&(t.Location=(0,d.expectString)(r.Location)),t};p.de_CompleteMultipartUploadCommand=Fre;var Lre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},jre=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zre(e,n);let t=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],CopySourceVersionId:[,e.headers["x-amz-copy-source-version-id"]],VersionId:[,e.headers["x-amz-version-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectObject)(await Q(e.body,n));return t.CopyObjectResult=vde(r,n),t};p.de_CopyObjectCommand=jre;var zre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":throw await uae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Ure=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gre(e,n);let t=(0,d.map)({$metadata:I(e),Location:[,e.headers.location]});return await(0,d.collectBody)(e.body,n),t};p.de_CreateBucketCommand=Ure;var Gre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"BucketAlreadyExists":case"com.amazonaws.s3#BucketAlreadyExists":throw await iae(t,n);case"BucketAlreadyOwnedByYou":case"com.amazonaws.s3#BucketAlreadyOwnedByYou":throw await aae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Hre=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $re(e,n);let t=(0,d.map)({$metadata:I(e),AbortDate:[()=>e.headers["x-amz-abort-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["x-amz-abort-date"]))],AbortRuleId:[,e.headers["x-amz-abort-rule-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]],ChecksumAlgorithm:[,e.headers["x-amz-checksum-algorithm"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.Key!==void 0&&(t.Key=(0,d.expectString)(r.Key)),r.UploadId!==void 0&&(t.UploadId=(0,d.expectString)(r.UploadId)),t};p.de_CreateMultipartUploadCommand=Hre;var $re=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Kre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Vre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketCommand=Kre;var Vre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Xre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Wre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketAnalyticsConfigurationCommand=Xre;var Wre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Yre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Jre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketCorsCommand=Yre;var Jre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Qre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Zre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketEncryptionCommand=Qre;var Zre=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},eoe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return toe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketIntelligentTieringConfigurationCommand=eoe;var toe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},noe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return roe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketInventoryConfigurationCommand=noe;var roe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ooe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return soe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketLifecycleCommand=ooe;var soe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ioe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return aoe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketMetricsConfigurationCommand=ioe;var aoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},coe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return doe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketOwnershipControlsCommand=coe;var doe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},loe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return uoe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketPolicyCommand=loe;var uoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},moe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return poe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketReplicationCommand=moe;var poe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},foe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return yoe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketTaggingCommand=foe;var yoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},goe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return hoe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketWebsiteCommand=goe;var hoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},_oe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Coe(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],VersionId:[,e.headers["x-amz-version-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteObjectCommand=_oe;var Coe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Soe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return boe(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Deleted===""?t.Deleted=[]:r.Deleted!==void 0&&(t.Deleted=Nde((0,d.getArrayIfSingleItem)(r.Deleted),n)),r.Error===""?t.Errors=[]:r.Error!==void 0&&(t.Errors=Lde((0,d.getArrayIfSingleItem)(r.Error),n)),t};p.de_DeleteObjectsCommand=Soe;var boe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Eoe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Poe(e,n);let t=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteObjectTaggingCommand=Eoe;var Poe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},voe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return woe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeletePublicAccessBlockCommand=voe;var woe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},xoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return koe(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Status!==void 0&&(t.Status=(0,d.expectString)(r.Status)),t};p.de_GetBucketAccelerateConfigurationCommand=xoe;var koe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Aoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ooe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.AccessControlList===""?t.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(t.Grants=Qq((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),n)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),t};p.de_GetBucketAclCommand=Aoe;var Ooe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Noe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ioe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.AnalyticsConfiguration=Wq(r,n),t};p.de_GetBucketAnalyticsConfigurationCommand=Noe;var Ioe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Roe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Toe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CORSRule===""?t.CORSRules=[]:r.CORSRule!==void 0&&(t.CORSRules=kde((0,d.getArrayIfSingleItem)(r.CORSRule),n)),t};p.de_GetBucketCorsCommand=Roe;var Toe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Boe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qoe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.ServerSideEncryptionConfiguration=Zle(r,n),t};p.de_GetBucketEncryptionCommand=Boe;var qoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Doe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Moe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.IntelligentTieringConfiguration=eD(r,n),t};p.de_GetBucketIntelligentTieringConfigurationCommand=Doe;var Moe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Foe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Loe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.InventoryConfiguration=tD(r,n),t};p.de_GetBucketInventoryConfigurationCommand=Foe;var Loe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},joe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zoe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Rule===""?t.Rules=[]:r.Rule!==void 0&&(t.Rules=lle((0,d.getArrayIfSingleItem)(r.Rule),n)),t};p.de_GetBucketLifecycleConfigurationCommand=joe;var zoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Uoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Goe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.LocationConstraint!==void 0&&(t.LocationConstraint=(0,d.expectString)(r.LocationConstraint)),t};p.de_GetBucketLocationCommand=Uoe;var Goe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Hoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $oe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.LoggingEnabled!==void 0&&(t.LoggingEnabled=ule(r.LoggingEnabled,n)),t};p.de_GetBucketLoggingCommand=Hoe;var $oe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Koe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Voe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.MetricsConfiguration=nD(r,n),t};p.de_GetBucketMetricsConfigurationCommand=Koe;var Voe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Xoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Woe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.EventBridgeConfiguration!==void 0&&(t.EventBridgeConfiguration=jde(r.EventBridgeConfiguration,n)),r.CloudFunctionConfiguration===""?t.LambdaFunctionConfigurations=[]:r.CloudFunctionConfiguration!==void 0&&(t.LambdaFunctionConfigurations=sle((0,d.getArrayIfSingleItem)(r.CloudFunctionConfiguration),n)),r.QueueConfiguration===""?t.QueueConfigurations=[]:r.QueueConfiguration!==void 0&&(t.QueueConfigurations=Lle((0,d.getArrayIfSingleItem)(r.QueueConfiguration),n)),r.TopicConfiguration===""?t.TopicConfigurations=[]:r.TopicConfiguration!==void 0&&(t.TopicConfigurations=fue((0,d.getArrayIfSingleItem)(r.TopicConfiguration),n)),t};p.de_GetBucketNotificationConfigurationCommand=Xoe;var Woe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Yoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Joe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.OwnershipControls=Ole(r,n),t};p.de_GetBucketOwnershipControlsCommand=Yoe;var Joe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Qoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zoe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=await iD(e.body,n);return t.Policy=(0,d.expectString)(r),t};p.de_GetBucketPolicyCommand=Qoe;var Zoe=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ese=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return tse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.PolicyStatus=qle(r,n),t};p.de_GetBucketPolicyStatusCommand=ese;var tse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},nse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return rse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.ReplicationConfiguration=Gle(r,n),t};p.de_GetBucketReplicationCommand=nse;var rse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ose=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return sse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Payer!==void 0&&(t.Payer=(0,d.expectString)(r.Payer)),t};p.de_GetBucketRequestPaymentCommand=ose;var sse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},ise=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return ase(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.TagSet===""?t.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(t.TagSet=Cr((0,d.getArrayIfSingleItem)(r.TagSet.Tag),n)),t};p.de_GetBucketTaggingCommand=ise;var ase=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},cse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return dse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.MfaDelete!==void 0&&(t.MFADelete=(0,d.expectString)(r.MfaDelete)),r.Status!==void 0&&(t.Status=(0,d.expectString)(r.Status)),t};p.de_GetBucketVersioningCommand=cse;var dse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},lse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return use(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ErrorDocument!==void 0&&(t.ErrorDocument=Fde(r.ErrorDocument,n)),r.IndexDocument!==void 0&&(t.IndexDocument=Vde(r.IndexDocument,n)),r.RedirectAllRequestsTo!==void 0&&(t.RedirectAllRequestsTo=zle(r.RedirectAllRequestsTo,n)),r.RoutingRules===""?t.RoutingRules=[]:r.RoutingRules!==void 0&&r.RoutingRules.RoutingRule!==void 0&&(t.RoutingRules=Yle((0,d.getArrayIfSingleItem)(r.RoutingRules.RoutingRule),n)),t};p.de_GetBucketWebsiteCommand=lse;var use=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},mse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return pse(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],ContentLength:[()=>e.headers["content-length"]!==void 0,()=>(0,d.strictParseLong)(e.headers["content-length"])],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],MissingMeta:[()=>e.headers["x-amz-missing-meta"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentRange:[,e.headers["content-range"]],ContentType:[,e.headers["content-type"]],Expires:[()=>e.headers.expires!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>e.headers["x-amz-mp-parts-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-mp-parts-count"])],TagCount:[()=>e.headers["x-amz-tagging-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-tagging-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>e.headers["x-amz-object-lock-retain-until-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter(o=>o.startsWith("x-amz-meta-")).reduce((o,s)=>(o[s.substring(11)]=e.headers[s],o),{})]}),r=e.body;return n.sdkStreamMixin(r),t.Body=r,t};p.de_GetObjectCommand=mse;var pse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":throw await cae(t,n);case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},fse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return yse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.AccessControlList===""?t.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(t.Grants=Qq((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),n)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),t};p.de_GetObjectAclCommand=fse;var yse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},gse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return hse(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],VersionId:[,e.headers["x-amz-version-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Checksum!==void 0&&(t.Checksum=Sde(r.Checksum,n)),r.ETag!==void 0&&(t.ETag=(0,d.expectString)(r.ETag)),r.ObjectParts!==void 0&&(t.ObjectParts=$de(r.ObjectParts,n)),r.ObjectSize!==void 0&&(t.ObjectSize=(0,d.strictParseLong)(r.ObjectSize)),r.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(r.StorageClass)),t};p.de_GetObjectAttributesCommand=gse;var hse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},_se=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.LegalHold=Ple(r,n),t};p.de_GetObjectLegalHoldCommand=_se;var Cse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Sse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return bse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.ObjectLockConfiguration=Ele(r,n),t};p.de_GetObjectLockConfigurationCommand=Sse;var bse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Ese=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Pse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.Retention=vle(r,n),t};p.de_GetObjectRetentionCommand=Ese;var Pse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},vse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return wse(e,n);let t=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.TagSet===""?t.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(t.TagSet=Cr((0,d.getArrayIfSingleItem)(r.TagSet.Tag),n)),t};p.de_GetObjectTaggingCommand=vse;var wse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},xse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return kse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=e.body;return n.sdkStreamMixin(r),t.Body=r,t};p.de_GetObjectTorrentCommand=xse;var kse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Ase=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ose(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Q(e.body,n));return t.PublicAccessBlockConfiguration=Mle(r,n),t};p.de_GetPublicAccessBlockCommand=Ase;var Ose=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Nse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ise(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_HeadBucketCommand=Nse;var Ise=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await Gq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Rse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tse(e,n);let t=(0,d.map)({$metadata:I(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],ArchiveStatus:[,e.headers["x-amz-archive-status"]],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],ContentLength:[()=>e.headers["content-length"]!==void 0,()=>(0,d.strictParseLong)(e.headers["content-length"])],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ETag:[,e.headers.etag],MissingMeta:[()=>e.headers["x-amz-missing-meta"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentType:[,e.headers["content-type"]],Expires:[()=>e.headers.expires!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>e.headers["x-amz-mp-parts-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-mp-parts-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>e.headers["x-amz-object-lock-retain-until-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter(r=>r.startsWith("x-amz-meta-")).reduce((r,o)=>(r[o.substring(11)]=e.headers[o],r),{})]});return await(0,d.collectBody)(e.body,n),t};p.de_HeadObjectCommand=Rse;var Tse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await Gq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Bse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.AnalyticsConfiguration===""?t.AnalyticsConfigurationList=[]:r.AnalyticsConfiguration!==void 0&&(t.AnalyticsConfigurationList=fde((0,d.getArrayIfSingleItem)(r.AnalyticsConfiguration),n)),r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketAnalyticsConfigurationsCommand=Bse;var qse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Dse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IntelligentTieringConfiguration===""?t.IntelligentTieringConfigurationList=[]:r.IntelligentTieringConfiguration!==void 0&&(t.IntelligentTieringConfigurationList=Wde((0,d.getArrayIfSingleItem)(r.IntelligentTieringConfiguration),n)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketIntelligentTieringConfigurationsCommand=Dse;var Mse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Fse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.InventoryConfiguration===""?t.InventoryConfigurationList=[]:r.InventoryConfiguration!==void 0&&(t.InventoryConfigurationList=Jde((0,d.getArrayIfSingleItem)(r.InventoryConfiguration),n)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketInventoryConfigurationsCommand=Fse;var Lse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},jse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.MetricsConfiguration===""?t.MetricsConfigurationList=[]:r.MetricsConfiguration!==void 0&&(t.MetricsConfigurationList=fle((0,d.getArrayIfSingleItem)(r.MetricsConfiguration),n)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketMetricsConfigurationsCommand=jse;var zse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Use=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Buckets===""?t.Buckets=[]:r.Buckets!==void 0&&r.Buckets.Bucket!==void 0&&(t.Buckets=Cde((0,d.getArrayIfSingleItem)(r.Buckets.Bucket),n)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),t};p.de_ListBucketsCommand=Use;var Gse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Hse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $se(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyMarker!==void 0&&(t.KeyMarker=(0,d.expectString)(r.KeyMarker)),r.MaxUploads!==void 0&&(t.MaxUploads=(0,d.strictParseInt32)(r.MaxUploads)),r.NextKeyMarker!==void 0&&(t.NextKeyMarker=(0,d.expectString)(r.NextKeyMarker)),r.NextUploadIdMarker!==void 0&&(t.NextUploadIdMarker=(0,d.expectString)(r.NextUploadIdMarker)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),r.UploadIdMarker!==void 0&&(t.UploadIdMarker=(0,d.expectString)(r.UploadIdMarker)),r.Upload===""?t.Uploads=[]:r.Upload!==void 0&&(t.Uploads=hle((0,d.getArrayIfSingleItem)(r.Upload),n)),t};p.de_ListMultipartUploadsCommand=Hse;var $se=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Kse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Contents===""?t.Contents=[]:r.Contents!==void 0&&(t.Contents=rD((0,d.getArrayIfSingleItem)(r.Contents),n)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.Marker!==void 0&&(t.Marker=(0,d.expectString)(r.Marker)),r.MaxKeys!==void 0&&(t.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(t.Name=(0,d.expectString)(r.Name)),r.NextMarker!==void 0&&(t.NextMarker=(0,d.expectString)(r.NextMarker)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),t};p.de_ListObjectsCommand=Kse;var Vse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await Uq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Xse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Wse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Contents===""?t.Contents=[]:r.Contents!==void 0&&(t.Contents=rD((0,d.getArrayIfSingleItem)(r.Contents),n)),r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyCount!==void 0&&(t.KeyCount=(0,d.strictParseInt32)(r.KeyCount)),r.MaxKeys!==void 0&&(t.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(t.Name=(0,d.expectString)(r.Name)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),r.StartAfter!==void 0&&(t.StartAfter=(0,d.expectString)(r.StartAfter)),t};p.de_ListObjectsV2Command=Xse;var Wse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await Uq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Yse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Jse(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=hm((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.DeleteMarker===""?t.DeleteMarkers=[]:r.DeleteMarker!==void 0&&(t.DeleteMarkers=Tde((0,d.getArrayIfSingleItem)(r.DeleteMarker),n)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyMarker!==void 0&&(t.KeyMarker=(0,d.expectString)(r.KeyMarker)),r.MaxKeys!==void 0&&(t.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(t.Name=(0,d.expectString)(r.Name)),r.NextKeyMarker!==void 0&&(t.NextKeyMarker=(0,d.expectString)(r.NextKeyMarker)),r.NextVersionIdMarker!==void 0&&(t.NextVersionIdMarker=(0,d.expectString)(r.NextVersionIdMarker)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),r.VersionIdMarker!==void 0&&(t.VersionIdMarker=(0,d.expectString)(r.VersionIdMarker)),r.Version===""?t.Versions=[]:r.Version!==void 0&&(t.Versions=Ale((0,d.getArrayIfSingleItem)(r.Version),n)),t};p.de_ListObjectVersionsCommand=Yse;var Jse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Qse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zse(e,n);let t=(0,d.map)({$metadata:I(e),AbortDate:[()=>e.headers["x-amz-abort-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["x-amz-abort-date"]))],AbortRuleId:[,e.headers["x-amz-abort-rule-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await Q(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=(0,d.expectString)(r.ChecksumAlgorithm)),r.Initiator!==void 0&&(t.Initiator=Zq(r.Initiator,n)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.Key!==void 0&&(t.Key=(0,d.expectString)(r.Key)),r.MaxParts!==void 0&&(t.MaxParts=(0,d.strictParseInt32)(r.MaxParts)),r.NextPartNumberMarker!==void 0&&(t.NextPartNumberMarker=(0,d.expectString)(r.NextPartNumberMarker)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),r.PartNumberMarker!==void 0&&(t.PartNumberMarker=(0,d.expectString)(r.PartNumberMarker)),r.Part===""?t.Parts=[]:r.Part!==void 0&&(t.Parts=Tle((0,d.getArrayIfSingleItem)(r.Part),n)),r.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(r.StorageClass)),r.UploadId!==void 0&&(t.UploadId=(0,d.expectString)(r.UploadId)),t};p.de_ListPartsCommand=Qse;var Zse=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},eie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return tie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAccelerateConfigurationCommand=eie;var tie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},nie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return rie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAclCommand=nie;var rie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},oie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return sie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAnalyticsConfigurationCommand=oie;var sie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},iie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return aie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketCorsCommand=iie;var aie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},cie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return die(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketEncryptionCommand=cie;var die=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},lie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return uie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketIntelligentTieringConfigurationCommand=lie;var uie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},mie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return pie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketInventoryConfigurationCommand=mie;var pie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},fie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return yie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketLifecycleConfigurationCommand=fie;var yie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},gie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return hie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketLoggingCommand=gie;var hie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},_ie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketMetricsConfigurationCommand=_ie;var Cie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Sie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return bie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketNotificationConfigurationCommand=Sie;var bie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Eie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Pie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketOwnershipControlsCommand=Eie;var Pie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},vie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return wie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketPolicyCommand=vie;var wie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},xie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return kie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketReplicationCommand=xie;var kie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Aie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Oie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketRequestPaymentCommand=Aie;var Oie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Nie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Iie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketTaggingCommand=Nie;var Iie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Rie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketVersioningCommand=Rie;var Tie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Bie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketWebsiteCommand=Bie;var qie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Die=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mie(e,n);let t=(0,d.map)({$metadata:I(e),Expiration:[,e.headers["x-amz-expiration"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectCommand=Die;var Mie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Fie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectAclCommand=Fie;var Lie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await gm(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},jie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectLegalHoldCommand=jie;var zie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Uie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectLockConfigurationCommand=Uie;var Gie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Hie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return $ie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectRetentionCommand=Hie;var $ie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Kie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vie(e,n);let t=(0,d.map)({$metadata:I(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectTaggingCommand=Kie;var Vie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Xie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Wie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutPublicAccessBlockCommand=Xie;var Wie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},Yie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Jie(e,n);let t=(0,d.map)({$metadata:I(e),RequestCharged:[,e.headers["x-amz-request-charged"]],RestoreOutputPath:[,e.headers["x-amz-restore-output-path"]]});return await(0,d.collectBody)(e.body,n),t};p.de_RestoreObjectCommand=Yie;var Jie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body);switch(r){case"ObjectAlreadyInActiveTierError":case"com.amazonaws.s3#ObjectAlreadyInActiveTierError":throw await lae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Qie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zie(e,n);let t=(0,d.map)({$metadata:I(e)}),r=e.body;return t.Payload=mae(r,n),t};p.de_SelectObjectContentCommand=Qie;var Zie=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},eae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return tae(e,n);let t=(0,d.map)({$metadata:I(e),ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_UploadPartCommand=eae;var tae=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},nae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return rae(e,n);let t=(0,d.map)({$metadata:I(e),CopySourceVersionId:[,e.headers["x-amz-copy-source-version-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectObject)(await Q(e.body,n));return t.CopyPartResult=wde(r,n),t};p.de_UploadPartCopyCommand=nae;var rae=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},oae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return sae(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_WriteGetObjectResponseCommand=oae;var sae=async(e,n)=>{let t={...e,body:await M(e.body,n)},r=F(e,t.body),o=t.body;return D({output:e,parsedBody:o,errorCode:r})},D=(0,d.withBaseException)(Yte.S3ServiceException),iae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.BucketAlreadyExists({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},aae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.BucketAlreadyOwnedByYou({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},cae=async(e,n)=>{let t=(0,d.map)({}),r=e.body;r.AccessTier!==void 0&&(t.AccessTier=(0,d.expectString)(r.AccessTier)),r.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(r.StorageClass));let o=new St.InvalidObjectState({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},Uq=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NoSuchBucket({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},gm=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NoSuchKey({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},dae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NoSuchUpload({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},Gq=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.NotFound({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},lae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new Wte.ObjectAlreadyInActiveTierError({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},uae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new St.ObjectNotInActiveTierError({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},mae=(e,n)=>n.eventStreamMarshaller.deserialize(e,async t=>t.Records!=null?{Records:await gae(t.Records,n)}:t.Stats!=null?{Stats:await hae(t.Stats,n)}:t.Progress!=null?{Progress:await yae(t.Progress,n)}:t.Cont!=null?{Cont:await pae(t.Cont,n)}:t.End!=null?{End:await fae(t.End,n)}:{$unknown:e}),pae=async(e,n)=>{let t={},r=await Q(e.body,n);return Object.assign(t,Pde(r,n)),t},fae=async(e,n)=>{let t={},r=await Q(e.body,n);return Object.assign(t,Dde(r,n)),t},yae=async(e,n)=>{let t={},r=await Q(e.body,n);return t.Details=Dle(r,n),t},gae=async(e,n)=>{let t={};return t.Payload=e.body,t},hae=async(e,n)=>{let t={},r=await Q(e.body,n);return t.Details=iue(r,n),t},_ae=(e,n)=>{let t=new f.XmlNode("AbortIncompleteMultipartUpload");if(e.DaysAfterInitiation!=null){let r=f.XmlNode.of("DaysAfterInitiation",String(e.DaysAfterInitiation)).withName("DaysAfterInitiation");t.addChildNode(r)}return t},Cq=(e,n)=>{let t=new f.XmlNode("AccelerateConfiguration");if(e.Status!=null){let r=f.XmlNode.of("BucketAccelerateStatus",e.Status).withName("Status");t.addChildNode(r)}return t},ym=(e,n)=>{let t=new f.XmlNode("AccessControlPolicy");if(e.Grants!=null){let r=$q(e.Grants,n),o=new f.XmlNode("AccessControlList");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Owner!=null){let r=Pce(e.Owner,n).withName("Owner");t.addChildNode(r)}return t},Cae=(e,n)=>{let t=new f.XmlNode("AccessControlTranslation");if(e.Owner!=null){let r=f.XmlNode.of("OwnerOverride",e.Owner).withName("Owner");t.addChildNode(r)}return t},Sae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedHeader",t).withName("member")),bae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedMethod",t).withName("member")),Eae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedOrigin",t).withName("member")),Pae=(e,n)=>{let t=new f.XmlNode("AnalyticsAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},Sq=(e,n)=>{let t=new f.XmlNode("AnalyticsConfiguration");if(e.Id!=null){let r=f.XmlNode.of("AnalyticsId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=wae(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.StorageClassAnalysis!=null){let r=Jce(e.StorageClassAnalysis,n).withName("StorageClassAnalysis");t.addChildNode(r)}return t},vae=(e,n)=>{let t=new f.XmlNode("AnalyticsExportDestination");if(e.S3BucketDestination!=null){let r=xae(e.S3BucketDestination,n).withName("S3BucketDestination");t.addChildNode(r)}return t},wae=(e,n)=>{let t=new f.XmlNode("AnalyticsFilter");return St.AnalyticsFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},And:r=>{let o=Pae(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},xae=(e,n)=>{let t=new f.XmlNode("AnalyticsS3BucketDestination");if(e.Format!=null){let r=f.XmlNode.of("AnalyticsS3ExportFileFormat",e.Format).withName("Format");t.addChildNode(r)}if(e.BucketAccountId!=null){let r=f.XmlNode.of("AccountId",e.BucketAccountId).withName("BucketAccountId");t.addChildNode(r)}if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return t},bq=(e,n)=>{let t=new f.XmlNode("BucketLifecycleConfiguration");return e.Rules!=null&&lce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},Eq=(e,n)=>{let t=new f.XmlNode("BucketLoggingStatus");if(e.LoggingEnabled!=null){let r=uce(e.LoggingEnabled,n).withName("LoggingEnabled");t.addChildNode(r)}return t},Pq=(e,n)=>{let t=new f.XmlNode("CompletedMultipartUpload");return e.Parts!=null&&Aae(e.Parts,n).map(o=>{o=o.withName("Part"),t.addChildNode(o)}),t},kae=(e,n)=>{let t=new f.XmlNode("CompletedPart");if(e.ETag!=null){let r=f.XmlNode.of("ETag",e.ETag).withName("ETag");t.addChildNode(r)}if(e.ChecksumCRC32!=null){let r=f.XmlNode.of("ChecksumCRC32",e.ChecksumCRC32).withName("ChecksumCRC32");t.addChildNode(r)}if(e.ChecksumCRC32C!=null){let r=f.XmlNode.of("ChecksumCRC32C",e.ChecksumCRC32C).withName("ChecksumCRC32C");t.addChildNode(r)}if(e.ChecksumSHA1!=null){let r=f.XmlNode.of("ChecksumSHA1",e.ChecksumSHA1).withName("ChecksumSHA1");t.addChildNode(r)}if(e.ChecksumSHA256!=null){let r=f.XmlNode.of("ChecksumSHA256",e.ChecksumSHA256).withName("ChecksumSHA256");t.addChildNode(r)}if(e.PartNumber!=null){let r=f.XmlNode.of("PartNumber",String(e.PartNumber)).withName("PartNumber");t.addChildNode(r)}return t},Aae=(e,n)=>e.filter(t=>t!=null).map(t=>kae(t,n).withName("member")),Oae=(e,n)=>{let t=new f.XmlNode("Condition");if(e.HttpErrorCodeReturnedEquals!=null){let r=f.XmlNode.of("HttpErrorCodeReturnedEquals",e.HttpErrorCodeReturnedEquals).withName("HttpErrorCodeReturnedEquals");t.addChildNode(r)}if(e.KeyPrefixEquals!=null){let r=f.XmlNode.of("KeyPrefixEquals",e.KeyPrefixEquals).withName("KeyPrefixEquals");t.addChildNode(r)}return t},vq=(e,n)=>{let t=new f.XmlNode("CORSConfiguration");return e.CORSRules!=null&&Iae(e.CORSRules,n).map(o=>{o=o.withName("CORSRule"),t.addChildNode(o)}),t},Nae=(e,n)=>{let t=new f.XmlNode("CORSRule");if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.AllowedHeaders!=null&&Sae(e.AllowedHeaders,n).map(o=>{o=o.withName("AllowedHeader"),t.addChildNode(o)}),e.AllowedMethods!=null&&bae(e.AllowedMethods,n).map(o=>{o=o.withName("AllowedMethod"),t.addChildNode(o)}),e.AllowedOrigins!=null&&Eae(e.AllowedOrigins,n).map(o=>{o=o.withName("AllowedOrigin"),t.addChildNode(o)}),e.ExposeHeaders!=null&&Uae(e.ExposeHeaders,n).map(o=>{o=o.withName("ExposeHeader"),t.addChildNode(o)}),e.MaxAgeSeconds!=null){let r=f.XmlNode.of("MaxAgeSeconds",String(e.MaxAgeSeconds)).withName("MaxAgeSeconds");t.addChildNode(r)}return t},Iae=(e,n)=>e.filter(t=>t!=null).map(t=>Nae(t,n).withName("member")),wq=(e,n)=>{let t=new f.XmlNode("CreateBucketConfiguration");if(e.LocationConstraint!=null){let r=f.XmlNode.of("BucketLocationConstraint",e.LocationConstraint).withName("LocationConstraint");t.addChildNode(r)}return t},Rae=(e,n)=>{let t=new f.XmlNode("CSVInput");if(e.FileHeaderInfo!=null){let r=f.XmlNode.of("FileHeaderInfo",e.FileHeaderInfo).withName("FileHeaderInfo");t.addChildNode(r)}if(e.Comments!=null){let r=f.XmlNode.of("Comments",e.Comments).withName("Comments");t.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=f.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");t.addChildNode(r)}if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}if(e.FieldDelimiter!=null){let r=f.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");t.addChildNode(r)}if(e.QuoteCharacter!=null){let r=f.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");t.addChildNode(r)}if(e.AllowQuotedRecordDelimiter!=null){let r=f.XmlNode.of("AllowQuotedRecordDelimiter",String(e.AllowQuotedRecordDelimiter)).withName("AllowQuotedRecordDelimiter");t.addChildNode(r)}return t},Tae=(e,n)=>{let t=new f.XmlNode("CSVOutput");if(e.QuoteFields!=null){let r=f.XmlNode.of("QuoteFields",e.QuoteFields).withName("QuoteFields");t.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=f.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");t.addChildNode(r)}if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}if(e.FieldDelimiter!=null){let r=f.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");t.addChildNode(r)}if(e.QuoteCharacter!=null){let r=f.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");t.addChildNode(r)}return t},Bae=(e,n)=>{let t=new f.XmlNode("DefaultRetention");if(e.Mode!=null){let r=f.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");t.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.Years!=null){let r=f.XmlNode.of("Years",String(e.Years)).withName("Years");t.addChildNode(r)}return t},xq=(e,n)=>{let t=new f.XmlNode("Delete");if(e.Objects!=null&&Sce(e.Objects,n).map(o=>{o=o.withName("Object"),t.addChildNode(o)}),e.Quiet!=null){let r=f.XmlNode.of("Quiet",String(e.Quiet)).withName("Quiet");t.addChildNode(r)}return t},qae=(e,n)=>{let t=new f.XmlNode("DeleteMarkerReplication");if(e.Status!=null){let r=f.XmlNode.of("DeleteMarkerReplicationStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Dae=(e,n)=>{let t=new f.XmlNode("Destination");if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Account!=null){let r=f.XmlNode.of("AccountId",e.Account).withName("Account");t.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}if(e.AccessControlTranslation!=null){let r=Cae(e.AccessControlTranslation,n).withName("AccessControlTranslation");t.addChildNode(r)}if(e.EncryptionConfiguration!=null){let r=Fae(e.EncryptionConfiguration,n).withName("EncryptionConfiguration");t.addChildNode(r)}if(e.ReplicationTime!=null){let r=Dce(e.ReplicationTime,n).withName("ReplicationTime");t.addChildNode(r)}if(e.Metrics!=null){let r=pce(e.Metrics,n).withName("Metrics");t.addChildNode(r)}return t},Mae=(e,n)=>{let t=new f.XmlNode("Encryption");if(e.EncryptionType!=null){let r=f.XmlNode.of("ServerSideEncryption",e.EncryptionType).withName("EncryptionType");t.addChildNode(r)}if(e.KMSKeyId!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KMSKeyId).withName("KMSKeyId");t.addChildNode(r)}if(e.KMSContext!=null){let r=f.XmlNode.of("KMSContext",e.KMSContext).withName("KMSContext");t.addChildNode(r)}return t},Fae=(e,n)=>{let t=new f.XmlNode("EncryptionConfiguration");if(e.ReplicaKmsKeyID!=null){let r=f.XmlNode.of("ReplicaKmsKeyID",e.ReplicaKmsKeyID).withName("ReplicaKmsKeyID");t.addChildNode(r)}return t},Lae=(e,n)=>{let t=new f.XmlNode("ErrorDocument");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}return t},jae=(e,n)=>new f.XmlNode("EventBridgeConfiguration"),oh=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("Event",t).withName("member")),zae=(e,n)=>{let t=new f.XmlNode("ExistingObjectReplication");if(e.Status!=null){let r=f.XmlNode.of("ExistingObjectReplicationStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Uae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("ExposeHeader",t).withName("member")),Gae=(e,n)=>{let t=new f.XmlNode("FilterRule");if(e.Name!=null){let r=f.XmlNode.of("FilterRuleName",e.Name).withName("Name");t.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("FilterRuleValue",e.Value).withName("Value");t.addChildNode(r)}return t},Hae=(e,n)=>e.filter(t=>t!=null).map(t=>Gae(t,n).withName("member")),$ae=(e,n)=>{let t=new f.XmlNode("GlacierJobParameters");if(e.Tier!=null){let r=f.XmlNode.of("Tier",e.Tier).withName("Tier");t.addChildNode(r)}return t},Kae=(e,n)=>{let t=new f.XmlNode("Grant");if(e.Grantee!=null){let r=Hq(e.Grantee,n).withName("Grantee");r.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),t.addChildNode(r)}if(e.Permission!=null){let r=f.XmlNode.of("Permission",e.Permission).withName("Permission");t.addChildNode(r)}return t},Hq=(e,n)=>{let t=new f.XmlNode("Grantee");if(e.DisplayName!=null){let r=f.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");t.addChildNode(r)}if(e.EmailAddress!=null){let r=f.XmlNode.of("EmailAddress",e.EmailAddress).withName("EmailAddress");t.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.URI!=null){let r=f.XmlNode.of("URI",e.URI).withName("URI");t.addChildNode(r)}return e.Type!=null&&t.addAttribute("xsi:type",e.Type),t},$q=(e,n)=>e.filter(t=>t!=null).map(t=>Kae(t,n).withName("Grant")),Vae=(e,n)=>{let t=new f.XmlNode("IndexDocument");if(e.Suffix!=null){let r=f.XmlNode.of("Suffix",e.Suffix).withName("Suffix");t.addChildNode(r)}return t},Kq=(e,n)=>{let t=new f.XmlNode("InputSerialization");if(e.CSV!=null){let r=Rae(e.CSV,n).withName("CSV");t.addChildNode(r)}if(e.CompressionType!=null){let r=f.XmlNode.of("CompressionType",e.CompressionType).withName("CompressionType");t.addChildNode(r)}if(e.JSON!=null){let r=nce(e.JSON,n).withName("JSON");t.addChildNode(r)}if(e.Parquet!=null){let r=xce(e.Parquet,n).withName("Parquet");t.addChildNode(r)}return t},Xae=(e,n)=>{let t=new f.XmlNode("IntelligentTieringAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},kq=(e,n)=>{let t=new f.XmlNode("IntelligentTieringConfiguration");if(e.Id!=null){let r=f.XmlNode.of("IntelligentTieringId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=Wae(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("IntelligentTieringStatus",e.Status).withName("Status");t.addChildNode(r)}return e.Tierings!=null&&nde(e.Tierings,n).map(o=>{o=o.withName("Tiering"),t.addChildNode(o)}),t},Wae=(e,n)=>{let t=new f.XmlNode("IntelligentTieringFilter");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tag!=null){let r=Ao(e.Tag,n).withName("Tag");t.addChildNode(r)}if(e.And!=null){let r=Xae(e.And,n).withName("And");t.addChildNode(r)}return t},Aq=(e,n)=>{let t=new f.XmlNode("InventoryConfiguration");if(e.Destination!=null){let r=Yae(e.Destination,n).withName("Destination");t.addChildNode(r)}if(e.IsEnabled!=null){let r=f.XmlNode.of("IsEnabled",String(e.IsEnabled)).withName("IsEnabled");t.addChildNode(r)}if(e.Filter!=null){let r=Qae(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Id!=null){let r=f.XmlNode.of("InventoryId",e.Id).withName("Id");t.addChildNode(r)}if(e.IncludedObjectVersions!=null){let r=f.XmlNode.of("InventoryIncludedObjectVersions",e.IncludedObjectVersions).withName("IncludedObjectVersions");t.addChildNode(r)}if(e.OptionalFields!=null){let r=Zae(e.OptionalFields,n),o=new f.XmlNode("OptionalFields");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Schedule!=null){let r=tce(e.Schedule,n).withName("Schedule");t.addChildNode(r)}return t},Yae=(e,n)=>{let t=new f.XmlNode("InventoryDestination");if(e.S3BucketDestination!=null){let r=ece(e.S3BucketDestination,n).withName("S3BucketDestination");t.addChildNode(r)}return t},Jae=(e,n)=>{let t=new f.XmlNode("InventoryEncryption");if(e.SSES3!=null){let r=Yce(e.SSES3,n).withName("SSE-S3");t.addChildNode(r)}if(e.SSEKMS!=null){let r=Xce(e.SSEKMS,n).withName("SSE-KMS");t.addChildNode(r)}return t},Qae=(e,n)=>{let t=new f.XmlNode("InventoryFilter");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return t},Zae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("InventoryOptionalField",t).withName("Field")),ece=(e,n)=>{let t=new f.XmlNode("InventoryS3BucketDestination");if(e.AccountId!=null){let r=f.XmlNode.of("AccountId",e.AccountId).withName("AccountId");t.addChildNode(r)}if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Format!=null){let r=f.XmlNode.of("InventoryFormat",e.Format).withName("Format");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Encryption!=null){let r=Jae(e.Encryption,n).withName("Encryption");t.addChildNode(r)}return t},tce=(e,n)=>{let t=new f.XmlNode("InventorySchedule");if(e.Frequency!=null){let r=f.XmlNode.of("InventoryFrequency",e.Frequency).withName("Frequency");t.addChildNode(r)}return t},nce=(e,n)=>{let t=new f.XmlNode("JSONInput");if(e.Type!=null){let r=f.XmlNode.of("JSONType",e.Type).withName("Type");t.addChildNode(r)}return t},rce=(e,n)=>{let t=new f.XmlNode("JSONOutput");if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}return t},oce=(e,n)=>{let t=new f.XmlNode("LambdaFunctionConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.LambdaFunctionArn!=null){let r=f.XmlNode.of("LambdaFunctionArn",e.LambdaFunctionArn).withName("CloudFunction");t.addChildNode(r)}if(e.Events!=null&&oh(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=sh(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},sce=(e,n)=>e.filter(t=>t!=null).map(t=>oce(t,n).withName("member")),ice=(e,n)=>{let t=new f.XmlNode("LifecycleExpiration");if(e.Date!=null){let r=f.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");t.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.ExpiredObjectDeleteMarker!=null){let r=f.XmlNode.of("ExpiredObjectDeleteMarker",String(e.ExpiredObjectDeleteMarker)).withName("ExpiredObjectDeleteMarker");t.addChildNode(r)}return t},ace=(e,n)=>{let t=new f.XmlNode("LifecycleRule");if(e.Expiration!=null){let r=ice(e.Expiration,n).withName("Expiration");t.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Filter!=null){let r=dce(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("ExpirationStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.Transitions!=null&&ide(e.Transitions,n).map(o=>{o=o.withName("Transition"),t.addChildNode(o)}),e.NoncurrentVersionTransitions!=null&&_ce(e.NoncurrentVersionTransitions,n).map(o=>{o=o.withName("NoncurrentVersionTransition"),t.addChildNode(o)}),e.NoncurrentVersionExpiration!=null){let r=gce(e.NoncurrentVersionExpiration,n).withName("NoncurrentVersionExpiration");t.addChildNode(r)}if(e.AbortIncompleteMultipartUpload!=null){let r=_ae(e.AbortIncompleteMultipartUpload,n).withName("AbortIncompleteMultipartUpload");t.addChildNode(r)}return t},cce=(e,n)=>{let t=new f.XmlNode("LifecycleRuleAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),e.ObjectSizeGreaterThan!=null){let r=f.XmlNode.of("ObjectSizeGreaterThanBytes",String(e.ObjectSizeGreaterThan)).withName("ObjectSizeGreaterThan");t.addChildNode(r)}if(e.ObjectSizeLessThan!=null){let r=f.XmlNode.of("ObjectSizeLessThanBytes",String(e.ObjectSizeLessThan)).withName("ObjectSizeLessThan");t.addChildNode(r)}return t},dce=(e,n)=>{let t=new f.XmlNode("LifecycleRuleFilter");return St.LifecycleRuleFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},ObjectSizeGreaterThan:r=>{let o=f.XmlNode.of("ObjectSizeGreaterThanBytes",String(r)).withName("ObjectSizeGreaterThan");t.addChildNode(o)},ObjectSizeLessThan:r=>{let o=f.XmlNode.of("ObjectSizeLessThanBytes",String(r)).withName("ObjectSizeLessThan");t.addChildNode(o)},And:r=>{let o=cce(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},lce=(e,n)=>e.filter(t=>t!=null).map(t=>ace(t,n).withName("member")),uce=(e,n)=>{let t=new f.XmlNode("LoggingEnabled");if(e.TargetBucket!=null){let r=f.XmlNode.of("TargetBucket",e.TargetBucket).withName("TargetBucket");t.addChildNode(r)}if(e.TargetGrants!=null){let r=ede(e.TargetGrants,n),o=new f.XmlNode("TargetGrants");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.TargetPrefix!=null){let r=f.XmlNode.of("TargetPrefix",e.TargetPrefix).withName("TargetPrefix");t.addChildNode(r)}return t},mce=(e,n)=>{let t=new f.XmlNode("MetadataEntry");if(e.Name!=null){let r=f.XmlNode.of("MetadataKey",e.Name).withName("Name");t.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("MetadataValue",e.Value).withName("Value");t.addChildNode(r)}return t},pce=(e,n)=>{let t=new f.XmlNode("Metrics");if(e.Status!=null){let r=f.XmlNode.of("MetricsStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.EventThreshold!=null){let r=Xq(e.EventThreshold,n).withName("EventThreshold");t.addChildNode(r)}return t},fce=(e,n)=>{let t=new f.XmlNode("MetricsAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),e.AccessPointArn!=null){let r=f.XmlNode.of("AccessPointArn",e.AccessPointArn).withName("AccessPointArn");t.addChildNode(r)}return t},Oq=(e,n)=>{let t=new f.XmlNode("MetricsConfiguration");if(e.Id!=null){let r=f.XmlNode.of("MetricsId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=yce(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},yce=(e,n)=>{let t=new f.XmlNode("MetricsFilter");return St.MetricsFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},AccessPointArn:r=>{let o=f.XmlNode.of("AccessPointArn",r).withName("AccessPointArn");t.addChildNode(o)},And:r=>{let o=fce(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},gce=(e,n)=>{let t=new f.XmlNode("NoncurrentVersionExpiration");if(e.NoncurrentDays!=null){let r=f.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");t.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=f.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");t.addChildNode(r)}return t},hce=(e,n)=>{let t=new f.XmlNode("NoncurrentVersionTransition");if(e.NoncurrentDays!=null){let r=f.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");t.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=f.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");t.addChildNode(r)}return t},_ce=(e,n)=>e.filter(t=>t!=null).map(t=>hce(t,n).withName("member")),Nq=(e,n)=>{let t=new f.XmlNode("NotificationConfiguration");if(e.TopicConfigurations!=null&&ode(e.TopicConfigurations,n).map(o=>{o=o.withName("TopicConfiguration"),t.addChildNode(o)}),e.QueueConfigurations!=null&&Ace(e.QueueConfigurations,n).map(o=>{o=o.withName("QueueConfiguration"),t.addChildNode(o)}),e.LambdaFunctionConfigurations!=null&&sce(e.LambdaFunctionConfigurations,n).map(o=>{o=o.withName("CloudFunctionConfiguration"),t.addChildNode(o)}),e.EventBridgeConfiguration!=null){let r=jae(e.EventBridgeConfiguration,n).withName("EventBridgeConfiguration");t.addChildNode(r)}return t},sh=(e,n)=>{let t=new f.XmlNode("NotificationConfigurationFilter");if(e.Key!=null){let r=jce(e.Key,n).withName("S3Key");t.addChildNode(r)}return t},Cce=(e,n)=>{let t=new f.XmlNode("ObjectIdentifier");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}if(e.VersionId!=null){let r=f.XmlNode.of("ObjectVersionId",e.VersionId).withName("VersionId");t.addChildNode(r)}return t},Sce=(e,n)=>e.filter(t=>t!=null).map(t=>Cce(t,n).withName("member")),Iq=(e,n)=>{let t=new f.XmlNode("ObjectLockConfiguration");if(e.ObjectLockEnabled!=null){let r=f.XmlNode.of("ObjectLockEnabled",e.ObjectLockEnabled).withName("ObjectLockEnabled");t.addChildNode(r)}if(e.Rule!=null){let r=bce(e.Rule,n).withName("Rule");t.addChildNode(r)}return t},Rq=(e,n)=>{let t=new f.XmlNode("ObjectLockLegalHold");if(e.Status!=null){let r=f.XmlNode.of("ObjectLockLegalHoldStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Tq=(e,n)=>{let t=new f.XmlNode("ObjectLockRetention");if(e.Mode!=null){let r=f.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");t.addChildNode(r)}if(e.RetainUntilDate!=null){let r=f.XmlNode.of("Date",(e.RetainUntilDate.toISOString().split(".")[0]+"Z").toString()).withName("RetainUntilDate");t.addChildNode(r)}return t},bce=(e,n)=>{let t=new f.XmlNode("ObjectLockRule");if(e.DefaultRetention!=null){let r=Bae(e.DefaultRetention,n).withName("DefaultRetention");t.addChildNode(r)}return t},Ece=(e,n)=>{let t=new f.XmlNode("OutputLocation");if(e.S3!=null){let r=zce(e.S3,n).withName("S3");t.addChildNode(r)}return t},Vq=(e,n)=>{let t=new f.XmlNode("OutputSerialization");if(e.CSV!=null){let r=Tae(e.CSV,n).withName("CSV");t.addChildNode(r)}if(e.JSON!=null){let r=rce(e.JSON,n).withName("JSON");t.addChildNode(r)}return t},Pce=(e,n)=>{let t=new f.XmlNode("Owner");if(e.DisplayName!=null){let r=f.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");t.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}return t},Bq=(e,n)=>{let t=new f.XmlNode("OwnershipControls");return e.Rules!=null&&wce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},vce=(e,n)=>{let t=new f.XmlNode("OwnershipControlsRule");if(e.ObjectOwnership!=null){let r=f.XmlNode.of("ObjectOwnership",e.ObjectOwnership).withName("ObjectOwnership");t.addChildNode(r)}return t},wce=(e,n)=>e.filter(t=>t!=null).map(t=>vce(t,n).withName("member")),xce=(e,n)=>new f.XmlNode("ParquetInput"),qq=(e,n)=>{let t=new f.XmlNode("PublicAccessBlockConfiguration");if(e.BlockPublicAcls!=null){let r=f.XmlNode.of("Setting",String(e.BlockPublicAcls)).withName("BlockPublicAcls");t.addChildNode(r)}if(e.IgnorePublicAcls!=null){let r=f.XmlNode.of("Setting",String(e.IgnorePublicAcls)).withName("IgnorePublicAcls");t.addChildNode(r)}if(e.BlockPublicPolicy!=null){let r=f.XmlNode.of("Setting",String(e.BlockPublicPolicy)).withName("BlockPublicPolicy");t.addChildNode(r)}if(e.RestrictPublicBuckets!=null){let r=f.XmlNode.of("Setting",String(e.RestrictPublicBuckets)).withName("RestrictPublicBuckets");t.addChildNode(r)}return t},kce=(e,n)=>{let t=new f.XmlNode("QueueConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.QueueArn!=null){let r=f.XmlNode.of("QueueArn",e.QueueArn).withName("Queue");t.addChildNode(r)}if(e.Events!=null&&oh(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=sh(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},Ace=(e,n)=>e.filter(t=>t!=null).map(t=>kce(t,n).withName("member")),Oce=(e,n)=>{let t=new f.XmlNode("Redirect");if(e.HostName!=null){let r=f.XmlNode.of("HostName",e.HostName).withName("HostName");t.addChildNode(r)}if(e.HttpRedirectCode!=null){let r=f.XmlNode.of("HttpRedirectCode",e.HttpRedirectCode).withName("HttpRedirectCode");t.addChildNode(r)}if(e.Protocol!=null){let r=f.XmlNode.of("Protocol",e.Protocol).withName("Protocol");t.addChildNode(r)}if(e.ReplaceKeyPrefixWith!=null){let r=f.XmlNode.of("ReplaceKeyPrefixWith",e.ReplaceKeyPrefixWith).withName("ReplaceKeyPrefixWith");t.addChildNode(r)}if(e.ReplaceKeyWith!=null){let r=f.XmlNode.of("ReplaceKeyWith",e.ReplaceKeyWith).withName("ReplaceKeyWith");t.addChildNode(r)}return t},Nce=(e,n)=>{let t=new f.XmlNode("RedirectAllRequestsTo");if(e.HostName!=null){let r=f.XmlNode.of("HostName",e.HostName).withName("HostName");t.addChildNode(r)}if(e.Protocol!=null){let r=f.XmlNode.of("Protocol",e.Protocol).withName("Protocol");t.addChildNode(r)}return t},Ice=(e,n)=>{let t=new f.XmlNode("ReplicaModifications");if(e.Status!=null){let r=f.XmlNode.of("ReplicaModificationsStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Dq=(e,n)=>{let t=new f.XmlNode("ReplicationConfiguration");if(e.Role!=null){let r=f.XmlNode.of("Role",e.Role).withName("Role");t.addChildNode(r)}return e.Rules!=null&&qce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},Rce=(e,n)=>{let t=new f.XmlNode("ReplicationRule");if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.Priority!=null){let r=f.XmlNode.of("Priority",String(e.Priority)).withName("Priority");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Filter!=null){let r=Bce(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("ReplicationRuleStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.SourceSelectionCriteria!=null){let r=Vce(e.SourceSelectionCriteria,n).withName("SourceSelectionCriteria");t.addChildNode(r)}if(e.ExistingObjectReplication!=null){let r=zae(e.ExistingObjectReplication,n).withName("ExistingObjectReplication");t.addChildNode(r)}if(e.Destination!=null){let r=Dae(e.Destination,n).withName("Destination");t.addChildNode(r)}if(e.DeleteMarkerReplication!=null){let r=qae(e.DeleteMarkerReplication,n).withName("DeleteMarkerReplication");t.addChildNode(r)}return t},Tce=(e,n)=>{let t=new f.XmlNode("ReplicationRuleAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&Oo(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},Bce=(e,n)=>{let t=new f.XmlNode("ReplicationRuleFilter");return St.ReplicationRuleFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Ao(r,n).withName("Tag");t.addChildNode(o)},And:r=>{let o=Tce(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},qce=(e,n)=>e.filter(t=>t!=null).map(t=>Rce(t,n).withName("member")),Dce=(e,n)=>{let t=new f.XmlNode("ReplicationTime");if(e.Status!=null){let r=f.XmlNode.of("ReplicationTimeStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.Time!=null){let r=Xq(e.Time,n).withName("Time");t.addChildNode(r)}return t},Xq=(e,n)=>{let t=new f.XmlNode("ReplicationTimeValue");if(e.Minutes!=null){let r=f.XmlNode.of("Minutes",String(e.Minutes)).withName("Minutes");t.addChildNode(r)}return t},Mq=(e,n)=>{let t=new f.XmlNode("RequestPaymentConfiguration");if(e.Payer!=null){let r=f.XmlNode.of("Payer",e.Payer).withName("Payer");t.addChildNode(r)}return t},Mce=(e,n)=>{let t=new f.XmlNode("RequestProgress");if(e.Enabled!=null){let r=f.XmlNode.of("EnableRequestProgress",String(e.Enabled)).withName("Enabled");t.addChildNode(r)}return t},Fq=(e,n)=>{let t=new f.XmlNode("RestoreRequest");if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.GlacierJobParameters!=null){let r=$ae(e.GlacierJobParameters,n).withName("GlacierJobParameters");t.addChildNode(r)}if(e.Type!=null){let r=f.XmlNode.of("RestoreRequestType",e.Type).withName("Type");t.addChildNode(r)}if(e.Tier!=null){let r=f.XmlNode.of("Tier",e.Tier).withName("Tier");t.addChildNode(r)}if(e.Description!=null){let r=f.XmlNode.of("Description",e.Description).withName("Description");t.addChildNode(r)}if(e.SelectParameters!=null){let r=Gce(e.SelectParameters,n).withName("SelectParameters");t.addChildNode(r)}if(e.OutputLocation!=null){let r=Ece(e.OutputLocation,n).withName("OutputLocation");t.addChildNode(r)}return t},Fce=(e,n)=>{let t=new f.XmlNode("RoutingRule");if(e.Condition!=null){let r=Oae(e.Condition,n).withName("Condition");t.addChildNode(r)}if(e.Redirect!=null){let r=Oce(e.Redirect,n).withName("Redirect");t.addChildNode(r)}return t},Lce=(e,n)=>e.filter(t=>t!=null).map(t=>Fce(t,n).withName("RoutingRule")),jce=(e,n)=>{let t=new f.XmlNode("S3KeyFilter");return e.FilterRules!=null&&Hae(e.FilterRules,n).map(o=>{o=o.withName("FilterRule"),t.addChildNode(o)}),t},zce=(e,n)=>{let t=new f.XmlNode("S3Location");if(e.BucketName!=null){let r=f.XmlNode.of("BucketName",e.BucketName).withName("BucketName");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("LocationPrefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Encryption!=null){let r=Mae(e.Encryption,n).withName("Encryption");t.addChildNode(r)}if(e.CannedACL!=null){let r=f.XmlNode.of("ObjectCannedACL",e.CannedACL).withName("CannedACL");t.addChildNode(r)}if(e.AccessControlList!=null){let r=$q(e.AccessControlList,n),o=new f.XmlNode("AccessControlList");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Tagging!=null){let r=ja(e.Tagging,n).withName("Tagging");t.addChildNode(r)}if(e.UserMetadata!=null){let r=ade(e.UserMetadata,n),o=new f.XmlNode("UserMetadata");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.StorageClass!=null){let r=f.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}return t},Uce=(e,n)=>{let t=new f.XmlNode("ScanRange");if(e.Start!=null){let r=f.XmlNode.of("Start",String(e.Start)).withName("Start");t.addChildNode(r)}if(e.End!=null){let r=f.XmlNode.of("End",String(e.End)).withName("End");t.addChildNode(r)}return t},Gce=(e,n)=>{let t=new f.XmlNode("SelectParameters");if(e.InputSerialization!=null){let r=Kq(e.InputSerialization,n).withName("InputSerialization");t.addChildNode(r)}if(e.ExpressionType!=null){let r=f.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");t.addChildNode(r)}if(e.Expression!=null){let r=f.XmlNode.of("Expression",e.Expression).withName("Expression");t.addChildNode(r)}if(e.OutputSerialization!=null){let r=Vq(e.OutputSerialization,n).withName("OutputSerialization");t.addChildNode(r)}return t},Hce=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionByDefault");if(e.SSEAlgorithm!=null){let r=f.XmlNode.of("ServerSideEncryption",e.SSEAlgorithm).withName("SSEAlgorithm");t.addChildNode(r)}if(e.KMSMasterKeyID!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KMSMasterKeyID).withName("KMSMasterKeyID");t.addChildNode(r)}return t},Lq=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionConfiguration");return e.Rules!=null&&Kce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},$ce=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionRule");if(e.ApplyServerSideEncryptionByDefault!=null){let r=Hce(e.ApplyServerSideEncryptionByDefault,n).withName("ApplyServerSideEncryptionByDefault");t.addChildNode(r)}if(e.BucketKeyEnabled!=null){let r=f.XmlNode.of("BucketKeyEnabled",String(e.BucketKeyEnabled)).withName("BucketKeyEnabled");t.addChildNode(r)}return t},Kce=(e,n)=>e.filter(t=>t!=null).map(t=>$ce(t,n).withName("member")),Vce=(e,n)=>{let t=new f.XmlNode("SourceSelectionCriteria");if(e.SseKmsEncryptedObjects!=null){let r=Wce(e.SseKmsEncryptedObjects,n).withName("SseKmsEncryptedObjects");t.addChildNode(r)}if(e.ReplicaModifications!=null){let r=Ice(e.ReplicaModifications,n).withName("ReplicaModifications");t.addChildNode(r)}return t},Xce=(e,n)=>{let t=new f.XmlNode("SSE-KMS");if(e.KeyId!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KeyId).withName("KeyId");t.addChildNode(r)}return t},Wce=(e,n)=>{let t=new f.XmlNode("SseKmsEncryptedObjects");if(e.Status!=null){let r=f.XmlNode.of("SseKmsEncryptedObjectsStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Yce=(e,n)=>new f.XmlNode("SSE-S3"),Jce=(e,n)=>{let t=new f.XmlNode("StorageClassAnalysis");if(e.DataExport!=null){let r=Qce(e.DataExport,n).withName("DataExport");t.addChildNode(r)}return t},Qce=(e,n)=>{let t=new f.XmlNode("StorageClassAnalysisDataExport");if(e.OutputSchemaVersion!=null){let r=f.XmlNode.of("StorageClassAnalysisSchemaVersion",e.OutputSchemaVersion).withName("OutputSchemaVersion");t.addChildNode(r)}if(e.Destination!=null){let r=vae(e.Destination,n).withName("Destination");t.addChildNode(r)}return t},Ao=(e,n)=>{let t=new f.XmlNode("Tag");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("Value",e.Value).withName("Value");t.addChildNode(r)}return t},ja=(e,n)=>{let t=new f.XmlNode("Tagging");if(e.TagSet!=null){let r=Oo(e.TagSet,n),o=new f.XmlNode("TagSet");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}return t},Oo=(e,n)=>e.filter(t=>t!=null).map(t=>Ao(t,n).withName("Tag")),Zce=(e,n)=>{let t=new f.XmlNode("TargetGrant");if(e.Grantee!=null){let r=Hq(e.Grantee,n).withName("Grantee");r.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),t.addChildNode(r)}if(e.Permission!=null){let r=f.XmlNode.of("BucketLogsPermission",e.Permission).withName("Permission");t.addChildNode(r)}return t},ede=(e,n)=>e.filter(t=>t!=null).map(t=>Zce(t,n).withName("Grant")),tde=(e,n)=>{let t=new f.XmlNode("Tiering");if(e.Days!=null){let r=f.XmlNode.of("IntelligentTieringDays",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.AccessTier!=null){let r=f.XmlNode.of("IntelligentTieringAccessTier",e.AccessTier).withName("AccessTier");t.addChildNode(r)}return t},nde=(e,n)=>e.filter(t=>t!=null).map(t=>tde(t,n).withName("member")),rde=(e,n)=>{let t=new f.XmlNode("TopicConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.TopicArn!=null){let r=f.XmlNode.of("TopicArn",e.TopicArn).withName("Topic");t.addChildNode(r)}if(e.Events!=null&&oh(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=sh(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},ode=(e,n)=>e.filter(t=>t!=null).map(t=>rde(t,n).withName("member")),sde=(e,n)=>{let t=new f.XmlNode("Transition");if(e.Date!=null){let r=f.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");t.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}return t},ide=(e,n)=>e.filter(t=>t!=null).map(t=>sde(t,n).withName("member")),ade=(e,n)=>e.filter(t=>t!=null).map(t=>mce(t,n).withName("MetadataEntry")),jq=(e,n)=>{let t=new f.XmlNode("VersioningConfiguration");if(e.MFADelete!=null){let r=f.XmlNode.of("MFADelete",e.MFADelete).withName("MfaDelete");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("BucketVersioningStatus",e.Status).withName("Status");t.addChildNode(r)}return t},zq=(e,n)=>{let t=new f.XmlNode("WebsiteConfiguration");if(e.ErrorDocument!=null){let r=Lae(e.ErrorDocument,n).withName("ErrorDocument");t.addChildNode(r)}if(e.IndexDocument!=null){let r=Vae(e.IndexDocument,n).withName("IndexDocument");t.addChildNode(r)}if(e.RedirectAllRequestsTo!=null){let r=Nce(e.RedirectAllRequestsTo,n).withName("RedirectAllRequestsTo");t.addChildNode(r)}if(e.RoutingRules!=null){let r=Lce(e.RoutingRules,n),o=new f.XmlNode("RoutingRules");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}return t},cde=(e,n)=>{let t={};return e.DaysAfterInitiation!==void 0&&(t.DaysAfterInitiation=(0,d.strictParseInt32)(e.DaysAfterInitiation)),t},dde=(e,n)=>{let t={};return e.Owner!==void 0&&(t.Owner=(0,d.expectString)(e.Owner)),t},lde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),ude=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),mde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),pde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),t},Wq=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(t.Filter=gde((0,d.expectUnion)(e.Filter),n)),e.StorageClassAnalysis!==void 0&&(t.StorageClassAnalysis=aue(e.StorageClassAnalysis,n)),t},fde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Wq(t,n)),yde=(e,n)=>{let t={};return e.S3BucketDestination!==void 0&&(t.S3BucketDestination=hde(e.S3BucketDestination,n)),t},gde=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.And!==void 0?{And:pde(e.And,n)}:{$unknown:Object.entries(e)[0]},hde=(e,n)=>{let t={};return e.Format!==void 0&&(t.Format=(0,d.expectString)(e.Format)),e.BucketAccountId!==void 0&&(t.BucketAccountId=(0,d.expectString)(e.BucketAccountId)),e.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(e.Bucket)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},_de=(e,n)=>{let t={};return e.Name!==void 0&&(t.Name=(0,d.expectString)(e.Name)),e.CreationDate!==void 0&&(t.CreationDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.CreationDate))),t},Cde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>_de(t,n)),Sde=(e,n)=>{let t={};return e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},Yq=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),bde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},hm=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>bde(t,n)),Ede=(e,n)=>{let t={};return e.HttpErrorCodeReturnedEquals!==void 0&&(t.HttpErrorCodeReturnedEquals=(0,d.expectString)(e.HttpErrorCodeReturnedEquals)),e.KeyPrefixEquals!==void 0&&(t.KeyPrefixEquals=(0,d.expectString)(e.KeyPrefixEquals)),t},Pde=(e,n)=>({}),vde=(e,n)=>{let t={};return e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},wde=(e,n)=>{let t={};return e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},xde=(e,n)=>{let t={};return e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.AllowedHeader===""?t.AllowedHeaders=[]:e.AllowedHeader!==void 0&&(t.AllowedHeaders=lde((0,d.getArrayIfSingleItem)(e.AllowedHeader),n)),e.AllowedMethod===""?t.AllowedMethods=[]:e.AllowedMethod!==void 0&&(t.AllowedMethods=ude((0,d.getArrayIfSingleItem)(e.AllowedMethod),n)),e.AllowedOrigin===""?t.AllowedOrigins=[]:e.AllowedOrigin!==void 0&&(t.AllowedOrigins=mde((0,d.getArrayIfSingleItem)(e.AllowedOrigin),n)),e.ExposeHeader===""?t.ExposeHeaders=[]:e.ExposeHeader!==void 0&&(t.ExposeHeaders=Ude((0,d.getArrayIfSingleItem)(e.ExposeHeader),n)),e.MaxAgeSeconds!==void 0&&(t.MaxAgeSeconds=(0,d.strictParseInt32)(e.MaxAgeSeconds)),t},kde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>xde(t,n)),Ade=(e,n)=>{let t={};return e.Mode!==void 0&&(t.Mode=(0,d.expectString)(e.Mode)),e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.Years!==void 0&&(t.Years=(0,d.strictParseInt32)(e.Years)),t},Ode=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.DeleteMarker!==void 0&&(t.DeleteMarker=(0,d.parseBoolean)(e.DeleteMarker)),e.DeleteMarkerVersionId!==void 0&&(t.DeleteMarkerVersionId=(0,d.expectString)(e.DeleteMarkerVersionId)),t},Nde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ode(t,n)),Ide=(e,n)=>{let t={};return e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.IsLatest!==void 0&&(t.IsLatest=(0,d.parseBoolean)(e.IsLatest)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),t},Rde=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Tde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ide(t,n)),Bde=(e,n)=>{let t={};return e.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(e.Bucket)),e.Account!==void 0&&(t.Account=(0,d.expectString)(e.Account)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.AccessControlTranslation!==void 0&&(t.AccessControlTranslation=dde(e.AccessControlTranslation,n)),e.EncryptionConfiguration!==void 0&&(t.EncryptionConfiguration=qde(e.EncryptionConfiguration,n)),e.ReplicationTime!==void 0&&(t.ReplicationTime=Xle(e.ReplicationTime,n)),e.Metrics!==void 0&&(t.Metrics=mle(e.Metrics,n)),t},qde=(e,n)=>{let t={};return e.ReplicaKmsKeyID!==void 0&&(t.ReplicaKmsKeyID=(0,d.expectString)(e.ReplicaKmsKeyID)),t},Dde=(e,n)=>({}),Mde=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.Code!==void 0&&(t.Code=(0,d.expectString)(e.Code)),e.Message!==void 0&&(t.Message=(0,d.expectString)(e.Message)),t},Fde=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),t},Lde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Mde(t,n)),jde=(e,n)=>({}),ih=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),zde=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Ude=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Gde=(e,n)=>{let t={};return e.Name!==void 0&&(t.Name=(0,d.expectString)(e.Name)),e.Value!==void 0&&(t.Value=(0,d.expectString)(e.Value)),t},Hde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Gde(t,n)),$de=(e,n)=>{let t={};return e.PartsCount!==void 0&&(t.TotalPartsCount=(0,d.strictParseInt32)(e.PartsCount)),e.PartNumberMarker!==void 0&&(t.PartNumberMarker=(0,d.expectString)(e.PartNumberMarker)),e.NextPartNumberMarker!==void 0&&(t.NextPartNumberMarker=(0,d.expectString)(e.NextPartNumberMarker)),e.MaxParts!==void 0&&(t.MaxParts=(0,d.strictParseInt32)(e.MaxParts)),e.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(e.IsTruncated)),e.Part===""?t.Parts=[]:e.Part!==void 0&&(t.Parts=Ble((0,d.getArrayIfSingleItem)(e.Part),n)),t},Kde=(e,n)=>{let t={};return e.Grantee!==void 0&&(t.Grantee=Jq(e.Grantee,n)),e.Permission!==void 0&&(t.Permission=(0,d.expectString)(e.Permission)),t},Jq=(e,n)=>{let t={};return e.DisplayName!==void 0&&(t.DisplayName=(0,d.expectString)(e.DisplayName)),e.EmailAddress!==void 0&&(t.EmailAddress=(0,d.expectString)(e.EmailAddress)),e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.URI!==void 0&&(t.URI=(0,d.expectString)(e.URI)),e["xsi:type"]!==void 0&&(t.Type=(0,d.expectString)(e["xsi:type"])),t},Qq=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Kde(t,n)),Vde=(e,n)=>{let t={};return e.Suffix!==void 0&&(t.Suffix=(0,d.expectString)(e.Suffix)),t},Zq=(e,n)=>{let t={};return e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.DisplayName!==void 0&&(t.DisplayName=(0,d.expectString)(e.DisplayName)),t},Xde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),t},eD=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter!==void 0&&(t.Filter=Yde(e.Filter,n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Tiering===""?t.Tierings=[]:e.Tiering!==void 0&&(t.Tierings=mue((0,d.getArrayIfSingleItem)(e.Tiering),n)),t},Wde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>eD(t,n)),Yde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag!==void 0&&(t.Tag=No(e.Tag,n)),e.And!==void 0&&(t.And=Xde(e.And,n)),t},tD=(e,n)=>{let t={};return e.Destination!==void 0&&(t.Destination=Qde(e.Destination,n)),e.IsEnabled!==void 0&&(t.IsEnabled=(0,d.parseBoolean)(e.IsEnabled)),e.Filter!==void 0&&(t.Filter=ele(e.Filter,n)),e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.IncludedObjectVersions!==void 0&&(t.IncludedObjectVersions=(0,d.expectString)(e.IncludedObjectVersions)),e.OptionalFields===""?t.OptionalFields=[]:e.OptionalFields!==void 0&&e.OptionalFields.Field!==void 0&&(t.OptionalFields=tle((0,d.getArrayIfSingleItem)(e.OptionalFields.Field),n)),e.Schedule!==void 0&&(t.Schedule=rle(e.Schedule,n)),t},Jde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>tD(t,n)),Qde=(e,n)=>{let t={};return e.S3BucketDestination!==void 0&&(t.S3BucketDestination=nle(e.S3BucketDestination,n)),t},Zde=(e,n)=>{let t={};return e["SSE-S3"]!==void 0&&(t.SSES3=sue(e["SSE-S3"],n)),e["SSE-KMS"]!==void 0&&(t.SSEKMS=rue(e["SSE-KMS"],n)),t},ele=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},tle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),nle=(e,n)=>{let t={};return e.AccountId!==void 0&&(t.AccountId=(0,d.expectString)(e.AccountId)),e.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(e.Bucket)),e.Format!==void 0&&(t.Format=(0,d.expectString)(e.Format)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Encryption!==void 0&&(t.Encryption=Zde(e.Encryption,n)),t},rle=(e,n)=>{let t={};return e.Frequency!==void 0&&(t.Frequency=(0,d.expectString)(e.Frequency)),t},ole=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.CloudFunction!==void 0&&(t.LambdaFunctionArn=(0,d.expectString)(e.CloudFunction)),e.Event===""?t.Events=[]:e.Event!==void 0&&(t.Events=ih((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=ah(e.Filter,n)),t},sle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>ole(t,n)),ile=(e,n)=>{let t={};return e.Date!==void 0&&(t.Date=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Date))),e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.ExpiredObjectDeleteMarker!==void 0&&(t.ExpiredObjectDeleteMarker=(0,d.parseBoolean)(e.ExpiredObjectDeleteMarker)),t},ale=(e,n)=>{let t={};return e.Expiration!==void 0&&(t.Expiration=ile(e.Expiration,n)),e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Filter===""||e.Filter!==void 0&&(t.Filter=dle((0,d.expectUnion)(e.Filter),n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Transition===""?t.Transitions=[]:e.Transition!==void 0&&(t.Transitions=gue((0,d.getArrayIfSingleItem)(e.Transition),n)),e.NoncurrentVersionTransition===""?t.NoncurrentVersionTransitions=[]:e.NoncurrentVersionTransition!==void 0&&(t.NoncurrentVersionTransitions=Sle((0,d.getArrayIfSingleItem)(e.NoncurrentVersionTransition),n)),e.NoncurrentVersionExpiration!==void 0&&(t.NoncurrentVersionExpiration=_le(e.NoncurrentVersionExpiration,n)),e.AbortIncompleteMultipartUpload!==void 0&&(t.AbortIncompleteMultipartUpload=cde(e.AbortIncompleteMultipartUpload,n)),t},cle=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),e.ObjectSizeGreaterThan!==void 0&&(t.ObjectSizeGreaterThan=(0,d.strictParseLong)(e.ObjectSizeGreaterThan)),e.ObjectSizeLessThan!==void 0&&(t.ObjectSizeLessThan=(0,d.strictParseLong)(e.ObjectSizeLessThan)),t},dle=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.ObjectSizeGreaterThan!==void 0?{ObjectSizeGreaterThan:(0,d.strictParseLong)(e.ObjectSizeGreaterThan)}:e.ObjectSizeLessThan!==void 0?{ObjectSizeLessThan:(0,d.strictParseLong)(e.ObjectSizeLessThan)}:e.And!==void 0?{And:cle(e.And,n)}:{$unknown:Object.entries(e)[0]},lle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>ale(t,n)),ule=(e,n)=>{let t={};return e.TargetBucket!==void 0&&(t.TargetBucket=(0,d.expectString)(e.TargetBucket)),e.TargetGrants===""?t.TargetGrants=[]:e.TargetGrants!==void 0&&e.TargetGrants.Grant!==void 0&&(t.TargetGrants=lue((0,d.getArrayIfSingleItem)(e.TargetGrants.Grant),n)),e.TargetPrefix!==void 0&&(t.TargetPrefix=(0,d.expectString)(e.TargetPrefix)),t},mle=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.EventThreshold!==void 0&&(t.EventThreshold=oD(e.EventThreshold,n)),t},ple=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),e.AccessPointArn!==void 0&&(t.AccessPointArn=(0,d.expectString)(e.AccessPointArn)),t},nD=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(t.Filter=yle((0,d.expectUnion)(e.Filter),n)),t},fle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>nD(t,n)),yle=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.AccessPointArn!==void 0?{AccessPointArn:(0,d.expectString)(e.AccessPointArn)}:e.And!==void 0?{And:ple(e.And,n)}:{$unknown:Object.entries(e)[0]},gle=(e,n)=>{let t={};return e.UploadId!==void 0&&(t.UploadId=(0,d.expectString)(e.UploadId)),e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.Initiated!==void 0&&(t.Initiated=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Initiated))),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.Initiator!==void 0&&(t.Initiator=Zq(e.Initiator,n)),e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=(0,d.expectString)(e.ChecksumAlgorithm)),t},hle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>gle(t,n)),_le=(e,n)=>{let t={};return e.NoncurrentDays!==void 0&&(t.NoncurrentDays=(0,d.strictParseInt32)(e.NoncurrentDays)),e.NewerNoncurrentVersions!==void 0&&(t.NewerNoncurrentVersions=(0,d.strictParseInt32)(e.NewerNoncurrentVersions)),t},Cle=(e,n)=>{let t={};return e.NoncurrentDays!==void 0&&(t.NoncurrentDays=(0,d.strictParseInt32)(e.NoncurrentDays)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.NewerNoncurrentVersions!==void 0&&(t.NewerNoncurrentVersions=(0,d.strictParseInt32)(e.NewerNoncurrentVersions)),t},Sle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Cle(t,n)),ah=(e,n)=>{let t={};return e.S3Key!==void 0&&(t.Key=Jle(e.S3Key,n)),t},ble=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.ChecksumAlgorithm===""?t.ChecksumAlgorithm=[]:e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=Yq((0,d.getArrayIfSingleItem)(e.ChecksumAlgorithm),n)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.RestoreStatus!==void 0&&(t.RestoreStatus=sD(e.RestoreStatus,n)),t},rD=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>ble(t,n)),Ele=(e,n)=>{let t={};return e.ObjectLockEnabled!==void 0&&(t.ObjectLockEnabled=(0,d.expectString)(e.ObjectLockEnabled)),e.Rule!==void 0&&(t.Rule=wle(e.Rule,n)),t},Ple=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},vle=(e,n)=>{let t={};return e.Mode!==void 0&&(t.Mode=(0,d.expectString)(e.Mode)),e.RetainUntilDate!==void 0&&(t.RetainUntilDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.RetainUntilDate))),t},wle=(e,n)=>{let t={};return e.DefaultRetention!==void 0&&(t.DefaultRetention=Ade(e.DefaultRetention,n)),t},xle=(e,n)=>{let t={};return e.PartNumber!==void 0&&(t.PartNumber=(0,d.strictParseInt32)(e.PartNumber)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},kle=(e,n)=>{let t={};return e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.ChecksumAlgorithm===""?t.ChecksumAlgorithm=[]:e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=Yq((0,d.getArrayIfSingleItem)(e.ChecksumAlgorithm),n)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.IsLatest!==void 0&&(t.IsLatest=(0,d.parseBoolean)(e.IsLatest)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.Owner!==void 0&&(t.Owner=er(e.Owner,n)),e.RestoreStatus!==void 0&&(t.RestoreStatus=sD(e.RestoreStatus,n)),t},Ale=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>kle(t,n)),er=(e,n)=>{let t={};return e.DisplayName!==void 0&&(t.DisplayName=(0,d.expectString)(e.DisplayName)),e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),t},Ole=(e,n)=>{let t={};return e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=Ile((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Nle=(e,n)=>{let t={};return e.ObjectOwnership!==void 0&&(t.ObjectOwnership=(0,d.expectString)(e.ObjectOwnership)),t},Ile=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Nle(t,n)),Rle=(e,n)=>{let t={};return e.PartNumber!==void 0&&(t.PartNumber=(0,d.strictParseInt32)(e.PartNumber)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},Tle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Rle(t,n)),Ble=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>xle(t,n)),qle=(e,n)=>{let t={};return e.IsPublic!==void 0&&(t.IsPublic=(0,d.parseBoolean)(e.IsPublic)),t},Dle=(e,n)=>{let t={};return e.BytesScanned!==void 0&&(t.BytesScanned=(0,d.strictParseLong)(e.BytesScanned)),e.BytesProcessed!==void 0&&(t.BytesProcessed=(0,d.strictParseLong)(e.BytesProcessed)),e.BytesReturned!==void 0&&(t.BytesReturned=(0,d.strictParseLong)(e.BytesReturned)),t},Mle=(e,n)=>{let t={};return e.BlockPublicAcls!==void 0&&(t.BlockPublicAcls=(0,d.parseBoolean)(e.BlockPublicAcls)),e.IgnorePublicAcls!==void 0&&(t.IgnorePublicAcls=(0,d.parseBoolean)(e.IgnorePublicAcls)),e.BlockPublicPolicy!==void 0&&(t.BlockPublicPolicy=(0,d.parseBoolean)(e.BlockPublicPolicy)),e.RestrictPublicBuckets!==void 0&&(t.RestrictPublicBuckets=(0,d.parseBoolean)(e.RestrictPublicBuckets)),t},Fle=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Queue!==void 0&&(t.QueueArn=(0,d.expectString)(e.Queue)),e.Event===""?t.Events=[]:e.Event!==void 0&&(t.Events=ih((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=ah(e.Filter,n)),t},Lle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Fle(t,n)),jle=(e,n)=>{let t={};return e.HostName!==void 0&&(t.HostName=(0,d.expectString)(e.HostName)),e.HttpRedirectCode!==void 0&&(t.HttpRedirectCode=(0,d.expectString)(e.HttpRedirectCode)),e.Protocol!==void 0&&(t.Protocol=(0,d.expectString)(e.Protocol)),e.ReplaceKeyPrefixWith!==void 0&&(t.ReplaceKeyPrefixWith=(0,d.expectString)(e.ReplaceKeyPrefixWith)),e.ReplaceKeyWith!==void 0&&(t.ReplaceKeyWith=(0,d.expectString)(e.ReplaceKeyWith)),t},zle=(e,n)=>{let t={};return e.HostName!==void 0&&(t.HostName=(0,d.expectString)(e.HostName)),e.Protocol!==void 0&&(t.Protocol=(0,d.expectString)(e.Protocol)),t},Ule=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Gle=(e,n)=>{let t={};return e.Role!==void 0&&(t.Role=(0,d.expectString)(e.Role)),e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=Vle((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Hle=(e,n)=>{let t={};return e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.Priority!==void 0&&(t.Priority=(0,d.strictParseInt32)(e.Priority)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Filter===""||e.Filter!==void 0&&(t.Filter=Kle((0,d.expectUnion)(e.Filter),n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.SourceSelectionCriteria!==void 0&&(t.SourceSelectionCriteria=nue(e.SourceSelectionCriteria,n)),e.ExistingObjectReplication!==void 0&&(t.ExistingObjectReplication=zde(e.ExistingObjectReplication,n)),e.Destination!==void 0&&(t.Destination=Bde(e.Destination,n)),e.DeleteMarkerReplication!==void 0&&(t.DeleteMarkerReplication=Rde(e.DeleteMarkerReplication,n)),t},$le=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=Cr((0,d.getArrayIfSingleItem)(e.Tag),n)),t},Kle=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:No(e.Tag,n)}:e.And!==void 0?{And:$le(e.And,n)}:{$unknown:Object.entries(e)[0]},Vle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Hle(t,n)),Xle=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Time!==void 0&&(t.Time=oD(e.Time,n)),t},oD=(e,n)=>{let t={};return e.Minutes!==void 0&&(t.Minutes=(0,d.strictParseInt32)(e.Minutes)),t},sD=(e,n)=>{let t={};return e.IsRestoreInProgress!==void 0&&(t.IsRestoreInProgress=(0,d.parseBoolean)(e.IsRestoreInProgress)),e.RestoreExpiryDate!==void 0&&(t.RestoreExpiryDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.RestoreExpiryDate))),t},Wle=(e,n)=>{let t={};return e.Condition!==void 0&&(t.Condition=Ede(e.Condition,n)),e.Redirect!==void 0&&(t.Redirect=jle(e.Redirect,n)),t},Yle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Wle(t,n)),Jle=(e,n)=>{let t={};return e.FilterRule===""?t.FilterRules=[]:e.FilterRule!==void 0&&(t.FilterRules=Hde((0,d.getArrayIfSingleItem)(e.FilterRule),n)),t},Qle=(e,n)=>{let t={};return e.SSEAlgorithm!==void 0&&(t.SSEAlgorithm=(0,d.expectString)(e.SSEAlgorithm)),e.KMSMasterKeyID!==void 0&&(t.KMSMasterKeyID=(0,d.expectString)(e.KMSMasterKeyID)),t},Zle=(e,n)=>{let t={};return e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=tue((0,d.getArrayIfSingleItem)(e.Rule),n)),t},eue=(e,n)=>{let t={};return e.ApplyServerSideEncryptionByDefault!==void 0&&(t.ApplyServerSideEncryptionByDefault=Qle(e.ApplyServerSideEncryptionByDefault,n)),e.BucketKeyEnabled!==void 0&&(t.BucketKeyEnabled=(0,d.parseBoolean)(e.BucketKeyEnabled)),t},tue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>eue(t,n)),nue=(e,n)=>{let t={};return e.SseKmsEncryptedObjects!==void 0&&(t.SseKmsEncryptedObjects=oue(e.SseKmsEncryptedObjects,n)),e.ReplicaModifications!==void 0&&(t.ReplicaModifications=Ule(e.ReplicaModifications,n)),t},rue=(e,n)=>{let t={};return e.KeyId!==void 0&&(t.KeyId=(0,d.expectString)(e.KeyId)),t},oue=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},sue=(e,n)=>({}),iue=(e,n)=>{let t={};return e.BytesScanned!==void 0&&(t.BytesScanned=(0,d.strictParseLong)(e.BytesScanned)),e.BytesProcessed!==void 0&&(t.BytesProcessed=(0,d.strictParseLong)(e.BytesProcessed)),e.BytesReturned!==void 0&&(t.BytesReturned=(0,d.strictParseLong)(e.BytesReturned)),t},aue=(e,n)=>{let t={};return e.DataExport!==void 0&&(t.DataExport=cue(e.DataExport,n)),t},cue=(e,n)=>{let t={};return e.OutputSchemaVersion!==void 0&&(t.OutputSchemaVersion=(0,d.expectString)(e.OutputSchemaVersion)),e.Destination!==void 0&&(t.Destination=yde(e.Destination,n)),t},No=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.Value!==void 0&&(t.Value=(0,d.expectString)(e.Value)),t},Cr=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>No(t,n)),due=(e,n)=>{let t={};return e.Grantee!==void 0&&(t.Grantee=Jq(e.Grantee,n)),e.Permission!==void 0&&(t.Permission=(0,d.expectString)(e.Permission)),t},lue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>due(t,n)),uue=(e,n)=>{let t={};return e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.AccessTier!==void 0&&(t.AccessTier=(0,d.expectString)(e.AccessTier)),t},mue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>uue(t,n)),pue=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Topic!==void 0&&(t.TopicArn=(0,d.expectString)(e.Topic)),e.Event===""?t.Events=[]:e.Event!==void 0&&(t.Events=ih((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=ah(e.Filter,n)),t},fue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>pue(t,n)),yue=(e,n)=>{let t={};return e.Date!==void 0&&(t.Date=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Date))),e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),t},gue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>yue(t,n)),I=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),iD=(e,n)=>(0,d.collectBody)(e,n).then(t=>n.utf8Encoder(t)),P=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Q=(e,n)=>iD(e,n).then(t=>{if(t.length){let r=new Xte.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(u,l)=>l.trim()===""&&l.includes(` `)?"":void 0});r.addEntity("#xD","\r"),r.addEntity("#10",` -`);let o=r.parse(t),s="#text",c=Object.keys(o)[0],i=o[c];return i[s]&&(i[c]=i[s],delete i[s]),(0,d.getValueFromTextNode)(i)}return{}}),M=async(e,n)=>{let t=await Q(e,n);return t.Error&&(t.Error.message=t.Error.message??t.Error.Message),t},F=(e,n)=>{if((n==null?void 0:n.Code)!==void 0)return n.Code;if(e.statusCode==404)return"NotFound"}});var dh=m(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.AbortMultipartUploadCommand=Io.$Command=void 0;var yue=x(),gue=k(),cD=b();Object.defineProperty(Io,"$Command",{enumerable:!0,get:function(){return cD.Command}});var hue=w(),aD=q(),ch=class e extends cD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,gue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,yue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"AbortMultipartUploadCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[hue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"AbortMultipartUpload"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,aD.se_AbortMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,aD.de_AbortMultipartUploadCommand)(n,t)}};Io.AbortMultipartUploadCommand=ch});var bt=m(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.getSsecPlugin=En.ssecMiddlewareOptions=En.ssecMiddleware=void 0;function dD(e){return n=>async t=>{let r={...t.input},o=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of o){let c=r[s.target];if(c){let i=ArrayBuffer.isView(c)?new Uint8Array(c.buffer,c.byteOffset,c.byteLength):typeof c=="string"?e.utf8Decoder(c):new Uint8Array(c),u=e.base64Encoder(i),l=new e.md5;l.update(i),r={...r,[s.target]:u,[s.hash]:e.base64Encoder(await l.digest())}}}return n({...t,input:r})}}En.ssecMiddleware=dD;En.ssecMiddlewareOptions={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0};var _ue=e=>({applyToStack:n=>{n.add(dD(e),En.ssecMiddlewareOptions)}});En.getSsecPlugin=_ue});var uh=m(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.CompleteMultipartUploadCommand=Ro.$Command=void 0;var Cue=Or(),Sue=bt(),bue=x(),Eue=k(),mD=b();Object.defineProperty(Ro,"$Command",{enumerable:!0,get:function(){return mD.Command}});var Pue=w(),lD=Ye(),uD=q(),lh=class e extends mD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Eue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,bue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Cue.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,Sue.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:lD.CompleteMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:lD.CompleteMultipartUploadOutputFilterSensitiveLog,[Pue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CompleteMultipartUpload"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,uD.se_CompleteMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,uD.de_CompleteMultipartUploadCommand)(n,t)}};Ro.CompleteMultipartUploadCommand=lh});var ph=m(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.CopyObjectCommand=To.$Command=void 0;var vue=Or(),wue=bt(),xue=x(),kue=k(),yD=b();Object.defineProperty(To,"$Command",{enumerable:!0,get:function(){return yD.Command}});var Aue=w(),pD=Ye(),fD=q(),mh=class e extends yD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,kue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,xue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,vue.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,wue.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CopyObjectCommand",inputFilterSensitiveLog:pD.CopyObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:pD.CopyObjectOutputFilterSensitiveLog,[Aue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CopyObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,fD.se_CopyObjectCommand)(n,t)}deserialize(n,t){return(0,fD.de_CopyObjectCommand)(n,t)}};To.CopyObjectCommand=mh});var hD=m(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.getLocationConstraintPlugin=Pn.locationConstraintMiddlewareOptions=Pn.locationConstraintMiddleware=void 0;function gD(e){return n=>async t=>{let{CreateBucketConfiguration:r}=t.input,o=await e.region();return(!r||!r.LocationConstraint)&&(t={...t,input:{...t.input,CreateBucketConfiguration:o==="us-east-1"?void 0:{LocationConstraint:o}}}),n(t)}}Pn.locationConstraintMiddleware=gD;Pn.locationConstraintMiddlewareOptions={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0};var Oue=e=>({applyToStack:n=>{n.add(gD(e),Pn.locationConstraintMiddlewareOptions)}});Pn.getLocationConstraintPlugin=Oue});var yh=m(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.CreateBucketCommand=Bo.$Command=void 0;var Nue=hD(),Iue=x(),Rue=k(),CD=b();Object.defineProperty(Bo,"$Command",{enumerable:!0,get:function(){return CD.Command}});var Tue=w(),_D=q(),fh=class e extends CD.Command{static getEndpointParameterInstructions(){return{DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Rue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Iue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Nue.getLocationConstraintPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CreateBucketCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Tue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CreateBucket"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_D.se_CreateBucketCommand)(n,t)}deserialize(n,t){return(0,_D.de_CreateBucketCommand)(n,t)}};Bo.CreateBucketCommand=fh});var hh=m(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.CreateMultipartUploadCommand=qo.$Command=void 0;var Bue=bt(),que=x(),Due=k(),ED=b();Object.defineProperty(qo,"$Command",{enumerable:!0,get:function(){return ED.Command}});var Mue=w(),SD=Ye(),bD=q(),gh=class e extends ED.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Due.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,que.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Bue.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:SD.CreateMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:SD.CreateMultipartUploadOutputFilterSensitiveLog,[Mue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CreateMultipartUpload"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,bD.se_CreateMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,bD.de_CreateMultipartUploadCommand)(n,t)}};qo.CreateMultipartUploadCommand=gh});var Ch=m(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.DeleteBucketAnalyticsConfigurationCommand=Do.$Command=void 0;var Fue=x(),Lue=k(),vD=b();Object.defineProperty(Do,"$Command",{enumerable:!0,get:function(){return vD.Command}});var jue=w(),PD=q(),_h=class e extends vD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Lue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Fue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[jue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketAnalyticsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,PD.se_DeleteBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,PD.de_DeleteBucketAnalyticsConfigurationCommand)(n,t)}};Do.DeleteBucketAnalyticsConfigurationCommand=_h});var bh=m(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.DeleteBucketCommand=Mo.$Command=void 0;var zue=x(),Uue=k(),xD=b();Object.defineProperty(Mo,"$Command",{enumerable:!0,get:function(){return xD.Command}});var Gue=w(),wD=q(),Sh=class e extends xD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Uue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,zue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Gue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucket"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,wD.se_DeleteBucketCommand)(n,t)}deserialize(n,t){return(0,wD.de_DeleteBucketCommand)(n,t)}};Mo.DeleteBucketCommand=Sh});var Ph=m(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.DeleteBucketCorsCommand=Fo.$Command=void 0;var Hue=x(),$ue=k(),AD=b();Object.defineProperty(Fo,"$Command",{enumerable:!0,get:function(){return AD.Command}});var Kue=w(),kD=q(),Eh=class e extends AD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,$ue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Hue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketCorsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Kue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketCors"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,kD.se_DeleteBucketCorsCommand)(n,t)}deserialize(n,t){return(0,kD.de_DeleteBucketCorsCommand)(n,t)}};Fo.DeleteBucketCorsCommand=Eh});var wh=m(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.DeleteBucketEncryptionCommand=Lo.$Command=void 0;var Vue=x(),Xue=k(),ND=b();Object.defineProperty(Lo,"$Command",{enumerable:!0,get:function(){return ND.Command}});var Wue=w(),OD=q(),vh=class e extends ND.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Xue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketEncryptionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Wue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketEncryption"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,OD.se_DeleteBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,OD.de_DeleteBucketEncryptionCommand)(n,t)}};Lo.DeleteBucketEncryptionCommand=vh});var kh=m(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.DeleteBucketIntelligentTieringConfigurationCommand=jo.$Command=void 0;var Yue=x(),Jue=k(),RD=b();Object.defineProperty(jo,"$Command",{enumerable:!0,get:function(){return RD.Command}});var Que=w(),ID=q(),xh=class e extends RD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Jue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Yue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Que.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketIntelligentTieringConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,ID.se_DeleteBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,ID.de_DeleteBucketIntelligentTieringConfigurationCommand)(n,t)}};jo.DeleteBucketIntelligentTieringConfigurationCommand=xh});var Oh=m(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.DeleteBucketInventoryConfigurationCommand=zo.$Command=void 0;var Zue=x(),eme=k(),BD=b();Object.defineProperty(zo,"$Command",{enumerable:!0,get:function(){return BD.Command}});var tme=w(),TD=q(),Ah=class e extends BD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,eme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Zue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketInventoryConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[tme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketInventoryConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,TD.se_DeleteBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,TD.de_DeleteBucketInventoryConfigurationCommand)(n,t)}};zo.DeleteBucketInventoryConfigurationCommand=Ah});var Ih=m(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.DeleteBucketLifecycleCommand=Uo.$Command=void 0;var nme=x(),rme=k(),DD=b();Object.defineProperty(Uo,"$Command",{enumerable:!0,get:function(){return DD.Command}});var ome=w(),qD=q(),Nh=class e extends DD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,rme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,nme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketLifecycleCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ome.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketLifecycle"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,qD.se_DeleteBucketLifecycleCommand)(n,t)}deserialize(n,t){return(0,qD.de_DeleteBucketLifecycleCommand)(n,t)}};Uo.DeleteBucketLifecycleCommand=Nh});var Th=m(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.DeleteBucketMetricsConfigurationCommand=Go.$Command=void 0;var sme=x(),ime=k(),FD=b();Object.defineProperty(Go,"$Command",{enumerable:!0,get:function(){return FD.Command}});var ame=w(),MD=q(),Rh=class e extends FD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ime.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,sme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketMetricsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ame.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketMetricsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,MD.se_DeleteBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,MD.de_DeleteBucketMetricsConfigurationCommand)(n,t)}};Go.DeleteBucketMetricsConfigurationCommand=Rh});var qh=m(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.DeleteBucketOwnershipControlsCommand=Ho.$Command=void 0;var cme=x(),dme=k(),jD=b();Object.defineProperty(Ho,"$Command",{enumerable:!0,get:function(){return jD.Command}});var lme=w(),LD=q(),Bh=class e extends jD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,dme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,cme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketOwnershipControlsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[lme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketOwnershipControls"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,LD.se_DeleteBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,LD.de_DeleteBucketOwnershipControlsCommand)(n,t)}};Ho.DeleteBucketOwnershipControlsCommand=Bh});var Mh=m($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.DeleteBucketPolicyCommand=$o.$Command=void 0;var ume=x(),mme=k(),UD=b();Object.defineProperty($o,"$Command",{enumerable:!0,get:function(){return UD.Command}});var pme=w(),zD=q(),Dh=class e extends UD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,mme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ume.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketPolicyCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[pme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketPolicy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,zD.se_DeleteBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,zD.de_DeleteBucketPolicyCommand)(n,t)}};$o.DeleteBucketPolicyCommand=Dh});var Lh=m(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.DeleteBucketReplicationCommand=Ko.$Command=void 0;var fme=x(),yme=k(),HD=b();Object.defineProperty(Ko,"$Command",{enumerable:!0,get:function(){return HD.Command}});var gme=w(),GD=q(),Fh=class e extends HD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,yme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,fme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketReplicationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[gme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketReplication"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,GD.se_DeleteBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,GD.de_DeleteBucketReplicationCommand)(n,t)}};Ko.DeleteBucketReplicationCommand=Fh});var zh=m(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.DeleteBucketTaggingCommand=Vo.$Command=void 0;var hme=x(),_me=k(),KD=b();Object.defineProperty(Vo,"$Command",{enumerable:!0,get:function(){return KD.Command}});var Cme=w(),$D=q(),jh=class e extends KD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_me.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Cme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,$D.se_DeleteBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,$D.de_DeleteBucketTaggingCommand)(n,t)}};Vo.DeleteBucketTaggingCommand=jh});var Gh=m(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.DeleteBucketWebsiteCommand=Xo.$Command=void 0;var Sme=x(),bme=k(),XD=b();Object.defineProperty(Xo,"$Command",{enumerable:!0,get:function(){return XD.Command}});var Eme=w(),VD=q(),Uh=class e extends XD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,bme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Sme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketWebsiteCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Eme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketWebsite"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,VD.se_DeleteBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,VD.de_DeleteBucketWebsiteCommand)(n,t)}};Xo.DeleteBucketWebsiteCommand=Uh});var $h=m(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.DeleteObjectCommand=Wo.$Command=void 0;var Pme=x(),vme=k(),YD=b();Object.defineProperty(Wo,"$Command",{enumerable:!0,get:function(){return YD.Command}});var wme=w(),WD=q(),Hh=class e extends YD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,vme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Pme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[wme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,WD.se_DeleteObjectCommand)(n,t)}deserialize(n,t){return(0,WD.de_DeleteObjectCommand)(n,t)}};Wo.DeleteObjectCommand=Hh});var Yo=m(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.ChecksumLocation=tr.ChecksumAlgorithm=void 0;var xme;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.SHA1="SHA1",e.SHA256="SHA256"})(xme=tr.ChecksumAlgorithm||(tr.ChecksumAlgorithm={}));var kme;(function(e){e.HEADER="header",e.TRAILER="trailer"})(kme=tr.ChecksumLocation||(tr.ChecksumLocation={}))});var Kh=m(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.PRIORITY_ORDER_ALGORITHMS=Jo.CLIENT_SUPPORTED_ALGORITHMS=void 0;var nr=Yo();Jo.CLIENT_SUPPORTED_ALGORITHMS=[nr.ChecksumAlgorithm.CRC32,nr.ChecksumAlgorithm.CRC32C,nr.ChecksumAlgorithm.SHA1,nr.ChecksumAlgorithm.SHA256];Jo.PRIORITY_ORDER_ALGORITHMS=[nr.ChecksumAlgorithm.CRC32,nr.ChecksumAlgorithm.CRC32C,nr.ChecksumAlgorithm.SHA1,nr.ChecksumAlgorithm.SHA256]});var QD=m(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.getChecksumAlgorithmForRequest=void 0;var Ame=Yo(),JD=Kh(),Ome=(e,{requestChecksumRequired:n,requestAlgorithmMember:t})=>{if(!t||!e[t])return n?Ame.ChecksumAlgorithm.MD5:void 0;let r=e[t];if(!JD.CLIENT_SUPPORTED_ALGORITHMS.includes(r))throw new Error(`The checksum algorithm "${r}" is not supported by the client. Select one of ${JD.CLIENT_SUPPORTED_ALGORITHMS}.`);return r};_m.getChecksumAlgorithmForRequest=Ome});var Vh=m(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.getChecksumLocationName=void 0;var Nme=Yo(),Ime=e=>e===Nme.ChecksumAlgorithm.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`;Cm.getChecksumLocationName=Ime});var ZD=m(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.hasHeader=void 0;var Rme=(e,n)=>{let t=e.toLowerCase();for(let r of Object.keys(n))if(t===r.toLowerCase())return!0;return!1};Sm.hasHeader=Rme});var Em=m(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.isStreaming=void 0;var Tme=oc(),Bme=e=>e!==void 0&&typeof e!="string"&&!ArrayBuffer.isView(e)&&!(0,Tme.isArrayBuffer)(e);bm.isStreaming=Bme});var Jh={};Ai(Jh,{__assign:()=>Wh,__asyncDelegator:()=>Vme,__asyncGenerator:()=>Kme,__asyncValues:()=>Xme,__await:()=>ja,__awaiter:()=>jme,__classPrivateFieldGet:()=>Qme,__classPrivateFieldSet:()=>Zme,__createBinding:()=>Ume,__decorate:()=>Mme,__exportStar:()=>Gme,__extends:()=>qme,__generator:()=>zme,__importDefault:()=>Jme,__importStar:()=>Yme,__makeTemplateObject:()=>Wme,__metadata:()=>Lme,__param:()=>Fme,__read:()=>e1,__rest:()=>Dme,__spread:()=>Hme,__spreadArrays:()=>$me,__values:()=>Yh});function qme(e,n){Xh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function Dme(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(c=e[i])&&(s=(o<3?c(s):o>3?c(n,t,s):c(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function Fme(e,n){return function(t,r){n(t,r,e)}}function Lme(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)}function jme(e,n,t,r){function o(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function i(a){try{l(r.next(a))}catch(y){c(y)}}function u(a){try{l(r.throw(a))}catch(y){c(y)}}function l(a){a.done?s(a.value):o(a.value).then(i,u)}l((r=r.apply(e,n||[])).next())})}function zme(e,n){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,c;return c={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function i(l){return function(a){return u([l,a])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,o&&(s=l[0]&2?o.return:l[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;switch(o=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function e1(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,s=[],c;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){c={error:i}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return s}function Hme(){for(var e=[],n=0;n1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(v){y(s[0][3],v)}}function u(g){g.value instanceof ja?Promise.resolve(g.value.v).then(l,a):y(s[0][2],g)}function l(g){i("next",g)}function a(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function Vme(e){var n,t;return n={},r("next"),r("throw",function(o){throw o}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(o,s){n[o]=e[o]?function(c){return(t=!t)?{value:ja(e[o](c)),done:o==="return"}:s?s(c):c}:s}}function Xme(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof Yh=="function"?Yh(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(c){return new Promise(function(i,u){c=e[s](c),o(i,u,c.done,c.value)})}}function o(s,c,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},c)}}function Wme(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function Yme(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function Jme(e){return e&&e.__esModule?e:{default:e}}function Qme(e,n){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return n.get(e)}function Zme(e,n,t){if(!n.has(e))throw new TypeError("attempted to set private field on non-instance");return n.set(e,t),t}var Xh,Wh,Qh=Le(()=>{Xh=function(e,n){return Xh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},Xh(e,n)};Wh=function(){return Wh=Object.assign||function(n){for(var t,r=1,o=arguments.length;r{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.AwsCrc32c=void 0;var t1=(Qh(),Y(Jh)),Zh=ji(),n1=e_(),epe=function(){function e(){this.crc32c=new n1.Crc32c}return e.prototype.update=function(n){(0,Zh.isEmptyData)(n)||this.crc32c.update((0,Zh.convertToBuffer)(n))},e.prototype.digest=function(){return t1.__awaiter(this,void 0,void 0,function(){return t1.__generator(this,function(n){return[2,(0,Zh.numToUint8)(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new n1.Crc32c},e}();Pm.AwsCrc32c=epe});var e_=m(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.AwsCrc32c=rr.Crc32c=rr.crc32c=void 0;var tpe=(Qh(),Y(Jh)),npe=ji();function rpe(e){return new o1().update(e).digest()}rr.crc32c=rpe;var o1=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(n){var t,r;try{for(var o=tpe.__values(n),s=o.next();!s.done;s=o.next()){var c=s.value;this.checksum=this.checksum>>>8^spe[(this.checksum^c)&255]}}catch(i){t={error:i}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();rr.Crc32c=o1;var ope=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],spe=(0,npe.uint32ArrayFrom)(ope),ipe=r1();Object.defineProperty(rr,"AwsCrc32c",{enumerable:!0,get:function(){return ipe.AwsCrc32c}})});var t_=m(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.selectChecksumAlgorithmFunction=void 0;var ape=zi(),cpe=e_(),za=Yo(),dpe=(e,n)=>({[za.ChecksumAlgorithm.MD5]:n.md5,[za.ChecksumAlgorithm.CRC32]:ape.AwsCrc32,[za.ChecksumAlgorithm.CRC32C]:cpe.AwsCrc32c,[za.ChecksumAlgorithm.SHA1]:n.sha1,[za.ChecksumAlgorithm.SHA256]:n.sha256})[e];vm.selectChecksumAlgorithmFunction=dpe});var n_=m(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.stringHasher=void 0;var lpe=yt(),upe=(e,n)=>{let t=new e;return t.update((0,lpe.toUint8Array)(n||"")),t.digest()};wm.stringHasher=upe});var r_=m(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.flexibleChecksumsMiddleware=void 0;var mpe=Ne(),ppe=QD(),fpe=Vh(),ype=ZD(),gpe=Em(),hpe=t_(),_pe=n_(),Cpe=(e,n)=>t=>async r=>{if(!mpe.HttpRequest.isInstance(r.request))return t(r);let{request:o}=r,{body:s,headers:c}=o,{base64Encoder:i,streamHasher:u}=e,{input:l,requestChecksumRequired:a,requestAlgorithmMember:y}=n,g=(0,ppe.getChecksumAlgorithmForRequest)(l,{requestChecksumRequired:a,requestAlgorithmMember:y}),C=s,v=c;if(g){let E=(0,fpe.getChecksumLocationName)(g),G=(0,hpe.selectChecksumAlgorithmFunction)(g,e);if((0,gpe.isStreaming)(s)){let{getAwsChunkedEncodingStream:ye,bodyLengthChecker:nt}=e;C=ye(s,{base64Encoder:i,bodyLengthChecker:nt,checksumLocationName:E,checksumAlgorithmFn:G,streamHasher:u}),v={...c,"content-encoding":c["content-encoding"]?`${c["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":c["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":E},delete v["content-length"]}else if(!(0,ype.hasHeader)(E,c)){let ye=await(0,_pe.stringHasher)(G,s);v={...c,[E]:i(ye)}}}return await t({...r,request:{...o,headers:v,body:C}})};xm.flexibleChecksumsMiddleware=Cpe});var s1=m(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.createReadStreamOnBuffer=void 0;var Spe=require("stream");function bpe(e){let n=new Spe.Transform;return n.push(e),n.push(null),n}km.createReadStreamOnBuffer=bpe});var i1=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.getChecksum=void 0;var Epe=Em(),Ppe=n_(),vpe=async(e,{streamHasher:n,checksumAlgorithmFn:t,base64Encoder:r})=>{let o=(0,Epe.isStreaming)(e)?n(t,e):(0,Ppe.stringHasher)(t,e);return r(await o)};Am.getChecksum=vpe});var c1=m(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.getChecksumAlgorithmListForResponse=void 0;var a1=Kh(),wpe=(e=[])=>{let n=[];for(let t of a1.PRIORITY_ORDER_ALGORITHMS)!e.includes(t)||!a1.CLIENT_SUPPORTED_ALGORITHMS.includes(t)||n.push(t);return n};Om.getChecksumAlgorithmListForResponse=wpe});var d1=m(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.validateChecksumFromResponse=void 0;var xpe=i1(),kpe=c1(),Ape=Vh(),Ope=t_(),Npe=async(e,{config:n,responseAlgorithms:t})=>{let r=(0,kpe.getChecksumAlgorithmListForResponse)(t),{body:o,headers:s}=e;for(let c of r){let i=(0,Ape.getChecksumLocationName)(c),u=s[i];if(u){let l=(0,Ope.selectChecksumAlgorithmFunction)(c,n),{streamHasher:a,base64Encoder:y}=n,g=await(0,xpe.getChecksum)(o,{streamHasher:a,checksumAlgorithmFn:l,base64Encoder:y});if(g===u)break;throw new Error(`Checksum mismatch: expected "${g}" but received "${u}" in response header "${i}".`)}}};Nm.validateChecksumFromResponse=Npe});var u1=m(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.flexibleChecksumsResponseMiddleware=Qo.flexibleChecksumsResponseMiddlewareOptions=void 0;var Ipe=Ne(),Rpe=Em(),l1=s1(),Tpe=d1();Qo.flexibleChecksumsResponseMiddlewareOptions={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0};var Bpe=(e,n)=>t=>async r=>{if(!Ipe.HttpRequest.isInstance(r.request))return t(r);let o=r.input,s=await t(r),c=s.response,i,{requestValidationModeMember:u,responseAlgorithms:l}=n;if(u&&o[u]==="ENABLED"){let a=(0,Rpe.isStreaming)(c.body);a&&(i=await e.streamCollector(c.body),c.body=(0,l1.createReadStreamOnBuffer)(i)),await(0,Tpe.validateChecksumFromResponse)(s.response,{config:e,responseAlgorithms:l}),a&&i&&(c.body=(0,l1.createReadStreamOnBuffer)(i))}return s};Qo.flexibleChecksumsResponseMiddleware=Bpe});var p1=m(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.getFlexibleChecksumsPlugin=Sr.flexibleChecksumsMiddlewareOptions=void 0;var qpe=r_(),m1=u1();Sr.flexibleChecksumsMiddlewareOptions={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0};var Dpe=(e,n)=>({applyToStack:t=>{t.add((0,qpe.flexibleChecksumsMiddleware)(e,n),Sr.flexibleChecksumsMiddlewareOptions),t.addRelativeTo((0,m1.flexibleChecksumsResponseMiddleware)(e,n),m1.flexibleChecksumsResponseMiddlewareOptions)}});Sr.getFlexibleChecksumsPlugin=Dpe});var be=m(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});var o_=(te(),Y(ee));o_.__exportStar(Yo(),Ua);o_.__exportStar(r_(),Ua);o_.__exportStar(p1(),Ua)});var i_=m(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.DeleteObjectsCommand=Zo.$Command=void 0;var Mpe=be(),Fpe=x(),Lpe=k(),y1=b();Object.defineProperty(Zo,"$Command",{enumerable:!0,get:function(){return y1.Command}});var jpe=w(),f1=q(),s_=class e extends y1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Lpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Fpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Mpe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[jpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObjects"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,f1.se_DeleteObjectsCommand)(n,t)}deserialize(n,t){return(0,f1.de_DeleteObjectsCommand)(n,t)}};Zo.DeleteObjectsCommand=s_});var c_=m(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.DeleteObjectTaggingCommand=es.$Command=void 0;var zpe=x(),Upe=k(),h1=b();Object.defineProperty(es,"$Command",{enumerable:!0,get:function(){return h1.Command}});var Gpe=w(),g1=q(),a_=class e extends h1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Upe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,zpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Gpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObjectTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,g1.se_DeleteObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,g1.de_DeleteObjectTaggingCommand)(n,t)}};es.DeleteObjectTaggingCommand=a_});var l_=m(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.DeletePublicAccessBlockCommand=ts.$Command=void 0;var Hpe=x(),$pe=k(),C1=b();Object.defineProperty(ts,"$Command",{enumerable:!0,get:function(){return C1.Command}});var Kpe=w(),_1=q(),d_=class e extends C1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,$pe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Hpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeletePublicAccessBlockCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Kpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeletePublicAccessBlock"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_1.se_DeletePublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,_1.de_DeletePublicAccessBlockCommand)(n,t)}};ts.DeletePublicAccessBlockCommand=d_});var m_=m(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.GetBucketAccelerateConfigurationCommand=ns.$Command=void 0;var Vpe=x(),Xpe=k(),b1=b();Object.defineProperty(ns,"$Command",{enumerable:!0,get:function(){return b1.Command}});var Wpe=w(),S1=q(),u_=class e extends b1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Xpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Wpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAccelerateConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,S1.se_GetBucketAccelerateConfigurationCommand)(n,t)}deserialize(n,t){return(0,S1.de_GetBucketAccelerateConfigurationCommand)(n,t)}};ns.GetBucketAccelerateConfigurationCommand=u_});var f_=m(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.GetBucketAclCommand=rs.$Command=void 0;var Ype=x(),Jpe=k(),P1=b();Object.defineProperty(rs,"$Command",{enumerable:!0,get:function(){return P1.Command}});var Qpe=w(),E1=q(),p_=class e extends P1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Jpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ype.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Qpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,E1.se_GetBucketAclCommand)(n,t)}deserialize(n,t){return(0,E1.de_GetBucketAclCommand)(n,t)}};rs.GetBucketAclCommand=p_});var g_=m(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.GetBucketAnalyticsConfigurationCommand=os.$Command=void 0;var Zpe=x(),efe=k(),w1=b();Object.defineProperty(os,"$Command",{enumerable:!0,get:function(){return w1.Command}});var tfe=w(),v1=q(),y_=class e extends w1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,efe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Zpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[tfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAnalyticsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,v1.se_GetBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,v1.de_GetBucketAnalyticsConfigurationCommand)(n,t)}};os.GetBucketAnalyticsConfigurationCommand=y_});var __=m(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.GetBucketCorsCommand=ss.$Command=void 0;var nfe=x(),rfe=k(),k1=b();Object.defineProperty(ss,"$Command",{enumerable:!0,get:function(){return k1.Command}});var ofe=w(),x1=q(),h_=class e extends k1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,rfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,nfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketCorsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ofe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketCors"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,x1.se_GetBucketCorsCommand)(n,t)}deserialize(n,t){return(0,x1.de_GetBucketCorsCommand)(n,t)}};ss.GetBucketCorsCommand=h_});var S_=m(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.GetBucketEncryptionCommand=is.$Command=void 0;var sfe=x(),ife=k(),O1=b();Object.defineProperty(is,"$Command",{enumerable:!0,get:function(){return O1.Command}});var afe=w(),cfe=Ye(),A1=q(),C_=class e extends O1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ife.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,sfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketEncryptionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:cfe.GetBucketEncryptionOutputFilterSensitiveLog,[afe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketEncryption"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,A1.se_GetBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,A1.de_GetBucketEncryptionCommand)(n,t)}};is.GetBucketEncryptionCommand=C_});var E_=m(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.GetBucketIntelligentTieringConfigurationCommand=as.$Command=void 0;var dfe=x(),lfe=k(),I1=b();Object.defineProperty(as,"$Command",{enumerable:!0,get:function(){return I1.Command}});var ufe=w(),N1=q(),b_=class e extends I1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,lfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,dfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ufe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketIntelligentTieringConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,N1.se_GetBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,N1.de_GetBucketIntelligentTieringConfigurationCommand)(n,t)}};as.GetBucketIntelligentTieringConfigurationCommand=b_});var v_=m(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.GetBucketInventoryConfigurationCommand=cs.$Command=void 0;var mfe=x(),pfe=k(),T1=b();Object.defineProperty(cs,"$Command",{enumerable:!0,get:function(){return T1.Command}});var ffe=w(),yfe=Ye(),R1=q(),P_=class e extends T1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,pfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,mfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketInventoryConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:yfe.GetBucketInventoryConfigurationOutputFilterSensitiveLog,[ffe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketInventoryConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,R1.se_GetBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,R1.de_GetBucketInventoryConfigurationCommand)(n,t)}};cs.GetBucketInventoryConfigurationCommand=P_});var x_=m(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.GetBucketLifecycleConfigurationCommand=ds.$Command=void 0;var gfe=x(),hfe=k(),q1=b();Object.defineProperty(ds,"$Command",{enumerable:!0,get:function(){return q1.Command}});var _fe=w(),B1=q(),w_=class e extends q1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,hfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,gfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[_fe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLifecycleConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,B1.se_GetBucketLifecycleConfigurationCommand)(n,t)}deserialize(n,t){return(0,B1.de_GetBucketLifecycleConfigurationCommand)(n,t)}};ds.GetBucketLifecycleConfigurationCommand=w_});var A_=m(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.GetBucketLocationCommand=ls.$Command=void 0;var Cfe=x(),Sfe=k(),M1=b();Object.defineProperty(ls,"$Command",{enumerable:!0,get:function(){return M1.Command}});var bfe=w(),D1=q(),k_=class e extends M1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Sfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Cfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketLocationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[bfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLocation"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,D1.se_GetBucketLocationCommand)(n,t)}deserialize(n,t){return(0,D1.de_GetBucketLocationCommand)(n,t)}};ls.GetBucketLocationCommand=k_});var N_=m(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.GetBucketLoggingCommand=us.$Command=void 0;var Efe=x(),Pfe=k(),L1=b();Object.defineProperty(us,"$Command",{enumerable:!0,get:function(){return L1.Command}});var vfe=w(),F1=q(),O_=class e extends L1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Pfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Efe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketLoggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[vfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLogging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,F1.se_GetBucketLoggingCommand)(n,t)}deserialize(n,t){return(0,F1.de_GetBucketLoggingCommand)(n,t)}};us.GetBucketLoggingCommand=O_});var R_=m(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.GetBucketMetricsConfigurationCommand=ms.$Command=void 0;var wfe=x(),xfe=k(),z1=b();Object.defineProperty(ms,"$Command",{enumerable:!0,get:function(){return z1.Command}});var kfe=w(),j1=q(),I_=class e extends z1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,xfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,wfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketMetricsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[kfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketMetricsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,j1.se_GetBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,j1.de_GetBucketMetricsConfigurationCommand)(n,t)}};ms.GetBucketMetricsConfigurationCommand=I_});var B_=m(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.GetBucketNotificationConfigurationCommand=ps.$Command=void 0;var Afe=x(),Ofe=k(),G1=b();Object.defineProperty(ps,"$Command",{enumerable:!0,get:function(){return G1.Command}});var Nfe=w(),U1=q(),T_=class e extends G1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ofe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Afe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketNotificationConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Nfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketNotificationConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,U1.se_GetBucketNotificationConfigurationCommand)(n,t)}deserialize(n,t){return(0,U1.de_GetBucketNotificationConfigurationCommand)(n,t)}};ps.GetBucketNotificationConfigurationCommand=T_});var D_=m(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.GetBucketOwnershipControlsCommand=fs.$Command=void 0;var Ife=x(),Rfe=k(),$1=b();Object.defineProperty(fs,"$Command",{enumerable:!0,get:function(){return $1.Command}});var Tfe=w(),H1=q(),q_=class e extends $1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Rfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ife.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketOwnershipControlsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Tfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketOwnershipControls"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,H1.se_GetBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,H1.de_GetBucketOwnershipControlsCommand)(n,t)}};fs.GetBucketOwnershipControlsCommand=q_});var F_=m(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.GetBucketPolicyCommand=ys.$Command=void 0;var Bfe=x(),qfe=k(),V1=b();Object.defineProperty(ys,"$Command",{enumerable:!0,get:function(){return V1.Command}});var Dfe=w(),K1=q(),M_=class e extends V1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,qfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Bfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketPolicyCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Dfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketPolicy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,K1.se_GetBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,K1.de_GetBucketPolicyCommand)(n,t)}};ys.GetBucketPolicyCommand=M_});var j_=m(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.GetBucketPolicyStatusCommand=gs.$Command=void 0;var Mfe=x(),Ffe=k(),W1=b();Object.defineProperty(gs,"$Command",{enumerable:!0,get:function(){return W1.Command}});var Lfe=w(),X1=q(),L_=class e extends W1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ffe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketPolicyStatusCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Lfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketPolicyStatus"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,X1.se_GetBucketPolicyStatusCommand)(n,t)}deserialize(n,t){return(0,X1.de_GetBucketPolicyStatusCommand)(n,t)}};gs.GetBucketPolicyStatusCommand=L_});var U_=m(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.GetBucketReplicationCommand=hs.$Command=void 0;var jfe=x(),zfe=k(),J1=b();Object.defineProperty(hs,"$Command",{enumerable:!0,get:function(){return J1.Command}});var Ufe=w(),Y1=q(),z_=class e extends J1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,zfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,jfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketReplicationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Ufe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketReplication"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Y1.se_GetBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,Y1.de_GetBucketReplicationCommand)(n,t)}};hs.GetBucketReplicationCommand=z_});var H_=m(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.GetBucketRequestPaymentCommand=_s.$Command=void 0;var Gfe=x(),Hfe=k(),Z1=b();Object.defineProperty(_s,"$Command",{enumerable:!0,get:function(){return Z1.Command}});var $fe=w(),Q1=q(),G_=class e extends Z1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Hfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Gfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketRequestPaymentCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[$fe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketRequestPayment"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Q1.se_GetBucketRequestPaymentCommand)(n,t)}deserialize(n,t){return(0,Q1.de_GetBucketRequestPaymentCommand)(n,t)}};_s.GetBucketRequestPaymentCommand=G_});var K_=m(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.GetBucketTaggingCommand=Cs.$Command=void 0;var Kfe=x(),Vfe=k(),tM=b();Object.defineProperty(Cs,"$Command",{enumerable:!0,get:function(){return tM.Command}});var Xfe=w(),eM=q(),$_=class e extends tM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Vfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Kfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Xfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,eM.se_GetBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,eM.de_GetBucketTaggingCommand)(n,t)}};Cs.GetBucketTaggingCommand=$_});var X_=m(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.GetBucketVersioningCommand=Ss.$Command=void 0;var Wfe=x(),Yfe=k(),rM=b();Object.defineProperty(Ss,"$Command",{enumerable:!0,get:function(){return rM.Command}});var Jfe=w(),nM=q(),V_=class e extends rM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Yfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Wfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketVersioningCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Jfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketVersioning"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,nM.se_GetBucketVersioningCommand)(n,t)}deserialize(n,t){return(0,nM.de_GetBucketVersioningCommand)(n,t)}};Ss.GetBucketVersioningCommand=V_});var Y_=m(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.GetBucketWebsiteCommand=bs.$Command=void 0;var Qfe=x(),Zfe=k(),sM=b();Object.defineProperty(bs,"$Command",{enumerable:!0,get:function(){return sM.Command}});var eye=w(),oM=q(),W_=class e extends sM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Zfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Qfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketWebsiteCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[eye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketWebsite"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,oM.se_GetBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,oM.de_GetBucketWebsiteCommand)(n,t)}};bs.GetBucketWebsiteCommand=W_});var Q_=m(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.GetObjectAclCommand=Es.$Command=void 0;var tye=x(),nye=k(),aM=b();Object.defineProperty(Es,"$Command",{enumerable:!0,get:function(){return aM.Command}});var rye=w(),iM=q(),J_=class e extends aM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,nye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,tye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[rye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,iM.se_GetObjectAclCommand)(n,t)}deserialize(n,t){return(0,iM.de_GetObjectAclCommand)(n,t)}};Es.GetObjectAclCommand=J_});var eC=m(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.GetObjectAttributesCommand=Ps.$Command=void 0;var oye=bt(),sye=x(),iye=k(),dM=b();Object.defineProperty(Ps,"$Command",{enumerable:!0,get:function(){return dM.Command}});var aye=w(),cye=Ye(),cM=q(),Z_=class e extends dM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,iye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,sye.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,oye.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectAttributesCommand",inputFilterSensitiveLog:cye.GetObjectAttributesRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[aye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectAttributes"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,cM.se_GetObjectAttributesCommand)(n,t)}deserialize(n,t){return(0,cM.de_GetObjectAttributesCommand)(n,t)}};Ps.GetObjectAttributesCommand=Z_});var nC=m(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.GetObjectCommand=vs.$Command=void 0;var dye=be(),lye=bt(),uye=x(),mye=k(),mM=b();Object.defineProperty(vs,"$Command",{enumerable:!0,get:function(){return mM.Command}});var pye=w(),lM=Ye(),uM=q(),tC=class e extends mM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,mye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,uye.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,lye.getSsecPlugin)(t)),this.middlewareStack.use((0,dye.getFlexibleChecksumsPlugin)(t,{input:this.input,requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC32","CRC32C","SHA256","SHA1"]}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectCommand",inputFilterSensitiveLog:lM.GetObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:lM.GetObjectOutputFilterSensitiveLog,[pye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,uM.se_GetObjectCommand)(n,t)}deserialize(n,t){return(0,uM.de_GetObjectCommand)(n,t)}};vs.GetObjectCommand=tC});var oC=m(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.GetObjectLegalHoldCommand=ws.$Command=void 0;var fye=x(),yye=k(),fM=b();Object.defineProperty(ws,"$Command",{enumerable:!0,get:function(){return fM.Command}});var gye=w(),pM=q(),rC=class e extends fM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,yye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,fye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectLegalHoldCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[gye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectLegalHold"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,pM.se_GetObjectLegalHoldCommand)(n,t)}deserialize(n,t){return(0,pM.de_GetObjectLegalHoldCommand)(n,t)}};ws.GetObjectLegalHoldCommand=rC});var iC=m(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.GetObjectLockConfigurationCommand=xs.$Command=void 0;var hye=x(),_ye=k(),gM=b();Object.defineProperty(xs,"$Command",{enumerable:!0,get:function(){return gM.Command}});var Cye=w(),yM=q(),sC=class e extends gM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_ye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectLockConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Cye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectLockConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,yM.se_GetObjectLockConfigurationCommand)(n,t)}deserialize(n,t){return(0,yM.de_GetObjectLockConfigurationCommand)(n,t)}};xs.GetObjectLockConfigurationCommand=sC});var cC=m(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.GetObjectRetentionCommand=ks.$Command=void 0;var Sye=x(),bye=k(),_M=b();Object.defineProperty(ks,"$Command",{enumerable:!0,get:function(){return _M.Command}});var Eye=w(),hM=q(),aC=class e extends _M.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,bye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Sye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectRetentionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Eye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectRetention"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,hM.se_GetObjectRetentionCommand)(n,t)}deserialize(n,t){return(0,hM.de_GetObjectRetentionCommand)(n,t)}};ks.GetObjectRetentionCommand=aC});var lC=m(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.GetObjectTaggingCommand=As.$Command=void 0;var Pye=x(),vye=k(),SM=b();Object.defineProperty(As,"$Command",{enumerable:!0,get:function(){return SM.Command}});var wye=w(),CM=q(),dC=class e extends SM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,vye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Pye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[wye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,CM.se_GetObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,CM.de_GetObjectTaggingCommand)(n,t)}};As.GetObjectTaggingCommand=dC});var mC=m(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.GetObjectTorrentCommand=Os.$Command=void 0;var xye=x(),kye=k(),EM=b();Object.defineProperty(Os,"$Command",{enumerable:!0,get:function(){return EM.Command}});var Aye=w(),Oye=Ye(),bM=q(),uC=class e extends EM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,kye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,xye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectTorrentCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:Oye.GetObjectTorrentOutputFilterSensitiveLog,[Aye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectTorrent"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,bM.se_GetObjectTorrentCommand)(n,t)}deserialize(n,t){return(0,bM.de_GetObjectTorrentCommand)(n,t)}};Os.GetObjectTorrentCommand=uC});var fC=m(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.GetPublicAccessBlockCommand=Ns.$Command=void 0;var Nye=x(),Iye=k(),vM=b();Object.defineProperty(Ns,"$Command",{enumerable:!0,get:function(){return vM.Command}});var Rye=w(),PM=q(),pC=class e extends vM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Iye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Nye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetPublicAccessBlockCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Rye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetPublicAccessBlock"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,PM.se_GetPublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,PM.de_GetPublicAccessBlockCommand)(n,t)}};Ns.GetPublicAccessBlockCommand=pC});var Ga=m(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.HeadBucketCommand=Is.$Command=void 0;var Tye=x(),Bye=k(),xM=b();Object.defineProperty(Is,"$Command",{enumerable:!0,get:function(){return xM.Command}});var qye=w(),wM=q(),yC=class e extends xM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Bye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Tye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"HeadBucketCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[qye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"HeadBucket"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,wM.se_HeadBucketCommand)(n,t)}deserialize(n,t){return(0,wM.de_HeadBucketCommand)(n,t)}};Is.HeadBucketCommand=yC});var Ha=m(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.HeadObjectCommand=Rs.$Command=void 0;var Dye=bt(),Mye=x(),Fye=k(),OM=b();Object.defineProperty(Rs,"$Command",{enumerable:!0,get:function(){return OM.Command}});var Lye=w(),kM=Ye(),AM=q(),gC=class e extends OM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Fye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mye.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Dye.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"HeadObjectCommand",inputFilterSensitiveLog:kM.HeadObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:kM.HeadObjectOutputFilterSensitiveLog,[Lye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"HeadObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,AM.se_HeadObjectCommand)(n,t)}deserialize(n,t){return(0,AM.de_HeadObjectCommand)(n,t)}};Rs.HeadObjectCommand=gC});var _C=m(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.ListBucketAnalyticsConfigurationsCommand=Ts.$Command=void 0;var jye=x(),zye=k(),IM=b();Object.defineProperty(Ts,"$Command",{enumerable:!0,get:function(){return IM.Command}});var Uye=w(),NM=q(),hC=class e extends IM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,zye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,jye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketAnalyticsConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Uye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketAnalyticsConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,NM.se_ListBucketAnalyticsConfigurationsCommand)(n,t)}deserialize(n,t){return(0,NM.de_ListBucketAnalyticsConfigurationsCommand)(n,t)}};Ts.ListBucketAnalyticsConfigurationsCommand=hC});var SC=m(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.ListBucketIntelligentTieringConfigurationsCommand=Bs.$Command=void 0;var Gye=x(),Hye=k(),TM=b();Object.defineProperty(Bs,"$Command",{enumerable:!0,get:function(){return TM.Command}});var $ye=w(),RM=q(),CC=class e extends TM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Hye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Gye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketIntelligentTieringConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[$ye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketIntelligentTieringConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,RM.se_ListBucketIntelligentTieringConfigurationsCommand)(n,t)}deserialize(n,t){return(0,RM.de_ListBucketIntelligentTieringConfigurationsCommand)(n,t)}};Bs.ListBucketIntelligentTieringConfigurationsCommand=CC});var EC=m(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.ListBucketInventoryConfigurationsCommand=qs.$Command=void 0;var Kye=x(),Vye=k(),qM=b();Object.defineProperty(qs,"$Command",{enumerable:!0,get:function(){return qM.Command}});var Xye=w(),Wye=Ye(),BM=q(),bC=class e extends qM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Vye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Kye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketInventoryConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:Wye.ListBucketInventoryConfigurationsOutputFilterSensitiveLog,[Xye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketInventoryConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,BM.se_ListBucketInventoryConfigurationsCommand)(n,t)}deserialize(n,t){return(0,BM.de_ListBucketInventoryConfigurationsCommand)(n,t)}};qs.ListBucketInventoryConfigurationsCommand=bC});var vC=m(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.ListBucketMetricsConfigurationsCommand=Ds.$Command=void 0;var Yye=x(),Jye=k(),MM=b();Object.defineProperty(Ds,"$Command",{enumerable:!0,get:function(){return MM.Command}});var Qye=w(),DM=q(),PC=class e extends MM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Jye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Yye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketMetricsConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Qye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketMetricsConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,DM.se_ListBucketMetricsConfigurationsCommand)(n,t)}deserialize(n,t){return(0,DM.de_ListBucketMetricsConfigurationsCommand)(n,t)}};Ds.ListBucketMetricsConfigurationsCommand=PC});var xC=m(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.ListBucketsCommand=Ms.$Command=void 0;var Zye=x(),ege=k(),LM=b();Object.defineProperty(Ms,"$Command",{enumerable:!0,get:function(){return LM.Command}});var tge=w(),FM=q(),wC=class e extends LM.Command{static getEndpointParameterInstructions(){return{ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ege.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Zye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[tge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBuckets"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,FM.se_ListBucketsCommand)(n,t)}deserialize(n,t){return(0,FM.de_ListBucketsCommand)(n,t)}};Ms.ListBucketsCommand=wC});var AC=m(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.ListMultipartUploadsCommand=Fs.$Command=void 0;var nge=x(),rge=k(),zM=b();Object.defineProperty(Fs,"$Command",{enumerable:!0,get:function(){return zM.Command}});var oge=w(),jM=q(),kC=class e extends zM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,rge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,nge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListMultipartUploadsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[oge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListMultipartUploads"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,jM.se_ListMultipartUploadsCommand)(n,t)}deserialize(n,t){return(0,jM.de_ListMultipartUploadsCommand)(n,t)}};Fs.ListMultipartUploadsCommand=kC});var NC=m(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.ListObjectsCommand=Ls.$Command=void 0;var sge=x(),ige=k(),GM=b();Object.defineProperty(Ls,"$Command",{enumerable:!0,get:function(){return GM.Command}});var age=w(),UM=q(),OC=class e extends GM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ige.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,sge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListObjectsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[age.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjects"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,UM.se_ListObjectsCommand)(n,t)}deserialize(n,t){return(0,UM.de_ListObjectsCommand)(n,t)}};Ls.ListObjectsCommand=OC});var Im=m(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.ListObjectsV2Command=js.$Command=void 0;var cge=x(),dge=k(),$M=b();Object.defineProperty(js,"$Command",{enumerable:!0,get:function(){return $M.Command}});var lge=w(),HM=q(),IC=class e extends $M.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,dge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,cge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListObjectsV2Command",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[lge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjectsV2"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,HM.se_ListObjectsV2Command)(n,t)}deserialize(n,t){return(0,HM.de_ListObjectsV2Command)(n,t)}};js.ListObjectsV2Command=IC});var TC=m(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.ListObjectVersionsCommand=zs.$Command=void 0;var uge=x(),mge=k(),VM=b();Object.defineProperty(zs,"$Command",{enumerable:!0,get:function(){return VM.Command}});var pge=w(),KM=q(),RC=class e extends VM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,mge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,uge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListObjectVersionsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[pge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjectVersions"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,KM.se_ListObjectVersionsCommand)(n,t)}deserialize(n,t){return(0,KM.de_ListObjectVersionsCommand)(n,t)}};zs.ListObjectVersionsCommand=RC});var Rm=m(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.ListPartsCommand=Us.$Command=void 0;var fge=bt(),yge=x(),gge=k(),WM=b();Object.defineProperty(Us,"$Command",{enumerable:!0,get:function(){return WM.Command}});var hge=w(),_ge=Ye(),XM=q(),BC=class e extends WM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,gge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,yge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,fge.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListPartsCommand",inputFilterSensitiveLog:_ge.ListPartsRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[hge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListParts"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,XM.se_ListPartsCommand)(n,t)}deserialize(n,t){return(0,XM.de_ListPartsCommand)(n,t)}};Us.ListPartsCommand=BC});var DC=m(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.PutBucketAccelerateConfigurationCommand=Gs.$Command=void 0;var Cge=be(),Sge=x(),bge=k(),JM=b();Object.defineProperty(Gs,"$Command",{enumerable:!0,get:function(){return JM.Command}});var Ege=w(),YM=q(),qC=class e extends JM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,bge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Sge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Cge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Ege.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAccelerateConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,YM.se_PutBucketAccelerateConfigurationCommand)(n,t)}deserialize(n,t){return(0,YM.de_PutBucketAccelerateConfigurationCommand)(n,t)}};Gs.PutBucketAccelerateConfigurationCommand=qC});var FC=m(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.PutBucketAclCommand=Hs.$Command=void 0;var Pge=be(),vge=x(),wge=k(),ZM=b();Object.defineProperty(Hs,"$Command",{enumerable:!0,get:function(){return ZM.Command}});var xge=w(),QM=q(),MC=class e extends ZM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,wge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,vge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Pge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[xge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,QM.se_PutBucketAclCommand)(n,t)}deserialize(n,t){return(0,QM.de_PutBucketAclCommand)(n,t)}};Hs.PutBucketAclCommand=MC});var jC=m($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.PutBucketAnalyticsConfigurationCommand=$s.$Command=void 0;var kge=x(),Age=k(),tF=b();Object.defineProperty($s,"$Command",{enumerable:!0,get:function(){return tF.Command}});var Oge=w(),eF=q(),LC=class e extends tF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Age.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,kge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Oge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAnalyticsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,eF.se_PutBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,eF.de_PutBucketAnalyticsConfigurationCommand)(n,t)}};$s.PutBucketAnalyticsConfigurationCommand=LC});var UC=m(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.PutBucketCorsCommand=Ks.$Command=void 0;var Nge=be(),Ige=x(),Rge=k(),rF=b();Object.defineProperty(Ks,"$Command",{enumerable:!0,get:function(){return rF.Command}});var Tge=w(),nF=q(),zC=class e extends rF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Rge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ige.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Nge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketCorsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Tge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketCors"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,nF.se_PutBucketCorsCommand)(n,t)}deserialize(n,t){return(0,nF.de_PutBucketCorsCommand)(n,t)}};Ks.PutBucketCorsCommand=zC});var HC=m(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.PutBucketEncryptionCommand=Vs.$Command=void 0;var Bge=be(),qge=x(),Dge=k(),sF=b();Object.defineProperty(Vs,"$Command",{enumerable:!0,get:function(){return sF.Command}});var Mge=w(),Fge=Ye(),oF=q(),GC=class e extends sF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Dge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,qge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Bge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketEncryptionCommand",inputFilterSensitiveLog:Fge.PutBucketEncryptionRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[Mge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketEncryption"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,oF.se_PutBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,oF.de_PutBucketEncryptionCommand)(n,t)}};Vs.PutBucketEncryptionCommand=GC});var KC=m(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.PutBucketIntelligentTieringConfigurationCommand=Xs.$Command=void 0;var Lge=x(),jge=k(),aF=b();Object.defineProperty(Xs,"$Command",{enumerable:!0,get:function(){return aF.Command}});var zge=w(),iF=q(),$C=class e extends aF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,jge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Lge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[zge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketIntelligentTieringConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,iF.se_PutBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,iF.de_PutBucketIntelligentTieringConfigurationCommand)(n,t)}};Xs.PutBucketIntelligentTieringConfigurationCommand=$C});var XC=m(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.PutBucketInventoryConfigurationCommand=Ws.$Command=void 0;var Uge=x(),Gge=k(),dF=b();Object.defineProperty(Ws,"$Command",{enumerable:!0,get:function(){return dF.Command}});var Hge=w(),$ge=Ye(),cF=q(),VC=class e extends dF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Gge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Uge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketInventoryConfigurationCommand",inputFilterSensitiveLog:$ge.PutBucketInventoryConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[Hge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketInventoryConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,cF.se_PutBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,cF.de_PutBucketInventoryConfigurationCommand)(n,t)}};Ws.PutBucketInventoryConfigurationCommand=VC});var YC=m(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.PutBucketLifecycleConfigurationCommand=Ys.$Command=void 0;var Kge=be(),Vge=x(),Xge=k(),uF=b();Object.defineProperty(Ys,"$Command",{enumerable:!0,get:function(){return uF.Command}});var Wge=w(),lF=q(),WC=class e extends uF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Xge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Kge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Wge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketLifecycleConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,lF.se_PutBucketLifecycleConfigurationCommand)(n,t)}deserialize(n,t){return(0,lF.de_PutBucketLifecycleConfigurationCommand)(n,t)}};Ys.PutBucketLifecycleConfigurationCommand=WC});var QC=m(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.PutBucketLoggingCommand=Js.$Command=void 0;var Yge=be(),Jge=x(),Qge=k(),pF=b();Object.defineProperty(Js,"$Command",{enumerable:!0,get:function(){return pF.Command}});var Zge=w(),mF=q(),JC=class e extends pF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Qge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Jge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Yge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketLoggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Zge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketLogging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,mF.se_PutBucketLoggingCommand)(n,t)}deserialize(n,t){return(0,mF.de_PutBucketLoggingCommand)(n,t)}};Js.PutBucketLoggingCommand=JC});var eS=m(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.PutBucketMetricsConfigurationCommand=Qs.$Command=void 0;var ehe=x(),the=k(),yF=b();Object.defineProperty(Qs,"$Command",{enumerable:!0,get:function(){return yF.Command}});var nhe=w(),fF=q(),ZC=class e extends yF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,the.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ehe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketMetricsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[nhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketMetricsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,fF.se_PutBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,fF.de_PutBucketMetricsConfigurationCommand)(n,t)}};Qs.PutBucketMetricsConfigurationCommand=ZC});var nS=m(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.PutBucketNotificationConfigurationCommand=Zs.$Command=void 0;var rhe=x(),ohe=k(),hF=b();Object.defineProperty(Zs,"$Command",{enumerable:!0,get:function(){return hF.Command}});var she=w(),gF=q(),tS=class e extends hF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ohe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,rhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketNotificationConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[she.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketNotificationConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,gF.se_PutBucketNotificationConfigurationCommand)(n,t)}deserialize(n,t){return(0,gF.de_PutBucketNotificationConfigurationCommand)(n,t)}};Zs.PutBucketNotificationConfigurationCommand=tS});var oS=m(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.PutBucketOwnershipControlsCommand=ei.$Command=void 0;var ihe=be(),ahe=x(),che=k(),CF=b();Object.defineProperty(ei,"$Command",{enumerable:!0,get:function(){return CF.Command}});var dhe=w(),_F=q(),rS=class e extends CF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,che.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ahe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,ihe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketOwnershipControlsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[dhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketOwnershipControls"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_F.se_PutBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,_F.de_PutBucketOwnershipControlsCommand)(n,t)}};ei.PutBucketOwnershipControlsCommand=rS});var iS=m(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.PutBucketPolicyCommand=ti.$Command=void 0;var lhe=be(),uhe=x(),mhe=k(),bF=b();Object.defineProperty(ti,"$Command",{enumerable:!0,get:function(){return bF.Command}});var phe=w(),SF=q(),sS=class e extends bF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,mhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,uhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,lhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketPolicyCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[phe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketPolicy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,SF.se_PutBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,SF.de_PutBucketPolicyCommand)(n,t)}};ti.PutBucketPolicyCommand=sS});var cS=m(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.PutBucketReplicationCommand=ni.$Command=void 0;var fhe=be(),yhe=x(),ghe=k(),PF=b();Object.defineProperty(ni,"$Command",{enumerable:!0,get:function(){return PF.Command}});var hhe=w(),EF=q(),aS=class e extends PF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ghe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,yhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,fhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketReplicationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[hhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketReplication"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,EF.se_PutBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,EF.de_PutBucketReplicationCommand)(n,t)}};ni.PutBucketReplicationCommand=aS});var lS=m(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.PutBucketRequestPaymentCommand=ri.$Command=void 0;var _he=be(),Che=x(),She=k(),wF=b();Object.defineProperty(ri,"$Command",{enumerable:!0,get:function(){return wF.Command}});var bhe=w(),vF=q(),dS=class e extends wF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,She.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Che.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,_he.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketRequestPaymentCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[bhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketRequestPayment"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,vF.se_PutBucketRequestPaymentCommand)(n,t)}deserialize(n,t){return(0,vF.de_PutBucketRequestPaymentCommand)(n,t)}};ri.PutBucketRequestPaymentCommand=dS});var mS=m(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.PutBucketTaggingCommand=oi.$Command=void 0;var Ehe=be(),Phe=x(),vhe=k(),kF=b();Object.defineProperty(oi,"$Command",{enumerable:!0,get:function(){return kF.Command}});var whe=w(),xF=q(),uS=class e extends kF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,vhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Phe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Ehe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[whe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,xF.se_PutBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,xF.de_PutBucketTaggingCommand)(n,t)}};oi.PutBucketTaggingCommand=uS});var fS=m(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.PutBucketVersioningCommand=si.$Command=void 0;var xhe=be(),khe=x(),Ahe=k(),OF=b();Object.defineProperty(si,"$Command",{enumerable:!0,get:function(){return OF.Command}});var Ohe=w(),AF=q(),pS=class e extends OF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ahe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,khe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,xhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketVersioningCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Ohe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketVersioning"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,AF.se_PutBucketVersioningCommand)(n,t)}deserialize(n,t){return(0,AF.de_PutBucketVersioningCommand)(n,t)}};si.PutBucketVersioningCommand=pS});var gS=m(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.PutBucketWebsiteCommand=ii.$Command=void 0;var Nhe=be(),Ihe=x(),Rhe=k(),IF=b();Object.defineProperty(ii,"$Command",{enumerable:!0,get:function(){return IF.Command}});var The=w(),NF=q(),yS=class e extends IF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Rhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ihe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Nhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketWebsiteCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[The.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketWebsite"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,NF.se_PutBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,NF.de_PutBucketWebsiteCommand)(n,t)}};ii.PutBucketWebsiteCommand=yS});var _S=m(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.PutObjectAclCommand=ai.$Command=void 0;var Bhe=be(),qhe=x(),Dhe=k(),TF=b();Object.defineProperty(ai,"$Command",{enumerable:!0,get:function(){return TF.Command}});var Mhe=w(),RF=q(),hS=class e extends TF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Dhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,qhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Bhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Mhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,RF.se_PutObjectAclCommand)(n,t)}deserialize(n,t){return(0,RF.de_PutObjectAclCommand)(n,t)}};ai.PutObjectAclCommand=hS});var SS=m(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.PutObjectCommand=ci.$Command=void 0;var Fhe=be(),Lhe=Or(),jhe=bt(),zhe=x(),Uhe=k(),DF=b();Object.defineProperty(ci,"$Command",{enumerable:!0,get:function(){return DF.Command}});var Ghe=w(),BF=Ye(),qF=q(),CS=class e extends DF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Uhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,zhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Lhe.getCheckContentLengthHeaderPlugin)(t)),this.middlewareStack.use((0,jhe.getSsecPlugin)(t)),this.middlewareStack.use((0,Fhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:BF.PutObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:BF.PutObjectOutputFilterSensitiveLog,[Ghe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,qF.se_PutObjectCommand)(n,t)}deserialize(n,t){return(0,qF.de_PutObjectCommand)(n,t)}};ci.PutObjectCommand=CS});var ES=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.PutObjectLegalHoldCommand=di.$Command=void 0;var Hhe=be(),$he=x(),Khe=k(),FF=b();Object.defineProperty(di,"$Command",{enumerable:!0,get:function(){return FF.Command}});var Vhe=w(),MF=q(),bS=class e extends FF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Khe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,$he.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Hhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectLegalHoldCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Vhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectLegalHold"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,MF.se_PutObjectLegalHoldCommand)(n,t)}deserialize(n,t){return(0,MF.de_PutObjectLegalHoldCommand)(n,t)}};di.PutObjectLegalHoldCommand=bS});var vS=m(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.PutObjectLockConfigurationCommand=li.$Command=void 0;var Xhe=be(),Whe=x(),Yhe=k(),jF=b();Object.defineProperty(li,"$Command",{enumerable:!0,get:function(){return jF.Command}});var Jhe=w(),LF=q(),PS=class e extends jF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Yhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Whe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Xhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectLockConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Jhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectLockConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,LF.se_PutObjectLockConfigurationCommand)(n,t)}deserialize(n,t){return(0,LF.de_PutObjectLockConfigurationCommand)(n,t)}};li.PutObjectLockConfigurationCommand=PS});var xS=m(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.PutObjectRetentionCommand=ui.$Command=void 0;var Qhe=be(),Zhe=x(),e_e=k(),UF=b();Object.defineProperty(ui,"$Command",{enumerable:!0,get:function(){return UF.Command}});var t_e=w(),zF=q(),wS=class e extends UF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,e_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Zhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Qhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectRetentionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[t_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectRetention"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,zF.se_PutObjectRetentionCommand)(n,t)}deserialize(n,t){return(0,zF.de_PutObjectRetentionCommand)(n,t)}};ui.PutObjectRetentionCommand=wS});var AS=m(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.PutObjectTaggingCommand=mi.$Command=void 0;var n_e=be(),r_e=x(),o_e=k(),HF=b();Object.defineProperty(mi,"$Command",{enumerable:!0,get:function(){return HF.Command}});var s_e=w(),GF=q(),kS=class e extends HF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,o_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,r_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,n_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[s_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,GF.se_PutObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,GF.de_PutObjectTaggingCommand)(n,t)}};mi.PutObjectTaggingCommand=kS});var NS=m(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.PutPublicAccessBlockCommand=pi.$Command=void 0;var i_e=be(),a_e=x(),c_e=k(),KF=b();Object.defineProperty(pi,"$Command",{enumerable:!0,get:function(){return KF.Command}});var d_e=w(),$F=q(),OS=class e extends KF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,c_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,a_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,i_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutPublicAccessBlockCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[d_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutPublicAccessBlock"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,$F.se_PutPublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,$F.de_PutPublicAccessBlockCommand)(n,t)}};pi.PutPublicAccessBlockCommand=OS});var RS=m(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.RestoreObjectCommand=fi.$Command=void 0;var l_e=be(),u_e=x(),m_e=k(),XF=b();Object.defineProperty(fi,"$Command",{enumerable:!0,get:function(){return XF.Command}});var p_e=w(),f_e=Zn(),VF=q(),IS=class e extends XF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,m_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,u_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,l_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"RestoreObjectCommand",inputFilterSensitiveLog:f_e.RestoreObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[p_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"RestoreObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,VF.se_RestoreObjectCommand)(n,t)}deserialize(n,t){return(0,VF.de_RestoreObjectCommand)(n,t)}};fi.RestoreObjectCommand=IS});var BS=m(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.SelectObjectContentCommand=yi.$Command=void 0;var y_e=bt(),g_e=x(),h_e=k(),JF=b();Object.defineProperty(yi,"$Command",{enumerable:!0,get:function(){return JF.Command}});var __e=w(),WF=Zn(),YF=q(),TS=class e extends JF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,h_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,g_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,y_e.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"SelectObjectContentCommand",inputFilterSensitiveLog:WF.SelectObjectContentRequestFilterSensitiveLog,outputFilterSensitiveLog:WF.SelectObjectContentOutputFilterSensitiveLog,[__e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"SelectObjectContent"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,YF.se_SelectObjectContentCommand)(n,t)}deserialize(n,t){return(0,YF.de_SelectObjectContentCommand)(n,t)}};yi.SelectObjectContentCommand=TS});var DS=m(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.UploadPartCommand=gi.$Command=void 0;var C_e=be(),S_e=bt(),b_e=x(),E_e=k(),eL=b();Object.defineProperty(gi,"$Command",{enumerable:!0,get:function(){return eL.Command}});var P_e=w(),QF=Zn(),ZF=q(),qS=class e extends eL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,E_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,b_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,S_e.getSsecPlugin)(t)),this.middlewareStack.use((0,C_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:QF.UploadPartRequestFilterSensitiveLog,outputFilterSensitiveLog:QF.UploadPartOutputFilterSensitiveLog,[P_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"UploadPart"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,ZF.se_UploadPartCommand)(n,t)}deserialize(n,t){return(0,ZF.de_UploadPartCommand)(n,t)}};gi.UploadPartCommand=qS});var FS=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.UploadPartCopyCommand=hi.$Command=void 0;var v_e=Or(),w_e=bt(),x_e=x(),k_e=k(),rL=b();Object.defineProperty(hi,"$Command",{enumerable:!0,get:function(){return rL.Command}});var A_e=w(),tL=Zn(),nL=q(),MS=class e extends rL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,k_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,x_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,v_e.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,w_e.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"UploadPartCopyCommand",inputFilterSensitiveLog:tL.UploadPartCopyRequestFilterSensitiveLog,outputFilterSensitiveLog:tL.UploadPartCopyOutputFilterSensitiveLog,[A_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"UploadPartCopy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,nL.se_UploadPartCopyCommand)(n,t)}deserialize(n,t){return(0,nL.de_UploadPartCopyCommand)(n,t)}};hi.UploadPartCopyCommand=MS});var jS=m(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.WriteGetObjectResponseCommand=_i.$Command=void 0;var O_e=x(),N_e=k(),sL=b();Object.defineProperty(_i,"$Command",{enumerable:!0,get:function(){return sL.Command}});var I_e=w(),R_e=Zn(),oL=q(),LS=class e extends sL.Command{static getEndpointParameterInstructions(){return{UseObjectLambdaEndpoint:{type:"staticContextParams",value:!0},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,N_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,O_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"WriteGetObjectResponseCommand",inputFilterSensitiveLog:R_e.WriteGetObjectResponseRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[I_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"WriteGetObjectResponse"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,oL.se_WriteGetObjectResponseCommand)(n,t)}deserialize(n,t){return(0,oL.de_WriteGetObjectResponseCommand)(n,t)}};_i.WriteGetObjectResponseCommand=LS});var iL=m(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.S3=void 0;var T_e=b(),B_e=dh(),q_e=uh(),D_e=ph(),M_e=yh(),F_e=hh(),L_e=Ch(),j_e=bh(),z_e=Ph(),U_e=wh(),G_e=kh(),H_e=Oh(),$_e=Ih(),K_e=Th(),V_e=qh(),X_e=Mh(),W_e=Lh(),Y_e=zh(),J_e=Gh(),Q_e=$h(),Z_e=i_(),eCe=c_(),tCe=l_(),nCe=m_(),rCe=f_(),oCe=g_(),sCe=__(),iCe=S_(),aCe=E_(),cCe=v_(),dCe=x_(),lCe=A_(),uCe=N_(),mCe=R_(),pCe=B_(),fCe=D_(),yCe=F_(),gCe=j_(),hCe=U_(),_Ce=H_(),CCe=K_(),SCe=X_(),bCe=Y_(),ECe=Q_(),PCe=eC(),vCe=nC(),wCe=oC(),xCe=iC(),kCe=cC(),ACe=lC(),OCe=mC(),NCe=fC(),ICe=Ga(),RCe=Ha(),TCe=_C(),BCe=SC(),qCe=EC(),DCe=vC(),MCe=xC(),FCe=AC(),LCe=NC(),jCe=Im(),zCe=TC(),UCe=Rm(),GCe=DC(),HCe=FC(),$Ce=jC(),KCe=UC(),VCe=HC(),XCe=KC(),WCe=XC(),YCe=YC(),JCe=QC(),QCe=eS(),ZCe=nS(),eSe=oS(),tSe=iS(),nSe=cS(),rSe=lS(),oSe=mS(),sSe=fS(),iSe=gS(),aSe=_S(),cSe=SS(),dSe=ES(),lSe=vS(),uSe=xS(),mSe=AS(),pSe=NS(),fSe=RS(),ySe=BS(),gSe=DS(),hSe=FS(),_Se=jS(),CSe=Ma(),SSe={AbortMultipartUploadCommand:B_e.AbortMultipartUploadCommand,CompleteMultipartUploadCommand:q_e.CompleteMultipartUploadCommand,CopyObjectCommand:D_e.CopyObjectCommand,CreateBucketCommand:M_e.CreateBucketCommand,CreateMultipartUploadCommand:F_e.CreateMultipartUploadCommand,DeleteBucketCommand:j_e.DeleteBucketCommand,DeleteBucketAnalyticsConfigurationCommand:L_e.DeleteBucketAnalyticsConfigurationCommand,DeleteBucketCorsCommand:z_e.DeleteBucketCorsCommand,DeleteBucketEncryptionCommand:U_e.DeleteBucketEncryptionCommand,DeleteBucketIntelligentTieringConfigurationCommand:G_e.DeleteBucketIntelligentTieringConfigurationCommand,DeleteBucketInventoryConfigurationCommand:H_e.DeleteBucketInventoryConfigurationCommand,DeleteBucketLifecycleCommand:$_e.DeleteBucketLifecycleCommand,DeleteBucketMetricsConfigurationCommand:K_e.DeleteBucketMetricsConfigurationCommand,DeleteBucketOwnershipControlsCommand:V_e.DeleteBucketOwnershipControlsCommand,DeleteBucketPolicyCommand:X_e.DeleteBucketPolicyCommand,DeleteBucketReplicationCommand:W_e.DeleteBucketReplicationCommand,DeleteBucketTaggingCommand:Y_e.DeleteBucketTaggingCommand,DeleteBucketWebsiteCommand:J_e.DeleteBucketWebsiteCommand,DeleteObjectCommand:Q_e.DeleteObjectCommand,DeleteObjectsCommand:Z_e.DeleteObjectsCommand,DeleteObjectTaggingCommand:eCe.DeleteObjectTaggingCommand,DeletePublicAccessBlockCommand:tCe.DeletePublicAccessBlockCommand,GetBucketAccelerateConfigurationCommand:nCe.GetBucketAccelerateConfigurationCommand,GetBucketAclCommand:rCe.GetBucketAclCommand,GetBucketAnalyticsConfigurationCommand:oCe.GetBucketAnalyticsConfigurationCommand,GetBucketCorsCommand:sCe.GetBucketCorsCommand,GetBucketEncryptionCommand:iCe.GetBucketEncryptionCommand,GetBucketIntelligentTieringConfigurationCommand:aCe.GetBucketIntelligentTieringConfigurationCommand,GetBucketInventoryConfigurationCommand:cCe.GetBucketInventoryConfigurationCommand,GetBucketLifecycleConfigurationCommand:dCe.GetBucketLifecycleConfigurationCommand,GetBucketLocationCommand:lCe.GetBucketLocationCommand,GetBucketLoggingCommand:uCe.GetBucketLoggingCommand,GetBucketMetricsConfigurationCommand:mCe.GetBucketMetricsConfigurationCommand,GetBucketNotificationConfigurationCommand:pCe.GetBucketNotificationConfigurationCommand,GetBucketOwnershipControlsCommand:fCe.GetBucketOwnershipControlsCommand,GetBucketPolicyCommand:yCe.GetBucketPolicyCommand,GetBucketPolicyStatusCommand:gCe.GetBucketPolicyStatusCommand,GetBucketReplicationCommand:hCe.GetBucketReplicationCommand,GetBucketRequestPaymentCommand:_Ce.GetBucketRequestPaymentCommand,GetBucketTaggingCommand:CCe.GetBucketTaggingCommand,GetBucketVersioningCommand:SCe.GetBucketVersioningCommand,GetBucketWebsiteCommand:bCe.GetBucketWebsiteCommand,GetObjectCommand:vCe.GetObjectCommand,GetObjectAclCommand:ECe.GetObjectAclCommand,GetObjectAttributesCommand:PCe.GetObjectAttributesCommand,GetObjectLegalHoldCommand:wCe.GetObjectLegalHoldCommand,GetObjectLockConfigurationCommand:xCe.GetObjectLockConfigurationCommand,GetObjectRetentionCommand:kCe.GetObjectRetentionCommand,GetObjectTaggingCommand:ACe.GetObjectTaggingCommand,GetObjectTorrentCommand:OCe.GetObjectTorrentCommand,GetPublicAccessBlockCommand:NCe.GetPublicAccessBlockCommand,HeadBucketCommand:ICe.HeadBucketCommand,HeadObjectCommand:RCe.HeadObjectCommand,ListBucketAnalyticsConfigurationsCommand:TCe.ListBucketAnalyticsConfigurationsCommand,ListBucketIntelligentTieringConfigurationsCommand:BCe.ListBucketIntelligentTieringConfigurationsCommand,ListBucketInventoryConfigurationsCommand:qCe.ListBucketInventoryConfigurationsCommand,ListBucketMetricsConfigurationsCommand:DCe.ListBucketMetricsConfigurationsCommand,ListBucketsCommand:MCe.ListBucketsCommand,ListMultipartUploadsCommand:FCe.ListMultipartUploadsCommand,ListObjectsCommand:LCe.ListObjectsCommand,ListObjectsV2Command:jCe.ListObjectsV2Command,ListObjectVersionsCommand:zCe.ListObjectVersionsCommand,ListPartsCommand:UCe.ListPartsCommand,PutBucketAccelerateConfigurationCommand:GCe.PutBucketAccelerateConfigurationCommand,PutBucketAclCommand:HCe.PutBucketAclCommand,PutBucketAnalyticsConfigurationCommand:$Ce.PutBucketAnalyticsConfigurationCommand,PutBucketCorsCommand:KCe.PutBucketCorsCommand,PutBucketEncryptionCommand:VCe.PutBucketEncryptionCommand,PutBucketIntelligentTieringConfigurationCommand:XCe.PutBucketIntelligentTieringConfigurationCommand,PutBucketInventoryConfigurationCommand:WCe.PutBucketInventoryConfigurationCommand,PutBucketLifecycleConfigurationCommand:YCe.PutBucketLifecycleConfigurationCommand,PutBucketLoggingCommand:JCe.PutBucketLoggingCommand,PutBucketMetricsConfigurationCommand:QCe.PutBucketMetricsConfigurationCommand,PutBucketNotificationConfigurationCommand:ZCe.PutBucketNotificationConfigurationCommand,PutBucketOwnershipControlsCommand:eSe.PutBucketOwnershipControlsCommand,PutBucketPolicyCommand:tSe.PutBucketPolicyCommand,PutBucketReplicationCommand:nSe.PutBucketReplicationCommand,PutBucketRequestPaymentCommand:rSe.PutBucketRequestPaymentCommand,PutBucketTaggingCommand:oSe.PutBucketTaggingCommand,PutBucketVersioningCommand:sSe.PutBucketVersioningCommand,PutBucketWebsiteCommand:iSe.PutBucketWebsiteCommand,PutObjectCommand:cSe.PutObjectCommand,PutObjectAclCommand:aSe.PutObjectAclCommand,PutObjectLegalHoldCommand:dSe.PutObjectLegalHoldCommand,PutObjectLockConfigurationCommand:lSe.PutObjectLockConfigurationCommand,PutObjectRetentionCommand:uSe.PutObjectRetentionCommand,PutObjectTaggingCommand:mSe.PutObjectTaggingCommand,PutPublicAccessBlockCommand:pSe.PutPublicAccessBlockCommand,RestoreObjectCommand:fSe.RestoreObjectCommand,SelectObjectContentCommand:ySe.SelectObjectContentCommand,UploadPartCommand:gSe.UploadPartCommand,UploadPartCopyCommand:hSe.UploadPartCopyCommand,WriteGetObjectResponseCommand:_Se.WriteGetObjectResponseCommand},Tm=class extends CSe.S3Client{};Bm.S3=Tm;(0,T_e.createAggregatedClient)(SSe,Tm)});var aL=m(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});var L=(te(),Y(ee));L.__exportStar(dh(),T);L.__exportStar(uh(),T);L.__exportStar(ph(),T);L.__exportStar(yh(),T);L.__exportStar(hh(),T);L.__exportStar(Ch(),T);L.__exportStar(bh(),T);L.__exportStar(Ph(),T);L.__exportStar(wh(),T);L.__exportStar(kh(),T);L.__exportStar(Oh(),T);L.__exportStar(Ih(),T);L.__exportStar(Th(),T);L.__exportStar(qh(),T);L.__exportStar(Mh(),T);L.__exportStar(Lh(),T);L.__exportStar(zh(),T);L.__exportStar(Gh(),T);L.__exportStar($h(),T);L.__exportStar(c_(),T);L.__exportStar(i_(),T);L.__exportStar(l_(),T);L.__exportStar(m_(),T);L.__exportStar(f_(),T);L.__exportStar(g_(),T);L.__exportStar(__(),T);L.__exportStar(S_(),T);L.__exportStar(E_(),T);L.__exportStar(v_(),T);L.__exportStar(x_(),T);L.__exportStar(A_(),T);L.__exportStar(N_(),T);L.__exportStar(R_(),T);L.__exportStar(B_(),T);L.__exportStar(D_(),T);L.__exportStar(F_(),T);L.__exportStar(j_(),T);L.__exportStar(U_(),T);L.__exportStar(H_(),T);L.__exportStar(K_(),T);L.__exportStar(X_(),T);L.__exportStar(Y_(),T);L.__exportStar(Q_(),T);L.__exportStar(eC(),T);L.__exportStar(nC(),T);L.__exportStar(oC(),T);L.__exportStar(iC(),T);L.__exportStar(cC(),T);L.__exportStar(lC(),T);L.__exportStar(mC(),T);L.__exportStar(fC(),T);L.__exportStar(Ga(),T);L.__exportStar(Ha(),T);L.__exportStar(_C(),T);L.__exportStar(SC(),T);L.__exportStar(EC(),T);L.__exportStar(vC(),T);L.__exportStar(xC(),T);L.__exportStar(AC(),T);L.__exportStar(TC(),T);L.__exportStar(NC(),T);L.__exportStar(Im(),T);L.__exportStar(Rm(),T);L.__exportStar(DC(),T);L.__exportStar(FC(),T);L.__exportStar(jC(),T);L.__exportStar(UC(),T);L.__exportStar(HC(),T);L.__exportStar(KC(),T);L.__exportStar(XC(),T);L.__exportStar(YC(),T);L.__exportStar(QC(),T);L.__exportStar(eS(),T);L.__exportStar(nS(),T);L.__exportStar(oS(),T);L.__exportStar(iS(),T);L.__exportStar(cS(),T);L.__exportStar(lS(),T);L.__exportStar(mS(),T);L.__exportStar(fS(),T);L.__exportStar(gS(),T);L.__exportStar(_S(),T);L.__exportStar(SS(),T);L.__exportStar(ES(),T);L.__exportStar(vS(),T);L.__exportStar(xS(),T);L.__exportStar(AS(),T);L.__exportStar(NS(),T);L.__exportStar(RS(),T);L.__exportStar(BS(),T);L.__exportStar(DS(),T);L.__exportStar(FS(),T);L.__exportStar(jS(),T)});var dL=m(cL=>{"use strict";Object.defineProperty(cL,"__esModule",{value:!0})});var lL=m(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.paginateListObjectsV2=void 0;var bSe=Im(),ESe=Ma(),PSe=async(e,n,...t)=>await e.send(new bSe.ListObjectsV2Command(n),...t);async function*vSe(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.ContinuationToken=r,n.MaxKeys=e.pageSize,e.client instanceof ESe.S3Client)s=await PSe(e.client,n,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield s;let c=r;r=s.NextContinuationToken,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}qm.paginateListObjectsV2=vSe});var uL=m(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.paginateListParts=void 0;var wSe=Rm(),xSe=Ma(),kSe=async(e,n,...t)=>await e.send(new wSe.ListPartsCommand(n),...t);async function*ASe(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.PartNumberMarker=r,n.MaxParts=e.pageSize,e.client instanceof xSe.S3Client)s=await kSe(e.client,n,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield s;let c=r;r=s.NextPartNumberMarker,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}Dm.paginateListParts=ASe});var mL=m($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var zS=(te(),Y(ee));zS.__exportStar(dL(),$a);zS.__exportStar(lL(),$a);zS.__exportStar(uL(),$a)});var Ka=m((rOe,hL)=>{var Mm=Object.defineProperty,OSe=Object.getOwnPropertyDescriptor,NSe=Object.getOwnPropertyNames,ISe=Object.prototype.hasOwnProperty,or=(e,n)=>Mm(e,"name",{value:n,configurable:!0}),RSe=(e,n)=>{for(var t in n)Mm(e,t,{get:n[t],enumerable:!0})},TSe=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of NSe(n))!ISe.call(e,o)&&o!==t&&Mm(e,o,{get:()=>n[o],enumerable:!(r=OSe(n,o))||r.enumerable});return e},BSe=e=>TSe(Mm({},"__esModule",{value:!0}),e),fL={};RSe(fL,{WaiterState:()=>gL,checkExceptions:()=>DSe,createWaiter:()=>zSe,waiterServiceDefaults:()=>yL});hL.exports=BSe(fL);var qSe=or(e=>new Promise(n=>setTimeout(n,e*1e3)),"sleep"),yL={minDelay:2,maxDelay:120},gL=(e=>(e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT",e))(gL||{}),DSe=or(e=>{if(e.state==="ABORTED"){let n=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw n.name="AbortError",n}else if(e.state==="TIMEOUT"){let n=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw n.name="TimeoutError",n}else if(e.state!=="SUCCESS")throw new Error(`${JSON.stringify({result:e})}`);return e},"checkExceptions"),MSe=or((e,n,t,r)=>{if(r>t)return n;let o=e*2**(r-1);return FSe(e,o)},"exponentialBackoffWithJitter"),FSe=or((e,n)=>e+Math.random()*(n-e),"randomInRange"),LSe=or(async({minDelay:e,maxDelay:n,maxWaitTime:t,abortController:r,client:o,abortSignal:s},c,i)=>{var u;let{state:l,reason:a}=await i(o,c);if(l!=="RETRY")return{state:l,reason:a};let y=1,g=Date.now()+t*1e3,C=Math.log(n/e)/Math.log(2)+1;for(;;){if((u=r==null?void 0:r.signal)!=null&&u.aborted||s!=null&&s.aborted)return{state:"ABORTED"};let v=MSe(e,n,C,y);if(Date.now()+v*1e3>g)return{state:"TIMEOUT"};await qSe(v);let{state:A,reason:E}=await i(o,c);if(A!=="RETRY")return{state:A,reason:E};y+=1}},"runPolling"),jSe=or(e=>{if(e.maxWaitTime<1)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<1)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<1)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelaynew Promise(n=>{e.onabort=()=>n({state:"ABORTED"})}),"abortTimeout"),zSe=or(async(e,n,t)=>{let r={...yL,...e};jSe(r);let o=[LSe(r,n,t)];return e.abortController&&o.push(pL(e.abortController.signal)),e.abortSignal&&o.push(pL(e.abortSignal)),Promise.race(o)},"createWaiter")});var CL=m(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.waitUntilBucketExists=Si.waitForBucketExists=void 0;var Ci=Ka(),USe=Ga(),_L=async(e,n)=>{let t;try{return t=await e.send(new USe.HeadBucketCommand(n)),{state:Ci.WaiterState.SUCCESS,reason:t}}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Ci.WaiterState.RETRY,reason:t}}return{state:Ci.WaiterState.RETRY,reason:t}},GSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Ci.createWaiter)({...t,...e},n,_L)};Si.waitForBucketExists=GSe;var HSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Ci.createWaiter)({...t,...e},n,_L);return(0,Ci.checkExceptions)(r)};Si.waitUntilBucketExists=HSe});var bL=m(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.waitUntilBucketNotExists=bi.waitForBucketNotExists=void 0;var Va=Ka(),$Se=Ga(),SL=async(e,n)=>{let t;try{t=await e.send(new $Se.HeadBucketCommand(n))}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Va.WaiterState.SUCCESS,reason:t}}return{state:Va.WaiterState.RETRY,reason:t}},KSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Va.createWaiter)({...t,...e},n,SL)};bi.waitForBucketNotExists=KSe;var VSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Va.createWaiter)({...t,...e},n,SL);return(0,Va.checkExceptions)(r)};bi.waitUntilBucketNotExists=VSe});var PL=m(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.waitUntilObjectExists=Pi.waitForObjectExists=void 0;var Ei=Ka(),XSe=Ha(),EL=async(e,n)=>{let t;try{return t=await e.send(new XSe.HeadObjectCommand(n)),{state:Ei.WaiterState.SUCCESS,reason:t}}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Ei.WaiterState.RETRY,reason:t}}return{state:Ei.WaiterState.RETRY,reason:t}},WSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Ei.createWaiter)({...t,...e},n,EL)};Pi.waitForObjectExists=WSe;var YSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Ei.createWaiter)({...t,...e},n,EL);return(0,Ei.checkExceptions)(r)};Pi.waitUntilObjectExists=YSe});var wL=m(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.waitUntilObjectNotExists=vi.waitForObjectNotExists=void 0;var Xa=Ka(),JSe=Ha(),vL=async(e,n)=>{let t;try{t=await e.send(new JSe.HeadObjectCommand(n))}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Xa.WaiterState.SUCCESS,reason:t}}return{state:Xa.WaiterState.RETRY,reason:t}},QSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Xa.createWaiter)({...t,...e},n,vL)};vi.waitForObjectNotExists=QSe;var ZSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Xa.createWaiter)({...t,...e},n,vL);return(0,Xa.checkExceptions)(r)};vi.waitUntilObjectNotExists=ZSe});var xL=m(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});var Fm=(te(),Y(ee));Fm.__exportStar(CL(),wi);Fm.__exportStar(bL(),wi);Fm.__exportStar(PL(),wi);Fm.__exportStar(wL(),wi)});var AL=m(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});var kL=(te(),Y(ee));kL.__exportStar(Ye(),Lm);kL.__exportStar(Zn(),Lm)});var OL=m(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.S3ServiceException=void 0;var xi=(te(),Y(ee));xi.__exportStar(Ma(),Qt);xi.__exportStar(iL(),Qt);xi.__exportStar(aL(),Qt);xi.__exportStar(mL(),Qt);xi.__exportStar(xL(),Qt);xi.__exportStar(AL(),Qt);var ebe=Fa();Object.defineProperty(Qt,"S3ServiceException",{enumerable:!0,get:function(){return ebe.S3ServiceException}})});var rbe={};Ai(rbe,{handler:()=>nbe});module.exports=Y(rbe);var NL=Oi(OL()),IL=Oi(require("delay")),tbe=new NL.S3;async function nbe(){console.log(tbe),await(0,IL.default)(5)}0&&(module.exports={handler}); +`);let o=r.parse(t),s="#text",c=Object.keys(o)[0],i=o[c];return i[s]&&(i[c]=i[s],delete i[s]),(0,d.getValueFromTextNode)(i)}return{}}),M=async(e,n)=>{let t=await Q(e,n);return t.Error&&(t.Error.message=t.Error.message??t.Error.Message),t},F=(e,n)=>{if((n==null?void 0:n.Code)!==void 0)return n.Code;if(e.statusCode==404)return"NotFound"}});var dh=m(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.AbortMultipartUploadCommand=Io.$Command=void 0;var hue=x(),_ue=k(),cD=b();Object.defineProperty(Io,"$Command",{enumerable:!0,get:function(){return cD.Command}});var Cue=w(),aD=q(),ch=class e extends cD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_ue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"AbortMultipartUploadCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Cue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"AbortMultipartUpload"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,aD.se_AbortMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,aD.de_AbortMultipartUploadCommand)(n,t)}};Io.AbortMultipartUploadCommand=ch});var bt=m(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.getSsecPlugin=En.ssecMiddlewareOptions=En.ssecMiddleware=void 0;function dD(e){return n=>async t=>{let r={...t.input},o=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of o){let c=r[s.target];if(c){let i=ArrayBuffer.isView(c)?new Uint8Array(c.buffer,c.byteOffset,c.byteLength):typeof c=="string"?e.utf8Decoder(c):new Uint8Array(c),u=e.base64Encoder(i),l=new e.md5;l.update(i),r={...r,[s.target]:u,[s.hash]:e.base64Encoder(await l.digest())}}}return n({...t,input:r})}}En.ssecMiddleware=dD;En.ssecMiddlewareOptions={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0};var Sue=e=>({applyToStack:n=>{n.add(dD(e),En.ssecMiddlewareOptions)}});En.getSsecPlugin=Sue});var uh=m(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.CompleteMultipartUploadCommand=Ro.$Command=void 0;var bue=Or(),Eue=bt(),Pue=x(),vue=k(),mD=b();Object.defineProperty(Ro,"$Command",{enumerable:!0,get:function(){return mD.Command}});var wue=w(),lD=Ye(),uD=q(),lh=class e extends mD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,vue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Pue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,bue.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,Eue.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:lD.CompleteMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:lD.CompleteMultipartUploadOutputFilterSensitiveLog,[wue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CompleteMultipartUpload"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,uD.se_CompleteMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,uD.de_CompleteMultipartUploadCommand)(n,t)}};Ro.CompleteMultipartUploadCommand=lh});var ph=m(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.CopyObjectCommand=To.$Command=void 0;var xue=Or(),kue=bt(),Aue=x(),Oue=k(),yD=b();Object.defineProperty(To,"$Command",{enumerable:!0,get:function(){return yD.Command}});var Nue=w(),pD=Ye(),fD=q(),mh=class e extends yD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Oue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Aue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,xue.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,kue.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CopyObjectCommand",inputFilterSensitiveLog:pD.CopyObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:pD.CopyObjectOutputFilterSensitiveLog,[Nue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CopyObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,fD.se_CopyObjectCommand)(n,t)}deserialize(n,t){return(0,fD.de_CopyObjectCommand)(n,t)}};To.CopyObjectCommand=mh});var hD=m(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.getLocationConstraintPlugin=Pn.locationConstraintMiddlewareOptions=Pn.locationConstraintMiddleware=void 0;function gD(e){return n=>async t=>{let{CreateBucketConfiguration:r}=t.input,o=await e.region();return(!r||!r.LocationConstraint)&&(t={...t,input:{...t.input,CreateBucketConfiguration:o==="us-east-1"?void 0:{LocationConstraint:o}}}),n(t)}}Pn.locationConstraintMiddleware=gD;Pn.locationConstraintMiddlewareOptions={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0};var Iue=e=>({applyToStack:n=>{n.add(gD(e),Pn.locationConstraintMiddlewareOptions)}});Pn.getLocationConstraintPlugin=Iue});var yh=m(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.CreateBucketCommand=Bo.$Command=void 0;var Rue=hD(),Tue=x(),Bue=k(),CD=b();Object.defineProperty(Bo,"$Command",{enumerable:!0,get:function(){return CD.Command}});var que=w(),_D=q(),fh=class e extends CD.Command{static getEndpointParameterInstructions(){return{DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Bue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Tue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Rue.getLocationConstraintPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CreateBucketCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[que.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CreateBucket"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_D.se_CreateBucketCommand)(n,t)}deserialize(n,t){return(0,_D.de_CreateBucketCommand)(n,t)}};Bo.CreateBucketCommand=fh});var hh=m(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.CreateMultipartUploadCommand=qo.$Command=void 0;var Due=bt(),Mue=x(),Fue=k(),ED=b();Object.defineProperty(qo,"$Command",{enumerable:!0,get:function(){return ED.Command}});var Lue=w(),SD=Ye(),bD=q(),gh=class e extends ED.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Fue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Due.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:SD.CreateMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:SD.CreateMultipartUploadOutputFilterSensitiveLog,[Lue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CreateMultipartUpload"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,bD.se_CreateMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,bD.de_CreateMultipartUploadCommand)(n,t)}};qo.CreateMultipartUploadCommand=gh});var Ch=m(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.DeleteBucketAnalyticsConfigurationCommand=Do.$Command=void 0;var jue=x(),zue=k(),vD=b();Object.defineProperty(Do,"$Command",{enumerable:!0,get:function(){return vD.Command}});var Uue=w(),PD=q(),_h=class e extends vD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,zue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,jue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Uue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketAnalyticsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,PD.se_DeleteBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,PD.de_DeleteBucketAnalyticsConfigurationCommand)(n,t)}};Do.DeleteBucketAnalyticsConfigurationCommand=_h});var bh=m(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.DeleteBucketCommand=Mo.$Command=void 0;var Gue=x(),Hue=k(),xD=b();Object.defineProperty(Mo,"$Command",{enumerable:!0,get:function(){return xD.Command}});var $ue=w(),wD=q(),Sh=class e extends xD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Hue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Gue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[$ue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucket"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,wD.se_DeleteBucketCommand)(n,t)}deserialize(n,t){return(0,wD.de_DeleteBucketCommand)(n,t)}};Mo.DeleteBucketCommand=Sh});var Ph=m(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.DeleteBucketCorsCommand=Fo.$Command=void 0;var Kue=x(),Vue=k(),AD=b();Object.defineProperty(Fo,"$Command",{enumerable:!0,get:function(){return AD.Command}});var Xue=w(),kD=q(),Eh=class e extends AD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Vue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Kue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketCorsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Xue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketCors"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,kD.se_DeleteBucketCorsCommand)(n,t)}deserialize(n,t){return(0,kD.de_DeleteBucketCorsCommand)(n,t)}};Fo.DeleteBucketCorsCommand=Eh});var wh=m(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.DeleteBucketEncryptionCommand=Lo.$Command=void 0;var Wue=x(),Yue=k(),ND=b();Object.defineProperty(Lo,"$Command",{enumerable:!0,get:function(){return ND.Command}});var Jue=w(),OD=q(),vh=class e extends ND.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Yue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Wue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketEncryptionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Jue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketEncryption"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,OD.se_DeleteBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,OD.de_DeleteBucketEncryptionCommand)(n,t)}};Lo.DeleteBucketEncryptionCommand=vh});var kh=m(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.DeleteBucketIntelligentTieringConfigurationCommand=jo.$Command=void 0;var Que=x(),Zue=k(),RD=b();Object.defineProperty(jo,"$Command",{enumerable:!0,get:function(){return RD.Command}});var eme=w(),ID=q(),xh=class e extends RD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Zue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Que.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[eme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketIntelligentTieringConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,ID.se_DeleteBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,ID.de_DeleteBucketIntelligentTieringConfigurationCommand)(n,t)}};jo.DeleteBucketIntelligentTieringConfigurationCommand=xh});var Oh=m(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.DeleteBucketInventoryConfigurationCommand=zo.$Command=void 0;var tme=x(),nme=k(),BD=b();Object.defineProperty(zo,"$Command",{enumerable:!0,get:function(){return BD.Command}});var rme=w(),TD=q(),Ah=class e extends BD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,nme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,tme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketInventoryConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[rme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketInventoryConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,TD.se_DeleteBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,TD.de_DeleteBucketInventoryConfigurationCommand)(n,t)}};zo.DeleteBucketInventoryConfigurationCommand=Ah});var Ih=m(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.DeleteBucketLifecycleCommand=Uo.$Command=void 0;var ome=x(),sme=k(),DD=b();Object.defineProperty(Uo,"$Command",{enumerable:!0,get:function(){return DD.Command}});var ime=w(),qD=q(),Nh=class e extends DD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,sme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ome.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketLifecycleCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ime.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketLifecycle"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,qD.se_DeleteBucketLifecycleCommand)(n,t)}deserialize(n,t){return(0,qD.de_DeleteBucketLifecycleCommand)(n,t)}};Uo.DeleteBucketLifecycleCommand=Nh});var Th=m(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.DeleteBucketMetricsConfigurationCommand=Go.$Command=void 0;var ame=x(),cme=k(),FD=b();Object.defineProperty(Go,"$Command",{enumerable:!0,get:function(){return FD.Command}});var dme=w(),MD=q(),Rh=class e extends FD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,cme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ame.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketMetricsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[dme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketMetricsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,MD.se_DeleteBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,MD.de_DeleteBucketMetricsConfigurationCommand)(n,t)}};Go.DeleteBucketMetricsConfigurationCommand=Rh});var qh=m(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.DeleteBucketOwnershipControlsCommand=Ho.$Command=void 0;var lme=x(),ume=k(),jD=b();Object.defineProperty(Ho,"$Command",{enumerable:!0,get:function(){return jD.Command}});var mme=w(),LD=q(),Bh=class e extends jD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ume.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,lme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketOwnershipControlsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[mme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketOwnershipControls"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,LD.se_DeleteBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,LD.de_DeleteBucketOwnershipControlsCommand)(n,t)}};Ho.DeleteBucketOwnershipControlsCommand=Bh});var Mh=m($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.DeleteBucketPolicyCommand=$o.$Command=void 0;var pme=x(),fme=k(),UD=b();Object.defineProperty($o,"$Command",{enumerable:!0,get:function(){return UD.Command}});var yme=w(),zD=q(),Dh=class e extends UD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,fme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,pme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketPolicyCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[yme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketPolicy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,zD.se_DeleteBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,zD.de_DeleteBucketPolicyCommand)(n,t)}};$o.DeleteBucketPolicyCommand=Dh});var Lh=m(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.DeleteBucketReplicationCommand=Ko.$Command=void 0;var gme=x(),hme=k(),HD=b();Object.defineProperty(Ko,"$Command",{enumerable:!0,get:function(){return HD.Command}});var _me=w(),GD=q(),Fh=class e extends HD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,hme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,gme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketReplicationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[_me.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketReplication"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,GD.se_DeleteBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,GD.de_DeleteBucketReplicationCommand)(n,t)}};Ko.DeleteBucketReplicationCommand=Fh});var zh=m(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.DeleteBucketTaggingCommand=Vo.$Command=void 0;var Cme=x(),Sme=k(),KD=b();Object.defineProperty(Vo,"$Command",{enumerable:!0,get:function(){return KD.Command}});var bme=w(),$D=q(),jh=class e extends KD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Sme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Cme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[bme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,$D.se_DeleteBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,$D.de_DeleteBucketTaggingCommand)(n,t)}};Vo.DeleteBucketTaggingCommand=jh});var Gh=m(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.DeleteBucketWebsiteCommand=Xo.$Command=void 0;var Eme=x(),Pme=k(),XD=b();Object.defineProperty(Xo,"$Command",{enumerable:!0,get:function(){return XD.Command}});var vme=w(),VD=q(),Uh=class e extends XD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Pme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Eme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteBucketWebsiteCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[vme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketWebsite"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,VD.se_DeleteBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,VD.de_DeleteBucketWebsiteCommand)(n,t)}};Xo.DeleteBucketWebsiteCommand=Uh});var $h=m(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.DeleteObjectCommand=Wo.$Command=void 0;var wme=x(),xme=k(),YD=b();Object.defineProperty(Wo,"$Command",{enumerable:!0,get:function(){return YD.Command}});var kme=w(),WD=q(),Hh=class e extends YD.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,xme.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,wme.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[kme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,WD.se_DeleteObjectCommand)(n,t)}deserialize(n,t){return(0,WD.de_DeleteObjectCommand)(n,t)}};Wo.DeleteObjectCommand=Hh});var Yo=m(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.ChecksumLocation=tr.ChecksumAlgorithm=void 0;var Ame;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.SHA1="SHA1",e.SHA256="SHA256"})(Ame=tr.ChecksumAlgorithm||(tr.ChecksumAlgorithm={}));var Ome;(function(e){e.HEADER="header",e.TRAILER="trailer"})(Ome=tr.ChecksumLocation||(tr.ChecksumLocation={}))});var Kh=m(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.PRIORITY_ORDER_ALGORITHMS=Jo.CLIENT_SUPPORTED_ALGORITHMS=void 0;var nr=Yo();Jo.CLIENT_SUPPORTED_ALGORITHMS=[nr.ChecksumAlgorithm.CRC32,nr.ChecksumAlgorithm.CRC32C,nr.ChecksumAlgorithm.SHA1,nr.ChecksumAlgorithm.SHA256];Jo.PRIORITY_ORDER_ALGORITHMS=[nr.ChecksumAlgorithm.CRC32,nr.ChecksumAlgorithm.CRC32C,nr.ChecksumAlgorithm.SHA1,nr.ChecksumAlgorithm.SHA256]});var QD=m(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.getChecksumAlgorithmForRequest=void 0;var Nme=Yo(),JD=Kh(),Ime=(e,{requestChecksumRequired:n,requestAlgorithmMember:t})=>{if(!t||!e[t])return n?Nme.ChecksumAlgorithm.MD5:void 0;let r=e[t];if(!JD.CLIENT_SUPPORTED_ALGORITHMS.includes(r))throw new Error(`The checksum algorithm "${r}" is not supported by the client. Select one of ${JD.CLIENT_SUPPORTED_ALGORITHMS}.`);return r};_m.getChecksumAlgorithmForRequest=Ime});var Vh=m(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.getChecksumLocationName=void 0;var Rme=Yo(),Tme=e=>e===Rme.ChecksumAlgorithm.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`;Cm.getChecksumLocationName=Tme});var ZD=m(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.hasHeader=void 0;var Bme=(e,n)=>{let t=e.toLowerCase();for(let r of Object.keys(n))if(t===r.toLowerCase())return!0;return!1};Sm.hasHeader=Bme});var Em=m(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.isStreaming=void 0;var qme=sc(),Dme=e=>e!==void 0&&typeof e!="string"&&!ArrayBuffer.isView(e)&&!(0,qme.isArrayBuffer)(e);bm.isStreaming=Dme});var Jh={};Ai(Jh,{__assign:()=>Wh,__asyncDelegator:()=>Wme,__asyncGenerator:()=>Xme,__asyncValues:()=>Yme,__await:()=>za,__awaiter:()=>Ume,__classPrivateFieldGet:()=>epe,__classPrivateFieldSet:()=>tpe,__createBinding:()=>Hme,__decorate:()=>Lme,__exportStar:()=>$me,__extends:()=>Mme,__generator:()=>Gme,__importDefault:()=>Zme,__importStar:()=>Qme,__makeTemplateObject:()=>Jme,__metadata:()=>zme,__param:()=>jme,__read:()=>e1,__rest:()=>Fme,__spread:()=>Kme,__spreadArrays:()=>Vme,__values:()=>Yh});function Mme(e,n){Xh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function Fme(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;i--)(c=e[i])&&(s=(o<3?c(s):o>3?c(n,t,s):c(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function jme(e,n){return function(t,r){n(t,r,e)}}function zme(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)}function Ume(e,n,t,r){function o(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function i(a){try{l(r.next(a))}catch(y){c(y)}}function u(a){try{l(r.throw(a))}catch(y){c(y)}}function l(a){a.done?s(a.value):o(a.value).then(i,u)}l((r=r.apply(e,n||[])).next())})}function Gme(e,n){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,c;return c={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function i(l){return function(a){return u([l,a])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,o&&(s=l[0]&2?o.return:l[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;switch(o=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function e1(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,s=[],c;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){c={error:i}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return s}function Kme(){for(var e=[],n=0;n1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(v){y(s[0][3],v)}}function u(g){g.value instanceof za?Promise.resolve(g.value.v).then(l,a):y(s[0][2],g)}function l(g){i("next",g)}function a(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function Wme(e){var n,t;return n={},r("next"),r("throw",function(o){throw o}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(o,s){n[o]=e[o]?function(c){return(t=!t)?{value:za(e[o](c)),done:o==="return"}:s?s(c):c}:s}}function Yme(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof Yh=="function"?Yh(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(c){return new Promise(function(i,u){c=e[s](c),o(i,u,c.done,c.value)})}}function o(s,c,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},c)}}function Jme(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function Qme(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function Zme(e){return e&&e.__esModule?e:{default:e}}function epe(e,n){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return n.get(e)}function tpe(e,n,t){if(!n.has(e))throw new TypeError("attempted to set private field on non-instance");return n.set(e,t),t}var Xh,Wh,Qh=Le(()=>{Xh=function(e,n){return Xh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])},Xh(e,n)};Wh=function(){return Wh=Object.assign||function(n){for(var t,r=1,o=arguments.length;r{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.AwsCrc32c=void 0;var t1=(Qh(),Y(Jh)),Zh=ji(),n1=e_(),npe=function(){function e(){this.crc32c=new n1.Crc32c}return e.prototype.update=function(n){(0,Zh.isEmptyData)(n)||this.crc32c.update((0,Zh.convertToBuffer)(n))},e.prototype.digest=function(){return t1.__awaiter(this,void 0,void 0,function(){return t1.__generator(this,function(n){return[2,(0,Zh.numToUint8)(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new n1.Crc32c},e}();Pm.AwsCrc32c=npe});var e_=m(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.AwsCrc32c=rr.Crc32c=rr.crc32c=void 0;var rpe=(Qh(),Y(Jh)),ope=ji();function spe(e){return new o1().update(e).digest()}rr.crc32c=spe;var o1=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(n){var t,r;try{for(var o=rpe.__values(n),s=o.next();!s.done;s=o.next()){var c=s.value;this.checksum=this.checksum>>>8^ape[(this.checksum^c)&255]}}catch(i){t={error:i}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();rr.Crc32c=o1;var ipe=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],ape=(0,ope.uint32ArrayFrom)(ipe),cpe=r1();Object.defineProperty(rr,"AwsCrc32c",{enumerable:!0,get:function(){return cpe.AwsCrc32c}})});var t_=m(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.selectChecksumAlgorithmFunction=void 0;var dpe=zi(),lpe=e_(),Ua=Yo(),upe=(e,n)=>({[Ua.ChecksumAlgorithm.MD5]:n.md5,[Ua.ChecksumAlgorithm.CRC32]:dpe.AwsCrc32,[Ua.ChecksumAlgorithm.CRC32C]:lpe.AwsCrc32c,[Ua.ChecksumAlgorithm.SHA1]:n.sha1,[Ua.ChecksumAlgorithm.SHA256]:n.sha256})[e];vm.selectChecksumAlgorithmFunction=upe});var n_=m(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.stringHasher=void 0;var mpe=yt(),ppe=(e,n)=>{let t=new e;return t.update((0,mpe.toUint8Array)(n||"")),t.digest()};wm.stringHasher=ppe});var r_=m(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.flexibleChecksumsMiddleware=void 0;var fpe=Ne(),ype=QD(),gpe=Vh(),hpe=ZD(),_pe=Em(),Cpe=t_(),Spe=n_(),bpe=(e,n)=>t=>async r=>{if(!fpe.HttpRequest.isInstance(r.request))return t(r);let{request:o}=r,{body:s,headers:c}=o,{base64Encoder:i,streamHasher:u}=e,{input:l,requestChecksumRequired:a,requestAlgorithmMember:y}=n,g=(0,ype.getChecksumAlgorithmForRequest)(l,{requestChecksumRequired:a,requestAlgorithmMember:y}),C=s,v=c;if(g){let E=(0,gpe.getChecksumLocationName)(g),G=(0,Cpe.selectChecksumAlgorithmFunction)(g,e);if((0,_pe.isStreaming)(s)){let{getAwsChunkedEncodingStream:ye,bodyLengthChecker:nt}=e;C=ye(s,{base64Encoder:i,bodyLengthChecker:nt,checksumLocationName:E,checksumAlgorithmFn:G,streamHasher:u}),v={...c,"content-encoding":c["content-encoding"]?`${c["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":c["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":E},delete v["content-length"]}else if(!(0,hpe.hasHeader)(E,c)){let ye=await(0,Spe.stringHasher)(G,s);v={...c,[E]:i(ye)}}}return await t({...r,request:{...o,headers:v,body:C}})};xm.flexibleChecksumsMiddleware=bpe});var s1=m(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.createReadStreamOnBuffer=void 0;var Epe=require("stream");function Ppe(e){let n=new Epe.Transform;return n.push(e),n.push(null),n}km.createReadStreamOnBuffer=Ppe});var i1=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.getChecksum=void 0;var vpe=Em(),wpe=n_(),xpe=async(e,{streamHasher:n,checksumAlgorithmFn:t,base64Encoder:r})=>{let o=(0,vpe.isStreaming)(e)?n(t,e):(0,wpe.stringHasher)(t,e);return r(await o)};Am.getChecksum=xpe});var c1=m(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.getChecksumAlgorithmListForResponse=void 0;var a1=Kh(),kpe=(e=[])=>{let n=[];for(let t of a1.PRIORITY_ORDER_ALGORITHMS)!e.includes(t)||!a1.CLIENT_SUPPORTED_ALGORITHMS.includes(t)||n.push(t);return n};Om.getChecksumAlgorithmListForResponse=kpe});var d1=m(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.validateChecksumFromResponse=void 0;var Ape=i1(),Ope=c1(),Npe=Vh(),Ipe=t_(),Rpe=async(e,{config:n,responseAlgorithms:t})=>{let r=(0,Ope.getChecksumAlgorithmListForResponse)(t),{body:o,headers:s}=e;for(let c of r){let i=(0,Npe.getChecksumLocationName)(c),u=s[i];if(u){let l=(0,Ipe.selectChecksumAlgorithmFunction)(c,n),{streamHasher:a,base64Encoder:y}=n,g=await(0,Ape.getChecksum)(o,{streamHasher:a,checksumAlgorithmFn:l,base64Encoder:y});if(g===u)break;throw new Error(`Checksum mismatch: expected "${g}" but received "${u}" in response header "${i}".`)}}};Nm.validateChecksumFromResponse=Rpe});var u1=m(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.flexibleChecksumsResponseMiddleware=Qo.flexibleChecksumsResponseMiddlewareOptions=void 0;var Tpe=Ne(),Bpe=Em(),l1=s1(),qpe=d1();Qo.flexibleChecksumsResponseMiddlewareOptions={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0};var Dpe=(e,n)=>t=>async r=>{if(!Tpe.HttpRequest.isInstance(r.request))return t(r);let o=r.input,s=await t(r),c=s.response,i,{requestValidationModeMember:u,responseAlgorithms:l}=n;if(u&&o[u]==="ENABLED"){let a=(0,Bpe.isStreaming)(c.body);a&&(i=await e.streamCollector(c.body),c.body=(0,l1.createReadStreamOnBuffer)(i)),await(0,qpe.validateChecksumFromResponse)(s.response,{config:e,responseAlgorithms:l}),a&&i&&(c.body=(0,l1.createReadStreamOnBuffer)(i))}return s};Qo.flexibleChecksumsResponseMiddleware=Dpe});var p1=m(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.getFlexibleChecksumsPlugin=Sr.flexibleChecksumsMiddlewareOptions=void 0;var Mpe=r_(),m1=u1();Sr.flexibleChecksumsMiddlewareOptions={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0};var Fpe=(e,n)=>({applyToStack:t=>{t.add((0,Mpe.flexibleChecksumsMiddleware)(e,n),Sr.flexibleChecksumsMiddlewareOptions),t.addRelativeTo((0,m1.flexibleChecksumsResponseMiddleware)(e,n),m1.flexibleChecksumsResponseMiddlewareOptions)}});Sr.getFlexibleChecksumsPlugin=Fpe});var be=m(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var o_=(te(),Y(ee));o_.__exportStar(Yo(),Ga);o_.__exportStar(r_(),Ga);o_.__exportStar(p1(),Ga)});var i_=m(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.DeleteObjectsCommand=Zo.$Command=void 0;var Lpe=be(),jpe=x(),zpe=k(),y1=b();Object.defineProperty(Zo,"$Command",{enumerable:!0,get:function(){return y1.Command}});var Upe=w(),f1=q(),s_=class e extends y1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,zpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,jpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Lpe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Upe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObjects"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,f1.se_DeleteObjectsCommand)(n,t)}deserialize(n,t){return(0,f1.de_DeleteObjectsCommand)(n,t)}};Zo.DeleteObjectsCommand=s_});var c_=m(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.DeleteObjectTaggingCommand=es.$Command=void 0;var Gpe=x(),Hpe=k(),h1=b();Object.defineProperty(es,"$Command",{enumerable:!0,get:function(){return h1.Command}});var $pe=w(),g1=q(),a_=class e extends h1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Hpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Gpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeleteObjectTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[$pe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObjectTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,g1.se_DeleteObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,g1.de_DeleteObjectTaggingCommand)(n,t)}};es.DeleteObjectTaggingCommand=a_});var l_=m(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.DeletePublicAccessBlockCommand=ts.$Command=void 0;var Kpe=x(),Vpe=k(),C1=b();Object.defineProperty(ts,"$Command",{enumerable:!0,get:function(){return C1.Command}});var Xpe=w(),_1=q(),d_=class e extends C1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Vpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Kpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"DeletePublicAccessBlockCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Xpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeletePublicAccessBlock"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_1.se_DeletePublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,_1.de_DeletePublicAccessBlockCommand)(n,t)}};ts.DeletePublicAccessBlockCommand=d_});var m_=m(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.GetBucketAccelerateConfigurationCommand=ns.$Command=void 0;var Wpe=x(),Ype=k(),b1=b();Object.defineProperty(ns,"$Command",{enumerable:!0,get:function(){return b1.Command}});var Jpe=w(),S1=q(),u_=class e extends b1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ype.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Wpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Jpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAccelerateConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,S1.se_GetBucketAccelerateConfigurationCommand)(n,t)}deserialize(n,t){return(0,S1.de_GetBucketAccelerateConfigurationCommand)(n,t)}};ns.GetBucketAccelerateConfigurationCommand=u_});var f_=m(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.GetBucketAclCommand=rs.$Command=void 0;var Qpe=x(),Zpe=k(),P1=b();Object.defineProperty(rs,"$Command",{enumerable:!0,get:function(){return P1.Command}});var efe=w(),E1=q(),p_=class e extends P1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Zpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Qpe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[efe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,E1.se_GetBucketAclCommand)(n,t)}deserialize(n,t){return(0,E1.de_GetBucketAclCommand)(n,t)}};rs.GetBucketAclCommand=p_});var g_=m(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.GetBucketAnalyticsConfigurationCommand=os.$Command=void 0;var tfe=x(),nfe=k(),w1=b();Object.defineProperty(os,"$Command",{enumerable:!0,get:function(){return w1.Command}});var rfe=w(),v1=q(),y_=class e extends w1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,nfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,tfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[rfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAnalyticsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,v1.se_GetBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,v1.de_GetBucketAnalyticsConfigurationCommand)(n,t)}};os.GetBucketAnalyticsConfigurationCommand=y_});var __=m(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.GetBucketCorsCommand=ss.$Command=void 0;var ofe=x(),sfe=k(),k1=b();Object.defineProperty(ss,"$Command",{enumerable:!0,get:function(){return k1.Command}});var ife=w(),x1=q(),h_=class e extends k1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,sfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ofe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketCorsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ife.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketCors"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,x1.se_GetBucketCorsCommand)(n,t)}deserialize(n,t){return(0,x1.de_GetBucketCorsCommand)(n,t)}};ss.GetBucketCorsCommand=h_});var S_=m(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.GetBucketEncryptionCommand=is.$Command=void 0;var afe=x(),cfe=k(),O1=b();Object.defineProperty(is,"$Command",{enumerable:!0,get:function(){return O1.Command}});var dfe=w(),lfe=Ye(),A1=q(),C_=class e extends O1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,cfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,afe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketEncryptionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:lfe.GetBucketEncryptionOutputFilterSensitiveLog,[dfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketEncryption"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,A1.se_GetBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,A1.de_GetBucketEncryptionCommand)(n,t)}};is.GetBucketEncryptionCommand=C_});var E_=m(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.GetBucketIntelligentTieringConfigurationCommand=as.$Command=void 0;var ufe=x(),mfe=k(),I1=b();Object.defineProperty(as,"$Command",{enumerable:!0,get:function(){return I1.Command}});var pfe=w(),N1=q(),b_=class e extends I1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,mfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ufe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[pfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketIntelligentTieringConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,N1.se_GetBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,N1.de_GetBucketIntelligentTieringConfigurationCommand)(n,t)}};as.GetBucketIntelligentTieringConfigurationCommand=b_});var v_=m(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.GetBucketInventoryConfigurationCommand=cs.$Command=void 0;var ffe=x(),yfe=k(),T1=b();Object.defineProperty(cs,"$Command",{enumerable:!0,get:function(){return T1.Command}});var gfe=w(),hfe=Ye(),R1=q(),P_=class e extends T1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,yfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ffe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketInventoryConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:hfe.GetBucketInventoryConfigurationOutputFilterSensitiveLog,[gfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketInventoryConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,R1.se_GetBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,R1.de_GetBucketInventoryConfigurationCommand)(n,t)}};cs.GetBucketInventoryConfigurationCommand=P_});var x_=m(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.GetBucketLifecycleConfigurationCommand=ds.$Command=void 0;var _fe=x(),Cfe=k(),q1=b();Object.defineProperty(ds,"$Command",{enumerable:!0,get:function(){return q1.Command}});var Sfe=w(),B1=q(),w_=class e extends q1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Cfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,_fe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Sfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLifecycleConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,B1.se_GetBucketLifecycleConfigurationCommand)(n,t)}deserialize(n,t){return(0,B1.de_GetBucketLifecycleConfigurationCommand)(n,t)}};ds.GetBucketLifecycleConfigurationCommand=w_});var A_=m(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.GetBucketLocationCommand=ls.$Command=void 0;var bfe=x(),Efe=k(),M1=b();Object.defineProperty(ls,"$Command",{enumerable:!0,get:function(){return M1.Command}});var Pfe=w(),D1=q(),k_=class e extends M1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Efe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,bfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketLocationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Pfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLocation"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,D1.se_GetBucketLocationCommand)(n,t)}deserialize(n,t){return(0,D1.de_GetBucketLocationCommand)(n,t)}};ls.GetBucketLocationCommand=k_});var N_=m(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.GetBucketLoggingCommand=us.$Command=void 0;var vfe=x(),wfe=k(),L1=b();Object.defineProperty(us,"$Command",{enumerable:!0,get:function(){return L1.Command}});var xfe=w(),F1=q(),O_=class e extends L1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,wfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,vfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketLoggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[xfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLogging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,F1.se_GetBucketLoggingCommand)(n,t)}deserialize(n,t){return(0,F1.de_GetBucketLoggingCommand)(n,t)}};us.GetBucketLoggingCommand=O_});var R_=m(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.GetBucketMetricsConfigurationCommand=ms.$Command=void 0;var kfe=x(),Afe=k(),z1=b();Object.defineProperty(ms,"$Command",{enumerable:!0,get:function(){return z1.Command}});var Ofe=w(),j1=q(),I_=class e extends z1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Afe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,kfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketMetricsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Ofe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketMetricsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,j1.se_GetBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,j1.de_GetBucketMetricsConfigurationCommand)(n,t)}};ms.GetBucketMetricsConfigurationCommand=I_});var B_=m(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.GetBucketNotificationConfigurationCommand=ps.$Command=void 0;var Nfe=x(),Ife=k(),G1=b();Object.defineProperty(ps,"$Command",{enumerable:!0,get:function(){return G1.Command}});var Rfe=w(),U1=q(),T_=class e extends G1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ife.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Nfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketNotificationConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Rfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketNotificationConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,U1.se_GetBucketNotificationConfigurationCommand)(n,t)}deserialize(n,t){return(0,U1.de_GetBucketNotificationConfigurationCommand)(n,t)}};ps.GetBucketNotificationConfigurationCommand=T_});var D_=m(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.GetBucketOwnershipControlsCommand=fs.$Command=void 0;var Tfe=x(),Bfe=k(),$1=b();Object.defineProperty(fs,"$Command",{enumerable:!0,get:function(){return $1.Command}});var qfe=w(),H1=q(),q_=class e extends $1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Bfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Tfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketOwnershipControlsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[qfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketOwnershipControls"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,H1.se_GetBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,H1.de_GetBucketOwnershipControlsCommand)(n,t)}};fs.GetBucketOwnershipControlsCommand=q_});var F_=m(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.GetBucketPolicyCommand=ys.$Command=void 0;var Dfe=x(),Mfe=k(),V1=b();Object.defineProperty(ys,"$Command",{enumerable:!0,get:function(){return V1.Command}});var Ffe=w(),K1=q(),M_=class e extends V1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Mfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Dfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketPolicyCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Ffe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketPolicy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,K1.se_GetBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,K1.de_GetBucketPolicyCommand)(n,t)}};ys.GetBucketPolicyCommand=M_});var j_=m(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.GetBucketPolicyStatusCommand=gs.$Command=void 0;var Lfe=x(),jfe=k(),W1=b();Object.defineProperty(gs,"$Command",{enumerable:!0,get:function(){return W1.Command}});var zfe=w(),X1=q(),L_=class e extends W1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,jfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Lfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketPolicyStatusCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[zfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketPolicyStatus"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,X1.se_GetBucketPolicyStatusCommand)(n,t)}deserialize(n,t){return(0,X1.de_GetBucketPolicyStatusCommand)(n,t)}};gs.GetBucketPolicyStatusCommand=L_});var U_=m(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.GetBucketReplicationCommand=hs.$Command=void 0;var Ufe=x(),Gfe=k(),J1=b();Object.defineProperty(hs,"$Command",{enumerable:!0,get:function(){return J1.Command}});var Hfe=w(),Y1=q(),z_=class e extends J1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Gfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ufe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketReplicationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Hfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketReplication"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Y1.se_GetBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,Y1.de_GetBucketReplicationCommand)(n,t)}};hs.GetBucketReplicationCommand=z_});var H_=m(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.GetBucketRequestPaymentCommand=_s.$Command=void 0;var $fe=x(),Kfe=k(),Z1=b();Object.defineProperty(_s,"$Command",{enumerable:!0,get:function(){return Z1.Command}});var Vfe=w(),Q1=q(),G_=class e extends Z1.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Kfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,$fe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketRequestPaymentCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Vfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketRequestPayment"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Q1.se_GetBucketRequestPaymentCommand)(n,t)}deserialize(n,t){return(0,Q1.de_GetBucketRequestPaymentCommand)(n,t)}};_s.GetBucketRequestPaymentCommand=G_});var K_=m(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.GetBucketTaggingCommand=Cs.$Command=void 0;var Xfe=x(),Wfe=k(),tM=b();Object.defineProperty(Cs,"$Command",{enumerable:!0,get:function(){return tM.Command}});var Yfe=w(),eM=q(),$_=class e extends tM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Wfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Xfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Yfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,eM.se_GetBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,eM.de_GetBucketTaggingCommand)(n,t)}};Cs.GetBucketTaggingCommand=$_});var X_=m(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.GetBucketVersioningCommand=Ss.$Command=void 0;var Jfe=x(),Qfe=k(),rM=b();Object.defineProperty(Ss,"$Command",{enumerable:!0,get:function(){return rM.Command}});var Zfe=w(),nM=q(),V_=class e extends rM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Qfe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Jfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketVersioningCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Zfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketVersioning"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,nM.se_GetBucketVersioningCommand)(n,t)}deserialize(n,t){return(0,nM.de_GetBucketVersioningCommand)(n,t)}};Ss.GetBucketVersioningCommand=V_});var Y_=m(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.GetBucketWebsiteCommand=bs.$Command=void 0;var eye=x(),tye=k(),sM=b();Object.defineProperty(bs,"$Command",{enumerable:!0,get:function(){return sM.Command}});var nye=w(),oM=q(),W_=class e extends sM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,tye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,eye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketWebsiteCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[nye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketWebsite"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,oM.se_GetBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,oM.de_GetBucketWebsiteCommand)(n,t)}};bs.GetBucketWebsiteCommand=W_});var Q_=m(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.GetObjectAclCommand=Es.$Command=void 0;var rye=x(),oye=k(),aM=b();Object.defineProperty(Es,"$Command",{enumerable:!0,get:function(){return aM.Command}});var sye=w(),iM=q(),J_=class e extends aM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,oye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,rye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[sye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,iM.se_GetObjectAclCommand)(n,t)}deserialize(n,t){return(0,iM.de_GetObjectAclCommand)(n,t)}};Es.GetObjectAclCommand=J_});var eC=m(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.GetObjectAttributesCommand=Ps.$Command=void 0;var iye=bt(),aye=x(),cye=k(),dM=b();Object.defineProperty(Ps,"$Command",{enumerable:!0,get:function(){return dM.Command}});var dye=w(),lye=Ye(),cM=q(),Z_=class e extends dM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,cye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,aye.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,iye.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectAttributesCommand",inputFilterSensitiveLog:lye.GetObjectAttributesRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[dye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectAttributes"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,cM.se_GetObjectAttributesCommand)(n,t)}deserialize(n,t){return(0,cM.de_GetObjectAttributesCommand)(n,t)}};Ps.GetObjectAttributesCommand=Z_});var nC=m(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.GetObjectCommand=vs.$Command=void 0;var uye=be(),mye=bt(),pye=x(),fye=k(),mM=b();Object.defineProperty(vs,"$Command",{enumerable:!0,get:function(){return mM.Command}});var yye=w(),lM=Ye(),uM=q(),tC=class e extends mM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,fye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,pye.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,mye.getSsecPlugin)(t)),this.middlewareStack.use((0,uye.getFlexibleChecksumsPlugin)(t,{input:this.input,requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC32","CRC32C","SHA256","SHA1"]}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectCommand",inputFilterSensitiveLog:lM.GetObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:lM.GetObjectOutputFilterSensitiveLog,[yye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,uM.se_GetObjectCommand)(n,t)}deserialize(n,t){return(0,uM.de_GetObjectCommand)(n,t)}};vs.GetObjectCommand=tC});var oC=m(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.GetObjectLegalHoldCommand=ws.$Command=void 0;var gye=x(),hye=k(),fM=b();Object.defineProperty(ws,"$Command",{enumerable:!0,get:function(){return fM.Command}});var _ye=w(),pM=q(),rC=class e extends fM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,hye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,gye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectLegalHoldCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[_ye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectLegalHold"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,pM.se_GetObjectLegalHoldCommand)(n,t)}deserialize(n,t){return(0,pM.de_GetObjectLegalHoldCommand)(n,t)}};ws.GetObjectLegalHoldCommand=rC});var iC=m(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.GetObjectLockConfigurationCommand=xs.$Command=void 0;var Cye=x(),Sye=k(),gM=b();Object.defineProperty(xs,"$Command",{enumerable:!0,get:function(){return gM.Command}});var bye=w(),yM=q(),sC=class e extends gM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Sye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Cye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectLockConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[bye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectLockConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,yM.se_GetObjectLockConfigurationCommand)(n,t)}deserialize(n,t){return(0,yM.de_GetObjectLockConfigurationCommand)(n,t)}};xs.GetObjectLockConfigurationCommand=sC});var cC=m(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.GetObjectRetentionCommand=ks.$Command=void 0;var Eye=x(),Pye=k(),_M=b();Object.defineProperty(ks,"$Command",{enumerable:!0,get:function(){return _M.Command}});var vye=w(),hM=q(),aC=class e extends _M.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Pye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Eye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectRetentionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[vye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectRetention"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,hM.se_GetObjectRetentionCommand)(n,t)}deserialize(n,t){return(0,hM.de_GetObjectRetentionCommand)(n,t)}};ks.GetObjectRetentionCommand=aC});var lC=m(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.GetObjectTaggingCommand=As.$Command=void 0;var wye=x(),xye=k(),SM=b();Object.defineProperty(As,"$Command",{enumerable:!0,get:function(){return SM.Command}});var kye=w(),CM=q(),dC=class e extends SM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,xye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,wye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[kye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,CM.se_GetObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,CM.de_GetObjectTaggingCommand)(n,t)}};As.GetObjectTaggingCommand=dC});var mC=m(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.GetObjectTorrentCommand=Os.$Command=void 0;var Aye=x(),Oye=k(),EM=b();Object.defineProperty(Os,"$Command",{enumerable:!0,get:function(){return EM.Command}});var Nye=w(),Iye=Ye(),bM=q(),uC=class e extends EM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Oye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Aye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectTorrentCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:Iye.GetObjectTorrentOutputFilterSensitiveLog,[Nye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectTorrent"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,bM.se_GetObjectTorrentCommand)(n,t)}deserialize(n,t){return(0,bM.de_GetObjectTorrentCommand)(n,t)}};Os.GetObjectTorrentCommand=uC});var fC=m(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.GetPublicAccessBlockCommand=Ns.$Command=void 0;var Rye=x(),Tye=k(),vM=b();Object.defineProperty(Ns,"$Command",{enumerable:!0,get:function(){return vM.Command}});var Bye=w(),PM=q(),pC=class e extends vM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Tye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Rye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetPublicAccessBlockCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Bye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetPublicAccessBlock"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,PM.se_GetPublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,PM.de_GetPublicAccessBlockCommand)(n,t)}};Ns.GetPublicAccessBlockCommand=pC});var Ha=m(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.HeadBucketCommand=Is.$Command=void 0;var qye=x(),Dye=k(),xM=b();Object.defineProperty(Is,"$Command",{enumerable:!0,get:function(){return xM.Command}});var Mye=w(),wM=q(),yC=class e extends xM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Dye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,qye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"HeadBucketCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Mye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"HeadBucket"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,wM.se_HeadBucketCommand)(n,t)}deserialize(n,t){return(0,wM.de_HeadBucketCommand)(n,t)}};Is.HeadBucketCommand=yC});var $a=m(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.HeadObjectCommand=Rs.$Command=void 0;var Fye=bt(),Lye=x(),jye=k(),OM=b();Object.defineProperty(Rs,"$Command",{enumerable:!0,get:function(){return OM.Command}});var zye=w(),kM=Ye(),AM=q(),gC=class e extends OM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,jye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Lye.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Fye.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"HeadObjectCommand",inputFilterSensitiveLog:kM.HeadObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:kM.HeadObjectOutputFilterSensitiveLog,[zye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"HeadObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,AM.se_HeadObjectCommand)(n,t)}deserialize(n,t){return(0,AM.de_HeadObjectCommand)(n,t)}};Rs.HeadObjectCommand=gC});var _C=m(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.ListBucketAnalyticsConfigurationsCommand=Ts.$Command=void 0;var Uye=x(),Gye=k(),IM=b();Object.defineProperty(Ts,"$Command",{enumerable:!0,get:function(){return IM.Command}});var Hye=w(),NM=q(),hC=class e extends IM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Gye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Uye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketAnalyticsConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Hye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketAnalyticsConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,NM.se_ListBucketAnalyticsConfigurationsCommand)(n,t)}deserialize(n,t){return(0,NM.de_ListBucketAnalyticsConfigurationsCommand)(n,t)}};Ts.ListBucketAnalyticsConfigurationsCommand=hC});var SC=m(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.ListBucketIntelligentTieringConfigurationsCommand=Bs.$Command=void 0;var $ye=x(),Kye=k(),TM=b();Object.defineProperty(Bs,"$Command",{enumerable:!0,get:function(){return TM.Command}});var Vye=w(),RM=q(),CC=class e extends TM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Kye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,$ye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketIntelligentTieringConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Vye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketIntelligentTieringConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,RM.se_ListBucketIntelligentTieringConfigurationsCommand)(n,t)}deserialize(n,t){return(0,RM.de_ListBucketIntelligentTieringConfigurationsCommand)(n,t)}};Bs.ListBucketIntelligentTieringConfigurationsCommand=CC});var EC=m(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.ListBucketInventoryConfigurationsCommand=qs.$Command=void 0;var Xye=x(),Wye=k(),qM=b();Object.defineProperty(qs,"$Command",{enumerable:!0,get:function(){return qM.Command}});var Yye=w(),Jye=Ye(),BM=q(),bC=class e extends qM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Wye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Xye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketInventoryConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:Jye.ListBucketInventoryConfigurationsOutputFilterSensitiveLog,[Yye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketInventoryConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,BM.se_ListBucketInventoryConfigurationsCommand)(n,t)}deserialize(n,t){return(0,BM.de_ListBucketInventoryConfigurationsCommand)(n,t)}};qs.ListBucketInventoryConfigurationsCommand=bC});var vC=m(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.ListBucketMetricsConfigurationsCommand=Ds.$Command=void 0;var Qye=x(),Zye=k(),MM=b();Object.defineProperty(Ds,"$Command",{enumerable:!0,get:function(){return MM.Command}});var ege=w(),DM=q(),PC=class e extends MM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Zye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Qye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketMetricsConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ege.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketMetricsConfigurations"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,DM.se_ListBucketMetricsConfigurationsCommand)(n,t)}deserialize(n,t){return(0,DM.de_ListBucketMetricsConfigurationsCommand)(n,t)}};Ds.ListBucketMetricsConfigurationsCommand=PC});var xC=m(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.ListBucketsCommand=Ms.$Command=void 0;var tge=x(),nge=k(),LM=b();Object.defineProperty(Ms,"$Command",{enumerable:!0,get:function(){return LM.Command}});var rge=w(),FM=q(),wC=class e extends LM.Command{static getEndpointParameterInstructions(){return{ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,nge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,tge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[rge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBuckets"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,FM.se_ListBucketsCommand)(n,t)}deserialize(n,t){return(0,FM.de_ListBucketsCommand)(n,t)}};Ms.ListBucketsCommand=wC});var AC=m(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.ListMultipartUploadsCommand=Fs.$Command=void 0;var oge=x(),sge=k(),zM=b();Object.defineProperty(Fs,"$Command",{enumerable:!0,get:function(){return zM.Command}});var ige=w(),jM=q(),kC=class e extends zM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,sge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,oge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListMultipartUploadsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ige.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListMultipartUploads"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,jM.se_ListMultipartUploadsCommand)(n,t)}deserialize(n,t){return(0,jM.de_ListMultipartUploadsCommand)(n,t)}};Fs.ListMultipartUploadsCommand=kC});var NC=m(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.ListObjectsCommand=Ls.$Command=void 0;var age=x(),cge=k(),GM=b();Object.defineProperty(Ls,"$Command",{enumerable:!0,get:function(){return GM.Command}});var dge=w(),UM=q(),OC=class e extends GM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,cge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,age.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListObjectsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[dge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjects"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,UM.se_ListObjectsCommand)(n,t)}deserialize(n,t){return(0,UM.de_ListObjectsCommand)(n,t)}};Ls.ListObjectsCommand=OC});var Im=m(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.ListObjectsV2Command=js.$Command=void 0;var lge=x(),uge=k(),$M=b();Object.defineProperty(js,"$Command",{enumerable:!0,get:function(){return $M.Command}});var mge=w(),HM=q(),IC=class e extends $M.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,uge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,lge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListObjectsV2Command",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[mge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjectsV2"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,HM.se_ListObjectsV2Command)(n,t)}deserialize(n,t){return(0,HM.de_ListObjectsV2Command)(n,t)}};js.ListObjectsV2Command=IC});var TC=m(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.ListObjectVersionsCommand=zs.$Command=void 0;var pge=x(),fge=k(),VM=b();Object.defineProperty(zs,"$Command",{enumerable:!0,get:function(){return VM.Command}});var yge=w(),KM=q(),RC=class e extends VM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,fge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,pge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListObjectVersionsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[yge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjectVersions"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,KM.se_ListObjectVersionsCommand)(n,t)}deserialize(n,t){return(0,KM.de_ListObjectVersionsCommand)(n,t)}};zs.ListObjectVersionsCommand=RC});var Rm=m(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.ListPartsCommand=Us.$Command=void 0;var gge=bt(),hge=x(),_ge=k(),WM=b();Object.defineProperty(Us,"$Command",{enumerable:!0,get:function(){return WM.Command}});var Cge=w(),Sge=Ye(),XM=q(),BC=class e extends WM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_ge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,gge.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListPartsCommand",inputFilterSensitiveLog:Sge.ListPartsRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[Cge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListParts"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,XM.se_ListPartsCommand)(n,t)}deserialize(n,t){return(0,XM.de_ListPartsCommand)(n,t)}};Us.ListPartsCommand=BC});var DC=m(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.PutBucketAccelerateConfigurationCommand=Gs.$Command=void 0;var bge=be(),Ege=x(),Pge=k(),JM=b();Object.defineProperty(Gs,"$Command",{enumerable:!0,get:function(){return JM.Command}});var vge=w(),YM=q(),qC=class e extends JM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Pge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ege.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,bge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[vge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAccelerateConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,YM.se_PutBucketAccelerateConfigurationCommand)(n,t)}deserialize(n,t){return(0,YM.de_PutBucketAccelerateConfigurationCommand)(n,t)}};Gs.PutBucketAccelerateConfigurationCommand=qC});var FC=m(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.PutBucketAclCommand=Hs.$Command=void 0;var wge=be(),xge=x(),kge=k(),ZM=b();Object.defineProperty(Hs,"$Command",{enumerable:!0,get:function(){return ZM.Command}});var Age=w(),QM=q(),MC=class e extends ZM.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,kge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,xge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,wge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Age.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,QM.se_PutBucketAclCommand)(n,t)}deserialize(n,t){return(0,QM.de_PutBucketAclCommand)(n,t)}};Hs.PutBucketAclCommand=MC});var jC=m($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.PutBucketAnalyticsConfigurationCommand=$s.$Command=void 0;var Oge=x(),Nge=k(),tF=b();Object.defineProperty($s,"$Command",{enumerable:!0,get:function(){return tF.Command}});var Ige=w(),eF=q(),LC=class e extends tF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Nge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Oge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Ige.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAnalyticsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,eF.se_PutBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,eF.de_PutBucketAnalyticsConfigurationCommand)(n,t)}};$s.PutBucketAnalyticsConfigurationCommand=LC});var UC=m(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.PutBucketCorsCommand=Ks.$Command=void 0;var Rge=be(),Tge=x(),Bge=k(),rF=b();Object.defineProperty(Ks,"$Command",{enumerable:!0,get:function(){return rF.Command}});var qge=w(),nF=q(),zC=class e extends rF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Bge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Tge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Rge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketCorsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[qge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketCors"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,nF.se_PutBucketCorsCommand)(n,t)}deserialize(n,t){return(0,nF.de_PutBucketCorsCommand)(n,t)}};Ks.PutBucketCorsCommand=zC});var HC=m(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.PutBucketEncryptionCommand=Vs.$Command=void 0;var Dge=be(),Mge=x(),Fge=k(),sF=b();Object.defineProperty(Vs,"$Command",{enumerable:!0,get:function(){return sF.Command}});var Lge=w(),jge=Ye(),oF=q(),GC=class e extends sF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Fge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Dge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketEncryptionCommand",inputFilterSensitiveLog:jge.PutBucketEncryptionRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[Lge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketEncryption"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,oF.se_PutBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,oF.de_PutBucketEncryptionCommand)(n,t)}};Vs.PutBucketEncryptionCommand=GC});var KC=m(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.PutBucketIntelligentTieringConfigurationCommand=Xs.$Command=void 0;var zge=x(),Uge=k(),aF=b();Object.defineProperty(Xs,"$Command",{enumerable:!0,get:function(){return aF.Command}});var Gge=w(),iF=q(),$C=class e extends aF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Uge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,zge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Gge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketIntelligentTieringConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,iF.se_PutBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,iF.de_PutBucketIntelligentTieringConfigurationCommand)(n,t)}};Xs.PutBucketIntelligentTieringConfigurationCommand=$C});var XC=m(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.PutBucketInventoryConfigurationCommand=Ws.$Command=void 0;var Hge=x(),$ge=k(),dF=b();Object.defineProperty(Ws,"$Command",{enumerable:!0,get:function(){return dF.Command}});var Kge=w(),Vge=Ye(),cF=q(),VC=class e extends dF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,$ge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Hge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketInventoryConfigurationCommand",inputFilterSensitiveLog:Vge.PutBucketInventoryConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[Kge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketInventoryConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,cF.se_PutBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,cF.de_PutBucketInventoryConfigurationCommand)(n,t)}};Ws.PutBucketInventoryConfigurationCommand=VC});var YC=m(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.PutBucketLifecycleConfigurationCommand=Ys.$Command=void 0;var Xge=be(),Wge=x(),Yge=k(),uF=b();Object.defineProperty(Ys,"$Command",{enumerable:!0,get:function(){return uF.Command}});var Jge=w(),lF=q(),WC=class e extends uF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Yge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Wge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Xge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Jge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketLifecycleConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,lF.se_PutBucketLifecycleConfigurationCommand)(n,t)}deserialize(n,t){return(0,lF.de_PutBucketLifecycleConfigurationCommand)(n,t)}};Ys.PutBucketLifecycleConfigurationCommand=WC});var QC=m(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.PutBucketLoggingCommand=Js.$Command=void 0;var Qge=be(),Zge=x(),ehe=k(),pF=b();Object.defineProperty(Js,"$Command",{enumerable:!0,get:function(){return pF.Command}});var the=w(),mF=q(),JC=class e extends pF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ehe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Zge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Qge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketLoggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[the.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketLogging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,mF.se_PutBucketLoggingCommand)(n,t)}deserialize(n,t){return(0,mF.de_PutBucketLoggingCommand)(n,t)}};Js.PutBucketLoggingCommand=JC});var eS=m(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.PutBucketMetricsConfigurationCommand=Qs.$Command=void 0;var nhe=x(),rhe=k(),yF=b();Object.defineProperty(Qs,"$Command",{enumerable:!0,get:function(){return yF.Command}});var ohe=w(),fF=q(),ZC=class e extends yF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,rhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,nhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketMetricsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ohe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketMetricsConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,fF.se_PutBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,fF.de_PutBucketMetricsConfigurationCommand)(n,t)}};Qs.PutBucketMetricsConfigurationCommand=ZC});var nS=m(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.PutBucketNotificationConfigurationCommand=Zs.$Command=void 0;var she=x(),ihe=k(),hF=b();Object.defineProperty(Zs,"$Command",{enumerable:!0,get:function(){return hF.Command}});var ahe=w(),gF=q(),tS=class e extends hF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ihe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,she.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketNotificationConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[ahe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketNotificationConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,gF.se_PutBucketNotificationConfigurationCommand)(n,t)}deserialize(n,t){return(0,gF.de_PutBucketNotificationConfigurationCommand)(n,t)}};Zs.PutBucketNotificationConfigurationCommand=tS});var oS=m(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.PutBucketOwnershipControlsCommand=ei.$Command=void 0;var che=be(),dhe=x(),lhe=k(),CF=b();Object.defineProperty(ei,"$Command",{enumerable:!0,get:function(){return CF.Command}});var uhe=w(),_F=q(),rS=class e extends CF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,lhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,dhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,che.getFlexibleChecksumsPlugin)(t,{input:this.input,requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketOwnershipControlsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[uhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketOwnershipControls"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,_F.se_PutBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,_F.de_PutBucketOwnershipControlsCommand)(n,t)}};ei.PutBucketOwnershipControlsCommand=rS});var iS=m(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.PutBucketPolicyCommand=ti.$Command=void 0;var mhe=be(),phe=x(),fhe=k(),bF=b();Object.defineProperty(ti,"$Command",{enumerable:!0,get:function(){return bF.Command}});var yhe=w(),SF=q(),sS=class e extends bF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,fhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,phe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,mhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketPolicyCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[yhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketPolicy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,SF.se_PutBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,SF.de_PutBucketPolicyCommand)(n,t)}};ti.PutBucketPolicyCommand=sS});var cS=m(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.PutBucketReplicationCommand=ni.$Command=void 0;var ghe=be(),hhe=x(),_he=k(),PF=b();Object.defineProperty(ni,"$Command",{enumerable:!0,get:function(){return PF.Command}});var Che=w(),EF=q(),aS=class e extends PF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_he.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,ghe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketReplicationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Che.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketReplication"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,EF.se_PutBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,EF.de_PutBucketReplicationCommand)(n,t)}};ni.PutBucketReplicationCommand=aS});var lS=m(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.PutBucketRequestPaymentCommand=ri.$Command=void 0;var She=be(),bhe=x(),Ehe=k(),wF=b();Object.defineProperty(ri,"$Command",{enumerable:!0,get:function(){return wF.Command}});var Phe=w(),vF=q(),dS=class e extends wF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ehe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,bhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,She.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketRequestPaymentCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Phe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketRequestPayment"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,vF.se_PutBucketRequestPaymentCommand)(n,t)}deserialize(n,t){return(0,vF.de_PutBucketRequestPaymentCommand)(n,t)}};ri.PutBucketRequestPaymentCommand=dS});var mS=m(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.PutBucketTaggingCommand=oi.$Command=void 0;var vhe=be(),whe=x(),xhe=k(),kF=b();Object.defineProperty(oi,"$Command",{enumerable:!0,get:function(){return kF.Command}});var khe=w(),xF=q(),uS=class e extends kF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,xhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,whe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,vhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[khe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,xF.se_PutBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,xF.de_PutBucketTaggingCommand)(n,t)}};oi.PutBucketTaggingCommand=uS});var fS=m(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.PutBucketVersioningCommand=si.$Command=void 0;var Ahe=be(),Ohe=x(),Nhe=k(),OF=b();Object.defineProperty(si,"$Command",{enumerable:!0,get:function(){return OF.Command}});var Ihe=w(),AF=q(),pS=class e extends OF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Nhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ohe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Ahe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketVersioningCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Ihe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketVersioning"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,AF.se_PutBucketVersioningCommand)(n,t)}deserialize(n,t){return(0,AF.de_PutBucketVersioningCommand)(n,t)}};si.PutBucketVersioningCommand=pS});var gS=m(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.PutBucketWebsiteCommand=ii.$Command=void 0;var Rhe=be(),The=x(),Bhe=k(),IF=b();Object.defineProperty(ii,"$Command",{enumerable:!0,get:function(){return IF.Command}});var qhe=w(),NF=q(),yS=class e extends IF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Bhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,The.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Rhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketWebsiteCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[qhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketWebsite"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,NF.se_PutBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,NF.de_PutBucketWebsiteCommand)(n,t)}};ii.PutBucketWebsiteCommand=yS});var _S=m(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.PutObjectAclCommand=ai.$Command=void 0;var Dhe=be(),Mhe=x(),Fhe=k(),TF=b();Object.defineProperty(ai,"$Command",{enumerable:!0,get:function(){return TF.Command}});var Lhe=w(),RF=q(),hS=class e extends TF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Fhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Dhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Lhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectAcl"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,RF.se_PutObjectAclCommand)(n,t)}deserialize(n,t){return(0,RF.de_PutObjectAclCommand)(n,t)}};ai.PutObjectAclCommand=hS});var SS=m(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.PutObjectCommand=ci.$Command=void 0;var jhe=be(),zhe=Or(),Uhe=bt(),Ghe=x(),Hhe=k(),DF=b();Object.defineProperty(ci,"$Command",{enumerable:!0,get:function(){return DF.Command}});var $he=w(),BF=Ye(),qF=q(),CS=class e extends DF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Hhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ghe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,zhe.getCheckContentLengthHeaderPlugin)(t)),this.middlewareStack.use((0,Uhe.getSsecPlugin)(t)),this.middlewareStack.use((0,jhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:BF.PutObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:BF.PutObjectOutputFilterSensitiveLog,[$he.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,qF.se_PutObjectCommand)(n,t)}deserialize(n,t){return(0,qF.de_PutObjectCommand)(n,t)}};ci.PutObjectCommand=CS});var ES=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.PutObjectLegalHoldCommand=di.$Command=void 0;var Khe=be(),Vhe=x(),Xhe=k(),FF=b();Object.defineProperty(di,"$Command",{enumerable:!0,get:function(){return FF.Command}});var Whe=w(),MF=q(),bS=class e extends FF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Xhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Vhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Khe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectLegalHoldCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Whe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectLegalHold"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,MF.se_PutObjectLegalHoldCommand)(n,t)}deserialize(n,t){return(0,MF.de_PutObjectLegalHoldCommand)(n,t)}};di.PutObjectLegalHoldCommand=bS});var vS=m(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.PutObjectLockConfigurationCommand=li.$Command=void 0;var Yhe=be(),Jhe=x(),Qhe=k(),jF=b();Object.defineProperty(li,"$Command",{enumerable:!0,get:function(){return jF.Command}});var Zhe=w(),LF=q(),PS=class e extends jF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Qhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Jhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Yhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectLockConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[Zhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectLockConfiguration"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,LF.se_PutObjectLockConfigurationCommand)(n,t)}deserialize(n,t){return(0,LF.de_PutObjectLockConfigurationCommand)(n,t)}};li.PutObjectLockConfigurationCommand=PS});var xS=m(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.PutObjectRetentionCommand=ui.$Command=void 0;var e_e=be(),t_e=x(),n_e=k(),UF=b();Object.defineProperty(ui,"$Command",{enumerable:!0,get:function(){return UF.Command}});var r_e=w(),zF=q(),wS=class e extends UF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,n_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,t_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,e_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectRetentionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[r_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectRetention"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,zF.se_PutObjectRetentionCommand)(n,t)}deserialize(n,t){return(0,zF.de_PutObjectRetentionCommand)(n,t)}};ui.PutObjectRetentionCommand=wS});var AS=m(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.PutObjectTaggingCommand=mi.$Command=void 0;var o_e=be(),s_e=x(),i_e=k(),HF=b();Object.defineProperty(mi,"$Command",{enumerable:!0,get:function(){return HF.Command}});var a_e=w(),GF=q(),kS=class e extends HF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,i_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,s_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,o_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutObjectTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[a_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectTagging"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,GF.se_PutObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,GF.de_PutObjectTaggingCommand)(n,t)}};mi.PutObjectTaggingCommand=kS});var NS=m(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.PutPublicAccessBlockCommand=pi.$Command=void 0;var c_e=be(),d_e=x(),l_e=k(),KF=b();Object.defineProperty(pi,"$Command",{enumerable:!0,get:function(){return KF.Command}});var u_e=w(),$F=q(),OS=class e extends KF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,l_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,d_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,c_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutPublicAccessBlockCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[u_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutPublicAccessBlock"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,$F.se_PutPublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,$F.de_PutPublicAccessBlockCommand)(n,t)}};pi.PutPublicAccessBlockCommand=OS});var RS=m(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.RestoreObjectCommand=fi.$Command=void 0;var m_e=be(),p_e=x(),f_e=k(),XF=b();Object.defineProperty(fi,"$Command",{enumerable:!0,get:function(){return XF.Command}});var y_e=w(),g_e=Zn(),VF=q(),IS=class e extends XF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,f_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,p_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,m_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"RestoreObjectCommand",inputFilterSensitiveLog:g_e.RestoreObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[y_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"RestoreObject"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,VF.se_RestoreObjectCommand)(n,t)}deserialize(n,t){return(0,VF.de_RestoreObjectCommand)(n,t)}};fi.RestoreObjectCommand=IS});var BS=m(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.SelectObjectContentCommand=yi.$Command=void 0;var h_e=bt(),__e=x(),C_e=k(),JF=b();Object.defineProperty(yi,"$Command",{enumerable:!0,get:function(){return JF.Command}});var S_e=w(),WF=Zn(),YF=q(),TS=class e extends JF.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,C_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,__e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,h_e.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"SelectObjectContentCommand",inputFilterSensitiveLog:WF.SelectObjectContentRequestFilterSensitiveLog,outputFilterSensitiveLog:WF.SelectObjectContentOutputFilterSensitiveLog,[S_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"SelectObjectContent"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,YF.se_SelectObjectContentCommand)(n,t)}deserialize(n,t){return(0,YF.de_SelectObjectContentCommand)(n,t)}};yi.SelectObjectContentCommand=TS});var DS=m(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.UploadPartCommand=gi.$Command=void 0;var b_e=be(),E_e=bt(),P_e=x(),v_e=k(),eL=b();Object.defineProperty(gi,"$Command",{enumerable:!0,get:function(){return eL.Command}});var w_e=w(),QF=Zn(),ZF=q(),qS=class e extends eL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,v_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,P_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,E_e.getSsecPlugin)(t)),this.middlewareStack.use((0,b_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:QF.UploadPartRequestFilterSensitiveLog,outputFilterSensitiveLog:QF.UploadPartOutputFilterSensitiveLog,[w_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"UploadPart"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,ZF.se_UploadPartCommand)(n,t)}deserialize(n,t){return(0,ZF.de_UploadPartCommand)(n,t)}};gi.UploadPartCommand=qS});var FS=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.UploadPartCopyCommand=hi.$Command=void 0;var x_e=Or(),k_e=bt(),A_e=x(),O_e=k(),rL=b();Object.defineProperty(hi,"$Command",{enumerable:!0,get:function(){return rL.Command}});var N_e=w(),tL=Zn(),nL=q(),MS=class e extends rL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,O_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,A_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,x_e.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,k_e.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"UploadPartCopyCommand",inputFilterSensitiveLog:tL.UploadPartCopyRequestFilterSensitiveLog,outputFilterSensitiveLog:tL.UploadPartCopyOutputFilterSensitiveLog,[N_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"UploadPartCopy"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,nL.se_UploadPartCopyCommand)(n,t)}deserialize(n,t){return(0,nL.de_UploadPartCopyCommand)(n,t)}};hi.UploadPartCopyCommand=MS});var jS=m(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.WriteGetObjectResponseCommand=_i.$Command=void 0;var I_e=x(),R_e=k(),sL=b();Object.defineProperty(_i,"$Command",{enumerable:!0,get:function(){return sL.Command}});var T_e=w(),B_e=Zn(),oL=q(),LS=class e extends sL.Command{static getEndpointParameterInstructions(){return{UseObjectLambdaEndpoint:{type:"staticContextParams",value:!0},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,R_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,I_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"WriteGetObjectResponseCommand",inputFilterSensitiveLog:B_e.WriteGetObjectResponseRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[T_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"WriteGetObjectResponse"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,oL.se_WriteGetObjectResponseCommand)(n,t)}deserialize(n,t){return(0,oL.de_WriteGetObjectResponseCommand)(n,t)}};_i.WriteGetObjectResponseCommand=LS});var iL=m(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.S3=void 0;var q_e=b(),D_e=dh(),M_e=uh(),F_e=ph(),L_e=yh(),j_e=hh(),z_e=Ch(),U_e=bh(),G_e=Ph(),H_e=wh(),$_e=kh(),K_e=Oh(),V_e=Ih(),X_e=Th(),W_e=qh(),Y_e=Mh(),J_e=Lh(),Q_e=zh(),Z_e=Gh(),eCe=$h(),tCe=i_(),nCe=c_(),rCe=l_(),oCe=m_(),sCe=f_(),iCe=g_(),aCe=__(),cCe=S_(),dCe=E_(),lCe=v_(),uCe=x_(),mCe=A_(),pCe=N_(),fCe=R_(),yCe=B_(),gCe=D_(),hCe=F_(),_Ce=j_(),CCe=U_(),SCe=H_(),bCe=K_(),ECe=X_(),PCe=Y_(),vCe=Q_(),wCe=eC(),xCe=nC(),kCe=oC(),ACe=iC(),OCe=cC(),NCe=lC(),ICe=mC(),RCe=fC(),TCe=Ha(),BCe=$a(),qCe=_C(),DCe=SC(),MCe=EC(),FCe=vC(),LCe=xC(),jCe=AC(),zCe=NC(),UCe=Im(),GCe=TC(),HCe=Rm(),$Ce=DC(),KCe=FC(),VCe=jC(),XCe=UC(),WCe=HC(),YCe=KC(),JCe=XC(),QCe=YC(),ZCe=QC(),eSe=eS(),tSe=nS(),nSe=oS(),rSe=iS(),oSe=cS(),sSe=lS(),iSe=mS(),aSe=fS(),cSe=gS(),dSe=_S(),lSe=SS(),uSe=ES(),mSe=vS(),pSe=xS(),fSe=AS(),ySe=NS(),gSe=RS(),hSe=BS(),_Se=DS(),CSe=FS(),SSe=jS(),bSe=Fa(),ESe={AbortMultipartUploadCommand:D_e.AbortMultipartUploadCommand,CompleteMultipartUploadCommand:M_e.CompleteMultipartUploadCommand,CopyObjectCommand:F_e.CopyObjectCommand,CreateBucketCommand:L_e.CreateBucketCommand,CreateMultipartUploadCommand:j_e.CreateMultipartUploadCommand,DeleteBucketCommand:U_e.DeleteBucketCommand,DeleteBucketAnalyticsConfigurationCommand:z_e.DeleteBucketAnalyticsConfigurationCommand,DeleteBucketCorsCommand:G_e.DeleteBucketCorsCommand,DeleteBucketEncryptionCommand:H_e.DeleteBucketEncryptionCommand,DeleteBucketIntelligentTieringConfigurationCommand:$_e.DeleteBucketIntelligentTieringConfigurationCommand,DeleteBucketInventoryConfigurationCommand:K_e.DeleteBucketInventoryConfigurationCommand,DeleteBucketLifecycleCommand:V_e.DeleteBucketLifecycleCommand,DeleteBucketMetricsConfigurationCommand:X_e.DeleteBucketMetricsConfigurationCommand,DeleteBucketOwnershipControlsCommand:W_e.DeleteBucketOwnershipControlsCommand,DeleteBucketPolicyCommand:Y_e.DeleteBucketPolicyCommand,DeleteBucketReplicationCommand:J_e.DeleteBucketReplicationCommand,DeleteBucketTaggingCommand:Q_e.DeleteBucketTaggingCommand,DeleteBucketWebsiteCommand:Z_e.DeleteBucketWebsiteCommand,DeleteObjectCommand:eCe.DeleteObjectCommand,DeleteObjectsCommand:tCe.DeleteObjectsCommand,DeleteObjectTaggingCommand:nCe.DeleteObjectTaggingCommand,DeletePublicAccessBlockCommand:rCe.DeletePublicAccessBlockCommand,GetBucketAccelerateConfigurationCommand:oCe.GetBucketAccelerateConfigurationCommand,GetBucketAclCommand:sCe.GetBucketAclCommand,GetBucketAnalyticsConfigurationCommand:iCe.GetBucketAnalyticsConfigurationCommand,GetBucketCorsCommand:aCe.GetBucketCorsCommand,GetBucketEncryptionCommand:cCe.GetBucketEncryptionCommand,GetBucketIntelligentTieringConfigurationCommand:dCe.GetBucketIntelligentTieringConfigurationCommand,GetBucketInventoryConfigurationCommand:lCe.GetBucketInventoryConfigurationCommand,GetBucketLifecycleConfigurationCommand:uCe.GetBucketLifecycleConfigurationCommand,GetBucketLocationCommand:mCe.GetBucketLocationCommand,GetBucketLoggingCommand:pCe.GetBucketLoggingCommand,GetBucketMetricsConfigurationCommand:fCe.GetBucketMetricsConfigurationCommand,GetBucketNotificationConfigurationCommand:yCe.GetBucketNotificationConfigurationCommand,GetBucketOwnershipControlsCommand:gCe.GetBucketOwnershipControlsCommand,GetBucketPolicyCommand:hCe.GetBucketPolicyCommand,GetBucketPolicyStatusCommand:_Ce.GetBucketPolicyStatusCommand,GetBucketReplicationCommand:CCe.GetBucketReplicationCommand,GetBucketRequestPaymentCommand:SCe.GetBucketRequestPaymentCommand,GetBucketTaggingCommand:bCe.GetBucketTaggingCommand,GetBucketVersioningCommand:ECe.GetBucketVersioningCommand,GetBucketWebsiteCommand:PCe.GetBucketWebsiteCommand,GetObjectCommand:xCe.GetObjectCommand,GetObjectAclCommand:vCe.GetObjectAclCommand,GetObjectAttributesCommand:wCe.GetObjectAttributesCommand,GetObjectLegalHoldCommand:kCe.GetObjectLegalHoldCommand,GetObjectLockConfigurationCommand:ACe.GetObjectLockConfigurationCommand,GetObjectRetentionCommand:OCe.GetObjectRetentionCommand,GetObjectTaggingCommand:NCe.GetObjectTaggingCommand,GetObjectTorrentCommand:ICe.GetObjectTorrentCommand,GetPublicAccessBlockCommand:RCe.GetPublicAccessBlockCommand,HeadBucketCommand:TCe.HeadBucketCommand,HeadObjectCommand:BCe.HeadObjectCommand,ListBucketAnalyticsConfigurationsCommand:qCe.ListBucketAnalyticsConfigurationsCommand,ListBucketIntelligentTieringConfigurationsCommand:DCe.ListBucketIntelligentTieringConfigurationsCommand,ListBucketInventoryConfigurationsCommand:MCe.ListBucketInventoryConfigurationsCommand,ListBucketMetricsConfigurationsCommand:FCe.ListBucketMetricsConfigurationsCommand,ListBucketsCommand:LCe.ListBucketsCommand,ListMultipartUploadsCommand:jCe.ListMultipartUploadsCommand,ListObjectsCommand:zCe.ListObjectsCommand,ListObjectsV2Command:UCe.ListObjectsV2Command,ListObjectVersionsCommand:GCe.ListObjectVersionsCommand,ListPartsCommand:HCe.ListPartsCommand,PutBucketAccelerateConfigurationCommand:$Ce.PutBucketAccelerateConfigurationCommand,PutBucketAclCommand:KCe.PutBucketAclCommand,PutBucketAnalyticsConfigurationCommand:VCe.PutBucketAnalyticsConfigurationCommand,PutBucketCorsCommand:XCe.PutBucketCorsCommand,PutBucketEncryptionCommand:WCe.PutBucketEncryptionCommand,PutBucketIntelligentTieringConfigurationCommand:YCe.PutBucketIntelligentTieringConfigurationCommand,PutBucketInventoryConfigurationCommand:JCe.PutBucketInventoryConfigurationCommand,PutBucketLifecycleConfigurationCommand:QCe.PutBucketLifecycleConfigurationCommand,PutBucketLoggingCommand:ZCe.PutBucketLoggingCommand,PutBucketMetricsConfigurationCommand:eSe.PutBucketMetricsConfigurationCommand,PutBucketNotificationConfigurationCommand:tSe.PutBucketNotificationConfigurationCommand,PutBucketOwnershipControlsCommand:nSe.PutBucketOwnershipControlsCommand,PutBucketPolicyCommand:rSe.PutBucketPolicyCommand,PutBucketReplicationCommand:oSe.PutBucketReplicationCommand,PutBucketRequestPaymentCommand:sSe.PutBucketRequestPaymentCommand,PutBucketTaggingCommand:iSe.PutBucketTaggingCommand,PutBucketVersioningCommand:aSe.PutBucketVersioningCommand,PutBucketWebsiteCommand:cSe.PutBucketWebsiteCommand,PutObjectCommand:lSe.PutObjectCommand,PutObjectAclCommand:dSe.PutObjectAclCommand,PutObjectLegalHoldCommand:uSe.PutObjectLegalHoldCommand,PutObjectLockConfigurationCommand:mSe.PutObjectLockConfigurationCommand,PutObjectRetentionCommand:pSe.PutObjectRetentionCommand,PutObjectTaggingCommand:fSe.PutObjectTaggingCommand,PutPublicAccessBlockCommand:ySe.PutPublicAccessBlockCommand,RestoreObjectCommand:gSe.RestoreObjectCommand,SelectObjectContentCommand:hSe.SelectObjectContentCommand,UploadPartCommand:_Se.UploadPartCommand,UploadPartCopyCommand:CSe.UploadPartCopyCommand,WriteGetObjectResponseCommand:SSe.WriteGetObjectResponseCommand},Tm=class extends bSe.S3Client{};Bm.S3=Tm;(0,q_e.createAggregatedClient)(ESe,Tm)});var aL=m(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});var L=(te(),Y(ee));L.__exportStar(dh(),T);L.__exportStar(uh(),T);L.__exportStar(ph(),T);L.__exportStar(yh(),T);L.__exportStar(hh(),T);L.__exportStar(Ch(),T);L.__exportStar(bh(),T);L.__exportStar(Ph(),T);L.__exportStar(wh(),T);L.__exportStar(kh(),T);L.__exportStar(Oh(),T);L.__exportStar(Ih(),T);L.__exportStar(Th(),T);L.__exportStar(qh(),T);L.__exportStar(Mh(),T);L.__exportStar(Lh(),T);L.__exportStar(zh(),T);L.__exportStar(Gh(),T);L.__exportStar($h(),T);L.__exportStar(c_(),T);L.__exportStar(i_(),T);L.__exportStar(l_(),T);L.__exportStar(m_(),T);L.__exportStar(f_(),T);L.__exportStar(g_(),T);L.__exportStar(__(),T);L.__exportStar(S_(),T);L.__exportStar(E_(),T);L.__exportStar(v_(),T);L.__exportStar(x_(),T);L.__exportStar(A_(),T);L.__exportStar(N_(),T);L.__exportStar(R_(),T);L.__exportStar(B_(),T);L.__exportStar(D_(),T);L.__exportStar(F_(),T);L.__exportStar(j_(),T);L.__exportStar(U_(),T);L.__exportStar(H_(),T);L.__exportStar(K_(),T);L.__exportStar(X_(),T);L.__exportStar(Y_(),T);L.__exportStar(Q_(),T);L.__exportStar(eC(),T);L.__exportStar(nC(),T);L.__exportStar(oC(),T);L.__exportStar(iC(),T);L.__exportStar(cC(),T);L.__exportStar(lC(),T);L.__exportStar(mC(),T);L.__exportStar(fC(),T);L.__exportStar(Ha(),T);L.__exportStar($a(),T);L.__exportStar(_C(),T);L.__exportStar(SC(),T);L.__exportStar(EC(),T);L.__exportStar(vC(),T);L.__exportStar(xC(),T);L.__exportStar(AC(),T);L.__exportStar(TC(),T);L.__exportStar(NC(),T);L.__exportStar(Im(),T);L.__exportStar(Rm(),T);L.__exportStar(DC(),T);L.__exportStar(FC(),T);L.__exportStar(jC(),T);L.__exportStar(UC(),T);L.__exportStar(HC(),T);L.__exportStar(KC(),T);L.__exportStar(XC(),T);L.__exportStar(YC(),T);L.__exportStar(QC(),T);L.__exportStar(eS(),T);L.__exportStar(nS(),T);L.__exportStar(oS(),T);L.__exportStar(iS(),T);L.__exportStar(cS(),T);L.__exportStar(lS(),T);L.__exportStar(mS(),T);L.__exportStar(fS(),T);L.__exportStar(gS(),T);L.__exportStar(_S(),T);L.__exportStar(SS(),T);L.__exportStar(ES(),T);L.__exportStar(vS(),T);L.__exportStar(xS(),T);L.__exportStar(AS(),T);L.__exportStar(NS(),T);L.__exportStar(RS(),T);L.__exportStar(BS(),T);L.__exportStar(DS(),T);L.__exportStar(FS(),T);L.__exportStar(jS(),T)});var dL=m(cL=>{"use strict";Object.defineProperty(cL,"__esModule",{value:!0})});var lL=m(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.paginateListObjectsV2=void 0;var PSe=Im(),vSe=Fa(),wSe=async(e,n,...t)=>await e.send(new PSe.ListObjectsV2Command(n),...t);async function*xSe(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.ContinuationToken=r,n.MaxKeys=e.pageSize,e.client instanceof vSe.S3Client)s=await wSe(e.client,n,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield s;let c=r;r=s.NextContinuationToken,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}qm.paginateListObjectsV2=xSe});var uL=m(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.paginateListParts=void 0;var kSe=Rm(),ASe=Fa(),OSe=async(e,n,...t)=>await e.send(new kSe.ListPartsCommand(n),...t);async function*NSe(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.PartNumberMarker=r,n.MaxParts=e.pageSize,e.client instanceof ASe.S3Client)s=await OSe(e.client,n,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield s;let c=r;r=s.NextPartNumberMarker,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}Dm.paginateListParts=NSe});var mL=m(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var zS=(te(),Y(ee));zS.__exportStar(dL(),Ka);zS.__exportStar(lL(),Ka);zS.__exportStar(uL(),Ka)});var Va=m((sOe,hL)=>{var Mm=Object.defineProperty,ISe=Object.getOwnPropertyDescriptor,RSe=Object.getOwnPropertyNames,TSe=Object.prototype.hasOwnProperty,or=(e,n)=>Mm(e,"name",{value:n,configurable:!0}),BSe=(e,n)=>{for(var t in n)Mm(e,t,{get:n[t],enumerable:!0})},qSe=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of RSe(n))!TSe.call(e,o)&&o!==t&&Mm(e,o,{get:()=>n[o],enumerable:!(r=ISe(n,o))||r.enumerable});return e},DSe=e=>qSe(Mm({},"__esModule",{value:!0}),e),fL={};BSe(fL,{WaiterState:()=>gL,checkExceptions:()=>FSe,createWaiter:()=>GSe,waiterServiceDefaults:()=>yL});hL.exports=DSe(fL);var MSe=or(e=>new Promise(n=>setTimeout(n,e*1e3)),"sleep"),yL={minDelay:2,maxDelay:120},gL=(e=>(e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT",e))(gL||{}),FSe=or(e=>{if(e.state==="ABORTED"){let n=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw n.name="AbortError",n}else if(e.state==="TIMEOUT"){let n=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw n.name="TimeoutError",n}else if(e.state!=="SUCCESS")throw new Error(`${JSON.stringify({result:e})}`);return e},"checkExceptions"),LSe=or((e,n,t,r)=>{if(r>t)return n;let o=e*2**(r-1);return jSe(e,o)},"exponentialBackoffWithJitter"),jSe=or((e,n)=>e+Math.random()*(n-e),"randomInRange"),zSe=or(async({minDelay:e,maxDelay:n,maxWaitTime:t,abortController:r,client:o,abortSignal:s},c,i)=>{var u;let{state:l,reason:a}=await i(o,c);if(l!=="RETRY")return{state:l,reason:a};let y=1,g=Date.now()+t*1e3,C=Math.log(n/e)/Math.log(2)+1;for(;;){if((u=r==null?void 0:r.signal)!=null&&u.aborted||s!=null&&s.aborted)return{state:"ABORTED"};let v=LSe(e,n,C,y);if(Date.now()+v*1e3>g)return{state:"TIMEOUT"};await MSe(v);let{state:A,reason:E}=await i(o,c);if(A!=="RETRY")return{state:A,reason:E};y+=1}},"runPolling"),USe=or(e=>{if(e.maxWaitTime<1)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<1)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<1)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelaynew Promise(n=>{e.onabort=()=>n({state:"ABORTED"})}),"abortTimeout"),GSe=or(async(e,n,t)=>{let r={...yL,...e};USe(r);let o=[zSe(r,n,t)];return e.abortController&&o.push(pL(e.abortController.signal)),e.abortSignal&&o.push(pL(e.abortSignal)),Promise.race(o)},"createWaiter")});var CL=m(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.waitUntilBucketExists=Si.waitForBucketExists=void 0;var Ci=Va(),HSe=Ha(),_L=async(e,n)=>{let t;try{return t=await e.send(new HSe.HeadBucketCommand(n)),{state:Ci.WaiterState.SUCCESS,reason:t}}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Ci.WaiterState.RETRY,reason:t}}return{state:Ci.WaiterState.RETRY,reason:t}},$Se=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Ci.createWaiter)({...t,...e},n,_L)};Si.waitForBucketExists=$Se;var KSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Ci.createWaiter)({...t,...e},n,_L);return(0,Ci.checkExceptions)(r)};Si.waitUntilBucketExists=KSe});var bL=m(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.waitUntilBucketNotExists=bi.waitForBucketNotExists=void 0;var Xa=Va(),VSe=Ha(),SL=async(e,n)=>{let t;try{t=await e.send(new VSe.HeadBucketCommand(n))}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Xa.WaiterState.SUCCESS,reason:t}}return{state:Xa.WaiterState.RETRY,reason:t}},XSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Xa.createWaiter)({...t,...e},n,SL)};bi.waitForBucketNotExists=XSe;var WSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Xa.createWaiter)({...t,...e},n,SL);return(0,Xa.checkExceptions)(r)};bi.waitUntilBucketNotExists=WSe});var PL=m(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.waitUntilObjectExists=Pi.waitForObjectExists=void 0;var Ei=Va(),YSe=$a(),EL=async(e,n)=>{let t;try{return t=await e.send(new YSe.HeadObjectCommand(n)),{state:Ei.WaiterState.SUCCESS,reason:t}}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Ei.WaiterState.RETRY,reason:t}}return{state:Ei.WaiterState.RETRY,reason:t}},JSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Ei.createWaiter)({...t,...e},n,EL)};Pi.waitForObjectExists=JSe;var QSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Ei.createWaiter)({...t,...e},n,EL);return(0,Ei.checkExceptions)(r)};Pi.waitUntilObjectExists=QSe});var wL=m(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.waitUntilObjectNotExists=vi.waitForObjectNotExists=void 0;var Wa=Va(),ZSe=$a(),vL=async(e,n)=>{let t;try{t=await e.send(new ZSe.HeadObjectCommand(n))}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Wa.WaiterState.SUCCESS,reason:t}}return{state:Wa.WaiterState.RETRY,reason:t}},ebe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Wa.createWaiter)({...t,...e},n,vL)};vi.waitForObjectNotExists=ebe;var tbe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Wa.createWaiter)({...t,...e},n,vL);return(0,Wa.checkExceptions)(r)};vi.waitUntilObjectNotExists=tbe});var xL=m(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});var Fm=(te(),Y(ee));Fm.__exportStar(CL(),wi);Fm.__exportStar(bL(),wi);Fm.__exportStar(PL(),wi);Fm.__exportStar(wL(),wi)});var AL=m(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});var kL=(te(),Y(ee));kL.__exportStar(Ye(),Lm);kL.__exportStar(Zn(),Lm)});var OL=m(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.S3ServiceException=void 0;var xi=(te(),Y(ee));xi.__exportStar(Fa(),Qt);xi.__exportStar(iL(),Qt);xi.__exportStar(aL(),Qt);xi.__exportStar(mL(),Qt);xi.__exportStar(xL(),Qt);xi.__exportStar(AL(),Qt);var nbe=La();Object.defineProperty(Qt,"S3ServiceException",{enumerable:!0,get:function(){return nbe.S3ServiceException}})});var sbe={};Ai(sbe,{handler:()=>obe});module.exports=Y(sbe);var NL=Oi(OL()),IL=Oi(require("delay")),rbe=new NL.S3;async function obe(){console.log(rbe),await(0,IL.default)(5)}0&&(module.exports={handler}); /*! Bundled license information: tslib/tslib.es6.js: diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/.yarn-integrity b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/.yarn-integrity similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/.yarn-integrity rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/.yarn-integrity diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/index.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/index.d.ts similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/index.d.ts rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/index.d.ts diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/index.js similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/index.js diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/license b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/license similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/license rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/license diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/package.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/package.json similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/package.json rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/package.json diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/readme.md b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/readme.md similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/node_modules/delay/readme.md rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/node_modules/delay/readme.md diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/package.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/package.json similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/package.json rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/package.json diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/yarn.lock b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/yarn.lock similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a/yarn.lock rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06/yarn.lock diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json index 444688d158138..4c331b8780aa3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json @@ -1,20 +1,20 @@ { "version": "36.0.0", "files": { - "6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a": { + "5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06": { "source": { - "path": "asset.6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a", + "path": "asset.5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a.zip", + "objectKey": "5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "d3fa9a32594fc5efb5be47bb76dd8746eb548ec447a79308b8ad5d312d61c200": { + "2e410254568efe473f0ed008fdbe0ab24f80adab6f251e6ffcd8b42bdcc9b23b": { "source": { "path": "cdk-integ-lambda-nodejs-latest.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "d3fa9a32594fc5efb5be47bb76dd8746eb548ec447a79308b8ad5d312d61c200.json", + "objectKey": "2e410254568efe473f0ed008fdbe0ab24f80adab6f251e6ffcd8b42bdcc9b23b.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json index db11490a6d837..58c6c996118f0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json @@ -38,7 +38,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a.zip" + "S3Key": "5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06.zip" }, "Environment": { "Variables": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json index ac7de142d1636..5489944a215d0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json @@ -18,7 +18,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d3fa9a32594fc5efb5be47bb76dd8746eb548ec447a79308b8ad5d312d61c200.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/2e410254568efe473f0ed008fdbe0ab24f80adab6f251e6ffcd8b42bdcc9b23b.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -84,7 +84,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/8c7d8dd6b7968eb470ce57f10b6a2fea18825f74754b711e59049576259b61c5.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/04d04e8dfc855e56d5dc79f2621d5e6d2a9d3a5f9e51677e351b2cc007e5cdf0.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json index c0b92157eb903..3fae60b048624 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json @@ -105,7 +105,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "6ce083eb2441f090467fba2edf5b09bfaf50233b25bf8f9302a3b7abf78b9f5a.zip" + "s3Key": "5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06.zip" }, "environment": { "variables": { diff --git a/packages/@aws-cdk/cloud-assembly-schema/package.json b/packages/@aws-cdk/cloud-assembly-schema/package.json index 354fb442248df..d9d1c086e85b1 100644 --- a/packages/@aws-cdk/cloud-assembly-schema/package.json +++ b/packages/@aws-cdk/cloud-assembly-schema/package.json @@ -84,7 +84,7 @@ "@aws-cdk/pkglint": "0.0.0", "@types/jest": "^29.5.12", "@types/mock-fs": "^4.13.4", - "@types/semver": "^7.5.6", + "@types/semver": "^7.5.7", "aws-cdk-lib": "0.0.0", "jest": "^29.7.0", "mock-fs": "^4.14.0", @@ -110,7 +110,7 @@ "stability": "stable", "dependencies": { "jsonschema": "^1.4.1", - "semver": "^7.5.4" + "semver": "^7.6.0" }, "awscdkio": { "announce": false diff --git a/packages/@aws-cdk/cloudformation-diff/package.json b/packages/@aws-cdk/cloudformation-diff/package.json index 502f30c476ccd..ec19247dbb116 100644 --- a/packages/@aws-cdk/cloudformation-diff/package.json +++ b/packages/@aws-cdk/cloudformation-diff/package.json @@ -26,7 +26,7 @@ "@aws-cdk/aws-service-spec": "^0.0.47", "@aws-cdk/service-spec-types": "^0.0.47", "chalk": "^4", - "diff": "^5.1.0", + "diff": "^5.2.0", "fast-deep-equal": "^3.1.3", "string-width": "^4.2.3", "table": "^6.8.1" @@ -38,7 +38,7 @@ "@types/string-width": "^4.0.1", "fast-check": "^3.15.1", "jest": "^29.7.0", - "aws-sdk": "2.1548.0", + "aws-sdk": "2.1557.0", "ts-jest": "^29.1.2" }, "repository": { diff --git a/packages/@aws-cdk/custom-resource-handlers/package.json b/packages/@aws-cdk/custom-resource-handlers/package.json index f3ee0d099bb57..2bd55dfa67798 100644 --- a/packages/@aws-cdk/custom-resource-handlers/package.json +++ b/packages/@aws-cdk/custom-resource-handlers/package.json @@ -63,7 +63,7 @@ "@aws-sdk/client-synthetics": "3.421.0", "@aws-sdk/client-ecr": "3.421.0", "@aws-sdk/client-s3": "3.421.0", - "aws-sdk": "^2.1548.0" + "aws-sdk": "^2.1557.0" }, "repository": { "url": "https://github.com/aws/aws-cdk.git", diff --git a/packages/@aws-cdk/cx-api/FEATURE_FLAGS.md b/packages/@aws-cdk/cx-api/FEATURE_FLAGS.md index 4fe530e600eff..4b3333f630a60 100644 --- a/packages/@aws-cdk/cx-api/FEATURE_FLAGS.md +++ b/packages/@aws-cdk/cx-api/FEATURE_FLAGS.md @@ -64,7 +64,7 @@ Flags come in three types: | [@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials](#aws-cdkaws-rdspreventrenderingdeprecatedcredentials) | When enabled, creating an RDS database cluster from a snapshot will only render credentials for snapshot credentials. | 2.98.0 | (fix) | | [@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource](#aws-cdkaws-codepipeline-actionsusenewdefaultbranchforcodecommitsource) | When enabled, the CodeCommit source action is using the default branch name 'main'. | 2.103.1 | (fix) | | [@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction](#aws-cdkaws-cloudwatch-actionschangelambdapermissionlogicalidforlambdaaction) | When enabled, the logical ID of a Lambda permission for a Lambda action includes an alarm ID. | 2.124.0 | (fix) | -| [@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse](#aws-cdkaws-codepipelinecrossaccountkeysdefaultvaluetofalse) | Enables Pipeline to set the default value for crossAccountKeys to false. | V2NEXT | (default) | +| [@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse](#aws-cdkaws-codepipelinecrossaccountkeysdefaultvaluetofalse) | Enables Pipeline to set the default value for crossAccountKeys to false. | 2.127.0 | (default) | @@ -1226,7 +1226,7 @@ construct, the construct automatically defaults the value of this property to fa | Since | Default | Recommended | | ----- | ----- | ----- | | (not in v1) | | | -| V2NEXT | `false` | `true` | +| 2.127.0 | `false` | `true` | **Compatibility with old behavior:** Pass `crossAccountKeys: true` to `Pipeline` construct to restore the previous behavior. diff --git a/packages/@aws-cdk/cx-api/package.json b/packages/@aws-cdk/cx-api/package.json index 8bf0e2df6ed53..c7d11f2fd3c61 100644 --- a/packages/@aws-cdk/cx-api/package.json +++ b/packages/@aws-cdk/cx-api/package.json @@ -79,7 +79,7 @@ "organization": true }, "dependencies": { - "semver": "^7.5.4" + "semver": "^7.6.0" }, "peerDependencies": { "@aws-cdk/cloud-assembly-schema": "0.0.0" @@ -91,7 +91,7 @@ "@aws-cdk/pkglint": "0.0.0", "@types/jest": "^29.5.12", "@types/mock-fs": "^4.13.4", - "@types/semver": "^7.5.6", + "@types/semver": "^7.5.7", "jest": "^29.7.0", "madge": "^5.0.2", "mock-fs": "^4.14.0" diff --git a/packages/@aws-cdk/integ-runner/THIRD_PARTY_LICENSES b/packages/@aws-cdk/integ-runner/THIRD_PARTY_LICENSES index db8ca036f42bb..20c28f40d9f3a 100644 --- a/packages/@aws-cdk/integ-runner/THIRD_PARTY_LICENSES +++ b/packages/@aws-cdk/integ-runner/THIRD_PARTY_LICENSES @@ -154,7 +154,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ---------------- -** chokidar@3.5.3 - https://www.npmjs.com/package/chokidar/v/3.5.3 | MIT +** chokidar@3.6.0 - https://www.npmjs.com/package/chokidar/v/3.6.0 | MIT The MIT License (MIT) Copyright (c) 2012-2019 Paul Miller (https://paulmillr.com), Elan Shanker @@ -237,38 +237,37 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ---------------- -** diff@5.1.0 - https://www.npmjs.com/package/diff/v/5.1.0 | BSD-3-Clause -Software License Agreement (BSD License) +** diff@5.2.0 - https://www.npmjs.com/package/diff/v/5.2.0 | BSD-3-Clause +BSD 3-Clause License Copyright (c) 2009-2015, Kevin Decker - All rights reserved. -Redistribution and use of this software in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. -* Redistributions of source code must retain the above - copyright notice, this list of conditions and the - following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. -* Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the - following disclaimer in the documentation and/or other - materials provided with the distribution. +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. -* Neither the name of Kevin Decker nor the names of its - contributors may be used to endorse or promote products - derived from this software without specific prior - written permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ---------------- @@ -297,7 +296,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------- -** escalade@3.1.1 - https://www.npmjs.com/package/escalade/v/3.1.1 | MIT +** escalade@3.1.2 - https://www.npmjs.com/package/escalade/v/3.1.2 | MIT MIT License Copyright (c) Luke Edwards (lukeed.com) @@ -770,7 +769,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------- -** semver@7.5.4 - https://www.npmjs.com/package/semver/v/7.5.4 | ISC +** semver@7.6.0 - https://www.npmjs.com/package/semver/v/7.6.0 | ISC The ISC License Copyright (c) Isaac Z. Schlueter and Contributors diff --git a/packages/@aws-cdk/integ-runner/package.json b/packages/@aws-cdk/integ-runner/package.json index 4af00f8e0b011..54bab833550c6 100644 --- a/packages/@aws-cdk/integ-runner/package.json +++ b/packages/@aws-cdk/integ-runner/package.json @@ -70,7 +70,7 @@ "ts-node": "^10.9.2" }, "dependencies": { - "chokidar": "^3.5.3", + "chokidar": "^3.6.0", "@aws-cdk/cloud-assembly-schema": "0.0.0", "@aws-cdk/cloudformation-diff": "0.0.0", "@aws-cdk/cx-api": "0.0.0", diff --git a/packages/aws-cdk-lib/package.json b/packages/aws-cdk-lib/package.json index a2e5172facbf8..cd7f05f1b0495 100644 --- a/packages/aws-cdk-lib/package.json +++ b/packages/aws-cdk-lib/package.json @@ -128,7 +128,7 @@ "jsonschema": "^1.4.1", "minimatch": "^3.1.2", "punycode": "^2.3.1", - "semver": "^7.5.4", + "semver": "^7.6.0", "table": "^6.8.1", "yaml": "1.10.2" }, @@ -161,13 +161,13 @@ "@types/aws-lambda": "^8.10.133", "@types/jest": "^29.5.12", "@types/lodash": "^4.14.202", - "@types/punycode": "^2.1.3", + "@types/punycode": "^2.1.4", "@aws-cdk/lazify": "0.0.0", - "aws-sdk": "^2.1548.0", + "aws-sdk": "^2.1557.0", "aws-sdk-client-mock": "^3.0.1", "aws-sdk-client-mock-jest": "^3.0.1", "aws-sdk-mock": "5.8.0", - "cdk8s": "2.68.33", + "cdk8s": "2.68.37", "constructs": "^10.0.0", "delay": "5.0.0", "esbuild": "^0.20.0", diff --git a/packages/aws-cdk/THIRD_PARTY_LICENSES b/packages/aws-cdk/THIRD_PARTY_LICENSES index 8e3b0de78e041..bc4ce26e2397c 100644 --- a/packages/aws-cdk/THIRD_PARTY_LICENSES +++ b/packages/aws-cdk/THIRD_PARTY_LICENSES @@ -264,7 +264,7 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE ---------------- -** aws-sdk@2.1548.0 - https://www.npmjs.com/package/aws-sdk/v/2.1548.0 | Apache-2.0 +** aws-sdk@2.1557.0 - https://www.npmjs.com/package/aws-sdk/v/2.1557.0 | Apache-2.0 AWS SDK for JavaScript Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. @@ -461,7 +461,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ---------------- -** cdk-from-cfn@0.125.0 - https://www.npmjs.com/package/cdk-from-cfn/v/0.125.0 | MIT OR Apache-2.0 +** cdk-from-cfn@0.130.0 - https://www.npmjs.com/package/cdk-from-cfn/v/0.130.0 | MIT OR Apache-2.0 ---------------- @@ -479,7 +479,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ---------------- -** chokidar@3.5.3 - https://www.npmjs.com/package/chokidar/v/3.5.3 | MIT +** chokidar@3.6.0 - https://www.npmjs.com/package/chokidar/v/3.6.0 | MIT The MIT License (MIT) Copyright (c) 2012-2019 Paul Miller (https://paulmillr.com), Elan Shanker @@ -867,7 +867,7 @@ OTHER DEALINGS IN THE SOFTWARE. ---------------- -** data-uri-to-buffer@6.0.1 - https://www.npmjs.com/package/data-uri-to-buffer/v/6.0.1 | MIT +** data-uri-to-buffer@6.0.2 - https://www.npmjs.com/package/data-uri-to-buffer/v/6.0.2 | MIT (The MIT License) Copyright (c) 2014 Nathan Rajlich @@ -936,38 +936,37 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ---------------- -** diff@5.1.0 - https://www.npmjs.com/package/diff/v/5.1.0 | BSD-3-Clause -Software License Agreement (BSD License) +** diff@5.2.0 - https://www.npmjs.com/package/diff/v/5.2.0 | BSD-3-Clause +BSD 3-Clause License Copyright (c) 2009-2015, Kevin Decker - All rights reserved. -Redistribution and use of this software in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: -* Redistributions of source code must retain the above - copyright notice, this list of conditions and the - following disclaimer. +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the - following disclaimer in the documentation and/or other - materials provided with the distribution. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. -* Neither the name of Kevin Decker nor the names of its - contributors may be used to endorse or promote products - derived from this software without specific prior - written permission. +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ---------------- @@ -1021,7 +1020,7 @@ THE SOFTWARE. ---------------- -** escalade@3.1.1 - https://www.npmjs.com/package/escalade/v/3.1.1 | MIT +** escalade@3.1.2 - https://www.npmjs.com/package/escalade/v/3.1.2 | MIT MIT License Copyright (c) Luke Edwards (lukeed.com) @@ -1213,7 +1212,7 @@ THE SOFTWARE. ---------------- -** fs-extra@8.1.0 - https://www.npmjs.com/package/fs-extra/v/8.1.0 | MIT +** fs-extra@11.2.0 - https://www.npmjs.com/package/fs-extra/v/11.2.0 | MIT (The MIT License) Copyright (c) 2011-2017 JP Richardson @@ -1305,7 +1304,7 @@ the licensed code: ---------------- -** get-uri@6.0.2 - https://www.npmjs.com/package/get-uri/v/6.0.2 | MIT +** get-uri@6.0.3 - https://www.npmjs.com/package/get-uri/v/6.0.3 | MIT (The MIT License) Copyright (c) 2014 Nathan Rajlich @@ -1411,13 +1410,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ---------------- -** http-proxy-agent@7.0.0 - https://www.npmjs.com/package/http-proxy-agent/v/7.0.0 | MIT -License -------- - +** http-proxy-agent@7.0.1 - https://www.npmjs.com/package/http-proxy-agent/v/7.0.1 | MIT (The MIT License) -Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net> +Copyright (c) 2013 Nathan Rajlich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the @@ -1441,7 +1437,29 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------- -** https-proxy-agent@7.0.2 - https://www.npmjs.com/package/https-proxy-agent/v/7.0.2 | MIT +** https-proxy-agent@7.0.3 - https://www.npmjs.com/package/https-proxy-agent/v/7.0.3 | MIT +(The MIT License) + +Copyright (c) 2013 Nathan Rajlich + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------- @@ -1486,11 +1504,27 @@ PERFORMANCE OF THIS SOFTWARE. ---------------- -** ip@1.1.8 - https://www.npmjs.com/package/ip/v/1.1.8 | MIT +** ip-address@9.0.5 - https://www.npmjs.com/package/ip-address/v/9.0.5 | MIT +Copyright (C) 2011 by Beau Gunderson ----------------- +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. -** ip@2.0.0 - https://www.npmjs.com/package/ip/v/2.0.0 | MIT ---------------- @@ -1622,22 +1656,47 @@ limitations under the License. ---------------- -** jsonfile@4.0.0 - https://www.npmjs.com/package/jsonfile/v/4.0.0 | MIT -(The MIT License) +** jsbn@1.1.0 - https://www.npmjs.com/package/jsbn/v/1.1.0 | MIT +Licensing +--------- -Copyright (c) 2012-2015, JP Richardson +This software is covered under the following copyright: -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files -(the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, - merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: +/* + * Copyright (c) 2003-2005 Tom Wu + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, + * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY + * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. + * + * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL, + * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER + * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF + * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT + * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * In addition, the following condition applies: + * + * All redistributions must retain an intact copy of this copyright notice + * and disclaimer. + */ -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +Address all questions regarding this license to: -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE -WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS -OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, - ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + Tom Wu + tjw@cs.Stanford.EDU ---------------- @@ -2212,7 +2271,29 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ---------------- -** pac-resolver@7.0.0 - https://www.npmjs.com/package/pac-resolver/v/7.0.0 | MIT +** pac-resolver@7.0.1 - https://www.npmjs.com/package/pac-resolver/v/7.0.1 | MIT +(The MIT License) + +Copyright (c) 2013 Nathan Rajlich + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------- @@ -2298,7 +2379,29 @@ THE SOFTWARE. ---------------- -** proxy-agent@6.3.1 - https://www.npmjs.com/package/proxy-agent/v/6.3.1 | MIT +** proxy-agent@6.4.0 - https://www.npmjs.com/package/proxy-agent/v/6.4.0 | MIT +(The MIT License) + +Copyright (c) 2013 Nathan Rajlich + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------- @@ -2807,7 +2910,7 @@ Copyright (c) 2010-2022 Mathias Bynens ---------------- -** semver@7.5.4 - https://www.npmjs.com/package/semver/v/7.5.4 | ISC +** semver@7.6.0 - https://www.npmjs.com/package/semver/v/7.6.0 | ISC The ISC License Copyright (c) Isaac Z. Schlueter and Contributors @@ -2871,7 +2974,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------- -** socks@2.7.1 - https://www.npmjs.com/package/socks/v/2.7.1 | MIT +** socks@2.7.3 - https://www.npmjs.com/package/socks/v/2.7.3 | MIT The MIT License (MIT) Copyright (c) 2013 Josh Glazebrook @@ -2931,6 +3034,35 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +---------------- + +** sprintf-js@1.1.3 - https://www.npmjs.com/package/sprintf-js/v/1.1.3 | BSD-3-Clause +Copyright (c) 2007-present, Alexandru Mărășteanu +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of this software nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + ---------------- ** string_decoder@1.1.1 - https://www.npmjs.com/package/string_decoder/v/1.1.1 | MIT @@ -3175,31 +3307,6 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ----------------- - -** universalify@0.1.2 - https://www.npmjs.com/package/universalify/v/0.1.2 | MIT -(The MIT License) - -Copyright (c) 2017, Ryan Zimmerman - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the 'Software'), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - ---------------- ** universalify@2.0.1 - https://www.npmjs.com/package/universalify/v/2.0.1 | MIT diff --git a/packages/aws-cdk/lib/init-templates/app/typescript/package.json b/packages/aws-cdk/lib/init-templates/app/typescript/package.json index a448c38b0d723..c5c7c7ffad5f1 100644 --- a/packages/aws-cdk/lib/init-templates/app/typescript/package.json +++ b/packages/aws-cdk/lib/init-templates/app/typescript/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@types/jest": "^29.5.12", - "@types/node": "20.11.16", + "@types/node": "20.11.17", "jest": "^29.7.0", "ts-jest": "^29.1.2", "aws-cdk": "%cdk-version%", diff --git a/packages/aws-cdk/lib/init-templates/lib/typescript/package.json b/packages/aws-cdk/lib/init-templates/lib/typescript/package.json index 88a6e3aa9e3c3..22c0e698c97a5 100644 --- a/packages/aws-cdk/lib/init-templates/lib/typescript/package.json +++ b/packages/aws-cdk/lib/init-templates/lib/typescript/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@types/jest": "^29.5.12", - "@types/node": "20.11.16", + "@types/node": "20.11.17", "aws-cdk-lib": "%cdk-version%", "constructs": "%constructs-version%", "jest": "^29.7.0", diff --git a/packages/aws-cdk/lib/init-templates/sample-app/typescript/package.json b/packages/aws-cdk/lib/init-templates/sample-app/typescript/package.json index c456ee2dee6b3..7a8224fd4e53c 100644 --- a/packages/aws-cdk/lib/init-templates/sample-app/typescript/package.json +++ b/packages/aws-cdk/lib/init-templates/sample-app/typescript/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@types/jest": "^29.5.12", - "@types/node": "20.11.16", + "@types/node": "20.11.17", "jest": "^29.7.0", "ts-jest": "^29.1.2", "aws-cdk": "%cdk-version%", diff --git a/packages/aws-cdk/package.json b/packages/aws-cdk/package.json index 36db7395ce5f2..282fa6e99891e 100644 --- a/packages/aws-cdk/package.json +++ b/packages/aws-cdk/package.json @@ -73,7 +73,7 @@ "@types/jest": "^29.5.12", "@types/mockery": "^1.4.33", "@types/promptly": "^3.0.5", - "@types/semver": "^7.5.6", + "@types/semver": "^7.5.7", "@types/sinon": "^9.0.11", "@types/source-map-support": "^0.5.10", "@types/table": "^6.0.0", @@ -102,20 +102,20 @@ "@aws-cdk/region-info": "0.0.0", "@jsii/check-node": "1.94.0", "archiver": "^5.3.2", - "aws-sdk": "^2.1548.0", + "aws-sdk": "^2.1557.0", "camelcase": "^6.3.0", "cdk-assets": "0.0.0", - "cdk-from-cfn": "^0.125.0", + "cdk-from-cfn": "^0.130.0", "chalk": "^4", - "chokidar": "^3.5.3", + "chokidar": "^3.6.0", "decamelize": "^5.0.1", "fs-extra": "^9.1.0", "glob": "^7.2.3", "json-diff": "^0.10.0", "minimatch": "^9.0.3", "promptly": "^3.2.0", - "proxy-agent": "^6.3.1", - "semver": "^7.5.4", + "proxy-agent": "^6.4.0", + "semver": "^7.6.0", "source-map-support": "^0.5.21", "strip-ansi": "^6.0.1", "table": "^6.8.1", diff --git a/packages/awslint/package.json b/packages/awslint/package.json index 600b03d75669e..f46d032fe30df 100644 --- a/packages/awslint/package.json +++ b/packages/awslint/package.json @@ -31,8 +31,8 @@ "@types/fs-extra": "^9.0.13", "@types/jest": "^29.5.12", "@types/yargs": "^15.0.19", - "@typescript-eslint/eslint-plugin": "^6.20.0", - "@typescript-eslint/parser": "^6.20.0", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", "eslint": "^7.32.0", "eslint-import-resolver-node": "^0.3.9", "eslint-import-resolver-typescript": "^2.7.1", diff --git a/packages/cdk-assets/package.json b/packages/cdk-assets/package.json index 6d35f1a92a0d4..f5cacc1a74ec5 100644 --- a/packages/cdk-assets/package.json +++ b/packages/cdk-assets/package.json @@ -46,7 +46,7 @@ "@aws-cdk/cloud-assembly-schema": "0.0.0", "@aws-cdk/cx-api": "0.0.0", "archiver": "^5.3.2", - "aws-sdk": "^2.1548.0", + "aws-sdk": "^2.1557.0", "glob": "^7.2.3", "mime": "^2.6.0", "yargs": "^16.2.0" diff --git a/tools/@aws-cdk/cdk-build-tools/package.json b/tools/@aws-cdk/cdk-build-tools/package.json index cbb08200f59bc..76cb1992154f0 100644 --- a/tools/@aws-cdk/cdk-build-tools/package.json +++ b/tools/@aws-cdk/cdk-build-tools/package.json @@ -38,7 +38,7 @@ "@aws-cdk/pkglint": "0.0.0", "@types/fs-extra": "^9.0.13", "@types/jest": "^29.5.12", - "@types/semver": "^7.5.6", + "@types/semver": "^7.5.7", "@types/yargs": "^15.0.19", "jest-resolve": "^29.7.0" }, @@ -47,8 +47,8 @@ "@aws-cdk/eslint-plugin": "0.0.0", "@aws-cdk/yarn-cling": "0.0.0", "@aws-cdk/node-bundle": "0.0.0", - "@typescript-eslint/eslint-plugin": "^6.20.0", - "@typescript-eslint/parser": "^6.20.0", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", "awslint": "0.0.0", "chalk": "^4", "eslint": "^7.32.0", @@ -60,12 +60,12 @@ "glob": "^7.2.3", "jest": "^29.7.0", "jest-junit": "^13.2.0", - "jsii": "~5.3.12", + "jsii": "~5.3.18", "jsii-pacmak": "1.94.0", "jsii-reflect": "1.94.0", "markdownlint-cli": "^0.39.0", "nyc": "^15.1.0", - "semver": "^7.5.4", + "semver": "^7.6.0", "ts-jest": "^29.1.2", "typescript": "~5.1.6", "yargs": "^16.2.0" diff --git a/tools/@aws-cdk/cdk-release/package.json b/tools/@aws-cdk/cdk-release/package.json index a16f6d65bca93..4b07aeb7fef84 100644 --- a/tools/@aws-cdk/cdk-release/package.json +++ b/tools/@aws-cdk/cdk-release/package.json @@ -48,7 +48,7 @@ "detect-newline": "^3.1.0", "fs-extra": "^9.1.0", "git-raw-commits": "^2.0.11", - "semver": "^7.5.4", + "semver": "^7.6.0", "stringify-package": "^1.0.1" }, "keywords": [ diff --git a/tools/@aws-cdk/eslint-plugin/package.json b/tools/@aws-cdk/eslint-plugin/package.json index 9c734c99b3409..4b310380f1efd 100644 --- a/tools/@aws-cdk/eslint-plugin/package.json +++ b/tools/@aws-cdk/eslint-plugin/package.json @@ -22,7 +22,7 @@ "typescript": "~5.1.6" }, "dependencies": { - "@typescript-eslint/parser": "^6.20.0", + "@typescript-eslint/parser": "^6.21.0", "eslint": "^7.32.0", "fs-extra": "^9.1.0" }, diff --git a/tools/@aws-cdk/node-bundle/package.json b/tools/@aws-cdk/node-bundle/package.json index d0048b6813ae0..7557624de0d94 100644 --- a/tools/@aws-cdk/node-bundle/package.json +++ b/tools/@aws-cdk/node-bundle/package.json @@ -17,8 +17,8 @@ "@types/license-checker": "^25.0.6", "@types/madge": "^5.0.3", "@types/node": "^16", - "@typescript-eslint/eslint-plugin": "^6.20.0", - "@typescript-eslint/parser": "^6.20.0", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", "eslint": "^8", "eslint-import-resolver-node": "^0.3.9", "eslint-import-resolver-typescript": "^2.7.1", diff --git a/tools/@aws-cdk/pkglint/package.json b/tools/@aws-cdk/pkglint/package.json index d159b53cec873..568abc90ff6d3 100644 --- a/tools/@aws-cdk/pkglint/package.json +++ b/tools/@aws-cdk/pkglint/package.json @@ -41,10 +41,10 @@ "@types/fs-extra": "^9.0.13", "@types/glob": "^7.2.0", "@types/jest": "^29.5.12", - "@types/semver": "^7.5.6", + "@types/semver": "^7.5.7", "@types/yargs": "^15.0.19", - "@typescript-eslint/eslint-plugin": "^6.20.0", - "@typescript-eslint/parser": "^6.20.0", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", "eslint": "^7.32.0", "eslint-import-resolver-node": "^0.3.9", "eslint-import-resolver-typescript": "^2.7.1", @@ -66,7 +66,7 @@ "fs-extra": "^9.1.0", "glob": "^7.2.3", "npm-bundled": "^1.1.2", - "semver": "^7.5.4", + "semver": "^7.6.0", "yargs": "^16.2.0" } } diff --git a/tools/@aws-cdk/yarn-cling/package.json b/tools/@aws-cdk/yarn-cling/package.json index 39afea379f321..8db2d0997254b 100644 --- a/tools/@aws-cdk/yarn-cling/package.json +++ b/tools/@aws-cdk/yarn-cling/package.json @@ -40,14 +40,14 @@ "@aws-cdk/pkglint": "0.0.0", "@types/jest": "^29.5.12", "@types/node": "18.11.19", - "@types/semver": "^7.5.6", + "@types/semver": "^7.5.7", "@types/yarnpkg__lockfile": "^1.1.9", "jest": "^29.7.0", "typescript": "~5.1.6" }, "dependencies": { "@yarnpkg/lockfile": "^1.1.0", - "semver": "^7.5.4" + "semver": "^7.6.0" }, "keywords": [ "aws", diff --git a/yarn.lock b/yarn.lock index 23e27f10ff820..e59abdf8dd30a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2322,9 +2322,9 @@ tslib "^2.5.0" "@aws-sdk/types@^3.222.0", "@aws-sdk/types@^3.433.0": - version "3.502.0" - resolved "https://registry.npmjs.org/@aws-sdk/types/-/types-3.502.0.tgz#c23dda4df7fdbe32642d4f5ab23516f455fb6aba" - integrity sha512-M0DSPYe/gXhwD2QHgoukaZv5oDxhW3FfvYIrJptyqUq3OnPJBcDbihHjrE0PBtfh/9kgMZT60/fQ2NVFANfa2g== + version "3.511.0" + resolved "https://registry.npmjs.org/@aws-sdk/types/-/types-3.511.0.tgz#b873bcd8d0db1265234a5a8b920a3c43a6ca28ff" + integrity sha512-P03ufufxmkvd7nO46oOeEqYIMPJ8qMCKxAsfJk1JBVPQ1XctVntbail4/UFnrnzij8DTl4Mk/D62uGo7+RolXA== dependencies: "@smithy/types" "^2.9.1" tslib "^2.5.0" @@ -4693,9 +4693,9 @@ tslib "^2.5.0" "@smithy/util-defaults-mode-node@^2.0.12", "@smithy/util-defaults-mode-node@^2.0.25": - version "2.1.1" - resolved "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-2.1.1.tgz#0910ee00aac3e8a08aac3e6ae8794e52f3efef02" - integrity sha512-tYVrc+w+jSBfBd267KDnvSGOh4NMz+wVH7v4CClDbkdPfnjvImBZsOURncT5jsFwR9KCuDyPoSZq4Pa6+eCUrA== + version "2.2.0" + resolved "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-2.2.0.tgz#72fd6f945c265f1ef9be647fe829d55df5101390" + integrity sha512-iFJp/N4EtkanFpBUtSrrIbtOIBf69KNuve03ic1afhJ9/korDxdM0c6cCH4Ehj/smI9pDCfVv+bqT3xZjF2WaA== dependencies: "@smithy/config-resolver" "^2.1.1" "@smithy/credential-provider-imds" "^2.2.1" @@ -5038,9 +5038,9 @@ form-data "^4.0.0" "@types/node@*": - version "20.11.16" - resolved "https://registry.npmjs.org/@types/node/-/node-20.11.16.tgz#4411f79411514eb8e2926f036c86c9f0e4ec6708" - integrity sha512-gKb0enTmRCzXSSUJDq6/sPcqrfCv2mkkG6Jt/clpn5eiCbKTY+SgZUxo+p8ZKMof5dCp9vHQUAB7wOUTod22wQ== + version "20.11.17" + resolved "https://registry.npmjs.org/@types/node/-/node-20.11.17.tgz#cdd642d0e62ef3a861f88ddbc2b61e32578a9292" + integrity sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw== dependencies: undici-types "~5.26.4" @@ -5050,14 +5050,14 @@ integrity sha512-YUgMWAQBWLObABqrvx8qKO1enAvBUdjZOAWQ5grBAkp5LQv45jBvYKZ3oFS9iKRCQyFjqw6iuEa1vmFqtxYLZw== "@types/node@^16", "@types/node@^16.9.2": - version "16.18.79" - resolved "https://registry.npmjs.org/@types/node/-/node-16.18.79.tgz#153e25561b271cf87dc1b28d38f98cebd514d788" - integrity sha512-Qd7jdLR5zmnIyMhfDrfPqN5tUCvreVpP3Qrf2oSM+F7SNzlb/MwHISGUkdFHtevfkPJ3iAGyeQI/jsbh9EStgQ== + version "16.18.80" + resolved "https://registry.npmjs.org/@types/node/-/node-16.18.80.tgz#9644e2d8acaf8163d46d23e05ce3822e9379dfc3" + integrity sha512-vFxJ1Iyl7A0+xB0uW1r1v504yItKZLdqg/VZELUZ4H02U0bXAgBisSQ8Erf0DMruNFz9ggoiEv6T8Ll9bTg8Jw== "@types/node@^18": - version "18.19.14" - resolved "https://registry.npmjs.org/@types/node/-/node-18.19.14.tgz#1880ff1b3ac913f3877f711588e5ed227da01886" - integrity sha512-EnQ4Us2rmOS64nHDWr0XqAD8DsO6f3XR6lf9UIIrZQpUzPVdN/oPuEzfDWNHSyXLvoGgjuEm/sPwFGSSs35Wtg== + version "18.19.15" + resolved "https://registry.npmjs.org/@types/node/-/node-18.19.15.tgz#313a9d75435669a57fc28dc8694e7f4c4319f419" + integrity sha512-AMZ2UWx+woHNfM11PyAEQmfSxi05jm9OlkxczuHeEqmvwPkYj6MWv44gbzDPefYOLysTOFyI3ziiy2ONmUZfpA== dependencies: undici-types "~5.26.4" @@ -5090,10 +5090,10 @@ dependencies: "@types/node" "*" -"@types/punycode@^2.1.3": - version "2.1.3" - resolved "https://registry.npmjs.org/@types/punycode/-/punycode-2.1.3.tgz#5c9dbab35931bb9e62cb392ae45bbdc2b2c8527a" - integrity sha512-dFkH9Mz0yY5UfQVSrpj1grQyqRwe4TohTLlHFx4Gli8/fsaNyoOVUAsiEBZk5JBwbEJVZ49W6st8D5g6dRJb/w== +"@types/punycode@^2.1.4": + version "2.1.4" + resolved "https://registry.npmjs.org/@types/punycode/-/punycode-2.1.4.tgz#96f8a47f1ee9fb0d0def5557fe80fac532f966fa" + integrity sha512-trzh6NzBnq8yw5e35f8xe8VTYjqM3NE7bohBtvDVf/dtUer3zYTLK1Ka3DG3p7bdtoaOHZucma6FfVKlQ134pQ== "@types/readdir-glob@*": version "1.1.5" @@ -5102,10 +5102,10 @@ dependencies: "@types/node" "*" -"@types/semver@^7.5.0", "@types/semver@^7.5.6": - version "7.5.6" - resolved "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz#c65b2bfce1bec346582c07724e3f8c1017a20339" - integrity sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A== +"@types/semver@^7.5.0", "@types/semver@^7.5.7": + version "7.5.7" + resolved "https://registry.npmjs.org/@types/semver/-/semver-7.5.7.tgz#326f5fdda70d13580777bcaa1bc6fa772a5aef0e" + integrity sha512-/wdoPq1QqkSj9/QOeKkFquEuPzQbHTWAMPH/PaUMB+JuR31lXhlWXRZ52IpfDYVlDOUBvX09uBrPwxGT1hjNBg== "@types/sinon@^10.0.10": version "10.0.20" @@ -5198,16 +5198,16 @@ resolved "https://registry.npmjs.org/@types/yarnpkg__lockfile/-/yarnpkg__lockfile-1.1.9.tgz#b3c8e8d66dc8ce79827f422a660a557cda9ded14" integrity sha512-GD4Fk15UoP5NLCNor51YdfL9MSdldKCqOC9EssrRw3HVfar9wUZ5y8Lfnp+qVD6hIinLr8ygklDYnmlnlQo12Q== -"@typescript-eslint/eslint-plugin@^6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.20.0.tgz#9cf31546d2d5e884602626d89b0e0d2168ac25ed" - integrity sha512-fTwGQUnjhoYHeSF6m5pWNkzmDDdsKELYrOBxhjMrofPqCkoC2k3B2wvGHFxa1CTIqkEn88nlW1HVMztjo2K8Hg== +"@typescript-eslint/eslint-plugin@^6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.21.0.tgz#30830c1ca81fd5f3c2714e524c4303e0194f9cd3" + integrity sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA== dependencies: "@eslint-community/regexpp" "^4.5.1" - "@typescript-eslint/scope-manager" "6.20.0" - "@typescript-eslint/type-utils" "6.20.0" - "@typescript-eslint/utils" "6.20.0" - "@typescript-eslint/visitor-keys" "6.20.0" + "@typescript-eslint/scope-manager" "6.21.0" + "@typescript-eslint/type-utils" "6.21.0" + "@typescript-eslint/utils" "6.21.0" + "@typescript-eslint/visitor-keys" "6.21.0" debug "^4.3.4" graphemer "^1.4.0" ignore "^5.2.4" @@ -5227,15 +5227,15 @@ eslint-scope "^5.1.1" eslint-utils "^3.0.0" -"@typescript-eslint/parser@^6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.20.0.tgz#17e314177304bdf498527e3c4b112e41287b7416" - integrity sha512-bYerPDF/H5v6V76MdMYhjwmwgMA+jlPVqjSDq2cRqMi8bP5sR3Z+RLOiOMad3nsnmDVmn2gAFCyNgh/dIrfP/w== +"@typescript-eslint/parser@^6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.21.0.tgz#af8fcf66feee2edc86bc5d1cf45e33b0630bf35b" + integrity sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ== dependencies: - "@typescript-eslint/scope-manager" "6.20.0" - "@typescript-eslint/types" "6.20.0" - "@typescript-eslint/typescript-estree" "6.20.0" - "@typescript-eslint/visitor-keys" "6.20.0" + "@typescript-eslint/scope-manager" "6.21.0" + "@typescript-eslint/types" "6.21.0" + "@typescript-eslint/typescript-estree" "6.21.0" + "@typescript-eslint/visitor-keys" "6.21.0" debug "^4.3.4" "@typescript-eslint/scope-manager@4.33.0": @@ -5246,21 +5246,21 @@ "@typescript-eslint/types" "4.33.0" "@typescript-eslint/visitor-keys" "4.33.0" -"@typescript-eslint/scope-manager@6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.20.0.tgz#8a926e60f6c47feb5bab878246dc2ae465730151" - integrity sha512-p4rvHQRDTI1tGGMDFQm+GtxP1ZHyAh64WANVoyEcNMpaTFn3ox/3CcgtIlELnRfKzSs/DwYlDccJEtr3O6qBvA== +"@typescript-eslint/scope-manager@6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz#ea8a9bfc8f1504a6ac5d59a6df308d3a0630a2b1" + integrity sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg== dependencies: - "@typescript-eslint/types" "6.20.0" - "@typescript-eslint/visitor-keys" "6.20.0" + "@typescript-eslint/types" "6.21.0" + "@typescript-eslint/visitor-keys" "6.21.0" -"@typescript-eslint/type-utils@6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.20.0.tgz#d395475cd0f3610dd80c7d8716fa0db767da3831" - integrity sha512-qnSobiJQb1F5JjN0YDRPHruQTrX7ICsmltXhkV536mp4idGAYrIyr47zF/JmkJtEcAVnIz4gUYJ7gOZa6SmN4g== +"@typescript-eslint/type-utils@6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.21.0.tgz#6473281cfed4dacabe8004e8521cee0bd9d4c01e" + integrity sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag== dependencies: - "@typescript-eslint/typescript-estree" "6.20.0" - "@typescript-eslint/utils" "6.20.0" + "@typescript-eslint/typescript-estree" "6.21.0" + "@typescript-eslint/utils" "6.21.0" debug "^4.3.4" ts-api-utils "^1.0.1" @@ -5269,10 +5269,10 @@ resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.33.0.tgz#a1e59036a3b53ae8430ceebf2a919dc7f9af6d72" integrity sha512-zKp7CjQzLQImXEpLt2BUw1tvOMPfNoTAfb8l51evhYbOEEzdWyQNmHWWGPR6hwKJDAi+1VXSBmnhL9kyVTTOuQ== -"@typescript-eslint/types@6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.20.0.tgz#5ccd74c29011ae7714ae6973e4ec0c634708b448" - integrity sha512-MM9mfZMAhiN4cOEcUOEx+0HmuaW3WBfukBZPCfwSqFnQy0grXYtngKCqpQN339X3RrwtzspWJrpbrupKYUSBXQ== +"@typescript-eslint/types@6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.21.0.tgz#205724c5123a8fef7ecd195075fa6e85bac3436d" + integrity sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg== "@typescript-eslint/typescript-estree@4.33.0", "@typescript-eslint/typescript-estree@^4.33.0": version "4.33.0" @@ -5287,13 +5287,13 @@ semver "^7.3.5" tsutils "^3.21.0" -"@typescript-eslint/typescript-estree@6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.20.0.tgz#5b2d0975949e6bdd8d45ee1471461ef5fadc5542" - integrity sha512-RnRya9q5m6YYSpBN7IzKu9FmLcYtErkDkc8/dKv81I9QiLLtVBHrjz+Ev/crAqgMNW2FCsoZF4g2QUylMnJz+g== +"@typescript-eslint/typescript-estree@6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz#c47ae7901db3b8bddc3ecd73daff2d0895688c46" + integrity sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ== dependencies: - "@typescript-eslint/types" "6.20.0" - "@typescript-eslint/visitor-keys" "6.20.0" + "@typescript-eslint/types" "6.21.0" + "@typescript-eslint/visitor-keys" "6.21.0" debug "^4.3.4" globby "^11.1.0" is-glob "^4.0.3" @@ -5301,17 +5301,17 @@ semver "^7.5.4" ts-api-utils "^1.0.1" -"@typescript-eslint/utils@6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.20.0.tgz#0e52afcfaa51af5656490ba4b7437cc3aa28633d" - integrity sha512-/EKuw+kRu2vAqCoDwDCBtDRU6CTKbUmwwI7SH7AashZ+W+7o8eiyy6V2cdOqN49KsTcASWsC5QeghYuRDTyOOg== +"@typescript-eslint/utils@6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz#4714e7a6b39e773c1c8e97ec587f520840cd8134" + integrity sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ== dependencies: "@eslint-community/eslint-utils" "^4.4.0" "@types/json-schema" "^7.0.12" "@types/semver" "^7.5.0" - "@typescript-eslint/scope-manager" "6.20.0" - "@typescript-eslint/types" "6.20.0" - "@typescript-eslint/typescript-estree" "6.20.0" + "@typescript-eslint/scope-manager" "6.21.0" + "@typescript-eslint/types" "6.21.0" + "@typescript-eslint/typescript-estree" "6.21.0" semver "^7.5.4" "@typescript-eslint/visitor-keys@4.33.0": @@ -5322,12 +5322,12 @@ "@typescript-eslint/types" "4.33.0" eslint-visitor-keys "^2.0.0" -"@typescript-eslint/visitor-keys@6.20.0": - version "6.20.0" - resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.20.0.tgz#f7ada27f2803de89df0edd9fd7be22c05ce6a498" - integrity sha512-E8Cp98kRe4gKHjJD4NExXKz/zOJ1A2hhZc+IMVD6i7w4yjIvh6VyuRI0gRtxAsXtoC35uGMaQ9rjI2zJaXDEAw== +"@typescript-eslint/visitor-keys@6.21.0": + version "6.21.0" + resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz#87a99d077aa507e20e238b11d56cc26ade45fe47" + integrity sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A== dependencies: - "@typescript-eslint/types" "6.20.0" + "@typescript-eslint/types" "6.21.0" eslint-visitor-keys "^3.4.1" "@ungap/structured-clone@^1.2.0": @@ -5623,13 +5623,13 @@ argparse@^2.0.1: resolved "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== -array-buffer-byte-length@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz#fabe8bc193fea865f317fe7807085ee0dee5aead" - integrity sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A== +array-buffer-byte-length@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz#1e5583ec16763540a27ae52eed99ff899223568f" + integrity sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg== dependencies: - call-bind "^1.0.2" - is-array-buffer "^3.0.1" + call-bind "^1.0.5" + is-array-buffer "^3.0.4" array-differ@^3.0.0: version "3.0.0" @@ -5662,16 +5662,27 @@ array-union@^2.1.0: resolved "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== -array.prototype.findlastindex@^1.2.3: - version "1.2.3" - resolved "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz#b37598438f97b579166940814e2c0493a4f50207" - integrity sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA== +array.prototype.filter@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/array.prototype.filter/-/array.prototype.filter-1.0.3.tgz#423771edeb417ff5914111fff4277ea0624c0d0e" + integrity sha512-VizNcj/RGJiUyQBgzwxzE5oHdeuXY5hSbbmKMlphj1cy1Vl7Pn2asCGbSrru6hSQjmCzqTBPVWAF/whmEOVHbw== dependencies: call-bind "^1.0.2" define-properties "^1.2.0" es-abstract "^1.22.1" - es-shim-unscopables "^1.0.0" - get-intrinsic "^1.2.1" + es-array-method-boxes-properly "^1.0.0" + is-string "^1.0.7" + +array.prototype.findlastindex@^1.2.3: + version "1.2.4" + resolved "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.4.tgz#d1c50f0b3a9da191981ff8942a0aedd82794404f" + integrity sha512-hzvSHUshSpCflDR1QMUBLHGHP1VIEBegT4pix9H/Z92Xw3ySoy6c2qh7lJWTJnRJ8JCZ9bJNCgTyYaJGcJu6xQ== + dependencies: + call-bind "^1.0.5" + define-properties "^1.2.1" + es-abstract "^1.22.3" + es-errors "^1.3.0" + es-shim-unscopables "^1.0.2" array.prototype.flat@^1.3.2: version "1.3.2" @@ -5693,17 +5704,18 @@ array.prototype.flatmap@^1.3.2: es-abstract "^1.22.1" es-shim-unscopables "^1.0.0" -arraybuffer.prototype.slice@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz#98bd561953e3e74bb34938e77647179dfe6e9f12" - integrity sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw== +arraybuffer.prototype.slice@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz#097972f4255e41bc3425e37dc3f6421cf9aefde6" + integrity sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A== dependencies: - array-buffer-byte-length "^1.0.0" - call-bind "^1.0.2" - define-properties "^1.2.0" - es-abstract "^1.22.1" - get-intrinsic "^1.2.1" - is-array-buffer "^3.0.2" + array-buffer-byte-length "^1.0.1" + call-bind "^1.0.5" + define-properties "^1.2.1" + es-abstract "^1.22.3" + es-errors "^1.2.1" + get-intrinsic "^1.2.3" + is-array-buffer "^3.0.4" is-shared-array-buffer "^1.0.2" arrify@^1.0.1: @@ -5823,10 +5835,10 @@ aws-sdk-mock@5.8.0: sinon "^14.0.1" traverse "^0.6.6" -aws-sdk@2.1548.0, aws-sdk@^2.1231.0, aws-sdk@^2.1548.0, aws-sdk@^2.928.0: - version "2.1548.0" - resolved "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1548.0.tgz#f888f266b0675e5021f48704df7a56de9856caa1" - integrity sha512-kmo3FvO7xKuB7WfLKm6ABuecZeUTFtfwrbrGjWMiCC/yNwP1S3oSm/j/Yy7LO8sQfukWSOXpnPfMk5yhhqq3UQ== +aws-sdk@2.1557.0, aws-sdk@^2.1231.0, aws-sdk@^2.1557.0, aws-sdk@^2.928.0: + version "2.1557.0" + resolved "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1557.0.tgz#e5f15b05b10b13f1397f066b1ac5bcb5ac2845d6" + integrity sha512-625JNSUXC/t+iz8GCfzR+gBfi1mB/7W3OnmDag5SG+za76u19wSIMzUQBKPh82YJny6jhU0XVV3KfN3trI8mUg== dependencies: buffer "4.9.2" events "1.1.1" @@ -6176,14 +6188,16 @@ caching-transform@^4.0.0: package-hash "^4.0.0" write-file-atomic "^3.0.0" -call-bind@^1.0.0, call-bind@^1.0.2, call-bind@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz#6fa2b7845ce0ea49bf4d8b9ef64727a2c2e2e513" - integrity sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ== +call-bind@^1.0.0, call-bind@^1.0.2, call-bind@^1.0.5, call-bind@^1.0.6, call-bind@^1.0.7: + version "1.0.7" + resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" + integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" function-bind "^1.1.2" - get-intrinsic "^1.2.1" - set-function-length "^1.1.1" + get-intrinsic "^1.2.4" + set-function-length "^1.2.1" callsites@^3.0.0: version "3.1.0" @@ -6223,9 +6237,9 @@ camelcase@^7.0.1: integrity sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw== caniuse-lite@^1.0.30001580: - version "1.0.30001582" - resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001582.tgz#db3070547ce0b48d9f44a509b86c4a02ba5d9055" - integrity sha512-vsJG3V5vgfduaQGVxL53uSX/HUzxyr2eA8xCo36OLal7sRcSZbibJtLeh0qja4sFOr/QQGt4opB4tOy+eOgAxg== + version "1.0.30001587" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001587.tgz#a0bce920155fa56a1885a69c74e1163fc34b4881" + integrity sha512-HMFNotUmLXn71BQxg8cijvqxnIAofforZOwGsxyXJ0qugTdspUF4sPSJ2vhgprHCB996tIDzEq1ubumPDV8ULA== canonicalize@^2.0.0: version "2.0.0" @@ -6246,15 +6260,15 @@ case@1.6.3, case@^1.6.3: resolved "https://registry.npmjs.org/case/-/case-1.6.3.tgz#0a4386e3e9825351ca2e6216c60467ff5f1ea1c9" integrity sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ== -cdk-from-cfn@^0.125.0: - version "0.125.0" - resolved "https://registry.npmjs.org/cdk-from-cfn/-/cdk-from-cfn-0.125.0.tgz#aed96acc0373953aaa3331c8d4c6e69c363d2cdf" - integrity sha512-abQjPFd+9m3cBu/GIpF6xm2Kb6s5HkThcWkugYvusyo527a3MGFH8wIgp7EjTFQ9omHALtofsySLmiE9ZyV8vg== +cdk-from-cfn@^0.130.0: + version "0.130.0" + resolved "https://registry.npmjs.org/cdk-from-cfn/-/cdk-from-cfn-0.130.0.tgz#d610f7d8ea2ea9b104a1723f776f4930fab45149" + integrity sha512-+sYgM3SljM73dU/faCV2kIciEOZDif+CiIzOQjAF1Zl+SiIclEHFJQSD/8AR5FFSX0DGvjLhQGoJ6mVa/DPgOw== -cdk-generate-synthetic-examples@^0.1.302: - version "0.1.302" - resolved "https://registry.npmjs.org/cdk-generate-synthetic-examples/-/cdk-generate-synthetic-examples-0.1.302.tgz#e4e122eee9cbfb225d9c32a506d8981d984f9a02" - integrity sha512-cTm+55zh0SUH/PXjwnseKZPlx+uv4E6KuOLTlhzREoxGbcsfv6ftwcYDNCh7LVnf4gHLKn3lW+epAPXSQHzObA== +cdk-generate-synthetic-examples@^0.1.303: + version "0.1.303" + resolved "https://registry.npmjs.org/cdk-generate-synthetic-examples/-/cdk-generate-synthetic-examples-0.1.303.tgz#7ef6b7bbb3f9fd8ae174e7f35da73e1753d043e6" + integrity sha512-8Se/jbGVwbuksmWkTXMQEnhqvOwSgiQquHfMBC1OBH7S1rfajd9zyqst/vI7HZ7HCQaORzwiwByf798FIOWhGQ== dependencies: "@jsii/spec" "^1.94.0" fs-extra "^10.1.0" @@ -6263,19 +6277,19 @@ cdk-generate-synthetic-examples@^0.1.302: jsii-rosetta "^1.94.0" yargs "^17.7.2" -cdk8s-plus-27@2.7.75: - version "2.7.75" - resolved "https://registry.npmjs.org/cdk8s-plus-27/-/cdk8s-plus-27-2.7.75.tgz#d3fcc1d3e806ae75251461372ff5a04ab7a9fd14" - integrity sha512-yBgUsh/2TQM9xH3NUYnLaBIa5Iyg8nfL56SCChEnyTfUzkwuczIEev11FBkVyObl/ljqvaUz2ztcMY75EtmpMA== +cdk8s-plus-27@2.7.77: + version "2.7.77" + resolved "https://registry.npmjs.org/cdk8s-plus-27/-/cdk8s-plus-27-2.7.77.tgz#a6c33362d69d0d56aa0ef5c9b17c6b7c0e1df66b" + integrity sha512-Q+Iqb13ZdMRuYcI8mbLvjoYqy7bxFUSv6Qdkp8XnP9q4LKpzcil5j23/UwYLnc4aPS/xDxZj0heN32jkHmbShA== dependencies: minimatch "^3.1.2" optionalDependencies: backport "8.5.0" -cdk8s@2.68.33: - version "2.68.33" - resolved "https://registry.npmjs.org/cdk8s/-/cdk8s-2.68.33.tgz#cc1aac32c8a4bbfb56f9ef5602c09fb15a7fff75" - integrity sha512-9VuUF5CBaU2KVd/4rECbTPKBWv0DmkpGpUDCN9g2YRzpvUNkzjEN1XkzHrYGwZIyDIOWOYOsj6iCkT5gsshFqg== +cdk8s@2.68.37: + version "2.68.37" + resolved "https://registry.npmjs.org/cdk8s/-/cdk8s-2.68.37.tgz#2710553e072e372bbe01ec419107ecbe9cc18c74" + integrity sha512-7wGgsdK28S0Qms2FQ1dxe+zVRprYiCgT24QVsnZYrrOU9xJHjMX2NyW4qRVdruyJBClKw14jPfPKiDCdiGyjBg== dependencies: fast-json-patch "^3.1.1" follow-redirects "^1.15.2" @@ -6349,10 +6363,10 @@ chardet@^0.7.0: resolved "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== -chokidar@^3.5.3: - version "3.5.3" - resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" - integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== +chokidar@^3.6.0: + version "3.6.0" + resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" + integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== dependencies: anymatch "~3.1.2" braces "~3.0.2" @@ -7097,10 +7111,10 @@ dargs@^7.0.0: resolved "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz#04015c41de0bcb69ec84050f3d9be0caf8d6d5cc" integrity sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg== -data-uri-to-buffer@^6.0.0: - version "6.0.1" - resolved "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.1.tgz#540bd4c8753a25ee129035aebdedf63b078703c7" - integrity sha512-MZd3VlchQkp8rdend6vrx7MmVDJzSNTBvghvKjirLkD+WTChA3KUf0jkE68Q4UyctNqI11zZO9/x2Yx+ub5Cvg== +data-uri-to-buffer@^6.0.2: + version "6.0.2" + resolved "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz#8a58bb67384b261a38ef18bea1810cb01badd28b" + integrity sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw== date-format@^4.0.14: version "4.0.14" @@ -7200,14 +7214,14 @@ defer-to-connect@^2.0.1: resolved "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz#8016bdb4143e4632b77a3449c6236277de520587" integrity sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg== -define-data-property@^1.0.1, define-data-property@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz#c35f7cd0ab09883480d12ac5cb213715587800b3" - integrity sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ== +define-data-property@^1.0.1, define-data-property@^1.1.2: + version "1.1.4" + resolved "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" + integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== dependencies: - get-intrinsic "^1.2.1" + es-define-property "^1.0.0" + es-errors "^1.3.0" gopd "^1.0.1" - has-property-descriptors "^1.0.0" define-lazy-prop@^2.0.0: version "2.0.0" @@ -7404,10 +7418,10 @@ diff@^4.0.1, diff@^4.0.2: resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== -diff@^5.0.0, diff@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz#bc52d298c5ea8df9194800224445ed43ffc87e40" - integrity sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw== +diff@^5.0.0, diff@^5.1.0, diff@^5.2.0: + version "5.2.0" + resolved "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz#26ded047cd1179b78b9537d5ef725503ce1ae531" + integrity sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A== difflib@~0.2.1: version "0.2.4" @@ -7470,9 +7484,9 @@ dotenv-json@^1.0.0: integrity sha512-jAssr+6r4nKhKRudQ0HOzMskOFFi9+ubXWwmrSGJFgTvpjyPXCXsCsYbjif6mXp7uxA7xY3/LGaiTQukZzSbOQ== dotenv@^16.0.1: - version "16.4.1" - resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.4.1.tgz#1d9931f1d3e5d2959350d1250efab299561f7f11" - integrity sha512-CjA3y+Dr3FyFDOAMnxZEGtnW9KBR2M0JvvUtXNW+dYJL5ROWxP9DUHCwgFqpMk0OXCc0ljhaNTr2w/kutYIcHQ== + version "16.4.4" + resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.4.4.tgz#a26e7bb95ebd36272ebb56edb80b826aecf224c1" + integrity sha512-XvPXc8XAQThSjAbY6cQ/9PcBXmFoWuw1sQ3b8HqUCR6ziGXjkTi//kB9SWa2UwqlgdAIuRqAa/9hVljzPehbYg== dotenv@^8.0.0: version "8.6.0" @@ -7521,9 +7535,9 @@ ejs@^3.1.7: jake "^10.8.5" electron-to-chromium@^1.4.648: - version "1.4.653" - resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.653.tgz#832ab25e80ad698ac09c1ca547bd9ee6cce7df10" - integrity sha512-wA2A2LQCqnEwQAvwADQq3KpMpNwgAUBnRmrFgRzHnPhbQUFArTR32Ab46f4p0MovDLcg4uqd4nCsN2hTltslpA== + version "1.4.668" + resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.668.tgz#5cfed14f3240cdc70a359a49790cb295b1f097f1" + integrity sha512-ZOBocMYCehr9W31+GpMclR+KBaDZOoAEabLdhpZ8oU1JFDwIaFY0UDbpXVEUFc0BIP2O2Qn3rkfCjQmMR4T/bQ== emittery@^0.13.1: version "0.13.1" @@ -7614,52 +7628,71 @@ error-ex@^1.3.1: dependencies: is-arrayish "^0.2.1" -es-abstract@^1.17.5, es-abstract@^1.22.1: - version "1.22.3" - resolved "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz#48e79f5573198de6dee3589195727f4f74bc4f32" - integrity sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA== +es-abstract@^1.17.5, es-abstract@^1.22.1, es-abstract@^1.22.3: + version "1.22.4" + resolved "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.4.tgz#26eb2e7538c3271141f5754d31aabfdb215f27bf" + integrity sha512-vZYJlk2u6qHYxBOTjAeg7qUxHdNfih64Uu2J8QqWgXZ2cri0ZpJAkzDUK/q593+mvKwlxyaxr6F1Q+3LKoQRgg== dependencies: - array-buffer-byte-length "^1.0.0" - arraybuffer.prototype.slice "^1.0.2" - available-typed-arrays "^1.0.5" - call-bind "^1.0.5" - es-set-tostringtag "^2.0.1" + array-buffer-byte-length "^1.0.1" + arraybuffer.prototype.slice "^1.0.3" + available-typed-arrays "^1.0.6" + call-bind "^1.0.7" + es-define-property "^1.0.0" + es-errors "^1.3.0" + es-set-tostringtag "^2.0.2" es-to-primitive "^1.2.1" function.prototype.name "^1.1.6" - get-intrinsic "^1.2.2" - get-symbol-description "^1.0.0" + get-intrinsic "^1.2.4" + get-symbol-description "^1.0.2" globalthis "^1.0.3" gopd "^1.0.1" - has-property-descriptors "^1.0.0" + has-property-descriptors "^1.0.2" has-proto "^1.0.1" has-symbols "^1.0.3" - hasown "^2.0.0" - internal-slot "^1.0.5" - is-array-buffer "^3.0.2" + hasown "^2.0.1" + internal-slot "^1.0.7" + is-array-buffer "^3.0.4" is-callable "^1.2.7" is-negative-zero "^2.0.2" is-regex "^1.1.4" is-shared-array-buffer "^1.0.2" is-string "^1.0.7" - is-typed-array "^1.1.12" + is-typed-array "^1.1.13" is-weakref "^1.0.2" object-inspect "^1.13.1" object-keys "^1.1.1" - object.assign "^4.1.4" - regexp.prototype.flags "^1.5.1" - safe-array-concat "^1.0.1" - safe-regex-test "^1.0.0" + object.assign "^4.1.5" + regexp.prototype.flags "^1.5.2" + safe-array-concat "^1.1.0" + safe-regex-test "^1.0.3" string.prototype.trim "^1.2.8" string.prototype.trimend "^1.0.7" string.prototype.trimstart "^1.0.7" - typed-array-buffer "^1.0.0" + typed-array-buffer "^1.0.1" typed-array-byte-length "^1.0.0" typed-array-byte-offset "^1.0.0" typed-array-length "^1.0.4" unbox-primitive "^1.0.2" - which-typed-array "^1.1.13" + which-typed-array "^1.1.14" + +es-array-method-boxes-properly@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz#873f3e84418de4ee19c5be752990b2e44718d09e" + integrity sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA== + +es-define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" + integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== + dependencies: + get-intrinsic "^1.2.4" + +es-errors@^1.0.0, es-errors@^1.2.1, es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== -es-set-tostringtag@^2.0.1: +es-set-tostringtag@^2.0.2: version "2.0.2" resolved "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz#11f7cc9f63376930a5f20be4915834f4bc74f9c9" integrity sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q== @@ -7668,7 +7701,7 @@ es-set-tostringtag@^2.0.1: has-tostringtag "^1.0.0" hasown "^2.0.0" -es-shim-unscopables@^1.0.0: +es-shim-unscopables@^1.0.0, es-shim-unscopables@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz#1f6942e71ecc7835ed1c8a83006d8771a63a3763" integrity sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw== @@ -7755,9 +7788,9 @@ esbuild@^0.20.0: "@esbuild/win32-x64" "0.20.0" escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== + version "3.1.2" + resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" + integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== escape-goat@^4.0.0: version "4.0.0" @@ -8186,9 +8219,9 @@ fastest-levenshtein@^1.0.12: integrity sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg== fastq@^1.6.0: - version "1.17.0" - resolved "https://registry.npmjs.org/fastq/-/fastq-1.17.0.tgz#ca5e1a90b5e68f97fc8b61330d5819b82f5fab03" - integrity sha512-zGygtijUMT7jnk3h26kUms3BkSDp4IfIKjmnqI2tvx6nuBfiF1UqOxbnLfzdv+apBy+53oaImsKtMw/xYbW+1w== + version "1.17.1" + resolved "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz#2a523f07a4e7b1e81a42b91b8bf2254107753b47" + integrity sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w== dependencies: reusify "^1.0.4" @@ -8331,9 +8364,9 @@ flatten@^1.0.2: integrity sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg== flow-parser@0.*: - version "0.227.0" - resolved "https://registry.npmjs.org/flow-parser/-/flow-parser-0.227.0.tgz#e50b65be9dc6810438c975e816a68005fbcd5107" - integrity sha512-nOygtGKcX/siZK/lFzpfdHEfOkfGcTW7rNroR1Zsz6T/JxSahPALXVt5qVHq/fgvMJuv096BTKbgxN3PzVBaDA== + version "0.228.0" + resolved "https://registry.npmjs.org/flow-parser/-/flow-parser-0.228.0.tgz#0b801507c8cf44257338596b49bd0904caea2026" + integrity sha512-xPWkzCO07AnS8X+fQFpWm+tJ+C7aeaiVzJ+rSepbkCXUvUJ6l6squEl63axoMcixyH4wLjmypOzq/+zTD0O93w== fn.name@1.x.x: version "1.1.0" @@ -8529,11 +8562,12 @@ get-caller-file@^2.0.1, get-caller-file@^2.0.5: resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2: - version "1.2.2" - resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz#281b7622971123e1ef4b3c90fd7539306da93f3b" - integrity sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA== +get-intrinsic@^1.1.3, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2, get-intrinsic@^1.2.3, get-intrinsic@^1.2.4: + version "1.2.4" + resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" + integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== dependencies: + es-errors "^1.3.0" function-bind "^1.1.2" has-proto "^1.0.1" has-symbols "^1.0.3" @@ -8584,23 +8618,24 @@ get-stream@^6.0.0, get-stream@^6.0.1: resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== -get-symbol-description@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6" - integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== +get-symbol-description@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz#533744d5aa20aca4e079c8e5daf7fd44202821f5" + integrity sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg== dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.1.1" + call-bind "^1.0.5" + es-errors "^1.3.0" + get-intrinsic "^1.2.4" get-uri@^6.0.1: - version "6.0.2" - resolved "https://registry.npmjs.org/get-uri/-/get-uri-6.0.2.tgz#e019521646f4a8ff6d291fbaea2c46da204bb75b" - integrity sha512-5KLucCJobh8vBY1K07EFV4+cPZH3mrV9YeAruUseCQKHB58SGjjT2l9/eA9LD082IiuMjSlFJEcdJ27TXvbZNw== + version "6.0.3" + resolved "https://registry.npmjs.org/get-uri/-/get-uri-6.0.3.tgz#0d26697bc13cf91092e519aa63aa60ee5b6f385a" + integrity sha512-BzUrJBS9EcUb4cFol8r4W3v1cPsSyajLSthNkz5BxbpDcHN5tIrM10E2eNvfnvBn3DaT3DUgx0OpsBKkaOpanw== dependencies: basic-ftp "^5.0.2" - data-uri-to-buffer "^6.0.0" + data-uri-to-buffer "^6.0.2" debug "^4.3.4" - fs-extra "^8.1.0" + fs-extra "^11.2.0" git-raw-commits@^2.0.11, git-raw-commits@^2.0.8: version "2.0.11" @@ -8873,12 +8908,12 @@ has-flag@^4.0.0: resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== -has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz#52ba30b6c5ec87fd89fa574bc1c39125c6f65340" - integrity sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg== +has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.1, has-property-descriptors@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" + integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== dependencies: - get-intrinsic "^1.2.2" + es-define-property "^1.0.0" has-proto@^1.0.1: version "1.0.1" @@ -8891,9 +8926,11 @@ has-symbols@^1.0.2, has-symbols@^1.0.3: integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== has-tostringtag@^1.0.0, has-tostringtag@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.1.tgz#5d242715a441a1c9a46d543e6dbead8defdfc226" - integrity sha512-6J4rC9ROz0UkOpjn0BRtSSqlewDTDYJNQvy8N8RSrPCduUWId1o9BQPEVII/KKBqRk/ZIQff1YbRkUDCH2N5Sg== + version "1.0.2" + resolved "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc" + integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== + dependencies: + has-symbols "^1.0.3" has-unicode@2.0.1, has-unicode@^2.0.0, has-unicode@^2.0.1: version "2.0.1" @@ -8913,10 +8950,10 @@ hasha@^5.0.0: is-stream "^2.0.0" type-fest "^0.8.0" -hasown@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz#f4c513d454a57b7c7e1650778de226b11700546c" - integrity sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA== +hasown@^2.0.0, hasown@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz#26f48f039de2c0f8d3356c223fb8d50253519faa" + integrity sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA== dependencies: function-bind "^1.1.2" @@ -8985,10 +9022,10 @@ http-proxy-agent@^5.0.0: agent-base "6" debug "4" -http-proxy-agent@^7.0.0: - version "7.0.0" - resolved "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz#e9096c5afd071a3fce56e6252bb321583c124673" - integrity sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ== +http-proxy-agent@^7.0.0, http-proxy-agent@^7.0.1: + version "7.0.1" + resolved "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.1.tgz#f1c7df4bd6c30ba90f2c713fd4b60d3989d4b3d9" + integrity sha512-My1KCEPs6A0hb4qCVzYp8iEvA8j8YqcvXLZZH8C9OFuTYpYjHE7N2dtG3mRl1HMD4+VGXpF3XcDVcxGBT7yDZQ== dependencies: agent-base "^7.1.0" debug "^4.3.4" @@ -9009,10 +9046,10 @@ https-proxy-agent@^5.0.0: agent-base "6" debug "4" -https-proxy-agent@^7.0.2: - version "7.0.2" - resolved "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz#e2645b846b90e96c6e6f347fb5b2e41f1590b09b" - integrity sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA== +https-proxy-agent@^7.0.2, https-proxy-agent@^7.0.3: + version "7.0.3" + resolved "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.3.tgz#93f115f0f106a746faf364d1301b2e561cdf70de" + integrity sha512-kCnwztfX0KZJSLOBrcL0emLeFako55NWMovvyPP2AjsghNk9RB1yjSI+jVumPHYZsNXegNoqupSW9IY3afSH8w== dependencies: agent-base "^7.0.2" debug "4" @@ -9203,12 +9240,12 @@ inquirer@^8.2.3, inquirer@^8.2.4: through "^2.3.6" wrap-ansi "^6.0.1" -internal-slot@^1.0.5: - version "1.0.6" - resolved "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.6.tgz#37e756098c4911c5e912b8edbf71ed3aa116f930" - integrity sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg== +internal-slot@^1.0.7: + version "1.0.7" + resolved "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz#c06dcca3ed874249881007b0a5523b172a190802" + integrity sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g== dependencies: - get-intrinsic "^1.2.2" + es-errors "^1.3.0" hasown "^2.0.0" side-channel "^1.0.4" @@ -9217,21 +9254,19 @@ interpret@^1.0.0: resolved "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== +ip-address@^9.0.5: + version "9.0.5" + resolved "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz#117a960819b08780c3bd1f14ef3c1cc1d3f3ea5a" + integrity sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g== + dependencies: + jsbn "1.1.0" + sprintf-js "^1.1.3" + ip-regex@^4.1.0: version "4.3.0" resolved "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5" integrity sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q== -ip@^1.1.8: - version "1.1.8" - resolved "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz#ae05948f6b075435ed3307acce04629da8cdbf48" - integrity sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg== - -ip@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz#4cf4ab182fee2314c75ede1276f8c80b479936da" - integrity sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ== - is-arguments@^1.0.4: version "1.1.1" resolved "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz#15b3f88fda01f2a97fec84ca761a560f123efa9b" @@ -9240,14 +9275,13 @@ is-arguments@^1.0.4: call-bind "^1.0.2" has-tostringtag "^1.0.0" -is-array-buffer@^3.0.1, is-array-buffer@^3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz#f2653ced8412081638ecb0ebbd0c41c6e0aecbbe" - integrity sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w== +is-array-buffer@^3.0.4: + version "3.0.4" + resolved "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz#7a1f92b3d61edd2bc65d24f130530ea93d7fae98" + integrity sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw== dependencies: call-bind "^1.0.2" - get-intrinsic "^1.2.0" - is-typed-array "^1.1.10" + get-intrinsic "^1.2.1" is-arrayish@^0.2.1: version "0.2.1" @@ -9513,12 +9547,12 @@ is-text-path@^1.0.1: dependencies: text-extensions "^1.0.0" -is-typed-array@^1.1.10, is-typed-array@^1.1.12, is-typed-array@^1.1.3, is-typed-array@^1.1.9: - version "1.1.12" - resolved "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz#d0bab5686ef4a76f7a73097b95470ab199c57d4a" - integrity sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg== +is-typed-array@^1.1.10, is-typed-array@^1.1.13, is-typed-array@^1.1.3, is-typed-array@^1.1.9: + version "1.1.13" + resolved "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz#d6c5ca56df62334959322d7d7dd1cca50debe229" + integrity sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw== dependencies: - which-typed-array "^1.1.11" + which-typed-array "^1.1.14" is-typedarray@^1.0.0: version "1.0.0" @@ -10160,6 +10194,11 @@ js-yaml@^3.10.0, js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" +jsbn@1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz#b01307cb29b618a1ed26ec79e911f803c4da0040" + integrity sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A== + jscodeshift@0.15.0: version "0.15.0" resolved "https://registry.npmjs.org/jscodeshift/-/jscodeshift-0.15.0.tgz#32fc8d90193d17cdf1b34604496922838500b51f" @@ -10251,10 +10290,10 @@ jsii-rosetta@^1.94.0: workerpool "^6.5.1" yargs "^16.2.0" -jsii-rosetta@~5.3.9: - version "5.3.9" - resolved "https://registry.npmjs.org/jsii-rosetta/-/jsii-rosetta-5.3.9.tgz#781b5d837c0c04504c3fea0486e9ee14897a23f9" - integrity sha512-V1m+f0SHgSlW0R0pexGsHxi0rWoS936VVmkGaewoulOzkB/v0vajdebHKZBEcw2wizpxjttXZHTrk1SyiFKmuA== +jsii-rosetta@~5.3.15: + version "5.3.15" + resolved "https://registry.npmjs.org/jsii-rosetta/-/jsii-rosetta-5.3.15.tgz#56257131db9de69a7daaaed09369a93bb3d612a7" + integrity sha512-RP0jCHdp3M1FbInr1dVB3Q/WKLTupR7KHTNlmWuVURcURK6LKgRrXIwwo/k+fEmB+9WoQs/WUvNpq9bKUrsu8A== dependencies: "@jsii/check-node" "1.94.0" "@jsii/spec" "^1.94.0" @@ -10289,10 +10328,10 @@ jsii@1.94.0, jsii@^1.94.0: typescript "~3.9.10" yargs "^16.2.0" -jsii@~5.3.0, jsii@~5.3.12: - version "5.3.12" - resolved "https://registry.npmjs.org/jsii/-/jsii-5.3.12.tgz#b19ae542ee006148f6d35cc73431f824cf01b942" - integrity sha512-G2hWcEIfED1JuP6EwCFO94Ho4LO8j/na7A4I/ekdCEEmdLAFUvgXTZ4rRuZeiMLmvU0rKyb24r8V18gl+BbkNA== +jsii@~5.3.0, jsii@~5.3.18: + version "5.3.18" + resolved "https://registry.npmjs.org/jsii/-/jsii-5.3.18.tgz#21e963355d7b5ee0a72ae8d27529d598f0ba366f" + integrity sha512-1BQT5rMDNiyZp7u5461EQQuEOnPJv0UEFlTHgDZJqqCeh1OquTpB0fYFfpJnsvl4C1aleBYo3f0QMzvV7wLVjw== dependencies: "@jsii/check-node" "1.94.0" "@jsii/spec" "^1.94.0" @@ -10301,7 +10340,7 @@ jsii@~5.3.0, jsii@~5.3.12: downlevel-dts "^0.11.0" fast-deep-equal "^3.1.3" log4js "^6.9.1" - semver "^7.5.4" + semver "^7.6.0" semver-intersect "^1.5.0" sort-json "^2.0.1" spdx-license-list "^6.8.0" @@ -11710,9 +11749,9 @@ npm-bundled@^3.0.0: npm-normalize-package-bin "^3.0.0" npm-check-updates@^16: - version "16.14.14" - resolved "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-16.14.14.tgz#754ceec1a14c8e2d435807c6290dc08f9607dff3" - integrity sha512-Y3ajS/Ep40jM489rLBdz9jehn/BMil5s9fA4PSr2ZJxxSmtLWCSmRqsI2IEZ9Nb3MTMu8a3s7kBs0l+JbjdkTA== + version "16.14.15" + resolved "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-16.14.15.tgz#2126328d1fecc08f70b6e88da433bd5dfa0f9af0" + integrity sha512-WH0wJ9j6CP7Azl+LLCxWAYqroT2IX02kRIzgK/fg0rPpMbETgHITWBdOPtrv521xmA3JMgeNsQ62zvVtS/nCmQ== dependencies: chalk "^5.3.0" cli-table3 "^0.6.3" @@ -12097,7 +12136,7 @@ object-assign@^4.1.0: resolved "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== -object-inspect@^1.13.1, object-inspect@^1.9.0: +object-inspect@^1.13.1: version "1.13.1" resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz#b96c6109324ccfef6b12216a956ca4dc2ff94bc2" integrity sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ== @@ -12115,7 +12154,7 @@ object-keys@^1.1.1: resolved "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== -object.assign@^4.1.4: +object.assign@^4.1.4, object.assign@^4.1.5: version "4.1.5" resolved "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz#3a833f9ab7fdb80fc9e8d2300c803d216d8fdbb0" integrity sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ== @@ -12135,14 +12174,15 @@ object.fromentries@^2.0.7: es-abstract "^1.22.1" object.groupby@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.1.tgz#d41d9f3c8d6c778d9cbac86b4ee9f5af103152ee" - integrity sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ== + version "1.0.2" + resolved "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.2.tgz#494800ff5bab78fd0eff2835ec859066e00192ec" + integrity sha512-bzBq58S+x+uo0VjurFT0UktpKHOZmv4/xePiOA1nbB9pMqpGK7rUPNgf+1YC+7mE+0HzhTMqNUuCqvKhj6FnBw== dependencies: - call-bind "^1.0.2" - define-properties "^1.2.0" - es-abstract "^1.22.1" - get-intrinsic "^1.2.1" + array.prototype.filter "^1.0.3" + call-bind "^1.0.5" + define-properties "^1.2.1" + es-abstract "^1.22.3" + es-errors "^1.0.0" object.values@^1.1.7: version "1.1.7" @@ -12386,12 +12426,11 @@ pac-proxy-agent@^7.0.1: socks-proxy-agent "^8.0.2" pac-resolver@^7.0.0: - version "7.0.0" - resolved "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.0.tgz#79376f1ca26baf245b96b34c339d79bff25e900c" - integrity sha512-Fd9lT9vJbHYRACT8OhCbZBbxr6KRSawSovFpy8nDGshaK99S/EBhVIHp9+crhxrsZOuvLpgL1n23iyPg6Rl2hg== + version "7.0.1" + resolved "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz#54675558ea368b64d210fd9c92a640b5f3b8abb6" + integrity sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg== dependencies: degenerator "^5.0.0" - ip "^1.1.8" netmask "^2.0.2" package-hash@^4.0.0: @@ -12720,9 +12759,9 @@ postcss-values-parser@^5.0.0: quote-unquote "^1.0.0" postcss@^8.1.7, postcss@^8.4.6: - version "8.4.33" - resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.33.tgz#1378e859c9f69bf6f638b990a0212f43e2aaa742" - integrity sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg== + version "8.4.35" + resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.35.tgz#60997775689ce09011edf083a549cea44aabe2f7" + integrity sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA== dependencies: nanoid "^3.3.7" picocolors "^1.0.0" @@ -12880,15 +12919,15 @@ protocols@^2.0.0, protocols@^2.0.1: resolved "https://registry.npmjs.org/protocols/-/protocols-2.0.1.tgz#8f155da3fc0f32644e83c5782c8e8212ccf70a86" integrity sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q== -proxy-agent@^6.3.1: - version "6.3.1" - resolved "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.3.1.tgz#40e7b230552cf44fd23ffaf7c59024b692612687" - integrity sha512-Rb5RVBy1iyqOtNl15Cw/llpeLH8bsb37gM1FUfKQ+Wck6xHlbAhWGUFiTRHtkjqGTA5pSHz6+0hrPW/oECihPQ== +proxy-agent@^6.4.0: + version "6.4.0" + resolved "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.4.0.tgz#b4e2dd51dee2b377748aef8d45604c2d7608652d" + integrity sha512-u0piLU+nCOHMgGjRbimiXmA9kM/L9EHh3zL81xCdp7m+Y2pHIsnmbdDoEDoAz5geaonNR6q6+yOPQs6n4T6sBQ== dependencies: agent-base "^7.0.2" debug "^4.3.4" - http-proxy-agent "^7.0.0" - https-proxy-agent "^7.0.2" + http-proxy-agent "^7.0.1" + https-proxy-agent "^7.0.3" lru-cache "^7.14.1" pac-proxy-agent "^7.0.1" proxy-from-env "^1.1.0" @@ -13173,14 +13212,15 @@ redent@^3.0.0: indent-string "^4.0.0" strip-indent "^3.0.0" -regexp.prototype.flags@^1.5.1: - version "1.5.1" - resolved "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz#90ce989138db209f81492edd734183ce99f9677e" - integrity sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg== +regexp.prototype.flags@^1.5.2: + version "1.5.2" + resolved "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz#138f644a3350f981a858c44f6bb1a61ff59be334" + integrity sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw== dependencies: - call-bind "^1.0.2" - define-properties "^1.2.0" - set-function-name "^2.0.0" + call-bind "^1.0.6" + define-properties "^1.2.1" + es-errors "^1.3.0" + set-function-name "^2.0.1" regexpp@^3.1.0: version "3.2.0" @@ -13381,7 +13421,7 @@ rxjs@^7.5.5, rxjs@^7.8.0: dependencies: tslib "^2.1.0" -safe-array-concat@^1.0.1: +safe-array-concat@^1.1.0: version "1.1.0" resolved "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.0.tgz#8d0cae9cb806d6d1c06e08ab13d847293ebe0692" integrity sha512-ZdQ0Jeb9Ofti4hbt5lX3T2JcAamT9hfzYU1MNB+z/jaEbB6wfFfPIR/zEORmZqobkCCJhSjodobH6WHNmJ97dg== @@ -13406,13 +13446,13 @@ safe-json-stringify@^1.2.0: resolved "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.2.0.tgz#356e44bc98f1f93ce45df14bcd7c01cda86e0afd" integrity sha512-gH8eh2nZudPQO6TytOvbxnuhYBOvDBBLW52tz5q6X58lJcd/tkmqFR+5Z9adS8aJtURSXWThWy/xJtJwixErvg== -safe-regex-test@^1.0.0: - version "1.0.2" - resolved "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.2.tgz#3ba32bdb3ea35f940ee87e5087c60ee786c3f6c5" - integrity sha512-83S9w6eFq12BBIJYvjMux6/dkirb8+4zJRA9cxNBVb7Wq5fJBW+Xze48WqR8pxua7bDuAaaAxtVVd4Idjp1dBQ== +safe-regex-test@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz#a5b4c0f06e0ab50ea2c395c14d8371232924c377" + integrity sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw== dependencies: - call-bind "^1.0.5" - get-intrinsic "^1.2.2" + call-bind "^1.0.6" + es-errors "^1.3.0" is-regex "^1.1.4" safe-stable-stringify@^2.2.0, safe-stable-stringify@^2.3.1: @@ -13478,10 +13518,10 @@ semver@^6.0.0, semver@^6.1.1, semver@^6.3.0, semver@^6.3.1: resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.0.0, semver@^7.1.1, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.3, semver@^7.5.4: - version "7.5.4" - resolved "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" - integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== +semver@^7.0.0, semver@^7.1.1, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.3, semver@^7.5.4, semver@^7.6.0: + version "7.6.0" + resolved "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz#1a46a4db4bffcccd97b743b5005c8325f23d4e2d" + integrity sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg== dependencies: lru-cache "^6.0.0" @@ -13499,18 +13539,19 @@ set-blocking@^2.0.0, set-blocking@~2.0.0: resolved "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== -set-function-length@^1.1.1: - version "1.2.0" - resolved "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.0.tgz#2f81dc6c16c7059bda5ab7c82c11f03a515ed8e1" - integrity sha512-4DBHDoyHlM1IRPGYcoxexgh67y4ueR53FKV1yyxwFMY7aCqcN/38M1+SwZ/qJQ8iLv7+ck385ot4CcisOAPT9w== +set-function-length@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz#47cc5945f2c771e2cf261c6737cf9684a2a5e425" + integrity sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g== dependencies: - define-data-property "^1.1.1" + define-data-property "^1.1.2" + es-errors "^1.3.0" function-bind "^1.1.2" - get-intrinsic "^1.2.2" + get-intrinsic "^1.2.3" gopd "^1.0.1" has-property-descriptors "^1.0.1" -set-function-name@^2.0.0: +set-function-name@^2.0.1: version "2.0.1" resolved "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz#12ce38b7954310b9f61faa12701620a0c882793a" integrity sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA== @@ -13570,13 +13611,14 @@ shlex@^2.1.2: integrity sha512-Nz6gtibMVgYeMEhUjp2KuwAgqaJA1K155dU/HuDaEJUGgnmYfVtVZah+uerVWdH8UGnyahhDCgABbYTbs254+w== side-channel@^1.0.4: - version "1.0.4" - resolved "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" - integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== + version "1.0.5" + resolved "https://registry.npmjs.org/side-channel/-/side-channel-1.0.5.tgz#9a84546599b48909fb6af1211708d23b1946221b" + integrity sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ== dependencies: - call-bind "^1.0.0" - get-intrinsic "^1.0.2" - object-inspect "^1.9.0" + call-bind "^1.0.6" + es-errors "^1.3.0" + get-intrinsic "^1.2.4" + object-inspect "^1.13.1" signal-exit@3.0.7, signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: version "3.0.7" @@ -13715,11 +13757,11 @@ socks-proxy-agent@^8.0.2: socks "^2.7.1" socks@^2.6.2, socks@^2.7.1: - version "2.7.1" - resolved "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz#d8e651247178fde79c0663043e07240196857d55" - integrity sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ== + version "2.7.3" + resolved "https://registry.npmjs.org/socks/-/socks-2.7.3.tgz#7d8a75d7ce845c0a96f710917174dba0d543a785" + integrity sha512-vfuYK48HXCTFD03G/1/zkIls3Ebr2YNa4qU9gHDZdblHLiqhJrJGkY3+0Nx0JpN9qBhJbVObc1CNciT1bIZJxw== dependencies: - ip "^2.0.0" + ip-address "^9.0.5" smart-buffer "^4.2.0" sort-json@^2.0.1: @@ -13821,9 +13863,9 @@ spdx-expression-parse@^3.0.0: spdx-license-ids "^3.0.0" spdx-license-ids@^3.0.0: - version "3.0.16" - resolved "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.16.tgz#a14f64e0954f6e25cc6587bd4f392522db0d998f" - integrity sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw== + version "3.0.17" + resolved "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.17.tgz#887da8aa73218e51a1d917502d79863161a93f9c" + integrity sha512-sh8PWc/ftMqAAdFiBu6Fy6JUOYjqDJBJvIhpfDMyHrr0Rbp5liZqd4TjtQ/RgfLjKFZb+LMx5hpml5qOWy0qvg== spdx-license-list@^6.8.0: version "6.8.0" @@ -13858,6 +13900,11 @@ split@^1.0.0, split@^1.0.1: dependencies: through "2" +sprintf-js@^1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz#4914b903a2f8b685d17fdf78a70e917e872e444a" + integrity sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA== + sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" @@ -14337,9 +14384,9 @@ triple-beam@^1.3.0: integrity sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg== ts-api-utils@^1.0.1: - version "1.0.3" - resolved "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz#f12c1c781d04427313dbac808f453f050e54a331" - integrity sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg== + version "1.2.1" + resolved "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.2.1.tgz#f716c7e027494629485b21c0df6180f4d08f5e8b" + integrity sha512-RIYA36cJn2WiH9Hy77hdF9r7oEwxAtB/TS9/S4Qd90Ap4z5FSiin5zEiTL44OII1Y3IIlEvxwxFUVgrHSZ/UpA== ts-jest@^29, ts-jest@^29.1.2: version "29.1.2" @@ -14491,14 +14538,14 @@ type@^2.7.2: resolved "https://registry.npmjs.org/type/-/type-2.7.2.tgz#2376a15a3a28b1efa0f5350dcf72d24df6ef98d0" integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw== -typed-array-buffer@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz#18de3e7ed7974b0a729d3feecb94338d1472cd60" - integrity sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw== +typed-array-buffer@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.1.tgz#0608ffe6bca71bf15a45bff0ca2604107a1325f5" + integrity sha512-RSqu1UEuSlrBhHTWC8O9FnPjOduNs4M7rJ4pRKoEjtx1zUNOPN2sSXHLDX+Y2WPbHIxbvg4JFo2DNAEfPIKWoQ== dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.2.1" - is-typed-array "^1.1.10" + call-bind "^1.0.6" + es-errors "^1.3.0" + is-typed-array "^1.1.13" typed-array-byte-length@^1.0.0: version "1.0.0" @@ -14572,9 +14619,9 @@ typescript@^4.5.5: integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== typescript@next: - version "5.4.0-dev.20240201" - resolved "https://registry.npmjs.org/typescript/-/typescript-5.4.0-dev.20240201.tgz#a82081a69d96dfbb1e4fd9bc51f0b8369e34ba42" - integrity sha512-KyjAVgMfyIHhjbaYTeTElvoEKM4teDYYATdzsdcxvogVcaDuH0I0JbiwFUe6bIU5FnWxlbxc7rfGyh7aNwpnow== + version "5.4.0-dev.20240214" + resolved "https://registry.npmjs.org/typescript/-/typescript-5.4.0-dev.20240214.tgz#7412fc712e698c6c3bd36d2d336d75eb7ef2c614" + integrity sha512-JXOvFnlY/tw/adrzpfOUIrdf8PeIsfW7ljice9bP7dK/dBo/F0VcHr98QA5KtPG1ECsYi2Sl/d9AnucpUCgAaw== typescript@~5.1.0, typescript@~5.1.6: version "5.1.6" @@ -14607,9 +14654,9 @@ undici-types@~5.26.4: integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== undici@^5.25.4: - version "5.28.2" - resolved "https://registry.npmjs.org/undici/-/undici-5.28.2.tgz#fea200eac65fc7ecaff80a023d1a0543423b4c91" - integrity sha512-wh1pHJHnUeQV5Xa8/kyQhO7WFa8M34l026L5P/+2TYiakvGy5Rdc8jWZVyG7ieht/0WgJLEd3kcU5gKx+6GC8w== + version "5.28.3" + resolved "https://registry.npmjs.org/undici/-/undici-5.28.3.tgz#a731e0eff2c3fcfd41c1169a869062be222d1e5b" + integrity sha512-3ItfzbrhDlINjaP0duwnNsKpDQk3acHI3gVJ1z4fmwMK31k5G9OVIAMLSIaP6w4FaGkaAkN6zaQO9LUvZ1t7VA== dependencies: "@fastify/busboy" "^2.0.0" @@ -14897,7 +14944,7 @@ which-module@^2.0.0: resolved "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz#776b1fe35d90aebe99e8ac15eb24093389a4a409" integrity sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ== -which-typed-array@^1.1.11, which-typed-array@^1.1.13, which-typed-array@^1.1.2: +which-typed-array@^1.1.14, which-typed-array@^1.1.2: version "1.1.14" resolved "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.14.tgz#1f78a111aee1e131ca66164d8bdc3ab062c95a06" integrity sha512-VnXFiIW8yNn9kIHN88xvZ4yOWchftKDsRJ8fEPacX/wl1lOvBrhsJ/OeJCXq7B0AaijRuqgzSKalJoPk+D8MPg== @@ -14944,9 +14991,9 @@ widest-line@^4.0.1: string-width "^5.0.1" winston-transport@^4.5.0: - version "4.6.0" - resolved "https://registry.npmjs.org/winston-transport/-/winston-transport-4.6.0.tgz#f1c1a665ad1b366df72199e27892721832a19e1b" - integrity sha512-wbBA9PbPAHxKiygo7ub7BYRiKxms0tpfU2ljtWzb3SjRjv5yl6Ozuy/TkXf00HTAt+Uylo3gSkNwzc4ME0wiIg== + version "4.7.0" + resolved "https://registry.npmjs.org/winston-transport/-/winston-transport-4.7.0.tgz#e302e6889e6ccb7f383b926df6936a5b781bd1f0" + integrity sha512-ajBj65K5I7denzer2IYW6+2bNIVqLGDHqDw3Ow8Ohh+vdW+rv4MZ6eiDvHoKhfJFZ2auyN8byXieDDJ96ViONg== dependencies: logform "^2.3.2" readable-stream "^3.6.0" From 256cca4017a80f8643c5f5a5999a2ce0383eebf0 Mon Sep 17 00:00:00 2001 From: Robert Da Silva Date: Wed, 14 Feb 2024 23:24:10 +0100 Subject: [PATCH 02/22] chore(rds): add Aurora Postgres engine version 16.1 (#29110) ### Reason for this change Aurora PostgreSQL 16.1 is available as of January 31, 2024. See https://docs.aws.amazon.com/AmazonRDS/latest/AuroraPostgreSQLReleaseNotes/AuroraPostgreSQL.Updates.html#AuroraPostgreSQL.Updates.20180305.161 for more information. ### Description of changes Add constant for newly available Aurora Postgres cluster engine version 16.1 ### Description of how you validated changes No. Happy to add, if required. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/aws-cdk-lib/aws-rds/lib/cluster-engine.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/aws-cdk-lib/aws-rds/lib/cluster-engine.ts b/packages/aws-cdk-lib/aws-rds/lib/cluster-engine.ts index f0740b727d3ee..4ea2476bde536 100644 --- a/packages/aws-cdk-lib/aws-rds/lib/cluster-engine.ts +++ b/packages/aws-cdk-lib/aws-rds/lib/cluster-engine.ts @@ -918,10 +918,10 @@ export class AuroraPostgresEngineVersion { public static readonly VER_15_4 = AuroraPostgresEngineVersion.of('15.4', '15', { s3Import: true, s3Export: true }); /** Version "15.5". */ public static readonly VER_15_5 = AuroraPostgresEngineVersion.of('15.5', '15', { s3Import: true, s3Export: true }); - /** Version "16.0". - * Version 16.0 is available in preview environment as of November 15, 2023. - */ + /** Version "16.0". */ public static readonly VER_16_0 = AuroraPostgresEngineVersion.of('16.0', '16', { s3Import: true, s3Export: true }); + /** Version "16.1". */ + public static readonly VER_16_1 = AuroraPostgresEngineVersion.of('16.1', '16', { s3Import: true, s3Export: true }); /** * Create a new AuroraPostgresEngineVersion with an arbitrary version. From 6fbcce66c50a6bea3b2f38541c54af6d5fbffaa7 Mon Sep 17 00:00:00 2001 From: Michael Sambol Date: Wed, 14 Feb 2024 17:19:13 -0800 Subject: [PATCH 03/22] chore(ec2): correct device name in BastionHostLinux example (#29114) Closes #29103. I tested the example and it deploys. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/aws-cdk-lib/aws-ec2/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-cdk-lib/aws-ec2/README.md b/packages/aws-cdk-lib/aws-ec2/README.md index a94027b6ce821..b55688feeb403 100644 --- a/packages/aws-cdk-lib/aws-ec2/README.md +++ b/packages/aws-cdk-lib/aws-ec2/README.md @@ -1429,7 +1429,7 @@ EBS volume for the bastion host can be encrypted like: const host = new ec2.BastionHostLinux(this, 'BastionHost', { vpc, blockDevices: [{ - deviceName: 'EBSBastionHost', + deviceName: '/dev/sdh', volume: ec2.BlockDeviceVolume.ebs(10, { encrypted: true, }), From 869412535f564d5b36cf7cc5356aa38a381d02f1 Mon Sep 17 00:00:00 2001 From: Robert Djurasaj Date: Thu, 15 Feb 2024 11:04:31 -0700 Subject: [PATCH 04/22] feat(applicationautoscaling): timezone for ScheduledAction (#29116) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #22645 Closes #27754 Spiritual successor of #27052 Somewhat related to #21181 but that might be another PR down the road. @pahud :hand: Please review. I'm not particularly fond of how `aws-autoscaling` module ([here](https://github.com/aws/aws-cdk/blob/256cca4017a80f8643c5f5a5999a2ce0383eebf0/packages/aws-cdk-lib/aws-autoscaling/lib/scheduled-action.ts#L21)) is not using `cdk.TimeZone` class, hence why used it in this PR instead. I think we should we change `aws-autoscaling` implementation to do the same? It would be a breaking change... and most likely a brand new PR. LMK what you think. ✌️ Also, I may be slightly OCD but I kinda like better `timezone` vs `timeZone`, but I went with latter one to follow what `aws-autoscaling` did. cc-ing @kaizencc for his input too 🙌 ... possibly related to #27105 ### Reason for this change Timezones have been supported in `AWS::ApplicationAutoScaling::ScalableTarget ScheduledAction` for a while now. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalabletarget-scheduledaction.html#cfn-applicationautoscaling-scalabletarget-scheduledaction-timezone ### Description of changes Just added the support for `timezones` in `scalableTarget.scaleOnSchedule` ### Description of how you validated changes Added unit tests for this feature. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../aws-applicationautoscaling/README.md | 7 ++-- .../lib/scalable-target.ts | 11 ++++++- .../test/scalable-target.test.ts | 32 +++++++++++++++++++ 3 files changed, 47 insertions(+), 3 deletions(-) diff --git a/packages/aws-cdk-lib/aws-applicationautoscaling/README.md b/packages/aws-cdk-lib/aws-applicationautoscaling/README.md index 6bc05ee9882f2..b52ef8ad4b1d7 100644 --- a/packages/aws-cdk-lib/aws-applicationautoscaling/README.md +++ b/packages/aws-cdk-lib/aws-applicationautoscaling/README.md @@ -177,6 +177,7 @@ The following example scales the fleet out in the morning, and lets natural scaling take over at night: ```ts +import { TimeZone } from 'aws-cdk-lib'; declare const resource: SomeScalableResource; const capacity = resource.autoScaleCapacity({ @@ -187,11 +188,13 @@ const capacity = resource.autoScaleCapacity({ capacity.scaleOnSchedule('PrescaleInTheMorning', { schedule: appscaling.Schedule.cron({ hour: '8', minute: '0' }), minCapacity: 20, + timeZone: TimeZone.AMERICA_DENVER, }); capacity.scaleOnSchedule('AllowDownscalingAtNight', { schedule: appscaling.Schedule.cron({ hour: '20', minute: '0' }), - minCapacity: 1 + minCapacity: 1, + timeZone: TimeZone.AMERICA_DENVER, }); ``` @@ -205,7 +208,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; declare const code: lambda.Code; const handler = new lambda.Function(this, 'MyFunction', { - runtime: lambda.Runtime.PYTHON_3_7, + runtime: lambda.Runtime.PYTHON_3_12, handler: 'index.handler', code, diff --git a/packages/aws-cdk-lib/aws-applicationautoscaling/lib/scalable-target.ts b/packages/aws-cdk-lib/aws-applicationautoscaling/lib/scalable-target.ts index fc806c27ac185..fe6fe8f31443e 100644 --- a/packages/aws-cdk-lib/aws-applicationautoscaling/lib/scalable-target.ts +++ b/packages/aws-cdk-lib/aws-applicationautoscaling/lib/scalable-target.ts @@ -4,7 +4,7 @@ import { Schedule } from './schedule'; import { BasicStepScalingPolicyProps, StepScalingPolicy } from './step-scaling-policy'; import { BasicTargetTrackingScalingPolicyProps, TargetTrackingScalingPolicy } from './target-tracking-scaling-policy'; import * as iam from '../../aws-iam'; -import { IResource, Lazy, Resource, withResolved } from '../../core'; +import { IResource, Lazy, Resource, TimeZone, withResolved } from '../../core'; export interface IScalableTarget extends IResource { /** @@ -161,6 +161,7 @@ export class ScalableTarget extends Resource implements IScalableTarget { maxCapacity: action.maxCapacity, minCapacity: action.minCapacity, }, + timezone: action.timeZone?.timezoneName, }); } @@ -225,6 +226,14 @@ export interface ScalingSchedule { * @default No new maximum capacity */ readonly maxCapacity?: number; + + /** + * The time zone used when referring to the date and time of a scheduled action, + * when the scheduled action uses an at or cron expression. + * + * @default - UTC + */ + readonly timeZone?: TimeZone; } /** diff --git a/packages/aws-cdk-lib/aws-applicationautoscaling/test/scalable-target.test.ts b/packages/aws-cdk-lib/aws-applicationautoscaling/test/scalable-target.test.ts index e6837fe329938..c5ac0cd4c5e8b 100644 --- a/packages/aws-cdk-lib/aws-applicationautoscaling/test/scalable-target.test.ts +++ b/packages/aws-cdk-lib/aws-applicationautoscaling/test/scalable-target.test.ts @@ -79,6 +79,38 @@ describe('scalable target', () => { }); }); + test('set timzone in scaleOnSchedule()', () => { + // GIVEN + const stack = new cdk.Stack(); + const target = createScalableTarget(stack); + + // WHEN + target.scaleOnSchedule('ScaleUp', { + schedule: appscaling.Schedule.cron({ + hour: '8', + day: '1', + }), + maxCapacity: 50, + minCapacity: 1, + timeZone: cdk.TimeZone.AMERICA_DENVER, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ApplicationAutoScaling::ScalableTarget', { + ScheduledActions: [ + { + ScalableTargetAction: { + MaxCapacity: 50, + MinCapacity: 1, + }, + Schedule: 'cron(* 8 1 * ? *)', + ScheduledActionName: 'ScaleUp', + Timezone: 'America/Denver', + }, + ], + }); + }); + test('scheduled scaling shows warning when minute is not defined in cron', () => { // GIVEN const stack = new cdk.Stack(); From b4daf84cf8a90ef38e3a2328df6271bdaf19de01 Mon Sep 17 00:00:00 2001 From: "k.goto" <24818752+go-to-k@users.noreply.github.com> Date: Fri, 16 Feb 2024 08:52:29 +0900 Subject: [PATCH 05/22] feat(events-targets): `launchType` property for ECS task (#29069) ### Issue # (if applicable) Closes #28990. ### Reason for this change There are cases where a task definition is created to be compatible with both EC2 and Fargate, and then we want to run the task in Fargate. ### Description of changes I created the `launchType` property. The `launchType` is overridden if the property is specified. ### Description of how you validated changes Both unit and integ tests ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- ...efaultTestDeployAssert36341BFB.assets.json | 2 +- .../aws-ecs-integ-fargate.assets.json | 6 +- .../aws-ecs-integ-fargate.template.json | 331 +++++++- .../cdk.out | 2 +- .../integ.json | 2 +- .../manifest.json | 54 +- .../tree.json | 762 ++++++++++++++---- .../test/ecs/integ.event-fargate-task.ts | 21 + .../aws-cdk-lib/aws-events-targets/README.md | 24 + .../aws-events-targets/lib/ecs-task.ts | 13 +- .../test/ecs/event-rule-target.test.ts | 41 + 11 files changed, 1079 insertions(+), 179 deletions(-) diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/EcsFargateTestDefaultTestDeployAssert36341BFB.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/EcsFargateTestDefaultTestDeployAssert36341BFB.assets.json index 657e49ac3d60e..6c6f0fc27e8fb 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/EcsFargateTestDefaultTestDeployAssert36341BFB.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/EcsFargateTestDefaultTestDeployAssert36341BFB.assets.json @@ -1,5 +1,5 @@ { - "version": "31.0.0", + "version": "36.0.0", "files": { "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { "source": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/aws-ecs-integ-fargate.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/aws-ecs-integ-fargate.assets.json index 55d05c553c658..5164eea9b1a63 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/aws-ecs-integ-fargate.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/aws-ecs-integ-fargate.assets.json @@ -1,7 +1,7 @@ { - "version": "31.0.0", + "version": "36.0.0", "files": { - "f54d2ab12d74af5412f68984953da28f5db17e8b02e7df30a6e02393dbdc1da1": { + "30d5be7ac25ebbd7994b77d7e33734c651e48cbcf69a08d2fdcf9fc72434a08f": { "source": { "path": "aws-ecs-integ-fargate.template.json", "packaging": "file" @@ -9,7 +9,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "f54d2ab12d74af5412f68984953da28f5db17e8b02e7df30a6e02393dbdc1da1.json", + "objectKey": "30d5be7ac25ebbd7994b77d7e33734c651e48cbcf69a08d2fdcf9fc72434a08f.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/aws-ecs-integ-fargate.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/aws-ecs-integ-fargate.template.json index ac96530a9de1e..7b43424894294 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/aws-ecs-integ-fargate.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/aws-ecs-integ-fargate.template.json @@ -18,9 +18,6 @@ "VpcPublicSubnet1Subnet5C2D37C4": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "Vpc8378EB38" - }, "AvailabilityZone": { "Fn::Select": [ 0, @@ -44,21 +41,24 @@ "Key": "Name", "Value": "aws-ecs-integ-fargate/Vpc/PublicSubnet1" } - ] + ], + "VpcId": { + "Ref": "Vpc8378EB38" + } } }, "VpcPublicSubnet1RouteTable6C95E38E": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "Vpc8378EB38" - }, "Tags": [ { "Key": "Name", "Value": "aws-ecs-integ-fargate/Vpc/PublicSubnet1" } - ] + ], + "VpcId": { + "Ref": "Vpc8378EB38" + } } }, "VpcPublicSubnet1RouteTableAssociation97140677": { @@ -75,12 +75,12 @@ "VpcPublicSubnet1DefaultRoute3DA9E72A": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VpcPublicSubnet1RouteTable6C95E38E" - }, "DestinationCidrBlock": "0.0.0.0/0", "GatewayId": { "Ref": "VpcIGWD7BA715C" + }, + "RouteTableId": { + "Ref": "VpcPublicSubnet1RouteTable6C95E38E" } }, "DependsOn": [ @@ -102,15 +102,15 @@ "VpcPublicSubnet1NATGateway4D7517AA": { "Type": "AWS::EC2::NatGateway", "Properties": { - "SubnetId": { - "Ref": "VpcPublicSubnet1Subnet5C2D37C4" - }, "AllocationId": { "Fn::GetAtt": [ "VpcPublicSubnet1EIPD7E02669", "AllocationId" ] }, + "SubnetId": { + "Ref": "VpcPublicSubnet1Subnet5C2D37C4" + }, "Tags": [ { "Key": "Name", @@ -126,9 +126,6 @@ "VpcPrivateSubnet1Subnet536B997A": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "Vpc8378EB38" - }, "AvailabilityZone": { "Fn::Select": [ 0, @@ -152,21 +149,24 @@ "Key": "Name", "Value": "aws-ecs-integ-fargate/Vpc/PrivateSubnet1" } - ] + ], + "VpcId": { + "Ref": "Vpc8378EB38" + } } }, "VpcPrivateSubnet1RouteTableB2C5B500": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "Vpc8378EB38" - }, "Tags": [ { "Key": "Name", "Value": "aws-ecs-integ-fargate/Vpc/PrivateSubnet1" } - ] + ], + "VpcId": { + "Ref": "Vpc8378EB38" + } } }, "VpcPrivateSubnet1RouteTableAssociation70C59FA6": { @@ -183,12 +183,12 @@ "VpcPrivateSubnet1DefaultRouteBE02A9ED": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VpcPrivateSubnet1RouteTableB2C5B500" - }, "DestinationCidrBlock": "0.0.0.0/0", "NatGatewayId": { "Ref": "VpcPublicSubnet1NATGateway4D7517AA" + }, + "RouteTableId": { + "Ref": "VpcPrivateSubnet1RouteTableB2C5B500" } } }, @@ -206,11 +206,11 @@ "VpcVPCGWBF912B6E": { "Type": "AWS::EC2::VPCGatewayAttachment", "Properties": { - "VpcId": { - "Ref": "Vpc8378EB38" - }, "InternetGatewayId": { "Ref": "VpcIGWD7BA715C" + }, + "VpcId": { + "Ref": "Vpc8378EB38" } } }, @@ -494,6 +494,240 @@ } } }, + "TaskDefWithCompatibilityTaskRole233D6358": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "ecs-tasks.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "TaskDefWithCompatibilityAFDDF969": { + "Type": "AWS::ECS::TaskDefinition", + "Properties": { + "ContainerDefinitions": [ + { + "Essential": true, + "Image": { + "Fn::Sub": "${AWS::AccountId}.dkr.ecr.${AWS::Region}.${AWS::URLSuffix}/cdk-hnb659fds-container-assets-${AWS::AccountId}-${AWS::Region}:7a4895bc694ae074467753dddb9a798e58f2f5eda62bcce5833d7d356b8a1da2" + }, + "LogConfiguration": { + "LogDriver": "awslogs", + "Options": { + "awslogs-group": { + "Ref": "TaskDefWithCompatibilityTheContainerLogGroupA62F8DA6" + }, + "awslogs-stream-prefix": "EventDemo", + "awslogs-region": { + "Ref": "AWS::Region" + } + } + }, + "Name": "TheContainer" + } + ], + "Cpu": "256", + "ExecutionRoleArn": { + "Fn::GetAtt": [ + "TaskDefWithCompatibilityExecutionRoleF80BA4E1", + "Arn" + ] + }, + "Family": "awsecsintegfargateTaskDefWithCompatibility38EAB826", + "Memory": "512", + "NetworkMode": "awsvpc", + "RequiresCompatibilities": [ + "EC2", + "FARGATE" + ], + "TaskRoleArn": { + "Fn::GetAtt": [ + "TaskDefWithCompatibilityTaskRole233D6358", + "Arn" + ] + } + } + }, + "TaskDefWithCompatibilityTheContainerLogGroupA62F8DA6": { + "Type": "AWS::Logs::LogGroup", + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "TaskDefWithCompatibilityExecutionRoleF80BA4E1": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "ecs-tasks.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "TaskDefWithCompatibilityExecutionRoleDefaultPolicy75636292": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "ecr:BatchCheckLayerAvailability", + "ecr:BatchGetImage", + "ecr:GetDownloadUrlForLayer" + ], + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ecr:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":repository/", + { + "Fn::Sub": "cdk-hnb659fds-container-assets-${AWS::AccountId}-${AWS::Region}" + } + ] + ] + } + }, + { + "Action": "ecr:GetAuthorizationToken", + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": [ + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "TaskDefWithCompatibilityTheContainerLogGroupA62F8DA6", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "TaskDefWithCompatibilityExecutionRoleDefaultPolicy75636292", + "Roles": [ + { + "Ref": "TaskDefWithCompatibilityExecutionRoleF80BA4E1" + } + ] + } + }, + "TaskDefWithCompatibilityEventsRole9344E984": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "events.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "TaskDefWithCompatibilityEventsRoleDefaultPolicyC12E5A3B": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ecs:RunTask", + "Condition": { + "ArnEquals": { + "ecs:cluster": { + "Fn::GetAtt": [ + "EcsCluster97242B84", + "Arn" + ] + } + } + }, + "Effect": "Allow", + "Resource": { + "Ref": "TaskDefWithCompatibilityAFDDF969" + } + }, + { + "Action": "iam:PassRole", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "TaskDefWithCompatibilityExecutionRoleF80BA4E1", + "Arn" + ] + }, + { + "Fn::GetAtt": [ + "TaskDefWithCompatibilityTaskRole233D6358", + "Arn" + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "TaskDefWithCompatibilityEventsRoleDefaultPolicyC12E5A3B", + "Roles": [ + { + "Ref": "TaskDefWithCompatibilityEventsRole9344E984" + } + ] + } + }, + "TaskDefWithCompatibilitySecurityGroup608AC6F4": { + "Type": "AWS::EC2::SecurityGroup", + "Properties": { + "GroupDescription": "aws-ecs-integ-fargate/TaskDefWithCompatibility/SecurityGroup", + "SecurityGroupEgress": [ + { + "CidrIp": "0.0.0.0/0", + "Description": "Allow all outbound traffic by default", + "IpProtocol": "-1" + } + ], + "VpcId": { + "Ref": "Vpc8378EB38" + } + } + }, "Rule4C995B7F": { "Type": "AWS::Events::Rule", "Properties": { @@ -597,6 +831,47 @@ "Arn" ] } + }, + { + "Arn": { + "Fn::GetAtt": [ + "EcsCluster97242B84", + "Arn" + ] + }, + "EcsParameters": { + "LaunchType": "FARGATE", + "NetworkConfiguration": { + "AwsVpcConfiguration": { + "AssignPublicIp": "DISABLED", + "SecurityGroups": [ + { + "Fn::GetAtt": [ + "TaskDefWithCompatibilitySecurityGroup608AC6F4", + "GroupId" + ] + } + ], + "Subnets": [ + { + "Ref": "VpcPrivateSubnet1Subnet536B997A" + } + ] + } + }, + "TaskCount": 1, + "TaskDefinitionArn": { + "Ref": "TaskDefWithCompatibilityAFDDF969" + } + }, + "Id": "Target2", + "Input": "{}", + "RoleArn": { + "Fn::GetAtt": [ + "TaskDefWithCompatibilityEventsRole9344E984", + "Arn" + ] + } } ] } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/cdk.out index 7925065efbcc4..1f0068d32659a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/cdk.out +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/cdk.out @@ -1 +1 @@ -{"version":"31.0.0"} \ No newline at end of file +{"version":"36.0.0"} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/integ.json index 603eb4e2eb858..b3291a6475699 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/integ.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/integ.json @@ -1,5 +1,5 @@ { - "version": "31.0.0", + "version": "36.0.0", "testCases": { "EcsFargateTest/DefaultTest": { "stacks": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/manifest.json index 383cdad3596a9..c76ceff6e3233 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/manifest.json @@ -1,5 +1,5 @@ { - "version": "31.0.0", + "version": "36.0.0", "artifacts": { "aws-ecs-integ-fargate.assets": { "type": "cdk:asset-manifest", @@ -14,10 +14,11 @@ "environment": "aws://unknown-account/unknown-region", "properties": { "templateFile": "aws-ecs-integ-fargate.template.json", + "terminationProtection": false, "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f54d2ab12d74af5412f68984953da28f5db17e8b02e7df30a6e02393dbdc1da1.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/30d5be7ac25ebbd7994b77d7e33734c651e48cbcf69a08d2fdcf9fc72434a08f.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -177,6 +178,54 @@ "data": "TaskDefSecurityGroupD50E7CF0" } ], + "/aws-ecs-integ-fargate/TaskDefWithCompatibility/TaskRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TaskDefWithCompatibilityTaskRole233D6358" + } + ], + "/aws-ecs-integ-fargate/TaskDefWithCompatibility/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TaskDefWithCompatibilityAFDDF969" + } + ], + "/aws-ecs-integ-fargate/TaskDefWithCompatibility/TheContainer/LogGroup/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TaskDefWithCompatibilityTheContainerLogGroupA62F8DA6" + } + ], + "/aws-ecs-integ-fargate/TaskDefWithCompatibility/ExecutionRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TaskDefWithCompatibilityExecutionRoleF80BA4E1" + } + ], + "/aws-ecs-integ-fargate/TaskDefWithCompatibility/ExecutionRole/DefaultPolicy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TaskDefWithCompatibilityExecutionRoleDefaultPolicy75636292" + } + ], + "/aws-ecs-integ-fargate/TaskDefWithCompatibility/EventsRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TaskDefWithCompatibilityEventsRole9344E984" + } + ], + "/aws-ecs-integ-fargate/TaskDefWithCompatibility/EventsRole/DefaultPolicy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TaskDefWithCompatibilityEventsRoleDefaultPolicyC12E5A3B" + } + ], + "/aws-ecs-integ-fargate/TaskDefWithCompatibility/SecurityGroup/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TaskDefWithCompatibilitySecurityGroup608AC6F4" + } + ], "/aws-ecs-integ-fargate/Rule/Resource": [ { "type": "aws:cdk:logicalId", @@ -211,6 +260,7 @@ "environment": "aws://unknown-account/unknown-region", "properties": { "templateFile": "EcsFargateTestDefaultTestDeployAssert36341BFB.template.json", + "terminationProtection": false, "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/tree.json index d5f9ea4ebc564..0dca07d26aca0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.js.snapshot/tree.json @@ -31,8 +31,8 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "PublicSubnet1": { @@ -45,9 +45,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "Vpc8378EB38" - }, "availabilityZone": { "Fn::Select": [ 0, @@ -71,20 +68,23 @@ "key": "Name", "value": "aws-ecs-integ-fargate/Vpc/PublicSubnet1" } - ] + ], + "vpcId": { + "Ref": "Vpc8378EB38" + } } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "Acl": { "id": "Acl", "path": "aws-ecs-integ-fargate/Vpc/PublicSubnet1/Acl", "constructInfo": { - "fqn": "aws-cdk-lib.Resource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "RouteTable": { @@ -93,20 +93,20 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "Vpc8378EB38" - }, "tags": [ { "key": "Name", "value": "aws-ecs-integ-fargate/Vpc/PublicSubnet1" } - ] + ], + "vpcId": { + "Ref": "Vpc8378EB38" + } } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "RouteTableAssociation": { @@ -124,8 +124,8 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "DefaultRoute": { @@ -134,18 +134,18 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VpcPublicSubnet1RouteTable6C95E38E" - }, "destinationCidrBlock": "0.0.0.0/0", "gatewayId": { "Ref": "VpcIGWD7BA715C" + }, + "routeTableId": { + "Ref": "VpcPublicSubnet1RouteTable6C95E38E" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "EIP": { @@ -164,8 +164,8 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "NATGateway": { @@ -174,15 +174,15 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", "aws:cdk:cloudformation:props": { - "subnetId": { - "Ref": "VpcPublicSubnet1Subnet5C2D37C4" - }, "allocationId": { "Fn::GetAtt": [ "VpcPublicSubnet1EIPD7E02669", "AllocationId" ] }, + "subnetId": { + "Ref": "VpcPublicSubnet1Subnet5C2D37C4" + }, "tags": [ { "key": "Name", @@ -192,14 +192,14 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_ec2.PublicSubnet", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "PrivateSubnet1": { @@ -212,9 +212,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "Vpc8378EB38" - }, "availabilityZone": { "Fn::Select": [ 0, @@ -238,20 +235,23 @@ "key": "Name", "value": "aws-ecs-integ-fargate/Vpc/PrivateSubnet1" } - ] + ], + "vpcId": { + "Ref": "Vpc8378EB38" + } } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "Acl": { "id": "Acl", "path": "aws-ecs-integ-fargate/Vpc/PrivateSubnet1/Acl", "constructInfo": { - "fqn": "aws-cdk-lib.Resource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "RouteTable": { @@ -260,20 +260,20 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "Vpc8378EB38" - }, "tags": [ { "key": "Name", "value": "aws-ecs-integ-fargate/Vpc/PrivateSubnet1" } - ] + ], + "vpcId": { + "Ref": "Vpc8378EB38" + } } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "RouteTableAssociation": { @@ -291,8 +291,8 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "DefaultRoute": { @@ -301,24 +301,24 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VpcPrivateSubnet1RouteTableB2C5B500" - }, "destinationCidrBlock": "0.0.0.0/0", "natGatewayId": { "Ref": "VpcPublicSubnet1NATGateway4D7517AA" + }, + "routeTableId": { + "Ref": "VpcPrivateSubnet1RouteTableB2C5B500" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "IGW": { @@ -336,8 +336,8 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "VPCGW": { @@ -346,23 +346,23 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::VPCGatewayAttachment", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "Vpc8378EB38" - }, "internetGatewayId": { "Ref": "VpcIGWD7BA715C" + }, + "vpcId": { + "Ref": "Vpc8378EB38" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_ec2.Vpc", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "EcsCluster": { @@ -377,14 +377,14 @@ "aws:cdk:cloudformation:props": {} }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_ecs.Cluster", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "MyDeadLetterQueue": { @@ -399,8 +399,8 @@ "aws:cdk:cloudformation:props": {} }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "Policy": { @@ -450,20 +450,20 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_sqs.QueuePolicy", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_sqs.Queue", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "TaskDef": { @@ -478,8 +478,8 @@ "id": "ImportTaskRole", "path": "aws-ecs-integ-fargate/TaskDef/TaskRole/ImportTaskRole", "constructInfo": { - "fqn": "aws-cdk-lib.Resource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "Resource": { @@ -503,14 +503,14 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_iam.Role", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "Resource": { @@ -562,8 +562,8 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "TheContainer": { @@ -578,22 +578,22 @@ "id": "Staging", "path": "aws-ecs-integ-fargate/TaskDef/TheContainer/AssetImage/Staging", "constructInfo": { - "fqn": "aws-cdk-lib.AssetStaging", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "Repository": { "id": "Repository", "path": "aws-ecs-integ-fargate/TaskDef/TheContainer/AssetImage/Repository", "constructInfo": { - "fqn": "aws-cdk-lib.aws_ecr.RepositoryBase", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_ecr_assets.DockerImageAsset", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "LogGroup": { @@ -608,20 +608,20 @@ "aws:cdk:cloudformation:props": {} }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_logs.LogGroup", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_ecs.ContainerDefinition", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "ExecutionRole": { @@ -632,8 +632,8 @@ "id": "ImportExecutionRole", "path": "aws-ecs-integ-fargate/TaskDef/ExecutionRole/ImportExecutionRole", "constructInfo": { - "fqn": "aws-cdk-lib.Resource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "Resource": { @@ -657,8 +657,8 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "DefaultPolicy": { @@ -734,20 +734,20 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_iam.Policy", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_iam.Role", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "EventsRole": { @@ -758,8 +758,8 @@ "id": "ImportEventsRole", "path": "aws-ecs-integ-fargate/TaskDef/EventsRole/ImportEventsRole", "constructInfo": { - "fqn": "aws-cdk-lib.Resource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "Resource": { @@ -783,8 +783,8 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "DefaultPolicy": { @@ -846,20 +846,20 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_iam.Policy", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_iam.Role", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "SecurityGroup": { @@ -886,20 +886,457 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_ec2.SecurityGroup", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_ecs.FargateTaskDefinition", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "TaskDefWithCompatibility": { + "id": "TaskDefWithCompatibility", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility", + "children": { + "TaskRole": { + "id": "TaskRole", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/TaskRole", + "children": { + "ImportTaskRole": { + "id": "ImportTaskRole", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/TaskRole/ImportTaskRole", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/TaskRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "ecs-tasks.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::ECS::TaskDefinition", + "aws:cdk:cloudformation:props": { + "containerDefinitions": [ + { + "essential": true, + "image": { + "Fn::Sub": "${AWS::AccountId}.dkr.ecr.${AWS::Region}.${AWS::URLSuffix}/cdk-hnb659fds-container-assets-${AWS::AccountId}-${AWS::Region}:7a4895bc694ae074467753dddb9a798e58f2f5eda62bcce5833d7d356b8a1da2" + }, + "name": "TheContainer", + "logConfiguration": { + "logDriver": "awslogs", + "options": { + "awslogs-group": { + "Ref": "TaskDefWithCompatibilityTheContainerLogGroupA62F8DA6" + }, + "awslogs-stream-prefix": "EventDemo", + "awslogs-region": { + "Ref": "AWS::Region" + } + } + } + } + ], + "cpu": "256", + "executionRoleArn": { + "Fn::GetAtt": [ + "TaskDefWithCompatibilityExecutionRoleF80BA4E1", + "Arn" + ] + }, + "family": "awsecsintegfargateTaskDefWithCompatibility38EAB826", + "memory": "512", + "networkMode": "awsvpc", + "requiresCompatibilities": [ + "EC2", + "FARGATE" + ], + "taskRoleArn": { + "Fn::GetAtt": [ + "TaskDefWithCompatibilityTaskRole233D6358", + "Arn" + ] + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "TheContainer": { + "id": "TheContainer", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/TheContainer", + "children": { + "AssetImage": { + "id": "AssetImage", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/TheContainer/AssetImage", + "children": { + "Staging": { + "id": "Staging", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/TheContainer/AssetImage/Staging", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Repository": { + "id": "Repository", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/TheContainer/AssetImage/Repository", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "LogGroup": { + "id": "LogGroup", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/TheContainer/LogGroup", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/TheContainer/LogGroup/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::Logs::LogGroup", + "aws:cdk:cloudformation:props": {} + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "ExecutionRole": { + "id": "ExecutionRole", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/ExecutionRole", + "children": { + "ImportExecutionRole": { + "id": "ImportExecutionRole", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/ExecutionRole/ImportExecutionRole", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/ExecutionRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "ecs-tasks.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DefaultPolicy": { + "id": "DefaultPolicy", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/ExecutionRole/DefaultPolicy", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/ExecutionRole/DefaultPolicy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Policy", + "aws:cdk:cloudformation:props": { + "policyDocument": { + "Statement": [ + { + "Action": [ + "ecr:BatchCheckLayerAvailability", + "ecr:BatchGetImage", + "ecr:GetDownloadUrlForLayer" + ], + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ecr:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":repository/", + { + "Fn::Sub": "cdk-hnb659fds-container-assets-${AWS::AccountId}-${AWS::Region}" + } + ] + ] + } + }, + { + "Action": "ecr:GetAuthorizationToken", + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": [ + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "TaskDefWithCompatibilityTheContainerLogGroupA62F8DA6", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "policyName": "TaskDefWithCompatibilityExecutionRoleDefaultPolicy75636292", + "roles": [ + { + "Ref": "TaskDefWithCompatibilityExecutionRoleF80BA4E1" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "EventsRole": { + "id": "EventsRole", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/EventsRole", + "children": { + "ImportEventsRole": { + "id": "ImportEventsRole", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/EventsRole/ImportEventsRole", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/EventsRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "events.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DefaultPolicy": { + "id": "DefaultPolicy", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/EventsRole/DefaultPolicy", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/EventsRole/DefaultPolicy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Policy", + "aws:cdk:cloudformation:props": { + "policyDocument": { + "Statement": [ + { + "Action": "ecs:RunTask", + "Condition": { + "ArnEquals": { + "ecs:cluster": { + "Fn::GetAtt": [ + "EcsCluster97242B84", + "Arn" + ] + } + } + }, + "Effect": "Allow", + "Resource": { + "Ref": "TaskDefWithCompatibilityAFDDF969" + } + }, + { + "Action": "iam:PassRole", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "TaskDefWithCompatibilityExecutionRoleF80BA4E1", + "Arn" + ] + }, + { + "Fn::GetAtt": [ + "TaskDefWithCompatibilityTaskRole233D6358", + "Arn" + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "policyName": "TaskDefWithCompatibilityEventsRoleDefaultPolicyC12E5A3B", + "roles": [ + { + "Ref": "TaskDefWithCompatibilityEventsRole9344E984" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "SecurityGroup": { + "id": "SecurityGroup", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/SecurityGroup", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-ecs-integ-fargate/TaskDefWithCompatibility/SecurityGroup/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroup", + "aws:cdk:cloudformation:props": { + "groupDescription": "aws-ecs-integ-fargate/TaskDefWithCompatibility/SecurityGroup", + "securityGroupEgress": [ + { + "cidrIp": "0.0.0.0/0", + "description": "Allow all outbound traffic by default", + "ipProtocol": "-1" + } + ], + "vpcId": { + "Ref": "Vpc8378EB38" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "Rule": { @@ -1012,41 +1449,82 @@ } }, "input": "{}" + }, + { + "id": "Target2", + "arn": { + "Fn::GetAtt": [ + "EcsCluster97242B84", + "Arn" + ] + }, + "roleArn": { + "Fn::GetAtt": [ + "TaskDefWithCompatibilityEventsRole9344E984", + "Arn" + ] + }, + "ecsParameters": { + "taskCount": 1, + "taskDefinitionArn": { + "Ref": "TaskDefWithCompatibilityAFDDF969" + }, + "launchType": "FARGATE", + "networkConfiguration": { + "awsVpcConfiguration": { + "subnets": [ + { + "Ref": "VpcPrivateSubnet1Subnet536B997A" + } + ], + "assignPublicIp": "DISABLED", + "securityGroups": [ + { + "Fn::GetAtt": [ + "TaskDefWithCompatibilitySecurityGroup608AC6F4", + "GroupId" + ] + } + ] + } + } + }, + "input": "{}" } ] } }, "constructInfo": { - "fqn": "aws-cdk-lib.CfnResource", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.aws_events.Rule", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "BootstrapVersion": { "id": "BootstrapVersion", "path": "aws-ecs-integ-fargate/BootstrapVersion", "constructInfo": { - "fqn": "aws-cdk-lib.CfnParameter", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "CheckBootstrapVersion": { "id": "CheckBootstrapVersion", "path": "aws-ecs-integ-fargate/CheckBootstrapVersion", "constructInfo": { - "fqn": "aws-cdk-lib.CfnRule", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.Stack", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "EcsFargateTest": { @@ -1062,7 +1540,7 @@ "path": "EcsFargateTest/DefaultTest/Default", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.26" + "version": "10.3.0" } }, "DeployAssert": { @@ -1073,22 +1551,22 @@ "id": "BootstrapVersion", "path": "EcsFargateTest/DefaultTest/DeployAssert/BootstrapVersion", "constructInfo": { - "fqn": "aws-cdk-lib.CfnParameter", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } }, "CheckBootstrapVersion": { "id": "CheckBootstrapVersion", "path": "EcsFargateTest/DefaultTest/DeployAssert/CheckBootstrapVersion", "constructInfo": { - "fqn": "aws-cdk-lib.CfnRule", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.Stack", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } }, @@ -1108,13 +1586,13 @@ "path": "Tree", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.26" + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "aws-cdk-lib.App", - "version": "0.0.0" + "fqn": "constructs.Construct", + "version": "10.3.0" } } } \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.ts index d7379e3ba831d..89e5aae6ee65f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-events-targets/test/ecs/integ.event-fargate-task.ts @@ -24,6 +24,18 @@ taskDefinition.addContainer('TheContainer', { logging: new ecs.AwsLogDriver({ streamPrefix: 'EventDemo' }), }); +// Create a Task Definition with EC2 and FARGATE compatibility +const taskDefinitionWithCompatibility = new ecs.TaskDefinition(stack, 'TaskDefWithCompatibility', { + networkMode: ecs.NetworkMode.AWS_VPC, + compatibility: ecs.Compatibility.EC2_AND_FARGATE, + cpu: '256', + memoryMiB: '512', +}); +taskDefinitionWithCompatibility.addContainer('TheContainer', { + image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, 'eventhandler-image')), + logging: new ecs.AwsLogDriver({ streamPrefix: 'EventDemo' }), +}); + // A rule that describes the event trigger (in this case a scheduled run) const rule = new events.Rule(stack, 'Rule', { schedule: events.Schedule.rate(cdk.Duration.minutes(1)), @@ -61,6 +73,15 @@ rule.addTarget( }), ); +// add EcsTask with EC2 and FARGATE compatibility as the target of the Rule +rule.addTarget( + new targets.EcsTask({ + cluster, + taskDefinition: taskDefinitionWithCompatibility, + launchType: ecs.LaunchType.FARGATE, + }), +); + new integ.IntegTest(app, 'EcsFargateTest', { testCases: [stack], }); diff --git a/packages/aws-cdk-lib/aws-events-targets/README.md b/packages/aws-cdk-lib/aws-events-targets/README.md index 5c1153781970d..781e257857cd4 100644 --- a/packages/aws-cdk-lib/aws-events-targets/README.md +++ b/packages/aws-cdk-lib/aws-events-targets/README.md @@ -20,6 +20,7 @@ Currently supported are: - [Put an event on an EventBridge bus](#put-an-event-on-an-eventbridge-bus) - [Run an ECS Task](#run-an-ecs-task) - [Tagging Tasks](#tagging-tasks) + - [Launch type for ECS Task](#launch-type-for-ecs-task) - [Assign public IP addresses to tasks](#assign-public-ip-addresses-to-tasks) - [Enable Amazon ECS Exec for ECS Task](#enable-amazon-ecs-exec-for-ecs-task) @@ -389,6 +390,29 @@ rule.addTarget( ); ``` +### Launch type for ECS Task + +By default, if `isEc2Compatible` for the `taskDefinition` is true, the EC2 type is used as +the launch type for the task, otherwise the FARGATE type. +If you want to override the default launch type, you can set the `launchType` property. + +```ts +import * as ecs from 'aws-cdk-lib/aws-ecs'; + +declare const cluster: ecs.ICluster; +declare const taskDefinition: ecs.TaskDefinition; + +const rule = new events.Rule(this, 'Rule', { + schedule: events.Schedule.rate(cdk.Duration.hours(1)), +}); + +rule.addTarget(new targets.EcsTask({ + cluster, + taskDefinition, + launchType: ecs.LaunchType.FARGATE, +})); +``` + ### Assign public IP addresses to tasks You can set the `assignPublicIp` flag to assign public IP addresses to tasks. diff --git a/packages/aws-cdk-lib/aws-events-targets/lib/ecs-task.ts b/packages/aws-cdk-lib/aws-events-targets/lib/ecs-task.ts index 4382dc087f920..315aba70473c5 100644 --- a/packages/aws-cdk-lib/aws-events-targets/lib/ecs-task.ts +++ b/packages/aws-cdk-lib/aws-events-targets/lib/ecs-task.ts @@ -125,6 +125,14 @@ export interface EcsTaskProps extends TargetBaseProps { * @default - false */ readonly enableExecuteCommand?: boolean; + + /** + * Specifies the launch type on which your task is running. The launch type that you specify here + * must match one of the launch type (compatibilities) of the target task. + * + * @default - 'EC2' if `isEc2Compatible` for the `taskDefinition` is true, otherwise 'FARGATE' + */ + readonly launchType?: ecs.LaunchType; } /** @@ -156,6 +164,7 @@ export class EcsTask implements events.IRuleTarget { private readonly propagateTags?: ecs.PropagatedTagSource; private readonly tags?: Tag[]; private readonly enableExecuteCommand?: boolean; + private readonly launchType?: ecs.LaunchType; constructor(private readonly props: EcsTaskProps) { if (props.securityGroup !== undefined && props.securityGroups !== undefined) { @@ -168,6 +177,7 @@ export class EcsTask implements events.IRuleTarget { this.platformVersion = props.platformVersion; this.assignPublicIp = props.assignPublicIp; this.enableExecuteCommand = props.enableExecuteCommand; + this.launchType = props.launchType; const propagateTagsValidValues = [ecs.PropagatedTagSource.TASK_DEFINITION, ecs.PropagatedTagSource.NONE]; if (props.propagateTags && !propagateTagsValidValues.includes(props.propagateTags)) { @@ -229,7 +239,8 @@ export class EcsTask implements events.IRuleTarget { } const assignPublicIp = (this.assignPublicIp ?? subnetSelection.subnetType === ec2.SubnetType.PUBLIC) ? 'ENABLED' : 'DISABLED'; - const launchType = this.taskDefinition.isEc2Compatible ? 'EC2' : 'FARGATE'; + const launchType = this.launchType ?? (this.taskDefinition.isEc2Compatible ? 'EC2' : 'FARGATE'); + if (assignPublicIp === 'ENABLED' && launchType !== 'FARGATE') { throw new Error('assignPublicIp is only supported for FARGATE tasks'); }; diff --git a/packages/aws-cdk-lib/aws-events-targets/test/ecs/event-rule-target.test.ts b/packages/aws-cdk-lib/aws-events-targets/test/ecs/event-rule-target.test.ts index 8d54f9dd5178b..ebc88f0f91e9a 100644 --- a/packages/aws-cdk-lib/aws-events-targets/test/ecs/event-rule-target.test.ts +++ b/packages/aws-cdk-lib/aws-events-targets/test/ecs/event-rule-target.test.ts @@ -1054,3 +1054,44 @@ test('throw an error when assignPublicIp is set to true for private subnets', () })); }).toThrowError('assignPublicIp should be set to true only for PUBLIC subnets'); }); + +test.each([ + ['EC2', ecs.LaunchType.EC2, ecs.Compatibility.EC2_AND_FARGATE], + ['FARGATE', ecs.LaunchType.FARGATE, ecs.Compatibility.EC2_AND_FARGATE], + ['EXTERNAL', ecs.LaunchType.EXTERNAL, ecs.Compatibility.EC2_AND_FARGATE], + ['EC2', undefined, ecs.Compatibility.EC2_AND_FARGATE], + ['FARGATE', undefined, ecs.Compatibility.FARGATE], +])('launch type %s is set by %s type specified', (expected, launchType, compatibility) => { + // GIVEN + const taskDefinition = new ecs.TaskDefinition(stack, 'TaskDef', { + networkMode: ecs.NetworkMode.AWS_VPC, + compatibility, + cpu: '256', + memoryMiB: '512', + }); + taskDefinition.addContainer('TheContainer', { + image: ecs.ContainerImage.fromRegistry('henk'), + }); + + const rule = new events.Rule(stack, 'Rule', { + schedule: events.Schedule.expression('rate(1 min)'), + }); + + // WHEN + rule.addTarget(new targets.EcsTask({ + cluster, + taskDefinition, + launchType, + })); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::Events::Rule', { + Targets: [ + { + EcsParameters: { + LaunchType: expected, + }, + }, + ], + }); +}); From 3c122a435c9d8ee3012859c05a5acf4864e9030a Mon Sep 17 00:00:00 2001 From: Henry Wilson Date: Fri, 16 Feb 2024 16:30:44 +0000 Subject: [PATCH 06/22] feat(synthetics): latest canary runtimes for NodeJS, Python (#29132) Closes #29135 ### Reason for this change Surface latest runtime versions in CDK. Older runtimes are being deprecated March 19, 2024 > To ensure uninterrupted canary runs and continued monitoring, AWS recommends customers to update their canaries to the latest Synthetics Runtimes versions: syn-nodejs-puppeteer-6.2 or higher for NodeJS-18, syn-nodejs-puppeteer-5.2 or higher for NodeJS-16, and syn-python-selenium-2.1 or higher for Python [2]. Canaries updated with latest Synthetics runtimes will continue running without interruption and receive future Lambda security updates. ### Description of changes - feat(synthetics): add 5.2, 6.1, 6.2 nodejs runtimes, deprecate 3.x runtimes - feat(synthetics): add syn-python-selenium-2.1 runtime - test(synthetics): update integration tests to cover latest runtimes ### Description of how you validated changes Attempted to run integration tests, but I don't have appropriate account setup ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- ...efaultTestDeployAssert3AD5A094.assets.json | 12 +- ...aultTestDeployAssert3AD5A094.template.json | 265 +- .../index.js | 12556 ++++++++-------- .../canary-one.assets.json | 6 +- .../canary-one.template.json | 327 +- .../test/integ.canary.js.snapshot/cdk.out | 2 +- .../test/integ.canary.js.snapshot/integ.json | 2 +- .../integ.canary.js.snapshot/manifest.json | 219 +- .../test/integ.canary.js.snapshot/tree.json | 837 +- .../test/aws-synthetics/test/integ.canary.ts | 6 +- packages/aws-cdk-lib/aws-synthetics/README.md | 14 +- .../aws-cdk-lib/aws-synthetics/lib/runtime.ts | 62 + 12 files changed, 7457 insertions(+), 6851 deletions(-) rename packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/{asset.f07f565d85d232ca058a2fc39ccc2c55ab6950e96ba8dd9a09dafe803dd1247b.bundle => asset.ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5.bundle}/index.js (86%) diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.assets.json index 909d0269cebec..9da85e7d5cdcc 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.assets.json @@ -1,20 +1,20 @@ { - "version": "34.0.0", + "version": "36.0.0", "files": { - "f07f565d85d232ca058a2fc39ccc2c55ab6950e96ba8dd9a09dafe803dd1247b": { + "ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5": { "source": { - "path": "asset.f07f565d85d232ca058a2fc39ccc2c55ab6950e96ba8dd9a09dafe803dd1247b.bundle", + "path": "asset.ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5.bundle", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "f07f565d85d232ca058a2fc39ccc2c55ab6950e96ba8dd9a09dafe803dd1247b.zip", + "objectKey": "ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "b75a93bdb6ad64cbbd4249bd5947ad234e8e76203d72e9582876a2708ba43167": { + "5222f77a218b1c67430bb8086fc0c058075ebfaf5eadf0c2c4ce5a54a1fadf5a": { "source": { "path": "IntegCanaryTestDefaultTestDeployAssert3AD5A094.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "b75a93bdb6ad64cbbd4249bd5947ad234e8e76203d72e9582876a2708ba43167.json", + "objectKey": "5222f77a218b1c67430bb8086fc0c058075ebfaf5eadf0c2c4ce5a54a1fadf5a.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.template.json index f970aa90e9e41..3b7db7aa118b9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.template.json @@ -34,7 +34,7 @@ "outputPaths": [ "CanaryRuns.0.Status.State" ], - "salt": "1697836872854" + "salt": "1708098560175" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -317,6 +317,24 @@ "*" ] }, + { + "Action": [ + "states:StartExecution" + ], + "Effect": "Allow", + "Resource": [ + "*" + ] + }, + { + "Action": [ + "synthetics:GetCanaryRuns" + ], + "Effect": "Allow", + "Resource": [ + "*" + ] + }, { "Action": [ "states:StartExecution" @@ -340,7 +358,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "f07f565d85d232ca058a2fc39ccc2c55ab6950e96ba8dd9a09dafe803dd1247b.zip" + "S3Key": "ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5.zip" }, "Timeout": 120, "Handler": "index.handler", @@ -441,6 +459,15 @@ "*" ] }, + { + "Action": [ + "synthetics:GetCanaryRuns" + ], + "Effect": "Allow", + "Resource": [ + "*" + ] + }, { "Action": [ "synthetics:GetCanaryRuns" @@ -464,7 +491,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "f07f565d85d232ca058a2fc39ccc2c55ab6950e96ba8dd9a09dafe803dd1247b.zip" + "S3Key": "ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5.zip" }, "Timeout": 120, "Handler": "index.isComplete", @@ -506,7 +533,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "f07f565d85d232ca058a2fc39ccc2c55ab6950e96ba8dd9a09dafe803dd1247b.zip" + "S3Key": "ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5.zip" }, "Timeout": 120, "Handler": "index.onTimeout", @@ -552,7 +579,7 @@ "outputPaths": [ "CanaryRuns.0.Status.State" ], - "salt": "1697836872855" + "salt": "1708098560176" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -708,7 +735,7 @@ "outputPaths": [ "CanaryRuns.0.Status.State" ], - "salt": "1697836872855" + "salt": "1708098560177" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -864,7 +891,7 @@ "outputPaths": [ "CanaryRuns.0.Status.State" ], - "salt": "1697836872855" + "salt": "1708098560177" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -986,7 +1013,7 @@ "AwsApiCallSyntheticsgetCanaryRunsaf0432d0aeabb461c9a56a62dba7b6feWaitForRole0C9EEFC1" ] }, - "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae": { + "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60": { "Type": "Custom::DeployAssert@SdkCallSyntheticsgetCanaryRuns", "Properties": { "ServiceToken": { @@ -1000,7 +1027,7 @@ "expected": "{\"$StringLike\":\"PASSED\"}", "actualPath": "CanaryRuns.0.Status.State", "stateMachineArn": { - "Ref": "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5aeWaitFor2AE5B3D5" + "Ref": "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitFor8805095D" }, "parameters": { "Name": { @@ -1009,7 +1036,7 @@ [ "\"", { - "Fn::ImportValue": "canary-one:ExportsOutputRefSynNodejsPuppeteer3978815E0AC2F26208" + "Fn::ImportValue": "canary-one:ExportsOutputRefSynNodejsPuppeteer406C46FFAF8F9722F2" }, "\"" ] @@ -1020,12 +1047,12 @@ "outputPaths": [ "CanaryRuns.0.Status.State" ], - "salt": "1697836872856" + "salt": "1708098560177" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" }, - "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5aeWaitForIsCompleteProviderInvokeEFBEE0D2": { + "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForIsCompleteProviderInvoke28F4AB77": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", @@ -1037,13 +1064,13 @@ }, "Principal": { "Fn::GetAtt": [ - "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5aeWaitForRoleF3F1B67B", + "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForRoleACF107E5", "Arn" ] } } }, - "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5aeWaitForTimeoutProviderInvoke0A0F7C7B": { + "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForTimeoutProviderInvoke78F920F8": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", @@ -1055,13 +1082,13 @@ }, "Principal": { "Fn::GetAtt": [ - "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5aeWaitForRoleF3F1B67B", + "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForRoleACF107E5", "Arn" ] } } }, - "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5aeWaitForRoleF3F1B67B": { + "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForRoleACF107E5": { "Type": "AWS::IAM::Role", "Properties": { "AssumeRolePolicyDocument": { @@ -1106,7 +1133,7 @@ ] } }, - "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5aeWaitFor2AE5B3D5": { + "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitFor8805095D": { "Type": "AWS::StepFunctions::StateMachine", "Properties": { "DefinitionString": { @@ -1133,16 +1160,16 @@ }, "RoleArn": { "Fn::GetAtt": [ - "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5aeWaitForRoleF3F1B67B", + "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForRoleACF107E5", "Arn" ] } }, "DependsOn": [ - "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5aeWaitForRoleF3F1B67B" + "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForRoleACF107E5" ] }, - "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60": { + "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44": { "Type": "Custom::DeployAssert@SdkCallSyntheticsgetCanaryRuns", "Properties": { "ServiceToken": { @@ -1156,7 +1183,7 @@ "expected": "{\"$StringLike\":\"PASSED\"}", "actualPath": "CanaryRuns.0.Status.State", "stateMachineArn": { - "Ref": "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitFor8805095D" + "Ref": "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44WaitFor170ECE5B" }, "parameters": { "Name": { @@ -1165,7 +1192,7 @@ [ "\"", { - "Fn::ImportValue": "canary-one:ExportsOutputRefSynNodejsPuppeteer406C46FFAF8F9722F2" + "Fn::ImportValue": "canary-one:ExportsOutputRefSynNodejsPuppeteer62E9F06E5D976FB2CC" }, "\"" ] @@ -1176,12 +1203,12 @@ "outputPaths": [ "CanaryRuns.0.Status.State" ], - "salt": "1697836872856" + "salt": "1708098560178" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" }, - "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForIsCompleteProviderInvoke28F4AB77": { + "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44WaitForIsCompleteProviderInvoke01399996": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", @@ -1193,13 +1220,13 @@ }, "Principal": { "Fn::GetAtt": [ - "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForRoleACF107E5", + "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44WaitForRole1F7DFDD4", "Arn" ] } } }, - "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForTimeoutProviderInvoke78F920F8": { + "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44WaitForTimeoutProviderInvokeB4B8A5C9": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", @@ -1211,13 +1238,13 @@ }, "Principal": { "Fn::GetAtt": [ - "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForRoleACF107E5", + "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44WaitForRole1F7DFDD4", "Arn" ] } } }, - "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForRoleACF107E5": { + "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44WaitForRole1F7DFDD4": { "Type": "AWS::IAM::Role", "Properties": { "AssumeRolePolicyDocument": { @@ -1262,7 +1289,7 @@ ] } }, - "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitFor8805095D": { + "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44WaitFor170ECE5B": { "Type": "AWS::StepFunctions::StateMachine", "Properties": { "DefinitionString": { @@ -1289,13 +1316,13 @@ }, "RoleArn": { "Fn::GetAtt": [ - "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForRoleACF107E5", + "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44WaitForRole1F7DFDD4", "Arn" ] } }, "DependsOn": [ - "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForRoleACF107E5" + "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44WaitForRole1F7DFDD4" ] }, "AwsApiCallSyntheticsgetCanaryRunse7a1e913bca172f26683b6f1e3a239e2": { @@ -1332,7 +1359,7 @@ "outputPaths": [ "CanaryRuns.0.Status.State" ], - "salt": "1697836872856" + "salt": "1708098560178" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -1488,7 +1515,7 @@ "outputPaths": [ "CanaryRuns.0.Status.State" ], - "salt": "1697836872856" + "salt": "1708098560178" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -1609,6 +1636,162 @@ "DependsOn": [ "AwsApiCallSyntheticsgetCanaryRunsa8f10ec0b8d5ec0f9b81b350577d8d97WaitForRole36C609F2" ] + }, + "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a": { + "Type": "Custom::DeployAssert@SdkCallSyntheticsgetCanaryRuns", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F", + "Arn" + ] + }, + "service": "Synthetics", + "api": "getCanaryRuns", + "expected": "{\"$StringLike\":\"PASSED\"}", + "actualPath": "CanaryRuns.0.Status.State", + "stateMachineArn": { + "Ref": "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911aWaitFor78A3A7F6" + }, + "parameters": { + "Name": { + "Fn::Join": [ + "", + [ + "\"", + { + "Fn::ImportValue": "canary-one:ExportsOutputRefSynPythonSelenium2123B5E7A50E411E2E" + }, + "\"" + ] + ] + } + }, + "flattenResponse": "true", + "outputPaths": [ + "CanaryRuns.0.Status.State" + ], + "salt": "1708098560179" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911aWaitForIsCompleteProviderInvoke1496C9BE": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Fn::GetAtt": [ + "SingletonFunction76b3e830a873425f8453eddd85c86925Handler81461ECE", + "Arn" + ] + }, + "Principal": { + "Fn::GetAtt": [ + "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911aWaitForRoleFED2A75D", + "Arn" + ] + } + } + }, + "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911aWaitForTimeoutProviderInvoke041F6B2E": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Fn::GetAtt": [ + "SingletonFunction5c1898e096fb4e3e95d5f6c67f3ce41aHandlerADF3E6EA", + "Arn" + ] + }, + "Principal": { + "Fn::GetAtt": [ + "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911aWaitForRoleFED2A75D", + "Arn" + ] + } + } + }, + "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911aWaitForRoleFED2A75D": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "states.amazonaws.com" + } + } + ] + }, + "Policies": [ + { + "PolicyName": "InlineInvokeFunctions", + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "SingletonFunction76b3e830a873425f8453eddd85c86925Handler81461ECE", + "Arn" + ] + }, + { + "Fn::GetAtt": [ + "SingletonFunction5c1898e096fb4e3e95d5f6c67f3ce41aHandlerADF3E6EA", + "Arn" + ] + } + ] + } + ] + } + } + ] + } + }, + "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911aWaitFor78A3A7F6": { + "Type": "AWS::StepFunctions::StateMachine", + "Properties": { + "DefinitionString": { + "Fn::Join": [ + "", + [ + "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":5,\"MaxAttempts\":60,\"BackoffRate\":1}],\"Catch\":[{\"ErrorEquals\":[\"States.ALL\"],\"Next\":\"framework-onTimeout-task\"}],\"Type\":\"Task\",\"Resource\":\"", + { + "Fn::GetAtt": [ + "SingletonFunction76b3e830a873425f8453eddd85c86925Handler81461ECE", + "Arn" + ] + }, + "\"},\"framework-onTimeout-task\":{\"End\":true,\"Type\":\"Task\",\"Resource\":\"", + { + "Fn::GetAtt": [ + "SingletonFunction5c1898e096fb4e3e95d5f6c67f3ce41aHandlerADF3E6EA", + "Arn" + ] + }, + "\"}}}" + ] + ] + }, + "RoleArn": { + "Fn::GetAtt": [ + "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911aWaitForRoleFED2A75D", + "Arn" + ] + } + }, + "DependsOn": [ + "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911aWaitForRoleFED2A75D" + ] } }, "Outputs": { @@ -1644,18 +1827,18 @@ ] } }, - "AssertionResultsAwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae": { + "AssertionResultsAwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60": { "Value": { "Fn::GetAtt": [ - "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae", + "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60", "assertion" ] } }, - "AssertionResultsAwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60": { + "AssertionResultsAwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44": { "Value": { "Fn::GetAtt": [ - "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60", + "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44", "assertion" ] } @@ -1675,6 +1858,14 @@ "assertion" ] } + }, + "AssertionResultsAwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a": { + "Value": { + "Fn::GetAtt": [ + "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a", + "assertion" + ] + } } }, "Parameters": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/asset.f07f565d85d232ca058a2fc39ccc2c55ab6950e96ba8dd9a09dafe803dd1247b.bundle/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/asset.ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5.bundle/index.js similarity index 86% rename from packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/asset.f07f565d85d232ca058a2fc39ccc2c55ab6950e96ba8dd9a09dafe803dd1247b.bundle/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/asset.ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5.bundle/index.js index 11db8c59549d7..f64f691d7ce65 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/asset.f07f565d85d232ca058a2fc39ccc2c55ab6950e96ba8dd9a09dafe803dd1247b.bundle/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/asset.ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5.bundle/index.js @@ -1,4 +1,3 @@ -"use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; @@ -783,9 +782,9 @@ var init_match = __esm({ // ../../aws-cdk-lib/assertions/lib/helpers-internal/index.js var require_helpers_internal = __commonJS({ - "../../aws-cdk-lib/assertions/lib/helpers-internal/index.js"(exports) { + "../../aws-cdk-lib/assertions/lib/helpers-internal/index.js"(exports2) { "use strict"; - var __createBinding3 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -800,14 +799,19 @@ var require_helpers_internal = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __exportStar3 = exports && exports.__exportStar || function(m, exports2) { + var __exportStar3 = exports2 && exports2.__exportStar || function(m, exports3) { for (var p in m) - if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) - __createBinding3(exports2, m, p); + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) + __createBinding3(exports3, m, p); }; - Object.defineProperty(exports, "__esModule", { value: true }); - __exportStar3((init_match(), __toCommonJS(match_exports)), exports); - __exportStar3((init_matcher(), __toCommonJS(matcher_exports)), exports); + Object.defineProperty(exports2, "__esModule", { value: true }); + var _noFold; + exports2.Match = void 0; + Object.defineProperty(exports2, _noFold = "Match", { enumerable: true, configurable: true, get: () => (init_match(), __toCommonJS(match_exports)).Match }); + exports2.Matcher = void 0; + Object.defineProperty(exports2, _noFold = "Matcher", { enumerable: true, configurable: true, get: () => (init_matcher(), __toCommonJS(matcher_exports)).Matcher }); + exports2.MatchResult = void 0; + Object.defineProperty(exports2, _noFold = "MatchResult", { enumerable: true, configurable: true, get: () => (init_matcher(), __toCommonJS(matcher_exports)).MatchResult }); } }); @@ -1357,256 +1361,75 @@ var init_tslib_es6 = __esm({ } }); -// ../../../node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js -var require_httpExtensionConfiguration = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveHttpHandlerRuntimeConfig = exports.getHttpHandlerExtensionConfiguration = void 0; - var getHttpHandlerExtensionConfiguration = (runtimeConfig) => { - let httpHandler = runtimeConfig.httpHandler; - return { - setHttpHandler(handler2) { - httpHandler = handler2; - }, - httpHandler() { - return httpHandler; - }, - updateHttpClientConfig(key, value) { - httpHandler.updateHttpClientConfig(key, value); - }, - httpHandlerConfigs() { - return httpHandler.httpHandlerConfigs(); - } - }; - }; - exports.getHttpHandlerExtensionConfiguration = getHttpHandlerExtensionConfiguration; - var resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => { - return { - httpHandler: httpHandlerExtensionConfiguration.httpHandler() - }; - }; - exports.resolveHttpHandlerRuntimeConfig = resolveHttpHandlerRuntimeConfig; - } -}); - -// ../../../node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js -var require_extensions = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_httpExtensionConfiguration(), exports); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/abort.js -var require_abort = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/abort.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/auth.js -var require_auth = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/auth.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.HttpAuthLocation = void 0; - var HttpAuthLocation; - (function(HttpAuthLocation2) { +// ../../../node_modules/@smithy/types/dist-cjs/index.js +var require_dist_cjs = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + AlgorithmId: () => AlgorithmId, + EndpointURLScheme: () => EndpointURLScheme, + FieldPosition: () => FieldPosition, + HttpApiKeyAuthLocation: () => HttpApiKeyAuthLocation, + HttpAuthLocation: () => HttpAuthLocation, + IniSectionType: () => IniSectionType, + RequestHandlerProtocol: () => RequestHandlerProtocol, + SMITHY_CONTEXT_KEY: () => SMITHY_CONTEXT_KEY, + getDefaultClientConfiguration: () => getDefaultClientConfiguration, + resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig + }); + module2.exports = __toCommonJS2(src_exports); + var HttpAuthLocation = /* @__PURE__ */ ((HttpAuthLocation2) => { HttpAuthLocation2["HEADER"] = "header"; HttpAuthLocation2["QUERY"] = "query"; - })(HttpAuthLocation = exports.HttpAuthLocation || (exports.HttpAuthLocation = {})); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js -var require_blob_payload_input_types = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/checksum.js -var require_checksum = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/checksum.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/client.js -var require_client = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/client.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/command.js -var require_command = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/command.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/connection/config.js -var require_config = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/connection/config.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/connection/manager.js -var require_manager = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/connection/manager.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/connection/pool.js -var require_pool = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/connection/pool.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/connection/index.js -var require_connection = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/connection/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_config(), exports); - tslib_1.__exportStar(require_manager(), exports); - tslib_1.__exportStar(require_pool(), exports); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/crypto.js -var require_crypto = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/crypto.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/encode.js -var require_encode = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/encode.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/endpoint.js -var require_endpoint = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoint.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.EndpointURLScheme = void 0; - var EndpointURLScheme; - (function(EndpointURLScheme2) { + return HttpAuthLocation2; + })(HttpAuthLocation || {}); + var HttpApiKeyAuthLocation = /* @__PURE__ */ ((HttpApiKeyAuthLocation2) => { + HttpApiKeyAuthLocation2["HEADER"] = "header"; + HttpApiKeyAuthLocation2["QUERY"] = "query"; + return HttpApiKeyAuthLocation2; + })(HttpApiKeyAuthLocation || {}); + var EndpointURLScheme = /* @__PURE__ */ ((EndpointURLScheme2) => { EndpointURLScheme2["HTTP"] = "http"; EndpointURLScheme2["HTTPS"] = "https"; - })(EndpointURLScheme = exports.EndpointURLScheme || (exports.EndpointURLScheme = {})); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js -var require_EndpointRuleObject = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js -var require_ErrorRuleObject = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js -var require_RuleSetObject = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/endpoints/shared.js -var require_shared = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoints/shared.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js -var require_TreeRuleObject = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/endpoints/index.js -var require_endpoints = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoints/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_EndpointRuleObject(), exports); - tslib_1.__exportStar(require_ErrorRuleObject(), exports); - tslib_1.__exportStar(require_RuleSetObject(), exports); - tslib_1.__exportStar(require_shared(), exports); - tslib_1.__exportStar(require_TreeRuleObject(), exports); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/eventStream.js -var require_eventStream = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/eventStream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/extensions/checksum.js -var require_checksum2 = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/extensions/checksum.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveChecksumRuntimeConfig = exports.getChecksumConfiguration = exports.AlgorithmId = void 0; - var AlgorithmId; - (function(AlgorithmId2) { + return EndpointURLScheme2; + })(EndpointURLScheme || {}); + var AlgorithmId = /* @__PURE__ */ ((AlgorithmId2) => { AlgorithmId2["MD5"] = "md5"; AlgorithmId2["CRC32"] = "crc32"; AlgorithmId2["CRC32C"] = "crc32c"; AlgorithmId2["SHA1"] = "sha1"; AlgorithmId2["SHA256"] = "sha256"; - })(AlgorithmId = exports.AlgorithmId || (exports.AlgorithmId = {})); - var getChecksumConfiguration = (runtimeConfig) => { + return AlgorithmId2; + })(AlgorithmId || {}); + var getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const checksumAlgorithms = []; if (runtimeConfig.sha256 !== void 0) { checksumAlgorithms.push({ - algorithmId: () => AlgorithmId.SHA256, + algorithmId: () => "sha256", checksumConstructor: () => runtimeConfig.sha256 }); } if (runtimeConfig.md5 != void 0) { checksumAlgorithms.push({ - algorithmId: () => AlgorithmId.MD5, + algorithmId: () => "md5", checksumConstructor: () => runtimeConfig.md5 }); } @@ -1619,387 +1442,197 @@ var require_checksum2 = __commonJS({ return this._checksumAlgorithms; } }; - }; - exports.getChecksumConfiguration = getChecksumConfiguration; - var resolveChecksumRuntimeConfig = (clientConfig) => { + }, "getChecksumConfiguration"); + var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => { const runtimeConfig = {}; clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => { runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor(); }); return runtimeConfig; - }; - exports.resolveChecksumRuntimeConfig = resolveChecksumRuntimeConfig; - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js -var require_defaultClientConfiguration = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveDefaultRuntimeConfig = exports.getDefaultClientConfiguration = void 0; - var checksum_1 = require_checksum2(); - var getDefaultClientConfiguration = (runtimeConfig) => { + }, "resolveChecksumRuntimeConfig"); + var getDefaultClientConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { return { - ...(0, checksum_1.getChecksumConfiguration)(runtimeConfig) + ...getChecksumConfiguration(runtimeConfig) }; - }; - exports.getDefaultClientConfiguration = getDefaultClientConfiguration; - var resolveDefaultRuntimeConfig = (config) => { + }, "getDefaultClientConfiguration"); + var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => { return { - ...(0, checksum_1.resolveChecksumRuntimeConfig)(config) + ...resolveChecksumRuntimeConfig(config) }; - }; - exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig; - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js -var require_defaultExtensionConfiguration = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/extensions/index.js -var require_extensions2 = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/extensions/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.AlgorithmId = void 0; - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_defaultClientConfiguration(), exports); - tslib_1.__exportStar(require_defaultExtensionConfiguration(), exports); - var checksum_1 = require_checksum2(); - Object.defineProperty(exports, "AlgorithmId", { enumerable: true, get: function() { - return checksum_1.AlgorithmId; - } }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/http.js -var require_http = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/http.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.FieldPosition = void 0; - var FieldPosition; - (function(FieldPosition2) { + }, "resolveDefaultRuntimeConfig"); + var FieldPosition = /* @__PURE__ */ ((FieldPosition2) => { FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER"; FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER"; - })(FieldPosition = exports.FieldPosition || (exports.FieldPosition = {})); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js -var require_awsCredentialIdentity = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/identity/identity.js -var require_identity = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/identity/identity.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/identity/index.js -var require_identity2 = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/identity/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_awsCredentialIdentity(), exports); - tslib_1.__exportStar(require_identity(), exports); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/logger.js -var require_logger = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/logger.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/middleware.js -var require_middleware = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/middleware.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SMITHY_CONTEXT_KEY = void 0; - exports.SMITHY_CONTEXT_KEY = "__smithy_context"; - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/pagination.js -var require_pagination = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/pagination.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/profile.js -var require_profile = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/profile.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/response.js -var require_response = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/response.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/retry.js -var require_retry = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/retry.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/serde.js -var require_serde = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/serde.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/shapes.js -var require_shapes = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/shapes.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/signature.js -var require_signature = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/signature.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/stream.js -var require_stream = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/stream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js -var require_streaming_blob_common_types = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js -var require_streaming_blob_payload_input_types = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js -var require_streaming_blob_payload_output_types = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/transfer.js -var require_transfer = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/transfer.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.RequestHandlerProtocol = void 0; - var RequestHandlerProtocol; - (function(RequestHandlerProtocol2) { + return FieldPosition2; + })(FieldPosition || {}); + var SMITHY_CONTEXT_KEY = "__smithy_context"; + var IniSectionType = /* @__PURE__ */ ((IniSectionType2) => { + IniSectionType2["PROFILE"] = "profile"; + IniSectionType2["SSO_SESSION"] = "sso-session"; + IniSectionType2["SERVICES"] = "services"; + return IniSectionType2; + })(IniSectionType || {}); + var RequestHandlerProtocol = /* @__PURE__ */ ((RequestHandlerProtocol2) => { RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9"; RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0"; RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0"; - })(RequestHandlerProtocol = exports.RequestHandlerProtocol || (exports.RequestHandlerProtocol = {})); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js -var require_client_payload_blob_type_narrow = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/transform/type-transform.js -var require_type_transform = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/transform/type-transform.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/uri.js -var require_uri = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/uri.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/util.js -var require_util = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/util.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + return RequestHandlerProtocol2; + })(RequestHandlerProtocol || {}); } }); -// ../../../node_modules/@smithy/types/dist-cjs/waiter.js -var require_waiter = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/waiter.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/index.js -var require_dist_cjs = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_abort(), exports); - tslib_1.__exportStar(require_auth(), exports); - tslib_1.__exportStar(require_blob_payload_input_types(), exports); - tslib_1.__exportStar(require_checksum(), exports); - tslib_1.__exportStar(require_client(), exports); - tslib_1.__exportStar(require_command(), exports); - tslib_1.__exportStar(require_connection(), exports); - tslib_1.__exportStar(require_crypto(), exports); - tslib_1.__exportStar(require_encode(), exports); - tslib_1.__exportStar(require_endpoint(), exports); - tslib_1.__exportStar(require_endpoints(), exports); - tslib_1.__exportStar(require_eventStream(), exports); - tslib_1.__exportStar(require_extensions2(), exports); - tslib_1.__exportStar(require_http(), exports); - tslib_1.__exportStar(require_identity2(), exports); - tslib_1.__exportStar(require_logger(), exports); - tslib_1.__exportStar(require_middleware(), exports); - tslib_1.__exportStar(require_pagination(), exports); - tslib_1.__exportStar(require_profile(), exports); - tslib_1.__exportStar(require_response(), exports); - tslib_1.__exportStar(require_retry(), exports); - tslib_1.__exportStar(require_serde(), exports); - tslib_1.__exportStar(require_shapes(), exports); - tslib_1.__exportStar(require_signature(), exports); - tslib_1.__exportStar(require_stream(), exports); - tslib_1.__exportStar(require_streaming_blob_common_types(), exports); - tslib_1.__exportStar(require_streaming_blob_payload_input_types(), exports); - tslib_1.__exportStar(require_streaming_blob_payload_output_types(), exports); - tslib_1.__exportStar(require_transfer(), exports); - tslib_1.__exportStar(require_client_payload_blob_type_narrow(), exports); - tslib_1.__exportStar(require_type_transform(), exports); - tslib_1.__exportStar(require_uri(), exports); - tslib_1.__exportStar(require_util(), exports); - tslib_1.__exportStar(require_waiter(), exports); - } -}); - -// ../../../node_modules/@smithy/protocol-http/dist-cjs/Field.js -var require_Field = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/Field.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Field = void 0; - var types_1 = require_dist_cjs(); - var Field = class { - constructor({ name, kind = types_1.FieldPosition.HEADER, values = [] }) { +// ../../../node_modules/@smithy/protocol-http/dist-cjs/index.js +var require_dist_cjs2 = __commonJS({ + "../../../node_modules/@smithy/protocol-http/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + Field: () => Field, + Fields: () => Fields, + HttpRequest: () => HttpRequest, + HttpResponse: () => HttpResponse, + getHttpHandlerExtensionConfiguration: () => getHttpHandlerExtensionConfiguration, + isValidHostname: () => isValidHostname, + resolveHttpHandlerRuntimeConfig: () => resolveHttpHandlerRuntimeConfig + }); + module2.exports = __toCommonJS2(src_exports); + var getHttpHandlerExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { + let httpHandler = runtimeConfig.httpHandler; + return { + setHttpHandler(handler2) { + httpHandler = handler2; + }, + httpHandler() { + return httpHandler; + }, + updateHttpClientConfig(key, value) { + httpHandler.updateHttpClientConfig(key, value); + }, + httpHandlerConfigs() { + return httpHandler.httpHandlerConfigs(); + } + }; + }, "getHttpHandlerExtensionConfiguration"); + var resolveHttpHandlerRuntimeConfig = /* @__PURE__ */ __name((httpHandlerExtensionConfiguration) => { + return { + httpHandler: httpHandlerExtensionConfiguration.httpHandler() + }; + }, "resolveHttpHandlerRuntimeConfig"); + var import_types = require_dist_cjs(); + var _Field = class _Field { + constructor({ name, kind = import_types.FieldPosition.HEADER, values = [] }) { this.name = name; this.kind = kind; this.values = values; } + /** + * Appends a value to the field. + * + * @param value The value to append. + */ add(value) { this.values.push(value); } + /** + * Overwrite existing field values. + * + * @param values The new field values. + */ set(values) { this.values = values; } + /** + * Remove all matching entries from list. + * + * @param value Value to remove. + */ remove(value) { this.values = this.values.filter((v) => v !== value); } + /** + * Get comma-delimited string. + * + * @returns String representation of {@link Field}. + */ toString() { return this.values.map((v) => v.includes(",") || v.includes(" ") ? `"${v}"` : v).join(", "); } + /** + * Get string values as a list + * + * @returns Values in {@link Field} as a list. + */ get() { return this.values; } }; - exports.Field = Field; - } -}); - -// ../../../node_modules/@smithy/protocol-http/dist-cjs/Fields.js -var require_Fields = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/Fields.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Fields = void 0; - var Fields = class { + __name(_Field, "Field"); + var Field = _Field; + var _Fields = class _Fields { constructor({ fields = [], encoding = "utf-8" }) { this.entries = {}; fields.forEach(this.setField.bind(this)); this.encoding = encoding; } + /** + * Set entry for a {@link Field} name. The `name` + * attribute will be used to key the collection. + * + * @param field The {@link Field} to set. + */ setField(field) { this.entries[field.name.toLowerCase()] = field; } + /** + * Retrieve {@link Field} entry by name. + * + * @param name The name of the {@link Field} entry + * to retrieve + * @returns The {@link Field} if it exists. + */ getField(name) { return this.entries[name.toLowerCase()]; } + /** + * Delete entry from collection. + * + * @param name Name of the entry to delete. + */ removeField(name) { delete this.entries[name.toLowerCase()]; } + /** + * Helper function for retrieving specific types of fields. + * Used to grab all headers or all trailers. + * + * @param kind {@link FieldPosition} of entries to retrieve. + * @returns The {@link Field} entries with the specified + * {@link FieldPosition}. + */ getByType(kind) { return Object.values(this.entries).filter((field) => field.kind === kind); } }; - exports.Fields = Fields; - } -}); - -// ../../../node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js -var require_httpHandler = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js -var require_httpRequest = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.HttpRequest = void 0; - var HttpRequest = class _HttpRequest { + __name(_Fields, "Fields"); + var Fields = _Fields; + var _HttpRequest = class _HttpRequest2 { constructor(options) { this.method = options.method || "GET"; this.hostname = options.hostname || "localhost"; @@ -2020,7 +1653,7 @@ var require_httpRequest = __commonJS({ return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object"; } clone() { - const cloned = new _HttpRequest({ + const cloned = new _HttpRequest2({ ...this, headers: { ...this.headers } }); @@ -2029,7 +1662,8 @@ var require_httpRequest = __commonJS({ return cloned; } }; - exports.HttpRequest = HttpRequest; + __name(_HttpRequest, "HttpRequest"); + var HttpRequest = _HttpRequest; function cloneQuery(query) { return Object.keys(query).reduce((carry, paramName) => { const param = query[paramName]; @@ -2039,16 +1673,8 @@ var require_httpRequest = __commonJS({ }; }, {}); } - } -}); - -// ../../../node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js -var require_httpResponse = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.HttpResponse = void 0; - var HttpResponse = class { + __name(cloneQuery, "cloneQuery"); + var _HttpResponse = class _HttpResponse { constructor(options) { this.statusCode = options.statusCode; this.reason = options.reason; @@ -2062,60 +1688,27 @@ var require_httpResponse = __commonJS({ return typeof resp.statusCode === "number" && typeof resp.headers === "object"; } }; - exports.HttpResponse = HttpResponse; - } -}); - -// ../../../node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js -var require_isValidHostname = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isValidHostname = void 0; + __name(_HttpResponse, "HttpResponse"); + var HttpResponse = _HttpResponse; function isValidHostname(hostname) { const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/; return hostPattern.test(hostname); } - exports.isValidHostname = isValidHostname; - } -}); - -// ../../../node_modules/@smithy/protocol-http/dist-cjs/types.js -var require_types = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/types.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/protocol-http/dist-cjs/index.js -var require_dist_cjs2 = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_extensions(), exports); - tslib_1.__exportStar(require_Field(), exports); - tslib_1.__exportStar(require_Fields(), exports); - tslib_1.__exportStar(require_httpHandler(), exports); - tslib_1.__exportStar(require_httpRequest(), exports); - tslib_1.__exportStar(require_httpResponse(), exports); - tslib_1.__exportStar(require_isValidHostname(), exports); - tslib_1.__exportStar(require_types(), exports); + __name(isValidHostname, "isValidHostname"); } }); // ../../../node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js var require_dist_cjs3 = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getHostHeaderPlugin = exports.hostHeaderMiddlewareOptions = exports.hostHeaderMiddleware = exports.resolveHostHeaderConfig = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getHostHeaderPlugin = exports2.hostHeaderMiddlewareOptions = exports2.hostHeaderMiddleware = exports2.resolveHostHeaderConfig = void 0; var protocol_http_1 = require_dist_cjs2(); function resolveHostHeaderConfig(input) { return input; } - exports.resolveHostHeaderConfig = resolveHostHeaderConfig; + exports2.resolveHostHeaderConfig = resolveHostHeaderConfig; var hostHeaderMiddleware = (options) => (next) => async (args) => { if (!protocol_http_1.HttpRequest.isInstance(args.request)) return next(args); @@ -2132,8 +1725,8 @@ var require_dist_cjs3 = __commonJS({ } return next(args); }; - exports.hostHeaderMiddleware = hostHeaderMiddleware; - exports.hostHeaderMiddlewareOptions = { + exports2.hostHeaderMiddleware = hostHeaderMiddleware; + exports2.hostHeaderMiddlewareOptions = { name: "hostHeaderMiddleware", step: "build", priority: "low", @@ -2142,19 +1735,19 @@ var require_dist_cjs3 = __commonJS({ }; var getHostHeaderPlugin = (options) => ({ applyToStack: (clientStack) => { - clientStack.add((0, exports.hostHeaderMiddleware)(options), exports.hostHeaderMiddlewareOptions); + clientStack.add((0, exports2.hostHeaderMiddleware)(options), exports2.hostHeaderMiddlewareOptions); } }); - exports.getHostHeaderPlugin = getHostHeaderPlugin; + exports2.getHostHeaderPlugin = getHostHeaderPlugin; } }); // ../../../node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js var require_loggerMiddleware = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js"(exports) { + "../../../node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getLoggerPlugin = exports.loggerMiddlewareOptions = exports.loggerMiddleware = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getLoggerPlugin = exports2.loggerMiddlewareOptions = exports2.loggerMiddleware = void 0; var loggerMiddleware = () => (next, context) => async (args) => { var _a, _b; try { @@ -2186,8 +1779,8 @@ var require_loggerMiddleware = __commonJS({ throw error; } }; - exports.loggerMiddleware = loggerMiddleware; - exports.loggerMiddlewareOptions = { + exports2.loggerMiddleware = loggerMiddleware; + exports2.loggerMiddlewareOptions = { name: "loggerMiddleware", tags: ["LOGGER"], step: "initialize", @@ -2195,29 +1788,29 @@ var require_loggerMiddleware = __commonJS({ }; var getLoggerPlugin = (options) => ({ applyToStack: (clientStack) => { - clientStack.add((0, exports.loggerMiddleware)(), exports.loggerMiddlewareOptions); + clientStack.add((0, exports2.loggerMiddleware)(), exports2.loggerMiddlewareOptions); } }); - exports.getLoggerPlugin = getLoggerPlugin; + exports2.getLoggerPlugin = getLoggerPlugin; } }); // ../../../node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js var require_dist_cjs4 = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_loggerMiddleware(), exports); + tslib_1.__exportStar(require_loggerMiddleware(), exports2); } }); // ../../../node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js var require_dist_cjs5 = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRecursionDetectionPlugin = exports.addRecursionDetectionMiddlewareOptions = exports.recursionDetectionMiddleware = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRecursionDetectionPlugin = exports2.addRecursionDetectionMiddlewareOptions = exports2.recursionDetectionMiddleware = void 0; var protocol_http_1 = require_dist_cjs2(); var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; @@ -2238,8 +1831,8 @@ var require_dist_cjs5 = __commonJS({ request: request2 }); }; - exports.recursionDetectionMiddleware = recursionDetectionMiddleware; - exports.addRecursionDetectionMiddlewareOptions = { + exports2.recursionDetectionMiddleware = recursionDetectionMiddleware; + exports2.addRecursionDetectionMiddlewareOptions = { step: "build", tags: ["RECURSION_DETECTION"], name: "recursionDetectionMiddleware", @@ -2248,82 +1841,80 @@ var require_dist_cjs5 = __commonJS({ }; var getRecursionDetectionPlugin = (options) => ({ applyToStack: (clientStack) => { - clientStack.add((0, exports.recursionDetectionMiddleware)(options), exports.addRecursionDetectionMiddlewareOptions); + clientStack.add((0, exports2.recursionDetectionMiddleware)(options), exports2.addRecursionDetectionMiddlewareOptions); } }); - exports.getRecursionDetectionPlugin = getRecursionDetectionPlugin; + exports2.getRecursionDetectionPlugin = getRecursionDetectionPlugin; } }); -// ../../../node_modules/@smithy/property-provider/dist-cjs/ProviderError.js -var require_ProviderError = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/ProviderError.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ProviderError = void 0; - var ProviderError = class _ProviderError extends Error { +// ../../../node_modules/@smithy/property-provider/dist-cjs/index.js +var require_dist_cjs6 = __commonJS({ + "../../../node_modules/@smithy/property-provider/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + CredentialsProviderError: () => CredentialsProviderError, + ProviderError: () => ProviderError, + TokenProviderError: () => TokenProviderError, + chain: () => chain, + fromStatic: () => fromStatic, + memoize: () => memoize + }); + module2.exports = __toCommonJS2(src_exports); + var _ProviderError = class _ProviderError2 extends Error { constructor(message, tryNextLink = true) { super(message); this.tryNextLink = tryNextLink; this.name = "ProviderError"; - Object.setPrototypeOf(this, _ProviderError.prototype); + Object.setPrototypeOf(this, _ProviderError2.prototype); } static from(error, tryNextLink = true) { return Object.assign(new this(error.message, tryNextLink), error); } }; - exports.ProviderError = ProviderError; - } -}); - -// ../../../node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js -var require_CredentialsProviderError = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.CredentialsProviderError = void 0; - var ProviderError_1 = require_ProviderError(); - var CredentialsProviderError = class _CredentialsProviderError extends ProviderError_1.ProviderError { + __name(_ProviderError, "ProviderError"); + var ProviderError = _ProviderError; + var _CredentialsProviderError = class _CredentialsProviderError2 extends ProviderError { constructor(message, tryNextLink = true) { super(message, tryNextLink); this.tryNextLink = tryNextLink; this.name = "CredentialsProviderError"; - Object.setPrototypeOf(this, _CredentialsProviderError.prototype); + Object.setPrototypeOf(this, _CredentialsProviderError2.prototype); } }; - exports.CredentialsProviderError = CredentialsProviderError; - } -}); - -// ../../../node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js -var require_TokenProviderError = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.TokenProviderError = void 0; - var ProviderError_1 = require_ProviderError(); - var TokenProviderError = class _TokenProviderError extends ProviderError_1.ProviderError { + __name(_CredentialsProviderError, "CredentialsProviderError"); + var CredentialsProviderError = _CredentialsProviderError; + var _TokenProviderError = class _TokenProviderError2 extends ProviderError { constructor(message, tryNextLink = true) { super(message, tryNextLink); this.tryNextLink = tryNextLink; this.name = "TokenProviderError"; - Object.setPrototypeOf(this, _TokenProviderError.prototype); + Object.setPrototypeOf(this, _TokenProviderError2.prototype); } }; - exports.TokenProviderError = TokenProviderError; - } -}); - -// ../../../node_modules/@smithy/property-provider/dist-cjs/chain.js -var require_chain = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/chain.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.chain = void 0; - var ProviderError_1 = require_ProviderError(); - var chain = (...providers) => async () => { + __name(_TokenProviderError, "TokenProviderError"); + var TokenProviderError = _TokenProviderError; + var chain = /* @__PURE__ */ __name((...providers) => async () => { if (providers.length === 0) { - throw new ProviderError_1.ProviderError("No providers in chain"); + throw new ProviderError("No providers in chain"); } let lastProviderError; for (const provider of providers) { @@ -2332,41 +1923,21 @@ var require_chain = __commonJS({ return credentials; } catch (err) { lastProviderError = err; - if (err === null || err === void 0 ? void 0 : err.tryNextLink) { + if (err == null ? void 0 : err.tryNextLink) { continue; } throw err; } } throw lastProviderError; - }; - exports.chain = chain; - } -}); - -// ../../../node_modules/@smithy/property-provider/dist-cjs/fromStatic.js -var require_fromStatic = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/fromStatic.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromStatic = void 0; - var fromStatic = (staticValue) => () => Promise.resolve(staticValue); - exports.fromStatic = fromStatic; - } -}); - -// ../../../node_modules/@smithy/property-provider/dist-cjs/memoize.js -var require_memoize = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/memoize.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.memoize = void 0; - var memoize = (provider, isExpired, requiresRefresh) => { + }, "chain"); + var fromStatic = /* @__PURE__ */ __name((staticValue) => () => Promise.resolve(staticValue), "fromStatic"); + var memoize = /* @__PURE__ */ __name((provider, isExpired, requiresRefresh) => { let resolved; let pending; let hasResult; let isConstant = false; - const coalesceProvider = async () => { + const coalesceProvider = /* @__PURE__ */ __name(async () => { if (!pending) { pending = provider(); } @@ -2378,17 +1949,17 @@ var require_memoize = __commonJS({ pending = void 0; } return resolved; - }; + }, "coalesceProvider"); if (isExpired === void 0) { return async (options) => { - if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { + if (!hasResult || (options == null ? void 0 : options.forceRefresh)) { resolved = await coalesceProvider(); } return resolved; }; } return async (options) => { - if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { + if (!hasResult || (options == null ? void 0 : options.forceRefresh)) { resolved = await coalesceProvider(); } if (isConstant) { @@ -2404,23 +1975,7 @@ var require_memoize = __commonJS({ } return resolved; }; - }; - exports.memoize = memoize; - } -}); - -// ../../../node_modules/@smithy/property-provider/dist-cjs/index.js -var require_dist_cjs6 = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_CredentialsProviderError(), exports); - tslib_1.__exportStar(require_ProviderError(), exports); - tslib_1.__exportStar(require_TokenProviderError(), exports); - tslib_1.__exportStar(require_chain(), exports); - tslib_1.__exportStar(require_fromStatic(), exports); - tslib_1.__exportStar(require_memoize(), exports); + }, "memoize"); } }); @@ -2597,10 +2152,10 @@ function __createBinding2(o, m, k, k2) { k2 = k; o[k2] = m[k]; } -function __exportStar2(m, exports) { +function __exportStar2(m, exports2) { for (var p in m) - if (p !== "default" && !exports.hasOwnProperty(p)) - exports[p] = m[p]; + if (p !== "default" && !exports2.hasOwnProperty(p)) + exports2[p] = m[p]; } function __values2(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; @@ -2788,10 +2343,10 @@ var init_tslib_es62 = __esm({ // ../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js var require_pureJs = __commonJS({ - "../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js"(exports) { + "../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.toUtf8 = exports.fromUtf8 = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toUtf8 = exports2.fromUtf8 = void 0; var fromUtf8 = (input) => { const bytes = []; for (let i = 0, len = input.length; i < len; i++) { @@ -2809,7 +2364,7 @@ var require_pureJs = __commonJS({ } return Uint8Array.from(bytes); }; - exports.fromUtf8 = fromUtf8; + exports2.fromUtf8 = fromUtf8; var toUtf8 = (input) => { let decoded = ""; for (let i = 0, len = input.length; i < len; i++) { @@ -2829,48 +2384,48 @@ var require_pureJs = __commonJS({ } return decoded; }; - exports.toUtf8 = toUtf8; + exports2.toUtf8 = toUtf8; } }); // ../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js var require_whatwgEncodingApi = __commonJS({ - "../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js"(exports) { + "../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.toUtf8 = exports.fromUtf8 = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toUtf8 = exports2.fromUtf8 = void 0; function fromUtf8(input) { return new TextEncoder().encode(input); } - exports.fromUtf8 = fromUtf8; + exports2.fromUtf8 = fromUtf8; function toUtf8(input) { return new TextDecoder("utf-8").decode(input); } - exports.toUtf8 = toUtf8; + exports2.toUtf8 = toUtf8; } }); // ../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js var require_dist_cjs7 = __commonJS({ - "../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.toUtf8 = exports.fromUtf8 = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toUtf8 = exports2.fromUtf8 = void 0; var pureJs_1 = require_pureJs(); var whatwgEncodingApi_1 = require_whatwgEncodingApi(); var fromUtf8 = (input) => typeof TextEncoder === "function" ? (0, whatwgEncodingApi_1.fromUtf8)(input) : (0, pureJs_1.fromUtf8)(input); - exports.fromUtf8 = fromUtf8; + exports2.fromUtf8 = fromUtf8; var toUtf8 = (input) => typeof TextDecoder === "function" ? (0, whatwgEncodingApi_1.toUtf8)(input) : (0, pureJs_1.toUtf8)(input); - exports.toUtf8 = toUtf8; + exports2.toUtf8 = toUtf8; } }); // ../../../node_modules/@aws-crypto/util/build/convertToBuffer.js var require_convertToBuffer = __commonJS({ - "../../../node_modules/@aws-crypto/util/build/convertToBuffer.js"(exports) { + "../../../node_modules/@aws-crypto/util/build/convertToBuffer.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.convertToBuffer = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.convertToBuffer = void 0; var util_utf8_browser_1 = require_dist_cjs7(); var fromUtf8 = typeof Buffer !== "undefined" && Buffer.from ? function(input) { return Buffer.from(input, "utf8"); @@ -2886,32 +2441,32 @@ var require_convertToBuffer = __commonJS({ } return new Uint8Array(data); } - exports.convertToBuffer = convertToBuffer; + exports2.convertToBuffer = convertToBuffer; } }); // ../../../node_modules/@aws-crypto/util/build/isEmptyData.js var require_isEmptyData = __commonJS({ - "../../../node_modules/@aws-crypto/util/build/isEmptyData.js"(exports) { + "../../../node_modules/@aws-crypto/util/build/isEmptyData.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isEmptyData = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isEmptyData = void 0; function isEmptyData(data) { if (typeof data === "string") { return data.length === 0; } return data.byteLength === 0; } - exports.isEmptyData = isEmptyData; + exports2.isEmptyData = isEmptyData; } }); // ../../../node_modules/@aws-crypto/util/build/numToUint8.js var require_numToUint8 = __commonJS({ - "../../../node_modules/@aws-crypto/util/build/numToUint8.js"(exports) { + "../../../node_modules/@aws-crypto/util/build/numToUint8.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.numToUint8 = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.numToUint8 = void 0; function numToUint8(num) { return new Uint8Array([ (num & 4278190080) >> 24, @@ -2920,16 +2475,16 @@ var require_numToUint8 = __commonJS({ num & 255 ]); } - exports.numToUint8 = numToUint8; + exports2.numToUint8 = numToUint8; } }); // ../../../node_modules/@aws-crypto/util/build/uint32ArrayFrom.js var require_uint32ArrayFrom = __commonJS({ - "../../../node_modules/@aws-crypto/util/build/uint32ArrayFrom.js"(exports) { + "../../../node_modules/@aws-crypto/util/build/uint32ArrayFrom.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.uint32ArrayFrom = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.uint32ArrayFrom = void 0; function uint32ArrayFrom(a_lookUpTable) { if (!Uint32Array.from) { var return_array = new Uint32Array(a_lookUpTable.length); @@ -2942,30 +2497,30 @@ var require_uint32ArrayFrom = __commonJS({ } return Uint32Array.from(a_lookUpTable); } - exports.uint32ArrayFrom = uint32ArrayFrom; + exports2.uint32ArrayFrom = uint32ArrayFrom; } }); // ../../../node_modules/@aws-crypto/util/build/index.js var require_build = __commonJS({ - "../../../node_modules/@aws-crypto/util/build/index.js"(exports) { + "../../../node_modules/@aws-crypto/util/build/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.uint32ArrayFrom = exports.numToUint8 = exports.isEmptyData = exports.convertToBuffer = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.uint32ArrayFrom = exports2.numToUint8 = exports2.isEmptyData = exports2.convertToBuffer = void 0; var convertToBuffer_1 = require_convertToBuffer(); - Object.defineProperty(exports, "convertToBuffer", { enumerable: true, get: function() { + Object.defineProperty(exports2, "convertToBuffer", { enumerable: true, get: function() { return convertToBuffer_1.convertToBuffer; } }); var isEmptyData_1 = require_isEmptyData(); - Object.defineProperty(exports, "isEmptyData", { enumerable: true, get: function() { + Object.defineProperty(exports2, "isEmptyData", { enumerable: true, get: function() { return isEmptyData_1.isEmptyData; } }); var numToUint8_1 = require_numToUint8(); - Object.defineProperty(exports, "numToUint8", { enumerable: true, get: function() { + Object.defineProperty(exports2, "numToUint8", { enumerable: true, get: function() { return numToUint8_1.numToUint8; } }); var uint32ArrayFrom_1 = require_uint32ArrayFrom(); - Object.defineProperty(exports, "uint32ArrayFrom", { enumerable: true, get: function() { + Object.defineProperty(exports2, "uint32ArrayFrom", { enumerable: true, get: function() { return uint32ArrayFrom_1.uint32ArrayFrom; } }); } @@ -2973,10 +2528,10 @@ var require_build = __commonJS({ // ../../../node_modules/@aws-crypto/crc32/build/aws_crc32.js var require_aws_crc32 = __commonJS({ - "../../../node_modules/@aws-crypto/crc32/build/aws_crc32.js"(exports) { + "../../../node_modules/@aws-crypto/crc32/build/aws_crc32.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.AwsCrc32 = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AwsCrc32 = void 0; var tslib_1 = (init_tslib_es62(), __toCommonJS(tslib_es6_exports2)); var util_1 = require_build(); var index_1 = require_build2(); @@ -3004,22 +2559,22 @@ var require_aws_crc32 = __commonJS({ return AwsCrc322; }() ); - exports.AwsCrc32 = AwsCrc32; + exports2.AwsCrc32 = AwsCrc32; } }); // ../../../node_modules/@aws-crypto/crc32/build/index.js var require_build2 = __commonJS({ - "../../../node_modules/@aws-crypto/crc32/build/index.js"(exports) { + "../../../node_modules/@aws-crypto/crc32/build/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.AwsCrc32 = exports.Crc32 = exports.crc32 = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AwsCrc32 = exports2.Crc32 = exports2.crc32 = void 0; var tslib_1 = (init_tslib_es62(), __toCommonJS(tslib_es6_exports2)); var util_1 = require_build(); function crc32(data) { return new Crc32().update(data).digest(); } - exports.crc32 = crc32; + exports2.crc32 = crc32; var Crc32 = ( /** @class */ function() { @@ -3052,7 +2607,7 @@ var require_build2 = __commonJS({ return Crc322; }() ); - exports.Crc32 = Crc32; + exports2.Crc32 = Crc32; var a_lookUpTable = [ 0, 1996959894, @@ -3313,7 +2868,7 @@ var require_build2 = __commonJS({ ]; var lookupTable = (0, util_1.uint32ArrayFrom)(a_lookUpTable); var aws_crc32_1 = require_aws_crc32(); - Object.defineProperty(exports, "AwsCrc32", { enumerable: true, get: function() { + Object.defineProperty(exports2, "AwsCrc32", { enumerable: true, get: function() { return aws_crc32_1.AwsCrc32; } }); } @@ -3321,10 +2876,31 @@ var require_build2 = __commonJS({ // ../../../node_modules/@smithy/util-hex-encoding/dist-cjs/index.js var require_dist_cjs8 = __commonJS({ - "../../../node_modules/@smithy/util-hex-encoding/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.toHex = exports.fromHex = void 0; + "../../../node_modules/@smithy/util-hex-encoding/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + fromHex: () => fromHex, + toHex: () => toHex + }); + module2.exports = __toCommonJS2(src_exports); var SHORT_TO_HEX = {}; var HEX_TO_SHORT = {}; for (let i = 0; i < 256; i++) { @@ -3350,7 +2926,7 @@ var require_dist_cjs8 = __commonJS({ } return out; } - exports.fromHex = fromHex; + __name(fromHex, "fromHex"); function toHex(bytes) { let out = ""; for (let i = 0; i < bytes.byteLength; i++) { @@ -3358,18 +2934,45 @@ var require_dist_cjs8 = __commonJS({ } return out; } - exports.toHex = toHex; + __name(toHex, "toHex"); } }); -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js -var require_Int64 = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Int64 = void 0; - var util_hex_encoding_1 = require_dist_cjs8(); - var Int64 = class _Int64 { +// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js +var require_dist_cjs9 = __commonJS({ + "../../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + EventStreamCodec: () => EventStreamCodec, + HeaderMarshaller: () => HeaderMarshaller, + Int64: () => Int64, + MessageDecoderStream: () => MessageDecoderStream, + MessageEncoderStream: () => MessageEncoderStream, + SmithyMessageDecoderStream: () => SmithyMessageDecoderStream, + SmithyMessageEncoderStream: () => SmithyMessageEncoderStream + }); + module2.exports = __toCommonJS2(src_exports); + var import_crc322 = require_build2(); + var import_util_hex_encoding = require_dist_cjs8(); + var _Int64 = class _Int642 { constructor(bytes) { this.bytes = bytes; if (bytes.byteLength !== 8) { @@ -3387,21 +2990,25 @@ var require_Int64 = __commonJS({ if (number < 0) { negate(bytes); } - return new _Int64(bytes); + return new _Int642(bytes); } + /** + * Called implicitly by infix arithmetic operators. + */ valueOf() { const bytes = this.bytes.slice(0); const negative = bytes[0] & 128; if (negative) { negate(bytes); } - return parseInt((0, util_hex_encoding_1.toHex)(bytes), 16) * (negative ? -1 : 1); + return parseInt((0, import_util_hex_encoding.toHex)(bytes), 16) * (negative ? -1 : 1); } toString() { return String(this.valueOf()); } }; - exports.Int64 = Int64; + __name(_Int64, "Int64"); + var Int64 = _Int64; function negate(bytes) { for (let i = 0; i < 8; i++) { bytes[i] ^= 255; @@ -3412,18 +3019,8 @@ var require_Int64 = __commonJS({ break; } } - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js -var require_HeaderMarshaller = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.HeaderMarshaller = void 0; - var util_hex_encoding_1 = require_dist_cjs8(); - var Int64_1 = require_Int64(); - var HeaderMarshaller = class { + __name(negate, "negate"); + var _HeaderMarshaller = class _HeaderMarshaller { constructor(toUtf8, fromUtf8) { this.toUtf8 = toUtf8; this.fromUtf8 = fromUtf8; @@ -3445,17 +3042,28 @@ var require_HeaderMarshaller = __commonJS({ formatHeaderValue(header) { switch (header.type) { case "boolean": - return Uint8Array.from([header.value ? 0 : 1]); + return Uint8Array.from([ + header.value ? 0 : 1 + /* boolFalse */ + ]); case "byte": return Uint8Array.from([2, header.value]); case "short": const shortView = new DataView(new ArrayBuffer(3)); - shortView.setUint8(0, 3); + shortView.setUint8( + 0, + 3 + /* short */ + ); shortView.setInt16(1, header.value, false); return new Uint8Array(shortView.buffer); case "integer": const intView = new DataView(new ArrayBuffer(5)); - intView.setUint8(0, 4); + intView.setUint8( + 0, + 4 + /* integer */ + ); intView.setInt32(1, header.value, false); return new Uint8Array(intView.buffer); case "long": @@ -3465,7 +3073,11 @@ var require_HeaderMarshaller = __commonJS({ return longBytes; case "binary": const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength)); - binView.setUint8(0, 6); + binView.setUint8( + 0, + 6 + /* byteArray */ + ); binView.setUint16(1, header.value.byteLength, false); const binBytes = new Uint8Array(binView.buffer); binBytes.set(header.value, 3); @@ -3473,7 +3085,11 @@ var require_HeaderMarshaller = __commonJS({ case "string": const utf8Bytes = this.fromUtf8(header.value); const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength)); - strView.setUint8(0, 7); + strView.setUint8( + 0, + 7 + /* string */ + ); strView.setUint16(1, utf8Bytes.byteLength, false); const strBytes = new Uint8Array(strView.buffer); strBytes.set(utf8Bytes, 3); @@ -3481,7 +3097,7 @@ var require_HeaderMarshaller = __commonJS({ case "timestamp": const tsBytes = new Uint8Array(9); tsBytes[0] = 8; - tsBytes.set(Int64_1.Int64.fromNumber(header.value.valueOf()).bytes, 1); + tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1); return tsBytes; case "uuid": if (!UUID_PATTERN.test(header.value)) { @@ -3489,7 +3105,7 @@ var require_HeaderMarshaller = __commonJS({ } const uuidBytes = new Uint8Array(17); uuidBytes[0] = 9; - uuidBytes.set((0, util_hex_encoding_1.fromHex)(header.value.replace(/\-/g, "")), 1); + uuidBytes.set((0, import_util_hex_encoding.fromHex)(header.value.replace(/\-/g, "")), 1); return uuidBytes; } } @@ -3536,7 +3152,7 @@ var require_HeaderMarshaller = __commonJS({ case 5: out[name] = { type: LONG_TAG, - value: new Int64_1.Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)) + value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)) }; position += 8; break; @@ -3561,7 +3177,7 @@ var require_HeaderMarshaller = __commonJS({ case 8: out[name] = { type: TIMESTAMP_TAG, - value: new Date(new Int64_1.Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()) + value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()) }; position += 8; break; @@ -3570,7 +3186,9 @@ var require_HeaderMarshaller = __commonJS({ position += 16; out[name] = { type: UUID_TAG, - value: `${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(0, 4))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(4, 6))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(6, 8))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(8, 10))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(10))}` + value: `${(0, import_util_hex_encoding.toHex)(uuidBytes.subarray(0, 4))}-${(0, import_util_hex_encoding.toHex)(uuidBytes.subarray(4, 6))}-${(0, import_util_hex_encoding.toHex)( + uuidBytes.subarray(6, 8) + )}-${(0, import_util_hex_encoding.toHex)(uuidBytes.subarray(8, 10))}-${(0, import_util_hex_encoding.toHex)(uuidBytes.subarray(10))}` }; break; default: @@ -3580,20 +3198,8 @@ var require_HeaderMarshaller = __commonJS({ return out; } }; - exports.HeaderMarshaller = HeaderMarshaller; - var HEADER_VALUE_TYPE; - (function(HEADER_VALUE_TYPE2) { - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["boolTrue"] = 0] = "boolTrue"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["boolFalse"] = 1] = "boolFalse"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["byte"] = 2] = "byte"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["short"] = 3] = "short"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["integer"] = 4] = "integer"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["long"] = 5] = "long"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["byteArray"] = 6] = "byteArray"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["string"] = 7] = "string"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["timestamp"] = 8] = "timestamp"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["uuid"] = 9] = "uuid"; - })(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {})); + __name(_HeaderMarshaller, "HeaderMarshaller"); + var HeaderMarshaller = _HeaderMarshaller; var BOOLEAN_TAG = "boolean"; var BYTE_TAG = "byte"; var SHORT_TAG = "short"; @@ -3604,16 +3210,7 @@ var require_HeaderMarshaller = __commonJS({ var TIMESTAMP_TAG = "timestamp"; var UUID_TAG = "uuid"; var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/; - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js -var require_splitMessage = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.splitMessage = void 0; - var crc32_1 = require_build2(); + var import_crc32 = require_build2(); var PRELUDE_MEMBER_LENGTH = 4; var PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2; var CHECKSUM_LENGTH = 4; @@ -3630,35 +3227,33 @@ var require_splitMessage = __commonJS({ const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false); const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false); const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false); - const checksummer = new crc32_1.Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH)); + const checksummer = new import_crc32.Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH)); if (expectedPreludeChecksum !== checksummer.digest()) { - throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})`); + throw new Error( + `The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})` + ); } - checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH))); + checksummer.update( + new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH)) + ); if (expectedMessageChecksum !== checksummer.digest()) { - throw new Error(`The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}`); + throw new Error( + `The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}` + ); } return { headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength), - body: new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength, messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH)) + body: new Uint8Array( + buffer, + byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength, + messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH) + ) }; } - exports.splitMessage = splitMessage; - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js -var require_EventStreamCodec = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.EventStreamCodec = void 0; - var crc32_1 = require_build2(); - var HeaderMarshaller_1 = require_HeaderMarshaller(); - var splitMessage_1 = require_splitMessage(); - var EventStreamCodec = class { + __name(splitMessage, "splitMessage"); + var _EventStreamCodec = class _EventStreamCodec { constructor(toUtf8, fromUtf8) { - this.headerMarshaller = new HeaderMarshaller_1.HeaderMarshaller(toUtf8, fromUtf8); + this.headerMarshaller = new HeaderMarshaller(toUtf8, fromUtf8); this.messageBuffer = []; this.isEndOfStream = false; } @@ -3693,12 +3288,16 @@ var require_EventStreamCodec = __commonJS({ } }; } + /** + * Convert a structured JavaScript object with tagged headers into a binary + * event stream message. + */ encode({ headers: rawHeaders, body }) { const headers = this.headerMarshaller.format(rawHeaders); const length = headers.byteLength + body.byteLength + 16; const out = new Uint8Array(length); const view = new DataView(out.buffer, out.byteOffset, out.byteLength); - const checksum = new crc32_1.Crc32(); + const checksum = new import_crc322.Crc32(); view.setUint32(0, length, false); view.setUint32(4, headers.byteLength, false); view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false); @@ -3707,33 +3306,25 @@ var require_EventStreamCodec = __commonJS({ view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false); return out; } + /** + * Convert a binary event stream message into a JavaScript object with an + * opaque, binary body and tagged, parsed headers. + */ decode(message) { - const { headers, body } = (0, splitMessage_1.splitMessage)(message); + const { headers, body } = splitMessage(message); return { headers: this.headerMarshaller.parse(headers), body }; } + /** + * Convert a structured JavaScript object with tagged headers into a binary + * event stream message header. + */ formatHeaders(rawHeaders) { return this.headerMarshaller.format(rawHeaders); } }; - exports.EventStreamCodec = EventStreamCodec; - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/Message.js -var require_Message = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/Message.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js -var require_MessageDecoderStream = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MessageDecoderStream = void 0; - var MessageDecoderStream = class { + __name(_EventStreamCodec, "EventStreamCodec"); + var EventStreamCodec = _EventStreamCodec; + var _MessageDecoderStream = class _MessageDecoderStream { constructor(options) { this.options = options; } @@ -3747,17 +3338,9 @@ var require_MessageDecoderStream = __commonJS({ } } }; - exports.MessageDecoderStream = MessageDecoderStream; - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js -var require_MessageEncoderStream = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MessageEncoderStream = void 0; - var MessageEncoderStream = class { + __name(_MessageDecoderStream, "MessageDecoderStream"); + var MessageDecoderStream = _MessageDecoderStream; + var _MessageEncoderStream = class _MessageEncoderStream { constructor(options) { this.options = options; } @@ -3774,17 +3357,9 @@ var require_MessageEncoderStream = __commonJS({ } } }; - exports.MessageEncoderStream = MessageEncoderStream; - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js -var require_SmithyMessageDecoderStream = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SmithyMessageDecoderStream = void 0; - var SmithyMessageDecoderStream = class { + __name(_MessageEncoderStream, "MessageEncoderStream"); + var MessageEncoderStream = _MessageEncoderStream; + var _SmithyMessageDecoderStream = class _SmithyMessageDecoderStream { constructor(options) { this.options = options; } @@ -3800,17 +3375,9 @@ var require_SmithyMessageDecoderStream = __commonJS({ } } }; - exports.SmithyMessageDecoderStream = SmithyMessageDecoderStream; - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js -var require_SmithyMessageEncoderStream = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SmithyMessageEncoderStream = void 0; - var SmithyMessageEncoderStream = class { + __name(_SmithyMessageDecoderStream, "SmithyMessageDecoderStream"); + var SmithyMessageDecoderStream = _SmithyMessageDecoderStream; + var _SmithyMessageEncoderStream = class _SmithyMessageEncoderStream { constructor(options) { this.options = options; } @@ -3824,184 +3391,257 @@ var require_SmithyMessageEncoderStream = __commonJS({ } } }; - exports.SmithyMessageEncoderStream = SmithyMessageEncoderStream; - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js -var require_dist_cjs9 = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_EventStreamCodec(), exports); - tslib_1.__exportStar(require_HeaderMarshaller(), exports); - tslib_1.__exportStar(require_Int64(), exports); - tslib_1.__exportStar(require_Message(), exports); - tslib_1.__exportStar(require_MessageDecoderStream(), exports); - tslib_1.__exportStar(require_MessageEncoderStream(), exports); - tslib_1.__exportStar(require_SmithyMessageDecoderStream(), exports); - tslib_1.__exportStar(require_SmithyMessageEncoderStream(), exports); - } -}); - -// ../../../node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js -var require_getSmithyContext = __commonJS({ - "../../../node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSmithyContext = void 0; - var types_1 = require_dist_cjs(); - var getSmithyContext = (context) => context[types_1.SMITHY_CONTEXT_KEY] || (context[types_1.SMITHY_CONTEXT_KEY] = {}); - exports.getSmithyContext = getSmithyContext; + __name(_SmithyMessageEncoderStream, "SmithyMessageEncoderStream"); + var SmithyMessageEncoderStream = _SmithyMessageEncoderStream; } }); -// ../../../node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js -var require_normalizeProvider = __commonJS({ - "../../../node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.normalizeProvider = void 0; - var normalizeProvider = (input) => { +// ../../../node_modules/@smithy/util-middleware/dist-cjs/index.js +var require_dist_cjs10 = __commonJS({ + "../../../node_modules/@smithy/util-middleware/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + getSmithyContext: () => getSmithyContext, + normalizeProvider: () => normalizeProvider + }); + module2.exports = __toCommonJS2(src_exports); + var import_types = require_dist_cjs(); + var getSmithyContext = /* @__PURE__ */ __name((context) => context[import_types.SMITHY_CONTEXT_KEY] || (context[import_types.SMITHY_CONTEXT_KEY] = {}), "getSmithyContext"); + var normalizeProvider = /* @__PURE__ */ __name((input) => { if (typeof input === "function") return input; const promisified = Promise.resolve(input); return () => promisified; - }; - exports.normalizeProvider = normalizeProvider; - } -}); - -// ../../../node_modules/@smithy/util-middleware/dist-cjs/index.js -var require_dist_cjs10 = __commonJS({ - "../../../node_modules/@smithy/util-middleware/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_getSmithyContext(), exports); - tslib_1.__exportStar(require_normalizeProvider(), exports); + }, "normalizeProvider"); } }); // ../../../node_modules/@smithy/is-array-buffer/dist-cjs/index.js var require_dist_cjs11 = __commonJS({ - "../../../node_modules/@smithy/is-array-buffer/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isArrayBuffer = void 0; - var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]"; - exports.isArrayBuffer = isArrayBuffer; + "../../../node_modules/@smithy/is-array-buffer/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + isArrayBuffer: () => isArrayBuffer + }); + module2.exports = __toCommonJS2(src_exports); + var isArrayBuffer = /* @__PURE__ */ __name((arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]", "isArrayBuffer"); } }); // ../../../node_modules/@smithy/util-buffer-from/dist-cjs/index.js var require_dist_cjs12 = __commonJS({ - "../../../node_modules/@smithy/util-buffer-from/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromString = exports.fromArrayBuffer = void 0; - var is_array_buffer_1 = require_dist_cjs11(); - var buffer_1 = require("buffer"); - var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { - if (!(0, is_array_buffer_1.isArrayBuffer)(input)) { + "../../../node_modules/@smithy/util-buffer-from/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + fromArrayBuffer: () => fromArrayBuffer, + fromString: () => fromString + }); + module2.exports = __toCommonJS2(src_exports); + var import_is_array_buffer = require_dist_cjs11(); + var import_buffer = require("buffer"); + var fromArrayBuffer = /* @__PURE__ */ __name((input, offset = 0, length = input.byteLength - offset) => { + if (!(0, import_is_array_buffer.isArrayBuffer)(input)) { throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`); } - return buffer_1.Buffer.from(input, offset, length); - }; - exports.fromArrayBuffer = fromArrayBuffer; - var fromString = (input, encoding) => { + return import_buffer.Buffer.from(input, offset, length); + }, "fromArrayBuffer"); + var fromString = /* @__PURE__ */ __name((input, encoding) => { if (typeof input !== "string") { throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`); } - return encoding ? buffer_1.Buffer.from(input, encoding) : buffer_1.Buffer.from(input); - }; - exports.fromString = fromString; + return encoding ? import_buffer.Buffer.from(input, encoding) : import_buffer.Buffer.from(input); + }, "fromString"); } }); -// ../../../node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js -var require_fromUtf8 = __commonJS({ - "../../../node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromUtf8 = void 0; - var util_buffer_from_1 = require_dist_cjs12(); - var fromUtf8 = (input) => { - const buf = (0, util_buffer_from_1.fromString)(input, "utf8"); +// ../../../node_modules/@smithy/util-utf8/dist-cjs/index.js +var require_dist_cjs13 = __commonJS({ + "../../../node_modules/@smithy/util-utf8/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + fromUtf8: () => fromUtf8, + toUint8Array: () => toUint8Array, + toUtf8: () => toUtf8 + }); + module2.exports = __toCommonJS2(src_exports); + var import_util_buffer_from = require_dist_cjs12(); + var fromUtf8 = /* @__PURE__ */ __name((input) => { + const buf = (0, import_util_buffer_from.fromString)(input, "utf8"); return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); - }; - exports.fromUtf8 = fromUtf8; - } -}); - -// ../../../node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js -var require_toUint8Array = __commonJS({ - "../../../node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.toUint8Array = void 0; - var fromUtf8_1 = require_fromUtf8(); - var toUint8Array = (data) => { + }, "fromUtf8"); + var toUint8Array = /* @__PURE__ */ __name((data) => { if (typeof data === "string") { - return (0, fromUtf8_1.fromUtf8)(data); + return fromUtf8(data); } if (ArrayBuffer.isView(data)) { return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); } return new Uint8Array(data); - }; - exports.toUint8Array = toUint8Array; - } -}); - -// ../../../node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js -var require_toUtf8 = __commonJS({ - "../../../node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.toUtf8 = void 0; - var util_buffer_from_1 = require_dist_cjs12(); - var toUtf8 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8"); - exports.toUtf8 = toUtf8; + }, "toUint8Array"); + var toUtf8 = /* @__PURE__ */ __name((input) => (0, import_util_buffer_from.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8"), "toUtf8"); } }); -// ../../../node_modules/@smithy/util-utf8/dist-cjs/index.js -var require_dist_cjs13 = __commonJS({ - "../../../node_modules/@smithy/util-utf8/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromUtf8(), exports); - tslib_1.__exportStar(require_toUint8Array(), exports); - tslib_1.__exportStar(require_toUtf8(), exports); +// ../../../node_modules/@smithy/util-uri-escape/dist-cjs/index.js +var require_dist_cjs14 = __commonJS({ + "../../../node_modules/@smithy/util-uri-escape/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + escapeUri: () => escapeUri, + escapeUriPath: () => escapeUriPath + }); + module2.exports = __toCommonJS2(src_exports); + var escapeUri = /* @__PURE__ */ __name((uri) => ( + // AWS percent-encodes some extra non-standard characters in a URI + encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode) + ), "escapeUri"); + var hexEncode = /* @__PURE__ */ __name((c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`, "hexEncode"); + var escapeUriPath = /* @__PURE__ */ __name((uri) => uri.split("/").map(escapeUri).join("/"), "escapeUriPath"); } }); -// ../../../node_modules/@smithy/signature-v4/dist-cjs/constants.js -var require_constants = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/constants.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MAX_PRESIGNED_TTL = exports.KEY_TYPE_IDENTIFIER = exports.MAX_CACHE_SIZE = exports.UNSIGNED_PAYLOAD = exports.EVENT_ALGORITHM_IDENTIFIER = exports.ALGORITHM_IDENTIFIER_V4A = exports.ALGORITHM_IDENTIFIER = exports.UNSIGNABLE_PATTERNS = exports.SEC_HEADER_PATTERN = exports.PROXY_HEADER_PATTERN = exports.ALWAYS_UNSIGNABLE_HEADERS = exports.HOST_HEADER = exports.TOKEN_HEADER = exports.SHA256_HEADER = exports.SIGNATURE_HEADER = exports.GENERATED_HEADERS = exports.DATE_HEADER = exports.AMZ_DATE_HEADER = exports.AUTH_HEADER = exports.REGION_SET_PARAM = exports.TOKEN_QUERY_PARAM = exports.SIGNATURE_QUERY_PARAM = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = void 0; - exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; - exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; - exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; - exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; - exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires"; - exports.SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; - exports.TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; - exports.REGION_SET_PARAM = "X-Amz-Region-Set"; - exports.AUTH_HEADER = "authorization"; - exports.AMZ_DATE_HEADER = exports.AMZ_DATE_QUERY_PARAM.toLowerCase(); - exports.DATE_HEADER = "date"; - exports.GENERATED_HEADERS = [exports.AUTH_HEADER, exports.AMZ_DATE_HEADER, exports.DATE_HEADER]; - exports.SIGNATURE_HEADER = exports.SIGNATURE_QUERY_PARAM.toLowerCase(); - exports.SHA256_HEADER = "x-amz-content-sha256"; - exports.TOKEN_HEADER = exports.TOKEN_QUERY_PARAM.toLowerCase(); - exports.HOST_HEADER = "host"; - exports.ALWAYS_UNSIGNABLE_HEADERS = { +// ../../../node_modules/@smithy/signature-v4/dist-cjs/index.js +var require_dist_cjs15 = __commonJS({ + "../../../node_modules/@smithy/signature-v4/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + SignatureV4: () => SignatureV4, + clearCredentialCache: () => clearCredentialCache, + createScope: () => createScope, + getCanonicalHeaders: () => getCanonicalHeaders, + getCanonicalQuery: () => getCanonicalQuery, + getPayloadHash: () => getPayloadHash, + getSigningKey: () => getSigningKey, + moveHeadersToQuery: () => moveHeadersToQuery, + prepareRequest: () => prepareRequest + }); + module2.exports = __toCommonJS2(src_exports); + var import_eventstream_codec = require_dist_cjs9(); + var import_util_middleware = require_dist_cjs10(); + var import_util_utf83 = require_dist_cjs13(); + var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; + var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; + var AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; + var SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; + var EXPIRES_QUERY_PARAM = "X-Amz-Expires"; + var SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; + var TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; + var AUTH_HEADER = "authorization"; + var AMZ_DATE_HEADER = AMZ_DATE_QUERY_PARAM.toLowerCase(); + var DATE_HEADER = "date"; + var GENERATED_HEADERS = [AUTH_HEADER, AMZ_DATE_HEADER, DATE_HEADER]; + var SIGNATURE_HEADER = SIGNATURE_QUERY_PARAM.toLowerCase(); + var SHA256_HEADER = "x-amz-content-sha256"; + var TOKEN_HEADER = TOKEN_QUERY_PARAM.toLowerCase(); + var ALWAYS_UNSIGNABLE_HEADERS = { authorization: true, "cache-control": true, connection: true, @@ -4018,79 +3658,54 @@ var require_constants = __commonJS({ "user-agent": true, "x-amzn-trace-id": true }; - exports.PROXY_HEADER_PATTERN = /^proxy-/; - exports.SEC_HEADER_PATTERN = /^sec-/; - exports.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; - exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; - exports.ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; - exports.EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; - exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; - exports.MAX_CACHE_SIZE = 50; - exports.KEY_TYPE_IDENTIFIER = "aws4_request"; - exports.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js -var require_credentialDerivation = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.clearCredentialCache = exports.getSigningKey = exports.createScope = void 0; - var util_hex_encoding_1 = require_dist_cjs8(); - var util_utf8_1 = require_dist_cjs13(); - var constants_1 = require_constants(); + var PROXY_HEADER_PATTERN = /^proxy-/; + var SEC_HEADER_PATTERN = /^sec-/; + var ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; + var EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; + var UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; + var MAX_CACHE_SIZE = 50; + var KEY_TYPE_IDENTIFIER = "aws4_request"; + var MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; + var import_util_hex_encoding = require_dist_cjs8(); + var import_util_utf8 = require_dist_cjs13(); var signingKeyCache = {}; var cacheQueue = []; - var createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${constants_1.KEY_TYPE_IDENTIFIER}`; - exports.createScope = createScope; - var getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { + var createScope = /* @__PURE__ */ __name((shortDate, region, service) => `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`, "createScope"); + var getSigningKey = /* @__PURE__ */ __name(async (sha256Constructor, credentials, shortDate, region, service) => { const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); - const cacheKey = `${shortDate}:${region}:${service}:${(0, util_hex_encoding_1.toHex)(credsHash)}:${credentials.sessionToken}`; + const cacheKey = `${shortDate}:${region}:${service}:${(0, import_util_hex_encoding.toHex)(credsHash)}:${credentials.sessionToken}`; if (cacheKey in signingKeyCache) { return signingKeyCache[cacheKey]; } cacheQueue.push(cacheKey); - while (cacheQueue.length > constants_1.MAX_CACHE_SIZE) { + while (cacheQueue.length > MAX_CACHE_SIZE) { delete signingKeyCache[cacheQueue.shift()]; } let key = `AWS4${credentials.secretAccessKey}`; - for (const signable of [shortDate, region, service, constants_1.KEY_TYPE_IDENTIFIER]) { + for (const signable of [shortDate, region, service, KEY_TYPE_IDENTIFIER]) { key = await hmac(sha256Constructor, key, signable); } return signingKeyCache[cacheKey] = key; - }; - exports.getSigningKey = getSigningKey; - var clearCredentialCache = () => { + }, "getSigningKey"); + var clearCredentialCache = /* @__PURE__ */ __name(() => { cacheQueue.length = 0; Object.keys(signingKeyCache).forEach((cacheKey) => { delete signingKeyCache[cacheKey]; }); - }; - exports.clearCredentialCache = clearCredentialCache; - var hmac = (ctor, secret, data) => { + }, "clearCredentialCache"); + var hmac = /* @__PURE__ */ __name((ctor, secret, data) => { const hash = new ctor(secret); - hash.update((0, util_utf8_1.toUint8Array)(data)); + hash.update((0, import_util_utf8.toUint8Array)(data)); return hash.digest(); - }; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js -var require_getCanonicalHeaders = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getCanonicalHeaders = void 0; - var constants_1 = require_constants(); - var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => { + }, "hmac"); + var getCanonicalHeaders = /* @__PURE__ */ __name(({ headers }, unsignableHeaders, signableHeaders) => { const canonical = {}; for (const headerName of Object.keys(headers).sort()) { if (headers[headerName] == void 0) { continue; } const canonicalHeaderName = headerName.toLowerCase(); - if (canonicalHeaderName in constants_1.ALWAYS_UNSIGNABLE_HEADERS || (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || constants_1.PROXY_HEADER_PATTERN.test(canonicalHeaderName) || constants_1.SEC_HEADER_PATTERN.test(canonicalHeaderName)) { + if (canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS || (unsignableHeaders == null ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || PROXY_HEADER_PATTERN.test(canonicalHeaderName) || SEC_HEADER_PATTERN.test(canonicalHeaderName)) { if (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) { continue; } @@ -4098,111 +3713,46 @@ var require_getCanonicalHeaders = __commonJS({ canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " "); } return canonical; - }; - exports.getCanonicalHeaders = getCanonicalHeaders; - } -}); - -// ../../../node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js -var require_escape_uri = __commonJS({ - "../../../node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.escapeUri = void 0; - var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); - exports.escapeUri = escapeUri; - var hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`; - } -}); - -// ../../../node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js -var require_escape_uri_path = __commonJS({ - "../../../node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.escapeUriPath = void 0; - var escape_uri_1 = require_escape_uri(); - var escapeUriPath = (uri) => uri.split("/").map(escape_uri_1.escapeUri).join("/"); - exports.escapeUriPath = escapeUriPath; - } -}); - -// ../../../node_modules/@smithy/util-uri-escape/dist-cjs/index.js -var require_dist_cjs14 = __commonJS({ - "../../../node_modules/@smithy/util-uri-escape/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_escape_uri(), exports); - tslib_1.__exportStar(require_escape_uri_path(), exports); - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js -var require_getCanonicalQuery = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getCanonicalQuery = void 0; - var util_uri_escape_1 = require_dist_cjs14(); - var constants_1 = require_constants(); - var getCanonicalQuery = ({ query = {} }) => { + }, "getCanonicalHeaders"); + var import_util_uri_escape = require_dist_cjs14(); + var getCanonicalQuery = /* @__PURE__ */ __name(({ query = {} }) => { const keys = []; const serialized = {}; for (const key of Object.keys(query).sort()) { - if (key.toLowerCase() === constants_1.SIGNATURE_HEADER) { + if (key.toLowerCase() === SIGNATURE_HEADER) { continue; } keys.push(key); const value = query[key]; if (typeof value === "string") { - serialized[key] = `${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value)}`; + serialized[key] = `${(0, import_util_uri_escape.escapeUri)(key)}=${(0, import_util_uri_escape.escapeUri)(value)}`; } else if (Array.isArray(value)) { - serialized[key] = value.slice(0).reduce((encoded, value2) => encoded.concat([`${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value2)}`]), []).sort().join("&"); + serialized[key] = value.slice(0).reduce( + (encoded, value2) => encoded.concat([`${(0, import_util_uri_escape.escapeUri)(key)}=${(0, import_util_uri_escape.escapeUri)(value2)}`]), + [] + ).sort().join("&"); } } return keys.map((key) => serialized[key]).filter((serialized2) => serialized2).join("&"); - }; - exports.getCanonicalQuery = getCanonicalQuery; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js -var require_getPayloadHash = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getPayloadHash = void 0; - var is_array_buffer_1 = require_dist_cjs11(); - var util_hex_encoding_1 = require_dist_cjs8(); - var util_utf8_1 = require_dist_cjs13(); - var constants_1 = require_constants(); - var getPayloadHash = async ({ headers, body }, hashConstructor) => { + }, "getCanonicalQuery"); + var import_is_array_buffer = require_dist_cjs11(); + var import_util_utf82 = require_dist_cjs13(); + var getPayloadHash = /* @__PURE__ */ __name(async ({ headers, body }, hashConstructor) => { for (const headerName of Object.keys(headers)) { - if (headerName.toLowerCase() === constants_1.SHA256_HEADER) { + if (headerName.toLowerCase() === SHA256_HEADER) { return headers[headerName]; } } if (body == void 0) { return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; - } else if (typeof body === "string" || ArrayBuffer.isView(body) || (0, is_array_buffer_1.isArrayBuffer)(body)) { + } else if (typeof body === "string" || ArrayBuffer.isView(body) || (0, import_is_array_buffer.isArrayBuffer)(body)) { const hashCtor = new hashConstructor(); - hashCtor.update((0, util_utf8_1.toUint8Array)(body)); - return (0, util_hex_encoding_1.toHex)(await hashCtor.digest()); + hashCtor.update((0, import_util_utf82.toUint8Array)(body)); + return (0, import_util_hex_encoding.toHex)(await hashCtor.digest()); } - return constants_1.UNSIGNED_PAYLOAD; - }; - exports.getPayloadHash = getPayloadHash; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js -var require_headerUtil = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.deleteHeader = exports.getHeaderValue = exports.hasHeader = void 0; - var hasHeader = (soughtHeader, headers) => { + return UNSIGNED_PAYLOAD; + }, "getPayloadHash"); + var hasHeader = /* @__PURE__ */ __name((soughtHeader, headers) => { soughtHeader = soughtHeader.toLowerCase(); for (const headerName of Object.keys(headers)) { if (soughtHeader === headerName.toLowerCase()) { @@ -4210,66 +3760,25 @@ var require_headerUtil = __commonJS({ } } return false; - }; - exports.hasHeader = hasHeader; - var getHeaderValue = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - return headers[headerName]; - } - } - return void 0; - }; - exports.getHeaderValue = getHeaderValue; - var deleteHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - delete headers[headerName]; - } - } - }; - exports.deleteHeader = deleteHeader; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/cloneRequest.js -var require_cloneRequest = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/cloneRequest.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.cloneQuery = exports.cloneRequest = void 0; - var cloneRequest = ({ headers, query, ...rest }) => ({ + }, "hasHeader"); + var cloneRequest = /* @__PURE__ */ __name(({ headers, query, ...rest }) => ({ ...rest, headers: { ...headers }, - query: query ? (0, exports.cloneQuery)(query) : void 0 - }); - exports.cloneRequest = cloneRequest; - var cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { + query: query ? cloneQuery(query) : void 0 + }), "cloneRequest"); + var cloneQuery = /* @__PURE__ */ __name((query) => Object.keys(query).reduce((carry, paramName) => { const param = query[paramName]; return { ...carry, [paramName]: Array.isArray(param) ? [...param] : param }; - }, {}); - exports.cloneQuery = cloneQuery; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js -var require_moveHeadersToQuery = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.moveHeadersToQuery = void 0; - var cloneRequest_1 = require_cloneRequest(); - var moveHeadersToQuery = (request2, options = {}) => { + }, {}), "cloneQuery"); + var moveHeadersToQuery = /* @__PURE__ */ __name((request2, options = {}) => { var _a; - const { headers, query = {} } = typeof request2.clone === "function" ? request2.clone() : (0, cloneRequest_1.cloneRequest)(request2); + const { headers, query = {} } = typeof request2.clone === "function" ? request2.clone() : cloneRequest(request2); for (const name of Object.keys(headers)) { const lname = name.toLowerCase(); - if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) === null || _a === void 0 ? void 0 : _a.has(lname))) { + if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) == null ? void 0 : _a.has(lname))) { query[name] = headers[name]; delete headers[name]; } @@ -4279,41 +3788,18 @@ var require_moveHeadersToQuery = __commonJS({ headers, query }; - }; - exports.moveHeadersToQuery = moveHeadersToQuery; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js -var require_prepareRequest = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.prepareRequest = void 0; - var cloneRequest_1 = require_cloneRequest(); - var constants_1 = require_constants(); - var prepareRequest = (request2) => { - request2 = typeof request2.clone === "function" ? request2.clone() : (0, cloneRequest_1.cloneRequest)(request2); + }, "moveHeadersToQuery"); + var prepareRequest = /* @__PURE__ */ __name((request2) => { + request2 = typeof request2.clone === "function" ? request2.clone() : cloneRequest(request2); for (const headerName of Object.keys(request2.headers)) { - if (constants_1.GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { + if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { delete request2.headers[headerName]; } } return request2; - }; - exports.prepareRequest = prepareRequest; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/utilDate.js -var require_utilDate = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/utilDate.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.toDate = exports.iso8601 = void 0; - var iso8601 = (time) => (0, exports.toDate)(time).toISOString().replace(/\.\d{3}Z$/, "Z"); - exports.iso8601 = iso8601; - var toDate = (time) => { + }, "prepareRequest"); + var iso8601 = /* @__PURE__ */ __name((time) => toDate(time).toISOString().replace(/\.\d{3}Z$/, "Z"), "iso8601"); + var toDate = /* @__PURE__ */ __name((time) => { if (typeof time === "number") { return new Date(time * 1e3); } @@ -4324,61 +3810,60 @@ var require_utilDate = __commonJS({ return new Date(time); } return time; - }; - exports.toDate = toDate; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js -var require_SignatureV4 = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SignatureV4 = void 0; - var eventstream_codec_1 = require_dist_cjs9(); - var util_hex_encoding_1 = require_dist_cjs8(); - var util_middleware_1 = require_dist_cjs10(); - var util_utf8_1 = require_dist_cjs13(); - var constants_1 = require_constants(); - var credentialDerivation_1 = require_credentialDerivation(); - var getCanonicalHeaders_1 = require_getCanonicalHeaders(); - var getCanonicalQuery_1 = require_getCanonicalQuery(); - var getPayloadHash_1 = require_getPayloadHash(); - var headerUtil_1 = require_headerUtil(); - var moveHeadersToQuery_1 = require_moveHeadersToQuery(); - var prepareRequest_1 = require_prepareRequest(); - var utilDate_1 = require_utilDate(); - var SignatureV4 = class { - constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) { - this.headerMarshaller = new eventstream_codec_1.HeaderMarshaller(util_utf8_1.toUtf8, util_utf8_1.fromUtf8); + }, "toDate"); + var _SignatureV4 = class _SignatureV4 { + constructor({ + applyChecksum, + credentials, + region, + service, + sha256, + uriEscapePath = true + }) { + this.headerMarshaller = new import_eventstream_codec.HeaderMarshaller(import_util_utf83.toUtf8, import_util_utf83.fromUtf8); this.service = service; this.sha256 = sha256; this.uriEscapePath = uriEscapePath; this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; - this.regionProvider = (0, util_middleware_1.normalizeProvider)(region); - this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials); + this.regionProvider = (0, import_util_middleware.normalizeProvider)(region); + this.credentialProvider = (0, import_util_middleware.normalizeProvider)(credentials); } async presign(originalRequest, options = {}) { - const { signingDate = /* @__PURE__ */ new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService } = options; + const { + signingDate = /* @__PURE__ */ new Date(), + expiresIn = 3600, + unsignableHeaders, + unhoistableHeaders, + signableHeaders, + signingRegion, + signingService + } = options; const credentials = await this.credentialProvider(); this.validateResolvedCredentials(credentials); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const region = signingRegion ?? await this.regionProvider(); const { longDate, shortDate } = formatDate(signingDate); - if (expiresIn > constants_1.MAX_PRESIGNED_TTL) { - return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future"); + if (expiresIn > MAX_PRESIGNED_TTL) { + return Promise.reject( + "Signature version 4 presigned URLs must have an expiration date less than one week in the future" + ); } - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - const request2 = (0, moveHeadersToQuery_1.moveHeadersToQuery)((0, prepareRequest_1.prepareRequest)(originalRequest), { unhoistableHeaders }); + const scope = createScope(shortDate, region, signingService ?? this.service); + const request2 = moveHeadersToQuery(prepareRequest(originalRequest), { unhoistableHeaders }); if (credentials.sessionToken) { - request2.query[constants_1.TOKEN_QUERY_PARAM] = credentials.sessionToken; - } - request2.query[constants_1.ALGORITHM_QUERY_PARAM] = constants_1.ALGORITHM_IDENTIFIER; - request2.query[constants_1.CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`; - request2.query[constants_1.AMZ_DATE_QUERY_PARAM] = longDate; - request2.query[constants_1.EXPIRES_QUERY_PARAM] = expiresIn.toString(10); - const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request2, unsignableHeaders, signableHeaders); - request2.query[constants_1.SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); - request2.query[constants_1.SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request2, canonicalHeaders, await (0, getPayloadHash_1.getPayloadHash)(originalRequest, this.sha256))); + request2.query[TOKEN_QUERY_PARAM] = credentials.sessionToken; + } + request2.query[ALGORITHM_QUERY_PARAM] = ALGORITHM_IDENTIFIER; + request2.query[CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`; + request2.query[AMZ_DATE_QUERY_PARAM] = longDate; + request2.query[EXPIRES_QUERY_PARAM] = expiresIn.toString(10); + const canonicalHeaders = getCanonicalHeaders(request2, unsignableHeaders, signableHeaders); + request2.query[SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); + request2.query[SIGNATURE_QUERY_PARAM] = await this.getSignature( + longDate, + scope, + this.getSigningKey(credentials, region, shortDate, signingService), + this.createCanonicalRequest(request2, canonicalHeaders, await getPayloadHash(originalRequest, this.sha256)) + ); return request2; } async sign(toSign, options) { @@ -4393,15 +3878,15 @@ var require_SignatureV4 = __commonJS({ } } async signEvent({ headers, payload }, { signingDate = /* @__PURE__ */ new Date(), priorSignature, signingRegion, signingService }) { - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const region = signingRegion ?? await this.regionProvider(); const { shortDate, longDate } = formatDate(signingDate); - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - const hashedPayload = await (0, getPayloadHash_1.getPayloadHash)({ headers: {}, body: payload }, this.sha256); + const scope = createScope(shortDate, region, signingService ?? this.service); + const hashedPayload = await getPayloadHash({ headers: {}, body: payload }, this.sha256); const hash = new this.sha256(); hash.update(headers); - const hashedHeaders = (0, util_hex_encoding_1.toHex)(await hash.digest()); + const hashedHeaders = (0, import_util_hex_encoding.toHex)(await hash.digest()); const stringToSign = [ - constants_1.EVENT_ALGORITHM_IDENTIFIER, + EVENT_ALGORITHM_IDENTIFIER, longDate, scope, priorSignature, @@ -4411,15 +3896,18 @@ var require_SignatureV4 = __commonJS({ return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); } async signMessage(signableMessage, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService }) { - const promise = this.signEvent({ - headers: this.headerMarshaller.format(signableMessage.message.headers), - payload: signableMessage.message.body - }, { - signingDate, - signingRegion, - signingService, - priorSignature: signableMessage.priorSignature - }); + const promise = this.signEvent( + { + headers: this.headerMarshaller.format(signableMessage.message.headers), + payload: signableMessage.message.body + }, + { + signingDate, + signingRegion, + signingService, + priorSignature: signableMessage.priorSignature + } + ); return promise.then((signature) => { return { message: signableMessage.message, signature }; }); @@ -4427,37 +3915,48 @@ var require_SignatureV4 = __commonJS({ async signString(stringToSign, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService } = {}) { const credentials = await this.credentialProvider(); this.validateResolvedCredentials(credentials); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const region = signingRegion ?? await this.regionProvider(); const { shortDate } = formatDate(signingDate); const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); - hash.update((0, util_utf8_1.toUint8Array)(stringToSign)); - return (0, util_hex_encoding_1.toHex)(await hash.digest()); - } - async signRequest(requestToSign, { signingDate = /* @__PURE__ */ new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService } = {}) { + hash.update((0, import_util_utf83.toUint8Array)(stringToSign)); + return (0, import_util_hex_encoding.toHex)(await hash.digest()); + } + async signRequest(requestToSign, { + signingDate = /* @__PURE__ */ new Date(), + signableHeaders, + unsignableHeaders, + signingRegion, + signingService + } = {}) { const credentials = await this.credentialProvider(); this.validateResolvedCredentials(credentials); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); - const request2 = (0, prepareRequest_1.prepareRequest)(requestToSign); + const region = signingRegion ?? await this.regionProvider(); + const request2 = prepareRequest(requestToSign); const { longDate, shortDate } = formatDate(signingDate); - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - request2.headers[constants_1.AMZ_DATE_HEADER] = longDate; + const scope = createScope(shortDate, region, signingService ?? this.service); + request2.headers[AMZ_DATE_HEADER] = longDate; if (credentials.sessionToken) { - request2.headers[constants_1.TOKEN_HEADER] = credentials.sessionToken; + request2.headers[TOKEN_HEADER] = credentials.sessionToken; } - const payloadHash = await (0, getPayloadHash_1.getPayloadHash)(request2, this.sha256); - if (!(0, headerUtil_1.hasHeader)(constants_1.SHA256_HEADER, request2.headers) && this.applyChecksum) { - request2.headers[constants_1.SHA256_HEADER] = payloadHash; + const payloadHash = await getPayloadHash(request2, this.sha256); + if (!hasHeader(SHA256_HEADER, request2.headers) && this.applyChecksum) { + request2.headers[SHA256_HEADER] = payloadHash; } - const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request2, unsignableHeaders, signableHeaders); - const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request2, canonicalHeaders, payloadHash)); - request2.headers[constants_1.AUTH_HEADER] = `${constants_1.ALGORITHM_IDENTIFIER} Credential=${credentials.accessKeyId}/${scope}, SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, Signature=${signature}`; + const canonicalHeaders = getCanonicalHeaders(request2, unsignableHeaders, signableHeaders); + const signature = await this.getSignature( + longDate, + scope, + this.getSigningKey(credentials, region, shortDate, signingService), + this.createCanonicalRequest(request2, canonicalHeaders, payloadHash) + ); + request2.headers[AUTH_HEADER] = `${ALGORITHM_IDENTIFIER} Credential=${credentials.accessKeyId}/${scope}, SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, Signature=${signature}`; return request2; } createCanonicalRequest(request2, canonicalHeaders, payloadHash) { const sortedHeaders = Object.keys(canonicalHeaders).sort(); return `${request2.method} ${this.getCanonicalPath(request2)} -${(0, getCanonicalQuery_1.getCanonicalQuery)(request2)} +${getCanonicalQuery(request2)} ${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join("\n")} ${sortedHeaders.join(";")} @@ -4465,18 +3964,18 @@ ${payloadHash}`; } async createStringToSign(longDate, credentialScope, canonicalRequest) { const hash = new this.sha256(); - hash.update((0, util_utf8_1.toUint8Array)(canonicalRequest)); + hash.update((0, import_util_utf83.toUint8Array)(canonicalRequest)); const hashedRequest = await hash.digest(); - return `${constants_1.ALGORITHM_IDENTIFIER} + return `${ALGORITHM_IDENTIFIER} ${longDate} ${credentialScope} -${(0, util_hex_encoding_1.toHex)(hashedRequest)}`; +${(0, import_util_hex_encoding.toHex)(hashedRequest)}`; } getCanonicalPath({ path }) { if (this.uriEscapePath) { const normalizedPathSegments = []; for (const pathSegment of path.split("/")) { - if ((pathSegment === null || pathSegment === void 0 ? void 0 : pathSegment.length) === 0) + if ((pathSegment == null ? void 0 : pathSegment.length) === 0) continue; if (pathSegment === ".") continue; @@ -4486,7 +3985,7 @@ ${(0, util_hex_encoding_1.toHex)(hashedRequest)}`; normalizedPathSegments.push(pathSegment); } } - const normalizedPath = `${(path === null || path === void 0 ? void 0 : path.startsWith("/")) ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && (path === null || path === void 0 ? void 0 : path.endsWith("/")) ? "/" : ""}`; + const normalizedPath = `${(path == null ? void 0 : path.startsWith("/")) ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && (path == null ? void 0 : path.endsWith("/")) ? "/" : ""}`; const doubleEncoded = encodeURIComponent(normalizedPath); return doubleEncoded.replace(/%2F/g, "/"); } @@ -4495,68 +3994,39 @@ ${(0, util_hex_encoding_1.toHex)(hashedRequest)}`; async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); const hash = new this.sha256(await keyPromise); - hash.update((0, util_utf8_1.toUint8Array)(stringToSign)); - return (0, util_hex_encoding_1.toHex)(await hash.digest()); + hash.update((0, import_util_utf83.toUint8Array)(stringToSign)); + return (0, import_util_hex_encoding.toHex)(await hash.digest()); } getSigningKey(credentials, region, shortDate, service) { - return (0, credentialDerivation_1.getSigningKey)(this.sha256, credentials, shortDate, region, service || this.service); + return getSigningKey(this.sha256, credentials, shortDate, region, service || this.service); } validateResolvedCredentials(credentials) { - if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") { + if (typeof credentials !== "object" || // @ts-expect-error: Property 'accessKeyId' does not exist on type 'object'.ts(2339) + typeof credentials.accessKeyId !== "string" || // @ts-expect-error: Property 'secretAccessKey' does not exist on type 'object'.ts(2339) + typeof credentials.secretAccessKey !== "string") { throw new Error("Resolved credential object is not valid"); } } }; - exports.SignatureV4 = SignatureV4; - var formatDate = (now) => { - const longDate = (0, utilDate_1.iso8601)(now).replace(/[\-:]/g, ""); + __name(_SignatureV4, "SignatureV4"); + var SignatureV4 = _SignatureV4; + var formatDate = /* @__PURE__ */ __name((now) => { + const longDate = iso8601(now).replace(/[\-:]/g, ""); return { longDate, shortDate: longDate.slice(0, 8) }; - }; - var getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(";"); - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/index.js -var require_dist_cjs15 = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.prepareRequest = exports.moveHeadersToQuery = exports.getPayloadHash = exports.getCanonicalQuery = exports.getCanonicalHeaders = void 0; - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_SignatureV4(), exports); - var getCanonicalHeaders_1 = require_getCanonicalHeaders(); - Object.defineProperty(exports, "getCanonicalHeaders", { enumerable: true, get: function() { - return getCanonicalHeaders_1.getCanonicalHeaders; - } }); - var getCanonicalQuery_1 = require_getCanonicalQuery(); - Object.defineProperty(exports, "getCanonicalQuery", { enumerable: true, get: function() { - return getCanonicalQuery_1.getCanonicalQuery; - } }); - var getPayloadHash_1 = require_getPayloadHash(); - Object.defineProperty(exports, "getPayloadHash", { enumerable: true, get: function() { - return getPayloadHash_1.getPayloadHash; - } }); - var moveHeadersToQuery_1 = require_moveHeadersToQuery(); - Object.defineProperty(exports, "moveHeadersToQuery", { enumerable: true, get: function() { - return moveHeadersToQuery_1.moveHeadersToQuery; - } }); - var prepareRequest_1 = require_prepareRequest(); - Object.defineProperty(exports, "prepareRequest", { enumerable: true, get: function() { - return prepareRequest_1.prepareRequest; - } }); - tslib_1.__exportStar(require_credentialDerivation(), exports); + }, "formatDate"); + var getCanonicalHeaderList = /* @__PURE__ */ __name((headers) => Object.keys(headers).sort().join(";"), "getCanonicalHeaderList"); } }); // ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthConfiguration.js var require_awsAuthConfiguration = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthConfiguration.js"(exports) { + "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthConfiguration.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveSigV4AuthConfig = exports.resolveAwsAuthConfig = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveSigV4AuthConfig = exports2.resolveAwsAuthConfig = void 0; var property_provider_1 = require_dist_cjs6(); var signature_v4_1 = require_dist_cjs15(); var util_middleware_1 = require_dist_cjs10(); @@ -4621,7 +4091,7 @@ var require_awsAuthConfiguration = __commonJS({ signer }; }; - exports.resolveAwsAuthConfig = resolveAwsAuthConfig; + exports2.resolveAwsAuthConfig = resolveAwsAuthConfig; var resolveSigV4AuthConfig = (input) => { const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; @@ -4645,7 +4115,7 @@ var require_awsAuthConfiguration = __commonJS({ signer }; }; - exports.resolveSigV4AuthConfig = resolveSigV4AuthConfig; + exports2.resolveSigV4AuthConfig = resolveSigV4AuthConfig; var normalizeCredentialProvider = (credentials) => { if (typeof credentials === "function") { return (0, property_provider_1.memoize)(credentials, (credentials2) => credentials2.expiration !== void 0 && credentials2.expiration.getTime() - Date.now() < CREDENTIAL_EXPIRE_WINDOW, (credentials2) => credentials2.expiration !== void 0); @@ -4657,33 +4127,33 @@ var require_awsAuthConfiguration = __commonJS({ // ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js var require_getSkewCorrectedDate = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js"(exports) { + "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSkewCorrectedDate = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getSkewCorrectedDate = void 0; var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); - exports.getSkewCorrectedDate = getSkewCorrectedDate; + exports2.getSkewCorrectedDate = getSkewCorrectedDate; } }); // ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js var require_isClockSkewed = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js"(exports) { + "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isClockSkewed = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isClockSkewed = void 0; var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); var isClockSkewed = (clockTime, systemClockOffset) => Math.abs((0, getSkewCorrectedDate_1.getSkewCorrectedDate)(systemClockOffset).getTime() - clockTime) >= 3e5; - exports.isClockSkewed = isClockSkewed; + exports2.isClockSkewed = isClockSkewed; } }); // ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js var require_getUpdatedSystemClockOffset = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js"(exports) { + "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getUpdatedSystemClockOffset = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getUpdatedSystemClockOffset = void 0; var isClockSkewed_1 = require_isClockSkewed(); var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => { const clockTimeInMs = Date.parse(clockTime); @@ -4692,16 +4162,16 @@ var require_getUpdatedSystemClockOffset = __commonJS({ } return currentSystemClockOffset; }; - exports.getUpdatedSystemClockOffset = getUpdatedSystemClockOffset; + exports2.getUpdatedSystemClockOffset = getUpdatedSystemClockOffset; } }); // ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js var require_awsAuthMiddleware = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js"(exports) { + "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin = exports.awsAuthMiddlewareOptions = exports.awsAuthMiddleware = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getSigV4AuthPlugin = exports2.getAwsAuthPlugin = exports2.awsAuthMiddlewareOptions = exports2.awsAuthMiddleware = void 0; var protocol_http_1 = require_dist_cjs2(); var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); var getUpdatedSystemClockOffset_1 = require_getUpdatedSystemClockOffset(); @@ -4733,12 +4203,12 @@ var require_awsAuthMiddleware = __commonJS({ } return output; }; - exports.awsAuthMiddleware = awsAuthMiddleware; + exports2.awsAuthMiddleware = awsAuthMiddleware; var getDateHeader = (response) => { var _a, _b, _c; return protocol_http_1.HttpResponse.isInstance(response) ? (_b = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.date) !== null && _b !== void 0 ? _b : (_c = response.headers) === null || _c === void 0 ? void 0 : _c.Date : void 0; }; - exports.awsAuthMiddlewareOptions = { + exports2.awsAuthMiddlewareOptions = { name: "awsAuthMiddleware", tags: ["SIGNATURE", "AWSAUTH"], relation: "after", @@ -4747,44 +4217,44 @@ var require_awsAuthMiddleware = __commonJS({ }; var getAwsAuthPlugin = (options) => ({ applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, exports.awsAuthMiddleware)(options), exports.awsAuthMiddlewareOptions); + clientStack.addRelativeTo((0, exports2.awsAuthMiddleware)(options), exports2.awsAuthMiddlewareOptions); } }); - exports.getAwsAuthPlugin = getAwsAuthPlugin; - exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin; + exports2.getAwsAuthPlugin = getAwsAuthPlugin; + exports2.getSigV4AuthPlugin = exports2.getAwsAuthPlugin; } }); // ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js var require_dist_cjs16 = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_awsAuthConfiguration(), exports); - tslib_1.__exportStar(require_awsAuthMiddleware(), exports); + tslib_1.__exportStar(require_awsAuthConfiguration(), exports2); + tslib_1.__exportStar(require_awsAuthMiddleware(), exports2); } }); // ../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js var require_configurations = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js"(exports) { + "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveUserAgentConfig = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveUserAgentConfig = void 0; function resolveUserAgentConfig(input) { return { ...input, customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent }; } - exports.resolveUserAgentConfig = resolveUserAgentConfig; + exports2.resolveUserAgentConfig = resolveUserAgentConfig; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json var require_partitions = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json"(exports, module2) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json"(exports2, module2) { module2.exports = { partitions: [{ id: "aws", @@ -5003,10 +4473,10 @@ var require_partitions = __commonJS({ // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partition.js var require_partition = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partition.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partition.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getUserAgentPrefix = exports.useDefaultPartitionInfo = exports.setPartitionInfo = exports.partition = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getUserAgentPrefix = exports2.useDefaultPartitionInfo = exports2.setPartitionInfo = exports2.partition = void 0; var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var partitions_json_1 = tslib_1.__importDefault(require_partitions()); var selectedPartitionsInfo = partitions_json_1.default; @@ -5040,49 +4510,49 @@ var require_partition = __commonJS({ ...DEFAULT_PARTITION.outputs }; }; - exports.partition = partition; + exports2.partition = partition; var setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => { selectedPartitionsInfo = partitionsInfo; selectedUserAgentPrefix = userAgentPrefix; }; - exports.setPartitionInfo = setPartitionInfo; + exports2.setPartitionInfo = setPartitionInfo; var useDefaultPartitionInfo = () => { - (0, exports.setPartitionInfo)(partitions_json_1.default, ""); + (0, exports2.setPartitionInfo)(partitions_json_1.default, ""); }; - exports.useDefaultPartitionInfo = useDefaultPartitionInfo; + exports2.useDefaultPartitionInfo = useDefaultPartitionInfo; var getUserAgentPrefix = () => selectedUserAgentPrefix; - exports.getUserAgentPrefix = getUserAgentPrefix; + exports2.getUserAgentPrefix = getUserAgentPrefix; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isIpAddress.js var require_isIpAddress = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isIpAddress.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isIpAddress.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isIpAddress = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isIpAddress = void 0; var IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`); var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]"); - exports.isIpAddress = isIpAddress; + exports2.isIpAddress = isIpAddress; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/debugId.js var require_debugId = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/debugId.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/debugId.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.debugId = void 0; - exports.debugId = "endpoints"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.debugId = void 0; + exports2.debugId = "endpoints"; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/toDebugString.js var require_toDebugString = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/toDebugString.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/toDebugString.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.toDebugString = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toDebugString = void 0; function toDebugString(input) { if (typeof input !== "object" || input == null) { return input; @@ -5095,98 +4565,98 @@ var require_toDebugString = __commonJS({ } return JSON.stringify(input, null, 2); } - exports.toDebugString = toDebugString; + exports2.toDebugString = toDebugString; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/index.js var require_debug = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/index.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_debugId(), exports); - tslib_1.__exportStar(require_toDebugString(), exports); + tslib_1.__exportStar(require_debugId(), exports2); + tslib_1.__exportStar(require_toDebugString(), exports2); } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointError.js var require_EndpointError = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointError.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointError.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.EndpointError = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.EndpointError = void 0; var EndpointError = class extends Error { constructor(message) { super(message); this.name = "EndpointError"; } }; - exports.EndpointError = EndpointError; + exports2.EndpointError = EndpointError; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointRuleObject.js -var require_EndpointRuleObject2 = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointRuleObject.js"(exports) { +var require_EndpointRuleObject = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointRuleObject.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/ErrorRuleObject.js -var require_ErrorRuleObject2 = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/ErrorRuleObject.js"(exports) { +var require_ErrorRuleObject = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/ErrorRuleObject.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/RuleSetObject.js -var require_RuleSetObject2 = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/RuleSetObject.js"(exports) { +var require_RuleSetObject = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/RuleSetObject.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/TreeRuleObject.js -var require_TreeRuleObject2 = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/TreeRuleObject.js"(exports) { +var require_TreeRuleObject = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/TreeRuleObject.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/shared.js -var require_shared2 = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/shared.js"(exports) { +var require_shared = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/shared.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/index.js -var require_types2 = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/index.js"(exports) { +var require_types = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_EndpointError(), exports); - tslib_1.__exportStar(require_EndpointRuleObject2(), exports); - tslib_1.__exportStar(require_ErrorRuleObject2(), exports); - tslib_1.__exportStar(require_RuleSetObject2(), exports); - tslib_1.__exportStar(require_TreeRuleObject2(), exports); - tslib_1.__exportStar(require_shared2(), exports); + tslib_1.__exportStar(require_EndpointError(), exports2); + tslib_1.__exportStar(require_EndpointRuleObject(), exports2); + tslib_1.__exportStar(require_ErrorRuleObject(), exports2); + tslib_1.__exportStar(require_RuleSetObject(), exports2); + tslib_1.__exportStar(require_TreeRuleObject(), exports2); + tslib_1.__exportStar(require_shared(), exports2); } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isValidHostLabel.js var require_isValidHostLabel = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isValidHostLabel.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isValidHostLabel.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isValidHostLabel = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isValidHostLabel = void 0; var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`); var isValidHostLabel = (value, allowSubDomains = false) => { if (!allowSubDomains) { @@ -5194,28 +4664,28 @@ var require_isValidHostLabel = __commonJS({ } const labels = value.split("."); for (const label of labels) { - if (!(0, exports.isValidHostLabel)(label)) { + if (!(0, exports2.isValidHostLabel)(label)) { return false; } } return true; }; - exports.isValidHostLabel = isValidHostLabel; + exports2.isValidHostLabel = isValidHostLabel; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/isVirtualHostableS3Bucket.js var require_isVirtualHostableS3Bucket = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/isVirtualHostableS3Bucket.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/isVirtualHostableS3Bucket.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isVirtualHostableS3Bucket = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isVirtualHostableS3Bucket = void 0; var isIpAddress_1 = require_isIpAddress(); var isValidHostLabel_1 = require_isValidHostLabel(); var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => { if (allowSubDomains) { for (const label of value.split(".")) { - if (!(0, exports.isVirtualHostableS3Bucket)(label)) { + if (!(0, exports2.isVirtualHostableS3Bucket)(label)) { return false; } } @@ -5235,16 +4705,16 @@ var require_isVirtualHostableS3Bucket = __commonJS({ } return true; }; - exports.isVirtualHostableS3Bucket = isVirtualHostableS3Bucket; + exports2.isVirtualHostableS3Bucket = isVirtualHostableS3Bucket; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/parseArn.js var require_parseArn = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/parseArn.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/parseArn.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.parseArn = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.parseArn = void 0; var parseArn = (value) => { const segments = value.split(":"); if (segments.length < 6) @@ -5260,40 +4730,40 @@ var require_parseArn = __commonJS({ resourceId: resourceId[0].includes("/") ? resourceId[0].split("/") : resourceId }; }; - exports.parseArn = parseArn; + exports2.parseArn = parseArn; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/index.js var require_aws = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/index.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_isVirtualHostableS3Bucket(), exports); - tslib_1.__exportStar(require_parseArn(), exports); - tslib_1.__exportStar(require_partition(), exports); + tslib_1.__exportStar(require_isVirtualHostableS3Bucket(), exports2); + tslib_1.__exportStar(require_parseArn(), exports2); + tslib_1.__exportStar(require_partition(), exports2); } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/booleanEquals.js var require_booleanEquals = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/booleanEquals.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/booleanEquals.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.booleanEquals = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.booleanEquals = void 0; var booleanEquals = (value1, value2) => value1 === value2; - exports.booleanEquals = booleanEquals; + exports2.booleanEquals = booleanEquals; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttrPathList.js var require_getAttrPathList = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttrPathList.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttrPathList.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getAttrPathList = void 0; - var types_1 = require_types2(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getAttrPathList = void 0; + var types_1 = require_types(); var getAttrPathList = (path) => { const parts = path.split("."); const pathList = []; @@ -5317,17 +4787,17 @@ var require_getAttrPathList = __commonJS({ } return pathList; }; - exports.getAttrPathList = getAttrPathList; + exports2.getAttrPathList = getAttrPathList; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttr.js var require_getAttr = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttr.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttr.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getAttr = void 0; - var types_1 = require_types2(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getAttr = void 0; + var types_1 = require_types(); var getAttrPathList_1 = require_getAttrPathList(); var getAttr = (value, path) => (0, getAttrPathList_1.getAttrPathList)(path).reduce((acc, index) => { if (typeof acc !== "object") { @@ -5337,48 +4807,48 @@ var require_getAttr = __commonJS({ } return acc[index]; }, value); - exports.getAttr = getAttr; + exports2.getAttr = getAttr; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isSet.js var require_isSet = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isSet.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isSet.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isSet = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isSet = void 0; var isSet = (value) => value != null; - exports.isSet = isSet; + exports2.isSet = isSet; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/not.js var require_not = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/not.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/not.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.not = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.not = void 0; var not = (value) => !value; - exports.not = not; + exports2.not = not; } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/abort.js -var require_abort2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/abort.js"(exports) { +var require_abort = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/abort.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/auth.js -var require_auth2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/auth.js"(exports) { +var require_auth = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/auth.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.HttpAuthLocation = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.HttpAuthLocation = void 0; var types_1 = require_dist_cjs(); - Object.defineProperty(exports, "HttpAuthLocation", { enumerable: true, get: function() { + Object.defineProperty(exports2, "HttpAuthLocation", { enumerable: true, get: function() { return types_1.HttpAuthLocation; } }); } @@ -5386,353 +4856,353 @@ var require_auth2 = __commonJS({ // ../../../node_modules/@aws-sdk/types/dist-cjs/blob/blob-types.js var require_blob_types = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/blob/blob-types.js"(exports) { + "../../../node_modules/@aws-sdk/types/dist-cjs/blob/blob-types.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/checksum.js -var require_checksum3 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/checksum.js"(exports) { +var require_checksum = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/checksum.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/client.js -var require_client2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/client.js"(exports) { +var require_client = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/client.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/command.js -var require_command2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/command.js"(exports) { +var require_command = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/command.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/connection.js -var require_connection2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/connection.js"(exports) { +var require_connection = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/connection.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/credentials.js var require_credentials = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/credentials.js"(exports) { + "../../../node_modules/@aws-sdk/types/dist-cjs/credentials.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/crypto.js -var require_crypto2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/crypto.js"(exports) { +var require_crypto = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/crypto.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/dns.js var require_dns = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/dns.js"(exports) { + "../../../node_modules/@aws-sdk/types/dist-cjs/dns.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.HostAddressType = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.HostAddressType = void 0; var HostAddressType; (function(HostAddressType2) { HostAddressType2["AAAA"] = "AAAA"; HostAddressType2["A"] = "A"; - })(HostAddressType = exports.HostAddressType || (exports.HostAddressType = {})); + })(HostAddressType = exports2.HostAddressType || (exports2.HostAddressType = {})); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/encode.js -var require_encode2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/encode.js"(exports) { +var require_encode = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/encode.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/endpoint.js -var require_endpoint2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/endpoint.js"(exports) { +var require_endpoint = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/endpoint.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.EndpointURLScheme = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.EndpointURLScheme = void 0; var types_1 = require_dist_cjs(); - Object.defineProperty(exports, "EndpointURLScheme", { enumerable: true, get: function() { + Object.defineProperty(exports2, "EndpointURLScheme", { enumerable: true, get: function() { return types_1.EndpointURLScheme; } }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/eventStream.js -var require_eventStream2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/eventStream.js"(exports) { +var require_eventStream = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/eventStream.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/extensions/index.js -var require_extensions3 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/extensions/index.js"(exports) { +var require_extensions = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/extensions/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/http.js -var require_http2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/http.js"(exports) { +var require_http = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/http.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js var require_AnonymousIdentity = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js"(exports) { + "../../../node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js var require_AwsCredentialIdentity = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js"(exports) { + "../../../node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js var require_Identity = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js"(exports) { + "../../../node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js var require_LoginIdentity = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js"(exports) { + "../../../node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js var require_TokenIdentity = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js"(exports) { + "../../../node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/identity/index.js -var require_identity3 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/identity/index.js"(exports) { +var require_identity = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/identity/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_AnonymousIdentity(), exports); - tslib_1.__exportStar(require_AwsCredentialIdentity(), exports); - tslib_1.__exportStar(require_Identity(), exports); - tslib_1.__exportStar(require_LoginIdentity(), exports); - tslib_1.__exportStar(require_TokenIdentity(), exports); + tslib_1.__exportStar(require_AnonymousIdentity(), exports2); + tslib_1.__exportStar(require_AwsCredentialIdentity(), exports2); + tslib_1.__exportStar(require_Identity(), exports2); + tslib_1.__exportStar(require_LoginIdentity(), exports2); + tslib_1.__exportStar(require_TokenIdentity(), exports2); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/logger.js -var require_logger2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/logger.js"(exports) { +var require_logger = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/logger.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/middleware.js -var require_middleware2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/middleware.js"(exports) { +var require_middleware = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/middleware.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/pagination.js -var require_pagination2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/pagination.js"(exports) { +var require_pagination = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/pagination.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/profile.js -var require_profile2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/profile.js"(exports) { +var require_profile = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/profile.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/request.js var require_request = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/request.js"(exports) { + "../../../node_modules/@aws-sdk/types/dist-cjs/request.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/response.js -var require_response2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/response.js"(exports) { +var require_response = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/response.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/retry.js -var require_retry2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/retry.js"(exports) { +var require_retry = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/retry.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/serde.js -var require_serde2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/serde.js"(exports) { +var require_serde = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/serde.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/shapes.js -var require_shapes2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/shapes.js"(exports) { +var require_shapes = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/shapes.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/signature.js -var require_signature2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/signature.js"(exports) { +var require_signature = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/signature.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/stream.js -var require_stream2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/stream.js"(exports) { +var require_stream = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/stream.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/token.js var require_token = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/token.js"(exports) { + "../../../node_modules/@aws-sdk/types/dist-cjs/token.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/transfer.js -var require_transfer2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/transfer.js"(exports) { +var require_transfer = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/transfer.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.RequestHandlerProtocol = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.RequestHandlerProtocol = void 0; var types_1 = require_dist_cjs(); - Object.defineProperty(exports, "RequestHandlerProtocol", { enumerable: true, get: function() { + Object.defineProperty(exports2, "RequestHandlerProtocol", { enumerable: true, get: function() { return types_1.RequestHandlerProtocol; } }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/uri.js -var require_uri2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/uri.js"(exports) { +var require_uri = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/uri.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/util.js -var require_util2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/util.js"(exports) { +var require_util = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/util.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/waiter.js -var require_waiter2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/waiter.js"(exports) { +var require_waiter = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/waiter.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/types/dist-cjs/index.js var require_dist_cjs17 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/types/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_abort2(), exports); - tslib_1.__exportStar(require_auth2(), exports); - tslib_1.__exportStar(require_blob_types(), exports); - tslib_1.__exportStar(require_checksum3(), exports); - tslib_1.__exportStar(require_client2(), exports); - tslib_1.__exportStar(require_command2(), exports); - tslib_1.__exportStar(require_connection2(), exports); - tslib_1.__exportStar(require_credentials(), exports); - tslib_1.__exportStar(require_crypto2(), exports); - tslib_1.__exportStar(require_dns(), exports); - tslib_1.__exportStar(require_encode2(), exports); - tslib_1.__exportStar(require_endpoint2(), exports); - tslib_1.__exportStar(require_eventStream2(), exports); - tslib_1.__exportStar(require_extensions3(), exports); - tslib_1.__exportStar(require_http2(), exports); - tslib_1.__exportStar(require_identity3(), exports); - tslib_1.__exportStar(require_logger2(), exports); - tslib_1.__exportStar(require_middleware2(), exports); - tslib_1.__exportStar(require_pagination2(), exports); - tslib_1.__exportStar(require_profile2(), exports); - tslib_1.__exportStar(require_request(), exports); - tslib_1.__exportStar(require_response2(), exports); - tslib_1.__exportStar(require_retry2(), exports); - tslib_1.__exportStar(require_serde2(), exports); - tslib_1.__exportStar(require_shapes2(), exports); - tslib_1.__exportStar(require_signature2(), exports); - tslib_1.__exportStar(require_stream2(), exports); - tslib_1.__exportStar(require_token(), exports); - tslib_1.__exportStar(require_transfer2(), exports); - tslib_1.__exportStar(require_uri2(), exports); - tslib_1.__exportStar(require_util2(), exports); - tslib_1.__exportStar(require_waiter2(), exports); + tslib_1.__exportStar(require_abort(), exports2); + tslib_1.__exportStar(require_auth(), exports2); + tslib_1.__exportStar(require_blob_types(), exports2); + tslib_1.__exportStar(require_checksum(), exports2); + tslib_1.__exportStar(require_client(), exports2); + tslib_1.__exportStar(require_command(), exports2); + tslib_1.__exportStar(require_connection(), exports2); + tslib_1.__exportStar(require_credentials(), exports2); + tslib_1.__exportStar(require_crypto(), exports2); + tslib_1.__exportStar(require_dns(), exports2); + tslib_1.__exportStar(require_encode(), exports2); + tslib_1.__exportStar(require_endpoint(), exports2); + tslib_1.__exportStar(require_eventStream(), exports2); + tslib_1.__exportStar(require_extensions(), exports2); + tslib_1.__exportStar(require_http(), exports2); + tslib_1.__exportStar(require_identity(), exports2); + tslib_1.__exportStar(require_logger(), exports2); + tslib_1.__exportStar(require_middleware(), exports2); + tslib_1.__exportStar(require_pagination(), exports2); + tslib_1.__exportStar(require_profile(), exports2); + tslib_1.__exportStar(require_request(), exports2); + tslib_1.__exportStar(require_response(), exports2); + tslib_1.__exportStar(require_retry(), exports2); + tslib_1.__exportStar(require_serde(), exports2); + tslib_1.__exportStar(require_shapes(), exports2); + tslib_1.__exportStar(require_signature(), exports2); + tslib_1.__exportStar(require_stream(), exports2); + tslib_1.__exportStar(require_token(), exports2); + tslib_1.__exportStar(require_transfer(), exports2); + tslib_1.__exportStar(require_uri(), exports2); + tslib_1.__exportStar(require_util(), exports2); + tslib_1.__exportStar(require_waiter(), exports2); } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/parseURL.js var require_parseURL = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/parseURL.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/parseURL.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.parseURL = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.parseURL = void 0; var types_1 = require_dist_cjs17(); var isIpAddress_1 = require_isIpAddress(); var DEFAULT_PORTS = { @@ -5780,27 +5250,27 @@ var require_parseURL = __commonJS({ isIp }; }; - exports.parseURL = parseURL; + exports2.parseURL = parseURL; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/stringEquals.js var require_stringEquals = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/stringEquals.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/stringEquals.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.stringEquals = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.stringEquals = void 0; var stringEquals = (value1, value2) => value1 === value2; - exports.stringEquals = stringEquals; + exports2.stringEquals = stringEquals; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/substring.js var require_substring = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/substring.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/substring.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.substring = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.substring = void 0; var substring = (input, start, stop, reverse) => { if (start >= stop || input.length < stop) { return null; @@ -5810,47 +5280,47 @@ var require_substring = __commonJS({ } return input.substring(input.length - stop, input.length - start); }; - exports.substring = substring; + exports2.substring = substring; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/uriEncode.js var require_uriEncode = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/uriEncode.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/uriEncode.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.uriEncode = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.uriEncode = void 0; var uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`); - exports.uriEncode = uriEncode; + exports2.uriEncode = uriEncode; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/index.js var require_lib = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/index.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.aws = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.aws = void 0; var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - exports.aws = tslib_1.__importStar(require_aws()); - tslib_1.__exportStar(require_booleanEquals(), exports); - tslib_1.__exportStar(require_getAttr(), exports); - tslib_1.__exportStar(require_isSet(), exports); - tslib_1.__exportStar(require_isValidHostLabel(), exports); - tslib_1.__exportStar(require_not(), exports); - tslib_1.__exportStar(require_parseURL(), exports); - tslib_1.__exportStar(require_stringEquals(), exports); - tslib_1.__exportStar(require_substring(), exports); - tslib_1.__exportStar(require_uriEncode(), exports); + exports2.aws = tslib_1.__importStar(require_aws()); + tslib_1.__exportStar(require_booleanEquals(), exports2); + tslib_1.__exportStar(require_getAttr(), exports2); + tslib_1.__exportStar(require_isSet(), exports2); + tslib_1.__exportStar(require_isValidHostLabel(), exports2); + tslib_1.__exportStar(require_not(), exports2); + tslib_1.__exportStar(require_parseURL(), exports2); + tslib_1.__exportStar(require_stringEquals(), exports2); + tslib_1.__exportStar(require_substring(), exports2); + tslib_1.__exportStar(require_uriEncode(), exports2); } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTemplate.js var require_evaluateTemplate = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTemplate.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTemplate.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateTemplate = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.evaluateTemplate = void 0; var lib_1 = require_lib(); var evaluateTemplate = (template, options) => { const evaluatedTemplateArr = []; @@ -5886,16 +5356,16 @@ var require_evaluateTemplate = __commonJS({ } return evaluatedTemplateArr.join(""); }; - exports.evaluateTemplate = evaluateTemplate; + exports2.evaluateTemplate = evaluateTemplate; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getReferenceValue.js var require_getReferenceValue = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getReferenceValue.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getReferenceValue.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getReferenceValue = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getReferenceValue = void 0; var getReferenceValue = ({ ref }, options) => { const referenceRecord = { ...options.endpointParams, @@ -5903,17 +5373,17 @@ var require_getReferenceValue = __commonJS({ }; return referenceRecord[ref]; }; - exports.getReferenceValue = getReferenceValue; + exports2.getReferenceValue = getReferenceValue; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateExpression.js var require_evaluateExpression = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateExpression.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateExpression.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateExpression = void 0; - var types_1 = require_types2(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.evaluateExpression = void 0; + var types_1 = require_types(); var callFunction_1 = require_callFunction(); var evaluateTemplate_1 = require_evaluateTemplate(); var getReferenceValue_1 = require_getReferenceValue(); @@ -5927,16 +5397,16 @@ var require_evaluateExpression = __commonJS({ } throw new types_1.EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`); }; - exports.evaluateExpression = evaluateExpression; + exports2.evaluateExpression = evaluateExpression; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/callFunction.js var require_callFunction = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/callFunction.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/callFunction.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.callFunction = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.callFunction = void 0; var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var lib = tslib_1.__importStar(require_lib()); var evaluateExpression_1 = require_evaluateExpression(); @@ -5944,18 +5414,18 @@ var require_callFunction = __commonJS({ const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : (0, evaluateExpression_1.evaluateExpression)(arg, "arg", options)); return fn.split(".").reduce((acc, key) => acc[key], lib)(...evaluatedArgs); }; - exports.callFunction = callFunction; + exports2.callFunction = callFunction; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateCondition.js var require_evaluateCondition = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateCondition.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateCondition.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateCondition = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.evaluateCondition = void 0; var debug_1 = require_debug(); - var types_1 = require_types2(); + var types_1 = require_types(); var callFunction_1 = require_callFunction(); var evaluateCondition = ({ assign, ...fnArgs }, options) => { var _a, _b; @@ -5969,16 +5439,16 @@ var require_evaluateCondition = __commonJS({ ...assign != null && { toAssign: { name: assign, value } } }; }; - exports.evaluateCondition = evaluateCondition; + exports2.evaluateCondition = evaluateCondition; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateConditions.js var require_evaluateConditions = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateConditions.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateConditions.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateConditions = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.evaluateConditions = void 0; var debug_1 = require_debug(); var evaluateCondition_1 = require_evaluateCondition(); var evaluateConditions = (conditions = [], options) => { @@ -6002,17 +5472,17 @@ var require_evaluateConditions = __commonJS({ } return { result: true, referenceRecord: conditionsReferenceRecord }; }; - exports.evaluateConditions = evaluateConditions; + exports2.evaluateConditions = evaluateConditions; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointHeaders.js var require_getEndpointHeaders = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointHeaders.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointHeaders.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getEndpointHeaders = void 0; - var types_1 = require_types2(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getEndpointHeaders = void 0; + var types_1 = require_types(); var evaluateExpression_1 = require_evaluateExpression(); var getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({ ...acc, @@ -6024,22 +5494,22 @@ var require_getEndpointHeaders = __commonJS({ return processedExpr; }) }), {}); - exports.getEndpointHeaders = getEndpointHeaders; + exports2.getEndpointHeaders = getEndpointHeaders; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperty.js var require_getEndpointProperty = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperty.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperty.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getEndpointProperty = void 0; - var types_1 = require_types2(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getEndpointProperty = void 0; + var types_1 = require_types(); var evaluateTemplate_1 = require_evaluateTemplate(); var getEndpointProperties_1 = require_getEndpointProperties(); var getEndpointProperty = (property, options) => { if (Array.isArray(property)) { - return property.map((propertyEntry) => (0, exports.getEndpointProperty)(propertyEntry, options)); + return property.map((propertyEntry) => (0, exports2.getEndpointProperty)(propertyEntry, options)); } switch (typeof property) { case "string": @@ -6055,32 +5525,32 @@ var require_getEndpointProperty = __commonJS({ throw new types_1.EndpointError(`Unexpected endpoint property type: ${typeof property}`); } }; - exports.getEndpointProperty = getEndpointProperty; + exports2.getEndpointProperty = getEndpointProperty; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperties.js var require_getEndpointProperties = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperties.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperties.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getEndpointProperties = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getEndpointProperties = void 0; var getEndpointProperty_1 = require_getEndpointProperty(); var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({ ...acc, [propertyKey]: (0, getEndpointProperty_1.getEndpointProperty)(propertyVal, options) }), {}); - exports.getEndpointProperties = getEndpointProperties; + exports2.getEndpointProperties = getEndpointProperties; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointUrl.js var require_getEndpointUrl = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointUrl.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointUrl.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getEndpointUrl = void 0; - var types_1 = require_types2(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getEndpointUrl = void 0; + var types_1 = require_types(); var evaluateExpression_1 = require_evaluateExpression(); var getEndpointUrl = (endpointUrl, options) => { const expression = (0, evaluateExpression_1.evaluateExpression)(endpointUrl, "Endpoint URL", options); @@ -6094,16 +5564,16 @@ var require_getEndpointUrl = __commonJS({ } throw new types_1.EndpointError(`Endpoint URL must be a string, got ${typeof expression}`); }; - exports.getEndpointUrl = getEndpointUrl; + exports2.getEndpointUrl = getEndpointUrl; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js var require_evaluateEndpointRule = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateEndpointRule = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.evaluateEndpointRule = void 0; var debug_1 = require_debug(); var evaluateConditions_1 = require_evaluateConditions(); var getEndpointHeaders_1 = require_getEndpointHeaders(); @@ -6132,17 +5602,17 @@ var require_evaluateEndpointRule = __commonJS({ url: (0, getEndpointUrl_1.getEndpointUrl)(url2, endpointRuleOptions) }; }; - exports.evaluateEndpointRule = evaluateEndpointRule; + exports2.evaluateEndpointRule = evaluateEndpointRule; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateErrorRule.js var require_evaluateErrorRule = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateErrorRule.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateErrorRule.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateErrorRule = void 0; - var types_1 = require_types2(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.evaluateErrorRule = void 0; + var types_1 = require_types(); var evaluateConditions_1 = require_evaluateConditions(); var evaluateExpression_1 = require_evaluateExpression(); var evaluateErrorRule = (errorRule, options) => { @@ -6156,16 +5626,16 @@ var require_evaluateErrorRule = __commonJS({ referenceRecord: { ...options.referenceRecord, ...referenceRecord } })); }; - exports.evaluateErrorRule = evaluateErrorRule; + exports2.evaluateErrorRule = evaluateErrorRule; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTreeRule.js var require_evaluateTreeRule = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTreeRule.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTreeRule.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateTreeRule = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.evaluateTreeRule = void 0; var evaluateConditions_1 = require_evaluateConditions(); var evaluateRules_1 = require_evaluateRules(); var evaluateTreeRule = (treeRule, options) => { @@ -6179,17 +5649,17 @@ var require_evaluateTreeRule = __commonJS({ referenceRecord: { ...options.referenceRecord, ...referenceRecord } }); }; - exports.evaluateTreeRule = evaluateTreeRule; + exports2.evaluateTreeRule = evaluateTreeRule; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateRules.js var require_evaluateRules = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateRules.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateRules.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateRules = void 0; - var types_1 = require_types2(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.evaluateRules = void 0; + var types_1 = require_types(); var evaluateEndpointRule_1 = require_evaluateEndpointRule(); var evaluateErrorRule_1 = require_evaluateErrorRule(); var evaluateTreeRule_1 = require_evaluateTreeRule(); @@ -6213,28 +5683,28 @@ var require_evaluateRules = __commonJS({ } throw new types_1.EndpointError(`Rules evaluation failed`); }; - exports.evaluateRules = evaluateRules; + exports2.evaluateRules = evaluateRules; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/index.js var require_utils = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/index.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_evaluateRules(), exports); + tslib_1.__exportStar(require_evaluateRules(), exports2); } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/resolveEndpoint.js var require_resolveEndpoint = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/resolveEndpoint.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/resolveEndpoint.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveEndpoint = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveEndpoint = void 0; var debug_1 = require_debug(); - var types_1 = require_types2(); + var types_1 = require_types(); var utils_1 = require_utils(); var resolveEndpoint = (ruleSetObject, options) => { var _a, _b, _c, _d, _e, _f; @@ -6266,48 +5736,48 @@ var require_resolveEndpoint = __commonJS({ (_f = (_e = options.logger) === null || _e === void 0 ? void 0 : _e.debug) === null || _f === void 0 ? void 0 : _f.call(_e, `${debug_1.debugId} Resolved endpoint: ${(0, debug_1.toDebugString)(endpoint)}`); return endpoint; }; - exports.resolveEndpoint = resolveEndpoint; + exports2.resolveEndpoint = resolveEndpoint; } }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js var require_dist_cjs18 = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_partition(), exports); - tslib_1.__exportStar(require_isIpAddress(), exports); - tslib_1.__exportStar(require_resolveEndpoint(), exports); - tslib_1.__exportStar(require_types2(), exports); + tslib_1.__exportStar(require_partition(), exports2); + tslib_1.__exportStar(require_isIpAddress(), exports2); + tslib_1.__exportStar(require_resolveEndpoint(), exports2); + tslib_1.__exportStar(require_types(), exports2); } }); // ../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js -var require_constants2 = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js"(exports) { +var require_constants = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.UA_ESCAPE_CHAR = exports.UA_VALUE_ESCAPE_REGEX = exports.UA_NAME_ESCAPE_REGEX = exports.UA_NAME_SEPARATOR = exports.SPACE = exports.X_AMZ_USER_AGENT = exports.USER_AGENT = void 0; - exports.USER_AGENT = "user-agent"; - exports.X_AMZ_USER_AGENT = "x-amz-user-agent"; - exports.SPACE = " "; - exports.UA_NAME_SEPARATOR = "/"; - exports.UA_NAME_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g; - exports.UA_VALUE_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g; - exports.UA_ESCAPE_CHAR = "-"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.UA_ESCAPE_CHAR = exports2.UA_VALUE_ESCAPE_REGEX = exports2.UA_NAME_ESCAPE_REGEX = exports2.UA_NAME_SEPARATOR = exports2.SPACE = exports2.X_AMZ_USER_AGENT = exports2.USER_AGENT = void 0; + exports2.USER_AGENT = "user-agent"; + exports2.X_AMZ_USER_AGENT = "x-amz-user-agent"; + exports2.SPACE = " "; + exports2.UA_NAME_SEPARATOR = "/"; + exports2.UA_NAME_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g; + exports2.UA_VALUE_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g; + exports2.UA_ESCAPE_CHAR = "-"; } }); // ../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js var require_user_agent_middleware = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js"(exports) { + "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getUserAgentPlugin = exports.getUserAgentMiddlewareOptions = exports.userAgentMiddleware = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getUserAgentPlugin = exports2.getUserAgentMiddlewareOptions = exports2.userAgentMiddleware = void 0; var util_endpoints_1 = require_dist_cjs18(); var protocol_http_1 = require_dist_cjs2(); - var constants_1 = require_constants2(); + var constants_1 = require_constants(); var userAgentMiddleware = (options) => (next, context) => async (args) => { var _a, _b; const { request: request2 } = args; @@ -6336,7 +5806,7 @@ var require_user_agent_middleware = __commonJS({ request: request2 }); }; - exports.userAgentMiddleware = userAgentMiddleware; + exports2.userAgentMiddleware = userAgentMiddleware; var escapeUserAgent = (userAgentPair) => { var _a; const name = userAgentPair[0].split(constants_1.UA_NAME_SEPARATOR).map((part) => part.replace(constants_1.UA_NAME_ESCAPE_REGEX, constants_1.UA_ESCAPE_CHAR)).join(constants_1.UA_NAME_SEPARATOR); @@ -6358,7 +5828,7 @@ var require_user_agent_middleware = __commonJS({ } }, ""); }; - exports.getUserAgentMiddlewareOptions = { + exports2.getUserAgentMiddlewareOptions = { name: "getUserAgentMiddleware", step: "build", priority: "low", @@ -6367,36 +5837,53 @@ var require_user_agent_middleware = __commonJS({ }; var getUserAgentPlugin = (config) => ({ applyToStack: (clientStack) => { - clientStack.add((0, exports.userAgentMiddleware)(config), exports.getUserAgentMiddlewareOptions); + clientStack.add((0, exports2.userAgentMiddleware)(config), exports2.getUserAgentMiddlewareOptions); } }); - exports.getUserAgentPlugin = getUserAgentPlugin; + exports2.getUserAgentPlugin = getUserAgentPlugin; } }); // ../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js var require_dist_cjs19 = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_configurations(), exports); - tslib_1.__exportStar(require_user_agent_middleware(), exports); + tslib_1.__exportStar(require_configurations(), exports2); + tslib_1.__exportStar(require_user_agent_middleware(), exports2); } }); -// ../../../node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js -var require_booleanSelector = __commonJS({ - "../../../node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.booleanSelector = exports.SelectorType = void 0; - var SelectorType; - (function(SelectorType2) { - SelectorType2["ENV"] = "env"; - SelectorType2["CONFIG"] = "shared config entry"; - })(SelectorType = exports.SelectorType || (exports.SelectorType = {})); - var booleanSelector = (obj, key, type) => { +// ../../../node_modules/@smithy/util-config-provider/dist-cjs/index.js +var require_dist_cjs20 = __commonJS({ + "../../../node_modules/@smithy/util-config-provider/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + SelectorType: () => SelectorType, + booleanSelector: () => booleanSelector, + numberSelector: () => numberSelector + }); + module2.exports = __toCommonJS2(src_exports); + var booleanSelector = /* @__PURE__ */ __name((obj, key, type) => { if (!(key in obj)) return void 0; if (obj[key] === "true") @@ -6404,87 +5891,94 @@ var require_booleanSelector = __commonJS({ if (obj[key] === "false") return false; throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`); - }; - exports.booleanSelector = booleanSelector; - } -}); - -// ../../../node_modules/@smithy/util-config-provider/dist-cjs/index.js -var require_dist_cjs20 = __commonJS({ - "../../../node_modules/@smithy/util-config-provider/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_booleanSelector(), exports); + }, "booleanSelector"); + var numberSelector = /* @__PURE__ */ __name((obj, key, type) => { + if (!(key in obj)) + return void 0; + const numberValue = parseInt(obj[key], 10); + if (Number.isNaN(numberValue)) { + throw new TypeError(`Cannot load ${type} '${key}'. Expected number, got '${obj[key]}'.`); + } + return numberValue; + }, "numberSelector"); + var SelectorType = /* @__PURE__ */ ((SelectorType2) => { + SelectorType2["ENV"] = "env"; + SelectorType2["CONFIG"] = "shared config entry"; + return SelectorType2; + })(SelectorType || {}); } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js -var require_NodeUseDualstackEndpointConfigOptions = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_DUALSTACK_ENDPOINT = exports.CONFIG_USE_DUALSTACK_ENDPOINT = exports.ENV_USE_DUALSTACK_ENDPOINT = void 0; - var util_config_provider_1 = require_dist_cjs20(); - exports.ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; - exports.CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; - exports.DEFAULT_USE_DUALSTACK_ENDPOINT = false; - exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), +// ../../../node_modules/@smithy/config-resolver/dist-cjs/index.js +var require_dist_cjs21 = __commonJS({ + "../../../node_modules/@smithy/config-resolver/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + CONFIG_USE_DUALSTACK_ENDPOINT: () => CONFIG_USE_DUALSTACK_ENDPOINT, + CONFIG_USE_FIPS_ENDPOINT: () => CONFIG_USE_FIPS_ENDPOINT, + DEFAULT_USE_DUALSTACK_ENDPOINT: () => DEFAULT_USE_DUALSTACK_ENDPOINT, + DEFAULT_USE_FIPS_ENDPOINT: () => DEFAULT_USE_FIPS_ENDPOINT, + ENV_USE_DUALSTACK_ENDPOINT: () => ENV_USE_DUALSTACK_ENDPOINT, + ENV_USE_FIPS_ENDPOINT: () => ENV_USE_FIPS_ENDPOINT, + NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS, + NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS, + NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, + NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS: () => NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, + REGION_ENV_NAME: () => REGION_ENV_NAME, + REGION_INI_NAME: () => REGION_INI_NAME, + getRegionInfo: () => getRegionInfo, + resolveCustomEndpointsConfig: () => resolveCustomEndpointsConfig, + resolveEndpointsConfig: () => resolveEndpointsConfig, + resolveRegionConfig: () => resolveRegionConfig + }); + module2.exports = __toCommonJS2(src_exports); + var import_util_config_provider = require_dist_cjs20(); + var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; + var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; + var DEFAULT_USE_DUALSTACK_ENDPOINT = false; + var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.ENV), + configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_DUALSTACK_ENDPOINT, import_util_config_provider.SelectorType.CONFIG), default: false }; - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js -var require_NodeUseFipsEndpointConfigOptions = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_FIPS_ENDPOINT = exports.CONFIG_USE_FIPS_ENDPOINT = exports.ENV_USE_FIPS_ENDPOINT = void 0; - var util_config_provider_1 = require_dist_cjs20(); - exports.ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; - exports.CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; - exports.DEFAULT_USE_FIPS_ENDPOINT = false; - exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), + var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; + var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; + var DEFAULT_USE_FIPS_ENDPOINT = false; + var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => (0, import_util_config_provider.booleanSelector)(env, ENV_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.ENV), + configFileSelector: (profile) => (0, import_util_config_provider.booleanSelector)(profile, CONFIG_USE_FIPS_ENDPOINT, import_util_config_provider.SelectorType.CONFIG), default: false }; - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js -var require_resolveCustomEndpointsConfig = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveCustomEndpointsConfig = void 0; - var util_middleware_1 = require_dist_cjs10(); - var resolveCustomEndpointsConfig = (input) => { - var _a, _b; + var import_util_middleware = require_dist_cjs10(); + var resolveCustomEndpointsConfig = /* @__PURE__ */ __name((input) => { const { endpoint, urlParser } = input; return { ...input, - tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, - endpoint: (0, util_middleware_1.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint), + tls: input.tls ?? true, + endpoint: (0, import_util_middleware.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint), isCustomEndpoint: true, - useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)((_b = input.useDualstackEndpoint) !== null && _b !== void 0 ? _b : false) + useDualstackEndpoint: (0, import_util_middleware.normalizeProvider)(input.useDualstackEndpoint ?? false) }; - }; - exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js -var require_getEndpointFromRegion = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getEndpointFromRegion = void 0; - var getEndpointFromRegion = async (input) => { - var _a; + }, "resolveCustomEndpointsConfig"); + var getEndpointFromRegion = /* @__PURE__ */ __name(async (input) => { const { tls = true } = input; const region = await input.region(); const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); @@ -6493,106 +5987,38 @@ var require_getEndpointFromRegion = __commonJS({ } const useDualstackEndpoint = await input.useDualstackEndpoint(); const useFipsEndpoint = await input.useFipsEndpoint(); - const { hostname } = (_a = await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint })) !== null && _a !== void 0 ? _a : {}; + const { hostname } = await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint }) ?? {}; if (!hostname) { throw new Error("Cannot resolve hostname from client config"); } return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`); - }; - exports.getEndpointFromRegion = getEndpointFromRegion; - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js -var require_resolveEndpointsConfig = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveEndpointsConfig = void 0; - var util_middleware_1 = require_dist_cjs10(); - var getEndpointFromRegion_1 = require_getEndpointFromRegion(); - var resolveEndpointsConfig = (input) => { - var _a, _b; - const useDualstackEndpoint = (0, util_middleware_1.normalizeProvider)((_a = input.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false); + }, "getEndpointFromRegion"); + var resolveEndpointsConfig = /* @__PURE__ */ __name((input) => { + const useDualstackEndpoint = (0, import_util_middleware.normalizeProvider)(input.useDualstackEndpoint ?? false); const { endpoint, useFipsEndpoint, urlParser } = input; return { ...input, - tls: (_b = input.tls) !== null && _b !== void 0 ? _b : true, - endpoint: endpoint ? (0, util_middleware_1.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => (0, getEndpointFromRegion_1.getEndpointFromRegion)({ ...input, useDualstackEndpoint, useFipsEndpoint }), + tls: input.tls ?? true, + endpoint: endpoint ? (0, import_util_middleware.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }), isCustomEndpoint: !!endpoint, useDualstackEndpoint }; - }; - exports.resolveEndpointsConfig = resolveEndpointsConfig; - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js -var require_endpointsConfig = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_NodeUseDualstackEndpointConfigOptions(), exports); - tslib_1.__exportStar(require_NodeUseFipsEndpointConfigOptions(), exports); - tslib_1.__exportStar(require_resolveCustomEndpointsConfig(), exports); - tslib_1.__exportStar(require_resolveEndpointsConfig(), exports); - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js -var require_config2 = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NODE_REGION_CONFIG_FILE_OPTIONS = exports.NODE_REGION_CONFIG_OPTIONS = exports.REGION_INI_NAME = exports.REGION_ENV_NAME = void 0; - exports.REGION_ENV_NAME = "AWS_REGION"; - exports.REGION_INI_NAME = "region"; - exports.NODE_REGION_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.REGION_ENV_NAME], - configFileSelector: (profile) => profile[exports.REGION_INI_NAME], + }, "resolveEndpointsConfig"); + var REGION_ENV_NAME = "AWS_REGION"; + var REGION_INI_NAME = "region"; + var NODE_REGION_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[REGION_ENV_NAME], + configFileSelector: (profile) => profile[REGION_INI_NAME], default: () => { throw new Error("Region is missing"); } }; - exports.NODE_REGION_CONFIG_FILE_OPTIONS = { + var NODE_REGION_CONFIG_FILE_OPTIONS = { preferredFile: "credentials" }; - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js -var require_isFipsRegion = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isFipsRegion = void 0; - var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); - exports.isFipsRegion = isFipsRegion; - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js -var require_getRealRegion = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRealRegion = void 0; - var isFipsRegion_1 = require_isFipsRegion(); - var getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region; - exports.getRealRegion = getRealRegion; - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js -var require_resolveRegionConfig = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveRegionConfig = void 0; - var getRealRegion_1 = require_getRealRegion(); - var isFipsRegion_1 = require_isFipsRegion(); - var resolveRegionConfig = (input) => { + var isFipsRegion = /* @__PURE__ */ __name((region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")), "isFipsRegion"); + var getRealRegion = /* @__PURE__ */ __name((region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region, "getRealRegion"); + var resolveRegionConfig = /* @__PURE__ */ __name((input) => { const { region, useFipsEndpoint } = input; if (!region) { throw new Error("Region is missing"); @@ -6601,97 +6027,29 @@ var require_resolveRegionConfig = __commonJS({ ...input, region: async () => { if (typeof region === "string") { - return (0, getRealRegion_1.getRealRegion)(region); + return getRealRegion(region); } const providedRegion = await region(); - return (0, getRealRegion_1.getRealRegion)(providedRegion); + return getRealRegion(providedRegion); }, useFipsEndpoint: async () => { const providedRegion = typeof region === "string" ? region : await region(); - if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) { + if (isFipsRegion(providedRegion)) { return true; } return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint(); } }; - }; - exports.resolveRegionConfig = resolveRegionConfig; - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js -var require_regionConfig = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_config2(), exports); - tslib_1.__exportStar(require_resolveRegionConfig(), exports); - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js -var require_PartitionHash = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js -var require_RegionHash = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js -var require_getHostnameFromVariants = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getHostnameFromVariants = void 0; - var getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { - var _a; - return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))) === null || _a === void 0 ? void 0 : _a.hostname; - }; - exports.getHostnameFromVariants = getHostnameFromVariants; - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js -var require_getResolvedHostname = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getResolvedHostname = void 0; - var getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace("{region}", resolvedRegion) : void 0; - exports.getResolvedHostname = getResolvedHostname; - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js -var require_getResolvedPartition = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getResolvedPartition = void 0; - var getResolvedPartition = (region, { partitionHash }) => { + }, "resolveRegionConfig"); + var getHostnameFromVariants = /* @__PURE__ */ __name((variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { var _a; - return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : "aws"; - }; - exports.getResolvedPartition = getResolvedPartition; - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js -var require_getResolvedSigningRegion = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getResolvedSigningRegion = void 0; - var getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { + return (_a = variants.find( + ({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack") + )) == null ? void 0 : _a.hostname; + }, "getHostnameFromVariants"); + var getResolvedHostname = /* @__PURE__ */ __name((resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace("{region}", resolvedRegion) : void 0, "getResolvedHostname"); + var getResolvedPartition = /* @__PURE__ */ __name((region, { partitionHash }) => Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region)) ?? "aws", "getResolvedPartition"); + var getResolvedSigningRegion = /* @__PURE__ */ __name((hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { if (signingRegion) { return signingRegion; } else if (useFipsEndpoint) { @@ -6701,34 +6059,26 @@ var require_getResolvedSigningRegion = __commonJS({ return regionRegexmatchArray[0].slice(1, -1); } } - }; - exports.getResolvedSigningRegion = getResolvedSigningRegion; - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js -var require_getRegionInfo = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRegionInfo = void 0; - var getHostnameFromVariants_1 = require_getHostnameFromVariants(); - var getResolvedHostname_1 = require_getResolvedHostname(); - var getResolvedPartition_1 = require_getResolvedPartition(); - var getResolvedSigningRegion_1 = require_getResolvedSigningRegion(); - var getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash }) => { - var _a, _b, _c, _d, _e, _f; - const partition = (0, getResolvedPartition_1.getResolvedPartition)(region, { partitionHash }); - const resolvedRegion = region in regionHash ? region : (_b = (_a = partitionHash[partition]) === null || _a === void 0 ? void 0 : _a.endpoint) !== null && _b !== void 0 ? _b : region; + }, "getResolvedSigningRegion"); + var getRegionInfo = /* @__PURE__ */ __name((region, { + useFipsEndpoint = false, + useDualstackEndpoint = false, + signingService, + regionHash, + partitionHash + }) => { + var _a, _b, _c, _d, _e; + const partition = getResolvedPartition(region, { partitionHash }); + const resolvedRegion = region in regionHash ? region : ((_a = partitionHash[partition]) == null ? void 0 : _a.endpoint) ?? region; const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint }; - const regionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_c = regionHash[resolvedRegion]) === null || _c === void 0 ? void 0 : _c.variants, hostnameOptions); - const partitionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_d = partitionHash[partition]) === null || _d === void 0 ? void 0 : _d.variants, hostnameOptions); - const hostname = (0, getResolvedHostname_1.getResolvedHostname)(resolvedRegion, { regionHostname, partitionHostname }); + const regionHostname = getHostnameFromVariants((_b = regionHash[resolvedRegion]) == null ? void 0 : _b.variants, hostnameOptions); + const partitionHostname = getHostnameFromVariants((_c = partitionHash[partition]) == null ? void 0 : _c.variants, hostnameOptions); + const hostname = getResolvedHostname(resolvedRegion, { regionHostname, partitionHostname }); if (hostname === void 0) { throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`); } - const signingRegion = (0, getResolvedSigningRegion_1.getResolvedSigningRegion)(hostname, { - signingRegion: (_e = regionHash[resolvedRegion]) === null || _e === void 0 ? void 0 : _e.signingRegion, + const signingRegion = getResolvedSigningRegion(hostname, { + signingRegion: (_d = regionHash[resolvedRegion]) == null ? void 0 : _d.signingRegion, regionRegex: partitionHash[partition].regionRegex, useFipsEndpoint }); @@ -6737,51 +6087,48 @@ var require_getRegionInfo = __commonJS({ signingService, hostname, ...signingRegion && { signingRegion }, - ...((_f = regionHash[resolvedRegion]) === null || _f === void 0 ? void 0 : _f.signingService) && { + ...((_e = regionHash[resolvedRegion]) == null ? void 0 : _e.signingService) && { signingService: regionHash[resolvedRegion].signingService } }; - }; - exports.getRegionInfo = getRegionInfo; - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js -var require_regionInfo = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_PartitionHash(), exports); - tslib_1.__exportStar(require_RegionHash(), exports); - tslib_1.__exportStar(require_getRegionInfo(), exports); - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/index.js -var require_dist_cjs21 = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_endpointsConfig(), exports); - tslib_1.__exportStar(require_regionConfig(), exports); - tslib_1.__exportStar(require_regionInfo(), exports); + }, "getRegionInfo"); } }); // ../../../node_modules/@smithy/middleware-content-length/dist-cjs/index.js var require_dist_cjs22 = __commonJS({ - "../../../node_modules/@smithy/middleware-content-length/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getContentLengthPlugin = exports.contentLengthMiddlewareOptions = exports.contentLengthMiddleware = void 0; - var protocol_http_1 = require_dist_cjs2(); + "../../../node_modules/@smithy/middleware-content-length/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + contentLengthMiddleware: () => contentLengthMiddleware, + contentLengthMiddlewareOptions: () => contentLengthMiddlewareOptions, + getContentLengthPlugin: () => getContentLengthPlugin + }); + module2.exports = __toCommonJS2(src_exports); + var import_protocol_http = require_dist_cjs2(); var CONTENT_LENGTH_HEADER = "content-length"; function contentLengthMiddleware(bodyLengthChecker) { return (next) => async (args) => { const request2 = args.request; - if (protocol_http_1.HttpRequest.isInstance(request2)) { + if (import_protocol_http.HttpRequest.isInstance(request2)) { const { body, headers } = request2; if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) { try { @@ -6800,168 +6147,414 @@ var require_dist_cjs22 = __commonJS({ }); }; } - exports.contentLengthMiddleware = contentLengthMiddleware; - exports.contentLengthMiddlewareOptions = { + __name(contentLengthMiddleware, "contentLengthMiddleware"); + var contentLengthMiddlewareOptions = { step: "build", tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"], name: "contentLengthMiddleware", override: true }; - var getContentLengthPlugin = (options) => ({ + var getContentLengthPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: (clientStack) => { - clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), exports.contentLengthMiddlewareOptions); + clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions); } - }); - exports.getContentLengthPlugin = getContentLengthPlugin; + }), "getContentLengthPlugin"); } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/s3.js -var require_s3 = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/s3.js"(exports) { +// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +var require_getHomeDir = __commonJS({ + "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isArnBucketName = exports.isDnsCompatibleBucketName = exports.S3_HOSTNAME_PATTERN = exports.DOT_PATTERN = exports.resolveParamsForS3 = void 0; - var resolveParamsForS3 = async (endpointParams) => { - const bucket = (endpointParams === null || endpointParams === void 0 ? void 0 : endpointParams.Bucket) || ""; - if (typeof endpointParams.Bucket === "string") { - endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?")); - } - if ((0, exports.isArnBucketName)(bucket)) { - if (endpointParams.ForcePathStyle === true) { - throw new Error("Path-style addressing cannot be used with ARN buckets"); - } - } else if (!(0, exports.isDnsCompatibleBucketName)(bucket) || bucket.indexOf(".") !== -1 && !String(endpointParams.Endpoint).startsWith("http:") || bucket.toLowerCase() !== bucket || bucket.length < 3) { - endpointParams.ForcePathStyle = true; - } - if (endpointParams.DisableMultiRegionAccessPoints) { - endpointParams.disableMultiRegionAccessPoints = true; - endpointParams.DisableMRAP = true; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getHomeDir = void 0; + var os_1 = require("os"); + var path_1 = require("path"); + var homeDirCache = {}; + var getHomeDirCacheKey = () => { + if (process && process.geteuid) { + return `${process.geteuid()}`; } - return endpointParams; + return "DEFAULT"; }; - exports.resolveParamsForS3 = resolveParamsForS3; - var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/; - var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/; - var DOTS_PATTERN = /\.\./; - exports.DOT_PATTERN = /\./; - exports.S3_HOSTNAME_PATTERN = /^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./; - var isDnsCompatibleBucketName = (bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName); - exports.isDnsCompatibleBucketName = isDnsCompatibleBucketName; - var isArnBucketName = (bucketName) => { - const [arn, partition, service, region, account, typeOrId] = bucketName.split(":"); - const isArn = arn === "arn" && bucketName.split(":").length >= 6; - const isValidArn = [arn, partition, service, account, typeOrId].filter(Boolean).length === 5; - if (isArn && !isValidArn) { - throw new Error(`Invalid ARN: ${bucketName} was an invalid ARN.`); - } - return arn === "arn" && !!partition && !!service && !!account && !!typeOrId; + var getHomeDir2 = () => { + const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env; + if (HOME) + return HOME; + if (USERPROFILE) + return USERPROFILE; + if (HOMEPATH) + return `${HOMEDRIVE}${HOMEPATH}`; + const homeDirCacheKey = getHomeDirCacheKey(); + if (!homeDirCache[homeDirCacheKey]) + homeDirCache[homeDirCacheKey] = (0, os_1.homedir)(); + return homeDirCache[homeDirCacheKey]; }; - exports.isArnBucketName = isArnBucketName; + exports2.getHomeDir = getHomeDir2; } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/index.js -var require_service_customizations = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/index.js"(exports) { +// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +var require_getSSOTokenFilepath = __commonJS({ + "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_s3(), exports); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getSSOTokenFilepath = void 0; + var crypto_1 = require("crypto"); + var path_1 = require("path"); + var getHomeDir_1 = require_getHomeDir(); + var getSSOTokenFilepath2 = (id) => { + const hasher = (0, crypto_1.createHash)("sha1"); + const cacheName = hasher.update(id).digest("hex"); + return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`); + }; + exports2.getSSOTokenFilepath = getSSOTokenFilepath2; } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js -var require_createConfigValueProvider = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js"(exports) { +// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +var require_getSSOTokenFromFile = __commonJS({ + "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.createConfigValueProvider = void 0; - var createConfigValueProvider = (configKey, canonicalEndpointParamKey, config) => { - const configProvider = async () => { - var _a; - const configValue = (_a = config[configKey]) !== null && _a !== void 0 ? _a : config[canonicalEndpointParamKey]; - if (typeof configValue === "function") { - return configValue(); - } - return configValue; - }; - if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") { - return async () => { - const endpoint = await configProvider(); - if (endpoint && typeof endpoint === "object") { - if ("url" in endpoint) { - return endpoint.url.href; - } - if ("hostname" in endpoint) { - const { protocol, hostname, port, path } = endpoint; - return `${protocol}//${hostname}${port ? ":" + port : ""}${path}`; - } - } - return endpoint; - }; - } - return configProvider; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getSSOTokenFromFile = void 0; + var fs_1 = require("fs"); + var getSSOTokenFilepath_1 = require_getSSOTokenFilepath(); + var { readFile } = fs_1.promises; + var getSSOTokenFromFile2 = async (id) => { + const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id); + const ssoTokenText = await readFile(ssoTokenFilepath, "utf8"); + return JSON.parse(ssoTokenText); }; - exports.createConfigValueProvider = createConfigValueProvider; + exports2.getSSOTokenFromFile = getSSOTokenFromFile2; } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js -var require_getEndpointFromInstructions = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js"(exports) { +// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +var require_slurpFile = __commonJS({ + "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveParams = exports.getEndpointFromInstructions = void 0; - var service_customizations_1 = require_service_customizations(); - var createConfigValueProvider_1 = require_createConfigValueProvider(); - var getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => { - const endpointParams = await (0, exports.resolveParams)(commandInput, instructionsSupplier, clientConfig); - if (typeof clientConfig.endpointProvider !== "function") { - throw new Error("config.endpointProvider is not set."); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.slurpFile = void 0; + var fs_1 = require("fs"); + var { readFile } = fs_1.promises; + var filePromisesHash = {}; + var slurpFile = (path, options) => { + if (!filePromisesHash[path] || (options === null || options === void 0 ? void 0 : options.ignoreCache)) { + filePromisesHash[path] = readFile(path, "utf8"); } - const endpoint = clientConfig.endpointProvider(endpointParams, context); - return endpoint; + return filePromisesHash[path]; }; - exports.getEndpointFromInstructions = getEndpointFromInstructions; - var resolveParams = async (commandInput, instructionsSupplier, clientConfig) => { - var _a; - const endpointParams = {}; - const instructions = ((_a = instructionsSupplier === null || instructionsSupplier === void 0 ? void 0 : instructionsSupplier.getEndpointParameterInstructions) === null || _a === void 0 ? void 0 : _a.call(instructionsSupplier)) || {}; - for (const [name, instruction] of Object.entries(instructions)) { - switch (instruction.type) { - case "staticContextParams": - endpointParams[name] = instruction.value; - break; - case "contextParams": - endpointParams[name] = commandInput[instruction.name]; - break; - case "clientContextParams": - case "builtInParams": - endpointParams[name] = await (0, createConfigValueProvider_1.createConfigValueProvider)(instruction.name, name, clientConfig)(); - break; - default: - throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction)); + exports2.slurpFile = slurpFile; + } +}); + +// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +var require_dist_cjs23 = __commonJS({ + "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __reExport = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default")); + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + CONFIG_PREFIX_SEPARATOR: () => CONFIG_PREFIX_SEPARATOR, + DEFAULT_PROFILE: () => DEFAULT_PROFILE, + ENV_PROFILE: () => ENV_PROFILE, + getProfileName: () => getProfileName, + loadSharedConfigFiles: () => loadSharedConfigFiles, + loadSsoSessionData: () => loadSsoSessionData, + parseKnownFiles: () => parseKnownFiles + }); + module2.exports = __toCommonJS2(src_exports); + __reExport(src_exports, require_getHomeDir(), module2.exports); + var ENV_PROFILE = "AWS_PROFILE"; + var DEFAULT_PROFILE = "default"; + var getProfileName = /* @__PURE__ */ __name((init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE, "getProfileName"); + __reExport(src_exports, require_getSSOTokenFilepath(), module2.exports); + __reExport(src_exports, require_getSSOTokenFromFile(), module2.exports); + var import_types = require_dist_cjs(); + var getConfigData = /* @__PURE__ */ __name((data) => Object.entries(data).filter(([key]) => { + const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR); + if (indexOfSeparator === -1) { + return false; + } + return Object.values(import_types.IniSectionType).includes(key.substring(0, indexOfSeparator)); + }).reduce( + (acc, [key, value]) => { + const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR); + const updatedKey = key.substring(0, indexOfSeparator) === import_types.IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key; + acc[updatedKey] = value; + return acc; + }, + { + // Populate default profile, if present. + ...data.default && { default: data.default } + } + ), "getConfigData"); + var import_path = require("path"); + var import_getHomeDir = require_getHomeDir(); + var ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; + var getConfigFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH] || (0, import_path.join)((0, import_getHomeDir.getHomeDir)(), ".aws", "config"), "getConfigFilepath"); + var import_getHomeDir2 = require_getHomeDir(); + var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; + var getCredentialsFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH] || (0, import_path.join)((0, import_getHomeDir2.getHomeDir)(), ".aws", "credentials"), "getCredentialsFilepath"); + var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/; + var profileNameBlockList = ["__proto__", "profile __proto__"]; + var parseIni = /* @__PURE__ */ __name((iniData) => { + const map = {}; + let currentSection; + let currentSubSection; + for (const iniLine of iniData.split(/\r?\n/)) { + const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim(); + const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]"; + if (isSection) { + currentSection = void 0; + currentSubSection = void 0; + const sectionName = trimmedLine.substring(1, trimmedLine.length - 1); + const matches = prefixKeyRegex.exec(sectionName); + if (matches) { + const [, prefix, , name] = matches; + if (Object.values(import_types.IniSectionType).includes(prefix)) { + currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR); + } + } else { + currentSection = sectionName; + } + if (profileNameBlockList.includes(sectionName)) { + throw new Error(`Found invalid profile name "${sectionName}"`); + } + } else if (currentSection) { + const indexOfEqualsSign = trimmedLine.indexOf("="); + if (![0, -1].includes(indexOfEqualsSign)) { + const [name, value] = [ + trimmedLine.substring(0, indexOfEqualsSign).trim(), + trimmedLine.substring(indexOfEqualsSign + 1).trim() + ]; + if (value === "") { + currentSubSection = name; + } else { + if (currentSubSection && iniLine.trimStart() === iniLine) { + currentSubSection = void 0; + } + map[currentSection] = map[currentSection] || {}; + const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name; + map[currentSection][key] = value; + } + } } } - if (Object.keys(instructions).length === 0) { - Object.assign(endpointParams, clientConfig); + return map; + }, "parseIni"); + var import_slurpFile = require_slurpFile(); + var swallowError = /* @__PURE__ */ __name(() => ({}), "swallowError"); + var CONFIG_PREFIX_SEPARATOR = "."; + var loadSharedConfigFiles = /* @__PURE__ */ __name(async (init = {}) => { + const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init; + const parsedFiles = await Promise.all([ + (0, import_slurpFile.slurpFile)(configFilepath, { + ignoreCache: init.ignoreCache + }).then(parseIni).then(getConfigData).catch(swallowError), + (0, import_slurpFile.slurpFile)(filepath, { + ignoreCache: init.ignoreCache + }).then(parseIni).catch(swallowError) + ]); + return { + configFile: parsedFiles[0], + credentialsFile: parsedFiles[1] + }; + }, "loadSharedConfigFiles"); + var getSsoSessionData = /* @__PURE__ */ __name((data) => Object.entries(data).filter(([key]) => key.startsWith(import_types.IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.split(CONFIG_PREFIX_SEPARATOR)[1]]: value }), {}), "getSsoSessionData"); + var import_slurpFile2 = require_slurpFile(); + var swallowError2 = /* @__PURE__ */ __name(() => ({}), "swallowError"); + var loadSsoSessionData = /* @__PURE__ */ __name(async (init = {}) => (0, import_slurpFile2.slurpFile)(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2), "loadSsoSessionData"); + var mergeConfigFiles = /* @__PURE__ */ __name((...files) => { + const merged = {}; + for (const file of files) { + for (const [key, values] of Object.entries(file)) { + if (merged[key] !== void 0) { + Object.assign(merged[key], values); + } else { + merged[key] = values; + } + } } - if (String(clientConfig.serviceId).toLowerCase() === "s3") { - await (0, service_customizations_1.resolveParamsForS3)(endpointParams); + return merged; + }, "mergeConfigFiles"); + var parseKnownFiles = /* @__PURE__ */ __name(async (init) => { + const parsedFiles = await loadSharedConfigFiles(init); + return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile); + }, "parseKnownFiles"); + } +}); + +// ../../../node_modules/@smithy/node-config-provider/dist-cjs/index.js +var require_dist_cjs24 = __commonJS({ + "../../../node_modules/@smithy/node-config-provider/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + loadConfig: () => loadConfig + }); + module2.exports = __toCommonJS2(src_exports); + var import_property_provider = require_dist_cjs6(); + var fromEnv = /* @__PURE__ */ __name((envVarSelector) => async () => { + try { + const config = envVarSelector(process.env); + if (config === void 0) { + throw new Error(); + } + return config; + } catch (e) { + throw new import_property_provider.CredentialsProviderError( + e.message || `Cannot load config from environment variables with getter: ${envVarSelector}` + ); } - return endpointParams; - }; - exports.resolveParams = resolveParams; + }, "fromEnv"); + var import_shared_ini_file_loader = require_dist_cjs23(); + var fromSharedConfigFiles = /* @__PURE__ */ __name((configSelector, { preferredFile = "config", ...init } = {}) => async () => { + const profile = (0, import_shared_ini_file_loader.getProfileName)(init); + const { configFile, credentialsFile } = await (0, import_shared_ini_file_loader.loadSharedConfigFiles)(init); + const profileFromCredentials = credentialsFile[profile] || {}; + const profileFromConfig = configFile[profile] || {}; + const mergedProfile = preferredFile === "config" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials }; + try { + const cfgFile = preferredFile === "config" ? configFile : credentialsFile; + const configValue = configSelector(mergedProfile, cfgFile); + if (configValue === void 0) { + throw new Error(); + } + return configValue; + } catch (e) { + throw new import_property_provider.CredentialsProviderError( + e.message || `Cannot load config for profile ${profile} in SDK configuration files with getter: ${configSelector}` + ); + } + }, "fromSharedConfigFiles"); + var isFunction = /* @__PURE__ */ __name((func) => typeof func === "function", "isFunction"); + var fromStatic = /* @__PURE__ */ __name((defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, import_property_provider.fromStatic)(defaultValue), "fromStatic"); + var loadConfig = /* @__PURE__ */ __name(({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, import_property_provider.memoize)( + (0, import_property_provider.chain)( + fromEnv(environmentVariableSelector), + fromSharedConfigFiles(configFileSelector, configuration), + fromStatic(defaultValue) + ) + ), "loadConfig"); + } +}); + +// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js +var require_getEndpointUrlConfig = __commonJS({ + "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getEndpointUrlConfig = void 0; + var shared_ini_file_loader_1 = require_dist_cjs23(); + var ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL"; + var CONFIG_ENDPOINT_URL = "endpoint_url"; + var getEndpointUrlConfig = (serviceId) => ({ + environmentVariableSelector: (env) => { + const serviceSuffixParts = serviceId.split(" ").map((w) => w.toUpperCase()); + const serviceEndpointUrl = env[[ENV_ENDPOINT_URL, ...serviceSuffixParts].join("_")]; + if (serviceEndpointUrl) + return serviceEndpointUrl; + const endpointUrl = env[ENV_ENDPOINT_URL]; + if (endpointUrl) + return endpointUrl; + return void 0; + }, + configFileSelector: (profile, config) => { + if (config && profile.services) { + const servicesSection = config[["services", profile.services].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)]; + if (servicesSection) { + const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase()); + const endpointUrl2 = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)]; + if (endpointUrl2) + return endpointUrl2; + } + } + const endpointUrl = profile[CONFIG_ENDPOINT_URL]; + if (endpointUrl) + return endpointUrl; + return void 0; + }, + default: void 0 + }); + exports2.getEndpointUrlConfig = getEndpointUrlConfig; } }); -// ../../../node_modules/@smithy/querystring-parser/dist-cjs/index.js -var require_dist_cjs23 = __commonJS({ - "../../../node_modules/@smithy/querystring-parser/dist-cjs/index.js"(exports) { +// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +var require_getEndpointFromConfig = __commonJS({ + "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.parseQueryString = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getEndpointFromConfig = void 0; + var node_config_provider_1 = require_dist_cjs24(); + var getEndpointUrlConfig_1 = require_getEndpointUrlConfig(); + var getEndpointFromConfig = async (serviceId) => (0, node_config_provider_1.loadConfig)((0, getEndpointUrlConfig_1.getEndpointUrlConfig)(serviceId))(); + exports2.getEndpointFromConfig = getEndpointFromConfig; + } +}); + +// ../../../node_modules/@smithy/querystring-parser/dist-cjs/index.js +var require_dist_cjs25 = __commonJS({ + "../../../node_modules/@smithy/querystring-parser/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + parseQueryString: () => parseQueryString + }); + module2.exports = __toCommonJS2(src_exports); function parseQueryString(querystring) { const query = {}; querystring = querystring.replace(/^\?/, ""); @@ -6983,25 +6576,45 @@ var require_dist_cjs23 = __commonJS({ } return query; } - exports.parseQueryString = parseQueryString; + __name(parseQueryString, "parseQueryString"); } }); // ../../../node_modules/@smithy/url-parser/dist-cjs/index.js -var require_dist_cjs24 = __commonJS({ - "../../../node_modules/@smithy/url-parser/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.parseUrl = void 0; - var querystring_parser_1 = require_dist_cjs23(); - var parseUrl = (url2) => { +var require_dist_cjs26 = __commonJS({ + "../../../node_modules/@smithy/url-parser/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + parseUrl: () => parseUrl + }); + module2.exports = __toCommonJS2(src_exports); + var import_querystring_parser = require_dist_cjs25(); + var parseUrl = /* @__PURE__ */ __name((url2) => { if (typeof url2 === "string") { - return (0, exports.parseUrl)(new URL(url2)); + return parseUrl(new URL(url2)); } const { hostname, pathname, port, protocol, search } = url2; let query; if (search) { - query = (0, querystring_parser_1.parseQueryString)(search); + query = (0, import_querystring_parser.parseQueryString)(search); } return { hostname, @@ -7010,80 +6623,41 @@ var require_dist_cjs24 = __commonJS({ path: pathname, query }; - }; - exports.parseUrl = parseUrl; - } -}); - -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js -var require_toEndpointV1 = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.toEndpointV1 = void 0; - var url_parser_1 = require_dist_cjs24(); - var toEndpointV1 = (endpoint) => { - if (typeof endpoint === "object") { - if ("url" in endpoint) { - return (0, url_parser_1.parseUrl)(endpoint.url); - } - return endpoint; - } - return (0, url_parser_1.parseUrl)(endpoint); - }; - exports.toEndpointV1 = toEndpointV1; - } -}); - -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js -var require_adaptors = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_getEndpointFromInstructions(), exports); - tslib_1.__exportStar(require_toEndpointV1(), exports); - } -}); - -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js -var require_endpointMiddleware = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.endpointMiddleware = void 0; - var getEndpointFromInstructions_1 = require_getEndpointFromInstructions(); - var endpointMiddleware = ({ config, instructions }) => { - return (next, context) => async (args) => { - var _a, _b; - const endpoint = await (0, getEndpointFromInstructions_1.getEndpointFromInstructions)(args.input, { - getEndpointParameterInstructions() { - return instructions; - } - }, { ...config }, context); - context.endpointV2 = endpoint; - context.authSchemes = (_a = endpoint.properties) === null || _a === void 0 ? void 0 : _a.authSchemes; - const authScheme = (_b = context.authSchemes) === null || _b === void 0 ? void 0 : _b[0]; - if (authScheme) { - context["signing_region"] = authScheme.signingRegion; - context["signing_service"] = authScheme.signingName; - } - return next({ - ...args - }); - }; - }; - exports.endpointMiddleware = endpointMiddleware; + }, "parseUrl"); } }); -// ../../../node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js -var require_deserializerMiddleware = __commonJS({ - "../../../node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.deserializerMiddleware = void 0; - var deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { +// ../../../node_modules/@smithy/middleware-serde/dist-cjs/index.js +var require_dist_cjs27 = __commonJS({ + "../../../node_modules/@smithy/middleware-serde/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + deserializerMiddleware: () => deserializerMiddleware, + deserializerMiddlewareOption: () => deserializerMiddlewareOption, + getSerdePlugin: () => getSerdePlugin, + serializerMiddleware: () => serializerMiddleware, + serializerMiddlewareOption: () => serializerMiddlewareOption + }); + module2.exports = __toCommonJS2(src_exports); + var deserializerMiddleware = /* @__PURE__ */ __name((options, deserializer) => (next, context) => async (args) => { const { response } = await next(args); try { const parsed = await deserializer(response, options); @@ -7101,20 +6675,10 @@ var require_deserializerMiddleware = __commonJS({ } throw error; } - }; - exports.deserializerMiddleware = deserializerMiddleware; - } -}); - -// ../../../node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js -var require_serializerMiddleware = __commonJS({ - "../../../node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.serializerMiddleware = void 0; - var serializerMiddleware = (options, serializer) => (next, context) => async (args) => { + }, "deserializerMiddleware"); + var serializerMiddleware = /* @__PURE__ */ __name((options, serializer) => (next, context) => async (args) => { var _a; - const endpoint = ((_a = context.endpointV2) === null || _a === void 0 ? void 0 : _a.url) && options.urlParser ? async () => options.urlParser(context.endpointV2.url) : options.endpoint; + const endpoint = ((_a = context.endpointV2) == null ? void 0 : _a.url) && options.urlParser ? async () => options.urlParser(context.endpointV2.url) : options.endpoint; if (!endpoint) { throw new Error("No valid endpoint provider available."); } @@ -7123,26 +6687,14 @@ var require_serializerMiddleware = __commonJS({ ...args, request: request2 }); - }; - exports.serializerMiddleware = serializerMiddleware; - } -}); - -// ../../../node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js -var require_serdePlugin = __commonJS({ - "../../../node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSerdePlugin = exports.serializerMiddlewareOption = exports.deserializerMiddlewareOption = void 0; - var deserializerMiddleware_1 = require_deserializerMiddleware(); - var serializerMiddleware_1 = require_serializerMiddleware(); - exports.deserializerMiddlewareOption = { + }, "serializerMiddleware"); + var deserializerMiddlewareOption = { name: "deserializerMiddleware", step: "deserialize", tags: ["DESERIALIZER"], override: true }; - exports.serializerMiddlewareOption = { + var serializerMiddlewareOption = { name: "serializerMiddleware", step: "serialize", tags: ["SERIALIZER"], @@ -7151,574 +6703,298 @@ var require_serdePlugin = __commonJS({ function getSerdePlugin(config, serializer, deserializer) { return { applyToStack: (commandStack) => { - commandStack.add((0, deserializerMiddleware_1.deserializerMiddleware)(config, deserializer), exports.deserializerMiddlewareOption); - commandStack.add((0, serializerMiddleware_1.serializerMiddleware)(config, serializer), exports.serializerMiddlewareOption); + commandStack.add(deserializerMiddleware(config, deserializer), deserializerMiddlewareOption); + commandStack.add(serializerMiddleware(config, serializer), serializerMiddlewareOption); } }; } - exports.getSerdePlugin = getSerdePlugin; - } -}); - -// ../../../node_modules/@smithy/middleware-serde/dist-cjs/index.js -var require_dist_cjs25 = __commonJS({ - "../../../node_modules/@smithy/middleware-serde/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_deserializerMiddleware(), exports); - tslib_1.__exportStar(require_serdePlugin(), exports); - tslib_1.__exportStar(require_serializerMiddleware(), exports); + __name(getSerdePlugin, "getSerdePlugin"); } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js -var require_getEndpointPlugin = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getEndpointPlugin = exports.endpointMiddlewareOptions = void 0; - var middleware_serde_1 = require_dist_cjs25(); - var endpointMiddleware_1 = require_endpointMiddleware(); - exports.endpointMiddlewareOptions = { +// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +var require_dist_cjs28 = __commonJS({ + "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + endpointMiddleware: () => endpointMiddleware, + endpointMiddlewareOptions: () => endpointMiddlewareOptions, + getEndpointFromInstructions: () => getEndpointFromInstructions, + getEndpointPlugin: () => getEndpointPlugin, + resolveEndpointConfig: () => resolveEndpointConfig, + resolveParams: () => resolveParams, + toEndpointV1: () => toEndpointV1 + }); + module2.exports = __toCommonJS2(src_exports); + var resolveParamsForS3 = /* @__PURE__ */ __name(async (endpointParams) => { + const bucket = (endpointParams == null ? void 0 : endpointParams.Bucket) || ""; + if (typeof endpointParams.Bucket === "string") { + endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?")); + } + if (isArnBucketName(bucket)) { + if (endpointParams.ForcePathStyle === true) { + throw new Error("Path-style addressing cannot be used with ARN buckets"); + } + } else if (!isDnsCompatibleBucketName(bucket) || bucket.indexOf(".") !== -1 && !String(endpointParams.Endpoint).startsWith("http:") || bucket.toLowerCase() !== bucket || bucket.length < 3) { + endpointParams.ForcePathStyle = true; + } + if (endpointParams.DisableMultiRegionAccessPoints) { + endpointParams.disableMultiRegionAccessPoints = true; + endpointParams.DisableMRAP = true; + } + return endpointParams; + }, "resolveParamsForS3"); + var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/; + var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/; + var DOTS_PATTERN = /\.\./; + var isDnsCompatibleBucketName = /* @__PURE__ */ __name((bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName), "isDnsCompatibleBucketName"); + var isArnBucketName = /* @__PURE__ */ __name((bucketName) => { + const [arn, partition, service, region, account, typeOrId] = bucketName.split(":"); + const isArn = arn === "arn" && bucketName.split(":").length >= 6; + const isValidArn = [arn, partition, service, account, typeOrId].filter(Boolean).length === 5; + if (isArn && !isValidArn) { + throw new Error(`Invalid ARN: ${bucketName} was an invalid ARN.`); + } + return arn === "arn" && !!partition && !!service && !!account && !!typeOrId; + }, "isArnBucketName"); + var createConfigValueProvider = /* @__PURE__ */ __name((configKey, canonicalEndpointParamKey, config) => { + const configProvider = /* @__PURE__ */ __name(async () => { + const configValue = config[configKey] ?? config[canonicalEndpointParamKey]; + if (typeof configValue === "function") { + return configValue(); + } + return configValue; + }, "configProvider"); + if (configKey === "credentialScope" || canonicalEndpointParamKey === "CredentialScope") { + return async () => { + const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials; + const configValue = (credentials == null ? void 0 : credentials.credentialScope) ?? (credentials == null ? void 0 : credentials.CredentialScope); + return configValue; + }; + } + if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") { + return async () => { + const endpoint = await configProvider(); + if (endpoint && typeof endpoint === "object") { + if ("url" in endpoint) { + return endpoint.url.href; + } + if ("hostname" in endpoint) { + const { protocol, hostname, port, path } = endpoint; + return `${protocol}//${hostname}${port ? ":" + port : ""}${path}`; + } + } + return endpoint; + }; + } + return configProvider; + }, "createConfigValueProvider"); + var import_getEndpointFromConfig = require_getEndpointFromConfig(); + var import_url_parser = require_dist_cjs26(); + var toEndpointV1 = /* @__PURE__ */ __name((endpoint) => { + if (typeof endpoint === "object") { + if ("url" in endpoint) { + return (0, import_url_parser.parseUrl)(endpoint.url); + } + return endpoint; + } + return (0, import_url_parser.parseUrl)(endpoint); + }, "toEndpointV1"); + var getEndpointFromInstructions = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig, context) => { + if (!clientConfig.endpoint) { + const endpointFromConfig = await (0, import_getEndpointFromConfig.getEndpointFromConfig)(clientConfig.serviceId || ""); + if (endpointFromConfig) { + clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig)); + } + } + const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig); + if (typeof clientConfig.endpointProvider !== "function") { + throw new Error("config.endpointProvider is not set."); + } + const endpoint = clientConfig.endpointProvider(endpointParams, context); + return endpoint; + }, "getEndpointFromInstructions"); + var resolveParams = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig) => { + var _a; + const endpointParams = {}; + const instructions = ((_a = instructionsSupplier == null ? void 0 : instructionsSupplier.getEndpointParameterInstructions) == null ? void 0 : _a.call(instructionsSupplier)) || {}; + for (const [name, instruction] of Object.entries(instructions)) { + switch (instruction.type) { + case "staticContextParams": + endpointParams[name] = instruction.value; + break; + case "contextParams": + endpointParams[name] = commandInput[instruction.name]; + break; + case "clientContextParams": + case "builtInParams": + endpointParams[name] = await createConfigValueProvider(instruction.name, name, clientConfig)(); + break; + default: + throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction)); + } + } + if (Object.keys(instructions).length === 0) { + Object.assign(endpointParams, clientConfig); + } + if (String(clientConfig.serviceId).toLowerCase() === "s3") { + await resolveParamsForS3(endpointParams); + } + return endpointParams; + }, "resolveParams"); + var import_util_middleware = require_dist_cjs10(); + var endpointMiddleware = /* @__PURE__ */ __name(({ + config, + instructions + }) => { + return (next, context) => async (args) => { + var _a, _b, _c; + const endpoint = await getEndpointFromInstructions( + args.input, + { + getEndpointParameterInstructions() { + return instructions; + } + }, + { ...config }, + context + ); + context.endpointV2 = endpoint; + context.authSchemes = (_a = endpoint.properties) == null ? void 0 : _a.authSchemes; + const authScheme = (_b = context.authSchemes) == null ? void 0 : _b[0]; + if (authScheme) { + context["signing_region"] = authScheme.signingRegion; + context["signing_service"] = authScheme.signingName; + const smithyContext = (0, import_util_middleware.getSmithyContext)(context); + const httpAuthOption = (_c = smithyContext == null ? void 0 : smithyContext.selectedHttpAuthScheme) == null ? void 0 : _c.httpAuthOption; + if (httpAuthOption) { + httpAuthOption.signingProperties = Object.assign( + httpAuthOption.signingProperties || {}, + { + signing_region: authScheme.signingRegion, + signingRegion: authScheme.signingRegion, + signing_service: authScheme.signingName, + signingName: authScheme.signingName, + signingRegionSet: authScheme.signingRegionSet + }, + authScheme.properties + ); + } + } + return next({ + ...args + }); + }; + }, "endpointMiddleware"); + var import_middleware_serde = require_dist_cjs27(); + var endpointMiddlewareOptions = { step: "serialize", tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"], name: "endpointV2Middleware", override: true, relation: "before", - toMiddleware: middleware_serde_1.serializerMiddlewareOption.name + toMiddleware: import_middleware_serde.serializerMiddlewareOption.name }; - var getEndpointPlugin = (config, instructions) => ({ + var getEndpointPlugin = /* @__PURE__ */ __name((config, instructions) => ({ applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, endpointMiddleware_1.endpointMiddleware)({ - config, - instructions - }), exports.endpointMiddlewareOptions); + clientStack.addRelativeTo( + endpointMiddleware({ + config, + instructions + }), + endpointMiddlewareOptions + ); } - }); - exports.getEndpointPlugin = getEndpointPlugin; - } -}); - -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js -var require_resolveEndpointConfig = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveEndpointConfig = void 0; - var util_middleware_1 = require_dist_cjs10(); - var toEndpointV1_1 = require_toEndpointV1(); - var resolveEndpointConfig = (input) => { - var _a, _b, _c; - const tls = (_a = input.tls) !== null && _a !== void 0 ? _a : true; + }), "getEndpointPlugin"); + var resolveEndpointConfig = /* @__PURE__ */ __name((input) => { + const tls = input.tls ?? true; const { endpoint } = input; - const customEndpointProvider = endpoint != null ? async () => (0, toEndpointV1_1.toEndpointV1)(await (0, util_middleware_1.normalizeProvider)(endpoint)()) : void 0; + const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await (0, import_util_middleware.normalizeProvider)(endpoint)()) : void 0; const isCustomEndpoint = !!endpoint; return { ...input, endpoint: customEndpointProvider, tls, isCustomEndpoint, - useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)((_b = input.useDualstackEndpoint) !== null && _b !== void 0 ? _b : false), - useFipsEndpoint: (0, util_middleware_1.normalizeProvider)((_c = input.useFipsEndpoint) !== null && _c !== void 0 ? _c : false) + useDualstackEndpoint: (0, import_util_middleware.normalizeProvider)(input.useDualstackEndpoint ?? false), + useFipsEndpoint: (0, import_util_middleware.normalizeProvider)(input.useFipsEndpoint ?? false) }; - }; - exports.resolveEndpointConfig = resolveEndpointConfig; + }, "resolveEndpointConfig"); } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/types.js -var require_types3 = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/types.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); +// ../../../node_modules/uuid/dist/esm-node/rng.js +function rng() { + if (poolPtr > rnds8Pool.length - 16) { + import_crypto.default.randomFillSync(rnds8Pool); + poolPtr = 0; } -}); - -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/index.js -var require_dist_cjs26 = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_adaptors(), exports); - tslib_1.__exportStar(require_endpointMiddleware(), exports); - tslib_1.__exportStar(require_getEndpointPlugin(), exports); - tslib_1.__exportStar(require_resolveEndpointConfig(), exports); - tslib_1.__exportStar(require_types3(), exports); + return rnds8Pool.slice(poolPtr, poolPtr += 16); +} +var import_crypto, rnds8Pool, poolPtr; +var init_rng = __esm({ + "../../../node_modules/uuid/dist/esm-node/rng.js"() { + import_crypto = __toESM(require("crypto")); + rnds8Pool = new Uint8Array(256); + poolPtr = rnds8Pool.length; } }); -// ../../../node_modules/@smithy/util-retry/dist-cjs/config.js -var require_config3 = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/config.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DEFAULT_RETRY_MODE = exports.DEFAULT_MAX_ATTEMPTS = exports.RETRY_MODES = void 0; - var RETRY_MODES; - (function(RETRY_MODES2) { - RETRY_MODES2["STANDARD"] = "standard"; - RETRY_MODES2["ADAPTIVE"] = "adaptive"; - })(RETRY_MODES = exports.RETRY_MODES || (exports.RETRY_MODES = {})); - exports.DEFAULT_MAX_ATTEMPTS = 3; - exports.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; +// ../../../node_modules/uuid/dist/esm-node/regex.js +var regex_default; +var init_regex = __esm({ + "../../../node_modules/uuid/dist/esm-node/regex.js"() { + regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; } }); -// ../../../node_modules/@smithy/service-error-classification/dist-cjs/constants.js -var require_constants3 = __commonJS({ - "../../../node_modules/@smithy/service-error-classification/dist-cjs/constants.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NODEJS_TIMEOUT_ERROR_CODES = exports.TRANSIENT_ERROR_STATUS_CODES = exports.TRANSIENT_ERROR_CODES = exports.THROTTLING_ERROR_CODES = exports.CLOCK_SKEW_ERROR_CODES = void 0; - exports.CLOCK_SKEW_ERROR_CODES = [ - "AuthFailure", - "InvalidSignatureException", - "RequestExpired", - "RequestInTheFuture", - "RequestTimeTooSkewed", - "SignatureDoesNotMatch" - ]; - exports.THROTTLING_ERROR_CODES = [ - "BandwidthLimitExceeded", - "EC2ThrottledException", - "LimitExceededException", - "PriorRequestNotComplete", - "ProvisionedThroughputExceededException", - "RequestLimitExceeded", - "RequestThrottled", - "RequestThrottledException", - "SlowDown", - "ThrottledException", - "Throttling", - "ThrottlingException", - "TooManyRequestsException", - "TransactionInProgressException" - ]; - exports.TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"]; - exports.TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; - exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"]; +// ../../../node_modules/uuid/dist/esm-node/validate.js +function validate(uuid) { + return typeof uuid === "string" && regex_default.test(uuid); +} +var validate_default; +var init_validate = __esm({ + "../../../node_modules/uuid/dist/esm-node/validate.js"() { + init_regex(); + validate_default = validate; } }); -// ../../../node_modules/@smithy/service-error-classification/dist-cjs/index.js -var require_dist_cjs27 = __commonJS({ - "../../../node_modules/@smithy/service-error-classification/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isServerError = exports.isTransientError = exports.isThrottlingError = exports.isClockSkewError = exports.isRetryableByTrait = void 0; - var constants_1 = require_constants3(); - var isRetryableByTrait = (error) => error.$retryable !== void 0; - exports.isRetryableByTrait = isRetryableByTrait; - var isClockSkewError = (error) => constants_1.CLOCK_SKEW_ERROR_CODES.includes(error.name); - exports.isClockSkewError = isClockSkewError; - var isThrottlingError = (error) => { - var _a, _b; - return ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 429 || constants_1.THROTTLING_ERROR_CODES.includes(error.name) || ((_b = error.$retryable) === null || _b === void 0 ? void 0 : _b.throttling) == true; - }; - exports.isThrottlingError = isThrottlingError; - var isTransientError = (error) => { - var _a; - return constants_1.TRANSIENT_ERROR_CODES.includes(error.name) || constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes((error === null || error === void 0 ? void 0 : error.code) || "") || constants_1.TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0); - }; - exports.isTransientError = isTransientError; - var isServerError = (error) => { - var _a; - if (((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) !== void 0) { - const statusCode = error.$metadata.httpStatusCode; - if (500 <= statusCode && statusCode <= 599 && !(0, exports.isTransientError)(error)) { - return true; - } - return false; - } - return false; - }; - exports.isServerError = isServerError; - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js -var require_DefaultRateLimiter = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DefaultRateLimiter = void 0; - var service_error_classification_1 = require_dist_cjs27(); - var DefaultRateLimiter = class { - constructor(options) { - var _a, _b, _c, _d, _e; - this.currentCapacity = 0; - this.enabled = false; - this.lastMaxRate = 0; - this.measuredTxRate = 0; - this.requestCount = 0; - this.lastTimestamp = 0; - this.timeWindow = 0; - this.beta = (_a = options === null || options === void 0 ? void 0 : options.beta) !== null && _a !== void 0 ? _a : 0.7; - this.minCapacity = (_b = options === null || options === void 0 ? void 0 : options.minCapacity) !== null && _b !== void 0 ? _b : 1; - this.minFillRate = (_c = options === null || options === void 0 ? void 0 : options.minFillRate) !== null && _c !== void 0 ? _c : 0.5; - this.scaleConstant = (_d = options === null || options === void 0 ? void 0 : options.scaleConstant) !== null && _d !== void 0 ? _d : 0.4; - this.smooth = (_e = options === null || options === void 0 ? void 0 : options.smooth) !== null && _e !== void 0 ? _e : 0.8; - const currentTimeInSeconds = this.getCurrentTimeInSeconds(); - this.lastThrottleTime = currentTimeInSeconds; - this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); - this.fillRate = this.minFillRate; - this.maxCapacity = this.minCapacity; - } - getCurrentTimeInSeconds() { - return Date.now() / 1e3; - } - async getSendToken() { - return this.acquireTokenBucket(1); - } - async acquireTokenBucket(amount) { - if (!this.enabled) { - return; - } - this.refillTokenBucket(); - if (amount > this.currentCapacity) { - const delay = (amount - this.currentCapacity) / this.fillRate * 1e3; - await new Promise((resolve) => setTimeout(resolve, delay)); - } - this.currentCapacity = this.currentCapacity - amount; - } - refillTokenBucket() { - const timestamp = this.getCurrentTimeInSeconds(); - if (!this.lastTimestamp) { - this.lastTimestamp = timestamp; - return; - } - const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; - this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount); - this.lastTimestamp = timestamp; - } - updateClientSendingRate(response) { - let calculatedRate; - this.updateMeasuredRate(); - if ((0, service_error_classification_1.isThrottlingError)(response)) { - const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); - this.lastMaxRate = rateToUse; - this.calculateTimeWindow(); - this.lastThrottleTime = this.getCurrentTimeInSeconds(); - calculatedRate = this.cubicThrottle(rateToUse); - this.enableTokenBucket(); - } else { - this.calculateTimeWindow(); - calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); - } - const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); - this.updateTokenBucketRate(newRate); - } - calculateTimeWindow() { - this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3)); - } - cubicThrottle(rateToUse) { - return this.getPrecise(rateToUse * this.beta); - } - cubicSuccess(timestamp) { - return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); - } - enableTokenBucket() { - this.enabled = true; - } - updateTokenBucketRate(newRate) { - this.refillTokenBucket(); - this.fillRate = Math.max(newRate, this.minFillRate); - this.maxCapacity = Math.max(newRate, this.minCapacity); - this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); - } - updateMeasuredRate() { - const t = this.getCurrentTimeInSeconds(); - const timeBucket = Math.floor(t * 2) / 2; - this.requestCount++; - if (timeBucket > this.lastTxRateBucket) { - const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); - this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); - this.requestCount = 0; - this.lastTxRateBucket = timeBucket; - } - } - getPrecise(num) { - return parseFloat(num.toFixed(8)); - } - }; - exports.DefaultRateLimiter = DefaultRateLimiter; - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/constants.js -var require_constants4 = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/constants.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.REQUEST_HEADER = exports.INVOCATION_ID_HEADER = exports.NO_RETRY_INCREMENT = exports.TIMEOUT_RETRY_COST = exports.RETRY_COST = exports.INITIAL_RETRY_TOKENS = exports.THROTTLING_RETRY_DELAY_BASE = exports.MAXIMUM_RETRY_DELAY = exports.DEFAULT_RETRY_DELAY_BASE = void 0; - exports.DEFAULT_RETRY_DELAY_BASE = 100; - exports.MAXIMUM_RETRY_DELAY = 20 * 1e3; - exports.THROTTLING_RETRY_DELAY_BASE = 500; - exports.INITIAL_RETRY_TOKENS = 500; - exports.RETRY_COST = 5; - exports.TIMEOUT_RETRY_COST = 10; - exports.NO_RETRY_INCREMENT = 1; - exports.INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; - exports.REQUEST_HEADER = "amz-sdk-request"; - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js -var require_defaultRetryBackoffStrategy = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getDefaultRetryBackoffStrategy = void 0; - var constants_1 = require_constants4(); - var getDefaultRetryBackoffStrategy = () => { - let delayBase = constants_1.DEFAULT_RETRY_DELAY_BASE; - const computeNextBackoffDelay = (attempts) => { - return Math.floor(Math.min(constants_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); - }; - const setDelayBase = (delay) => { - delayBase = delay; - }; - return { - computeNextBackoffDelay, - setDelayBase - }; - }; - exports.getDefaultRetryBackoffStrategy = getDefaultRetryBackoffStrategy; - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js -var require_defaultRetryToken = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.createDefaultRetryToken = void 0; - var constants_1 = require_constants4(); - var createDefaultRetryToken = ({ retryDelay, retryCount, retryCost }) => { - const getRetryCount = () => retryCount; - const getRetryDelay = () => Math.min(constants_1.MAXIMUM_RETRY_DELAY, retryDelay); - const getRetryCost = () => retryCost; - return { - getRetryCount, - getRetryDelay, - getRetryCost - }; - }; - exports.createDefaultRetryToken = createDefaultRetryToken; - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js -var require_StandardRetryStrategy = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.StandardRetryStrategy = void 0; - var config_1 = require_config3(); - var constants_1 = require_constants4(); - var defaultRetryBackoffStrategy_1 = require_defaultRetryBackoffStrategy(); - var defaultRetryToken_1 = require_defaultRetryToken(); - var StandardRetryStrategy = class { - constructor(maxAttempts) { - this.maxAttempts = maxAttempts; - this.mode = config_1.RETRY_MODES.STANDARD; - this.capacity = constants_1.INITIAL_RETRY_TOKENS; - this.retryBackoffStrategy = (0, defaultRetryBackoffStrategy_1.getDefaultRetryBackoffStrategy)(); - this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts; - } - async acquireInitialRetryToken(retryTokenScope) { - return (0, defaultRetryToken_1.createDefaultRetryToken)({ - retryDelay: constants_1.DEFAULT_RETRY_DELAY_BASE, - retryCount: 0 - }); - } - async refreshRetryTokenForRetry(token, errorInfo) { - const maxAttempts = await this.getMaxAttempts(); - if (this.shouldRetry(token, errorInfo, maxAttempts)) { - const errorType = errorInfo.errorType; - this.retryBackoffStrategy.setDelayBase(errorType === "THROTTLING" ? constants_1.THROTTLING_RETRY_DELAY_BASE : constants_1.DEFAULT_RETRY_DELAY_BASE); - const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount()); - const retryDelay = errorInfo.retryAfterHint ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) : delayFromErrorType; - const capacityCost = this.getCapacityCost(errorType); - this.capacity -= capacityCost; - return (0, defaultRetryToken_1.createDefaultRetryToken)({ - retryDelay, - retryCount: token.getRetryCount() + 1, - retryCost: capacityCost - }); - } - throw new Error("No retry token available"); - } - recordSuccess(token) { - var _a; - this.capacity = Math.max(constants_1.INITIAL_RETRY_TOKENS, this.capacity + ((_a = token.getRetryCost()) !== null && _a !== void 0 ? _a : constants_1.NO_RETRY_INCREMENT)); - } - getCapacity() { - return this.capacity; - } - async getMaxAttempts() { - try { - return await this.maxAttemptsProvider(); - } catch (error) { - console.warn(`Max attempts provider could not resolve. Using default of ${config_1.DEFAULT_MAX_ATTEMPTS}`); - return config_1.DEFAULT_MAX_ATTEMPTS; - } - } - shouldRetry(tokenToRenew, errorInfo, maxAttempts) { - const attempts = tokenToRenew.getRetryCount() + 1; - return attempts < maxAttempts && this.capacity >= this.getCapacityCost(errorInfo.errorType) && this.isRetryableError(errorInfo.errorType); - } - getCapacityCost(errorType) { - return errorType === "TRANSIENT" ? constants_1.TIMEOUT_RETRY_COST : constants_1.RETRY_COST; - } - isRetryableError(errorType) { - return errorType === "THROTTLING" || errorType === "TRANSIENT"; - } - }; - exports.StandardRetryStrategy = StandardRetryStrategy; - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js -var require_AdaptiveRetryStrategy = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.AdaptiveRetryStrategy = void 0; - var config_1 = require_config3(); - var DefaultRateLimiter_1 = require_DefaultRateLimiter(); - var StandardRetryStrategy_1 = require_StandardRetryStrategy(); - var AdaptiveRetryStrategy = class { - constructor(maxAttemptsProvider, options) { - this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = config_1.RETRY_MODES.ADAPTIVE; - const { rateLimiter } = options !== null && options !== void 0 ? options : {}; - this.rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new DefaultRateLimiter_1.DefaultRateLimiter(); - this.standardRetryStrategy = new StandardRetryStrategy_1.StandardRetryStrategy(maxAttemptsProvider); - } - async acquireInitialRetryToken(retryTokenScope) { - await this.rateLimiter.getSendToken(); - return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope); - } - async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { - this.rateLimiter.updateClientSendingRate(errorInfo); - return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo); - } - recordSuccess(token) { - this.rateLimiter.updateClientSendingRate({}); - this.standardRetryStrategy.recordSuccess(token); - } - }; - exports.AdaptiveRetryStrategy = AdaptiveRetryStrategy; - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js -var require_ConfiguredRetryStrategy = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ConfiguredRetryStrategy = void 0; - var constants_1 = require_constants4(); - var StandardRetryStrategy_1 = require_StandardRetryStrategy(); - var ConfiguredRetryStrategy = class extends StandardRetryStrategy_1.StandardRetryStrategy { - constructor(maxAttempts, computeNextBackoffDelay = constants_1.DEFAULT_RETRY_DELAY_BASE) { - super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts); - if (typeof computeNextBackoffDelay === "number") { - this.computeNextBackoffDelay = () => computeNextBackoffDelay; - } else { - this.computeNextBackoffDelay = computeNextBackoffDelay; - } - } - async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { - const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo); - token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount()); - return token; - } - }; - exports.ConfiguredRetryStrategy = ConfiguredRetryStrategy; - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/types.js -var require_types4 = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/types.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/index.js -var require_dist_cjs28 = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_AdaptiveRetryStrategy(), exports); - tslib_1.__exportStar(require_ConfiguredRetryStrategy(), exports); - tslib_1.__exportStar(require_DefaultRateLimiter(), exports); - tslib_1.__exportStar(require_StandardRetryStrategy(), exports); - tslib_1.__exportStar(require_config3(), exports); - tslib_1.__exportStar(require_constants4(), exports); - tslib_1.__exportStar(require_types4(), exports); - } -}); - -// ../../../node_modules/uuid/dist/esm-node/rng.js -function rng() { - if (poolPtr > rnds8Pool.length - 16) { - import_crypto.default.randomFillSync(rnds8Pool); - poolPtr = 0; - } - return rnds8Pool.slice(poolPtr, poolPtr += 16); -} -var import_crypto, rnds8Pool, poolPtr; -var init_rng = __esm({ - "../../../node_modules/uuid/dist/esm-node/rng.js"() { - import_crypto = __toESM(require("crypto")); - rnds8Pool = new Uint8Array(256); - poolPtr = rnds8Pool.length; - } -}); - -// ../../../node_modules/uuid/dist/esm-node/regex.js -var regex_default; -var init_regex = __esm({ - "../../../node_modules/uuid/dist/esm-node/regex.js"() { - regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; - } -}); - -// ../../../node_modules/uuid/dist/esm-node/validate.js -function validate(uuid) { - return typeof uuid === "string" && regex_default.test(uuid); -} -var validate_default; -var init_validate = __esm({ - "../../../node_modules/uuid/dist/esm-node/validate.js"() { - init_regex(); - validate_default = validate; - } -}); - -// ../../../node_modules/uuid/dist/esm-node/stringify.js -function stringify(arr, offset = 0) { - const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); - if (!validate_default(uuid)) { - throw TypeError("Stringified UUID is invalid"); - } - return uuid; -} -var byteToHex, stringify_default; -var init_stringify = __esm({ - "../../../node_modules/uuid/dist/esm-node/stringify.js"() { - init_validate(); - byteToHex = []; - for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 256).toString(16).substr(1)); - } - stringify_default = stringify; +// ../../../node_modules/uuid/dist/esm-node/stringify.js +function stringify(arr, offset = 0) { + const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); + if (!validate_default(uuid)) { + throw TypeError("Stringified UUID is invalid"); + } + return uuid; +} +var byteToHex, stringify_default; +var init_stringify = __esm({ + "../../../node_modules/uuid/dist/esm-node/stringify.js"() { + init_validate(); + byteToHex = []; + for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 256).toString(16).substr(1)); + } + stringify_default = stringify; } }); @@ -7998,518 +7274,495 @@ var init_esm_node = __esm({ } }); -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js -var require_defaultRetryQuota = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getDefaultRetryQuota = void 0; - var util_retry_1 = require_dist_cjs28(); - var getDefaultRetryQuota = (initialRetryTokens, options) => { - var _a, _b, _c; - const MAX_CAPACITY = initialRetryTokens; - const noRetryIncrement = (_a = options === null || options === void 0 ? void 0 : options.noRetryIncrement) !== null && _a !== void 0 ? _a : util_retry_1.NO_RETRY_INCREMENT; - const retryCost = (_b = options === null || options === void 0 ? void 0 : options.retryCost) !== null && _b !== void 0 ? _b : util_retry_1.RETRY_COST; - const timeoutRetryCost = (_c = options === null || options === void 0 ? void 0 : options.timeoutRetryCost) !== null && _c !== void 0 ? _c : util_retry_1.TIMEOUT_RETRY_COST; - let availableCapacity = initialRetryTokens; - const getCapacityAmount = (error) => error.name === "TimeoutError" ? timeoutRetryCost : retryCost; - const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity; - const retrieveRetryTokens = (error) => { - if (!hasRetryTokens(error)) { - throw new Error("No retry token available"); - } - const capacityAmount = getCapacityAmount(error); - availableCapacity -= capacityAmount; - return capacityAmount; - }; - const releaseRetryTokens = (capacityReleaseAmount) => { - availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : noRetryIncrement; - availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); - }; - return Object.freeze({ - hasRetryTokens, - retrieveRetryTokens, - releaseRetryTokens - }); - }; - exports.getDefaultRetryQuota = getDefaultRetryQuota; - } -}); - -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js -var require_delayDecider = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.defaultDelayDecider = void 0; - var util_retry_1 = require_dist_cjs28(); - var defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(util_retry_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); - exports.defaultDelayDecider = defaultDelayDecider; - } -}); - -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js -var require_retryDecider = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.defaultRetryDecider = void 0; - var service_error_classification_1 = require_dist_cjs27(); - var defaultRetryDecider = (error) => { - if (!error) { +// ../../../node_modules/@smithy/service-error-classification/dist-cjs/index.js +var require_dist_cjs29 = __commonJS({ + "../../../node_modules/@smithy/service-error-classification/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + isClockSkewError: () => isClockSkewError, + isRetryableByTrait: () => isRetryableByTrait, + isServerError: () => isServerError, + isThrottlingError: () => isThrottlingError, + isTransientError: () => isTransientError + }); + module2.exports = __toCommonJS2(src_exports); + var CLOCK_SKEW_ERROR_CODES = [ + "AuthFailure", + "InvalidSignatureException", + "RequestExpired", + "RequestInTheFuture", + "RequestTimeTooSkewed", + "SignatureDoesNotMatch" + ]; + var THROTTLING_ERROR_CODES = [ + "BandwidthLimitExceeded", + "EC2ThrottledException", + "LimitExceededException", + "PriorRequestNotComplete", + "ProvisionedThroughputExceededException", + "RequestLimitExceeded", + "RequestThrottled", + "RequestThrottledException", + "SlowDown", + "ThrottledException", + "Throttling", + "ThrottlingException", + "TooManyRequestsException", + "TransactionInProgressException" + // DynamoDB + ]; + var TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"]; + var TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; + var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"]; + var isRetryableByTrait = /* @__PURE__ */ __name((error) => error.$retryable !== void 0, "isRetryableByTrait"); + var isClockSkewError = /* @__PURE__ */ __name((error) => CLOCK_SKEW_ERROR_CODES.includes(error.name), "isClockSkewError"); + var isThrottlingError = /* @__PURE__ */ __name((error) => { + var _a, _b; + return ((_a = error.$metadata) == null ? void 0 : _a.httpStatusCode) === 429 || THROTTLING_ERROR_CODES.includes(error.name) || ((_b = error.$retryable) == null ? void 0 : _b.throttling) == true; + }, "isThrottlingError"); + var isTransientError = /* @__PURE__ */ __name((error) => { + var _a; + return TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes((error == null ? void 0 : error.code) || "") || TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) == null ? void 0 : _a.httpStatusCode) || 0); + }, "isTransientError"); + var isServerError = /* @__PURE__ */ __name((error) => { + var _a; + if (((_a = error.$metadata) == null ? void 0 : _a.httpStatusCode) !== void 0) { + const statusCode = error.$metadata.httpStatusCode; + if (500 <= statusCode && statusCode <= 599 && !isTransientError(error)) { + return true; + } return false; } - return (0, service_error_classification_1.isRetryableByTrait)(error) || (0, service_error_classification_1.isClockSkewError)(error) || (0, service_error_classification_1.isThrottlingError)(error) || (0, service_error_classification_1.isTransientError)(error); - }; - exports.defaultRetryDecider = defaultRetryDecider; - } -}); - -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/util.js -var require_util3 = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/util.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.asSdkError = void 0; - var asSdkError = (error) => { - if (error instanceof Error) - return error; - if (error instanceof Object) - return Object.assign(new Error(), error); - if (typeof error === "string") - return new Error(error); - return new Error(`AWS SDK error wrapper for ${error}`); - }; - exports.asSdkError = asSdkError; + return false; + }, "isServerError"); } }); -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js -var require_StandardRetryStrategy2 = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.StandardRetryStrategy = void 0; - var protocol_http_1 = require_dist_cjs2(); - var service_error_classification_1 = require_dist_cjs27(); - var util_retry_1 = require_dist_cjs28(); - var uuid_1 = (init_esm_node(), __toCommonJS(esm_node_exports)); - var defaultRetryQuota_1 = require_defaultRetryQuota(); - var delayDecider_1 = require_delayDecider(); - var retryDecider_1 = require_retryDecider(); - var util_1 = require_util3(); - var StandardRetryStrategy = class { - constructor(maxAttemptsProvider, options) { - var _a, _b, _c; - this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = util_retry_1.RETRY_MODES.STANDARD; - this.retryDecider = (_a = options === null || options === void 0 ? void 0 : options.retryDecider) !== null && _a !== void 0 ? _a : retryDecider_1.defaultRetryDecider; - this.delayDecider = (_b = options === null || options === void 0 ? void 0 : options.delayDecider) !== null && _b !== void 0 ? _b : delayDecider_1.defaultDelayDecider; - this.retryQuota = (_c = options === null || options === void 0 ? void 0 : options.retryQuota) !== null && _c !== void 0 ? _c : (0, defaultRetryQuota_1.getDefaultRetryQuota)(util_retry_1.INITIAL_RETRY_TOKENS); +// ../../../node_modules/@smithy/util-retry/dist-cjs/index.js +var require_dist_cjs30 = __commonJS({ + "../../../node_modules/@smithy/util-retry/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + AdaptiveRetryStrategy: () => AdaptiveRetryStrategy, + ConfiguredRetryStrategy: () => ConfiguredRetryStrategy, + DEFAULT_MAX_ATTEMPTS: () => DEFAULT_MAX_ATTEMPTS, + DEFAULT_RETRY_DELAY_BASE: () => DEFAULT_RETRY_DELAY_BASE, + DEFAULT_RETRY_MODE: () => DEFAULT_RETRY_MODE, + DefaultRateLimiter: () => DefaultRateLimiter, + INITIAL_RETRY_TOKENS: () => INITIAL_RETRY_TOKENS, + INVOCATION_ID_HEADER: () => INVOCATION_ID_HEADER, + MAXIMUM_RETRY_DELAY: () => MAXIMUM_RETRY_DELAY, + NO_RETRY_INCREMENT: () => NO_RETRY_INCREMENT, + REQUEST_HEADER: () => REQUEST_HEADER, + RETRY_COST: () => RETRY_COST, + RETRY_MODES: () => RETRY_MODES, + StandardRetryStrategy: () => StandardRetryStrategy, + THROTTLING_RETRY_DELAY_BASE: () => THROTTLING_RETRY_DELAY_BASE, + TIMEOUT_RETRY_COST: () => TIMEOUT_RETRY_COST + }); + module2.exports = __toCommonJS2(src_exports); + var RETRY_MODES = /* @__PURE__ */ ((RETRY_MODES2) => { + RETRY_MODES2["STANDARD"] = "standard"; + RETRY_MODES2["ADAPTIVE"] = "adaptive"; + return RETRY_MODES2; + })(RETRY_MODES || {}); + var DEFAULT_MAX_ATTEMPTS = 3; + var DEFAULT_RETRY_MODE = "standard"; + var import_service_error_classification = require_dist_cjs29(); + var _DefaultRateLimiter = class _DefaultRateLimiter { + constructor(options) { + this.currentCapacity = 0; + this.enabled = false; + this.lastMaxRate = 0; + this.measuredTxRate = 0; + this.requestCount = 0; + this.lastTimestamp = 0; + this.timeWindow = 0; + this.beta = (options == null ? void 0 : options.beta) ?? 0.7; + this.minCapacity = (options == null ? void 0 : options.minCapacity) ?? 1; + this.minFillRate = (options == null ? void 0 : options.minFillRate) ?? 0.5; + this.scaleConstant = (options == null ? void 0 : options.scaleConstant) ?? 0.4; + this.smooth = (options == null ? void 0 : options.smooth) ?? 0.8; + const currentTimeInSeconds = this.getCurrentTimeInSeconds(); + this.lastThrottleTime = currentTimeInSeconds; + this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); + this.fillRate = this.minFillRate; + this.maxCapacity = this.minCapacity; } - shouldRetry(error, attempts, maxAttempts) { - return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error); + getCurrentTimeInSeconds() { + return Date.now() / 1e3; } - async getMaxAttempts() { - let maxAttempts; - try { - maxAttempts = await this.maxAttemptsProvider(); - } catch (error) { - maxAttempts = util_retry_1.DEFAULT_MAX_ATTEMPTS; + async getSendToken() { + return this.acquireTokenBucket(1); + } + async acquireTokenBucket(amount) { + if (!this.enabled) { + return; } - return maxAttempts; + this.refillTokenBucket(); + if (amount > this.currentCapacity) { + const delay = (amount - this.currentCapacity) / this.fillRate * 1e3; + await new Promise((resolve) => setTimeout(resolve, delay)); + } + this.currentCapacity = this.currentCapacity - amount; } - async retry(next, args, options) { - let retryTokenAmount; - let attempts = 0; - let totalDelay = 0; - const maxAttempts = await this.getMaxAttempts(); - const { request: request2 } = args; - if (protocol_http_1.HttpRequest.isInstance(request2)) { - request2.headers[util_retry_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); + refillTokenBucket() { + const timestamp = this.getCurrentTimeInSeconds(); + if (!this.lastTimestamp) { + this.lastTimestamp = timestamp; + return; } - while (true) { - try { - if (protocol_http_1.HttpRequest.isInstance(request2)) { - request2.headers[util_retry_1.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; - } - if (options === null || options === void 0 ? void 0 : options.beforeRequest) { - await options.beforeRequest(); - } - const { response, output } = await next(args); - if (options === null || options === void 0 ? void 0 : options.afterRequest) { - options.afterRequest(response); - } - this.retryQuota.releaseRetryTokens(retryTokenAmount); - output.$metadata.attempts = attempts + 1; - output.$metadata.totalRetryDelay = totalDelay; - return { response, output }; - } catch (e) { - const err = (0, util_1.asSdkError)(e); - attempts++; - if (this.shouldRetry(err, attempts, maxAttempts)) { - retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); - const delayFromDecider = this.delayDecider((0, service_error_classification_1.isThrottlingError)(err) ? util_retry_1.THROTTLING_RETRY_DELAY_BASE : util_retry_1.DEFAULT_RETRY_DELAY_BASE, attempts); - const delayFromResponse = getDelayFromRetryAfterHeader(err.$response); - const delay = Math.max(delayFromResponse || 0, delayFromDecider); - totalDelay += delay; - await new Promise((resolve) => setTimeout(resolve, delay)); - continue; - } - if (!err.$metadata) { - err.$metadata = {}; - } - err.$metadata.attempts = attempts; - err.$metadata.totalRetryDelay = totalDelay; - throw err; - } + const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; + this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount); + this.lastTimestamp = timestamp; + } + updateClientSendingRate(response) { + let calculatedRate; + this.updateMeasuredRate(); + if ((0, import_service_error_classification.isThrottlingError)(response)) { + const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); + this.lastMaxRate = rateToUse; + this.calculateTimeWindow(); + this.lastThrottleTime = this.getCurrentTimeInSeconds(); + calculatedRate = this.cubicThrottle(rateToUse); + this.enableTokenBucket(); + } else { + this.calculateTimeWindow(); + calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); } + const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); + this.updateTokenBucketRate(newRate); } - }; - exports.StandardRetryStrategy = StandardRetryStrategy; - var getDelayFromRetryAfterHeader = (response) => { - if (!protocol_http_1.HttpResponse.isInstance(response)) - return; - const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); - if (!retryAfterHeaderName) - return; - const retryAfter = response.headers[retryAfterHeaderName]; - const retryAfterSeconds = Number(retryAfter); - if (!Number.isNaN(retryAfterSeconds)) - return retryAfterSeconds * 1e3; - const retryAfterDate = new Date(retryAfter); - return retryAfterDate.getTime() - Date.now(); - }; - } -}); - -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js -var require_AdaptiveRetryStrategy2 = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.AdaptiveRetryStrategy = void 0; - var util_retry_1 = require_dist_cjs28(); - var StandardRetryStrategy_1 = require_StandardRetryStrategy2(); - var AdaptiveRetryStrategy = class extends StandardRetryStrategy_1.StandardRetryStrategy { - constructor(maxAttemptsProvider, options) { - const { rateLimiter, ...superOptions } = options !== null && options !== void 0 ? options : {}; - super(maxAttemptsProvider, superOptions); - this.rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new util_retry_1.DefaultRateLimiter(); - this.mode = util_retry_1.RETRY_MODES.ADAPTIVE; + calculateTimeWindow() { + this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3)); } - async retry(next, args) { - return super.retry(next, args, { - beforeRequest: async () => { - return this.rateLimiter.getSendToken(); - }, - afterRequest: (response) => { - this.rateLimiter.updateClientSendingRate(response); - } - }); + cubicThrottle(rateToUse) { + return this.getPrecise(rateToUse * this.beta); } - }; - exports.AdaptiveRetryStrategy = AdaptiveRetryStrategy; - } -}); - -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/configurations.js -var require_configurations2 = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/configurations.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NODE_RETRY_MODE_CONFIG_OPTIONS = exports.CONFIG_RETRY_MODE = exports.ENV_RETRY_MODE = exports.resolveRetryConfig = exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = exports.CONFIG_MAX_ATTEMPTS = exports.ENV_MAX_ATTEMPTS = void 0; - var util_middleware_1 = require_dist_cjs10(); - var util_retry_1 = require_dist_cjs28(); - exports.ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; - exports.CONFIG_MAX_ATTEMPTS = "max_attempts"; - exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - const value = env[exports.ENV_MAX_ATTEMPTS]; - if (!value) - return void 0; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(`Environment variable ${exports.ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`); - } - return maxAttempt; - }, - configFileSelector: (profile) => { - const value = profile[exports.CONFIG_MAX_ATTEMPTS]; - if (!value) - return void 0; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(`Shared config file entry ${exports.CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`); + cubicSuccess(timestamp) { + return this.getPrecise( + this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate + ); + } + enableTokenBucket() { + this.enabled = true; + } + updateTokenBucketRate(newRate) { + this.refillTokenBucket(); + this.fillRate = Math.max(newRate, this.minFillRate); + this.maxCapacity = Math.max(newRate, this.minCapacity); + this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); + } + updateMeasuredRate() { + const t = this.getCurrentTimeInSeconds(); + const timeBucket = Math.floor(t * 2) / 2; + this.requestCount++; + if (timeBucket > this.lastTxRateBucket) { + const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); + this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); + this.requestCount = 0; + this.lastTxRateBucket = timeBucket; } - return maxAttempt; - }, - default: util_retry_1.DEFAULT_MAX_ATTEMPTS + } + getPrecise(num) { + return parseFloat(num.toFixed(8)); + } }; - var resolveRetryConfig = (input) => { - var _a; - const { retryStrategy } = input; - const maxAttempts = (0, util_middleware_1.normalizeProvider)((_a = input.maxAttempts) !== null && _a !== void 0 ? _a : util_retry_1.DEFAULT_MAX_ATTEMPTS); + __name(_DefaultRateLimiter, "DefaultRateLimiter"); + var DefaultRateLimiter = _DefaultRateLimiter; + var DEFAULT_RETRY_DELAY_BASE = 100; + var MAXIMUM_RETRY_DELAY = 20 * 1e3; + var THROTTLING_RETRY_DELAY_BASE = 500; + var INITIAL_RETRY_TOKENS = 500; + var RETRY_COST = 5; + var TIMEOUT_RETRY_COST = 10; + var NO_RETRY_INCREMENT = 1; + var INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; + var REQUEST_HEADER = "amz-sdk-request"; + var getDefaultRetryBackoffStrategy = /* @__PURE__ */ __name(() => { + let delayBase = DEFAULT_RETRY_DELAY_BASE; + const computeNextBackoffDelay = /* @__PURE__ */ __name((attempts) => { + return Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); + }, "computeNextBackoffDelay"); + const setDelayBase = /* @__PURE__ */ __name((delay) => { + delayBase = delay; + }, "setDelayBase"); return { - ...input, - maxAttempts, - retryStrategy: async () => { - if (retryStrategy) { - return retryStrategy; - } - const retryMode = await (0, util_middleware_1.normalizeProvider)(input.retryMode)(); - if (retryMode === util_retry_1.RETRY_MODES.ADAPTIVE) { - return new util_retry_1.AdaptiveRetryStrategy(maxAttempts); - } - return new util_retry_1.StandardRetryStrategy(maxAttempts); - } + computeNextBackoffDelay, + setDelayBase }; - }; - exports.resolveRetryConfig = resolveRetryConfig; - exports.ENV_RETRY_MODE = "AWS_RETRY_MODE"; - exports.CONFIG_RETRY_MODE = "retry_mode"; - exports.NODE_RETRY_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_RETRY_MODE], - configFileSelector: (profile) => profile[exports.CONFIG_RETRY_MODE], - default: util_retry_1.DEFAULT_RETRY_MODE - }; - } -}); - -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js -var require_omitRetryHeadersMiddleware = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getOmitRetryHeadersPlugin = exports.omitRetryHeadersMiddlewareOptions = exports.omitRetryHeadersMiddleware = void 0; - var protocol_http_1 = require_dist_cjs2(); - var util_retry_1 = require_dist_cjs28(); - var omitRetryHeadersMiddleware = () => (next) => async (args) => { - const { request: request2 } = args; - if (protocol_http_1.HttpRequest.isInstance(request2)) { - delete request2.headers[util_retry_1.INVOCATION_ID_HEADER]; - delete request2.headers[util_retry_1.REQUEST_HEADER]; + }, "getDefaultRetryBackoffStrategy"); + var createDefaultRetryToken = /* @__PURE__ */ __name(({ + retryDelay, + retryCount, + retryCost + }) => { + const getRetryCount = /* @__PURE__ */ __name(() => retryCount, "getRetryCount"); + const getRetryDelay = /* @__PURE__ */ __name(() => Math.min(MAXIMUM_RETRY_DELAY, retryDelay), "getRetryDelay"); + const getRetryCost = /* @__PURE__ */ __name(() => retryCost, "getRetryCost"); + return { + getRetryCount, + getRetryDelay, + getRetryCost + }; + }, "createDefaultRetryToken"); + var _StandardRetryStrategy = class _StandardRetryStrategy { + constructor(maxAttempts) { + this.maxAttempts = maxAttempts; + this.mode = "standard"; + this.capacity = INITIAL_RETRY_TOKENS; + this.retryBackoffStrategy = getDefaultRetryBackoffStrategy(); + this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts; } - return next(args); - }; - exports.omitRetryHeadersMiddleware = omitRetryHeadersMiddleware; - exports.omitRetryHeadersMiddlewareOptions = { - name: "omitRetryHeadersMiddleware", - tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"], - relation: "before", - toMiddleware: "awsAuthMiddleware", - override: true - }; - var getOmitRetryHeadersPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, exports.omitRetryHeadersMiddleware)(), exports.omitRetryHeadersMiddlewareOptions); + async acquireInitialRetryToken(retryTokenScope) { + return createDefaultRetryToken({ + retryDelay: DEFAULT_RETRY_DELAY_BASE, + retryCount: 0 + }); } - }); - exports.getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin; - } -}); - -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js -var require_retryMiddleware = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRetryAfterHint = exports.getRetryPlugin = exports.retryMiddlewareOptions = exports.retryMiddleware = void 0; - var protocol_http_1 = require_dist_cjs2(); - var service_error_classification_1 = require_dist_cjs27(); - var util_retry_1 = require_dist_cjs28(); - var uuid_1 = (init_esm_node(), __toCommonJS(esm_node_exports)); - var util_1 = require_util3(); - var retryMiddleware = (options) => (next, context) => async (args) => { - let retryStrategy = await options.retryStrategy(); - const maxAttempts = await options.maxAttempts(); - if (isRetryStrategyV2(retryStrategy)) { - retryStrategy = retryStrategy; - let retryToken = await retryStrategy.acquireInitialRetryToken(context["partition_id"]); - let lastError = new Error(); - let attempts = 0; - let totalRetryDelay = 0; - const { request: request2 } = args; - if (protocol_http_1.HttpRequest.isInstance(request2)) { - request2.headers[util_retry_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); - } - while (true) { - try { - if (protocol_http_1.HttpRequest.isInstance(request2)) { - request2.headers[util_retry_1.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; - } - const { response, output } = await next(args); - retryStrategy.recordSuccess(retryToken); - output.$metadata.attempts = attempts + 1; - output.$metadata.totalRetryDelay = totalRetryDelay; - return { response, output }; - } catch (e) { - const retryErrorInfo = getRetryErrorInfo(e); - lastError = (0, util_1.asSdkError)(e); - try { - retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo); - } catch (refreshError) { - if (!lastError.$metadata) { - lastError.$metadata = {}; - } - lastError.$metadata.attempts = attempts + 1; - lastError.$metadata.totalRetryDelay = totalRetryDelay; - throw lastError; - } - attempts = retryToken.getRetryCount(); - const delay = retryToken.getRetryDelay(); - totalRetryDelay += delay; - await new Promise((resolve) => setTimeout(resolve, delay)); - } + async refreshRetryTokenForRetry(token, errorInfo) { + const maxAttempts = await this.getMaxAttempts(); + if (this.shouldRetry(token, errorInfo, maxAttempts)) { + const errorType = errorInfo.errorType; + this.retryBackoffStrategy.setDelayBase( + errorType === "THROTTLING" ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE + ); + const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount()); + const retryDelay = errorInfo.retryAfterHint ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) : delayFromErrorType; + const capacityCost = this.getCapacityCost(errorType); + this.capacity -= capacityCost; + return createDefaultRetryToken({ + retryDelay, + retryCount: token.getRetryCount() + 1, + retryCost: capacityCost + }); } - } else { - retryStrategy = retryStrategy; - if (retryStrategy === null || retryStrategy === void 0 ? void 0 : retryStrategy.mode) - context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]]; - return retryStrategy.retry(next, args); + throw new Error("No retry token available"); } - }; - exports.retryMiddleware = retryMiddleware; - var isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined"; - var getRetryErrorInfo = (error) => { - const errorInfo = { - errorType: getRetryErrorType(error) - }; - const retryAfterHint = (0, exports.getRetryAfterHint)(error.$response); - if (retryAfterHint) { - errorInfo.retryAfterHint = retryAfterHint; + recordSuccess(token) { + this.capacity = Math.max(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT)); } - return errorInfo; - }; - var getRetryErrorType = (error) => { - if ((0, service_error_classification_1.isThrottlingError)(error)) - return "THROTTLING"; - if ((0, service_error_classification_1.isTransientError)(error)) - return "TRANSIENT"; - if ((0, service_error_classification_1.isServerError)(error)) - return "SERVER_ERROR"; - return "CLIENT_ERROR"; - }; - exports.retryMiddlewareOptions = { - name: "retryMiddleware", - tags: ["RETRY"], - step: "finalizeRequest", - priority: "high", - override: true - }; - var getRetryPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.retryMiddleware)(options), exports.retryMiddlewareOptions); + /** + * @returns the current available retry capacity. + * + * This number decreases when retries are executed and refills when requests or retries succeed. + */ + getCapacity() { + return this.capacity; } - }); - exports.getRetryPlugin = getRetryPlugin; - var getRetryAfterHint = (response) => { - if (!protocol_http_1.HttpResponse.isInstance(response)) - return; - const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); - if (!retryAfterHeaderName) - return; - const retryAfter = response.headers[retryAfterHeaderName]; - const retryAfterSeconds = Number(retryAfter); - if (!Number.isNaN(retryAfterSeconds)) - return new Date(retryAfterSeconds * 1e3); - const retryAfterDate = new Date(retryAfter); - return retryAfterDate; - }; - exports.getRetryAfterHint = getRetryAfterHint; - } -}); - -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/index.js -var require_dist_cjs29 = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_AdaptiveRetryStrategy2(), exports); - tslib_1.__exportStar(require_StandardRetryStrategy2(), exports); - tslib_1.__exportStar(require_configurations2(), exports); - tslib_1.__exportStar(require_delayDecider(), exports); - tslib_1.__exportStar(require_omitRetryHeadersMiddleware(), exports); - tslib_1.__exportStar(require_retryDecider(), exports); - tslib_1.__exportStar(require_retryMiddleware(), exports); - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js -var require_NoOpLogger = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NoOpLogger = void 0; - var NoOpLogger = class { - trace() { + async getMaxAttempts() { + try { + return await this.maxAttemptsProvider(); + } catch (error) { + console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`); + return DEFAULT_MAX_ATTEMPTS; + } + } + shouldRetry(tokenToRenew, errorInfo, maxAttempts) { + const attempts = tokenToRenew.getRetryCount() + 1; + return attempts < maxAttempts && this.capacity >= this.getCapacityCost(errorInfo.errorType) && this.isRetryableError(errorInfo.errorType); + } + getCapacityCost(errorType) { + return errorType === "TRANSIENT" ? TIMEOUT_RETRY_COST : RETRY_COST; } - debug() { + isRetryableError(errorType) { + return errorType === "THROTTLING" || errorType === "TRANSIENT"; } - info() { + }; + __name(_StandardRetryStrategy, "StandardRetryStrategy"); + var StandardRetryStrategy = _StandardRetryStrategy; + var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy { + constructor(maxAttemptsProvider, options) { + this.maxAttemptsProvider = maxAttemptsProvider; + this.mode = "adaptive"; + const { rateLimiter } = options ?? {}; + this.rateLimiter = rateLimiter ?? new DefaultRateLimiter(); + this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider); } - warn() { + async acquireInitialRetryToken(retryTokenScope) { + await this.rateLimiter.getSendToken(); + return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope); } - error() { + async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { + this.rateLimiter.updateClientSendingRate(errorInfo); + return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo); + } + recordSuccess(token) { + this.rateLimiter.updateClientSendingRate({}); + this.standardRetryStrategy.recordSuccess(token); + } + }; + __name(_AdaptiveRetryStrategy, "AdaptiveRetryStrategy"); + var AdaptiveRetryStrategy = _AdaptiveRetryStrategy; + var _ConfiguredRetryStrategy = class _ConfiguredRetryStrategy extends StandardRetryStrategy { + /** + * @param maxAttempts - the maximum number of retry attempts allowed. + * e.g., if set to 3, then 4 total requests are possible. + * @param computeNextBackoffDelay - a millisecond delay for each retry or a function that takes the retry attempt + * and returns the delay. + * + * @example exponential backoff. + * ```js + * new Client({ + * retryStrategy: new ConfiguredRetryStrategy(3, (attempt) => attempt ** 2) + * }); + * ``` + * @example constant delay. + * ```js + * new Client({ + * retryStrategy: new ConfiguredRetryStrategy(3, 2000) + * }); + * ``` + */ + constructor(maxAttempts, computeNextBackoffDelay = DEFAULT_RETRY_DELAY_BASE) { + super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts); + if (typeof computeNextBackoffDelay === "number") { + this.computeNextBackoffDelay = () => computeNextBackoffDelay; + } else { + this.computeNextBackoffDelay = computeNextBackoffDelay; + } + } + async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { + const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo); + token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount()); + return token; } }; - exports.NoOpLogger = NoOpLogger; + __name(_ConfiguredRetryStrategy, "ConfiguredRetryStrategy"); + var ConfiguredRetryStrategy = _ConfiguredRetryStrategy; } }); -// ../../../node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js -var require_MiddlewareStack = __commonJS({ - "../../../node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.constructStack = void 0; - var constructStack = () => { +// ../../../node_modules/@smithy/middleware-stack/dist-cjs/index.js +var require_dist_cjs31 = __commonJS({ + "../../../node_modules/@smithy/middleware-stack/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + constructStack: () => constructStack + }); + module2.exports = __toCommonJS2(src_exports); + var getAllAliases = /* @__PURE__ */ __name((name, aliases) => { + const _aliases = []; + if (name) { + _aliases.push(name); + } + if (aliases) { + for (const alias of aliases) { + _aliases.push(alias); + } + } + return _aliases; + }, "getAllAliases"); + var getMiddlewareNameWithAliases = /* @__PURE__ */ __name((name, aliases) => { + return `${name || "anonymous"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(",")})` : ""}`; + }, "getMiddlewareNameWithAliases"); + var constructStack = /* @__PURE__ */ __name(() => { let absoluteEntries = []; let relativeEntries = []; let identifyOnResolve = false; const entriesNameSet = /* @__PURE__ */ new Set(); - const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]); - const removeByName = (toRemove) => { + const sort = /* @__PURE__ */ __name((entries) => entries.sort( + (a, b) => stepWeights[b.step] - stepWeights[a.step] || priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"] + ), "sort"); + const removeByName = /* @__PURE__ */ __name((toRemove) => { let isRemoved = false; - const filterCb = (entry) => { - if (entry.name && entry.name === toRemove) { + const filterCb = /* @__PURE__ */ __name((entry) => { + const aliases = getAllAliases(entry.name, entry.aliases); + if (aliases.includes(toRemove)) { isRemoved = true; - entriesNameSet.delete(toRemove); + for (const alias of aliases) { + entriesNameSet.delete(alias); + } return false; } return true; - }; + }, "filterCb"); absoluteEntries = absoluteEntries.filter(filterCb); relativeEntries = relativeEntries.filter(filterCb); return isRemoved; - }; - const removeByReference = (toRemove) => { + }, "removeByName"); + const removeByReference = /* @__PURE__ */ __name((toRemove) => { let isRemoved = false; - const filterCb = (entry) => { + const filterCb = /* @__PURE__ */ __name((entry) => { if (entry.middleware === toRemove) { isRemoved = true; - if (entry.name) - entriesNameSet.delete(entry.name); + for (const alias of getAllAliases(entry.name, entry.aliases)) { + entriesNameSet.delete(alias); + } return false; } return true; - }; + }, "filterCb"); absoluteEntries = absoluteEntries.filter(filterCb); relativeEntries = relativeEntries.filter(filterCb); return isRemoved; - }; - const cloneTo = (toStack) => { + }, "removeByReference"); + const cloneTo = /* @__PURE__ */ __name((toStack) => { + var _a; absoluteEntries.forEach((entry) => { toStack.add(entry.middleware, { ...entry }); }); relativeEntries.forEach((entry) => { toStack.addRelativeTo(entry.middleware, { ...entry }); }); - toStack.identifyOnResolve(stack.identifyOnResolve()); + (_a = toStack.identifyOnResolve) == null ? void 0 : _a.call(toStack, stack.identifyOnResolve()); return toStack; - }; - const expandRelativeMiddlewareList = (from) => { + }, "cloneTo"); + const expandRelativeMiddlewareList = /* @__PURE__ */ __name((from) => { const expandedMiddlewareList = []; from.before.forEach((entry) => { if (entry.before.length === 0 && entry.after.length === 0) { @@ -8527,8 +7780,8 @@ var require_MiddlewareStack = __commonJS({ } }); return expandedMiddlewareList; - }; - const getMiddlewareList = (debug = false) => { + }, "expandRelativeMiddlewareList"); + const getMiddlewareList = /* @__PURE__ */ __name((debug = false) => { const normalizedAbsoluteEntries = []; const normalizedRelativeEntries = []; const normalizedEntriesNameMap = {}; @@ -8538,8 +7791,9 @@ var require_MiddlewareStack = __commonJS({ before: [], after: [] }; - if (normalizedEntry.name) - normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; + for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) { + normalizedEntriesNameMap[alias] = normalizedEntry; + } normalizedAbsoluteEntries.push(normalizedEntry); }); relativeEntries.forEach((entry) => { @@ -8548,8 +7802,9 @@ var require_MiddlewareStack = __commonJS({ before: [], after: [] }; - if (normalizedEntry.name) - normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; + for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) { + normalizedEntriesNameMap[alias] = normalizedEntry; + } normalizedRelativeEntries.push(normalizedEntry); }); normalizedRelativeEntries.forEach((entry) => { @@ -8559,7 +7814,9 @@ var require_MiddlewareStack = __commonJS({ if (debug) { return; } - throw new Error(`${entry.toMiddleware} is not found when adding ${entry.name || "anonymous"} middleware ${entry.relation} ${entry.toMiddleware}`); + throw new Error( + `${entry.toMiddleware} is not found when adding ${getMiddlewareNameWithAliases(entry.name, entry.aliases)} middleware ${entry.relation} ${entry.toMiddleware}` + ); } if (entry.relation === "after") { toMiddleware.after.push(entry); @@ -8574,53 +7831,83 @@ var require_MiddlewareStack = __commonJS({ return wholeList; }, []); return mainChain; - }; + }, "getMiddlewareList"); const stack = { add: (middleware, options = {}) => { - const { name, override } = options; + const { name, override, aliases: _aliases } = options; const entry = { step: "initialize", priority: "normal", middleware, ...options }; - if (name) { - if (entriesNameSet.has(name)) { + const aliases = getAllAliases(name, _aliases); + if (aliases.length > 0) { + if (aliases.some((alias) => entriesNameSet.has(alias))) { if (!override) - throw new Error(`Duplicate middleware name '${name}'`); - const toOverrideIndex = absoluteEntries.findIndex((entry2) => entry2.name === name); - const toOverride = absoluteEntries[toOverrideIndex]; - if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) { - throw new Error(`"${name}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be overridden by same-name middleware with ${entry.priority} priority in ${entry.step} step.`); + throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`); + for (const alias of aliases) { + const toOverrideIndex = absoluteEntries.findIndex( + (entry2) => { + var _a; + return entry2.name === alias || ((_a = entry2.aliases) == null ? void 0 : _a.some((a) => a === alias)); + } + ); + if (toOverrideIndex === -1) { + continue; + } + const toOverride = absoluteEntries[toOverrideIndex]; + if (toOverride.step !== entry.step || entry.priority !== toOverride.priority) { + throw new Error( + `"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware with ${entry.priority} priority in ${entry.step} step.` + ); + } + absoluteEntries.splice(toOverrideIndex, 1); } - absoluteEntries.splice(toOverrideIndex, 1); } - entriesNameSet.add(name); + for (const alias of aliases) { + entriesNameSet.add(alias); + } } absoluteEntries.push(entry); }, addRelativeTo: (middleware, options) => { - const { name, override } = options; + const { name, override, aliases: _aliases } = options; const entry = { middleware, ...options }; - if (name) { - if (entriesNameSet.has(name)) { + const aliases = getAllAliases(name, _aliases); + if (aliases.length > 0) { + if (aliases.some((alias) => entriesNameSet.has(alias))) { if (!override) - throw new Error(`Duplicate middleware name '${name}'`); - const toOverrideIndex = relativeEntries.findIndex((entry2) => entry2.name === name); - const toOverride = relativeEntries[toOverrideIndex]; - if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) { - throw new Error(`"${name}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden by same-name middleware ${entry.relation} "${entry.toMiddleware}" middleware.`); + throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`); + for (const alias of aliases) { + const toOverrideIndex = relativeEntries.findIndex( + (entry2) => { + var _a; + return entry2.name === alias || ((_a = entry2.aliases) == null ? void 0 : _a.some((a) => a === alias)); + } + ); + if (toOverrideIndex === -1) { + continue; + } + const toOverride = relativeEntries[toOverrideIndex]; + if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) { + throw new Error( + `"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware ${entry.relation} "${entry.toMiddleware}" middleware.` + ); + } + relativeEntries.splice(toOverrideIndex, 1); } - relativeEntries.splice(toOverrideIndex, 1); } - entriesNameSet.add(name); + for (const alias of aliases) { + entriesNameSet.add(alias); + } } relativeEntries.push(entry); }, - clone: () => cloneTo((0, exports.constructStack)()), + clone: () => cloneTo(constructStack()), use: (plugin) => { plugin.applyToStack(stack); }, @@ -8632,32 +7919,36 @@ var require_MiddlewareStack = __commonJS({ }, removeByTag: (toRemove) => { let isRemoved = false; - const filterCb = (entry) => { - const { tags, name } = entry; + const filterCb = /* @__PURE__ */ __name((entry) => { + const { tags, name, aliases: _aliases } = entry; if (tags && tags.includes(toRemove)) { - if (name) - entriesNameSet.delete(name); + const aliases = getAllAliases(name, _aliases); + for (const alias of aliases) { + entriesNameSet.delete(alias); + } isRemoved = true; return false; } return true; - }; + }, "filterCb"); absoluteEntries = absoluteEntries.filter(filterCb); relativeEntries = relativeEntries.filter(filterCb); return isRemoved; }, concat: (from) => { - const cloned = cloneTo((0, exports.constructStack)()); + var _a; + const cloned = cloneTo(constructStack()); cloned.use(from); - cloned.identifyOnResolve(identifyOnResolve || cloned.identifyOnResolve() || from.identifyOnResolve()); + cloned.identifyOnResolve( + identifyOnResolve || cloned.identifyOnResolve() || (((_a = from.identifyOnResolve) == null ? void 0 : _a.call(from)) ?? false) + ); return cloned; }, applyToStack: cloneTo, identify: () => { return getMiddlewareList(true).map((mw) => { - var _a; - const step = (_a = mw.step) !== null && _a !== void 0 ? _a : mw.relation + " " + mw.toMiddleware; - return mw.name + " - " + step; + const step = mw.step ?? mw.relation + " " + mw.toMiddleware; + return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step; }); }, identifyOnResolve(toggle) { @@ -8676,8 +7967,7 @@ var require_MiddlewareStack = __commonJS({ } }; return stack; - }; - exports.constructStack = constructStack; + }, "constructStack"); var stepWeights = { initialize: 5, serialize: 4, @@ -8693,57 +7983,15 @@ var require_MiddlewareStack = __commonJS({ } }); -// ../../../node_modules/@smithy/middleware-stack/dist-cjs/index.js -var require_dist_cjs30 = __commonJS({ - "../../../node_modules/@smithy/middleware-stack/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_MiddlewareStack(), exports); - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/client.js -var require_client3 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/client.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Client = void 0; - var middleware_stack_1 = require_dist_cjs30(); - var Client = class { - constructor(config) { - this.middlewareStack = (0, middleware_stack_1.constructStack)(); - this.config = config; - } - send(command, optionsOrCb, cb) { - const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0; - const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb; - const handler2 = command.resolveMiddleware(this.middlewareStack, this.config, options); - if (callback) { - handler2(command).then((result) => callback(null, result.output), (err) => callback(err)).catch(() => { - }); - } else { - return handler2(command).then((result) => result.output); - } - } - destroy() { - if (this.config.requestHandler.destroy) - this.config.requestHandler.destroy(); - } - }; - exports.Client = Client; - } -}); - // ../../../node_modules/@smithy/util-base64/dist-cjs/fromBase64.js var require_fromBase64 = __commonJS({ - "../../../node_modules/@smithy/util-base64/dist-cjs/fromBase64.js"(exports) { + "../../../node_modules/@smithy/util-base64/dist-cjs/fromBase64.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromBase64 = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromBase64 = void 0; var util_buffer_from_1 = require_dist_cjs12(); var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; - var fromBase64 = (input) => { + var fromBase642 = (input) => { if (input.length * 3 % 4 !== 0) { throw new TypeError(`Incorrect padding on base64 string.`); } @@ -8753,95 +8001,54 @@ var require_fromBase64 = __commonJS({ const buffer = (0, util_buffer_from_1.fromString)(input, "base64"); return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); }; - exports.fromBase64 = fromBase64; + exports2.fromBase64 = fromBase642; } }); // ../../../node_modules/@smithy/util-base64/dist-cjs/toBase64.js var require_toBase64 = __commonJS({ - "../../../node_modules/@smithy/util-base64/dist-cjs/toBase64.js"(exports) { + "../../../node_modules/@smithy/util-base64/dist-cjs/toBase64.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.toBase64 = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toBase64 = void 0; var util_buffer_from_1 = require_dist_cjs12(); - var toBase64 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64"); - exports.toBase64 = toBase64; + var toBase642 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64"); + exports2.toBase64 = toBase642; } }); // ../../../node_modules/@smithy/util-base64/dist-cjs/index.js -var require_dist_cjs31 = __commonJS({ - "../../../node_modules/@smithy/util-base64/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromBase64(), exports); - tslib_1.__exportStar(require_toBase64(), exports); - } -}); - -// ../../../node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js -var require_transforms = __commonJS({ - "../../../node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.transformFromString = exports.transformToString = void 0; - var util_base64_1 = require_dist_cjs31(); - var util_utf8_1 = require_dist_cjs13(); - var Uint8ArrayBlobAdapter_1 = require_Uint8ArrayBlobAdapter(); - function transformToString(payload, encoding = "utf-8") { - if (encoding === "base64") { - return (0, util_base64_1.toBase64)(payload); - } - return (0, util_utf8_1.toUtf8)(payload); - } - exports.transformToString = transformToString; - function transformFromString(str, encoding) { - if (encoding === "base64") { - return Uint8ArrayBlobAdapter_1.Uint8ArrayBlobAdapter.mutate((0, util_base64_1.fromBase64)(str)); - } - return Uint8ArrayBlobAdapter_1.Uint8ArrayBlobAdapter.mutate((0, util_utf8_1.fromUtf8)(str)); - } - exports.transformFromString = transformFromString; - } -}); - -// ../../../node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js -var require_Uint8ArrayBlobAdapter = __commonJS({ - "../../../node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Uint8ArrayBlobAdapter = void 0; - var transforms_1 = require_transforms(); - var Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array { - static fromString(source, encoding = "utf-8") { - switch (typeof source) { - case "string": - return (0, transforms_1.transformFromString)(source, encoding); - default: - throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`); - } - } - static mutate(source) { - Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype); - return source; - } - transformToString(encoding = "utf-8") { - return (0, transforms_1.transformToString)(this, encoding); +var require_dist_cjs32 = __commonJS({ + "../../../node_modules/@smithy/util-base64/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); } + return to; }; - exports.Uint8ArrayBlobAdapter = Uint8ArrayBlobAdapter; + var __reExport = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default")); + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + module2.exports = __toCommonJS2(src_exports); + __reExport(src_exports, require_fromBase64(), module2.exports); + __reExport(src_exports, require_toBase64(), module2.exports); } }); // ../../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js var require_getAwsChunkedEncodingStream = __commonJS({ - "../../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js"(exports) { + "../../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getAwsChunkedEncodingStream = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getAwsChunkedEncodingStream = void 0; var stream_1 = require("stream"); - var getAwsChunkedEncodingStream = (readableStream, options) => { + var getAwsChunkedEncodingStream2 = (readableStream, options) => { const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options; const checksumRequired = base64Encoder !== void 0 && checksumAlgorithmFn !== void 0 && checksumLocationName !== void 0 && streamHasher !== void 0; const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : void 0; @@ -8868,83 +8075,123 @@ var require_getAwsChunkedEncodingStream = __commonJS({ }); return awsChunkedEncodingStream; }; - exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream; + exports2.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream2; } }); // ../../../node_modules/@smithy/querystring-builder/dist-cjs/index.js -var require_dist_cjs32 = __commonJS({ - "../../../node_modules/@smithy/querystring-builder/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.buildQueryString = void 0; - var util_uri_escape_1 = require_dist_cjs14(); +var require_dist_cjs33 = __commonJS({ + "../../../node_modules/@smithy/querystring-builder/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + buildQueryString: () => buildQueryString + }); + module2.exports = __toCommonJS2(src_exports); + var import_util_uri_escape = require_dist_cjs14(); function buildQueryString(query) { const parts = []; for (let key of Object.keys(query).sort()) { const value = query[key]; - key = (0, util_uri_escape_1.escapeUri)(key); + key = (0, import_util_uri_escape.escapeUri)(key); if (Array.isArray(value)) { for (let i = 0, iLen = value.length; i < iLen; i++) { - parts.push(`${key}=${(0, util_uri_escape_1.escapeUri)(value[i])}`); + parts.push(`${key}=${(0, import_util_uri_escape.escapeUri)(value[i])}`); } } else { let qsEntry = key; if (value || typeof value === "string") { - qsEntry += `=${(0, util_uri_escape_1.escapeUri)(value)}`; + qsEntry += `=${(0, import_util_uri_escape.escapeUri)(value)}`; } parts.push(qsEntry); } } return parts.join("&"); } - exports.buildQueryString = buildQueryString; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/constants.js -var require_constants5 = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/constants.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NODEJS_TIMEOUT_ERROR_CODES = void 0; - exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; + __name(buildQueryString, "buildQueryString"); } }); -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js -var require_get_transformed_headers = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getTransformedHeaders = void 0; - var getTransformedHeaders = (headers) => { +// ../../../node_modules/@smithy/node-http-handler/dist-cjs/index.js +var require_dist_cjs34 = __commonJS({ + "../../../node_modules/@smithy/node-http-handler/dist-cjs/index.js"(exports2, module2) { + var __create2 = Object.create; + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __getProtoOf2 = Object.getPrototypeOf; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target, + mod + )); + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + DEFAULT_REQUEST_TIMEOUT: () => DEFAULT_REQUEST_TIMEOUT, + NodeHttp2Handler: () => NodeHttp2Handler, + NodeHttpHandler: () => NodeHttpHandler, + streamCollector: () => streamCollector + }); + module2.exports = __toCommonJS2(src_exports); + var import_protocol_http = require_dist_cjs2(); + var import_querystring_builder = require_dist_cjs33(); + var import_http2 = require("http"); + var import_https = require("https"); + var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; + var getTransformedHeaders = /* @__PURE__ */ __name((headers) => { const transformedHeaders = {}; for (const name of Object.keys(headers)) { const headerValues = headers[name]; transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues; } return transformedHeaders; - }; - exports.getTransformedHeaders = getTransformedHeaders; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js -var require_set_connection_timeout = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.setConnectionTimeout = void 0; - var setConnectionTimeout = (request2, reject, timeoutInMs = 0) => { + }, "getTransformedHeaders"); + var setConnectionTimeout = /* @__PURE__ */ __name((request2, reject, timeoutInMs = 0) => { if (!timeoutInMs) { return; } const timeoutId = setTimeout(() => { request2.destroy(); - reject(Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), { - name: "TimeoutError" - })); + reject( + Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), { + name: "TimeoutError" + }) + ); }, timeoutInMs); request2.on("socket", (socket) => { if (socket.connecting) { @@ -8955,56 +8202,25 @@ var require_set_connection_timeout = __commonJS({ clearTimeout(timeoutId); } }); - }; - exports.setConnectionTimeout = setConnectionTimeout; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js -var require_set_socket_keep_alive = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.setSocketKeepAlive = void 0; - var setSocketKeepAlive = (request2, { keepAlive, keepAliveMsecs }) => { + }, "setConnectionTimeout"); + var setSocketKeepAlive = /* @__PURE__ */ __name((request2, { keepAlive, keepAliveMsecs }) => { if (keepAlive !== true) { return; } request2.on("socket", (socket) => { socket.setKeepAlive(keepAlive, keepAliveMsecs || 0); }); - }; - exports.setSocketKeepAlive = setSocketKeepAlive; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js -var require_set_socket_timeout = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.setSocketTimeout = void 0; - var setSocketTimeout = (request2, reject, timeoutInMs = 0) => { + }, "setSocketKeepAlive"); + var setSocketTimeout = /* @__PURE__ */ __name((request2, reject, timeoutInMs = 0) => { request2.setTimeout(timeoutInMs, () => { request2.destroy(); reject(Object.assign(new Error(`Connection timed out after ${timeoutInMs} ms`), { name: "TimeoutError" })); }); - }; - exports.setSocketTimeout = setSocketTimeout; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js -var require_write_request_body = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.writeRequestBody = void 0; - var stream_1 = require("stream"); + }, "setSocketTimeout"); + var import_stream = require("stream"); var MIN_WAIT_TIME = 1e3; async function writeRequestBody(httpRequest, request2, maxContinueTimeoutMs = MIN_WAIT_TIME) { - var _a; - const headers = (_a = request2.headers) !== null && _a !== void 0 ? _a : {}; + const headers = request2.headers ?? {}; const expect = headers["Expect"] || headers["expect"]; let timeoutId = -1; let hasError = false; @@ -9030,9 +8246,9 @@ var require_write_request_body = __commonJS({ writeBody(httpRequest, request2.body); } } - exports.writeRequestBody = writeRequestBody; + __name(writeRequestBody, "writeRequestBody"); function writeBody(httpRequest, body) { - if (body instanceof stream_1.Readable) { + if (body instanceof import_stream.Readable) { body.pipe(httpRequest); } else if (body) { httpRequest.end(Buffer.from(body)); @@ -9040,27 +8256,9 @@ var require_write_request_body = __commonJS({ httpRequest.end(); } } - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js -var require_node_http_handler = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NodeHttpHandler = exports.DEFAULT_REQUEST_TIMEOUT = void 0; - var protocol_http_1 = require_dist_cjs2(); - var querystring_builder_1 = require_dist_cjs32(); - var http_1 = require("http"); - var https_1 = require("https"); - var constants_1 = require_constants5(); - var get_transformed_headers_1 = require_get_transformed_headers(); - var set_connection_timeout_1 = require_set_connection_timeout(); - var set_socket_keep_alive_1 = require_set_socket_keep_alive(); - var set_socket_timeout_1 = require_set_socket_timeout(); - var write_request_body_1 = require_write_request_body(); - exports.DEFAULT_REQUEST_TIMEOUT = 0; - var NodeHttpHandler = class { + __name(writeBody, "writeBody"); + var DEFAULT_REQUEST_TIMEOUT = 0; + var _NodeHttpHandler = class _NodeHttpHandler2 { constructor(options) { this.metadata = { handlerProtocol: "http/1.1" }; this.configProvider = new Promise((resolve, reject) => { @@ -9073,52 +8271,61 @@ var require_node_http_handler = __commonJS({ } }); } + /** + * @returns the input if it is an HttpHandler of any class, + * or instantiates a new instance of this handler. + */ + static create(instanceOrOptions) { + if (typeof (instanceOrOptions == null ? void 0 : instanceOrOptions.handle) === "function") { + return instanceOrOptions; + } + return new _NodeHttpHandler2(instanceOrOptions); + } resolveDefaultConfig(options) { const { requestTimeout, connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {}; const keepAlive = true; const maxSockets = 50; return { connectionTimeout, - requestTimeout: requestTimeout !== null && requestTimeout !== void 0 ? requestTimeout : socketTimeout, - httpAgent: httpAgent || new http_1.Agent({ keepAlive, maxSockets }), - httpsAgent: httpsAgent || new https_1.Agent({ keepAlive, maxSockets }) + requestTimeout: requestTimeout ?? socketTimeout, + httpAgent: httpAgent || new import_http2.Agent({ keepAlive, maxSockets }), + httpsAgent: httpsAgent || new import_https.Agent({ keepAlive, maxSockets }) }; } destroy() { var _a, _b, _c, _d; - (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.httpAgent) === null || _b === void 0 ? void 0 : _b.destroy(); - (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.httpsAgent) === null || _d === void 0 ? void 0 : _d.destroy(); + (_b = (_a = this.config) == null ? void 0 : _a.httpAgent) == null ? void 0 : _b.destroy(); + (_d = (_c = this.config) == null ? void 0 : _c.httpsAgent) == null ? void 0 : _d.destroy(); } async handle(request2, { abortSignal } = {}) { if (!this.config) { this.config = await this.configProvider; } return new Promise((_resolve, _reject) => { - var _a, _b; let writeRequestBodyPromise = void 0; - const resolve = async (arg) => { + const resolve = /* @__PURE__ */ __name(async (arg) => { await writeRequestBodyPromise; _resolve(arg); - }; - const reject = async (arg) => { + }, "resolve"); + const reject = /* @__PURE__ */ __name(async (arg) => { await writeRequestBodyPromise; _reject(arg); - }; + }, "reject"); if (!this.config) { throw new Error("Node HTTP request handler config is not resolved"); } - if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { + if (abortSignal == null ? void 0 : abortSignal.aborted) { const abortError = new Error("Request aborted"); abortError.name = "AbortError"; reject(abortError); return; } const isSSL = request2.protocol === "https:"; - const queryString = (0, querystring_builder_1.buildQueryString)(request2.query || {}); + const queryString = (0, import_querystring_builder.buildQueryString)(request2.query || {}); let auth = void 0; if (request2.username != null || request2.password != null) { - const username = (_a = request2.username) !== null && _a !== void 0 ? _a : ""; - const password = (_b = request2.password) !== null && _b !== void 0 ? _b : ""; + const username = request2.username ?? ""; + const password = request2.password ?? ""; auth = `${username}:${password}`; } let path = request2.path; @@ -9137,25 +8344,25 @@ var require_node_http_handler = __commonJS({ agent: isSSL ? this.config.httpsAgent : this.config.httpAgent, auth }; - const requestFunc = isSSL ? https_1.request : http_1.request; + const requestFunc = isSSL ? import_https.request : import_http2.request; const req = requestFunc(nodeHttpsOptions, (res) => { - const httpResponse = new protocol_http_1.HttpResponse({ + const httpResponse = new import_protocol_http.HttpResponse({ statusCode: res.statusCode || -1, reason: res.statusMessage, - headers: (0, get_transformed_headers_1.getTransformedHeaders)(res.headers), + headers: getTransformedHeaders(res.headers), body: res }); resolve({ response: httpResponse }); }); req.on("error", (err) => { - if (constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) { + if (NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) { reject(Object.assign(err, { name: "TimeoutError" })); } else { reject(err); } }); - (0, set_connection_timeout_1.setConnectionTimeout)(req, reject, this.config.connectionTimeout); - (0, set_socket_timeout_1.setSocketTimeout)(req, reject, this.config.requestTimeout); + setConnectionTimeout(req, reject, this.config.connectionTimeout); + setSocketTimeout(req, reject, this.config.requestTimeout); if (abortSignal) { abortSignal.onabort = () => { req.abort(); @@ -9166,12 +8373,14 @@ var require_node_http_handler = __commonJS({ } const httpAgent = nodeHttpsOptions.agent; if (typeof httpAgent === "object" && "keepAlive" in httpAgent) { - (0, set_socket_keep_alive_1.setSocketKeepAlive)(req, { + setSocketKeepAlive(req, { + // @ts-expect-error keepAlive is not public on httpAgent. keepAlive: httpAgent.keepAlive, + // @ts-expect-error keepAliveMsecs is not public on httpAgent. keepAliveMsecs: httpAgent.keepAliveMsecs }); } - writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request2, this.config.requestTimeout).catch(_reject); + writeRequestBodyPromise = writeRequestBody(req, request2, this.config.requestTimeout).catch(_reject); }); } updateHttpClientConfig(key, value) { @@ -9184,24 +8393,17 @@ var require_node_http_handler = __commonJS({ }); } httpHandlerConfigs() { - var _a; - return (_a = this.config) !== null && _a !== void 0 ? _a : {}; + return this.config ?? {}; } }; - exports.NodeHttpHandler = NodeHttpHandler; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js -var require_node_http2_connection_pool = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NodeHttp2ConnectionPool = void 0; - var NodeHttp2ConnectionPool = class { + __name(_NodeHttpHandler, "NodeHttpHandler"); + var NodeHttpHandler = _NodeHttpHandler; + var import_http22 = require("http2"); + var import_http23 = __toESM2(require("http2")); + var _NodeHttp2ConnectionPool = class _NodeHttp2ConnectionPool { constructor(sessions) { this.sessions = []; - this.sessions = sessions !== null && sessions !== void 0 ? sessions : []; + this.sessions = sessions ?? []; } poll() { if (this.sessions.length > 0) { @@ -9230,20 +8432,9 @@ var require_node_http2_connection_pool = __commonJS({ } } }; - exports.NodeHttp2ConnectionPool = NodeHttp2ConnectionPool; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js -var require_node_http2_connection_manager = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NodeHttp2ConnectionManager = void 0; - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - var http2_1 = tslib_1.__importDefault(require("http2")); - var node_http2_connection_pool_1 = require_node_http2_connection_pool(); - var NodeHttp2ConnectionManager = class { + __name(_NodeHttp2ConnectionPool, "NodeHttp2ConnectionPool"); + var NodeHttp2ConnectionPool = _NodeHttp2ConnectionPool; + var _NodeHttp2ConnectionManager = class _NodeHttp2ConnectionManager { constructor(config) { this.sessionCache = /* @__PURE__ */ new Map(); this.config = config; @@ -9260,19 +8451,21 @@ var require_node_http2_connection_manager = __commonJS({ return existingSession; } } - const session = http2_1.default.connect(url2); + const session = import_http23.default.connect(url2); if (this.config.maxConcurrency) { session.settings({ maxConcurrentStreams: this.config.maxConcurrency }, (err) => { if (err) { - throw new Error("Fail to set maxConcurrentStreams to " + this.config.maxConcurrency + "when creating new session for " + requestContext.destination.toString()); + throw new Error( + "Fail to set maxConcurrentStreams to " + this.config.maxConcurrency + "when creating new session for " + requestContext.destination.toString() + ); } }); } session.unref(); - const destroySessionCb = () => { + const destroySessionCb = /* @__PURE__ */ __name(() => { session.destroy(); this.deleteSession(url2, session); - }; + }, "destroySessionCb"); session.on("goaway", destroySessionCb); session.on("error", destroySessionCb); session.on("frameError", destroySessionCb); @@ -9280,11 +8473,16 @@ var require_node_http2_connection_manager = __commonJS({ if (connectionConfiguration.requestTimeout) { session.setTimeout(connectionConfiguration.requestTimeout, destroySessionCb); } - const connectionPool = this.sessionCache.get(url2) || new node_http2_connection_pool_1.NodeHttp2ConnectionPool(); + const connectionPool = this.sessionCache.get(url2) || new NodeHttp2ConnectionPool(); connectionPool.offerLast(session); this.sessionCache.set(url2, connectionPool); return session; } + /** + * Delete a session from the connection pool. + * @param authority The authority of the session to delete. + * @param session The session to delete. + */ deleteSession(authority, session) { const existingConnectionPool = this.sessionCache.get(authority); if (!existingConnectionPool) { @@ -9299,7 +8497,7 @@ var require_node_http2_connection_manager = __commonJS({ release(requestContext, session) { var _a; const cacheKey = this.getUrlString(requestContext); - (_a = this.sessionCache.get(cacheKey)) === null || _a === void 0 ? void 0 : _a.offerLast(session); + (_a = this.sessionCache.get(cacheKey)) == null ? void 0 : _a.offerLast(session); } destroy() { for (const [key, connectionPool] of this.sessionCache) { @@ -9325,26 +8523,12 @@ var require_node_http2_connection_manager = __commonJS({ return request2.destination.toString(); } }; - exports.NodeHttp2ConnectionManager = NodeHttp2ConnectionManager; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js -var require_node_http2_handler = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NodeHttp2Handler = void 0; - var protocol_http_1 = require_dist_cjs2(); - var querystring_builder_1 = require_dist_cjs32(); - var http2_1 = require("http2"); - var get_transformed_headers_1 = require_get_transformed_headers(); - var node_http2_connection_manager_1 = require_node_http2_connection_manager(); - var write_request_body_1 = require_write_request_body(); - var NodeHttp2Handler = class { + __name(_NodeHttp2ConnectionManager, "NodeHttp2ConnectionManager"); + var NodeHttp2ConnectionManager = _NodeHttp2ConnectionManager; + var _NodeHttp2Handler = class _NodeHttp2Handler2 { constructor(options) { this.metadata = { handlerProtocol: "h2" }; - this.connectionManager = new node_http2_connection_manager_1.NodeHttp2ConnectionManager({}); + this.connectionManager = new NodeHttp2ConnectionManager({}); this.configProvider = new Promise((resolve, reject) => { if (typeof options === "function") { options().then((opts) => { @@ -9355,6 +8539,16 @@ var require_node_http2_handler = __commonJS({ } }); } + /** + * @returns the input if it is an HttpHandler of any class, + * or instantiates a new instance of this handler. + */ + static create(instanceOrOptions) { + if (typeof (instanceOrOptions == null ? void 0 : instanceOrOptions.handle) === "function") { + return instanceOrOptions; + } + return new _NodeHttp2Handler2(instanceOrOptions); + } destroy() { this.connectionManager.destroy(); } @@ -9368,18 +8562,18 @@ var require_node_http2_handler = __commonJS({ } const { requestTimeout, disableConcurrentStreams } = this.config; return new Promise((_resolve, _reject) => { - var _a, _b, _c; + var _a; let fulfilled = false; let writeRequestBodyPromise = void 0; - const resolve = async (arg) => { + const resolve = /* @__PURE__ */ __name(async (arg) => { await writeRequestBodyPromise; _resolve(arg); - }; - const reject = async (arg) => { + }, "resolve"); + const reject = /* @__PURE__ */ __name(async (arg) => { await writeRequestBodyPromise; _reject(arg); - }; - if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { + }, "reject"); + if (abortSignal == null ? void 0 : abortSignal.aborted) { fulfilled = true; const abortError = new Error("Request aborted"); abortError.name = "AbortError"; @@ -9389,24 +8583,24 @@ var require_node_http2_handler = __commonJS({ const { hostname, method, port, protocol, query } = request2; let auth = ""; if (request2.username != null || request2.password != null) { - const username = (_a = request2.username) !== null && _a !== void 0 ? _a : ""; - const password = (_b = request2.password) !== null && _b !== void 0 ? _b : ""; + const username = request2.username ?? ""; + const password = request2.password ?? ""; auth = `${username}:${password}@`; } const authority = `${protocol}//${auth}${hostname}${port ? `:${port}` : ""}`; const requestContext = { destination: new URL(authority) }; const session = this.connectionManager.lease(requestContext, { - requestTimeout: (_c = this.config) === null || _c === void 0 ? void 0 : _c.sessionTimeout, + requestTimeout: (_a = this.config) == null ? void 0 : _a.sessionTimeout, disableConcurrentStreams: disableConcurrentStreams || false }); - const rejectWithDestroy = (err) => { + const rejectWithDestroy = /* @__PURE__ */ __name((err) => { if (disableConcurrentStreams) { this.destroySession(session); } fulfilled = true; reject(err); - }; - const queryString = (0, querystring_builder_1.buildQueryString)(query || {}); + }, "rejectWithDestroy"); + const queryString = (0, import_querystring_builder.buildQueryString)(query || {}); let path = request2.path; if (queryString) { path += `?${queryString}`; @@ -9416,14 +8610,14 @@ var require_node_http2_handler = __commonJS({ } const req = session.request({ ...request2.headers, - [http2_1.constants.HTTP2_HEADER_PATH]: path, - [http2_1.constants.HTTP2_HEADER_METHOD]: method + [import_http22.constants.HTTP2_HEADER_PATH]: path, + [import_http22.constants.HTTP2_HEADER_METHOD]: method }); session.ref(); req.on("response", (headers) => { - const httpResponse = new protocol_http_1.HttpResponse({ + const httpResponse = new import_protocol_http.HttpResponse({ statusCode: headers[":status"] || -1, - headers: (0, get_transformed_headers_1.getTransformedHeaders)(headers), + headers: getTransformedHeaders(headers), body: req }); fulfilled = true; @@ -9454,7 +8648,9 @@ var require_node_http2_handler = __commonJS({ }); req.on("error", rejectWithDestroy); req.on("aborted", () => { - rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`)); + rejectWithDestroy( + new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`) + ); }); req.on("close", () => { session.unref(); @@ -9465,7 +8661,7 @@ var require_node_http2_handler = __commonJS({ rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response")); } }); - writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request2, requestTimeout); + writeRequestBodyPromise = writeRequestBody(req, request2, requestTimeout); }); } updateHttpClientConfig(key, value) { @@ -9478,27 +8674,21 @@ var require_node_http2_handler = __commonJS({ }); } httpHandlerConfigs() { - var _a; - return (_a = this.config) !== null && _a !== void 0 ? _a : {}; + return this.config ?? {}; } + /** + * Destroys a session. + * @param session The session to destroy. + */ destroySession(session) { if (!session.destroyed) { session.destroy(); } } }; - exports.NodeHttp2Handler = NodeHttp2Handler; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js -var require_collector = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Collector = void 0; - var stream_1 = require("stream"); - var Collector = class extends stream_1.Writable { + __name(_NodeHttp2Handler, "NodeHttp2Handler"); + var NodeHttp2Handler = _NodeHttp2Handler; + var _Collector = class _Collector extends import_stream.Writable { constructor() { super(...arguments); this.bufferedBytes = []; @@ -9508,19 +8698,10 @@ var require_collector = __commonJS({ callback(); } }; - exports.Collector = Collector; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js -var require_stream_collector = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.streamCollector = void 0; - var collector_1 = require_collector(); - var streamCollector = (stream) => new Promise((resolve, reject) => { - const collector = new collector_1.Collector(); + __name(_Collector, "Collector"); + var Collector = _Collector; + var streamCollector = /* @__PURE__ */ __name((stream) => new Promise((resolve, reject) => { + const collector = new Collector(); stream.pipe(collector); stream.on("error", (err) => { collector.end(); @@ -9531,35 +8712,22 @@ var require_stream_collector = __commonJS({ const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes)); resolve(bytes); }); - }); - exports.streamCollector = streamCollector; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/index.js -var require_dist_cjs33 = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_node_http_handler(), exports); - tslib_1.__exportStar(require_node_http2_handler(), exports); - tslib_1.__exportStar(require_stream_collector(), exports); + }), "streamCollector"); } }); // ../../../node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js var require_sdk_stream_mixin = __commonJS({ - "../../../node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js"(exports) { + "../../../node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.sdkStreamMixin = void 0; - var node_http_handler_1 = require_dist_cjs33(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.sdkStreamMixin = void 0; + var node_http_handler_1 = require_dist_cjs34(); var util_buffer_from_1 = require_dist_cjs12(); var stream_1 = require("stream"); var util_1 = require("util"); var ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed."; - var sdkStreamMixin = (stream) => { + var sdkStreamMixin2 = (stream) => { var _a, _b; if (!(stream instanceof stream_1.Readable)) { const name = ((_b = (_a = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream; @@ -9599,79 +8767,410 @@ var require_sdk_stream_mixin = __commonJS({ } }); }; - exports.sdkStreamMixin = sdkStreamMixin; + exports2.sdkStreamMixin = sdkStreamMixin2; } }); // ../../../node_modules/@smithy/util-stream/dist-cjs/index.js -var require_dist_cjs34 = __commonJS({ - "../../../node_modules/@smithy/util-stream/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_Uint8ArrayBlobAdapter(), exports); - tslib_1.__exportStar(require_getAwsChunkedEncodingStream(), exports); - tslib_1.__exportStar(require_sdk_stream_mixin(), exports); +var require_dist_cjs35 = __commonJS({ + "../../../node_modules/@smithy/util-stream/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __reExport = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default")); + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + Uint8ArrayBlobAdapter: () => Uint8ArrayBlobAdapter + }); + module2.exports = __toCommonJS2(src_exports); + var import_util_base64 = require_dist_cjs32(); + var import_util_utf8 = require_dist_cjs13(); + function transformToString(payload, encoding = "utf-8") { + if (encoding === "base64") { + return (0, import_util_base64.toBase64)(payload); + } + return (0, import_util_utf8.toUtf8)(payload); + } + __name(transformToString, "transformToString"); + function transformFromString(str, encoding) { + if (encoding === "base64") { + return Uint8ArrayBlobAdapter.mutate((0, import_util_base64.fromBase64)(str)); + } + return Uint8ArrayBlobAdapter.mutate((0, import_util_utf8.fromUtf8)(str)); + } + __name(transformFromString, "transformFromString"); + var _Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter2 extends Uint8Array { + /** + * @param source - such as a string or Stream. + * @returns a new Uint8ArrayBlobAdapter extending Uint8Array. + */ + static fromString(source, encoding = "utf-8") { + switch (typeof source) { + case "string": + return transformFromString(source, encoding); + default: + throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`); + } + } + /** + * @param source - Uint8Array to be mutated. + * @returns the same Uint8Array but with prototype switched to Uint8ArrayBlobAdapter. + */ + static mutate(source) { + Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter2.prototype); + return source; + } + /** + * @param encoding - default 'utf-8'. + * @returns the blob as string. + */ + transformToString(encoding = "utf-8") { + return transformToString(this, encoding); + } + }; + __name(_Uint8ArrayBlobAdapter, "Uint8ArrayBlobAdapter"); + var Uint8ArrayBlobAdapter = _Uint8ArrayBlobAdapter; + __reExport(src_exports, require_getAwsChunkedEncodingStream(), module2.exports); + __reExport(src_exports, require_sdk_stream_mixin(), module2.exports); } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/collect-stream-body.js -var require_collect_stream_body = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/collect-stream-body.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.collectBody = void 0; - var util_stream_1 = require_dist_cjs34(); - var collectBody = async (streamBody = new Uint8Array(), context) => { +// ../../../node_modules/@smithy/smithy-client/dist-cjs/index.js +var require_dist_cjs36 = __commonJS({ + "../../../node_modules/@smithy/smithy-client/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + Client: () => Client, + Command: () => Command, + LazyJsonString: () => LazyJsonString, + NoOpLogger: () => NoOpLogger, + SENSITIVE_STRING: () => SENSITIVE_STRING, + ServiceException: () => ServiceException, + StringWrapper: () => StringWrapper, + _json: () => _json, + collectBody: () => collectBody, + convertMap: () => convertMap, + createAggregatedClient: () => createAggregatedClient, + dateToUtcString: () => dateToUtcString, + decorateServiceException: () => decorateServiceException, + emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion, + expectBoolean: () => expectBoolean, + expectByte: () => expectByte, + expectFloat32: () => expectFloat32, + expectInt: () => expectInt, + expectInt32: () => expectInt32, + expectLong: () => expectLong, + expectNonNull: () => expectNonNull, + expectNumber: () => expectNumber, + expectObject: () => expectObject, + expectShort: () => expectShort, + expectString: () => expectString, + expectUnion: () => expectUnion, + extendedEncodeURIComponent: () => extendedEncodeURIComponent, + getArrayIfSingleItem: () => getArrayIfSingleItem, + getDefaultClientConfiguration: () => getDefaultClientConfiguration, + getDefaultExtensionConfiguration: () => getDefaultExtensionConfiguration, + getValueFromTextNode: () => getValueFromTextNode, + handleFloat: () => handleFloat, + limitedParseDouble: () => limitedParseDouble, + limitedParseFloat: () => limitedParseFloat, + limitedParseFloat32: () => limitedParseFloat32, + loadConfigsForDefaultMode: () => loadConfigsForDefaultMode, + logger: () => logger, + map: () => map, + parseBoolean: () => parseBoolean, + parseEpochTimestamp: () => parseEpochTimestamp, + parseRfc3339DateTime: () => parseRfc3339DateTime, + parseRfc3339DateTimeWithOffset: () => parseRfc3339DateTimeWithOffset, + parseRfc7231DateTime: () => parseRfc7231DateTime, + resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig, + resolvedPath: () => resolvedPath, + serializeFloat: () => serializeFloat, + splitEvery: () => splitEvery, + strictParseByte: () => strictParseByte, + strictParseDouble: () => strictParseDouble, + strictParseFloat: () => strictParseFloat, + strictParseFloat32: () => strictParseFloat32, + strictParseInt: () => strictParseInt, + strictParseInt32: () => strictParseInt32, + strictParseLong: () => strictParseLong, + strictParseShort: () => strictParseShort, + take: () => take, + throwDefaultError: () => throwDefaultError, + withBaseException: () => withBaseException + }); + module2.exports = __toCommonJS2(src_exports); + var _NoOpLogger = class _NoOpLogger { + trace() { + } + debug() { + } + info() { + } + warn() { + } + error() { + } + }; + __name(_NoOpLogger, "NoOpLogger"); + var NoOpLogger = _NoOpLogger; + var import_middleware_stack = require_dist_cjs31(); + var _Client = class _Client { + constructor(config) { + this.middlewareStack = (0, import_middleware_stack.constructStack)(); + this.config = config; + } + send(command, optionsOrCb, cb) { + const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0; + const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb; + const handler2 = command.resolveMiddleware(this.middlewareStack, this.config, options); + if (callback) { + handler2(command).then( + (result) => callback(null, result.output), + (err) => callback(err) + ).catch( + // prevent any errors thrown in the callback from triggering an + // unhandled promise rejection + () => { + } + ); + } else { + return handler2(command).then((result) => result.output); + } + } + destroy() { + if (this.config.requestHandler.destroy) + this.config.requestHandler.destroy(); + } + }; + __name(_Client, "Client"); + var Client = _Client; + var import_util_stream = require_dist_cjs35(); + var collectBody = /* @__PURE__ */ __name(async (streamBody = new Uint8Array(), context) => { if (streamBody instanceof Uint8Array) { - return util_stream_1.Uint8ArrayBlobAdapter.mutate(streamBody); + return import_util_stream.Uint8ArrayBlobAdapter.mutate(streamBody); } if (!streamBody) { - return util_stream_1.Uint8ArrayBlobAdapter.mutate(new Uint8Array()); + return import_util_stream.Uint8ArrayBlobAdapter.mutate(new Uint8Array()); } const fromContext = context.streamCollector(streamBody); - return util_stream_1.Uint8ArrayBlobAdapter.mutate(await fromContext); + return import_util_stream.Uint8ArrayBlobAdapter.mutate(await fromContext); + }, "collectBody"); + var import_types = require_dist_cjs(); + var _Command = class _Command { + constructor() { + this.middlewareStack = (0, import_middleware_stack.constructStack)(); + } + /** + * Factory for Command ClassBuilder. + * @internal + */ + static classBuilder() { + return new ClassBuilder(); + } + /** + * @internal + */ + resolveMiddlewareWithContext(clientStack, configuration, options, { + middlewareFn, + clientName, + commandName, + inputFilterSensitiveLog, + outputFilterSensitiveLog, + smithyContext, + additionalContext, + CommandCtor + }) { + for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) { + this.middlewareStack.use(mw); + } + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog, + outputFilterSensitiveLog, + [import_types.SMITHY_CONTEXT_KEY]: { + ...smithyContext + }, + ...additionalContext + }; + const { requestHandler } = configuration; + return stack.resolve( + (request2) => requestHandler.handle(request2.request, options || {}), + handlerExecutionContext + ); + } }; - exports.collectBody = collectBody; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/command.js -var require_command3 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/command.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Command = void 0; - var middleware_stack_1 = require_dist_cjs30(); - var Command = class { + __name(_Command, "Command"); + var Command = _Command; + var _ClassBuilder = class _ClassBuilder { constructor() { - this.middlewareStack = (0, middleware_stack_1.constructStack)(); + this._init = () => { + }; + this._ep = {}; + this._middlewareFn = () => []; + this._commandName = ""; + this._clientName = ""; + this._additionalContext = {}; + this._smithyContext = {}; + this._inputFilterSensitiveLog = (_) => _; + this._outputFilterSensitiveLog = (_) => _; + this._serializer = null; + this._deserializer = null; + } + /** + * Optional init callback. + */ + init(cb) { + this._init = cb; + } + /** + * Set the endpoint parameter instructions. + */ + ep(endpointParameterInstructions) { + this._ep = endpointParameterInstructions; + return this; + } + /** + * Add any number of middleware. + */ + m(middlewareSupplier) { + this._middlewareFn = middlewareSupplier; + return this; + } + /** + * Set the initial handler execution context Smithy field. + */ + s(service, operation, smithyContext = {}) { + this._smithyContext = { + service, + operation, + ...smithyContext + }; + return this; + } + /** + * Set the initial handler execution context. + */ + c(additionalContext = {}) { + this._additionalContext = additionalContext; + return this; + } + /** + * Set constant string identifiers for the operation. + */ + n(clientName, commandName) { + this._clientName = clientName; + this._commandName = commandName; + return this; + } + /** + * Set the input and output sensistive log filters. + */ + f(inputFilter = (_) => _, outputFilter = (_) => _) { + this._inputFilterSensitiveLog = inputFilter; + this._outputFilterSensitiveLog = outputFilter; + return this; + } + /** + * Sets the serializer. + */ + ser(serializer) { + this._serializer = serializer; + return this; + } + /** + * Sets the deserializer. + */ + de(deserializer) { + this._deserializer = deserializer; + return this; + } + /** + * @returns a Command class with the classBuilder properties. + */ + build() { + var _a; + const closure = this; + let CommandRef; + return CommandRef = (_a = class extends Command { + /** + * @public + */ + constructor(input) { + super(); + this.input = input; + this.serialize = closure._serializer; + this.deserialize = closure._deserializer; + closure._init(this); + } + /** + * @public + */ + static getEndpointParameterInstructions() { + return closure._ep; + } + /** + * @internal + */ + resolveMiddleware(stack, configuration, options) { + return this.resolveMiddlewareWithContext(stack, configuration, options, { + CommandCtor: CommandRef, + middlewareFn: closure._middlewareFn, + clientName: closure._clientName, + commandName: closure._commandName, + inputFilterSensitiveLog: closure._inputFilterSensitiveLog, + outputFilterSensitiveLog: closure._outputFilterSensitiveLog, + smithyContext: closure._smithyContext, + additionalContext: closure._additionalContext + }); + } + }, __name(_a, "CommandRef"), _a); } }; - exports.Command = Command; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/constants.js -var require_constants6 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/constants.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SENSITIVE_STRING = void 0; - exports.SENSITIVE_STRING = "***SensitiveInformation***"; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/create-aggregated-client.js -var require_create_aggregated_client = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/create-aggregated-client.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.createAggregatedClient = void 0; - var createAggregatedClient = (commands, Client) => { + __name(_ClassBuilder, "ClassBuilder"); + var ClassBuilder = _ClassBuilder; + var SENSITIVE_STRING = "***SensitiveInformation***"; + var createAggregatedClient = /* @__PURE__ */ __name((commands, Client2) => { for (const command of Object.keys(commands)) { const CommandCtor = commands[command]; - const methodImpl = async function(args, optionsOrCb, cb) { + const methodImpl = /* @__PURE__ */ __name(async function(args, optionsOrCb, cb) { const command2 = new CommandCtor(args); if (typeof optionsOrCb === "function") { this.send(command2, optionsOrCb); @@ -9682,22 +9181,12 @@ var require_create_aggregated_client = __commonJS({ } else { return this.send(command2, optionsOrCb); } - }; + }, "methodImpl"); const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, ""); - Client.prototype[methodName] = methodImpl; + Client2.prototype[methodName] = methodImpl; } - }; - exports.createAggregatedClient = createAggregatedClient; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js -var require_parse_utils = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.logger = exports.strictParseByte = exports.strictParseShort = exports.strictParseInt32 = exports.strictParseInt = exports.strictParseLong = exports.limitedParseFloat32 = exports.limitedParseFloat = exports.handleFloat = exports.limitedParseDouble = exports.strictParseFloat32 = exports.strictParseFloat = exports.strictParseDouble = exports.expectUnion = exports.expectString = exports.expectObject = exports.expectNonNull = exports.expectByte = exports.expectShort = exports.expectInt32 = exports.expectInt = exports.expectLong = exports.expectFloat32 = exports.expectNumber = exports.expectBoolean = exports.parseBoolean = void 0; - var parseBoolean = (value) => { + }, "createAggregatedClient"); + var parseBoolean = /* @__PURE__ */ __name((value) => { switch (value) { case "true": return true; @@ -9706,15 +9195,14 @@ var require_parse_utils = __commonJS({ default: throw new Error(`Unable to parse boolean value "${value}"`); } - }; - exports.parseBoolean = parseBoolean; - var expectBoolean = (value) => { + }, "parseBoolean"); + var expectBoolean = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } if (typeof value === "number") { if (value === 0 || value === 1) { - exports.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); } if (value === 0) { return false; @@ -9726,7 +9214,7 @@ var require_parse_utils = __commonJS({ if (typeof value === "string") { const lower = value.toLowerCase(); if (lower === "false" || lower === "true") { - exports.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); } if (lower === "false") { return false; @@ -9739,9 +9227,8 @@ var require_parse_utils = __commonJS({ return value; } throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`); - }; - exports.expectBoolean = expectBoolean; - var expectNumber = (value) => { + }, "expectBoolean"); + var expectNumber = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } @@ -9749,7 +9236,7 @@ var require_parse_utils = __commonJS({ const parsed = parseFloat(value); if (!Number.isNaN(parsed)) { if (String(parsed) !== String(value)) { - exports.logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`)); + logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`)); } return parsed; } @@ -9758,20 +9245,18 @@ var require_parse_utils = __commonJS({ return value; } throw new TypeError(`Expected number, got ${typeof value}: ${value}`); - }; - exports.expectNumber = expectNumber; + }, "expectNumber"); var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); - var expectFloat32 = (value) => { - const expected = (0, exports.expectNumber)(value); + var expectFloat32 = /* @__PURE__ */ __name((value) => { + const expected = expectNumber(value); if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { if (Math.abs(expected) > MAX_FLOAT) { throw new TypeError(`Expected 32-bit float, got ${value}`); } } return expected; - }; - exports.expectFloat32 = expectFloat32; - var expectLong = (value) => { + }, "expectFloat32"); + var expectLong = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } @@ -9779,23 +9264,19 @@ var require_parse_utils = __commonJS({ return value; } throw new TypeError(`Expected integer, got ${typeof value}: ${value}`); - }; - exports.expectLong = expectLong; - exports.expectInt = exports.expectLong; - var expectInt32 = (value) => expectSizedInt(value, 32); - exports.expectInt32 = expectInt32; - var expectShort = (value) => expectSizedInt(value, 16); - exports.expectShort = expectShort; - var expectByte = (value) => expectSizedInt(value, 8); - exports.expectByte = expectByte; - var expectSizedInt = (value, size) => { - const expected = (0, exports.expectLong)(value); + }, "expectLong"); + var expectInt = expectLong; + var expectInt32 = /* @__PURE__ */ __name((value) => expectSizedInt(value, 32), "expectInt32"); + var expectShort = /* @__PURE__ */ __name((value) => expectSizedInt(value, 16), "expectShort"); + var expectByte = /* @__PURE__ */ __name((value) => expectSizedInt(value, 8), "expectByte"); + var expectSizedInt = /* @__PURE__ */ __name((value, size) => { + const expected = expectLong(value); if (expected !== void 0 && castInt(expected, size) !== expected) { throw new TypeError(`Expected ${size}-bit integer, got ${value}`); } return expected; - }; - var castInt = (value, size) => { + }, "expectSizedInt"); + var castInt = /* @__PURE__ */ __name((value, size) => { switch (size) { case 32: return Int32Array.of(value)[0]; @@ -9804,8 +9285,8 @@ var require_parse_utils = __commonJS({ case 8: return Int8Array.of(value)[0]; } - }; - var expectNonNull = (value, location) => { + }, "castInt"); + var expectNonNull = /* @__PURE__ */ __name((value, location) => { if (value === null || value === void 0) { if (location) { throw new TypeError(`Expected a non-null value for ${location}`); @@ -9813,9 +9294,8 @@ var require_parse_utils = __commonJS({ throw new TypeError("Expected a non-null value"); } return value; - }; - exports.expectNonNull = expectNonNull; - var expectObject = (value) => { + }, "expectNonNull"); + var expectObject = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } @@ -9824,9 +9304,8 @@ var require_parse_utils = __commonJS({ } const receivedType = Array.isArray(value) ? "array" : typeof value; throw new TypeError(`Expected object, got ${receivedType}: ${value}`); - }; - exports.expectObject = expectObject; - var expectString = (value) => { + }, "expectObject"); + var expectString = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } @@ -9834,17 +9313,16 @@ var require_parse_utils = __commonJS({ return value; } if (["boolean", "number", "bigint"].includes(typeof value)) { - exports.logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`)); + logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`)); return String(value); } throw new TypeError(`Expected string, got ${typeof value}: ${value}`); - }; - exports.expectString = expectString; - var expectUnion = (value) => { + }, "expectString"); + var expectUnion = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } - const asObject = (0, exports.expectObject)(value); + const asObject = expectObject(value); const setKeys = Object.entries(asObject).filter(([, v]) => v != null).map(([k]) => k); if (setKeys.length === 0) { throw new TypeError(`Unions must have exactly one non-null member. None were found.`); @@ -9853,48 +9331,43 @@ var require_parse_utils = __commonJS({ throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); } return asObject; - }; - exports.expectUnion = expectUnion; - var strictParseDouble = (value) => { + }, "expectUnion"); + var strictParseDouble = /* @__PURE__ */ __name((value) => { if (typeof value == "string") { - return (0, exports.expectNumber)(parseNumber(value)); + return expectNumber(parseNumber(value)); } - return (0, exports.expectNumber)(value); - }; - exports.strictParseDouble = strictParseDouble; - exports.strictParseFloat = exports.strictParseDouble; - var strictParseFloat32 = (value) => { + return expectNumber(value); + }, "strictParseDouble"); + var strictParseFloat = strictParseDouble; + var strictParseFloat32 = /* @__PURE__ */ __name((value) => { if (typeof value == "string") { - return (0, exports.expectFloat32)(parseNumber(value)); + return expectFloat32(parseNumber(value)); } - return (0, exports.expectFloat32)(value); - }; - exports.strictParseFloat32 = strictParseFloat32; + return expectFloat32(value); + }, "strictParseFloat32"); var NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g; - var parseNumber = (value) => { + var parseNumber = /* @__PURE__ */ __name((value) => { const matches = value.match(NUMBER_REGEX); if (matches === null || matches[0].length !== value.length) { throw new TypeError(`Expected real number, got implicit NaN`); } return parseFloat(value); - }; - var limitedParseDouble = (value) => { + }, "parseNumber"); + var limitedParseDouble = /* @__PURE__ */ __name((value) => { if (typeof value == "string") { return parseFloatString(value); } - return (0, exports.expectNumber)(value); - }; - exports.limitedParseDouble = limitedParseDouble; - exports.handleFloat = exports.limitedParseDouble; - exports.limitedParseFloat = exports.limitedParseDouble; - var limitedParseFloat32 = (value) => { + return expectNumber(value); + }, "limitedParseDouble"); + var handleFloat = limitedParseDouble; + var limitedParseFloat = limitedParseDouble; + var limitedParseFloat32 = /* @__PURE__ */ __name((value) => { if (typeof value == "string") { return parseFloatString(value); } - return (0, exports.expectFloat32)(value); - }; - exports.limitedParseFloat32 = limitedParseFloat32; - var parseFloatString = (value) => { + return expectFloat32(value); + }, "limitedParseFloat32"); + var parseFloatString = /* @__PURE__ */ __name((value) => { switch (value) { case "NaN": return NaN; @@ -9905,52 +9378,38 @@ var require_parse_utils = __commonJS({ default: throw new Error(`Unable to parse float value: ${value}`); } - }; - var strictParseLong = (value) => { + }, "parseFloatString"); + var strictParseLong = /* @__PURE__ */ __name((value) => { if (typeof value === "string") { - return (0, exports.expectLong)(parseNumber(value)); + return expectLong(parseNumber(value)); } - return (0, exports.expectLong)(value); - }; - exports.strictParseLong = strictParseLong; - exports.strictParseInt = exports.strictParseLong; - var strictParseInt32 = (value) => { + return expectLong(value); + }, "strictParseLong"); + var strictParseInt = strictParseLong; + var strictParseInt32 = /* @__PURE__ */ __name((value) => { if (typeof value === "string") { - return (0, exports.expectInt32)(parseNumber(value)); + return expectInt32(parseNumber(value)); } - return (0, exports.expectInt32)(value); - }; - exports.strictParseInt32 = strictParseInt32; - var strictParseShort = (value) => { + return expectInt32(value); + }, "strictParseInt32"); + var strictParseShort = /* @__PURE__ */ __name((value) => { if (typeof value === "string") { - return (0, exports.expectShort)(parseNumber(value)); + return expectShort(parseNumber(value)); } - return (0, exports.expectShort)(value); - }; - exports.strictParseShort = strictParseShort; - var strictParseByte = (value) => { + return expectShort(value); + }, "strictParseShort"); + var strictParseByte = /* @__PURE__ */ __name((value) => { if (typeof value === "string") { - return (0, exports.expectByte)(parseNumber(value)); + return expectByte(parseNumber(value)); } - return (0, exports.expectByte)(value); - }; - exports.strictParseByte = strictParseByte; - var stackTraceWarning = (message) => { + return expectByte(value); + }, "strictParseByte"); + var stackTraceWarning = /* @__PURE__ */ __name((message) => { return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n"); - }; - exports.logger = { + }, "stackTraceWarning"); + var logger = { warn: console.warn }; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/date-utils.js -var require_date_utils = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/date-utils.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.parseEpochTimestamp = exports.parseRfc7231DateTime = exports.parseRfc3339DateTimeWithOffset = exports.parseRfc3339DateTime = exports.dateToUtcString = void 0; - var parse_utils_1 = require_parse_utils(); var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; function dateToUtcString(date) { @@ -9967,9 +9426,9 @@ var require_date_utils = __commonJS({ const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; } - exports.dateToUtcString = dateToUtcString; + __name(dateToUtcString, "dateToUtcString"); var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/); - var parseRfc3339DateTime = (value) => { + var parseRfc3339DateTime = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } @@ -9981,14 +9440,15 @@ var require_date_utils = __commonJS({ throw new TypeError("Invalid RFC-3339 date-time value"); } const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; - const year = (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)); + const year = strictParseShort(stripLeadingZeroes(yearStr)); const month = parseDateValue(monthStr, "month", 1, 12); const day = parseDateValue(dayStr, "day", 1, 31); return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); - }; - exports.parseRfc3339DateTime = parseRfc3339DateTime; - var RFC3339_WITH_OFFSET = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/); - var parseRfc3339DateTimeWithOffset = (value) => { + }, "parseRfc3339DateTime"); + var RFC3339_WITH_OFFSET = new RegExp( + /^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/ + ); + var parseRfc3339DateTimeWithOffset = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } @@ -10000,7 +9460,7 @@ var require_date_utils = __commonJS({ throw new TypeError("Invalid RFC-3339 date-time value"); } const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match; - const year = (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)); + const year = strictParseShort(stripLeadingZeroes(yearStr)); const month = parseDateValue(monthStr, "month", 1, 12); const day = parseDateValue(dayStr, "day", 1, 31); const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); @@ -10008,12 +9468,17 @@ var require_date_utils = __commonJS({ date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr)); } return date; - }; - exports.parseRfc3339DateTimeWithOffset = parseRfc3339DateTimeWithOffset; - var IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); - var RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); - var ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/); - var parseRfc7231DateTime = (value) => { + }, "parseRfc3339DateTimeWithOffset"); + var IMF_FIXDATE = new RegExp( + /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/ + ); + var RFC_850_DATE = new RegExp( + /^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/ + ); + var ASC_TIME = new RegExp( + /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/ + ); + var parseRfc7231DateTime = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } @@ -10023,27 +9488,38 @@ var require_date_utils = __commonJS({ let match = IMF_FIXDATE.exec(value); if (match) { const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); + return buildDate( + strictParseShort(stripLeadingZeroes(yearStr)), + parseMonthByShortName(monthStr), + parseDateValue(dayStr, "day", 1, 31), + { hours, minutes, seconds, fractionalMilliseconds } + ); } match = RFC_850_DATE.exec(value); if (match) { const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { - hours, - minutes, - seconds, - fractionalMilliseconds - })); + return adjustRfc850Year( + buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { + hours, + minutes, + seconds, + fractionalMilliseconds + }) + ); } match = ASC_TIME.exec(value); if (match) { const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; - return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); + return buildDate( + strictParseShort(stripLeadingZeroes(yearStr)), + parseMonthByShortName(monthStr), + parseDateValue(dayStr.trimLeft(), "day", 1, 31), + { hours, minutes, seconds, fractionalMilliseconds } + ); } throw new TypeError("Invalid RFC-7231 date-time value"); - }; - exports.parseRfc7231DateTime = parseRfc7231DateTime; - var parseEpochTimestamp = (value) => { + }, "parseRfc7231DateTime"); + var parseEpochTimestamp = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } @@ -10051,7 +9527,7 @@ var require_date_utils = __commonJS({ if (typeof value === "number") { valueAsDouble = value; } else if (typeof value === "string") { - valueAsDouble = (0, parse_utils_1.strictParseDouble)(value); + valueAsDouble = strictParseDouble(value); } else { throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation"); } @@ -10059,37 +9535,57 @@ var require_date_utils = __commonJS({ throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics"); } return new Date(Math.round(valueAsDouble * 1e3)); - }; - exports.parseEpochTimestamp = parseEpochTimestamp; - var buildDate = (year, month, day, time) => { + }, "parseEpochTimestamp"); + var buildDate = /* @__PURE__ */ __name((year, month, day, time) => { const adjustedMonth = month - 1; validateDayOfMonth(year, adjustedMonth, day); - return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, "hour", 0, 23), parseDateValue(time.minutes, "minute", 0, 59), parseDateValue(time.seconds, "seconds", 0, 60), parseMilliseconds(time.fractionalMilliseconds))); - }; - var parseTwoDigitYear = (value) => { + return new Date( + Date.UTC( + year, + adjustedMonth, + day, + parseDateValue(time.hours, "hour", 0, 23), + parseDateValue(time.minutes, "minute", 0, 59), + // seconds can go up to 60 for leap seconds + parseDateValue(time.seconds, "seconds", 0, 60), + parseMilliseconds(time.fractionalMilliseconds) + ) + ); + }, "buildDate"); + var parseTwoDigitYear = /* @__PURE__ */ __name((value) => { const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear(); - const valueInThisCentury = Math.floor(thisYear / 100) * 100 + (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(value)); + const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort(stripLeadingZeroes(value)); if (valueInThisCentury < thisYear) { return valueInThisCentury + 100; } return valueInThisCentury; - }; + }, "parseTwoDigitYear"); var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3; - var adjustRfc850Year = (input) => { + var adjustRfc850Year = /* @__PURE__ */ __name((input) => { if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) { - return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds())); + return new Date( + Date.UTC( + input.getUTCFullYear() - 100, + input.getUTCMonth(), + input.getUTCDate(), + input.getUTCHours(), + input.getUTCMinutes(), + input.getUTCSeconds(), + input.getUTCMilliseconds() + ) + ); } return input; - }; - var parseMonthByShortName = (value) => { + }, "adjustRfc850Year"); + var parseMonthByShortName = /* @__PURE__ */ __name((value) => { const monthIdx = MONTHS.indexOf(value); if (monthIdx < 0) { throw new TypeError(`Invalid month: ${value}`); } return monthIdx + 1; - }; + }, "parseMonthByShortName"); var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - var validateDayOfMonth = (year, month, day) => { + var validateDayOfMonth = /* @__PURE__ */ __name((year, month, day) => { let maxDays = DAYS_IN_MONTH[month]; if (month === 1 && isLeapYear(year)) { maxDays = 29; @@ -10097,24 +9593,24 @@ var require_date_utils = __commonJS({ if (day > maxDays) { throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`); } - }; - var isLeapYear = (year) => { + }, "validateDayOfMonth"); + var isLeapYear = /* @__PURE__ */ __name((year) => { return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); - }; - var parseDateValue = (value, type, lower, upper) => { - const dateVal = (0, parse_utils_1.strictParseByte)(stripLeadingZeroes(value)); + }, "isLeapYear"); + var parseDateValue = /* @__PURE__ */ __name((value, type, lower, upper) => { + const dateVal = strictParseByte(stripLeadingZeroes(value)); if (dateVal < lower || dateVal > upper) { throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`); } return dateVal; - }; - var parseMilliseconds = (value) => { + }, "parseDateValue"); + var parseMilliseconds = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return 0; } - return (0, parse_utils_1.strictParseFloat32)("0." + value) * 1e3; - }; - var parseOffsetToMilliseconds = (value) => { + return strictParseFloat32("0." + value) * 1e3; + }, "parseMilliseconds"); + var parseOffsetToMilliseconds = /* @__PURE__ */ __name((value) => { const directionStr = value[0]; let direction = 1; if (directionStr == "+") { @@ -10127,8 +9623,8 @@ var require_date_utils = __commonJS({ const hour = Number(value.substring(1, 3)); const minute = Number(value.substring(4, 6)); return direction * (hour * 60 + minute) * 60 * 1e3; - }; - var stripLeadingZeroes = (value) => { + }, "parseOffsetToMilliseconds"); + var stripLeadingZeroes = /* @__PURE__ */ __name((value) => { let idx = 0; while (idx < value.length - 1 && value.charAt(idx) === "0") { idx++; @@ -10137,27 +9633,19 @@ var require_date_utils = __commonJS({ return value; } return value.slice(idx); - }; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/exceptions.js -var require_exceptions = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/exceptions.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.decorateServiceException = exports.ServiceException = void 0; - var ServiceException = class _ServiceException extends Error { + }, "stripLeadingZeroes"); + var _ServiceException = class _ServiceException2 extends Error { constructor(options) { super(options.message); - Object.setPrototypeOf(this, _ServiceException.prototype); + Object.setPrototypeOf(this, _ServiceException2.prototype); this.name = options.name; this.$fault = options.$fault; this.$metadata = options.$metadata; } }; - exports.ServiceException = ServiceException; - var decorateServiceException = (exception, additions = {}) => { + __name(_ServiceException, "ServiceException"); + var ServiceException = _ServiceException; + var decorateServiceException = /* @__PURE__ */ __name((exception, additions = {}) => { Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => { if (exception[k] == void 0 || exception[k] === "") { exception[k] = v; @@ -10167,54 +9655,29 @@ var require_exceptions = __commonJS({ exception.message = message; delete exception.Message; return exception; - }; - exports.decorateServiceException = decorateServiceException; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js -var require_default_error_handler = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.withBaseException = exports.throwDefaultError = void 0; - var exceptions_1 = require_exceptions(); - var throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => { + }, "decorateServiceException"); + var throwDefaultError = /* @__PURE__ */ __name(({ output, parsedBody, exceptionCtor, errorCode }) => { const $metadata = deserializeMetadata(output); const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0; const response = new exceptionCtor({ - name: (parsedBody === null || parsedBody === void 0 ? void 0 : parsedBody.code) || (parsedBody === null || parsedBody === void 0 ? void 0 : parsedBody.Code) || errorCode || statusCode || "UnknownError", + name: (parsedBody == null ? void 0 : parsedBody.code) || (parsedBody == null ? void 0 : parsedBody.Code) || errorCode || statusCode || "UnknownError", $fault: "client", $metadata }); - throw (0, exceptions_1.decorateServiceException)(response, parsedBody); - }; - exports.throwDefaultError = throwDefaultError; - var withBaseException = (ExceptionCtor) => { + throw decorateServiceException(response, parsedBody); + }, "throwDefaultError"); + var withBaseException = /* @__PURE__ */ __name((ExceptionCtor) => { return ({ output, parsedBody, errorCode }) => { - (0, exports.throwDefaultError)({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); - }; - }; - exports.withBaseException = withBaseException; - var deserializeMetadata = (output) => { - var _a, _b; - return { - httpStatusCode: output.statusCode, - requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"] + throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); }; - }; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/defaults-mode.js -var require_defaults_mode = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/defaults-mode.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.loadConfigsForDefaultMode = void 0; - var loadConfigsForDefaultMode = (mode) => { + }, "withBaseException"); + var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ + httpStatusCode: output.statusCode, + requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"] + }), "deserializeMetadata"); + var loadConfigsForDefaultMode = /* @__PURE__ */ __name((mode) => { switch (mode) { case "standard": return { @@ -10239,41 +9702,17 @@ var require_defaults_mode = __commonJS({ default: return {}; } - }; - exports.loadConfigsForDefaultMode = loadConfigsForDefaultMode; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js -var require_emitWarningIfUnsupportedVersion = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.emitWarningIfUnsupportedVersion = void 0; + }, "loadConfigsForDefaultMode"); var warningEmitted = false; - var emitWarningIfUnsupportedVersion = (version2) => { + var emitWarningIfUnsupportedVersion = /* @__PURE__ */ __name((version2) => { if (version2 && !warningEmitted && parseInt(version2.substring(1, version2.indexOf("."))) < 14) { warningEmitted = true; } - }; - exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/extensions/checksum.js -var require_checksum4 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/extensions/checksum.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveChecksumRuntimeConfig = exports.getChecksumConfiguration = exports.AlgorithmId = void 0; - var types_1 = require_dist_cjs(); - Object.defineProperty(exports, "AlgorithmId", { enumerable: true, get: function() { - return types_1.AlgorithmId; - } }); - var getChecksumConfiguration = (runtimeConfig) => { + }, "emitWarningIfUnsupportedVersion"); + var getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const checksumAlgorithms = []; - for (const id in types_1.AlgorithmId) { - const algorithmId = types_1.AlgorithmId[id]; + for (const id in import_types.AlgorithmId) { + const algorithmId = import_types.AlgorithmId[id]; if (runtimeConfig[algorithmId] === void 0) { continue; } @@ -10291,26 +9730,15 @@ var require_checksum4 = __commonJS({ return this._checksumAlgorithms; } }; - }; - exports.getChecksumConfiguration = getChecksumConfiguration; - var resolveChecksumRuntimeConfig = (clientConfig) => { + }, "getChecksumConfiguration"); + var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => { const runtimeConfig = {}; clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => { runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor(); }); return runtimeConfig; - }; - exports.resolveChecksumRuntimeConfig = resolveChecksumRuntimeConfig; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/extensions/retry.js -var require_retry3 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/extensions/retry.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveRetryRuntimeConfig = exports.getRetryConfiguration = void 0; - var getRetryConfiguration = (runtimeConfig) => { + }, "resolveChecksumRuntimeConfig"); + var getRetryConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { let _retryStrategy = runtimeConfig.retryStrategy; return { setRetryStrategy(retryStrategy) { @@ -10320,124 +9748,60 @@ var require_retry3 = __commonJS({ return _retryStrategy; } }; - }; - exports.getRetryConfiguration = getRetryConfiguration; - var resolveRetryRuntimeConfig = (retryStrategyConfiguration) => { + }, "getRetryConfiguration"); + var resolveRetryRuntimeConfig = /* @__PURE__ */ __name((retryStrategyConfiguration) => { const runtimeConfig = {}; runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy(); return runtimeConfig; - }; - exports.resolveRetryRuntimeConfig = resolveRetryRuntimeConfig; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/extensions/defaultExtensionConfiguration.js -var require_defaultExtensionConfiguration2 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/extensions/defaultExtensionConfiguration.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveDefaultRuntimeConfig = exports.getDefaultClientConfiguration = exports.getDefaultExtensionConfiguration = void 0; - var checksum_1 = require_checksum4(); - var retry_1 = require_retry3(); - var getDefaultExtensionConfiguration = (runtimeConfig) => { + }, "resolveRetryRuntimeConfig"); + var getDefaultExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { return { - ...(0, checksum_1.getChecksumConfiguration)(runtimeConfig), - ...(0, retry_1.getRetryConfiguration)(runtimeConfig) + ...getChecksumConfiguration(runtimeConfig), + ...getRetryConfiguration(runtimeConfig) }; - }; - exports.getDefaultExtensionConfiguration = getDefaultExtensionConfiguration; - exports.getDefaultClientConfiguration = exports.getDefaultExtensionConfiguration; - var resolveDefaultRuntimeConfig = (config) => { + }, "getDefaultExtensionConfiguration"); + var getDefaultClientConfiguration = getDefaultExtensionConfiguration; + var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => { return { - ...(0, checksum_1.resolveChecksumRuntimeConfig)(config), - ...(0, retry_1.resolveRetryRuntimeConfig)(config) + ...resolveChecksumRuntimeConfig(config), + ...resolveRetryRuntimeConfig(config) }; - }; - exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/extensions/index.js -var require_extensions4 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/extensions/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_defaultExtensionConfiguration2(), exports); - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/extended-encode-uri-component.js -var require_extended_encode_uri_component = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/extended-encode-uri-component.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.extendedEncodeURIComponent = void 0; + }, "resolveDefaultRuntimeConfig"); function extendedEncodeURIComponent(str) { return encodeURIComponent(str).replace(/[!'()*]/g, function(c) { return "%" + c.charCodeAt(0).toString(16).toUpperCase(); }); } - exports.extendedEncodeURIComponent = extendedEncodeURIComponent; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/get-array-if-single-item.js -var require_get_array_if_single_item = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/get-array-if-single-item.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getArrayIfSingleItem = void 0; - var getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; - exports.getArrayIfSingleItem = getArrayIfSingleItem; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/get-value-from-text-node.js -var require_get_value_from_text_node = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/get-value-from-text-node.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getValueFromTextNode = void 0; - var getValueFromTextNode = (obj) => { + __name(extendedEncodeURIComponent, "extendedEncodeURIComponent"); + var getArrayIfSingleItem = /* @__PURE__ */ __name((mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray], "getArrayIfSingleItem"); + var getValueFromTextNode = /* @__PURE__ */ __name((obj) => { const textNodeName = "#text"; for (const key in obj) { if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) { obj[key] = obj[key][textNodeName]; } else if (typeof obj[key] === "object" && obj[key] !== null) { - obj[key] = (0, exports.getValueFromTextNode)(obj[key]); + obj[key] = getValueFromTextNode(obj[key]); } } return obj; - }; - exports.getValueFromTextNode = getValueFromTextNode; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js -var require_lazy_json = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.LazyJsonString = exports.StringWrapper = void 0; - var StringWrapper = function() { + }, "getValueFromTextNode"); + var StringWrapper = /* @__PURE__ */ __name(function() { const Class = Object.getPrototypeOf(this).constructor; const Constructor = Function.bind.apply(String, [null, ...arguments]); const instance = new Constructor(); Object.setPrototypeOf(instance, Class.prototype); return instance; - }; - exports.StringWrapper = StringWrapper; - exports.StringWrapper.prototype = Object.create(String.prototype, { + }, "StringWrapper"); + StringWrapper.prototype = Object.create(String.prototype, { constructor: { - value: exports.StringWrapper, + value: StringWrapper, enumerable: false, writable: true, configurable: true } }); - Object.setPrototypeOf(exports.StringWrapper, String); - var LazyJsonString = class _LazyJsonString extends exports.StringWrapper { + Object.setPrototypeOf(StringWrapper, String); + var _LazyJsonString = class _LazyJsonString2 extends StringWrapper { deserializeJSON() { return JSON.parse(super.toString()); } @@ -10445,24 +9809,16 @@ var require_lazy_json = __commonJS({ return super.toString(); } static fromObject(object) { - if (object instanceof _LazyJsonString) { + if (object instanceof _LazyJsonString2) { return object; } else if (object instanceof String || typeof object === "string") { - return new _LazyJsonString(object); + return new _LazyJsonString2(object); } - return new _LazyJsonString(JSON.stringify(object)); + return new _LazyJsonString2(JSON.stringify(object)); } }; - exports.LazyJsonString = LazyJsonString; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/object-mapping.js -var require_object_mapping = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/object-mapping.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.take = exports.convertMap = exports.map = void 0; + __name(_LazyJsonString, "LazyJsonString"); + var LazyJsonString = _LazyJsonString; function map(arg0, arg1, arg2) { let target; let filter; @@ -10489,38 +9845,42 @@ var require_object_mapping = __commonJS({ } return target; } - exports.map = map; - var convertMap = (target) => { + __name(map, "map"); + var convertMap = /* @__PURE__ */ __name((target) => { const output = {}; for (const [k, v] of Object.entries(target || {})) { output[k] = [, v]; } return output; - }; - exports.convertMap = convertMap; - var take = (source, instructions) => { + }, "convertMap"); + var take = /* @__PURE__ */ __name((source, instructions) => { const out = {}; for (const key in instructions) { - applyInstruction(out, source, instructions, key); - } - return out; - }; - exports.take = take; - var mapWithFilter = (target, filter, instructions) => { - return map(target, Object.entries(instructions).reduce((_instructions, [key, value]) => { - if (Array.isArray(value)) { - _instructions[key] = value; - } else { - if (typeof value === "function") { - _instructions[key] = [filter, value()]; - } else { - _instructions[key] = [filter, value]; - } - } - return _instructions; - }, {})); - }; - var applyInstruction = (target, source, instructions, targetKey) => { + applyInstruction(out, source, instructions, key); + } + return out; + }, "take"); + var mapWithFilter = /* @__PURE__ */ __name((target, filter, instructions) => { + return map( + target, + Object.entries(instructions).reduce( + (_instructions, [key, value]) => { + if (Array.isArray(value)) { + _instructions[key] = value; + } else { + if (typeof value === "function") { + _instructions[key] = [filter, value()]; + } else { + _instructions[key] = [filter, value]; + } + } + return _instructions; + }, + {} + ) + ); + }, "mapWithFilter"); + var applyInstruction = /* @__PURE__ */ __name((target, source, instructions, targetKey) => { if (source !== null) { let instruction = instructions[targetKey]; if (typeof instruction === "function") { @@ -10549,42 +9909,25 @@ var require_object_mapping = __commonJS({ target[targetKey] = value; } } - }; - var nonNullish = (_) => _ != null; - var pass = (_) => _; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/resolve-path.js -var require_resolve_path = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/resolve-path.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolvedPath = void 0; - var extended_encode_uri_component_1 = require_extended_encode_uri_component(); - var resolvedPath = (resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { + }, "applyInstruction"); + var nonNullish = /* @__PURE__ */ __name((_) => _ != null, "nonNullish"); + var pass = /* @__PURE__ */ __name((_) => _, "pass"); + var resolvedPath = /* @__PURE__ */ __name((resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { if (input != null && input[memberName] !== void 0) { const labelValue = labelValueProvider(); if (labelValue.length <= 0) { throw new Error("Empty value provided for input HTTP label: " + memberName + "."); } - resolvedPath2 = resolvedPath2.replace(uriLabel, isGreedyLabel ? labelValue.split("/").map((segment) => (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(segment)).join("/") : (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(labelValue)); + resolvedPath2 = resolvedPath2.replace( + uriLabel, + isGreedyLabel ? labelValue.split("/").map((segment) => extendedEncodeURIComponent(segment)).join("/") : extendedEncodeURIComponent(labelValue) + ); } else { throw new Error("No value provided for input HTTP label: " + memberName + "."); } return resolvedPath2; - }; - exports.resolvedPath = resolvedPath; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/ser-utils.js -var require_ser_utils = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/ser-utils.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.serializeFloat = void 0; - var serializeFloat = (value) => { + }, "resolvedPath"); + var serializeFloat = /* @__PURE__ */ __name((value) => { if (value !== value) { return "NaN"; } @@ -10596,23 +9939,13 @@ var require_ser_utils = __commonJS({ default: return value; } - }; - exports.serializeFloat = serializeFloat; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/serde-json.js -var require_serde_json = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/serde-json.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports._json = void 0; - var _json = (obj) => { + }, "serializeFloat"); + var _json = /* @__PURE__ */ __name((obj) => { if (obj == null) { return {}; } if (Array.isArray(obj)) { - return obj.filter((_) => _ != null); + return obj.filter((_) => _ != null).map(_json); } if (typeof obj === "object") { const target = {}; @@ -10620,22 +9953,12 @@ var require_serde_json = __commonJS({ if (obj[key] == null) { continue; } - target[key] = (0, exports._json)(obj[key]); + target[key] = _json(obj[key]); } return target; } return obj; - }; - exports._json = _json; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/split-every.js -var require_split_every = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/split-every.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.splitEvery = void 0; + }, "_json"); function splitEvery(value, delimiter, numDelimiters) { if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); @@ -10662,47 +9985,400 @@ var require_split_every = __commonJS({ } return compoundSegments; } - exports.splitEvery = splitEvery; + __name(splitEvery, "splitEvery"); } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/index.js -var require_dist_cjs35 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/index.js"(exports) { +// ../../../node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +var require_isStreamingPayload = __commonJS({ + "../../../node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_NoOpLogger(), exports); - tslib_1.__exportStar(require_client3(), exports); - tslib_1.__exportStar(require_collect_stream_body(), exports); - tslib_1.__exportStar(require_command3(), exports); - tslib_1.__exportStar(require_constants6(), exports); - tslib_1.__exportStar(require_create_aggregated_client(), exports); - tslib_1.__exportStar(require_date_utils(), exports); - tslib_1.__exportStar(require_default_error_handler(), exports); - tslib_1.__exportStar(require_defaults_mode(), exports); - tslib_1.__exportStar(require_emitWarningIfUnsupportedVersion(), exports); - tslib_1.__exportStar(require_extensions4(), exports); - tslib_1.__exportStar(require_exceptions(), exports); - tslib_1.__exportStar(require_extended_encode_uri_component(), exports); - tslib_1.__exportStar(require_get_array_if_single_item(), exports); - tslib_1.__exportStar(require_get_value_from_text_node(), exports); - tslib_1.__exportStar(require_lazy_json(), exports); - tslib_1.__exportStar(require_object_mapping(), exports); - tslib_1.__exportStar(require_parse_utils(), exports); - tslib_1.__exportStar(require_resolve_path(), exports); - tslib_1.__exportStar(require_ser_utils(), exports); - tslib_1.__exportStar(require_serde_json(), exports); - tslib_1.__exportStar(require_split_every(), exports); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isStreamingPayload = void 0; + var stream_1 = require("stream"); + var isStreamingPayload = (request2) => (request2 === null || request2 === void 0 ? void 0 : request2.body) instanceof stream_1.Readable || typeof ReadableStream !== "undefined" && (request2 === null || request2 === void 0 ? void 0 : request2.body) instanceof ReadableStream; + exports2.isStreamingPayload = isStreamingPayload; + } +}); + +// ../../../node_modules/@smithy/middleware-retry/dist-cjs/index.js +var require_dist_cjs37 = __commonJS({ + "../../../node_modules/@smithy/middleware-retry/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + AdaptiveRetryStrategy: () => AdaptiveRetryStrategy, + CONFIG_MAX_ATTEMPTS: () => CONFIG_MAX_ATTEMPTS, + CONFIG_RETRY_MODE: () => CONFIG_RETRY_MODE, + ENV_MAX_ATTEMPTS: () => ENV_MAX_ATTEMPTS, + ENV_RETRY_MODE: () => ENV_RETRY_MODE, + NODE_MAX_ATTEMPT_CONFIG_OPTIONS: () => NODE_MAX_ATTEMPT_CONFIG_OPTIONS, + NODE_RETRY_MODE_CONFIG_OPTIONS: () => NODE_RETRY_MODE_CONFIG_OPTIONS, + StandardRetryStrategy: () => StandardRetryStrategy, + defaultDelayDecider: () => defaultDelayDecider, + defaultRetryDecider: () => defaultRetryDecider, + getOmitRetryHeadersPlugin: () => getOmitRetryHeadersPlugin, + getRetryAfterHint: () => getRetryAfterHint, + getRetryPlugin: () => getRetryPlugin, + omitRetryHeadersMiddleware: () => omitRetryHeadersMiddleware, + omitRetryHeadersMiddlewareOptions: () => omitRetryHeadersMiddlewareOptions, + resolveRetryConfig: () => resolveRetryConfig, + retryMiddleware: () => retryMiddleware, + retryMiddlewareOptions: () => retryMiddlewareOptions + }); + module2.exports = __toCommonJS2(src_exports); + var import_protocol_http = require_dist_cjs2(); + var import_uuid = (init_esm_node(), __toCommonJS(esm_node_exports)); + var import_util_retry = require_dist_cjs30(); + var getDefaultRetryQuota = /* @__PURE__ */ __name((initialRetryTokens, options) => { + const MAX_CAPACITY = initialRetryTokens; + const noRetryIncrement = (options == null ? void 0 : options.noRetryIncrement) ?? import_util_retry.NO_RETRY_INCREMENT; + const retryCost = (options == null ? void 0 : options.retryCost) ?? import_util_retry.RETRY_COST; + const timeoutRetryCost = (options == null ? void 0 : options.timeoutRetryCost) ?? import_util_retry.TIMEOUT_RETRY_COST; + let availableCapacity = initialRetryTokens; + const getCapacityAmount = /* @__PURE__ */ __name((error) => error.name === "TimeoutError" ? timeoutRetryCost : retryCost, "getCapacityAmount"); + const hasRetryTokens = /* @__PURE__ */ __name((error) => getCapacityAmount(error) <= availableCapacity, "hasRetryTokens"); + const retrieveRetryTokens = /* @__PURE__ */ __name((error) => { + if (!hasRetryTokens(error)) { + throw new Error("No retry token available"); + } + const capacityAmount = getCapacityAmount(error); + availableCapacity -= capacityAmount; + return capacityAmount; + }, "retrieveRetryTokens"); + const releaseRetryTokens = /* @__PURE__ */ __name((capacityReleaseAmount) => { + availableCapacity += capacityReleaseAmount ?? noRetryIncrement; + availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); + }, "releaseRetryTokens"); + return Object.freeze({ + hasRetryTokens, + retrieveRetryTokens, + releaseRetryTokens + }); + }, "getDefaultRetryQuota"); + var defaultDelayDecider = /* @__PURE__ */ __name((delayBase, attempts) => Math.floor(Math.min(import_util_retry.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)), "defaultDelayDecider"); + var import_service_error_classification = require_dist_cjs29(); + var defaultRetryDecider = /* @__PURE__ */ __name((error) => { + if (!error) { + return false; + } + return (0, import_service_error_classification.isRetryableByTrait)(error) || (0, import_service_error_classification.isClockSkewError)(error) || (0, import_service_error_classification.isThrottlingError)(error) || (0, import_service_error_classification.isTransientError)(error); + }, "defaultRetryDecider"); + var asSdkError = /* @__PURE__ */ __name((error) => { + if (error instanceof Error) + return error; + if (error instanceof Object) + return Object.assign(new Error(), error); + if (typeof error === "string") + return new Error(error); + return new Error(`AWS SDK error wrapper for ${error}`); + }, "asSdkError"); + var _StandardRetryStrategy = class _StandardRetryStrategy { + constructor(maxAttemptsProvider, options) { + this.maxAttemptsProvider = maxAttemptsProvider; + this.mode = import_util_retry.RETRY_MODES.STANDARD; + this.retryDecider = (options == null ? void 0 : options.retryDecider) ?? defaultRetryDecider; + this.delayDecider = (options == null ? void 0 : options.delayDecider) ?? defaultDelayDecider; + this.retryQuota = (options == null ? void 0 : options.retryQuota) ?? getDefaultRetryQuota(import_util_retry.INITIAL_RETRY_TOKENS); + } + shouldRetry(error, attempts, maxAttempts) { + return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error); + } + async getMaxAttempts() { + let maxAttempts; + try { + maxAttempts = await this.maxAttemptsProvider(); + } catch (error) { + maxAttempts = import_util_retry.DEFAULT_MAX_ATTEMPTS; + } + return maxAttempts; + } + async retry(next, args, options) { + let retryTokenAmount; + let attempts = 0; + let totalDelay = 0; + const maxAttempts = await this.getMaxAttempts(); + const { request: request2 } = args; + if (import_protocol_http.HttpRequest.isInstance(request2)) { + request2.headers[import_util_retry.INVOCATION_ID_HEADER] = (0, import_uuid.v4)(); + } + while (true) { + try { + if (import_protocol_http.HttpRequest.isInstance(request2)) { + request2.headers[import_util_retry.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; + } + if (options == null ? void 0 : options.beforeRequest) { + await options.beforeRequest(); + } + const { response, output } = await next(args); + if (options == null ? void 0 : options.afterRequest) { + options.afterRequest(response); + } + this.retryQuota.releaseRetryTokens(retryTokenAmount); + output.$metadata.attempts = attempts + 1; + output.$metadata.totalRetryDelay = totalDelay; + return { response, output }; + } catch (e) { + const err = asSdkError(e); + attempts++; + if (this.shouldRetry(err, attempts, maxAttempts)) { + retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); + const delayFromDecider = this.delayDecider( + (0, import_service_error_classification.isThrottlingError)(err) ? import_util_retry.THROTTLING_RETRY_DELAY_BASE : import_util_retry.DEFAULT_RETRY_DELAY_BASE, + attempts + ); + const delayFromResponse = getDelayFromRetryAfterHeader(err.$response); + const delay = Math.max(delayFromResponse || 0, delayFromDecider); + totalDelay += delay; + await new Promise((resolve) => setTimeout(resolve, delay)); + continue; + } + if (!err.$metadata) { + err.$metadata = {}; + } + err.$metadata.attempts = attempts; + err.$metadata.totalRetryDelay = totalDelay; + throw err; + } + } + } + }; + __name(_StandardRetryStrategy, "StandardRetryStrategy"); + var StandardRetryStrategy = _StandardRetryStrategy; + var getDelayFromRetryAfterHeader = /* @__PURE__ */ __name((response) => { + if (!import_protocol_http.HttpResponse.isInstance(response)) + return; + const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); + if (!retryAfterHeaderName) + return; + const retryAfter = response.headers[retryAfterHeaderName]; + const retryAfterSeconds = Number(retryAfter); + if (!Number.isNaN(retryAfterSeconds)) + return retryAfterSeconds * 1e3; + const retryAfterDate = new Date(retryAfter); + return retryAfterDate.getTime() - Date.now(); + }, "getDelayFromRetryAfterHeader"); + var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy extends StandardRetryStrategy { + constructor(maxAttemptsProvider, options) { + const { rateLimiter, ...superOptions } = options ?? {}; + super(maxAttemptsProvider, superOptions); + this.rateLimiter = rateLimiter ?? new import_util_retry.DefaultRateLimiter(); + this.mode = import_util_retry.RETRY_MODES.ADAPTIVE; + } + async retry(next, args) { + return super.retry(next, args, { + beforeRequest: async () => { + return this.rateLimiter.getSendToken(); + }, + afterRequest: (response) => { + this.rateLimiter.updateClientSendingRate(response); + } + }); + } + }; + __name(_AdaptiveRetryStrategy, "AdaptiveRetryStrategy"); + var AdaptiveRetryStrategy = _AdaptiveRetryStrategy; + var import_util_middleware = require_dist_cjs10(); + var ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; + var CONFIG_MAX_ATTEMPTS = "max_attempts"; + var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + const value = env[ENV_MAX_ATTEMPTS]; + if (!value) + return void 0; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(`Environment variable ${ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`); + } + return maxAttempt; + }, + configFileSelector: (profile) => { + const value = profile[CONFIG_MAX_ATTEMPTS]; + if (!value) + return void 0; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(`Shared config file entry ${CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`); + } + return maxAttempt; + }, + default: import_util_retry.DEFAULT_MAX_ATTEMPTS + }; + var resolveRetryConfig = /* @__PURE__ */ __name((input) => { + const { retryStrategy } = input; + const maxAttempts = (0, import_util_middleware.normalizeProvider)(input.maxAttempts ?? import_util_retry.DEFAULT_MAX_ATTEMPTS); + return { + ...input, + maxAttempts, + retryStrategy: async () => { + if (retryStrategy) { + return retryStrategy; + } + const retryMode = await (0, import_util_middleware.normalizeProvider)(input.retryMode)(); + if (retryMode === import_util_retry.RETRY_MODES.ADAPTIVE) { + return new import_util_retry.AdaptiveRetryStrategy(maxAttempts); + } + return new import_util_retry.StandardRetryStrategy(maxAttempts); + } + }; + }, "resolveRetryConfig"); + var ENV_RETRY_MODE = "AWS_RETRY_MODE"; + var CONFIG_RETRY_MODE = "retry_mode"; + var NODE_RETRY_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[ENV_RETRY_MODE], + configFileSelector: (profile) => profile[CONFIG_RETRY_MODE], + default: import_util_retry.DEFAULT_RETRY_MODE + }; + var omitRetryHeadersMiddleware = /* @__PURE__ */ __name(() => (next) => async (args) => { + const { request: request2 } = args; + if (import_protocol_http.HttpRequest.isInstance(request2)) { + delete request2.headers[import_util_retry.INVOCATION_ID_HEADER]; + delete request2.headers[import_util_retry.REQUEST_HEADER]; + } + return next(args); + }, "omitRetryHeadersMiddleware"); + var omitRetryHeadersMiddlewareOptions = { + name: "omitRetryHeadersMiddleware", + tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"], + relation: "before", + toMiddleware: "awsAuthMiddleware", + override: true + }; + var getOmitRetryHeadersPlugin = /* @__PURE__ */ __name((options) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions); + } + }), "getOmitRetryHeadersPlugin"); + var import_smithy_client = require_dist_cjs36(); + var import_isStreamingPayload = require_isStreamingPayload(); + var retryMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => { + var _a; + let retryStrategy = await options.retryStrategy(); + const maxAttempts = await options.maxAttempts(); + if (isRetryStrategyV2(retryStrategy)) { + retryStrategy = retryStrategy; + let retryToken = await retryStrategy.acquireInitialRetryToken(context["partition_id"]); + let lastError = new Error(); + let attempts = 0; + let totalRetryDelay = 0; + const { request: request2 } = args; + const isRequest = import_protocol_http.HttpRequest.isInstance(request2); + if (isRequest) { + request2.headers[import_util_retry.INVOCATION_ID_HEADER] = (0, import_uuid.v4)(); + } + while (true) { + try { + if (isRequest) { + request2.headers[import_util_retry.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; + } + const { response, output } = await next(args); + retryStrategy.recordSuccess(retryToken); + output.$metadata.attempts = attempts + 1; + output.$metadata.totalRetryDelay = totalRetryDelay; + return { response, output }; + } catch (e) { + const retryErrorInfo = getRetryErrorInfo(e); + lastError = asSdkError(e); + if (isRequest && (0, import_isStreamingPayload.isStreamingPayload)(request2)) { + (_a = context.logger instanceof import_smithy_client.NoOpLogger ? console : context.logger) == null ? void 0 : _a.warn( + "An error was encountered in a non-retryable streaming request." + ); + throw lastError; + } + try { + retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo); + } catch (refreshError) { + if (!lastError.$metadata) { + lastError.$metadata = {}; + } + lastError.$metadata.attempts = attempts + 1; + lastError.$metadata.totalRetryDelay = totalRetryDelay; + throw lastError; + } + attempts = retryToken.getRetryCount(); + const delay = retryToken.getRetryDelay(); + totalRetryDelay += delay; + await new Promise((resolve) => setTimeout(resolve, delay)); + } + } + } else { + retryStrategy = retryStrategy; + if (retryStrategy == null ? void 0 : retryStrategy.mode) + context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]]; + return retryStrategy.retry(next, args); + } + }, "retryMiddleware"); + var isRetryStrategyV2 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2"); + var getRetryErrorInfo = /* @__PURE__ */ __name((error) => { + const errorInfo = { + errorType: getRetryErrorType(error) + }; + const retryAfterHint = getRetryAfterHint(error.$response); + if (retryAfterHint) { + errorInfo.retryAfterHint = retryAfterHint; + } + return errorInfo; + }, "getRetryErrorInfo"); + var getRetryErrorType = /* @__PURE__ */ __name((error) => { + if ((0, import_service_error_classification.isThrottlingError)(error)) + return "THROTTLING"; + if ((0, import_service_error_classification.isTransientError)(error)) + return "TRANSIENT"; + if ((0, import_service_error_classification.isServerError)(error)) + return "SERVER_ERROR"; + return "CLIENT_ERROR"; + }, "getRetryErrorType"); + var retryMiddlewareOptions = { + name: "retryMiddleware", + tags: ["RETRY"], + step: "finalizeRequest", + priority: "high", + override: true + }; + var getRetryPlugin = /* @__PURE__ */ __name((options) => ({ + applyToStack: (clientStack) => { + clientStack.add(retryMiddleware(options), retryMiddlewareOptions); + } + }), "getRetryPlugin"); + var getRetryAfterHint = /* @__PURE__ */ __name((response) => { + if (!import_protocol_http.HttpResponse.isInstance(response)) + return; + const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); + if (!retryAfterHeaderName) + return; + const retryAfter = response.headers[retryAfterHeaderName]; + const retryAfterSeconds = Number(retryAfter); + if (!Number.isNaN(retryAfterSeconds)) + return new Date(retryAfterSeconds * 1e3); + const retryAfterDate = new Date(retryAfter); + return retryAfterDate; + }, "getRetryAfterHint"); } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/EndpointParameters.js var require_EndpointParameters = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/EndpointParameters.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/EndpointParameters.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveClientEndpointParameters = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveClientEndpointParameters = void 0; var resolveClientEndpointParameters = (options) => { return { ...options, @@ -10711,17 +10387,17 @@ var require_EndpointParameters = __commonJS({ defaultSigningName: "states" }; }; - exports.resolveClientEndpointParameters = resolveClientEndpointParameters; + exports2.resolveClientEndpointParameters = resolveClientEndpointParameters; } }); // ../../../node_modules/@aws-sdk/client-sfn/package.json var require_package = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/package.json"(exports, module2) { + "../../../node_modules/@aws-sdk/client-sfn/package.json"(exports2, module2) { module2.exports = { name: "@aws-sdk/client-sfn", description: "AWS SDK for JavaScript Sfn Client for Node.js, Browser and React Native", - version: "3.414.0", + version: "3.421.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "tsc -p tsconfig.cjs.json", @@ -10741,39 +10417,39 @@ var require_package = __commonJS({ dependencies: { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/client-sts": "3.414.0", - "@aws-sdk/credential-provider-node": "3.414.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-signing": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/region-config-resolver": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/protocol-http": "^3.0.3", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", + "@aws-sdk/client-sts": "3.421.0", + "@aws-sdk/credential-provider-node": "3.421.0", + "@aws-sdk/middleware-host-header": "3.418.0", + "@aws-sdk/middleware-logger": "3.418.0", + "@aws-sdk/middleware-recursion-detection": "3.418.0", + "@aws-sdk/middleware-signing": "3.418.0", + "@aws-sdk/middleware-user-agent": "3.418.0", + "@aws-sdk/region-config-resolver": "3.418.0", + "@aws-sdk/types": "3.418.0", + "@aws-sdk/util-endpoints": "3.418.0", + "@aws-sdk/util-user-agent-browser": "3.418.0", + "@aws-sdk/util-user-agent-node": "3.418.0", + "@smithy/config-resolver": "^2.0.10", + "@smithy/fetch-http-handler": "^2.1.5", + "@smithy/hash-node": "^2.0.9", + "@smithy/invalid-dependency": "^2.0.9", + "@smithy/middleware-content-length": "^2.0.11", + "@smithy/middleware-endpoint": "^2.0.9", + "@smithy/middleware-retry": "^2.0.12", + "@smithy/middleware-serde": "^2.0.9", + "@smithy/middleware-stack": "^2.0.2", + "@smithy/node-config-provider": "^2.0.12", + "@smithy/node-http-handler": "^2.1.5", + "@smithy/protocol-http": "^3.0.5", + "@smithy/smithy-client": "^2.1.6", + "@smithy/types": "^2.3.3", + "@smithy/url-parser": "^2.0.9", "@smithy/util-base64": "^2.0.0", "@smithy/util-body-length-browser": "^2.0.0", "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", + "@smithy/util-defaults-mode-browser": "^2.0.10", + "@smithy/util-defaults-mode-node": "^2.0.12", + "@smithy/util-retry": "^2.0.2", "@smithy/util-utf8": "^2.0.0", tslib: "^2.5.0" }, @@ -10822,26 +10498,26 @@ var require_package = __commonJS({ }); // ../../../node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js -var require_dist_cjs36 = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js"(exports) { +var require_dist_cjs38 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveStsAuthConfig = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveStsAuthConfig = void 0; var middleware_signing_1 = require_dist_cjs16(); var resolveStsAuthConfig = (input, { stsClientCtor }) => (0, middleware_signing_1.resolveAwsAuthConfig)({ ...input, stsClientCtor }); - exports.resolveStsAuthConfig = resolveStsAuthConfig; + exports2.resolveStsAuthConfig = resolveStsAuthConfig; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js var require_EndpointParameters2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveClientEndpointParameters = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveClientEndpointParameters = void 0; var resolveClientEndpointParameters = (options) => { return { ...options, @@ -10851,17 +10527,17 @@ var require_EndpointParameters2 = __commonJS({ defaultSigningName: "sts" }; }; - exports.resolveClientEndpointParameters = resolveClientEndpointParameters; + exports2.resolveClientEndpointParameters = resolveClientEndpointParameters; } }); // ../../../node_modules/@aws-sdk/client-sts/package.json var require_package2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/package.json"(exports, module2) { + "../../../node_modules/@aws-sdk/client-sts/package.json"(exports2, module2) { module2.exports = { name: "@aws-sdk/client-sts", description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native", - version: "3.414.0", + version: "3.421.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "tsc -p tsconfig.cjs.json", @@ -10883,39 +10559,39 @@ var require_package2 = __commonJS({ dependencies: { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/credential-provider-node": "3.414.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-sdk-sts": "3.413.0", - "@aws-sdk/middleware-signing": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/region-config-resolver": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/protocol-http": "^3.0.3", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", + "@aws-sdk/credential-provider-node": "3.421.0", + "@aws-sdk/middleware-host-header": "3.418.0", + "@aws-sdk/middleware-logger": "3.418.0", + "@aws-sdk/middleware-recursion-detection": "3.418.0", + "@aws-sdk/middleware-sdk-sts": "3.418.0", + "@aws-sdk/middleware-signing": "3.418.0", + "@aws-sdk/middleware-user-agent": "3.418.0", + "@aws-sdk/region-config-resolver": "3.418.0", + "@aws-sdk/types": "3.418.0", + "@aws-sdk/util-endpoints": "3.418.0", + "@aws-sdk/util-user-agent-browser": "3.418.0", + "@aws-sdk/util-user-agent-node": "3.418.0", + "@smithy/config-resolver": "^2.0.10", + "@smithy/fetch-http-handler": "^2.1.5", + "@smithy/hash-node": "^2.0.9", + "@smithy/invalid-dependency": "^2.0.9", + "@smithy/middleware-content-length": "^2.0.11", + "@smithy/middleware-endpoint": "^2.0.9", + "@smithy/middleware-retry": "^2.0.12", + "@smithy/middleware-serde": "^2.0.9", + "@smithy/middleware-stack": "^2.0.2", + "@smithy/node-config-provider": "^2.0.12", + "@smithy/node-http-handler": "^2.1.5", + "@smithy/protocol-http": "^3.0.5", + "@smithy/smithy-client": "^2.1.6", + "@smithy/types": "^2.3.3", + "@smithy/url-parser": "^2.0.9", "@smithy/util-base64": "^2.0.0", "@smithy/util-body-length-browser": "^2.0.0", "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", + "@smithy/util-defaults-mode-browser": "^2.0.10", + "@smithy/util-defaults-mode-node": "^2.0.12", + "@smithy/util-retry": "^2.0.2", "@smithy/util-utf8": "^2.0.0", "fast-xml-parser": "4.2.5", tslib: "^2.5.0" @@ -10966,12 +10642,12 @@ var require_package2 = __commonJS({ // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js var require_STSServiceException = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.STSServiceException = exports.__ServiceException = void 0; - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function() { + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.STSServiceException = exports2.__ServiceException = void 0; + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "__ServiceException", { enumerable: true, get: function() { return smithy_client_1.ServiceException; } }); var STSServiceException = class _STSServiceException extends smithy_client_1.ServiceException { @@ -10980,17 +10656,17 @@ var require_STSServiceException = __commonJS({ Object.setPrototypeOf(this, _STSServiceException.prototype); } }; - exports.STSServiceException = STSServiceException; + exports2.STSServiceException = STSServiceException; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js var require_models_0 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.GetSessionTokenResponseFilterSensitiveLog = exports.GetFederationTokenResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = exports.AssumeRoleResponseFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.InvalidAuthorizationMessageException = exports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = void 0; - var smithy_client_1 = require_dist_cjs35(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GetSessionTokenResponseFilterSensitiveLog = exports2.GetFederationTokenResponseFilterSensitiveLog = exports2.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = exports2.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = exports2.AssumeRoleWithSAMLResponseFilterSensitiveLog = exports2.AssumeRoleWithSAMLRequestFilterSensitiveLog = exports2.AssumeRoleResponseFilterSensitiveLog = exports2.CredentialsFilterSensitiveLog = exports2.InvalidAuthorizationMessageException = exports2.IDPCommunicationErrorException = exports2.InvalidIdentityTokenException = exports2.IDPRejectedClaimException = exports2.RegionDisabledException = exports2.PackedPolicyTooLargeException = exports2.MalformedPolicyDocumentException = exports2.ExpiredTokenException = void 0; + var smithy_client_1 = require_dist_cjs36(); var STSServiceException_1 = require_STSServiceException(); var ExpiredTokenException = class _ExpiredTokenException extends STSServiceException_1.STSServiceException { constructor(opts) { @@ -11004,7 +10680,7 @@ var require_models_0 = __commonJS({ Object.setPrototypeOf(this, _ExpiredTokenException.prototype); } }; - exports.ExpiredTokenException = ExpiredTokenException; + exports2.ExpiredTokenException = ExpiredTokenException; var MalformedPolicyDocumentException = class _MalformedPolicyDocumentException extends STSServiceException_1.STSServiceException { constructor(opts) { super({ @@ -11017,7 +10693,7 @@ var require_models_0 = __commonJS({ Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype); } }; - exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; + exports2.MalformedPolicyDocumentException = MalformedPolicyDocumentException; var PackedPolicyTooLargeException = class _PackedPolicyTooLargeException extends STSServiceException_1.STSServiceException { constructor(opts) { super({ @@ -11030,7 +10706,7 @@ var require_models_0 = __commonJS({ Object.setPrototypeOf(this, _PackedPolicyTooLargeException.prototype); } }; - exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; + exports2.PackedPolicyTooLargeException = PackedPolicyTooLargeException; var RegionDisabledException = class _RegionDisabledException extends STSServiceException_1.STSServiceException { constructor(opts) { super({ @@ -11043,7 +10719,7 @@ var require_models_0 = __commonJS({ Object.setPrototypeOf(this, _RegionDisabledException.prototype); } }; - exports.RegionDisabledException = RegionDisabledException; + exports2.RegionDisabledException = RegionDisabledException; var IDPRejectedClaimException = class _IDPRejectedClaimException extends STSServiceException_1.STSServiceException { constructor(opts) { super({ @@ -11056,7 +10732,7 @@ var require_models_0 = __commonJS({ Object.setPrototypeOf(this, _IDPRejectedClaimException.prototype); } }; - exports.IDPRejectedClaimException = IDPRejectedClaimException; + exports2.IDPRejectedClaimException = IDPRejectedClaimException; var InvalidIdentityTokenException = class _InvalidIdentityTokenException extends STSServiceException_1.STSServiceException { constructor(opts) { super({ @@ -11069,7 +10745,7 @@ var require_models_0 = __commonJS({ Object.setPrototypeOf(this, _InvalidIdentityTokenException.prototype); } }; - exports.InvalidIdentityTokenException = InvalidIdentityTokenException; + exports2.InvalidIdentityTokenException = InvalidIdentityTokenException; var IDPCommunicationErrorException = class _IDPCommunicationErrorException extends STSServiceException_1.STSServiceException { constructor(opts) { super({ @@ -11082,7 +10758,7 @@ var require_models_0 = __commonJS({ Object.setPrototypeOf(this, _IDPCommunicationErrorException.prototype); } }; - exports.IDPCommunicationErrorException = IDPCommunicationErrorException; + exports2.IDPCommunicationErrorException = IDPCommunicationErrorException; var InvalidAuthorizationMessageException = class _InvalidAuthorizationMessageException extends STSServiceException_1.STSServiceException { constructor(opts) { super({ @@ -11095,53 +10771,53 @@ var require_models_0 = __commonJS({ Object.setPrototypeOf(this, _InvalidAuthorizationMessageException.prototype); } }; - exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; + exports2.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; var CredentialsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.SecretAccessKey && { SecretAccessKey: smithy_client_1.SENSITIVE_STRING } }); - exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog; + exports2.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog; var AssumeRoleResponseFilterSensitiveLog = (obj) => ({ ...obj, - ...obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) } + ...obj.Credentials && { Credentials: (0, exports2.CredentialsFilterSensitiveLog)(obj.Credentials) } }); - exports.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog; + exports2.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog; var AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({ ...obj, ...obj.SAMLAssertion && { SAMLAssertion: smithy_client_1.SENSITIVE_STRING } }); - exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = AssumeRoleWithSAMLRequestFilterSensitiveLog; + exports2.AssumeRoleWithSAMLRequestFilterSensitiveLog = AssumeRoleWithSAMLRequestFilterSensitiveLog; var AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({ ...obj, - ...obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) } + ...obj.Credentials && { Credentials: (0, exports2.CredentialsFilterSensitiveLog)(obj.Credentials) } }); - exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = AssumeRoleWithSAMLResponseFilterSensitiveLog; + exports2.AssumeRoleWithSAMLResponseFilterSensitiveLog = AssumeRoleWithSAMLResponseFilterSensitiveLog; var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ ...obj, ...obj.WebIdentityToken && { WebIdentityToken: smithy_client_1.SENSITIVE_STRING } }); - exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog; + exports2.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog; var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ ...obj, - ...obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) } + ...obj.Credentials && { Credentials: (0, exports2.CredentialsFilterSensitiveLog)(obj.Credentials) } }); - exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog; + exports2.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog; var GetFederationTokenResponseFilterSensitiveLog = (obj) => ({ ...obj, - ...obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) } + ...obj.Credentials && { Credentials: (0, exports2.CredentialsFilterSensitiveLog)(obj.Credentials) } }); - exports.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog; + exports2.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog; var GetSessionTokenResponseFilterSensitiveLog = (obj) => ({ ...obj, - ...obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) } + ...obj.Credentials && { Credentials: (0, exports2.CredentialsFilterSensitiveLog)(obj.Credentials) } }); - exports.GetSessionTokenResponseFilterSensitiveLog = GetSessionTokenResponseFilterSensitiveLog; + exports2.GetSessionTokenResponseFilterSensitiveLog = GetSessionTokenResponseFilterSensitiveLog; } }); // ../../../node_modules/fast-xml-parser/src/util.js -var require_util4 = __commonJS({ - "../../../node_modules/fast-xml-parser/src/util.js"(exports) { +var require_util2 = __commonJS({ + "../../../node_modules/fast-xml-parser/src/util.js"(exports2) { "use strict"; var nameStartChar = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"; var nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040"; @@ -11166,13 +10842,13 @@ var require_util4 = __commonJS({ const match = regexName.exec(string); return !(match === null || typeof match === "undefined"); }; - exports.isExist = function(v) { + exports2.isExist = function(v) { return typeof v !== "undefined"; }; - exports.isEmptyObject = function(obj) { + exports2.isEmptyObject = function(obj) { return Object.keys(obj).length === 0; }; - exports.merge = function(target, a, arrayMode) { + exports2.merge = function(target, a, arrayMode) { if (a) { const keys = Object.keys(a); const len = keys.length; @@ -11185,30 +10861,30 @@ var require_util4 = __commonJS({ } } }; - exports.getValue = function(v) { - if (exports.isExist(v)) { + exports2.getValue = function(v) { + if (exports2.isExist(v)) { return v; } else { return ""; } }; - exports.isName = isName; - exports.getAllMatches = getAllMatches; - exports.nameRegexp = nameRegexp; + exports2.isName = isName; + exports2.getAllMatches = getAllMatches; + exports2.nameRegexp = nameRegexp; } }); // ../../../node_modules/fast-xml-parser/src/validator.js var require_validator = __commonJS({ - "../../../node_modules/fast-xml-parser/src/validator.js"(exports) { + "../../../node_modules/fast-xml-parser/src/validator.js"(exports2) { "use strict"; - var util = require_util4(); + var util = require_util2(); var defaultOptions = { allowBooleanAttributes: false, //A tag can have attributes without any value unpairedTags: [] }; - exports.validate = function(xmlData, options) { + exports2.validate = function(xmlData, options) { options = Object.assign({}, defaultOptions, options); const tags = []; let tagFound = false; @@ -11512,7 +11188,7 @@ var require_validator = __commonJS({ // ../../../node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js var require_OptionsBuilder = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"(exports) { + "../../../node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"(exports2) { var defaultOptions = { preserveOrder: false, attributeNamePrefix: "@_", @@ -11560,14 +11236,14 @@ var require_OptionsBuilder = __commonJS({ var buildOptions = function(options) { return Object.assign({}, defaultOptions, options); }; - exports.buildOptions = buildOptions; - exports.defaultOptions = defaultOptions; + exports2.buildOptions = buildOptions; + exports2.defaultOptions = defaultOptions; } }); // ../../../node_modules/fast-xml-parser/src/xmlparser/xmlNode.js var require_xmlNode = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"(exports, module2) { + "../../../node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"(exports2, module2) { "use strict"; var XmlNode = class { constructor(tagname) { @@ -11596,8 +11272,8 @@ var require_xmlNode = __commonJS({ // ../../../node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js var require_DocTypeReader = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"(exports, module2) { - var util = require_util4(); + "../../../node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"(exports2, module2) { + var util = require_util2(); function readDocType(xmlData, i) { const entities = {}; if (xmlData[i + 3] === "O" && xmlData[i + 4] === "C" && xmlData[i + 5] === "T" && xmlData[i + 6] === "Y" && xmlData[i + 7] === "P" && xmlData[i + 8] === "E") { @@ -11705,7 +11381,7 @@ var require_DocTypeReader = __commonJS({ // ../../../node_modules/strnum/strnum.js var require_strnum = __commonJS({ - "../../../node_modules/strnum/strnum.js"(exports, module2) { + "../../../node_modules/strnum/strnum.js"(exports2, module2) { var hexRegex = /^[-+]?0x[a-fA-F0-9]+$/; var numRegex = /^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/; if (!Number.parseInt && window.parseInt) { @@ -11802,9 +11478,9 @@ var require_strnum = __commonJS({ // ../../../node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js var require_OrderedObjParser = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"(exports, module2) { + "../../../node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"(exports2, module2) { "use strict"; - var util = require_util4(); + var util = require_util2(); var xmlNode = require_xmlNode(); var readDocType = require_DocTypeReader(); var toNumber = require_strnum(); @@ -12292,7 +11968,7 @@ var require_OrderedObjParser = __commonJS({ // ../../../node_modules/fast-xml-parser/src/xmlparser/node2json.js var require_node2json = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlparser/node2json.js"(exports) { + "../../../node_modules/fast-xml-parser/src/xmlparser/node2json.js"(exports2) { "use strict"; function prettify(node, options) { return compress(node, options); @@ -12382,13 +12058,13 @@ var require_node2json = __commonJS({ } return false; } - exports.prettify = prettify; + exports2.prettify = prettify; } }); // ../../../node_modules/fast-xml-parser/src/xmlparser/XMLParser.js var require_XMLParser = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"(exports, module2) { + "../../../node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"(exports2, module2) { var { buildOptions } = require_OptionsBuilder(); var OrderedObjParser = require_OrderedObjParser(); var { prettify } = require_node2json(); @@ -12449,7 +12125,7 @@ var require_XMLParser = __commonJS({ // ../../../node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js var require_orderedJs2Xml = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"(exports, module2) { + "../../../node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"(exports2, module2) { var EOL = "\n"; function toXml(jArray, options) { let indentation = ""; @@ -12577,7 +12253,7 @@ var require_orderedJs2Xml = __commonJS({ // ../../../node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js var require_json2xml = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js"(exports, module2) { + "../../../node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js"(exports2, module2) { "use strict"; var buildFromOrderedJs = require_orderedJs2Xml(); var defaultOptions = { @@ -12805,7 +12481,7 @@ var require_json2xml = __commonJS({ // ../../../node_modules/fast-xml-parser/src/fxp.js var require_fxp = __commonJS({ - "../../../node_modules/fast-xml-parser/src/fxp.js"(exports, module2) { + "../../../node_modules/fast-xml-parser/src/fxp.js"(exports2, module2) { "use strict"; var validator = require_validator(); var XMLParser = require_XMLParser(); @@ -12820,12 +12496,12 @@ var require_fxp = __commonJS({ // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js var require_Aws_query = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.de_GetSessionTokenCommand = exports.de_GetFederationTokenCommand = exports.de_GetCallerIdentityCommand = exports.de_GetAccessKeyInfoCommand = exports.de_DecodeAuthorizationMessageCommand = exports.de_AssumeRoleWithWebIdentityCommand = exports.de_AssumeRoleWithSAMLCommand = exports.de_AssumeRoleCommand = exports.se_GetSessionTokenCommand = exports.se_GetFederationTokenCommand = exports.se_GetCallerIdentityCommand = exports.se_GetAccessKeyInfoCommand = exports.se_DecodeAuthorizationMessageCommand = exports.se_AssumeRoleWithWebIdentityCommand = exports.se_AssumeRoleWithSAMLCommand = exports.se_AssumeRoleCommand = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.de_GetSessionTokenCommand = exports2.de_GetFederationTokenCommand = exports2.de_GetCallerIdentityCommand = exports2.de_GetAccessKeyInfoCommand = exports2.de_DecodeAuthorizationMessageCommand = exports2.de_AssumeRoleWithWebIdentityCommand = exports2.de_AssumeRoleWithSAMLCommand = exports2.de_AssumeRoleCommand = exports2.se_GetSessionTokenCommand = exports2.se_GetFederationTokenCommand = exports2.se_GetCallerIdentityCommand = exports2.se_GetAccessKeyInfoCommand = exports2.se_DecodeAuthorizationMessageCommand = exports2.se_AssumeRoleWithWebIdentityCommand = exports2.se_AssumeRoleWithSAMLCommand = exports2.se_AssumeRoleCommand = void 0; var protocol_http_1 = require_dist_cjs2(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs36(); var fast_xml_parser_1 = require_fxp(); var models_0_1 = require_models_0(); var STSServiceException_1 = require_STSServiceException(); @@ -12839,7 +12515,7 @@ var require_Aws_query = __commonJS({ }); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_AssumeRoleCommand = se_AssumeRoleCommand; + exports2.se_AssumeRoleCommand = se_AssumeRoleCommand; var se_AssumeRoleWithSAMLCommand = async (input, context) => { const headers = SHARED_HEADERS; let body; @@ -12850,7 +12526,7 @@ var require_Aws_query = __commonJS({ }); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_AssumeRoleWithSAMLCommand = se_AssumeRoleWithSAMLCommand; + exports2.se_AssumeRoleWithSAMLCommand = se_AssumeRoleWithSAMLCommand; var se_AssumeRoleWithWebIdentityCommand = async (input, context) => { const headers = SHARED_HEADERS; let body; @@ -12861,7 +12537,7 @@ var require_Aws_query = __commonJS({ }); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_AssumeRoleWithWebIdentityCommand = se_AssumeRoleWithWebIdentityCommand; + exports2.se_AssumeRoleWithWebIdentityCommand = se_AssumeRoleWithWebIdentityCommand; var se_DecodeAuthorizationMessageCommand = async (input, context) => { const headers = SHARED_HEADERS; let body; @@ -12872,7 +12548,7 @@ var require_Aws_query = __commonJS({ }); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_DecodeAuthorizationMessageCommand = se_DecodeAuthorizationMessageCommand; + exports2.se_DecodeAuthorizationMessageCommand = se_DecodeAuthorizationMessageCommand; var se_GetAccessKeyInfoCommand = async (input, context) => { const headers = SHARED_HEADERS; let body; @@ -12883,7 +12559,7 @@ var require_Aws_query = __commonJS({ }); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_GetAccessKeyInfoCommand = se_GetAccessKeyInfoCommand; + exports2.se_GetAccessKeyInfoCommand = se_GetAccessKeyInfoCommand; var se_GetCallerIdentityCommand = async (input, context) => { const headers = SHARED_HEADERS; let body; @@ -12894,7 +12570,7 @@ var require_Aws_query = __commonJS({ }); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_GetCallerIdentityCommand = se_GetCallerIdentityCommand; + exports2.se_GetCallerIdentityCommand = se_GetCallerIdentityCommand; var se_GetFederationTokenCommand = async (input, context) => { const headers = SHARED_HEADERS; let body; @@ -12905,7 +12581,7 @@ var require_Aws_query = __commonJS({ }); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_GetFederationTokenCommand = se_GetFederationTokenCommand; + exports2.se_GetFederationTokenCommand = se_GetFederationTokenCommand; var se_GetSessionTokenCommand = async (input, context) => { const headers = SHARED_HEADERS; let body; @@ -12916,7 +12592,7 @@ var require_Aws_query = __commonJS({ }); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_GetSessionTokenCommand = se_GetSessionTokenCommand; + exports2.se_GetSessionTokenCommand = se_GetSessionTokenCommand; var de_AssumeRoleCommand = async (output, context) => { if (output.statusCode >= 300) { return de_AssumeRoleCommandError(output, context); @@ -12930,7 +12606,7 @@ var require_Aws_query = __commonJS({ }; return response; }; - exports.de_AssumeRoleCommand = de_AssumeRoleCommand; + exports2.de_AssumeRoleCommand = de_AssumeRoleCommand; var de_AssumeRoleCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -12972,7 +12648,7 @@ var require_Aws_query = __commonJS({ }; return response; }; - exports.de_AssumeRoleWithSAMLCommand = de_AssumeRoleWithSAMLCommand; + exports2.de_AssumeRoleWithSAMLCommand = de_AssumeRoleWithSAMLCommand; var de_AssumeRoleWithSAMLCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -13020,7 +12696,7 @@ var require_Aws_query = __commonJS({ }; return response; }; - exports.de_AssumeRoleWithWebIdentityCommand = de_AssumeRoleWithWebIdentityCommand; + exports2.de_AssumeRoleWithWebIdentityCommand = de_AssumeRoleWithWebIdentityCommand; var de_AssumeRoleWithWebIdentityCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -13071,7 +12747,7 @@ var require_Aws_query = __commonJS({ }; return response; }; - exports.de_DecodeAuthorizationMessageCommand = de_DecodeAuthorizationMessageCommand; + exports2.de_DecodeAuthorizationMessageCommand = de_DecodeAuthorizationMessageCommand; var de_DecodeAuthorizationMessageCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -13104,7 +12780,7 @@ var require_Aws_query = __commonJS({ }; return response; }; - exports.de_GetAccessKeyInfoCommand = de_GetAccessKeyInfoCommand; + exports2.de_GetAccessKeyInfoCommand = de_GetAccessKeyInfoCommand; var de_GetAccessKeyInfoCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -13131,7 +12807,7 @@ var require_Aws_query = __commonJS({ }; return response; }; - exports.de_GetCallerIdentityCommand = de_GetCallerIdentityCommand; + exports2.de_GetCallerIdentityCommand = de_GetCallerIdentityCommand; var de_GetCallerIdentityCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -13158,7 +12834,7 @@ var require_Aws_query = __commonJS({ }; return response; }; - exports.de_GetFederationTokenCommand = de_GetFederationTokenCommand; + exports2.de_GetFederationTokenCommand = de_GetFederationTokenCommand; var de_GetFederationTokenCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -13197,7 +12873,7 @@ var require_Aws_query = __commonJS({ }; return response; }; - exports.de_GetSessionTokenCommand = de_GetSessionTokenCommand; + exports2.de_GetSessionTokenCommand = de_GetSessionTokenCommand; var de_GetSessionTokenCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -13852,17 +13528,18 @@ var require_Aws_query = __commonJS({ // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js var require_AssumeRoleCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.AssumeRoleCommand = exports.$Command = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AssumeRoleCommand = exports2.$Command = void 0; var middleware_signing_1 = require_dist_cjs16(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_0(); var Aws_query_1 = require_Aws_query(); var AssumeRoleCommand = class _AssumeRoleCommand extends smithy_client_1.Command { @@ -13892,7 +13569,11 @@ var require_AssumeRoleCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog + outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSSecurityTokenServiceV20110615", + operation: "AssumeRole" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -13904,22 +13585,23 @@ var require_AssumeRoleCommand = __commonJS({ return (0, Aws_query_1.de_AssumeRoleCommand)(output, context); } }; - exports.AssumeRoleCommand = AssumeRoleCommand; + exports2.AssumeRoleCommand = AssumeRoleCommand; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js var require_AssumeRoleWithWebIdentityCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.AssumeRoleWithWebIdentityCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AssumeRoleWithWebIdentityCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_0(); var Aws_query_1 = require_Aws_query(); var AssumeRoleWithWebIdentityCommand = class _AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command { @@ -13948,7 +13630,11 @@ var require_AssumeRoleWithWebIdentityCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog + outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSSecurityTokenServiceV20110615", + operation: "AssumeRoleWithWebIdentity" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -13960,16 +13646,16 @@ var require_AssumeRoleWithWebIdentityCommand = __commonJS({ return (0, Aws_query_1.de_AssumeRoleWithWebIdentityCommand)(output, context); } }; - exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; + exports2.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js var require_defaultStsRoleAssumers = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decorateDefaultCredentialProvider = exports2.getDefaultRoleAssumerWithWebIdentity = exports2.getDefaultRoleAssumer = void 0; var AssumeRoleCommand_1 = require_AssumeRoleCommand(); var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); var ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; @@ -14011,7 +13697,7 @@ var require_defaultStsRoleAssumers = __commonJS({ }; }; }; - exports.getDefaultRoleAssumer = getDefaultRoleAssumer; + exports2.getDefaultRoleAssumer = getDefaultRoleAssumer; var getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { let stsClient; return async (params) => { @@ -14035,32 +13721,32 @@ var require_defaultStsRoleAssumers = __commonJS({ }; }; }; - exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; + exports2.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; var decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: (0, exports.getDefaultRoleAssumer)(input, input.stsClientCtor), - roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor), + roleAssumer: (0, exports2.getDefaultRoleAssumer)(input, input.stsClientCtor), + roleAssumerWithWebIdentity: (0, exports2.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor), ...input }); - exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; + exports2.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; } }); // ../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js var require_fromEnv = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromEnv = exports.ENV_EXPIRATION = exports.ENV_SESSION = exports.ENV_SECRET = exports.ENV_KEY = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromEnv = exports2.ENV_EXPIRATION = exports2.ENV_SESSION = exports2.ENV_SECRET = exports2.ENV_KEY = void 0; var property_provider_1 = require_dist_cjs6(); - exports.ENV_KEY = "AWS_ACCESS_KEY_ID"; - exports.ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; - exports.ENV_SESSION = "AWS_SESSION_TOKEN"; - exports.ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION"; + exports2.ENV_KEY = "AWS_ACCESS_KEY_ID"; + exports2.ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; + exports2.ENV_SESSION = "AWS_SESSION_TOKEN"; + exports2.ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION"; var fromEnv = () => async () => { - const accessKeyId = process.env[exports.ENV_KEY]; - const secretAccessKey = process.env[exports.ENV_SECRET]; - const sessionToken = process.env[exports.ENV_SESSION]; - const expiry = process.env[exports.ENV_EXPIRATION]; + const accessKeyId = process.env[exports2.ENV_KEY]; + const secretAccessKey = process.env[exports2.ENV_SECRET]; + const sessionToken = process.env[exports2.ENV_SESSION]; + const expiry = process.env[exports2.ENV_EXPIRATION]; if (accessKeyId && secretAccessKey) { return { accessKeyId, @@ -14071,356 +13757,83 @@ var require_fromEnv = __commonJS({ } throw new property_provider_1.CredentialsProviderError("Unable to find environment variable credentials."); }; - exports.fromEnv = fromEnv; + exports2.fromEnv = fromEnv; } }); // ../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js -var require_dist_cjs37 = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js"(exports) { +var require_dist_cjs39 = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromEnv(), exports); - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js -var require_getHomeDir = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getHomeDir = void 0; - var os_1 = require("os"); - var path_1 = require("path"); - var homeDirCache = {}; - var getHomeDirCacheKey = () => { - if (process && process.geteuid) { - return `${process.geteuid()}`; - } - return "DEFAULT"; - }; - var getHomeDir = () => { - const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env; - if (HOME) - return HOME; - if (USERPROFILE) - return USERPROFILE; - if (HOMEPATH) - return `${HOMEDRIVE}${HOMEPATH}`; - const homeDirCacheKey = getHomeDirCacheKey(); - if (!homeDirCache[homeDirCacheKey]) - homeDirCache[homeDirCacheKey] = (0, os_1.homedir)(); - return homeDirCache[homeDirCacheKey]; - }; - exports.getHomeDir = getHomeDir; - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js -var require_getProfileName = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getProfileName = exports.DEFAULT_PROFILE = exports.ENV_PROFILE = void 0; - exports.ENV_PROFILE = "AWS_PROFILE"; - exports.DEFAULT_PROFILE = "default"; - var getProfileName = (init) => init.profile || process.env[exports.ENV_PROFILE] || exports.DEFAULT_PROFILE; - exports.getProfileName = getProfileName; - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js -var require_getSSOTokenFilepath = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSSOTokenFilepath = void 0; - var crypto_1 = require("crypto"); - var path_1 = require("path"); - var getHomeDir_1 = require_getHomeDir(); - var getSSOTokenFilepath = (id) => { - const hasher = (0, crypto_1.createHash)("sha1"); - const cacheName = hasher.update(id).digest("hex"); - return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`); - }; - exports.getSSOTokenFilepath = getSSOTokenFilepath; - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js -var require_getSSOTokenFromFile = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSSOTokenFromFile = void 0; - var fs_1 = require("fs"); - var getSSOTokenFilepath_1 = require_getSSOTokenFilepath(); - var { readFile } = fs_1.promises; - var getSSOTokenFromFile = async (id) => { - const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id); - const ssoTokenText = await readFile(ssoTokenFilepath, "utf8"); - return JSON.parse(ssoTokenText); - }; - exports.getSSOTokenFromFile = getSSOTokenFromFile; - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js -var require_getConfigFilepath = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getConfigFilepath = exports.ENV_CONFIG_PATH = void 0; - var path_1 = require("path"); - var getHomeDir_1 = require_getHomeDir(); - exports.ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; - var getConfigFilepath = () => process.env[exports.ENV_CONFIG_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "config"); - exports.getConfigFilepath = getConfigFilepath; - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js -var require_getCredentialsFilepath = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getCredentialsFilepath = exports.ENV_CREDENTIALS_PATH = void 0; - var path_1 = require("path"); - var getHomeDir_1 = require_getHomeDir(); - exports.ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; - var getCredentialsFilepath = () => process.env[exports.ENV_CREDENTIALS_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "credentials"); - exports.getCredentialsFilepath = getCredentialsFilepath; + tslib_1.__exportStar(require_fromEnv(), exports2); } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileData.js -var require_getProfileData = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileData.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getProfileData = void 0; - var profileKeyRegex = /^profile\s(["'])?([^\1]+)\1$/; - var getProfileData = (data) => Object.entries(data).filter(([key]) => profileKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [profileKeyRegex.exec(key)[2]]: value }), { - ...data.default && { default: data.default } +// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +var require_dist_cjs40 = __commonJS({ + "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + DEFAULT_MAX_RETRIES: () => DEFAULT_MAX_RETRIES, + DEFAULT_TIMEOUT: () => DEFAULT_TIMEOUT, + ENV_CMDS_AUTH_TOKEN: () => ENV_CMDS_AUTH_TOKEN, + ENV_CMDS_FULL_URI: () => ENV_CMDS_FULL_URI, + ENV_CMDS_RELATIVE_URI: () => ENV_CMDS_RELATIVE_URI, + fromContainerMetadata: () => fromContainerMetadata, + fromInstanceMetadata: () => fromInstanceMetadata, + getInstanceMetadataEndpoint: () => getInstanceMetadataEndpoint, + httpRequest: () => httpRequest, + providerConfigFromInit: () => providerConfigFromInit }); - exports.getProfileData = getProfileData; - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js -var require_parseIni = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.parseIni = void 0; - var profileNameBlockList = ["__proto__", "profile __proto__"]; - var parseIni = (iniData) => { - const map = {}; - let currentSection; - for (let line of iniData.split(/\r?\n/)) { - line = line.split(/(^|\s)[;#]/)[0].trim(); - const isSection = line[0] === "[" && line[line.length - 1] === "]"; - if (isSection) { - currentSection = line.substring(1, line.length - 1); - if (profileNameBlockList.includes(currentSection)) { - throw new Error(`Found invalid profile name "${currentSection}"`); - } - } else if (currentSection) { - const indexOfEqualsSign = line.indexOf("="); - const start = 0; - const end = line.length - 1; - const isAssignment = indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; - if (isAssignment) { - const [name, value] = [ - line.substring(0, indexOfEqualsSign).trim(), - line.substring(indexOfEqualsSign + 1).trim() - ]; - map[currentSection] = map[currentSection] || {}; - map[currentSection][name] = value; - } - } - } - return map; - }; - exports.parseIni = parseIni; - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js -var require_slurpFile = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.slurpFile = void 0; - var fs_1 = require("fs"); - var { readFile } = fs_1.promises; - var filePromisesHash = {}; - var slurpFile = (path, options) => { - if (!filePromisesHash[path] || (options === null || options === void 0 ? void 0 : options.ignoreCache)) { - filePromisesHash[path] = readFile(path, "utf8"); - } - return filePromisesHash[path]; - }; - exports.slurpFile = slurpFile; - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js -var require_loadSharedConfigFiles = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.loadSharedConfigFiles = void 0; - var getConfigFilepath_1 = require_getConfigFilepath(); - var getCredentialsFilepath_1 = require_getCredentialsFilepath(); - var getProfileData_1 = require_getProfileData(); - var parseIni_1 = require_parseIni(); - var slurpFile_1 = require_slurpFile(); - var swallowError = () => ({}); - var loadSharedConfigFiles = async (init = {}) => { - const { filepath = (0, getCredentialsFilepath_1.getCredentialsFilepath)(), configFilepath = (0, getConfigFilepath_1.getConfigFilepath)() } = init; - const parsedFiles = await Promise.all([ - (0, slurpFile_1.slurpFile)(configFilepath, { - ignoreCache: init.ignoreCache - }).then(parseIni_1.parseIni).then(getProfileData_1.getProfileData).catch(swallowError), - (0, slurpFile_1.slurpFile)(filepath, { - ignoreCache: init.ignoreCache - }).then(parseIni_1.parseIni).catch(swallowError) - ]); - return { - configFile: parsedFiles[0], - credentialsFile: parsedFiles[1] - }; - }; - exports.loadSharedConfigFiles = loadSharedConfigFiles; - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js -var require_getSsoSessionData = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSsoSessionData = void 0; - var ssoSessionKeyRegex = /^sso-session\s(["'])?([^\1]+)\1$/; - var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => ssoSessionKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [ssoSessionKeyRegex.exec(key)[2]]: value }), {}); - exports.getSsoSessionData = getSsoSessionData; - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js -var require_loadSsoSessionData = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.loadSsoSessionData = void 0; - var getConfigFilepath_1 = require_getConfigFilepath(); - var getSsoSessionData_1 = require_getSsoSessionData(); - var parseIni_1 = require_parseIni(); - var slurpFile_1 = require_slurpFile(); - var swallowError = () => ({}); - var loadSsoSessionData = async (init = {}) => { - var _a; - return (0, slurpFile_1.slurpFile)((_a = init.configFilepath) !== null && _a !== void 0 ? _a : (0, getConfigFilepath_1.getConfigFilepath)()).then(parseIni_1.parseIni).then(getSsoSessionData_1.getSsoSessionData).catch(swallowError); - }; - exports.loadSsoSessionData = loadSsoSessionData; - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js -var require_mergeConfigFiles = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.mergeConfigFiles = void 0; - var mergeConfigFiles = (...files) => { - const merged = {}; - for (const file of files) { - for (const [key, values] of Object.entries(file)) { - if (merged[key] !== void 0) { - Object.assign(merged[key], values); - } else { - merged[key] = values; - } - } - } - return merged; - }; - exports.mergeConfigFiles = mergeConfigFiles; - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js -var require_parseKnownFiles = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.parseKnownFiles = void 0; - var loadSharedConfigFiles_1 = require_loadSharedConfigFiles(); - var mergeConfigFiles_1 = require_mergeConfigFiles(); - var parseKnownFiles = async (init) => { - const parsedFiles = await (0, loadSharedConfigFiles_1.loadSharedConfigFiles)(init); - return (0, mergeConfigFiles_1.mergeConfigFiles)(parsedFiles.configFile, parsedFiles.credentialsFile); - }; - exports.parseKnownFiles = parseKnownFiles; - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js -var require_types5 = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js -var require_dist_cjs38 = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_getHomeDir(), exports); - tslib_1.__exportStar(require_getProfileName(), exports); - tslib_1.__exportStar(require_getSSOTokenFilepath(), exports); - tslib_1.__exportStar(require_getSSOTokenFromFile(), exports); - tslib_1.__exportStar(require_loadSharedConfigFiles(), exports); - tslib_1.__exportStar(require_loadSsoSessionData(), exports); - tslib_1.__exportStar(require_parseKnownFiles(), exports); - tslib_1.__exportStar(require_types5(), exports); - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js -var require_httpRequest2 = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.httpRequest = void 0; - var property_provider_1 = require_dist_cjs6(); - var buffer_1 = require("buffer"); - var http_1 = require("http"); + module2.exports = __toCommonJS2(src_exports); + var import_url = require("url"); + var import_property_provider = require_dist_cjs6(); + var import_buffer = require("buffer"); + var import_http2 = require("http"); function httpRequest(options) { return new Promise((resolve, reject) => { var _a; - const req = (0, http_1.request)({ + const req = (0, import_http2.request)({ method: "GET", ...options, - hostname: (_a = options.hostname) === null || _a === void 0 ? void 0 : _a.replace(/^\[(.+)\]$/, "$1") + // Node.js http module doesn't accept hostname with square brackets + // Refs: https://github.com/nodejs/node/issues/39738 + hostname: (_a = options.hostname) == null ? void 0 : _a.replace(/^\[(.+)\]$/, "$1") }); req.on("error", (err) => { - reject(Object.assign(new property_provider_1.ProviderError("Unable to connect to instance metadata service"), err)); + reject(Object.assign(new import_property_provider.ProviderError("Unable to connect to instance metadata service"), err)); req.destroy(); }); req.on("timeout", () => { - reject(new property_provider_1.ProviderError("TimeoutError from instance metadata service")); + reject(new import_property_provider.ProviderError("TimeoutError from instance metadata service")); req.destroy(); }); req.on("response", (res) => { const { statusCode = 400 } = res; if (statusCode < 200 || 300 <= statusCode) { - reject(Object.assign(new property_provider_1.ProviderError("Error response received from instance metadata service"), { statusCode })); + reject( + Object.assign(new import_property_provider.ProviderError("Error response received from instance metadata service"), { statusCode }) + ); req.destroy(); } const chunks = []; @@ -14428,105 +13841,61 @@ var require_httpRequest2 = __commonJS({ chunks.push(chunk); }); res.on("end", () => { - resolve(buffer_1.Buffer.concat(chunks)); + resolve(import_buffer.Buffer.concat(chunks)); req.destroy(); }); }); req.end(); }); } - exports.httpRequest = httpRequest; - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js -var require_ImdsCredentials = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromImdsCredentials = exports.isImdsCredentials = void 0; - var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string"; - exports.isImdsCredentials = isImdsCredentials; - var fromImdsCredentials = (creds) => ({ + __name(httpRequest, "httpRequest"); + var isImdsCredentials = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string", "isImdsCredentials"); + var fromImdsCredentials = /* @__PURE__ */ __name((creds) => ({ accessKeyId: creds.AccessKeyId, secretAccessKey: creds.SecretAccessKey, sessionToken: creds.Token, expiration: new Date(creds.Expiration) - }); - exports.fromImdsCredentials = fromImdsCredentials; - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js -var require_RemoteProviderInit = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.providerConfigFromInit = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_TIMEOUT = void 0; - exports.DEFAULT_TIMEOUT = 1e3; - exports.DEFAULT_MAX_RETRIES = 0; - var providerConfigFromInit = ({ maxRetries = exports.DEFAULT_MAX_RETRIES, timeout = exports.DEFAULT_TIMEOUT }) => ({ maxRetries, timeout }); - exports.providerConfigFromInit = providerConfigFromInit; - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js -var require_retry4 = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.retry = void 0; - var retry = (toRetry, maxRetries) => { + }), "fromImdsCredentials"); + var DEFAULT_TIMEOUT = 1e3; + var DEFAULT_MAX_RETRIES = 0; + var providerConfigFromInit = /* @__PURE__ */ __name(({ + maxRetries = DEFAULT_MAX_RETRIES, + timeout = DEFAULT_TIMEOUT + }) => ({ maxRetries, timeout }), "providerConfigFromInit"); + var retry = /* @__PURE__ */ __name((toRetry, maxRetries) => { let promise = toRetry(); for (let i = 0; i < maxRetries; i++) { promise = promise.catch(toRetry); } return promise; - }; - exports.retry = retry; - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js -var require_fromContainerMetadata = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromContainerMetadata = exports.ENV_CMDS_AUTH_TOKEN = exports.ENV_CMDS_RELATIVE_URI = exports.ENV_CMDS_FULL_URI = void 0; - var property_provider_1 = require_dist_cjs6(); - var url_1 = require("url"); - var httpRequest_1 = require_httpRequest2(); - var ImdsCredentials_1 = require_ImdsCredentials(); - var RemoteProviderInit_1 = require_RemoteProviderInit(); - var retry_1 = require_retry4(); - exports.ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; - exports.ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; - exports.ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; - var fromContainerMetadata = (init = {}) => { - const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); - return () => (0, retry_1.retry)(async () => { + }, "retry"); + var ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; + var ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; + var ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; + var fromContainerMetadata = /* @__PURE__ */ __name((init = {}) => { + const { timeout, maxRetries } = providerConfigFromInit(init); + return () => retry(async () => { const requestOptions = await getCmdsUri(); const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions)); - if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { - throw new property_provider_1.CredentialsProviderError("Invalid response received from instance metadata service."); + if (!isImdsCredentials(credsResponse)) { + throw new import_property_provider.CredentialsProviderError("Invalid response received from instance metadata service."); } - return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); + return fromImdsCredentials(credsResponse); }, maxRetries); - }; - exports.fromContainerMetadata = fromContainerMetadata; - var requestFromEcsImds = async (timeout, options) => { - if (process.env[exports.ENV_CMDS_AUTH_TOKEN]) { + }, "fromContainerMetadata"); + var requestFromEcsImds = /* @__PURE__ */ __name(async (timeout, options) => { + if (process.env[ENV_CMDS_AUTH_TOKEN]) { options.headers = { ...options.headers, - Authorization: process.env[exports.ENV_CMDS_AUTH_TOKEN] + Authorization: process.env[ENV_CMDS_AUTH_TOKEN] }; } - const buffer = await (0, httpRequest_1.httpRequest)({ + const buffer = await httpRequest({ ...options, timeout }); return buffer.toString(); - }; + }, "requestFromEcsImds"); var CMDS_IP = "169.254.170.2"; var GREENGRASS_HOSTS = { localhost: true, @@ -14536,255 +13905,112 @@ var require_fromContainerMetadata = __commonJS({ "http:": true, "https:": true }; - var getCmdsUri = async () => { - if (process.env[exports.ENV_CMDS_RELATIVE_URI]) { + var getCmdsUri = /* @__PURE__ */ __name(async () => { + if (process.env[ENV_CMDS_RELATIVE_URI]) { return { hostname: CMDS_IP, - path: process.env[exports.ENV_CMDS_RELATIVE_URI] - }; - } - if (process.env[exports.ENV_CMDS_FULL_URI]) { - const parsed = (0, url_1.parse)(process.env[exports.ENV_CMDS_FULL_URI]); - if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { - throw new property_provider_1.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, false); - } - if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { - throw new property_provider_1.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, false); - } - return { - ...parsed, - port: parsed.port ? parseInt(parsed.port, 10) : void 0 + path: process.env[ENV_CMDS_RELATIVE_URI] }; } - throw new property_provider_1.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${exports.ENV_CMDS_RELATIVE_URI} or ${exports.ENV_CMDS_FULL_URI} environment variable is set`, false); - }; - } -}); - -// ../../../node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js -var require_fromEnv2 = __commonJS({ - "../../../node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromEnv = void 0; - var property_provider_1 = require_dist_cjs6(); - var fromEnv = (envVarSelector) => async () => { - try { - const config = envVarSelector(process.env); - if (config === void 0) { - throw new Error(); - } - return config; - } catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config from environment variables with getter: ${envVarSelector}`); - } - }; - exports.fromEnv = fromEnv; - } -}); - -// ../../../node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js -var require_fromSharedConfigFiles = __commonJS({ - "../../../node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromSharedConfigFiles = void 0; - var property_provider_1 = require_dist_cjs6(); - var shared_ini_file_loader_1 = require_dist_cjs38(); - var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => { - const profile = (0, shared_ini_file_loader_1.getProfileName)(init); - const { configFile, credentialsFile } = await (0, shared_ini_file_loader_1.loadSharedConfigFiles)(init); - const profileFromCredentials = credentialsFile[profile] || {}; - const profileFromConfig = configFile[profile] || {}; - const mergedProfile = preferredFile === "config" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials }; - try { - const configValue = configSelector(mergedProfile); - if (configValue === void 0) { - throw new Error(); - } - return configValue; - } catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config for profile ${profile} in SDK configuration files with getter: ${configSelector}`); - } - }; - exports.fromSharedConfigFiles = fromSharedConfigFiles; - } -}); - -// ../../../node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js -var require_fromStatic2 = __commonJS({ - "../../../node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromStatic = void 0; - var property_provider_1 = require_dist_cjs6(); - var isFunction = (func) => typeof func === "function"; - var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, property_provider_1.fromStatic)(defaultValue); - exports.fromStatic = fromStatic; - } -}); - -// ../../../node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js -var require_configLoader = __commonJS({ - "../../../node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.loadConfig = void 0; - var property_provider_1 = require_dist_cjs6(); - var fromEnv_1 = require_fromEnv2(); - var fromSharedConfigFiles_1 = require_fromSharedConfigFiles(); - var fromStatic_1 = require_fromStatic2(); - var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromEnv_1.fromEnv)(environmentVariableSelector), (0, fromSharedConfigFiles_1.fromSharedConfigFiles)(configFileSelector, configuration), (0, fromStatic_1.fromStatic)(defaultValue))); - exports.loadConfig = loadConfig; - } -}); - -// ../../../node_modules/@smithy/node-config-provider/dist-cjs/index.js -var require_dist_cjs39 = __commonJS({ - "../../../node_modules/@smithy/node-config-provider/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_configLoader(), exports); - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js -var require_Endpoint = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Endpoint = void 0; - var Endpoint; - (function(Endpoint2) { - Endpoint2["IPv4"] = "http://169.254.169.254"; - Endpoint2["IPv6"] = "http://[fd00:ec2::254]"; - })(Endpoint = exports.Endpoint || (exports.Endpoint = {})); - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js -var require_EndpointConfigOptions = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ENDPOINT_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_NAME = exports.ENV_ENDPOINT_NAME = void 0; - exports.ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; - exports.CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; - exports.ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_NAME], - configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_NAME], + if (process.env[ENV_CMDS_FULL_URI]) { + const parsed = (0, import_url.parse)(process.env[ENV_CMDS_FULL_URI]); + if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { + throw new import_property_provider.CredentialsProviderError( + `${parsed.hostname} is not a valid container metadata service hostname`, + false + ); + } + if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { + throw new import_property_provider.CredentialsProviderError( + `${parsed.protocol} is not a valid container metadata service protocol`, + false + ); + } + return { + ...parsed, + port: parsed.port ? parseInt(parsed.port, 10) : void 0 + }; + } + throw new import_property_provider.CredentialsProviderError( + `The container metadata credential provider cannot be used unless the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment variable is set`, + false + ); + }, "getCmdsUri"); + var _InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError2 extends import_property_provider.CredentialsProviderError { + constructor(message, tryNextLink = true) { + super(message, tryNextLink); + this.tryNextLink = tryNextLink; + this.name = "InstanceMetadataV1FallbackError"; + Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError2.prototype); + } + }; + __name(_InstanceMetadataV1FallbackError, "InstanceMetadataV1FallbackError"); + var InstanceMetadataV1FallbackError = _InstanceMetadataV1FallbackError; + var import_node_config_provider = require_dist_cjs24(); + var import_url_parser = require_dist_cjs26(); + var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; + var CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; + var ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[ENV_ENDPOINT_NAME], + configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME], default: void 0 }; - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js -var require_EndpointMode = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.EndpointMode = void 0; - var EndpointMode; - (function(EndpointMode2) { + var EndpointMode = /* @__PURE__ */ ((EndpointMode2) => { EndpointMode2["IPv4"] = "IPv4"; EndpointMode2["IPv6"] = "IPv6"; - })(EndpointMode = exports.EndpointMode || (exports.EndpointMode = {})); - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js -var require_EndpointModeConfigOptions = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ENDPOINT_MODE_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_MODE_NAME = exports.ENV_ENDPOINT_MODE_NAME = void 0; - var EndpointMode_1 = require_EndpointMode(); - exports.ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; - exports.CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; - exports.ENDPOINT_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_MODE_NAME], - configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_MODE_NAME], - default: EndpointMode_1.EndpointMode.IPv4 - }; - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js -var require_getInstanceMetadataEndpoint = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getInstanceMetadataEndpoint = void 0; - var node_config_provider_1 = require_dist_cjs39(); - var url_parser_1 = require_dist_cjs24(); - var Endpoint_1 = require_Endpoint(); - var EndpointConfigOptions_1 = require_EndpointConfigOptions(); - var EndpointMode_1 = require_EndpointMode(); - var EndpointModeConfigOptions_1 = require_EndpointModeConfigOptions(); - var getInstanceMetadataEndpoint = async () => (0, url_parser_1.parseUrl)(await getFromEndpointConfig() || await getFromEndpointModeConfig()); - exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; - var getFromEndpointConfig = async () => (0, node_config_provider_1.loadConfig)(EndpointConfigOptions_1.ENDPOINT_CONFIG_OPTIONS)(); - var getFromEndpointModeConfig = async () => { - const endpointMode = await (0, node_config_provider_1.loadConfig)(EndpointModeConfigOptions_1.ENDPOINT_MODE_CONFIG_OPTIONS)(); + return EndpointMode2; + })(EndpointMode || {}); + var ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; + var CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; + var ENDPOINT_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[ENV_ENDPOINT_MODE_NAME], + configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME], + default: "IPv4" + /* IPv4 */ + }; + var getInstanceMetadataEndpoint = /* @__PURE__ */ __name(async () => (0, import_url_parser.parseUrl)(await getFromEndpointConfig() || await getFromEndpointModeConfig()), "getInstanceMetadataEndpoint"); + var getFromEndpointConfig = /* @__PURE__ */ __name(async () => (0, import_node_config_provider.loadConfig)(ENDPOINT_CONFIG_OPTIONS)(), "getFromEndpointConfig"); + var getFromEndpointModeConfig = /* @__PURE__ */ __name(async () => { + const endpointMode = await (0, import_node_config_provider.loadConfig)(ENDPOINT_MODE_CONFIG_OPTIONS)(); switch (endpointMode) { - case EndpointMode_1.EndpointMode.IPv4: - return Endpoint_1.Endpoint.IPv4; - case EndpointMode_1.EndpointMode.IPv6: - return Endpoint_1.Endpoint.IPv6; + case "IPv4": + return "http://169.254.169.254"; + case "IPv6": + return "http://[fd00:ec2::254]"; default: - throw new Error(`Unsupported endpoint mode: ${endpointMode}. Select from ${Object.values(EndpointMode_1.EndpointMode)}`); + throw new Error(`Unsupported endpoint mode: ${endpointMode}. Select from ${Object.values(EndpointMode)}`); } - }; - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js -var require_getExtendedInstanceMetadataCredentials = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getExtendedInstanceMetadataCredentials = void 0; + }, "getFromEndpointModeConfig"); var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60; var STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60; var STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html"; - var getExtendedInstanceMetadataCredentials = (credentials, logger) => { - var _a; + var getExtendedInstanceMetadataCredentials = /* @__PURE__ */ __name((credentials, logger) => { const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS); const newExpiration = new Date(Date.now() + refreshInterval * 1e3); - logger.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: " + STATIC_STABILITY_DOC_URL); - const originalExpiration = (_a = credentials.originalExpiration) !== null && _a !== void 0 ? _a : credentials.expiration; + logger.warn( + "Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: " + STATIC_STABILITY_DOC_URL + ); + const originalExpiration = credentials.originalExpiration ?? credentials.expiration; return { ...credentials, ...originalExpiration ? { originalExpiration } : {}, expiration: newExpiration }; - }; - exports.getExtendedInstanceMetadataCredentials = getExtendedInstanceMetadataCredentials; - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js -var require_staticStabilityProvider = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.staticStabilityProvider = void 0; - var getExtendedInstanceMetadataCredentials_1 = require_getExtendedInstanceMetadataCredentials(); - var staticStabilityProvider = (provider, options = {}) => { - const logger = (options === null || options === void 0 ? void 0 : options.logger) || console; + }, "getExtendedInstanceMetadataCredentials"); + var staticStabilityProvider = /* @__PURE__ */ __name((provider, options = {}) => { + const logger = (options == null ? void 0 : options.logger) || console; let pastCredentials; return async () => { let credentials; try { credentials = await provider(); if (credentials.expiration && credentials.expiration.getTime() < Date.now()) { - credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(credentials, logger); + credentials = getExtendedInstanceMetadataCredentials(credentials, logger); } } catch (e) { if (pastCredentials) { logger.warn("Credential renew failed: ", e); - credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(pastCredentials, logger); + credentials = getExtendedInstanceMetadataCredentials(pastCredentials, logger); } else { throw e; } @@ -14792,33 +14018,62 @@ var require_staticStabilityProvider = __commonJS({ pastCredentials = credentials; return credentials; }; - }; - exports.staticStabilityProvider = staticStabilityProvider; - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js -var require_fromInstanceMetadata = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromInstanceMetadata = void 0; - var property_provider_1 = require_dist_cjs6(); - var httpRequest_1 = require_httpRequest2(); - var ImdsCredentials_1 = require_ImdsCredentials(); - var RemoteProviderInit_1 = require_RemoteProviderInit(); - var retry_1 = require_retry4(); - var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); - var staticStabilityProvider_1 = require_staticStabilityProvider(); + }, "staticStabilityProvider"); var IMDS_PATH = "/latest/meta-data/iam/security-credentials/"; var IMDS_TOKEN_PATH = "/latest/api/token"; - var fromInstanceMetadata = (init = {}) => (0, staticStabilityProvider_1.staticStabilityProvider)(getInstanceImdsProvider(init), { logger: init.logger }); - exports.fromInstanceMetadata = fromInstanceMetadata; - var getInstanceImdsProvider = (init) => { + var AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED"; + var PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled"; + var X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token"; + var fromInstanceMetadata = /* @__PURE__ */ __name((init = {}) => staticStabilityProvider(getInstanceImdsProvider(init), { logger: init.logger }), "fromInstanceMetadata"); + var getInstanceImdsProvider = /* @__PURE__ */ __name((init) => { let disableFetchToken = false; - const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); - const getCredentials = async (maxRetries2, options) => { - const profile = (await (0, retry_1.retry)(async () => { + const { logger, profile } = init; + const { timeout, maxRetries } = providerConfigFromInit(init); + const getCredentials = /* @__PURE__ */ __name(async (maxRetries2, options) => { + var _a; + const isImdsV1Fallback = disableFetchToken || ((_a = options.headers) == null ? void 0 : _a[X_AWS_EC2_METADATA_TOKEN]) == null; + if (isImdsV1Fallback) { + let fallbackBlockedFromProfile = false; + let fallbackBlockedFromProcessEnv = false; + const configValue = await (0, import_node_config_provider.loadConfig)( + { + environmentVariableSelector: (env) => { + const envValue = env[AWS_EC2_METADATA_V1_DISABLED]; + fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false"; + if (envValue === void 0) { + throw new import_property_provider.CredentialsProviderError( + `${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.` + ); + } + return fallbackBlockedFromProcessEnv; + }, + configFileSelector: (profile2) => { + const profileValue = profile2[PROFILE_AWS_EC2_METADATA_V1_DISABLED]; + fallbackBlockedFromProfile = !!profileValue && profileValue !== "false"; + return fallbackBlockedFromProfile; + }, + default: false + }, + { + profile + } + )(); + if (init.ec2MetadataV1Disabled || configValue) { + const causes = []; + if (init.ec2MetadataV1Disabled) + causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"); + if (fallbackBlockedFromProfile) + causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`); + if (fallbackBlockedFromProcessEnv) + causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`); + throw new InstanceMetadataV1FallbackError( + `AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join( + ", " + )}].` + ); + } + } + const imdsProfile = (await retry(async () => { let profile2; try { profile2 = await getProfile(options); @@ -14830,10 +14085,10 @@ var require_fromInstanceMetadata = __commonJS({ } return profile2; }, maxRetries2)).trim(); - return (0, retry_1.retry)(async () => { + return retry(async () => { let creds; try { - creds = await getCredentialsFromProfile(profile, options); + creds = await getCredentialsFromProfile(imdsProfile, options); } catch (err) { if (err.statusCode === 401) { disableFetchToken = false; @@ -14842,94 +14097,68 @@ var require_fromInstanceMetadata = __commonJS({ } return creds; }, maxRetries2); - }; + }, "getCredentials"); return async () => { - const endpoint = await (0, getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint)(); + const endpoint = await getInstanceMetadataEndpoint(); if (disableFetchToken) { + logger == null ? void 0 : logger.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)"); return getCredentials(maxRetries, { ...endpoint, timeout }); } else { let token; try { token = (await getMetadataToken({ ...endpoint, timeout })).toString(); } catch (error) { - if ((error === null || error === void 0 ? void 0 : error.statusCode) === 400) { + if ((error == null ? void 0 : error.statusCode) === 400) { throw Object.assign(error, { message: "EC2 Metadata token request returned error" }); } else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) { disableFetchToken = true; } + logger == null ? void 0 : logger.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)"); return getCredentials(maxRetries, { ...endpoint, timeout }); } return getCredentials(maxRetries, { ...endpoint, headers: { - "x-aws-ec2-metadata-token": token + [X_AWS_EC2_METADATA_TOKEN]: token }, timeout }); } }; - }; - var getMetadataToken = async (options) => (0, httpRequest_1.httpRequest)({ + }, "getInstanceImdsProvider"); + var getMetadataToken = /* @__PURE__ */ __name(async (options) => httpRequest({ ...options, path: IMDS_TOKEN_PATH, method: "PUT", headers: { "x-aws-ec2-metadata-token-ttl-seconds": "21600" } - }); - var getProfile = async (options) => (await (0, httpRequest_1.httpRequest)({ ...options, path: IMDS_PATH })).toString(); - var getCredentialsFromProfile = async (profile, options) => { - const credsResponse = JSON.parse((await (0, httpRequest_1.httpRequest)({ - ...options, - path: IMDS_PATH + profile - })).toString()); - if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { - throw new property_provider_1.CredentialsProviderError("Invalid response received from instance metadata service."); + }), "getMetadataToken"); + var getProfile = /* @__PURE__ */ __name(async (options) => (await httpRequest({ ...options, path: IMDS_PATH })).toString(), "getProfile"); + var getCredentialsFromProfile = /* @__PURE__ */ __name(async (profile, options) => { + const credsResponse = JSON.parse( + (await httpRequest({ + ...options, + path: IMDS_PATH + profile + })).toString() + ); + if (!isImdsCredentials(credsResponse)) { + throw new import_property_provider.CredentialsProviderError("Invalid response received from instance metadata service."); } - return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); - }; - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/types.js -var require_types6 = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/types.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js -var require_dist_cjs40 = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getInstanceMetadataEndpoint = exports.httpRequest = void 0; - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromContainerMetadata(), exports); - tslib_1.__exportStar(require_fromInstanceMetadata(), exports); - tslib_1.__exportStar(require_RemoteProviderInit(), exports); - tslib_1.__exportStar(require_types6(), exports); - var httpRequest_1 = require_httpRequest2(); - Object.defineProperty(exports, "httpRequest", { enumerable: true, get: function() { - return httpRequest_1.httpRequest; - } }); - var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); - Object.defineProperty(exports, "getInstanceMetadataEndpoint", { enumerable: true, get: function() { - return getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint; - } }); + return fromImdsCredentials(credsResponse); + }, "getCredentialsFromProfile"); } }); // ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js var require_resolveCredentialSource = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveCredentialSource = void 0; - var credential_provider_env_1 = require_dist_cjs37(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveCredentialSource = void 0; + var credential_provider_env_1 = require_dist_cjs39(); var credential_provider_imds_1 = require_dist_cjs40(); var property_provider_1 = require_dist_cjs6(); var resolveCredentialSource = (credentialSource, profileName) => { @@ -14944,22 +14173,22 @@ var require_resolveCredentialSource = __commonJS({ throw new property_provider_1.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`); } }; - exports.resolveCredentialSource = resolveCredentialSource; + exports2.resolveCredentialSource = resolveCredentialSource; } }); // ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js var require_resolveAssumeRoleCredentials = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveAssumeRoleCredentials = exports.isAssumeRoleProfile = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveAssumeRoleCredentials = exports2.isAssumeRoleProfile = void 0; var property_provider_1 = require_dist_cjs6(); - var shared_ini_file_loader_1 = require_dist_cjs38(); + var shared_ini_file_loader_1 = require_dist_cjs23(); var resolveCredentialSource_1 = require_resolveCredentialSource(); var resolveProfileData_1 = require_resolveProfileData(); var isAssumeRoleProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg) || isAssumeRoleWithProviderProfile(arg)); - exports.isAssumeRoleProfile = isAssumeRoleProfile; + exports2.isAssumeRoleProfile = isAssumeRoleProfile; var isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; var isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => { @@ -14992,16 +14221,16 @@ var require_resolveAssumeRoleCredentials = __commonJS({ const sourceCreds = await sourceCredsProvider; return options.roleAssumer(sourceCreds, params); }; - exports.resolveAssumeRoleCredentials = resolveAssumeRoleCredentials; + exports2.resolveAssumeRoleCredentials = resolveAssumeRoleCredentials; } }); // ../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js var require_getValidatedProcessCredentials = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getValidatedProcessCredentials = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getValidatedProcessCredentials = void 0; var getValidatedProcessCredentials = (profileName, data) => { if (data.Version !== 1) { throw Error(`Profile ${profileName} credential_process did not return Version 1.`); @@ -15023,16 +14252,16 @@ var require_getValidatedProcessCredentials = __commonJS({ ...data.Expiration && { expiration: new Date(data.Expiration) } }; }; - exports.getValidatedProcessCredentials = getValidatedProcessCredentials; + exports2.getValidatedProcessCredentials = getValidatedProcessCredentials; } }); // ../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js var require_resolveProcessCredentials = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveProcessCredentials = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveProcessCredentials = void 0; var property_provider_1 = require_dist_cjs6(); var child_process_1 = require("child_process"); var util_1 = require("util"); @@ -15062,70 +14291,70 @@ var require_resolveProcessCredentials = __commonJS({ throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`); } }; - exports.resolveProcessCredentials = resolveProcessCredentials; + exports2.resolveProcessCredentials = resolveProcessCredentials; } }); // ../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js var require_fromProcess = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromProcess = void 0; - var shared_ini_file_loader_1 = require_dist_cjs38(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromProcess = void 0; + var shared_ini_file_loader_1 = require_dist_cjs23(); var resolveProcessCredentials_1 = require_resolveProcessCredentials(); var fromProcess = (init = {}) => async () => { const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); return (0, resolveProcessCredentials_1.resolveProcessCredentials)((0, shared_ini_file_loader_1.getProfileName)(init), profiles); }; - exports.fromProcess = fromProcess; + exports2.fromProcess = fromProcess; } }); // ../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js var require_dist_cjs41 = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromProcess(), exports); + tslib_1.__exportStar(require_fromProcess(), exports2); } }); // ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProcessCredentials.js var require_resolveProcessCredentials2 = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProcessCredentials.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProcessCredentials.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveProcessCredentials = exports.isProcessProfile = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveProcessCredentials = exports2.isProcessProfile = void 0; var credential_provider_process_1 = require_dist_cjs41(); var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string"; - exports.isProcessProfile = isProcessProfile; + exports2.isProcessProfile = isProcessProfile; var resolveProcessCredentials = async (options, profile) => (0, credential_provider_process_1.fromProcess)({ ...options, profile })(); - exports.resolveProcessCredentials = resolveProcessCredentials; + exports2.resolveProcessCredentials = resolveProcessCredentials; } }); // ../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js var require_isSsoProfile = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isSsoProfile = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isSsoProfile = void 0; var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"); - exports.isSsoProfile = isSsoProfile; + exports2.isSsoProfile = isSsoProfile; } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/EndpointParameters.js var require_EndpointParameters3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/EndpointParameters.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/EndpointParameters.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveClientEndpointParameters = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveClientEndpointParameters = void 0; var resolveClientEndpointParameters = (options) => { return { ...options, @@ -15134,17 +14363,17 @@ var require_EndpointParameters3 = __commonJS({ defaultSigningName: "awsssoportal" }; }; - exports.resolveClientEndpointParameters = resolveClientEndpointParameters; + exports2.resolveClientEndpointParameters = resolveClientEndpointParameters; } }); // ../../../node_modules/@aws-sdk/client-sso/package.json var require_package3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/package.json"(exports, module2) { + "../../../node_modules/@aws-sdk/client-sso/package.json"(exports2, module2) { module2.exports = { name: "@aws-sdk/client-sso", description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native", - version: "3.414.0", + version: "3.421.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "tsc -p tsconfig.cjs.json", @@ -15164,36 +14393,36 @@ var require_package3 = __commonJS({ dependencies: { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.413.0", - "@aws-sdk/middleware-logger": "3.413.0", - "@aws-sdk/middleware-recursion-detection": "3.413.0", - "@aws-sdk/middleware-user-agent": "3.413.0", - "@aws-sdk/region-config-resolver": "3.413.0", - "@aws-sdk/types": "3.413.0", - "@aws-sdk/util-endpoints": "3.413.0", - "@aws-sdk/util-user-agent-browser": "3.413.0", - "@aws-sdk/util-user-agent-node": "3.413.0", - "@smithy/config-resolver": "^2.0.8", - "@smithy/fetch-http-handler": "^2.1.3", - "@smithy/hash-node": "^2.0.7", - "@smithy/invalid-dependency": "^2.0.7", - "@smithy/middleware-content-length": "^2.0.9", - "@smithy/middleware-endpoint": "^2.0.7", - "@smithy/middleware-retry": "^2.0.10", - "@smithy/middleware-serde": "^2.0.7", - "@smithy/middleware-stack": "^2.0.0", - "@smithy/node-config-provider": "^2.0.10", - "@smithy/node-http-handler": "^2.1.3", - "@smithy/protocol-http": "^3.0.3", - "@smithy/smithy-client": "^2.1.4", - "@smithy/types": "^2.3.1", - "@smithy/url-parser": "^2.0.7", + "@aws-sdk/middleware-host-header": "3.418.0", + "@aws-sdk/middleware-logger": "3.418.0", + "@aws-sdk/middleware-recursion-detection": "3.418.0", + "@aws-sdk/middleware-user-agent": "3.418.0", + "@aws-sdk/region-config-resolver": "3.418.0", + "@aws-sdk/types": "3.418.0", + "@aws-sdk/util-endpoints": "3.418.0", + "@aws-sdk/util-user-agent-browser": "3.418.0", + "@aws-sdk/util-user-agent-node": "3.418.0", + "@smithy/config-resolver": "^2.0.10", + "@smithy/fetch-http-handler": "^2.1.5", + "@smithy/hash-node": "^2.0.9", + "@smithy/invalid-dependency": "^2.0.9", + "@smithy/middleware-content-length": "^2.0.11", + "@smithy/middleware-endpoint": "^2.0.9", + "@smithy/middleware-retry": "^2.0.12", + "@smithy/middleware-serde": "^2.0.9", + "@smithy/middleware-stack": "^2.0.2", + "@smithy/node-config-provider": "^2.0.12", + "@smithy/node-http-handler": "^2.1.5", + "@smithy/protocol-http": "^3.0.5", + "@smithy/smithy-client": "^2.1.6", + "@smithy/types": "^2.3.3", + "@smithy/url-parser": "^2.0.9", "@smithy/util-base64": "^2.0.0", "@smithy/util-body-length-browser": "^2.0.0", "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.8", - "@smithy/util-defaults-mode-node": "^2.0.10", - "@smithy/util-retry": "^2.0.0", + "@smithy/util-defaults-mode-browser": "^2.0.10", + "@smithy/util-defaults-mode-node": "^2.0.12", + "@smithy/util-retry": "^2.0.2", "@smithy/util-utf8": "^2.0.0", tslib: "^2.5.0" }, @@ -15243,10 +14472,10 @@ var require_package3 = __commonJS({ // ../../../node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js var require_is_crt_available = __commonJS({ - "../../../node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js"(exports, module2) { + "../../../node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js"(exports2, module2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isCrtAvailable = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isCrtAvailable = void 0; var isCrtAvailable = () => { try { if (typeof require === "function" && typeof module2 !== "undefined" && require("aws-crt")) { @@ -15257,22 +14486,22 @@ var require_is_crt_available = __commonJS({ return null; } }; - exports.isCrtAvailable = isCrtAvailable; + exports2.isCrtAvailable = isCrtAvailable; } }); // ../../../node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js var require_dist_cjs42 = __commonJS({ - "../../../node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.defaultUserAgent = exports.UA_APP_ID_INI_NAME = exports.UA_APP_ID_ENV_NAME = void 0; - var node_config_provider_1 = require_dist_cjs39(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.defaultUserAgent = exports2.UA_APP_ID_INI_NAME = exports2.UA_APP_ID_ENV_NAME = void 0; + var node_config_provider_1 = require_dist_cjs24(); var os_1 = require("os"); var process_1 = require("process"); var is_crt_available_1 = require_is_crt_available(); - exports.UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; - exports.UA_APP_ID_INI_NAME = "sdk-ua-app-id"; + exports2.UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; + exports2.UA_APP_ID_INI_NAME = "sdk-ua-app-id"; var defaultUserAgent = ({ serviceId, clientVersion }) => { const sections = [ ["aws-sdk-js", clientVersion], @@ -15292,8 +14521,8 @@ var require_dist_cjs42 = __commonJS({ sections.push([`exec-env/${process_1.env.AWS_EXECUTION_ENV}`]); } const appIdPromise = (0, node_config_provider_1.loadConfig)({ - environmentVariableSelector: (env) => env[exports.UA_APP_ID_ENV_NAME], - configFileSelector: (profile) => profile[exports.UA_APP_ID_INI_NAME], + environmentVariableSelector: (env) => env[exports2.UA_APP_ID_ENV_NAME], + configFileSelector: (profile) => profile[exports2.UA_APP_ID_INI_NAME], default: void 0 })(); let resolvedUserAgent = void 0; @@ -15305,60 +14534,102 @@ var require_dist_cjs42 = __commonJS({ return resolvedUserAgent; }; }; - exports.defaultUserAgent = defaultUserAgent; + exports2.defaultUserAgent = defaultUserAgent; } }); // ../../../node_modules/@smithy/hash-node/dist-cjs/index.js var require_dist_cjs43 = __commonJS({ - "../../../node_modules/@smithy/hash-node/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Hash = void 0; - var util_buffer_from_1 = require_dist_cjs12(); - var util_utf8_1 = require_dist_cjs13(); - var buffer_1 = require("buffer"); - var crypto_1 = require("crypto"); - var Hash = class { + "../../../node_modules/@smithy/hash-node/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + Hash: () => Hash + }); + module2.exports = __toCommonJS2(src_exports); + var import_util_buffer_from = require_dist_cjs12(); + var import_util_utf8 = require_dist_cjs13(); + var import_buffer = require("buffer"); + var import_crypto4 = require("crypto"); + var _Hash = class _Hash { constructor(algorithmIdentifier, secret) { this.algorithmIdentifier = algorithmIdentifier; this.secret = secret; this.reset(); } update(toHash, encoding) { - this.hash.update((0, util_utf8_1.toUint8Array)(castSourceData(toHash, encoding))); + this.hash.update((0, import_util_utf8.toUint8Array)(castSourceData(toHash, encoding))); } digest() { return Promise.resolve(this.hash.digest()); } reset() { - this.hash = this.secret ? (0, crypto_1.createHmac)(this.algorithmIdentifier, castSourceData(this.secret)) : (0, crypto_1.createHash)(this.algorithmIdentifier); + this.hash = this.secret ? (0, import_crypto4.createHmac)(this.algorithmIdentifier, castSourceData(this.secret)) : (0, import_crypto4.createHash)(this.algorithmIdentifier); } }; - exports.Hash = Hash; + __name(_Hash, "Hash"); + var Hash = _Hash; function castSourceData(toCast, encoding) { - if (buffer_1.Buffer.isBuffer(toCast)) { + if (import_buffer.Buffer.isBuffer(toCast)) { return toCast; } if (typeof toCast === "string") { - return (0, util_buffer_from_1.fromString)(toCast, encoding); + return (0, import_util_buffer_from.fromString)(toCast, encoding); } if (ArrayBuffer.isView(toCast)) { - return (0, util_buffer_from_1.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength); + return (0, import_util_buffer_from.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength); } - return (0, util_buffer_from_1.fromArrayBuffer)(toCast); + return (0, import_util_buffer_from.fromArrayBuffer)(toCast); } + __name(castSourceData, "castSourceData"); } }); -// ../../../node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js -var require_calculateBodyLength = __commonJS({ - "../../../node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.calculateBodyLength = void 0; - var fs_1 = require("fs"); - var calculateBodyLength = (body) => { +// ../../../node_modules/@smithy/util-body-length-node/dist-cjs/index.js +var require_dist_cjs44 = __commonJS({ + "../../../node_modules/@smithy/util-body-length-node/dist-cjs/index.js"(exports2, module2) { + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + calculateBodyLength: () => calculateBodyLength + }); + module2.exports = __toCommonJS2(src_exports); + var import_fs = require("fs"); + var calculateBodyLength = /* @__PURE__ */ __name((body) => { if (!body) { return 0; } @@ -15371,32 +14642,21 @@ var require_calculateBodyLength = __commonJS({ } else if (typeof body.start === "number" && typeof body.end === "number") { return body.end + 1 - body.start; } else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) { - return (0, fs_1.lstatSync)(body.path).size; + return (0, import_fs.lstatSync)(body.path).size; } else if (typeof body.fd === "number") { - return (0, fs_1.fstatSync)(body.fd).size; + return (0, import_fs.fstatSync)(body.fd).size; } throw new Error(`Body Length computation failed for ${body}`); - }; - exports.calculateBodyLength = calculateBodyLength; - } -}); - -// ../../../node_modules/@smithy/util-body-length-node/dist-cjs/index.js -var require_dist_cjs44 = __commonJS({ - "../../../node_modules/@smithy/util-body-length-node/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_calculateBodyLength(), exports); + }, "calculateBodyLength"); } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js var require_ruleset = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ruleSet = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ruleSet = void 0; var q = "required"; var r = "fn"; var s = "argv"; @@ -15418,16 +14678,16 @@ var require_ruleset = __commonJS({ var o = [j]; var p = [{ [t]: "Region" }]; var _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }; - exports.ruleSet = _data; + exports2.ruleSet = _data; } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js var require_endpointResolver = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.defaultEndpointResolver = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.defaultEndpointResolver = void 0; var util_endpoints_1 = require_dist_cjs18(); var ruleset_1 = require_ruleset(); var defaultEndpointResolver = (endpointParams, context = {}) => { @@ -15436,19 +14696,19 @@ var require_endpointResolver = __commonJS({ logger: context.logger }); }; - exports.defaultEndpointResolver = defaultEndpointResolver; + exports2.defaultEndpointResolver = defaultEndpointResolver; } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js var require_runtimeConfig_shared = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRuntimeConfig = void 0; - var smithy_client_1 = require_dist_cjs35(); - var url_parser_1 = require_dist_cjs24(); - var util_base64_1 = require_dist_cjs31(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRuntimeConfig = void 0; + var smithy_client_1 = require_dist_cjs36(); + var url_parser_1 = require_dist_cjs26(); + var util_base64_1 = require_dist_cjs32(); var util_utf8_1 = require_dist_cjs13(); var endpointResolver_1 = require_endpointResolver(); var getRuntimeConfig = (config) => ({ @@ -15464,34 +14724,58 @@ var require_runtimeConfig_shared = __commonJS({ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8 }); - exports.getRuntimeConfig = getRuntimeConfig; - } -}); - -// ../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/constants.js -var require_constants7 = __commonJS({ - "../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/constants.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.IMDS_REGION_PATH = exports.DEFAULTS_MODE_OPTIONS = exports.ENV_IMDS_DISABLED = exports.AWS_DEFAULT_REGION_ENV = exports.AWS_REGION_ENV = exports.AWS_EXECUTION_ENV = void 0; - exports.AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; - exports.AWS_REGION_ENV = "AWS_REGION"; - exports.AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION"; - exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; - exports.DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"]; - exports.IMDS_REGION_PATH = "/latest/meta-data/placement/region"; + exports2.getRuntimeConfig = getRuntimeConfig; } }); -// ../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js -var require_defaultsModeConfig = __commonJS({ - "../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = void 0; +// ../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +var require_dist_cjs45 = __commonJS({ + "../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js"(exports2, module2) { + var __create2 = Object.create; + var __defProp2 = Object.defineProperty; + var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; + var __getOwnPropNames2 = Object.getOwnPropertyNames; + var __getProtoOf2 = Object.getPrototypeOf; + var __hasOwnProp2 = Object.prototype.hasOwnProperty; + var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); + var __export2 = (target, all) => { + for (var name in all) + __defProp2(target, name, { get: all[name], enumerable: true }); + }; + var __copyProps2 = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames2(from)) + if (!__hasOwnProp2.call(to, key) && key !== except) + __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); + } + return to; + }; + var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target, + mod + )); + var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod); + var src_exports = {}; + __export2(src_exports, { + resolveDefaultsModeConfig: () => resolveDefaultsModeConfig + }); + module2.exports = __toCommonJS2(src_exports); + var import_config_resolver = require_dist_cjs21(); + var import_node_config_provider = require_dist_cjs24(); + var import_property_provider = require_dist_cjs6(); + var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; + var AWS_REGION_ENV = "AWS_REGION"; + var AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION"; + var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; + var DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"]; + var IMDS_REGION_PATH = "/latest/meta-data/placement/region"; var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE"; var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode"; - exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { + var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { environmentVariableSelector: (env) => { return env[AWS_DEFAULTS_MODE_ENV]; }, @@ -15500,24 +14784,12 @@ var require_defaultsModeConfig = __commonJS({ }, default: "legacy" }; - } -}); - -// ../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js -var require_resolveDefaultsModeConfig = __commonJS({ - "../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveDefaultsModeConfig = void 0; - var config_resolver_1 = require_dist_cjs21(); - var credential_provider_imds_1 = require_dist_cjs40(); - var node_config_provider_1 = require_dist_cjs39(); - var property_provider_1 = require_dist_cjs6(); - var constants_1 = require_constants7(); - var defaultsModeConfig_1 = require_defaultsModeConfig(); - var resolveDefaultsModeConfig = ({ region = (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS), defaultsMode = (0, node_config_provider_1.loadConfig)(defaultsModeConfig_1.NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => (0, property_provider_1.memoize)(async () => { + var resolveDefaultsModeConfig = /* @__PURE__ */ __name(({ + region = (0, import_node_config_provider.loadConfig)(import_config_resolver.NODE_REGION_CONFIG_OPTIONS), + defaultsMode = (0, import_node_config_provider.loadConfig)(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) + } = {}) => (0, import_property_provider.memoize)(async () => { const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; - switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) { + switch (mode == null ? void 0 : mode.toLowerCase()) { case "auto": return resolveNodeDefaultsModeAuto(region); case "in-region": @@ -15525,15 +14797,16 @@ var require_resolveDefaultsModeConfig = __commonJS({ case "mobile": case "standard": case "legacy": - return Promise.resolve(mode === null || mode === void 0 ? void 0 : mode.toLocaleLowerCase()); + return Promise.resolve(mode == null ? void 0 : mode.toLocaleLowerCase()); case void 0: return Promise.resolve("legacy"); default: - throw new Error(`Invalid parameter for "defaultsMode", expect ${constants_1.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`); + throw new Error( + `Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}` + ); } - }); - exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig; - var resolveNodeDefaultsModeAuto = async (clientRegion) => { + }), "resolveDefaultsModeConfig"); + var resolveNodeDefaultsModeAuto = /* @__PURE__ */ __name(async (clientRegion) => { if (clientRegion) { const resolvedRegion = typeof clientRegion === "function" ? await clientRegion() : clientRegion; const inferredRegion = await inferPhysicalRegion(); @@ -15547,53 +14820,43 @@ var require_resolveDefaultsModeConfig = __commonJS({ } } return "standard"; - }; - var inferPhysicalRegion = async () => { - var _a; - if (process.env[constants_1.AWS_EXECUTION_ENV] && (process.env[constants_1.AWS_REGION_ENV] || process.env[constants_1.AWS_DEFAULT_REGION_ENV])) { - return (_a = process.env[constants_1.AWS_REGION_ENV]) !== null && _a !== void 0 ? _a : process.env[constants_1.AWS_DEFAULT_REGION_ENV]; + }, "resolveNodeDefaultsModeAuto"); + var inferPhysicalRegion = /* @__PURE__ */ __name(async () => { + if (process.env[AWS_EXECUTION_ENV] && (process.env[AWS_REGION_ENV] || process.env[AWS_DEFAULT_REGION_ENV])) { + return process.env[AWS_REGION_ENV] ?? process.env[AWS_DEFAULT_REGION_ENV]; } - if (!process.env[constants_1.ENV_IMDS_DISABLED]) { + if (!process.env[ENV_IMDS_DISABLED]) { try { - const endpoint = await (0, credential_provider_imds_1.getInstanceMetadataEndpoint)(); - return (await (0, credential_provider_imds_1.httpRequest)({ ...endpoint, path: constants_1.IMDS_REGION_PATH })).toString(); + const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM2(require_dist_cjs40())); + const endpoint = await getInstanceMetadataEndpoint(); + return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString(); } catch (e) { } } - }; - } -}); - -// ../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js -var require_dist_cjs45 = __commonJS({ - "../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_resolveDefaultsModeConfig(), exports); + }, "inferPhysicalRegion"); } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js var require_runtimeConfig = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRuntimeConfig = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRuntimeConfig = void 0; var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package3()); var util_user_agent_node_1 = require_dist_cjs42(); var config_resolver_1 = require_dist_cjs21(); var hash_node_1 = require_dist_cjs43(); - var middleware_retry_1 = require_dist_cjs29(); - var node_config_provider_1 = require_dist_cjs39(); - var node_http_handler_1 = require_dist_cjs33(); + var middleware_retry_1 = require_dist_cjs37(); + var node_config_provider_1 = require_dist_cjs24(); + var node_http_handler_1 = require_dist_cjs34(); var util_body_length_node_1 = require_dist_cjs44(); - var util_retry_1 = require_dist_cjs28(); + var util_retry_1 = require_dist_cjs30(); var runtimeConfig_shared_1 = require_runtimeConfig_shared(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs36(); var util_defaults_mode_node_1 = require_dist_cjs45(); - var smithy_client_2 = require_dist_cjs35(); + var smithy_client_2 = require_dist_cjs36(); var getRuntimeConfig = (config) => { (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); @@ -15619,16 +14882,16 @@ var require_runtimeConfig = __commonJS({ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS) }; }; - exports.getRuntimeConfig = getRuntimeConfig; + exports2.getRuntimeConfig = getRuntimeConfig; } }); // ../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/extensions/index.js -var require_extensions5 = __commonJS({ - "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/extensions/index.js"(exports) { +var require_extensions2 = __commonJS({ + "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/extensions/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveAwsRegionExtensionConfiguration = exports.getAwsRegionExtensionConfiguration = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveAwsRegionExtensionConfiguration = exports2.getAwsRegionExtensionConfiguration = void 0; var getAwsRegionExtensionConfiguration = (runtimeConfig) => { let runtimeConfigRegion = async () => { if (runtimeConfig.region === void 0) { @@ -15649,68 +14912,68 @@ var require_extensions5 = __commonJS({ } }; }; - exports.getAwsRegionExtensionConfiguration = getAwsRegionExtensionConfiguration; + exports2.getAwsRegionExtensionConfiguration = getAwsRegionExtensionConfiguration; var resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) => { return { region: awsRegionExtensionConfiguration.region() }; }; - exports.resolveAwsRegionExtensionConfiguration = resolveAwsRegionExtensionConfiguration; + exports2.resolveAwsRegionExtensionConfiguration = resolveAwsRegionExtensionConfiguration; } }); // ../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/config.js -var require_config4 = __commonJS({ - "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/config.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NODE_REGION_CONFIG_FILE_OPTIONS = exports.NODE_REGION_CONFIG_OPTIONS = exports.REGION_INI_NAME = exports.REGION_ENV_NAME = void 0; - exports.REGION_ENV_NAME = "AWS_REGION"; - exports.REGION_INI_NAME = "region"; - exports.NODE_REGION_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.REGION_ENV_NAME], - configFileSelector: (profile) => profile[exports.REGION_INI_NAME], +var require_config = __commonJS({ + "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/config.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.NODE_REGION_CONFIG_FILE_OPTIONS = exports2.NODE_REGION_CONFIG_OPTIONS = exports2.REGION_INI_NAME = exports2.REGION_ENV_NAME = void 0; + exports2.REGION_ENV_NAME = "AWS_REGION"; + exports2.REGION_INI_NAME = "region"; + exports2.NODE_REGION_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports2.REGION_ENV_NAME], + configFileSelector: (profile) => profile[exports2.REGION_INI_NAME], default: () => { throw new Error("Region is missing"); } }; - exports.NODE_REGION_CONFIG_FILE_OPTIONS = { + exports2.NODE_REGION_CONFIG_FILE_OPTIONS = { preferredFile: "credentials" }; } }); // ../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/isFipsRegion.js -var require_isFipsRegion2 = __commonJS({ - "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/isFipsRegion.js"(exports) { +var require_isFipsRegion = __commonJS({ + "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/isFipsRegion.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isFipsRegion = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.isFipsRegion = void 0; var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); - exports.isFipsRegion = isFipsRegion; + exports2.isFipsRegion = isFipsRegion; } }); // ../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/getRealRegion.js -var require_getRealRegion2 = __commonJS({ - "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/getRealRegion.js"(exports) { +var require_getRealRegion = __commonJS({ + "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/getRealRegion.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRealRegion = void 0; - var isFipsRegion_1 = require_isFipsRegion2(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRealRegion = void 0; + var isFipsRegion_1 = require_isFipsRegion(); var getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region; - exports.getRealRegion = getRealRegion; + exports2.getRealRegion = getRealRegion; } }); // ../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js -var require_resolveRegionConfig2 = __commonJS({ - "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js"(exports) { +var require_resolveRegionConfig = __commonJS({ + "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveRegionConfig = void 0; - var getRealRegion_1 = require_getRealRegion2(); - var isFipsRegion_1 = require_isFipsRegion2(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveRegionConfig = void 0; + var getRealRegion_1 = require_getRealRegion(); + var isFipsRegion_1 = require_isFipsRegion(); var resolveRegionConfig = (input) => { const { region, useFipsEndpoint } = input; if (!region) { @@ -15734,41 +14997,41 @@ var require_resolveRegionConfig2 = __commonJS({ } }; }; - exports.resolveRegionConfig = resolveRegionConfig; + exports2.resolveRegionConfig = resolveRegionConfig; } }); // ../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/index.js -var require_regionConfig2 = __commonJS({ - "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/index.js"(exports) { +var require_regionConfig = __commonJS({ + "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_config4(), exports); - tslib_1.__exportStar(require_resolveRegionConfig2(), exports); + tslib_1.__exportStar(require_config(), exports2); + tslib_1.__exportStar(require_resolveRegionConfig(), exports2); } }); // ../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js var require_dist_cjs46 = __commonJS({ - "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_extensions5(), exports); - tslib_1.__exportStar(require_regionConfig2(), exports); + tslib_1.__exportStar(require_extensions2(), exports2); + tslib_1.__exportStar(require_regionConfig(), exports2); } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeExtensions.js var require_runtimeExtensions = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeExtensions.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeExtensions.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveRuntimeExtensions = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveRuntimeExtensions = void 0; var region_config_resolver_1 = require_dist_cjs46(); var protocol_http_1 = require_dist_cjs2(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs36(); var asPartial = (t) => t; var resolveRuntimeExtensions = (runtimeConfig, extensions) => { const extensionConfiguration = { @@ -15784,26 +15047,26 @@ var require_runtimeExtensions = __commonJS({ ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration) }; }; - exports.resolveRuntimeExtensions = resolveRuntimeExtensions; + exports2.resolveRuntimeExtensions = resolveRuntimeExtensions; } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js var require_SSOClient = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SSOClient = exports.__Client = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SSOClient = exports2.__Client = void 0; var middleware_host_header_1 = require_dist_cjs3(); var middleware_logger_1 = require_dist_cjs4(); var middleware_recursion_detection_1 = require_dist_cjs5(); var middleware_user_agent_1 = require_dist_cjs19(); var config_resolver_1 = require_dist_cjs21(); var middleware_content_length_1 = require_dist_cjs22(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_retry_1 = require_dist_cjs29(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "__Client", { enumerable: true, get: function() { + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_retry_1 = require_dist_cjs37(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "__Client", { enumerable: true, get: function() { return smithy_client_1.Client; } }); var EndpointParameters_1 = require_EndpointParameters3(); @@ -15832,18 +15095,18 @@ var require_SSOClient = __commonJS({ super.destroy(); } }; - exports.SSOClient = SSOClient; + exports2.SSOClient = SSOClient; } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js var require_SSOServiceException = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SSOServiceException = exports.__ServiceException = void 0; - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function() { + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SSOServiceException = exports2.__ServiceException = void 0; + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "__ServiceException", { enumerable: true, get: function() { return smithy_client_1.ServiceException; } }); var SSOServiceException = class _SSOServiceException extends smithy_client_1.ServiceException { @@ -15852,17 +15115,17 @@ var require_SSOServiceException = __commonJS({ Object.setPrototypeOf(this, _SSOServiceException.prototype); } }; - exports.SSOServiceException = SSOServiceException; + exports2.SSOServiceException = SSOServiceException; } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js var require_models_02 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.LogoutRequestFilterSensitiveLog = exports.ListAccountsRequestFilterSensitiveLog = exports.ListAccountRolesRequestFilterSensitiveLog = exports.GetRoleCredentialsResponseFilterSensitiveLog = exports.RoleCredentialsFilterSensitiveLog = exports.GetRoleCredentialsRequestFilterSensitiveLog = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = void 0; - var smithy_client_1 = require_dist_cjs35(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.LogoutRequestFilterSensitiveLog = exports2.ListAccountsRequestFilterSensitiveLog = exports2.ListAccountRolesRequestFilterSensitiveLog = exports2.GetRoleCredentialsResponseFilterSensitiveLog = exports2.RoleCredentialsFilterSensitiveLog = exports2.GetRoleCredentialsRequestFilterSensitiveLog = exports2.UnauthorizedException = exports2.TooManyRequestsException = exports2.ResourceNotFoundException = exports2.InvalidRequestException = void 0; + var smithy_client_1 = require_dist_cjs36(); var SSOServiceException_1 = require_SSOServiceException(); var InvalidRequestException = class _InvalidRequestException extends SSOServiceException_1.SSOServiceException { constructor(opts) { @@ -15876,7 +15139,7 @@ var require_models_02 = __commonJS({ Object.setPrototypeOf(this, _InvalidRequestException.prototype); } }; - exports.InvalidRequestException = InvalidRequestException; + exports2.InvalidRequestException = InvalidRequestException; var ResourceNotFoundException = class _ResourceNotFoundException extends SSOServiceException_1.SSOServiceException { constructor(opts) { super({ @@ -15889,7 +15152,7 @@ var require_models_02 = __commonJS({ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); } }; - exports.ResourceNotFoundException = ResourceNotFoundException; + exports2.ResourceNotFoundException = ResourceNotFoundException; var TooManyRequestsException = class _TooManyRequestsException extends SSOServiceException_1.SSOServiceException { constructor(opts) { super({ @@ -15902,7 +15165,7 @@ var require_models_02 = __commonJS({ Object.setPrototypeOf(this, _TooManyRequestsException.prototype); } }; - exports.TooManyRequestsException = TooManyRequestsException; + exports2.TooManyRequestsException = TooManyRequestsException; var UnauthorizedException = class _UnauthorizedException extends SSOServiceException_1.SSOServiceException { constructor(opts) { super({ @@ -15915,49 +15178,49 @@ var require_models_02 = __commonJS({ Object.setPrototypeOf(this, _UnauthorizedException.prototype); } }; - exports.UnauthorizedException = UnauthorizedException; + exports2.UnauthorizedException = UnauthorizedException; var GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({ ...obj, ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } }); - exports.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog; + exports2.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog; var RoleCredentialsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }, ...obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING } }); - exports.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog; + exports2.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog; var GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({ ...obj, - ...obj.roleCredentials && { roleCredentials: (0, exports.RoleCredentialsFilterSensitiveLog)(obj.roleCredentials) } + ...obj.roleCredentials && { roleCredentials: (0, exports2.RoleCredentialsFilterSensitiveLog)(obj.roleCredentials) } }); - exports.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog; + exports2.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog; var ListAccountRolesRequestFilterSensitiveLog = (obj) => ({ ...obj, ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } }); - exports.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog; + exports2.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog; var ListAccountsRequestFilterSensitiveLog = (obj) => ({ ...obj, ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } }); - exports.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog; + exports2.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog; var LogoutRequestFilterSensitiveLog = (obj) => ({ ...obj, ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } }); - exports.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog; + exports2.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog; } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js var require_Aws_restJson1 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.de_LogoutCommand = exports.de_ListAccountsCommand = exports.de_ListAccountRolesCommand = exports.de_GetRoleCredentialsCommand = exports.se_LogoutCommand = exports.se_ListAccountsCommand = exports.se_ListAccountRolesCommand = exports.se_GetRoleCredentialsCommand = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.de_LogoutCommand = exports2.de_ListAccountsCommand = exports2.de_ListAccountRolesCommand = exports2.de_GetRoleCredentialsCommand = exports2.se_LogoutCommand = exports2.se_ListAccountsCommand = exports2.se_ListAccountRolesCommand = exports2.se_GetRoleCredentialsCommand = void 0; var protocol_http_1 = require_dist_cjs2(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs36(); var models_0_1 = require_models_02(); var SSOServiceException_1 = require_SSOServiceException(); var se_GetRoleCredentialsCommand = async (input, context) => { @@ -15982,7 +15245,7 @@ var require_Aws_restJson1 = __commonJS({ body }); }; - exports.se_GetRoleCredentialsCommand = se_GetRoleCredentialsCommand; + exports2.se_GetRoleCredentialsCommand = se_GetRoleCredentialsCommand; var se_ListAccountRolesCommand = async (input, context) => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { @@ -16006,7 +15269,7 @@ var require_Aws_restJson1 = __commonJS({ body }); }; - exports.se_ListAccountRolesCommand = se_ListAccountRolesCommand; + exports2.se_ListAccountRolesCommand = se_ListAccountRolesCommand; var se_ListAccountsCommand = async (input, context) => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { @@ -16029,7 +15292,7 @@ var require_Aws_restJson1 = __commonJS({ body }); }; - exports.se_ListAccountsCommand = se_ListAccountsCommand; + exports2.se_ListAccountsCommand = se_ListAccountsCommand; var se_LogoutCommand = async (input, context) => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { @@ -16047,7 +15310,7 @@ var require_Aws_restJson1 = __commonJS({ body }); }; - exports.se_LogoutCommand = se_LogoutCommand; + exports2.se_LogoutCommand = se_LogoutCommand; var de_GetRoleCredentialsCommand = async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_GetRoleCredentialsCommandError(output, context); @@ -16062,7 +15325,7 @@ var require_Aws_restJson1 = __commonJS({ Object.assign(contents, doc); return contents; }; - exports.de_GetRoleCredentialsCommand = de_GetRoleCredentialsCommand; + exports2.de_GetRoleCredentialsCommand = de_GetRoleCredentialsCommand; var de_GetRoleCredentialsCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -16106,7 +15369,7 @@ var require_Aws_restJson1 = __commonJS({ Object.assign(contents, doc); return contents; }; - exports.de_ListAccountRolesCommand = de_ListAccountRolesCommand; + exports2.de_ListAccountRolesCommand = de_ListAccountRolesCommand; var de_ListAccountRolesCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -16150,7 +15413,7 @@ var require_Aws_restJson1 = __commonJS({ Object.assign(contents, doc); return contents; }; - exports.de_ListAccountsCommand = de_ListAccountsCommand; + exports2.de_ListAccountsCommand = de_ListAccountsCommand; var de_ListAccountsCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -16189,7 +15452,7 @@ var require_Aws_restJson1 = __commonJS({ await (0, smithy_client_1.collectBody)(output.body, context); return contents; }; - exports.de_LogoutCommand = de_LogoutCommand; + exports2.de_LogoutCommand = de_LogoutCommand; var de_LogoutCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -16321,16 +15584,17 @@ var require_Aws_restJson1 = __commonJS({ // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js var require_GetRoleCredentialsCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.GetRoleCredentialsCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GetRoleCredentialsCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_02(); var Aws_restJson1_1 = require_Aws_restJson1(); var GetRoleCredentialsCommand = class _GetRoleCredentialsCommand extends smithy_client_1.Command { @@ -16358,7 +15622,11 @@ var require_GetRoleCredentialsCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog + outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "SWBPortalService", + operation: "GetRoleCredentials" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -16370,22 +15638,23 @@ var require_GetRoleCredentialsCommand = __commonJS({ return (0, Aws_restJson1_1.de_GetRoleCredentialsCommand)(output, context); } }; - exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand; + exports2.GetRoleCredentialsCommand = GetRoleCredentialsCommand; } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js var require_ListAccountRolesCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ListAccountRolesCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ListAccountRolesCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_02(); var Aws_restJson1_1 = require_Aws_restJson1(); var ListAccountRolesCommand = class _ListAccountRolesCommand extends smithy_client_1.Command { @@ -16413,7 +15682,11 @@ var require_ListAccountRolesCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "SWBPortalService", + operation: "ListAccountRoles" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -16425,22 +15698,23 @@ var require_ListAccountRolesCommand = __commonJS({ return (0, Aws_restJson1_1.de_ListAccountRolesCommand)(output, context); } }; - exports.ListAccountRolesCommand = ListAccountRolesCommand; + exports2.ListAccountRolesCommand = ListAccountRolesCommand; } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js var require_ListAccountsCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ListAccountsCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ListAccountsCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_02(); var Aws_restJson1_1 = require_Aws_restJson1(); var ListAccountsCommand = class _ListAccountsCommand extends smithy_client_1.Command { @@ -16468,7 +15742,11 @@ var require_ListAccountsCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "SWBPortalService", + operation: "ListAccounts" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -16480,22 +15758,23 @@ var require_ListAccountsCommand = __commonJS({ return (0, Aws_restJson1_1.de_ListAccountsCommand)(output, context); } }; - exports.ListAccountsCommand = ListAccountsCommand; + exports2.ListAccountsCommand = ListAccountsCommand; } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js var require_LogoutCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.LogoutCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.LogoutCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_02(); var Aws_restJson1_1 = require_Aws_restJson1(); var LogoutCommand = class _LogoutCommand extends smithy_client_1.Command { @@ -16523,7 +15802,11 @@ var require_LogoutCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "SWBPortalService", + operation: "Logout" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -16535,17 +15818,17 @@ var require_LogoutCommand = __commonJS({ return (0, Aws_restJson1_1.de_LogoutCommand)(output, context); } }; - exports.LogoutCommand = LogoutCommand; + exports2.LogoutCommand = LogoutCommand; } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js var require_SSO = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SSO = void 0; - var smithy_client_1 = require_dist_cjs35(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SSO = void 0; + var smithy_client_1 = require_dist_cjs36(); var GetRoleCredentialsCommand_1 = require_GetRoleCredentialsCommand(); var ListAccountRolesCommand_1 = require_ListAccountRolesCommand(); var ListAccountsCommand_1 = require_ListAccountsCommand(); @@ -16559,38 +15842,38 @@ var require_SSO = __commonJS({ }; var SSO = class extends SSOClient_1.SSOClient { }; - exports.SSO = SSO; + exports2.SSO = SSO; (0, smithy_client_1.createAggregatedClient)(commands, SSO); } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js var require_commands = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_GetRoleCredentialsCommand(), exports); - tslib_1.__exportStar(require_ListAccountRolesCommand(), exports); - tslib_1.__exportStar(require_ListAccountsCommand(), exports); - tslib_1.__exportStar(require_LogoutCommand(), exports); + tslib_1.__exportStar(require_GetRoleCredentialsCommand(), exports2); + tslib_1.__exportStar(require_ListAccountRolesCommand(), exports2); + tslib_1.__exportStar(require_ListAccountsCommand(), exports2); + tslib_1.__exportStar(require_LogoutCommand(), exports2); } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js var require_Interfaces = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js var require_ListAccountRolesPaginator = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.paginateListAccountRoles = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.paginateListAccountRoles = void 0; var ListAccountRolesCommand_1 = require_ListAccountRolesCommand(); var SSOClient_1 = require_SSOClient(); var makePagedClientRequest = async (client, input, ...args) => { @@ -16615,16 +15898,16 @@ var require_ListAccountRolesPaginator = __commonJS({ } return void 0; } - exports.paginateListAccountRoles = paginateListAccountRoles; + exports2.paginateListAccountRoles = paginateListAccountRoles; } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js var require_ListAccountsPaginator = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.paginateListAccounts = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.paginateListAccounts = void 0; var ListAccountsCommand_1 = require_ListAccountsCommand(); var SSOClient_1 = require_SSOClient(); var makePagedClientRequest = async (client, input, ...args) => { @@ -16649,46 +15932,46 @@ var require_ListAccountsPaginator = __commonJS({ } return void 0; } - exports.paginateListAccounts = paginateListAccounts; + exports2.paginateListAccounts = paginateListAccounts; } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js -var require_pagination3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js"(exports) { +var require_pagination2 = __commonJS({ + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_Interfaces(), exports); - tslib_1.__exportStar(require_ListAccountRolesPaginator(), exports); - tslib_1.__exportStar(require_ListAccountsPaginator(), exports); + tslib_1.__exportStar(require_Interfaces(), exports2); + tslib_1.__exportStar(require_ListAccountRolesPaginator(), exports2); + tslib_1.__exportStar(require_ListAccountsPaginator(), exports2); } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js var require_models = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_models_02(), exports); + tslib_1.__exportStar(require_models_02(), exports2); } }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js var require_dist_cjs47 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SSOServiceException = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SSOServiceException = void 0; var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_SSOClient(), exports); - tslib_1.__exportStar(require_SSO(), exports); - tslib_1.__exportStar(require_commands(), exports); - tslib_1.__exportStar(require_pagination3(), exports); - tslib_1.__exportStar(require_models(), exports); + tslib_1.__exportStar(require_SSOClient(), exports2); + tslib_1.__exportStar(require_SSO(), exports2); + tslib_1.__exportStar(require_commands(), exports2); + tslib_1.__exportStar(require_pagination2(), exports2); + tslib_1.__exportStar(require_models(), exports2); var SSOServiceException_1 = require_SSOServiceException(); - Object.defineProperty(exports, "SSOServiceException", { enumerable: true, get: function() { + Object.defineProperty(exports2, "SSOServiceException", { enumerable: true, get: function() { return SSOServiceException_1.SSOServiceException; } }); } @@ -16696,19 +15979,19 @@ var require_dist_cjs47 = __commonJS({ // ../../../node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js var require_client_sso_oidc_node = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js"(exports) { + "../../../node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.SSOOIDCClient = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.CreateTokenCommand = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.UnsupportedGrantTypeException = exports2.UnauthorizedClientException = exports2.SlowDownException = exports2.SSOOIDCClient = exports2.InvalidScopeException = exports2.InvalidRequestException = exports2.InvalidClientException = exports2.InternalServerException = exports2.ExpiredTokenException = exports2.CreateTokenCommand = exports2.AuthorizationPendingException = exports2.AccessDeniedException = void 0; var middleware_host_header_1 = require_dist_cjs3(); var middleware_logger_1 = require_dist_cjs4(); var middleware_recursion_detection_1 = require_dist_cjs5(); var middleware_user_agent_1 = require_dist_cjs19(); var config_resolver_1 = require_dist_cjs21(); var middleware_content_length_1 = require_dist_cjs22(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_retry_1 = require_dist_cjs29(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_retry_1 = require_dist_cjs37(); + var smithy_client_1 = require_dist_cjs36(); var resolveClientEndpointParameters = (options) => { var _a, _b; return { @@ -16722,14 +16005,14 @@ var require_client_sso_oidc_node = __commonJS({ var util_user_agent_node_1 = require_dist_cjs42(); var config_resolver_2 = require_dist_cjs21(); var hash_node_1 = require_dist_cjs43(); - var middleware_retry_2 = require_dist_cjs29(); - var node_config_provider_1 = require_dist_cjs39(); - var node_http_handler_1 = require_dist_cjs33(); + var middleware_retry_2 = require_dist_cjs37(); + var node_config_provider_1 = require_dist_cjs24(); + var node_http_handler_1 = require_dist_cjs34(); var util_body_length_node_1 = require_dist_cjs44(); - var util_retry_1 = require_dist_cjs28(); - var smithy_client_2 = require_dist_cjs35(); - var url_parser_1 = require_dist_cjs24(); - var util_base64_1 = require_dist_cjs31(); + var util_retry_1 = require_dist_cjs30(); + var smithy_client_2 = require_dist_cjs36(); + var url_parser_1 = require_dist_cjs26(); + var util_base64_1 = require_dist_cjs32(); var util_utf8_1 = require_dist_cjs13(); var util_endpoints_1 = require_dist_cjs18(); var p = "required"; @@ -16774,9 +16057,9 @@ var require_client_sso_oidc_node = __commonJS({ utf8Encoder: (_j = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _j !== void 0 ? _j : util_utf8_1.toUtf8 }; }; - var smithy_client_3 = require_dist_cjs35(); + var smithy_client_3 = require_dist_cjs36(); var util_defaults_mode_node_1 = require_dist_cjs45(); - var smithy_client_4 = require_dist_cjs35(); + var smithy_client_4 = require_dist_cjs36(); var getRuntimeConfig2 = (config) => { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; (0, smithy_client_4.emitWarningIfUnsupportedVersion)(process.version); @@ -16825,14 +16108,14 @@ var require_client_sso_oidc_node = __commonJS({ super.destroy(); } }; - exports.SSOOIDCClient = SSOOIDCClient; - var smithy_client_5 = require_dist_cjs35(); - var middleware_endpoint_2 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_6 = require_dist_cjs35(); + exports2.SSOOIDCClient = SSOOIDCClient; + var smithy_client_5 = require_dist_cjs36(); + var middleware_endpoint_2 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_6 = require_dist_cjs36(); var protocol_http_1 = require_dist_cjs2(); - var smithy_client_7 = require_dist_cjs35(); - var smithy_client_8 = require_dist_cjs35(); + var smithy_client_7 = require_dist_cjs36(); + var smithy_client_8 = require_dist_cjs36(); var SSOOIDCServiceException = class _SSOOIDCServiceException extends smithy_client_8.ServiceException { constructor(options) { super(options); @@ -16853,7 +16136,7 @@ var require_client_sso_oidc_node = __commonJS({ this.error_description = opts.error_description; } }; - exports.AccessDeniedException = AccessDeniedException; + exports2.AccessDeniedException = AccessDeniedException; var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException { constructor(opts) { super({ @@ -16868,7 +16151,7 @@ var require_client_sso_oidc_node = __commonJS({ this.error_description = opts.error_description; } }; - exports.AuthorizationPendingException = AuthorizationPendingException; + exports2.AuthorizationPendingException = AuthorizationPendingException; var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException { constructor(opts) { super({ @@ -16883,7 +16166,7 @@ var require_client_sso_oidc_node = __commonJS({ this.error_description = opts.error_description; } }; - exports.ExpiredTokenException = ExpiredTokenException; + exports2.ExpiredTokenException = ExpiredTokenException; var InternalServerException = class _InternalServerException extends SSOOIDCServiceException { constructor(opts) { super({ @@ -16898,7 +16181,7 @@ var require_client_sso_oidc_node = __commonJS({ this.error_description = opts.error_description; } }; - exports.InternalServerException = InternalServerException; + exports2.InternalServerException = InternalServerException; var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException { constructor(opts) { super({ @@ -16913,7 +16196,7 @@ var require_client_sso_oidc_node = __commonJS({ this.error_description = opts.error_description; } }; - exports.InvalidClientException = InvalidClientException; + exports2.InvalidClientException = InvalidClientException; var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException { constructor(opts) { super({ @@ -16942,7 +16225,7 @@ var require_client_sso_oidc_node = __commonJS({ this.error_description = opts.error_description; } }; - exports.InvalidRequestException = InvalidRequestException; + exports2.InvalidRequestException = InvalidRequestException; var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException { constructor(opts) { super({ @@ -16957,7 +16240,7 @@ var require_client_sso_oidc_node = __commonJS({ this.error_description = opts.error_description; } }; - exports.InvalidScopeException = InvalidScopeException; + exports2.InvalidScopeException = InvalidScopeException; var SlowDownException = class _SlowDownException extends SSOOIDCServiceException { constructor(opts) { super({ @@ -16972,7 +16255,7 @@ var require_client_sso_oidc_node = __commonJS({ this.error_description = opts.error_description; } }; - exports.SlowDownException = SlowDownException; + exports2.SlowDownException = SlowDownException; var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException { constructor(opts) { super({ @@ -16987,7 +16270,7 @@ var require_client_sso_oidc_node = __commonJS({ this.error_description = opts.error_description; } }; - exports.UnauthorizedClientException = UnauthorizedClientException; + exports2.UnauthorizedClientException = UnauthorizedClientException; var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException { constructor(opts) { super({ @@ -17002,7 +16285,7 @@ var require_client_sso_oidc_node = __commonJS({ this.error_description = opts.error_description; } }; - exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException; + exports2.UnsupportedGrantTypeException = UnsupportedGrantTypeException; var InvalidClientMetadataException = class _InvalidClientMetadataException extends SSOOIDCServiceException { constructor(opts) { super({ @@ -17509,10 +16792,10 @@ var require_client_sso_oidc_node = __commonJS({ return de_CreateTokenCommand(output, context); } }; - exports.CreateTokenCommand = CreateTokenCommand; - var middleware_endpoint_3 = require_dist_cjs26(); - var middleware_serde_2 = require_dist_cjs25(); - var smithy_client_9 = require_dist_cjs35(); + exports2.CreateTokenCommand = CreateTokenCommand; + var middleware_endpoint_3 = require_dist_cjs28(); + var middleware_serde_2 = require_dist_cjs27(); + var smithy_client_9 = require_dist_cjs36(); var RegisterClientCommand = class _RegisterClientCommand extends smithy_client_9.Command { constructor(input) { super(); @@ -17550,9 +16833,9 @@ var require_client_sso_oidc_node = __commonJS({ return de_RegisterClientCommand(output, context); } }; - var middleware_endpoint_4 = require_dist_cjs26(); - var middleware_serde_3 = require_dist_cjs25(); - var smithy_client_10 = require_dist_cjs35(); + var middleware_endpoint_4 = require_dist_cjs28(); + var middleware_serde_3 = require_dist_cjs27(); + var smithy_client_10 = require_dist_cjs36(); var StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand extends smithy_client_10.Command { constructor(input) { super(); @@ -17602,22 +16885,22 @@ var require_client_sso_oidc_node = __commonJS({ }); // ../../../node_modules/@aws-sdk/token-providers/dist-cjs/constants.js -var require_constants8 = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/constants.js"(exports) { +var require_constants2 = __commonJS({ + "../../../node_modules/@aws-sdk/token-providers/dist-cjs/constants.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.REFRESH_MESSAGE = exports.EXPIRE_WINDOW_MS = void 0; - exports.EXPIRE_WINDOW_MS = 5 * 60 * 1e3; - exports.REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.REFRESH_MESSAGE = exports2.EXPIRE_WINDOW_MS = void 0; + exports2.EXPIRE_WINDOW_MS = 5 * 60 * 1e3; + exports2.REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`; } }); // ../../../node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js var require_getSsoOidcClient = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js"(exports) { + "../../../node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSsoOidcClient = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getSsoOidcClient = void 0; var client_sso_oidc_node_1 = require_client_sso_oidc_node(); var ssoOidcClientsHash = {}; var getSsoOidcClient = (ssoRegion) => { @@ -17628,16 +16911,16 @@ var require_getSsoOidcClient = __commonJS({ ssoOidcClientsHash[ssoRegion] = ssoOidcClient; return ssoOidcClient; }; - exports.getSsoOidcClient = getSsoOidcClient; + exports2.getSsoOidcClient = getSsoOidcClient; } }); // ../../../node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js var require_getNewSsoOidcToken = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js"(exports) { + "../../../node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getNewSsoOidcToken = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getNewSsoOidcToken = void 0; var client_sso_oidc_node_1 = require_client_sso_oidc_node(); var getSsoOidcClient_1 = require_getSsoOidcClient(); var getNewSsoOidcToken = (ssoToken, ssoRegion) => { @@ -17649,51 +16932,51 @@ var require_getNewSsoOidcToken = __commonJS({ grantType: "refresh_token" })); }; - exports.getNewSsoOidcToken = getNewSsoOidcToken; + exports2.getNewSsoOidcToken = getNewSsoOidcToken; } }); // ../../../node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js var require_validateTokenExpiry = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js"(exports) { + "../../../node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.validateTokenExpiry = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.validateTokenExpiry = void 0; var property_provider_1 = require_dist_cjs6(); - var constants_1 = require_constants8(); + var constants_1 = require_constants2(); var validateTokenExpiry = (token) => { if (token.expiration && token.expiration.getTime() < Date.now()) { throw new property_provider_1.TokenProviderError(`Token is expired. ${constants_1.REFRESH_MESSAGE}`, false); } }; - exports.validateTokenExpiry = validateTokenExpiry; + exports2.validateTokenExpiry = validateTokenExpiry; } }); // ../../../node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js var require_validateTokenKey = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js"(exports) { + "../../../node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.validateTokenKey = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.validateTokenKey = void 0; var property_provider_1 = require_dist_cjs6(); - var constants_1 = require_constants8(); + var constants_1 = require_constants2(); var validateTokenKey = (key, value, forRefresh = false) => { if (typeof value === "undefined") { throw new property_provider_1.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${constants_1.REFRESH_MESSAGE}`, false); } }; - exports.validateTokenKey = validateTokenKey; + exports2.validateTokenKey = validateTokenKey; } }); // ../../../node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js var require_writeSSOTokenToFile = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js"(exports) { + "../../../node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.writeSSOTokenToFile = void 0; - var shared_ini_file_loader_1 = require_dist_cjs38(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.writeSSOTokenToFile = void 0; + var shared_ini_file_loader_1 = require_dist_cjs23(); var fs_1 = require("fs"); var { writeFile } = fs_1.promises; var writeSSOTokenToFile = (id, ssoToken) => { @@ -17701,19 +16984,19 @@ var require_writeSSOTokenToFile = __commonJS({ const tokenString = JSON.stringify(ssoToken, null, 2); return writeFile(tokenFilepath, tokenString); }; - exports.writeSSOTokenToFile = writeSSOTokenToFile; + exports2.writeSSOTokenToFile = writeSSOTokenToFile; } }); // ../../../node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js var require_fromSso = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js"(exports) { + "../../../node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromSso = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromSso = void 0; var property_provider_1 = require_dist_cjs6(); - var shared_ini_file_loader_1 = require_dist_cjs38(); - var constants_1 = require_constants8(); + var shared_ini_file_loader_1 = require_dist_cjs23(); + var constants_1 = require_constants2(); var getNewSsoOidcToken_1 = require_getNewSsoOidcToken(); var validateTokenExpiry_1 = require_validateTokenExpiry(); var validateTokenKey_1 = require_validateTokenKey(); @@ -17785,16 +17068,16 @@ var require_fromSso = __commonJS({ return existingToken; } }; - exports.fromSso = fromSso; + exports2.fromSso = fromSso; } }); // ../../../node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js -var require_fromStatic3 = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js"(exports) { +var require_fromStatic = __commonJS({ + "../../../node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromStatic = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromStatic = void 0; var property_provider_1 = require_dist_cjs6(); var fromStatic = ({ token }) => async () => { if (!token || !token.token) { @@ -17802,48 +17085,48 @@ var require_fromStatic3 = __commonJS({ } return token; }; - exports.fromStatic = fromStatic; + exports2.fromStatic = fromStatic; } }); // ../../../node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js var require_nodeProvider = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js"(exports) { + "../../../node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.nodeProvider = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.nodeProvider = void 0; var property_provider_1 = require_dist_cjs6(); var fromSso_1 = require_fromSso(); var nodeProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromSso_1.fromSso)(init), async () => { throw new property_provider_1.TokenProviderError("Could not load token from any providers", false); }), (token) => token.expiration !== void 0 && token.expiration.getTime() - Date.now() < 3e5, (token) => token.expiration !== void 0); - exports.nodeProvider = nodeProvider; + exports2.nodeProvider = nodeProvider; } }); // ../../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js var require_dist_cjs48 = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_client_sso_oidc_node(), exports); - tslib_1.__exportStar(require_fromSso(), exports); - tslib_1.__exportStar(require_fromStatic3(), exports); - tslib_1.__exportStar(require_nodeProvider(), exports); + tslib_1.__exportStar(require_client_sso_oidc_node(), exports2); + tslib_1.__exportStar(require_fromSso(), exports2); + tslib_1.__exportStar(require_fromStatic(), exports2); + tslib_1.__exportStar(require_nodeProvider(), exports2); } }); // ../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js var require_resolveSSOCredentials = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveSSOCredentials = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveSSOCredentials = void 0; var client_sso_1 = require_dist_cjs47(); var token_providers_1 = require_dist_cjs48(); var property_provider_1 = require_dist_cjs6(); - var shared_ini_file_loader_1 = require_dist_cjs38(); + var shared_ini_file_loader_1 = require_dist_cjs23(); var SHOULD_FAIL_CREDENTIAL_CHAIN = false; var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile }) => { let token; @@ -17886,16 +17169,16 @@ var require_resolveSSOCredentials = __commonJS({ } return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) }; }; - exports.resolveSSOCredentials = resolveSSOCredentials; + exports2.resolveSSOCredentials = resolveSSOCredentials; } }); // ../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js var require_validateSsoProfile = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.validateSsoProfile = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.validateSsoProfile = void 0; var property_provider_1 = require_dist_cjs6(); var validateSsoProfile = (profile) => { const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile; @@ -17905,18 +17188,18 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht } return profile; }; - exports.validateSsoProfile = validateSsoProfile; + exports2.validateSsoProfile = validateSsoProfile; } }); // ../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js var require_fromSSO = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromSSO = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromSSO = void 0; var property_provider_1 = require_dist_cjs6(); - var shared_ini_file_loader_1 = require_dist_cjs38(); + var shared_ini_file_loader_1 = require_dist_cjs23(); var isSsoProfile_1 = require_isSsoProfile(); var resolveSSOCredentials_1 = require_resolveSSOCredentials(); var validateSsoProfile_1 = require_validateSsoProfile(); @@ -17969,40 +17252,40 @@ var require_fromSSO = __commonJS({ }); } }; - exports.fromSSO = fromSSO; + exports2.fromSSO = fromSSO; } }); // ../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js -var require_types7 = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js"(exports) { +var require_types2 = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js var require_dist_cjs49 = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromSSO(), exports); - tslib_1.__exportStar(require_isSsoProfile(), exports); - tslib_1.__exportStar(require_types7(), exports); - tslib_1.__exportStar(require_validateSsoProfile(), exports); + tslib_1.__exportStar(require_fromSSO(), exports2); + tslib_1.__exportStar(require_isSsoProfile(), exports2); + tslib_1.__exportStar(require_types2(), exports2); + tslib_1.__exportStar(require_validateSsoProfile(), exports2); } }); // ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js var require_resolveSsoCredentials = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveSsoCredentials = exports.isSsoProfile = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveSsoCredentials = exports2.isSsoProfile = void 0; var credential_provider_sso_1 = require_dist_cjs49(); var credential_provider_sso_2 = require_dist_cjs49(); - Object.defineProperty(exports, "isSsoProfile", { enumerable: true, get: function() { + Object.defineProperty(exports2, "isSsoProfile", { enumerable: true, get: function() { return credential_provider_sso_2.isSsoProfile; } }); var resolveSsoCredentials = (data) => { @@ -18015,33 +17298,33 @@ var require_resolveSsoCredentials = __commonJS({ ssoRoleName: sso_role_name })(); }; - exports.resolveSsoCredentials = resolveSsoCredentials; + exports2.resolveSsoCredentials = resolveSsoCredentials; } }); // ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js var require_resolveStaticCredentials = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveStaticCredentials = exports.isStaticCredsProfile = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveStaticCredentials = exports2.isStaticCredsProfile = void 0; var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1; - exports.isStaticCredsProfile = isStaticCredsProfile; + exports2.isStaticCredsProfile = isStaticCredsProfile; var resolveStaticCredentials = (profile) => Promise.resolve({ accessKeyId: profile.aws_access_key_id, secretAccessKey: profile.aws_secret_access_key, sessionToken: profile.aws_session_token }); - exports.resolveStaticCredentials = resolveStaticCredentials; + exports2.resolveStaticCredentials = resolveStaticCredentials; } }); // ../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js var require_fromWebToken = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromWebToken = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromWebToken = void 0; var property_provider_1 = require_dist_cjs6(); var fromWebToken = (init) => () => { const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity } = init; @@ -18058,16 +17341,16 @@ var require_fromWebToken = __commonJS({ DurationSeconds: durationSeconds }); }; - exports.fromWebToken = fromWebToken; + exports2.fromWebToken = fromWebToken; } }); // ../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js var require_fromTokenFile = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromTokenFile = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromTokenFile = void 0; var property_provider_1 = require_dist_cjs6(); var fs_1 = require("fs"); var fromWebToken_1 = require_fromWebToken(); @@ -18089,46 +17372,46 @@ var require_fromTokenFile = __commonJS({ roleSessionName })(); }; - exports.fromTokenFile = fromTokenFile; + exports2.fromTokenFile = fromTokenFile; } }); // ../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js var require_dist_cjs50 = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromTokenFile(), exports); - tslib_1.__exportStar(require_fromWebToken(), exports); + tslib_1.__exportStar(require_fromTokenFile(), exports2); + tslib_1.__exportStar(require_fromWebToken(), exports2); } }); // ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js var require_resolveWebIdentityCredentials = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveWebIdentityCredentials = exports.isWebIdentityProfile = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveWebIdentityCredentials = exports2.isWebIdentityProfile = void 0; var credential_provider_web_identity_1 = require_dist_cjs50(); var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1; - exports.isWebIdentityProfile = isWebIdentityProfile; + exports2.isWebIdentityProfile = isWebIdentityProfile; var resolveWebIdentityCredentials = async (profile, options) => (0, credential_provider_web_identity_1.fromTokenFile)({ webIdentityTokenFile: profile.web_identity_token_file, roleArn: profile.role_arn, roleSessionName: profile.role_session_name, roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity })(); - exports.resolveWebIdentityCredentials = resolveWebIdentityCredentials; + exports2.resolveWebIdentityCredentials = resolveWebIdentityCredentials; } }); // ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js var require_resolveProfileData = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveProfileData = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveProfileData = void 0; var property_provider_1 = require_dist_cjs6(); var resolveAssumeRoleCredentials_1 = require_resolveAssumeRoleCredentials(); var resolveProcessCredentials_1 = require_resolveProcessCredentials2(); @@ -18157,97 +17440,97 @@ var require_resolveProfileData = __commonJS({ } throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`); }; - exports.resolveProfileData = resolveProfileData; + exports2.resolveProfileData = resolveProfileData; } }); // ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js var require_fromIni = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromIni = void 0; - var shared_ini_file_loader_1 = require_dist_cjs38(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.fromIni = void 0; + var shared_ini_file_loader_1 = require_dist_cjs23(); var resolveProfileData_1 = require_resolveProfileData(); var fromIni = (init = {}) => async () => { const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); return (0, resolveProfileData_1.resolveProfileData)((0, shared_ini_file_loader_1.getProfileName)(init), profiles, init); }; - exports.fromIni = fromIni; + exports2.fromIni = fromIni; } }); // ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js var require_dist_cjs51 = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromIni(), exports); + tslib_1.__exportStar(require_fromIni(), exports2); } }); // ../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js var require_remoteProvider = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.remoteProvider = exports.ENV_IMDS_DISABLED = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.remoteProvider = exports2.ENV_IMDS_DISABLED = void 0; var credential_provider_imds_1 = require_dist_cjs40(); var property_provider_1 = require_dist_cjs6(); - exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; + exports2.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; var remoteProvider = (init) => { if (process.env[credential_provider_imds_1.ENV_CMDS_RELATIVE_URI] || process.env[credential_provider_imds_1.ENV_CMDS_FULL_URI]) { return (0, credential_provider_imds_1.fromContainerMetadata)(init); } - if (process.env[exports.ENV_IMDS_DISABLED]) { + if (process.env[exports2.ENV_IMDS_DISABLED]) { return async () => { throw new property_provider_1.CredentialsProviderError("EC2 Instance Metadata Service access disabled"); }; } return (0, credential_provider_imds_1.fromInstanceMetadata)(init); }; - exports.remoteProvider = remoteProvider; + exports2.remoteProvider = remoteProvider; } }); // ../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js var require_defaultProvider = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.defaultProvider = void 0; - var credential_provider_env_1 = require_dist_cjs37(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.defaultProvider = void 0; + var credential_provider_env_1 = require_dist_cjs39(); var credential_provider_ini_1 = require_dist_cjs51(); var credential_provider_process_1 = require_dist_cjs41(); var credential_provider_sso_1 = require_dist_cjs49(); var credential_provider_web_identity_1 = require_dist_cjs50(); var property_provider_1 = require_dist_cjs6(); - var shared_ini_file_loader_1 = require_dist_cjs38(); + var shared_ini_file_loader_1 = require_dist_cjs23(); var remoteProvider_1 = require_remoteProvider(); var defaultProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)(...init.profile || process.env[shared_ini_file_loader_1.ENV_PROFILE] ? [] : [(0, credential_provider_env_1.fromEnv)()], (0, credential_provider_sso_1.fromSSO)(init), (0, credential_provider_ini_1.fromIni)(init), (0, credential_provider_process_1.fromProcess)(init), (0, credential_provider_web_identity_1.fromTokenFile)(init), (0, remoteProvider_1.remoteProvider)(init), async () => { throw new property_provider_1.CredentialsProviderError("Could not load credentials from any providers", false); }), (credentials) => credentials.expiration !== void 0 && credentials.expiration.getTime() - Date.now() < 3e5, (credentials) => credentials.expiration !== void 0); - exports.defaultProvider = defaultProvider; + exports2.defaultProvider = defaultProvider; } }); // ../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js var require_dist_cjs52 = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_defaultProvider(), exports); + tslib_1.__exportStar(require_defaultProvider(), exports2); } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js var require_ruleset2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ruleSet = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ruleSet = void 0; var F = "required"; var G = "type"; var H = "fn"; @@ -18285,16 +17568,16 @@ var require_ruleset2 = __commonJS({ var D = [x]; var E = [y]; var _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], [G]: d, rules: [{ conditions: [{ [H]: e, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: i }, w, { conditions: [{ [H]: e, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, h] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-east-2"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-west-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-west-2"] }], endpoint: u, [G]: i }, { endpoint: { url: j, properties: { authSchemes: [{ name: f, signingName: g, signingRegion: "{Region}" }] }, headers: v }, [G]: i }] }, { conditions: C, [G]: d, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: i }] }, { conditions: [p], [G]: d, rules: [{ conditions: [r], [G]: d, rules: [{ conditions: [x, y], [G]: d, rules: [{ conditions: [z, B], [G]: d, rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: i }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }] }, { conditions: D, [G]: d, rules: [{ conditions: [z], [G]: d, rules: [{ conditions: [{ [H]: e, [I]: ["aws-us-gov", { [H]: l, [I]: [A, "name"] }] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: i }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: i }] }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }] }, { conditions: E, [G]: d, rules: [{ conditions: [B], [G]: d, rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: i }] }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }] }, w, { endpoint: { url: j, properties: v, headers: v }, [G]: i }] }] }, { error: "Invalid Configuration: Missing Region", [G]: k }] }; - exports.ruleSet = _data; + exports2.ruleSet = _data; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js var require_endpointResolver2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.defaultEndpointResolver = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.defaultEndpointResolver = void 0; var util_endpoints_1 = require_dist_cjs18(); var ruleset_1 = require_ruleset2(); var defaultEndpointResolver = (endpointParams, context = {}) => { @@ -18303,19 +17586,19 @@ var require_endpointResolver2 = __commonJS({ logger: context.logger }); }; - exports.defaultEndpointResolver = defaultEndpointResolver; + exports2.defaultEndpointResolver = defaultEndpointResolver; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js var require_runtimeConfig_shared2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRuntimeConfig = void 0; - var smithy_client_1 = require_dist_cjs35(); - var url_parser_1 = require_dist_cjs24(); - var util_base64_1 = require_dist_cjs31(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRuntimeConfig = void 0; + var smithy_client_1 = require_dist_cjs36(); + var url_parser_1 = require_dist_cjs26(); + var util_base64_1 = require_dist_cjs32(); var util_utf8_1 = require_dist_cjs13(); var endpointResolver_1 = require_endpointResolver2(); var getRuntimeConfig = (config) => ({ @@ -18331,16 +17614,16 @@ var require_runtimeConfig_shared2 = __commonJS({ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8 }); - exports.getRuntimeConfig = getRuntimeConfig; + exports2.getRuntimeConfig = getRuntimeConfig; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js var require_runtimeConfig2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRuntimeConfig = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRuntimeConfig = void 0; var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package2()); var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers(); @@ -18348,15 +17631,15 @@ var require_runtimeConfig2 = __commonJS({ var util_user_agent_node_1 = require_dist_cjs42(); var config_resolver_1 = require_dist_cjs21(); var hash_node_1 = require_dist_cjs43(); - var middleware_retry_1 = require_dist_cjs29(); - var node_config_provider_1 = require_dist_cjs39(); - var node_http_handler_1 = require_dist_cjs33(); + var middleware_retry_1 = require_dist_cjs37(); + var node_config_provider_1 = require_dist_cjs24(); + var node_http_handler_1 = require_dist_cjs34(); var util_body_length_node_1 = require_dist_cjs44(); - var util_retry_1 = require_dist_cjs28(); + var util_retry_1 = require_dist_cjs30(); var runtimeConfig_shared_1 = require_runtimeConfig_shared2(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs36(); var util_defaults_mode_node_1 = require_dist_cjs45(); - var smithy_client_2 = require_dist_cjs35(); + var smithy_client_2 = require_dist_cjs36(); var getRuntimeConfig = (config) => { (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); @@ -18383,19 +17666,19 @@ var require_runtimeConfig2 = __commonJS({ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS) }; }; - exports.getRuntimeConfig = getRuntimeConfig; + exports2.getRuntimeConfig = getRuntimeConfig; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js var require_runtimeExtensions2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveRuntimeExtensions = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveRuntimeExtensions = void 0; var region_config_resolver_1 = require_dist_cjs46(); var protocol_http_1 = require_dist_cjs2(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs36(); var asPartial = (t) => t; var resolveRuntimeExtensions = (runtimeConfig, extensions) => { const extensionConfiguration = { @@ -18411,27 +17694,27 @@ var require_runtimeExtensions2 = __commonJS({ ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration) }; }; - exports.resolveRuntimeExtensions = resolveRuntimeExtensions; + exports2.resolveRuntimeExtensions = resolveRuntimeExtensions; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js var require_STSClient = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.STSClient = exports.__Client = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.STSClient = exports2.__Client = void 0; var middleware_host_header_1 = require_dist_cjs3(); var middleware_logger_1 = require_dist_cjs4(); var middleware_recursion_detection_1 = require_dist_cjs5(); - var middleware_sdk_sts_1 = require_dist_cjs36(); + var middleware_sdk_sts_1 = require_dist_cjs38(); var middleware_user_agent_1 = require_dist_cjs19(); var config_resolver_1 = require_dist_cjs21(); var middleware_content_length_1 = require_dist_cjs22(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_retry_1 = require_dist_cjs29(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "__Client", { enumerable: true, get: function() { + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_retry_1 = require_dist_cjs37(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "__Client", { enumerable: true, get: function() { return smithy_client_1.Client; } }); var EndpointParameters_1 = require_EndpointParameters2(); @@ -18461,22 +17744,23 @@ var require_STSClient = __commonJS({ super.destroy(); } }; - exports.STSClient = STSClient; + exports2.STSClient = STSClient; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js var require_AssumeRoleWithSAMLCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.AssumeRoleWithSAMLCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.AssumeRoleWithSAMLCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_0(); var Aws_query_1 = require_Aws_query(); var AssumeRoleWithSAMLCommand = class _AssumeRoleWithSAMLCommand extends smithy_client_1.Command { @@ -18505,7 +17789,11 @@ var require_AssumeRoleWithSAMLCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog + outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSSecurityTokenServiceV20110615", + operation: "AssumeRoleWithSAML" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -18517,23 +17805,24 @@ var require_AssumeRoleWithSAMLCommand = __commonJS({ return (0, Aws_query_1.de_AssumeRoleWithSAMLCommand)(output, context); } }; - exports.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; + exports2.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js var require_DecodeAuthorizationMessageCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DecodeAuthorizationMessageCommand = exports.$Command = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.DecodeAuthorizationMessageCommand = exports2.$Command = void 0; var middleware_signing_1 = require_dist_cjs16(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_query_1 = require_Aws_query(); var DecodeAuthorizationMessageCommand = class _DecodeAuthorizationMessageCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -18562,7 +17851,11 @@ var require_DecodeAuthorizationMessageCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSSecurityTokenServiceV20110615", + operation: "DecodeAuthorizationMessage" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -18574,23 +17867,24 @@ var require_DecodeAuthorizationMessageCommand = __commonJS({ return (0, Aws_query_1.de_DecodeAuthorizationMessageCommand)(output, context); } }; - exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; + exports2.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js var require_GetAccessKeyInfoCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.GetAccessKeyInfoCommand = exports.$Command = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GetAccessKeyInfoCommand = exports2.$Command = void 0; var middleware_signing_1 = require_dist_cjs16(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_query_1 = require_Aws_query(); var GetAccessKeyInfoCommand = class _GetAccessKeyInfoCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -18619,7 +17913,11 @@ var require_GetAccessKeyInfoCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSSecurityTokenServiceV20110615", + operation: "GetAccessKeyInfo" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -18631,23 +17929,24 @@ var require_GetAccessKeyInfoCommand = __commonJS({ return (0, Aws_query_1.de_GetAccessKeyInfoCommand)(output, context); } }; - exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; + exports2.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js var require_GetCallerIdentityCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.GetCallerIdentityCommand = exports.$Command = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GetCallerIdentityCommand = exports2.$Command = void 0; var middleware_signing_1 = require_dist_cjs16(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_query_1 = require_Aws_query(); var GetCallerIdentityCommand = class _GetCallerIdentityCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -18676,7 +17975,11 @@ var require_GetCallerIdentityCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSSecurityTokenServiceV20110615", + operation: "GetCallerIdentity" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -18688,23 +17991,24 @@ var require_GetCallerIdentityCommand = __commonJS({ return (0, Aws_query_1.de_GetCallerIdentityCommand)(output, context); } }; - exports.GetCallerIdentityCommand = GetCallerIdentityCommand; + exports2.GetCallerIdentityCommand = GetCallerIdentityCommand; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js var require_GetFederationTokenCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.GetFederationTokenCommand = exports.$Command = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GetFederationTokenCommand = exports2.$Command = void 0; var middleware_signing_1 = require_dist_cjs16(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_0(); var Aws_query_1 = require_Aws_query(); var GetFederationTokenCommand = class _GetFederationTokenCommand extends smithy_client_1.Command { @@ -18734,7 +18038,11 @@ var require_GetFederationTokenCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog + outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSSecurityTokenServiceV20110615", + operation: "GetFederationToken" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -18746,23 +18054,24 @@ var require_GetFederationTokenCommand = __commonJS({ return (0, Aws_query_1.de_GetFederationTokenCommand)(output, context); } }; - exports.GetFederationTokenCommand = GetFederationTokenCommand; + exports2.GetFederationTokenCommand = GetFederationTokenCommand; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js var require_GetSessionTokenCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.GetSessionTokenCommand = exports.$Command = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GetSessionTokenCommand = exports2.$Command = void 0; var middleware_signing_1 = require_dist_cjs16(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_0(); var Aws_query_1 = require_Aws_query(); var GetSessionTokenCommand = class _GetSessionTokenCommand extends smithy_client_1.Command { @@ -18792,7 +18101,11 @@ var require_GetSessionTokenCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog + outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSSecurityTokenServiceV20110615", + operation: "GetSessionToken" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -18804,17 +18117,17 @@ var require_GetSessionTokenCommand = __commonJS({ return (0, Aws_query_1.de_GetSessionTokenCommand)(output, context); } }; - exports.GetSessionTokenCommand = GetSessionTokenCommand; + exports2.GetSessionTokenCommand = GetSessionTokenCommand; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/STS.js var require_STS = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/STS.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/STS.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.STS = void 0; - var smithy_client_1 = require_dist_cjs35(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.STS = void 0; + var smithy_client_1 = require_dist_cjs36(); var AssumeRoleCommand_1 = require_AssumeRoleCommand(); var AssumeRoleWithSAMLCommand_1 = require_AssumeRoleWithSAMLCommand(); var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); @@ -18836,44 +18149,44 @@ var require_STS = __commonJS({ }; var STS = class extends STSClient_1.STSClient { }; - exports.STS = STS; + exports2.STS = STS; (0, smithy_client_1.createAggregatedClient)(commands, STS); } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js var require_commands2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_AssumeRoleCommand(), exports); - tslib_1.__exportStar(require_AssumeRoleWithSAMLCommand(), exports); - tslib_1.__exportStar(require_AssumeRoleWithWebIdentityCommand(), exports); - tslib_1.__exportStar(require_DecodeAuthorizationMessageCommand(), exports); - tslib_1.__exportStar(require_GetAccessKeyInfoCommand(), exports); - tslib_1.__exportStar(require_GetCallerIdentityCommand(), exports); - tslib_1.__exportStar(require_GetFederationTokenCommand(), exports); - tslib_1.__exportStar(require_GetSessionTokenCommand(), exports); + tslib_1.__exportStar(require_AssumeRoleCommand(), exports2); + tslib_1.__exportStar(require_AssumeRoleWithSAMLCommand(), exports2); + tslib_1.__exportStar(require_AssumeRoleWithWebIdentityCommand(), exports2); + tslib_1.__exportStar(require_DecodeAuthorizationMessageCommand(), exports2); + tslib_1.__exportStar(require_GetAccessKeyInfoCommand(), exports2); + tslib_1.__exportStar(require_GetCallerIdentityCommand(), exports2); + tslib_1.__exportStar(require_GetFederationTokenCommand(), exports2); + tslib_1.__exportStar(require_GetSessionTokenCommand(), exports2); } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js var require_models2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_models_0(), exports); + tslib_1.__exportStar(require_models_0(), exports2); } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js var require_defaultRoleAssumers = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.decorateDefaultCredentialProvider = exports2.getDefaultRoleAssumerWithWebIdentity = exports2.getDefaultRoleAssumer = void 0; var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers(); var STSClient_1 = require_STSClient(); var getCustomizableStsClientCtor = (baseCtor, customizations) => { @@ -18890,32 +18203,32 @@ var require_defaultRoleAssumers = __commonJS({ }; }; var getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumer)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); - exports.getDefaultRoleAssumer = getDefaultRoleAssumer; + exports2.getDefaultRoleAssumer = getDefaultRoleAssumer; var getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); - exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; + exports2.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; var decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: (0, exports.getDefaultRoleAssumer)(input), - roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input), + roleAssumer: (0, exports2.getDefaultRoleAssumer)(input), + roleAssumerWithWebIdentity: (0, exports2.getDefaultRoleAssumerWithWebIdentity)(input), ...input }); - exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; + exports2.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; } }); // ../../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js var require_dist_cjs53 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.STSServiceException = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.STSServiceException = void 0; var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_STSClient(), exports); - tslib_1.__exportStar(require_STS(), exports); - tslib_1.__exportStar(require_commands2(), exports); - tslib_1.__exportStar(require_models2(), exports); - tslib_1.__exportStar(require_defaultRoleAssumers(), exports); + tslib_1.__exportStar(require_STSClient(), exports2); + tslib_1.__exportStar(require_STS(), exports2); + tslib_1.__exportStar(require_commands2(), exports2); + tslib_1.__exportStar(require_models2(), exports2); + tslib_1.__exportStar(require_defaultRoleAssumers(), exports2); var STSServiceException_1 = require_STSServiceException(); - Object.defineProperty(exports, "STSServiceException", { enumerable: true, get: function() { + Object.defineProperty(exports2, "STSServiceException", { enumerable: true, get: function() { return STSServiceException_1.STSServiceException; } }); } @@ -18923,10 +18236,10 @@ var require_dist_cjs53 = __commonJS({ // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/ruleset.js var require_ruleset3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/ruleset.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/ruleset.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ruleSet = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ruleSet = void 0; var r = "required"; var s = "fn"; var t = "argv"; @@ -18949,16 +18262,16 @@ var require_ruleset3 = __commonJS({ var p = [j]; var q = [l]; var _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [s]: a, [t]: [h] }], type: b, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [s]: a, [t]: q }], type: b, rules: [{ conditions: [{ [s]: "aws.partition", [t]: q, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [m, n], type: b, rules: [{ endpoint: { url: "https://states-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [s]: "stringEquals", [t]: [l, "us-gov-west-1"] }], endpoint: { url: "https://states.us-gov-west-1.amazonaws.com", properties: k, headers: k }, type: d }, { endpoint: { url: "https://states-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [n], type: b, rules: [{ endpoint: { url: "https://states.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://states.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }; - exports.ruleSet = _data; + exports2.ruleSet = _data; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/endpointResolver.js var require_endpointResolver3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/endpointResolver.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/endpointResolver.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.defaultEndpointResolver = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.defaultEndpointResolver = void 0; var util_endpoints_1 = require_dist_cjs18(); var ruleset_1 = require_ruleset3(); var defaultEndpointResolver = (endpointParams, context = {}) => { @@ -18967,19 +18280,19 @@ var require_endpointResolver3 = __commonJS({ logger: context.logger }); }; - exports.defaultEndpointResolver = defaultEndpointResolver; + exports2.defaultEndpointResolver = defaultEndpointResolver; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/runtimeConfig.shared.js var require_runtimeConfig_shared3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/runtimeConfig.shared.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/runtimeConfig.shared.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRuntimeConfig = void 0; - var smithy_client_1 = require_dist_cjs35(); - var url_parser_1 = require_dist_cjs24(); - var util_base64_1 = require_dist_cjs31(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRuntimeConfig = void 0; + var smithy_client_1 = require_dist_cjs36(); + var url_parser_1 = require_dist_cjs26(); + var util_base64_1 = require_dist_cjs32(); var util_utf8_1 = require_dist_cjs13(); var endpointResolver_1 = require_endpointResolver3(); var getRuntimeConfig = (config) => ({ @@ -18995,16 +18308,16 @@ var require_runtimeConfig_shared3 = __commonJS({ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8 }); - exports.getRuntimeConfig = getRuntimeConfig; + exports2.getRuntimeConfig = getRuntimeConfig; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/runtimeConfig.js var require_runtimeConfig3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/runtimeConfig.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/runtimeConfig.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRuntimeConfig = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getRuntimeConfig = void 0; var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package()); var client_sts_1 = require_dist_cjs53(); @@ -19012,15 +18325,15 @@ var require_runtimeConfig3 = __commonJS({ var util_user_agent_node_1 = require_dist_cjs42(); var config_resolver_1 = require_dist_cjs21(); var hash_node_1 = require_dist_cjs43(); - var middleware_retry_1 = require_dist_cjs29(); - var node_config_provider_1 = require_dist_cjs39(); - var node_http_handler_1 = require_dist_cjs33(); + var middleware_retry_1 = require_dist_cjs37(); + var node_config_provider_1 = require_dist_cjs24(); + var node_http_handler_1 = require_dist_cjs34(); var util_body_length_node_1 = require_dist_cjs44(); - var util_retry_1 = require_dist_cjs28(); + var util_retry_1 = require_dist_cjs30(); var runtimeConfig_shared_1 = require_runtimeConfig_shared3(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs36(); var util_defaults_mode_node_1 = require_dist_cjs45(); - var smithy_client_2 = require_dist_cjs35(); + var smithy_client_2 = require_dist_cjs36(); var getRuntimeConfig = (config) => { (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); @@ -19047,19 +18360,19 @@ var require_runtimeConfig3 = __commonJS({ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS) }; }; - exports.getRuntimeConfig = getRuntimeConfig; + exports2.getRuntimeConfig = getRuntimeConfig; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/runtimeExtensions.js var require_runtimeExtensions3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/runtimeExtensions.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/runtimeExtensions.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveRuntimeExtensions = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.resolveRuntimeExtensions = void 0; var region_config_resolver_1 = require_dist_cjs46(); var protocol_http_1 = require_dist_cjs2(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs36(); var asPartial = (t) => t; var resolveRuntimeExtensions = (runtimeConfig, extensions) => { const extensionConfiguration = { @@ -19075,16 +18388,16 @@ var require_runtimeExtensions3 = __commonJS({ ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration) }; }; - exports.resolveRuntimeExtensions = resolveRuntimeExtensions; + exports2.resolveRuntimeExtensions = resolveRuntimeExtensions; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/SFNClient.js var require_SFNClient = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/SFNClient.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/SFNClient.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SFNClient = exports.__Client = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SFNClient = exports2.__Client = void 0; var middleware_host_header_1 = require_dist_cjs3(); var middleware_logger_1 = require_dist_cjs4(); var middleware_recursion_detection_1 = require_dist_cjs5(); @@ -19092,10 +18405,10 @@ var require_SFNClient = __commonJS({ var middleware_user_agent_1 = require_dist_cjs19(); var config_resolver_1 = require_dist_cjs21(); var middleware_content_length_1 = require_dist_cjs22(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_retry_1 = require_dist_cjs29(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "__Client", { enumerable: true, get: function() { + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_retry_1 = require_dist_cjs37(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "__Client", { enumerable: true, get: function() { return smithy_client_1.Client; } }); var EndpointParameters_1 = require_EndpointParameters(); @@ -19126,18 +18439,18 @@ var require_SFNClient = __commonJS({ super.destroy(); } }; - exports.SFNClient = SFNClient; + exports2.SFNClient = SFNClient; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/models/SFNServiceException.js var require_SFNServiceException = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/models/SFNServiceException.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/models/SFNServiceException.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SFNServiceException = exports.__ServiceException = void 0; - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function() { + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SFNServiceException = exports2.__ServiceException = void 0; + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "__ServiceException", { enumerable: true, get: function() { return smithy_client_1.ServiceException; } }); var SFNServiceException = class _SFNServiceException extends smithy_client_1.ServiceException { @@ -19146,18 +18459,18 @@ var require_SFNServiceException = __commonJS({ Object.setPrototypeOf(this, _SFNServiceException.prototype); } }; - exports.SFNServiceException = SFNServiceException; + exports2.SFNServiceException = SFNServiceException; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/models/models_0.js var require_models_03 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/models/models_0.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/models/models_0.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ExecutionStartedEventDetailsFilterSensitiveLog = exports.ExecutionFailedEventDetailsFilterSensitiveLog = exports.ExecutionAbortedEventDetailsFilterSensitiveLog = exports.GetActivityTaskOutputFilterSensitiveLog = exports.DescribeStateMachineForExecutionOutputFilterSensitiveLog = exports.DescribeStateMachineAliasOutputFilterSensitiveLog = exports.DescribeStateMachineOutputFilterSensitiveLog = exports.DescribeExecutionOutputFilterSensitiveLog = exports.CreateStateMachineAliasInputFilterSensitiveLog = exports.CreateStateMachineInputFilterSensitiveLog = exports.ActivityTimedOutEventDetailsFilterSensitiveLog = exports.ActivitySucceededEventDetailsFilterSensitiveLog = exports.ActivityScheduleFailedEventDetailsFilterSensitiveLog = exports.ActivityScheduledEventDetailsFilterSensitiveLog = exports.ActivityFailedEventDetailsFilterSensitiveLog = exports.MissingRequiredParameter = exports.SyncExecutionStatus = exports.InvalidExecutionInput = exports.ExecutionLimitExceeded = exports.ExecutionAlreadyExists = exports.InvalidOutput = exports.TaskTimedOut = exports.TaskDoesNotExist = exports.InvalidToken = exports.HistoryEventType = exports.StateMachineDoesNotExist = exports.StateMachineStatus = exports.MapRunStatus = exports.ExecutionDoesNotExist = exports.ExecutionStatus = exports.ServiceQuotaExceededException = exports.ResourceNotFound = exports.ValidationException = exports.ValidationExceptionReason = exports.StateMachineTypeNotSupported = exports.StateMachineLimitExceeded = exports.StateMachineDeleting = exports.StateMachineAlreadyExists = exports.InvalidTracingConfiguration = exports.InvalidLoggingConfiguration = exports.InvalidDefinition = exports.InvalidArn = exports.StateMachineType = exports.LogLevel = exports.ConflictException = exports.TooManyTags = exports.InvalidName = exports.ActivityWorkerLimitExceeded = exports.ActivityLimitExceeded = exports.ActivityDoesNotExist = void 0; - exports.UpdateStateMachineAliasInputFilterSensitiveLog = exports.UpdateStateMachineInputFilterSensitiveLog = exports.StopExecutionInputFilterSensitiveLog = exports.StartSyncExecutionOutputFilterSensitiveLog = exports.StartSyncExecutionInputFilterSensitiveLog = exports.StartExecutionInputFilterSensitiveLog = exports.SendTaskSuccessInputFilterSensitiveLog = exports.SendTaskFailureInputFilterSensitiveLog = exports.PublishStateMachineVersionInputFilterSensitiveLog = exports.GetExecutionHistoryOutputFilterSensitiveLog = exports.HistoryEventFilterSensitiveLog = exports.TaskTimedOutEventDetailsFilterSensitiveLog = exports.TaskSucceededEventDetailsFilterSensitiveLog = exports.TaskSubmittedEventDetailsFilterSensitiveLog = exports.TaskSubmitFailedEventDetailsFilterSensitiveLog = exports.TaskStartFailedEventDetailsFilterSensitiveLog = exports.TaskScheduledEventDetailsFilterSensitiveLog = exports.TaskFailedEventDetailsFilterSensitiveLog = exports.StateExitedEventDetailsFilterSensitiveLog = exports.StateEnteredEventDetailsFilterSensitiveLog = exports.MapRunFailedEventDetailsFilterSensitiveLog = exports.LambdaFunctionTimedOutEventDetailsFilterSensitiveLog = exports.LambdaFunctionSucceededEventDetailsFilterSensitiveLog = exports.LambdaFunctionStartFailedEventDetailsFilterSensitiveLog = exports.LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog = exports.LambdaFunctionScheduledEventDetailsFilterSensitiveLog = exports.LambdaFunctionFailedEventDetailsFilterSensitiveLog = exports.ExecutionTimedOutEventDetailsFilterSensitiveLog = exports.ExecutionSucceededEventDetailsFilterSensitiveLog = void 0; - var smithy_client_1 = require_dist_cjs35(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ExecutionStartedEventDetailsFilterSensitiveLog = exports2.ExecutionFailedEventDetailsFilterSensitiveLog = exports2.ExecutionAbortedEventDetailsFilterSensitiveLog = exports2.GetActivityTaskOutputFilterSensitiveLog = exports2.DescribeStateMachineForExecutionOutputFilterSensitiveLog = exports2.DescribeStateMachineAliasOutputFilterSensitiveLog = exports2.DescribeStateMachineOutputFilterSensitiveLog = exports2.DescribeExecutionOutputFilterSensitiveLog = exports2.CreateStateMachineAliasInputFilterSensitiveLog = exports2.CreateStateMachineInputFilterSensitiveLog = exports2.ActivityTimedOutEventDetailsFilterSensitiveLog = exports2.ActivitySucceededEventDetailsFilterSensitiveLog = exports2.ActivityScheduleFailedEventDetailsFilterSensitiveLog = exports2.ActivityScheduledEventDetailsFilterSensitiveLog = exports2.ActivityFailedEventDetailsFilterSensitiveLog = exports2.MissingRequiredParameter = exports2.SyncExecutionStatus = exports2.InvalidExecutionInput = exports2.ExecutionLimitExceeded = exports2.ExecutionAlreadyExists = exports2.InvalidOutput = exports2.TaskTimedOut = exports2.TaskDoesNotExist = exports2.InvalidToken = exports2.HistoryEventType = exports2.StateMachineDoesNotExist = exports2.StateMachineStatus = exports2.MapRunStatus = exports2.ExecutionDoesNotExist = exports2.ExecutionStatus = exports2.ServiceQuotaExceededException = exports2.ResourceNotFound = exports2.ValidationException = exports2.ValidationExceptionReason = exports2.StateMachineTypeNotSupported = exports2.StateMachineLimitExceeded = exports2.StateMachineDeleting = exports2.StateMachineAlreadyExists = exports2.InvalidTracingConfiguration = exports2.InvalidLoggingConfiguration = exports2.InvalidDefinition = exports2.InvalidArn = exports2.StateMachineType = exports2.LogLevel = exports2.ConflictException = exports2.TooManyTags = exports2.InvalidName = exports2.ActivityWorkerLimitExceeded = exports2.ActivityLimitExceeded = exports2.ActivityDoesNotExist = void 0; + exports2.UpdateStateMachineAliasInputFilterSensitiveLog = exports2.UpdateStateMachineInputFilterSensitiveLog = exports2.StopExecutionInputFilterSensitiveLog = exports2.StartSyncExecutionOutputFilterSensitiveLog = exports2.StartSyncExecutionInputFilterSensitiveLog = exports2.StartExecutionInputFilterSensitiveLog = exports2.SendTaskSuccessInputFilterSensitiveLog = exports2.SendTaskFailureInputFilterSensitiveLog = exports2.PublishStateMachineVersionInputFilterSensitiveLog = exports2.GetExecutionHistoryOutputFilterSensitiveLog = exports2.HistoryEventFilterSensitiveLog = exports2.TaskTimedOutEventDetailsFilterSensitiveLog = exports2.TaskSucceededEventDetailsFilterSensitiveLog = exports2.TaskSubmittedEventDetailsFilterSensitiveLog = exports2.TaskSubmitFailedEventDetailsFilterSensitiveLog = exports2.TaskStartFailedEventDetailsFilterSensitiveLog = exports2.TaskScheduledEventDetailsFilterSensitiveLog = exports2.TaskFailedEventDetailsFilterSensitiveLog = exports2.StateExitedEventDetailsFilterSensitiveLog = exports2.StateEnteredEventDetailsFilterSensitiveLog = exports2.MapRunFailedEventDetailsFilterSensitiveLog = exports2.LambdaFunctionTimedOutEventDetailsFilterSensitiveLog = exports2.LambdaFunctionSucceededEventDetailsFilterSensitiveLog = exports2.LambdaFunctionStartFailedEventDetailsFilterSensitiveLog = exports2.LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog = exports2.LambdaFunctionScheduledEventDetailsFilterSensitiveLog = exports2.LambdaFunctionFailedEventDetailsFilterSensitiveLog = exports2.ExecutionTimedOutEventDetailsFilterSensitiveLog = exports2.ExecutionSucceededEventDetailsFilterSensitiveLog = void 0; + var smithy_client_1 = require_dist_cjs36(); var SFNServiceException_1 = require_SFNServiceException(); var ActivityDoesNotExist = class _ActivityDoesNotExist extends SFNServiceException_1.SFNServiceException { constructor(opts) { @@ -19171,7 +18484,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _ActivityDoesNotExist.prototype); } }; - exports.ActivityDoesNotExist = ActivityDoesNotExist; + exports2.ActivityDoesNotExist = ActivityDoesNotExist; var ActivityLimitExceeded = class _ActivityLimitExceeded extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19184,7 +18497,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _ActivityLimitExceeded.prototype); } }; - exports.ActivityLimitExceeded = ActivityLimitExceeded; + exports2.ActivityLimitExceeded = ActivityLimitExceeded; var ActivityWorkerLimitExceeded = class _ActivityWorkerLimitExceeded extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19197,7 +18510,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _ActivityWorkerLimitExceeded.prototype); } }; - exports.ActivityWorkerLimitExceeded = ActivityWorkerLimitExceeded; + exports2.ActivityWorkerLimitExceeded = ActivityWorkerLimitExceeded; var InvalidName = class _InvalidName extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19210,7 +18523,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _InvalidName.prototype); } }; - exports.InvalidName = InvalidName; + exports2.InvalidName = InvalidName; var TooManyTags = class _TooManyTags extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19224,7 +18537,7 @@ var require_models_03 = __commonJS({ this.resourceName = opts.resourceName; } }; - exports.TooManyTags = TooManyTags; + exports2.TooManyTags = TooManyTags; var ConflictException = class _ConflictException extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19237,14 +18550,14 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _ConflictException.prototype); } }; - exports.ConflictException = ConflictException; - exports.LogLevel = { + exports2.ConflictException = ConflictException; + exports2.LogLevel = { ALL: "ALL", ERROR: "ERROR", FATAL: "FATAL", OFF: "OFF" }; - exports.StateMachineType = { + exports2.StateMachineType = { EXPRESS: "EXPRESS", STANDARD: "STANDARD" }; @@ -19260,7 +18573,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _InvalidArn.prototype); } }; - exports.InvalidArn = InvalidArn; + exports2.InvalidArn = InvalidArn; var InvalidDefinition = class _InvalidDefinition extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19273,7 +18586,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _InvalidDefinition.prototype); } }; - exports.InvalidDefinition = InvalidDefinition; + exports2.InvalidDefinition = InvalidDefinition; var InvalidLoggingConfiguration = class _InvalidLoggingConfiguration extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19286,7 +18599,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _InvalidLoggingConfiguration.prototype); } }; - exports.InvalidLoggingConfiguration = InvalidLoggingConfiguration; + exports2.InvalidLoggingConfiguration = InvalidLoggingConfiguration; var InvalidTracingConfiguration = class _InvalidTracingConfiguration extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19299,7 +18612,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _InvalidTracingConfiguration.prototype); } }; - exports.InvalidTracingConfiguration = InvalidTracingConfiguration; + exports2.InvalidTracingConfiguration = InvalidTracingConfiguration; var StateMachineAlreadyExists = class _StateMachineAlreadyExists extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19312,7 +18625,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _StateMachineAlreadyExists.prototype); } }; - exports.StateMachineAlreadyExists = StateMachineAlreadyExists; + exports2.StateMachineAlreadyExists = StateMachineAlreadyExists; var StateMachineDeleting = class _StateMachineDeleting extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19325,7 +18638,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _StateMachineDeleting.prototype); } }; - exports.StateMachineDeleting = StateMachineDeleting; + exports2.StateMachineDeleting = StateMachineDeleting; var StateMachineLimitExceeded = class _StateMachineLimitExceeded extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19338,7 +18651,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _StateMachineLimitExceeded.prototype); } }; - exports.StateMachineLimitExceeded = StateMachineLimitExceeded; + exports2.StateMachineLimitExceeded = StateMachineLimitExceeded; var StateMachineTypeNotSupported = class _StateMachineTypeNotSupported extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19351,8 +18664,8 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _StateMachineTypeNotSupported.prototype); } }; - exports.StateMachineTypeNotSupported = StateMachineTypeNotSupported; - exports.ValidationExceptionReason = { + exports2.StateMachineTypeNotSupported = StateMachineTypeNotSupported; + exports2.ValidationExceptionReason = { API_DOES_NOT_SUPPORT_LABELED_ARNS: "API_DOES_NOT_SUPPORT_LABELED_ARNS", CANNOT_UPDATE_COMPLETED_MAP_RUN: "CANNOT_UPDATE_COMPLETED_MAP_RUN", INVALID_ROUTING_CONFIGURATION: "INVALID_ROUTING_CONFIGURATION", @@ -19371,7 +18684,7 @@ var require_models_03 = __commonJS({ this.reason = opts.reason; } }; - exports.ValidationException = ValidationException; + exports2.ValidationException = ValidationException; var ResourceNotFound = class _ResourceNotFound extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19385,7 +18698,7 @@ var require_models_03 = __commonJS({ this.resourceName = opts.resourceName; } }; - exports.ResourceNotFound = ResourceNotFound; + exports2.ResourceNotFound = ResourceNotFound; var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19398,8 +18711,8 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype); } }; - exports.ServiceQuotaExceededException = ServiceQuotaExceededException; - exports.ExecutionStatus = { + exports2.ServiceQuotaExceededException = ServiceQuotaExceededException; + exports2.ExecutionStatus = { ABORTED: "ABORTED", FAILED: "FAILED", RUNNING: "RUNNING", @@ -19418,14 +18731,14 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _ExecutionDoesNotExist.prototype); } }; - exports.ExecutionDoesNotExist = ExecutionDoesNotExist; - exports.MapRunStatus = { + exports2.ExecutionDoesNotExist = ExecutionDoesNotExist; + exports2.MapRunStatus = { ABORTED: "ABORTED", FAILED: "FAILED", RUNNING: "RUNNING", SUCCEEDED: "SUCCEEDED" }; - exports.StateMachineStatus = { + exports2.StateMachineStatus = { ACTIVE: "ACTIVE", DELETING: "DELETING" }; @@ -19441,8 +18754,8 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _StateMachineDoesNotExist.prototype); } }; - exports.StateMachineDoesNotExist = StateMachineDoesNotExist; - exports.HistoryEventType = { + exports2.StateMachineDoesNotExist = StateMachineDoesNotExist; + exports2.HistoryEventType = { ActivityFailed: "ActivityFailed", ActivityScheduleFailed: "ActivityScheduleFailed", ActivityScheduled: "ActivityScheduled", @@ -19515,7 +18828,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _InvalidToken.prototype); } }; - exports.InvalidToken = InvalidToken; + exports2.InvalidToken = InvalidToken; var TaskDoesNotExist = class _TaskDoesNotExist extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19528,7 +18841,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _TaskDoesNotExist.prototype); } }; - exports.TaskDoesNotExist = TaskDoesNotExist; + exports2.TaskDoesNotExist = TaskDoesNotExist; var TaskTimedOut = class _TaskTimedOut extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19541,7 +18854,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _TaskTimedOut.prototype); } }; - exports.TaskTimedOut = TaskTimedOut; + exports2.TaskTimedOut = TaskTimedOut; var InvalidOutput = class _InvalidOutput extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19554,7 +18867,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _InvalidOutput.prototype); } }; - exports.InvalidOutput = InvalidOutput; + exports2.InvalidOutput = InvalidOutput; var ExecutionAlreadyExists = class _ExecutionAlreadyExists extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19567,7 +18880,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _ExecutionAlreadyExists.prototype); } }; - exports.ExecutionAlreadyExists = ExecutionAlreadyExists; + exports2.ExecutionAlreadyExists = ExecutionAlreadyExists; var ExecutionLimitExceeded = class _ExecutionLimitExceeded extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19580,7 +18893,7 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _ExecutionLimitExceeded.prototype); } }; - exports.ExecutionLimitExceeded = ExecutionLimitExceeded; + exports2.ExecutionLimitExceeded = ExecutionLimitExceeded; var InvalidExecutionInput = class _InvalidExecutionInput extends SFNServiceException_1.SFNServiceException { constructor(opts) { super({ @@ -19593,8 +18906,8 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _InvalidExecutionInput.prototype); } }; - exports.InvalidExecutionInput = InvalidExecutionInput; - exports.SyncExecutionStatus = { + exports2.InvalidExecutionInput = InvalidExecutionInput; + exports2.SyncExecutionStatus = { FAILED: "FAILED", SUCCEEDED: "SUCCEEDED", TIMED_OUT: "TIMED_OUT" @@ -19611,46 +18924,46 @@ var require_models_03 = __commonJS({ Object.setPrototypeOf(this, _MissingRequiredParameter.prototype); } }; - exports.MissingRequiredParameter = MissingRequiredParameter; + exports2.MissingRequiredParameter = MissingRequiredParameter; var ActivityFailedEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.ActivityFailedEventDetailsFilterSensitiveLog = ActivityFailedEventDetailsFilterSensitiveLog; + exports2.ActivityFailedEventDetailsFilterSensitiveLog = ActivityFailedEventDetailsFilterSensitiveLog; var ActivityScheduledEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.input && { input: smithy_client_1.SENSITIVE_STRING } }); - exports.ActivityScheduledEventDetailsFilterSensitiveLog = ActivityScheduledEventDetailsFilterSensitiveLog; + exports2.ActivityScheduledEventDetailsFilterSensitiveLog = ActivityScheduledEventDetailsFilterSensitiveLog; var ActivityScheduleFailedEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.ActivityScheduleFailedEventDetailsFilterSensitiveLog = ActivityScheduleFailedEventDetailsFilterSensitiveLog; + exports2.ActivityScheduleFailedEventDetailsFilterSensitiveLog = ActivityScheduleFailedEventDetailsFilterSensitiveLog; var ActivitySucceededEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.output && { output: smithy_client_1.SENSITIVE_STRING } }); - exports.ActivitySucceededEventDetailsFilterSensitiveLog = ActivitySucceededEventDetailsFilterSensitiveLog; + exports2.ActivitySucceededEventDetailsFilterSensitiveLog = ActivitySucceededEventDetailsFilterSensitiveLog; var ActivityTimedOutEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.ActivityTimedOutEventDetailsFilterSensitiveLog = ActivityTimedOutEventDetailsFilterSensitiveLog; + exports2.ActivityTimedOutEventDetailsFilterSensitiveLog = ActivityTimedOutEventDetailsFilterSensitiveLog; var CreateStateMachineInputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.definition && { definition: smithy_client_1.SENSITIVE_STRING }, ...obj.versionDescription && { versionDescription: smithy_client_1.SENSITIVE_STRING } }); - exports.CreateStateMachineInputFilterSensitiveLog = CreateStateMachineInputFilterSensitiveLog; + exports2.CreateStateMachineInputFilterSensitiveLog = CreateStateMachineInputFilterSensitiveLog; var CreateStateMachineAliasInputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.description && { description: smithy_client_1.SENSITIVE_STRING } }); - exports.CreateStateMachineAliasInputFilterSensitiveLog = CreateStateMachineAliasInputFilterSensitiveLog; + exports2.CreateStateMachineAliasInputFilterSensitiveLog = CreateStateMachineAliasInputFilterSensitiveLog; var DescribeExecutionOutputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.input && { input: smithy_client_1.SENSITIVE_STRING }, @@ -19658,258 +18971,258 @@ var require_models_03 = __commonJS({ ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.DescribeExecutionOutputFilterSensitiveLog = DescribeExecutionOutputFilterSensitiveLog; + exports2.DescribeExecutionOutputFilterSensitiveLog = DescribeExecutionOutputFilterSensitiveLog; var DescribeStateMachineOutputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.definition && { definition: smithy_client_1.SENSITIVE_STRING }, ...obj.description && { description: smithy_client_1.SENSITIVE_STRING } }); - exports.DescribeStateMachineOutputFilterSensitiveLog = DescribeStateMachineOutputFilterSensitiveLog; + exports2.DescribeStateMachineOutputFilterSensitiveLog = DescribeStateMachineOutputFilterSensitiveLog; var DescribeStateMachineAliasOutputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.description && { description: smithy_client_1.SENSITIVE_STRING } }); - exports.DescribeStateMachineAliasOutputFilterSensitiveLog = DescribeStateMachineAliasOutputFilterSensitiveLog; + exports2.DescribeStateMachineAliasOutputFilterSensitiveLog = DescribeStateMachineAliasOutputFilterSensitiveLog; var DescribeStateMachineForExecutionOutputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.definition && { definition: smithy_client_1.SENSITIVE_STRING } }); - exports.DescribeStateMachineForExecutionOutputFilterSensitiveLog = DescribeStateMachineForExecutionOutputFilterSensitiveLog; + exports2.DescribeStateMachineForExecutionOutputFilterSensitiveLog = DescribeStateMachineForExecutionOutputFilterSensitiveLog; var GetActivityTaskOutputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.input && { input: smithy_client_1.SENSITIVE_STRING } }); - exports.GetActivityTaskOutputFilterSensitiveLog = GetActivityTaskOutputFilterSensitiveLog; + exports2.GetActivityTaskOutputFilterSensitiveLog = GetActivityTaskOutputFilterSensitiveLog; var ExecutionAbortedEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.ExecutionAbortedEventDetailsFilterSensitiveLog = ExecutionAbortedEventDetailsFilterSensitiveLog; + exports2.ExecutionAbortedEventDetailsFilterSensitiveLog = ExecutionAbortedEventDetailsFilterSensitiveLog; var ExecutionFailedEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.ExecutionFailedEventDetailsFilterSensitiveLog = ExecutionFailedEventDetailsFilterSensitiveLog; + exports2.ExecutionFailedEventDetailsFilterSensitiveLog = ExecutionFailedEventDetailsFilterSensitiveLog; var ExecutionStartedEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.input && { input: smithy_client_1.SENSITIVE_STRING } }); - exports.ExecutionStartedEventDetailsFilterSensitiveLog = ExecutionStartedEventDetailsFilterSensitiveLog; + exports2.ExecutionStartedEventDetailsFilterSensitiveLog = ExecutionStartedEventDetailsFilterSensitiveLog; var ExecutionSucceededEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.output && { output: smithy_client_1.SENSITIVE_STRING } }); - exports.ExecutionSucceededEventDetailsFilterSensitiveLog = ExecutionSucceededEventDetailsFilterSensitiveLog; + exports2.ExecutionSucceededEventDetailsFilterSensitiveLog = ExecutionSucceededEventDetailsFilterSensitiveLog; var ExecutionTimedOutEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.ExecutionTimedOutEventDetailsFilterSensitiveLog = ExecutionTimedOutEventDetailsFilterSensitiveLog; + exports2.ExecutionTimedOutEventDetailsFilterSensitiveLog = ExecutionTimedOutEventDetailsFilterSensitiveLog; var LambdaFunctionFailedEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.LambdaFunctionFailedEventDetailsFilterSensitiveLog = LambdaFunctionFailedEventDetailsFilterSensitiveLog; + exports2.LambdaFunctionFailedEventDetailsFilterSensitiveLog = LambdaFunctionFailedEventDetailsFilterSensitiveLog; var LambdaFunctionScheduledEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.input && { input: smithy_client_1.SENSITIVE_STRING } }); - exports.LambdaFunctionScheduledEventDetailsFilterSensitiveLog = LambdaFunctionScheduledEventDetailsFilterSensitiveLog; + exports2.LambdaFunctionScheduledEventDetailsFilterSensitiveLog = LambdaFunctionScheduledEventDetailsFilterSensitiveLog; var LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog = LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog; + exports2.LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog = LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog; var LambdaFunctionStartFailedEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.LambdaFunctionStartFailedEventDetailsFilterSensitiveLog = LambdaFunctionStartFailedEventDetailsFilterSensitiveLog; + exports2.LambdaFunctionStartFailedEventDetailsFilterSensitiveLog = LambdaFunctionStartFailedEventDetailsFilterSensitiveLog; var LambdaFunctionSucceededEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.output && { output: smithy_client_1.SENSITIVE_STRING } }); - exports.LambdaFunctionSucceededEventDetailsFilterSensitiveLog = LambdaFunctionSucceededEventDetailsFilterSensitiveLog; + exports2.LambdaFunctionSucceededEventDetailsFilterSensitiveLog = LambdaFunctionSucceededEventDetailsFilterSensitiveLog; var LambdaFunctionTimedOutEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.LambdaFunctionTimedOutEventDetailsFilterSensitiveLog = LambdaFunctionTimedOutEventDetailsFilterSensitiveLog; + exports2.LambdaFunctionTimedOutEventDetailsFilterSensitiveLog = LambdaFunctionTimedOutEventDetailsFilterSensitiveLog; var MapRunFailedEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.MapRunFailedEventDetailsFilterSensitiveLog = MapRunFailedEventDetailsFilterSensitiveLog; + exports2.MapRunFailedEventDetailsFilterSensitiveLog = MapRunFailedEventDetailsFilterSensitiveLog; var StateEnteredEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.input && { input: smithy_client_1.SENSITIVE_STRING } }); - exports.StateEnteredEventDetailsFilterSensitiveLog = StateEnteredEventDetailsFilterSensitiveLog; + exports2.StateEnteredEventDetailsFilterSensitiveLog = StateEnteredEventDetailsFilterSensitiveLog; var StateExitedEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.output && { output: smithy_client_1.SENSITIVE_STRING } }); - exports.StateExitedEventDetailsFilterSensitiveLog = StateExitedEventDetailsFilterSensitiveLog; + exports2.StateExitedEventDetailsFilterSensitiveLog = StateExitedEventDetailsFilterSensitiveLog; var TaskFailedEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.TaskFailedEventDetailsFilterSensitiveLog = TaskFailedEventDetailsFilterSensitiveLog; + exports2.TaskFailedEventDetailsFilterSensitiveLog = TaskFailedEventDetailsFilterSensitiveLog; var TaskScheduledEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.parameters && { parameters: smithy_client_1.SENSITIVE_STRING } }); - exports.TaskScheduledEventDetailsFilterSensitiveLog = TaskScheduledEventDetailsFilterSensitiveLog; + exports2.TaskScheduledEventDetailsFilterSensitiveLog = TaskScheduledEventDetailsFilterSensitiveLog; var TaskStartFailedEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.TaskStartFailedEventDetailsFilterSensitiveLog = TaskStartFailedEventDetailsFilterSensitiveLog; + exports2.TaskStartFailedEventDetailsFilterSensitiveLog = TaskStartFailedEventDetailsFilterSensitiveLog; var TaskSubmitFailedEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.TaskSubmitFailedEventDetailsFilterSensitiveLog = TaskSubmitFailedEventDetailsFilterSensitiveLog; + exports2.TaskSubmitFailedEventDetailsFilterSensitiveLog = TaskSubmitFailedEventDetailsFilterSensitiveLog; var TaskSubmittedEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.output && { output: smithy_client_1.SENSITIVE_STRING } }); - exports.TaskSubmittedEventDetailsFilterSensitiveLog = TaskSubmittedEventDetailsFilterSensitiveLog; + exports2.TaskSubmittedEventDetailsFilterSensitiveLog = TaskSubmittedEventDetailsFilterSensitiveLog; var TaskSucceededEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.output && { output: smithy_client_1.SENSITIVE_STRING } }); - exports.TaskSucceededEventDetailsFilterSensitiveLog = TaskSucceededEventDetailsFilterSensitiveLog; + exports2.TaskSucceededEventDetailsFilterSensitiveLog = TaskSucceededEventDetailsFilterSensitiveLog; var TaskTimedOutEventDetailsFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.TaskTimedOutEventDetailsFilterSensitiveLog = TaskTimedOutEventDetailsFilterSensitiveLog; + exports2.TaskTimedOutEventDetailsFilterSensitiveLog = TaskTimedOutEventDetailsFilterSensitiveLog; var HistoryEventFilterSensitiveLog = (obj) => ({ ...obj, ...obj.activityFailedEventDetails && { - activityFailedEventDetails: (0, exports.ActivityFailedEventDetailsFilterSensitiveLog)(obj.activityFailedEventDetails) + activityFailedEventDetails: (0, exports2.ActivityFailedEventDetailsFilterSensitiveLog)(obj.activityFailedEventDetails) }, ...obj.activityScheduleFailedEventDetails && { - activityScheduleFailedEventDetails: (0, exports.ActivityScheduleFailedEventDetailsFilterSensitiveLog)(obj.activityScheduleFailedEventDetails) + activityScheduleFailedEventDetails: (0, exports2.ActivityScheduleFailedEventDetailsFilterSensitiveLog)(obj.activityScheduleFailedEventDetails) }, ...obj.activityScheduledEventDetails && { - activityScheduledEventDetails: (0, exports.ActivityScheduledEventDetailsFilterSensitiveLog)(obj.activityScheduledEventDetails) + activityScheduledEventDetails: (0, exports2.ActivityScheduledEventDetailsFilterSensitiveLog)(obj.activityScheduledEventDetails) }, ...obj.activitySucceededEventDetails && { - activitySucceededEventDetails: (0, exports.ActivitySucceededEventDetailsFilterSensitiveLog)(obj.activitySucceededEventDetails) + activitySucceededEventDetails: (0, exports2.ActivitySucceededEventDetailsFilterSensitiveLog)(obj.activitySucceededEventDetails) }, ...obj.activityTimedOutEventDetails && { - activityTimedOutEventDetails: (0, exports.ActivityTimedOutEventDetailsFilterSensitiveLog)(obj.activityTimedOutEventDetails) + activityTimedOutEventDetails: (0, exports2.ActivityTimedOutEventDetailsFilterSensitiveLog)(obj.activityTimedOutEventDetails) }, ...obj.taskFailedEventDetails && { - taskFailedEventDetails: (0, exports.TaskFailedEventDetailsFilterSensitiveLog)(obj.taskFailedEventDetails) + taskFailedEventDetails: (0, exports2.TaskFailedEventDetailsFilterSensitiveLog)(obj.taskFailedEventDetails) }, ...obj.taskScheduledEventDetails && { - taskScheduledEventDetails: (0, exports.TaskScheduledEventDetailsFilterSensitiveLog)(obj.taskScheduledEventDetails) + taskScheduledEventDetails: (0, exports2.TaskScheduledEventDetailsFilterSensitiveLog)(obj.taskScheduledEventDetails) }, ...obj.taskStartFailedEventDetails && { - taskStartFailedEventDetails: (0, exports.TaskStartFailedEventDetailsFilterSensitiveLog)(obj.taskStartFailedEventDetails) + taskStartFailedEventDetails: (0, exports2.TaskStartFailedEventDetailsFilterSensitiveLog)(obj.taskStartFailedEventDetails) }, ...obj.taskSubmitFailedEventDetails && { - taskSubmitFailedEventDetails: (0, exports.TaskSubmitFailedEventDetailsFilterSensitiveLog)(obj.taskSubmitFailedEventDetails) + taskSubmitFailedEventDetails: (0, exports2.TaskSubmitFailedEventDetailsFilterSensitiveLog)(obj.taskSubmitFailedEventDetails) }, ...obj.taskSubmittedEventDetails && { - taskSubmittedEventDetails: (0, exports.TaskSubmittedEventDetailsFilterSensitiveLog)(obj.taskSubmittedEventDetails) + taskSubmittedEventDetails: (0, exports2.TaskSubmittedEventDetailsFilterSensitiveLog)(obj.taskSubmittedEventDetails) }, ...obj.taskSucceededEventDetails && { - taskSucceededEventDetails: (0, exports.TaskSucceededEventDetailsFilterSensitiveLog)(obj.taskSucceededEventDetails) + taskSucceededEventDetails: (0, exports2.TaskSucceededEventDetailsFilterSensitiveLog)(obj.taskSucceededEventDetails) }, ...obj.taskTimedOutEventDetails && { - taskTimedOutEventDetails: (0, exports.TaskTimedOutEventDetailsFilterSensitiveLog)(obj.taskTimedOutEventDetails) + taskTimedOutEventDetails: (0, exports2.TaskTimedOutEventDetailsFilterSensitiveLog)(obj.taskTimedOutEventDetails) }, ...obj.executionFailedEventDetails && { - executionFailedEventDetails: (0, exports.ExecutionFailedEventDetailsFilterSensitiveLog)(obj.executionFailedEventDetails) + executionFailedEventDetails: (0, exports2.ExecutionFailedEventDetailsFilterSensitiveLog)(obj.executionFailedEventDetails) }, ...obj.executionStartedEventDetails && { - executionStartedEventDetails: (0, exports.ExecutionStartedEventDetailsFilterSensitiveLog)(obj.executionStartedEventDetails) + executionStartedEventDetails: (0, exports2.ExecutionStartedEventDetailsFilterSensitiveLog)(obj.executionStartedEventDetails) }, ...obj.executionSucceededEventDetails && { - executionSucceededEventDetails: (0, exports.ExecutionSucceededEventDetailsFilterSensitiveLog)(obj.executionSucceededEventDetails) + executionSucceededEventDetails: (0, exports2.ExecutionSucceededEventDetailsFilterSensitiveLog)(obj.executionSucceededEventDetails) }, ...obj.executionAbortedEventDetails && { - executionAbortedEventDetails: (0, exports.ExecutionAbortedEventDetailsFilterSensitiveLog)(obj.executionAbortedEventDetails) + executionAbortedEventDetails: (0, exports2.ExecutionAbortedEventDetailsFilterSensitiveLog)(obj.executionAbortedEventDetails) }, ...obj.executionTimedOutEventDetails && { - executionTimedOutEventDetails: (0, exports.ExecutionTimedOutEventDetailsFilterSensitiveLog)(obj.executionTimedOutEventDetails) + executionTimedOutEventDetails: (0, exports2.ExecutionTimedOutEventDetailsFilterSensitiveLog)(obj.executionTimedOutEventDetails) }, ...obj.lambdaFunctionFailedEventDetails && { - lambdaFunctionFailedEventDetails: (0, exports.LambdaFunctionFailedEventDetailsFilterSensitiveLog)(obj.lambdaFunctionFailedEventDetails) + lambdaFunctionFailedEventDetails: (0, exports2.LambdaFunctionFailedEventDetailsFilterSensitiveLog)(obj.lambdaFunctionFailedEventDetails) }, ...obj.lambdaFunctionScheduleFailedEventDetails && { - lambdaFunctionScheduleFailedEventDetails: (0, exports.LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog)(obj.lambdaFunctionScheduleFailedEventDetails) + lambdaFunctionScheduleFailedEventDetails: (0, exports2.LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog)(obj.lambdaFunctionScheduleFailedEventDetails) }, ...obj.lambdaFunctionScheduledEventDetails && { - lambdaFunctionScheduledEventDetails: (0, exports.LambdaFunctionScheduledEventDetailsFilterSensitiveLog)(obj.lambdaFunctionScheduledEventDetails) + lambdaFunctionScheduledEventDetails: (0, exports2.LambdaFunctionScheduledEventDetailsFilterSensitiveLog)(obj.lambdaFunctionScheduledEventDetails) }, ...obj.lambdaFunctionStartFailedEventDetails && { - lambdaFunctionStartFailedEventDetails: (0, exports.LambdaFunctionStartFailedEventDetailsFilterSensitiveLog)(obj.lambdaFunctionStartFailedEventDetails) + lambdaFunctionStartFailedEventDetails: (0, exports2.LambdaFunctionStartFailedEventDetailsFilterSensitiveLog)(obj.lambdaFunctionStartFailedEventDetails) }, ...obj.lambdaFunctionSucceededEventDetails && { - lambdaFunctionSucceededEventDetails: (0, exports.LambdaFunctionSucceededEventDetailsFilterSensitiveLog)(obj.lambdaFunctionSucceededEventDetails) + lambdaFunctionSucceededEventDetails: (0, exports2.LambdaFunctionSucceededEventDetailsFilterSensitiveLog)(obj.lambdaFunctionSucceededEventDetails) }, ...obj.lambdaFunctionTimedOutEventDetails && { - lambdaFunctionTimedOutEventDetails: (0, exports.LambdaFunctionTimedOutEventDetailsFilterSensitiveLog)(obj.lambdaFunctionTimedOutEventDetails) + lambdaFunctionTimedOutEventDetails: (0, exports2.LambdaFunctionTimedOutEventDetailsFilterSensitiveLog)(obj.lambdaFunctionTimedOutEventDetails) }, ...obj.stateEnteredEventDetails && { - stateEnteredEventDetails: (0, exports.StateEnteredEventDetailsFilterSensitiveLog)(obj.stateEnteredEventDetails) + stateEnteredEventDetails: (0, exports2.StateEnteredEventDetailsFilterSensitiveLog)(obj.stateEnteredEventDetails) }, ...obj.stateExitedEventDetails && { - stateExitedEventDetails: (0, exports.StateExitedEventDetailsFilterSensitiveLog)(obj.stateExitedEventDetails) + stateExitedEventDetails: (0, exports2.StateExitedEventDetailsFilterSensitiveLog)(obj.stateExitedEventDetails) }, ...obj.mapRunFailedEventDetails && { - mapRunFailedEventDetails: (0, exports.MapRunFailedEventDetailsFilterSensitiveLog)(obj.mapRunFailedEventDetails) + mapRunFailedEventDetails: (0, exports2.MapRunFailedEventDetailsFilterSensitiveLog)(obj.mapRunFailedEventDetails) } }); - exports.HistoryEventFilterSensitiveLog = HistoryEventFilterSensitiveLog; + exports2.HistoryEventFilterSensitiveLog = HistoryEventFilterSensitiveLog; var GetExecutionHistoryOutputFilterSensitiveLog = (obj) => ({ ...obj, - ...obj.events && { events: obj.events.map((item) => (0, exports.HistoryEventFilterSensitiveLog)(item)) } + ...obj.events && { events: obj.events.map((item) => (0, exports2.HistoryEventFilterSensitiveLog)(item)) } }); - exports.GetExecutionHistoryOutputFilterSensitiveLog = GetExecutionHistoryOutputFilterSensitiveLog; + exports2.GetExecutionHistoryOutputFilterSensitiveLog = GetExecutionHistoryOutputFilterSensitiveLog; var PublishStateMachineVersionInputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.description && { description: smithy_client_1.SENSITIVE_STRING } }); - exports.PublishStateMachineVersionInputFilterSensitiveLog = PublishStateMachineVersionInputFilterSensitiveLog; + exports2.PublishStateMachineVersionInputFilterSensitiveLog = PublishStateMachineVersionInputFilterSensitiveLog; var SendTaskFailureInputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.SendTaskFailureInputFilterSensitiveLog = SendTaskFailureInputFilterSensitiveLog; + exports2.SendTaskFailureInputFilterSensitiveLog = SendTaskFailureInputFilterSensitiveLog; var SendTaskSuccessInputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.output && { output: smithy_client_1.SENSITIVE_STRING } }); - exports.SendTaskSuccessInputFilterSensitiveLog = SendTaskSuccessInputFilterSensitiveLog; + exports2.SendTaskSuccessInputFilterSensitiveLog = SendTaskSuccessInputFilterSensitiveLog; var StartExecutionInputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.input && { input: smithy_client_1.SENSITIVE_STRING } }); - exports.StartExecutionInputFilterSensitiveLog = StartExecutionInputFilterSensitiveLog; + exports2.StartExecutionInputFilterSensitiveLog = StartExecutionInputFilterSensitiveLog; var StartSyncExecutionInputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.input && { input: smithy_client_1.SENSITIVE_STRING } }); - exports.StartSyncExecutionInputFilterSensitiveLog = StartSyncExecutionInputFilterSensitiveLog; + exports2.StartSyncExecutionInputFilterSensitiveLog = StartSyncExecutionInputFilterSensitiveLog; var StartSyncExecutionOutputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, @@ -19917,36 +19230,36 @@ var require_models_03 = __commonJS({ ...obj.input && { input: smithy_client_1.SENSITIVE_STRING }, ...obj.output && { output: smithy_client_1.SENSITIVE_STRING } }); - exports.StartSyncExecutionOutputFilterSensitiveLog = StartSyncExecutionOutputFilterSensitiveLog; + exports2.StartSyncExecutionOutputFilterSensitiveLog = StartSyncExecutionOutputFilterSensitiveLog; var StopExecutionInputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, ...obj.cause && { cause: smithy_client_1.SENSITIVE_STRING } }); - exports.StopExecutionInputFilterSensitiveLog = StopExecutionInputFilterSensitiveLog; + exports2.StopExecutionInputFilterSensitiveLog = StopExecutionInputFilterSensitiveLog; var UpdateStateMachineInputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.definition && { definition: smithy_client_1.SENSITIVE_STRING }, ...obj.versionDescription && { versionDescription: smithy_client_1.SENSITIVE_STRING } }); - exports.UpdateStateMachineInputFilterSensitiveLog = UpdateStateMachineInputFilterSensitiveLog; + exports2.UpdateStateMachineInputFilterSensitiveLog = UpdateStateMachineInputFilterSensitiveLog; var UpdateStateMachineAliasInputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.description && { description: smithy_client_1.SENSITIVE_STRING } }); - exports.UpdateStateMachineAliasInputFilterSensitiveLog = UpdateStateMachineAliasInputFilterSensitiveLog; + exports2.UpdateStateMachineAliasInputFilterSensitiveLog = UpdateStateMachineAliasInputFilterSensitiveLog; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/protocols/Aws_json1_0.js var require_Aws_json1_0 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/protocols/Aws_json1_0.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/protocols/Aws_json1_0.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.de_ListActivitiesCommand = exports.de_GetExecutionHistoryCommand = exports.de_GetActivityTaskCommand = exports.de_DescribeStateMachineForExecutionCommand = exports.de_DescribeStateMachineAliasCommand = exports.de_DescribeStateMachineCommand = exports.de_DescribeMapRunCommand = exports.de_DescribeExecutionCommand = exports.de_DescribeActivityCommand = exports.de_DeleteStateMachineVersionCommand = exports.de_DeleteStateMachineAliasCommand = exports.de_DeleteStateMachineCommand = exports.de_DeleteActivityCommand = exports.de_CreateStateMachineAliasCommand = exports.de_CreateStateMachineCommand = exports.de_CreateActivityCommand = exports.se_UpdateStateMachineAliasCommand = exports.se_UpdateStateMachineCommand = exports.se_UpdateMapRunCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopExecutionCommand = exports.se_StartSyncExecutionCommand = exports.se_StartExecutionCommand = exports.se_SendTaskSuccessCommand = exports.se_SendTaskHeartbeatCommand = exports.se_SendTaskFailureCommand = exports.se_PublishStateMachineVersionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStateMachineVersionsCommand = exports.se_ListStateMachinesCommand = exports.se_ListStateMachineAliasesCommand = exports.se_ListMapRunsCommand = exports.se_ListExecutionsCommand = exports.se_ListActivitiesCommand = exports.se_GetExecutionHistoryCommand = exports.se_GetActivityTaskCommand = exports.se_DescribeStateMachineForExecutionCommand = exports.se_DescribeStateMachineAliasCommand = exports.se_DescribeStateMachineCommand = exports.se_DescribeMapRunCommand = exports.se_DescribeExecutionCommand = exports.se_DescribeActivityCommand = exports.se_DeleteStateMachineVersionCommand = exports.se_DeleteStateMachineAliasCommand = exports.se_DeleteStateMachineCommand = exports.se_DeleteActivityCommand = exports.se_CreateStateMachineAliasCommand = exports.se_CreateStateMachineCommand = exports.se_CreateActivityCommand = void 0; - exports.de_UpdateStateMachineAliasCommand = exports.de_UpdateStateMachineCommand = exports.de_UpdateMapRunCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopExecutionCommand = exports.de_StartSyncExecutionCommand = exports.de_StartExecutionCommand = exports.de_SendTaskSuccessCommand = exports.de_SendTaskHeartbeatCommand = exports.de_SendTaskFailureCommand = exports.de_PublishStateMachineVersionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStateMachineVersionsCommand = exports.de_ListStateMachinesCommand = exports.de_ListStateMachineAliasesCommand = exports.de_ListMapRunsCommand = exports.de_ListExecutionsCommand = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.de_ListActivitiesCommand = exports2.de_GetExecutionHistoryCommand = exports2.de_GetActivityTaskCommand = exports2.de_DescribeStateMachineForExecutionCommand = exports2.de_DescribeStateMachineAliasCommand = exports2.de_DescribeStateMachineCommand = exports2.de_DescribeMapRunCommand = exports2.de_DescribeExecutionCommand = exports2.de_DescribeActivityCommand = exports2.de_DeleteStateMachineVersionCommand = exports2.de_DeleteStateMachineAliasCommand = exports2.de_DeleteStateMachineCommand = exports2.de_DeleteActivityCommand = exports2.de_CreateStateMachineAliasCommand = exports2.de_CreateStateMachineCommand = exports2.de_CreateActivityCommand = exports2.se_UpdateStateMachineAliasCommand = exports2.se_UpdateStateMachineCommand = exports2.se_UpdateMapRunCommand = exports2.se_UntagResourceCommand = exports2.se_TagResourceCommand = exports2.se_StopExecutionCommand = exports2.se_StartSyncExecutionCommand = exports2.se_StartExecutionCommand = exports2.se_SendTaskSuccessCommand = exports2.se_SendTaskHeartbeatCommand = exports2.se_SendTaskFailureCommand = exports2.se_PublishStateMachineVersionCommand = exports2.se_ListTagsForResourceCommand = exports2.se_ListStateMachineVersionsCommand = exports2.se_ListStateMachinesCommand = exports2.se_ListStateMachineAliasesCommand = exports2.se_ListMapRunsCommand = exports2.se_ListExecutionsCommand = exports2.se_ListActivitiesCommand = exports2.se_GetExecutionHistoryCommand = exports2.se_GetActivityTaskCommand = exports2.se_DescribeStateMachineForExecutionCommand = exports2.se_DescribeStateMachineAliasCommand = exports2.se_DescribeStateMachineCommand = exports2.se_DescribeMapRunCommand = exports2.se_DescribeExecutionCommand = exports2.se_DescribeActivityCommand = exports2.se_DeleteStateMachineVersionCommand = exports2.se_DeleteStateMachineAliasCommand = exports2.se_DeleteStateMachineCommand = exports2.se_DeleteActivityCommand = exports2.se_CreateStateMachineAliasCommand = exports2.se_CreateStateMachineCommand = exports2.se_CreateActivityCommand = void 0; + exports2.de_UpdateStateMachineAliasCommand = exports2.de_UpdateStateMachineCommand = exports2.de_UpdateMapRunCommand = exports2.de_UntagResourceCommand = exports2.de_TagResourceCommand = exports2.de_StopExecutionCommand = exports2.de_StartSyncExecutionCommand = exports2.de_StartExecutionCommand = exports2.de_SendTaskSuccessCommand = exports2.de_SendTaskHeartbeatCommand = exports2.de_SendTaskFailureCommand = exports2.de_PublishStateMachineVersionCommand = exports2.de_ListTagsForResourceCommand = exports2.de_ListStateMachineVersionsCommand = exports2.de_ListStateMachinesCommand = exports2.de_ListStateMachineAliasesCommand = exports2.de_ListMapRunsCommand = exports2.de_ListExecutionsCommand = void 0; var protocol_http_1 = require_dist_cjs2(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs36(); var models_0_1 = require_models_03(); var SFNServiceException_1 = require_SFNServiceException(); var se_CreateActivityCommand = async (input, context) => { @@ -19955,189 +19268,189 @@ var require_Aws_json1_0 = __commonJS({ body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_CreateActivityCommand = se_CreateActivityCommand; + exports2.se_CreateActivityCommand = se_CreateActivityCommand; var se_CreateStateMachineCommand = async (input, context) => { const headers = sharedHeaders("CreateStateMachine"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_CreateStateMachineCommand = se_CreateStateMachineCommand; + exports2.se_CreateStateMachineCommand = se_CreateStateMachineCommand; var se_CreateStateMachineAliasCommand = async (input, context) => { const headers = sharedHeaders("CreateStateMachineAlias"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_CreateStateMachineAliasCommand = se_CreateStateMachineAliasCommand; + exports2.se_CreateStateMachineAliasCommand = se_CreateStateMachineAliasCommand; var se_DeleteActivityCommand = async (input, context) => { const headers = sharedHeaders("DeleteActivity"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_DeleteActivityCommand = se_DeleteActivityCommand; + exports2.se_DeleteActivityCommand = se_DeleteActivityCommand; var se_DeleteStateMachineCommand = async (input, context) => { const headers = sharedHeaders("DeleteStateMachine"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_DeleteStateMachineCommand = se_DeleteStateMachineCommand; + exports2.se_DeleteStateMachineCommand = se_DeleteStateMachineCommand; var se_DeleteStateMachineAliasCommand = async (input, context) => { const headers = sharedHeaders("DeleteStateMachineAlias"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_DeleteStateMachineAliasCommand = se_DeleteStateMachineAliasCommand; + exports2.se_DeleteStateMachineAliasCommand = se_DeleteStateMachineAliasCommand; var se_DeleteStateMachineVersionCommand = async (input, context) => { const headers = sharedHeaders("DeleteStateMachineVersion"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_DeleteStateMachineVersionCommand = se_DeleteStateMachineVersionCommand; + exports2.se_DeleteStateMachineVersionCommand = se_DeleteStateMachineVersionCommand; var se_DescribeActivityCommand = async (input, context) => { const headers = sharedHeaders("DescribeActivity"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_DescribeActivityCommand = se_DescribeActivityCommand; + exports2.se_DescribeActivityCommand = se_DescribeActivityCommand; var se_DescribeExecutionCommand = async (input, context) => { const headers = sharedHeaders("DescribeExecution"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_DescribeExecutionCommand = se_DescribeExecutionCommand; + exports2.se_DescribeExecutionCommand = se_DescribeExecutionCommand; var se_DescribeMapRunCommand = async (input, context) => { const headers = sharedHeaders("DescribeMapRun"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_DescribeMapRunCommand = se_DescribeMapRunCommand; + exports2.se_DescribeMapRunCommand = se_DescribeMapRunCommand; var se_DescribeStateMachineCommand = async (input, context) => { const headers = sharedHeaders("DescribeStateMachine"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_DescribeStateMachineCommand = se_DescribeStateMachineCommand; + exports2.se_DescribeStateMachineCommand = se_DescribeStateMachineCommand; var se_DescribeStateMachineAliasCommand = async (input, context) => { const headers = sharedHeaders("DescribeStateMachineAlias"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_DescribeStateMachineAliasCommand = se_DescribeStateMachineAliasCommand; + exports2.se_DescribeStateMachineAliasCommand = se_DescribeStateMachineAliasCommand; var se_DescribeStateMachineForExecutionCommand = async (input, context) => { const headers = sharedHeaders("DescribeStateMachineForExecution"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_DescribeStateMachineForExecutionCommand = se_DescribeStateMachineForExecutionCommand; + exports2.se_DescribeStateMachineForExecutionCommand = se_DescribeStateMachineForExecutionCommand; var se_GetActivityTaskCommand = async (input, context) => { const headers = sharedHeaders("GetActivityTask"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_GetActivityTaskCommand = se_GetActivityTaskCommand; + exports2.se_GetActivityTaskCommand = se_GetActivityTaskCommand; var se_GetExecutionHistoryCommand = async (input, context) => { const headers = sharedHeaders("GetExecutionHistory"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_GetExecutionHistoryCommand = se_GetExecutionHistoryCommand; + exports2.se_GetExecutionHistoryCommand = se_GetExecutionHistoryCommand; var se_ListActivitiesCommand = async (input, context) => { const headers = sharedHeaders("ListActivities"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_ListActivitiesCommand = se_ListActivitiesCommand; + exports2.se_ListActivitiesCommand = se_ListActivitiesCommand; var se_ListExecutionsCommand = async (input, context) => { const headers = sharedHeaders("ListExecutions"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_ListExecutionsCommand = se_ListExecutionsCommand; + exports2.se_ListExecutionsCommand = se_ListExecutionsCommand; var se_ListMapRunsCommand = async (input, context) => { const headers = sharedHeaders("ListMapRuns"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_ListMapRunsCommand = se_ListMapRunsCommand; + exports2.se_ListMapRunsCommand = se_ListMapRunsCommand; var se_ListStateMachineAliasesCommand = async (input, context) => { const headers = sharedHeaders("ListStateMachineAliases"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_ListStateMachineAliasesCommand = se_ListStateMachineAliasesCommand; + exports2.se_ListStateMachineAliasesCommand = se_ListStateMachineAliasesCommand; var se_ListStateMachinesCommand = async (input, context) => { const headers = sharedHeaders("ListStateMachines"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_ListStateMachinesCommand = se_ListStateMachinesCommand; + exports2.se_ListStateMachinesCommand = se_ListStateMachinesCommand; var se_ListStateMachineVersionsCommand = async (input, context) => { const headers = sharedHeaders("ListStateMachineVersions"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_ListStateMachineVersionsCommand = se_ListStateMachineVersionsCommand; + exports2.se_ListStateMachineVersionsCommand = se_ListStateMachineVersionsCommand; var se_ListTagsForResourceCommand = async (input, context) => { const headers = sharedHeaders("ListTagsForResource"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand; + exports2.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand; var se_PublishStateMachineVersionCommand = async (input, context) => { const headers = sharedHeaders("PublishStateMachineVersion"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_PublishStateMachineVersionCommand = se_PublishStateMachineVersionCommand; + exports2.se_PublishStateMachineVersionCommand = se_PublishStateMachineVersionCommand; var se_SendTaskFailureCommand = async (input, context) => { const headers = sharedHeaders("SendTaskFailure"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_SendTaskFailureCommand = se_SendTaskFailureCommand; + exports2.se_SendTaskFailureCommand = se_SendTaskFailureCommand; var se_SendTaskHeartbeatCommand = async (input, context) => { const headers = sharedHeaders("SendTaskHeartbeat"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_SendTaskHeartbeatCommand = se_SendTaskHeartbeatCommand; + exports2.se_SendTaskHeartbeatCommand = se_SendTaskHeartbeatCommand; var se_SendTaskSuccessCommand = async (input, context) => { const headers = sharedHeaders("SendTaskSuccess"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_SendTaskSuccessCommand = se_SendTaskSuccessCommand; + exports2.se_SendTaskSuccessCommand = se_SendTaskSuccessCommand; var se_StartExecutionCommand = async (input, context) => { const headers = sharedHeaders("StartExecution"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_StartExecutionCommand = se_StartExecutionCommand; + exports2.se_StartExecutionCommand = se_StartExecutionCommand; var se_StartSyncExecutionCommand = async (input, context) => { const headers = sharedHeaders("StartSyncExecution"); let body; @@ -20151,49 +19464,49 @@ var require_Aws_json1_0 = __commonJS({ } return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body); }; - exports.se_StartSyncExecutionCommand = se_StartSyncExecutionCommand; + exports2.se_StartSyncExecutionCommand = se_StartSyncExecutionCommand; var se_StopExecutionCommand = async (input, context) => { const headers = sharedHeaders("StopExecution"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_StopExecutionCommand = se_StopExecutionCommand; + exports2.se_StopExecutionCommand = se_StopExecutionCommand; var se_TagResourceCommand = async (input, context) => { const headers = sharedHeaders("TagResource"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_TagResourceCommand = se_TagResourceCommand; + exports2.se_TagResourceCommand = se_TagResourceCommand; var se_UntagResourceCommand = async (input, context) => { const headers = sharedHeaders("UntagResource"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_UntagResourceCommand = se_UntagResourceCommand; + exports2.se_UntagResourceCommand = se_UntagResourceCommand; var se_UpdateMapRunCommand = async (input, context) => { const headers = sharedHeaders("UpdateMapRun"); let body; body = JSON.stringify(se_UpdateMapRunInput(input, context)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_UpdateMapRunCommand = se_UpdateMapRunCommand; + exports2.se_UpdateMapRunCommand = se_UpdateMapRunCommand; var se_UpdateStateMachineCommand = async (input, context) => { const headers = sharedHeaders("UpdateStateMachine"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_UpdateStateMachineCommand = se_UpdateStateMachineCommand; + exports2.se_UpdateStateMachineCommand = se_UpdateStateMachineCommand; var se_UpdateStateMachineAliasCommand = async (input, context) => { const headers = sharedHeaders("UpdateStateMachineAlias"); let body; body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_UpdateStateMachineAliasCommand = se_UpdateStateMachineAliasCommand; + exports2.se_UpdateStateMachineAliasCommand = se_UpdateStateMachineAliasCommand; var de_CreateActivityCommand = async (output, context) => { if (output.statusCode >= 300) { return de_CreateActivityCommandError(output, context); @@ -20207,7 +19520,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_CreateActivityCommand = de_CreateActivityCommand; + exports2.de_CreateActivityCommand = de_CreateActivityCommand; var de_CreateActivityCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20246,7 +19559,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_CreateStateMachineCommand = de_CreateStateMachineCommand; + exports2.de_CreateStateMachineCommand = de_CreateStateMachineCommand; var de_CreateStateMachineCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20312,7 +19625,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_CreateStateMachineAliasCommand = de_CreateStateMachineAliasCommand; + exports2.de_CreateStateMachineAliasCommand = de_CreateStateMachineAliasCommand; var de_CreateStateMachineAliasCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20363,7 +19676,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_DeleteActivityCommand = de_DeleteActivityCommand; + exports2.de_DeleteActivityCommand = de_DeleteActivityCommand; var de_DeleteActivityCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20396,7 +19709,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_DeleteStateMachineCommand = de_DeleteStateMachineCommand; + exports2.de_DeleteStateMachineCommand = de_DeleteStateMachineCommand; var de_DeleteStateMachineCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20432,7 +19745,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_DeleteStateMachineAliasCommand = de_DeleteStateMachineAliasCommand; + exports2.de_DeleteStateMachineAliasCommand = de_DeleteStateMachineAliasCommand; var de_DeleteStateMachineAliasCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20474,7 +19787,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_DeleteStateMachineVersionCommand = de_DeleteStateMachineVersionCommand; + exports2.de_DeleteStateMachineVersionCommand = de_DeleteStateMachineVersionCommand; var de_DeleteStateMachineVersionCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20513,7 +19826,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_DescribeActivityCommand = de_DescribeActivityCommand; + exports2.de_DescribeActivityCommand = de_DescribeActivityCommand; var de_DescribeActivityCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20549,7 +19862,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_DescribeExecutionCommand = de_DescribeExecutionCommand; + exports2.de_DescribeExecutionCommand = de_DescribeExecutionCommand; var de_DescribeExecutionCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20585,7 +19898,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_DescribeMapRunCommand = de_DescribeMapRunCommand; + exports2.de_DescribeMapRunCommand = de_DescribeMapRunCommand; var de_DescribeMapRunCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20621,7 +19934,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_DescribeStateMachineCommand = de_DescribeStateMachineCommand; + exports2.de_DescribeStateMachineCommand = de_DescribeStateMachineCommand; var de_DescribeStateMachineCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20657,7 +19970,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_DescribeStateMachineAliasCommand = de_DescribeStateMachineAliasCommand; + exports2.de_DescribeStateMachineAliasCommand = de_DescribeStateMachineAliasCommand; var de_DescribeStateMachineAliasCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20696,7 +20009,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_DescribeStateMachineForExecutionCommand = de_DescribeStateMachineForExecutionCommand; + exports2.de_DescribeStateMachineForExecutionCommand = de_DescribeStateMachineForExecutionCommand; var de_DescribeStateMachineForExecutionCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20732,7 +20045,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_GetActivityTaskCommand = de_GetActivityTaskCommand; + exports2.de_GetActivityTaskCommand = de_GetActivityTaskCommand; var de_GetActivityTaskCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20771,7 +20084,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_GetExecutionHistoryCommand = de_GetExecutionHistoryCommand; + exports2.de_GetExecutionHistoryCommand = de_GetExecutionHistoryCommand; var de_GetExecutionHistoryCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20810,7 +20123,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_ListActivitiesCommand = de_ListActivitiesCommand; + exports2.de_ListActivitiesCommand = de_ListActivitiesCommand; var de_ListActivitiesCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20843,7 +20156,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_ListExecutionsCommand = de_ListExecutionsCommand; + exports2.de_ListExecutionsCommand = de_ListExecutionsCommand; var de_ListExecutionsCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20891,7 +20204,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_ListMapRunsCommand = de_ListMapRunsCommand; + exports2.de_ListMapRunsCommand = de_ListMapRunsCommand; var de_ListMapRunsCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20930,7 +20243,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_ListStateMachineAliasesCommand = de_ListStateMachineAliasesCommand; + exports2.de_ListStateMachineAliasesCommand = de_ListStateMachineAliasesCommand; var de_ListStateMachineAliasesCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -20975,7 +20288,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_ListStateMachinesCommand = de_ListStateMachinesCommand; + exports2.de_ListStateMachinesCommand = de_ListStateMachinesCommand; var de_ListStateMachinesCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -21008,7 +20321,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_ListStateMachineVersionsCommand = de_ListStateMachineVersionsCommand; + exports2.de_ListStateMachineVersionsCommand = de_ListStateMachineVersionsCommand; var de_ListStateMachineVersionsCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -21047,7 +20360,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand; + exports2.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand; var de_ListTagsForResourceCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -21083,7 +20396,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_PublishStateMachineVersionCommand = de_PublishStateMachineVersionCommand; + exports2.de_PublishStateMachineVersionCommand = de_PublishStateMachineVersionCommand; var de_PublishStateMachineVersionCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -21131,7 +20444,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_SendTaskFailureCommand = de_SendTaskFailureCommand; + exports2.de_SendTaskFailureCommand = de_SendTaskFailureCommand; var de_SendTaskFailureCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -21170,7 +20483,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_SendTaskHeartbeatCommand = de_SendTaskHeartbeatCommand; + exports2.de_SendTaskHeartbeatCommand = de_SendTaskHeartbeatCommand; var de_SendTaskHeartbeatCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -21209,7 +20522,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_SendTaskSuccessCommand = de_SendTaskSuccessCommand; + exports2.de_SendTaskSuccessCommand = de_SendTaskSuccessCommand; var de_SendTaskSuccessCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -21251,7 +20564,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_StartExecutionCommand = de_StartExecutionCommand; + exports2.de_StartExecutionCommand = de_StartExecutionCommand; var de_StartExecutionCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -21305,7 +20618,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_StartSyncExecutionCommand = de_StartSyncExecutionCommand; + exports2.de_StartSyncExecutionCommand = de_StartSyncExecutionCommand; var de_StartSyncExecutionCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -21353,7 +20666,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_StopExecutionCommand = de_StopExecutionCommand; + exports2.de_StopExecutionCommand = de_StopExecutionCommand; var de_StopExecutionCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -21392,7 +20705,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_TagResourceCommand = de_TagResourceCommand; + exports2.de_TagResourceCommand = de_TagResourceCommand; var de_TagResourceCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -21431,7 +20744,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_UntagResourceCommand = de_UntagResourceCommand; + exports2.de_UntagResourceCommand = de_UntagResourceCommand; var de_UntagResourceCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -21467,7 +20780,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_UpdateMapRunCommand = de_UpdateMapRunCommand; + exports2.de_UpdateMapRunCommand = de_UpdateMapRunCommand; var de_UpdateMapRunCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -21506,7 +20819,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_UpdateStateMachineCommand = de_UpdateStateMachineCommand; + exports2.de_UpdateStateMachineCommand = de_UpdateStateMachineCommand; var de_UpdateStateMachineCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -21566,7 +20879,7 @@ var require_Aws_json1_0 = __commonJS({ }; return response; }; - exports.de_UpdateStateMachineAliasCommand = de_UpdateStateMachineAliasCommand; + exports2.de_UpdateStateMachineAliasCommand = de_UpdateStateMachineAliasCommand; var de_UpdateStateMachineAliasCommandError = async (output, context) => { const parsedOutput = { ...output, @@ -22246,16 +21559,17 @@ var require_Aws_json1_0 = __commonJS({ // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/CreateActivityCommand.js var require_CreateActivityCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/CreateActivityCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.CreateActivityCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/CreateActivityCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.CreateActivityCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var CreateActivityCommand = class _CreateActivityCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -22282,7 +21596,11 @@ var require_CreateActivityCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "CreateActivity" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -22294,22 +21612,23 @@ var require_CreateActivityCommand = __commonJS({ return (0, Aws_json1_0_1.de_CreateActivityCommand)(output, context); } }; - exports.CreateActivityCommand = CreateActivityCommand; + exports2.CreateActivityCommand = CreateActivityCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/CreateStateMachineAliasCommand.js var require_CreateStateMachineAliasCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/CreateStateMachineAliasCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.CreateStateMachineAliasCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/CreateStateMachineAliasCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.CreateStateMachineAliasCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var CreateStateMachineAliasCommand = class _CreateStateMachineAliasCommand extends smithy_client_1.Command { @@ -22337,7 +21656,11 @@ var require_CreateStateMachineAliasCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.CreateStateMachineAliasInputFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "CreateStateMachineAlias" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -22349,22 +21672,23 @@ var require_CreateStateMachineAliasCommand = __commonJS({ return (0, Aws_json1_0_1.de_CreateStateMachineAliasCommand)(output, context); } }; - exports.CreateStateMachineAliasCommand = CreateStateMachineAliasCommand; + exports2.CreateStateMachineAliasCommand = CreateStateMachineAliasCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/CreateStateMachineCommand.js var require_CreateStateMachineCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/CreateStateMachineCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.CreateStateMachineCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/CreateStateMachineCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.CreateStateMachineCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var CreateStateMachineCommand = class _CreateStateMachineCommand extends smithy_client_1.Command { @@ -22392,7 +21716,11 @@ var require_CreateStateMachineCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.CreateStateMachineInputFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "CreateStateMachine" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -22404,22 +21732,23 @@ var require_CreateStateMachineCommand = __commonJS({ return (0, Aws_json1_0_1.de_CreateStateMachineCommand)(output, context); } }; - exports.CreateStateMachineCommand = CreateStateMachineCommand; + exports2.CreateStateMachineCommand = CreateStateMachineCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteActivityCommand.js var require_DeleteActivityCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteActivityCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DeleteActivityCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteActivityCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.DeleteActivityCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var DeleteActivityCommand = class _DeleteActivityCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -22446,7 +21775,11 @@ var require_DeleteActivityCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "DeleteActivity" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -22458,22 +21791,23 @@ var require_DeleteActivityCommand = __commonJS({ return (0, Aws_json1_0_1.de_DeleteActivityCommand)(output, context); } }; - exports.DeleteActivityCommand = DeleteActivityCommand; + exports2.DeleteActivityCommand = DeleteActivityCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineAliasCommand.js var require_DeleteStateMachineAliasCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineAliasCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DeleteStateMachineAliasCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineAliasCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.DeleteStateMachineAliasCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var DeleteStateMachineAliasCommand = class _DeleteStateMachineAliasCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -22500,7 +21834,11 @@ var require_DeleteStateMachineAliasCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "DeleteStateMachineAlias" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -22512,22 +21850,23 @@ var require_DeleteStateMachineAliasCommand = __commonJS({ return (0, Aws_json1_0_1.de_DeleteStateMachineAliasCommand)(output, context); } }; - exports.DeleteStateMachineAliasCommand = DeleteStateMachineAliasCommand; + exports2.DeleteStateMachineAliasCommand = DeleteStateMachineAliasCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineCommand.js var require_DeleteStateMachineCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DeleteStateMachineCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.DeleteStateMachineCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var DeleteStateMachineCommand = class _DeleteStateMachineCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -22554,7 +21893,11 @@ var require_DeleteStateMachineCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "DeleteStateMachine" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -22566,22 +21909,23 @@ var require_DeleteStateMachineCommand = __commonJS({ return (0, Aws_json1_0_1.de_DeleteStateMachineCommand)(output, context); } }; - exports.DeleteStateMachineCommand = DeleteStateMachineCommand; + exports2.DeleteStateMachineCommand = DeleteStateMachineCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineVersionCommand.js var require_DeleteStateMachineVersionCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineVersionCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DeleteStateMachineVersionCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineVersionCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.DeleteStateMachineVersionCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var DeleteStateMachineVersionCommand = class _DeleteStateMachineVersionCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -22608,7 +21952,11 @@ var require_DeleteStateMachineVersionCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "DeleteStateMachineVersion" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -22620,22 +21968,23 @@ var require_DeleteStateMachineVersionCommand = __commonJS({ return (0, Aws_json1_0_1.de_DeleteStateMachineVersionCommand)(output, context); } }; - exports.DeleteStateMachineVersionCommand = DeleteStateMachineVersionCommand; + exports2.DeleteStateMachineVersionCommand = DeleteStateMachineVersionCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeActivityCommand.js var require_DescribeActivityCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeActivityCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DescribeActivityCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeActivityCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.DescribeActivityCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var DescribeActivityCommand = class _DescribeActivityCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -22662,7 +22011,11 @@ var require_DescribeActivityCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "DescribeActivity" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -22674,22 +22027,23 @@ var require_DescribeActivityCommand = __commonJS({ return (0, Aws_json1_0_1.de_DescribeActivityCommand)(output, context); } }; - exports.DescribeActivityCommand = DescribeActivityCommand; + exports2.DescribeActivityCommand = DescribeActivityCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeExecutionCommand.js var require_DescribeExecutionCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeExecutionCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DescribeExecutionCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeExecutionCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.DescribeExecutionCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var DescribeExecutionCommand = class _DescribeExecutionCommand extends smithy_client_1.Command { @@ -22717,7 +22071,11 @@ var require_DescribeExecutionCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.DescribeExecutionOutputFilterSensitiveLog + outputFilterSensitiveLog: models_0_1.DescribeExecutionOutputFilterSensitiveLog, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "DescribeExecution" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -22729,22 +22087,23 @@ var require_DescribeExecutionCommand = __commonJS({ return (0, Aws_json1_0_1.de_DescribeExecutionCommand)(output, context); } }; - exports.DescribeExecutionCommand = DescribeExecutionCommand; + exports2.DescribeExecutionCommand = DescribeExecutionCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeMapRunCommand.js var require_DescribeMapRunCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeMapRunCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DescribeMapRunCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeMapRunCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.DescribeMapRunCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var DescribeMapRunCommand = class _DescribeMapRunCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -22771,7 +22130,11 @@ var require_DescribeMapRunCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "DescribeMapRun" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -22783,22 +22146,23 @@ var require_DescribeMapRunCommand = __commonJS({ return (0, Aws_json1_0_1.de_DescribeMapRunCommand)(output, context); } }; - exports.DescribeMapRunCommand = DescribeMapRunCommand; + exports2.DescribeMapRunCommand = DescribeMapRunCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeStateMachineAliasCommand.js var require_DescribeStateMachineAliasCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeStateMachineAliasCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DescribeStateMachineAliasCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeStateMachineAliasCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.DescribeStateMachineAliasCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var DescribeStateMachineAliasCommand = class _DescribeStateMachineAliasCommand extends smithy_client_1.Command { @@ -22826,7 +22190,11 @@ var require_DescribeStateMachineAliasCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.DescribeStateMachineAliasOutputFilterSensitiveLog + outputFilterSensitiveLog: models_0_1.DescribeStateMachineAliasOutputFilterSensitiveLog, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "DescribeStateMachineAlias" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -22838,22 +22206,23 @@ var require_DescribeStateMachineAliasCommand = __commonJS({ return (0, Aws_json1_0_1.de_DescribeStateMachineAliasCommand)(output, context); } }; - exports.DescribeStateMachineAliasCommand = DescribeStateMachineAliasCommand; + exports2.DescribeStateMachineAliasCommand = DescribeStateMachineAliasCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeStateMachineCommand.js var require_DescribeStateMachineCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeStateMachineCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DescribeStateMachineCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeStateMachineCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.DescribeStateMachineCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var DescribeStateMachineCommand = class _DescribeStateMachineCommand extends smithy_client_1.Command { @@ -22881,7 +22250,11 @@ var require_DescribeStateMachineCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.DescribeStateMachineOutputFilterSensitiveLog + outputFilterSensitiveLog: models_0_1.DescribeStateMachineOutputFilterSensitiveLog, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "DescribeStateMachine" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -22893,22 +22266,23 @@ var require_DescribeStateMachineCommand = __commonJS({ return (0, Aws_json1_0_1.de_DescribeStateMachineCommand)(output, context); } }; - exports.DescribeStateMachineCommand = DescribeStateMachineCommand; + exports2.DescribeStateMachineCommand = DescribeStateMachineCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeStateMachineForExecutionCommand.js var require_DescribeStateMachineForExecutionCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeStateMachineForExecutionCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DescribeStateMachineForExecutionCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeStateMachineForExecutionCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.DescribeStateMachineForExecutionCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var DescribeStateMachineForExecutionCommand = class _DescribeStateMachineForExecutionCommand extends smithy_client_1.Command { @@ -22936,7 +22310,11 @@ var require_DescribeStateMachineForExecutionCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.DescribeStateMachineForExecutionOutputFilterSensitiveLog + outputFilterSensitiveLog: models_0_1.DescribeStateMachineForExecutionOutputFilterSensitiveLog, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "DescribeStateMachineForExecution" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -22948,22 +22326,23 @@ var require_DescribeStateMachineForExecutionCommand = __commonJS({ return (0, Aws_json1_0_1.de_DescribeStateMachineForExecutionCommand)(output, context); } }; - exports.DescribeStateMachineForExecutionCommand = DescribeStateMachineForExecutionCommand; + exports2.DescribeStateMachineForExecutionCommand = DescribeStateMachineForExecutionCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/GetActivityTaskCommand.js var require_GetActivityTaskCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/GetActivityTaskCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.GetActivityTaskCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/GetActivityTaskCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GetActivityTaskCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var GetActivityTaskCommand = class _GetActivityTaskCommand extends smithy_client_1.Command { @@ -22991,7 +22370,11 @@ var require_GetActivityTaskCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.GetActivityTaskOutputFilterSensitiveLog + outputFilterSensitiveLog: models_0_1.GetActivityTaskOutputFilterSensitiveLog, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "GetActivityTask" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23003,22 +22386,23 @@ var require_GetActivityTaskCommand = __commonJS({ return (0, Aws_json1_0_1.de_GetActivityTaskCommand)(output, context); } }; - exports.GetActivityTaskCommand = GetActivityTaskCommand; + exports2.GetActivityTaskCommand = GetActivityTaskCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/GetExecutionHistoryCommand.js var require_GetExecutionHistoryCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/GetExecutionHistoryCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.GetExecutionHistoryCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/GetExecutionHistoryCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.GetExecutionHistoryCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var GetExecutionHistoryCommand = class _GetExecutionHistoryCommand extends smithy_client_1.Command { @@ -23046,7 +22430,11 @@ var require_GetExecutionHistoryCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.GetExecutionHistoryOutputFilterSensitiveLog + outputFilterSensitiveLog: models_0_1.GetExecutionHistoryOutputFilterSensitiveLog, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "GetExecutionHistory" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23058,22 +22446,23 @@ var require_GetExecutionHistoryCommand = __commonJS({ return (0, Aws_json1_0_1.de_GetExecutionHistoryCommand)(output, context); } }; - exports.GetExecutionHistoryCommand = GetExecutionHistoryCommand; + exports2.GetExecutionHistoryCommand = GetExecutionHistoryCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListActivitiesCommand.js var require_ListActivitiesCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListActivitiesCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ListActivitiesCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListActivitiesCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ListActivitiesCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var ListActivitiesCommand = class _ListActivitiesCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -23100,7 +22489,11 @@ var require_ListActivitiesCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "ListActivities" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23112,22 +22505,23 @@ var require_ListActivitiesCommand = __commonJS({ return (0, Aws_json1_0_1.de_ListActivitiesCommand)(output, context); } }; - exports.ListActivitiesCommand = ListActivitiesCommand; + exports2.ListActivitiesCommand = ListActivitiesCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListExecutionsCommand.js var require_ListExecutionsCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListExecutionsCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ListExecutionsCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListExecutionsCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ListExecutionsCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var ListExecutionsCommand = class _ListExecutionsCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -23154,7 +22548,11 @@ var require_ListExecutionsCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "ListExecutions" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23166,22 +22564,23 @@ var require_ListExecutionsCommand = __commonJS({ return (0, Aws_json1_0_1.de_ListExecutionsCommand)(output, context); } }; - exports.ListExecutionsCommand = ListExecutionsCommand; + exports2.ListExecutionsCommand = ListExecutionsCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListMapRunsCommand.js var require_ListMapRunsCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListMapRunsCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ListMapRunsCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListMapRunsCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ListMapRunsCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var ListMapRunsCommand = class _ListMapRunsCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -23208,7 +22607,11 @@ var require_ListMapRunsCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "ListMapRuns" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23220,22 +22623,23 @@ var require_ListMapRunsCommand = __commonJS({ return (0, Aws_json1_0_1.de_ListMapRunsCommand)(output, context); } }; - exports.ListMapRunsCommand = ListMapRunsCommand; + exports2.ListMapRunsCommand = ListMapRunsCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListStateMachineAliasesCommand.js var require_ListStateMachineAliasesCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListStateMachineAliasesCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ListStateMachineAliasesCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListStateMachineAliasesCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ListStateMachineAliasesCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var ListStateMachineAliasesCommand = class _ListStateMachineAliasesCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -23262,7 +22666,11 @@ var require_ListStateMachineAliasesCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "ListStateMachineAliases" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23274,22 +22682,23 @@ var require_ListStateMachineAliasesCommand = __commonJS({ return (0, Aws_json1_0_1.de_ListStateMachineAliasesCommand)(output, context); } }; - exports.ListStateMachineAliasesCommand = ListStateMachineAliasesCommand; + exports2.ListStateMachineAliasesCommand = ListStateMachineAliasesCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListStateMachinesCommand.js var require_ListStateMachinesCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListStateMachinesCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ListStateMachinesCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListStateMachinesCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ListStateMachinesCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var ListStateMachinesCommand = class _ListStateMachinesCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -23316,7 +22725,11 @@ var require_ListStateMachinesCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "ListStateMachines" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23328,22 +22741,23 @@ var require_ListStateMachinesCommand = __commonJS({ return (0, Aws_json1_0_1.de_ListStateMachinesCommand)(output, context); } }; - exports.ListStateMachinesCommand = ListStateMachinesCommand; + exports2.ListStateMachinesCommand = ListStateMachinesCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListStateMachineVersionsCommand.js var require_ListStateMachineVersionsCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListStateMachineVersionsCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ListStateMachineVersionsCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListStateMachineVersionsCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ListStateMachineVersionsCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var ListStateMachineVersionsCommand = class _ListStateMachineVersionsCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -23370,7 +22784,11 @@ var require_ListStateMachineVersionsCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "ListStateMachineVersions" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23382,22 +22800,23 @@ var require_ListStateMachineVersionsCommand = __commonJS({ return (0, Aws_json1_0_1.de_ListStateMachineVersionsCommand)(output, context); } }; - exports.ListStateMachineVersionsCommand = ListStateMachineVersionsCommand; + exports2.ListStateMachineVersionsCommand = ListStateMachineVersionsCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListTagsForResourceCommand.js var require_ListTagsForResourceCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListTagsForResourceCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ListTagsForResourceCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListTagsForResourceCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.ListTagsForResourceCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var ListTagsForResourceCommand = class _ListTagsForResourceCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -23424,7 +22843,11 @@ var require_ListTagsForResourceCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "ListTagsForResource" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23436,22 +22859,23 @@ var require_ListTagsForResourceCommand = __commonJS({ return (0, Aws_json1_0_1.de_ListTagsForResourceCommand)(output, context); } }; - exports.ListTagsForResourceCommand = ListTagsForResourceCommand; + exports2.ListTagsForResourceCommand = ListTagsForResourceCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/PublishStateMachineVersionCommand.js var require_PublishStateMachineVersionCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/PublishStateMachineVersionCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.PublishStateMachineVersionCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/PublishStateMachineVersionCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.PublishStateMachineVersionCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var PublishStateMachineVersionCommand = class _PublishStateMachineVersionCommand extends smithy_client_1.Command { @@ -23479,7 +22903,11 @@ var require_PublishStateMachineVersionCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.PublishStateMachineVersionInputFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "PublishStateMachineVersion" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23491,22 +22919,23 @@ var require_PublishStateMachineVersionCommand = __commonJS({ return (0, Aws_json1_0_1.de_PublishStateMachineVersionCommand)(output, context); } }; - exports.PublishStateMachineVersionCommand = PublishStateMachineVersionCommand; + exports2.PublishStateMachineVersionCommand = PublishStateMachineVersionCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/SendTaskFailureCommand.js var require_SendTaskFailureCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/SendTaskFailureCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SendTaskFailureCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/SendTaskFailureCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SendTaskFailureCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var SendTaskFailureCommand = class _SendTaskFailureCommand extends smithy_client_1.Command { @@ -23534,7 +22963,11 @@ var require_SendTaskFailureCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.SendTaskFailureInputFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "SendTaskFailure" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23546,22 +22979,23 @@ var require_SendTaskFailureCommand = __commonJS({ return (0, Aws_json1_0_1.de_SendTaskFailureCommand)(output, context); } }; - exports.SendTaskFailureCommand = SendTaskFailureCommand; + exports2.SendTaskFailureCommand = SendTaskFailureCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/SendTaskHeartbeatCommand.js var require_SendTaskHeartbeatCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/SendTaskHeartbeatCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SendTaskHeartbeatCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/SendTaskHeartbeatCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SendTaskHeartbeatCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var SendTaskHeartbeatCommand = class _SendTaskHeartbeatCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -23588,7 +23022,11 @@ var require_SendTaskHeartbeatCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "SendTaskHeartbeat" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23600,22 +23038,23 @@ var require_SendTaskHeartbeatCommand = __commonJS({ return (0, Aws_json1_0_1.de_SendTaskHeartbeatCommand)(output, context); } }; - exports.SendTaskHeartbeatCommand = SendTaskHeartbeatCommand; + exports2.SendTaskHeartbeatCommand = SendTaskHeartbeatCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/SendTaskSuccessCommand.js var require_SendTaskSuccessCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/SendTaskSuccessCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SendTaskSuccessCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/SendTaskSuccessCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SendTaskSuccessCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var SendTaskSuccessCommand = class _SendTaskSuccessCommand extends smithy_client_1.Command { @@ -23643,7 +23082,11 @@ var require_SendTaskSuccessCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.SendTaskSuccessInputFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "SendTaskSuccess" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23655,22 +23098,23 @@ var require_SendTaskSuccessCommand = __commonJS({ return (0, Aws_json1_0_1.de_SendTaskSuccessCommand)(output, context); } }; - exports.SendTaskSuccessCommand = SendTaskSuccessCommand; + exports2.SendTaskSuccessCommand = SendTaskSuccessCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/StartExecutionCommand.js var require_StartExecutionCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/StartExecutionCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.StartExecutionCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/StartExecutionCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.StartExecutionCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var StartExecutionCommand = class _StartExecutionCommand extends smithy_client_1.Command { @@ -23698,7 +23142,11 @@ var require_StartExecutionCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.StartExecutionInputFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "StartExecution" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23710,22 +23158,23 @@ var require_StartExecutionCommand = __commonJS({ return (0, Aws_json1_0_1.de_StartExecutionCommand)(output, context); } }; - exports.StartExecutionCommand = StartExecutionCommand; + exports2.StartExecutionCommand = StartExecutionCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/StartSyncExecutionCommand.js var require_StartSyncExecutionCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/StartSyncExecutionCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.StartSyncExecutionCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/StartSyncExecutionCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.StartSyncExecutionCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var StartSyncExecutionCommand = class _StartSyncExecutionCommand extends smithy_client_1.Command { @@ -23753,7 +23202,11 @@ var require_StartSyncExecutionCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.StartSyncExecutionInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.StartSyncExecutionOutputFilterSensitiveLog + outputFilterSensitiveLog: models_0_1.StartSyncExecutionOutputFilterSensitiveLog, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "StartSyncExecution" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23765,22 +23218,23 @@ var require_StartSyncExecutionCommand = __commonJS({ return (0, Aws_json1_0_1.de_StartSyncExecutionCommand)(output, context); } }; - exports.StartSyncExecutionCommand = StartSyncExecutionCommand; + exports2.StartSyncExecutionCommand = StartSyncExecutionCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/StopExecutionCommand.js var require_StopExecutionCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/StopExecutionCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.StopExecutionCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/StopExecutionCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.StopExecutionCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var StopExecutionCommand = class _StopExecutionCommand extends smithy_client_1.Command { @@ -23808,7 +23262,11 @@ var require_StopExecutionCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.StopExecutionInputFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "StopExecution" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23820,22 +23278,23 @@ var require_StopExecutionCommand = __commonJS({ return (0, Aws_json1_0_1.de_StopExecutionCommand)(output, context); } }; - exports.StopExecutionCommand = StopExecutionCommand; + exports2.StopExecutionCommand = StopExecutionCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/TagResourceCommand.js var require_TagResourceCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/TagResourceCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.TagResourceCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/TagResourceCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.TagResourceCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var TagResourceCommand = class _TagResourceCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -23862,7 +23321,11 @@ var require_TagResourceCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "TagResource" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23874,22 +23337,23 @@ var require_TagResourceCommand = __commonJS({ return (0, Aws_json1_0_1.de_TagResourceCommand)(output, context); } }; - exports.TagResourceCommand = TagResourceCommand; + exports2.TagResourceCommand = TagResourceCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UntagResourceCommand.js var require_UntagResourceCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UntagResourceCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.UntagResourceCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UntagResourceCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.UntagResourceCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var UntagResourceCommand = class _UntagResourceCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -23916,7 +23380,11 @@ var require_UntagResourceCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "UntagResource" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23928,22 +23396,23 @@ var require_UntagResourceCommand = __commonJS({ return (0, Aws_json1_0_1.de_UntagResourceCommand)(output, context); } }; - exports.UntagResourceCommand = UntagResourceCommand; + exports2.UntagResourceCommand = UntagResourceCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UpdateMapRunCommand.js var require_UpdateMapRunCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UpdateMapRunCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.UpdateMapRunCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UpdateMapRunCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.UpdateMapRunCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var Aws_json1_0_1 = require_Aws_json1_0(); var UpdateMapRunCommand = class _UpdateMapRunCommand extends smithy_client_1.Command { static getEndpointParameterInstructions() { @@ -23970,7 +23439,11 @@ var require_UpdateMapRunCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "UpdateMapRun" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -23982,22 +23455,23 @@ var require_UpdateMapRunCommand = __commonJS({ return (0, Aws_json1_0_1.de_UpdateMapRunCommand)(output, context); } }; - exports.UpdateMapRunCommand = UpdateMapRunCommand; + exports2.UpdateMapRunCommand = UpdateMapRunCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UpdateStateMachineAliasCommand.js var require_UpdateStateMachineAliasCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UpdateStateMachineAliasCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.UpdateStateMachineAliasCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UpdateStateMachineAliasCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.UpdateStateMachineAliasCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var UpdateStateMachineAliasCommand = class _UpdateStateMachineAliasCommand extends smithy_client_1.Command { @@ -24025,7 +23499,11 @@ var require_UpdateStateMachineAliasCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.UpdateStateMachineAliasInputFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "UpdateStateMachineAlias" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -24037,22 +23515,23 @@ var require_UpdateStateMachineAliasCommand = __commonJS({ return (0, Aws_json1_0_1.de_UpdateStateMachineAliasCommand)(output, context); } }; - exports.UpdateStateMachineAliasCommand = UpdateStateMachineAliasCommand; + exports2.UpdateStateMachineAliasCommand = UpdateStateMachineAliasCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UpdateStateMachineCommand.js var require_UpdateStateMachineCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UpdateStateMachineCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.UpdateStateMachineCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UpdateStateMachineCommand.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.UpdateStateMachineCommand = exports2.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs28(); + var middleware_serde_1 = require_dist_cjs27(); + var smithy_client_1 = require_dist_cjs36(); + Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var types_1 = require_dist_cjs(); var models_0_1 = require_models_03(); var Aws_json1_0_1 = require_Aws_json1_0(); var UpdateStateMachineCommand = class _UpdateStateMachineCommand extends smithy_client_1.Command { @@ -24080,7 +23559,11 @@ var require_UpdateStateMachineCommand = __commonJS({ clientName, commandName, inputFilterSensitiveLog: models_0_1.UpdateStateMachineInputFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ + outputFilterSensitiveLog: (_) => _, + [types_1.SMITHY_CONTEXT_KEY]: { + service: "AWSStepFunctions", + operation: "UpdateStateMachine" + } }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); @@ -24092,17 +23575,17 @@ var require_UpdateStateMachineCommand = __commonJS({ return (0, Aws_json1_0_1.de_UpdateStateMachineCommand)(output, context); } }; - exports.UpdateStateMachineCommand = UpdateStateMachineCommand; + exports2.UpdateStateMachineCommand = UpdateStateMachineCommand; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/SFN.js var require_SFN = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/SFN.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/SFN.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SFN = void 0; - var smithy_client_1 = require_dist_cjs35(); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SFN = void 0; + var smithy_client_1 = require_dist_cjs36(); var CreateActivityCommand_1 = require_CreateActivityCommand(); var CreateStateMachineAliasCommand_1 = require_CreateStateMachineAliasCommand(); var CreateStateMachineCommand_1 = require_CreateStateMachineCommand(); @@ -24176,60 +23659,60 @@ var require_SFN = __commonJS({ }; var SFN2 = class extends SFNClient_1.SFNClient { }; - exports.SFN = SFN2; + exports2.SFN = SFN2; (0, smithy_client_1.createAggregatedClient)(commands, SFN2); } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/index.js var require_commands3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_CreateActivityCommand(), exports); - tslib_1.__exportStar(require_CreateStateMachineAliasCommand(), exports); - tslib_1.__exportStar(require_CreateStateMachineCommand(), exports); - tslib_1.__exportStar(require_DeleteActivityCommand(), exports); - tslib_1.__exportStar(require_DeleteStateMachineAliasCommand(), exports); - tslib_1.__exportStar(require_DeleteStateMachineCommand(), exports); - tslib_1.__exportStar(require_DeleteStateMachineVersionCommand(), exports); - tslib_1.__exportStar(require_DescribeActivityCommand(), exports); - tslib_1.__exportStar(require_DescribeExecutionCommand(), exports); - tslib_1.__exportStar(require_DescribeMapRunCommand(), exports); - tslib_1.__exportStar(require_DescribeStateMachineAliasCommand(), exports); - tslib_1.__exportStar(require_DescribeStateMachineCommand(), exports); - tslib_1.__exportStar(require_DescribeStateMachineForExecutionCommand(), exports); - tslib_1.__exportStar(require_GetActivityTaskCommand(), exports); - tslib_1.__exportStar(require_GetExecutionHistoryCommand(), exports); - tslib_1.__exportStar(require_ListActivitiesCommand(), exports); - tslib_1.__exportStar(require_ListExecutionsCommand(), exports); - tslib_1.__exportStar(require_ListMapRunsCommand(), exports); - tslib_1.__exportStar(require_ListStateMachineAliasesCommand(), exports); - tslib_1.__exportStar(require_ListStateMachineVersionsCommand(), exports); - tslib_1.__exportStar(require_ListStateMachinesCommand(), exports); - tslib_1.__exportStar(require_ListTagsForResourceCommand(), exports); - tslib_1.__exportStar(require_PublishStateMachineVersionCommand(), exports); - tslib_1.__exportStar(require_SendTaskFailureCommand(), exports); - tslib_1.__exportStar(require_SendTaskHeartbeatCommand(), exports); - tslib_1.__exportStar(require_SendTaskSuccessCommand(), exports); - tslib_1.__exportStar(require_StartExecutionCommand(), exports); - tslib_1.__exportStar(require_StartSyncExecutionCommand(), exports); - tslib_1.__exportStar(require_StopExecutionCommand(), exports); - tslib_1.__exportStar(require_TagResourceCommand(), exports); - tslib_1.__exportStar(require_UntagResourceCommand(), exports); - tslib_1.__exportStar(require_UpdateMapRunCommand(), exports); - tslib_1.__exportStar(require_UpdateStateMachineAliasCommand(), exports); - tslib_1.__exportStar(require_UpdateStateMachineCommand(), exports); + tslib_1.__exportStar(require_CreateActivityCommand(), exports2); + tslib_1.__exportStar(require_CreateStateMachineAliasCommand(), exports2); + tslib_1.__exportStar(require_CreateStateMachineCommand(), exports2); + tslib_1.__exportStar(require_DeleteActivityCommand(), exports2); + tslib_1.__exportStar(require_DeleteStateMachineAliasCommand(), exports2); + tslib_1.__exportStar(require_DeleteStateMachineCommand(), exports2); + tslib_1.__exportStar(require_DeleteStateMachineVersionCommand(), exports2); + tslib_1.__exportStar(require_DescribeActivityCommand(), exports2); + tslib_1.__exportStar(require_DescribeExecutionCommand(), exports2); + tslib_1.__exportStar(require_DescribeMapRunCommand(), exports2); + tslib_1.__exportStar(require_DescribeStateMachineAliasCommand(), exports2); + tslib_1.__exportStar(require_DescribeStateMachineCommand(), exports2); + tslib_1.__exportStar(require_DescribeStateMachineForExecutionCommand(), exports2); + tslib_1.__exportStar(require_GetActivityTaskCommand(), exports2); + tslib_1.__exportStar(require_GetExecutionHistoryCommand(), exports2); + tslib_1.__exportStar(require_ListActivitiesCommand(), exports2); + tslib_1.__exportStar(require_ListExecutionsCommand(), exports2); + tslib_1.__exportStar(require_ListMapRunsCommand(), exports2); + tslib_1.__exportStar(require_ListStateMachineAliasesCommand(), exports2); + tslib_1.__exportStar(require_ListStateMachineVersionsCommand(), exports2); + tslib_1.__exportStar(require_ListStateMachinesCommand(), exports2); + tslib_1.__exportStar(require_ListTagsForResourceCommand(), exports2); + tslib_1.__exportStar(require_PublishStateMachineVersionCommand(), exports2); + tslib_1.__exportStar(require_SendTaskFailureCommand(), exports2); + tslib_1.__exportStar(require_SendTaskHeartbeatCommand(), exports2); + tslib_1.__exportStar(require_SendTaskSuccessCommand(), exports2); + tslib_1.__exportStar(require_StartExecutionCommand(), exports2); + tslib_1.__exportStar(require_StartSyncExecutionCommand(), exports2); + tslib_1.__exportStar(require_StopExecutionCommand(), exports2); + tslib_1.__exportStar(require_TagResourceCommand(), exports2); + tslib_1.__exportStar(require_UntagResourceCommand(), exports2); + tslib_1.__exportStar(require_UpdateMapRunCommand(), exports2); + tslib_1.__exportStar(require_UpdateStateMachineAliasCommand(), exports2); + tslib_1.__exportStar(require_UpdateStateMachineCommand(), exports2); } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/GetExecutionHistoryPaginator.js var require_GetExecutionHistoryPaginator = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/GetExecutionHistoryPaginator.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/GetExecutionHistoryPaginator.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.paginateGetExecutionHistory = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.paginateGetExecutionHistory = void 0; var GetExecutionHistoryCommand_1 = require_GetExecutionHistoryCommand(); var SFNClient_1 = require_SFNClient(); var makePagedClientRequest = async (client, input, ...args) => { @@ -24254,24 +23737,24 @@ var require_GetExecutionHistoryPaginator = __commonJS({ } return void 0; } - exports.paginateGetExecutionHistory = paginateGetExecutionHistory; + exports2.paginateGetExecutionHistory = paginateGetExecutionHistory; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/Interfaces.js var require_Interfaces2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/Interfaces.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/Interfaces.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/ListActivitiesPaginator.js var require_ListActivitiesPaginator = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/ListActivitiesPaginator.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/ListActivitiesPaginator.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.paginateListActivities = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.paginateListActivities = void 0; var ListActivitiesCommand_1 = require_ListActivitiesCommand(); var SFNClient_1 = require_SFNClient(); var makePagedClientRequest = async (client, input, ...args) => { @@ -24296,16 +23779,16 @@ var require_ListActivitiesPaginator = __commonJS({ } return void 0; } - exports.paginateListActivities = paginateListActivities; + exports2.paginateListActivities = paginateListActivities; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/ListExecutionsPaginator.js var require_ListExecutionsPaginator = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/ListExecutionsPaginator.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/ListExecutionsPaginator.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.paginateListExecutions = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.paginateListExecutions = void 0; var ListExecutionsCommand_1 = require_ListExecutionsCommand(); var SFNClient_1 = require_SFNClient(); var makePagedClientRequest = async (client, input, ...args) => { @@ -24330,16 +23813,16 @@ var require_ListExecutionsPaginator = __commonJS({ } return void 0; } - exports.paginateListExecutions = paginateListExecutions; + exports2.paginateListExecutions = paginateListExecutions; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/ListMapRunsPaginator.js var require_ListMapRunsPaginator = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/ListMapRunsPaginator.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/ListMapRunsPaginator.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.paginateListMapRuns = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.paginateListMapRuns = void 0; var ListMapRunsCommand_1 = require_ListMapRunsCommand(); var SFNClient_1 = require_SFNClient(); var makePagedClientRequest = async (client, input, ...args) => { @@ -24364,16 +23847,16 @@ var require_ListMapRunsPaginator = __commonJS({ } return void 0; } - exports.paginateListMapRuns = paginateListMapRuns; + exports2.paginateListMapRuns = paginateListMapRuns; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/ListStateMachinesPaginator.js var require_ListStateMachinesPaginator = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/ListStateMachinesPaginator.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/ListStateMachinesPaginator.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.paginateListStateMachines = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.paginateListStateMachines = void 0; var ListStateMachinesCommand_1 = require_ListStateMachinesCommand(); var SFNClient_1 = require_SFNClient(); var makePagedClientRequest = async (client, input, ...args) => { @@ -24398,49 +23881,49 @@ var require_ListStateMachinesPaginator = __commonJS({ } return void 0; } - exports.paginateListStateMachines = paginateListStateMachines; + exports2.paginateListStateMachines = paginateListStateMachines; } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/index.js -var require_pagination4 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/index.js"(exports) { +var require_pagination3 = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_GetExecutionHistoryPaginator(), exports); - tslib_1.__exportStar(require_Interfaces2(), exports); - tslib_1.__exportStar(require_ListActivitiesPaginator(), exports); - tslib_1.__exportStar(require_ListExecutionsPaginator(), exports); - tslib_1.__exportStar(require_ListMapRunsPaginator(), exports); - tslib_1.__exportStar(require_ListStateMachinesPaginator(), exports); + tslib_1.__exportStar(require_GetExecutionHistoryPaginator(), exports2); + tslib_1.__exportStar(require_Interfaces2(), exports2); + tslib_1.__exportStar(require_ListActivitiesPaginator(), exports2); + tslib_1.__exportStar(require_ListExecutionsPaginator(), exports2); + tslib_1.__exportStar(require_ListMapRunsPaginator(), exports2); + tslib_1.__exportStar(require_ListStateMachinesPaginator(), exports2); } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/models/index.js var require_models3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/models/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/models/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_models_03(), exports); + tslib_1.__exportStar(require_models_03(), exports2); } }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/index.js var require_dist_cjs54 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/index.js"(exports2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SFNServiceException = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.SFNServiceException = void 0; var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_SFNClient(), exports); - tslib_1.__exportStar(require_SFN(), exports); - tslib_1.__exportStar(require_commands3(), exports); - tslib_1.__exportStar(require_pagination4(), exports); - tslib_1.__exportStar(require_models3(), exports); + tslib_1.__exportStar(require_SFNClient(), exports2); + tslib_1.__exportStar(require_SFN(), exports2); + tslib_1.__exportStar(require_commands3(), exports2); + tslib_1.__exportStar(require_pagination3(), exports2); + tslib_1.__exportStar(require_models3(), exports2); var SFNServiceException_1 = require_SFNServiceException(); - Object.defineProperty(exports, "SFNServiceException", { enumerable: true, get: function() { + Object.defineProperty(exports2, "SFNServiceException", { enumerable: true, get: function() { return SFNServiceException_1.SFNServiceException; } }); } @@ -24448,7 +23931,7 @@ var require_dist_cjs54 = __commonJS({ // ../../../node_modules/webidl-conversions/lib/index.js var require_lib2 = __commonJS({ - "../../../node_modules/webidl-conversions/lib/index.js"(exports, module2) { + "../../../node_modules/webidl-conversions/lib/index.js"(exports2, module2) { "use strict"; var conversions = {}; module2.exports = conversions; @@ -24605,7 +24088,7 @@ var require_lib2 = __commonJS({ // ../../../node_modules/whatwg-url/lib/utils.js var require_utils2 = __commonJS({ - "../../../node_modules/whatwg-url/lib/utils.js"(exports, module2) { + "../../../node_modules/whatwg-url/lib/utils.js"(exports2, module2) { "use strict"; module2.exports.mixin = function mixin(target, source) { const keys = Object.getOwnPropertyNames(source); @@ -24626,14 +24109,14 @@ var require_utils2 = __commonJS({ // ../../../node_modules/tr46/lib/mappingTable.json var require_mappingTable = __commonJS({ - "../../../node_modules/tr46/lib/mappingTable.json"(exports, module2) { + "../../../node_modules/tr46/lib/mappingTable.json"(exports2, module2) { module2.exports = [[[0, 44], "disallowed_STD3_valid"], [[45, 46], "valid"], [[47, 47], "disallowed_STD3_valid"], [[48, 57], "valid"], [[58, 64], "disallowed_STD3_valid"], [[65, 65], "mapped", [97]], [[66, 66], "mapped", [98]], [[67, 67], "mapped", [99]], [[68, 68], "mapped", [100]], [[69, 69], "mapped", [101]], [[70, 70], "mapped", [102]], [[71, 71], "mapped", [103]], [[72, 72], "mapped", [104]], [[73, 73], "mapped", [105]], [[74, 74], "mapped", [106]], [[75, 75], "mapped", [107]], [[76, 76], "mapped", [108]], [[77, 77], "mapped", [109]], [[78, 78], "mapped", [110]], [[79, 79], "mapped", [111]], [[80, 80], "mapped", [112]], [[81, 81], "mapped", [113]], [[82, 82], "mapped", [114]], [[83, 83], "mapped", [115]], [[84, 84], "mapped", [116]], [[85, 85], "mapped", [117]], [[86, 86], "mapped", [118]], [[87, 87], "mapped", [119]], [[88, 88], "mapped", [120]], [[89, 89], "mapped", [121]], [[90, 90], "mapped", [122]], [[91, 96], "disallowed_STD3_valid"], [[97, 122], "valid"], [[123, 127], "disallowed_STD3_valid"], [[128, 159], "disallowed"], [[160, 160], "disallowed_STD3_mapped", [32]], [[161, 167], "valid", [], "NV8"], [[168, 168], "disallowed_STD3_mapped", [32, 776]], [[169, 169], "valid", [], "NV8"], [[170, 170], "mapped", [97]], [[171, 172], "valid", [], "NV8"], [[173, 173], "ignored"], [[174, 174], "valid", [], "NV8"], [[175, 175], "disallowed_STD3_mapped", [32, 772]], [[176, 177], "valid", [], "NV8"], [[178, 178], "mapped", [50]], [[179, 179], "mapped", [51]], [[180, 180], "disallowed_STD3_mapped", [32, 769]], [[181, 181], "mapped", [956]], [[182, 182], "valid", [], "NV8"], [[183, 183], "valid"], [[184, 184], "disallowed_STD3_mapped", [32, 807]], [[185, 185], "mapped", [49]], [[186, 186], "mapped", [111]], [[187, 187], "valid", [], "NV8"], [[188, 188], "mapped", [49, 8260, 52]], [[189, 189], "mapped", [49, 8260, 50]], [[190, 190], "mapped", [51, 8260, 52]], [[191, 191], "valid", [], "NV8"], [[192, 192], "mapped", [224]], [[193, 193], "mapped", [225]], [[194, 194], "mapped", [226]], [[195, 195], "mapped", [227]], [[196, 196], "mapped", [228]], [[197, 197], "mapped", [229]], [[198, 198], "mapped", [230]], [[199, 199], "mapped", [231]], [[200, 200], "mapped", [232]], [[201, 201], "mapped", [233]], [[202, 202], "mapped", [234]], [[203, 203], "mapped", [235]], [[204, 204], "mapped", [236]], [[205, 205], "mapped", [237]], [[206, 206], "mapped", [238]], [[207, 207], "mapped", [239]], [[208, 208], "mapped", [240]], [[209, 209], "mapped", [241]], [[210, 210], "mapped", [242]], [[211, 211], "mapped", [243]], [[212, 212], "mapped", [244]], [[213, 213], "mapped", [245]], [[214, 214], "mapped", [246]], [[215, 215], "valid", [], "NV8"], [[216, 216], "mapped", [248]], [[217, 217], "mapped", [249]], [[218, 218], "mapped", [250]], [[219, 219], "mapped", [251]], [[220, 220], "mapped", [252]], [[221, 221], "mapped", [253]], [[222, 222], "mapped", [254]], [[223, 223], "deviation", [115, 115]], [[224, 246], "valid"], [[247, 247], "valid", [], "NV8"], [[248, 255], "valid"], [[256, 256], "mapped", [257]], [[257, 257], "valid"], [[258, 258], "mapped", [259]], [[259, 259], "valid"], [[260, 260], "mapped", [261]], [[261, 261], "valid"], [[262, 262], "mapped", [263]], [[263, 263], "valid"], [[264, 264], "mapped", [265]], [[265, 265], "valid"], [[266, 266], "mapped", [267]], [[267, 267], "valid"], [[268, 268], "mapped", [269]], [[269, 269], "valid"], [[270, 270], "mapped", [271]], [[271, 271], "valid"], [[272, 272], "mapped", [273]], [[273, 273], "valid"], [[274, 274], "mapped", [275]], [[275, 275], "valid"], [[276, 276], "mapped", [277]], [[277, 277], "valid"], [[278, 278], "mapped", [279]], [[279, 279], "valid"], [[280, 280], "mapped", [281]], [[281, 281], "valid"], [[282, 282], "mapped", [283]], [[283, 283], "valid"], [[284, 284], "mapped", [285]], [[285, 285], "valid"], [[286, 286], "mapped", [287]], [[287, 287], "valid"], [[288, 288], "mapped", [289]], [[289, 289], "valid"], [[290, 290], "mapped", [291]], [[291, 291], "valid"], [[292, 292], "mapped", [293]], [[293, 293], "valid"], [[294, 294], "mapped", [295]], [[295, 295], "valid"], [[296, 296], "mapped", [297]], [[297, 297], "valid"], [[298, 298], "mapped", [299]], [[299, 299], "valid"], [[300, 300], "mapped", [301]], [[301, 301], "valid"], [[302, 302], "mapped", [303]], [[303, 303], "valid"], [[304, 304], "mapped", [105, 775]], [[305, 305], "valid"], [[306, 307], "mapped", [105, 106]], [[308, 308], "mapped", [309]], [[309, 309], "valid"], [[310, 310], "mapped", [311]], [[311, 312], "valid"], [[313, 313], "mapped", [314]], [[314, 314], "valid"], [[315, 315], "mapped", [316]], [[316, 316], "valid"], [[317, 317], "mapped", [318]], [[318, 318], "valid"], [[319, 320], "mapped", [108, 183]], [[321, 321], "mapped", [322]], [[322, 322], "valid"], [[323, 323], "mapped", [324]], [[324, 324], "valid"], [[325, 325], "mapped", [326]], [[326, 326], "valid"], [[327, 327], "mapped", [328]], [[328, 328], "valid"], [[329, 329], "mapped", [700, 110]], [[330, 330], "mapped", [331]], [[331, 331], "valid"], [[332, 332], "mapped", [333]], [[333, 333], "valid"], [[334, 334], "mapped", [335]], [[335, 335], "valid"], [[336, 336], "mapped", [337]], [[337, 337], "valid"], [[338, 338], "mapped", [339]], [[339, 339], "valid"], [[340, 340], "mapped", [341]], [[341, 341], "valid"], [[342, 342], "mapped", [343]], [[343, 343], "valid"], [[344, 344], "mapped", [345]], [[345, 345], "valid"], [[346, 346], "mapped", [347]], [[347, 347], "valid"], [[348, 348], "mapped", [349]], [[349, 349], "valid"], [[350, 350], "mapped", [351]], [[351, 351], "valid"], [[352, 352], "mapped", [353]], [[353, 353], "valid"], [[354, 354], "mapped", [355]], [[355, 355], "valid"], [[356, 356], "mapped", [357]], [[357, 357], "valid"], [[358, 358], "mapped", [359]], [[359, 359], "valid"], [[360, 360], "mapped", [361]], [[361, 361], "valid"], [[362, 362], "mapped", [363]], [[363, 363], "valid"], [[364, 364], "mapped", [365]], [[365, 365], "valid"], [[366, 366], "mapped", [367]], [[367, 367], "valid"], [[368, 368], "mapped", [369]], [[369, 369], "valid"], [[370, 370], "mapped", [371]], [[371, 371], "valid"], [[372, 372], "mapped", [373]], [[373, 373], "valid"], [[374, 374], "mapped", [375]], [[375, 375], "valid"], [[376, 376], "mapped", [255]], [[377, 377], "mapped", [378]], [[378, 378], "valid"], [[379, 379], "mapped", [380]], [[380, 380], "valid"], [[381, 381], "mapped", [382]], [[382, 382], "valid"], [[383, 383], "mapped", [115]], [[384, 384], "valid"], [[385, 385], "mapped", [595]], [[386, 386], "mapped", [387]], [[387, 387], "valid"], [[388, 388], "mapped", [389]], [[389, 389], "valid"], [[390, 390], "mapped", [596]], [[391, 391], "mapped", [392]], [[392, 392], "valid"], [[393, 393], "mapped", [598]], [[394, 394], "mapped", [599]], [[395, 395], "mapped", [396]], [[396, 397], "valid"], [[398, 398], "mapped", [477]], [[399, 399], "mapped", [601]], [[400, 400], "mapped", [603]], [[401, 401], "mapped", [402]], [[402, 402], "valid"], [[403, 403], "mapped", [608]], [[404, 404], "mapped", [611]], [[405, 405], "valid"], [[406, 406], "mapped", [617]], [[407, 407], "mapped", [616]], [[408, 408], "mapped", [409]], [[409, 411], "valid"], [[412, 412], "mapped", [623]], [[413, 413], "mapped", [626]], [[414, 414], "valid"], [[415, 415], "mapped", [629]], [[416, 416], "mapped", [417]], [[417, 417], "valid"], [[418, 418], "mapped", [419]], [[419, 419], "valid"], [[420, 420], "mapped", [421]], [[421, 421], "valid"], [[422, 422], "mapped", [640]], [[423, 423], "mapped", [424]], [[424, 424], "valid"], [[425, 425], "mapped", [643]], [[426, 427], "valid"], [[428, 428], "mapped", [429]], [[429, 429], "valid"], [[430, 430], "mapped", [648]], [[431, 431], "mapped", [432]], [[432, 432], "valid"], [[433, 433], "mapped", [650]], [[434, 434], "mapped", [651]], [[435, 435], "mapped", [436]], [[436, 436], "valid"], [[437, 437], "mapped", [438]], [[438, 438], "valid"], [[439, 439], "mapped", [658]], [[440, 440], "mapped", [441]], [[441, 443], "valid"], [[444, 444], "mapped", [445]], [[445, 451], "valid"], [[452, 454], "mapped", [100, 382]], [[455, 457], "mapped", [108, 106]], [[458, 460], "mapped", [110, 106]], [[461, 461], "mapped", [462]], [[462, 462], "valid"], [[463, 463], "mapped", [464]], [[464, 464], "valid"], [[465, 465], "mapped", [466]], [[466, 466], "valid"], [[467, 467], "mapped", [468]], [[468, 468], "valid"], [[469, 469], "mapped", [470]], [[470, 470], "valid"], [[471, 471], "mapped", [472]], [[472, 472], "valid"], [[473, 473], "mapped", [474]], [[474, 474], "valid"], [[475, 475], "mapped", [476]], [[476, 477], "valid"], [[478, 478], "mapped", [479]], [[479, 479], "valid"], [[480, 480], "mapped", [481]], [[481, 481], "valid"], [[482, 482], "mapped", [483]], [[483, 483], "valid"], [[484, 484], "mapped", [485]], [[485, 485], "valid"], [[486, 486], "mapped", [487]], [[487, 487], "valid"], [[488, 488], "mapped", [489]], [[489, 489], "valid"], [[490, 490], "mapped", [491]], [[491, 491], "valid"], [[492, 492], "mapped", [493]], [[493, 493], "valid"], [[494, 494], "mapped", [495]], [[495, 496], "valid"], [[497, 499], "mapped", [100, 122]], [[500, 500], "mapped", [501]], [[501, 501], "valid"], [[502, 502], "mapped", [405]], [[503, 503], "mapped", [447]], [[504, 504], "mapped", [505]], [[505, 505], "valid"], [[506, 506], "mapped", [507]], [[507, 507], "valid"], [[508, 508], "mapped", [509]], [[509, 509], "valid"], [[510, 510], "mapped", [511]], [[511, 511], "valid"], [[512, 512], "mapped", [513]], [[513, 513], "valid"], [[514, 514], "mapped", [515]], [[515, 515], "valid"], [[516, 516], "mapped", [517]], [[517, 517], "valid"], [[518, 518], "mapped", [519]], [[519, 519], "valid"], [[520, 520], "mapped", [521]], [[521, 521], "valid"], [[522, 522], "mapped", [523]], [[523, 523], "valid"], [[524, 524], "mapped", [525]], [[525, 525], "valid"], [[526, 526], "mapped", [527]], [[527, 527], "valid"], [[528, 528], "mapped", [529]], [[529, 529], "valid"], [[530, 530], "mapped", [531]], [[531, 531], "valid"], [[532, 532], "mapped", [533]], [[533, 533], "valid"], [[534, 534], "mapped", [535]], [[535, 535], "valid"], [[536, 536], "mapped", [537]], [[537, 537], "valid"], [[538, 538], "mapped", [539]], [[539, 539], "valid"], [[540, 540], "mapped", [541]], [[541, 541], "valid"], [[542, 542], "mapped", [543]], [[543, 543], "valid"], [[544, 544], "mapped", [414]], [[545, 545], "valid"], [[546, 546], "mapped", [547]], [[547, 547], "valid"], [[548, 548], "mapped", [549]], [[549, 549], "valid"], [[550, 550], "mapped", [551]], [[551, 551], "valid"], [[552, 552], "mapped", [553]], [[553, 553], "valid"], [[554, 554], "mapped", [555]], [[555, 555], "valid"], [[556, 556], "mapped", [557]], [[557, 557], "valid"], [[558, 558], "mapped", [559]], [[559, 559], "valid"], [[560, 560], "mapped", [561]], [[561, 561], "valid"], [[562, 562], "mapped", [563]], [[563, 563], "valid"], [[564, 566], "valid"], [[567, 569], "valid"], [[570, 570], "mapped", [11365]], [[571, 571], "mapped", [572]], [[572, 572], "valid"], [[573, 573], "mapped", [410]], [[574, 574], "mapped", [11366]], [[575, 576], "valid"], [[577, 577], "mapped", [578]], [[578, 578], "valid"], [[579, 579], "mapped", [384]], [[580, 580], "mapped", [649]], [[581, 581], "mapped", [652]], [[582, 582], "mapped", [583]], [[583, 583], "valid"], [[584, 584], "mapped", [585]], [[585, 585], "valid"], [[586, 586], "mapped", [587]], [[587, 587], "valid"], [[588, 588], "mapped", [589]], [[589, 589], "valid"], [[590, 590], "mapped", [591]], [[591, 591], "valid"], [[592, 680], "valid"], [[681, 685], "valid"], [[686, 687], "valid"], [[688, 688], "mapped", [104]], [[689, 689], "mapped", [614]], [[690, 690], "mapped", [106]], [[691, 691], "mapped", [114]], [[692, 692], "mapped", [633]], [[693, 693], "mapped", [635]], [[694, 694], "mapped", [641]], [[695, 695], "mapped", [119]], [[696, 696], "mapped", [121]], [[697, 705], "valid"], [[706, 709], "valid", [], "NV8"], [[710, 721], "valid"], [[722, 727], "valid", [], "NV8"], [[728, 728], "disallowed_STD3_mapped", [32, 774]], [[729, 729], "disallowed_STD3_mapped", [32, 775]], [[730, 730], "disallowed_STD3_mapped", [32, 778]], [[731, 731], "disallowed_STD3_mapped", [32, 808]], [[732, 732], "disallowed_STD3_mapped", [32, 771]], [[733, 733], "disallowed_STD3_mapped", [32, 779]], [[734, 734], "valid", [], "NV8"], [[735, 735], "valid", [], "NV8"], [[736, 736], "mapped", [611]], [[737, 737], "mapped", [108]], [[738, 738], "mapped", [115]], [[739, 739], "mapped", [120]], [[740, 740], "mapped", [661]], [[741, 745], "valid", [], "NV8"], [[746, 747], "valid", [], "NV8"], [[748, 748], "valid"], [[749, 749], "valid", [], "NV8"], [[750, 750], "valid"], [[751, 767], "valid", [], "NV8"], [[768, 831], "valid"], [[832, 832], "mapped", [768]], [[833, 833], "mapped", [769]], [[834, 834], "valid"], [[835, 835], "mapped", [787]], [[836, 836], "mapped", [776, 769]], [[837, 837], "mapped", [953]], [[838, 846], "valid"], [[847, 847], "ignored"], [[848, 855], "valid"], [[856, 860], "valid"], [[861, 863], "valid"], [[864, 865], "valid"], [[866, 866], "valid"], [[867, 879], "valid"], [[880, 880], "mapped", [881]], [[881, 881], "valid"], [[882, 882], "mapped", [883]], [[883, 883], "valid"], [[884, 884], "mapped", [697]], [[885, 885], "valid"], [[886, 886], "mapped", [887]], [[887, 887], "valid"], [[888, 889], "disallowed"], [[890, 890], "disallowed_STD3_mapped", [32, 953]], [[891, 893], "valid"], [[894, 894], "disallowed_STD3_mapped", [59]], [[895, 895], "mapped", [1011]], [[896, 899], "disallowed"], [[900, 900], "disallowed_STD3_mapped", [32, 769]], [[901, 901], "disallowed_STD3_mapped", [32, 776, 769]], [[902, 902], "mapped", [940]], [[903, 903], "mapped", [183]], [[904, 904], "mapped", [941]], [[905, 905], "mapped", [942]], [[906, 906], "mapped", [943]], [[907, 907], "disallowed"], [[908, 908], "mapped", [972]], [[909, 909], "disallowed"], [[910, 910], "mapped", [973]], [[911, 911], "mapped", [974]], [[912, 912], "valid"], [[913, 913], "mapped", [945]], [[914, 914], "mapped", [946]], [[915, 915], "mapped", [947]], [[916, 916], "mapped", [948]], [[917, 917], "mapped", [949]], [[918, 918], "mapped", [950]], [[919, 919], "mapped", [951]], [[920, 920], "mapped", [952]], [[921, 921], "mapped", [953]], [[922, 922], "mapped", [954]], [[923, 923], "mapped", [955]], [[924, 924], "mapped", [956]], [[925, 925], "mapped", [957]], [[926, 926], "mapped", [958]], [[927, 927], "mapped", [959]], [[928, 928], "mapped", [960]], [[929, 929], "mapped", [961]], [[930, 930], "disallowed"], [[931, 931], "mapped", [963]], [[932, 932], "mapped", [964]], [[933, 933], "mapped", [965]], [[934, 934], "mapped", [966]], [[935, 935], "mapped", [967]], [[936, 936], "mapped", [968]], [[937, 937], "mapped", [969]], [[938, 938], "mapped", [970]], [[939, 939], "mapped", [971]], [[940, 961], "valid"], [[962, 962], "deviation", [963]], [[963, 974], "valid"], [[975, 975], "mapped", [983]], [[976, 976], "mapped", [946]], [[977, 977], "mapped", [952]], [[978, 978], "mapped", [965]], [[979, 979], "mapped", [973]], [[980, 980], "mapped", [971]], [[981, 981], "mapped", [966]], [[982, 982], "mapped", [960]], [[983, 983], "valid"], [[984, 984], "mapped", [985]], [[985, 985], "valid"], [[986, 986], "mapped", [987]], [[987, 987], "valid"], [[988, 988], "mapped", [989]], [[989, 989], "valid"], [[990, 990], "mapped", [991]], [[991, 991], "valid"], [[992, 992], "mapped", [993]], [[993, 993], "valid"], [[994, 994], "mapped", [995]], [[995, 995], "valid"], [[996, 996], "mapped", [997]], [[997, 997], "valid"], [[998, 998], "mapped", [999]], [[999, 999], "valid"], [[1e3, 1e3], "mapped", [1001]], [[1001, 1001], "valid"], [[1002, 1002], "mapped", [1003]], [[1003, 1003], "valid"], [[1004, 1004], "mapped", [1005]], [[1005, 1005], "valid"], [[1006, 1006], "mapped", [1007]], [[1007, 1007], "valid"], [[1008, 1008], "mapped", [954]], [[1009, 1009], "mapped", [961]], [[1010, 1010], "mapped", [963]], [[1011, 1011], "valid"], [[1012, 1012], "mapped", [952]], [[1013, 1013], "mapped", [949]], [[1014, 1014], "valid", [], "NV8"], [[1015, 1015], "mapped", [1016]], [[1016, 1016], "valid"], [[1017, 1017], "mapped", [963]], [[1018, 1018], "mapped", [1019]], [[1019, 1019], "valid"], [[1020, 1020], "valid"], [[1021, 1021], "mapped", [891]], [[1022, 1022], "mapped", [892]], [[1023, 1023], "mapped", [893]], [[1024, 1024], "mapped", [1104]], [[1025, 1025], "mapped", [1105]], [[1026, 1026], "mapped", [1106]], [[1027, 1027], "mapped", [1107]], [[1028, 1028], "mapped", [1108]], [[1029, 1029], "mapped", [1109]], [[1030, 1030], "mapped", [1110]], [[1031, 1031], "mapped", [1111]], [[1032, 1032], "mapped", [1112]], [[1033, 1033], "mapped", [1113]], [[1034, 1034], "mapped", [1114]], [[1035, 1035], "mapped", [1115]], [[1036, 1036], "mapped", [1116]], [[1037, 1037], "mapped", [1117]], [[1038, 1038], "mapped", [1118]], [[1039, 1039], "mapped", [1119]], [[1040, 1040], "mapped", [1072]], [[1041, 1041], "mapped", [1073]], [[1042, 1042], "mapped", [1074]], [[1043, 1043], "mapped", [1075]], [[1044, 1044], "mapped", [1076]], [[1045, 1045], "mapped", [1077]], [[1046, 1046], "mapped", [1078]], [[1047, 1047], "mapped", [1079]], [[1048, 1048], "mapped", [1080]], [[1049, 1049], "mapped", [1081]], [[1050, 1050], "mapped", [1082]], [[1051, 1051], "mapped", [1083]], [[1052, 1052], "mapped", [1084]], [[1053, 1053], "mapped", [1085]], [[1054, 1054], "mapped", [1086]], [[1055, 1055], "mapped", [1087]], [[1056, 1056], "mapped", [1088]], [[1057, 1057], "mapped", [1089]], [[1058, 1058], "mapped", [1090]], [[1059, 1059], "mapped", [1091]], [[1060, 1060], "mapped", [1092]], [[1061, 1061], "mapped", [1093]], [[1062, 1062], "mapped", [1094]], [[1063, 1063], "mapped", [1095]], [[1064, 1064], "mapped", [1096]], [[1065, 1065], "mapped", [1097]], [[1066, 1066], "mapped", [1098]], [[1067, 1067], "mapped", [1099]], [[1068, 1068], "mapped", [1100]], [[1069, 1069], "mapped", [1101]], [[1070, 1070], "mapped", [1102]], [[1071, 1071], "mapped", [1103]], [[1072, 1103], "valid"], [[1104, 1104], "valid"], [[1105, 1116], "valid"], [[1117, 1117], "valid"], [[1118, 1119], "valid"], [[1120, 1120], "mapped", [1121]], [[1121, 1121], "valid"], [[1122, 1122], "mapped", [1123]], [[1123, 1123], "valid"], [[1124, 1124], "mapped", [1125]], [[1125, 1125], "valid"], [[1126, 1126], "mapped", [1127]], [[1127, 1127], "valid"], [[1128, 1128], "mapped", [1129]], [[1129, 1129], "valid"], [[1130, 1130], "mapped", [1131]], [[1131, 1131], "valid"], [[1132, 1132], "mapped", [1133]], [[1133, 1133], "valid"], [[1134, 1134], "mapped", [1135]], [[1135, 1135], "valid"], [[1136, 1136], "mapped", [1137]], [[1137, 1137], "valid"], [[1138, 1138], "mapped", [1139]], [[1139, 1139], "valid"], [[1140, 1140], "mapped", [1141]], [[1141, 1141], "valid"], [[1142, 1142], "mapped", [1143]], [[1143, 1143], "valid"], [[1144, 1144], "mapped", [1145]], [[1145, 1145], "valid"], [[1146, 1146], "mapped", [1147]], [[1147, 1147], "valid"], [[1148, 1148], "mapped", [1149]], [[1149, 1149], "valid"], [[1150, 1150], "mapped", [1151]], [[1151, 1151], "valid"], [[1152, 1152], "mapped", [1153]], [[1153, 1153], "valid"], [[1154, 1154], "valid", [], "NV8"], [[1155, 1158], "valid"], [[1159, 1159], "valid"], [[1160, 1161], "valid", [], "NV8"], [[1162, 1162], "mapped", [1163]], [[1163, 1163], "valid"], [[1164, 1164], "mapped", [1165]], [[1165, 1165], "valid"], [[1166, 1166], "mapped", [1167]], [[1167, 1167], "valid"], [[1168, 1168], "mapped", [1169]], [[1169, 1169], "valid"], [[1170, 1170], "mapped", [1171]], [[1171, 1171], "valid"], [[1172, 1172], "mapped", [1173]], [[1173, 1173], "valid"], [[1174, 1174], "mapped", [1175]], [[1175, 1175], "valid"], [[1176, 1176], "mapped", [1177]], [[1177, 1177], "valid"], [[1178, 1178], "mapped", [1179]], [[1179, 1179], "valid"], [[1180, 1180], "mapped", [1181]], [[1181, 1181], "valid"], [[1182, 1182], "mapped", [1183]], [[1183, 1183], "valid"], [[1184, 1184], "mapped", [1185]], [[1185, 1185], "valid"], [[1186, 1186], "mapped", [1187]], [[1187, 1187], "valid"], [[1188, 1188], "mapped", [1189]], [[1189, 1189], "valid"], [[1190, 1190], "mapped", [1191]], [[1191, 1191], "valid"], [[1192, 1192], "mapped", [1193]], [[1193, 1193], "valid"], [[1194, 1194], "mapped", [1195]], [[1195, 1195], "valid"], [[1196, 1196], "mapped", [1197]], [[1197, 1197], "valid"], [[1198, 1198], "mapped", [1199]], [[1199, 1199], "valid"], [[1200, 1200], "mapped", [1201]], [[1201, 1201], "valid"], [[1202, 1202], "mapped", [1203]], [[1203, 1203], "valid"], [[1204, 1204], "mapped", [1205]], [[1205, 1205], "valid"], [[1206, 1206], "mapped", [1207]], [[1207, 1207], "valid"], [[1208, 1208], "mapped", [1209]], [[1209, 1209], "valid"], [[1210, 1210], "mapped", [1211]], [[1211, 1211], "valid"], [[1212, 1212], "mapped", [1213]], [[1213, 1213], "valid"], [[1214, 1214], "mapped", [1215]], [[1215, 1215], "valid"], [[1216, 1216], "disallowed"], [[1217, 1217], "mapped", [1218]], [[1218, 1218], "valid"], [[1219, 1219], "mapped", [1220]], [[1220, 1220], "valid"], [[1221, 1221], "mapped", [1222]], [[1222, 1222], "valid"], [[1223, 1223], "mapped", [1224]], [[1224, 1224], "valid"], [[1225, 1225], "mapped", [1226]], [[1226, 1226], "valid"], [[1227, 1227], "mapped", [1228]], [[1228, 1228], "valid"], [[1229, 1229], "mapped", [1230]], [[1230, 1230], "valid"], [[1231, 1231], "valid"], [[1232, 1232], "mapped", [1233]], [[1233, 1233], "valid"], [[1234, 1234], "mapped", [1235]], [[1235, 1235], "valid"], [[1236, 1236], "mapped", [1237]], [[1237, 1237], "valid"], [[1238, 1238], "mapped", [1239]], [[1239, 1239], "valid"], [[1240, 1240], "mapped", [1241]], [[1241, 1241], "valid"], [[1242, 1242], "mapped", [1243]], [[1243, 1243], "valid"], [[1244, 1244], "mapped", [1245]], [[1245, 1245], "valid"], [[1246, 1246], "mapped", [1247]], [[1247, 1247], "valid"], [[1248, 1248], "mapped", [1249]], [[1249, 1249], "valid"], [[1250, 1250], "mapped", [1251]], [[1251, 1251], "valid"], [[1252, 1252], "mapped", [1253]], [[1253, 1253], "valid"], [[1254, 1254], "mapped", [1255]], [[1255, 1255], "valid"], [[1256, 1256], "mapped", [1257]], [[1257, 1257], "valid"], [[1258, 1258], "mapped", [1259]], [[1259, 1259], "valid"], [[1260, 1260], "mapped", [1261]], [[1261, 1261], "valid"], [[1262, 1262], "mapped", [1263]], [[1263, 1263], "valid"], [[1264, 1264], "mapped", [1265]], [[1265, 1265], "valid"], [[1266, 1266], "mapped", [1267]], [[1267, 1267], "valid"], [[1268, 1268], "mapped", [1269]], [[1269, 1269], "valid"], [[1270, 1270], "mapped", [1271]], [[1271, 1271], "valid"], [[1272, 1272], "mapped", [1273]], [[1273, 1273], "valid"], [[1274, 1274], "mapped", [1275]], [[1275, 1275], "valid"], [[1276, 1276], "mapped", [1277]], [[1277, 1277], "valid"], [[1278, 1278], "mapped", [1279]], [[1279, 1279], "valid"], [[1280, 1280], "mapped", [1281]], [[1281, 1281], "valid"], [[1282, 1282], "mapped", [1283]], [[1283, 1283], "valid"], [[1284, 1284], "mapped", [1285]], [[1285, 1285], "valid"], [[1286, 1286], "mapped", [1287]], [[1287, 1287], "valid"], [[1288, 1288], "mapped", [1289]], [[1289, 1289], "valid"], [[1290, 1290], "mapped", [1291]], [[1291, 1291], "valid"], [[1292, 1292], "mapped", [1293]], [[1293, 1293], "valid"], [[1294, 1294], "mapped", [1295]], [[1295, 1295], "valid"], [[1296, 1296], "mapped", [1297]], [[1297, 1297], "valid"], [[1298, 1298], "mapped", [1299]], [[1299, 1299], "valid"], [[1300, 1300], "mapped", [1301]], [[1301, 1301], "valid"], [[1302, 1302], "mapped", [1303]], [[1303, 1303], "valid"], [[1304, 1304], "mapped", [1305]], [[1305, 1305], "valid"], [[1306, 1306], "mapped", [1307]], [[1307, 1307], "valid"], [[1308, 1308], "mapped", [1309]], [[1309, 1309], "valid"], [[1310, 1310], "mapped", [1311]], [[1311, 1311], "valid"], [[1312, 1312], "mapped", [1313]], [[1313, 1313], "valid"], [[1314, 1314], "mapped", [1315]], [[1315, 1315], "valid"], [[1316, 1316], "mapped", [1317]], [[1317, 1317], "valid"], [[1318, 1318], "mapped", [1319]], [[1319, 1319], "valid"], [[1320, 1320], "mapped", [1321]], [[1321, 1321], "valid"], [[1322, 1322], "mapped", [1323]], [[1323, 1323], "valid"], [[1324, 1324], "mapped", [1325]], [[1325, 1325], "valid"], [[1326, 1326], "mapped", [1327]], [[1327, 1327], "valid"], [[1328, 1328], "disallowed"], [[1329, 1329], "mapped", [1377]], [[1330, 1330], "mapped", [1378]], [[1331, 1331], "mapped", [1379]], [[1332, 1332], "mapped", [1380]], [[1333, 1333], "mapped", [1381]], [[1334, 1334], "mapped", [1382]], [[1335, 1335], "mapped", [1383]], [[1336, 1336], "mapped", [1384]], [[1337, 1337], "mapped", [1385]], [[1338, 1338], "mapped", [1386]], [[1339, 1339], "mapped", [1387]], [[1340, 1340], "mapped", [1388]], [[1341, 1341], "mapped", [1389]], [[1342, 1342], "mapped", [1390]], [[1343, 1343], "mapped", [1391]], [[1344, 1344], "mapped", [1392]], [[1345, 1345], "mapped", [1393]], [[1346, 1346], "mapped", [1394]], [[1347, 1347], "mapped", [1395]], [[1348, 1348], "mapped", [1396]], [[1349, 1349], "mapped", [1397]], [[1350, 1350], "mapped", [1398]], [[1351, 1351], "mapped", [1399]], [[1352, 1352], "mapped", [1400]], [[1353, 1353], "mapped", [1401]], [[1354, 1354], "mapped", [1402]], [[1355, 1355], "mapped", [1403]], [[1356, 1356], "mapped", [1404]], [[1357, 1357], "mapped", [1405]], [[1358, 1358], "mapped", [1406]], [[1359, 1359], "mapped", [1407]], [[1360, 1360], "mapped", [1408]], [[1361, 1361], "mapped", [1409]], [[1362, 1362], "mapped", [1410]], [[1363, 1363], "mapped", [1411]], [[1364, 1364], "mapped", [1412]], [[1365, 1365], "mapped", [1413]], [[1366, 1366], "mapped", [1414]], [[1367, 1368], "disallowed"], [[1369, 1369], "valid"], [[1370, 1375], "valid", [], "NV8"], [[1376, 1376], "disallowed"], [[1377, 1414], "valid"], [[1415, 1415], "mapped", [1381, 1410]], [[1416, 1416], "disallowed"], [[1417, 1417], "valid", [], "NV8"], [[1418, 1418], "valid", [], "NV8"], [[1419, 1420], "disallowed"], [[1421, 1422], "valid", [], "NV8"], [[1423, 1423], "valid", [], "NV8"], [[1424, 1424], "disallowed"], [[1425, 1441], "valid"], [[1442, 1442], "valid"], [[1443, 1455], "valid"], [[1456, 1465], "valid"], [[1466, 1466], "valid"], [[1467, 1469], "valid"], [[1470, 1470], "valid", [], "NV8"], [[1471, 1471], "valid"], [[1472, 1472], "valid", [], "NV8"], [[1473, 1474], "valid"], [[1475, 1475], "valid", [], "NV8"], [[1476, 1476], "valid"], [[1477, 1477], "valid"], [[1478, 1478], "valid", [], "NV8"], [[1479, 1479], "valid"], [[1480, 1487], "disallowed"], [[1488, 1514], "valid"], [[1515, 1519], "disallowed"], [[1520, 1524], "valid"], [[1525, 1535], "disallowed"], [[1536, 1539], "disallowed"], [[1540, 1540], "disallowed"], [[1541, 1541], "disallowed"], [[1542, 1546], "valid", [], "NV8"], [[1547, 1547], "valid", [], "NV8"], [[1548, 1548], "valid", [], "NV8"], [[1549, 1551], "valid", [], "NV8"], [[1552, 1557], "valid"], [[1558, 1562], "valid"], [[1563, 1563], "valid", [], "NV8"], [[1564, 1564], "disallowed"], [[1565, 1565], "disallowed"], [[1566, 1566], "valid", [], "NV8"], [[1567, 1567], "valid", [], "NV8"], [[1568, 1568], "valid"], [[1569, 1594], "valid"], [[1595, 1599], "valid"], [[1600, 1600], "valid", [], "NV8"], [[1601, 1618], "valid"], [[1619, 1621], "valid"], [[1622, 1624], "valid"], [[1625, 1630], "valid"], [[1631, 1631], "valid"], [[1632, 1641], "valid"], [[1642, 1645], "valid", [], "NV8"], [[1646, 1647], "valid"], [[1648, 1652], "valid"], [[1653, 1653], "mapped", [1575, 1652]], [[1654, 1654], "mapped", [1608, 1652]], [[1655, 1655], "mapped", [1735, 1652]], [[1656, 1656], "mapped", [1610, 1652]], [[1657, 1719], "valid"], [[1720, 1721], "valid"], [[1722, 1726], "valid"], [[1727, 1727], "valid"], [[1728, 1742], "valid"], [[1743, 1743], "valid"], [[1744, 1747], "valid"], [[1748, 1748], "valid", [], "NV8"], [[1749, 1756], "valid"], [[1757, 1757], "disallowed"], [[1758, 1758], "valid", [], "NV8"], [[1759, 1768], "valid"], [[1769, 1769], "valid", [], "NV8"], [[1770, 1773], "valid"], [[1774, 1775], "valid"], [[1776, 1785], "valid"], [[1786, 1790], "valid"], [[1791, 1791], "valid"], [[1792, 1805], "valid", [], "NV8"], [[1806, 1806], "disallowed"], [[1807, 1807], "disallowed"], [[1808, 1836], "valid"], [[1837, 1839], "valid"], [[1840, 1866], "valid"], [[1867, 1868], "disallowed"], [[1869, 1871], "valid"], [[1872, 1901], "valid"], [[1902, 1919], "valid"], [[1920, 1968], "valid"], [[1969, 1969], "valid"], [[1970, 1983], "disallowed"], [[1984, 2037], "valid"], [[2038, 2042], "valid", [], "NV8"], [[2043, 2047], "disallowed"], [[2048, 2093], "valid"], [[2094, 2095], "disallowed"], [[2096, 2110], "valid", [], "NV8"], [[2111, 2111], "disallowed"], [[2112, 2139], "valid"], [[2140, 2141], "disallowed"], [[2142, 2142], "valid", [], "NV8"], [[2143, 2207], "disallowed"], [[2208, 2208], "valid"], [[2209, 2209], "valid"], [[2210, 2220], "valid"], [[2221, 2226], "valid"], [[2227, 2228], "valid"], [[2229, 2274], "disallowed"], [[2275, 2275], "valid"], [[2276, 2302], "valid"], [[2303, 2303], "valid"], [[2304, 2304], "valid"], [[2305, 2307], "valid"], [[2308, 2308], "valid"], [[2309, 2361], "valid"], [[2362, 2363], "valid"], [[2364, 2381], "valid"], [[2382, 2382], "valid"], [[2383, 2383], "valid"], [[2384, 2388], "valid"], [[2389, 2389], "valid"], [[2390, 2391], "valid"], [[2392, 2392], "mapped", [2325, 2364]], [[2393, 2393], "mapped", [2326, 2364]], [[2394, 2394], "mapped", [2327, 2364]], [[2395, 2395], "mapped", [2332, 2364]], [[2396, 2396], "mapped", [2337, 2364]], [[2397, 2397], "mapped", [2338, 2364]], [[2398, 2398], "mapped", [2347, 2364]], [[2399, 2399], "mapped", [2351, 2364]], [[2400, 2403], "valid"], [[2404, 2405], "valid", [], "NV8"], [[2406, 2415], "valid"], [[2416, 2416], "valid", [], "NV8"], [[2417, 2418], "valid"], [[2419, 2423], "valid"], [[2424, 2424], "valid"], [[2425, 2426], "valid"], [[2427, 2428], "valid"], [[2429, 2429], "valid"], [[2430, 2431], "valid"], [[2432, 2432], "valid"], [[2433, 2435], "valid"], [[2436, 2436], "disallowed"], [[2437, 2444], "valid"], [[2445, 2446], "disallowed"], [[2447, 2448], "valid"], [[2449, 2450], "disallowed"], [[2451, 2472], "valid"], [[2473, 2473], "disallowed"], [[2474, 2480], "valid"], [[2481, 2481], "disallowed"], [[2482, 2482], "valid"], [[2483, 2485], "disallowed"], [[2486, 2489], "valid"], [[2490, 2491], "disallowed"], [[2492, 2492], "valid"], [[2493, 2493], "valid"], [[2494, 2500], "valid"], [[2501, 2502], "disallowed"], [[2503, 2504], "valid"], [[2505, 2506], "disallowed"], [[2507, 2509], "valid"], [[2510, 2510], "valid"], [[2511, 2518], "disallowed"], [[2519, 2519], "valid"], [[2520, 2523], "disallowed"], [[2524, 2524], "mapped", [2465, 2492]], [[2525, 2525], "mapped", [2466, 2492]], [[2526, 2526], "disallowed"], [[2527, 2527], "mapped", [2479, 2492]], [[2528, 2531], "valid"], [[2532, 2533], "disallowed"], [[2534, 2545], "valid"], [[2546, 2554], "valid", [], "NV8"], [[2555, 2555], "valid", [], "NV8"], [[2556, 2560], "disallowed"], [[2561, 2561], "valid"], [[2562, 2562], "valid"], [[2563, 2563], "valid"], [[2564, 2564], "disallowed"], [[2565, 2570], "valid"], [[2571, 2574], "disallowed"], [[2575, 2576], "valid"], [[2577, 2578], "disallowed"], [[2579, 2600], "valid"], [[2601, 2601], "disallowed"], [[2602, 2608], "valid"], [[2609, 2609], "disallowed"], [[2610, 2610], "valid"], [[2611, 2611], "mapped", [2610, 2620]], [[2612, 2612], "disallowed"], [[2613, 2613], "valid"], [[2614, 2614], "mapped", [2616, 2620]], [[2615, 2615], "disallowed"], [[2616, 2617], "valid"], [[2618, 2619], "disallowed"], [[2620, 2620], "valid"], [[2621, 2621], "disallowed"], [[2622, 2626], "valid"], [[2627, 2630], "disallowed"], [[2631, 2632], "valid"], [[2633, 2634], "disallowed"], [[2635, 2637], "valid"], [[2638, 2640], "disallowed"], [[2641, 2641], "valid"], [[2642, 2648], "disallowed"], [[2649, 2649], "mapped", [2582, 2620]], [[2650, 2650], "mapped", [2583, 2620]], [[2651, 2651], "mapped", [2588, 2620]], [[2652, 2652], "valid"], [[2653, 2653], "disallowed"], [[2654, 2654], "mapped", [2603, 2620]], [[2655, 2661], "disallowed"], [[2662, 2676], "valid"], [[2677, 2677], "valid"], [[2678, 2688], "disallowed"], [[2689, 2691], "valid"], [[2692, 2692], "disallowed"], [[2693, 2699], "valid"], [[2700, 2700], "valid"], [[2701, 2701], "valid"], [[2702, 2702], "disallowed"], [[2703, 2705], "valid"], [[2706, 2706], "disallowed"], [[2707, 2728], "valid"], [[2729, 2729], "disallowed"], [[2730, 2736], "valid"], [[2737, 2737], "disallowed"], [[2738, 2739], "valid"], [[2740, 2740], "disallowed"], [[2741, 2745], "valid"], [[2746, 2747], "disallowed"], [[2748, 2757], "valid"], [[2758, 2758], "disallowed"], [[2759, 2761], "valid"], [[2762, 2762], "disallowed"], [[2763, 2765], "valid"], [[2766, 2767], "disallowed"], [[2768, 2768], "valid"], [[2769, 2783], "disallowed"], [[2784, 2784], "valid"], [[2785, 2787], "valid"], [[2788, 2789], "disallowed"], [[2790, 2799], "valid"], [[2800, 2800], "valid", [], "NV8"], [[2801, 2801], "valid", [], "NV8"], [[2802, 2808], "disallowed"], [[2809, 2809], "valid"], [[2810, 2816], "disallowed"], [[2817, 2819], "valid"], [[2820, 2820], "disallowed"], [[2821, 2828], "valid"], [[2829, 2830], "disallowed"], [[2831, 2832], "valid"], [[2833, 2834], "disallowed"], [[2835, 2856], "valid"], [[2857, 2857], "disallowed"], [[2858, 2864], "valid"], [[2865, 2865], "disallowed"], [[2866, 2867], "valid"], [[2868, 2868], "disallowed"], [[2869, 2869], "valid"], [[2870, 2873], "valid"], [[2874, 2875], "disallowed"], [[2876, 2883], "valid"], [[2884, 2884], "valid"], [[2885, 2886], "disallowed"], [[2887, 2888], "valid"], [[2889, 2890], "disallowed"], [[2891, 2893], "valid"], [[2894, 2901], "disallowed"], [[2902, 2903], "valid"], [[2904, 2907], "disallowed"], [[2908, 2908], "mapped", [2849, 2876]], [[2909, 2909], "mapped", [2850, 2876]], [[2910, 2910], "disallowed"], [[2911, 2913], "valid"], [[2914, 2915], "valid"], [[2916, 2917], "disallowed"], [[2918, 2927], "valid"], [[2928, 2928], "valid", [], "NV8"], [[2929, 2929], "valid"], [[2930, 2935], "valid", [], "NV8"], [[2936, 2945], "disallowed"], [[2946, 2947], "valid"], [[2948, 2948], "disallowed"], [[2949, 2954], "valid"], [[2955, 2957], "disallowed"], [[2958, 2960], "valid"], [[2961, 2961], "disallowed"], [[2962, 2965], "valid"], [[2966, 2968], "disallowed"], [[2969, 2970], "valid"], [[2971, 2971], "disallowed"], [[2972, 2972], "valid"], [[2973, 2973], "disallowed"], [[2974, 2975], "valid"], [[2976, 2978], "disallowed"], [[2979, 2980], "valid"], [[2981, 2983], "disallowed"], [[2984, 2986], "valid"], [[2987, 2989], "disallowed"], [[2990, 2997], "valid"], [[2998, 2998], "valid"], [[2999, 3001], "valid"], [[3002, 3005], "disallowed"], [[3006, 3010], "valid"], [[3011, 3013], "disallowed"], [[3014, 3016], "valid"], [[3017, 3017], "disallowed"], [[3018, 3021], "valid"], [[3022, 3023], "disallowed"], [[3024, 3024], "valid"], [[3025, 3030], "disallowed"], [[3031, 3031], "valid"], [[3032, 3045], "disallowed"], [[3046, 3046], "valid"], [[3047, 3055], "valid"], [[3056, 3058], "valid", [], "NV8"], [[3059, 3066], "valid", [], "NV8"], [[3067, 3071], "disallowed"], [[3072, 3072], "valid"], [[3073, 3075], "valid"], [[3076, 3076], "disallowed"], [[3077, 3084], "valid"], [[3085, 3085], "disallowed"], [[3086, 3088], "valid"], [[3089, 3089], "disallowed"], [[3090, 3112], "valid"], [[3113, 3113], "disallowed"], [[3114, 3123], "valid"], [[3124, 3124], "valid"], [[3125, 3129], "valid"], [[3130, 3132], "disallowed"], [[3133, 3133], "valid"], [[3134, 3140], "valid"], [[3141, 3141], "disallowed"], [[3142, 3144], "valid"], [[3145, 3145], "disallowed"], [[3146, 3149], "valid"], [[3150, 3156], "disallowed"], [[3157, 3158], "valid"], [[3159, 3159], "disallowed"], [[3160, 3161], "valid"], [[3162, 3162], "valid"], [[3163, 3167], "disallowed"], [[3168, 3169], "valid"], [[3170, 3171], "valid"], [[3172, 3173], "disallowed"], [[3174, 3183], "valid"], [[3184, 3191], "disallowed"], [[3192, 3199], "valid", [], "NV8"], [[3200, 3200], "disallowed"], [[3201, 3201], "valid"], [[3202, 3203], "valid"], [[3204, 3204], "disallowed"], [[3205, 3212], "valid"], [[3213, 3213], "disallowed"], [[3214, 3216], "valid"], [[3217, 3217], "disallowed"], [[3218, 3240], "valid"], [[3241, 3241], "disallowed"], [[3242, 3251], "valid"], [[3252, 3252], "disallowed"], [[3253, 3257], "valid"], [[3258, 3259], "disallowed"], [[3260, 3261], "valid"], [[3262, 3268], "valid"], [[3269, 3269], "disallowed"], [[3270, 3272], "valid"], [[3273, 3273], "disallowed"], [[3274, 3277], "valid"], [[3278, 3284], "disallowed"], [[3285, 3286], "valid"], [[3287, 3293], "disallowed"], [[3294, 3294], "valid"], [[3295, 3295], "disallowed"], [[3296, 3297], "valid"], [[3298, 3299], "valid"], [[3300, 3301], "disallowed"], [[3302, 3311], "valid"], [[3312, 3312], "disallowed"], [[3313, 3314], "valid"], [[3315, 3328], "disallowed"], [[3329, 3329], "valid"], [[3330, 3331], "valid"], [[3332, 3332], "disallowed"], [[3333, 3340], "valid"], [[3341, 3341], "disallowed"], [[3342, 3344], "valid"], [[3345, 3345], "disallowed"], [[3346, 3368], "valid"], [[3369, 3369], "valid"], [[3370, 3385], "valid"], [[3386, 3386], "valid"], [[3387, 3388], "disallowed"], [[3389, 3389], "valid"], [[3390, 3395], "valid"], [[3396, 3396], "valid"], [[3397, 3397], "disallowed"], [[3398, 3400], "valid"], [[3401, 3401], "disallowed"], [[3402, 3405], "valid"], [[3406, 3406], "valid"], [[3407, 3414], "disallowed"], [[3415, 3415], "valid"], [[3416, 3422], "disallowed"], [[3423, 3423], "valid"], [[3424, 3425], "valid"], [[3426, 3427], "valid"], [[3428, 3429], "disallowed"], [[3430, 3439], "valid"], [[3440, 3445], "valid", [], "NV8"], [[3446, 3448], "disallowed"], [[3449, 3449], "valid", [], "NV8"], [[3450, 3455], "valid"], [[3456, 3457], "disallowed"], [[3458, 3459], "valid"], [[3460, 3460], "disallowed"], [[3461, 3478], "valid"], [[3479, 3481], "disallowed"], [[3482, 3505], "valid"], [[3506, 3506], "disallowed"], [[3507, 3515], "valid"], [[3516, 3516], "disallowed"], [[3517, 3517], "valid"], [[3518, 3519], "disallowed"], [[3520, 3526], "valid"], [[3527, 3529], "disallowed"], [[3530, 3530], "valid"], [[3531, 3534], "disallowed"], [[3535, 3540], "valid"], [[3541, 3541], "disallowed"], [[3542, 3542], "valid"], [[3543, 3543], "disallowed"], [[3544, 3551], "valid"], [[3552, 3557], "disallowed"], [[3558, 3567], "valid"], [[3568, 3569], "disallowed"], [[3570, 3571], "valid"], [[3572, 3572], "valid", [], "NV8"], [[3573, 3584], "disallowed"], [[3585, 3634], "valid"], [[3635, 3635], "mapped", [3661, 3634]], [[3636, 3642], "valid"], [[3643, 3646], "disallowed"], [[3647, 3647], "valid", [], "NV8"], [[3648, 3662], "valid"], [[3663, 3663], "valid", [], "NV8"], [[3664, 3673], "valid"], [[3674, 3675], "valid", [], "NV8"], [[3676, 3712], "disallowed"], [[3713, 3714], "valid"], [[3715, 3715], "disallowed"], [[3716, 3716], "valid"], [[3717, 3718], "disallowed"], [[3719, 3720], "valid"], [[3721, 3721], "disallowed"], [[3722, 3722], "valid"], [[3723, 3724], "disallowed"], [[3725, 3725], "valid"], [[3726, 3731], "disallowed"], [[3732, 3735], "valid"], [[3736, 3736], "disallowed"], [[3737, 3743], "valid"], [[3744, 3744], "disallowed"], [[3745, 3747], "valid"], [[3748, 3748], "disallowed"], [[3749, 3749], "valid"], [[3750, 3750], "disallowed"], [[3751, 3751], "valid"], [[3752, 3753], "disallowed"], [[3754, 3755], "valid"], [[3756, 3756], "disallowed"], [[3757, 3762], "valid"], [[3763, 3763], "mapped", [3789, 3762]], [[3764, 3769], "valid"], [[3770, 3770], "disallowed"], [[3771, 3773], "valid"], [[3774, 3775], "disallowed"], [[3776, 3780], "valid"], [[3781, 3781], "disallowed"], [[3782, 3782], "valid"], [[3783, 3783], "disallowed"], [[3784, 3789], "valid"], [[3790, 3791], "disallowed"], [[3792, 3801], "valid"], [[3802, 3803], "disallowed"], [[3804, 3804], "mapped", [3755, 3737]], [[3805, 3805], "mapped", [3755, 3745]], [[3806, 3807], "valid"], [[3808, 3839], "disallowed"], [[3840, 3840], "valid"], [[3841, 3850], "valid", [], "NV8"], [[3851, 3851], "valid"], [[3852, 3852], "mapped", [3851]], [[3853, 3863], "valid", [], "NV8"], [[3864, 3865], "valid"], [[3866, 3871], "valid", [], "NV8"], [[3872, 3881], "valid"], [[3882, 3892], "valid", [], "NV8"], [[3893, 3893], "valid"], [[3894, 3894], "valid", [], "NV8"], [[3895, 3895], "valid"], [[3896, 3896], "valid", [], "NV8"], [[3897, 3897], "valid"], [[3898, 3901], "valid", [], "NV8"], [[3902, 3906], "valid"], [[3907, 3907], "mapped", [3906, 4023]], [[3908, 3911], "valid"], [[3912, 3912], "disallowed"], [[3913, 3916], "valid"], [[3917, 3917], "mapped", [3916, 4023]], [[3918, 3921], "valid"], [[3922, 3922], "mapped", [3921, 4023]], [[3923, 3926], "valid"], [[3927, 3927], "mapped", [3926, 4023]], [[3928, 3931], "valid"], [[3932, 3932], "mapped", [3931, 4023]], [[3933, 3944], "valid"], [[3945, 3945], "mapped", [3904, 4021]], [[3946, 3946], "valid"], [[3947, 3948], "valid"], [[3949, 3952], "disallowed"], [[3953, 3954], "valid"], [[3955, 3955], "mapped", [3953, 3954]], [[3956, 3956], "valid"], [[3957, 3957], "mapped", [3953, 3956]], [[3958, 3958], "mapped", [4018, 3968]], [[3959, 3959], "mapped", [4018, 3953, 3968]], [[3960, 3960], "mapped", [4019, 3968]], [[3961, 3961], "mapped", [4019, 3953, 3968]], [[3962, 3968], "valid"], [[3969, 3969], "mapped", [3953, 3968]], [[3970, 3972], "valid"], [[3973, 3973], "valid", [], "NV8"], [[3974, 3979], "valid"], [[3980, 3983], "valid"], [[3984, 3986], "valid"], [[3987, 3987], "mapped", [3986, 4023]], [[3988, 3989], "valid"], [[3990, 3990], "valid"], [[3991, 3991], "valid"], [[3992, 3992], "disallowed"], [[3993, 3996], "valid"], [[3997, 3997], "mapped", [3996, 4023]], [[3998, 4001], "valid"], [[4002, 4002], "mapped", [4001, 4023]], [[4003, 4006], "valid"], [[4007, 4007], "mapped", [4006, 4023]], [[4008, 4011], "valid"], [[4012, 4012], "mapped", [4011, 4023]], [[4013, 4013], "valid"], [[4014, 4016], "valid"], [[4017, 4023], "valid"], [[4024, 4024], "valid"], [[4025, 4025], "mapped", [3984, 4021]], [[4026, 4028], "valid"], [[4029, 4029], "disallowed"], [[4030, 4037], "valid", [], "NV8"], [[4038, 4038], "valid"], [[4039, 4044], "valid", [], "NV8"], [[4045, 4045], "disallowed"], [[4046, 4046], "valid", [], "NV8"], [[4047, 4047], "valid", [], "NV8"], [[4048, 4049], "valid", [], "NV8"], [[4050, 4052], "valid", [], "NV8"], [[4053, 4056], "valid", [], "NV8"], [[4057, 4058], "valid", [], "NV8"], [[4059, 4095], "disallowed"], [[4096, 4129], "valid"], [[4130, 4130], "valid"], [[4131, 4135], "valid"], [[4136, 4136], "valid"], [[4137, 4138], "valid"], [[4139, 4139], "valid"], [[4140, 4146], "valid"], [[4147, 4149], "valid"], [[4150, 4153], "valid"], [[4154, 4159], "valid"], [[4160, 4169], "valid"], [[4170, 4175], "valid", [], "NV8"], [[4176, 4185], "valid"], [[4186, 4249], "valid"], [[4250, 4253], "valid"], [[4254, 4255], "valid", [], "NV8"], [[4256, 4293], "disallowed"], [[4294, 4294], "disallowed"], [[4295, 4295], "mapped", [11559]], [[4296, 4300], "disallowed"], [[4301, 4301], "mapped", [11565]], [[4302, 4303], "disallowed"], [[4304, 4342], "valid"], [[4343, 4344], "valid"], [[4345, 4346], "valid"], [[4347, 4347], "valid", [], "NV8"], [[4348, 4348], "mapped", [4316]], [[4349, 4351], "valid"], [[4352, 4441], "valid", [], "NV8"], [[4442, 4446], "valid", [], "NV8"], [[4447, 4448], "disallowed"], [[4449, 4514], "valid", [], "NV8"], [[4515, 4519], "valid", [], "NV8"], [[4520, 4601], "valid", [], "NV8"], [[4602, 4607], "valid", [], "NV8"], [[4608, 4614], "valid"], [[4615, 4615], "valid"], [[4616, 4678], "valid"], [[4679, 4679], "valid"], [[4680, 4680], "valid"], [[4681, 4681], "disallowed"], [[4682, 4685], "valid"], [[4686, 4687], "disallowed"], [[4688, 4694], "valid"], [[4695, 4695], "disallowed"], [[4696, 4696], "valid"], [[4697, 4697], "disallowed"], [[4698, 4701], "valid"], [[4702, 4703], "disallowed"], [[4704, 4742], "valid"], [[4743, 4743], "valid"], [[4744, 4744], "valid"], [[4745, 4745], "disallowed"], [[4746, 4749], "valid"], [[4750, 4751], "disallowed"], [[4752, 4782], "valid"], [[4783, 4783], "valid"], [[4784, 4784], "valid"], [[4785, 4785], "disallowed"], [[4786, 4789], "valid"], [[4790, 4791], "disallowed"], [[4792, 4798], "valid"], [[4799, 4799], "disallowed"], [[4800, 4800], "valid"], [[4801, 4801], "disallowed"], [[4802, 4805], "valid"], [[4806, 4807], "disallowed"], [[4808, 4814], "valid"], [[4815, 4815], "valid"], [[4816, 4822], "valid"], [[4823, 4823], "disallowed"], [[4824, 4846], "valid"], [[4847, 4847], "valid"], [[4848, 4878], "valid"], [[4879, 4879], "valid"], [[4880, 4880], "valid"], [[4881, 4881], "disallowed"], [[4882, 4885], "valid"], [[4886, 4887], "disallowed"], [[4888, 4894], "valid"], [[4895, 4895], "valid"], [[4896, 4934], "valid"], [[4935, 4935], "valid"], [[4936, 4954], "valid"], [[4955, 4956], "disallowed"], [[4957, 4958], "valid"], [[4959, 4959], "valid"], [[4960, 4960], "valid", [], "NV8"], [[4961, 4988], "valid", [], "NV8"], [[4989, 4991], "disallowed"], [[4992, 5007], "valid"], [[5008, 5017], "valid", [], "NV8"], [[5018, 5023], "disallowed"], [[5024, 5108], "valid"], [[5109, 5109], "valid"], [[5110, 5111], "disallowed"], [[5112, 5112], "mapped", [5104]], [[5113, 5113], "mapped", [5105]], [[5114, 5114], "mapped", [5106]], [[5115, 5115], "mapped", [5107]], [[5116, 5116], "mapped", [5108]], [[5117, 5117], "mapped", [5109]], [[5118, 5119], "disallowed"], [[5120, 5120], "valid", [], "NV8"], [[5121, 5740], "valid"], [[5741, 5742], "valid", [], "NV8"], [[5743, 5750], "valid"], [[5751, 5759], "valid"], [[5760, 5760], "disallowed"], [[5761, 5786], "valid"], [[5787, 5788], "valid", [], "NV8"], [[5789, 5791], "disallowed"], [[5792, 5866], "valid"], [[5867, 5872], "valid", [], "NV8"], [[5873, 5880], "valid"], [[5881, 5887], "disallowed"], [[5888, 5900], "valid"], [[5901, 5901], "disallowed"], [[5902, 5908], "valid"], [[5909, 5919], "disallowed"], [[5920, 5940], "valid"], [[5941, 5942], "valid", [], "NV8"], [[5943, 5951], "disallowed"], [[5952, 5971], "valid"], [[5972, 5983], "disallowed"], [[5984, 5996], "valid"], [[5997, 5997], "disallowed"], [[5998, 6e3], "valid"], [[6001, 6001], "disallowed"], [[6002, 6003], "valid"], [[6004, 6015], "disallowed"], [[6016, 6067], "valid"], [[6068, 6069], "disallowed"], [[6070, 6099], "valid"], [[6100, 6102], "valid", [], "NV8"], [[6103, 6103], "valid"], [[6104, 6107], "valid", [], "NV8"], [[6108, 6108], "valid"], [[6109, 6109], "valid"], [[6110, 6111], "disallowed"], [[6112, 6121], "valid"], [[6122, 6127], "disallowed"], [[6128, 6137], "valid", [], "NV8"], [[6138, 6143], "disallowed"], [[6144, 6149], "valid", [], "NV8"], [[6150, 6150], "disallowed"], [[6151, 6154], "valid", [], "NV8"], [[6155, 6157], "ignored"], [[6158, 6158], "disallowed"], [[6159, 6159], "disallowed"], [[6160, 6169], "valid"], [[6170, 6175], "disallowed"], [[6176, 6263], "valid"], [[6264, 6271], "disallowed"], [[6272, 6313], "valid"], [[6314, 6314], "valid"], [[6315, 6319], "disallowed"], [[6320, 6389], "valid"], [[6390, 6399], "disallowed"], [[6400, 6428], "valid"], [[6429, 6430], "valid"], [[6431, 6431], "disallowed"], [[6432, 6443], "valid"], [[6444, 6447], "disallowed"], [[6448, 6459], "valid"], [[6460, 6463], "disallowed"], [[6464, 6464], "valid", [], "NV8"], [[6465, 6467], "disallowed"], [[6468, 6469], "valid", [], "NV8"], [[6470, 6509], "valid"], [[6510, 6511], "disallowed"], [[6512, 6516], "valid"], [[6517, 6527], "disallowed"], [[6528, 6569], "valid"], [[6570, 6571], "valid"], [[6572, 6575], "disallowed"], [[6576, 6601], "valid"], [[6602, 6607], "disallowed"], [[6608, 6617], "valid"], [[6618, 6618], "valid", [], "XV8"], [[6619, 6621], "disallowed"], [[6622, 6623], "valid", [], "NV8"], [[6624, 6655], "valid", [], "NV8"], [[6656, 6683], "valid"], [[6684, 6685], "disallowed"], [[6686, 6687], "valid", [], "NV8"], [[6688, 6750], "valid"], [[6751, 6751], "disallowed"], [[6752, 6780], "valid"], [[6781, 6782], "disallowed"], [[6783, 6793], "valid"], [[6794, 6799], "disallowed"], [[6800, 6809], "valid"], [[6810, 6815], "disallowed"], [[6816, 6822], "valid", [], "NV8"], [[6823, 6823], "valid"], [[6824, 6829], "valid", [], "NV8"], [[6830, 6831], "disallowed"], [[6832, 6845], "valid"], [[6846, 6846], "valid", [], "NV8"], [[6847, 6911], "disallowed"], [[6912, 6987], "valid"], [[6988, 6991], "disallowed"], [[6992, 7001], "valid"], [[7002, 7018], "valid", [], "NV8"], [[7019, 7027], "valid"], [[7028, 7036], "valid", [], "NV8"], [[7037, 7039], "disallowed"], [[7040, 7082], "valid"], [[7083, 7085], "valid"], [[7086, 7097], "valid"], [[7098, 7103], "valid"], [[7104, 7155], "valid"], [[7156, 7163], "disallowed"], [[7164, 7167], "valid", [], "NV8"], [[7168, 7223], "valid"], [[7224, 7226], "disallowed"], [[7227, 7231], "valid", [], "NV8"], [[7232, 7241], "valid"], [[7242, 7244], "disallowed"], [[7245, 7293], "valid"], [[7294, 7295], "valid", [], "NV8"], [[7296, 7359], "disallowed"], [[7360, 7367], "valid", [], "NV8"], [[7368, 7375], "disallowed"], [[7376, 7378], "valid"], [[7379, 7379], "valid", [], "NV8"], [[7380, 7410], "valid"], [[7411, 7414], "valid"], [[7415, 7415], "disallowed"], [[7416, 7417], "valid"], [[7418, 7423], "disallowed"], [[7424, 7467], "valid"], [[7468, 7468], "mapped", [97]], [[7469, 7469], "mapped", [230]], [[7470, 7470], "mapped", [98]], [[7471, 7471], "valid"], [[7472, 7472], "mapped", [100]], [[7473, 7473], "mapped", [101]], [[7474, 7474], "mapped", [477]], [[7475, 7475], "mapped", [103]], [[7476, 7476], "mapped", [104]], [[7477, 7477], "mapped", [105]], [[7478, 7478], "mapped", [106]], [[7479, 7479], "mapped", [107]], [[7480, 7480], "mapped", [108]], [[7481, 7481], "mapped", [109]], [[7482, 7482], "mapped", [110]], [[7483, 7483], "valid"], [[7484, 7484], "mapped", [111]], [[7485, 7485], "mapped", [547]], [[7486, 7486], "mapped", [112]], [[7487, 7487], "mapped", [114]], [[7488, 7488], "mapped", [116]], [[7489, 7489], "mapped", [117]], [[7490, 7490], "mapped", [119]], [[7491, 7491], "mapped", [97]], [[7492, 7492], "mapped", [592]], [[7493, 7493], "mapped", [593]], [[7494, 7494], "mapped", [7426]], [[7495, 7495], "mapped", [98]], [[7496, 7496], "mapped", [100]], [[7497, 7497], "mapped", [101]], [[7498, 7498], "mapped", [601]], [[7499, 7499], "mapped", [603]], [[7500, 7500], "mapped", [604]], [[7501, 7501], "mapped", [103]], [[7502, 7502], "valid"], [[7503, 7503], "mapped", [107]], [[7504, 7504], "mapped", [109]], [[7505, 7505], "mapped", [331]], [[7506, 7506], "mapped", [111]], [[7507, 7507], "mapped", [596]], [[7508, 7508], "mapped", [7446]], [[7509, 7509], "mapped", [7447]], [[7510, 7510], "mapped", [112]], [[7511, 7511], "mapped", [116]], [[7512, 7512], "mapped", [117]], [[7513, 7513], "mapped", [7453]], [[7514, 7514], "mapped", [623]], [[7515, 7515], "mapped", [118]], [[7516, 7516], "mapped", [7461]], [[7517, 7517], "mapped", [946]], [[7518, 7518], "mapped", [947]], [[7519, 7519], "mapped", [948]], [[7520, 7520], "mapped", [966]], [[7521, 7521], "mapped", [967]], [[7522, 7522], "mapped", [105]], [[7523, 7523], "mapped", [114]], [[7524, 7524], "mapped", [117]], [[7525, 7525], "mapped", [118]], [[7526, 7526], "mapped", [946]], [[7527, 7527], "mapped", [947]], [[7528, 7528], "mapped", [961]], [[7529, 7529], "mapped", [966]], [[7530, 7530], "mapped", [967]], [[7531, 7531], "valid"], [[7532, 7543], "valid"], [[7544, 7544], "mapped", [1085]], [[7545, 7578], "valid"], [[7579, 7579], "mapped", [594]], [[7580, 7580], "mapped", [99]], [[7581, 7581], "mapped", [597]], [[7582, 7582], "mapped", [240]], [[7583, 7583], "mapped", [604]], [[7584, 7584], "mapped", [102]], [[7585, 7585], "mapped", [607]], [[7586, 7586], "mapped", [609]], [[7587, 7587], "mapped", [613]], [[7588, 7588], "mapped", [616]], [[7589, 7589], "mapped", [617]], [[7590, 7590], "mapped", [618]], [[7591, 7591], "mapped", [7547]], [[7592, 7592], "mapped", [669]], [[7593, 7593], "mapped", [621]], [[7594, 7594], "mapped", [7557]], [[7595, 7595], "mapped", [671]], [[7596, 7596], "mapped", [625]], [[7597, 7597], "mapped", [624]], [[7598, 7598], "mapped", [626]], [[7599, 7599], "mapped", [627]], [[7600, 7600], "mapped", [628]], [[7601, 7601], "mapped", [629]], [[7602, 7602], "mapped", [632]], [[7603, 7603], "mapped", [642]], [[7604, 7604], "mapped", [643]], [[7605, 7605], "mapped", [427]], [[7606, 7606], "mapped", [649]], [[7607, 7607], "mapped", [650]], [[7608, 7608], "mapped", [7452]], [[7609, 7609], "mapped", [651]], [[7610, 7610], "mapped", [652]], [[7611, 7611], "mapped", [122]], [[7612, 7612], "mapped", [656]], [[7613, 7613], "mapped", [657]], [[7614, 7614], "mapped", [658]], [[7615, 7615], "mapped", [952]], [[7616, 7619], "valid"], [[7620, 7626], "valid"], [[7627, 7654], "valid"], [[7655, 7669], "valid"], [[7670, 7675], "disallowed"], [[7676, 7676], "valid"], [[7677, 7677], "valid"], [[7678, 7679], "valid"], [[7680, 7680], "mapped", [7681]], [[7681, 7681], "valid"], [[7682, 7682], "mapped", [7683]], [[7683, 7683], "valid"], [[7684, 7684], "mapped", [7685]], [[7685, 7685], "valid"], [[7686, 7686], "mapped", [7687]], [[7687, 7687], "valid"], [[7688, 7688], "mapped", [7689]], [[7689, 7689], "valid"], [[7690, 7690], "mapped", [7691]], [[7691, 7691], "valid"], [[7692, 7692], "mapped", [7693]], [[7693, 7693], "valid"], [[7694, 7694], "mapped", [7695]], [[7695, 7695], "valid"], [[7696, 7696], "mapped", [7697]], [[7697, 7697], "valid"], [[7698, 7698], "mapped", [7699]], [[7699, 7699], "valid"], [[7700, 7700], "mapped", [7701]], [[7701, 7701], "valid"], [[7702, 7702], "mapped", [7703]], [[7703, 7703], "valid"], [[7704, 7704], "mapped", [7705]], [[7705, 7705], "valid"], [[7706, 7706], "mapped", [7707]], [[7707, 7707], "valid"], [[7708, 7708], "mapped", [7709]], [[7709, 7709], "valid"], [[7710, 7710], "mapped", [7711]], [[7711, 7711], "valid"], [[7712, 7712], "mapped", [7713]], [[7713, 7713], "valid"], [[7714, 7714], "mapped", [7715]], [[7715, 7715], "valid"], [[7716, 7716], "mapped", [7717]], [[7717, 7717], "valid"], [[7718, 7718], "mapped", [7719]], [[7719, 7719], "valid"], [[7720, 7720], "mapped", [7721]], [[7721, 7721], "valid"], [[7722, 7722], "mapped", [7723]], [[7723, 7723], "valid"], [[7724, 7724], "mapped", [7725]], [[7725, 7725], "valid"], [[7726, 7726], "mapped", [7727]], [[7727, 7727], "valid"], [[7728, 7728], "mapped", [7729]], [[7729, 7729], "valid"], [[7730, 7730], "mapped", [7731]], [[7731, 7731], "valid"], [[7732, 7732], "mapped", [7733]], [[7733, 7733], "valid"], [[7734, 7734], "mapped", [7735]], [[7735, 7735], "valid"], [[7736, 7736], "mapped", [7737]], [[7737, 7737], "valid"], [[7738, 7738], "mapped", [7739]], [[7739, 7739], "valid"], [[7740, 7740], "mapped", [7741]], [[7741, 7741], "valid"], [[7742, 7742], "mapped", [7743]], [[7743, 7743], "valid"], [[7744, 7744], "mapped", [7745]], [[7745, 7745], "valid"], [[7746, 7746], "mapped", [7747]], [[7747, 7747], "valid"], [[7748, 7748], "mapped", [7749]], [[7749, 7749], "valid"], [[7750, 7750], "mapped", [7751]], [[7751, 7751], "valid"], [[7752, 7752], "mapped", [7753]], [[7753, 7753], "valid"], [[7754, 7754], "mapped", [7755]], [[7755, 7755], "valid"], [[7756, 7756], "mapped", [7757]], [[7757, 7757], "valid"], [[7758, 7758], "mapped", [7759]], [[7759, 7759], "valid"], [[7760, 7760], "mapped", [7761]], [[7761, 7761], "valid"], [[7762, 7762], "mapped", [7763]], [[7763, 7763], "valid"], [[7764, 7764], "mapped", [7765]], [[7765, 7765], "valid"], [[7766, 7766], "mapped", [7767]], [[7767, 7767], "valid"], [[7768, 7768], "mapped", [7769]], [[7769, 7769], "valid"], [[7770, 7770], "mapped", [7771]], [[7771, 7771], "valid"], [[7772, 7772], "mapped", [7773]], [[7773, 7773], "valid"], [[7774, 7774], "mapped", [7775]], [[7775, 7775], "valid"], [[7776, 7776], "mapped", [7777]], [[7777, 7777], "valid"], [[7778, 7778], "mapped", [7779]], [[7779, 7779], "valid"], [[7780, 7780], "mapped", [7781]], [[7781, 7781], "valid"], [[7782, 7782], "mapped", [7783]], [[7783, 7783], "valid"], [[7784, 7784], "mapped", [7785]], [[7785, 7785], "valid"], [[7786, 7786], "mapped", [7787]], [[7787, 7787], "valid"], [[7788, 7788], "mapped", [7789]], [[7789, 7789], "valid"], [[7790, 7790], "mapped", [7791]], [[7791, 7791], "valid"], [[7792, 7792], "mapped", [7793]], [[7793, 7793], "valid"], [[7794, 7794], "mapped", [7795]], [[7795, 7795], "valid"], [[7796, 7796], "mapped", [7797]], [[7797, 7797], "valid"], [[7798, 7798], "mapped", [7799]], [[7799, 7799], "valid"], [[7800, 7800], "mapped", [7801]], [[7801, 7801], "valid"], [[7802, 7802], "mapped", [7803]], [[7803, 7803], "valid"], [[7804, 7804], "mapped", [7805]], [[7805, 7805], "valid"], [[7806, 7806], "mapped", [7807]], [[7807, 7807], "valid"], [[7808, 7808], "mapped", [7809]], [[7809, 7809], "valid"], [[7810, 7810], "mapped", [7811]], [[7811, 7811], "valid"], [[7812, 7812], "mapped", [7813]], [[7813, 7813], "valid"], [[7814, 7814], "mapped", [7815]], [[7815, 7815], "valid"], [[7816, 7816], "mapped", [7817]], [[7817, 7817], "valid"], [[7818, 7818], "mapped", [7819]], [[7819, 7819], "valid"], [[7820, 7820], "mapped", [7821]], [[7821, 7821], "valid"], [[7822, 7822], "mapped", [7823]], [[7823, 7823], "valid"], [[7824, 7824], "mapped", [7825]], [[7825, 7825], "valid"], [[7826, 7826], "mapped", [7827]], [[7827, 7827], "valid"], [[7828, 7828], "mapped", [7829]], [[7829, 7833], "valid"], [[7834, 7834], "mapped", [97, 702]], [[7835, 7835], "mapped", [7777]], [[7836, 7837], "valid"], [[7838, 7838], "mapped", [115, 115]], [[7839, 7839], "valid"], [[7840, 7840], "mapped", [7841]], [[7841, 7841], "valid"], [[7842, 7842], "mapped", [7843]], [[7843, 7843], "valid"], [[7844, 7844], "mapped", [7845]], [[7845, 7845], "valid"], [[7846, 7846], "mapped", [7847]], [[7847, 7847], "valid"], [[7848, 7848], "mapped", [7849]], [[7849, 7849], "valid"], [[7850, 7850], "mapped", [7851]], [[7851, 7851], "valid"], [[7852, 7852], "mapped", [7853]], [[7853, 7853], "valid"], [[7854, 7854], "mapped", [7855]], [[7855, 7855], "valid"], [[7856, 7856], "mapped", [7857]], [[7857, 7857], "valid"], [[7858, 7858], "mapped", [7859]], [[7859, 7859], "valid"], [[7860, 7860], "mapped", [7861]], [[7861, 7861], "valid"], [[7862, 7862], "mapped", [7863]], [[7863, 7863], "valid"], [[7864, 7864], "mapped", [7865]], [[7865, 7865], "valid"], [[7866, 7866], "mapped", [7867]], [[7867, 7867], "valid"], [[7868, 7868], "mapped", [7869]], [[7869, 7869], "valid"], [[7870, 7870], "mapped", [7871]], [[7871, 7871], "valid"], [[7872, 7872], "mapped", [7873]], [[7873, 7873], "valid"], [[7874, 7874], "mapped", [7875]], [[7875, 7875], "valid"], [[7876, 7876], "mapped", [7877]], [[7877, 7877], "valid"], [[7878, 7878], "mapped", [7879]], [[7879, 7879], "valid"], [[7880, 7880], "mapped", [7881]], [[7881, 7881], "valid"], [[7882, 7882], "mapped", [7883]], [[7883, 7883], "valid"], [[7884, 7884], "mapped", [7885]], [[7885, 7885], "valid"], [[7886, 7886], "mapped", [7887]], [[7887, 7887], "valid"], [[7888, 7888], "mapped", [7889]], [[7889, 7889], "valid"], [[7890, 7890], "mapped", [7891]], [[7891, 7891], "valid"], [[7892, 7892], "mapped", [7893]], [[7893, 7893], "valid"], [[7894, 7894], "mapped", [7895]], [[7895, 7895], "valid"], [[7896, 7896], "mapped", [7897]], [[7897, 7897], "valid"], [[7898, 7898], "mapped", [7899]], [[7899, 7899], "valid"], [[7900, 7900], "mapped", [7901]], [[7901, 7901], "valid"], [[7902, 7902], "mapped", [7903]], [[7903, 7903], "valid"], [[7904, 7904], "mapped", [7905]], [[7905, 7905], "valid"], [[7906, 7906], "mapped", [7907]], [[7907, 7907], "valid"], [[7908, 7908], "mapped", [7909]], [[7909, 7909], "valid"], [[7910, 7910], "mapped", [7911]], [[7911, 7911], "valid"], [[7912, 7912], "mapped", [7913]], [[7913, 7913], "valid"], [[7914, 7914], "mapped", [7915]], [[7915, 7915], "valid"], [[7916, 7916], "mapped", [7917]], [[7917, 7917], "valid"], [[7918, 7918], "mapped", [7919]], [[7919, 7919], "valid"], [[7920, 7920], "mapped", [7921]], [[7921, 7921], "valid"], [[7922, 7922], "mapped", [7923]], [[7923, 7923], "valid"], [[7924, 7924], "mapped", [7925]], [[7925, 7925], "valid"], [[7926, 7926], "mapped", [7927]], [[7927, 7927], "valid"], [[7928, 7928], "mapped", [7929]], [[7929, 7929], "valid"], [[7930, 7930], "mapped", [7931]], [[7931, 7931], "valid"], [[7932, 7932], "mapped", [7933]], [[7933, 7933], "valid"], [[7934, 7934], "mapped", [7935]], [[7935, 7935], "valid"], [[7936, 7943], "valid"], [[7944, 7944], "mapped", [7936]], [[7945, 7945], "mapped", [7937]], [[7946, 7946], "mapped", [7938]], [[7947, 7947], "mapped", [7939]], [[7948, 7948], "mapped", [7940]], [[7949, 7949], "mapped", [7941]], [[7950, 7950], "mapped", [7942]], [[7951, 7951], "mapped", [7943]], [[7952, 7957], "valid"], [[7958, 7959], "disallowed"], [[7960, 7960], "mapped", [7952]], [[7961, 7961], "mapped", [7953]], [[7962, 7962], "mapped", [7954]], [[7963, 7963], "mapped", [7955]], [[7964, 7964], "mapped", [7956]], [[7965, 7965], "mapped", [7957]], [[7966, 7967], "disallowed"], [[7968, 7975], "valid"], [[7976, 7976], "mapped", [7968]], [[7977, 7977], "mapped", [7969]], [[7978, 7978], "mapped", [7970]], [[7979, 7979], "mapped", [7971]], [[7980, 7980], "mapped", [7972]], [[7981, 7981], "mapped", [7973]], [[7982, 7982], "mapped", [7974]], [[7983, 7983], "mapped", [7975]], [[7984, 7991], "valid"], [[7992, 7992], "mapped", [7984]], [[7993, 7993], "mapped", [7985]], [[7994, 7994], "mapped", [7986]], [[7995, 7995], "mapped", [7987]], [[7996, 7996], "mapped", [7988]], [[7997, 7997], "mapped", [7989]], [[7998, 7998], "mapped", [7990]], [[7999, 7999], "mapped", [7991]], [[8e3, 8005], "valid"], [[8006, 8007], "disallowed"], [[8008, 8008], "mapped", [8e3]], [[8009, 8009], "mapped", [8001]], [[8010, 8010], "mapped", [8002]], [[8011, 8011], "mapped", [8003]], [[8012, 8012], "mapped", [8004]], [[8013, 8013], "mapped", [8005]], [[8014, 8015], "disallowed"], [[8016, 8023], "valid"], [[8024, 8024], "disallowed"], [[8025, 8025], "mapped", [8017]], [[8026, 8026], "disallowed"], [[8027, 8027], "mapped", [8019]], [[8028, 8028], "disallowed"], [[8029, 8029], "mapped", [8021]], [[8030, 8030], "disallowed"], [[8031, 8031], "mapped", [8023]], [[8032, 8039], "valid"], [[8040, 8040], "mapped", [8032]], [[8041, 8041], "mapped", [8033]], [[8042, 8042], "mapped", [8034]], [[8043, 8043], "mapped", [8035]], [[8044, 8044], "mapped", [8036]], [[8045, 8045], "mapped", [8037]], [[8046, 8046], "mapped", [8038]], [[8047, 8047], "mapped", [8039]], [[8048, 8048], "valid"], [[8049, 8049], "mapped", [940]], [[8050, 8050], "valid"], [[8051, 8051], "mapped", [941]], [[8052, 8052], "valid"], [[8053, 8053], "mapped", [942]], [[8054, 8054], "valid"], [[8055, 8055], "mapped", [943]], [[8056, 8056], "valid"], [[8057, 8057], "mapped", [972]], [[8058, 8058], "valid"], [[8059, 8059], "mapped", [973]], [[8060, 8060], "valid"], [[8061, 8061], "mapped", [974]], [[8062, 8063], "disallowed"], [[8064, 8064], "mapped", [7936, 953]], [[8065, 8065], "mapped", [7937, 953]], [[8066, 8066], "mapped", [7938, 953]], [[8067, 8067], "mapped", [7939, 953]], [[8068, 8068], "mapped", [7940, 953]], [[8069, 8069], "mapped", [7941, 953]], [[8070, 8070], "mapped", [7942, 953]], [[8071, 8071], "mapped", [7943, 953]], [[8072, 8072], "mapped", [7936, 953]], [[8073, 8073], "mapped", [7937, 953]], [[8074, 8074], "mapped", [7938, 953]], [[8075, 8075], "mapped", [7939, 953]], [[8076, 8076], "mapped", [7940, 953]], [[8077, 8077], "mapped", [7941, 953]], [[8078, 8078], "mapped", [7942, 953]], [[8079, 8079], "mapped", [7943, 953]], [[8080, 8080], "mapped", [7968, 953]], [[8081, 8081], "mapped", [7969, 953]], [[8082, 8082], "mapped", [7970, 953]], [[8083, 8083], "mapped", [7971, 953]], [[8084, 8084], "mapped", [7972, 953]], [[8085, 8085], "mapped", [7973, 953]], [[8086, 8086], "mapped", [7974, 953]], [[8087, 8087], "mapped", [7975, 953]], [[8088, 8088], "mapped", [7968, 953]], [[8089, 8089], "mapped", [7969, 953]], [[8090, 8090], "mapped", [7970, 953]], [[8091, 8091], "mapped", [7971, 953]], [[8092, 8092], "mapped", [7972, 953]], [[8093, 8093], "mapped", [7973, 953]], [[8094, 8094], "mapped", [7974, 953]], [[8095, 8095], "mapped", [7975, 953]], [[8096, 8096], "mapped", [8032, 953]], [[8097, 8097], "mapped", [8033, 953]], [[8098, 8098], "mapped", [8034, 953]], [[8099, 8099], "mapped", [8035, 953]], [[8100, 8100], "mapped", [8036, 953]], [[8101, 8101], "mapped", [8037, 953]], [[8102, 8102], "mapped", [8038, 953]], [[8103, 8103], "mapped", [8039, 953]], [[8104, 8104], "mapped", [8032, 953]], [[8105, 8105], "mapped", [8033, 953]], [[8106, 8106], "mapped", [8034, 953]], [[8107, 8107], "mapped", [8035, 953]], [[8108, 8108], "mapped", [8036, 953]], [[8109, 8109], "mapped", [8037, 953]], [[8110, 8110], "mapped", [8038, 953]], [[8111, 8111], "mapped", [8039, 953]], [[8112, 8113], "valid"], [[8114, 8114], "mapped", [8048, 953]], [[8115, 8115], "mapped", [945, 953]], [[8116, 8116], "mapped", [940, 953]], [[8117, 8117], "disallowed"], [[8118, 8118], "valid"], [[8119, 8119], "mapped", [8118, 953]], [[8120, 8120], "mapped", [8112]], [[8121, 8121], "mapped", [8113]], [[8122, 8122], "mapped", [8048]], [[8123, 8123], "mapped", [940]], [[8124, 8124], "mapped", [945, 953]], [[8125, 8125], "disallowed_STD3_mapped", [32, 787]], [[8126, 8126], "mapped", [953]], [[8127, 8127], "disallowed_STD3_mapped", [32, 787]], [[8128, 8128], "disallowed_STD3_mapped", [32, 834]], [[8129, 8129], "disallowed_STD3_mapped", [32, 776, 834]], [[8130, 8130], "mapped", [8052, 953]], [[8131, 8131], "mapped", [951, 953]], [[8132, 8132], "mapped", [942, 953]], [[8133, 8133], "disallowed"], [[8134, 8134], "valid"], [[8135, 8135], "mapped", [8134, 953]], [[8136, 8136], "mapped", [8050]], [[8137, 8137], "mapped", [941]], [[8138, 8138], "mapped", [8052]], [[8139, 8139], "mapped", [942]], [[8140, 8140], "mapped", [951, 953]], [[8141, 8141], "disallowed_STD3_mapped", [32, 787, 768]], [[8142, 8142], "disallowed_STD3_mapped", [32, 787, 769]], [[8143, 8143], "disallowed_STD3_mapped", [32, 787, 834]], [[8144, 8146], "valid"], [[8147, 8147], "mapped", [912]], [[8148, 8149], "disallowed"], [[8150, 8151], "valid"], [[8152, 8152], "mapped", [8144]], [[8153, 8153], "mapped", [8145]], [[8154, 8154], "mapped", [8054]], [[8155, 8155], "mapped", [943]], [[8156, 8156], "disallowed"], [[8157, 8157], "disallowed_STD3_mapped", [32, 788, 768]], [[8158, 8158], "disallowed_STD3_mapped", [32, 788, 769]], [[8159, 8159], "disallowed_STD3_mapped", [32, 788, 834]], [[8160, 8162], "valid"], [[8163, 8163], "mapped", [944]], [[8164, 8167], "valid"], [[8168, 8168], "mapped", [8160]], [[8169, 8169], "mapped", [8161]], [[8170, 8170], "mapped", [8058]], [[8171, 8171], "mapped", [973]], [[8172, 8172], "mapped", [8165]], [[8173, 8173], "disallowed_STD3_mapped", [32, 776, 768]], [[8174, 8174], "disallowed_STD3_mapped", [32, 776, 769]], [[8175, 8175], "disallowed_STD3_mapped", [96]], [[8176, 8177], "disallowed"], [[8178, 8178], "mapped", [8060, 953]], [[8179, 8179], "mapped", [969, 953]], [[8180, 8180], "mapped", [974, 953]], [[8181, 8181], "disallowed"], [[8182, 8182], "valid"], [[8183, 8183], "mapped", [8182, 953]], [[8184, 8184], "mapped", [8056]], [[8185, 8185], "mapped", [972]], [[8186, 8186], "mapped", [8060]], [[8187, 8187], "mapped", [974]], [[8188, 8188], "mapped", [969, 953]], [[8189, 8189], "disallowed_STD3_mapped", [32, 769]], [[8190, 8190], "disallowed_STD3_mapped", [32, 788]], [[8191, 8191], "disallowed"], [[8192, 8202], "disallowed_STD3_mapped", [32]], [[8203, 8203], "ignored"], [[8204, 8205], "deviation", []], [[8206, 8207], "disallowed"], [[8208, 8208], "valid", [], "NV8"], [[8209, 8209], "mapped", [8208]], [[8210, 8214], "valid", [], "NV8"], [[8215, 8215], "disallowed_STD3_mapped", [32, 819]], [[8216, 8227], "valid", [], "NV8"], [[8228, 8230], "disallowed"], [[8231, 8231], "valid", [], "NV8"], [[8232, 8238], "disallowed"], [[8239, 8239], "disallowed_STD3_mapped", [32]], [[8240, 8242], "valid", [], "NV8"], [[8243, 8243], "mapped", [8242, 8242]], [[8244, 8244], "mapped", [8242, 8242, 8242]], [[8245, 8245], "valid", [], "NV8"], [[8246, 8246], "mapped", [8245, 8245]], [[8247, 8247], "mapped", [8245, 8245, 8245]], [[8248, 8251], "valid", [], "NV8"], [[8252, 8252], "disallowed_STD3_mapped", [33, 33]], [[8253, 8253], "valid", [], "NV8"], [[8254, 8254], "disallowed_STD3_mapped", [32, 773]], [[8255, 8262], "valid", [], "NV8"], [[8263, 8263], "disallowed_STD3_mapped", [63, 63]], [[8264, 8264], "disallowed_STD3_mapped", [63, 33]], [[8265, 8265], "disallowed_STD3_mapped", [33, 63]], [[8266, 8269], "valid", [], "NV8"], [[8270, 8274], "valid", [], "NV8"], [[8275, 8276], "valid", [], "NV8"], [[8277, 8278], "valid", [], "NV8"], [[8279, 8279], "mapped", [8242, 8242, 8242, 8242]], [[8280, 8286], "valid", [], "NV8"], [[8287, 8287], "disallowed_STD3_mapped", [32]], [[8288, 8288], "ignored"], [[8289, 8291], "disallowed"], [[8292, 8292], "ignored"], [[8293, 8293], "disallowed"], [[8294, 8297], "disallowed"], [[8298, 8303], "disallowed"], [[8304, 8304], "mapped", [48]], [[8305, 8305], "mapped", [105]], [[8306, 8307], "disallowed"], [[8308, 8308], "mapped", [52]], [[8309, 8309], "mapped", [53]], [[8310, 8310], "mapped", [54]], [[8311, 8311], "mapped", [55]], [[8312, 8312], "mapped", [56]], [[8313, 8313], "mapped", [57]], [[8314, 8314], "disallowed_STD3_mapped", [43]], [[8315, 8315], "mapped", [8722]], [[8316, 8316], "disallowed_STD3_mapped", [61]], [[8317, 8317], "disallowed_STD3_mapped", [40]], [[8318, 8318], "disallowed_STD3_mapped", [41]], [[8319, 8319], "mapped", [110]], [[8320, 8320], "mapped", [48]], [[8321, 8321], "mapped", [49]], [[8322, 8322], "mapped", [50]], [[8323, 8323], "mapped", [51]], [[8324, 8324], "mapped", [52]], [[8325, 8325], "mapped", [53]], [[8326, 8326], "mapped", [54]], [[8327, 8327], "mapped", [55]], [[8328, 8328], "mapped", [56]], [[8329, 8329], "mapped", [57]], [[8330, 8330], "disallowed_STD3_mapped", [43]], [[8331, 8331], "mapped", [8722]], [[8332, 8332], "disallowed_STD3_mapped", [61]], [[8333, 8333], "disallowed_STD3_mapped", [40]], [[8334, 8334], "disallowed_STD3_mapped", [41]], [[8335, 8335], "disallowed"], [[8336, 8336], "mapped", [97]], [[8337, 8337], "mapped", [101]], [[8338, 8338], "mapped", [111]], [[8339, 8339], "mapped", [120]], [[8340, 8340], "mapped", [601]], [[8341, 8341], "mapped", [104]], [[8342, 8342], "mapped", [107]], [[8343, 8343], "mapped", [108]], [[8344, 8344], "mapped", [109]], [[8345, 8345], "mapped", [110]], [[8346, 8346], "mapped", [112]], [[8347, 8347], "mapped", [115]], [[8348, 8348], "mapped", [116]], [[8349, 8351], "disallowed"], [[8352, 8359], "valid", [], "NV8"], [[8360, 8360], "mapped", [114, 115]], [[8361, 8362], "valid", [], "NV8"], [[8363, 8363], "valid", [], "NV8"], [[8364, 8364], "valid", [], "NV8"], [[8365, 8367], "valid", [], "NV8"], [[8368, 8369], "valid", [], "NV8"], [[8370, 8373], "valid", [], "NV8"], [[8374, 8376], "valid", [], "NV8"], [[8377, 8377], "valid", [], "NV8"], [[8378, 8378], "valid", [], "NV8"], [[8379, 8381], "valid", [], "NV8"], [[8382, 8382], "valid", [], "NV8"], [[8383, 8399], "disallowed"], [[8400, 8417], "valid", [], "NV8"], [[8418, 8419], "valid", [], "NV8"], [[8420, 8426], "valid", [], "NV8"], [[8427, 8427], "valid", [], "NV8"], [[8428, 8431], "valid", [], "NV8"], [[8432, 8432], "valid", [], "NV8"], [[8433, 8447], "disallowed"], [[8448, 8448], "disallowed_STD3_mapped", [97, 47, 99]], [[8449, 8449], "disallowed_STD3_mapped", [97, 47, 115]], [[8450, 8450], "mapped", [99]], [[8451, 8451], "mapped", [176, 99]], [[8452, 8452], "valid", [], "NV8"], [[8453, 8453], "disallowed_STD3_mapped", [99, 47, 111]], [[8454, 8454], "disallowed_STD3_mapped", [99, 47, 117]], [[8455, 8455], "mapped", [603]], [[8456, 8456], "valid", [], "NV8"], [[8457, 8457], "mapped", [176, 102]], [[8458, 8458], "mapped", [103]], [[8459, 8462], "mapped", [104]], [[8463, 8463], "mapped", [295]], [[8464, 8465], "mapped", [105]], [[8466, 8467], "mapped", [108]], [[8468, 8468], "valid", [], "NV8"], [[8469, 8469], "mapped", [110]], [[8470, 8470], "mapped", [110, 111]], [[8471, 8472], "valid", [], "NV8"], [[8473, 8473], "mapped", [112]], [[8474, 8474], "mapped", [113]], [[8475, 8477], "mapped", [114]], [[8478, 8479], "valid", [], "NV8"], [[8480, 8480], "mapped", [115, 109]], [[8481, 8481], "mapped", [116, 101, 108]], [[8482, 8482], "mapped", [116, 109]], [[8483, 8483], "valid", [], "NV8"], [[8484, 8484], "mapped", [122]], [[8485, 8485], "valid", [], "NV8"], [[8486, 8486], "mapped", [969]], [[8487, 8487], "valid", [], "NV8"], [[8488, 8488], "mapped", [122]], [[8489, 8489], "valid", [], "NV8"], [[8490, 8490], "mapped", [107]], [[8491, 8491], "mapped", [229]], [[8492, 8492], "mapped", [98]], [[8493, 8493], "mapped", [99]], [[8494, 8494], "valid", [], "NV8"], [[8495, 8496], "mapped", [101]], [[8497, 8497], "mapped", [102]], [[8498, 8498], "disallowed"], [[8499, 8499], "mapped", [109]], [[8500, 8500], "mapped", [111]], [[8501, 8501], "mapped", [1488]], [[8502, 8502], "mapped", [1489]], [[8503, 8503], "mapped", [1490]], [[8504, 8504], "mapped", [1491]], [[8505, 8505], "mapped", [105]], [[8506, 8506], "valid", [], "NV8"], [[8507, 8507], "mapped", [102, 97, 120]], [[8508, 8508], "mapped", [960]], [[8509, 8510], "mapped", [947]], [[8511, 8511], "mapped", [960]], [[8512, 8512], "mapped", [8721]], [[8513, 8516], "valid", [], "NV8"], [[8517, 8518], "mapped", [100]], [[8519, 8519], "mapped", [101]], [[8520, 8520], "mapped", [105]], [[8521, 8521], "mapped", [106]], [[8522, 8523], "valid", [], "NV8"], [[8524, 8524], "valid", [], "NV8"], [[8525, 8525], "valid", [], "NV8"], [[8526, 8526], "valid"], [[8527, 8527], "valid", [], "NV8"], [[8528, 8528], "mapped", [49, 8260, 55]], [[8529, 8529], "mapped", [49, 8260, 57]], [[8530, 8530], "mapped", [49, 8260, 49, 48]], [[8531, 8531], "mapped", [49, 8260, 51]], [[8532, 8532], "mapped", [50, 8260, 51]], [[8533, 8533], "mapped", [49, 8260, 53]], [[8534, 8534], "mapped", [50, 8260, 53]], [[8535, 8535], "mapped", [51, 8260, 53]], [[8536, 8536], "mapped", [52, 8260, 53]], [[8537, 8537], "mapped", [49, 8260, 54]], [[8538, 8538], "mapped", [53, 8260, 54]], [[8539, 8539], "mapped", [49, 8260, 56]], [[8540, 8540], "mapped", [51, 8260, 56]], [[8541, 8541], "mapped", [53, 8260, 56]], [[8542, 8542], "mapped", [55, 8260, 56]], [[8543, 8543], "mapped", [49, 8260]], [[8544, 8544], "mapped", [105]], [[8545, 8545], "mapped", [105, 105]], [[8546, 8546], "mapped", [105, 105, 105]], [[8547, 8547], "mapped", [105, 118]], [[8548, 8548], "mapped", [118]], [[8549, 8549], "mapped", [118, 105]], [[8550, 8550], "mapped", [118, 105, 105]], [[8551, 8551], "mapped", [118, 105, 105, 105]], [[8552, 8552], "mapped", [105, 120]], [[8553, 8553], "mapped", [120]], [[8554, 8554], "mapped", [120, 105]], [[8555, 8555], "mapped", [120, 105, 105]], [[8556, 8556], "mapped", [108]], [[8557, 8557], "mapped", [99]], [[8558, 8558], "mapped", [100]], [[8559, 8559], "mapped", [109]], [[8560, 8560], "mapped", [105]], [[8561, 8561], "mapped", [105, 105]], [[8562, 8562], "mapped", [105, 105, 105]], [[8563, 8563], "mapped", [105, 118]], [[8564, 8564], "mapped", [118]], [[8565, 8565], "mapped", [118, 105]], [[8566, 8566], "mapped", [118, 105, 105]], [[8567, 8567], "mapped", [118, 105, 105, 105]], [[8568, 8568], "mapped", [105, 120]], [[8569, 8569], "mapped", [120]], [[8570, 8570], "mapped", [120, 105]], [[8571, 8571], "mapped", [120, 105, 105]], [[8572, 8572], "mapped", [108]], [[8573, 8573], "mapped", [99]], [[8574, 8574], "mapped", [100]], [[8575, 8575], "mapped", [109]], [[8576, 8578], "valid", [], "NV8"], [[8579, 8579], "disallowed"], [[8580, 8580], "valid"], [[8581, 8584], "valid", [], "NV8"], [[8585, 8585], "mapped", [48, 8260, 51]], [[8586, 8587], "valid", [], "NV8"], [[8588, 8591], "disallowed"], [[8592, 8682], "valid", [], "NV8"], [[8683, 8691], "valid", [], "NV8"], [[8692, 8703], "valid", [], "NV8"], [[8704, 8747], "valid", [], "NV8"], [[8748, 8748], "mapped", [8747, 8747]], [[8749, 8749], "mapped", [8747, 8747, 8747]], [[8750, 8750], "valid", [], "NV8"], [[8751, 8751], "mapped", [8750, 8750]], [[8752, 8752], "mapped", [8750, 8750, 8750]], [[8753, 8799], "valid", [], "NV8"], [[8800, 8800], "disallowed_STD3_valid"], [[8801, 8813], "valid", [], "NV8"], [[8814, 8815], "disallowed_STD3_valid"], [[8816, 8945], "valid", [], "NV8"], [[8946, 8959], "valid", [], "NV8"], [[8960, 8960], "valid", [], "NV8"], [[8961, 8961], "valid", [], "NV8"], [[8962, 9e3], "valid", [], "NV8"], [[9001, 9001], "mapped", [12296]], [[9002, 9002], "mapped", [12297]], [[9003, 9082], "valid", [], "NV8"], [[9083, 9083], "valid", [], "NV8"], [[9084, 9084], "valid", [], "NV8"], [[9085, 9114], "valid", [], "NV8"], [[9115, 9166], "valid", [], "NV8"], [[9167, 9168], "valid", [], "NV8"], [[9169, 9179], "valid", [], "NV8"], [[9180, 9191], "valid", [], "NV8"], [[9192, 9192], "valid", [], "NV8"], [[9193, 9203], "valid", [], "NV8"], [[9204, 9210], "valid", [], "NV8"], [[9211, 9215], "disallowed"], [[9216, 9252], "valid", [], "NV8"], [[9253, 9254], "valid", [], "NV8"], [[9255, 9279], "disallowed"], [[9280, 9290], "valid", [], "NV8"], [[9291, 9311], "disallowed"], [[9312, 9312], "mapped", [49]], [[9313, 9313], "mapped", [50]], [[9314, 9314], "mapped", [51]], [[9315, 9315], "mapped", [52]], [[9316, 9316], "mapped", [53]], [[9317, 9317], "mapped", [54]], [[9318, 9318], "mapped", [55]], [[9319, 9319], "mapped", [56]], [[9320, 9320], "mapped", [57]], [[9321, 9321], "mapped", [49, 48]], [[9322, 9322], "mapped", [49, 49]], [[9323, 9323], "mapped", [49, 50]], [[9324, 9324], "mapped", [49, 51]], [[9325, 9325], "mapped", [49, 52]], [[9326, 9326], "mapped", [49, 53]], [[9327, 9327], "mapped", [49, 54]], [[9328, 9328], "mapped", [49, 55]], [[9329, 9329], "mapped", [49, 56]], [[9330, 9330], "mapped", [49, 57]], [[9331, 9331], "mapped", [50, 48]], [[9332, 9332], "disallowed_STD3_mapped", [40, 49, 41]], [[9333, 9333], "disallowed_STD3_mapped", [40, 50, 41]], [[9334, 9334], "disallowed_STD3_mapped", [40, 51, 41]], [[9335, 9335], "disallowed_STD3_mapped", [40, 52, 41]], [[9336, 9336], "disallowed_STD3_mapped", [40, 53, 41]], [[9337, 9337], "disallowed_STD3_mapped", [40, 54, 41]], [[9338, 9338], "disallowed_STD3_mapped", [40, 55, 41]], [[9339, 9339], "disallowed_STD3_mapped", [40, 56, 41]], [[9340, 9340], "disallowed_STD3_mapped", [40, 57, 41]], [[9341, 9341], "disallowed_STD3_mapped", [40, 49, 48, 41]], [[9342, 9342], "disallowed_STD3_mapped", [40, 49, 49, 41]], [[9343, 9343], "disallowed_STD3_mapped", [40, 49, 50, 41]], [[9344, 9344], "disallowed_STD3_mapped", [40, 49, 51, 41]], [[9345, 9345], "disallowed_STD3_mapped", [40, 49, 52, 41]], [[9346, 9346], "disallowed_STD3_mapped", [40, 49, 53, 41]], [[9347, 9347], "disallowed_STD3_mapped", [40, 49, 54, 41]], [[9348, 9348], "disallowed_STD3_mapped", [40, 49, 55, 41]], [[9349, 9349], "disallowed_STD3_mapped", [40, 49, 56, 41]], [[9350, 9350], "disallowed_STD3_mapped", [40, 49, 57, 41]], [[9351, 9351], "disallowed_STD3_mapped", [40, 50, 48, 41]], [[9352, 9371], "disallowed"], [[9372, 9372], "disallowed_STD3_mapped", [40, 97, 41]], [[9373, 9373], "disallowed_STD3_mapped", [40, 98, 41]], [[9374, 9374], "disallowed_STD3_mapped", [40, 99, 41]], [[9375, 9375], "disallowed_STD3_mapped", [40, 100, 41]], [[9376, 9376], "disallowed_STD3_mapped", [40, 101, 41]], [[9377, 9377], "disallowed_STD3_mapped", [40, 102, 41]], [[9378, 9378], "disallowed_STD3_mapped", [40, 103, 41]], [[9379, 9379], "disallowed_STD3_mapped", [40, 104, 41]], [[9380, 9380], "disallowed_STD3_mapped", [40, 105, 41]], [[9381, 9381], "disallowed_STD3_mapped", [40, 106, 41]], [[9382, 9382], "disallowed_STD3_mapped", [40, 107, 41]], [[9383, 9383], "disallowed_STD3_mapped", [40, 108, 41]], [[9384, 9384], "disallowed_STD3_mapped", [40, 109, 41]], [[9385, 9385], "disallowed_STD3_mapped", [40, 110, 41]], [[9386, 9386], "disallowed_STD3_mapped", [40, 111, 41]], [[9387, 9387], "disallowed_STD3_mapped", [40, 112, 41]], [[9388, 9388], "disallowed_STD3_mapped", [40, 113, 41]], [[9389, 9389], "disallowed_STD3_mapped", [40, 114, 41]], [[9390, 9390], "disallowed_STD3_mapped", [40, 115, 41]], [[9391, 9391], "disallowed_STD3_mapped", [40, 116, 41]], [[9392, 9392], "disallowed_STD3_mapped", [40, 117, 41]], [[9393, 9393], "disallowed_STD3_mapped", [40, 118, 41]], [[9394, 9394], "disallowed_STD3_mapped", [40, 119, 41]], [[9395, 9395], "disallowed_STD3_mapped", [40, 120, 41]], [[9396, 9396], "disallowed_STD3_mapped", [40, 121, 41]], [[9397, 9397], "disallowed_STD3_mapped", [40, 122, 41]], [[9398, 9398], "mapped", [97]], [[9399, 9399], "mapped", [98]], [[9400, 9400], "mapped", [99]], [[9401, 9401], "mapped", [100]], [[9402, 9402], "mapped", [101]], [[9403, 9403], "mapped", [102]], [[9404, 9404], "mapped", [103]], [[9405, 9405], "mapped", [104]], [[9406, 9406], "mapped", [105]], [[9407, 9407], "mapped", [106]], [[9408, 9408], "mapped", [107]], [[9409, 9409], "mapped", [108]], [[9410, 9410], "mapped", [109]], [[9411, 9411], "mapped", [110]], [[9412, 9412], "mapped", [111]], [[9413, 9413], "mapped", [112]], [[9414, 9414], "mapped", [113]], [[9415, 9415], "mapped", [114]], [[9416, 9416], "mapped", [115]], [[9417, 9417], "mapped", [116]], [[9418, 9418], "mapped", [117]], [[9419, 9419], "mapped", [118]], [[9420, 9420], "mapped", [119]], [[9421, 9421], "mapped", [120]], [[9422, 9422], "mapped", [121]], [[9423, 9423], "mapped", [122]], [[9424, 9424], "mapped", [97]], [[9425, 9425], "mapped", [98]], [[9426, 9426], "mapped", [99]], [[9427, 9427], "mapped", [100]], [[9428, 9428], "mapped", [101]], [[9429, 9429], "mapped", [102]], [[9430, 9430], "mapped", [103]], [[9431, 9431], "mapped", [104]], [[9432, 9432], "mapped", [105]], [[9433, 9433], "mapped", [106]], [[9434, 9434], "mapped", [107]], [[9435, 9435], "mapped", [108]], [[9436, 9436], "mapped", [109]], [[9437, 9437], "mapped", [110]], [[9438, 9438], "mapped", [111]], [[9439, 9439], "mapped", [112]], [[9440, 9440], "mapped", [113]], [[9441, 9441], "mapped", [114]], [[9442, 9442], "mapped", [115]], [[9443, 9443], "mapped", [116]], [[9444, 9444], "mapped", [117]], [[9445, 9445], "mapped", [118]], [[9446, 9446], "mapped", [119]], [[9447, 9447], "mapped", [120]], [[9448, 9448], "mapped", [121]], [[9449, 9449], "mapped", [122]], [[9450, 9450], "mapped", [48]], [[9451, 9470], "valid", [], "NV8"], [[9471, 9471], "valid", [], "NV8"], [[9472, 9621], "valid", [], "NV8"], [[9622, 9631], "valid", [], "NV8"], [[9632, 9711], "valid", [], "NV8"], [[9712, 9719], "valid", [], "NV8"], [[9720, 9727], "valid", [], "NV8"], [[9728, 9747], "valid", [], "NV8"], [[9748, 9749], "valid", [], "NV8"], [[9750, 9751], "valid", [], "NV8"], [[9752, 9752], "valid", [], "NV8"], [[9753, 9753], "valid", [], "NV8"], [[9754, 9839], "valid", [], "NV8"], [[9840, 9841], "valid", [], "NV8"], [[9842, 9853], "valid", [], "NV8"], [[9854, 9855], "valid", [], "NV8"], [[9856, 9865], "valid", [], "NV8"], [[9866, 9873], "valid", [], "NV8"], [[9874, 9884], "valid", [], "NV8"], [[9885, 9885], "valid", [], "NV8"], [[9886, 9887], "valid", [], "NV8"], [[9888, 9889], "valid", [], "NV8"], [[9890, 9905], "valid", [], "NV8"], [[9906, 9906], "valid", [], "NV8"], [[9907, 9916], "valid", [], "NV8"], [[9917, 9919], "valid", [], "NV8"], [[9920, 9923], "valid", [], "NV8"], [[9924, 9933], "valid", [], "NV8"], [[9934, 9934], "valid", [], "NV8"], [[9935, 9953], "valid", [], "NV8"], [[9954, 9954], "valid", [], "NV8"], [[9955, 9955], "valid", [], "NV8"], [[9956, 9959], "valid", [], "NV8"], [[9960, 9983], "valid", [], "NV8"], [[9984, 9984], "valid", [], "NV8"], [[9985, 9988], "valid", [], "NV8"], [[9989, 9989], "valid", [], "NV8"], [[9990, 9993], "valid", [], "NV8"], [[9994, 9995], "valid", [], "NV8"], [[9996, 10023], "valid", [], "NV8"], [[10024, 10024], "valid", [], "NV8"], [[10025, 10059], "valid", [], "NV8"], [[10060, 10060], "valid", [], "NV8"], [[10061, 10061], "valid", [], "NV8"], [[10062, 10062], "valid", [], "NV8"], [[10063, 10066], "valid", [], "NV8"], [[10067, 10069], "valid", [], "NV8"], [[10070, 10070], "valid", [], "NV8"], [[10071, 10071], "valid", [], "NV8"], [[10072, 10078], "valid", [], "NV8"], [[10079, 10080], "valid", [], "NV8"], [[10081, 10087], "valid", [], "NV8"], [[10088, 10101], "valid", [], "NV8"], [[10102, 10132], "valid", [], "NV8"], [[10133, 10135], "valid", [], "NV8"], [[10136, 10159], "valid", [], "NV8"], [[10160, 10160], "valid", [], "NV8"], [[10161, 10174], "valid", [], "NV8"], [[10175, 10175], "valid", [], "NV8"], [[10176, 10182], "valid", [], "NV8"], [[10183, 10186], "valid", [], "NV8"], [[10187, 10187], "valid", [], "NV8"], [[10188, 10188], "valid", [], "NV8"], [[10189, 10189], "valid", [], "NV8"], [[10190, 10191], "valid", [], "NV8"], [[10192, 10219], "valid", [], "NV8"], [[10220, 10223], "valid", [], "NV8"], [[10224, 10239], "valid", [], "NV8"], [[10240, 10495], "valid", [], "NV8"], [[10496, 10763], "valid", [], "NV8"], [[10764, 10764], "mapped", [8747, 8747, 8747, 8747]], [[10765, 10867], "valid", [], "NV8"], [[10868, 10868], "disallowed_STD3_mapped", [58, 58, 61]], [[10869, 10869], "disallowed_STD3_mapped", [61, 61]], [[10870, 10870], "disallowed_STD3_mapped", [61, 61, 61]], [[10871, 10971], "valid", [], "NV8"], [[10972, 10972], "mapped", [10973, 824]], [[10973, 11007], "valid", [], "NV8"], [[11008, 11021], "valid", [], "NV8"], [[11022, 11027], "valid", [], "NV8"], [[11028, 11034], "valid", [], "NV8"], [[11035, 11039], "valid", [], "NV8"], [[11040, 11043], "valid", [], "NV8"], [[11044, 11084], "valid", [], "NV8"], [[11085, 11087], "valid", [], "NV8"], [[11088, 11092], "valid", [], "NV8"], [[11093, 11097], "valid", [], "NV8"], [[11098, 11123], "valid", [], "NV8"], [[11124, 11125], "disallowed"], [[11126, 11157], "valid", [], "NV8"], [[11158, 11159], "disallowed"], [[11160, 11193], "valid", [], "NV8"], [[11194, 11196], "disallowed"], [[11197, 11208], "valid", [], "NV8"], [[11209, 11209], "disallowed"], [[11210, 11217], "valid", [], "NV8"], [[11218, 11243], "disallowed"], [[11244, 11247], "valid", [], "NV8"], [[11248, 11263], "disallowed"], [[11264, 11264], "mapped", [11312]], [[11265, 11265], "mapped", [11313]], [[11266, 11266], "mapped", [11314]], [[11267, 11267], "mapped", [11315]], [[11268, 11268], "mapped", [11316]], [[11269, 11269], "mapped", [11317]], [[11270, 11270], "mapped", [11318]], [[11271, 11271], "mapped", [11319]], [[11272, 11272], "mapped", [11320]], [[11273, 11273], "mapped", [11321]], [[11274, 11274], "mapped", [11322]], [[11275, 11275], "mapped", [11323]], [[11276, 11276], "mapped", [11324]], [[11277, 11277], "mapped", [11325]], [[11278, 11278], "mapped", [11326]], [[11279, 11279], "mapped", [11327]], [[11280, 11280], "mapped", [11328]], [[11281, 11281], "mapped", [11329]], [[11282, 11282], "mapped", [11330]], [[11283, 11283], "mapped", [11331]], [[11284, 11284], "mapped", [11332]], [[11285, 11285], "mapped", [11333]], [[11286, 11286], "mapped", [11334]], [[11287, 11287], "mapped", [11335]], [[11288, 11288], "mapped", [11336]], [[11289, 11289], "mapped", [11337]], [[11290, 11290], "mapped", [11338]], [[11291, 11291], "mapped", [11339]], [[11292, 11292], "mapped", [11340]], [[11293, 11293], "mapped", [11341]], [[11294, 11294], "mapped", [11342]], [[11295, 11295], "mapped", [11343]], [[11296, 11296], "mapped", [11344]], [[11297, 11297], "mapped", [11345]], [[11298, 11298], "mapped", [11346]], [[11299, 11299], "mapped", [11347]], [[11300, 11300], "mapped", [11348]], [[11301, 11301], "mapped", [11349]], [[11302, 11302], "mapped", [11350]], [[11303, 11303], "mapped", [11351]], [[11304, 11304], "mapped", [11352]], [[11305, 11305], "mapped", [11353]], [[11306, 11306], "mapped", [11354]], [[11307, 11307], "mapped", [11355]], [[11308, 11308], "mapped", [11356]], [[11309, 11309], "mapped", [11357]], [[11310, 11310], "mapped", [11358]], [[11311, 11311], "disallowed"], [[11312, 11358], "valid"], [[11359, 11359], "disallowed"], [[11360, 11360], "mapped", [11361]], [[11361, 11361], "valid"], [[11362, 11362], "mapped", [619]], [[11363, 11363], "mapped", [7549]], [[11364, 11364], "mapped", [637]], [[11365, 11366], "valid"], [[11367, 11367], "mapped", [11368]], [[11368, 11368], "valid"], [[11369, 11369], "mapped", [11370]], [[11370, 11370], "valid"], [[11371, 11371], "mapped", [11372]], [[11372, 11372], "valid"], [[11373, 11373], "mapped", [593]], [[11374, 11374], "mapped", [625]], [[11375, 11375], "mapped", [592]], [[11376, 11376], "mapped", [594]], [[11377, 11377], "valid"], [[11378, 11378], "mapped", [11379]], [[11379, 11379], "valid"], [[11380, 11380], "valid"], [[11381, 11381], "mapped", [11382]], [[11382, 11383], "valid"], [[11384, 11387], "valid"], [[11388, 11388], "mapped", [106]], [[11389, 11389], "mapped", [118]], [[11390, 11390], "mapped", [575]], [[11391, 11391], "mapped", [576]], [[11392, 11392], "mapped", [11393]], [[11393, 11393], "valid"], [[11394, 11394], "mapped", [11395]], [[11395, 11395], "valid"], [[11396, 11396], "mapped", [11397]], [[11397, 11397], "valid"], [[11398, 11398], "mapped", [11399]], [[11399, 11399], "valid"], [[11400, 11400], "mapped", [11401]], [[11401, 11401], "valid"], [[11402, 11402], "mapped", [11403]], [[11403, 11403], "valid"], [[11404, 11404], "mapped", [11405]], [[11405, 11405], "valid"], [[11406, 11406], "mapped", [11407]], [[11407, 11407], "valid"], [[11408, 11408], "mapped", [11409]], [[11409, 11409], "valid"], [[11410, 11410], "mapped", [11411]], [[11411, 11411], "valid"], [[11412, 11412], "mapped", [11413]], [[11413, 11413], "valid"], [[11414, 11414], "mapped", [11415]], [[11415, 11415], "valid"], [[11416, 11416], "mapped", [11417]], [[11417, 11417], "valid"], [[11418, 11418], "mapped", [11419]], [[11419, 11419], "valid"], [[11420, 11420], "mapped", [11421]], [[11421, 11421], "valid"], [[11422, 11422], "mapped", [11423]], [[11423, 11423], "valid"], [[11424, 11424], "mapped", [11425]], [[11425, 11425], "valid"], [[11426, 11426], "mapped", [11427]], [[11427, 11427], "valid"], [[11428, 11428], "mapped", [11429]], [[11429, 11429], "valid"], [[11430, 11430], "mapped", [11431]], [[11431, 11431], "valid"], [[11432, 11432], "mapped", [11433]], [[11433, 11433], "valid"], [[11434, 11434], "mapped", [11435]], [[11435, 11435], "valid"], [[11436, 11436], "mapped", [11437]], [[11437, 11437], "valid"], [[11438, 11438], "mapped", [11439]], [[11439, 11439], "valid"], [[11440, 11440], "mapped", [11441]], [[11441, 11441], "valid"], [[11442, 11442], "mapped", [11443]], [[11443, 11443], "valid"], [[11444, 11444], "mapped", [11445]], [[11445, 11445], "valid"], [[11446, 11446], "mapped", [11447]], [[11447, 11447], "valid"], [[11448, 11448], "mapped", [11449]], [[11449, 11449], "valid"], [[11450, 11450], "mapped", [11451]], [[11451, 11451], "valid"], [[11452, 11452], "mapped", [11453]], [[11453, 11453], "valid"], [[11454, 11454], "mapped", [11455]], [[11455, 11455], "valid"], [[11456, 11456], "mapped", [11457]], [[11457, 11457], "valid"], [[11458, 11458], "mapped", [11459]], [[11459, 11459], "valid"], [[11460, 11460], "mapped", [11461]], [[11461, 11461], "valid"], [[11462, 11462], "mapped", [11463]], [[11463, 11463], "valid"], [[11464, 11464], "mapped", [11465]], [[11465, 11465], "valid"], [[11466, 11466], "mapped", [11467]], [[11467, 11467], "valid"], [[11468, 11468], "mapped", [11469]], [[11469, 11469], "valid"], [[11470, 11470], "mapped", [11471]], [[11471, 11471], "valid"], [[11472, 11472], "mapped", [11473]], [[11473, 11473], "valid"], [[11474, 11474], "mapped", [11475]], [[11475, 11475], "valid"], [[11476, 11476], "mapped", [11477]], [[11477, 11477], "valid"], [[11478, 11478], "mapped", [11479]], [[11479, 11479], "valid"], [[11480, 11480], "mapped", [11481]], [[11481, 11481], "valid"], [[11482, 11482], "mapped", [11483]], [[11483, 11483], "valid"], [[11484, 11484], "mapped", [11485]], [[11485, 11485], "valid"], [[11486, 11486], "mapped", [11487]], [[11487, 11487], "valid"], [[11488, 11488], "mapped", [11489]], [[11489, 11489], "valid"], [[11490, 11490], "mapped", [11491]], [[11491, 11492], "valid"], [[11493, 11498], "valid", [], "NV8"], [[11499, 11499], "mapped", [11500]], [[11500, 11500], "valid"], [[11501, 11501], "mapped", [11502]], [[11502, 11505], "valid"], [[11506, 11506], "mapped", [11507]], [[11507, 11507], "valid"], [[11508, 11512], "disallowed"], [[11513, 11519], "valid", [], "NV8"], [[11520, 11557], "valid"], [[11558, 11558], "disallowed"], [[11559, 11559], "valid"], [[11560, 11564], "disallowed"], [[11565, 11565], "valid"], [[11566, 11567], "disallowed"], [[11568, 11621], "valid"], [[11622, 11623], "valid"], [[11624, 11630], "disallowed"], [[11631, 11631], "mapped", [11617]], [[11632, 11632], "valid", [], "NV8"], [[11633, 11646], "disallowed"], [[11647, 11647], "valid"], [[11648, 11670], "valid"], [[11671, 11679], "disallowed"], [[11680, 11686], "valid"], [[11687, 11687], "disallowed"], [[11688, 11694], "valid"], [[11695, 11695], "disallowed"], [[11696, 11702], "valid"], [[11703, 11703], "disallowed"], [[11704, 11710], "valid"], [[11711, 11711], "disallowed"], [[11712, 11718], "valid"], [[11719, 11719], "disallowed"], [[11720, 11726], "valid"], [[11727, 11727], "disallowed"], [[11728, 11734], "valid"], [[11735, 11735], "disallowed"], [[11736, 11742], "valid"], [[11743, 11743], "disallowed"], [[11744, 11775], "valid"], [[11776, 11799], "valid", [], "NV8"], [[11800, 11803], "valid", [], "NV8"], [[11804, 11805], "valid", [], "NV8"], [[11806, 11822], "valid", [], "NV8"], [[11823, 11823], "valid"], [[11824, 11824], "valid", [], "NV8"], [[11825, 11825], "valid", [], "NV8"], [[11826, 11835], "valid", [], "NV8"], [[11836, 11842], "valid", [], "NV8"], [[11843, 11903], "disallowed"], [[11904, 11929], "valid", [], "NV8"], [[11930, 11930], "disallowed"], [[11931, 11934], "valid", [], "NV8"], [[11935, 11935], "mapped", [27597]], [[11936, 12018], "valid", [], "NV8"], [[12019, 12019], "mapped", [40863]], [[12020, 12031], "disallowed"], [[12032, 12032], "mapped", [19968]], [[12033, 12033], "mapped", [20008]], [[12034, 12034], "mapped", [20022]], [[12035, 12035], "mapped", [20031]], [[12036, 12036], "mapped", [20057]], [[12037, 12037], "mapped", [20101]], [[12038, 12038], "mapped", [20108]], [[12039, 12039], "mapped", [20128]], [[12040, 12040], "mapped", [20154]], [[12041, 12041], "mapped", [20799]], [[12042, 12042], "mapped", [20837]], [[12043, 12043], "mapped", [20843]], [[12044, 12044], "mapped", [20866]], [[12045, 12045], "mapped", [20886]], [[12046, 12046], "mapped", [20907]], [[12047, 12047], "mapped", [20960]], [[12048, 12048], "mapped", [20981]], [[12049, 12049], "mapped", [20992]], [[12050, 12050], "mapped", [21147]], [[12051, 12051], "mapped", [21241]], [[12052, 12052], "mapped", [21269]], [[12053, 12053], "mapped", [21274]], [[12054, 12054], "mapped", [21304]], [[12055, 12055], "mapped", [21313]], [[12056, 12056], "mapped", [21340]], [[12057, 12057], "mapped", [21353]], [[12058, 12058], "mapped", [21378]], [[12059, 12059], "mapped", [21430]], [[12060, 12060], "mapped", [21448]], [[12061, 12061], "mapped", [21475]], [[12062, 12062], "mapped", [22231]], [[12063, 12063], "mapped", [22303]], [[12064, 12064], "mapped", [22763]], [[12065, 12065], "mapped", [22786]], [[12066, 12066], "mapped", [22794]], [[12067, 12067], "mapped", [22805]], [[12068, 12068], "mapped", [22823]], [[12069, 12069], "mapped", [22899]], [[12070, 12070], "mapped", [23376]], [[12071, 12071], "mapped", [23424]], [[12072, 12072], "mapped", [23544]], [[12073, 12073], "mapped", [23567]], [[12074, 12074], "mapped", [23586]], [[12075, 12075], "mapped", [23608]], [[12076, 12076], "mapped", [23662]], [[12077, 12077], "mapped", [23665]], [[12078, 12078], "mapped", [24027]], [[12079, 12079], "mapped", [24037]], [[12080, 12080], "mapped", [24049]], [[12081, 12081], "mapped", [24062]], [[12082, 12082], "mapped", [24178]], [[12083, 12083], "mapped", [24186]], [[12084, 12084], "mapped", [24191]], [[12085, 12085], "mapped", [24308]], [[12086, 12086], "mapped", [24318]], [[12087, 12087], "mapped", [24331]], [[12088, 12088], "mapped", [24339]], [[12089, 12089], "mapped", [24400]], [[12090, 12090], "mapped", [24417]], [[12091, 12091], "mapped", [24435]], [[12092, 12092], "mapped", [24515]], [[12093, 12093], "mapped", [25096]], [[12094, 12094], "mapped", [25142]], [[12095, 12095], "mapped", [25163]], [[12096, 12096], "mapped", [25903]], [[12097, 12097], "mapped", [25908]], [[12098, 12098], "mapped", [25991]], [[12099, 12099], "mapped", [26007]], [[12100, 12100], "mapped", [26020]], [[12101, 12101], "mapped", [26041]], [[12102, 12102], "mapped", [26080]], [[12103, 12103], "mapped", [26085]], [[12104, 12104], "mapped", [26352]], [[12105, 12105], "mapped", [26376]], [[12106, 12106], "mapped", [26408]], [[12107, 12107], "mapped", [27424]], [[12108, 12108], "mapped", [27490]], [[12109, 12109], "mapped", [27513]], [[12110, 12110], "mapped", [27571]], [[12111, 12111], "mapped", [27595]], [[12112, 12112], "mapped", [27604]], [[12113, 12113], "mapped", [27611]], [[12114, 12114], "mapped", [27663]], [[12115, 12115], "mapped", [27668]], [[12116, 12116], "mapped", [27700]], [[12117, 12117], "mapped", [28779]], [[12118, 12118], "mapped", [29226]], [[12119, 12119], "mapped", [29238]], [[12120, 12120], "mapped", [29243]], [[12121, 12121], "mapped", [29247]], [[12122, 12122], "mapped", [29255]], [[12123, 12123], "mapped", [29273]], [[12124, 12124], "mapped", [29275]], [[12125, 12125], "mapped", [29356]], [[12126, 12126], "mapped", [29572]], [[12127, 12127], "mapped", [29577]], [[12128, 12128], "mapped", [29916]], [[12129, 12129], "mapped", [29926]], [[12130, 12130], "mapped", [29976]], [[12131, 12131], "mapped", [29983]], [[12132, 12132], "mapped", [29992]], [[12133, 12133], "mapped", [3e4]], [[12134, 12134], "mapped", [30091]], [[12135, 12135], "mapped", [30098]], [[12136, 12136], "mapped", [30326]], [[12137, 12137], "mapped", [30333]], [[12138, 12138], "mapped", [30382]], [[12139, 12139], "mapped", [30399]], [[12140, 12140], "mapped", [30446]], [[12141, 12141], "mapped", [30683]], [[12142, 12142], "mapped", [30690]], [[12143, 12143], "mapped", [30707]], [[12144, 12144], "mapped", [31034]], [[12145, 12145], "mapped", [31160]], [[12146, 12146], "mapped", [31166]], [[12147, 12147], "mapped", [31348]], [[12148, 12148], "mapped", [31435]], [[12149, 12149], "mapped", [31481]], [[12150, 12150], "mapped", [31859]], [[12151, 12151], "mapped", [31992]], [[12152, 12152], "mapped", [32566]], [[12153, 12153], "mapped", [32593]], [[12154, 12154], "mapped", [32650]], [[12155, 12155], "mapped", [32701]], [[12156, 12156], "mapped", [32769]], [[12157, 12157], "mapped", [32780]], [[12158, 12158], "mapped", [32786]], [[12159, 12159], "mapped", [32819]], [[12160, 12160], "mapped", [32895]], [[12161, 12161], "mapped", [32905]], [[12162, 12162], "mapped", [33251]], [[12163, 12163], "mapped", [33258]], [[12164, 12164], "mapped", [33267]], [[12165, 12165], "mapped", [33276]], [[12166, 12166], "mapped", [33292]], [[12167, 12167], "mapped", [33307]], [[12168, 12168], "mapped", [33311]], [[12169, 12169], "mapped", [33390]], [[12170, 12170], "mapped", [33394]], [[12171, 12171], "mapped", [33400]], [[12172, 12172], "mapped", [34381]], [[12173, 12173], "mapped", [34411]], [[12174, 12174], "mapped", [34880]], [[12175, 12175], "mapped", [34892]], [[12176, 12176], "mapped", [34915]], [[12177, 12177], "mapped", [35198]], [[12178, 12178], "mapped", [35211]], [[12179, 12179], "mapped", [35282]], [[12180, 12180], "mapped", [35328]], [[12181, 12181], "mapped", [35895]], [[12182, 12182], "mapped", [35910]], [[12183, 12183], "mapped", [35925]], [[12184, 12184], "mapped", [35960]], [[12185, 12185], "mapped", [35997]], [[12186, 12186], "mapped", [36196]], [[12187, 12187], "mapped", [36208]], [[12188, 12188], "mapped", [36275]], [[12189, 12189], "mapped", [36523]], [[12190, 12190], "mapped", [36554]], [[12191, 12191], "mapped", [36763]], [[12192, 12192], "mapped", [36784]], [[12193, 12193], "mapped", [36789]], [[12194, 12194], "mapped", [37009]], [[12195, 12195], "mapped", [37193]], [[12196, 12196], "mapped", [37318]], [[12197, 12197], "mapped", [37324]], [[12198, 12198], "mapped", [37329]], [[12199, 12199], "mapped", [38263]], [[12200, 12200], "mapped", [38272]], [[12201, 12201], "mapped", [38428]], [[12202, 12202], "mapped", [38582]], [[12203, 12203], "mapped", [38585]], [[12204, 12204], "mapped", [38632]], [[12205, 12205], "mapped", [38737]], [[12206, 12206], "mapped", [38750]], [[12207, 12207], "mapped", [38754]], [[12208, 12208], "mapped", [38761]], [[12209, 12209], "mapped", [38859]], [[12210, 12210], "mapped", [38893]], [[12211, 12211], "mapped", [38899]], [[12212, 12212], "mapped", [38913]], [[12213, 12213], "mapped", [39080]], [[12214, 12214], "mapped", [39131]], [[12215, 12215], "mapped", [39135]], [[12216, 12216], "mapped", [39318]], [[12217, 12217], "mapped", [39321]], [[12218, 12218], "mapped", [39340]], [[12219, 12219], "mapped", [39592]], [[12220, 12220], "mapped", [39640]], [[12221, 12221], "mapped", [39647]], [[12222, 12222], "mapped", [39717]], [[12223, 12223], "mapped", [39727]], [[12224, 12224], "mapped", [39730]], [[12225, 12225], "mapped", [39740]], [[12226, 12226], "mapped", [39770]], [[12227, 12227], "mapped", [40165]], [[12228, 12228], "mapped", [40565]], [[12229, 12229], "mapped", [40575]], [[12230, 12230], "mapped", [40613]], [[12231, 12231], "mapped", [40635]], [[12232, 12232], "mapped", [40643]], [[12233, 12233], "mapped", [40653]], [[12234, 12234], "mapped", [40657]], [[12235, 12235], "mapped", [40697]], [[12236, 12236], "mapped", [40701]], [[12237, 12237], "mapped", [40718]], [[12238, 12238], "mapped", [40723]], [[12239, 12239], "mapped", [40736]], [[12240, 12240], "mapped", [40763]], [[12241, 12241], "mapped", [40778]], [[12242, 12242], "mapped", [40786]], [[12243, 12243], "mapped", [40845]], [[12244, 12244], "mapped", [40860]], [[12245, 12245], "mapped", [40864]], [[12246, 12271], "disallowed"], [[12272, 12283], "disallowed"], [[12284, 12287], "disallowed"], [[12288, 12288], "disallowed_STD3_mapped", [32]], [[12289, 12289], "valid", [], "NV8"], [[12290, 12290], "mapped", [46]], [[12291, 12292], "valid", [], "NV8"], [[12293, 12295], "valid"], [[12296, 12329], "valid", [], "NV8"], [[12330, 12333], "valid"], [[12334, 12341], "valid", [], "NV8"], [[12342, 12342], "mapped", [12306]], [[12343, 12343], "valid", [], "NV8"], [[12344, 12344], "mapped", [21313]], [[12345, 12345], "mapped", [21316]], [[12346, 12346], "mapped", [21317]], [[12347, 12347], "valid", [], "NV8"], [[12348, 12348], "valid"], [[12349, 12349], "valid", [], "NV8"], [[12350, 12350], "valid", [], "NV8"], [[12351, 12351], "valid", [], "NV8"], [[12352, 12352], "disallowed"], [[12353, 12436], "valid"], [[12437, 12438], "valid"], [[12439, 12440], "disallowed"], [[12441, 12442], "valid"], [[12443, 12443], "disallowed_STD3_mapped", [32, 12441]], [[12444, 12444], "disallowed_STD3_mapped", [32, 12442]], [[12445, 12446], "valid"], [[12447, 12447], "mapped", [12424, 12426]], [[12448, 12448], "valid", [], "NV8"], [[12449, 12542], "valid"], [[12543, 12543], "mapped", [12467, 12488]], [[12544, 12548], "disallowed"], [[12549, 12588], "valid"], [[12589, 12589], "valid"], [[12590, 12592], "disallowed"], [[12593, 12593], "mapped", [4352]], [[12594, 12594], "mapped", [4353]], [[12595, 12595], "mapped", [4522]], [[12596, 12596], "mapped", [4354]], [[12597, 12597], "mapped", [4524]], [[12598, 12598], "mapped", [4525]], [[12599, 12599], "mapped", [4355]], [[12600, 12600], "mapped", [4356]], [[12601, 12601], "mapped", [4357]], [[12602, 12602], "mapped", [4528]], [[12603, 12603], "mapped", [4529]], [[12604, 12604], "mapped", [4530]], [[12605, 12605], "mapped", [4531]], [[12606, 12606], "mapped", [4532]], [[12607, 12607], "mapped", [4533]], [[12608, 12608], "mapped", [4378]], [[12609, 12609], "mapped", [4358]], [[12610, 12610], "mapped", [4359]], [[12611, 12611], "mapped", [4360]], [[12612, 12612], "mapped", [4385]], [[12613, 12613], "mapped", [4361]], [[12614, 12614], "mapped", [4362]], [[12615, 12615], "mapped", [4363]], [[12616, 12616], "mapped", [4364]], [[12617, 12617], "mapped", [4365]], [[12618, 12618], "mapped", [4366]], [[12619, 12619], "mapped", [4367]], [[12620, 12620], "mapped", [4368]], [[12621, 12621], "mapped", [4369]], [[12622, 12622], "mapped", [4370]], [[12623, 12623], "mapped", [4449]], [[12624, 12624], "mapped", [4450]], [[12625, 12625], "mapped", [4451]], [[12626, 12626], "mapped", [4452]], [[12627, 12627], "mapped", [4453]], [[12628, 12628], "mapped", [4454]], [[12629, 12629], "mapped", [4455]], [[12630, 12630], "mapped", [4456]], [[12631, 12631], "mapped", [4457]], [[12632, 12632], "mapped", [4458]], [[12633, 12633], "mapped", [4459]], [[12634, 12634], "mapped", [4460]], [[12635, 12635], "mapped", [4461]], [[12636, 12636], "mapped", [4462]], [[12637, 12637], "mapped", [4463]], [[12638, 12638], "mapped", [4464]], [[12639, 12639], "mapped", [4465]], [[12640, 12640], "mapped", [4466]], [[12641, 12641], "mapped", [4467]], [[12642, 12642], "mapped", [4468]], [[12643, 12643], "mapped", [4469]], [[12644, 12644], "disallowed"], [[12645, 12645], "mapped", [4372]], [[12646, 12646], "mapped", [4373]], [[12647, 12647], "mapped", [4551]], [[12648, 12648], "mapped", [4552]], [[12649, 12649], "mapped", [4556]], [[12650, 12650], "mapped", [4558]], [[12651, 12651], "mapped", [4563]], [[12652, 12652], "mapped", [4567]], [[12653, 12653], "mapped", [4569]], [[12654, 12654], "mapped", [4380]], [[12655, 12655], "mapped", [4573]], [[12656, 12656], "mapped", [4575]], [[12657, 12657], "mapped", [4381]], [[12658, 12658], "mapped", [4382]], [[12659, 12659], "mapped", [4384]], [[12660, 12660], "mapped", [4386]], [[12661, 12661], "mapped", [4387]], [[12662, 12662], "mapped", [4391]], [[12663, 12663], "mapped", [4393]], [[12664, 12664], "mapped", [4395]], [[12665, 12665], "mapped", [4396]], [[12666, 12666], "mapped", [4397]], [[12667, 12667], "mapped", [4398]], [[12668, 12668], "mapped", [4399]], [[12669, 12669], "mapped", [4402]], [[12670, 12670], "mapped", [4406]], [[12671, 12671], "mapped", [4416]], [[12672, 12672], "mapped", [4423]], [[12673, 12673], "mapped", [4428]], [[12674, 12674], "mapped", [4593]], [[12675, 12675], "mapped", [4594]], [[12676, 12676], "mapped", [4439]], [[12677, 12677], "mapped", [4440]], [[12678, 12678], "mapped", [4441]], [[12679, 12679], "mapped", [4484]], [[12680, 12680], "mapped", [4485]], [[12681, 12681], "mapped", [4488]], [[12682, 12682], "mapped", [4497]], [[12683, 12683], "mapped", [4498]], [[12684, 12684], "mapped", [4500]], [[12685, 12685], "mapped", [4510]], [[12686, 12686], "mapped", [4513]], [[12687, 12687], "disallowed"], [[12688, 12689], "valid", [], "NV8"], [[12690, 12690], "mapped", [19968]], [[12691, 12691], "mapped", [20108]], [[12692, 12692], "mapped", [19977]], [[12693, 12693], "mapped", [22235]], [[12694, 12694], "mapped", [19978]], [[12695, 12695], "mapped", [20013]], [[12696, 12696], "mapped", [19979]], [[12697, 12697], "mapped", [30002]], [[12698, 12698], "mapped", [20057]], [[12699, 12699], "mapped", [19993]], [[12700, 12700], "mapped", [19969]], [[12701, 12701], "mapped", [22825]], [[12702, 12702], "mapped", [22320]], [[12703, 12703], "mapped", [20154]], [[12704, 12727], "valid"], [[12728, 12730], "valid"], [[12731, 12735], "disallowed"], [[12736, 12751], "valid", [], "NV8"], [[12752, 12771], "valid", [], "NV8"], [[12772, 12783], "disallowed"], [[12784, 12799], "valid"], [[12800, 12800], "disallowed_STD3_mapped", [40, 4352, 41]], [[12801, 12801], "disallowed_STD3_mapped", [40, 4354, 41]], [[12802, 12802], "disallowed_STD3_mapped", [40, 4355, 41]], [[12803, 12803], "disallowed_STD3_mapped", [40, 4357, 41]], [[12804, 12804], "disallowed_STD3_mapped", [40, 4358, 41]], [[12805, 12805], "disallowed_STD3_mapped", [40, 4359, 41]], [[12806, 12806], "disallowed_STD3_mapped", [40, 4361, 41]], [[12807, 12807], "disallowed_STD3_mapped", [40, 4363, 41]], [[12808, 12808], "disallowed_STD3_mapped", [40, 4364, 41]], [[12809, 12809], "disallowed_STD3_mapped", [40, 4366, 41]], [[12810, 12810], "disallowed_STD3_mapped", [40, 4367, 41]], [[12811, 12811], "disallowed_STD3_mapped", [40, 4368, 41]], [[12812, 12812], "disallowed_STD3_mapped", [40, 4369, 41]], [[12813, 12813], "disallowed_STD3_mapped", [40, 4370, 41]], [[12814, 12814], "disallowed_STD3_mapped", [40, 44032, 41]], [[12815, 12815], "disallowed_STD3_mapped", [40, 45208, 41]], [[12816, 12816], "disallowed_STD3_mapped", [40, 45796, 41]], [[12817, 12817], "disallowed_STD3_mapped", [40, 46972, 41]], [[12818, 12818], "disallowed_STD3_mapped", [40, 47560, 41]], [[12819, 12819], "disallowed_STD3_mapped", [40, 48148, 41]], [[12820, 12820], "disallowed_STD3_mapped", [40, 49324, 41]], [[12821, 12821], "disallowed_STD3_mapped", [40, 50500, 41]], [[12822, 12822], "disallowed_STD3_mapped", [40, 51088, 41]], [[12823, 12823], "disallowed_STD3_mapped", [40, 52264, 41]], [[12824, 12824], "disallowed_STD3_mapped", [40, 52852, 41]], [[12825, 12825], "disallowed_STD3_mapped", [40, 53440, 41]], [[12826, 12826], "disallowed_STD3_mapped", [40, 54028, 41]], [[12827, 12827], "disallowed_STD3_mapped", [40, 54616, 41]], [[12828, 12828], "disallowed_STD3_mapped", [40, 51452, 41]], [[12829, 12829], "disallowed_STD3_mapped", [40, 50724, 51204, 41]], [[12830, 12830], "disallowed_STD3_mapped", [40, 50724, 54980, 41]], [[12831, 12831], "disallowed"], [[12832, 12832], "disallowed_STD3_mapped", [40, 19968, 41]], [[12833, 12833], "disallowed_STD3_mapped", [40, 20108, 41]], [[12834, 12834], "disallowed_STD3_mapped", [40, 19977, 41]], [[12835, 12835], "disallowed_STD3_mapped", [40, 22235, 41]], [[12836, 12836], "disallowed_STD3_mapped", [40, 20116, 41]], [[12837, 12837], "disallowed_STD3_mapped", [40, 20845, 41]], [[12838, 12838], "disallowed_STD3_mapped", [40, 19971, 41]], [[12839, 12839], "disallowed_STD3_mapped", [40, 20843, 41]], [[12840, 12840], "disallowed_STD3_mapped", [40, 20061, 41]], [[12841, 12841], "disallowed_STD3_mapped", [40, 21313, 41]], [[12842, 12842], "disallowed_STD3_mapped", [40, 26376, 41]], [[12843, 12843], "disallowed_STD3_mapped", [40, 28779, 41]], [[12844, 12844], "disallowed_STD3_mapped", [40, 27700, 41]], [[12845, 12845], "disallowed_STD3_mapped", [40, 26408, 41]], [[12846, 12846], "disallowed_STD3_mapped", [40, 37329, 41]], [[12847, 12847], "disallowed_STD3_mapped", [40, 22303, 41]], [[12848, 12848], "disallowed_STD3_mapped", [40, 26085, 41]], [[12849, 12849], "disallowed_STD3_mapped", [40, 26666, 41]], [[12850, 12850], "disallowed_STD3_mapped", [40, 26377, 41]], [[12851, 12851], "disallowed_STD3_mapped", [40, 31038, 41]], [[12852, 12852], "disallowed_STD3_mapped", [40, 21517, 41]], [[12853, 12853], "disallowed_STD3_mapped", [40, 29305, 41]], [[12854, 12854], "disallowed_STD3_mapped", [40, 36001, 41]], [[12855, 12855], "disallowed_STD3_mapped", [40, 31069, 41]], [[12856, 12856], "disallowed_STD3_mapped", [40, 21172, 41]], [[12857, 12857], "disallowed_STD3_mapped", [40, 20195, 41]], [[12858, 12858], "disallowed_STD3_mapped", [40, 21628, 41]], [[12859, 12859], "disallowed_STD3_mapped", [40, 23398, 41]], [[12860, 12860], "disallowed_STD3_mapped", [40, 30435, 41]], [[12861, 12861], "disallowed_STD3_mapped", [40, 20225, 41]], [[12862, 12862], "disallowed_STD3_mapped", [40, 36039, 41]], [[12863, 12863], "disallowed_STD3_mapped", [40, 21332, 41]], [[12864, 12864], "disallowed_STD3_mapped", [40, 31085, 41]], [[12865, 12865], "disallowed_STD3_mapped", [40, 20241, 41]], [[12866, 12866], "disallowed_STD3_mapped", [40, 33258, 41]], [[12867, 12867], "disallowed_STD3_mapped", [40, 33267, 41]], [[12868, 12868], "mapped", [21839]], [[12869, 12869], "mapped", [24188]], [[12870, 12870], "mapped", [25991]], [[12871, 12871], "mapped", [31631]], [[12872, 12879], "valid", [], "NV8"], [[12880, 12880], "mapped", [112, 116, 101]], [[12881, 12881], "mapped", [50, 49]], [[12882, 12882], "mapped", [50, 50]], [[12883, 12883], "mapped", [50, 51]], [[12884, 12884], "mapped", [50, 52]], [[12885, 12885], "mapped", [50, 53]], [[12886, 12886], "mapped", [50, 54]], [[12887, 12887], "mapped", [50, 55]], [[12888, 12888], "mapped", [50, 56]], [[12889, 12889], "mapped", [50, 57]], [[12890, 12890], "mapped", [51, 48]], [[12891, 12891], "mapped", [51, 49]], [[12892, 12892], "mapped", [51, 50]], [[12893, 12893], "mapped", [51, 51]], [[12894, 12894], "mapped", [51, 52]], [[12895, 12895], "mapped", [51, 53]], [[12896, 12896], "mapped", [4352]], [[12897, 12897], "mapped", [4354]], [[12898, 12898], "mapped", [4355]], [[12899, 12899], "mapped", [4357]], [[12900, 12900], "mapped", [4358]], [[12901, 12901], "mapped", [4359]], [[12902, 12902], "mapped", [4361]], [[12903, 12903], "mapped", [4363]], [[12904, 12904], "mapped", [4364]], [[12905, 12905], "mapped", [4366]], [[12906, 12906], "mapped", [4367]], [[12907, 12907], "mapped", [4368]], [[12908, 12908], "mapped", [4369]], [[12909, 12909], "mapped", [4370]], [[12910, 12910], "mapped", [44032]], [[12911, 12911], "mapped", [45208]], [[12912, 12912], "mapped", [45796]], [[12913, 12913], "mapped", [46972]], [[12914, 12914], "mapped", [47560]], [[12915, 12915], "mapped", [48148]], [[12916, 12916], "mapped", [49324]], [[12917, 12917], "mapped", [50500]], [[12918, 12918], "mapped", [51088]], [[12919, 12919], "mapped", [52264]], [[12920, 12920], "mapped", [52852]], [[12921, 12921], "mapped", [53440]], [[12922, 12922], "mapped", [54028]], [[12923, 12923], "mapped", [54616]], [[12924, 12924], "mapped", [52280, 44256]], [[12925, 12925], "mapped", [51452, 51032]], [[12926, 12926], "mapped", [50864]], [[12927, 12927], "valid", [], "NV8"], [[12928, 12928], "mapped", [19968]], [[12929, 12929], "mapped", [20108]], [[12930, 12930], "mapped", [19977]], [[12931, 12931], "mapped", [22235]], [[12932, 12932], "mapped", [20116]], [[12933, 12933], "mapped", [20845]], [[12934, 12934], "mapped", [19971]], [[12935, 12935], "mapped", [20843]], [[12936, 12936], "mapped", [20061]], [[12937, 12937], "mapped", [21313]], [[12938, 12938], "mapped", [26376]], [[12939, 12939], "mapped", [28779]], [[12940, 12940], "mapped", [27700]], [[12941, 12941], "mapped", [26408]], [[12942, 12942], "mapped", [37329]], [[12943, 12943], "mapped", [22303]], [[12944, 12944], "mapped", [26085]], [[12945, 12945], "mapped", [26666]], [[12946, 12946], "mapped", [26377]], [[12947, 12947], "mapped", [31038]], [[12948, 12948], "mapped", [21517]], [[12949, 12949], "mapped", [29305]], [[12950, 12950], "mapped", [36001]], [[12951, 12951], "mapped", [31069]], [[12952, 12952], "mapped", [21172]], [[12953, 12953], "mapped", [31192]], [[12954, 12954], "mapped", [30007]], [[12955, 12955], "mapped", [22899]], [[12956, 12956], "mapped", [36969]], [[12957, 12957], "mapped", [20778]], [[12958, 12958], "mapped", [21360]], [[12959, 12959], "mapped", [27880]], [[12960, 12960], "mapped", [38917]], [[12961, 12961], "mapped", [20241]], [[12962, 12962], "mapped", [20889]], [[12963, 12963], "mapped", [27491]], [[12964, 12964], "mapped", [19978]], [[12965, 12965], "mapped", [20013]], [[12966, 12966], "mapped", [19979]], [[12967, 12967], "mapped", [24038]], [[12968, 12968], "mapped", [21491]], [[12969, 12969], "mapped", [21307]], [[12970, 12970], "mapped", [23447]], [[12971, 12971], "mapped", [23398]], [[12972, 12972], "mapped", [30435]], [[12973, 12973], "mapped", [20225]], [[12974, 12974], "mapped", [36039]], [[12975, 12975], "mapped", [21332]], [[12976, 12976], "mapped", [22812]], [[12977, 12977], "mapped", [51, 54]], [[12978, 12978], "mapped", [51, 55]], [[12979, 12979], "mapped", [51, 56]], [[12980, 12980], "mapped", [51, 57]], [[12981, 12981], "mapped", [52, 48]], [[12982, 12982], "mapped", [52, 49]], [[12983, 12983], "mapped", [52, 50]], [[12984, 12984], "mapped", [52, 51]], [[12985, 12985], "mapped", [52, 52]], [[12986, 12986], "mapped", [52, 53]], [[12987, 12987], "mapped", [52, 54]], [[12988, 12988], "mapped", [52, 55]], [[12989, 12989], "mapped", [52, 56]], [[12990, 12990], "mapped", [52, 57]], [[12991, 12991], "mapped", [53, 48]], [[12992, 12992], "mapped", [49, 26376]], [[12993, 12993], "mapped", [50, 26376]], [[12994, 12994], "mapped", [51, 26376]], [[12995, 12995], "mapped", [52, 26376]], [[12996, 12996], "mapped", [53, 26376]], [[12997, 12997], "mapped", [54, 26376]], [[12998, 12998], "mapped", [55, 26376]], [[12999, 12999], "mapped", [56, 26376]], [[13e3, 13e3], "mapped", [57, 26376]], [[13001, 13001], "mapped", [49, 48, 26376]], [[13002, 13002], "mapped", [49, 49, 26376]], [[13003, 13003], "mapped", [49, 50, 26376]], [[13004, 13004], "mapped", [104, 103]], [[13005, 13005], "mapped", [101, 114, 103]], [[13006, 13006], "mapped", [101, 118]], [[13007, 13007], "mapped", [108, 116, 100]], [[13008, 13008], "mapped", [12450]], [[13009, 13009], "mapped", [12452]], [[13010, 13010], "mapped", [12454]], [[13011, 13011], "mapped", [12456]], [[13012, 13012], "mapped", [12458]], [[13013, 13013], "mapped", [12459]], [[13014, 13014], "mapped", [12461]], [[13015, 13015], "mapped", [12463]], [[13016, 13016], "mapped", [12465]], [[13017, 13017], "mapped", [12467]], [[13018, 13018], "mapped", [12469]], [[13019, 13019], "mapped", [12471]], [[13020, 13020], "mapped", [12473]], [[13021, 13021], "mapped", [12475]], [[13022, 13022], "mapped", [12477]], [[13023, 13023], "mapped", [12479]], [[13024, 13024], "mapped", [12481]], [[13025, 13025], "mapped", [12484]], [[13026, 13026], "mapped", [12486]], [[13027, 13027], "mapped", [12488]], [[13028, 13028], "mapped", [12490]], [[13029, 13029], "mapped", [12491]], [[13030, 13030], "mapped", [12492]], [[13031, 13031], "mapped", [12493]], [[13032, 13032], "mapped", [12494]], [[13033, 13033], "mapped", [12495]], [[13034, 13034], "mapped", [12498]], [[13035, 13035], "mapped", [12501]], [[13036, 13036], "mapped", [12504]], [[13037, 13037], "mapped", [12507]], [[13038, 13038], "mapped", [12510]], [[13039, 13039], "mapped", [12511]], [[13040, 13040], "mapped", [12512]], [[13041, 13041], "mapped", [12513]], [[13042, 13042], "mapped", [12514]], [[13043, 13043], "mapped", [12516]], [[13044, 13044], "mapped", [12518]], [[13045, 13045], "mapped", [12520]], [[13046, 13046], "mapped", [12521]], [[13047, 13047], "mapped", [12522]], [[13048, 13048], "mapped", [12523]], [[13049, 13049], "mapped", [12524]], [[13050, 13050], "mapped", [12525]], [[13051, 13051], "mapped", [12527]], [[13052, 13052], "mapped", [12528]], [[13053, 13053], "mapped", [12529]], [[13054, 13054], "mapped", [12530]], [[13055, 13055], "disallowed"], [[13056, 13056], "mapped", [12450, 12497, 12540, 12488]], [[13057, 13057], "mapped", [12450, 12523, 12501, 12449]], [[13058, 13058], "mapped", [12450, 12531, 12506, 12450]], [[13059, 13059], "mapped", [12450, 12540, 12523]], [[13060, 13060], "mapped", [12452, 12491, 12531, 12464]], [[13061, 13061], "mapped", [12452, 12531, 12481]], [[13062, 13062], "mapped", [12454, 12457, 12531]], [[13063, 13063], "mapped", [12456, 12473, 12463, 12540, 12489]], [[13064, 13064], "mapped", [12456, 12540, 12459, 12540]], [[13065, 13065], "mapped", [12458, 12531, 12473]], [[13066, 13066], "mapped", [12458, 12540, 12512]], [[13067, 13067], "mapped", [12459, 12452, 12522]], [[13068, 13068], "mapped", [12459, 12521, 12483, 12488]], [[13069, 13069], "mapped", [12459, 12525, 12522, 12540]], [[13070, 13070], "mapped", [12460, 12525, 12531]], [[13071, 13071], "mapped", [12460, 12531, 12510]], [[13072, 13072], "mapped", [12462, 12460]], [[13073, 13073], "mapped", [12462, 12491, 12540]], [[13074, 13074], "mapped", [12461, 12517, 12522, 12540]], [[13075, 13075], "mapped", [12462, 12523, 12480, 12540]], [[13076, 13076], "mapped", [12461, 12525]], [[13077, 13077], "mapped", [12461, 12525, 12464, 12521, 12512]], [[13078, 13078], "mapped", [12461, 12525, 12513, 12540, 12488, 12523]], [[13079, 13079], "mapped", [12461, 12525, 12527, 12483, 12488]], [[13080, 13080], "mapped", [12464, 12521, 12512]], [[13081, 13081], "mapped", [12464, 12521, 12512, 12488, 12531]], [[13082, 13082], "mapped", [12463, 12523, 12476, 12452, 12525]], [[13083, 13083], "mapped", [12463, 12525, 12540, 12493]], [[13084, 13084], "mapped", [12465, 12540, 12473]], [[13085, 13085], "mapped", [12467, 12523, 12490]], [[13086, 13086], "mapped", [12467, 12540, 12509]], [[13087, 13087], "mapped", [12469, 12452, 12463, 12523]], [[13088, 13088], "mapped", [12469, 12531, 12481, 12540, 12512]], [[13089, 13089], "mapped", [12471, 12522, 12531, 12464]], [[13090, 13090], "mapped", [12475, 12531, 12481]], [[13091, 13091], "mapped", [12475, 12531, 12488]], [[13092, 13092], "mapped", [12480, 12540, 12473]], [[13093, 13093], "mapped", [12487, 12471]], [[13094, 13094], "mapped", [12489, 12523]], [[13095, 13095], "mapped", [12488, 12531]], [[13096, 13096], "mapped", [12490, 12494]], [[13097, 13097], "mapped", [12494, 12483, 12488]], [[13098, 13098], "mapped", [12495, 12452, 12484]], [[13099, 13099], "mapped", [12497, 12540, 12475, 12531, 12488]], [[13100, 13100], "mapped", [12497, 12540, 12484]], [[13101, 13101], "mapped", [12496, 12540, 12524, 12523]], [[13102, 13102], "mapped", [12500, 12450, 12473, 12488, 12523]], [[13103, 13103], "mapped", [12500, 12463, 12523]], [[13104, 13104], "mapped", [12500, 12467]], [[13105, 13105], "mapped", [12499, 12523]], [[13106, 13106], "mapped", [12501, 12449, 12521, 12483, 12489]], [[13107, 13107], "mapped", [12501, 12451, 12540, 12488]], [[13108, 13108], "mapped", [12502, 12483, 12471, 12455, 12523]], [[13109, 13109], "mapped", [12501, 12521, 12531]], [[13110, 13110], "mapped", [12504, 12463, 12479, 12540, 12523]], [[13111, 13111], "mapped", [12506, 12477]], [[13112, 13112], "mapped", [12506, 12491, 12498]], [[13113, 13113], "mapped", [12504, 12523, 12484]], [[13114, 13114], "mapped", [12506, 12531, 12473]], [[13115, 13115], "mapped", [12506, 12540, 12472]], [[13116, 13116], "mapped", [12505, 12540, 12479]], [[13117, 13117], "mapped", [12509, 12452, 12531, 12488]], [[13118, 13118], "mapped", [12508, 12523, 12488]], [[13119, 13119], "mapped", [12507, 12531]], [[13120, 13120], "mapped", [12509, 12531, 12489]], [[13121, 13121], "mapped", [12507, 12540, 12523]], [[13122, 13122], "mapped", [12507, 12540, 12531]], [[13123, 13123], "mapped", [12510, 12452, 12463, 12525]], [[13124, 13124], "mapped", [12510, 12452, 12523]], [[13125, 13125], "mapped", [12510, 12483, 12495]], [[13126, 13126], "mapped", [12510, 12523, 12463]], [[13127, 13127], "mapped", [12510, 12531, 12471, 12519, 12531]], [[13128, 13128], "mapped", [12511, 12463, 12525, 12531]], [[13129, 13129], "mapped", [12511, 12522]], [[13130, 13130], "mapped", [12511, 12522, 12496, 12540, 12523]], [[13131, 13131], "mapped", [12513, 12460]], [[13132, 13132], "mapped", [12513, 12460, 12488, 12531]], [[13133, 13133], "mapped", [12513, 12540, 12488, 12523]], [[13134, 13134], "mapped", [12516, 12540, 12489]], [[13135, 13135], "mapped", [12516, 12540, 12523]], [[13136, 13136], "mapped", [12518, 12450, 12531]], [[13137, 13137], "mapped", [12522, 12483, 12488, 12523]], [[13138, 13138], "mapped", [12522, 12521]], [[13139, 13139], "mapped", [12523, 12500, 12540]], [[13140, 13140], "mapped", [12523, 12540, 12502, 12523]], [[13141, 13141], "mapped", [12524, 12512]], [[13142, 13142], "mapped", [12524, 12531, 12488, 12466, 12531]], [[13143, 13143], "mapped", [12527, 12483, 12488]], [[13144, 13144], "mapped", [48, 28857]], [[13145, 13145], "mapped", [49, 28857]], [[13146, 13146], "mapped", [50, 28857]], [[13147, 13147], "mapped", [51, 28857]], [[13148, 13148], "mapped", [52, 28857]], [[13149, 13149], "mapped", [53, 28857]], [[13150, 13150], "mapped", [54, 28857]], [[13151, 13151], "mapped", [55, 28857]], [[13152, 13152], "mapped", [56, 28857]], [[13153, 13153], "mapped", [57, 28857]], [[13154, 13154], "mapped", [49, 48, 28857]], [[13155, 13155], "mapped", [49, 49, 28857]], [[13156, 13156], "mapped", [49, 50, 28857]], [[13157, 13157], "mapped", [49, 51, 28857]], [[13158, 13158], "mapped", [49, 52, 28857]], [[13159, 13159], "mapped", [49, 53, 28857]], [[13160, 13160], "mapped", [49, 54, 28857]], [[13161, 13161], "mapped", [49, 55, 28857]], [[13162, 13162], "mapped", [49, 56, 28857]], [[13163, 13163], "mapped", [49, 57, 28857]], [[13164, 13164], "mapped", [50, 48, 28857]], [[13165, 13165], "mapped", [50, 49, 28857]], [[13166, 13166], "mapped", [50, 50, 28857]], [[13167, 13167], "mapped", [50, 51, 28857]], [[13168, 13168], "mapped", [50, 52, 28857]], [[13169, 13169], "mapped", [104, 112, 97]], [[13170, 13170], "mapped", [100, 97]], [[13171, 13171], "mapped", [97, 117]], [[13172, 13172], "mapped", [98, 97, 114]], [[13173, 13173], "mapped", [111, 118]], [[13174, 13174], "mapped", [112, 99]], [[13175, 13175], "mapped", [100, 109]], [[13176, 13176], "mapped", [100, 109, 50]], [[13177, 13177], "mapped", [100, 109, 51]], [[13178, 13178], "mapped", [105, 117]], [[13179, 13179], "mapped", [24179, 25104]], [[13180, 13180], "mapped", [26157, 21644]], [[13181, 13181], "mapped", [22823, 27491]], [[13182, 13182], "mapped", [26126, 27835]], [[13183, 13183], "mapped", [26666, 24335, 20250, 31038]], [[13184, 13184], "mapped", [112, 97]], [[13185, 13185], "mapped", [110, 97]], [[13186, 13186], "mapped", [956, 97]], [[13187, 13187], "mapped", [109, 97]], [[13188, 13188], "mapped", [107, 97]], [[13189, 13189], "mapped", [107, 98]], [[13190, 13190], "mapped", [109, 98]], [[13191, 13191], "mapped", [103, 98]], [[13192, 13192], "mapped", [99, 97, 108]], [[13193, 13193], "mapped", [107, 99, 97, 108]], [[13194, 13194], "mapped", [112, 102]], [[13195, 13195], "mapped", [110, 102]], [[13196, 13196], "mapped", [956, 102]], [[13197, 13197], "mapped", [956, 103]], [[13198, 13198], "mapped", [109, 103]], [[13199, 13199], "mapped", [107, 103]], [[13200, 13200], "mapped", [104, 122]], [[13201, 13201], "mapped", [107, 104, 122]], [[13202, 13202], "mapped", [109, 104, 122]], [[13203, 13203], "mapped", [103, 104, 122]], [[13204, 13204], "mapped", [116, 104, 122]], [[13205, 13205], "mapped", [956, 108]], [[13206, 13206], "mapped", [109, 108]], [[13207, 13207], "mapped", [100, 108]], [[13208, 13208], "mapped", [107, 108]], [[13209, 13209], "mapped", [102, 109]], [[13210, 13210], "mapped", [110, 109]], [[13211, 13211], "mapped", [956, 109]], [[13212, 13212], "mapped", [109, 109]], [[13213, 13213], "mapped", [99, 109]], [[13214, 13214], "mapped", [107, 109]], [[13215, 13215], "mapped", [109, 109, 50]], [[13216, 13216], "mapped", [99, 109, 50]], [[13217, 13217], "mapped", [109, 50]], [[13218, 13218], "mapped", [107, 109, 50]], [[13219, 13219], "mapped", [109, 109, 51]], [[13220, 13220], "mapped", [99, 109, 51]], [[13221, 13221], "mapped", [109, 51]], [[13222, 13222], "mapped", [107, 109, 51]], [[13223, 13223], "mapped", [109, 8725, 115]], [[13224, 13224], "mapped", [109, 8725, 115, 50]], [[13225, 13225], "mapped", [112, 97]], [[13226, 13226], "mapped", [107, 112, 97]], [[13227, 13227], "mapped", [109, 112, 97]], [[13228, 13228], "mapped", [103, 112, 97]], [[13229, 13229], "mapped", [114, 97, 100]], [[13230, 13230], "mapped", [114, 97, 100, 8725, 115]], [[13231, 13231], "mapped", [114, 97, 100, 8725, 115, 50]], [[13232, 13232], "mapped", [112, 115]], [[13233, 13233], "mapped", [110, 115]], [[13234, 13234], "mapped", [956, 115]], [[13235, 13235], "mapped", [109, 115]], [[13236, 13236], "mapped", [112, 118]], [[13237, 13237], "mapped", [110, 118]], [[13238, 13238], "mapped", [956, 118]], [[13239, 13239], "mapped", [109, 118]], [[13240, 13240], "mapped", [107, 118]], [[13241, 13241], "mapped", [109, 118]], [[13242, 13242], "mapped", [112, 119]], [[13243, 13243], "mapped", [110, 119]], [[13244, 13244], "mapped", [956, 119]], [[13245, 13245], "mapped", [109, 119]], [[13246, 13246], "mapped", [107, 119]], [[13247, 13247], "mapped", [109, 119]], [[13248, 13248], "mapped", [107, 969]], [[13249, 13249], "mapped", [109, 969]], [[13250, 13250], "disallowed"], [[13251, 13251], "mapped", [98, 113]], [[13252, 13252], "mapped", [99, 99]], [[13253, 13253], "mapped", [99, 100]], [[13254, 13254], "mapped", [99, 8725, 107, 103]], [[13255, 13255], "disallowed"], [[13256, 13256], "mapped", [100, 98]], [[13257, 13257], "mapped", [103, 121]], [[13258, 13258], "mapped", [104, 97]], [[13259, 13259], "mapped", [104, 112]], [[13260, 13260], "mapped", [105, 110]], [[13261, 13261], "mapped", [107, 107]], [[13262, 13262], "mapped", [107, 109]], [[13263, 13263], "mapped", [107, 116]], [[13264, 13264], "mapped", [108, 109]], [[13265, 13265], "mapped", [108, 110]], [[13266, 13266], "mapped", [108, 111, 103]], [[13267, 13267], "mapped", [108, 120]], [[13268, 13268], "mapped", [109, 98]], [[13269, 13269], "mapped", [109, 105, 108]], [[13270, 13270], "mapped", [109, 111, 108]], [[13271, 13271], "mapped", [112, 104]], [[13272, 13272], "disallowed"], [[13273, 13273], "mapped", [112, 112, 109]], [[13274, 13274], "mapped", [112, 114]], [[13275, 13275], "mapped", [115, 114]], [[13276, 13276], "mapped", [115, 118]], [[13277, 13277], "mapped", [119, 98]], [[13278, 13278], "mapped", [118, 8725, 109]], [[13279, 13279], "mapped", [97, 8725, 109]], [[13280, 13280], "mapped", [49, 26085]], [[13281, 13281], "mapped", [50, 26085]], [[13282, 13282], "mapped", [51, 26085]], [[13283, 13283], "mapped", [52, 26085]], [[13284, 13284], "mapped", [53, 26085]], [[13285, 13285], "mapped", [54, 26085]], [[13286, 13286], "mapped", [55, 26085]], [[13287, 13287], "mapped", [56, 26085]], [[13288, 13288], "mapped", [57, 26085]], [[13289, 13289], "mapped", [49, 48, 26085]], [[13290, 13290], "mapped", [49, 49, 26085]], [[13291, 13291], "mapped", [49, 50, 26085]], [[13292, 13292], "mapped", [49, 51, 26085]], [[13293, 13293], "mapped", [49, 52, 26085]], [[13294, 13294], "mapped", [49, 53, 26085]], [[13295, 13295], "mapped", [49, 54, 26085]], [[13296, 13296], "mapped", [49, 55, 26085]], [[13297, 13297], "mapped", [49, 56, 26085]], [[13298, 13298], "mapped", [49, 57, 26085]], [[13299, 13299], "mapped", [50, 48, 26085]], [[13300, 13300], "mapped", [50, 49, 26085]], [[13301, 13301], "mapped", [50, 50, 26085]], [[13302, 13302], "mapped", [50, 51, 26085]], [[13303, 13303], "mapped", [50, 52, 26085]], [[13304, 13304], "mapped", [50, 53, 26085]], [[13305, 13305], "mapped", [50, 54, 26085]], [[13306, 13306], "mapped", [50, 55, 26085]], [[13307, 13307], "mapped", [50, 56, 26085]], [[13308, 13308], "mapped", [50, 57, 26085]], [[13309, 13309], "mapped", [51, 48, 26085]], [[13310, 13310], "mapped", [51, 49, 26085]], [[13311, 13311], "mapped", [103, 97, 108]], [[13312, 19893], "valid"], [[19894, 19903], "disallowed"], [[19904, 19967], "valid", [], "NV8"], [[19968, 40869], "valid"], [[40870, 40891], "valid"], [[40892, 40899], "valid"], [[40900, 40907], "valid"], [[40908, 40908], "valid"], [[40909, 40917], "valid"], [[40918, 40959], "disallowed"], [[40960, 42124], "valid"], [[42125, 42127], "disallowed"], [[42128, 42145], "valid", [], "NV8"], [[42146, 42147], "valid", [], "NV8"], [[42148, 42163], "valid", [], "NV8"], [[42164, 42164], "valid", [], "NV8"], [[42165, 42176], "valid", [], "NV8"], [[42177, 42177], "valid", [], "NV8"], [[42178, 42180], "valid", [], "NV8"], [[42181, 42181], "valid", [], "NV8"], [[42182, 42182], "valid", [], "NV8"], [[42183, 42191], "disallowed"], [[42192, 42237], "valid"], [[42238, 42239], "valid", [], "NV8"], [[42240, 42508], "valid"], [[42509, 42511], "valid", [], "NV8"], [[42512, 42539], "valid"], [[42540, 42559], "disallowed"], [[42560, 42560], "mapped", [42561]], [[42561, 42561], "valid"], [[42562, 42562], "mapped", [42563]], [[42563, 42563], "valid"], [[42564, 42564], "mapped", [42565]], [[42565, 42565], "valid"], [[42566, 42566], "mapped", [42567]], [[42567, 42567], "valid"], [[42568, 42568], "mapped", [42569]], [[42569, 42569], "valid"], [[42570, 42570], "mapped", [42571]], [[42571, 42571], "valid"], [[42572, 42572], "mapped", [42573]], [[42573, 42573], "valid"], [[42574, 42574], "mapped", [42575]], [[42575, 42575], "valid"], [[42576, 42576], "mapped", [42577]], [[42577, 42577], "valid"], [[42578, 42578], "mapped", [42579]], [[42579, 42579], "valid"], [[42580, 42580], "mapped", [42581]], [[42581, 42581], "valid"], [[42582, 42582], "mapped", [42583]], [[42583, 42583], "valid"], [[42584, 42584], "mapped", [42585]], [[42585, 42585], "valid"], [[42586, 42586], "mapped", [42587]], [[42587, 42587], "valid"], [[42588, 42588], "mapped", [42589]], [[42589, 42589], "valid"], [[42590, 42590], "mapped", [42591]], [[42591, 42591], "valid"], [[42592, 42592], "mapped", [42593]], [[42593, 42593], "valid"], [[42594, 42594], "mapped", [42595]], [[42595, 42595], "valid"], [[42596, 42596], "mapped", [42597]], [[42597, 42597], "valid"], [[42598, 42598], "mapped", [42599]], [[42599, 42599], "valid"], [[42600, 42600], "mapped", [42601]], [[42601, 42601], "valid"], [[42602, 42602], "mapped", [42603]], [[42603, 42603], "valid"], [[42604, 42604], "mapped", [42605]], [[42605, 42607], "valid"], [[42608, 42611], "valid", [], "NV8"], [[42612, 42619], "valid"], [[42620, 42621], "valid"], [[42622, 42622], "valid", [], "NV8"], [[42623, 42623], "valid"], [[42624, 42624], "mapped", [42625]], [[42625, 42625], "valid"], [[42626, 42626], "mapped", [42627]], [[42627, 42627], "valid"], [[42628, 42628], "mapped", [42629]], [[42629, 42629], "valid"], [[42630, 42630], "mapped", [42631]], [[42631, 42631], "valid"], [[42632, 42632], "mapped", [42633]], [[42633, 42633], "valid"], [[42634, 42634], "mapped", [42635]], [[42635, 42635], "valid"], [[42636, 42636], "mapped", [42637]], [[42637, 42637], "valid"], [[42638, 42638], "mapped", [42639]], [[42639, 42639], "valid"], [[42640, 42640], "mapped", [42641]], [[42641, 42641], "valid"], [[42642, 42642], "mapped", [42643]], [[42643, 42643], "valid"], [[42644, 42644], "mapped", [42645]], [[42645, 42645], "valid"], [[42646, 42646], "mapped", [42647]], [[42647, 42647], "valid"], [[42648, 42648], "mapped", [42649]], [[42649, 42649], "valid"], [[42650, 42650], "mapped", [42651]], [[42651, 42651], "valid"], [[42652, 42652], "mapped", [1098]], [[42653, 42653], "mapped", [1100]], [[42654, 42654], "valid"], [[42655, 42655], "valid"], [[42656, 42725], "valid"], [[42726, 42735], "valid", [], "NV8"], [[42736, 42737], "valid"], [[42738, 42743], "valid", [], "NV8"], [[42744, 42751], "disallowed"], [[42752, 42774], "valid", [], "NV8"], [[42775, 42778], "valid"], [[42779, 42783], "valid"], [[42784, 42785], "valid", [], "NV8"], [[42786, 42786], "mapped", [42787]], [[42787, 42787], "valid"], [[42788, 42788], "mapped", [42789]], [[42789, 42789], "valid"], [[42790, 42790], "mapped", [42791]], [[42791, 42791], "valid"], [[42792, 42792], "mapped", [42793]], [[42793, 42793], "valid"], [[42794, 42794], "mapped", [42795]], [[42795, 42795], "valid"], [[42796, 42796], "mapped", [42797]], [[42797, 42797], "valid"], [[42798, 42798], "mapped", [42799]], [[42799, 42801], "valid"], [[42802, 42802], "mapped", [42803]], [[42803, 42803], "valid"], [[42804, 42804], "mapped", [42805]], [[42805, 42805], "valid"], [[42806, 42806], "mapped", [42807]], [[42807, 42807], "valid"], [[42808, 42808], "mapped", [42809]], [[42809, 42809], "valid"], [[42810, 42810], "mapped", [42811]], [[42811, 42811], "valid"], [[42812, 42812], "mapped", [42813]], [[42813, 42813], "valid"], [[42814, 42814], "mapped", [42815]], [[42815, 42815], "valid"], [[42816, 42816], "mapped", [42817]], [[42817, 42817], "valid"], [[42818, 42818], "mapped", [42819]], [[42819, 42819], "valid"], [[42820, 42820], "mapped", [42821]], [[42821, 42821], "valid"], [[42822, 42822], "mapped", [42823]], [[42823, 42823], "valid"], [[42824, 42824], "mapped", [42825]], [[42825, 42825], "valid"], [[42826, 42826], "mapped", [42827]], [[42827, 42827], "valid"], [[42828, 42828], "mapped", [42829]], [[42829, 42829], "valid"], [[42830, 42830], "mapped", [42831]], [[42831, 42831], "valid"], [[42832, 42832], "mapped", [42833]], [[42833, 42833], "valid"], [[42834, 42834], "mapped", [42835]], [[42835, 42835], "valid"], [[42836, 42836], "mapped", [42837]], [[42837, 42837], "valid"], [[42838, 42838], "mapped", [42839]], [[42839, 42839], "valid"], [[42840, 42840], "mapped", [42841]], [[42841, 42841], "valid"], [[42842, 42842], "mapped", [42843]], [[42843, 42843], "valid"], [[42844, 42844], "mapped", [42845]], [[42845, 42845], "valid"], [[42846, 42846], "mapped", [42847]], [[42847, 42847], "valid"], [[42848, 42848], "mapped", [42849]], [[42849, 42849], "valid"], [[42850, 42850], "mapped", [42851]], [[42851, 42851], "valid"], [[42852, 42852], "mapped", [42853]], [[42853, 42853], "valid"], [[42854, 42854], "mapped", [42855]], [[42855, 42855], "valid"], [[42856, 42856], "mapped", [42857]], [[42857, 42857], "valid"], [[42858, 42858], "mapped", [42859]], [[42859, 42859], "valid"], [[42860, 42860], "mapped", [42861]], [[42861, 42861], "valid"], [[42862, 42862], "mapped", [42863]], [[42863, 42863], "valid"], [[42864, 42864], "mapped", [42863]], [[42865, 42872], "valid"], [[42873, 42873], "mapped", [42874]], [[42874, 42874], "valid"], [[42875, 42875], "mapped", [42876]], [[42876, 42876], "valid"], [[42877, 42877], "mapped", [7545]], [[42878, 42878], "mapped", [42879]], [[42879, 42879], "valid"], [[42880, 42880], "mapped", [42881]], [[42881, 42881], "valid"], [[42882, 42882], "mapped", [42883]], [[42883, 42883], "valid"], [[42884, 42884], "mapped", [42885]], [[42885, 42885], "valid"], [[42886, 42886], "mapped", [42887]], [[42887, 42888], "valid"], [[42889, 42890], "valid", [], "NV8"], [[42891, 42891], "mapped", [42892]], [[42892, 42892], "valid"], [[42893, 42893], "mapped", [613]], [[42894, 42894], "valid"], [[42895, 42895], "valid"], [[42896, 42896], "mapped", [42897]], [[42897, 42897], "valid"], [[42898, 42898], "mapped", [42899]], [[42899, 42899], "valid"], [[42900, 42901], "valid"], [[42902, 42902], "mapped", [42903]], [[42903, 42903], "valid"], [[42904, 42904], "mapped", [42905]], [[42905, 42905], "valid"], [[42906, 42906], "mapped", [42907]], [[42907, 42907], "valid"], [[42908, 42908], "mapped", [42909]], [[42909, 42909], "valid"], [[42910, 42910], "mapped", [42911]], [[42911, 42911], "valid"], [[42912, 42912], "mapped", [42913]], [[42913, 42913], "valid"], [[42914, 42914], "mapped", [42915]], [[42915, 42915], "valid"], [[42916, 42916], "mapped", [42917]], [[42917, 42917], "valid"], [[42918, 42918], "mapped", [42919]], [[42919, 42919], "valid"], [[42920, 42920], "mapped", [42921]], [[42921, 42921], "valid"], [[42922, 42922], "mapped", [614]], [[42923, 42923], "mapped", [604]], [[42924, 42924], "mapped", [609]], [[42925, 42925], "mapped", [620]], [[42926, 42927], "disallowed"], [[42928, 42928], "mapped", [670]], [[42929, 42929], "mapped", [647]], [[42930, 42930], "mapped", [669]], [[42931, 42931], "mapped", [43859]], [[42932, 42932], "mapped", [42933]], [[42933, 42933], "valid"], [[42934, 42934], "mapped", [42935]], [[42935, 42935], "valid"], [[42936, 42998], "disallowed"], [[42999, 42999], "valid"], [[43e3, 43e3], "mapped", [295]], [[43001, 43001], "mapped", [339]], [[43002, 43002], "valid"], [[43003, 43007], "valid"], [[43008, 43047], "valid"], [[43048, 43051], "valid", [], "NV8"], [[43052, 43055], "disallowed"], [[43056, 43065], "valid", [], "NV8"], [[43066, 43071], "disallowed"], [[43072, 43123], "valid"], [[43124, 43127], "valid", [], "NV8"], [[43128, 43135], "disallowed"], [[43136, 43204], "valid"], [[43205, 43213], "disallowed"], [[43214, 43215], "valid", [], "NV8"], [[43216, 43225], "valid"], [[43226, 43231], "disallowed"], [[43232, 43255], "valid"], [[43256, 43258], "valid", [], "NV8"], [[43259, 43259], "valid"], [[43260, 43260], "valid", [], "NV8"], [[43261, 43261], "valid"], [[43262, 43263], "disallowed"], [[43264, 43309], "valid"], [[43310, 43311], "valid", [], "NV8"], [[43312, 43347], "valid"], [[43348, 43358], "disallowed"], [[43359, 43359], "valid", [], "NV8"], [[43360, 43388], "valid", [], "NV8"], [[43389, 43391], "disallowed"], [[43392, 43456], "valid"], [[43457, 43469], "valid", [], "NV8"], [[43470, 43470], "disallowed"], [[43471, 43481], "valid"], [[43482, 43485], "disallowed"], [[43486, 43487], "valid", [], "NV8"], [[43488, 43518], "valid"], [[43519, 43519], "disallowed"], [[43520, 43574], "valid"], [[43575, 43583], "disallowed"], [[43584, 43597], "valid"], [[43598, 43599], "disallowed"], [[43600, 43609], "valid"], [[43610, 43611], "disallowed"], [[43612, 43615], "valid", [], "NV8"], [[43616, 43638], "valid"], [[43639, 43641], "valid", [], "NV8"], [[43642, 43643], "valid"], [[43644, 43647], "valid"], [[43648, 43714], "valid"], [[43715, 43738], "disallowed"], [[43739, 43741], "valid"], [[43742, 43743], "valid", [], "NV8"], [[43744, 43759], "valid"], [[43760, 43761], "valid", [], "NV8"], [[43762, 43766], "valid"], [[43767, 43776], "disallowed"], [[43777, 43782], "valid"], [[43783, 43784], "disallowed"], [[43785, 43790], "valid"], [[43791, 43792], "disallowed"], [[43793, 43798], "valid"], [[43799, 43807], "disallowed"], [[43808, 43814], "valid"], [[43815, 43815], "disallowed"], [[43816, 43822], "valid"], [[43823, 43823], "disallowed"], [[43824, 43866], "valid"], [[43867, 43867], "valid", [], "NV8"], [[43868, 43868], "mapped", [42791]], [[43869, 43869], "mapped", [43831]], [[43870, 43870], "mapped", [619]], [[43871, 43871], "mapped", [43858]], [[43872, 43875], "valid"], [[43876, 43877], "valid"], [[43878, 43887], "disallowed"], [[43888, 43888], "mapped", [5024]], [[43889, 43889], "mapped", [5025]], [[43890, 43890], "mapped", [5026]], [[43891, 43891], "mapped", [5027]], [[43892, 43892], "mapped", [5028]], [[43893, 43893], "mapped", [5029]], [[43894, 43894], "mapped", [5030]], [[43895, 43895], "mapped", [5031]], [[43896, 43896], "mapped", [5032]], [[43897, 43897], "mapped", [5033]], [[43898, 43898], "mapped", [5034]], [[43899, 43899], "mapped", [5035]], [[43900, 43900], "mapped", [5036]], [[43901, 43901], "mapped", [5037]], [[43902, 43902], "mapped", [5038]], [[43903, 43903], "mapped", [5039]], [[43904, 43904], "mapped", [5040]], [[43905, 43905], "mapped", [5041]], [[43906, 43906], "mapped", [5042]], [[43907, 43907], "mapped", [5043]], [[43908, 43908], "mapped", [5044]], [[43909, 43909], "mapped", [5045]], [[43910, 43910], "mapped", [5046]], [[43911, 43911], "mapped", [5047]], [[43912, 43912], "mapped", [5048]], [[43913, 43913], "mapped", [5049]], [[43914, 43914], "mapped", [5050]], [[43915, 43915], "mapped", [5051]], [[43916, 43916], "mapped", [5052]], [[43917, 43917], "mapped", [5053]], [[43918, 43918], "mapped", [5054]], [[43919, 43919], "mapped", [5055]], [[43920, 43920], "mapped", [5056]], [[43921, 43921], "mapped", [5057]], [[43922, 43922], "mapped", [5058]], [[43923, 43923], "mapped", [5059]], [[43924, 43924], "mapped", [5060]], [[43925, 43925], "mapped", [5061]], [[43926, 43926], "mapped", [5062]], [[43927, 43927], "mapped", [5063]], [[43928, 43928], "mapped", [5064]], [[43929, 43929], "mapped", [5065]], [[43930, 43930], "mapped", [5066]], [[43931, 43931], "mapped", [5067]], [[43932, 43932], "mapped", [5068]], [[43933, 43933], "mapped", [5069]], [[43934, 43934], "mapped", [5070]], [[43935, 43935], "mapped", [5071]], [[43936, 43936], "mapped", [5072]], [[43937, 43937], "mapped", [5073]], [[43938, 43938], "mapped", [5074]], [[43939, 43939], "mapped", [5075]], [[43940, 43940], "mapped", [5076]], [[43941, 43941], "mapped", [5077]], [[43942, 43942], "mapped", [5078]], [[43943, 43943], "mapped", [5079]], [[43944, 43944], "mapped", [5080]], [[43945, 43945], "mapped", [5081]], [[43946, 43946], "mapped", [5082]], [[43947, 43947], "mapped", [5083]], [[43948, 43948], "mapped", [5084]], [[43949, 43949], "mapped", [5085]], [[43950, 43950], "mapped", [5086]], [[43951, 43951], "mapped", [5087]], [[43952, 43952], "mapped", [5088]], [[43953, 43953], "mapped", [5089]], [[43954, 43954], "mapped", [5090]], [[43955, 43955], "mapped", [5091]], [[43956, 43956], "mapped", [5092]], [[43957, 43957], "mapped", [5093]], [[43958, 43958], "mapped", [5094]], [[43959, 43959], "mapped", [5095]], [[43960, 43960], "mapped", [5096]], [[43961, 43961], "mapped", [5097]], [[43962, 43962], "mapped", [5098]], [[43963, 43963], "mapped", [5099]], [[43964, 43964], "mapped", [5100]], [[43965, 43965], "mapped", [5101]], [[43966, 43966], "mapped", [5102]], [[43967, 43967], "mapped", [5103]], [[43968, 44010], "valid"], [[44011, 44011], "valid", [], "NV8"], [[44012, 44013], "valid"], [[44014, 44015], "disallowed"], [[44016, 44025], "valid"], [[44026, 44031], "disallowed"], [[44032, 55203], "valid"], [[55204, 55215], "disallowed"], [[55216, 55238], "valid", [], "NV8"], [[55239, 55242], "disallowed"], [[55243, 55291], "valid", [], "NV8"], [[55292, 55295], "disallowed"], [[55296, 57343], "disallowed"], [[57344, 63743], "disallowed"], [[63744, 63744], "mapped", [35912]], [[63745, 63745], "mapped", [26356]], [[63746, 63746], "mapped", [36554]], [[63747, 63747], "mapped", [36040]], [[63748, 63748], "mapped", [28369]], [[63749, 63749], "mapped", [20018]], [[63750, 63750], "mapped", [21477]], [[63751, 63752], "mapped", [40860]], [[63753, 63753], "mapped", [22865]], [[63754, 63754], "mapped", [37329]], [[63755, 63755], "mapped", [21895]], [[63756, 63756], "mapped", [22856]], [[63757, 63757], "mapped", [25078]], [[63758, 63758], "mapped", [30313]], [[63759, 63759], "mapped", [32645]], [[63760, 63760], "mapped", [34367]], [[63761, 63761], "mapped", [34746]], [[63762, 63762], "mapped", [35064]], [[63763, 63763], "mapped", [37007]], [[63764, 63764], "mapped", [27138]], [[63765, 63765], "mapped", [27931]], [[63766, 63766], "mapped", [28889]], [[63767, 63767], "mapped", [29662]], [[63768, 63768], "mapped", [33853]], [[63769, 63769], "mapped", [37226]], [[63770, 63770], "mapped", [39409]], [[63771, 63771], "mapped", [20098]], [[63772, 63772], "mapped", [21365]], [[63773, 63773], "mapped", [27396]], [[63774, 63774], "mapped", [29211]], [[63775, 63775], "mapped", [34349]], [[63776, 63776], "mapped", [40478]], [[63777, 63777], "mapped", [23888]], [[63778, 63778], "mapped", [28651]], [[63779, 63779], "mapped", [34253]], [[63780, 63780], "mapped", [35172]], [[63781, 63781], "mapped", [25289]], [[63782, 63782], "mapped", [33240]], [[63783, 63783], "mapped", [34847]], [[63784, 63784], "mapped", [24266]], [[63785, 63785], "mapped", [26391]], [[63786, 63786], "mapped", [28010]], [[63787, 63787], "mapped", [29436]], [[63788, 63788], "mapped", [37070]], [[63789, 63789], "mapped", [20358]], [[63790, 63790], "mapped", [20919]], [[63791, 63791], "mapped", [21214]], [[63792, 63792], "mapped", [25796]], [[63793, 63793], "mapped", [27347]], [[63794, 63794], "mapped", [29200]], [[63795, 63795], "mapped", [30439]], [[63796, 63796], "mapped", [32769]], [[63797, 63797], "mapped", [34310]], [[63798, 63798], "mapped", [34396]], [[63799, 63799], "mapped", [36335]], [[63800, 63800], "mapped", [38706]], [[63801, 63801], "mapped", [39791]], [[63802, 63802], "mapped", [40442]], [[63803, 63803], "mapped", [30860]], [[63804, 63804], "mapped", [31103]], [[63805, 63805], "mapped", [32160]], [[63806, 63806], "mapped", [33737]], [[63807, 63807], "mapped", [37636]], [[63808, 63808], "mapped", [40575]], [[63809, 63809], "mapped", [35542]], [[63810, 63810], "mapped", [22751]], [[63811, 63811], "mapped", [24324]], [[63812, 63812], "mapped", [31840]], [[63813, 63813], "mapped", [32894]], [[63814, 63814], "mapped", [29282]], [[63815, 63815], "mapped", [30922]], [[63816, 63816], "mapped", [36034]], [[63817, 63817], "mapped", [38647]], [[63818, 63818], "mapped", [22744]], [[63819, 63819], "mapped", [23650]], [[63820, 63820], "mapped", [27155]], [[63821, 63821], "mapped", [28122]], [[63822, 63822], "mapped", [28431]], [[63823, 63823], "mapped", [32047]], [[63824, 63824], "mapped", [32311]], [[63825, 63825], "mapped", [38475]], [[63826, 63826], "mapped", [21202]], [[63827, 63827], "mapped", [32907]], [[63828, 63828], "mapped", [20956]], [[63829, 63829], "mapped", [20940]], [[63830, 63830], "mapped", [31260]], [[63831, 63831], "mapped", [32190]], [[63832, 63832], "mapped", [33777]], [[63833, 63833], "mapped", [38517]], [[63834, 63834], "mapped", [35712]], [[63835, 63835], "mapped", [25295]], [[63836, 63836], "mapped", [27138]], [[63837, 63837], "mapped", [35582]], [[63838, 63838], "mapped", [20025]], [[63839, 63839], "mapped", [23527]], [[63840, 63840], "mapped", [24594]], [[63841, 63841], "mapped", [29575]], [[63842, 63842], "mapped", [30064]], [[63843, 63843], "mapped", [21271]], [[63844, 63844], "mapped", [30971]], [[63845, 63845], "mapped", [20415]], [[63846, 63846], "mapped", [24489]], [[63847, 63847], "mapped", [19981]], [[63848, 63848], "mapped", [27852]], [[63849, 63849], "mapped", [25976]], [[63850, 63850], "mapped", [32034]], [[63851, 63851], "mapped", [21443]], [[63852, 63852], "mapped", [22622]], [[63853, 63853], "mapped", [30465]], [[63854, 63854], "mapped", [33865]], [[63855, 63855], "mapped", [35498]], [[63856, 63856], "mapped", [27578]], [[63857, 63857], "mapped", [36784]], [[63858, 63858], "mapped", [27784]], [[63859, 63859], "mapped", [25342]], [[63860, 63860], "mapped", [33509]], [[63861, 63861], "mapped", [25504]], [[63862, 63862], "mapped", [30053]], [[63863, 63863], "mapped", [20142]], [[63864, 63864], "mapped", [20841]], [[63865, 63865], "mapped", [20937]], [[63866, 63866], "mapped", [26753]], [[63867, 63867], "mapped", [31975]], [[63868, 63868], "mapped", [33391]], [[63869, 63869], "mapped", [35538]], [[63870, 63870], "mapped", [37327]], [[63871, 63871], "mapped", [21237]], [[63872, 63872], "mapped", [21570]], [[63873, 63873], "mapped", [22899]], [[63874, 63874], "mapped", [24300]], [[63875, 63875], "mapped", [26053]], [[63876, 63876], "mapped", [28670]], [[63877, 63877], "mapped", [31018]], [[63878, 63878], "mapped", [38317]], [[63879, 63879], "mapped", [39530]], [[63880, 63880], "mapped", [40599]], [[63881, 63881], "mapped", [40654]], [[63882, 63882], "mapped", [21147]], [[63883, 63883], "mapped", [26310]], [[63884, 63884], "mapped", [27511]], [[63885, 63885], "mapped", [36706]], [[63886, 63886], "mapped", [24180]], [[63887, 63887], "mapped", [24976]], [[63888, 63888], "mapped", [25088]], [[63889, 63889], "mapped", [25754]], [[63890, 63890], "mapped", [28451]], [[63891, 63891], "mapped", [29001]], [[63892, 63892], "mapped", [29833]], [[63893, 63893], "mapped", [31178]], [[63894, 63894], "mapped", [32244]], [[63895, 63895], "mapped", [32879]], [[63896, 63896], "mapped", [36646]], [[63897, 63897], "mapped", [34030]], [[63898, 63898], "mapped", [36899]], [[63899, 63899], "mapped", [37706]], [[63900, 63900], "mapped", [21015]], [[63901, 63901], "mapped", [21155]], [[63902, 63902], "mapped", [21693]], [[63903, 63903], "mapped", [28872]], [[63904, 63904], "mapped", [35010]], [[63905, 63905], "mapped", [35498]], [[63906, 63906], "mapped", [24265]], [[63907, 63907], "mapped", [24565]], [[63908, 63908], "mapped", [25467]], [[63909, 63909], "mapped", [27566]], [[63910, 63910], "mapped", [31806]], [[63911, 63911], "mapped", [29557]], [[63912, 63912], "mapped", [20196]], [[63913, 63913], "mapped", [22265]], [[63914, 63914], "mapped", [23527]], [[63915, 63915], "mapped", [23994]], [[63916, 63916], "mapped", [24604]], [[63917, 63917], "mapped", [29618]], [[63918, 63918], "mapped", [29801]], [[63919, 63919], "mapped", [32666]], [[63920, 63920], "mapped", [32838]], [[63921, 63921], "mapped", [37428]], [[63922, 63922], "mapped", [38646]], [[63923, 63923], "mapped", [38728]], [[63924, 63924], "mapped", [38936]], [[63925, 63925], "mapped", [20363]], [[63926, 63926], "mapped", [31150]], [[63927, 63927], "mapped", [37300]], [[63928, 63928], "mapped", [38584]], [[63929, 63929], "mapped", [24801]], [[63930, 63930], "mapped", [20102]], [[63931, 63931], "mapped", [20698]], [[63932, 63932], "mapped", [23534]], [[63933, 63933], "mapped", [23615]], [[63934, 63934], "mapped", [26009]], [[63935, 63935], "mapped", [27138]], [[63936, 63936], "mapped", [29134]], [[63937, 63937], "mapped", [30274]], [[63938, 63938], "mapped", [34044]], [[63939, 63939], "mapped", [36988]], [[63940, 63940], "mapped", [40845]], [[63941, 63941], "mapped", [26248]], [[63942, 63942], "mapped", [38446]], [[63943, 63943], "mapped", [21129]], [[63944, 63944], "mapped", [26491]], [[63945, 63945], "mapped", [26611]], [[63946, 63946], "mapped", [27969]], [[63947, 63947], "mapped", [28316]], [[63948, 63948], "mapped", [29705]], [[63949, 63949], "mapped", [30041]], [[63950, 63950], "mapped", [30827]], [[63951, 63951], "mapped", [32016]], [[63952, 63952], "mapped", [39006]], [[63953, 63953], "mapped", [20845]], [[63954, 63954], "mapped", [25134]], [[63955, 63955], "mapped", [38520]], [[63956, 63956], "mapped", [20523]], [[63957, 63957], "mapped", [23833]], [[63958, 63958], "mapped", [28138]], [[63959, 63959], "mapped", [36650]], [[63960, 63960], "mapped", [24459]], [[63961, 63961], "mapped", [24900]], [[63962, 63962], "mapped", [26647]], [[63963, 63963], "mapped", [29575]], [[63964, 63964], "mapped", [38534]], [[63965, 63965], "mapped", [21033]], [[63966, 63966], "mapped", [21519]], [[63967, 63967], "mapped", [23653]], [[63968, 63968], "mapped", [26131]], [[63969, 63969], "mapped", [26446]], [[63970, 63970], "mapped", [26792]], [[63971, 63971], "mapped", [27877]], [[63972, 63972], "mapped", [29702]], [[63973, 63973], "mapped", [30178]], [[63974, 63974], "mapped", [32633]], [[63975, 63975], "mapped", [35023]], [[63976, 63976], "mapped", [35041]], [[63977, 63977], "mapped", [37324]], [[63978, 63978], "mapped", [38626]], [[63979, 63979], "mapped", [21311]], [[63980, 63980], "mapped", [28346]], [[63981, 63981], "mapped", [21533]], [[63982, 63982], "mapped", [29136]], [[63983, 63983], "mapped", [29848]], [[63984, 63984], "mapped", [34298]], [[63985, 63985], "mapped", [38563]], [[63986, 63986], "mapped", [40023]], [[63987, 63987], "mapped", [40607]], [[63988, 63988], "mapped", [26519]], [[63989, 63989], "mapped", [28107]], [[63990, 63990], "mapped", [33256]], [[63991, 63991], "mapped", [31435]], [[63992, 63992], "mapped", [31520]], [[63993, 63993], "mapped", [31890]], [[63994, 63994], "mapped", [29376]], [[63995, 63995], "mapped", [28825]], [[63996, 63996], "mapped", [35672]], [[63997, 63997], "mapped", [20160]], [[63998, 63998], "mapped", [33590]], [[63999, 63999], "mapped", [21050]], [[64e3, 64e3], "mapped", [20999]], [[64001, 64001], "mapped", [24230]], [[64002, 64002], "mapped", [25299]], [[64003, 64003], "mapped", [31958]], [[64004, 64004], "mapped", [23429]], [[64005, 64005], "mapped", [27934]], [[64006, 64006], "mapped", [26292]], [[64007, 64007], "mapped", [36667]], [[64008, 64008], "mapped", [34892]], [[64009, 64009], "mapped", [38477]], [[64010, 64010], "mapped", [35211]], [[64011, 64011], "mapped", [24275]], [[64012, 64012], "mapped", [20800]], [[64013, 64013], "mapped", [21952]], [[64014, 64015], "valid"], [[64016, 64016], "mapped", [22618]], [[64017, 64017], "valid"], [[64018, 64018], "mapped", [26228]], [[64019, 64020], "valid"], [[64021, 64021], "mapped", [20958]], [[64022, 64022], "mapped", [29482]], [[64023, 64023], "mapped", [30410]], [[64024, 64024], "mapped", [31036]], [[64025, 64025], "mapped", [31070]], [[64026, 64026], "mapped", [31077]], [[64027, 64027], "mapped", [31119]], [[64028, 64028], "mapped", [38742]], [[64029, 64029], "mapped", [31934]], [[64030, 64030], "mapped", [32701]], [[64031, 64031], "valid"], [[64032, 64032], "mapped", [34322]], [[64033, 64033], "valid"], [[64034, 64034], "mapped", [35576]], [[64035, 64036], "valid"], [[64037, 64037], "mapped", [36920]], [[64038, 64038], "mapped", [37117]], [[64039, 64041], "valid"], [[64042, 64042], "mapped", [39151]], [[64043, 64043], "mapped", [39164]], [[64044, 64044], "mapped", [39208]], [[64045, 64045], "mapped", [40372]], [[64046, 64046], "mapped", [37086]], [[64047, 64047], "mapped", [38583]], [[64048, 64048], "mapped", [20398]], [[64049, 64049], "mapped", [20711]], [[64050, 64050], "mapped", [20813]], [[64051, 64051], "mapped", [21193]], [[64052, 64052], "mapped", [21220]], [[64053, 64053], "mapped", [21329]], [[64054, 64054], "mapped", [21917]], [[64055, 64055], "mapped", [22022]], [[64056, 64056], "mapped", [22120]], [[64057, 64057], "mapped", [22592]], [[64058, 64058], "mapped", [22696]], [[64059, 64059], "mapped", [23652]], [[64060, 64060], "mapped", [23662]], [[64061, 64061], "mapped", [24724]], [[64062, 64062], "mapped", [24936]], [[64063, 64063], "mapped", [24974]], [[64064, 64064], "mapped", [25074]], [[64065, 64065], "mapped", [25935]], [[64066, 64066], "mapped", [26082]], [[64067, 64067], "mapped", [26257]], [[64068, 64068], "mapped", [26757]], [[64069, 64069], "mapped", [28023]], [[64070, 64070], "mapped", [28186]], [[64071, 64071], "mapped", [28450]], [[64072, 64072], "mapped", [29038]], [[64073, 64073], "mapped", [29227]], [[64074, 64074], "mapped", [29730]], [[64075, 64075], "mapped", [30865]], [[64076, 64076], "mapped", [31038]], [[64077, 64077], "mapped", [31049]], [[64078, 64078], "mapped", [31048]], [[64079, 64079], "mapped", [31056]], [[64080, 64080], "mapped", [31062]], [[64081, 64081], "mapped", [31069]], [[64082, 64082], "mapped", [31117]], [[64083, 64083], "mapped", [31118]], [[64084, 64084], "mapped", [31296]], [[64085, 64085], "mapped", [31361]], [[64086, 64086], "mapped", [31680]], [[64087, 64087], "mapped", [32244]], [[64088, 64088], "mapped", [32265]], [[64089, 64089], "mapped", [32321]], [[64090, 64090], "mapped", [32626]], [[64091, 64091], "mapped", [32773]], [[64092, 64092], "mapped", [33261]], [[64093, 64094], "mapped", [33401]], [[64095, 64095], "mapped", [33879]], [[64096, 64096], "mapped", [35088]], [[64097, 64097], "mapped", [35222]], [[64098, 64098], "mapped", [35585]], [[64099, 64099], "mapped", [35641]], [[64100, 64100], "mapped", [36051]], [[64101, 64101], "mapped", [36104]], [[64102, 64102], "mapped", [36790]], [[64103, 64103], "mapped", [36920]], [[64104, 64104], "mapped", [38627]], [[64105, 64105], "mapped", [38911]], [[64106, 64106], "mapped", [38971]], [[64107, 64107], "mapped", [24693]], [[64108, 64108], "mapped", [148206]], [[64109, 64109], "mapped", [33304]], [[64110, 64111], "disallowed"], [[64112, 64112], "mapped", [20006]], [[64113, 64113], "mapped", [20917]], [[64114, 64114], "mapped", [20840]], [[64115, 64115], "mapped", [20352]], [[64116, 64116], "mapped", [20805]], [[64117, 64117], "mapped", [20864]], [[64118, 64118], "mapped", [21191]], [[64119, 64119], "mapped", [21242]], [[64120, 64120], "mapped", [21917]], [[64121, 64121], "mapped", [21845]], [[64122, 64122], "mapped", [21913]], [[64123, 64123], "mapped", [21986]], [[64124, 64124], "mapped", [22618]], [[64125, 64125], "mapped", [22707]], [[64126, 64126], "mapped", [22852]], [[64127, 64127], "mapped", [22868]], [[64128, 64128], "mapped", [23138]], [[64129, 64129], "mapped", [23336]], [[64130, 64130], "mapped", [24274]], [[64131, 64131], "mapped", [24281]], [[64132, 64132], "mapped", [24425]], [[64133, 64133], "mapped", [24493]], [[64134, 64134], "mapped", [24792]], [[64135, 64135], "mapped", [24910]], [[64136, 64136], "mapped", [24840]], [[64137, 64137], "mapped", [24974]], [[64138, 64138], "mapped", [24928]], [[64139, 64139], "mapped", [25074]], [[64140, 64140], "mapped", [25140]], [[64141, 64141], "mapped", [25540]], [[64142, 64142], "mapped", [25628]], [[64143, 64143], "mapped", [25682]], [[64144, 64144], "mapped", [25942]], [[64145, 64145], "mapped", [26228]], [[64146, 64146], "mapped", [26391]], [[64147, 64147], "mapped", [26395]], [[64148, 64148], "mapped", [26454]], [[64149, 64149], "mapped", [27513]], [[64150, 64150], "mapped", [27578]], [[64151, 64151], "mapped", [27969]], [[64152, 64152], "mapped", [28379]], [[64153, 64153], "mapped", [28363]], [[64154, 64154], "mapped", [28450]], [[64155, 64155], "mapped", [28702]], [[64156, 64156], "mapped", [29038]], [[64157, 64157], "mapped", [30631]], [[64158, 64158], "mapped", [29237]], [[64159, 64159], "mapped", [29359]], [[64160, 64160], "mapped", [29482]], [[64161, 64161], "mapped", [29809]], [[64162, 64162], "mapped", [29958]], [[64163, 64163], "mapped", [30011]], [[64164, 64164], "mapped", [30237]], [[64165, 64165], "mapped", [30239]], [[64166, 64166], "mapped", [30410]], [[64167, 64167], "mapped", [30427]], [[64168, 64168], "mapped", [30452]], [[64169, 64169], "mapped", [30538]], [[64170, 64170], "mapped", [30528]], [[64171, 64171], "mapped", [30924]], [[64172, 64172], "mapped", [31409]], [[64173, 64173], "mapped", [31680]], [[64174, 64174], "mapped", [31867]], [[64175, 64175], "mapped", [32091]], [[64176, 64176], "mapped", [32244]], [[64177, 64177], "mapped", [32574]], [[64178, 64178], "mapped", [32773]], [[64179, 64179], "mapped", [33618]], [[64180, 64180], "mapped", [33775]], [[64181, 64181], "mapped", [34681]], [[64182, 64182], "mapped", [35137]], [[64183, 64183], "mapped", [35206]], [[64184, 64184], "mapped", [35222]], [[64185, 64185], "mapped", [35519]], [[64186, 64186], "mapped", [35576]], [[64187, 64187], "mapped", [35531]], [[64188, 64188], "mapped", [35585]], [[64189, 64189], "mapped", [35582]], [[64190, 64190], "mapped", [35565]], [[64191, 64191], "mapped", [35641]], [[64192, 64192], "mapped", [35722]], [[64193, 64193], "mapped", [36104]], [[64194, 64194], "mapped", [36664]], [[64195, 64195], "mapped", [36978]], [[64196, 64196], "mapped", [37273]], [[64197, 64197], "mapped", [37494]], [[64198, 64198], "mapped", [38524]], [[64199, 64199], "mapped", [38627]], [[64200, 64200], "mapped", [38742]], [[64201, 64201], "mapped", [38875]], [[64202, 64202], "mapped", [38911]], [[64203, 64203], "mapped", [38923]], [[64204, 64204], "mapped", [38971]], [[64205, 64205], "mapped", [39698]], [[64206, 64206], "mapped", [40860]], [[64207, 64207], "mapped", [141386]], [[64208, 64208], "mapped", [141380]], [[64209, 64209], "mapped", [144341]], [[64210, 64210], "mapped", [15261]], [[64211, 64211], "mapped", [16408]], [[64212, 64212], "mapped", [16441]], [[64213, 64213], "mapped", [152137]], [[64214, 64214], "mapped", [154832]], [[64215, 64215], "mapped", [163539]], [[64216, 64216], "mapped", [40771]], [[64217, 64217], "mapped", [40846]], [[64218, 64255], "disallowed"], [[64256, 64256], "mapped", [102, 102]], [[64257, 64257], "mapped", [102, 105]], [[64258, 64258], "mapped", [102, 108]], [[64259, 64259], "mapped", [102, 102, 105]], [[64260, 64260], "mapped", [102, 102, 108]], [[64261, 64262], "mapped", [115, 116]], [[64263, 64274], "disallowed"], [[64275, 64275], "mapped", [1396, 1398]], [[64276, 64276], "mapped", [1396, 1381]], [[64277, 64277], "mapped", [1396, 1387]], [[64278, 64278], "mapped", [1406, 1398]], [[64279, 64279], "mapped", [1396, 1389]], [[64280, 64284], "disallowed"], [[64285, 64285], "mapped", [1497, 1460]], [[64286, 64286], "valid"], [[64287, 64287], "mapped", [1522, 1463]], [[64288, 64288], "mapped", [1506]], [[64289, 64289], "mapped", [1488]], [[64290, 64290], "mapped", [1491]], [[64291, 64291], "mapped", [1492]], [[64292, 64292], "mapped", [1499]], [[64293, 64293], "mapped", [1500]], [[64294, 64294], "mapped", [1501]], [[64295, 64295], "mapped", [1512]], [[64296, 64296], "mapped", [1514]], [[64297, 64297], "disallowed_STD3_mapped", [43]], [[64298, 64298], "mapped", [1513, 1473]], [[64299, 64299], "mapped", [1513, 1474]], [[64300, 64300], "mapped", [1513, 1468, 1473]], [[64301, 64301], "mapped", [1513, 1468, 1474]], [[64302, 64302], "mapped", [1488, 1463]], [[64303, 64303], "mapped", [1488, 1464]], [[64304, 64304], "mapped", [1488, 1468]], [[64305, 64305], "mapped", [1489, 1468]], [[64306, 64306], "mapped", [1490, 1468]], [[64307, 64307], "mapped", [1491, 1468]], [[64308, 64308], "mapped", [1492, 1468]], [[64309, 64309], "mapped", [1493, 1468]], [[64310, 64310], "mapped", [1494, 1468]], [[64311, 64311], "disallowed"], [[64312, 64312], "mapped", [1496, 1468]], [[64313, 64313], "mapped", [1497, 1468]], [[64314, 64314], "mapped", [1498, 1468]], [[64315, 64315], "mapped", [1499, 1468]], [[64316, 64316], "mapped", [1500, 1468]], [[64317, 64317], "disallowed"], [[64318, 64318], "mapped", [1502, 1468]], [[64319, 64319], "disallowed"], [[64320, 64320], "mapped", [1504, 1468]], [[64321, 64321], "mapped", [1505, 1468]], [[64322, 64322], "disallowed"], [[64323, 64323], "mapped", [1507, 1468]], [[64324, 64324], "mapped", [1508, 1468]], [[64325, 64325], "disallowed"], [[64326, 64326], "mapped", [1510, 1468]], [[64327, 64327], "mapped", [1511, 1468]], [[64328, 64328], "mapped", [1512, 1468]], [[64329, 64329], "mapped", [1513, 1468]], [[64330, 64330], "mapped", [1514, 1468]], [[64331, 64331], "mapped", [1493, 1465]], [[64332, 64332], "mapped", [1489, 1471]], [[64333, 64333], "mapped", [1499, 1471]], [[64334, 64334], "mapped", [1508, 1471]], [[64335, 64335], "mapped", [1488, 1500]], [[64336, 64337], "mapped", [1649]], [[64338, 64341], "mapped", [1659]], [[64342, 64345], "mapped", [1662]], [[64346, 64349], "mapped", [1664]], [[64350, 64353], "mapped", [1658]], [[64354, 64357], "mapped", [1663]], [[64358, 64361], "mapped", [1657]], [[64362, 64365], "mapped", [1700]], [[64366, 64369], "mapped", [1702]], [[64370, 64373], "mapped", [1668]], [[64374, 64377], "mapped", [1667]], [[64378, 64381], "mapped", [1670]], [[64382, 64385], "mapped", [1671]], [[64386, 64387], "mapped", [1677]], [[64388, 64389], "mapped", [1676]], [[64390, 64391], "mapped", [1678]], [[64392, 64393], "mapped", [1672]], [[64394, 64395], "mapped", [1688]], [[64396, 64397], "mapped", [1681]], [[64398, 64401], "mapped", [1705]], [[64402, 64405], "mapped", [1711]], [[64406, 64409], "mapped", [1715]], [[64410, 64413], "mapped", [1713]], [[64414, 64415], "mapped", [1722]], [[64416, 64419], "mapped", [1723]], [[64420, 64421], "mapped", [1728]], [[64422, 64425], "mapped", [1729]], [[64426, 64429], "mapped", [1726]], [[64430, 64431], "mapped", [1746]], [[64432, 64433], "mapped", [1747]], [[64434, 64449], "valid", [], "NV8"], [[64450, 64466], "disallowed"], [[64467, 64470], "mapped", [1709]], [[64471, 64472], "mapped", [1735]], [[64473, 64474], "mapped", [1734]], [[64475, 64476], "mapped", [1736]], [[64477, 64477], "mapped", [1735, 1652]], [[64478, 64479], "mapped", [1739]], [[64480, 64481], "mapped", [1733]], [[64482, 64483], "mapped", [1737]], [[64484, 64487], "mapped", [1744]], [[64488, 64489], "mapped", [1609]], [[64490, 64491], "mapped", [1574, 1575]], [[64492, 64493], "mapped", [1574, 1749]], [[64494, 64495], "mapped", [1574, 1608]], [[64496, 64497], "mapped", [1574, 1735]], [[64498, 64499], "mapped", [1574, 1734]], [[64500, 64501], "mapped", [1574, 1736]], [[64502, 64504], "mapped", [1574, 1744]], [[64505, 64507], "mapped", [1574, 1609]], [[64508, 64511], "mapped", [1740]], [[64512, 64512], "mapped", [1574, 1580]], [[64513, 64513], "mapped", [1574, 1581]], [[64514, 64514], "mapped", [1574, 1605]], [[64515, 64515], "mapped", [1574, 1609]], [[64516, 64516], "mapped", [1574, 1610]], [[64517, 64517], "mapped", [1576, 1580]], [[64518, 64518], "mapped", [1576, 1581]], [[64519, 64519], "mapped", [1576, 1582]], [[64520, 64520], "mapped", [1576, 1605]], [[64521, 64521], "mapped", [1576, 1609]], [[64522, 64522], "mapped", [1576, 1610]], [[64523, 64523], "mapped", [1578, 1580]], [[64524, 64524], "mapped", [1578, 1581]], [[64525, 64525], "mapped", [1578, 1582]], [[64526, 64526], "mapped", [1578, 1605]], [[64527, 64527], "mapped", [1578, 1609]], [[64528, 64528], "mapped", [1578, 1610]], [[64529, 64529], "mapped", [1579, 1580]], [[64530, 64530], "mapped", [1579, 1605]], [[64531, 64531], "mapped", [1579, 1609]], [[64532, 64532], "mapped", [1579, 1610]], [[64533, 64533], "mapped", [1580, 1581]], [[64534, 64534], "mapped", [1580, 1605]], [[64535, 64535], "mapped", [1581, 1580]], [[64536, 64536], "mapped", [1581, 1605]], [[64537, 64537], "mapped", [1582, 1580]], [[64538, 64538], "mapped", [1582, 1581]], [[64539, 64539], "mapped", [1582, 1605]], [[64540, 64540], "mapped", [1587, 1580]], [[64541, 64541], "mapped", [1587, 1581]], [[64542, 64542], "mapped", [1587, 1582]], [[64543, 64543], "mapped", [1587, 1605]], [[64544, 64544], "mapped", [1589, 1581]], [[64545, 64545], "mapped", [1589, 1605]], [[64546, 64546], "mapped", [1590, 1580]], [[64547, 64547], "mapped", [1590, 1581]], [[64548, 64548], "mapped", [1590, 1582]], [[64549, 64549], "mapped", [1590, 1605]], [[64550, 64550], "mapped", [1591, 1581]], [[64551, 64551], "mapped", [1591, 1605]], [[64552, 64552], "mapped", [1592, 1605]], [[64553, 64553], "mapped", [1593, 1580]], [[64554, 64554], "mapped", [1593, 1605]], [[64555, 64555], "mapped", [1594, 1580]], [[64556, 64556], "mapped", [1594, 1605]], [[64557, 64557], "mapped", [1601, 1580]], [[64558, 64558], "mapped", [1601, 1581]], [[64559, 64559], "mapped", [1601, 1582]], [[64560, 64560], "mapped", [1601, 1605]], [[64561, 64561], "mapped", [1601, 1609]], [[64562, 64562], "mapped", [1601, 1610]], [[64563, 64563], "mapped", [1602, 1581]], [[64564, 64564], "mapped", [1602, 1605]], [[64565, 64565], "mapped", [1602, 1609]], [[64566, 64566], "mapped", [1602, 1610]], [[64567, 64567], "mapped", [1603, 1575]], [[64568, 64568], "mapped", [1603, 1580]], [[64569, 64569], "mapped", [1603, 1581]], [[64570, 64570], "mapped", [1603, 1582]], [[64571, 64571], "mapped", [1603, 1604]], [[64572, 64572], "mapped", [1603, 1605]], [[64573, 64573], "mapped", [1603, 1609]], [[64574, 64574], "mapped", [1603, 1610]], [[64575, 64575], "mapped", [1604, 1580]], [[64576, 64576], "mapped", [1604, 1581]], [[64577, 64577], "mapped", [1604, 1582]], [[64578, 64578], "mapped", [1604, 1605]], [[64579, 64579], "mapped", [1604, 1609]], [[64580, 64580], "mapped", [1604, 1610]], [[64581, 64581], "mapped", [1605, 1580]], [[64582, 64582], "mapped", [1605, 1581]], [[64583, 64583], "mapped", [1605, 1582]], [[64584, 64584], "mapped", [1605, 1605]], [[64585, 64585], "mapped", [1605, 1609]], [[64586, 64586], "mapped", [1605, 1610]], [[64587, 64587], "mapped", [1606, 1580]], [[64588, 64588], "mapped", [1606, 1581]], [[64589, 64589], "mapped", [1606, 1582]], [[64590, 64590], "mapped", [1606, 1605]], [[64591, 64591], "mapped", [1606, 1609]], [[64592, 64592], "mapped", [1606, 1610]], [[64593, 64593], "mapped", [1607, 1580]], [[64594, 64594], "mapped", [1607, 1605]], [[64595, 64595], "mapped", [1607, 1609]], [[64596, 64596], "mapped", [1607, 1610]], [[64597, 64597], "mapped", [1610, 1580]], [[64598, 64598], "mapped", [1610, 1581]], [[64599, 64599], "mapped", [1610, 1582]], [[64600, 64600], "mapped", [1610, 1605]], [[64601, 64601], "mapped", [1610, 1609]], [[64602, 64602], "mapped", [1610, 1610]], [[64603, 64603], "mapped", [1584, 1648]], [[64604, 64604], "mapped", [1585, 1648]], [[64605, 64605], "mapped", [1609, 1648]], [[64606, 64606], "disallowed_STD3_mapped", [32, 1612, 1617]], [[64607, 64607], "disallowed_STD3_mapped", [32, 1613, 1617]], [[64608, 64608], "disallowed_STD3_mapped", [32, 1614, 1617]], [[64609, 64609], "disallowed_STD3_mapped", [32, 1615, 1617]], [[64610, 64610], "disallowed_STD3_mapped", [32, 1616, 1617]], [[64611, 64611], "disallowed_STD3_mapped", [32, 1617, 1648]], [[64612, 64612], "mapped", [1574, 1585]], [[64613, 64613], "mapped", [1574, 1586]], [[64614, 64614], "mapped", [1574, 1605]], [[64615, 64615], "mapped", [1574, 1606]], [[64616, 64616], "mapped", [1574, 1609]], [[64617, 64617], "mapped", [1574, 1610]], [[64618, 64618], "mapped", [1576, 1585]], [[64619, 64619], "mapped", [1576, 1586]], [[64620, 64620], "mapped", [1576, 1605]], [[64621, 64621], "mapped", [1576, 1606]], [[64622, 64622], "mapped", [1576, 1609]], [[64623, 64623], "mapped", [1576, 1610]], [[64624, 64624], "mapped", [1578, 1585]], [[64625, 64625], "mapped", [1578, 1586]], [[64626, 64626], "mapped", [1578, 1605]], [[64627, 64627], "mapped", [1578, 1606]], [[64628, 64628], "mapped", [1578, 1609]], [[64629, 64629], "mapped", [1578, 1610]], [[64630, 64630], "mapped", [1579, 1585]], [[64631, 64631], "mapped", [1579, 1586]], [[64632, 64632], "mapped", [1579, 1605]], [[64633, 64633], "mapped", [1579, 1606]], [[64634, 64634], "mapped", [1579, 1609]], [[64635, 64635], "mapped", [1579, 1610]], [[64636, 64636], "mapped", [1601, 1609]], [[64637, 64637], "mapped", [1601, 1610]], [[64638, 64638], "mapped", [1602, 1609]], [[64639, 64639], "mapped", [1602, 1610]], [[64640, 64640], "mapped", [1603, 1575]], [[64641, 64641], "mapped", [1603, 1604]], [[64642, 64642], "mapped", [1603, 1605]], [[64643, 64643], "mapped", [1603, 1609]], [[64644, 64644], "mapped", [1603, 1610]], [[64645, 64645], "mapped", [1604, 1605]], [[64646, 64646], "mapped", [1604, 1609]], [[64647, 64647], "mapped", [1604, 1610]], [[64648, 64648], "mapped", [1605, 1575]], [[64649, 64649], "mapped", [1605, 1605]], [[64650, 64650], "mapped", [1606, 1585]], [[64651, 64651], "mapped", [1606, 1586]], [[64652, 64652], "mapped", [1606, 1605]], [[64653, 64653], "mapped", [1606, 1606]], [[64654, 64654], "mapped", [1606, 1609]], [[64655, 64655], "mapped", [1606, 1610]], [[64656, 64656], "mapped", [1609, 1648]], [[64657, 64657], "mapped", [1610, 1585]], [[64658, 64658], "mapped", [1610, 1586]], [[64659, 64659], "mapped", [1610, 1605]], [[64660, 64660], "mapped", [1610, 1606]], [[64661, 64661], "mapped", [1610, 1609]], [[64662, 64662], "mapped", [1610, 1610]], [[64663, 64663], "mapped", [1574, 1580]], [[64664, 64664], "mapped", [1574, 1581]], [[64665, 64665], "mapped", [1574, 1582]], [[64666, 64666], "mapped", [1574, 1605]], [[64667, 64667], "mapped", [1574, 1607]], [[64668, 64668], "mapped", [1576, 1580]], [[64669, 64669], "mapped", [1576, 1581]], [[64670, 64670], "mapped", [1576, 1582]], [[64671, 64671], "mapped", [1576, 1605]], [[64672, 64672], "mapped", [1576, 1607]], [[64673, 64673], "mapped", [1578, 1580]], [[64674, 64674], "mapped", [1578, 1581]], [[64675, 64675], "mapped", [1578, 1582]], [[64676, 64676], "mapped", [1578, 1605]], [[64677, 64677], "mapped", [1578, 1607]], [[64678, 64678], "mapped", [1579, 1605]], [[64679, 64679], "mapped", [1580, 1581]], [[64680, 64680], "mapped", [1580, 1605]], [[64681, 64681], "mapped", [1581, 1580]], [[64682, 64682], "mapped", [1581, 1605]], [[64683, 64683], "mapped", [1582, 1580]], [[64684, 64684], "mapped", [1582, 1605]], [[64685, 64685], "mapped", [1587, 1580]], [[64686, 64686], "mapped", [1587, 1581]], [[64687, 64687], "mapped", [1587, 1582]], [[64688, 64688], "mapped", [1587, 1605]], [[64689, 64689], "mapped", [1589, 1581]], [[64690, 64690], "mapped", [1589, 1582]], [[64691, 64691], "mapped", [1589, 1605]], [[64692, 64692], "mapped", [1590, 1580]], [[64693, 64693], "mapped", [1590, 1581]], [[64694, 64694], "mapped", [1590, 1582]], [[64695, 64695], "mapped", [1590, 1605]], [[64696, 64696], "mapped", [1591, 1581]], [[64697, 64697], "mapped", [1592, 1605]], [[64698, 64698], "mapped", [1593, 1580]], [[64699, 64699], "mapped", [1593, 1605]], [[64700, 64700], "mapped", [1594, 1580]], [[64701, 64701], "mapped", [1594, 1605]], [[64702, 64702], "mapped", [1601, 1580]], [[64703, 64703], "mapped", [1601, 1581]], [[64704, 64704], "mapped", [1601, 1582]], [[64705, 64705], "mapped", [1601, 1605]], [[64706, 64706], "mapped", [1602, 1581]], [[64707, 64707], "mapped", [1602, 1605]], [[64708, 64708], "mapped", [1603, 1580]], [[64709, 64709], "mapped", [1603, 1581]], [[64710, 64710], "mapped", [1603, 1582]], [[64711, 64711], "mapped", [1603, 1604]], [[64712, 64712], "mapped", [1603, 1605]], [[64713, 64713], "mapped", [1604, 1580]], [[64714, 64714], "mapped", [1604, 1581]], [[64715, 64715], "mapped", [1604, 1582]], [[64716, 64716], "mapped", [1604, 1605]], [[64717, 64717], "mapped", [1604, 1607]], [[64718, 64718], "mapped", [1605, 1580]], [[64719, 64719], "mapped", [1605, 1581]], [[64720, 64720], "mapped", [1605, 1582]], [[64721, 64721], "mapped", [1605, 1605]], [[64722, 64722], "mapped", [1606, 1580]], [[64723, 64723], "mapped", [1606, 1581]], [[64724, 64724], "mapped", [1606, 1582]], [[64725, 64725], "mapped", [1606, 1605]], [[64726, 64726], "mapped", [1606, 1607]], [[64727, 64727], "mapped", [1607, 1580]], [[64728, 64728], "mapped", [1607, 1605]], [[64729, 64729], "mapped", [1607, 1648]], [[64730, 64730], "mapped", [1610, 1580]], [[64731, 64731], "mapped", [1610, 1581]], [[64732, 64732], "mapped", [1610, 1582]], [[64733, 64733], "mapped", [1610, 1605]], [[64734, 64734], "mapped", [1610, 1607]], [[64735, 64735], "mapped", [1574, 1605]], [[64736, 64736], "mapped", [1574, 1607]], [[64737, 64737], "mapped", [1576, 1605]], [[64738, 64738], "mapped", [1576, 1607]], [[64739, 64739], "mapped", [1578, 1605]], [[64740, 64740], "mapped", [1578, 1607]], [[64741, 64741], "mapped", [1579, 1605]], [[64742, 64742], "mapped", [1579, 1607]], [[64743, 64743], "mapped", [1587, 1605]], [[64744, 64744], "mapped", [1587, 1607]], [[64745, 64745], "mapped", [1588, 1605]], [[64746, 64746], "mapped", [1588, 1607]], [[64747, 64747], "mapped", [1603, 1604]], [[64748, 64748], "mapped", [1603, 1605]], [[64749, 64749], "mapped", [1604, 1605]], [[64750, 64750], "mapped", [1606, 1605]], [[64751, 64751], "mapped", [1606, 1607]], [[64752, 64752], "mapped", [1610, 1605]], [[64753, 64753], "mapped", [1610, 1607]], [[64754, 64754], "mapped", [1600, 1614, 1617]], [[64755, 64755], "mapped", [1600, 1615, 1617]], [[64756, 64756], "mapped", [1600, 1616, 1617]], [[64757, 64757], "mapped", [1591, 1609]], [[64758, 64758], "mapped", [1591, 1610]], [[64759, 64759], "mapped", [1593, 1609]], [[64760, 64760], "mapped", [1593, 1610]], [[64761, 64761], "mapped", [1594, 1609]], [[64762, 64762], "mapped", [1594, 1610]], [[64763, 64763], "mapped", [1587, 1609]], [[64764, 64764], "mapped", [1587, 1610]], [[64765, 64765], "mapped", [1588, 1609]], [[64766, 64766], "mapped", [1588, 1610]], [[64767, 64767], "mapped", [1581, 1609]], [[64768, 64768], "mapped", [1581, 1610]], [[64769, 64769], "mapped", [1580, 1609]], [[64770, 64770], "mapped", [1580, 1610]], [[64771, 64771], "mapped", [1582, 1609]], [[64772, 64772], "mapped", [1582, 1610]], [[64773, 64773], "mapped", [1589, 1609]], [[64774, 64774], "mapped", [1589, 1610]], [[64775, 64775], "mapped", [1590, 1609]], [[64776, 64776], "mapped", [1590, 1610]], [[64777, 64777], "mapped", [1588, 1580]], [[64778, 64778], "mapped", [1588, 1581]], [[64779, 64779], "mapped", [1588, 1582]], [[64780, 64780], "mapped", [1588, 1605]], [[64781, 64781], "mapped", [1588, 1585]], [[64782, 64782], "mapped", [1587, 1585]], [[64783, 64783], "mapped", [1589, 1585]], [[64784, 64784], "mapped", [1590, 1585]], [[64785, 64785], "mapped", [1591, 1609]], [[64786, 64786], "mapped", [1591, 1610]], [[64787, 64787], "mapped", [1593, 1609]], [[64788, 64788], "mapped", [1593, 1610]], [[64789, 64789], "mapped", [1594, 1609]], [[64790, 64790], "mapped", [1594, 1610]], [[64791, 64791], "mapped", [1587, 1609]], [[64792, 64792], "mapped", [1587, 1610]], [[64793, 64793], "mapped", [1588, 1609]], [[64794, 64794], "mapped", [1588, 1610]], [[64795, 64795], "mapped", [1581, 1609]], [[64796, 64796], "mapped", [1581, 1610]], [[64797, 64797], "mapped", [1580, 1609]], [[64798, 64798], "mapped", [1580, 1610]], [[64799, 64799], "mapped", [1582, 1609]], [[64800, 64800], "mapped", [1582, 1610]], [[64801, 64801], "mapped", [1589, 1609]], [[64802, 64802], "mapped", [1589, 1610]], [[64803, 64803], "mapped", [1590, 1609]], [[64804, 64804], "mapped", [1590, 1610]], [[64805, 64805], "mapped", [1588, 1580]], [[64806, 64806], "mapped", [1588, 1581]], [[64807, 64807], "mapped", [1588, 1582]], [[64808, 64808], "mapped", [1588, 1605]], [[64809, 64809], "mapped", [1588, 1585]], [[64810, 64810], "mapped", [1587, 1585]], [[64811, 64811], "mapped", [1589, 1585]], [[64812, 64812], "mapped", [1590, 1585]], [[64813, 64813], "mapped", [1588, 1580]], [[64814, 64814], "mapped", [1588, 1581]], [[64815, 64815], "mapped", [1588, 1582]], [[64816, 64816], "mapped", [1588, 1605]], [[64817, 64817], "mapped", [1587, 1607]], [[64818, 64818], "mapped", [1588, 1607]], [[64819, 64819], "mapped", [1591, 1605]], [[64820, 64820], "mapped", [1587, 1580]], [[64821, 64821], "mapped", [1587, 1581]], [[64822, 64822], "mapped", [1587, 1582]], [[64823, 64823], "mapped", [1588, 1580]], [[64824, 64824], "mapped", [1588, 1581]], [[64825, 64825], "mapped", [1588, 1582]], [[64826, 64826], "mapped", [1591, 1605]], [[64827, 64827], "mapped", [1592, 1605]], [[64828, 64829], "mapped", [1575, 1611]], [[64830, 64831], "valid", [], "NV8"], [[64832, 64847], "disallowed"], [[64848, 64848], "mapped", [1578, 1580, 1605]], [[64849, 64850], "mapped", [1578, 1581, 1580]], [[64851, 64851], "mapped", [1578, 1581, 1605]], [[64852, 64852], "mapped", [1578, 1582, 1605]], [[64853, 64853], "mapped", [1578, 1605, 1580]], [[64854, 64854], "mapped", [1578, 1605, 1581]], [[64855, 64855], "mapped", [1578, 1605, 1582]], [[64856, 64857], "mapped", [1580, 1605, 1581]], [[64858, 64858], "mapped", [1581, 1605, 1610]], [[64859, 64859], "mapped", [1581, 1605, 1609]], [[64860, 64860], "mapped", [1587, 1581, 1580]], [[64861, 64861], "mapped", [1587, 1580, 1581]], [[64862, 64862], "mapped", [1587, 1580, 1609]], [[64863, 64864], "mapped", [1587, 1605, 1581]], [[64865, 64865], "mapped", [1587, 1605, 1580]], [[64866, 64867], "mapped", [1587, 1605, 1605]], [[64868, 64869], "mapped", [1589, 1581, 1581]], [[64870, 64870], "mapped", [1589, 1605, 1605]], [[64871, 64872], "mapped", [1588, 1581, 1605]], [[64873, 64873], "mapped", [1588, 1580, 1610]], [[64874, 64875], "mapped", [1588, 1605, 1582]], [[64876, 64877], "mapped", [1588, 1605, 1605]], [[64878, 64878], "mapped", [1590, 1581, 1609]], [[64879, 64880], "mapped", [1590, 1582, 1605]], [[64881, 64882], "mapped", [1591, 1605, 1581]], [[64883, 64883], "mapped", [1591, 1605, 1605]], [[64884, 64884], "mapped", [1591, 1605, 1610]], [[64885, 64885], "mapped", [1593, 1580, 1605]], [[64886, 64887], "mapped", [1593, 1605, 1605]], [[64888, 64888], "mapped", [1593, 1605, 1609]], [[64889, 64889], "mapped", [1594, 1605, 1605]], [[64890, 64890], "mapped", [1594, 1605, 1610]], [[64891, 64891], "mapped", [1594, 1605, 1609]], [[64892, 64893], "mapped", [1601, 1582, 1605]], [[64894, 64894], "mapped", [1602, 1605, 1581]], [[64895, 64895], "mapped", [1602, 1605, 1605]], [[64896, 64896], "mapped", [1604, 1581, 1605]], [[64897, 64897], "mapped", [1604, 1581, 1610]], [[64898, 64898], "mapped", [1604, 1581, 1609]], [[64899, 64900], "mapped", [1604, 1580, 1580]], [[64901, 64902], "mapped", [1604, 1582, 1605]], [[64903, 64904], "mapped", [1604, 1605, 1581]], [[64905, 64905], "mapped", [1605, 1581, 1580]], [[64906, 64906], "mapped", [1605, 1581, 1605]], [[64907, 64907], "mapped", [1605, 1581, 1610]], [[64908, 64908], "mapped", [1605, 1580, 1581]], [[64909, 64909], "mapped", [1605, 1580, 1605]], [[64910, 64910], "mapped", [1605, 1582, 1580]], [[64911, 64911], "mapped", [1605, 1582, 1605]], [[64912, 64913], "disallowed"], [[64914, 64914], "mapped", [1605, 1580, 1582]], [[64915, 64915], "mapped", [1607, 1605, 1580]], [[64916, 64916], "mapped", [1607, 1605, 1605]], [[64917, 64917], "mapped", [1606, 1581, 1605]], [[64918, 64918], "mapped", [1606, 1581, 1609]], [[64919, 64920], "mapped", [1606, 1580, 1605]], [[64921, 64921], "mapped", [1606, 1580, 1609]], [[64922, 64922], "mapped", [1606, 1605, 1610]], [[64923, 64923], "mapped", [1606, 1605, 1609]], [[64924, 64925], "mapped", [1610, 1605, 1605]], [[64926, 64926], "mapped", [1576, 1582, 1610]], [[64927, 64927], "mapped", [1578, 1580, 1610]], [[64928, 64928], "mapped", [1578, 1580, 1609]], [[64929, 64929], "mapped", [1578, 1582, 1610]], [[64930, 64930], "mapped", [1578, 1582, 1609]], [[64931, 64931], "mapped", [1578, 1605, 1610]], [[64932, 64932], "mapped", [1578, 1605, 1609]], [[64933, 64933], "mapped", [1580, 1605, 1610]], [[64934, 64934], "mapped", [1580, 1581, 1609]], [[64935, 64935], "mapped", [1580, 1605, 1609]], [[64936, 64936], "mapped", [1587, 1582, 1609]], [[64937, 64937], "mapped", [1589, 1581, 1610]], [[64938, 64938], "mapped", [1588, 1581, 1610]], [[64939, 64939], "mapped", [1590, 1581, 1610]], [[64940, 64940], "mapped", [1604, 1580, 1610]], [[64941, 64941], "mapped", [1604, 1605, 1610]], [[64942, 64942], "mapped", [1610, 1581, 1610]], [[64943, 64943], "mapped", [1610, 1580, 1610]], [[64944, 64944], "mapped", [1610, 1605, 1610]], [[64945, 64945], "mapped", [1605, 1605, 1610]], [[64946, 64946], "mapped", [1602, 1605, 1610]], [[64947, 64947], "mapped", [1606, 1581, 1610]], [[64948, 64948], "mapped", [1602, 1605, 1581]], [[64949, 64949], "mapped", [1604, 1581, 1605]], [[64950, 64950], "mapped", [1593, 1605, 1610]], [[64951, 64951], "mapped", [1603, 1605, 1610]], [[64952, 64952], "mapped", [1606, 1580, 1581]], [[64953, 64953], "mapped", [1605, 1582, 1610]], [[64954, 64954], "mapped", [1604, 1580, 1605]], [[64955, 64955], "mapped", [1603, 1605, 1605]], [[64956, 64956], "mapped", [1604, 1580, 1605]], [[64957, 64957], "mapped", [1606, 1580, 1581]], [[64958, 64958], "mapped", [1580, 1581, 1610]], [[64959, 64959], "mapped", [1581, 1580, 1610]], [[64960, 64960], "mapped", [1605, 1580, 1610]], [[64961, 64961], "mapped", [1601, 1605, 1610]], [[64962, 64962], "mapped", [1576, 1581, 1610]], [[64963, 64963], "mapped", [1603, 1605, 1605]], [[64964, 64964], "mapped", [1593, 1580, 1605]], [[64965, 64965], "mapped", [1589, 1605, 1605]], [[64966, 64966], "mapped", [1587, 1582, 1610]], [[64967, 64967], "mapped", [1606, 1580, 1610]], [[64968, 64975], "disallowed"], [[64976, 65007], "disallowed"], [[65008, 65008], "mapped", [1589, 1604, 1746]], [[65009, 65009], "mapped", [1602, 1604, 1746]], [[65010, 65010], "mapped", [1575, 1604, 1604, 1607]], [[65011, 65011], "mapped", [1575, 1603, 1576, 1585]], [[65012, 65012], "mapped", [1605, 1581, 1605, 1583]], [[65013, 65013], "mapped", [1589, 1604, 1593, 1605]], [[65014, 65014], "mapped", [1585, 1587, 1608, 1604]], [[65015, 65015], "mapped", [1593, 1604, 1610, 1607]], [[65016, 65016], "mapped", [1608, 1587, 1604, 1605]], [[65017, 65017], "mapped", [1589, 1604, 1609]], [[65018, 65018], "disallowed_STD3_mapped", [1589, 1604, 1609, 32, 1575, 1604, 1604, 1607, 32, 1593, 1604, 1610, 1607, 32, 1608, 1587, 1604, 1605]], [[65019, 65019], "disallowed_STD3_mapped", [1580, 1604, 32, 1580, 1604, 1575, 1604, 1607]], [[65020, 65020], "mapped", [1585, 1740, 1575, 1604]], [[65021, 65021], "valid", [], "NV8"], [[65022, 65023], "disallowed"], [[65024, 65039], "ignored"], [[65040, 65040], "disallowed_STD3_mapped", [44]], [[65041, 65041], "mapped", [12289]], [[65042, 65042], "disallowed"], [[65043, 65043], "disallowed_STD3_mapped", [58]], [[65044, 65044], "disallowed_STD3_mapped", [59]], [[65045, 65045], "disallowed_STD3_mapped", [33]], [[65046, 65046], "disallowed_STD3_mapped", [63]], [[65047, 65047], "mapped", [12310]], [[65048, 65048], "mapped", [12311]], [[65049, 65049], "disallowed"], [[65050, 65055], "disallowed"], [[65056, 65059], "valid"], [[65060, 65062], "valid"], [[65063, 65069], "valid"], [[65070, 65071], "valid"], [[65072, 65072], "disallowed"], [[65073, 65073], "mapped", [8212]], [[65074, 65074], "mapped", [8211]], [[65075, 65076], "disallowed_STD3_mapped", [95]], [[65077, 65077], "disallowed_STD3_mapped", [40]], [[65078, 65078], "disallowed_STD3_mapped", [41]], [[65079, 65079], "disallowed_STD3_mapped", [123]], [[65080, 65080], "disallowed_STD3_mapped", [125]], [[65081, 65081], "mapped", [12308]], [[65082, 65082], "mapped", [12309]], [[65083, 65083], "mapped", [12304]], [[65084, 65084], "mapped", [12305]], [[65085, 65085], "mapped", [12298]], [[65086, 65086], "mapped", [12299]], [[65087, 65087], "mapped", [12296]], [[65088, 65088], "mapped", [12297]], [[65089, 65089], "mapped", [12300]], [[65090, 65090], "mapped", [12301]], [[65091, 65091], "mapped", [12302]], [[65092, 65092], "mapped", [12303]], [[65093, 65094], "valid", [], "NV8"], [[65095, 65095], "disallowed_STD3_mapped", [91]], [[65096, 65096], "disallowed_STD3_mapped", [93]], [[65097, 65100], "disallowed_STD3_mapped", [32, 773]], [[65101, 65103], "disallowed_STD3_mapped", [95]], [[65104, 65104], "disallowed_STD3_mapped", [44]], [[65105, 65105], "mapped", [12289]], [[65106, 65106], "disallowed"], [[65107, 65107], "disallowed"], [[65108, 65108], "disallowed_STD3_mapped", [59]], [[65109, 65109], "disallowed_STD3_mapped", [58]], [[65110, 65110], "disallowed_STD3_mapped", [63]], [[65111, 65111], "disallowed_STD3_mapped", [33]], [[65112, 65112], "mapped", [8212]], [[65113, 65113], "disallowed_STD3_mapped", [40]], [[65114, 65114], "disallowed_STD3_mapped", [41]], [[65115, 65115], "disallowed_STD3_mapped", [123]], [[65116, 65116], "disallowed_STD3_mapped", [125]], [[65117, 65117], "mapped", [12308]], [[65118, 65118], "mapped", [12309]], [[65119, 65119], "disallowed_STD3_mapped", [35]], [[65120, 65120], "disallowed_STD3_mapped", [38]], [[65121, 65121], "disallowed_STD3_mapped", [42]], [[65122, 65122], "disallowed_STD3_mapped", [43]], [[65123, 65123], "mapped", [45]], [[65124, 65124], "disallowed_STD3_mapped", [60]], [[65125, 65125], "disallowed_STD3_mapped", [62]], [[65126, 65126], "disallowed_STD3_mapped", [61]], [[65127, 65127], "disallowed"], [[65128, 65128], "disallowed_STD3_mapped", [92]], [[65129, 65129], "disallowed_STD3_mapped", [36]], [[65130, 65130], "disallowed_STD3_mapped", [37]], [[65131, 65131], "disallowed_STD3_mapped", [64]], [[65132, 65135], "disallowed"], [[65136, 65136], "disallowed_STD3_mapped", [32, 1611]], [[65137, 65137], "mapped", [1600, 1611]], [[65138, 65138], "disallowed_STD3_mapped", [32, 1612]], [[65139, 65139], "valid"], [[65140, 65140], "disallowed_STD3_mapped", [32, 1613]], [[65141, 65141], "disallowed"], [[65142, 65142], "disallowed_STD3_mapped", [32, 1614]], [[65143, 65143], "mapped", [1600, 1614]], [[65144, 65144], "disallowed_STD3_mapped", [32, 1615]], [[65145, 65145], "mapped", [1600, 1615]], [[65146, 65146], "disallowed_STD3_mapped", [32, 1616]], [[65147, 65147], "mapped", [1600, 1616]], [[65148, 65148], "disallowed_STD3_mapped", [32, 1617]], [[65149, 65149], "mapped", [1600, 1617]], [[65150, 65150], "disallowed_STD3_mapped", [32, 1618]], [[65151, 65151], "mapped", [1600, 1618]], [[65152, 65152], "mapped", [1569]], [[65153, 65154], "mapped", [1570]], [[65155, 65156], "mapped", [1571]], [[65157, 65158], "mapped", [1572]], [[65159, 65160], "mapped", [1573]], [[65161, 65164], "mapped", [1574]], [[65165, 65166], "mapped", [1575]], [[65167, 65170], "mapped", [1576]], [[65171, 65172], "mapped", [1577]], [[65173, 65176], "mapped", [1578]], [[65177, 65180], "mapped", [1579]], [[65181, 65184], "mapped", [1580]], [[65185, 65188], "mapped", [1581]], [[65189, 65192], "mapped", [1582]], [[65193, 65194], "mapped", [1583]], [[65195, 65196], "mapped", [1584]], [[65197, 65198], "mapped", [1585]], [[65199, 65200], "mapped", [1586]], [[65201, 65204], "mapped", [1587]], [[65205, 65208], "mapped", [1588]], [[65209, 65212], "mapped", [1589]], [[65213, 65216], "mapped", [1590]], [[65217, 65220], "mapped", [1591]], [[65221, 65224], "mapped", [1592]], [[65225, 65228], "mapped", [1593]], [[65229, 65232], "mapped", [1594]], [[65233, 65236], "mapped", [1601]], [[65237, 65240], "mapped", [1602]], [[65241, 65244], "mapped", [1603]], [[65245, 65248], "mapped", [1604]], [[65249, 65252], "mapped", [1605]], [[65253, 65256], "mapped", [1606]], [[65257, 65260], "mapped", [1607]], [[65261, 65262], "mapped", [1608]], [[65263, 65264], "mapped", [1609]], [[65265, 65268], "mapped", [1610]], [[65269, 65270], "mapped", [1604, 1570]], [[65271, 65272], "mapped", [1604, 1571]], [[65273, 65274], "mapped", [1604, 1573]], [[65275, 65276], "mapped", [1604, 1575]], [[65277, 65278], "disallowed"], [[65279, 65279], "ignored"], [[65280, 65280], "disallowed"], [[65281, 65281], "disallowed_STD3_mapped", [33]], [[65282, 65282], "disallowed_STD3_mapped", [34]], [[65283, 65283], "disallowed_STD3_mapped", [35]], [[65284, 65284], "disallowed_STD3_mapped", [36]], [[65285, 65285], "disallowed_STD3_mapped", [37]], [[65286, 65286], "disallowed_STD3_mapped", [38]], [[65287, 65287], "disallowed_STD3_mapped", [39]], [[65288, 65288], "disallowed_STD3_mapped", [40]], [[65289, 65289], "disallowed_STD3_mapped", [41]], [[65290, 65290], "disallowed_STD3_mapped", [42]], [[65291, 65291], "disallowed_STD3_mapped", [43]], [[65292, 65292], "disallowed_STD3_mapped", [44]], [[65293, 65293], "mapped", [45]], [[65294, 65294], "mapped", [46]], [[65295, 65295], "disallowed_STD3_mapped", [47]], [[65296, 65296], "mapped", [48]], [[65297, 65297], "mapped", [49]], [[65298, 65298], "mapped", [50]], [[65299, 65299], "mapped", [51]], [[65300, 65300], "mapped", [52]], [[65301, 65301], "mapped", [53]], [[65302, 65302], "mapped", [54]], [[65303, 65303], "mapped", [55]], [[65304, 65304], "mapped", [56]], [[65305, 65305], "mapped", [57]], [[65306, 65306], "disallowed_STD3_mapped", [58]], [[65307, 65307], "disallowed_STD3_mapped", [59]], [[65308, 65308], "disallowed_STD3_mapped", [60]], [[65309, 65309], "disallowed_STD3_mapped", [61]], [[65310, 65310], "disallowed_STD3_mapped", [62]], [[65311, 65311], "disallowed_STD3_mapped", [63]], [[65312, 65312], "disallowed_STD3_mapped", [64]], [[65313, 65313], "mapped", [97]], [[65314, 65314], "mapped", [98]], [[65315, 65315], "mapped", [99]], [[65316, 65316], "mapped", [100]], [[65317, 65317], "mapped", [101]], [[65318, 65318], "mapped", [102]], [[65319, 65319], "mapped", [103]], [[65320, 65320], "mapped", [104]], [[65321, 65321], "mapped", [105]], [[65322, 65322], "mapped", [106]], [[65323, 65323], "mapped", [107]], [[65324, 65324], "mapped", [108]], [[65325, 65325], "mapped", [109]], [[65326, 65326], "mapped", [110]], [[65327, 65327], "mapped", [111]], [[65328, 65328], "mapped", [112]], [[65329, 65329], "mapped", [113]], [[65330, 65330], "mapped", [114]], [[65331, 65331], "mapped", [115]], [[65332, 65332], "mapped", [116]], [[65333, 65333], "mapped", [117]], [[65334, 65334], "mapped", [118]], [[65335, 65335], "mapped", [119]], [[65336, 65336], "mapped", [120]], [[65337, 65337], "mapped", [121]], [[65338, 65338], "mapped", [122]], [[65339, 65339], "disallowed_STD3_mapped", [91]], [[65340, 65340], "disallowed_STD3_mapped", [92]], [[65341, 65341], "disallowed_STD3_mapped", [93]], [[65342, 65342], "disallowed_STD3_mapped", [94]], [[65343, 65343], "disallowed_STD3_mapped", [95]], [[65344, 65344], "disallowed_STD3_mapped", [96]], [[65345, 65345], "mapped", [97]], [[65346, 65346], "mapped", [98]], [[65347, 65347], "mapped", [99]], [[65348, 65348], "mapped", [100]], [[65349, 65349], "mapped", [101]], [[65350, 65350], "mapped", [102]], [[65351, 65351], "mapped", [103]], [[65352, 65352], "mapped", [104]], [[65353, 65353], "mapped", [105]], [[65354, 65354], "mapped", [106]], [[65355, 65355], "mapped", [107]], [[65356, 65356], "mapped", [108]], [[65357, 65357], "mapped", [109]], [[65358, 65358], "mapped", [110]], [[65359, 65359], "mapped", [111]], [[65360, 65360], "mapped", [112]], [[65361, 65361], "mapped", [113]], [[65362, 65362], "mapped", [114]], [[65363, 65363], "mapped", [115]], [[65364, 65364], "mapped", [116]], [[65365, 65365], "mapped", [117]], [[65366, 65366], "mapped", [118]], [[65367, 65367], "mapped", [119]], [[65368, 65368], "mapped", [120]], [[65369, 65369], "mapped", [121]], [[65370, 65370], "mapped", [122]], [[65371, 65371], "disallowed_STD3_mapped", [123]], [[65372, 65372], "disallowed_STD3_mapped", [124]], [[65373, 65373], "disallowed_STD3_mapped", [125]], [[65374, 65374], "disallowed_STD3_mapped", [126]], [[65375, 65375], "mapped", [10629]], [[65376, 65376], "mapped", [10630]], [[65377, 65377], "mapped", [46]], [[65378, 65378], "mapped", [12300]], [[65379, 65379], "mapped", [12301]], [[65380, 65380], "mapped", [12289]], [[65381, 65381], "mapped", [12539]], [[65382, 65382], "mapped", [12530]], [[65383, 65383], "mapped", [12449]], [[65384, 65384], "mapped", [12451]], [[65385, 65385], "mapped", [12453]], [[65386, 65386], "mapped", [12455]], [[65387, 65387], "mapped", [12457]], [[65388, 65388], "mapped", [12515]], [[65389, 65389], "mapped", [12517]], [[65390, 65390], "mapped", [12519]], [[65391, 65391], "mapped", [12483]], [[65392, 65392], "mapped", [12540]], [[65393, 65393], "mapped", [12450]], [[65394, 65394], "mapped", [12452]], [[65395, 65395], "mapped", [12454]], [[65396, 65396], "mapped", [12456]], [[65397, 65397], "mapped", [12458]], [[65398, 65398], "mapped", [12459]], [[65399, 65399], "mapped", [12461]], [[65400, 65400], "mapped", [12463]], [[65401, 65401], "mapped", [12465]], [[65402, 65402], "mapped", [12467]], [[65403, 65403], "mapped", [12469]], [[65404, 65404], "mapped", [12471]], [[65405, 65405], "mapped", [12473]], [[65406, 65406], "mapped", [12475]], [[65407, 65407], "mapped", [12477]], [[65408, 65408], "mapped", [12479]], [[65409, 65409], "mapped", [12481]], [[65410, 65410], "mapped", [12484]], [[65411, 65411], "mapped", [12486]], [[65412, 65412], "mapped", [12488]], [[65413, 65413], "mapped", [12490]], [[65414, 65414], "mapped", [12491]], [[65415, 65415], "mapped", [12492]], [[65416, 65416], "mapped", [12493]], [[65417, 65417], "mapped", [12494]], [[65418, 65418], "mapped", [12495]], [[65419, 65419], "mapped", [12498]], [[65420, 65420], "mapped", [12501]], [[65421, 65421], "mapped", [12504]], [[65422, 65422], "mapped", [12507]], [[65423, 65423], "mapped", [12510]], [[65424, 65424], "mapped", [12511]], [[65425, 65425], "mapped", [12512]], [[65426, 65426], "mapped", [12513]], [[65427, 65427], "mapped", [12514]], [[65428, 65428], "mapped", [12516]], [[65429, 65429], "mapped", [12518]], [[65430, 65430], "mapped", [12520]], [[65431, 65431], "mapped", [12521]], [[65432, 65432], "mapped", [12522]], [[65433, 65433], "mapped", [12523]], [[65434, 65434], "mapped", [12524]], [[65435, 65435], "mapped", [12525]], [[65436, 65436], "mapped", [12527]], [[65437, 65437], "mapped", [12531]], [[65438, 65438], "mapped", [12441]], [[65439, 65439], "mapped", [12442]], [[65440, 65440], "disallowed"], [[65441, 65441], "mapped", [4352]], [[65442, 65442], "mapped", [4353]], [[65443, 65443], "mapped", [4522]], [[65444, 65444], "mapped", [4354]], [[65445, 65445], "mapped", [4524]], [[65446, 65446], "mapped", [4525]], [[65447, 65447], "mapped", [4355]], [[65448, 65448], "mapped", [4356]], [[65449, 65449], "mapped", [4357]], [[65450, 65450], "mapped", [4528]], [[65451, 65451], "mapped", [4529]], [[65452, 65452], "mapped", [4530]], [[65453, 65453], "mapped", [4531]], [[65454, 65454], "mapped", [4532]], [[65455, 65455], "mapped", [4533]], [[65456, 65456], "mapped", [4378]], [[65457, 65457], "mapped", [4358]], [[65458, 65458], "mapped", [4359]], [[65459, 65459], "mapped", [4360]], [[65460, 65460], "mapped", [4385]], [[65461, 65461], "mapped", [4361]], [[65462, 65462], "mapped", [4362]], [[65463, 65463], "mapped", [4363]], [[65464, 65464], "mapped", [4364]], [[65465, 65465], "mapped", [4365]], [[65466, 65466], "mapped", [4366]], [[65467, 65467], "mapped", [4367]], [[65468, 65468], "mapped", [4368]], [[65469, 65469], "mapped", [4369]], [[65470, 65470], "mapped", [4370]], [[65471, 65473], "disallowed"], [[65474, 65474], "mapped", [4449]], [[65475, 65475], "mapped", [4450]], [[65476, 65476], "mapped", [4451]], [[65477, 65477], "mapped", [4452]], [[65478, 65478], "mapped", [4453]], [[65479, 65479], "mapped", [4454]], [[65480, 65481], "disallowed"], [[65482, 65482], "mapped", [4455]], [[65483, 65483], "mapped", [4456]], [[65484, 65484], "mapped", [4457]], [[65485, 65485], "mapped", [4458]], [[65486, 65486], "mapped", [4459]], [[65487, 65487], "mapped", [4460]], [[65488, 65489], "disallowed"], [[65490, 65490], "mapped", [4461]], [[65491, 65491], "mapped", [4462]], [[65492, 65492], "mapped", [4463]], [[65493, 65493], "mapped", [4464]], [[65494, 65494], "mapped", [4465]], [[65495, 65495], "mapped", [4466]], [[65496, 65497], "disallowed"], [[65498, 65498], "mapped", [4467]], [[65499, 65499], "mapped", [4468]], [[65500, 65500], "mapped", [4469]], [[65501, 65503], "disallowed"], [[65504, 65504], "mapped", [162]], [[65505, 65505], "mapped", [163]], [[65506, 65506], "mapped", [172]], [[65507, 65507], "disallowed_STD3_mapped", [32, 772]], [[65508, 65508], "mapped", [166]], [[65509, 65509], "mapped", [165]], [[65510, 65510], "mapped", [8361]], [[65511, 65511], "disallowed"], [[65512, 65512], "mapped", [9474]], [[65513, 65513], "mapped", [8592]], [[65514, 65514], "mapped", [8593]], [[65515, 65515], "mapped", [8594]], [[65516, 65516], "mapped", [8595]], [[65517, 65517], "mapped", [9632]], [[65518, 65518], "mapped", [9675]], [[65519, 65528], "disallowed"], [[65529, 65531], "disallowed"], [[65532, 65532], "disallowed"], [[65533, 65533], "disallowed"], [[65534, 65535], "disallowed"], [[65536, 65547], "valid"], [[65548, 65548], "disallowed"], [[65549, 65574], "valid"], [[65575, 65575], "disallowed"], [[65576, 65594], "valid"], [[65595, 65595], "disallowed"], [[65596, 65597], "valid"], [[65598, 65598], "disallowed"], [[65599, 65613], "valid"], [[65614, 65615], "disallowed"], [[65616, 65629], "valid"], [[65630, 65663], "disallowed"], [[65664, 65786], "valid"], [[65787, 65791], "disallowed"], [[65792, 65794], "valid", [], "NV8"], [[65795, 65798], "disallowed"], [[65799, 65843], "valid", [], "NV8"], [[65844, 65846], "disallowed"], [[65847, 65855], "valid", [], "NV8"], [[65856, 65930], "valid", [], "NV8"], [[65931, 65932], "valid", [], "NV8"], [[65933, 65935], "disallowed"], [[65936, 65947], "valid", [], "NV8"], [[65948, 65951], "disallowed"], [[65952, 65952], "valid", [], "NV8"], [[65953, 65999], "disallowed"], [[66e3, 66044], "valid", [], "NV8"], [[66045, 66045], "valid"], [[66046, 66175], "disallowed"], [[66176, 66204], "valid"], [[66205, 66207], "disallowed"], [[66208, 66256], "valid"], [[66257, 66271], "disallowed"], [[66272, 66272], "valid"], [[66273, 66299], "valid", [], "NV8"], [[66300, 66303], "disallowed"], [[66304, 66334], "valid"], [[66335, 66335], "valid"], [[66336, 66339], "valid", [], "NV8"], [[66340, 66351], "disallowed"], [[66352, 66368], "valid"], [[66369, 66369], "valid", [], "NV8"], [[66370, 66377], "valid"], [[66378, 66378], "valid", [], "NV8"], [[66379, 66383], "disallowed"], [[66384, 66426], "valid"], [[66427, 66431], "disallowed"], [[66432, 66461], "valid"], [[66462, 66462], "disallowed"], [[66463, 66463], "valid", [], "NV8"], [[66464, 66499], "valid"], [[66500, 66503], "disallowed"], [[66504, 66511], "valid"], [[66512, 66517], "valid", [], "NV8"], [[66518, 66559], "disallowed"], [[66560, 66560], "mapped", [66600]], [[66561, 66561], "mapped", [66601]], [[66562, 66562], "mapped", [66602]], [[66563, 66563], "mapped", [66603]], [[66564, 66564], "mapped", [66604]], [[66565, 66565], "mapped", [66605]], [[66566, 66566], "mapped", [66606]], [[66567, 66567], "mapped", [66607]], [[66568, 66568], "mapped", [66608]], [[66569, 66569], "mapped", [66609]], [[66570, 66570], "mapped", [66610]], [[66571, 66571], "mapped", [66611]], [[66572, 66572], "mapped", [66612]], [[66573, 66573], "mapped", [66613]], [[66574, 66574], "mapped", [66614]], [[66575, 66575], "mapped", [66615]], [[66576, 66576], "mapped", [66616]], [[66577, 66577], "mapped", [66617]], [[66578, 66578], "mapped", [66618]], [[66579, 66579], "mapped", [66619]], [[66580, 66580], "mapped", [66620]], [[66581, 66581], "mapped", [66621]], [[66582, 66582], "mapped", [66622]], [[66583, 66583], "mapped", [66623]], [[66584, 66584], "mapped", [66624]], [[66585, 66585], "mapped", [66625]], [[66586, 66586], "mapped", [66626]], [[66587, 66587], "mapped", [66627]], [[66588, 66588], "mapped", [66628]], [[66589, 66589], "mapped", [66629]], [[66590, 66590], "mapped", [66630]], [[66591, 66591], "mapped", [66631]], [[66592, 66592], "mapped", [66632]], [[66593, 66593], "mapped", [66633]], [[66594, 66594], "mapped", [66634]], [[66595, 66595], "mapped", [66635]], [[66596, 66596], "mapped", [66636]], [[66597, 66597], "mapped", [66637]], [[66598, 66598], "mapped", [66638]], [[66599, 66599], "mapped", [66639]], [[66600, 66637], "valid"], [[66638, 66717], "valid"], [[66718, 66719], "disallowed"], [[66720, 66729], "valid"], [[66730, 66815], "disallowed"], [[66816, 66855], "valid"], [[66856, 66863], "disallowed"], [[66864, 66915], "valid"], [[66916, 66926], "disallowed"], [[66927, 66927], "valid", [], "NV8"], [[66928, 67071], "disallowed"], [[67072, 67382], "valid"], [[67383, 67391], "disallowed"], [[67392, 67413], "valid"], [[67414, 67423], "disallowed"], [[67424, 67431], "valid"], [[67432, 67583], "disallowed"], [[67584, 67589], "valid"], [[67590, 67591], "disallowed"], [[67592, 67592], "valid"], [[67593, 67593], "disallowed"], [[67594, 67637], "valid"], [[67638, 67638], "disallowed"], [[67639, 67640], "valid"], [[67641, 67643], "disallowed"], [[67644, 67644], "valid"], [[67645, 67646], "disallowed"], [[67647, 67647], "valid"], [[67648, 67669], "valid"], [[67670, 67670], "disallowed"], [[67671, 67679], "valid", [], "NV8"], [[67680, 67702], "valid"], [[67703, 67711], "valid", [], "NV8"], [[67712, 67742], "valid"], [[67743, 67750], "disallowed"], [[67751, 67759], "valid", [], "NV8"], [[67760, 67807], "disallowed"], [[67808, 67826], "valid"], [[67827, 67827], "disallowed"], [[67828, 67829], "valid"], [[67830, 67834], "disallowed"], [[67835, 67839], "valid", [], "NV8"], [[67840, 67861], "valid"], [[67862, 67865], "valid", [], "NV8"], [[67866, 67867], "valid", [], "NV8"], [[67868, 67870], "disallowed"], [[67871, 67871], "valid", [], "NV8"], [[67872, 67897], "valid"], [[67898, 67902], "disallowed"], [[67903, 67903], "valid", [], "NV8"], [[67904, 67967], "disallowed"], [[67968, 68023], "valid"], [[68024, 68027], "disallowed"], [[68028, 68029], "valid", [], "NV8"], [[68030, 68031], "valid"], [[68032, 68047], "valid", [], "NV8"], [[68048, 68049], "disallowed"], [[68050, 68095], "valid", [], "NV8"], [[68096, 68099], "valid"], [[68100, 68100], "disallowed"], [[68101, 68102], "valid"], [[68103, 68107], "disallowed"], [[68108, 68115], "valid"], [[68116, 68116], "disallowed"], [[68117, 68119], "valid"], [[68120, 68120], "disallowed"], [[68121, 68147], "valid"], [[68148, 68151], "disallowed"], [[68152, 68154], "valid"], [[68155, 68158], "disallowed"], [[68159, 68159], "valid"], [[68160, 68167], "valid", [], "NV8"], [[68168, 68175], "disallowed"], [[68176, 68184], "valid", [], "NV8"], [[68185, 68191], "disallowed"], [[68192, 68220], "valid"], [[68221, 68223], "valid", [], "NV8"], [[68224, 68252], "valid"], [[68253, 68255], "valid", [], "NV8"], [[68256, 68287], "disallowed"], [[68288, 68295], "valid"], [[68296, 68296], "valid", [], "NV8"], [[68297, 68326], "valid"], [[68327, 68330], "disallowed"], [[68331, 68342], "valid", [], "NV8"], [[68343, 68351], "disallowed"], [[68352, 68405], "valid"], [[68406, 68408], "disallowed"], [[68409, 68415], "valid", [], "NV8"], [[68416, 68437], "valid"], [[68438, 68439], "disallowed"], [[68440, 68447], "valid", [], "NV8"], [[68448, 68466], "valid"], [[68467, 68471], "disallowed"], [[68472, 68479], "valid", [], "NV8"], [[68480, 68497], "valid"], [[68498, 68504], "disallowed"], [[68505, 68508], "valid", [], "NV8"], [[68509, 68520], "disallowed"], [[68521, 68527], "valid", [], "NV8"], [[68528, 68607], "disallowed"], [[68608, 68680], "valid"], [[68681, 68735], "disallowed"], [[68736, 68736], "mapped", [68800]], [[68737, 68737], "mapped", [68801]], [[68738, 68738], "mapped", [68802]], [[68739, 68739], "mapped", [68803]], [[68740, 68740], "mapped", [68804]], [[68741, 68741], "mapped", [68805]], [[68742, 68742], "mapped", [68806]], [[68743, 68743], "mapped", [68807]], [[68744, 68744], "mapped", [68808]], [[68745, 68745], "mapped", [68809]], [[68746, 68746], "mapped", [68810]], [[68747, 68747], "mapped", [68811]], [[68748, 68748], "mapped", [68812]], [[68749, 68749], "mapped", [68813]], [[68750, 68750], "mapped", [68814]], [[68751, 68751], "mapped", [68815]], [[68752, 68752], "mapped", [68816]], [[68753, 68753], "mapped", [68817]], [[68754, 68754], "mapped", [68818]], [[68755, 68755], "mapped", [68819]], [[68756, 68756], "mapped", [68820]], [[68757, 68757], "mapped", [68821]], [[68758, 68758], "mapped", [68822]], [[68759, 68759], "mapped", [68823]], [[68760, 68760], "mapped", [68824]], [[68761, 68761], "mapped", [68825]], [[68762, 68762], "mapped", [68826]], [[68763, 68763], "mapped", [68827]], [[68764, 68764], "mapped", [68828]], [[68765, 68765], "mapped", [68829]], [[68766, 68766], "mapped", [68830]], [[68767, 68767], "mapped", [68831]], [[68768, 68768], "mapped", [68832]], [[68769, 68769], "mapped", [68833]], [[68770, 68770], "mapped", [68834]], [[68771, 68771], "mapped", [68835]], [[68772, 68772], "mapped", [68836]], [[68773, 68773], "mapped", [68837]], [[68774, 68774], "mapped", [68838]], [[68775, 68775], "mapped", [68839]], [[68776, 68776], "mapped", [68840]], [[68777, 68777], "mapped", [68841]], [[68778, 68778], "mapped", [68842]], [[68779, 68779], "mapped", [68843]], [[68780, 68780], "mapped", [68844]], [[68781, 68781], "mapped", [68845]], [[68782, 68782], "mapped", [68846]], [[68783, 68783], "mapped", [68847]], [[68784, 68784], "mapped", [68848]], [[68785, 68785], "mapped", [68849]], [[68786, 68786], "mapped", [68850]], [[68787, 68799], "disallowed"], [[68800, 68850], "valid"], [[68851, 68857], "disallowed"], [[68858, 68863], "valid", [], "NV8"], [[68864, 69215], "disallowed"], [[69216, 69246], "valid", [], "NV8"], [[69247, 69631], "disallowed"], [[69632, 69702], "valid"], [[69703, 69709], "valid", [], "NV8"], [[69710, 69713], "disallowed"], [[69714, 69733], "valid", [], "NV8"], [[69734, 69743], "valid"], [[69744, 69758], "disallowed"], [[69759, 69759], "valid"], [[69760, 69818], "valid"], [[69819, 69820], "valid", [], "NV8"], [[69821, 69821], "disallowed"], [[69822, 69825], "valid", [], "NV8"], [[69826, 69839], "disallowed"], [[69840, 69864], "valid"], [[69865, 69871], "disallowed"], [[69872, 69881], "valid"], [[69882, 69887], "disallowed"], [[69888, 69940], "valid"], [[69941, 69941], "disallowed"], [[69942, 69951], "valid"], [[69952, 69955], "valid", [], "NV8"], [[69956, 69967], "disallowed"], [[69968, 70003], "valid"], [[70004, 70005], "valid", [], "NV8"], [[70006, 70006], "valid"], [[70007, 70015], "disallowed"], [[70016, 70084], "valid"], [[70085, 70088], "valid", [], "NV8"], [[70089, 70089], "valid", [], "NV8"], [[70090, 70092], "valid"], [[70093, 70093], "valid", [], "NV8"], [[70094, 70095], "disallowed"], [[70096, 70105], "valid"], [[70106, 70106], "valid"], [[70107, 70107], "valid", [], "NV8"], [[70108, 70108], "valid"], [[70109, 70111], "valid", [], "NV8"], [[70112, 70112], "disallowed"], [[70113, 70132], "valid", [], "NV8"], [[70133, 70143], "disallowed"], [[70144, 70161], "valid"], [[70162, 70162], "disallowed"], [[70163, 70199], "valid"], [[70200, 70205], "valid", [], "NV8"], [[70206, 70271], "disallowed"], [[70272, 70278], "valid"], [[70279, 70279], "disallowed"], [[70280, 70280], "valid"], [[70281, 70281], "disallowed"], [[70282, 70285], "valid"], [[70286, 70286], "disallowed"], [[70287, 70301], "valid"], [[70302, 70302], "disallowed"], [[70303, 70312], "valid"], [[70313, 70313], "valid", [], "NV8"], [[70314, 70319], "disallowed"], [[70320, 70378], "valid"], [[70379, 70383], "disallowed"], [[70384, 70393], "valid"], [[70394, 70399], "disallowed"], [[70400, 70400], "valid"], [[70401, 70403], "valid"], [[70404, 70404], "disallowed"], [[70405, 70412], "valid"], [[70413, 70414], "disallowed"], [[70415, 70416], "valid"], [[70417, 70418], "disallowed"], [[70419, 70440], "valid"], [[70441, 70441], "disallowed"], [[70442, 70448], "valid"], [[70449, 70449], "disallowed"], [[70450, 70451], "valid"], [[70452, 70452], "disallowed"], [[70453, 70457], "valid"], [[70458, 70459], "disallowed"], [[70460, 70468], "valid"], [[70469, 70470], "disallowed"], [[70471, 70472], "valid"], [[70473, 70474], "disallowed"], [[70475, 70477], "valid"], [[70478, 70479], "disallowed"], [[70480, 70480], "valid"], [[70481, 70486], "disallowed"], [[70487, 70487], "valid"], [[70488, 70492], "disallowed"], [[70493, 70499], "valid"], [[70500, 70501], "disallowed"], [[70502, 70508], "valid"], [[70509, 70511], "disallowed"], [[70512, 70516], "valid"], [[70517, 70783], "disallowed"], [[70784, 70853], "valid"], [[70854, 70854], "valid", [], "NV8"], [[70855, 70855], "valid"], [[70856, 70863], "disallowed"], [[70864, 70873], "valid"], [[70874, 71039], "disallowed"], [[71040, 71093], "valid"], [[71094, 71095], "disallowed"], [[71096, 71104], "valid"], [[71105, 71113], "valid", [], "NV8"], [[71114, 71127], "valid", [], "NV8"], [[71128, 71133], "valid"], [[71134, 71167], "disallowed"], [[71168, 71232], "valid"], [[71233, 71235], "valid", [], "NV8"], [[71236, 71236], "valid"], [[71237, 71247], "disallowed"], [[71248, 71257], "valid"], [[71258, 71295], "disallowed"], [[71296, 71351], "valid"], [[71352, 71359], "disallowed"], [[71360, 71369], "valid"], [[71370, 71423], "disallowed"], [[71424, 71449], "valid"], [[71450, 71452], "disallowed"], [[71453, 71467], "valid"], [[71468, 71471], "disallowed"], [[71472, 71481], "valid"], [[71482, 71487], "valid", [], "NV8"], [[71488, 71839], "disallowed"], [[71840, 71840], "mapped", [71872]], [[71841, 71841], "mapped", [71873]], [[71842, 71842], "mapped", [71874]], [[71843, 71843], "mapped", [71875]], [[71844, 71844], "mapped", [71876]], [[71845, 71845], "mapped", [71877]], [[71846, 71846], "mapped", [71878]], [[71847, 71847], "mapped", [71879]], [[71848, 71848], "mapped", [71880]], [[71849, 71849], "mapped", [71881]], [[71850, 71850], "mapped", [71882]], [[71851, 71851], "mapped", [71883]], [[71852, 71852], "mapped", [71884]], [[71853, 71853], "mapped", [71885]], [[71854, 71854], "mapped", [71886]], [[71855, 71855], "mapped", [71887]], [[71856, 71856], "mapped", [71888]], [[71857, 71857], "mapped", [71889]], [[71858, 71858], "mapped", [71890]], [[71859, 71859], "mapped", [71891]], [[71860, 71860], "mapped", [71892]], [[71861, 71861], "mapped", [71893]], [[71862, 71862], "mapped", [71894]], [[71863, 71863], "mapped", [71895]], [[71864, 71864], "mapped", [71896]], [[71865, 71865], "mapped", [71897]], [[71866, 71866], "mapped", [71898]], [[71867, 71867], "mapped", [71899]], [[71868, 71868], "mapped", [71900]], [[71869, 71869], "mapped", [71901]], [[71870, 71870], "mapped", [71902]], [[71871, 71871], "mapped", [71903]], [[71872, 71913], "valid"], [[71914, 71922], "valid", [], "NV8"], [[71923, 71934], "disallowed"], [[71935, 71935], "valid"], [[71936, 72383], "disallowed"], [[72384, 72440], "valid"], [[72441, 73727], "disallowed"], [[73728, 74606], "valid"], [[74607, 74648], "valid"], [[74649, 74649], "valid"], [[74650, 74751], "disallowed"], [[74752, 74850], "valid", [], "NV8"], [[74851, 74862], "valid", [], "NV8"], [[74863, 74863], "disallowed"], [[74864, 74867], "valid", [], "NV8"], [[74868, 74868], "valid", [], "NV8"], [[74869, 74879], "disallowed"], [[74880, 75075], "valid"], [[75076, 77823], "disallowed"], [[77824, 78894], "valid"], [[78895, 82943], "disallowed"], [[82944, 83526], "valid"], [[83527, 92159], "disallowed"], [[92160, 92728], "valid"], [[92729, 92735], "disallowed"], [[92736, 92766], "valid"], [[92767, 92767], "disallowed"], [[92768, 92777], "valid"], [[92778, 92781], "disallowed"], [[92782, 92783], "valid", [], "NV8"], [[92784, 92879], "disallowed"], [[92880, 92909], "valid"], [[92910, 92911], "disallowed"], [[92912, 92916], "valid"], [[92917, 92917], "valid", [], "NV8"], [[92918, 92927], "disallowed"], [[92928, 92982], "valid"], [[92983, 92991], "valid", [], "NV8"], [[92992, 92995], "valid"], [[92996, 92997], "valid", [], "NV8"], [[92998, 93007], "disallowed"], [[93008, 93017], "valid"], [[93018, 93018], "disallowed"], [[93019, 93025], "valid", [], "NV8"], [[93026, 93026], "disallowed"], [[93027, 93047], "valid"], [[93048, 93052], "disallowed"], [[93053, 93071], "valid"], [[93072, 93951], "disallowed"], [[93952, 94020], "valid"], [[94021, 94031], "disallowed"], [[94032, 94078], "valid"], [[94079, 94094], "disallowed"], [[94095, 94111], "valid"], [[94112, 110591], "disallowed"], [[110592, 110593], "valid"], [[110594, 113663], "disallowed"], [[113664, 113770], "valid"], [[113771, 113775], "disallowed"], [[113776, 113788], "valid"], [[113789, 113791], "disallowed"], [[113792, 113800], "valid"], [[113801, 113807], "disallowed"], [[113808, 113817], "valid"], [[113818, 113819], "disallowed"], [[113820, 113820], "valid", [], "NV8"], [[113821, 113822], "valid"], [[113823, 113823], "valid", [], "NV8"], [[113824, 113827], "ignored"], [[113828, 118783], "disallowed"], [[118784, 119029], "valid", [], "NV8"], [[119030, 119039], "disallowed"], [[119040, 119078], "valid", [], "NV8"], [[119079, 119080], "disallowed"], [[119081, 119081], "valid", [], "NV8"], [[119082, 119133], "valid", [], "NV8"], [[119134, 119134], "mapped", [119127, 119141]], [[119135, 119135], "mapped", [119128, 119141]], [[119136, 119136], "mapped", [119128, 119141, 119150]], [[119137, 119137], "mapped", [119128, 119141, 119151]], [[119138, 119138], "mapped", [119128, 119141, 119152]], [[119139, 119139], "mapped", [119128, 119141, 119153]], [[119140, 119140], "mapped", [119128, 119141, 119154]], [[119141, 119154], "valid", [], "NV8"], [[119155, 119162], "disallowed"], [[119163, 119226], "valid", [], "NV8"], [[119227, 119227], "mapped", [119225, 119141]], [[119228, 119228], "mapped", [119226, 119141]], [[119229, 119229], "mapped", [119225, 119141, 119150]], [[119230, 119230], "mapped", [119226, 119141, 119150]], [[119231, 119231], "mapped", [119225, 119141, 119151]], [[119232, 119232], "mapped", [119226, 119141, 119151]], [[119233, 119261], "valid", [], "NV8"], [[119262, 119272], "valid", [], "NV8"], [[119273, 119295], "disallowed"], [[119296, 119365], "valid", [], "NV8"], [[119366, 119551], "disallowed"], [[119552, 119638], "valid", [], "NV8"], [[119639, 119647], "disallowed"], [[119648, 119665], "valid", [], "NV8"], [[119666, 119807], "disallowed"], [[119808, 119808], "mapped", [97]], [[119809, 119809], "mapped", [98]], [[119810, 119810], "mapped", [99]], [[119811, 119811], "mapped", [100]], [[119812, 119812], "mapped", [101]], [[119813, 119813], "mapped", [102]], [[119814, 119814], "mapped", [103]], [[119815, 119815], "mapped", [104]], [[119816, 119816], "mapped", [105]], [[119817, 119817], "mapped", [106]], [[119818, 119818], "mapped", [107]], [[119819, 119819], "mapped", [108]], [[119820, 119820], "mapped", [109]], [[119821, 119821], "mapped", [110]], [[119822, 119822], "mapped", [111]], [[119823, 119823], "mapped", [112]], [[119824, 119824], "mapped", [113]], [[119825, 119825], "mapped", [114]], [[119826, 119826], "mapped", [115]], [[119827, 119827], "mapped", [116]], [[119828, 119828], "mapped", [117]], [[119829, 119829], "mapped", [118]], [[119830, 119830], "mapped", [119]], [[119831, 119831], "mapped", [120]], [[119832, 119832], "mapped", [121]], [[119833, 119833], "mapped", [122]], [[119834, 119834], "mapped", [97]], [[119835, 119835], "mapped", [98]], [[119836, 119836], "mapped", [99]], [[119837, 119837], "mapped", [100]], [[119838, 119838], "mapped", [101]], [[119839, 119839], "mapped", [102]], [[119840, 119840], "mapped", [103]], [[119841, 119841], "mapped", [104]], [[119842, 119842], "mapped", [105]], [[119843, 119843], "mapped", [106]], [[119844, 119844], "mapped", [107]], [[119845, 119845], "mapped", [108]], [[119846, 119846], "mapped", [109]], [[119847, 119847], "mapped", [110]], [[119848, 119848], "mapped", [111]], [[119849, 119849], "mapped", [112]], [[119850, 119850], "mapped", [113]], [[119851, 119851], "mapped", [114]], [[119852, 119852], "mapped", [115]], [[119853, 119853], "mapped", [116]], [[119854, 119854], "mapped", [117]], [[119855, 119855], "mapped", [118]], [[119856, 119856], "mapped", [119]], [[119857, 119857], "mapped", [120]], [[119858, 119858], "mapped", [121]], [[119859, 119859], "mapped", [122]], [[119860, 119860], "mapped", [97]], [[119861, 119861], "mapped", [98]], [[119862, 119862], "mapped", [99]], [[119863, 119863], "mapped", [100]], [[119864, 119864], "mapped", [101]], [[119865, 119865], "mapped", [102]], [[119866, 119866], "mapped", [103]], [[119867, 119867], "mapped", [104]], [[119868, 119868], "mapped", [105]], [[119869, 119869], "mapped", [106]], [[119870, 119870], "mapped", [107]], [[119871, 119871], "mapped", [108]], [[119872, 119872], "mapped", [109]], [[119873, 119873], "mapped", [110]], [[119874, 119874], "mapped", [111]], [[119875, 119875], "mapped", [112]], [[119876, 119876], "mapped", [113]], [[119877, 119877], "mapped", [114]], [[119878, 119878], "mapped", [115]], [[119879, 119879], "mapped", [116]], [[119880, 119880], "mapped", [117]], [[119881, 119881], "mapped", [118]], [[119882, 119882], "mapped", [119]], [[119883, 119883], "mapped", [120]], [[119884, 119884], "mapped", [121]], [[119885, 119885], "mapped", [122]], [[119886, 119886], "mapped", [97]], [[119887, 119887], "mapped", [98]], [[119888, 119888], "mapped", [99]], [[119889, 119889], "mapped", [100]], [[119890, 119890], "mapped", [101]], [[119891, 119891], "mapped", [102]], [[119892, 119892], "mapped", [103]], [[119893, 119893], "disallowed"], [[119894, 119894], "mapped", [105]], [[119895, 119895], "mapped", [106]], [[119896, 119896], "mapped", [107]], [[119897, 119897], "mapped", [108]], [[119898, 119898], "mapped", [109]], [[119899, 119899], "mapped", [110]], [[119900, 119900], "mapped", [111]], [[119901, 119901], "mapped", [112]], [[119902, 119902], "mapped", [113]], [[119903, 119903], "mapped", [114]], [[119904, 119904], "mapped", [115]], [[119905, 119905], "mapped", [116]], [[119906, 119906], "mapped", [117]], [[119907, 119907], "mapped", [118]], [[119908, 119908], "mapped", [119]], [[119909, 119909], "mapped", [120]], [[119910, 119910], "mapped", [121]], [[119911, 119911], "mapped", [122]], [[119912, 119912], "mapped", [97]], [[119913, 119913], "mapped", [98]], [[119914, 119914], "mapped", [99]], [[119915, 119915], "mapped", [100]], [[119916, 119916], "mapped", [101]], [[119917, 119917], "mapped", [102]], [[119918, 119918], "mapped", [103]], [[119919, 119919], "mapped", [104]], [[119920, 119920], "mapped", [105]], [[119921, 119921], "mapped", [106]], [[119922, 119922], "mapped", [107]], [[119923, 119923], "mapped", [108]], [[119924, 119924], "mapped", [109]], [[119925, 119925], "mapped", [110]], [[119926, 119926], "mapped", [111]], [[119927, 119927], "mapped", [112]], [[119928, 119928], "mapped", [113]], [[119929, 119929], "mapped", [114]], [[119930, 119930], "mapped", [115]], [[119931, 119931], "mapped", [116]], [[119932, 119932], "mapped", [117]], [[119933, 119933], "mapped", [118]], [[119934, 119934], "mapped", [119]], [[119935, 119935], "mapped", [120]], [[119936, 119936], "mapped", [121]], [[119937, 119937], "mapped", [122]], [[119938, 119938], "mapped", [97]], [[119939, 119939], "mapped", [98]], [[119940, 119940], "mapped", [99]], [[119941, 119941], "mapped", [100]], [[119942, 119942], "mapped", [101]], [[119943, 119943], "mapped", [102]], [[119944, 119944], "mapped", [103]], [[119945, 119945], "mapped", [104]], [[119946, 119946], "mapped", [105]], [[119947, 119947], "mapped", [106]], [[119948, 119948], "mapped", [107]], [[119949, 119949], "mapped", [108]], [[119950, 119950], "mapped", [109]], [[119951, 119951], "mapped", [110]], [[119952, 119952], "mapped", [111]], [[119953, 119953], "mapped", [112]], [[119954, 119954], "mapped", [113]], [[119955, 119955], "mapped", [114]], [[119956, 119956], "mapped", [115]], [[119957, 119957], "mapped", [116]], [[119958, 119958], "mapped", [117]], [[119959, 119959], "mapped", [118]], [[119960, 119960], "mapped", [119]], [[119961, 119961], "mapped", [120]], [[119962, 119962], "mapped", [121]], [[119963, 119963], "mapped", [122]], [[119964, 119964], "mapped", [97]], [[119965, 119965], "disallowed"], [[119966, 119966], "mapped", [99]], [[119967, 119967], "mapped", [100]], [[119968, 119969], "disallowed"], [[119970, 119970], "mapped", [103]], [[119971, 119972], "disallowed"], [[119973, 119973], "mapped", [106]], [[119974, 119974], "mapped", [107]], [[119975, 119976], "disallowed"], [[119977, 119977], "mapped", [110]], [[119978, 119978], "mapped", [111]], [[119979, 119979], "mapped", [112]], [[119980, 119980], "mapped", [113]], [[119981, 119981], "disallowed"], [[119982, 119982], "mapped", [115]], [[119983, 119983], "mapped", [116]], [[119984, 119984], "mapped", [117]], [[119985, 119985], "mapped", [118]], [[119986, 119986], "mapped", [119]], [[119987, 119987], "mapped", [120]], [[119988, 119988], "mapped", [121]], [[119989, 119989], "mapped", [122]], [[119990, 119990], "mapped", [97]], [[119991, 119991], "mapped", [98]], [[119992, 119992], "mapped", [99]], [[119993, 119993], "mapped", [100]], [[119994, 119994], "disallowed"], [[119995, 119995], "mapped", [102]], [[119996, 119996], "disallowed"], [[119997, 119997], "mapped", [104]], [[119998, 119998], "mapped", [105]], [[119999, 119999], "mapped", [106]], [[12e4, 12e4], "mapped", [107]], [[120001, 120001], "mapped", [108]], [[120002, 120002], "mapped", [109]], [[120003, 120003], "mapped", [110]], [[120004, 120004], "disallowed"], [[120005, 120005], "mapped", [112]], [[120006, 120006], "mapped", [113]], [[120007, 120007], "mapped", [114]], [[120008, 120008], "mapped", [115]], [[120009, 120009], "mapped", [116]], [[120010, 120010], "mapped", [117]], [[120011, 120011], "mapped", [118]], [[120012, 120012], "mapped", [119]], [[120013, 120013], "mapped", [120]], [[120014, 120014], "mapped", [121]], [[120015, 120015], "mapped", [122]], [[120016, 120016], "mapped", [97]], [[120017, 120017], "mapped", [98]], [[120018, 120018], "mapped", [99]], [[120019, 120019], "mapped", [100]], [[120020, 120020], "mapped", [101]], [[120021, 120021], "mapped", [102]], [[120022, 120022], "mapped", [103]], [[120023, 120023], "mapped", [104]], [[120024, 120024], "mapped", [105]], [[120025, 120025], "mapped", [106]], [[120026, 120026], "mapped", [107]], [[120027, 120027], "mapped", [108]], [[120028, 120028], "mapped", [109]], [[120029, 120029], "mapped", [110]], [[120030, 120030], "mapped", [111]], [[120031, 120031], "mapped", [112]], [[120032, 120032], "mapped", [113]], [[120033, 120033], "mapped", [114]], [[120034, 120034], "mapped", [115]], [[120035, 120035], "mapped", [116]], [[120036, 120036], "mapped", [117]], [[120037, 120037], "mapped", [118]], [[120038, 120038], "mapped", [119]], [[120039, 120039], "mapped", [120]], [[120040, 120040], "mapped", [121]], [[120041, 120041], "mapped", [122]], [[120042, 120042], "mapped", [97]], [[120043, 120043], "mapped", [98]], [[120044, 120044], "mapped", [99]], [[120045, 120045], "mapped", [100]], [[120046, 120046], "mapped", [101]], [[120047, 120047], "mapped", [102]], [[120048, 120048], "mapped", [103]], [[120049, 120049], "mapped", [104]], [[120050, 120050], "mapped", [105]], [[120051, 120051], "mapped", [106]], [[120052, 120052], "mapped", [107]], [[120053, 120053], "mapped", [108]], [[120054, 120054], "mapped", [109]], [[120055, 120055], "mapped", [110]], [[120056, 120056], "mapped", [111]], [[120057, 120057], "mapped", [112]], [[120058, 120058], "mapped", [113]], [[120059, 120059], "mapped", [114]], [[120060, 120060], "mapped", [115]], [[120061, 120061], "mapped", [116]], [[120062, 120062], "mapped", [117]], [[120063, 120063], "mapped", [118]], [[120064, 120064], "mapped", [119]], [[120065, 120065], "mapped", [120]], [[120066, 120066], "mapped", [121]], [[120067, 120067], "mapped", [122]], [[120068, 120068], "mapped", [97]], [[120069, 120069], "mapped", [98]], [[120070, 120070], "disallowed"], [[120071, 120071], "mapped", [100]], [[120072, 120072], "mapped", [101]], [[120073, 120073], "mapped", [102]], [[120074, 120074], "mapped", [103]], [[120075, 120076], "disallowed"], [[120077, 120077], "mapped", [106]], [[120078, 120078], "mapped", [107]], [[120079, 120079], "mapped", [108]], [[120080, 120080], "mapped", [109]], [[120081, 120081], "mapped", [110]], [[120082, 120082], "mapped", [111]], [[120083, 120083], "mapped", [112]], [[120084, 120084], "mapped", [113]], [[120085, 120085], "disallowed"], [[120086, 120086], "mapped", [115]], [[120087, 120087], "mapped", [116]], [[120088, 120088], "mapped", [117]], [[120089, 120089], "mapped", [118]], [[120090, 120090], "mapped", [119]], [[120091, 120091], "mapped", [120]], [[120092, 120092], "mapped", [121]], [[120093, 120093], "disallowed"], [[120094, 120094], "mapped", [97]], [[120095, 120095], "mapped", [98]], [[120096, 120096], "mapped", [99]], [[120097, 120097], "mapped", [100]], [[120098, 120098], "mapped", [101]], [[120099, 120099], "mapped", [102]], [[120100, 120100], "mapped", [103]], [[120101, 120101], "mapped", [104]], [[120102, 120102], "mapped", [105]], [[120103, 120103], "mapped", [106]], [[120104, 120104], "mapped", [107]], [[120105, 120105], "mapped", [108]], [[120106, 120106], "mapped", [109]], [[120107, 120107], "mapped", [110]], [[120108, 120108], "mapped", [111]], [[120109, 120109], "mapped", [112]], [[120110, 120110], "mapped", [113]], [[120111, 120111], "mapped", [114]], [[120112, 120112], "mapped", [115]], [[120113, 120113], "mapped", [116]], [[120114, 120114], "mapped", [117]], [[120115, 120115], "mapped", [118]], [[120116, 120116], "mapped", [119]], [[120117, 120117], "mapped", [120]], [[120118, 120118], "mapped", [121]], [[120119, 120119], "mapped", [122]], [[120120, 120120], "mapped", [97]], [[120121, 120121], "mapped", [98]], [[120122, 120122], "disallowed"], [[120123, 120123], "mapped", [100]], [[120124, 120124], "mapped", [101]], [[120125, 120125], "mapped", [102]], [[120126, 120126], "mapped", [103]], [[120127, 120127], "disallowed"], [[120128, 120128], "mapped", [105]], [[120129, 120129], "mapped", [106]], [[120130, 120130], "mapped", [107]], [[120131, 120131], "mapped", [108]], [[120132, 120132], "mapped", [109]], [[120133, 120133], "disallowed"], [[120134, 120134], "mapped", [111]], [[120135, 120137], "disallowed"], [[120138, 120138], "mapped", [115]], [[120139, 120139], "mapped", [116]], [[120140, 120140], "mapped", [117]], [[120141, 120141], "mapped", [118]], [[120142, 120142], "mapped", [119]], [[120143, 120143], "mapped", [120]], [[120144, 120144], "mapped", [121]], [[120145, 120145], "disallowed"], [[120146, 120146], "mapped", [97]], [[120147, 120147], "mapped", [98]], [[120148, 120148], "mapped", [99]], [[120149, 120149], "mapped", [100]], [[120150, 120150], "mapped", [101]], [[120151, 120151], "mapped", [102]], [[120152, 120152], "mapped", [103]], [[120153, 120153], "mapped", [104]], [[120154, 120154], "mapped", [105]], [[120155, 120155], "mapped", [106]], [[120156, 120156], "mapped", [107]], [[120157, 120157], "mapped", [108]], [[120158, 120158], "mapped", [109]], [[120159, 120159], "mapped", [110]], [[120160, 120160], "mapped", [111]], [[120161, 120161], "mapped", [112]], [[120162, 120162], "mapped", [113]], [[120163, 120163], "mapped", [114]], [[120164, 120164], "mapped", [115]], [[120165, 120165], "mapped", [116]], [[120166, 120166], "mapped", [117]], [[120167, 120167], "mapped", [118]], [[120168, 120168], "mapped", [119]], [[120169, 120169], "mapped", [120]], [[120170, 120170], "mapped", [121]], [[120171, 120171], "mapped", [122]], [[120172, 120172], "mapped", [97]], [[120173, 120173], "mapped", [98]], [[120174, 120174], "mapped", [99]], [[120175, 120175], "mapped", [100]], [[120176, 120176], "mapped", [101]], [[120177, 120177], "mapped", [102]], [[120178, 120178], "mapped", [103]], [[120179, 120179], "mapped", [104]], [[120180, 120180], "mapped", [105]], [[120181, 120181], "mapped", [106]], [[120182, 120182], "mapped", [107]], [[120183, 120183], "mapped", [108]], [[120184, 120184], "mapped", [109]], [[120185, 120185], "mapped", [110]], [[120186, 120186], "mapped", [111]], [[120187, 120187], "mapped", [112]], [[120188, 120188], "mapped", [113]], [[120189, 120189], "mapped", [114]], [[120190, 120190], "mapped", [115]], [[120191, 120191], "mapped", [116]], [[120192, 120192], "mapped", [117]], [[120193, 120193], "mapped", [118]], [[120194, 120194], "mapped", [119]], [[120195, 120195], "mapped", [120]], [[120196, 120196], "mapped", [121]], [[120197, 120197], "mapped", [122]], [[120198, 120198], "mapped", [97]], [[120199, 120199], "mapped", [98]], [[120200, 120200], "mapped", [99]], [[120201, 120201], "mapped", [100]], [[120202, 120202], "mapped", [101]], [[120203, 120203], "mapped", [102]], [[120204, 120204], "mapped", [103]], [[120205, 120205], "mapped", [104]], [[120206, 120206], "mapped", [105]], [[120207, 120207], "mapped", [106]], [[120208, 120208], "mapped", [107]], [[120209, 120209], "mapped", [108]], [[120210, 120210], "mapped", [109]], [[120211, 120211], "mapped", [110]], [[120212, 120212], "mapped", [111]], [[120213, 120213], "mapped", [112]], [[120214, 120214], "mapped", [113]], [[120215, 120215], "mapped", [114]], [[120216, 120216], "mapped", [115]], [[120217, 120217], "mapped", [116]], [[120218, 120218], "mapped", [117]], [[120219, 120219], "mapped", [118]], [[120220, 120220], "mapped", [119]], [[120221, 120221], "mapped", [120]], [[120222, 120222], "mapped", [121]], [[120223, 120223], "mapped", [122]], [[120224, 120224], "mapped", [97]], [[120225, 120225], "mapped", [98]], [[120226, 120226], "mapped", [99]], [[120227, 120227], "mapped", [100]], [[120228, 120228], "mapped", [101]], [[120229, 120229], "mapped", [102]], [[120230, 120230], "mapped", [103]], [[120231, 120231], "mapped", [104]], [[120232, 120232], "mapped", [105]], [[120233, 120233], "mapped", [106]], [[120234, 120234], "mapped", [107]], [[120235, 120235], "mapped", [108]], [[120236, 120236], "mapped", [109]], [[120237, 120237], "mapped", [110]], [[120238, 120238], "mapped", [111]], [[120239, 120239], "mapped", [112]], [[120240, 120240], "mapped", [113]], [[120241, 120241], "mapped", [114]], [[120242, 120242], "mapped", [115]], [[120243, 120243], "mapped", [116]], [[120244, 120244], "mapped", [117]], [[120245, 120245], "mapped", [118]], [[120246, 120246], "mapped", [119]], [[120247, 120247], "mapped", [120]], [[120248, 120248], "mapped", [121]], [[120249, 120249], "mapped", [122]], [[120250, 120250], "mapped", [97]], [[120251, 120251], "mapped", [98]], [[120252, 120252], "mapped", [99]], [[120253, 120253], "mapped", [100]], [[120254, 120254], "mapped", [101]], [[120255, 120255], "mapped", [102]], [[120256, 120256], "mapped", [103]], [[120257, 120257], "mapped", [104]], [[120258, 120258], "mapped", [105]], [[120259, 120259], "mapped", [106]], [[120260, 120260], "mapped", [107]], [[120261, 120261], "mapped", [108]], [[120262, 120262], "mapped", [109]], [[120263, 120263], "mapped", [110]], [[120264, 120264], "mapped", [111]], [[120265, 120265], "mapped", [112]], [[120266, 120266], "mapped", [113]], [[120267, 120267], "mapped", [114]], [[120268, 120268], "mapped", [115]], [[120269, 120269], "mapped", [116]], [[120270, 120270], "mapped", [117]], [[120271, 120271], "mapped", [118]], [[120272, 120272], "mapped", [119]], [[120273, 120273], "mapped", [120]], [[120274, 120274], "mapped", [121]], [[120275, 120275], "mapped", [122]], [[120276, 120276], "mapped", [97]], [[120277, 120277], "mapped", [98]], [[120278, 120278], "mapped", [99]], [[120279, 120279], "mapped", [100]], [[120280, 120280], "mapped", [101]], [[120281, 120281], "mapped", [102]], [[120282, 120282], "mapped", [103]], [[120283, 120283], "mapped", [104]], [[120284, 120284], "mapped", [105]], [[120285, 120285], "mapped", [106]], [[120286, 120286], "mapped", [107]], [[120287, 120287], "mapped", [108]], [[120288, 120288], "mapped", [109]], [[120289, 120289], "mapped", [110]], [[120290, 120290], "mapped", [111]], [[120291, 120291], "mapped", [112]], [[120292, 120292], "mapped", [113]], [[120293, 120293], "mapped", [114]], [[120294, 120294], "mapped", [115]], [[120295, 120295], "mapped", [116]], [[120296, 120296], "mapped", [117]], [[120297, 120297], "mapped", [118]], [[120298, 120298], "mapped", [119]], [[120299, 120299], "mapped", [120]], [[120300, 120300], "mapped", [121]], [[120301, 120301], "mapped", [122]], [[120302, 120302], "mapped", [97]], [[120303, 120303], "mapped", [98]], [[120304, 120304], "mapped", [99]], [[120305, 120305], "mapped", [100]], [[120306, 120306], "mapped", [101]], [[120307, 120307], "mapped", [102]], [[120308, 120308], "mapped", [103]], [[120309, 120309], "mapped", [104]], [[120310, 120310], "mapped", [105]], [[120311, 120311], "mapped", [106]], [[120312, 120312], "mapped", [107]], [[120313, 120313], "mapped", [108]], [[120314, 120314], "mapped", [109]], [[120315, 120315], "mapped", [110]], [[120316, 120316], "mapped", [111]], [[120317, 120317], "mapped", [112]], [[120318, 120318], "mapped", [113]], [[120319, 120319], "mapped", [114]], [[120320, 120320], "mapped", [115]], [[120321, 120321], "mapped", [116]], [[120322, 120322], "mapped", [117]], [[120323, 120323], "mapped", [118]], [[120324, 120324], "mapped", [119]], [[120325, 120325], "mapped", [120]], [[120326, 120326], "mapped", [121]], [[120327, 120327], "mapped", [122]], [[120328, 120328], "mapped", [97]], [[120329, 120329], "mapped", [98]], [[120330, 120330], "mapped", [99]], [[120331, 120331], "mapped", [100]], [[120332, 120332], "mapped", [101]], [[120333, 120333], "mapped", [102]], [[120334, 120334], "mapped", [103]], [[120335, 120335], "mapped", [104]], [[120336, 120336], "mapped", [105]], [[120337, 120337], "mapped", [106]], [[120338, 120338], "mapped", [107]], [[120339, 120339], "mapped", [108]], [[120340, 120340], "mapped", [109]], [[120341, 120341], "mapped", [110]], [[120342, 120342], "mapped", [111]], [[120343, 120343], "mapped", [112]], [[120344, 120344], "mapped", [113]], [[120345, 120345], "mapped", [114]], [[120346, 120346], "mapped", [115]], [[120347, 120347], "mapped", [116]], [[120348, 120348], "mapped", [117]], [[120349, 120349], "mapped", [118]], [[120350, 120350], "mapped", [119]], [[120351, 120351], "mapped", [120]], [[120352, 120352], "mapped", [121]], [[120353, 120353], "mapped", [122]], [[120354, 120354], "mapped", [97]], [[120355, 120355], "mapped", [98]], [[120356, 120356], "mapped", [99]], [[120357, 120357], "mapped", [100]], [[120358, 120358], "mapped", [101]], [[120359, 120359], "mapped", [102]], [[120360, 120360], "mapped", [103]], [[120361, 120361], "mapped", [104]], [[120362, 120362], "mapped", [105]], [[120363, 120363], "mapped", [106]], [[120364, 120364], "mapped", [107]], [[120365, 120365], "mapped", [108]], [[120366, 120366], "mapped", [109]], [[120367, 120367], "mapped", [110]], [[120368, 120368], "mapped", [111]], [[120369, 120369], "mapped", [112]], [[120370, 120370], "mapped", [113]], [[120371, 120371], "mapped", [114]], [[120372, 120372], "mapped", [115]], [[120373, 120373], "mapped", [116]], [[120374, 120374], "mapped", [117]], [[120375, 120375], "mapped", [118]], [[120376, 120376], "mapped", [119]], [[120377, 120377], "mapped", [120]], [[120378, 120378], "mapped", [121]], [[120379, 120379], "mapped", [122]], [[120380, 120380], "mapped", [97]], [[120381, 120381], "mapped", [98]], [[120382, 120382], "mapped", [99]], [[120383, 120383], "mapped", [100]], [[120384, 120384], "mapped", [101]], [[120385, 120385], "mapped", [102]], [[120386, 120386], "mapped", [103]], [[120387, 120387], "mapped", [104]], [[120388, 120388], "mapped", [105]], [[120389, 120389], "mapped", [106]], [[120390, 120390], "mapped", [107]], [[120391, 120391], "mapped", [108]], [[120392, 120392], "mapped", [109]], [[120393, 120393], "mapped", [110]], [[120394, 120394], "mapped", [111]], [[120395, 120395], "mapped", [112]], [[120396, 120396], "mapped", [113]], [[120397, 120397], "mapped", [114]], [[120398, 120398], "mapped", [115]], [[120399, 120399], "mapped", [116]], [[120400, 120400], "mapped", [117]], [[120401, 120401], "mapped", [118]], [[120402, 120402], "mapped", [119]], [[120403, 120403], "mapped", [120]], [[120404, 120404], "mapped", [121]], [[120405, 120405], "mapped", [122]], [[120406, 120406], "mapped", [97]], [[120407, 120407], "mapped", [98]], [[120408, 120408], "mapped", [99]], [[120409, 120409], "mapped", [100]], [[120410, 120410], "mapped", [101]], [[120411, 120411], "mapped", [102]], [[120412, 120412], "mapped", [103]], [[120413, 120413], "mapped", [104]], [[120414, 120414], "mapped", [105]], [[120415, 120415], "mapped", [106]], [[120416, 120416], "mapped", [107]], [[120417, 120417], "mapped", [108]], [[120418, 120418], "mapped", [109]], [[120419, 120419], "mapped", [110]], [[120420, 120420], "mapped", [111]], [[120421, 120421], "mapped", [112]], [[120422, 120422], "mapped", [113]], [[120423, 120423], "mapped", [114]], [[120424, 120424], "mapped", [115]], [[120425, 120425], "mapped", [116]], [[120426, 120426], "mapped", [117]], [[120427, 120427], "mapped", [118]], [[120428, 120428], "mapped", [119]], [[120429, 120429], "mapped", [120]], [[120430, 120430], "mapped", [121]], [[120431, 120431], "mapped", [122]], [[120432, 120432], "mapped", [97]], [[120433, 120433], "mapped", [98]], [[120434, 120434], "mapped", [99]], [[120435, 120435], "mapped", [100]], [[120436, 120436], "mapped", [101]], [[120437, 120437], "mapped", [102]], [[120438, 120438], "mapped", [103]], [[120439, 120439], "mapped", [104]], [[120440, 120440], "mapped", [105]], [[120441, 120441], "mapped", [106]], [[120442, 120442], "mapped", [107]], [[120443, 120443], "mapped", [108]], [[120444, 120444], "mapped", [109]], [[120445, 120445], "mapped", [110]], [[120446, 120446], "mapped", [111]], [[120447, 120447], "mapped", [112]], [[120448, 120448], "mapped", [113]], [[120449, 120449], "mapped", [114]], [[120450, 120450], "mapped", [115]], [[120451, 120451], "mapped", [116]], [[120452, 120452], "mapped", [117]], [[120453, 120453], "mapped", [118]], [[120454, 120454], "mapped", [119]], [[120455, 120455], "mapped", [120]], [[120456, 120456], "mapped", [121]], [[120457, 120457], "mapped", [122]], [[120458, 120458], "mapped", [97]], [[120459, 120459], "mapped", [98]], [[120460, 120460], "mapped", [99]], [[120461, 120461], "mapped", [100]], [[120462, 120462], "mapped", [101]], [[120463, 120463], "mapped", [102]], [[120464, 120464], "mapped", [103]], [[120465, 120465], "mapped", [104]], [[120466, 120466], "mapped", [105]], [[120467, 120467], "mapped", [106]], [[120468, 120468], "mapped", [107]], [[120469, 120469], "mapped", [108]], [[120470, 120470], "mapped", [109]], [[120471, 120471], "mapped", [110]], [[120472, 120472], "mapped", [111]], [[120473, 120473], "mapped", [112]], [[120474, 120474], "mapped", [113]], [[120475, 120475], "mapped", [114]], [[120476, 120476], "mapped", [115]], [[120477, 120477], "mapped", [116]], [[120478, 120478], "mapped", [117]], [[120479, 120479], "mapped", [118]], [[120480, 120480], "mapped", [119]], [[120481, 120481], "mapped", [120]], [[120482, 120482], "mapped", [121]], [[120483, 120483], "mapped", [122]], [[120484, 120484], "mapped", [305]], [[120485, 120485], "mapped", [567]], [[120486, 120487], "disallowed"], [[120488, 120488], "mapped", [945]], [[120489, 120489], "mapped", [946]], [[120490, 120490], "mapped", [947]], [[120491, 120491], "mapped", [948]], [[120492, 120492], "mapped", [949]], [[120493, 120493], "mapped", [950]], [[120494, 120494], "mapped", [951]], [[120495, 120495], "mapped", [952]], [[120496, 120496], "mapped", [953]], [[120497, 120497], "mapped", [954]], [[120498, 120498], "mapped", [955]], [[120499, 120499], "mapped", [956]], [[120500, 120500], "mapped", [957]], [[120501, 120501], "mapped", [958]], [[120502, 120502], "mapped", [959]], [[120503, 120503], "mapped", [960]], [[120504, 120504], "mapped", [961]], [[120505, 120505], "mapped", [952]], [[120506, 120506], "mapped", [963]], [[120507, 120507], "mapped", [964]], [[120508, 120508], "mapped", [965]], [[120509, 120509], "mapped", [966]], [[120510, 120510], "mapped", [967]], [[120511, 120511], "mapped", [968]], [[120512, 120512], "mapped", [969]], [[120513, 120513], "mapped", [8711]], [[120514, 120514], "mapped", [945]], [[120515, 120515], "mapped", [946]], [[120516, 120516], "mapped", [947]], [[120517, 120517], "mapped", [948]], [[120518, 120518], "mapped", [949]], [[120519, 120519], "mapped", [950]], [[120520, 120520], "mapped", [951]], [[120521, 120521], "mapped", [952]], [[120522, 120522], "mapped", [953]], [[120523, 120523], "mapped", [954]], [[120524, 120524], "mapped", [955]], [[120525, 120525], "mapped", [956]], [[120526, 120526], "mapped", [957]], [[120527, 120527], "mapped", [958]], [[120528, 120528], "mapped", [959]], [[120529, 120529], "mapped", [960]], [[120530, 120530], "mapped", [961]], [[120531, 120532], "mapped", [963]], [[120533, 120533], "mapped", [964]], [[120534, 120534], "mapped", [965]], [[120535, 120535], "mapped", [966]], [[120536, 120536], "mapped", [967]], [[120537, 120537], "mapped", [968]], [[120538, 120538], "mapped", [969]], [[120539, 120539], "mapped", [8706]], [[120540, 120540], "mapped", [949]], [[120541, 120541], "mapped", [952]], [[120542, 120542], "mapped", [954]], [[120543, 120543], "mapped", [966]], [[120544, 120544], "mapped", [961]], [[120545, 120545], "mapped", [960]], [[120546, 120546], "mapped", [945]], [[120547, 120547], "mapped", [946]], [[120548, 120548], "mapped", [947]], [[120549, 120549], "mapped", [948]], [[120550, 120550], "mapped", [949]], [[120551, 120551], "mapped", [950]], [[120552, 120552], "mapped", [951]], [[120553, 120553], "mapped", [952]], [[120554, 120554], "mapped", [953]], [[120555, 120555], "mapped", [954]], [[120556, 120556], "mapped", [955]], [[120557, 120557], "mapped", [956]], [[120558, 120558], "mapped", [957]], [[120559, 120559], "mapped", [958]], [[120560, 120560], "mapped", [959]], [[120561, 120561], "mapped", [960]], [[120562, 120562], "mapped", [961]], [[120563, 120563], "mapped", [952]], [[120564, 120564], "mapped", [963]], [[120565, 120565], "mapped", [964]], [[120566, 120566], "mapped", [965]], [[120567, 120567], "mapped", [966]], [[120568, 120568], "mapped", [967]], [[120569, 120569], "mapped", [968]], [[120570, 120570], "mapped", [969]], [[120571, 120571], "mapped", [8711]], [[120572, 120572], "mapped", [945]], [[120573, 120573], "mapped", [946]], [[120574, 120574], "mapped", [947]], [[120575, 120575], "mapped", [948]], [[120576, 120576], "mapped", [949]], [[120577, 120577], "mapped", [950]], [[120578, 120578], "mapped", [951]], [[120579, 120579], "mapped", [952]], [[120580, 120580], "mapped", [953]], [[120581, 120581], "mapped", [954]], [[120582, 120582], "mapped", [955]], [[120583, 120583], "mapped", [956]], [[120584, 120584], "mapped", [957]], [[120585, 120585], "mapped", [958]], [[120586, 120586], "mapped", [959]], [[120587, 120587], "mapped", [960]], [[120588, 120588], "mapped", [961]], [[120589, 120590], "mapped", [963]], [[120591, 120591], "mapped", [964]], [[120592, 120592], "mapped", [965]], [[120593, 120593], "mapped", [966]], [[120594, 120594], "mapped", [967]], [[120595, 120595], "mapped", [968]], [[120596, 120596], "mapped", [969]], [[120597, 120597], "mapped", [8706]], [[120598, 120598], "mapped", [949]], [[120599, 120599], "mapped", [952]], [[120600, 120600], "mapped", [954]], [[120601, 120601], "mapped", [966]], [[120602, 120602], "mapped", [961]], [[120603, 120603], "mapped", [960]], [[120604, 120604], "mapped", [945]], [[120605, 120605], "mapped", [946]], [[120606, 120606], "mapped", [947]], [[120607, 120607], "mapped", [948]], [[120608, 120608], "mapped", [949]], [[120609, 120609], "mapped", [950]], [[120610, 120610], "mapped", [951]], [[120611, 120611], "mapped", [952]], [[120612, 120612], "mapped", [953]], [[120613, 120613], "mapped", [954]], [[120614, 120614], "mapped", [955]], [[120615, 120615], "mapped", [956]], [[120616, 120616], "mapped", [957]], [[120617, 120617], "mapped", [958]], [[120618, 120618], "mapped", [959]], [[120619, 120619], "mapped", [960]], [[120620, 120620], "mapped", [961]], [[120621, 120621], "mapped", [952]], [[120622, 120622], "mapped", [963]], [[120623, 120623], "mapped", [964]], [[120624, 120624], "mapped", [965]], [[120625, 120625], "mapped", [966]], [[120626, 120626], "mapped", [967]], [[120627, 120627], "mapped", [968]], [[120628, 120628], "mapped", [969]], [[120629, 120629], "mapped", [8711]], [[120630, 120630], "mapped", [945]], [[120631, 120631], "mapped", [946]], [[120632, 120632], "mapped", [947]], [[120633, 120633], "mapped", [948]], [[120634, 120634], "mapped", [949]], [[120635, 120635], "mapped", [950]], [[120636, 120636], "mapped", [951]], [[120637, 120637], "mapped", [952]], [[120638, 120638], "mapped", [953]], [[120639, 120639], "mapped", [954]], [[120640, 120640], "mapped", [955]], [[120641, 120641], "mapped", [956]], [[120642, 120642], "mapped", [957]], [[120643, 120643], "mapped", [958]], [[120644, 120644], "mapped", [959]], [[120645, 120645], "mapped", [960]], [[120646, 120646], "mapped", [961]], [[120647, 120648], "mapped", [963]], [[120649, 120649], "mapped", [964]], [[120650, 120650], "mapped", [965]], [[120651, 120651], "mapped", [966]], [[120652, 120652], "mapped", [967]], [[120653, 120653], "mapped", [968]], [[120654, 120654], "mapped", [969]], [[120655, 120655], "mapped", [8706]], [[120656, 120656], "mapped", [949]], [[120657, 120657], "mapped", [952]], [[120658, 120658], "mapped", [954]], [[120659, 120659], "mapped", [966]], [[120660, 120660], "mapped", [961]], [[120661, 120661], "mapped", [960]], [[120662, 120662], "mapped", [945]], [[120663, 120663], "mapped", [946]], [[120664, 120664], "mapped", [947]], [[120665, 120665], "mapped", [948]], [[120666, 120666], "mapped", [949]], [[120667, 120667], "mapped", [950]], [[120668, 120668], "mapped", [951]], [[120669, 120669], "mapped", [952]], [[120670, 120670], "mapped", [953]], [[120671, 120671], "mapped", [954]], [[120672, 120672], "mapped", [955]], [[120673, 120673], "mapped", [956]], [[120674, 120674], "mapped", [957]], [[120675, 120675], "mapped", [958]], [[120676, 120676], "mapped", [959]], [[120677, 120677], "mapped", [960]], [[120678, 120678], "mapped", [961]], [[120679, 120679], "mapped", [952]], [[120680, 120680], "mapped", [963]], [[120681, 120681], "mapped", [964]], [[120682, 120682], "mapped", [965]], [[120683, 120683], "mapped", [966]], [[120684, 120684], "mapped", [967]], [[120685, 120685], "mapped", [968]], [[120686, 120686], "mapped", [969]], [[120687, 120687], "mapped", [8711]], [[120688, 120688], "mapped", [945]], [[120689, 120689], "mapped", [946]], [[120690, 120690], "mapped", [947]], [[120691, 120691], "mapped", [948]], [[120692, 120692], "mapped", [949]], [[120693, 120693], "mapped", [950]], [[120694, 120694], "mapped", [951]], [[120695, 120695], "mapped", [952]], [[120696, 120696], "mapped", [953]], [[120697, 120697], "mapped", [954]], [[120698, 120698], "mapped", [955]], [[120699, 120699], "mapped", [956]], [[120700, 120700], "mapped", [957]], [[120701, 120701], "mapped", [958]], [[120702, 120702], "mapped", [959]], [[120703, 120703], "mapped", [960]], [[120704, 120704], "mapped", [961]], [[120705, 120706], "mapped", [963]], [[120707, 120707], "mapped", [964]], [[120708, 120708], "mapped", [965]], [[120709, 120709], "mapped", [966]], [[120710, 120710], "mapped", [967]], [[120711, 120711], "mapped", [968]], [[120712, 120712], "mapped", [969]], [[120713, 120713], "mapped", [8706]], [[120714, 120714], "mapped", [949]], [[120715, 120715], "mapped", [952]], [[120716, 120716], "mapped", [954]], [[120717, 120717], "mapped", [966]], [[120718, 120718], "mapped", [961]], [[120719, 120719], "mapped", [960]], [[120720, 120720], "mapped", [945]], [[120721, 120721], "mapped", [946]], [[120722, 120722], "mapped", [947]], [[120723, 120723], "mapped", [948]], [[120724, 120724], "mapped", [949]], [[120725, 120725], "mapped", [950]], [[120726, 120726], "mapped", [951]], [[120727, 120727], "mapped", [952]], [[120728, 120728], "mapped", [953]], [[120729, 120729], "mapped", [954]], [[120730, 120730], "mapped", [955]], [[120731, 120731], "mapped", [956]], [[120732, 120732], "mapped", [957]], [[120733, 120733], "mapped", [958]], [[120734, 120734], "mapped", [959]], [[120735, 120735], "mapped", [960]], [[120736, 120736], "mapped", [961]], [[120737, 120737], "mapped", [952]], [[120738, 120738], "mapped", [963]], [[120739, 120739], "mapped", [964]], [[120740, 120740], "mapped", [965]], [[120741, 120741], "mapped", [966]], [[120742, 120742], "mapped", [967]], [[120743, 120743], "mapped", [968]], [[120744, 120744], "mapped", [969]], [[120745, 120745], "mapped", [8711]], [[120746, 120746], "mapped", [945]], [[120747, 120747], "mapped", [946]], [[120748, 120748], "mapped", [947]], [[120749, 120749], "mapped", [948]], [[120750, 120750], "mapped", [949]], [[120751, 120751], "mapped", [950]], [[120752, 120752], "mapped", [951]], [[120753, 120753], "mapped", [952]], [[120754, 120754], "mapped", [953]], [[120755, 120755], "mapped", [954]], [[120756, 120756], "mapped", [955]], [[120757, 120757], "mapped", [956]], [[120758, 120758], "mapped", [957]], [[120759, 120759], "mapped", [958]], [[120760, 120760], "mapped", [959]], [[120761, 120761], "mapped", [960]], [[120762, 120762], "mapped", [961]], [[120763, 120764], "mapped", [963]], [[120765, 120765], "mapped", [964]], [[120766, 120766], "mapped", [965]], [[120767, 120767], "mapped", [966]], [[120768, 120768], "mapped", [967]], [[120769, 120769], "mapped", [968]], [[120770, 120770], "mapped", [969]], [[120771, 120771], "mapped", [8706]], [[120772, 120772], "mapped", [949]], [[120773, 120773], "mapped", [952]], [[120774, 120774], "mapped", [954]], [[120775, 120775], "mapped", [966]], [[120776, 120776], "mapped", [961]], [[120777, 120777], "mapped", [960]], [[120778, 120779], "mapped", [989]], [[120780, 120781], "disallowed"], [[120782, 120782], "mapped", [48]], [[120783, 120783], "mapped", [49]], [[120784, 120784], "mapped", [50]], [[120785, 120785], "mapped", [51]], [[120786, 120786], "mapped", [52]], [[120787, 120787], "mapped", [53]], [[120788, 120788], "mapped", [54]], [[120789, 120789], "mapped", [55]], [[120790, 120790], "mapped", [56]], [[120791, 120791], "mapped", [57]], [[120792, 120792], "mapped", [48]], [[120793, 120793], "mapped", [49]], [[120794, 120794], "mapped", [50]], [[120795, 120795], "mapped", [51]], [[120796, 120796], "mapped", [52]], [[120797, 120797], "mapped", [53]], [[120798, 120798], "mapped", [54]], [[120799, 120799], "mapped", [55]], [[120800, 120800], "mapped", [56]], [[120801, 120801], "mapped", [57]], [[120802, 120802], "mapped", [48]], [[120803, 120803], "mapped", [49]], [[120804, 120804], "mapped", [50]], [[120805, 120805], "mapped", [51]], [[120806, 120806], "mapped", [52]], [[120807, 120807], "mapped", [53]], [[120808, 120808], "mapped", [54]], [[120809, 120809], "mapped", [55]], [[120810, 120810], "mapped", [56]], [[120811, 120811], "mapped", [57]], [[120812, 120812], "mapped", [48]], [[120813, 120813], "mapped", [49]], [[120814, 120814], "mapped", [50]], [[120815, 120815], "mapped", [51]], [[120816, 120816], "mapped", [52]], [[120817, 120817], "mapped", [53]], [[120818, 120818], "mapped", [54]], [[120819, 120819], "mapped", [55]], [[120820, 120820], "mapped", [56]], [[120821, 120821], "mapped", [57]], [[120822, 120822], "mapped", [48]], [[120823, 120823], "mapped", [49]], [[120824, 120824], "mapped", [50]], [[120825, 120825], "mapped", [51]], [[120826, 120826], "mapped", [52]], [[120827, 120827], "mapped", [53]], [[120828, 120828], "mapped", [54]], [[120829, 120829], "mapped", [55]], [[120830, 120830], "mapped", [56]], [[120831, 120831], "mapped", [57]], [[120832, 121343], "valid", [], "NV8"], [[121344, 121398], "valid"], [[121399, 121402], "valid", [], "NV8"], [[121403, 121452], "valid"], [[121453, 121460], "valid", [], "NV8"], [[121461, 121461], "valid"], [[121462, 121475], "valid", [], "NV8"], [[121476, 121476], "valid"], [[121477, 121483], "valid", [], "NV8"], [[121484, 121498], "disallowed"], [[121499, 121503], "valid"], [[121504, 121504], "disallowed"], [[121505, 121519], "valid"], [[121520, 124927], "disallowed"], [[124928, 125124], "valid"], [[125125, 125126], "disallowed"], [[125127, 125135], "valid", [], "NV8"], [[125136, 125142], "valid"], [[125143, 126463], "disallowed"], [[126464, 126464], "mapped", [1575]], [[126465, 126465], "mapped", [1576]], [[126466, 126466], "mapped", [1580]], [[126467, 126467], "mapped", [1583]], [[126468, 126468], "disallowed"], [[126469, 126469], "mapped", [1608]], [[126470, 126470], "mapped", [1586]], [[126471, 126471], "mapped", [1581]], [[126472, 126472], "mapped", [1591]], [[126473, 126473], "mapped", [1610]], [[126474, 126474], "mapped", [1603]], [[126475, 126475], "mapped", [1604]], [[126476, 126476], "mapped", [1605]], [[126477, 126477], "mapped", [1606]], [[126478, 126478], "mapped", [1587]], [[126479, 126479], "mapped", [1593]], [[126480, 126480], "mapped", [1601]], [[126481, 126481], "mapped", [1589]], [[126482, 126482], "mapped", [1602]], [[126483, 126483], "mapped", [1585]], [[126484, 126484], "mapped", [1588]], [[126485, 126485], "mapped", [1578]], [[126486, 126486], "mapped", [1579]], [[126487, 126487], "mapped", [1582]], [[126488, 126488], "mapped", [1584]], [[126489, 126489], "mapped", [1590]], [[126490, 126490], "mapped", [1592]], [[126491, 126491], "mapped", [1594]], [[126492, 126492], "mapped", [1646]], [[126493, 126493], "mapped", [1722]], [[126494, 126494], "mapped", [1697]], [[126495, 126495], "mapped", [1647]], [[126496, 126496], "disallowed"], [[126497, 126497], "mapped", [1576]], [[126498, 126498], "mapped", [1580]], [[126499, 126499], "disallowed"], [[126500, 126500], "mapped", [1607]], [[126501, 126502], "disallowed"], [[126503, 126503], "mapped", [1581]], [[126504, 126504], "disallowed"], [[126505, 126505], "mapped", [1610]], [[126506, 126506], "mapped", [1603]], [[126507, 126507], "mapped", [1604]], [[126508, 126508], "mapped", [1605]], [[126509, 126509], "mapped", [1606]], [[126510, 126510], "mapped", [1587]], [[126511, 126511], "mapped", [1593]], [[126512, 126512], "mapped", [1601]], [[126513, 126513], "mapped", [1589]], [[126514, 126514], "mapped", [1602]], [[126515, 126515], "disallowed"], [[126516, 126516], "mapped", [1588]], [[126517, 126517], "mapped", [1578]], [[126518, 126518], "mapped", [1579]], [[126519, 126519], "mapped", [1582]], [[126520, 126520], "disallowed"], [[126521, 126521], "mapped", [1590]], [[126522, 126522], "disallowed"], [[126523, 126523], "mapped", [1594]], [[126524, 126529], "disallowed"], [[126530, 126530], "mapped", [1580]], [[126531, 126534], "disallowed"], [[126535, 126535], "mapped", [1581]], [[126536, 126536], "disallowed"], [[126537, 126537], "mapped", [1610]], [[126538, 126538], "disallowed"], [[126539, 126539], "mapped", [1604]], [[126540, 126540], "disallowed"], [[126541, 126541], "mapped", [1606]], [[126542, 126542], "mapped", [1587]], [[126543, 126543], "mapped", [1593]], [[126544, 126544], "disallowed"], [[126545, 126545], "mapped", [1589]], [[126546, 126546], "mapped", [1602]], [[126547, 126547], "disallowed"], [[126548, 126548], "mapped", [1588]], [[126549, 126550], "disallowed"], [[126551, 126551], "mapped", [1582]], [[126552, 126552], "disallowed"], [[126553, 126553], "mapped", [1590]], [[126554, 126554], "disallowed"], [[126555, 126555], "mapped", [1594]], [[126556, 126556], "disallowed"], [[126557, 126557], "mapped", [1722]], [[126558, 126558], "disallowed"], [[126559, 126559], "mapped", [1647]], [[126560, 126560], "disallowed"], [[126561, 126561], "mapped", [1576]], [[126562, 126562], "mapped", [1580]], [[126563, 126563], "disallowed"], [[126564, 126564], "mapped", [1607]], [[126565, 126566], "disallowed"], [[126567, 126567], "mapped", [1581]], [[126568, 126568], "mapped", [1591]], [[126569, 126569], "mapped", [1610]], [[126570, 126570], "mapped", [1603]], [[126571, 126571], "disallowed"], [[126572, 126572], "mapped", [1605]], [[126573, 126573], "mapped", [1606]], [[126574, 126574], "mapped", [1587]], [[126575, 126575], "mapped", [1593]], [[126576, 126576], "mapped", [1601]], [[126577, 126577], "mapped", [1589]], [[126578, 126578], "mapped", [1602]], [[126579, 126579], "disallowed"], [[126580, 126580], "mapped", [1588]], [[126581, 126581], "mapped", [1578]], [[126582, 126582], "mapped", [1579]], [[126583, 126583], "mapped", [1582]], [[126584, 126584], "disallowed"], [[126585, 126585], "mapped", [1590]], [[126586, 126586], "mapped", [1592]], [[126587, 126587], "mapped", [1594]], [[126588, 126588], "mapped", [1646]], [[126589, 126589], "disallowed"], [[126590, 126590], "mapped", [1697]], [[126591, 126591], "disallowed"], [[126592, 126592], "mapped", [1575]], [[126593, 126593], "mapped", [1576]], [[126594, 126594], "mapped", [1580]], [[126595, 126595], "mapped", [1583]], [[126596, 126596], "mapped", [1607]], [[126597, 126597], "mapped", [1608]], [[126598, 126598], "mapped", [1586]], [[126599, 126599], "mapped", [1581]], [[126600, 126600], "mapped", [1591]], [[126601, 126601], "mapped", [1610]], [[126602, 126602], "disallowed"], [[126603, 126603], "mapped", [1604]], [[126604, 126604], "mapped", [1605]], [[126605, 126605], "mapped", [1606]], [[126606, 126606], "mapped", [1587]], [[126607, 126607], "mapped", [1593]], [[126608, 126608], "mapped", [1601]], [[126609, 126609], "mapped", [1589]], [[126610, 126610], "mapped", [1602]], [[126611, 126611], "mapped", [1585]], [[126612, 126612], "mapped", [1588]], [[126613, 126613], "mapped", [1578]], [[126614, 126614], "mapped", [1579]], [[126615, 126615], "mapped", [1582]], [[126616, 126616], "mapped", [1584]], [[126617, 126617], "mapped", [1590]], [[126618, 126618], "mapped", [1592]], [[126619, 126619], "mapped", [1594]], [[126620, 126624], "disallowed"], [[126625, 126625], "mapped", [1576]], [[126626, 126626], "mapped", [1580]], [[126627, 126627], "mapped", [1583]], [[126628, 126628], "disallowed"], [[126629, 126629], "mapped", [1608]], [[126630, 126630], "mapped", [1586]], [[126631, 126631], "mapped", [1581]], [[126632, 126632], "mapped", [1591]], [[126633, 126633], "mapped", [1610]], [[126634, 126634], "disallowed"], [[126635, 126635], "mapped", [1604]], [[126636, 126636], "mapped", [1605]], [[126637, 126637], "mapped", [1606]], [[126638, 126638], "mapped", [1587]], [[126639, 126639], "mapped", [1593]], [[126640, 126640], "mapped", [1601]], [[126641, 126641], "mapped", [1589]], [[126642, 126642], "mapped", [1602]], [[126643, 126643], "mapped", [1585]], [[126644, 126644], "mapped", [1588]], [[126645, 126645], "mapped", [1578]], [[126646, 126646], "mapped", [1579]], [[126647, 126647], "mapped", [1582]], [[126648, 126648], "mapped", [1584]], [[126649, 126649], "mapped", [1590]], [[126650, 126650], "mapped", [1592]], [[126651, 126651], "mapped", [1594]], [[126652, 126703], "disallowed"], [[126704, 126705], "valid", [], "NV8"], [[126706, 126975], "disallowed"], [[126976, 127019], "valid", [], "NV8"], [[127020, 127023], "disallowed"], [[127024, 127123], "valid", [], "NV8"], [[127124, 127135], "disallowed"], [[127136, 127150], "valid", [], "NV8"], [[127151, 127152], "disallowed"], [[127153, 127166], "valid", [], "NV8"], [[127167, 127167], "valid", [], "NV8"], [[127168, 127168], "disallowed"], [[127169, 127183], "valid", [], "NV8"], [[127184, 127184], "disallowed"], [[127185, 127199], "valid", [], "NV8"], [[127200, 127221], "valid", [], "NV8"], [[127222, 127231], "disallowed"], [[127232, 127232], "disallowed"], [[127233, 127233], "disallowed_STD3_mapped", [48, 44]], [[127234, 127234], "disallowed_STD3_mapped", [49, 44]], [[127235, 127235], "disallowed_STD3_mapped", [50, 44]], [[127236, 127236], "disallowed_STD3_mapped", [51, 44]], [[127237, 127237], "disallowed_STD3_mapped", [52, 44]], [[127238, 127238], "disallowed_STD3_mapped", [53, 44]], [[127239, 127239], "disallowed_STD3_mapped", [54, 44]], [[127240, 127240], "disallowed_STD3_mapped", [55, 44]], [[127241, 127241], "disallowed_STD3_mapped", [56, 44]], [[127242, 127242], "disallowed_STD3_mapped", [57, 44]], [[127243, 127244], "valid", [], "NV8"], [[127245, 127247], "disallowed"], [[127248, 127248], "disallowed_STD3_mapped", [40, 97, 41]], [[127249, 127249], "disallowed_STD3_mapped", [40, 98, 41]], [[127250, 127250], "disallowed_STD3_mapped", [40, 99, 41]], [[127251, 127251], "disallowed_STD3_mapped", [40, 100, 41]], [[127252, 127252], "disallowed_STD3_mapped", [40, 101, 41]], [[127253, 127253], "disallowed_STD3_mapped", [40, 102, 41]], [[127254, 127254], "disallowed_STD3_mapped", [40, 103, 41]], [[127255, 127255], "disallowed_STD3_mapped", [40, 104, 41]], [[127256, 127256], "disallowed_STD3_mapped", [40, 105, 41]], [[127257, 127257], "disallowed_STD3_mapped", [40, 106, 41]], [[127258, 127258], "disallowed_STD3_mapped", [40, 107, 41]], [[127259, 127259], "disallowed_STD3_mapped", [40, 108, 41]], [[127260, 127260], "disallowed_STD3_mapped", [40, 109, 41]], [[127261, 127261], "disallowed_STD3_mapped", [40, 110, 41]], [[127262, 127262], "disallowed_STD3_mapped", [40, 111, 41]], [[127263, 127263], "disallowed_STD3_mapped", [40, 112, 41]], [[127264, 127264], "disallowed_STD3_mapped", [40, 113, 41]], [[127265, 127265], "disallowed_STD3_mapped", [40, 114, 41]], [[127266, 127266], "disallowed_STD3_mapped", [40, 115, 41]], [[127267, 127267], "disallowed_STD3_mapped", [40, 116, 41]], [[127268, 127268], "disallowed_STD3_mapped", [40, 117, 41]], [[127269, 127269], "disallowed_STD3_mapped", [40, 118, 41]], [[127270, 127270], "disallowed_STD3_mapped", [40, 119, 41]], [[127271, 127271], "disallowed_STD3_mapped", [40, 120, 41]], [[127272, 127272], "disallowed_STD3_mapped", [40, 121, 41]], [[127273, 127273], "disallowed_STD3_mapped", [40, 122, 41]], [[127274, 127274], "mapped", [12308, 115, 12309]], [[127275, 127275], "mapped", [99]], [[127276, 127276], "mapped", [114]], [[127277, 127277], "mapped", [99, 100]], [[127278, 127278], "mapped", [119, 122]], [[127279, 127279], "disallowed"], [[127280, 127280], "mapped", [97]], [[127281, 127281], "mapped", [98]], [[127282, 127282], "mapped", [99]], [[127283, 127283], "mapped", [100]], [[127284, 127284], "mapped", [101]], [[127285, 127285], "mapped", [102]], [[127286, 127286], "mapped", [103]], [[127287, 127287], "mapped", [104]], [[127288, 127288], "mapped", [105]], [[127289, 127289], "mapped", [106]], [[127290, 127290], "mapped", [107]], [[127291, 127291], "mapped", [108]], [[127292, 127292], "mapped", [109]], [[127293, 127293], "mapped", [110]], [[127294, 127294], "mapped", [111]], [[127295, 127295], "mapped", [112]], [[127296, 127296], "mapped", [113]], [[127297, 127297], "mapped", [114]], [[127298, 127298], "mapped", [115]], [[127299, 127299], "mapped", [116]], [[127300, 127300], "mapped", [117]], [[127301, 127301], "mapped", [118]], [[127302, 127302], "mapped", [119]], [[127303, 127303], "mapped", [120]], [[127304, 127304], "mapped", [121]], [[127305, 127305], "mapped", [122]], [[127306, 127306], "mapped", [104, 118]], [[127307, 127307], "mapped", [109, 118]], [[127308, 127308], "mapped", [115, 100]], [[127309, 127309], "mapped", [115, 115]], [[127310, 127310], "mapped", [112, 112, 118]], [[127311, 127311], "mapped", [119, 99]], [[127312, 127318], "valid", [], "NV8"], [[127319, 127319], "valid", [], "NV8"], [[127320, 127326], "valid", [], "NV8"], [[127327, 127327], "valid", [], "NV8"], [[127328, 127337], "valid", [], "NV8"], [[127338, 127338], "mapped", [109, 99]], [[127339, 127339], "mapped", [109, 100]], [[127340, 127343], "disallowed"], [[127344, 127352], "valid", [], "NV8"], [[127353, 127353], "valid", [], "NV8"], [[127354, 127354], "valid", [], "NV8"], [[127355, 127356], "valid", [], "NV8"], [[127357, 127358], "valid", [], "NV8"], [[127359, 127359], "valid", [], "NV8"], [[127360, 127369], "valid", [], "NV8"], [[127370, 127373], "valid", [], "NV8"], [[127374, 127375], "valid", [], "NV8"], [[127376, 127376], "mapped", [100, 106]], [[127377, 127386], "valid", [], "NV8"], [[127387, 127461], "disallowed"], [[127462, 127487], "valid", [], "NV8"], [[127488, 127488], "mapped", [12411, 12363]], [[127489, 127489], "mapped", [12467, 12467]], [[127490, 127490], "mapped", [12469]], [[127491, 127503], "disallowed"], [[127504, 127504], "mapped", [25163]], [[127505, 127505], "mapped", [23383]], [[127506, 127506], "mapped", [21452]], [[127507, 127507], "mapped", [12487]], [[127508, 127508], "mapped", [20108]], [[127509, 127509], "mapped", [22810]], [[127510, 127510], "mapped", [35299]], [[127511, 127511], "mapped", [22825]], [[127512, 127512], "mapped", [20132]], [[127513, 127513], "mapped", [26144]], [[127514, 127514], "mapped", [28961]], [[127515, 127515], "mapped", [26009]], [[127516, 127516], "mapped", [21069]], [[127517, 127517], "mapped", [24460]], [[127518, 127518], "mapped", [20877]], [[127519, 127519], "mapped", [26032]], [[127520, 127520], "mapped", [21021]], [[127521, 127521], "mapped", [32066]], [[127522, 127522], "mapped", [29983]], [[127523, 127523], "mapped", [36009]], [[127524, 127524], "mapped", [22768]], [[127525, 127525], "mapped", [21561]], [[127526, 127526], "mapped", [28436]], [[127527, 127527], "mapped", [25237]], [[127528, 127528], "mapped", [25429]], [[127529, 127529], "mapped", [19968]], [[127530, 127530], "mapped", [19977]], [[127531, 127531], "mapped", [36938]], [[127532, 127532], "mapped", [24038]], [[127533, 127533], "mapped", [20013]], [[127534, 127534], "mapped", [21491]], [[127535, 127535], "mapped", [25351]], [[127536, 127536], "mapped", [36208]], [[127537, 127537], "mapped", [25171]], [[127538, 127538], "mapped", [31105]], [[127539, 127539], "mapped", [31354]], [[127540, 127540], "mapped", [21512]], [[127541, 127541], "mapped", [28288]], [[127542, 127542], "mapped", [26377]], [[127543, 127543], "mapped", [26376]], [[127544, 127544], "mapped", [30003]], [[127545, 127545], "mapped", [21106]], [[127546, 127546], "mapped", [21942]], [[127547, 127551], "disallowed"], [[127552, 127552], "mapped", [12308, 26412, 12309]], [[127553, 127553], "mapped", [12308, 19977, 12309]], [[127554, 127554], "mapped", [12308, 20108, 12309]], [[127555, 127555], "mapped", [12308, 23433, 12309]], [[127556, 127556], "mapped", [12308, 28857, 12309]], [[127557, 127557], "mapped", [12308, 25171, 12309]], [[127558, 127558], "mapped", [12308, 30423, 12309]], [[127559, 127559], "mapped", [12308, 21213, 12309]], [[127560, 127560], "mapped", [12308, 25943, 12309]], [[127561, 127567], "disallowed"], [[127568, 127568], "mapped", [24471]], [[127569, 127569], "mapped", [21487]], [[127570, 127743], "disallowed"], [[127744, 127776], "valid", [], "NV8"], [[127777, 127788], "valid", [], "NV8"], [[127789, 127791], "valid", [], "NV8"], [[127792, 127797], "valid", [], "NV8"], [[127798, 127798], "valid", [], "NV8"], [[127799, 127868], "valid", [], "NV8"], [[127869, 127869], "valid", [], "NV8"], [[127870, 127871], "valid", [], "NV8"], [[127872, 127891], "valid", [], "NV8"], [[127892, 127903], "valid", [], "NV8"], [[127904, 127940], "valid", [], "NV8"], [[127941, 127941], "valid", [], "NV8"], [[127942, 127946], "valid", [], "NV8"], [[127947, 127950], "valid", [], "NV8"], [[127951, 127955], "valid", [], "NV8"], [[127956, 127967], "valid", [], "NV8"], [[127968, 127984], "valid", [], "NV8"], [[127985, 127991], "valid", [], "NV8"], [[127992, 127999], "valid", [], "NV8"], [[128e3, 128062], "valid", [], "NV8"], [[128063, 128063], "valid", [], "NV8"], [[128064, 128064], "valid", [], "NV8"], [[128065, 128065], "valid", [], "NV8"], [[128066, 128247], "valid", [], "NV8"], [[128248, 128248], "valid", [], "NV8"], [[128249, 128252], "valid", [], "NV8"], [[128253, 128254], "valid", [], "NV8"], [[128255, 128255], "valid", [], "NV8"], [[128256, 128317], "valid", [], "NV8"], [[128318, 128319], "valid", [], "NV8"], [[128320, 128323], "valid", [], "NV8"], [[128324, 128330], "valid", [], "NV8"], [[128331, 128335], "valid", [], "NV8"], [[128336, 128359], "valid", [], "NV8"], [[128360, 128377], "valid", [], "NV8"], [[128378, 128378], "disallowed"], [[128379, 128419], "valid", [], "NV8"], [[128420, 128420], "disallowed"], [[128421, 128506], "valid", [], "NV8"], [[128507, 128511], "valid", [], "NV8"], [[128512, 128512], "valid", [], "NV8"], [[128513, 128528], "valid", [], "NV8"], [[128529, 128529], "valid", [], "NV8"], [[128530, 128532], "valid", [], "NV8"], [[128533, 128533], "valid", [], "NV8"], [[128534, 128534], "valid", [], "NV8"], [[128535, 128535], "valid", [], "NV8"], [[128536, 128536], "valid", [], "NV8"], [[128537, 128537], "valid", [], "NV8"], [[128538, 128538], "valid", [], "NV8"], [[128539, 128539], "valid", [], "NV8"], [[128540, 128542], "valid", [], "NV8"], [[128543, 128543], "valid", [], "NV8"], [[128544, 128549], "valid", [], "NV8"], [[128550, 128551], "valid", [], "NV8"], [[128552, 128555], "valid", [], "NV8"], [[128556, 128556], "valid", [], "NV8"], [[128557, 128557], "valid", [], "NV8"], [[128558, 128559], "valid", [], "NV8"], [[128560, 128563], "valid", [], "NV8"], [[128564, 128564], "valid", [], "NV8"], [[128565, 128576], "valid", [], "NV8"], [[128577, 128578], "valid", [], "NV8"], [[128579, 128580], "valid", [], "NV8"], [[128581, 128591], "valid", [], "NV8"], [[128592, 128639], "valid", [], "NV8"], [[128640, 128709], "valid", [], "NV8"], [[128710, 128719], "valid", [], "NV8"], [[128720, 128720], "valid", [], "NV8"], [[128721, 128735], "disallowed"], [[128736, 128748], "valid", [], "NV8"], [[128749, 128751], "disallowed"], [[128752, 128755], "valid", [], "NV8"], [[128756, 128767], "disallowed"], [[128768, 128883], "valid", [], "NV8"], [[128884, 128895], "disallowed"], [[128896, 128980], "valid", [], "NV8"], [[128981, 129023], "disallowed"], [[129024, 129035], "valid", [], "NV8"], [[129036, 129039], "disallowed"], [[129040, 129095], "valid", [], "NV8"], [[129096, 129103], "disallowed"], [[129104, 129113], "valid", [], "NV8"], [[129114, 129119], "disallowed"], [[129120, 129159], "valid", [], "NV8"], [[129160, 129167], "disallowed"], [[129168, 129197], "valid", [], "NV8"], [[129198, 129295], "disallowed"], [[129296, 129304], "valid", [], "NV8"], [[129305, 129407], "disallowed"], [[129408, 129412], "valid", [], "NV8"], [[129413, 129471], "disallowed"], [[129472, 129472], "valid", [], "NV8"], [[129473, 131069], "disallowed"], [[131070, 131071], "disallowed"], [[131072, 173782], "valid"], [[173783, 173823], "disallowed"], [[173824, 177972], "valid"], [[177973, 177983], "disallowed"], [[177984, 178205], "valid"], [[178206, 178207], "disallowed"], [[178208, 183969], "valid"], [[183970, 194559], "disallowed"], [[194560, 194560], "mapped", [20029]], [[194561, 194561], "mapped", [20024]], [[194562, 194562], "mapped", [20033]], [[194563, 194563], "mapped", [131362]], [[194564, 194564], "mapped", [20320]], [[194565, 194565], "mapped", [20398]], [[194566, 194566], "mapped", [20411]], [[194567, 194567], "mapped", [20482]], [[194568, 194568], "mapped", [20602]], [[194569, 194569], "mapped", [20633]], [[194570, 194570], "mapped", [20711]], [[194571, 194571], "mapped", [20687]], [[194572, 194572], "mapped", [13470]], [[194573, 194573], "mapped", [132666]], [[194574, 194574], "mapped", [20813]], [[194575, 194575], "mapped", [20820]], [[194576, 194576], "mapped", [20836]], [[194577, 194577], "mapped", [20855]], [[194578, 194578], "mapped", [132380]], [[194579, 194579], "mapped", [13497]], [[194580, 194580], "mapped", [20839]], [[194581, 194581], "mapped", [20877]], [[194582, 194582], "mapped", [132427]], [[194583, 194583], "mapped", [20887]], [[194584, 194584], "mapped", [20900]], [[194585, 194585], "mapped", [20172]], [[194586, 194586], "mapped", [20908]], [[194587, 194587], "mapped", [20917]], [[194588, 194588], "mapped", [168415]], [[194589, 194589], "mapped", [20981]], [[194590, 194590], "mapped", [20995]], [[194591, 194591], "mapped", [13535]], [[194592, 194592], "mapped", [21051]], [[194593, 194593], "mapped", [21062]], [[194594, 194594], "mapped", [21106]], [[194595, 194595], "mapped", [21111]], [[194596, 194596], "mapped", [13589]], [[194597, 194597], "mapped", [21191]], [[194598, 194598], "mapped", [21193]], [[194599, 194599], "mapped", [21220]], [[194600, 194600], "mapped", [21242]], [[194601, 194601], "mapped", [21253]], [[194602, 194602], "mapped", [21254]], [[194603, 194603], "mapped", [21271]], [[194604, 194604], "mapped", [21321]], [[194605, 194605], "mapped", [21329]], [[194606, 194606], "mapped", [21338]], [[194607, 194607], "mapped", [21363]], [[194608, 194608], "mapped", [21373]], [[194609, 194611], "mapped", [21375]], [[194612, 194612], "mapped", [133676]], [[194613, 194613], "mapped", [28784]], [[194614, 194614], "mapped", [21450]], [[194615, 194615], "mapped", [21471]], [[194616, 194616], "mapped", [133987]], [[194617, 194617], "mapped", [21483]], [[194618, 194618], "mapped", [21489]], [[194619, 194619], "mapped", [21510]], [[194620, 194620], "mapped", [21662]], [[194621, 194621], "mapped", [21560]], [[194622, 194622], "mapped", [21576]], [[194623, 194623], "mapped", [21608]], [[194624, 194624], "mapped", [21666]], [[194625, 194625], "mapped", [21750]], [[194626, 194626], "mapped", [21776]], [[194627, 194627], "mapped", [21843]], [[194628, 194628], "mapped", [21859]], [[194629, 194630], "mapped", [21892]], [[194631, 194631], "mapped", [21913]], [[194632, 194632], "mapped", [21931]], [[194633, 194633], "mapped", [21939]], [[194634, 194634], "mapped", [21954]], [[194635, 194635], "mapped", [22294]], [[194636, 194636], "mapped", [22022]], [[194637, 194637], "mapped", [22295]], [[194638, 194638], "mapped", [22097]], [[194639, 194639], "mapped", [22132]], [[194640, 194640], "mapped", [20999]], [[194641, 194641], "mapped", [22766]], [[194642, 194642], "mapped", [22478]], [[194643, 194643], "mapped", [22516]], [[194644, 194644], "mapped", [22541]], [[194645, 194645], "mapped", [22411]], [[194646, 194646], "mapped", [22578]], [[194647, 194647], "mapped", [22577]], [[194648, 194648], "mapped", [22700]], [[194649, 194649], "mapped", [136420]], [[194650, 194650], "mapped", [22770]], [[194651, 194651], "mapped", [22775]], [[194652, 194652], "mapped", [22790]], [[194653, 194653], "mapped", [22810]], [[194654, 194654], "mapped", [22818]], [[194655, 194655], "mapped", [22882]], [[194656, 194656], "mapped", [136872]], [[194657, 194657], "mapped", [136938]], [[194658, 194658], "mapped", [23020]], [[194659, 194659], "mapped", [23067]], [[194660, 194660], "mapped", [23079]], [[194661, 194661], "mapped", [23e3]], [[194662, 194662], "mapped", [23142]], [[194663, 194663], "mapped", [14062]], [[194664, 194664], "disallowed"], [[194665, 194665], "mapped", [23304]], [[194666, 194667], "mapped", [23358]], [[194668, 194668], "mapped", [137672]], [[194669, 194669], "mapped", [23491]], [[194670, 194670], "mapped", [23512]], [[194671, 194671], "mapped", [23527]], [[194672, 194672], "mapped", [23539]], [[194673, 194673], "mapped", [138008]], [[194674, 194674], "mapped", [23551]], [[194675, 194675], "mapped", [23558]], [[194676, 194676], "disallowed"], [[194677, 194677], "mapped", [23586]], [[194678, 194678], "mapped", [14209]], [[194679, 194679], "mapped", [23648]], [[194680, 194680], "mapped", [23662]], [[194681, 194681], "mapped", [23744]], [[194682, 194682], "mapped", [23693]], [[194683, 194683], "mapped", [138724]], [[194684, 194684], "mapped", [23875]], [[194685, 194685], "mapped", [138726]], [[194686, 194686], "mapped", [23918]], [[194687, 194687], "mapped", [23915]], [[194688, 194688], "mapped", [23932]], [[194689, 194689], "mapped", [24033]], [[194690, 194690], "mapped", [24034]], [[194691, 194691], "mapped", [14383]], [[194692, 194692], "mapped", [24061]], [[194693, 194693], "mapped", [24104]], [[194694, 194694], "mapped", [24125]], [[194695, 194695], "mapped", [24169]], [[194696, 194696], "mapped", [14434]], [[194697, 194697], "mapped", [139651]], [[194698, 194698], "mapped", [14460]], [[194699, 194699], "mapped", [24240]], [[194700, 194700], "mapped", [24243]], [[194701, 194701], "mapped", [24246]], [[194702, 194702], "mapped", [24266]], [[194703, 194703], "mapped", [172946]], [[194704, 194704], "mapped", [24318]], [[194705, 194706], "mapped", [140081]], [[194707, 194707], "mapped", [33281]], [[194708, 194709], "mapped", [24354]], [[194710, 194710], "mapped", [14535]], [[194711, 194711], "mapped", [144056]], [[194712, 194712], "mapped", [156122]], [[194713, 194713], "mapped", [24418]], [[194714, 194714], "mapped", [24427]], [[194715, 194715], "mapped", [14563]], [[194716, 194716], "mapped", [24474]], [[194717, 194717], "mapped", [24525]], [[194718, 194718], "mapped", [24535]], [[194719, 194719], "mapped", [24569]], [[194720, 194720], "mapped", [24705]], [[194721, 194721], "mapped", [14650]], [[194722, 194722], "mapped", [14620]], [[194723, 194723], "mapped", [24724]], [[194724, 194724], "mapped", [141012]], [[194725, 194725], "mapped", [24775]], [[194726, 194726], "mapped", [24904]], [[194727, 194727], "mapped", [24908]], [[194728, 194728], "mapped", [24910]], [[194729, 194729], "mapped", [24908]], [[194730, 194730], "mapped", [24954]], [[194731, 194731], "mapped", [24974]], [[194732, 194732], "mapped", [25010]], [[194733, 194733], "mapped", [24996]], [[194734, 194734], "mapped", [25007]], [[194735, 194735], "mapped", [25054]], [[194736, 194736], "mapped", [25074]], [[194737, 194737], "mapped", [25078]], [[194738, 194738], "mapped", [25104]], [[194739, 194739], "mapped", [25115]], [[194740, 194740], "mapped", [25181]], [[194741, 194741], "mapped", [25265]], [[194742, 194742], "mapped", [25300]], [[194743, 194743], "mapped", [25424]], [[194744, 194744], "mapped", [142092]], [[194745, 194745], "mapped", [25405]], [[194746, 194746], "mapped", [25340]], [[194747, 194747], "mapped", [25448]], [[194748, 194748], "mapped", [25475]], [[194749, 194749], "mapped", [25572]], [[194750, 194750], "mapped", [142321]], [[194751, 194751], "mapped", [25634]], [[194752, 194752], "mapped", [25541]], [[194753, 194753], "mapped", [25513]], [[194754, 194754], "mapped", [14894]], [[194755, 194755], "mapped", [25705]], [[194756, 194756], "mapped", [25726]], [[194757, 194757], "mapped", [25757]], [[194758, 194758], "mapped", [25719]], [[194759, 194759], "mapped", [14956]], [[194760, 194760], "mapped", [25935]], [[194761, 194761], "mapped", [25964]], [[194762, 194762], "mapped", [143370]], [[194763, 194763], "mapped", [26083]], [[194764, 194764], "mapped", [26360]], [[194765, 194765], "mapped", [26185]], [[194766, 194766], "mapped", [15129]], [[194767, 194767], "mapped", [26257]], [[194768, 194768], "mapped", [15112]], [[194769, 194769], "mapped", [15076]], [[194770, 194770], "mapped", [20882]], [[194771, 194771], "mapped", [20885]], [[194772, 194772], "mapped", [26368]], [[194773, 194773], "mapped", [26268]], [[194774, 194774], "mapped", [32941]], [[194775, 194775], "mapped", [17369]], [[194776, 194776], "mapped", [26391]], [[194777, 194777], "mapped", [26395]], [[194778, 194778], "mapped", [26401]], [[194779, 194779], "mapped", [26462]], [[194780, 194780], "mapped", [26451]], [[194781, 194781], "mapped", [144323]], [[194782, 194782], "mapped", [15177]], [[194783, 194783], "mapped", [26618]], [[194784, 194784], "mapped", [26501]], [[194785, 194785], "mapped", [26706]], [[194786, 194786], "mapped", [26757]], [[194787, 194787], "mapped", [144493]], [[194788, 194788], "mapped", [26766]], [[194789, 194789], "mapped", [26655]], [[194790, 194790], "mapped", [26900]], [[194791, 194791], "mapped", [15261]], [[194792, 194792], "mapped", [26946]], [[194793, 194793], "mapped", [27043]], [[194794, 194794], "mapped", [27114]], [[194795, 194795], "mapped", [27304]], [[194796, 194796], "mapped", [145059]], [[194797, 194797], "mapped", [27355]], [[194798, 194798], "mapped", [15384]], [[194799, 194799], "mapped", [27425]], [[194800, 194800], "mapped", [145575]], [[194801, 194801], "mapped", [27476]], [[194802, 194802], "mapped", [15438]], [[194803, 194803], "mapped", [27506]], [[194804, 194804], "mapped", [27551]], [[194805, 194805], "mapped", [27578]], [[194806, 194806], "mapped", [27579]], [[194807, 194807], "mapped", [146061]], [[194808, 194808], "mapped", [138507]], [[194809, 194809], "mapped", [146170]], [[194810, 194810], "mapped", [27726]], [[194811, 194811], "mapped", [146620]], [[194812, 194812], "mapped", [27839]], [[194813, 194813], "mapped", [27853]], [[194814, 194814], "mapped", [27751]], [[194815, 194815], "mapped", [27926]], [[194816, 194816], "mapped", [27966]], [[194817, 194817], "mapped", [28023]], [[194818, 194818], "mapped", [27969]], [[194819, 194819], "mapped", [28009]], [[194820, 194820], "mapped", [28024]], [[194821, 194821], "mapped", [28037]], [[194822, 194822], "mapped", [146718]], [[194823, 194823], "mapped", [27956]], [[194824, 194824], "mapped", [28207]], [[194825, 194825], "mapped", [28270]], [[194826, 194826], "mapped", [15667]], [[194827, 194827], "mapped", [28363]], [[194828, 194828], "mapped", [28359]], [[194829, 194829], "mapped", [147153]], [[194830, 194830], "mapped", [28153]], [[194831, 194831], "mapped", [28526]], [[194832, 194832], "mapped", [147294]], [[194833, 194833], "mapped", [147342]], [[194834, 194834], "mapped", [28614]], [[194835, 194835], "mapped", [28729]], [[194836, 194836], "mapped", [28702]], [[194837, 194837], "mapped", [28699]], [[194838, 194838], "mapped", [15766]], [[194839, 194839], "mapped", [28746]], [[194840, 194840], "mapped", [28797]], [[194841, 194841], "mapped", [28791]], [[194842, 194842], "mapped", [28845]], [[194843, 194843], "mapped", [132389]], [[194844, 194844], "mapped", [28997]], [[194845, 194845], "mapped", [148067]], [[194846, 194846], "mapped", [29084]], [[194847, 194847], "disallowed"], [[194848, 194848], "mapped", [29224]], [[194849, 194849], "mapped", [29237]], [[194850, 194850], "mapped", [29264]], [[194851, 194851], "mapped", [149e3]], [[194852, 194852], "mapped", [29312]], [[194853, 194853], "mapped", [29333]], [[194854, 194854], "mapped", [149301]], [[194855, 194855], "mapped", [149524]], [[194856, 194856], "mapped", [29562]], [[194857, 194857], "mapped", [29579]], [[194858, 194858], "mapped", [16044]], [[194859, 194859], "mapped", [29605]], [[194860, 194861], "mapped", [16056]], [[194862, 194862], "mapped", [29767]], [[194863, 194863], "mapped", [29788]], [[194864, 194864], "mapped", [29809]], [[194865, 194865], "mapped", [29829]], [[194866, 194866], "mapped", [29898]], [[194867, 194867], "mapped", [16155]], [[194868, 194868], "mapped", [29988]], [[194869, 194869], "mapped", [150582]], [[194870, 194870], "mapped", [30014]], [[194871, 194871], "mapped", [150674]], [[194872, 194872], "mapped", [30064]], [[194873, 194873], "mapped", [139679]], [[194874, 194874], "mapped", [30224]], [[194875, 194875], "mapped", [151457]], [[194876, 194876], "mapped", [151480]], [[194877, 194877], "mapped", [151620]], [[194878, 194878], "mapped", [16380]], [[194879, 194879], "mapped", [16392]], [[194880, 194880], "mapped", [30452]], [[194881, 194881], "mapped", [151795]], [[194882, 194882], "mapped", [151794]], [[194883, 194883], "mapped", [151833]], [[194884, 194884], "mapped", [151859]], [[194885, 194885], "mapped", [30494]], [[194886, 194887], "mapped", [30495]], [[194888, 194888], "mapped", [30538]], [[194889, 194889], "mapped", [16441]], [[194890, 194890], "mapped", [30603]], [[194891, 194891], "mapped", [16454]], [[194892, 194892], "mapped", [16534]], [[194893, 194893], "mapped", [152605]], [[194894, 194894], "mapped", [30798]], [[194895, 194895], "mapped", [30860]], [[194896, 194896], "mapped", [30924]], [[194897, 194897], "mapped", [16611]], [[194898, 194898], "mapped", [153126]], [[194899, 194899], "mapped", [31062]], [[194900, 194900], "mapped", [153242]], [[194901, 194901], "mapped", [153285]], [[194902, 194902], "mapped", [31119]], [[194903, 194903], "mapped", [31211]], [[194904, 194904], "mapped", [16687]], [[194905, 194905], "mapped", [31296]], [[194906, 194906], "mapped", [31306]], [[194907, 194907], "mapped", [31311]], [[194908, 194908], "mapped", [153980]], [[194909, 194910], "mapped", [154279]], [[194911, 194911], "disallowed"], [[194912, 194912], "mapped", [16898]], [[194913, 194913], "mapped", [154539]], [[194914, 194914], "mapped", [31686]], [[194915, 194915], "mapped", [31689]], [[194916, 194916], "mapped", [16935]], [[194917, 194917], "mapped", [154752]], [[194918, 194918], "mapped", [31954]], [[194919, 194919], "mapped", [17056]], [[194920, 194920], "mapped", [31976]], [[194921, 194921], "mapped", [31971]], [[194922, 194922], "mapped", [32e3]], [[194923, 194923], "mapped", [155526]], [[194924, 194924], "mapped", [32099]], [[194925, 194925], "mapped", [17153]], [[194926, 194926], "mapped", [32199]], [[194927, 194927], "mapped", [32258]], [[194928, 194928], "mapped", [32325]], [[194929, 194929], "mapped", [17204]], [[194930, 194930], "mapped", [156200]], [[194931, 194931], "mapped", [156231]], [[194932, 194932], "mapped", [17241]], [[194933, 194933], "mapped", [156377]], [[194934, 194934], "mapped", [32634]], [[194935, 194935], "mapped", [156478]], [[194936, 194936], "mapped", [32661]], [[194937, 194937], "mapped", [32762]], [[194938, 194938], "mapped", [32773]], [[194939, 194939], "mapped", [156890]], [[194940, 194940], "mapped", [156963]], [[194941, 194941], "mapped", [32864]], [[194942, 194942], "mapped", [157096]], [[194943, 194943], "mapped", [32880]], [[194944, 194944], "mapped", [144223]], [[194945, 194945], "mapped", [17365]], [[194946, 194946], "mapped", [32946]], [[194947, 194947], "mapped", [33027]], [[194948, 194948], "mapped", [17419]], [[194949, 194949], "mapped", [33086]], [[194950, 194950], "mapped", [23221]], [[194951, 194951], "mapped", [157607]], [[194952, 194952], "mapped", [157621]], [[194953, 194953], "mapped", [144275]], [[194954, 194954], "mapped", [144284]], [[194955, 194955], "mapped", [33281]], [[194956, 194956], "mapped", [33284]], [[194957, 194957], "mapped", [36766]], [[194958, 194958], "mapped", [17515]], [[194959, 194959], "mapped", [33425]], [[194960, 194960], "mapped", [33419]], [[194961, 194961], "mapped", [33437]], [[194962, 194962], "mapped", [21171]], [[194963, 194963], "mapped", [33457]], [[194964, 194964], "mapped", [33459]], [[194965, 194965], "mapped", [33469]], [[194966, 194966], "mapped", [33510]], [[194967, 194967], "mapped", [158524]], [[194968, 194968], "mapped", [33509]], [[194969, 194969], "mapped", [33565]], [[194970, 194970], "mapped", [33635]], [[194971, 194971], "mapped", [33709]], [[194972, 194972], "mapped", [33571]], [[194973, 194973], "mapped", [33725]], [[194974, 194974], "mapped", [33767]], [[194975, 194975], "mapped", [33879]], [[194976, 194976], "mapped", [33619]], [[194977, 194977], "mapped", [33738]], [[194978, 194978], "mapped", [33740]], [[194979, 194979], "mapped", [33756]], [[194980, 194980], "mapped", [158774]], [[194981, 194981], "mapped", [159083]], [[194982, 194982], "mapped", [158933]], [[194983, 194983], "mapped", [17707]], [[194984, 194984], "mapped", [34033]], [[194985, 194985], "mapped", [34035]], [[194986, 194986], "mapped", [34070]], [[194987, 194987], "mapped", [160714]], [[194988, 194988], "mapped", [34148]], [[194989, 194989], "mapped", [159532]], [[194990, 194990], "mapped", [17757]], [[194991, 194991], "mapped", [17761]], [[194992, 194992], "mapped", [159665]], [[194993, 194993], "mapped", [159954]], [[194994, 194994], "mapped", [17771]], [[194995, 194995], "mapped", [34384]], [[194996, 194996], "mapped", [34396]], [[194997, 194997], "mapped", [34407]], [[194998, 194998], "mapped", [34409]], [[194999, 194999], "mapped", [34473]], [[195e3, 195e3], "mapped", [34440]], [[195001, 195001], "mapped", [34574]], [[195002, 195002], "mapped", [34530]], [[195003, 195003], "mapped", [34681]], [[195004, 195004], "mapped", [34600]], [[195005, 195005], "mapped", [34667]], [[195006, 195006], "mapped", [34694]], [[195007, 195007], "disallowed"], [[195008, 195008], "mapped", [34785]], [[195009, 195009], "mapped", [34817]], [[195010, 195010], "mapped", [17913]], [[195011, 195011], "mapped", [34912]], [[195012, 195012], "mapped", [34915]], [[195013, 195013], "mapped", [161383]], [[195014, 195014], "mapped", [35031]], [[195015, 195015], "mapped", [35038]], [[195016, 195016], "mapped", [17973]], [[195017, 195017], "mapped", [35066]], [[195018, 195018], "mapped", [13499]], [[195019, 195019], "mapped", [161966]], [[195020, 195020], "mapped", [162150]], [[195021, 195021], "mapped", [18110]], [[195022, 195022], "mapped", [18119]], [[195023, 195023], "mapped", [35488]], [[195024, 195024], "mapped", [35565]], [[195025, 195025], "mapped", [35722]], [[195026, 195026], "mapped", [35925]], [[195027, 195027], "mapped", [162984]], [[195028, 195028], "mapped", [36011]], [[195029, 195029], "mapped", [36033]], [[195030, 195030], "mapped", [36123]], [[195031, 195031], "mapped", [36215]], [[195032, 195032], "mapped", [163631]], [[195033, 195033], "mapped", [133124]], [[195034, 195034], "mapped", [36299]], [[195035, 195035], "mapped", [36284]], [[195036, 195036], "mapped", [36336]], [[195037, 195037], "mapped", [133342]], [[195038, 195038], "mapped", [36564]], [[195039, 195039], "mapped", [36664]], [[195040, 195040], "mapped", [165330]], [[195041, 195041], "mapped", [165357]], [[195042, 195042], "mapped", [37012]], [[195043, 195043], "mapped", [37105]], [[195044, 195044], "mapped", [37137]], [[195045, 195045], "mapped", [165678]], [[195046, 195046], "mapped", [37147]], [[195047, 195047], "mapped", [37432]], [[195048, 195048], "mapped", [37591]], [[195049, 195049], "mapped", [37592]], [[195050, 195050], "mapped", [37500]], [[195051, 195051], "mapped", [37881]], [[195052, 195052], "mapped", [37909]], [[195053, 195053], "mapped", [166906]], [[195054, 195054], "mapped", [38283]], [[195055, 195055], "mapped", [18837]], [[195056, 195056], "mapped", [38327]], [[195057, 195057], "mapped", [167287]], [[195058, 195058], "mapped", [18918]], [[195059, 195059], "mapped", [38595]], [[195060, 195060], "mapped", [23986]], [[195061, 195061], "mapped", [38691]], [[195062, 195062], "mapped", [168261]], [[195063, 195063], "mapped", [168474]], [[195064, 195064], "mapped", [19054]], [[195065, 195065], "mapped", [19062]], [[195066, 195066], "mapped", [38880]], [[195067, 195067], "mapped", [168970]], [[195068, 195068], "mapped", [19122]], [[195069, 195069], "mapped", [169110]], [[195070, 195071], "mapped", [38923]], [[195072, 195072], "mapped", [38953]], [[195073, 195073], "mapped", [169398]], [[195074, 195074], "mapped", [39138]], [[195075, 195075], "mapped", [19251]], [[195076, 195076], "mapped", [39209]], [[195077, 195077], "mapped", [39335]], [[195078, 195078], "mapped", [39362]], [[195079, 195079], "mapped", [39422]], [[195080, 195080], "mapped", [19406]], [[195081, 195081], "mapped", [170800]], [[195082, 195082], "mapped", [39698]], [[195083, 195083], "mapped", [4e4]], [[195084, 195084], "mapped", [40189]], [[195085, 195085], "mapped", [19662]], [[195086, 195086], "mapped", [19693]], [[195087, 195087], "mapped", [40295]], [[195088, 195088], "mapped", [172238]], [[195089, 195089], "mapped", [19704]], [[195090, 195090], "mapped", [172293]], [[195091, 195091], "mapped", [172558]], [[195092, 195092], "mapped", [172689]], [[195093, 195093], "mapped", [40635]], [[195094, 195094], "mapped", [19798]], [[195095, 195095], "mapped", [40697]], [[195096, 195096], "mapped", [40702]], [[195097, 195097], "mapped", [40709]], [[195098, 195098], "mapped", [40719]], [[195099, 195099], "mapped", [40726]], [[195100, 195100], "mapped", [40763]], [[195101, 195101], "mapped", [173568]], [[195102, 196605], "disallowed"], [[196606, 196607], "disallowed"], [[196608, 262141], "disallowed"], [[262142, 262143], "disallowed"], [[262144, 327677], "disallowed"], [[327678, 327679], "disallowed"], [[327680, 393213], "disallowed"], [[393214, 393215], "disallowed"], [[393216, 458749], "disallowed"], [[458750, 458751], "disallowed"], [[458752, 524285], "disallowed"], [[524286, 524287], "disallowed"], [[524288, 589821], "disallowed"], [[589822, 589823], "disallowed"], [[589824, 655357], "disallowed"], [[655358, 655359], "disallowed"], [[655360, 720893], "disallowed"], [[720894, 720895], "disallowed"], [[720896, 786429], "disallowed"], [[786430, 786431], "disallowed"], [[786432, 851965], "disallowed"], [[851966, 851967], "disallowed"], [[851968, 917501], "disallowed"], [[917502, 917503], "disallowed"], [[917504, 917504], "disallowed"], [[917505, 917505], "disallowed"], [[917506, 917535], "disallowed"], [[917536, 917631], "disallowed"], [[917632, 917759], "disallowed"], [[917760, 917999], "ignored"], [[918e3, 983037], "disallowed"], [[983038, 983039], "disallowed"], [[983040, 1048573], "disallowed"], [[1048574, 1048575], "disallowed"], [[1048576, 1114109], "disallowed"], [[1114110, 1114111], "disallowed"]]; } }); // ../../../node_modules/tr46/index.js var require_tr46 = __commonJS({ - "../../../node_modules/tr46/index.js"(exports, module2) { + "../../../node_modules/tr46/index.js"(exports2, module2) { "use strict"; var punycode = require("punycode"); var mappingTable = require_mappingTable(); @@ -24795,7 +24278,7 @@ var require_tr46 = __commonJS({ // ../../../node_modules/whatwg-url/lib/url-state-machine.js var require_url_state_machine = __commonJS({ - "../../../node_modules/whatwg-url/lib/url-state-machine.js"(exports, module2) { + "../../../node_modules/whatwg-url/lib/url-state-machine.js"(exports2, module2) { "use strict"; var punycode = require("punycode"); var tr46 = require_tr46(); @@ -25867,10 +25350,10 @@ var require_url_state_machine = __commonJS({ // ../../../node_modules/whatwg-url/lib/URL-impl.js var require_URL_impl = __commonJS({ - "../../../node_modules/whatwg-url/lib/URL-impl.js"(exports) { + "../../../node_modules/whatwg-url/lib/URL-impl.js"(exports2) { "use strict"; var usm = require_url_state_machine(); - exports.implementation = class URLImpl { + exports2.implementation = class URLImpl { constructor(constructorArgs) { const url2 = constructorArgs[0]; const base = constructorArgs[1]; @@ -26024,7 +25507,7 @@ var require_URL_impl = __commonJS({ // ../../../node_modules/whatwg-url/lib/URL.js var require_URL = __commonJS({ - "../../../node_modules/whatwg-url/lib/URL.js"(exports, module2) { + "../../../node_modules/whatwg-url/lib/URL.js"(exports2, module2) { "use strict"; var conversions = require_lib2(); var utils = require_utils2(); @@ -26207,23 +25690,23 @@ var require_URL = __commonJS({ // ../../../node_modules/whatwg-url/lib/public-api.js var require_public_api = __commonJS({ - "../../../node_modules/whatwg-url/lib/public-api.js"(exports) { + "../../../node_modules/whatwg-url/lib/public-api.js"(exports2) { "use strict"; - exports.URL = require_URL().interface; - exports.serializeURL = require_url_state_machine().serializeURL; - exports.serializeURLOrigin = require_url_state_machine().serializeURLOrigin; - exports.basicURLParse = require_url_state_machine().basicURLParse; - exports.setTheUsername = require_url_state_machine().setTheUsername; - exports.setThePassword = require_url_state_machine().setThePassword; - exports.serializeHost = require_url_state_machine().serializeHost; - exports.serializeInteger = require_url_state_machine().serializeInteger; - exports.parseURL = require_url_state_machine().parseURL; + exports2.URL = require_URL().interface; + exports2.serializeURL = require_url_state_machine().serializeURL; + exports2.serializeURLOrigin = require_url_state_machine().serializeURLOrigin; + exports2.basicURLParse = require_url_state_machine().basicURLParse; + exports2.setTheUsername = require_url_state_machine().setTheUsername; + exports2.setThePassword = require_url_state_machine().setThePassword; + exports2.serializeHost = require_url_state_machine().serializeHost; + exports2.serializeInteger = require_url_state_machine().serializeInteger; + exports2.parseURL = require_url_state_machine().parseURL; } }); // ../../../node_modules/safer-buffer/safer.js var require_safer = __commonJS({ - "../../../node_modules/safer-buffer/safer.js"(exports, module2) { + "../../../node_modules/safer-buffer/safer.js"(exports2, module2) { "use strict"; var buffer = require("buffer"); var Buffer2 = buffer.Buffer; @@ -26295,10 +25778,10 @@ var require_safer = __commonJS({ // ../../../node_modules/iconv-lite/lib/bom-handling.js var require_bom_handling = __commonJS({ - "../../../node_modules/iconv-lite/lib/bom-handling.js"(exports) { + "../../../node_modules/iconv-lite/lib/bom-handling.js"(exports2) { "use strict"; var BOMChar = "\uFEFF"; - exports.PrependBOM = PrependBOMWrapper; + exports2.PrependBOM = PrependBOMWrapper; function PrependBOMWrapper(encoder, options) { this.encoder = encoder; this.addBOM = true; @@ -26313,7 +25796,7 @@ var require_bom_handling = __commonJS({ PrependBOMWrapper.prototype.end = function() { return this.encoder.end(); }; - exports.StripBOM = StripBOMWrapper; + exports2.StripBOM = StripBOMWrapper; function StripBOMWrapper(decoder2, options) { this.decoder = decoder2; this.pass = false; @@ -26339,7 +25822,7 @@ var require_bom_handling = __commonJS({ // ../../../node_modules/iconv-lite/encodings/internal.js var require_internal = __commonJS({ - "../../../node_modules/iconv-lite/encodings/internal.js"(exports, module2) { + "../../../node_modules/iconv-lite/encodings/internal.js"(exports2, module2) { "use strict"; var Buffer2 = require_safer().Buffer; module2.exports = { @@ -26491,19 +25974,19 @@ var require_internal = __commonJS({ // ../../../node_modules/iconv-lite/encodings/utf32.js var require_utf32 = __commonJS({ - "../../../node_modules/iconv-lite/encodings/utf32.js"(exports) { + "../../../node_modules/iconv-lite/encodings/utf32.js"(exports2) { "use strict"; var Buffer2 = require_safer().Buffer; - exports._utf32 = Utf32Codec; + exports2._utf32 = Utf32Codec; function Utf32Codec(codecOptions, iconv) { this.iconv = iconv; this.bomAware = true; this.isLE = codecOptions.isLE; } - exports.utf32le = { type: "_utf32", isLE: true }; - exports.utf32be = { type: "_utf32", isLE: false }; - exports.ucs4le = "utf32le"; - exports.ucs4be = "utf32be"; + exports2.utf32le = { type: "_utf32", isLE: true }; + exports2.utf32be = { type: "_utf32", isLE: false }; + exports2.ucs4le = "utf32le"; + exports2.ucs4be = "utf32be"; Utf32Codec.prototype.encoder = Utf32Encoder; Utf32Codec.prototype.decoder = Utf32Decoder; function Utf32Encoder(options, codec) { @@ -26613,8 +26096,8 @@ var require_utf32 = __commonJS({ Utf32Decoder.prototype.end = function() { this.overflow.length = 0; }; - exports.utf32 = Utf32AutoCodec; - exports.ucs4 = "utf32"; + exports2.utf32 = Utf32AutoCodec; + exports2.ucs4 = "utf32"; function Utf32AutoCodec(options, iconv) { this.iconv = iconv; } @@ -26716,10 +26199,10 @@ var require_utf32 = __commonJS({ // ../../../node_modules/iconv-lite/encodings/utf16.js var require_utf16 = __commonJS({ - "../../../node_modules/iconv-lite/encodings/utf16.js"(exports) { + "../../../node_modules/iconv-lite/encodings/utf16.js"(exports2) { "use strict"; var Buffer2 = require_safer().Buffer; - exports.utf16be = Utf16BECodec; + exports2.utf16be = Utf16BECodec; function Utf16BECodec() { } Utf16BECodec.prototype.encoder = Utf16BEEncoder; @@ -26761,7 +26244,7 @@ var require_utf16 = __commonJS({ Utf16BEDecoder.prototype.end = function() { this.overflowByte = -1; }; - exports.utf16 = Utf16Codec; + exports2.utf16 = Utf16Codec; function Utf16Codec(codecOptions, iconv) { this.iconv = iconv; } @@ -26856,11 +26339,11 @@ var require_utf16 = __commonJS({ // ../../../node_modules/iconv-lite/encodings/utf7.js var require_utf7 = __commonJS({ - "../../../node_modules/iconv-lite/encodings/utf7.js"(exports) { + "../../../node_modules/iconv-lite/encodings/utf7.js"(exports2) { "use strict"; var Buffer2 = require_safer().Buffer; - exports.utf7 = Utf7Codec; - exports.unicode11utf7 = "utf7"; + exports2.utf7 = Utf7Codec; + exports2.unicode11utf7 = "utf7"; function Utf7Codec(codecOptions, iconv) { this.iconv = iconv; } @@ -26937,7 +26420,7 @@ var require_utf7 = __commonJS({ this.base64Accum = ""; return res; }; - exports.utf7imap = Utf7IMAPCodec; + exports2.utf7imap = Utf7IMAPCodec; function Utf7IMAPCodec(codecOptions, iconv) { this.iconv = iconv; } @@ -27057,10 +26540,10 @@ var require_utf7 = __commonJS({ // ../../../node_modules/iconv-lite/encodings/sbcs-codec.js var require_sbcs_codec = __commonJS({ - "../../../node_modules/iconv-lite/encodings/sbcs-codec.js"(exports) { + "../../../node_modules/iconv-lite/encodings/sbcs-codec.js"(exports2) { "use strict"; var Buffer2 = require_safer().Buffer; - exports._sbcs = SBCSCodec; + exports2._sbcs = SBCSCodec; function SBCSCodec(codecOptions, iconv) { if (!codecOptions) throw new Error("SBCS codec is called without the data."); @@ -27113,7 +26596,7 @@ var require_sbcs_codec = __commonJS({ // ../../../node_modules/iconv-lite/encodings/sbcs-data.js var require_sbcs_data = __commonJS({ - "../../../node_modules/iconv-lite/encodings/sbcs-data.js"(exports, module2) { + "../../../node_modules/iconv-lite/encodings/sbcs-data.js"(exports2, module2) { "use strict"; module2.exports = { // Not supported by iconv, not sure why. @@ -27266,7 +26749,7 @@ var require_sbcs_data = __commonJS({ // ../../../node_modules/iconv-lite/encodings/sbcs-data-generated.js var require_sbcs_data_generated = __commonJS({ - "../../../node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports, module2) { + "../../../node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports2, module2) { "use strict"; module2.exports = { "437": "cp437", @@ -27721,10 +27204,10 @@ var require_sbcs_data_generated = __commonJS({ // ../../../node_modules/iconv-lite/encodings/dbcs-codec.js var require_dbcs_codec = __commonJS({ - "../../../node_modules/iconv-lite/encodings/dbcs-codec.js"(exports) { + "../../../node_modules/iconv-lite/encodings/dbcs-codec.js"(exports2) { "use strict"; var Buffer2 = require_safer().Buffer; - exports._dbcs = DBCSCodec; + exports2._dbcs = DBCSCodec; var UNASSIGNED = -1; var GB18030_CODE = -2; var SEQ_START = -10; @@ -28142,7 +27625,7 @@ var require_dbcs_codec = __commonJS({ // ../../../node_modules/iconv-lite/encodings/tables/shiftjis.json var require_shiftjis = __commonJS({ - "../../../node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports, module2) { + "../../../node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports2, module2) { module2.exports = [ ["0", "\0", 128], ["a1", "\uFF61", 62], @@ -28273,7 +27756,7 @@ var require_shiftjis = __commonJS({ // ../../../node_modules/iconv-lite/encodings/tables/eucjp.json var require_eucjp = __commonJS({ - "../../../node_modules/iconv-lite/encodings/tables/eucjp.json"(exports, module2) { + "../../../node_modules/iconv-lite/encodings/tables/eucjp.json"(exports2, module2) { module2.exports = [ ["0", "\0", 127], ["8ea1", "\uFF61", 62], @@ -28461,7 +27944,7 @@ var require_eucjp = __commonJS({ // ../../../node_modules/iconv-lite/encodings/tables/cp936.json var require_cp936 = __commonJS({ - "../../../node_modules/iconv-lite/encodings/tables/cp936.json"(exports, module2) { + "../../../node_modules/iconv-lite/encodings/tables/cp936.json"(exports2, module2) { module2.exports = [ ["0", "\0", 127, "\u20AC"], ["8140", "\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A", 5, "\u4E72\u4E74", 9, "\u4E7F", 6, "\u4E87\u4E8A"], @@ -28731,7 +28214,7 @@ var require_cp936 = __commonJS({ // ../../../node_modules/iconv-lite/encodings/tables/gbk-added.json var require_gbk_added = __commonJS({ - "../../../node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports, module2) { + "../../../node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports2, module2) { module2.exports = [ ["a140", "\uE4C6", 62], ["a180", "\uE505", 32], @@ -28793,14 +28276,14 @@ var require_gbk_added = __commonJS({ // ../../../node_modules/iconv-lite/encodings/tables/gb18030-ranges.json var require_gb18030_ranges = __commonJS({ - "../../../node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports, module2) { + "../../../node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports2, module2) { module2.exports = { uChars: [128, 165, 169, 178, 184, 216, 226, 235, 238, 244, 248, 251, 253, 258, 276, 284, 300, 325, 329, 334, 364, 463, 465, 467, 469, 471, 473, 475, 477, 506, 594, 610, 712, 716, 730, 930, 938, 962, 970, 1026, 1104, 1106, 8209, 8215, 8218, 8222, 8231, 8241, 8244, 8246, 8252, 8365, 8452, 8454, 8458, 8471, 8482, 8556, 8570, 8596, 8602, 8713, 8720, 8722, 8726, 8731, 8737, 8740, 8742, 8748, 8751, 8760, 8766, 8777, 8781, 8787, 8802, 8808, 8816, 8854, 8858, 8870, 8896, 8979, 9322, 9372, 9548, 9588, 9616, 9622, 9634, 9652, 9662, 9672, 9676, 9680, 9702, 9735, 9738, 9793, 9795, 11906, 11909, 11913, 11917, 11928, 11944, 11947, 11951, 11956, 11960, 11964, 11979, 12284, 12292, 12312, 12319, 12330, 12351, 12436, 12447, 12535, 12543, 12586, 12842, 12850, 12964, 13200, 13215, 13218, 13253, 13263, 13267, 13270, 13384, 13428, 13727, 13839, 13851, 14617, 14703, 14801, 14816, 14964, 15183, 15471, 15585, 16471, 16736, 17208, 17325, 17330, 17374, 17623, 17997, 18018, 18212, 18218, 18301, 18318, 18760, 18811, 18814, 18820, 18823, 18844, 18848, 18872, 19576, 19620, 19738, 19887, 40870, 59244, 59336, 59367, 59413, 59417, 59423, 59431, 59437, 59443, 59452, 59460, 59478, 59493, 63789, 63866, 63894, 63976, 63986, 64016, 64018, 64021, 64025, 64034, 64037, 64042, 65074, 65093, 65107, 65112, 65127, 65132, 65375, 65510, 65536], gbChars: [0, 36, 38, 45, 50, 81, 89, 95, 96, 100, 103, 104, 105, 109, 126, 133, 148, 172, 175, 179, 208, 306, 307, 308, 309, 310, 311, 312, 313, 341, 428, 443, 544, 545, 558, 741, 742, 749, 750, 805, 819, 820, 7922, 7924, 7925, 7927, 7934, 7943, 7944, 7945, 7950, 8062, 8148, 8149, 8152, 8164, 8174, 8236, 8240, 8262, 8264, 8374, 8380, 8381, 8384, 8388, 8390, 8392, 8393, 8394, 8396, 8401, 8406, 8416, 8419, 8424, 8437, 8439, 8445, 8482, 8485, 8496, 8521, 8603, 8936, 8946, 9046, 9050, 9063, 9066, 9076, 9092, 9100, 9108, 9111, 9113, 9131, 9162, 9164, 9218, 9219, 11329, 11331, 11334, 11336, 11346, 11361, 11363, 11366, 11370, 11372, 11375, 11389, 11682, 11686, 11687, 11692, 11694, 11714, 11716, 11723, 11725, 11730, 11736, 11982, 11989, 12102, 12336, 12348, 12350, 12384, 12393, 12395, 12397, 12510, 12553, 12851, 12962, 12973, 13738, 13823, 13919, 13933, 14080, 14298, 14585, 14698, 15583, 15847, 16318, 16434, 16438, 16481, 16729, 17102, 17122, 17315, 17320, 17402, 17418, 17859, 17909, 17911, 17915, 17916, 17936, 17939, 17961, 18664, 18703, 18814, 18962, 19043, 33469, 33470, 33471, 33484, 33485, 33490, 33497, 33501, 33505, 33513, 33520, 33536, 33550, 37845, 37921, 37948, 38029, 38038, 38064, 38065, 38066, 38069, 38075, 38076, 38078, 39108, 39109, 39113, 39114, 39115, 39116, 39265, 39394, 189e3] }; } }); // ../../../node_modules/iconv-lite/encodings/tables/cp949.json var require_cp949 = __commonJS({ - "../../../node_modules/iconv-lite/encodings/tables/cp949.json"(exports, module2) { + "../../../node_modules/iconv-lite/encodings/tables/cp949.json"(exports2, module2) { module2.exports = [ ["0", "\0", 127], ["8141", "\uAC02\uAC03\uAC05\uAC06\uAC0B", 4, "\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25", 6, "\uAC2E\uAC32\uAC33\uAC34"], @@ -29079,7 +28562,7 @@ var require_cp949 = __commonJS({ // ../../../node_modules/iconv-lite/encodings/tables/cp950.json var require_cp950 = __commonJS({ - "../../../node_modules/iconv-lite/encodings/tables/cp950.json"(exports, module2) { + "../../../node_modules/iconv-lite/encodings/tables/cp950.json"(exports2, module2) { module2.exports = [ ["0", "\0", 127], ["a140", "\u3000\uFF0C\u3001\u3002\uFF0E\u2027\uFF1B\uFF1A\uFF1F\uFF01\uFE30\u2026\u2025\uFE50\uFE51\uFE52\xB7\uFE54\uFE55\uFE56\uFE57\uFF5C\u2013\uFE31\u2014\uFE33\u2574\uFE34\uFE4F\uFF08\uFF09\uFE35\uFE36\uFF5B\uFF5D\uFE37\uFE38\u3014\u3015\uFE39\uFE3A\u3010\u3011\uFE3B\uFE3C\u300A\u300B\uFE3D\uFE3E\u3008\u3009\uFE3F\uFE40\u300C\u300D\uFE41\uFE42\u300E\u300F\uFE43\uFE44\uFE59\uFE5A"], @@ -29262,7 +28745,7 @@ var require_cp950 = __commonJS({ // ../../../node_modules/iconv-lite/encodings/tables/big5-added.json var require_big5_added = __commonJS({ - "../../../node_modules/iconv-lite/encodings/tables/big5-added.json"(exports, module2) { + "../../../node_modules/iconv-lite/encodings/tables/big5-added.json"(exports2, module2) { module2.exports = [ ["8740", "\u43F0\u4C32\u4603\u45A6\u4578\u{27267}\u4D77\u45B3\u{27CB1}\u4CE2\u{27CC5}\u3B95\u4736\u4744\u4C47\u4C40\u{242BF}\u{23617}\u{27352}\u{26E8B}\u{270D2}\u4C57\u{2A351}\u474F\u45DA\u4C85\u{27C6C}\u4D07\u4AA4\u46A1\u{26B23}\u7225\u{25A54}\u{21A63}\u{23E06}\u{23F61}\u664D\u56FB"], ["8767", "\u7D95\u591D\u{28BB9}\u3DF4\u9734\u{27BEF}\u5BDB\u{21D5E}\u5AA4\u3625\u{29EB0}\u5AD1\u5BB7\u5CFC\u676E\u8593\u{29945}\u7461\u749D\u3875\u{21D53}\u{2369E}\u{26021}\u3EEC"], @@ -29390,7 +28873,7 @@ var require_big5_added = __commonJS({ // ../../../node_modules/iconv-lite/encodings/dbcs-data.js var require_dbcs_data = __commonJS({ - "../../../node_modules/iconv-lite/encodings/dbcs-data.js"(exports, module2) { + "../../../node_modules/iconv-lite/encodings/dbcs-data.js"(exports2, module2) { "use strict"; module2.exports = { // == Japanese/ShiftJIS ==================================================== @@ -29637,7 +29120,7 @@ var require_dbcs_data = __commonJS({ // ../../../node_modules/iconv-lite/encodings/index.js var require_encodings = __commonJS({ - "../../../node_modules/iconv-lite/encodings/index.js"(exports, module2) { + "../../../node_modules/iconv-lite/encodings/index.js"(exports2, module2) { "use strict"; var modules = [ require_internal(), @@ -29654,7 +29137,7 @@ var require_encodings = __commonJS({ module2 = modules[i]; for (enc in module2) if (Object.prototype.hasOwnProperty.call(module2, enc)) - exports[enc] = module2[enc]; + exports2[enc] = module2[enc]; } var module2; var enc; @@ -29664,7 +29147,7 @@ var require_encodings = __commonJS({ // ../../../node_modules/iconv-lite/lib/streams.js var require_streams = __commonJS({ - "../../../node_modules/iconv-lite/lib/streams.js"(exports, module2) { + "../../../node_modules/iconv-lite/lib/streams.js"(exports2, module2) { "use strict"; var Buffer2 = require_safer().Buffer; module2.exports = function(stream_module) { @@ -29763,7 +29246,7 @@ var require_streams = __commonJS({ // ../../../node_modules/iconv-lite/lib/index.js var require_lib3 = __commonJS({ - "../../../node_modules/iconv-lite/lib/index.js"(exports, module2) { + "../../../node_modules/iconv-lite/lib/index.js"(exports2, module2) { "use strict"; var Buffer2 = require_safer().Buffer; var bomHandling = require_bom_handling(); @@ -29883,7 +29366,7 @@ var require_lib3 = __commonJS({ // ../../../node_modules/encoding/lib/encoding.js var require_encoding = __commonJS({ - "../../../node_modules/encoding/lib/encoding.js"(exports, module2) { + "../../../node_modules/encoding/lib/encoding.js"(exports2, module2) { "use strict"; var iconvLite = require_lib3(); module2.exports.convert = convert; @@ -29931,9 +29414,9 @@ var require_encoding = __commonJS({ // ../../../node_modules/node-fetch/lib/index.js var require_lib4 = __commonJS({ - "../../../node_modules/node-fetch/lib/index.js"(exports, module2) { + "../../../node_modules/node-fetch/lib/index.js"(exports2, module2) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + Object.defineProperty(exports2, "__esModule", { value: true }); function _interopDefault(ex) { return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex; } @@ -31165,14 +30648,14 @@ var require_lib4 = __commonJS({ return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; }; fetch2.Promise = global.Promise; - module2.exports = exports = fetch2; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.default = exports; - exports.Headers = Headers; - exports.Request = Request; - exports.Response = Response2; - exports.FetchError = FetchError; - exports.AbortError = AbortError; + module2.exports = exports2 = fetch2; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.default = exports2; + exports2.Headers = Headers; + exports2.Request = Request; + exports2.Response = Response2; + exports2.FetchError = FetchError; + exports2.AbortError = AbortError; } }); @@ -31295,7 +30778,7 @@ var init_find_client_constructor = __esm({ // ../sdk-v2-to-v3-adapter/lib/sdk-v2-to-v3.json var require_sdk_v2_to_v3 = __commonJS({ - "../sdk-v2-to-v3-adapter/lib/sdk-v2-to-v3.json"(exports, module2) { + "../sdk-v2-to-v3-adapter/lib/sdk-v2-to-v3.json"(exports2, module2) { module2.exports = { acmpca: "acm-pca", apigateway: "api-gateway", @@ -31444,7 +30927,7 @@ var require_sdk_v2_to_v3 = __commonJS({ // ../sdk-v2-to-v3-adapter/lib/sdk-v3-metadata.json var require_sdk_v3_metadata = __commonJS({ - "../sdk-v2-to-v3-adapter/lib/sdk-v3-metadata.json"(exports, module2) { + "../sdk-v2-to-v3-adapter/lib/sdk-v3-metadata.json"(exports2, module2) { module2.exports = { accessanalyzer: { iamPrefix: "access-analyzer" @@ -32685,9 +32168,9 @@ var init_api_call = __esm({ // ../sdk-v2-to-v3-adapter/lib/index.js var require_lib5 = __commonJS({ - "../sdk-v2-to-v3-adapter/lib/index.js"(exports) { + "../sdk-v2-to-v3-adapter/lib/index.js"(exports2) { "use strict"; - var __createBinding3 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -32702,29 +32185,29 @@ var require_lib5 = __commonJS({ k2 = k; o[k2] = m[k]; }); - var __exportStar3 = exports && exports.__exportStar || function(m, exports2) { + var __exportStar3 = exports2 && exports2.__exportStar || function(m, exports3) { for (var p in m) - if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) - __createBinding3(exports2, m, p); + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) + __createBinding3(exports3, m, p); }; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.normalizeActionName = exports.normalizeServiceName = exports.findV3ClientConstructor = exports.coerceApiParameters = void 0; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.normalizeActionName = exports2.normalizeServiceName = exports2.findV3ClientConstructor = exports2.coerceApiParameters = void 0; var coerce_api_parameters_1 = (init_coerce_api_parameters(), __toCommonJS(coerce_api_parameters_exports)); - Object.defineProperty(exports, "coerceApiParameters", { enumerable: true, get: function() { + Object.defineProperty(exports2, "coerceApiParameters", { enumerable: true, get: function() { return coerce_api_parameters_1.coerceApiParameters; } }); var find_client_constructor_1 = (init_find_client_constructor(), __toCommonJS(find_client_constructor_exports)); - Object.defineProperty(exports, "findV3ClientConstructor", { enumerable: true, get: function() { + Object.defineProperty(exports2, "findV3ClientConstructor", { enumerable: true, get: function() { return find_client_constructor_1.findV3ClientConstructor; } }); var sdk_info_1 = (init_sdk_info(), __toCommonJS(sdk_info_exports)); - Object.defineProperty(exports, "normalizeServiceName", { enumerable: true, get: function() { + Object.defineProperty(exports2, "normalizeServiceName", { enumerable: true, get: function() { return sdk_info_1.normalizeServiceName; } }); - Object.defineProperty(exports, "normalizeActionName", { enumerable: true, get: function() { + Object.defineProperty(exports2, "normalizeActionName", { enumerable: true, get: function() { return sdk_info_1.normalizeActionName; } }); - __exportStar3((init_api_call(), __toCommonJS(api_call_exports)), exports); + __exportStar3((init_api_call(), __toCommonJS(api_call_exports)), exports2); } }); @@ -32748,7 +32231,6 @@ var CustomResourceHandler = class { constructor(event, context) { this.event = event; this.context = context; - this.timedOut = false; this.timeout = setTimeout(async () => { await this.respond({ status: "FAILED", @@ -32760,6 +32242,9 @@ var CustomResourceHandler = class { this.event = event; this.physicalResourceId = extractPhysicalResourceId(event); } + physicalResourceId; + timeout; + timedOut = false; /** * Handles executing the custom resource event. If `stateMachineArn` is present * in the props then trigger the waiter statemachine @@ -32893,6 +32378,7 @@ var AssertionHandler = class extends CustomResourceHandler { } }; var MatchCreator = class { + parsedObj; constructor(obj) { this.parsedObj = { matcher: obj diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/canary-one.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/canary-one.assets.json index 15f655d64213d..9476666a05aba 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/canary-one.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/canary-one.assets.json @@ -1,5 +1,5 @@ { - "version": "34.0.0", + "version": "36.0.0", "files": { "2ec8ad9e91dcd6e7ad6a5c84ffc6c9c05c408aca3b26ceb2816d81043e6c4dc3": { "source": { @@ -53,7 +53,7 @@ } } }, - "4831e86071470caad838e9a1e194f9af7a31ea636fb5eaaa7444df685bc174a4": { + "a084e2781e9799cdbf79f61a1e48791de68f996748cbf9a82d4df5ebe1259373": { "source": { "path": "canary-one.template.json", "packaging": "file" @@ -61,7 +61,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "4831e86071470caad838e9a1e194f9af7a31ea636fb5eaaa7444df685bc174a4.json", + "objectKey": "a084e2781e9799cdbf79f61a1e48791de68f996748cbf9a82d4df5ebe1259373.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/canary-one.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/canary-one.template.json index a93fdf746a4ec..1fc8936a16471 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/canary-one.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/canary-one.template.json @@ -1181,7 +1181,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" }, - "SynNodejsPuppeteer39ArtifactsBucketC3BBB932": { + "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC": { "Type": "AWS::S3::Bucket", "Properties": { "BucketEncryption": { @@ -1197,11 +1197,11 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain" }, - "SynNodejsPuppeteer39ArtifactsBucketPolicy502FE6AD": { + "SynNodejsPuppeteer40ArtifactsBucketPolicy881746F6": { "Type": "AWS::S3::BucketPolicy", "Properties": { "Bucket": { - "Ref": "SynNodejsPuppeteer39ArtifactsBucketC3BBB932" + "Ref": "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC" }, "PolicyDocument": { "Statement": [ @@ -1219,7 +1219,7 @@ "Resource": [ { "Fn::GetAtt": [ - "SynNodejsPuppeteer39ArtifactsBucketC3BBB932", + "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", "Arn" ] }, @@ -1229,7 +1229,7 @@ [ { "Fn::GetAtt": [ - "SynNodejsPuppeteer39ArtifactsBucketC3BBB932", + "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", "Arn" ] }, @@ -1244,7 +1244,7 @@ } } }, - "SynNodejsPuppeteer39ServiceRole946A595A": { + "SynNodejsPuppeteer40ServiceRole800C58BD": { "Type": "AWS::IAM::Role", "Properties": { "AssumeRolePolicyDocument": { @@ -1273,7 +1273,7 @@ "Effect": "Allow", "Resource": { "Fn::GetAtt": [ - "SynNodejsPuppeteer39ArtifactsBucketC3BBB932", + "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", "Arn" ] } @@ -1287,7 +1287,7 @@ [ { "Fn::GetAtt": [ - "SynNodejsPuppeteer39ArtifactsBucketC3BBB932", + "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", "Arn" ] }, @@ -1342,7 +1342,7 @@ ] } }, - "SynNodejsPuppeteer3978815E0A": { + "SynNodejsPuppeteer406C46FFAF": { "Type": "AWS::Synthetics::Canary", "Properties": { "ArtifactS3Location": { @@ -1351,7 +1351,7 @@ [ "s3://", { - "Ref": "SynNodejsPuppeteer39ArtifactsBucketC3BBB932" + "Ref": "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC" } ] ] @@ -1365,11 +1365,11 @@ }, "ExecutionRoleArn": { "Fn::GetAtt": [ - "SynNodejsPuppeteer39ServiceRole946A595A", + "SynNodejsPuppeteer40ServiceRole800C58BD", "Arn" ] }, - "Name": "canaryonesynnodec5378", + "Name": "canaryonesynnodc37fe2", "RunConfig": { "EnvironmentVariables": { "URL": { @@ -1398,7 +1398,7 @@ } } }, - "RuntimeVersion": "syn-nodejs-puppeteer-3.9", + "RuntimeVersion": "syn-nodejs-puppeteer-4.0", "Schedule": { "DurationInSeconds": "0", "Expression": "rate(5 minutes)" @@ -1412,7 +1412,7 @@ ] } }, - "SynNodejsPuppeteer39AutoDeleteUnderlyingResourcesCustomResourceB6D0DB57": { + "SynNodejsPuppeteer40AutoDeleteUnderlyingResourcesCustomResourceD78DC158": { "Type": "Custom::SyntheticsAutoDeleteUnderlyingResources", "Properties": { "ServiceToken": { @@ -1422,13 +1422,13 @@ ] }, "CanaryName": { - "Ref": "SynNodejsPuppeteer3978815E0A" + "Ref": "SynNodejsPuppeteer406C46FFAF" } }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" }, - "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC": { + "SynNodejsPuppeteer62ArtifactsBucket8BF029F1": { "Type": "AWS::S3::Bucket", "Properties": { "BucketEncryption": { @@ -1444,11 +1444,11 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain" }, - "SynNodejsPuppeteer40ArtifactsBucketPolicy881746F6": { + "SynNodejsPuppeteer62ArtifactsBucketPolicyC32C22F0": { "Type": "AWS::S3::BucketPolicy", "Properties": { "Bucket": { - "Ref": "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC" + "Ref": "SynNodejsPuppeteer62ArtifactsBucket8BF029F1" }, "PolicyDocument": { "Statement": [ @@ -1466,7 +1466,7 @@ "Resource": [ { "Fn::GetAtt": [ - "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", + "SynNodejsPuppeteer62ArtifactsBucket8BF029F1", "Arn" ] }, @@ -1476,7 +1476,7 @@ [ { "Fn::GetAtt": [ - "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", + "SynNodejsPuppeteer62ArtifactsBucket8BF029F1", "Arn" ] }, @@ -1491,7 +1491,7 @@ } } }, - "SynNodejsPuppeteer40ServiceRole800C58BD": { + "SynNodejsPuppeteer62ServiceRole12338448": { "Type": "AWS::IAM::Role", "Properties": { "AssumeRolePolicyDocument": { @@ -1520,7 +1520,7 @@ "Effect": "Allow", "Resource": { "Fn::GetAtt": [ - "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", + "SynNodejsPuppeteer62ArtifactsBucket8BF029F1", "Arn" ] } @@ -1534,7 +1534,7 @@ [ { "Fn::GetAtt": [ - "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", + "SynNodejsPuppeteer62ArtifactsBucket8BF029F1", "Arn" ] }, @@ -1589,7 +1589,7 @@ ] } }, - "SynNodejsPuppeteer406C46FFAF": { + "SynNodejsPuppeteer62E9F06E5D": { "Type": "AWS::Synthetics::Canary", "Properties": { "ArtifactS3Location": { @@ -1598,7 +1598,7 @@ [ "s3://", { - "Ref": "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC" + "Ref": "SynNodejsPuppeteer62ArtifactsBucket8BF029F1" } ] ] @@ -1612,11 +1612,11 @@ }, "ExecutionRoleArn": { "Fn::GetAtt": [ - "SynNodejsPuppeteer40ServiceRole800C58BD", + "SynNodejsPuppeteer62ServiceRole12338448", "Arn" ] }, - "Name": "canaryonesynnodc37fe2", + "Name": "canaryonesynnod02d3c9", "RunConfig": { "EnvironmentVariables": { "URL": { @@ -1645,7 +1645,7 @@ } } }, - "RuntimeVersion": "syn-nodejs-puppeteer-4.0", + "RuntimeVersion": "syn-nodejs-puppeteer-6.2", "Schedule": { "DurationInSeconds": "0", "Expression": "rate(5 minutes)" @@ -1659,7 +1659,7 @@ ] } }, - "SynNodejsPuppeteer40AutoDeleteUnderlyingResourcesCustomResourceD78DC158": { + "SynNodejsPuppeteer62AutoDeleteUnderlyingResourcesCustomResourceCBF85140": { "Type": "Custom::SyntheticsAutoDeleteUnderlyingResources", "Properties": { "ServiceToken": { @@ -1669,7 +1669,7 @@ ] }, "CanaryName": { - "Ref": "SynNodejsPuppeteer406C46FFAF" + "Ref": "SynNodejsPuppeteer62E9F06E5D" } }, "UpdateReplacePolicy": "Delete", @@ -2168,6 +2168,253 @@ }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" + }, + "SynPythonSelenium21ArtifactsBucket889F10E3": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "aws:kms" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "SynPythonSelenium21ArtifactsBucketPolicy8DB00696": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "SynPythonSelenium21ArtifactsBucket889F10E3" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "SynPythonSelenium21ArtifactsBucket889F10E3", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "SynPythonSelenium21ArtifactsBucket889F10E3", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + } + }, + "SynPythonSelenium21ServiceRoleB0530FDC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:ListAllMyBuckets", + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": "s3:GetBucketLocation", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "SynPythonSelenium21ArtifactsBucket889F10E3", + "Arn" + ] + } + }, + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "SynPythonSelenium21ArtifactsBucket889F10E3", + "Arn" + ] + }, + "/*" + ] + ] + } + }, + { + "Action": "cloudwatch:PutMetricData", + "Condition": { + "StringEquals": { + "cloudwatch:namespace": "CloudWatchSynthetics" + } + }, + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws/lambda/cwsyn-*" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "canaryPolicy" + } + ] + } + }, + "SynPythonSelenium2123B5E7A5": { + "Type": "AWS::Synthetics::Canary", + "Properties": { + "ArtifactS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "SynPythonSelenium21ArtifactsBucket889F10E3" + } + ] + ] + }, + "Code": { + "Handler": "canary.handler", + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "d6b51cbdd22d449b9e57c20ef9d0977e1cfbf06806f8008ce376101a2ad432a8.zip" + }, + "ExecutionRoleArn": { + "Fn::GetAtt": [ + "SynPythonSelenium21ServiceRoleB0530FDC", + "Arn" + ] + }, + "Name": "canaryonesynpytb4a3ea", + "RunConfig": { + "EnvironmentVariables": { + "URL": { + "Fn::Join": [ + "", + [ + "https://", + { + "Ref": "ApiGateway11E7F47B" + }, + ".execute-api.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "ApiGatewayDeploymentStageprod1C6D5CD6" + }, + "/" + ] + ] + } + } + }, + "RuntimeVersion": "syn-python-selenium-2.1", + "Schedule": { + "DurationInSeconds": "0", + "Expression": "rate(5 minutes)" + }, + "StartCanaryAfterCreation": true, + "Tags": [ + { + "Key": "aws-cdk:auto-delete-underlying-resources", + "Value": "true" + } + ] + } + }, + "SynPythonSelenium21AutoDeleteUnderlyingResourcesCustomResourceC3BA5B7C": { + "Type": "Custom::SyntheticsAutoDeleteUnderlyingResources", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomSyntheticsAutoDeleteUnderlyingResourcesCustomResourceProviderHandler26776D4E", + "Arn" + ] + }, + "CanaryName": { + "Ref": "SynPythonSelenium2123B5E7A5" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" } }, "Outputs": { @@ -2229,20 +2476,20 @@ "Name": "canary-one:ExportsOutputRefZipAssetA028C65FBA619339" } }, - "ExportsOutputRefSynNodejsPuppeteer3978815E0AC2F26208": { + "ExportsOutputRefSynNodejsPuppeteer406C46FFAF8F9722F2": { "Value": { - "Ref": "SynNodejsPuppeteer3978815E0A" + "Ref": "SynNodejsPuppeteer406C46FFAF" }, "Export": { - "Name": "canary-one:ExportsOutputRefSynNodejsPuppeteer3978815E0AC2F26208" + "Name": "canary-one:ExportsOutputRefSynNodejsPuppeteer406C46FFAF8F9722F2" } }, - "ExportsOutputRefSynNodejsPuppeteer406C46FFAF8F9722F2": { + "ExportsOutputRefSynNodejsPuppeteer62E9F06E5D976FB2CC": { "Value": { - "Ref": "SynNodejsPuppeteer406C46FFAF" + "Ref": "SynNodejsPuppeteer62E9F06E5D" }, "Export": { - "Name": "canary-one:ExportsOutputRefSynNodejsPuppeteer406C46FFAF8F9722F2" + "Name": "canary-one:ExportsOutputRefSynNodejsPuppeteer62E9F06E5D976FB2CC" } }, "ExportsOutputRefSynPythonSelenium13F92D8275979DE724": { @@ -2260,6 +2507,14 @@ "Export": { "Name": "canary-one:ExportsOutputRefSynPythonSelenium205975076709FDEB65" } + }, + "ExportsOutputRefSynPythonSelenium2123B5E7A50E411E2E": { + "Value": { + "Ref": "SynPythonSelenium2123B5E7A5" + }, + "Export": { + "Name": "canary-one:ExportsOutputRefSynPythonSelenium2123B5E7A50E411E2E" + } } }, "Parameters": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/cdk.out index 2313ab5436501..1f0068d32659a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/cdk.out +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/cdk.out @@ -1 +1 @@ -{"version":"34.0.0"} \ No newline at end of file +{"version":"36.0.0"} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/integ.json index 7a158570551e9..300a878f4eb1e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/integ.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/integ.json @@ -1,5 +1,5 @@ { - "version": "34.0.0", + "version": "36.0.0", "testCases": { "IntegCanaryTest/DefaultTest": { "stacks": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/manifest.json index 18f3f2cf5691c..bb6abeb625d6c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/manifest.json @@ -1,5 +1,5 @@ { - "version": "34.0.0", + "version": "36.0.0", "artifacts": { "canary-one.assets": { "type": "cdk:asset-manifest", @@ -18,7 +18,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4831e86071470caad838e9a1e194f9af7a31ea636fb5eaaa7444df685bc174a4.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a084e2781e9799cdbf79f61a1e48791de68f996748cbf9a82d4df5ebe1259373.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -214,64 +214,64 @@ "data": "ZipAssetAutoDeleteUnderlyingResourcesCustomResource0AD8D2D4" } ], - "/canary-one/SynNodejsPuppeteer39/ArtifactsBucket/Resource": [ + "/canary-one/SynNodejsPuppeteer40/ArtifactsBucket/Resource": [ { "type": "aws:cdk:logicalId", - "data": "SynNodejsPuppeteer39ArtifactsBucketC3BBB932" + "data": "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC" } ], - "/canary-one/SynNodejsPuppeteer39/ArtifactsBucket/Policy/Resource": [ + "/canary-one/SynNodejsPuppeteer40/ArtifactsBucket/Policy/Resource": [ { "type": "aws:cdk:logicalId", - "data": "SynNodejsPuppeteer39ArtifactsBucketPolicy502FE6AD" + "data": "SynNodejsPuppeteer40ArtifactsBucketPolicy881746F6" } ], - "/canary-one/SynNodejsPuppeteer39/ServiceRole/Resource": [ + "/canary-one/SynNodejsPuppeteer40/ServiceRole/Resource": [ { "type": "aws:cdk:logicalId", - "data": "SynNodejsPuppeteer39ServiceRole946A595A" + "data": "SynNodejsPuppeteer40ServiceRole800C58BD" } ], - "/canary-one/SynNodejsPuppeteer39/Resource": [ + "/canary-one/SynNodejsPuppeteer40/Resource": [ { "type": "aws:cdk:logicalId", - "data": "SynNodejsPuppeteer3978815E0A" + "data": "SynNodejsPuppeteer406C46FFAF" } ], - "/canary-one/SynNodejsPuppeteer39/AutoDeleteUnderlyingResourcesCustomResource/Default": [ + "/canary-one/SynNodejsPuppeteer40/AutoDeleteUnderlyingResourcesCustomResource/Default": [ { "type": "aws:cdk:logicalId", - "data": "SynNodejsPuppeteer39AutoDeleteUnderlyingResourcesCustomResourceB6D0DB57" + "data": "SynNodejsPuppeteer40AutoDeleteUnderlyingResourcesCustomResourceD78DC158" } ], - "/canary-one/SynNodejsPuppeteer40/ArtifactsBucket/Resource": [ + "/canary-one/SynNodejsPuppeteer62/ArtifactsBucket/Resource": [ { "type": "aws:cdk:logicalId", - "data": "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC" + "data": "SynNodejsPuppeteer62ArtifactsBucket8BF029F1" } ], - "/canary-one/SynNodejsPuppeteer40/ArtifactsBucket/Policy/Resource": [ + "/canary-one/SynNodejsPuppeteer62/ArtifactsBucket/Policy/Resource": [ { "type": "aws:cdk:logicalId", - "data": "SynNodejsPuppeteer40ArtifactsBucketPolicy881746F6" + "data": "SynNodejsPuppeteer62ArtifactsBucketPolicyC32C22F0" } ], - "/canary-one/SynNodejsPuppeteer40/ServiceRole/Resource": [ + "/canary-one/SynNodejsPuppeteer62/ServiceRole/Resource": [ { "type": "aws:cdk:logicalId", - "data": "SynNodejsPuppeteer40ServiceRole800C58BD" + "data": "SynNodejsPuppeteer62ServiceRole12338448" } ], - "/canary-one/SynNodejsPuppeteer40/Resource": [ + "/canary-one/SynNodejsPuppeteer62/Resource": [ { "type": "aws:cdk:logicalId", - "data": "SynNodejsPuppeteer406C46FFAF" + "data": "SynNodejsPuppeteer62E9F06E5D" } ], - "/canary-one/SynNodejsPuppeteer40/AutoDeleteUnderlyingResourcesCustomResource/Default": [ + "/canary-one/SynNodejsPuppeteer62/AutoDeleteUnderlyingResourcesCustomResource/Default": [ { "type": "aws:cdk:logicalId", - "data": "SynNodejsPuppeteer40AutoDeleteUnderlyingResourcesCustomResourceD78DC158" + "data": "SynNodejsPuppeteer62AutoDeleteUnderlyingResourcesCustomResourceCBF85140" } ], "/canary-one/SynPythonSelenium13/ArtifactsBucket/Resource": [ @@ -334,6 +334,36 @@ "data": "SynPythonSelenium20AutoDeleteUnderlyingResourcesCustomResourceB460A8E8" } ], + "/canary-one/SynPythonSelenium21/ArtifactsBucket/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "SynPythonSelenium21ArtifactsBucket889F10E3" + } + ], + "/canary-one/SynPythonSelenium21/ArtifactsBucket/Policy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "SynPythonSelenium21ArtifactsBucketPolicy8DB00696" + } + ], + "/canary-one/SynPythonSelenium21/ServiceRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "SynPythonSelenium21ServiceRoleB0530FDC" + } + ], + "/canary-one/SynPythonSelenium21/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "SynPythonSelenium2123B5E7A5" + } + ], + "/canary-one/SynPythonSelenium21/AutoDeleteUnderlyingResourcesCustomResource/Default": [ + { + "type": "aws:cdk:logicalId", + "data": "SynPythonSelenium21AutoDeleteUnderlyingResourcesCustomResourceC3BA5B7C" + } + ], "/canary-one/Exports/Output{\"Ref\":\"InlineAsset5EAEB9B5\"}": [ { "type": "aws:cdk:logicalId", @@ -358,16 +388,16 @@ "data": "ExportsOutputRefZipAssetA028C65FBA619339" } ], - "/canary-one/Exports/Output{\"Ref\":\"SynNodejsPuppeteer3978815E0A\"}": [ + "/canary-one/Exports/Output{\"Ref\":\"SynNodejsPuppeteer406C46FFAF\"}": [ { "type": "aws:cdk:logicalId", - "data": "ExportsOutputRefSynNodejsPuppeteer3978815E0AC2F26208" + "data": "ExportsOutputRefSynNodejsPuppeteer406C46FFAF8F9722F2" } ], - "/canary-one/Exports/Output{\"Ref\":\"SynNodejsPuppeteer406C46FFAF\"}": [ + "/canary-one/Exports/Output{\"Ref\":\"SynNodejsPuppeteer62E9F06E5D\"}": [ { "type": "aws:cdk:logicalId", - "data": "ExportsOutputRefSynNodejsPuppeteer406C46FFAF8F9722F2" + "data": "ExportsOutputRefSynNodejsPuppeteer62E9F06E5D976FB2CC" } ], "/canary-one/Exports/Output{\"Ref\":\"SynPythonSelenium13F92D8275\"}": [ @@ -382,6 +412,12 @@ "data": "ExportsOutputRefSynPythonSelenium205975076709FDEB65" } ], + "/canary-one/Exports/Output{\"Ref\":\"SynPythonSelenium2123B5E7A5\"}": [ + { + "type": "aws:cdk:logicalId", + "data": "ExportsOutputRefSynPythonSelenium2123B5E7A50E411E2E" + } + ], "/canary-one/BootstrapVersion": [ { "type": "aws:cdk:logicalId", @@ -393,6 +429,51 @@ "type": "aws:cdk:logicalId", "data": "CheckBootstrapVersion" } + ], + "SynNodejsPuppeteer39ArtifactsBucketC3BBB932": [ + { + "type": "aws:cdk:logicalId", + "data": "SynNodejsPuppeteer39ArtifactsBucketC3BBB932", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "SynNodejsPuppeteer39ArtifactsBucketPolicy502FE6AD": [ + { + "type": "aws:cdk:logicalId", + "data": "SynNodejsPuppeteer39ArtifactsBucketPolicy502FE6AD", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "SynNodejsPuppeteer39ServiceRole946A595A": [ + { + "type": "aws:cdk:logicalId", + "data": "SynNodejsPuppeteer39ServiceRole946A595A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "SynNodejsPuppeteer3978815E0A": [ + { + "type": "aws:cdk:logicalId", + "data": "SynNodejsPuppeteer3978815E0A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "SynNodejsPuppeteer39AutoDeleteUnderlyingResourcesCustomResourceB6D0DB57": [ + { + "type": "aws:cdk:logicalId", + "data": "SynNodejsPuppeteer39AutoDeleteUnderlyingResourcesCustomResourceB6D0DB57", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } ] }, "displayName": "canary-one" @@ -414,7 +495,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b75a93bdb6ad64cbbd4249bd5947ad234e8e76203d72e9582876a2708ba43167.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5222f77a218b1c67430bb8086fc0c058075ebfaf5eadf0c2c4ce5a54a1fadf5a.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -611,76 +692,76 @@ "data": "AssertionResultsAwsApiCallSyntheticsgetCanaryRunsaf0432d0aeabb461c9a56a62dba7b6fe" } ], - "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/Default/Default": [ + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/Default/Default": [ { "type": "aws:cdk:logicalId", - "data": "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae" + "data": "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60" } ], - "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/WaitFor/IsCompleteProvider/Invoke": [ + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/IsCompleteProvider/Invoke": [ { "type": "aws:cdk:logicalId", - "data": "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5aeWaitForIsCompleteProviderInvokeEFBEE0D2" + "data": "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForIsCompleteProviderInvoke28F4AB77" } ], - "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/WaitFor/TimeoutProvider/Invoke": [ + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/TimeoutProvider/Invoke": [ { "type": "aws:cdk:logicalId", - "data": "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5aeWaitForTimeoutProviderInvoke0A0F7C7B" + "data": "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForTimeoutProviderInvoke78F920F8" } ], - "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/WaitFor/Role": [ + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/Role": [ { "type": "aws:cdk:logicalId", - "data": "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5aeWaitForRoleF3F1B67B" + "data": "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForRoleACF107E5" } ], - "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/WaitFor/Resource": [ + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/Resource": [ { "type": "aws:cdk:logicalId", - "data": "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5aeWaitFor2AE5B3D5" + "data": "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitFor8805095D" } ], - "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/AssertionResults": [ + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/AssertionResults": [ { "type": "aws:cdk:logicalId", - "data": "AssertionResultsAwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae" + "data": "AssertionResultsAwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60" } ], - "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/Default/Default": [ + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/Default/Default": [ { "type": "aws:cdk:logicalId", - "data": "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60" + "data": "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44" } ], - "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/IsCompleteProvider/Invoke": [ + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/WaitFor/IsCompleteProvider/Invoke": [ { "type": "aws:cdk:logicalId", - "data": "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForIsCompleteProviderInvoke28F4AB77" + "data": "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44WaitForIsCompleteProviderInvoke01399996" } ], - "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/TimeoutProvider/Invoke": [ + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/WaitFor/TimeoutProvider/Invoke": [ { "type": "aws:cdk:logicalId", - "data": "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForTimeoutProviderInvoke78F920F8" + "data": "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44WaitForTimeoutProviderInvokeB4B8A5C9" } ], - "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/Role": [ + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/WaitFor/Role": [ { "type": "aws:cdk:logicalId", - "data": "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitForRoleACF107E5" + "data": "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44WaitForRole1F7DFDD4" } ], - "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/Resource": [ + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/WaitFor/Resource": [ { "type": "aws:cdk:logicalId", - "data": "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60WaitFor8805095D" + "data": "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44WaitFor170ECE5B" } ], - "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/AssertionResults": [ + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/AssertionResults": [ { "type": "aws:cdk:logicalId", - "data": "AssertionResultsAwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60" + "data": "AssertionResultsAwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44" } ], "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse7a1e913bca172f26683b6f1e3a239e2/Default/Default": [ @@ -755,6 +836,42 @@ "data": "AssertionResultsAwsApiCallSyntheticsgetCanaryRunsa8f10ec0b8d5ec0f9b81b350577d8d97" } ], + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/Default/Default": [ + { + "type": "aws:cdk:logicalId", + "data": "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a" + } + ], + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/WaitFor/IsCompleteProvider/Invoke": [ + { + "type": "aws:cdk:logicalId", + "data": "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911aWaitForIsCompleteProviderInvoke1496C9BE" + } + ], + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/WaitFor/TimeoutProvider/Invoke": [ + { + "type": "aws:cdk:logicalId", + "data": "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911aWaitForTimeoutProviderInvoke041F6B2E" + } + ], + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/WaitFor/Role": [ + { + "type": "aws:cdk:logicalId", + "data": "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911aWaitForRoleFED2A75D" + } + ], + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/WaitFor/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911aWaitFor78A3A7F6" + } + ], + "/IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/AssertionResults": [ + { + "type": "aws:cdk:logicalId", + "data": "AssertionResultsAwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a" + } + ], "/IntegCanaryTest/DefaultTest/DeployAssert/BootstrapVersion": [ { "type": "aws:cdk:logicalId", diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/tree.json index e3023c5fabb4a..4529ddbf0c4b0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.js.snapshot/tree.json @@ -155,7 +155,7 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CustomResourceProvider", + "fqn": "aws-cdk-lib.CustomResourceProviderBase", "version": "0.0.0" } }, @@ -539,7 +539,7 @@ } }, "constructInfo": { - "fqn": "aws-cdk-lib.CustomResourceProvider", + "fqn": "aws-cdk-lib.CustomResourceProviderBase", "version": "0.0.0" } }, @@ -1582,17 +1582,17 @@ "version": "0.0.0" } }, - "SynNodejsPuppeteer39": { - "id": "SynNodejsPuppeteer39", - "path": "canary-one/SynNodejsPuppeteer39", + "SynNodejsPuppeteer40": { + "id": "SynNodejsPuppeteer40", + "path": "canary-one/SynNodejsPuppeteer40", "children": { "ArtifactsBucket": { "id": "ArtifactsBucket", - "path": "canary-one/SynNodejsPuppeteer39/ArtifactsBucket", + "path": "canary-one/SynNodejsPuppeteer40/ArtifactsBucket", "children": { "Resource": { "id": "Resource", - "path": "canary-one/SynNodejsPuppeteer39/ArtifactsBucket/Resource", + "path": "canary-one/SynNodejsPuppeteer40/ArtifactsBucket/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::S3::Bucket", "aws:cdk:cloudformation:props": { @@ -1614,16 +1614,16 @@ }, "Policy": { "id": "Policy", - "path": "canary-one/SynNodejsPuppeteer39/ArtifactsBucket/Policy", + "path": "canary-one/SynNodejsPuppeteer40/ArtifactsBucket/Policy", "children": { "Resource": { "id": "Resource", - "path": "canary-one/SynNodejsPuppeteer39/ArtifactsBucket/Policy/Resource", + "path": "canary-one/SynNodejsPuppeteer40/ArtifactsBucket/Policy/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::S3::BucketPolicy", "aws:cdk:cloudformation:props": { "bucket": { - "Ref": "SynNodejsPuppeteer39ArtifactsBucketC3BBB932" + "Ref": "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC" }, "policyDocument": { "Statement": [ @@ -1641,7 +1641,7 @@ "Resource": [ { "Fn::GetAtt": [ - "SynNodejsPuppeteer39ArtifactsBucketC3BBB932", + "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", "Arn" ] }, @@ -1651,7 +1651,7 @@ [ { "Fn::GetAtt": [ - "SynNodejsPuppeteer39ArtifactsBucketC3BBB932", + "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", "Arn" ] }, @@ -1685,11 +1685,11 @@ }, "ServiceRole": { "id": "ServiceRole", - "path": "canary-one/SynNodejsPuppeteer39/ServiceRole", + "path": "canary-one/SynNodejsPuppeteer40/ServiceRole", "children": { "ImportServiceRole": { "id": "ImportServiceRole", - "path": "canary-one/SynNodejsPuppeteer39/ServiceRole/ImportServiceRole", + "path": "canary-one/SynNodejsPuppeteer40/ServiceRole/ImportServiceRole", "constructInfo": { "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" @@ -1697,7 +1697,7 @@ }, "Resource": { "id": "Resource", - "path": "canary-one/SynNodejsPuppeteer39/ServiceRole/Resource", + "path": "canary-one/SynNodejsPuppeteer40/ServiceRole/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::IAM::Role", "aws:cdk:cloudformation:props": { @@ -1728,7 +1728,7 @@ "Effect": "Allow", "Resource": { "Fn::GetAtt": [ - "SynNodejsPuppeteer39ArtifactsBucketC3BBB932", + "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", "Arn" ] } @@ -1742,7 +1742,7 @@ [ { "Fn::GetAtt": [ - "SynNodejsPuppeteer39ArtifactsBucketC3BBB932", + "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", "Arn" ] }, @@ -1809,11 +1809,11 @@ }, "Code": { "id": "Code", - "path": "canary-one/SynNodejsPuppeteer39/Code", + "path": "canary-one/SynNodejsPuppeteer40/Code", "children": { "Stage": { "id": "Stage", - "path": "canary-one/SynNodejsPuppeteer39/Code/Stage", + "path": "canary-one/SynNodejsPuppeteer40/Code/Stage", "constructInfo": { "fqn": "aws-cdk-lib.AssetStaging", "version": "0.0.0" @@ -1821,7 +1821,7 @@ }, "AssetBucket": { "id": "AssetBucket", - "path": "canary-one/SynNodejsPuppeteer39/Code/AssetBucket", + "path": "canary-one/SynNodejsPuppeteer40/Code/AssetBucket", "constructInfo": { "fqn": "aws-cdk-lib.aws_s3.BucketBase", "version": "0.0.0" @@ -1835,7 +1835,7 @@ }, "Resource": { "id": "Resource", - "path": "canary-one/SynNodejsPuppeteer39/Resource", + "path": "canary-one/SynNodejsPuppeteer40/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::Synthetics::Canary", "aws:cdk:cloudformation:props": { @@ -1845,7 +1845,7 @@ [ "s3://", { - "Ref": "SynNodejsPuppeteer39ArtifactsBucketC3BBB932" + "Ref": "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC" } ] ] @@ -1859,11 +1859,11 @@ }, "executionRoleArn": { "Fn::GetAtt": [ - "SynNodejsPuppeteer39ServiceRole946A595A", + "SynNodejsPuppeteer40ServiceRole800C58BD", "Arn" ] }, - "name": "canaryonesynnodec5378", + "name": "canaryonesynnodc37fe2", "runConfig": { "environmentVariables": { "URL": { @@ -1892,7 +1892,7 @@ } } }, - "runtimeVersion": "syn-nodejs-puppeteer-3.9", + "runtimeVersion": "syn-nodejs-puppeteer-4.0", "schedule": { "durationInSeconds": "0", "expression": "rate(5 minutes)" @@ -1913,11 +1913,11 @@ }, "AutoDeleteUnderlyingResourcesCustomResource": { "id": "AutoDeleteUnderlyingResourcesCustomResource", - "path": "canary-one/SynNodejsPuppeteer39/AutoDeleteUnderlyingResourcesCustomResource", + "path": "canary-one/SynNodejsPuppeteer40/AutoDeleteUnderlyingResourcesCustomResource", "children": { "Default": { "id": "Default", - "path": "canary-one/SynNodejsPuppeteer39/AutoDeleteUnderlyingResourcesCustomResource/Default", + "path": "canary-one/SynNodejsPuppeteer40/AutoDeleteUnderlyingResourcesCustomResource/Default", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -1935,17 +1935,17 @@ "version": "0.0.0" } }, - "SynNodejsPuppeteer40": { - "id": "SynNodejsPuppeteer40", - "path": "canary-one/SynNodejsPuppeteer40", + "SynNodejsPuppeteer62": { + "id": "SynNodejsPuppeteer62", + "path": "canary-one/SynNodejsPuppeteer62", "children": { "ArtifactsBucket": { "id": "ArtifactsBucket", - "path": "canary-one/SynNodejsPuppeteer40/ArtifactsBucket", + "path": "canary-one/SynNodejsPuppeteer62/ArtifactsBucket", "children": { "Resource": { "id": "Resource", - "path": "canary-one/SynNodejsPuppeteer40/ArtifactsBucket/Resource", + "path": "canary-one/SynNodejsPuppeteer62/ArtifactsBucket/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::S3::Bucket", "aws:cdk:cloudformation:props": { @@ -1967,16 +1967,16 @@ }, "Policy": { "id": "Policy", - "path": "canary-one/SynNodejsPuppeteer40/ArtifactsBucket/Policy", + "path": "canary-one/SynNodejsPuppeteer62/ArtifactsBucket/Policy", "children": { "Resource": { "id": "Resource", - "path": "canary-one/SynNodejsPuppeteer40/ArtifactsBucket/Policy/Resource", + "path": "canary-one/SynNodejsPuppeteer62/ArtifactsBucket/Policy/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::S3::BucketPolicy", "aws:cdk:cloudformation:props": { "bucket": { - "Ref": "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC" + "Ref": "SynNodejsPuppeteer62ArtifactsBucket8BF029F1" }, "policyDocument": { "Statement": [ @@ -1994,7 +1994,7 @@ "Resource": [ { "Fn::GetAtt": [ - "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", + "SynNodejsPuppeteer62ArtifactsBucket8BF029F1", "Arn" ] }, @@ -2004,7 +2004,7 @@ [ { "Fn::GetAtt": [ - "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", + "SynNodejsPuppeteer62ArtifactsBucket8BF029F1", "Arn" ] }, @@ -2038,11 +2038,11 @@ }, "ServiceRole": { "id": "ServiceRole", - "path": "canary-one/SynNodejsPuppeteer40/ServiceRole", + "path": "canary-one/SynNodejsPuppeteer62/ServiceRole", "children": { "ImportServiceRole": { "id": "ImportServiceRole", - "path": "canary-one/SynNodejsPuppeteer40/ServiceRole/ImportServiceRole", + "path": "canary-one/SynNodejsPuppeteer62/ServiceRole/ImportServiceRole", "constructInfo": { "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" @@ -2050,7 +2050,360 @@ }, "Resource": { "id": "Resource", - "path": "canary-one/SynNodejsPuppeteer40/ServiceRole/Resource", + "path": "canary-one/SynNodejsPuppeteer62/ServiceRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "policies": [ + { + "policyName": "canaryPolicy", + "policyDocument": { + "Statement": [ + { + "Action": "s3:ListAllMyBuckets", + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": "s3:GetBucketLocation", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "SynNodejsPuppeteer62ArtifactsBucket8BF029F1", + "Arn" + ] + } + }, + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "SynNodejsPuppeteer62ArtifactsBucket8BF029F1", + "Arn" + ] + }, + "/*" + ] + ] + } + }, + { + "Action": "cloudwatch:PutMetricData", + "Condition": { + "StringEquals": { + "cloudwatch:namespace": "CloudWatchSynthetics" + } + }, + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws/lambda/cwsyn-*" + ] + ] + } + } + ], + "Version": "2012-10-17" + } + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.CfnRole", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.Role", + "version": "0.0.0" + } + }, + "Code": { + "id": "Code", + "path": "canary-one/SynNodejsPuppeteer62/Code", + "children": { + "Stage": { + "id": "Stage", + "path": "canary-one/SynNodejsPuppeteer62/Code/Stage", + "constructInfo": { + "fqn": "aws-cdk-lib.AssetStaging", + "version": "0.0.0" + } + }, + "AssetBucket": { + "id": "AssetBucket", + "path": "canary-one/SynNodejsPuppeteer62/Code/AssetBucket", + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.BucketBase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3_assets.Asset", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "canary-one/SynNodejsPuppeteer62/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::Synthetics::Canary", + "aws:cdk:cloudformation:props": { + "artifactS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "SynNodejsPuppeteer62ArtifactsBucket8BF029F1" + } + ] + ] + }, + "code": { + "handler": "canary.handler", + "s3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "s3Key": "d6b51cbdd22d449b9e57c20ef9d0977e1cfbf06806f8008ce376101a2ad432a8.zip" + }, + "executionRoleArn": { + "Fn::GetAtt": [ + "SynNodejsPuppeteer62ServiceRole12338448", + "Arn" + ] + }, + "name": "canaryonesynnod02d3c9", + "runConfig": { + "environmentVariables": { + "URL": { + "Fn::Join": [ + "", + [ + "https://", + { + "Ref": "ApiGateway11E7F47B" + }, + ".execute-api.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "ApiGatewayDeploymentStageprod1C6D5CD6" + }, + "/" + ] + ] + } + } + }, + "runtimeVersion": "syn-nodejs-puppeteer-6.2", + "schedule": { + "durationInSeconds": "0", + "expression": "rate(5 minutes)" + }, + "startCanaryAfterCreation": true, + "tags": [ + { + "key": "aws-cdk:auto-delete-underlying-resources", + "value": "true" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_synthetics.CfnCanary", + "version": "0.0.0" + } + }, + "AutoDeleteUnderlyingResourcesCustomResource": { + "id": "AutoDeleteUnderlyingResourcesCustomResource", + "path": "canary-one/SynNodejsPuppeteer62/AutoDeleteUnderlyingResourcesCustomResource", + "children": { + "Default": { + "id": "Default", + "path": "canary-one/SynNodejsPuppeteer62/AutoDeleteUnderlyingResourcesCustomResource/Default", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.CustomResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_synthetics.Canary", + "version": "0.0.0" + } + }, + "SynPythonSelenium13": { + "id": "SynPythonSelenium13", + "path": "canary-one/SynPythonSelenium13", + "children": { + "ArtifactsBucket": { + "id": "ArtifactsBucket", + "path": "canary-one/SynPythonSelenium13/ArtifactsBucket", + "children": { + "Resource": { + "id": "Resource", + "path": "canary-one/SynPythonSelenium13/ArtifactsBucket/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::S3::Bucket", + "aws:cdk:cloudformation:props": { + "bucketEncryption": { + "serverSideEncryptionConfiguration": [ + { + "serverSideEncryptionByDefault": { + "sseAlgorithm": "aws:kms" + } + } + ] + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.CfnBucket", + "version": "0.0.0" + } + }, + "Policy": { + "id": "Policy", + "path": "canary-one/SynPythonSelenium13/ArtifactsBucket/Policy", + "children": { + "Resource": { + "id": "Resource", + "path": "canary-one/SynPythonSelenium13/ArtifactsBucket/Policy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::S3::BucketPolicy", + "aws:cdk:cloudformation:props": { + "bucket": { + "Ref": "SynPythonSelenium13ArtifactsBucket084C41C8" + }, + "policyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "SynPythonSelenium13ArtifactsBucket084C41C8", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "SynPythonSelenium13ArtifactsBucket084C41C8", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.BucketPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.Bucket", + "version": "0.0.0" + } + }, + "ServiceRole": { + "id": "ServiceRole", + "path": "canary-one/SynPythonSelenium13/ServiceRole", + "children": { + "ImportServiceRole": { + "id": "ImportServiceRole", + "path": "canary-one/SynPythonSelenium13/ServiceRole/ImportServiceRole", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "canary-one/SynPythonSelenium13/ServiceRole/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::IAM::Role", "aws:cdk:cloudformation:props": { @@ -2081,7 +2434,7 @@ "Effect": "Allow", "Resource": { "Fn::GetAtt": [ - "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", + "SynPythonSelenium13ArtifactsBucket084C41C8", "Arn" ] } @@ -2095,7 +2448,7 @@ [ { "Fn::GetAtt": [ - "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC", + "SynPythonSelenium13ArtifactsBucket084C41C8", "Arn" ] }, @@ -2162,11 +2515,11 @@ }, "Code": { "id": "Code", - "path": "canary-one/SynNodejsPuppeteer40/Code", + "path": "canary-one/SynPythonSelenium13/Code", "children": { "Stage": { "id": "Stage", - "path": "canary-one/SynNodejsPuppeteer40/Code/Stage", + "path": "canary-one/SynPythonSelenium13/Code/Stage", "constructInfo": { "fqn": "aws-cdk-lib.AssetStaging", "version": "0.0.0" @@ -2174,7 +2527,7 @@ }, "AssetBucket": { "id": "AssetBucket", - "path": "canary-one/SynNodejsPuppeteer40/Code/AssetBucket", + "path": "canary-one/SynPythonSelenium13/Code/AssetBucket", "constructInfo": { "fqn": "aws-cdk-lib.aws_s3.BucketBase", "version": "0.0.0" @@ -2188,7 +2541,7 @@ }, "Resource": { "id": "Resource", - "path": "canary-one/SynNodejsPuppeteer40/Resource", + "path": "canary-one/SynPythonSelenium13/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::Synthetics::Canary", "aws:cdk:cloudformation:props": { @@ -2198,7 +2551,7 @@ [ "s3://", { - "Ref": "SynNodejsPuppeteer40ArtifactsBucket30A9D9DC" + "Ref": "SynPythonSelenium13ArtifactsBucket084C41C8" } ] ] @@ -2212,11 +2565,11 @@ }, "executionRoleArn": { "Fn::GetAtt": [ - "SynNodejsPuppeteer40ServiceRole800C58BD", + "SynPythonSelenium13ServiceRoleD35450CA", "Arn" ] }, - "name": "canaryonesynnodc37fe2", + "name": "canaryonesynpyt659e03", "runConfig": { "environmentVariables": { "URL": { @@ -2245,7 +2598,7 @@ } } }, - "runtimeVersion": "syn-nodejs-puppeteer-4.0", + "runtimeVersion": "syn-python-selenium-1.3", "schedule": { "durationInSeconds": "0", "expression": "rate(5 minutes)" @@ -2266,11 +2619,11 @@ }, "AutoDeleteUnderlyingResourcesCustomResource": { "id": "AutoDeleteUnderlyingResourcesCustomResource", - "path": "canary-one/SynNodejsPuppeteer40/AutoDeleteUnderlyingResourcesCustomResource", + "path": "canary-one/SynPythonSelenium13/AutoDeleteUnderlyingResourcesCustomResource", "children": { "Default": { "id": "Default", - "path": "canary-one/SynNodejsPuppeteer40/AutoDeleteUnderlyingResourcesCustomResource/Default", + "path": "canary-one/SynPythonSelenium13/AutoDeleteUnderlyingResourcesCustomResource/Default", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -2288,17 +2641,17 @@ "version": "0.0.0" } }, - "SynPythonSelenium13": { - "id": "SynPythonSelenium13", - "path": "canary-one/SynPythonSelenium13", + "SynPythonSelenium20": { + "id": "SynPythonSelenium20", + "path": "canary-one/SynPythonSelenium20", "children": { "ArtifactsBucket": { "id": "ArtifactsBucket", - "path": "canary-one/SynPythonSelenium13/ArtifactsBucket", + "path": "canary-one/SynPythonSelenium20/ArtifactsBucket", "children": { "Resource": { "id": "Resource", - "path": "canary-one/SynPythonSelenium13/ArtifactsBucket/Resource", + "path": "canary-one/SynPythonSelenium20/ArtifactsBucket/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::S3::Bucket", "aws:cdk:cloudformation:props": { @@ -2320,16 +2673,16 @@ }, "Policy": { "id": "Policy", - "path": "canary-one/SynPythonSelenium13/ArtifactsBucket/Policy", + "path": "canary-one/SynPythonSelenium20/ArtifactsBucket/Policy", "children": { "Resource": { "id": "Resource", - "path": "canary-one/SynPythonSelenium13/ArtifactsBucket/Policy/Resource", + "path": "canary-one/SynPythonSelenium20/ArtifactsBucket/Policy/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::S3::BucketPolicy", "aws:cdk:cloudformation:props": { "bucket": { - "Ref": "SynPythonSelenium13ArtifactsBucket084C41C8" + "Ref": "SynPythonSelenium20ArtifactsBucketE94A12F1" }, "policyDocument": { "Statement": [ @@ -2347,7 +2700,7 @@ "Resource": [ { "Fn::GetAtt": [ - "SynPythonSelenium13ArtifactsBucket084C41C8", + "SynPythonSelenium20ArtifactsBucketE94A12F1", "Arn" ] }, @@ -2357,7 +2710,7 @@ [ { "Fn::GetAtt": [ - "SynPythonSelenium13ArtifactsBucket084C41C8", + "SynPythonSelenium20ArtifactsBucketE94A12F1", "Arn" ] }, @@ -2391,11 +2744,11 @@ }, "ServiceRole": { "id": "ServiceRole", - "path": "canary-one/SynPythonSelenium13/ServiceRole", + "path": "canary-one/SynPythonSelenium20/ServiceRole", "children": { "ImportServiceRole": { "id": "ImportServiceRole", - "path": "canary-one/SynPythonSelenium13/ServiceRole/ImportServiceRole", + "path": "canary-one/SynPythonSelenium20/ServiceRole/ImportServiceRole", "constructInfo": { "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" @@ -2403,7 +2756,7 @@ }, "Resource": { "id": "Resource", - "path": "canary-one/SynPythonSelenium13/ServiceRole/Resource", + "path": "canary-one/SynPythonSelenium20/ServiceRole/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::IAM::Role", "aws:cdk:cloudformation:props": { @@ -2434,7 +2787,7 @@ "Effect": "Allow", "Resource": { "Fn::GetAtt": [ - "SynPythonSelenium13ArtifactsBucket084C41C8", + "SynPythonSelenium20ArtifactsBucketE94A12F1", "Arn" ] } @@ -2448,7 +2801,7 @@ [ { "Fn::GetAtt": [ - "SynPythonSelenium13ArtifactsBucket084C41C8", + "SynPythonSelenium20ArtifactsBucketE94A12F1", "Arn" ] }, @@ -2515,11 +2868,11 @@ }, "Code": { "id": "Code", - "path": "canary-one/SynPythonSelenium13/Code", + "path": "canary-one/SynPythonSelenium20/Code", "children": { "Stage": { "id": "Stage", - "path": "canary-one/SynPythonSelenium13/Code/Stage", + "path": "canary-one/SynPythonSelenium20/Code/Stage", "constructInfo": { "fqn": "aws-cdk-lib.AssetStaging", "version": "0.0.0" @@ -2527,7 +2880,7 @@ }, "AssetBucket": { "id": "AssetBucket", - "path": "canary-one/SynPythonSelenium13/Code/AssetBucket", + "path": "canary-one/SynPythonSelenium20/Code/AssetBucket", "constructInfo": { "fqn": "aws-cdk-lib.aws_s3.BucketBase", "version": "0.0.0" @@ -2541,7 +2894,7 @@ }, "Resource": { "id": "Resource", - "path": "canary-one/SynPythonSelenium13/Resource", + "path": "canary-one/SynPythonSelenium20/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::Synthetics::Canary", "aws:cdk:cloudformation:props": { @@ -2551,7 +2904,7 @@ [ "s3://", { - "Ref": "SynPythonSelenium13ArtifactsBucket084C41C8" + "Ref": "SynPythonSelenium20ArtifactsBucketE94A12F1" } ] ] @@ -2565,11 +2918,11 @@ }, "executionRoleArn": { "Fn::GetAtt": [ - "SynPythonSelenium13ServiceRoleD35450CA", + "SynPythonSelenium20ServiceRoleD31F079A", "Arn" ] }, - "name": "canaryonesynpyt659e03", + "name": "canaryonesynpyt0a0421", "runConfig": { "environmentVariables": { "URL": { @@ -2598,7 +2951,7 @@ } } }, - "runtimeVersion": "syn-python-selenium-1.3", + "runtimeVersion": "syn-python-selenium-2.0", "schedule": { "durationInSeconds": "0", "expression": "rate(5 minutes)" @@ -2619,11 +2972,11 @@ }, "AutoDeleteUnderlyingResourcesCustomResource": { "id": "AutoDeleteUnderlyingResourcesCustomResource", - "path": "canary-one/SynPythonSelenium13/AutoDeleteUnderlyingResourcesCustomResource", + "path": "canary-one/SynPythonSelenium20/AutoDeleteUnderlyingResourcesCustomResource", "children": { "Default": { "id": "Default", - "path": "canary-one/SynPythonSelenium13/AutoDeleteUnderlyingResourcesCustomResource/Default", + "path": "canary-one/SynPythonSelenium20/AutoDeleteUnderlyingResourcesCustomResource/Default", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -2641,17 +2994,17 @@ "version": "0.0.0" } }, - "SynPythonSelenium20": { - "id": "SynPythonSelenium20", - "path": "canary-one/SynPythonSelenium20", + "SynPythonSelenium21": { + "id": "SynPythonSelenium21", + "path": "canary-one/SynPythonSelenium21", "children": { "ArtifactsBucket": { "id": "ArtifactsBucket", - "path": "canary-one/SynPythonSelenium20/ArtifactsBucket", + "path": "canary-one/SynPythonSelenium21/ArtifactsBucket", "children": { "Resource": { "id": "Resource", - "path": "canary-one/SynPythonSelenium20/ArtifactsBucket/Resource", + "path": "canary-one/SynPythonSelenium21/ArtifactsBucket/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::S3::Bucket", "aws:cdk:cloudformation:props": { @@ -2673,16 +3026,16 @@ }, "Policy": { "id": "Policy", - "path": "canary-one/SynPythonSelenium20/ArtifactsBucket/Policy", + "path": "canary-one/SynPythonSelenium21/ArtifactsBucket/Policy", "children": { "Resource": { "id": "Resource", - "path": "canary-one/SynPythonSelenium20/ArtifactsBucket/Policy/Resource", + "path": "canary-one/SynPythonSelenium21/ArtifactsBucket/Policy/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::S3::BucketPolicy", "aws:cdk:cloudformation:props": { "bucket": { - "Ref": "SynPythonSelenium20ArtifactsBucketE94A12F1" + "Ref": "SynPythonSelenium21ArtifactsBucket889F10E3" }, "policyDocument": { "Statement": [ @@ -2700,7 +3053,7 @@ "Resource": [ { "Fn::GetAtt": [ - "SynPythonSelenium20ArtifactsBucketE94A12F1", + "SynPythonSelenium21ArtifactsBucket889F10E3", "Arn" ] }, @@ -2710,7 +3063,7 @@ [ { "Fn::GetAtt": [ - "SynPythonSelenium20ArtifactsBucketE94A12F1", + "SynPythonSelenium21ArtifactsBucket889F10E3", "Arn" ] }, @@ -2744,11 +3097,11 @@ }, "ServiceRole": { "id": "ServiceRole", - "path": "canary-one/SynPythonSelenium20/ServiceRole", + "path": "canary-one/SynPythonSelenium21/ServiceRole", "children": { "ImportServiceRole": { "id": "ImportServiceRole", - "path": "canary-one/SynPythonSelenium20/ServiceRole/ImportServiceRole", + "path": "canary-one/SynPythonSelenium21/ServiceRole/ImportServiceRole", "constructInfo": { "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" @@ -2756,7 +3109,7 @@ }, "Resource": { "id": "Resource", - "path": "canary-one/SynPythonSelenium20/ServiceRole/Resource", + "path": "canary-one/SynPythonSelenium21/ServiceRole/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::IAM::Role", "aws:cdk:cloudformation:props": { @@ -2787,7 +3140,7 @@ "Effect": "Allow", "Resource": { "Fn::GetAtt": [ - "SynPythonSelenium20ArtifactsBucketE94A12F1", + "SynPythonSelenium21ArtifactsBucket889F10E3", "Arn" ] } @@ -2801,7 +3154,7 @@ [ { "Fn::GetAtt": [ - "SynPythonSelenium20ArtifactsBucketE94A12F1", + "SynPythonSelenium21ArtifactsBucket889F10E3", "Arn" ] }, @@ -2868,11 +3221,11 @@ }, "Code": { "id": "Code", - "path": "canary-one/SynPythonSelenium20/Code", + "path": "canary-one/SynPythonSelenium21/Code", "children": { "Stage": { "id": "Stage", - "path": "canary-one/SynPythonSelenium20/Code/Stage", + "path": "canary-one/SynPythonSelenium21/Code/Stage", "constructInfo": { "fqn": "aws-cdk-lib.AssetStaging", "version": "0.0.0" @@ -2880,7 +3233,7 @@ }, "AssetBucket": { "id": "AssetBucket", - "path": "canary-one/SynPythonSelenium20/Code/AssetBucket", + "path": "canary-one/SynPythonSelenium21/Code/AssetBucket", "constructInfo": { "fqn": "aws-cdk-lib.aws_s3.BucketBase", "version": "0.0.0" @@ -2894,7 +3247,7 @@ }, "Resource": { "id": "Resource", - "path": "canary-one/SynPythonSelenium20/Resource", + "path": "canary-one/SynPythonSelenium21/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::Synthetics::Canary", "aws:cdk:cloudformation:props": { @@ -2904,7 +3257,7 @@ [ "s3://", { - "Ref": "SynPythonSelenium20ArtifactsBucketE94A12F1" + "Ref": "SynPythonSelenium21ArtifactsBucket889F10E3" } ] ] @@ -2918,11 +3271,11 @@ }, "executionRoleArn": { "Fn::GetAtt": [ - "SynPythonSelenium20ServiceRoleD31F079A", + "SynPythonSelenium21ServiceRoleB0530FDC", "Arn" ] }, - "name": "canaryonesynpyt0a0421", + "name": "canaryonesynpytb4a3ea", "runConfig": { "environmentVariables": { "URL": { @@ -2951,7 +3304,7 @@ } } }, - "runtimeVersion": "syn-python-selenium-2.0", + "runtimeVersion": "syn-python-selenium-2.1", "schedule": { "durationInSeconds": "0", "expression": "rate(5 minutes)" @@ -2972,11 +3325,11 @@ }, "AutoDeleteUnderlyingResourcesCustomResource": { "id": "AutoDeleteUnderlyingResourcesCustomResource", - "path": "canary-one/SynPythonSelenium20/AutoDeleteUnderlyingResourcesCustomResource", + "path": "canary-one/SynPythonSelenium21/AutoDeleteUnderlyingResourcesCustomResource", "children": { "Default": { "id": "Default", - "path": "canary-one/SynPythonSelenium20/AutoDeleteUnderlyingResourcesCustomResource/Default", + "path": "canary-one/SynPythonSelenium21/AutoDeleteUnderlyingResourcesCustomResource/Default", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -3030,17 +3383,17 @@ "version": "0.0.0" } }, - "Output{\"Ref\":\"SynNodejsPuppeteer3978815E0A\"}": { - "id": "Output{\"Ref\":\"SynNodejsPuppeteer3978815E0A\"}", - "path": "canary-one/Exports/Output{\"Ref\":\"SynNodejsPuppeteer3978815E0A\"}", + "Output{\"Ref\":\"SynNodejsPuppeteer406C46FFAF\"}": { + "id": "Output{\"Ref\":\"SynNodejsPuppeteer406C46FFAF\"}", + "path": "canary-one/Exports/Output{\"Ref\":\"SynNodejsPuppeteer406C46FFAF\"}", "constructInfo": { "fqn": "aws-cdk-lib.CfnOutput", "version": "0.0.0" } }, - "Output{\"Ref\":\"SynNodejsPuppeteer406C46FFAF\"}": { - "id": "Output{\"Ref\":\"SynNodejsPuppeteer406C46FFAF\"}", - "path": "canary-one/Exports/Output{\"Ref\":\"SynNodejsPuppeteer406C46FFAF\"}", + "Output{\"Ref\":\"SynNodejsPuppeteer62E9F06E5D\"}": { + "id": "Output{\"Ref\":\"SynNodejsPuppeteer62E9F06E5D\"}", + "path": "canary-one/Exports/Output{\"Ref\":\"SynNodejsPuppeteer62E9F06E5D\"}", "constructInfo": { "fqn": "aws-cdk-lib.CfnOutput", "version": "0.0.0" @@ -3061,11 +3414,19 @@ "fqn": "aws-cdk-lib.CfnOutput", "version": "0.0.0" } + }, + "Output{\"Ref\":\"SynPythonSelenium2123B5E7A5\"}": { + "id": "Output{\"Ref\":\"SynPythonSelenium2123B5E7A5\"}", + "path": "canary-one/Exports/Output{\"Ref\":\"SynPythonSelenium2123B5E7A5\"}", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnOutput", + "version": "0.0.0" + } } }, "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "BootstrapVersion": { @@ -3103,7 +3464,7 @@ "path": "IntegCanaryTest/DefaultTest/Default", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "DeployAssert": { @@ -3123,7 +3484,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns10023df2885f280da73de72d07b27d46/SdkProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } } }, @@ -3163,7 +3524,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns10023df2885f280da73de72d07b27d46/WaitFor/IsCompleteProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { @@ -3189,7 +3550,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns10023df2885f280da73de72d07b27d46/WaitFor/TimeoutProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { @@ -3273,7 +3634,7 @@ }, "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "SingletonFunction76b3e830a873425f8453eddd85c86925": { @@ -3307,7 +3668,7 @@ }, "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "SingletonFunction5c1898e096fb4e3e95d5f6c67f3ce41a": { @@ -3341,7 +3702,7 @@ }, "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "AwsApiCallSyntheticsgetCanaryRuns588dd7080086c213b18ceae14d834792": { @@ -3357,7 +3718,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns588dd7080086c213b18ceae14d834792/SdkProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } } }, @@ -3397,7 +3758,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns588dd7080086c213b18ceae14d834792/WaitFor/IsCompleteProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { @@ -3423,7 +3784,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns588dd7080086c213b18ceae14d834792/WaitFor/TimeoutProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { @@ -3489,7 +3850,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsfdf70d7c918d67340f0ac4c6d270caa3/SdkProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } } }, @@ -3529,7 +3890,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsfdf70d7c918d67340f0ac4c6d270caa3/WaitFor/IsCompleteProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { @@ -3555,7 +3916,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsfdf70d7c918d67340f0ac4c6d270caa3/WaitFor/TimeoutProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { @@ -3621,7 +3982,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsaf0432d0aeabb461c9a56a62dba7b6fe/SdkProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } } }, @@ -3661,7 +4022,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsaf0432d0aeabb461c9a56a62dba7b6fe/WaitFor/IsCompleteProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { @@ -3687,7 +4048,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsaf0432d0aeabb461c9a56a62dba7b6fe/WaitFor/TimeoutProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { @@ -3740,20 +4101,20 @@ "version": "0.0.0" } }, - "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae": { - "id": "AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae", + "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60": { + "id": "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60", "children": { "SdkProvider": { "id": "SdkProvider", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/SdkProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/SdkProvider", "children": { "AssertionsProvider": { "id": "AssertionsProvider", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/SdkProvider/AssertionsProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/SdkProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } } }, @@ -3764,11 +4125,11 @@ }, "Default": { "id": "Default", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/Default", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/Default", "children": { "Default": { "id": "Default", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/Default/Default", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/Default/Default", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -3782,23 +4143,23 @@ }, "WaitFor": { "id": "WaitFor", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/WaitFor", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor", "children": { "IsCompleteProvider": { "id": "IsCompleteProvider", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/WaitFor/IsCompleteProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/IsCompleteProvider", "children": { "AssertionsProvider": { "id": "AssertionsProvider", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/WaitFor/IsCompleteProvider/AssertionsProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/IsCompleteProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { "id": "Invoke", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/WaitFor/IsCompleteProvider/Invoke", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/IsCompleteProvider/Invoke", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -3812,19 +4173,19 @@ }, "TimeoutProvider": { "id": "TimeoutProvider", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/WaitFor/TimeoutProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/TimeoutProvider", "children": { "AssertionsProvider": { "id": "AssertionsProvider", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/WaitFor/TimeoutProvider/AssertionsProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/TimeoutProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { "id": "Invoke", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/WaitFor/TimeoutProvider/Invoke", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/TimeoutProvider/Invoke", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -3838,7 +4199,7 @@ }, "Role": { "id": "Role", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/WaitFor/Role", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/Role", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -3846,7 +4207,7 @@ }, "Resource": { "id": "Resource", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/WaitFor/Resource", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/Resource", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -3860,7 +4221,7 @@ }, "AssertionResults": { "id": "AssertionResults", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns2cca2de7ae72f8b5fe89f0c7e484d5ae/AssertionResults", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/AssertionResults", "constructInfo": { "fqn": "aws-cdk-lib.CfnOutput", "version": "0.0.0" @@ -3872,20 +4233,20 @@ "version": "0.0.0" } }, - "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60": { - "id": "AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60", + "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44": { + "id": "AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44", "children": { "SdkProvider": { "id": "SdkProvider", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/SdkProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/SdkProvider", "children": { "AssertionsProvider": { "id": "AssertionsProvider", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/SdkProvider/AssertionsProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/SdkProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } } }, @@ -3896,11 +4257,11 @@ }, "Default": { "id": "Default", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/Default", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/Default", "children": { "Default": { "id": "Default", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/Default/Default", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/Default/Default", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -3914,23 +4275,23 @@ }, "WaitFor": { "id": "WaitFor", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/WaitFor", "children": { "IsCompleteProvider": { "id": "IsCompleteProvider", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/IsCompleteProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/WaitFor/IsCompleteProvider", "children": { "AssertionsProvider": { "id": "AssertionsProvider", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/IsCompleteProvider/AssertionsProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/WaitFor/IsCompleteProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { "id": "Invoke", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/IsCompleteProvider/Invoke", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/WaitFor/IsCompleteProvider/Invoke", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -3944,19 +4305,19 @@ }, "TimeoutProvider": { "id": "TimeoutProvider", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/TimeoutProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/WaitFor/TimeoutProvider", "children": { "AssertionsProvider": { "id": "AssertionsProvider", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/TimeoutProvider/AssertionsProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/WaitFor/TimeoutProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { "id": "Invoke", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/TimeoutProvider/Invoke", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/WaitFor/TimeoutProvider/Invoke", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -3970,7 +4331,7 @@ }, "Role": { "id": "Role", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/Role", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/WaitFor/Role", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -3978,7 +4339,7 @@ }, "Resource": { "id": "Resource", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/WaitFor/Resource", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/WaitFor/Resource", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -3992,7 +4353,7 @@ }, "AssertionResults": { "id": "AssertionResults", - "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse77bc009769f8becf2bba8ec443d0a60/AssertionResults", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRuns072a1d4866ac44cd80d65b9fb7140f44/AssertionResults", "constructInfo": { "fqn": "aws-cdk-lib.CfnOutput", "version": "0.0.0" @@ -4017,7 +4378,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse7a1e913bca172f26683b6f1e3a239e2/SdkProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } } }, @@ -4057,7 +4418,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse7a1e913bca172f26683b6f1e3a239e2/WaitFor/IsCompleteProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { @@ -4083,7 +4444,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunse7a1e913bca172f26683b6f1e3a239e2/WaitFor/TimeoutProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { @@ -4149,7 +4510,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsa8f10ec0b8d5ec0f9b81b350577d8d97/SdkProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } } }, @@ -4189,7 +4550,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsa8f10ec0b8d5ec0f9b81b350577d8d97/WaitFor/IsCompleteProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { @@ -4215,7 +4576,7 @@ "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsa8f10ec0b8d5ec0f9b81b350577d8d97/WaitFor/TimeoutProvider/AssertionsProvider", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Invoke": { @@ -4268,6 +4629,138 @@ "version": "0.0.0" } }, + "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a": { + "id": "AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a", + "children": { + "SdkProvider": { + "id": "SdkProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/SdkProvider", + "children": { + "AssertionsProvider": { + "id": "AssertionsProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/SdkProvider/AssertionsProvider", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.AssertionsProvider", + "version": "0.0.0" + } + }, + "Default": { + "id": "Default", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/Default", + "children": { + "Default": { + "id": "Default", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/Default/Default", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.CustomResource", + "version": "0.0.0" + } + }, + "WaitFor": { + "id": "WaitFor", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/WaitFor", + "children": { + "IsCompleteProvider": { + "id": "IsCompleteProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/WaitFor/IsCompleteProvider", + "children": { + "AssertionsProvider": { + "id": "AssertionsProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/WaitFor/IsCompleteProvider/AssertionsProvider", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Invoke": { + "id": "Invoke", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/WaitFor/IsCompleteProvider/Invoke", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.AssertionsProvider", + "version": "0.0.0" + } + }, + "TimeoutProvider": { + "id": "TimeoutProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/WaitFor/TimeoutProvider", + "children": { + "AssertionsProvider": { + "id": "AssertionsProvider", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/WaitFor/TimeoutProvider/AssertionsProvider", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Invoke": { + "id": "Invoke", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/WaitFor/TimeoutProvider/Invoke", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.AssertionsProvider", + "version": "0.0.0" + } + }, + "Role": { + "id": "Role", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/WaitFor/Role", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/WaitFor/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.WaiterStateMachine", + "version": "0.0.0" + } + }, + "AssertionResults": { + "id": "AssertionResults", + "path": "IntegCanaryTest/DefaultTest/DeployAssert/AwsApiCallSyntheticsgetCanaryRunsf99e1fdf6a0501dc2db966a65404911a/AssertionResults", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnOutput", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.AwsApiCall", + "version": "0.0.0" + } + }, "BootstrapVersion": { "id": "BootstrapVersion", "path": "IntegCanaryTest/DefaultTest/DeployAssert/BootstrapVersion", @@ -4307,7 +4800,7 @@ "path": "Tree", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } } }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.ts index 6f86193fcbf57..74f40b0e0540f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary.ts @@ -96,10 +96,11 @@ const createCanaryByRuntimes = (runtime: Runtime) => cleanup: Cleanup.LAMBDA, }); -const puppeteer39 = createCanaryByRuntimes(Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_9); const puppeteer40 = createCanaryByRuntimes(Runtime.SYNTHETICS_NODEJS_PUPPETEER_4_0); +const puppeteer62 = createCanaryByRuntimes(Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2); const selenium13 = createCanaryByRuntimes(Runtime.SYNTHETICS_PYTHON_SELENIUM_1_3); const selenium20 = createCanaryByRuntimes(Runtime.SYNTHETICS_PYTHON_SELENIUM_2_0); +const selenium21 = createCanaryByRuntimes(Runtime.SYNTHETICS_PYTHON_SELENIUM_2_1); const test = new IntegTest(app, 'IntegCanaryTest', { testCases: [stack], @@ -111,10 +112,11 @@ const test = new IntegTest(app, 'IntegCanaryTest', { directoryAsset, folderAsset, zipAsset, - puppeteer39, puppeteer40, + puppeteer62, selenium13, selenium20, + selenium21, ].forEach((canary) => test.assertions .awsApiCall('Synthetics', 'getCanaryRuns', { Name: canary.canaryName, diff --git a/packages/aws-cdk-lib/aws-synthetics/README.md b/packages/aws-cdk-lib/aws-synthetics/README.md index c5369eeee4b14..c4ec669708416 100644 --- a/packages/aws-cdk-lib/aws-synthetics/README.md +++ b/packages/aws-cdk-lib/aws-synthetics/README.md @@ -20,7 +20,7 @@ const canary = new synthetics.Canary(this, 'MyCanary', { code: synthetics.Code.fromAsset(path.join(__dirname, 'canary')), handler: 'index.handler', }), - runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_0, + runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2, environmentVariables: { stage: 'prod', }, @@ -110,7 +110,7 @@ const canary = new synthetics.Canary(this, 'Canary', { code: synthetics.Code.fromInline('/* Synthetics handler code'), }), cleanup: synthetics.Cleanup.LAMBDA, - runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_0, + runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2, }); ``` @@ -136,7 +136,7 @@ new synthetics.Canary(this, 'Inline Canary', { code: synthetics.Code.fromInline('/* Synthetics handler code */'), handler: 'index.handler', // must be 'index.handler' }), - runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_0, + runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2, }); // To supply the code from your local filesystem: @@ -145,7 +145,7 @@ new synthetics.Canary(this, 'Asset Canary', { code: synthetics.Code.fromAsset(path.join(__dirname, 'canary')), handler: 'index.handler', // must end with '.handler' }), - runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_0, + runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2, }); // To supply the code from a S3 bucket: @@ -156,7 +156,7 @@ new synthetics.Canary(this, 'Bucket Canary', { code: synthetics.Code.fromBucket(bucket, 'canary.zip'), handler: 'index.handler', // must end with '.handler' }), - runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_0, + runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2, }); ``` @@ -195,7 +195,7 @@ new synthetics.Canary(this, 'Vpc Canary', { code: synthetics.Code.fromAsset(path.join(__dirname, 'canary')), handler: 'index.handler', }), - runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_0, + runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2, vpc, }); ``` @@ -242,7 +242,7 @@ const canary = new synthetics.Canary(this, 'MyCanary', { code: synthetics.Code.fromAsset(path.join(__dirname, 'canary')), handler: 'index.handler', }), - runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_0, + runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_6_2, artifactsBucketLifecycleRules: [{ expiration: Duration.days(30), }], diff --git a/packages/aws-cdk-lib/aws-synthetics/lib/runtime.ts b/packages/aws-cdk-lib/aws-synthetics/lib/runtime.ts index 38b3cf935e72c..b2b5207e6235b 100644 --- a/packages/aws-cdk-lib/aws-synthetics/lib/runtime.ts +++ b/packages/aws-cdk-lib/aws-synthetics/lib/runtime.ts @@ -29,6 +29,7 @@ export class Runtime { * - Chromium version 92.0.4512 * * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.5 + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS Puppeteer runtime. */ public static readonly SYNTHETICS_NODEJS_PUPPETEER_3_5 = new Runtime('syn-nodejs-puppeteer-3.5', RuntimeFamily.NODEJS); @@ -39,6 +40,7 @@ export class Runtime { * - Chromium version 92.0.4512 * * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.6 + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS Puppeteer runtime. */ public static readonly SYNTHETICS_NODEJS_PUPPETEER_3_6 = new Runtime('syn-nodejs-puppeteer-3.6', RuntimeFamily.NODEJS); @@ -53,6 +55,7 @@ export class Runtime { * - **Lambda layer size reduced**: The size of the Lambda layer used for canaries is reduced by 34%. * * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.7 + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS Puppeteer runtime. */ public static readonly SYNTHETICS_NODEJS_PUPPETEER_3_7 = new Runtime('syn-nodejs-puppeteer-3.7', RuntimeFamily.NODEJS); @@ -66,6 +69,7 @@ export class Runtime { * - **Profile cleanup**: Chromium profiles are now cleaned up after each canary run. * * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.8 + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS Puppeteer runtime. */ public static readonly SYNTHETICS_NODEJS_PUPPETEER_3_8 = new Runtime('syn-nodejs-puppeteer-3.8', RuntimeFamily.NODEJS); @@ -80,6 +84,7 @@ export class Runtime { * - **Dependency upgrades**: Upgrades some third-party dependency packages. * * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.9 + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS Puppeteer runtime. */ public static readonly SYNTHETICS_NODEJS_PUPPETEER_3_9 = new Runtime('syn-nodejs-puppeteer-3.9', RuntimeFamily.NODEJS); @@ -122,6 +127,20 @@ export class Runtime { */ public static readonly SYNTHETICS_NODEJS_PUPPETEER_5_1 = new Runtime('syn-nodejs-puppeteer-5.1', RuntimeFamily.NODEJS); + /** + * `syn-nodejs-puppeteer-5.2` includes the following: + * - Lambda runtime Node.js 16.x + * - Puppeteer-core version 19.7.0 + * - Chromium version 111.0.5563.146 + * + * New Features: + * - **Updated versions of the bundled libraries in Chromium** + * - **Bug fixes** + * + * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-5.2 + */ + public static readonly SYNTHETICS_NODEJS_PUPPETEER_5_2 = new Runtime('syn-nodejs-puppeteer-5.2', RuntimeFamily.NODEJS); + /** * `syn-nodejs-puppeteer-6.0` includes the following: * - Lambda runtime Node.js 18.x @@ -137,6 +156,36 @@ export class Runtime { */ public static readonly SYNTHETICS_NODEJS_PUPPETEER_6_0 = new Runtime('syn-nodejs-puppeteer-6.0', RuntimeFamily.NODEJS); + /** + * `syn-nodejs-puppeteer-6.1` includes the following: + * - Lambda runtime Node.js 18.x + * - Puppeteer-core version 19.7.0 + * - Chromium version 111.0.5563.146 + * + * New Features: + * - **Stability improvements**: Added auto-retry logic for handling intermittent Puppeteer launch errors. + * - **Dependency upgrades**: Upgrades for some third-party dependency packages. + * - **Canaries without Amazon S3 permissions**: Bug fixes, such that canaries that don't have any Amazon S3 permissions can still run. These canaries with no Amazon S3 permissions won't be able to upload screenshots or other artifacts to Amazon S3. For more information about permissions for canaries, see Required roles and permissions for canaries. + * + * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-6.1 + */ + public static readonly SYNTHETICS_NODEJS_PUPPETEER_6_1 = new Runtime('syn-nodejs-puppeteer-6.1', RuntimeFamily.NODEJS); + + /** + * `syn-nodejs-puppeteer-6.2` includes the following: + * - Lambda runtime Node.js 18.x + * - Puppeteer-core version 19.7.0 + * - Chromium version 111.0.5563.146 + * + * New Features: + * - **Updated versions of the bundled libraries in Chromium** + * - **Ephemeral storage monitoring**: This runtime adds ephemeral storage monitoring in customer accounts. + * - **Bug fixes** + * + * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-6.1 + */ + public static readonly SYNTHETICS_NODEJS_PUPPETEER_6_2 = new Runtime('syn-nodejs-puppeteer-6.2', RuntimeFamily.NODEJS); + /** * `syn-python-selenium-1.0` includes the following: * - Lambda runtime Python 3.8 @@ -206,6 +255,19 @@ export class Runtime { */ public static readonly SYNTHETICS_PYTHON_SELENIUM_2_0 = new Runtime('syn-python-selenium-2.0', RuntimeFamily.PYTHON); + /** + * `syn-python-selenium-2.1` includes the following: + * - Lambda runtime Python 3.8 + * - Selenium version 4.15.1 + * - Chromium version 111.0.5563.146 + * + * New Features: + * - **Updated versions of the bundled libraries in Chromium**: The Chromium and Selenium dependencies are updated to new versions. + * + * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-2.0 + */ + public static readonly SYNTHETICS_PYTHON_SELENIUM_2_1 = new Runtime('syn-python-selenium-2.1', RuntimeFamily.PYTHON); + /** * @param name The name of the runtime version * @param family The Lambda runtime family From 2b0ed53bfe85a59e9334883a667c88fb9e3f5bc0 Mon Sep 17 00:00:00 2001 From: watany <76135106+watany-dev@users.noreply.github.com> Date: Sat, 17 Feb 2024 03:40:22 +0900 Subject: [PATCH 07/22] feat(cloudfront-origin): adding FunctionUrlOrigin (#29101) ### Reason for this change `origins.httpOrigin` requires a trick to specify the Lambda Functions URL. ### Description of changes This eases that pain and simplifies integration. ### Description of how you validated changes ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../cdk.out | 1 + ...cloudfront-function-url-origin.assets.json | 19 ++ ...oudfront-function-url-origin.template.json | 157 +++++++++ .../integ.json | 12 + .../manifest.json | 137 ++++++++ ...efaultTestDeployAssert6BBA15BA.assets.json | 19 ++ ...aultTestDeployAssert6BBA15BA.template.json | 36 ++ .../tree.json | 314 ++++++++++++++++++ .../test/integ.function-url-origin.ts | 27 ++ .../aws-cloudfront-origins/README.md | 15 + .../lib/function-url-origin.ts | 55 +++ .../aws-cloudfront-origins/lib/index.ts | 1 + .../test/function-url-origin.test.ts | 43 +++ 13 files changed, 836 insertions(+) create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/cdk.out create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/integ-cloudfront-function-url-origin.assets.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/integ-cloudfront-function-url-origin.template.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/integ.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/manifest.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/restapioriginDefaultTestDeployAssert6BBA15BA.assets.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/restapioriginDefaultTestDeployAssert6BBA15BA.template.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/tree.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.ts create mode 100644 packages/aws-cdk-lib/aws-cloudfront-origins/lib/function-url-origin.ts create mode 100644 packages/aws-cdk-lib/aws-cloudfront-origins/test/function-url-origin.test.ts diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/cdk.out new file mode 100644 index 0000000000000..1f0068d32659a --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/cdk.out @@ -0,0 +1 @@ +{"version":"36.0.0"} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/integ-cloudfront-function-url-origin.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/integ-cloudfront-function-url-origin.assets.json new file mode 100644 index 0000000000000..a912697d800b4 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/integ-cloudfront-function-url-origin.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "9a6c172119a86bf65d38c8185c145afbebd67b5e50d54fca1f3c2229b41cdcd0": { + "source": { + "path": "integ-cloudfront-function-url-origin.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "9a6c172119a86bf65d38c8185c145afbebd67b5e50d54fca1f3c2229b41cdcd0.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/integ-cloudfront-function-url-origin.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/integ-cloudfront-function-url-origin.template.json new file mode 100644 index 0000000000000..f3b95cb007d78 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/integ-cloudfront-function-url-origin.template.json @@ -0,0 +1,157 @@ +{ + "Resources": { + "MyFunctionServiceRole3C357FF2": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "MyFunction3BAA72D1": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": "exports.handler = async () => {};" + }, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "MyFunctionServiceRole3C357FF2", + "Arn" + ] + }, + "Runtime": "nodejs20.x" + }, + "DependsOn": [ + "MyFunctionServiceRole3C357FF2" + ] + }, + "MyFunctionFunctionUrlFF6DE78C": { + "Type": "AWS::Lambda::Url", + "Properties": { + "AuthType": "NONE", + "TargetFunctionArn": { + "Fn::GetAtt": [ + "MyFunction3BAA72D1", + "Arn" + ] + } + } + }, + "MyFunctioninvokefunctionurl171A3163": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunctionUrl", + "FunctionName": { + "Fn::GetAtt": [ + "MyFunction3BAA72D1", + "Arn" + ] + }, + "FunctionUrlAuthType": "NONE", + "Principal": "*" + } + }, + "Distribution830FAC52": { + "Type": "AWS::CloudFront::Distribution", + "Properties": { + "DistributionConfig": { + "DefaultCacheBehavior": { + "CachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6", + "Compress": true, + "TargetOriginId": "integcloudfrontfunctionurloriginDistributionOrigin19836FF4B", + "ViewerProtocolPolicy": "allow-all" + }, + "Enabled": true, + "HttpVersion": "http2", + "IPV6Enabled": true, + "Origins": [ + { + "CustomOriginConfig": { + "OriginProtocolPolicy": "https-only", + "OriginSSLProtocols": [ + "TLSv1.2" + ] + }, + "DomainName": { + "Fn::Select": [ + 2, + { + "Fn::Split": [ + "/", + { + "Fn::GetAtt": [ + "MyFunctionFunctionUrlFF6DE78C", + "FunctionUrl" + ] + } + ] + } + ] + }, + "Id": "integcloudfrontfunctionurloriginDistributionOrigin19836FF4B" + } + ] + } + } + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/integ.json new file mode 100644 index 0000000000000..146e82f912b8d --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/integ.json @@ -0,0 +1,12 @@ +{ + "version": "36.0.0", + "testCases": { + "rest-api-origin/DefaultTest": { + "stacks": [ + "integ-cloudfront-function-url-origin" + ], + "assertionStack": "rest-api-origin/DefaultTest/DeployAssert", + "assertionStackName": "restapioriginDefaultTestDeployAssert6BBA15BA" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/manifest.json new file mode 100644 index 0000000000000..fe34de633eada --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/manifest.json @@ -0,0 +1,137 @@ +{ + "version": "36.0.0", + "artifacts": { + "integ-cloudfront-function-url-origin.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "integ-cloudfront-function-url-origin.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "integ-cloudfront-function-url-origin": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "integ-cloudfront-function-url-origin.template.json", + "terminationProtection": false, + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9a6c172119a86bf65d38c8185c145afbebd67b5e50d54fca1f3c2229b41cdcd0.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "integ-cloudfront-function-url-origin.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "integ-cloudfront-function-url-origin.assets" + ], + "metadata": { + "/integ-cloudfront-function-url-origin/MyFunction/ServiceRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "MyFunctionServiceRole3C357FF2" + } + ], + "/integ-cloudfront-function-url-origin/MyFunction/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "MyFunction3BAA72D1" + } + ], + "/integ-cloudfront-function-url-origin/MyFunction/FunctionUrl/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "MyFunctionFunctionUrlFF6DE78C" + } + ], + "/integ-cloudfront-function-url-origin/MyFunction/invoke-function-url": [ + { + "type": "aws:cdk:logicalId", + "data": "MyFunctioninvokefunctionurl171A3163" + } + ], + "/integ-cloudfront-function-url-origin/Distribution/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "Distribution830FAC52" + } + ], + "/integ-cloudfront-function-url-origin/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/integ-cloudfront-function-url-origin/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "integ-cloudfront-function-url-origin" + }, + "restapioriginDefaultTestDeployAssert6BBA15BA.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "restapioriginDefaultTestDeployAssert6BBA15BA.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "restapioriginDefaultTestDeployAssert6BBA15BA": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "restapioriginDefaultTestDeployAssert6BBA15BA.template.json", + "terminationProtection": false, + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "restapioriginDefaultTestDeployAssert6BBA15BA.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "restapioriginDefaultTestDeployAssert6BBA15BA.assets" + ], + "metadata": { + "/rest-api-origin/DefaultTest/DeployAssert/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/rest-api-origin/DefaultTest/DeployAssert/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "rest-api-origin/DefaultTest/DeployAssert" + }, + "Tree": { + "type": "cdk:tree", + "properties": { + "file": "tree.json" + } + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/restapioriginDefaultTestDeployAssert6BBA15BA.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/restapioriginDefaultTestDeployAssert6BBA15BA.assets.json new file mode 100644 index 0000000000000..5e494c6aa6b59 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/restapioriginDefaultTestDeployAssert6BBA15BA.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { + "source": { + "path": "restapioriginDefaultTestDeployAssert6BBA15BA.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/restapioriginDefaultTestDeployAssert6BBA15BA.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/restapioriginDefaultTestDeployAssert6BBA15BA.template.json new file mode 100644 index 0000000000000..ad9d0fb73d1dd --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/restapioriginDefaultTestDeployAssert6BBA15BA.template.json @@ -0,0 +1,36 @@ +{ + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/tree.json new file mode 100644 index 0000000000000..9de612a777a06 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.js.snapshot/tree.json @@ -0,0 +1,314 @@ +{ + "version": "tree-0.1", + "tree": { + "id": "App", + "path": "", + "children": { + "integ-cloudfront-function-url-origin": { + "id": "integ-cloudfront-function-url-origin", + "path": "integ-cloudfront-function-url-origin", + "children": { + "MyFunction": { + "id": "MyFunction", + "path": "integ-cloudfront-function-url-origin/MyFunction", + "children": { + "ServiceRole": { + "id": "ServiceRole", + "path": "integ-cloudfront-function-url-origin/MyFunction/ServiceRole", + "children": { + "ImportServiceRole": { + "id": "ImportServiceRole", + "path": "integ-cloudfront-function-url-origin/MyFunction/ServiceRole/ImportServiceRole", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "integ-cloudfront-function-url-origin/MyFunction/ServiceRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "managedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.CfnRole", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.Role", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "integ-cloudfront-function-url-origin/MyFunction/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::Lambda::Function", + "aws:cdk:cloudformation:props": { + "code": { + "zipFile": "exports.handler = async () => {};" + }, + "handler": "index.handler", + "role": { + "Fn::GetAtt": [ + "MyFunctionServiceRole3C357FF2", + "Arn" + ] + }, + "runtime": "nodejs20.x" + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_lambda.CfnFunction", + "version": "0.0.0" + } + }, + "FunctionUrl": { + "id": "FunctionUrl", + "path": "integ-cloudfront-function-url-origin/MyFunction/FunctionUrl", + "children": { + "Resource": { + "id": "Resource", + "path": "integ-cloudfront-function-url-origin/MyFunction/FunctionUrl/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::Lambda::Url", + "aws:cdk:cloudformation:props": { + "authType": "NONE", + "targetFunctionArn": { + "Fn::GetAtt": [ + "MyFunction3BAA72D1", + "Arn" + ] + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_lambda.CfnUrl", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_lambda.FunctionUrl", + "version": "0.0.0" + } + }, + "invoke-function-url": { + "id": "invoke-function-url", + "path": "integ-cloudfront-function-url-origin/MyFunction/invoke-function-url", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::Lambda::Permission", + "aws:cdk:cloudformation:props": { + "action": "lambda:InvokeFunctionUrl", + "functionName": { + "Fn::GetAtt": [ + "MyFunction3BAA72D1", + "Arn" + ] + }, + "functionUrlAuthType": "NONE", + "principal": "*" + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_lambda.CfnPermission", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_lambda.Function", + "version": "0.0.0" + } + }, + "Distribution": { + "id": "Distribution", + "path": "integ-cloudfront-function-url-origin/Distribution", + "children": { + "Origin1": { + "id": "Origin1", + "path": "integ-cloudfront-function-url-origin/Distribution/Origin1", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Resource": { + "id": "Resource", + "path": "integ-cloudfront-function-url-origin/Distribution/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::CloudFront::Distribution", + "aws:cdk:cloudformation:props": { + "distributionConfig": { + "enabled": true, + "origins": [ + { + "domainName": { + "Fn::Select": [ + 2, + { + "Fn::Split": [ + "/", + { + "Fn::GetAtt": [ + "MyFunctionFunctionUrlFF6DE78C", + "FunctionUrl" + ] + } + ] + } + ] + }, + "id": "integcloudfrontfunctionurloriginDistributionOrigin19836FF4B", + "customOriginConfig": { + "originSslProtocols": [ + "TLSv1.2" + ], + "originProtocolPolicy": "https-only" + } + } + ], + "defaultCacheBehavior": { + "pathPattern": "*", + "targetOriginId": "integcloudfrontfunctionurloriginDistributionOrigin19836FF4B", + "cachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6", + "compress": true, + "viewerProtocolPolicy": "allow-all" + }, + "httpVersion": "http2", + "ipv6Enabled": true + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_cloudfront.CfnDistribution", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_cloudfront.Distribution", + "version": "0.0.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "integ-cloudfront-function-url-origin/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "integ-cloudfront-function-url-origin/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + }, + "rest-api-origin": { + "id": "rest-api-origin", + "path": "rest-api-origin", + "children": { + "DefaultTest": { + "id": "DefaultTest", + "path": "rest-api-origin/DefaultTest", + "children": { + "Default": { + "id": "Default", + "path": "rest-api-origin/DefaultTest/Default", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DeployAssert": { + "id": "DeployAssert", + "path": "rest-api-origin/DefaultTest/DeployAssert", + "children": { + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "rest-api-origin/DefaultTest/DeployAssert/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "rest-api-origin/DefaultTest/DeployAssert/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.IntegTest", + "version": "0.0.0" + } + }, + "Tree": { + "id": "Tree", + "path": "Tree", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.App", + "version": "0.0.0" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.ts new file mode 100644 index 0000000000000..9f3d6482f760e --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-cloudfront-origins/test/integ.function-url-origin.ts @@ -0,0 +1,27 @@ +import * as lambda from 'aws-cdk-lib/aws-lambda'; +import * as cloudfront from 'aws-cdk-lib/aws-cloudfront'; +import * as cdk from 'aws-cdk-lib'; +import { IntegTest } from '@aws-cdk/integ-tests-alpha'; +import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'; + +const app = new cdk.App(); + +const stack = new cdk.Stack(app, 'integ-cloudfront-function-url-origin'); + +const fn = new lambda.Function(stack, 'MyFunction', { + code: lambda.Code.fromInline('exports.handler = async () => {};'), + handler: 'index.handler', + runtime: lambda.Runtime.NODEJS_20_X, +}); + +const fnUrl = fn.addFunctionUrl({ + authType: lambda.FunctionUrlAuthType.NONE, +}); + +new cloudfront.Distribution(stack, 'Distribution', { + defaultBehavior: { origin: new origins.FunctionUrlOrigin(fnUrl) }, +}); + +new IntegTest(app, 'rest-api-origin', { + testCases: [stack], +}); diff --git a/packages/aws-cdk-lib/aws-cloudfront-origins/README.md b/packages/aws-cdk-lib/aws-cloudfront-origins/README.md index c876cde8a1158..a5f2972f9c5d5 100644 --- a/packages/aws-cdk-lib/aws-cloudfront-origins/README.md +++ b/packages/aws-cdk-lib/aws-cloudfront-origins/README.md @@ -131,3 +131,18 @@ new cloudfront.Distribution(this, 'Distribution', { defaultBehavior: { origin: new origins.RestApiOrigin(api, { originPath: '/custom-origin-path' }) }, }); ``` + +## From a Lambda Function URL + +Lambda Function URLs enable direct invocation of Lambda functions via HTTP(S), without intermediaries. They can be set as CloudFront origins for streamlined function execution behind a CDN, leveraging caching and custom domains. + +```ts +import * as lambda from 'aws-cdk-lib/aws-lambda'; + +declare const fn: lambda.Function; +const fnUrl = fn.addFunctionUrl({ authType: lambda.FunctionUrlAuthType.NONE }); + +new cloudfront.Distribution(this, 'Distribution', { + defaultBehavior: { origin: new origins.FunctionUrlOrigin(fnUrl) }, +}); +``` diff --git a/packages/aws-cdk-lib/aws-cloudfront-origins/lib/function-url-origin.ts b/packages/aws-cdk-lib/aws-cloudfront-origins/lib/function-url-origin.ts new file mode 100644 index 0000000000000..5d9332e892d1d --- /dev/null +++ b/packages/aws-cdk-lib/aws-cloudfront-origins/lib/function-url-origin.ts @@ -0,0 +1,55 @@ +import { validateSecondsInRangeOrUndefined } from './private/utils'; +import * as cloudfront from '../../aws-cloudfront'; +import * as lambda from '../../aws-lambda'; +import * as cdk from '../../core'; + +/** + * Properties for a Lambda Function URL Origin. + */ +export interface FunctionUrlOriginProps extends cloudfront.OriginProps { + /** + * Specifies how long, in seconds, CloudFront waits for a response from the origin. + * The valid range is from 1 to 180 seconds, inclusive. + * + * Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota + * has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time. + * + * @default Duration.seconds(30) + */ + readonly readTimeout?: cdk.Duration; + + /** + * Specifies how long, in seconds, CloudFront persists its connection to the origin. + * The valid range is from 1 to 180 seconds, inclusive. + * + * Note that values over 60 seconds are possible only after a limit increase request for the origin response timeout quota + * has been approved in the target account; otherwise, values over 60 seconds will produce an error at deploy time. + * + * @default Duration.seconds(5) + */ + readonly keepaliveTimeout?: cdk.Duration; +} + +/** + * An Origin for a Lambda Function URL. + */ +export class FunctionUrlOrigin extends cloudfront.OriginBase { + constructor(lambdaFunctionUrl: lambda.IFunctionUrl, private readonly props: FunctionUrlOriginProps = {}) { + // Lambda Function URL is of the form 'https://.lambda-url..on.aws/' + // No need to split URL as we do with REST API, the entire URL is needed + const domainName = cdk.Fn.select(2, cdk.Fn.split('/', lambdaFunctionUrl.url)); + super(domainName, props); + + validateSecondsInRangeOrUndefined('readTimeout', 1, 180, props.readTimeout); + validateSecondsInRangeOrUndefined('keepaliveTimeout', 1, 180, props.keepaliveTimeout); + } + + protected renderCustomOriginConfig(): cloudfront.CfnDistribution.CustomOriginConfigProperty | undefined { + return { + originSslProtocols: [cloudfront.OriginSslPolicy.TLS_V1_2], + originProtocolPolicy: cloudfront.OriginProtocolPolicy.HTTPS_ONLY, + originReadTimeout: this.props.readTimeout?.toSeconds(), + originKeepaliveTimeout: this.props.keepaliveTimeout?.toSeconds(), + }; + } +} \ No newline at end of file diff --git a/packages/aws-cdk-lib/aws-cloudfront-origins/lib/index.ts b/packages/aws-cdk-lib/aws-cloudfront-origins/lib/index.ts index 00ac116b126a3..d8c6f1da8ba0d 100644 --- a/packages/aws-cdk-lib/aws-cloudfront-origins/lib/index.ts +++ b/packages/aws-cdk-lib/aws-cloudfront-origins/lib/index.ts @@ -1,3 +1,4 @@ +export * from './function-url-origin'; export * from './http-origin'; export * from './load-balancer-origin'; export * from './s3-origin'; diff --git a/packages/aws-cdk-lib/aws-cloudfront-origins/test/function-url-origin.test.ts b/packages/aws-cdk-lib/aws-cloudfront-origins/test/function-url-origin.test.ts new file mode 100644 index 0000000000000..20d07a14fbe1b --- /dev/null +++ b/packages/aws-cdk-lib/aws-cloudfront-origins/test/function-url-origin.test.ts @@ -0,0 +1,43 @@ +import * as lambda from '../../aws-lambda'; +import { Stack } from '../../core'; +import { FunctionUrlOrigin } from '../lib'; + +let stack: Stack; + +beforeEach(() => { + stack = new Stack(); +}); + +test('Correctly renders the origin for a Lambda Function URL', () => { + const fn = new lambda.Function(stack, 'MyFunction', { + code: lambda.Code.fromInline('exports.handler = async () => {};'), + handler: 'index.handler', + runtime: lambda.Runtime.NODEJS_20_X, + }); + + const fnUrl = fn.addFunctionUrl({ + authType: lambda.FunctionUrlAuthType.NONE, + }); + + const origin = new FunctionUrlOrigin(fnUrl); + const originBindConfig = origin.bind(stack, { originId: 'StackOriginLambdaFunctionURL' }); + + expect(stack.resolve(originBindConfig.originProperty)).toEqual({ + id: 'StackOriginLambdaFunctionURL', + domainName: { + 'Fn::Select': [ + 2, + { + 'Fn::Split': [ + '/', + { 'Fn::GetAtt': ['MyFunctionFunctionUrlFF6DE78C', 'FunctionUrl'] }, + ], + }, + ], + }, + customOriginConfig: { + originProtocolPolicy: 'https-only', + originSslProtocols: ['TLSv1.2'], + }, + }); +}); From e92dbec0e5fb51bad6037d01d6131c9ab4ce3f55 Mon Sep 17 00:00:00 2001 From: Cristobal Espinosa <4583012+cresvi@users.noreply.github.com> Date: Fri, 16 Feb 2024 14:03:19 -0600 Subject: [PATCH 08/22] feat(ecs): credentialSpecs in ContainerDefinitionOptions (#29085) ### Issue # (if applicable) Closes #N/A ### Reason for this change v2.127.0 updated the L1 construct for AWS::ECS::TaskDefinition, adding support for the property ContainerDefinitions.CredentialSpecs, [see](https://github.com/aws/aws-cdk/pull/29053). This PR adds support for CredentialSpecs property in the L2 construct used by `Ec2TaskDefinition.addContainer` method. ### Description of changes Added property in L2 construct, updated unit test and added integration test. ### Description of how you validated changes - [x] Unit test updated and validated - [x] Integration test added and validated ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- ...efaultTestDeployAssertF6677424.assets.json | 19 + ...aultTestDeployAssertF6677424.template.json | 36 ++ ...tion-container-credentialspecs.assets.json | 19 + ...on-container-credentialspecs.template.json | 255 ++++++++++ .../cdk.out | 1 + .../integ.json | 12 + .../manifest.json | 164 +++++++ .../tree.json | 456 ++++++++++++++++++ ...sk-definition-container-credentialspecs.ts | 51 ++ packages/aws-cdk-lib/aws-ecs/README.md | 38 ++ .../aws-ecs/lib/container-definition.ts | 38 ++ .../aws-ecs/lib/credential-spec.ts | 129 +++++ packages/aws-cdk-lib/aws-ecs/lib/index.ts | 1 + .../aws-ecs/test/container-definition.test.ts | 32 +- .../aws-ecs/test/credential-spec.test.ts | 140 ++++++ 15 files changed, 1386 insertions(+), 5 deletions(-) create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424.assets.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424.template.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/aws-ecs-task-definition-container-credentialspecs.assets.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/aws-ecs-task-definition-container-credentialspecs.template.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/cdk.out create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/integ.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/manifest.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/tree.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.ts create mode 100644 packages/aws-cdk-lib/aws-ecs/lib/credential-spec.ts create mode 100644 packages/aws-cdk-lib/aws-ecs/test/credential-spec.test.ts diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424.assets.json new file mode 100644 index 0000000000000..05f160b14fd82 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { + "source": { + "path": "TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424.template.json new file mode 100644 index 0000000000000..ad9d0fb73d1dd --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424.template.json @@ -0,0 +1,36 @@ +{ + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/aws-ecs-task-definition-container-credentialspecs.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/aws-ecs-task-definition-container-credentialspecs.assets.json new file mode 100644 index 0000000000000..b924c8a6de6c2 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/aws-ecs-task-definition-container-credentialspecs.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "15b792b5a8db7ad07b3634fb52b565ba733387c368ab58c412b388fcaad71f2a": { + "source": { + "path": "aws-ecs-task-definition-container-credentialspecs.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "15b792b5a8db7ad07b3634fb52b565ba733387c368ab58c412b388fcaad71f2a.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/aws-ecs-task-definition-container-credentialspecs.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/aws-ecs-task-definition-container-credentialspecs.template.json new file mode 100644 index 0000000000000..2805ad765fd87 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/aws-ecs-task-definition-container-credentialspecs.template.json @@ -0,0 +1,255 @@ +{ + "Resources": { + "bucket43879C71": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "PublicAccessBlockConfiguration": { + "BlockPublicAcls": true, + "BlockPublicPolicy": true, + "IgnorePublicAcls": true, + "RestrictPublicBuckets": true + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "bucketPolicy638F945D": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "bucket43879C71" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "bucket43879C71", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "bucket43879C71", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + } + }, + "parameter76C24FC7": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Type": "String", + "Value": "Sample CredSpec" + } + }, + "taskexecutionrole7BB27090": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "ecs-tasks.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/AmazonS3ReadOnlyAccess" + ] + ] + } + ], + "RoleName": "aws-ecs-task-definition-container-credentialspecs-task-exec-role" + } + }, + "TaskDefTaskRole1EDB4A67": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "ecs-tasks.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "TaskDef54694570": { + "Type": "AWS::ECS::TaskDefinition", + "Properties": { + "ContainerDefinitions": [ + { + "CredentialSpecs": [ + { + "Fn::Join": [ + "", + [ + "credentialspec:arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/", + { + "Ref": "parameter76C24FC7" + } + ] + ] + } + ], + "Essential": true, + "Image": "public.ecr.aws/ecs-sample-image/amazon-ecs-sample:latest", + "Memory": 512, + "MemoryReservation": 32, + "Name": "DomainJoinedContainer" + }, + { + "CredentialSpecs": [ + { + "Fn::Join": [ + "", + [ + "credentialspecdomainless:", + { + "Fn::GetAtt": [ + "bucket43879C71", + "Arn" + ] + }, + "/credSpecDomainless" + ] + ] + } + ], + "Essential": true, + "Image": "public.ecr.aws/ecs-sample-image/amazon-ecs-sample:latest", + "Memory": 512, + "MemoryReservation": 32, + "Name": "DomainlessContainer" + } + ], + "ExecutionRoleArn": { + "Fn::GetAtt": [ + "taskexecutionrole7BB27090", + "Arn" + ] + }, + "Family": "awsecstaskdefinitioncontainercredentialspecsTaskDefE15276BC", + "NetworkMode": "bridge", + "RequiresCompatibilities": [ + "EC2" + ], + "TaskRoleArn": { + "Fn::GetAtt": [ + "TaskDefTaskRole1EDB4A67", + "Arn" + ] + } + } + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/cdk.out new file mode 100644 index 0000000000000..1f0068d32659a --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/cdk.out @@ -0,0 +1 @@ +{"version":"36.0.0"} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/integ.json new file mode 100644 index 0000000000000..250fe9811366a --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/integ.json @@ -0,0 +1,12 @@ +{ + "version": "36.0.0", + "testCases": { + "TaskDefinitionContainerCredSpecs/DefaultTest": { + "stacks": [ + "aws-ecs-task-definition-container-credentialspecs" + ], + "assertionStack": "TaskDefinitionContainerCredSpecs/DefaultTest/DeployAssert", + "assertionStackName": "TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/manifest.json new file mode 100644 index 0000000000000..b73e5baec0629 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/manifest.json @@ -0,0 +1,164 @@ +{ + "version": "36.0.0", + "artifacts": { + "aws-ecs-task-definition-container-credentialspecs.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "aws-ecs-task-definition-container-credentialspecs.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "aws-ecs-task-definition-container-credentialspecs": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "aws-ecs-task-definition-container-credentialspecs.template.json", + "terminationProtection": false, + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15b792b5a8db7ad07b3634fb52b565ba733387c368ab58c412b388fcaad71f2a.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "aws-ecs-task-definition-container-credentialspecs.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "aws-ecs-task-definition-container-credentialspecs.assets" + ], + "metadata": { + "/aws-ecs-task-definition-container-credentialspecs/bucket/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "bucket43879C71" + } + ], + "/aws-ecs-task-definition-container-credentialspecs/bucket/Policy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "bucketPolicy638F945D" + } + ], + "/aws-ecs-task-definition-container-credentialspecs/parameter/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "parameter76C24FC7" + } + ], + "/aws-ecs-task-definition-container-credentialspecs/task-execution-role/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "taskexecutionrole7BB27090" + } + ], + "/aws-ecs-task-definition-container-credentialspecs/TaskDef/TaskRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TaskDefTaskRole1EDB4A67" + } + ], + "/aws-ecs-task-definition-container-credentialspecs/TaskDef/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TaskDef54694570", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_REPLACE" + ] + } + ], + "/aws-ecs-task-definition-container-credentialspecs/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/aws-ecs-task-definition-container-credentialspecs/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ], + "s3bucket64CB25AF": [ + { + "type": "aws:cdk:logicalId", + "data": "s3bucket64CB25AF", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "s3bucketPolicyF7E91061": [ + { + "type": "aws:cdk:logicalId", + "data": "s3bucketPolicyF7E91061", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ] + }, + "displayName": "aws-ecs-task-definition-container-credentialspecs" + }, + "TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424.template.json", + "terminationProtection": false, + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "TaskDefinitionContainerCredSpecsDefaultTestDeployAssertF6677424.assets" + ], + "metadata": { + "/TaskDefinitionContainerCredSpecs/DefaultTest/DeployAssert/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/TaskDefinitionContainerCredSpecs/DefaultTest/DeployAssert/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "TaskDefinitionContainerCredSpecs/DefaultTest/DeployAssert" + }, + "Tree": { + "type": "cdk:tree", + "properties": { + "file": "tree.json" + } + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/tree.json new file mode 100644 index 0000000000000..206bf29b36a21 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.js.snapshot/tree.json @@ -0,0 +1,456 @@ +{ + "version": "tree-0.1", + "tree": { + "id": "App", + "path": "", + "children": { + "aws-ecs-task-definition-container-credentialspecs": { + "id": "aws-ecs-task-definition-container-credentialspecs", + "path": "aws-ecs-task-definition-container-credentialspecs", + "children": { + "bucket": { + "id": "bucket", + "path": "aws-ecs-task-definition-container-credentialspecs/bucket", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-ecs-task-definition-container-credentialspecs/bucket/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::S3::Bucket", + "aws:cdk:cloudformation:props": { + "bucketEncryption": { + "serverSideEncryptionConfiguration": [ + { + "serverSideEncryptionByDefault": { + "sseAlgorithm": "AES256" + } + } + ] + }, + "publicAccessBlockConfiguration": { + "blockPublicAcls": true, + "blockPublicPolicy": true, + "ignorePublicAcls": true, + "restrictPublicBuckets": true + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.CfnBucket", + "version": "0.0.0" + } + }, + "Policy": { + "id": "Policy", + "path": "aws-ecs-task-definition-container-credentialspecs/bucket/Policy", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-ecs-task-definition-container-credentialspecs/bucket/Policy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::S3::BucketPolicy", + "aws:cdk:cloudformation:props": { + "bucket": { + "Ref": "bucket43879C71" + }, + "policyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "bucket43879C71", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "bucket43879C71", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.BucketPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.Bucket", + "version": "0.0.0" + } + }, + "parameter": { + "id": "parameter", + "path": "aws-ecs-task-definition-container-credentialspecs/parameter", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-ecs-task-definition-container-credentialspecs/parameter/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::SSM::Parameter", + "aws:cdk:cloudformation:props": { + "type": "String", + "value": "Sample CredSpec" + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ssm.CfnParameter", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ssm.StringParameter", + "version": "0.0.0" + } + }, + "task-execution-role": { + "id": "task-execution-role", + "path": "aws-ecs-task-definition-container-credentialspecs/task-execution-role", + "children": { + "Importtask-execution-role": { + "id": "Importtask-execution-role", + "path": "aws-ecs-task-definition-container-credentialspecs/task-execution-role/Importtask-execution-role", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-ecs-task-definition-container-credentialspecs/task-execution-role/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "ecs-tasks.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "managedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/AmazonS3ReadOnlyAccess" + ] + ] + } + ], + "roleName": "aws-ecs-task-definition-container-credentialspecs-task-exec-role" + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.CfnRole", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.Role", + "version": "0.0.0" + } + }, + "TaskDef": { + "id": "TaskDef", + "path": "aws-ecs-task-definition-container-credentialspecs/TaskDef", + "children": { + "TaskRole": { + "id": "TaskRole", + "path": "aws-ecs-task-definition-container-credentialspecs/TaskDef/TaskRole", + "children": { + "ImportTaskRole": { + "id": "ImportTaskRole", + "path": "aws-ecs-task-definition-container-credentialspecs/TaskDef/TaskRole/ImportTaskRole", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-ecs-task-definition-container-credentialspecs/TaskDef/TaskRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "ecs-tasks.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.CfnRole", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.Role", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-ecs-task-definition-container-credentialspecs/TaskDef/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::ECS::TaskDefinition", + "aws:cdk:cloudformation:props": { + "containerDefinitions": [ + { + "credentialSpecs": [ + { + "Fn::Join": [ + "", + [ + "credentialspec:arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/", + { + "Ref": "parameter76C24FC7" + } + ] + ] + } + ], + "essential": true, + "image": "public.ecr.aws/ecs-sample-image/amazon-ecs-sample:latest", + "memory": 512, + "memoryReservation": 32, + "name": "DomainJoinedContainer" + }, + { + "credentialSpecs": [ + { + "Fn::Join": [ + "", + [ + "credentialspecdomainless:", + { + "Fn::GetAtt": [ + "bucket43879C71", + "Arn" + ] + }, + "/credSpecDomainless" + ] + ] + } + ], + "essential": true, + "image": "public.ecr.aws/ecs-sample-image/amazon-ecs-sample:latest", + "memory": 512, + "memoryReservation": 32, + "name": "DomainlessContainer" + } + ], + "executionRoleArn": { + "Fn::GetAtt": [ + "taskexecutionrole7BB27090", + "Arn" + ] + }, + "family": "awsecstaskdefinitioncontainercredentialspecsTaskDefE15276BC", + "networkMode": "bridge", + "requiresCompatibilities": [ + "EC2" + ], + "taskRoleArn": { + "Fn::GetAtt": [ + "TaskDefTaskRole1EDB4A67", + "Arn" + ] + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ecs.CfnTaskDefinition", + "version": "0.0.0" + } + }, + "DomainJoinedContainer": { + "id": "DomainJoinedContainer", + "path": "aws-ecs-task-definition-container-credentialspecs/TaskDef/DomainJoinedContainer", + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ecs.ContainerDefinition", + "version": "0.0.0" + } + }, + "DomainlessContainer": { + "id": "DomainlessContainer", + "path": "aws-ecs-task-definition-container-credentialspecs/TaskDef/DomainlessContainer", + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ecs.ContainerDefinition", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ecs.Ec2TaskDefinition", + "version": "0.0.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "aws-ecs-task-definition-container-credentialspecs/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "aws-ecs-task-definition-container-credentialspecs/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + }, + "TaskDefinitionContainerCredSpecs": { + "id": "TaskDefinitionContainerCredSpecs", + "path": "TaskDefinitionContainerCredSpecs", + "children": { + "DefaultTest": { + "id": "DefaultTest", + "path": "TaskDefinitionContainerCredSpecs/DefaultTest", + "children": { + "Default": { + "id": "Default", + "path": "TaskDefinitionContainerCredSpecs/DefaultTest/Default", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DeployAssert": { + "id": "DeployAssert", + "path": "TaskDefinitionContainerCredSpecs/DefaultTest/DeployAssert", + "children": { + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "TaskDefinitionContainerCredSpecs/DefaultTest/DeployAssert/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "TaskDefinitionContainerCredSpecs/DefaultTest/DeployAssert/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.IntegTest", + "version": "0.0.0" + } + }, + "Tree": { + "id": "Tree", + "path": "Tree", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.App", + "version": "0.0.0" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.ts new file mode 100644 index 0000000000000..551c89c574171 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/integ.task-definition-container-credentialspecs.ts @@ -0,0 +1,51 @@ +import * as cdk from 'aws-cdk-lib'; +import * as ecs from 'aws-cdk-lib/aws-ecs'; +import * as iam from 'aws-cdk-lib/aws-iam'; +import * as s3 from 'aws-cdk-lib/aws-s3'; +import * as ssm from 'aws-cdk-lib/aws-ssm'; +import { IntegTest } from '@aws-cdk/integ-tests-alpha'; + +const app = new cdk.App(); +const stack = new cdk.Stack(app, 'aws-ecs-task-definition-container-credentialspecs'); + +const bucket = new s3.Bucket(stack, 'bucket', { + encryption: s3.BucketEncryption.S3_MANAGED, + blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL, + removalPolicy: cdk.RemovalPolicy.DESTROY, + enforceSSL: true, +}); + +const parameter = new ssm.StringParameter(stack, 'parameter', { + stringValue: 'Sample CredSpec', +}); + +const taskExecutionRole = new iam.Role(stack, 'task-execution-role', { + roleName: 'aws-ecs-task-definition-container-credentialspecs-task-exec-role', + assumedBy: new iam.ServicePrincipal('ecs-tasks.amazonaws.com'), +}); +taskExecutionRole.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName('service-role/AmazonECSTaskExecutionRolePolicy')); +taskExecutionRole.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName('AmazonS3ReadOnlyAccess')); + +const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef', { + executionRole: taskExecutionRole, +}); + +taskDefinition.addContainer('DomainJoinedContainer', { + image: ecs.ContainerImage.fromRegistry('public.ecr.aws/ecs-sample-image/amazon-ecs-sample:latest'), + memoryReservationMiB: 32, + memoryLimitMiB: 512, + credentialSpecs: [ecs.DomainJoinedCredentialSpec.fromSsmParameter(parameter)], +}); + +taskDefinition.addContainer('DomainlessContainer', { + image: ecs.ContainerImage.fromRegistry('public.ecr.aws/ecs-sample-image/amazon-ecs-sample:latest'), + memoryReservationMiB: 32, + memoryLimitMiB: 512, + credentialSpecs: [ecs.DomainlessCredentialSpec.fromS3Bucket(bucket, 'credSpecDomainless')], +}); + +new IntegTest(app, 'TaskDefinitionContainerCredSpecs', { + testCases: [stack], +}); + +app.synth(); \ No newline at end of file diff --git a/packages/aws-cdk-lib/aws-ecs/README.md b/packages/aws-cdk-lib/aws-ecs/README.md index 322e5b0635f03..43ac276abe91c 100644 --- a/packages/aws-cdk-lib/aws-ecs/README.md +++ b/packages/aws-cdk-lib/aws-ecs/README.md @@ -623,6 +623,44 @@ taskDefinition.addContainer('windowsservercore', { }); ``` +### Using Windows authentication with gMSA + +Amazon ECS supports Active Directory authentication for Linux containers through a special kind of service account called a group Managed Service Account (gMSA). For more details, please see the [product documentation on how to implement on Windows containers](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows-gmsa.html), or this [blog post on how to implement on Linux containers](https://aws.amazon.com/blogs/containers/using-windows-authentication-with-gmsa-on-linux-containers-on-amazon-ecs/). + +There are two types of CredentialSpecs, domained-join or domainless. Both types support creation from a S3 bucket, a SSM parameter, or by directly specifying a location for the file in the constructor. + +A domian-joined gMSA container looks like: + +```ts +// Make sure the task definition's execution role has permissions to read from the S3 bucket or SSM parameter where the CredSpec file is stored. +declare const parameter: ssm.IParameter; +declare const taskDefinition: ecs.TaskDefinition; + +// Domain-joined gMSA container from a SSM parameter +taskDefinition.addContainer('gmsa-domain-joined-container', { + image: ecs.ContainerImage.fromRegistry("amazon/amazon-ecs-sample"), + cpu: 128, + memoryLimitMiB: 256, + credentialSpecs: [ecs.DomainJoinedCredentialSpec.fromSsmParameter(parameter)], +}); +``` + +A domianless gMSA container looks like: + +```ts +// Make sure the task definition's execution role has permissions to read from the S3 bucket or SSM parameter where the CredSpec file is stored. +declare const bucket: s3.Bucket; +declare const taskDefinition: ecs.TaskDefinition; + +// Domainless gMSA container from a S3 bucket object. +taskDefinition.addContainer('gmsa-domainless-container', { + image: ecs.ContainerImage.fromRegistry("amazon/amazon-ecs-sample"), + cpu: 128, + memoryLimitMiB: 256, + credentialSpecs: [ecs.DomainlessCredentialSpec.fromS3Bucket(bucket, 'credSpec')], +}); +``` + ### Using Graviton2 with Fargate AWS Graviton2 supports AWS Fargate. For more details, please see this [blog post](https://aws.amazon.com/blogs/aws/announcing-aws-graviton2-support-for-aws-fargate-get-up-to-40-better-price-performance-for-your-serverless-containers/) diff --git a/packages/aws-cdk-lib/aws-ecs/lib/container-definition.ts b/packages/aws-cdk-lib/aws-ecs/lib/container-definition.ts index aecbc52b59fa4..3c7d3597aeb41 100644 --- a/packages/aws-cdk-lib/aws-ecs/lib/container-definition.ts +++ b/packages/aws-cdk-lib/aws-ecs/lib/container-definition.ts @@ -1,6 +1,7 @@ import { Construct } from 'constructs'; import { NetworkMode, TaskDefinition } from './base/task-definition'; import { ContainerImage, ContainerImageConfig } from './container-image'; +import { CredentialSpec, CredentialSpecConfig } from './credential-spec'; import { CfnTaskDefinition } from './ecs.generated'; import { EnvironmentFile, EnvironmentFileConfig } from './environment-file'; import { LinuxParameters } from './linux-parameters'; @@ -126,6 +127,17 @@ export interface ContainerDefinitionOptions { */ readonly command?: string[]; + /** + * A list of ARNs in SSM or Amazon S3 to a credential spec (`CredSpec`) file that configures the container for Active Directory authentication. + * + * We recommend that you use this parameter instead of the `dockerSecurityOptions`. + * + * Currently, only one credential spec is allowed per container definition. + * + * @default - No credential specs. + */ + readonly credentialSpecs?: CredentialSpec[]; + /** * The minimum number of CPU units to reserve for the container. * @@ -460,6 +472,11 @@ export class ContainerDefinition extends Construct { */ public readonly logDriverConfig?: LogDriverConfig; + /** + * The crdential specifications for this container. + */ + public readonly credentialSpecs?: CredentialSpecConfig[]; + /** * The name of the image referenced by this container. */ @@ -538,6 +555,18 @@ export class ContainerDefinition extends Construct { } } + if (props.credentialSpecs) { + this.credentialSpecs = []; + + if (props.credentialSpecs.length > 1) { + throw new Error('Only one credential spec is allowed per container definition.'); + } + + for (const credSpec of props.credentialSpecs) { + this.credentialSpecs.push(credSpec.bind()); + } + } + if (props.cpu) { this.cpu = props.cpu; } @@ -794,6 +823,7 @@ export class ContainerDefinition extends Construct { public renderContainerDefinition(_taskDefinition?: TaskDefinition): CfnTaskDefinition.ContainerDefinitionProperty { return { command: this.props.command, + credentialSpecs: this.credentialSpecs && this.credentialSpecs.map(renderCredentialSpec), cpu: this.props.cpu, disableNetworking: this.props.disableNetworking, dependsOn: cdk.Lazy.any({ produce: () => this.containerDependencies.map(renderContainerDependency) }, { omitEmptyArray: true }), @@ -912,6 +942,14 @@ function renderEnvironmentFiles(partition: string, environmentFiles: Environment return ret; } +function renderCredentialSpec(credSpec: CredentialSpecConfig): string { + if (!credSpec.location) { + throw Error('CredentialSpec must specify a valid location or ARN'); + } + + return `${credSpec.typePrefix}:${credSpec.location}`; +} + function renderHealthCheck(hc: HealthCheck): CfnTaskDefinition.HealthCheckProperty { if (hc.interval?.toSeconds() !== undefined) { if (5 > hc.interval?.toSeconds() || hc.interval?.toSeconds() > 300) { diff --git a/packages/aws-cdk-lib/aws-ecs/lib/credential-spec.ts b/packages/aws-cdk-lib/aws-ecs/lib/credential-spec.ts new file mode 100644 index 0000000000000..b92fecc0c18aa --- /dev/null +++ b/packages/aws-cdk-lib/aws-ecs/lib/credential-spec.ts @@ -0,0 +1,129 @@ +import { IBucket } from '../../aws-s3'; +import { IParameter } from '../../aws-ssm'; + +/** + * Base construct for a credential specification (CredSpec). + */ +export class CredentialSpec { + /** + * Helper method to generate the ARN for a S3 object. Used to avoid duplication of logic in derived classes. + */ + protected static arnForS3Object(bucket: IBucket, key: string) { + if (!key) { + throw new Error('key is undefined'); + } + + return bucket.arnForObjects(key); + } + + /** + * Helper method to generate the ARN for a SSM parameter. Used to avoid duplication of logic in derived classes. + */ + protected static arnForSsmParameter(parameter: IParameter) { + return parameter.parameterArn; + } + + /** + * Prefix string based on the type of CredSpec. + */ + public readonly prefixId: string; + + /** + * Location or ARN from where to retrieve the CredSpec file. + */ + public readonly fileLocation: string; + + /** + * @param fileLocation Location or ARN from where to retrieve the CredSpec file + */ + public constructor(prefixId: string, fileLocation: string) { + this.prefixId = prefixId; + this.fileLocation = fileLocation; + } + + /** + * Called when the container is initialized to allow this object to bind + * to the stack. + */ + public bind(): CredentialSpecConfig { + return { + typePrefix: this.prefixId, + location: this.fileLocation, + }; + } +} + +/** + * Credential specification (CredSpec) file. + */ +export class DomainJoinedCredentialSpec extends CredentialSpec { + /** + * Loads the CredSpec from a S3 bucket object. + * + * @param bucket The S3 bucket + * @param key The object key + * @returns CredSpec with it's locations set to the S3 object's ARN. + */ + public static fromS3Bucket(bucket: IBucket, key: string) { + return new DomainJoinedCredentialSpec(CredentialSpec.arnForS3Object(bucket, key)); + } + + /** + * Loads the CredSpec from a SSM parameter. + * + * @param parameter The SSM parameter + * @returns CredSpec with it's locations set to the SSM parameter's ARN. + */ + public static fromSsmParameter(parameter: IParameter) { + return new DomainJoinedCredentialSpec(CredentialSpec.arnForSsmParameter(parameter)); + } + + public constructor(fileLocation: string) { + super('credentialspec', fileLocation); + } +} + +/** + * Credential specification for domainless gMSA. + */ +export class DomainlessCredentialSpec extends CredentialSpec { + /** + * Loads the CredSpec from a S3 bucket object. + * + * @param bucket The S3 bucket + * @param key The object key + * @returns CredSpec with it's locations set to the S3 object's ARN. + */ + public static fromS3Bucket(bucket: IBucket, key: string) { + return new DomainlessCredentialSpec(CredentialSpec.arnForS3Object(bucket, key)); + } + + /** + * Loads the CredSpec from a SSM parameter. + * + * @param parameter The SSM parameter + * @returns CredSpec with it's locations set to the SSM parameter's ARN. + */ + public static fromSsmParameter(parameter: IParameter) { + return new DomainlessCredentialSpec(CredentialSpec.arnForSsmParameter(parameter)); + } + + public constructor(fileLocation: string) { + super('credentialspecdomainless', fileLocation); + } +} + +/** + * Configuration for a credential specification (CredSpec) used for a ECS container. + */ +export interface CredentialSpecConfig { + /** + * Prefix used for the CredSpec string. + */ + readonly typePrefix: string; + + /** + * Location of the CredSpec file. + */ + readonly location: string; +} \ No newline at end of file diff --git a/packages/aws-cdk-lib/aws-ecs/lib/index.ts b/packages/aws-cdk-lib/aws-ecs/lib/index.ts index e3e34f236dd4d..13931980ba3e5 100644 --- a/packages/aws-cdk-lib/aws-ecs/lib/index.ts +++ b/packages/aws-cdk-lib/aws-ecs/lib/index.ts @@ -8,6 +8,7 @@ export * from './container-image'; export * from './amis'; export * from './cluster'; export * from './environment-file'; +export * from './credential-spec'; export * from './firelens-log-router'; export * from './placement'; diff --git a/packages/aws-cdk-lib/aws-ecs/test/container-definition.test.ts b/packages/aws-cdk-lib/aws-ecs/test/container-definition.test.ts index 8a5c5ea165249..0e61cc3341af5 100644 --- a/packages/aws-cdk-lib/aws-ecs/test/container-definition.test.ts +++ b/packages/aws-cdk-lib/aws-ecs/test/container-definition.test.ts @@ -404,7 +404,7 @@ describe('container definition', () => { }).toThrow(/Service connect-related port mapping field 'appProtocol' cannot be set without 'name'/); }); - test('multiple port mappings of the same name error out', () =>{ + test('multiple port mappings of the same name error out', () => { // GIVEN const stack = new cdk.Stack(); const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef'); @@ -465,6 +465,7 @@ describe('container definition', () => { memoryReservationMiB: 512, containerName: 'Example Container', command: ['CMD-SHELL'], + credentialSpecs: [new ecs.DomainlessCredentialSpec('arn:aws:s3:::bucket_name/key_name')], cpu: 128, disableNetworking: true, dnsSearchDomains: ['example.com'], @@ -514,6 +515,9 @@ describe('container definition', () => { 'CMD-SHELL', ], Cpu: 128, + CredentialSpecs: [ + 'credentialspecdomainless:arn:aws:s3:::bucket_name/key_name', + ], DisableNetworking: true, DnsSearchDomains: [ 'example.com', @@ -1099,7 +1103,7 @@ describe('container definition', () => { // THEN const expected = 8080; - expect(actual).toEqual( expected); + expect(actual).toEqual(expected); }); }); @@ -1125,7 +1129,7 @@ describe('container definition', () => { // THEN const expected = 8081; - expect(actual).toEqual( expected); + expect(actual).toEqual(expected); }); test('Ingress port should be 0 if not supplied', () => { @@ -2401,7 +2405,7 @@ describe('container definition', () => { }); // THEN - expect(taskDefinition.defaultContainer).toEqual( container); + expect(taskDefinition.defaultContainer).toEqual(container); }); @@ -2418,7 +2422,7 @@ describe('container definition', () => { }); // THEN - expect(taskDefinition.defaultContainer).toEqual( undefined); + expect(taskDefinition.defaultContainer).toEqual(undefined); }); }); @@ -2662,4 +2666,22 @@ describe('container definition', () => { ], }); }); + + test('fails if more than one credentialSpec is provided', () => { + // GIVEN + const stack = new cdk.Stack(); + const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); + const containerDefinitionProps = { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + taskDefinition, + memoryLimitMiB: 2048, + credentialSpecs: [ + new ecs.DomainlessCredentialSpec('arn:aws:s3:::bucket_name/key_name'), + new ecs.DomainlessCredentialSpec('arn:aws:s3:::bucket_name/key_name_2'), + ], + }; + + // THEN + expect(() => new ecs.ContainerDefinition(stack, 'Container', containerDefinitionProps)).toThrow(/Only one credential spec is allowed per container definition/); + }); }); diff --git a/packages/aws-cdk-lib/aws-ecs/test/credential-spec.test.ts b/packages/aws-cdk-lib/aws-ecs/test/credential-spec.test.ts new file mode 100644 index 0000000000000..158e08a2f06d5 --- /dev/null +++ b/packages/aws-cdk-lib/aws-ecs/test/credential-spec.test.ts @@ -0,0 +1,140 @@ +import * as s3 from '../../aws-s3'; +import * as ssm from '../../aws-ssm'; +import * as cdk from '../../core'; +import * as ecs from '../lib'; + +/* eslint-disable dot-notation */ + +describe('credential spec', () => { + describe('ecs.DomainJoinedCredentialSpec', () => { + test('returns the correct prefixId and location', () => { + // GIVEN + const stack = new cdk.Stack(); + const credSpecLocation = 'credSpecLocation'; + const credSpec = new ecs.DomainJoinedCredentialSpec(credSpecLocation); + const containerDefinition = defineContainerDefinition(stack, credSpec); + + // THEN + expect(containerDefinition.credentialSpecs?.length == 1); + expect(containerDefinition.credentialSpecs?.at(0)?.typePrefix).toEqual('credentialspec'); + expect(containerDefinition.credentialSpecs?.at(0)?.location).toEqual(credSpecLocation); + }); + + describe('fromS3Bucket', () => { + test('returns a valid version-less S3 object ARN as location', () => { + // GIVEN + const stack = new cdk.Stack(); + const objectKey = 'credSpec'; + const bucket = new s3.Bucket(stack, 'bucket'); + const credSpec = ecs.DomainJoinedCredentialSpec.fromS3Bucket(bucket, objectKey); + const containerDefinition = defineContainerDefinition(stack, credSpec); + + // THEN + expect(containerDefinition.credentialSpecs?.at(0)?.location).toEqual(bucket.arnForObjects(objectKey)); + }); + + test('returns a valid versioned S3 object ARN as location', () => { + // GIVEN + const stack = new cdk.Stack(); + const objectKey = 'credSpec'; + const bucket = new s3.Bucket(stack, 'bucket'); + const credSpec = ecs.DomainJoinedCredentialSpec.fromS3Bucket(bucket, objectKey); + const containerDefinition = defineContainerDefinition(stack, credSpec); + + // THEN + expect(containerDefinition.credentialSpecs?.at(0)?.location).toEqual(bucket.arnForObjects(objectKey)); + }); + }); + + describe('fromSsmParameter', () => { + test('returns a valid SSM parameter ARN as location', () => { + // GIVEN + const stack = new cdk.Stack(); + const parameter = new ssm.StringParameter(stack, 'parameter', { + stringValue: 'value', + }); + const credSpec = ecs.DomainJoinedCredentialSpec.fromSsmParameter(parameter); + const containerDefinition = defineContainerDefinition(stack, credSpec); + + // THEN + expect(containerDefinition.credentialSpecs?.at(0)?.location).toEqual(parameter.parameterArn); + }); + }); + }); + + describe('ecs.DomainlessCredentialSpec', () => { + test('returns the correct prefixId and location', () => { + // GIVEN + const stack = new cdk.Stack(); + const credSpecLocation = 'credSpecLocation'; + const credSpec = new ecs.DomainlessCredentialSpec(credSpecLocation); + const containerDefinition = defineContainerDefinition(stack, credSpec); + + // THEN + expect(containerDefinition.credentialSpecs?.length == 1); + expect(containerDefinition.credentialSpecs?.at(0)?.typePrefix).toEqual('credentialspecdomainless'); + expect(containerDefinition.credentialSpecs?.at(0)?.location).toEqual(credSpecLocation); + }); + + describe('fromS3Bucket', () => { + test('fails if key name is empty', () => { + // GIVEN + const stack = new cdk.Stack(); + const bucket = new s3.Bucket(stack, 'bucket'); + + // THEN + expect(() => ecs.DomainlessCredentialSpec.fromS3Bucket(bucket, '')).toThrow(/key is undefined/); + }); + + test('returns a valid version-less S3 object ARN as location', () => { + // GIVEN + const stack = new cdk.Stack(); + const objectKey = 'credSpec'; + const bucket = new s3.Bucket(stack, 'bucket'); + const credSpec = ecs.DomainlessCredentialSpec.fromS3Bucket(bucket, objectKey); + const containerDefinition = defineContainerDefinition(stack, credSpec); + + // THEN + expect(containerDefinition.credentialSpecs?.at(0)?.location).toEqual(bucket.arnForObjects(objectKey)); + }); + + test('returns a valid versioned S3 object ARN as location', () => { + // GIVEN + const stack = new cdk.Stack(); + const objectKey = 'credSpec'; + const bucket = new s3.Bucket(stack, 'bucket'); + const credSpec = ecs.DomainlessCredentialSpec.fromS3Bucket(bucket, objectKey); + const containerDefinition = defineContainerDefinition(stack, credSpec); + + // THEN + expect(containerDefinition.credentialSpecs?.at(0)?.location).toEqual(bucket.arnForObjects(objectKey)); + }); + }); + + describe('fromSsmParameter', () => { + test('returns a valid SSM parameter ARN as location', () => { + // GIVEN + const stack = new cdk.Stack(); + const parameter = new ssm.StringParameter(stack, 'parameter', { + stringValue: 'value', + }); + const credSpec = ecs.DomainlessCredentialSpec.fromSsmParameter(parameter); + const containerDefinition = defineContainerDefinition(stack, credSpec); + + // THEN + expect(containerDefinition.credentialSpecs?.at(0)?.location).toEqual(parameter.parameterArn); + }); + }); + }); +}); + +function defineContainerDefinition(stack: cdk.Stack, credentialSpec: ecs.CredentialSpec) { + const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); + + return new ecs.ContainerDefinition(stack, 'Container', { + credentialSpecs: [credentialSpec], + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + memoryLimitMiB: 512, + taskDefinition, + }); +} From d647eacd4c756caf231b7e8ddd701a7cdb10e19f Mon Sep 17 00:00:00 2001 From: Madeline Kusters <80541297+madeline-k@users.noreply.github.com> Date: Mon, 19 Feb 2024 06:46:44 -0800 Subject: [PATCH 09/22] chore: mergify.yml cleanup (#29156) remove madeline-k and MrArnoldPalmer from mergify.yml ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .mergify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mergify.yml b/.mergify.yml index 7c964b50cd859..f3e915f1c5edb 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -11,7 +11,7 @@ pull_request_rules: label: add: [ contribution/core ] conditions: - - author~=^(rix0rrr|MrArnoldPalmer|iliapolo|otaviomacedo|madeline-k|kaizencc|comcalvi|TheRealAmazonKendra|vinayak-kukreja|mrgrain|pahud|cgarvis|kellertk|HBobertz|sumupitchayan|SankyRed|udaypant|colifran|scanlonp|mikewrighton|moelasmar|paulhcsun|awsmjs|evgenyka|GavinZZ|aaythapa|xazhao|ConnorRobertson|ssenchenko|gracelu0|jfuss|SimonCMoore)$ + - author~=^(rix0rrr|iliapolo|otaviomacedo|kaizencc|comcalvi|TheRealAmazonKendra|vinayak-kukreja|mrgrain|pahud|cgarvis|kellertk|HBobertz|sumupitchayan|SankyRed|udaypant|colifran|scanlonp|mikewrighton|moelasmar|paulhcsun|awsmjs|evgenyka|GavinZZ|aaythapa|xazhao|ConnorRobertson|ssenchenko|gracelu0|jfuss|SimonCMoore)$ - -label~="contribution/core" - name: automatic merge actions: From 058b120534c05bf56c32a06858d87805196cdb3f Mon Sep 17 00:00:00 2001 From: Hirotaka Tagawa / wafuwafu13 Date: Mon, 19 Feb 2024 15:19:33 +0000 Subject: [PATCH 10/22] refactor(ecs-patterns): organize hierarchy of describe in tests (#29153) ### Issue # (if applicable) part of https://github.com/aws/aws-cdk/issues/29041, https://github.com/aws/aws-cdk/issues/29039 Closes #. ### Reason for this change The testing hierarchy was disorganized. ### Description of changes Organized test as below. No logical change. ```ts describe('Application Load Balancer', () => { describe('ApplicationLoadBalancedFargateService', () => { ... }) describe('ApplicationMultipleTargetGroupsFargateService', () => { ... }) }) describe('Network Load Balancer', () => { describe('NetworkLoadBalancedFargateService', () => { ... }) describe('NetworkMultipleTargetGroupsFargateService', () => { ... }) }) ``` ### Description of how you validated changes pass unit tests ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../load-balanced-fargate-service-v2.test.ts | 1459 +++++----- .../load-balanced-fargate-service.test.ts | 2436 +++++++++-------- 2 files changed, 1953 insertions(+), 1942 deletions(-) diff --git a/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service-v2.test.ts b/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service-v2.test.ts index 07e369d2464de..b0cc895c7c4a1 100644 --- a/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service-v2.test.ts +++ b/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service-v2.test.ts @@ -36,829 +36,836 @@ const enableExecuteCommandPermissions = { Version: '2012-10-17', }; -describe('When Application Load Balancer', () => { - test('test Fargate loadbalanced construct with default settings', () => { - // GIVEN - const stack = new Stack(); - const vpc = new Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ApplicationMultipleTargetGroupsFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - }, - }); - - // THEN - stack contains a load balancer and a service - Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::LoadBalancer', 1); - - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - LaunchType: 'FARGATE', - LoadBalancers: [ - { - ContainerName: 'web', - ContainerPort: 80, - TargetGroupArn: { - Ref: 'ServiceLBPublicListenerECSGroup0CC8688C', - }, +describe('Application Load Balancer', () => { + describe('ApplicationLoadBalancedFargateService', () => { + test('construct with application load balancer name set', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), }, - ], - }); + loadBalancerName: 'alb-test-load-balancer', + }); - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Image: 'test', - LogConfiguration: { - LogDriver: 'awslogs', - Options: { - 'awslogs-group': { - Ref: 'ServiceTaskDefwebLogGroup2A898F61', - }, - 'awslogs-stream-prefix': 'Service', - 'awslogs-region': { - Ref: 'AWS::Region', - }, + // THEN - stack contains a load balancer and a service + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { + Name: 'alb-test-load-balancer', + }); + + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + LaunchType: 'FARGATE', + LoadBalancers: [ + { + ContainerName: 'web', + ContainerPort: 80, + TargetGroupArn: { + Ref: 'ServiceLBPublicListenerECSGroup0CC8688C', }, }, - Name: 'web', - PortMappings: [ - { - ContainerPort: 80, - Protocol: 'tcp', + ], + }); + + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Image: 'test', + LogConfiguration: { + LogDriver: 'awslogs', + Options: { + 'awslogs-group': { + Ref: 'ServiceTaskDefwebLogGroup2A898F61', + }, + 'awslogs-stream-prefix': 'Service', + 'awslogs-region': { + Ref: 'AWS::Region', + }, + }, }, + Name: 'web', + PortMappings: [ + { + ContainerPort: 80, + Protocol: 'tcp', + }, + ], + }), + ], + Cpu: '256', + ExecutionRoleArn: { + 'Fn::GetAtt': [ + 'ServiceTaskDefExecutionRole919F7BE3', + 'Arn', ], - }), - ], - Cpu: '256', - ExecutionRoleArn: { - 'Fn::GetAtt': [ - 'ServiceTaskDefExecutionRole919F7BE3', - 'Arn', + }, + Family: 'ServiceTaskDef79D79521', + Memory: '512', + NetworkMode: 'awsvpc', + RequiresCompatibilities: [ + 'FARGATE', ], - }, - Family: 'ServiceTaskDef79D79521', - Memory: '512', - NetworkMode: 'awsvpc', - RequiresCompatibilities: [ - 'FARGATE', - ], + }); }); }); - test('test Fargate loadbalanced construct with all settings', () => { - // GIVEN - const stack = new Stack(); - const vpc = new Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + describe('ApplicationMultipleTargetGroupsFargateService', () => { + test('construct with default settings', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - // WHEN - new ApplicationMultipleTargetGroupsFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - containerName: 'hello', - containerPorts: [80, 90], - enableLogging: false, - environment: { - TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', - TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', - }, - logDriver: new ecs.AwsLogDriver({ - streamPrefix: 'TestStream', - }), - family: 'Ec2TaskDef', - executionRole: new Role(stack, 'ExecutionRole', { - path: '/', - assumedBy: new CompositePrincipal( - new ServicePrincipal('ecs.amazonaws.com'), - new ServicePrincipal('ecs-tasks.amazonaws.com'), - ), - }), - taskRole: new Role(stack, 'TaskRole', { - assumedBy: new ServicePrincipal('ecs-tasks.amazonaws.com'), - }), - dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, - }, - cpu: 256, - assignPublicIp: true, - memoryLimitMiB: 512, - desiredCount: 3, - enableECSManagedTags: true, - enableExecuteCommand: true, - healthCheckGracePeriod: Duration.millis(2000), - platformVersion: ecs.FargatePlatformVersion.VERSION1_4, - propagateTags: ecs.PropagatedTagSource.SERVICE, - serviceName: 'myService', - targetGroups: [ - { - containerPort: 80, - }, - { - containerPort: 90, - pathPattern: 'a/b/c', - priority: 10, - protocol: ecs.Protocol.TCP, + // WHEN + new ApplicationMultipleTargetGroupsFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), }, - ], - }); + }); - // THEN - stack contains a load balancer and a service - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DesiredCount: 3, - EnableECSManagedTags: true, - HealthCheckGracePeriodSeconds: 2, - LaunchType: 'FARGATE', - LoadBalancers: [ - { - ContainerName: 'hello', - ContainerPort: 80, - TargetGroupArn: { - Ref: 'ServiceLBPublicListenerECSTargetGrouphello80Group233A4D54', - }, - }, - { - ContainerName: 'hello', - ContainerPort: 90, - TargetGroupArn: { - Ref: 'ServiceLBPublicListenerECSTargetGrouphello90GroupE58E4EAB', - }, - }, - ], - NetworkConfiguration: { - AwsvpcConfiguration: { - AssignPublicIp: 'ENABLED', - SecurityGroups: [ - { - 'Fn::GetAtt': [ - 'ServiceSecurityGroupEEA09B68', - 'GroupId', - ], - }, - ], - Subnets: [ - { - Ref: 'VPCPublicSubnet1SubnetB4246D30', + // THEN - stack contains a load balancer and a service + Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::LoadBalancer', 1); + + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + LaunchType: 'FARGATE', + LoadBalancers: [ + { + ContainerName: 'web', + ContainerPort: 80, + TargetGroupArn: { + Ref: 'ServiceLBPublicListenerECSGroup0CC8688C', }, - { - Ref: 'VPCPublicSubnet2Subnet74179F39', + }, + ], + }); + + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Image: 'test', + LogConfiguration: { + LogDriver: 'awslogs', + Options: { + 'awslogs-group': { + Ref: 'ServiceTaskDefwebLogGroup2A898F61', + }, + 'awslogs-stream-prefix': 'Service', + 'awslogs-region': { + Ref: 'AWS::Region', + }, + }, }, + Name: 'web', + PortMappings: [ + { + ContainerPort: 80, + Protocol: 'tcp', + }, + ], + }), + ], + Cpu: '256', + ExecutionRoleArn: { + 'Fn::GetAtt': [ + 'ServiceTaskDefExecutionRole919F7BE3', + 'Arn', ], }, - }, - PlatformVersion: ecs.FargatePlatformVersion.VERSION1_4, - PropagateTags: 'SERVICE', - ServiceName: 'myService', + Family: 'ServiceTaskDef79D79521', + Memory: '512', + NetworkMode: 'awsvpc', + RequiresCompatibilities: [ + 'FARGATE', + ], + }); }); - // ECS Exec - Template.fromStack(stack).hasResourceProperties('AWS::IAM::Policy', { - PolicyDocument: enableExecuteCommandPermissions, - PolicyName: 'TaskRoleDefaultPolicy07FC53DE', - Roles: [ - { - Ref: 'TaskRole30FC0FBB', + test('construct with all settings', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ApplicationMultipleTargetGroupsFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + containerName: 'hello', + containerPorts: [80, 90], + enableLogging: false, + environment: { + TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', + TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + }, + logDriver: new ecs.AwsLogDriver({ + streamPrefix: 'TestStream', + }), + family: 'Ec2TaskDef', + executionRole: new Role(stack, 'ExecutionRole', { + path: '/', + assumedBy: new CompositePrincipal( + new ServicePrincipal('ecs.amazonaws.com'), + new ServicePrincipal('ecs-tasks.amazonaws.com'), + ), + }), + taskRole: new Role(stack, 'TaskRole', { + assumedBy: new ServicePrincipal('ecs-tasks.amazonaws.com'), + }), + dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, }, - ], - }); + cpu: 256, + assignPublicIp: true, + memoryLimitMiB: 512, + desiredCount: 3, + enableECSManagedTags: true, + enableExecuteCommand: true, + healthCheckGracePeriod: Duration.millis(2000), + platformVersion: ecs.FargatePlatformVersion.VERSION1_4, + propagateTags: ecs.PropagatedTagSource.SERVICE, + serviceName: 'myService', + targetGroups: [ + { + containerPort: 80, + }, + { + containerPort: 90, + pathPattern: 'a/b/c', + priority: 10, + protocol: ecs.Protocol.TCP, + }, + ], + }); - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - { - Environment: [ - { - Name: 'TEST_ENVIRONMENT_VARIABLE1', - Value: 'test environment variable 1 value', + // THEN - stack contains a load balancer and a service + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DesiredCount: 3, + EnableECSManagedTags: true, + HealthCheckGracePeriodSeconds: 2, + LaunchType: 'FARGATE', + LoadBalancers: [ + { + ContainerName: 'hello', + ContainerPort: 80, + TargetGroupArn: { + Ref: 'ServiceLBPublicListenerECSTargetGrouphello80Group233A4D54', }, - { - Name: 'TEST_ENVIRONMENT_VARIABLE2', - Value: 'test environment variable 2 value', + }, + { + ContainerName: 'hello', + ContainerPort: 90, + TargetGroupArn: { + Ref: 'ServiceLBPublicListenerECSTargetGrouphello90GroupE58E4EAB', }, - ], - Essential: true, - Image: 'test', - LogConfiguration: { - LogDriver: 'awslogs', - Options: { - 'awslogs-group': { - Ref: 'ServiceTaskDefhelloLogGroup44519781', + }, + ], + NetworkConfiguration: { + AwsvpcConfiguration: { + AssignPublicIp: 'ENABLED', + SecurityGroups: [ + { + 'Fn::GetAtt': [ + 'ServiceSecurityGroupEEA09B68', + 'GroupId', + ], }, - 'awslogs-stream-prefix': 'TestStream', - 'awslogs-region': { - Ref: 'AWS::Region', + ], + Subnets: [ + { + Ref: 'VPCPublicSubnet1SubnetB4246D30', }, - }, + { + Ref: 'VPCPublicSubnet2Subnet74179F39', + }, + ], + }, + }, + PlatformVersion: ecs.FargatePlatformVersion.VERSION1_4, + PropagateTags: 'SERVICE', + ServiceName: 'myService', + }); + + // ECS Exec + Template.fromStack(stack).hasResourceProperties('AWS::IAM::Policy', { + PolicyDocument: enableExecuteCommandPermissions, + PolicyName: 'TaskRoleDefaultPolicy07FC53DE', + Roles: [ + { + Ref: 'TaskRole30FC0FBB', }, - Name: 'hello', - PortMappings: [ - { - ContainerPort: 80, - Protocol: 'tcp', + ], + }); + + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + { + Environment: [ + { + Name: 'TEST_ENVIRONMENT_VARIABLE1', + Value: 'test environment variable 1 value', + }, + { + Name: 'TEST_ENVIRONMENT_VARIABLE2', + Value: 'test environment variable 2 value', + }, + ], + Essential: true, + Image: 'test', + LogConfiguration: { + LogDriver: 'awslogs', + Options: { + 'awslogs-group': { + Ref: 'ServiceTaskDefhelloLogGroup44519781', + }, + 'awslogs-stream-prefix': 'TestStream', + 'awslogs-region': { + Ref: 'AWS::Region', + }, + }, }, - { - ContainerPort: 90, - Protocol: 'tcp', + Name: 'hello', + PortMappings: [ + { + ContainerPort: 80, + Protocol: 'tcp', + }, + { + ContainerPort: 90, + Protocol: 'tcp', + }, + ], + DockerLabels: { + label1: 'labelValue1', + label2: 'labelValue2', }, - ], - DockerLabels: { - label1: 'labelValue1', - label2: 'labelValue2', }, - }, - ], - Cpu: '256', - ExecutionRoleArn: { - 'Fn::GetAtt': [ - 'ExecutionRole605A040B', - 'Arn', ], - }, - Family: 'Ec2TaskDef', - Memory: '512', - NetworkMode: 'awsvpc', - RequiresCompatibilities: [ - 'FARGATE', - ], - TaskRoleArn: { - 'Fn::GetAtt': [ - 'TaskRole30FC0FBB', - 'Arn', + Cpu: '256', + ExecutionRoleArn: { + 'Fn::GetAtt': [ + 'ExecutionRole605A040B', + 'Arn', + ], + }, + Family: 'Ec2TaskDef', + Memory: '512', + NetworkMode: 'awsvpc', + RequiresCompatibilities: [ + 'FARGATE', ], - }, + TaskRoleArn: { + 'Fn::GetAtt': [ + 'TaskRole30FC0FBB', + 'Arn', + ], + }, + }); }); - }); - test('errors if no essential container in pre-defined task definition', () => { - // GIVEN - const stack = new Stack(); - const vpc = new Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + test('errors if no essential container in pre-defined task definition', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + const taskDefinition = new ecs.FargateTaskDefinition(stack, 'FargateTaskDef'); + + // THEN + expect(() => { + new ApplicationMultipleTargetGroupsFargateService(stack, 'Service', { + cluster, + taskDefinition, + }); + }).toThrow(/At least one essential container must be specified/); + }); - const taskDefinition = new ecs.FargateTaskDefinition(stack, 'FargateTaskDef'); + test('errors when setting both taskDefinition and taskImageOptions', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + const taskDefinition = new ecs.FargateTaskDefinition(stack, 'Ec2TaskDef'); + + // THEN + expect(() => { + new ApplicationMultipleTargetGroupsFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + }, + taskDefinition, + }); + }).toThrow(/You must specify only one of TaskDefinition or TaskImageOptions./); + }); - // THEN - expect(() => { - new ApplicationMultipleTargetGroupsFargateService(stack, 'Service', { - cluster, - taskDefinition, - }); - }).toThrow(/At least one essential container must be specified/); + test('errors when setting neither taskDefinition nor taskImageOptions', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // THEN + expect(() => { + new ApplicationMultipleTargetGroupsFargateService(stack, 'Service', { + cluster, + }); + }).toThrow(/You must specify one of: taskDefinition or image/); + }); }); +}); - test('errors when setting both taskDefinition and taskImageOptions', () => { - // GIVEN - const stack = new Stack(); - const vpc = new Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - const taskDefinition = new ecs.FargateTaskDefinition(stack, 'Ec2TaskDef'); - - // THEN - expect(() => { - new ApplicationMultipleTargetGroupsFargateService(stack, 'Service', { - cluster, +describe('Network Load Balancer', () => { + describe('NetworkLoadBalancedFargateService', () => { + test('construct with custom port', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + new NetworkLoadBalancedFargateService(stack, 'NLBService', { + cluster: cluster, + memoryLimitMiB: 1024, + cpu: 512, taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), + image: ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + containerPort: 81, }, - taskDefinition, + listenerPort: 8181, }); - }).toThrow(/You must specify only one of TaskDefinition or TaskImageOptions./); - }); - test('errors when setting neither taskDefinition nor taskImageOptions', () => { - // GIVEN - const stack = new Stack(); - const vpc = new Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // THEN - expect(() => { - new ApplicationMultipleTargetGroupsFargateService(stack, 'Service', { - cluster, + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::TargetGroup', { + Port: 81, + Protocol: 'TCP', + TargetType: 'ip', + VpcId: { + Ref: 'VPCB9E5F0B4', + }, }); - }).toThrow(/You must specify one of: taskDefinition or image/); - }); - - test('test Fargate loadbalancer construct with application load balancer name set', () => { - // GIVEN - const stack = new Stack(); - const vpc = new Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - }, - loadBalancerName: 'alb-test-load-balancer', }); + }); - // THEN - stack contains a load balancer and a service - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { - Name: 'alb-test-load-balancer', - }); + describe('NetworkMultipleTargetGroupsFargateService', () => { + test('construct with default settings', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - LaunchType: 'FARGATE', - LoadBalancers: [ - { - ContainerName: 'web', - ContainerPort: 80, - TargetGroupArn: { - Ref: 'ServiceLBPublicListenerECSGroup0CC8688C', - }, + // WHEN + new NetworkMultipleTargetGroupsFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), }, - ], - }); + }); - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Image: 'test', - LogConfiguration: { - LogDriver: 'awslogs', - Options: { - 'awslogs-group': { - Ref: 'ServiceTaskDefwebLogGroup2A898F61', - }, - 'awslogs-stream-prefix': 'Service', - 'awslogs-region': { - Ref: 'AWS::Region', - }, + // THEN - stack contains a load balancer and a service + Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::LoadBalancer', 1); + + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + LaunchType: 'FARGATE', + LoadBalancers: [ + { + ContainerName: 'web', + ContainerPort: 80, + TargetGroupArn: { + Ref: 'ServiceLBPublicListenerECSGroup0CC8688C', }, }, - Name: 'web', - PortMappings: [ - { - ContainerPort: 80, - Protocol: 'tcp', - }, - ], - }), - ], - Cpu: '256', - ExecutionRoleArn: { - 'Fn::GetAtt': [ - 'ServiceTaskDefExecutionRole919F7BE3', - 'Arn', ], - }, - Family: 'ServiceTaskDef79D79521', - Memory: '512', - NetworkMode: 'awsvpc', - RequiresCompatibilities: [ - 'FARGATE', - ], - }); - }); -}); - -describe('When Network Load Balancer', () => { - test('test Fargate loadbalanced construct with default settings', () => { - // GIVEN - const stack = new Stack(); - const vpc = new Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new NetworkMultipleTargetGroupsFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - }, - }); - - // THEN - stack contains a load balancer and a service - Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::LoadBalancer', 1); - - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - LaunchType: 'FARGATE', - LoadBalancers: [ - { - ContainerName: 'web', - ContainerPort: 80, - TargetGroupArn: { - Ref: 'ServiceLBPublicListenerECSGroup0CC8688C', - }, - }, - ], - }); + }); - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Image: 'test', - LogConfiguration: { - LogDriver: 'awslogs', - Options: { - 'awslogs-group': { - Ref: 'ServiceTaskDefwebLogGroup2A898F61', - }, - 'awslogs-stream-prefix': 'Service', - 'awslogs-region': { - Ref: 'AWS::Region', + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Image: 'test', + LogConfiguration: { + LogDriver: 'awslogs', + Options: { + 'awslogs-group': { + Ref: 'ServiceTaskDefwebLogGroup2A898F61', + }, + 'awslogs-stream-prefix': 'Service', + 'awslogs-region': { + Ref: 'AWS::Region', + }, }, }, - }, - Name: 'web', - PortMappings: [ - { - ContainerPort: 80, - Protocol: 'tcp', - }, + Name: 'web', + PortMappings: [ + { + ContainerPort: 80, + Protocol: 'tcp', + }, + ], + }), + ], + Cpu: '256', + ExecutionRoleArn: { + 'Fn::GetAtt': [ + 'ServiceTaskDefExecutionRole919F7BE3', + 'Arn', ], - }), - ], - Cpu: '256', - ExecutionRoleArn: { - 'Fn::GetAtt': [ - 'ServiceTaskDefExecutionRole919F7BE3', - 'Arn', + }, + Family: 'ServiceTaskDef79D79521', + Memory: '512', + NetworkMode: 'awsvpc', + RequiresCompatibilities: [ + 'FARGATE', ], - }, - Family: 'ServiceTaskDef79D79521', - Memory: '512', - NetworkMode: 'awsvpc', - RequiresCompatibilities: [ - 'FARGATE', - ], + }); }); - }); - - test('test Fargate loadbalanced construct with all settings', () => { - // GIVEN - const stack = new Stack(); - const vpc = new Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - // WHEN - new NetworkMultipleTargetGroupsFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - containerName: 'hello', - containerPorts: [80, 90], - enableLogging: false, - environment: { - TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', - TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', - }, - logDriver: new ecs.AwsLogDriver({ - streamPrefix: 'TestStream', - }), - family: 'Ec2TaskDef', - executionRole: new Role(stack, 'ExecutionRole', { - path: '/', - assumedBy: new CompositePrincipal( - new ServicePrincipal('ecs.amazonaws.com'), - new ServicePrincipal('ecs-tasks.amazonaws.com'), - ), - }), - taskRole: new Role(stack, 'TaskRole', { - assumedBy: new ServicePrincipal('ecs-tasks.amazonaws.com'), - }), - dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, - }, - cpu: 256, - assignPublicIp: true, - memoryLimitMiB: 512, - desiredCount: 3, - enableECSManagedTags: true, - enableExecuteCommand: true, - healthCheckGracePeriod: Duration.millis(2000), - propagateTags: ecs.PropagatedTagSource.SERVICE, - serviceName: 'myService', - targetGroups: [ - { - containerPort: 80, - }, - { - containerPort: 90, - }, - ], - }); + test('construct with all settings', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - // THEN - stack contains a load balancer and a service - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DesiredCount: 3, - EnableECSManagedTags: true, - HealthCheckGracePeriodSeconds: 2, - LaunchType: 'FARGATE', - LoadBalancers: [ - { - ContainerName: 'hello', - ContainerPort: 80, - TargetGroupArn: { - Ref: 'ServiceLBPublicListenerECSTargetGrouphello80Group233A4D54', + // WHEN + new NetworkMultipleTargetGroupsFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + containerName: 'hello', + containerPorts: [80, 90], + enableLogging: false, + environment: { + TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', + TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', }, + logDriver: new ecs.AwsLogDriver({ + streamPrefix: 'TestStream', + }), + family: 'Ec2TaskDef', + executionRole: new Role(stack, 'ExecutionRole', { + path: '/', + assumedBy: new CompositePrincipal( + new ServicePrincipal('ecs.amazonaws.com'), + new ServicePrincipal('ecs-tasks.amazonaws.com'), + ), + }), + taskRole: new Role(stack, 'TaskRole', { + assumedBy: new ServicePrincipal('ecs-tasks.amazonaws.com'), + }), + dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, }, - { - ContainerName: 'hello', - ContainerPort: 90, - TargetGroupArn: { - Ref: 'ServiceLBPublicListenerECSTargetGrouphello90GroupE58E4EAB', + cpu: 256, + assignPublicIp: true, + memoryLimitMiB: 512, + desiredCount: 3, + enableECSManagedTags: true, + enableExecuteCommand: true, + healthCheckGracePeriod: Duration.millis(2000), + propagateTags: ecs.PropagatedTagSource.SERVICE, + serviceName: 'myService', + targetGroups: [ + { + containerPort: 80, }, - }, - ], - NetworkConfiguration: { - AwsvpcConfiguration: { - AssignPublicIp: 'ENABLED', - SecurityGroups: [ - { - 'Fn::GetAtt': [ - 'ServiceSecurityGroupEEA09B68', - 'GroupId', - ], - }, - ], - Subnets: [ - { - Ref: 'VPCPublicSubnet1SubnetB4246D30', + { + containerPort: 90, + }, + ], + }); + + // THEN - stack contains a load balancer and a service + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DesiredCount: 3, + EnableECSManagedTags: true, + HealthCheckGracePeriodSeconds: 2, + LaunchType: 'FARGATE', + LoadBalancers: [ + { + ContainerName: 'hello', + ContainerPort: 80, + TargetGroupArn: { + Ref: 'ServiceLBPublicListenerECSTargetGrouphello80Group233A4D54', }, - { - Ref: 'VPCPublicSubnet2Subnet74179F39', + }, + { + ContainerName: 'hello', + ContainerPort: 90, + TargetGroupArn: { + Ref: 'ServiceLBPublicListenerECSTargetGrouphello90GroupE58E4EAB', }, - ], + }, + ], + NetworkConfiguration: { + AwsvpcConfiguration: { + AssignPublicIp: 'ENABLED', + SecurityGroups: [ + { + 'Fn::GetAtt': [ + 'ServiceSecurityGroupEEA09B68', + 'GroupId', + ], + }, + ], + Subnets: [ + { + Ref: 'VPCPublicSubnet1SubnetB4246D30', + }, + { + Ref: 'VPCPublicSubnet2Subnet74179F39', + }, + ], + }, }, - }, - PropagateTags: 'SERVICE', - ServiceName: 'myService', - }); + PropagateTags: 'SERVICE', + ServiceName: 'myService', + }); - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - { - Environment: [ - { - Name: 'TEST_ENVIRONMENT_VARIABLE1', - Value: 'test environment variable 1 value', - }, - { - Name: 'TEST_ENVIRONMENT_VARIABLE2', - Value: 'test environment variable 2 value', + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + { + Environment: [ + { + Name: 'TEST_ENVIRONMENT_VARIABLE1', + Value: 'test environment variable 1 value', + }, + { + Name: 'TEST_ENVIRONMENT_VARIABLE2', + Value: 'test environment variable 2 value', + }, + ], + Essential: true, + Image: 'test', + LogConfiguration: { + LogDriver: 'awslogs', + Options: { + 'awslogs-group': { + Ref: 'ServiceTaskDefhelloLogGroup44519781', + }, + 'awslogs-stream-prefix': 'TestStream', + 'awslogs-region': { + Ref: 'AWS::Region', + }, + }, }, - ], - Essential: true, - Image: 'test', - LogConfiguration: { - LogDriver: 'awslogs', - Options: { - 'awslogs-group': { - Ref: 'ServiceTaskDefhelloLogGroup44519781', + Name: 'hello', + PortMappings: [ + { + ContainerPort: 80, + Protocol: 'tcp', }, - 'awslogs-stream-prefix': 'TestStream', - 'awslogs-region': { - Ref: 'AWS::Region', + { + ContainerPort: 90, + Protocol: 'tcp', }, + ], + DockerLabels: { + label1: 'labelValue1', + label2: 'labelValue2', }, }, - Name: 'hello', - PortMappings: [ - { - ContainerPort: 80, - Protocol: 'tcp', - }, - { - ContainerPort: 90, - Protocol: 'tcp', - }, + ], + Cpu: '256', + ExecutionRoleArn: { + 'Fn::GetAtt': [ + 'ExecutionRole605A040B', + 'Arn', ], - DockerLabels: { - label1: 'labelValue1', - label2: 'labelValue2', - }, }, - ], - Cpu: '256', - ExecutionRoleArn: { - 'Fn::GetAtt': [ - 'ExecutionRole605A040B', - 'Arn', + Family: 'Ec2TaskDef', + Memory: '512', + NetworkMode: 'awsvpc', + RequiresCompatibilities: [ + 'FARGATE', ], - }, - Family: 'Ec2TaskDef', - Memory: '512', - NetworkMode: 'awsvpc', - RequiresCompatibilities: [ - 'FARGATE', - ], - TaskRoleArn: { - 'Fn::GetAtt': [ - 'TaskRole30FC0FBB', - 'Arn', - ], - }, - }); - }); - - test('EnableExecuteCommand generates correct IAM Permissions', () => { - // GIVEN - const stack = new Stack(); - const vpc = new Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new NetworkMultipleTargetGroupsFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - containerName: 'hello', - containerPorts: [80, 90], - enableLogging: false, - environment: { - TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', - TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', - }, - logDriver: new ecs.AwsLogDriver({ - streamPrefix: 'TestStream', - }), - family: 'Ec2TaskDef', - executionRole: new Role(stack, 'ExecutionRole', { - path: '/', - assumedBy: new CompositePrincipal( - new ServicePrincipal('ecs.amazonaws.com'), - new ServicePrincipal('ecs-tasks.amazonaws.com'), - ), - }), - taskRole: new Role(stack, 'TaskRole', { - assumedBy: new ServicePrincipal('ecs-tasks.amazonaws.com'), - }), - dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, - }, - cpu: 256, - assignPublicIp: true, - memoryLimitMiB: 512, - desiredCount: 3, - enableECSManagedTags: true, - enableExecuteCommand: true, - healthCheckGracePeriod: Duration.millis(2000), - propagateTags: ecs.PropagatedTagSource.SERVICE, - serviceName: 'myService', - targetGroups: [ - { - containerPort: 80, - }, - { - containerPort: 90, - }, - ], - }); - - // ECS Exec - Template.fromStack(stack).hasResourceProperties('AWS::IAM::Policy', { - PolicyDocument: enableExecuteCommandPermissions, - PolicyName: 'TaskRoleDefaultPolicy07FC53DE', - Roles: [ - { - Ref: 'TaskRole30FC0FBB', + TaskRoleArn: { + 'Fn::GetAtt': [ + 'TaskRole30FC0FBB', + 'Arn', + ], }, - ], - }); - }); - - test('errors if no essential container in pre-defined task definition', () => { - // GIVEN - const stack = new Stack(); - const vpc = new Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - const taskDefinition = new ecs.FargateTaskDefinition(stack, 'FargateTaskDef'); - - // THEN - expect(() => { - new NetworkMultipleTargetGroupsFargateService(stack, 'Service', { - cluster, - taskDefinition, }); - }).toThrow(/At least one essential container must be specified/); - }); + }); - test('errors when setting both taskDefinition and taskImageOptions', () => { - // GIVEN - const stack = new Stack(); - const vpc = new Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - const taskDefinition = new ecs.FargateTaskDefinition(stack, 'Ec2TaskDef'); + test('EnableExecuteCommand generates correct IAM Permissions', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - // THEN - expect(() => { + // WHEN new NetworkMultipleTargetGroupsFargateService(stack, 'Service', { cluster, taskImageOptions: { image: ecs.ContainerImage.fromRegistry('test'), + containerName: 'hello', + containerPorts: [80, 90], + enableLogging: false, + environment: { + TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', + TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + }, + logDriver: new ecs.AwsLogDriver({ + streamPrefix: 'TestStream', + }), + family: 'Ec2TaskDef', + executionRole: new Role(stack, 'ExecutionRole', { + path: '/', + assumedBy: new CompositePrincipal( + new ServicePrincipal('ecs.amazonaws.com'), + new ServicePrincipal('ecs-tasks.amazonaws.com'), + ), + }), + taskRole: new Role(stack, 'TaskRole', { + assumedBy: new ServicePrincipal('ecs-tasks.amazonaws.com'), + }), + dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, }, - taskDefinition, + cpu: 256, + assignPublicIp: true, + memoryLimitMiB: 512, + desiredCount: 3, + enableECSManagedTags: true, + enableExecuteCommand: true, + healthCheckGracePeriod: Duration.millis(2000), + propagateTags: ecs.PropagatedTagSource.SERVICE, + serviceName: 'myService', + targetGroups: [ + { + containerPort: 80, + }, + { + containerPort: 90, + }, + ], }); - }).toThrow(/You must specify only one of TaskDefinition or TaskImageOptions./); - }); - test('errors when setting neither taskDefinition nor taskImageOptions', () => { - // GIVEN - const stack = new Stack(); - const vpc = new Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // THEN - expect(() => { - new NetworkMultipleTargetGroupsFargateService(stack, 'Service', { - cluster, + // ECS Exec + Template.fromStack(stack).hasResourceProperties('AWS::IAM::Policy', { + PolicyDocument: enableExecuteCommandPermissions, + PolicyName: 'TaskRoleDefaultPolicy07FC53DE', + Roles: [ + { + Ref: 'TaskRole30FC0FBB', + }, + ], }); - }).toThrow(/You must specify one of: taskDefinition or image/); - }); - - test('test Fargate networkloadbalanced construct with custom Port', () => { - // GIVEN - const stack = new Stack(); - const vpc = new Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - new NetworkLoadBalancedFargateService(stack, 'NLBService', { - cluster: cluster, - memoryLimitMiB: 1024, - cpu: 512, - taskImageOptions: { - image: ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - containerPort: 81, - }, - listenerPort: 8181, }); - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::TargetGroup', { - Port: 81, - Protocol: 'TCP', - TargetType: 'ip', - VpcId: { - Ref: 'VPCB9E5F0B4', - }, + test('errors if no essential container in pre-defined task definition', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + const taskDefinition = new ecs.FargateTaskDefinition(stack, 'FargateTaskDef'); + + // THEN + expect(() => { + new NetworkMultipleTargetGroupsFargateService(stack, 'Service', { + cluster, + taskDefinition, + }); + }).toThrow(/At least one essential container must be specified/); }); - }); - test('test Fargate multinetworkloadbalanced construct with custom Port', () => { - // GIVEN - const stack = new Stack(); - const vpc = new Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + test('errors when setting both taskDefinition and taskImageOptions', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + const taskDefinition = new ecs.FargateTaskDefinition(stack, 'Ec2TaskDef'); + + // THEN + expect(() => { + new NetworkMultipleTargetGroupsFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + }, + taskDefinition, + }); + }).toThrow(/You must specify only one of TaskDefinition or TaskImageOptions./); + }); - new NetworkMultipleTargetGroupsFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - }, + test('errors when setting neither taskDefinition nor taskImageOptions', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // THEN + expect(() => { + new NetworkMultipleTargetGroupsFargateService(stack, 'Service', { + cluster, + }); + }).toThrow(/You must specify one of: taskDefinition or image/); }); - new NetworkMultipleTargetGroupsFargateService(stack, 'NLBService', { - cluster: cluster, - memoryLimitMiB: 1024, - cpu: 512, - taskImageOptions: { - image: ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - loadBalancers: [ - { - name: 'lb1', - listeners: [ - { name: 'listener1', port: 8181 }, - ], + test('construct with custom port', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + new NetworkMultipleTargetGroupsFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), }, - ], - targetGroups: [{ - containerPort: 81, - }], - }); + }); - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::TargetGroup', { - Port: 81, - Protocol: 'TCP', - TargetType: 'ip', - VpcId: { - Ref: 'VPCB9E5F0B4', - }, - }); - }); + new NetworkMultipleTargetGroupsFargateService(stack, 'NLBService', { + cluster: cluster, + memoryLimitMiB: 1024, + cpu: 512, + taskImageOptions: { + image: ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + }, + loadBalancers: [ + { + name: 'lb1', + listeners: [ + { name: 'listener1', port: 8181 }, + ], + }, + ], + targetGroups: [{ + containerPort: 81, + }], + }); - test('Fargate multinetworkloadbalanced construct errors when container port range is set for essential container', () => { - // GIVEN - const stack = new Stack(); - const vpc = new Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - const taskDefinition = new ecs.FargateTaskDefinition(stack, 'FargateTaskDef'); - - taskDefinition.addContainer('MainContainer', { - image: ecs.ContainerImage.fromRegistry('test'), - portMappings: [{ - containerPort: ContainerDefinition.CONTAINER_PORT_USE_RANGE, - containerPortRange: '8080-8081', - }], + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::TargetGroup', { + Port: 81, + Protocol: 'TCP', + TargetType: 'ip', + VpcId: { + Ref: 'VPCB9E5F0B4', + }, + }); }); - // THEN - expect(() => { - new NetworkMultipleTargetGroupsFargateService(stack, 'Service', { - cluster, - taskDefinition, + test('construct errors when container port range is set for essential container', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + const taskDefinition = new ecs.FargateTaskDefinition(stack, 'FargateTaskDef'); + + taskDefinition.addContainer('MainContainer', { + image: ecs.ContainerImage.fromRegistry('test'), + portMappings: [{ + containerPort: ContainerDefinition.CONTAINER_PORT_USE_RANGE, + containerPortRange: '8080-8081', + }], }); - }).toThrow('The first port mapping added to the default container must expose a single port'); + // THEN + expect(() => { + new NetworkMultipleTargetGroupsFargateService(stack, 'Service', { + cluster, + taskDefinition, + }); + }).toThrow('The first port mapping added to the default container must expose a single port'); + }); }); }); diff --git a/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service.test.ts b/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service.test.ts index 06512c525d465..c103d75c9a448 100644 --- a/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service.test.ts +++ b/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service.test.ts @@ -11,1286 +11,1290 @@ import * as route53 from '../../../aws-route53'; import * as cdk from '../../../core'; import * as ecsPatterns from '../../lib'; -test('setting loadBalancerType to Network creates an NLB Public', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { - Type: 'network', - Scheme: 'internet-facing', - }); -}); - -test('setting loadBalancerType to Network and publicLoadBalancer to false creates an NLB Private', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - publicLoadBalancer: false, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { - Type: 'network', - Scheme: 'internal', - }); -}); - -test('setting vpc and cluster throws error', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - expect(() => new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - cluster, - vpc, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - })).toThrow(); -}); - -test('setting executionRole updated taskDefinition with given execution role', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - const executionRole = new iam.Role(stack, 'ExecutionRole', { - path: '/', - assumedBy: new iam.CompositePrincipal( - new iam.ServicePrincipal('ecs.amazonaws.com'), - new iam.ServicePrincipal('ecs-tasks.amazonaws.com'), - ), - }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - executionRole, - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ExecutionRoleArn: { 'Fn::GetAtt': ['ExecutionRole605A040B', 'Arn'] }, - }); -}); - -test('setting taskRole updated taskDefinition with given task role', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - const taskRole = new iam.Role(stack, 'taskRoleTest', { - path: '/', - assumedBy: new iam.CompositePrincipal( - new iam.ServicePrincipal('ecs.amazonaws.com'), - new iam.ServicePrincipal('ecs-tasks.amazonaws.com'), - ), - }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - taskRole, - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - TaskRoleArn: { 'Fn::GetAtt': ['taskRoleTest9DA66B6E', 'Arn'] }, - }); -}); - -test('setting containerName updates container name with given name', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - containerName: 'bob', - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Name: 'bob', - }), - ], - }); -}); - -test('not setting containerName updates container name with default', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Name: 'web', - }), - ], - }); -}); - -test('setting servicename updates service name with given name', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - serviceName: 'bob', - }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - ServiceName: 'bob', - }); -}); - -test('not setting servicename updates service name with default', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - ServiceName: Match.absent(), - }); -}); - -test('setting healthCheckGracePeriod works', () => { - // GIVEN - const stack = new cdk.Stack(); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - healthCheckGracePeriod: cdk.Duration.seconds(600), - }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - HealthCheckGracePeriodSeconds: 600, - }); -}); - -test('setting healthCheck works', () => { - // GIVEN - const stack = new cdk.Stack(); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - healthCheck: { - command: ['CMD-SHELL', 'curl -f http://localhost/ || exit 1'], - interval: cdk.Duration.minutes(1), - retries: 5, - startPeriod: cdk.Duration.minutes(1), - timeout: cdk.Duration.minutes(1), - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: Match.arrayWith([ - Match.objectLike({ - HealthCheck: { - Command: ['CMD-SHELL', 'curl -f http://localhost/ || exit 1'], - Interval: 60, - Retries: 5, - StartPeriod: 60, - Timeout: 60, +describe('ApplicationLoadBalancedFargateService', () => { + test('setting healthCheckGracePeriod works', () => { + // GIVEN + const stack = new cdk.Stack(); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + }, + healthCheckGracePeriod: cdk.Duration.seconds(600), + }); + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + HealthCheckGracePeriodSeconds: 600, + }); + }); + + test('setting healthCheck works', () => { + // GIVEN + const stack = new cdk.Stack(); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + }, + healthCheck: { + command: ['CMD-SHELL', 'curl -f http://localhost/ || exit 1'], + interval: cdk.Duration.minutes(1), + retries: 5, + startPeriod: cdk.Duration.minutes(1), + timeout: cdk.Duration.minutes(1), + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: Match.arrayWith([ + Match.objectLike({ + HealthCheck: { + Command: ['CMD-SHELL', 'curl -f http://localhost/ || exit 1'], + Interval: 60, + Retries: 5, + StartPeriod: 60, + Timeout: 60, + }, + }), + ]), + }); + }); + + test('selecting correct vpcSubnets', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'Vpc', { + maxAzs: 2, + subnetConfiguration: [ + { + subnetType: ec2.SubnetType.PUBLIC, + cidrMask: 20, + name: 'Public', }, - }), - ]), - }); -}); - -test('selecting correct vpcSubnets', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'Vpc', { - maxAzs: 2, - subnetConfiguration: [ - { - subnetType: ec2.SubnetType.PUBLIC, - cidrMask: 20, - name: 'Public', + { + subnetType: ec2.SubnetType.PRIVATE_ISOLATED, + cidrMask: 20, + name: 'ISOLATED', + }, + ], + }); + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + vpc, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), }, - { + taskSubnets: { subnetType: ec2.SubnetType.PRIVATE_ISOLATED, - cidrMask: 20, - name: 'ISOLATED', }, - ], - }); - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - vpc, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - taskSubnets: { - subnetType: ec2.SubnetType.PRIVATE_ISOLATED, - }, - }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - NetworkConfiguration: { - AwsvpcConfiguration: { - Subnets: [ - { - Ref: 'VpcISOLATEDSubnet1Subnet80F07FA0', - }, - { - Ref: 'VpcISOLATEDSubnet2SubnetB0B548C3', - }, - ], + }); + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + NetworkConfiguration: { + AwsvpcConfiguration: { + Subnets: [ + { + Ref: 'VpcISOLATEDSubnet1Subnet80F07FA0', + }, + { + Ref: 'VpcISOLATEDSubnet2SubnetB0B548C3', + }, + ], + }, }, - }, + }); }); -}); -test('target group uses HTTP/80 as default', () => { - // GIVEN - const stack = new cdk.Stack(); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::TargetGroup', { - Port: 80, - Protocol: 'HTTP', - }); -}); + test('target group uses HTTP/80 as default', () => { + // GIVEN + const stack = new cdk.Stack(); -test('target group uses HTTPS/443 when configured', () => { - // GIVEN - const stack = new cdk.Stack(); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - targetProtocol: ApplicationProtocol.HTTPS, - }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::TargetGroup', { - Port: 443, - Protocol: 'HTTPS', - }); -}); - -test('setting platform version', () => { - // GIVEN - const stack = new cdk.Stack(); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - platformVersion: ecs.FargatePlatformVersion.VERSION1_4, - }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - PlatformVersion: ecs.FargatePlatformVersion.VERSION1_4, - }); -}); - -test('test load balanced service with family defined', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - enableLogging: false, - environment: { - TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', - TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), }, - family: 'fargate-task-family', - }, - desiredCount: 2, - memoryLimitMiB: 512, - serviceName: 'fargate-test-service', - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DesiredCount: 2, - LaunchType: 'FARGATE', - ServiceName: 'fargate-test-service', - }); - - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Environment: [ - { - Name: 'TEST_ENVIRONMENT_VARIABLE1', - Value: 'test environment variable 1 value', - }, - { - Name: 'TEST_ENVIRONMENT_VARIABLE2', - Value: 'test environment variable 2 value', - }, - ], - Image: '/aws/aws-example-app', - }), - ], - Family: 'fargate-task-family', - }); -}); - -test('setting ALB deployment controller', () => { - // GIVEN - const stack = new cdk.Stack(); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - deploymentController: { - type: ecs.DeploymentControllerType.CODE_DEPLOY, - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DeploymentController: { - Type: 'CODE_DEPLOY', - }, - }); -}); - -test('setting a command for taskImageOptions in an ApplicationLoadBalancedFargateService works', () => { - // GIVEN - const stack = new cdk.Stack(); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - command: ['./app/bin/start.sh', '--foo'], - }, - }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Image: '/aws/aws-example-app', - Command: ['./app/bin/start.sh', '--foo'], - }), - ], - }); -}); - -test('setting an entryPoint for taskImageOptions in an ApplicationLoadBalancedFargateService works', () => { - // GIVEN - const stack = new cdk.Stack(); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - entryPoint: ['echo', 'foo'], - }, - }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Image: '/aws/aws-example-app', - EntryPoint: ['echo', 'foo'], + }); + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::TargetGroup', { + Port: 80, + Protocol: 'HTTP', + }); + }); + + test('target group uses HTTPS/443 when configured', () => { + // GIVEN + const stack = new cdk.Stack(); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + }, + targetProtocol: ApplicationProtocol.HTTPS, + }); + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::TargetGroup', { + Port: 443, + Protocol: 'HTTPS', + }); + }); + + test('setting platform version', () => { + // GIVEN + const stack = new cdk.Stack(); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + }, + platformVersion: ecs.FargatePlatformVersion.VERSION1_4, + }); + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + PlatformVersion: ecs.FargatePlatformVersion.VERSION1_4, + }); + }); + + test('load balanced service with family defined', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), }), - ], - }); -}); - -test('setting NLB deployment controller', () => { - // GIVEN - const stack = new cdk.Stack(); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - deploymentController: { - type: ecs.DeploymentControllerType.CODE_DEPLOY, - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DeploymentController: { - Type: 'CODE_DEPLOY', - }, - }); -}); - -test('setting ALB circuitBreaker works', () => { - // GIVEN - const stack = new cdk.Stack(); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - circuitBreaker: { rollback: true }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DeploymentConfiguration: { - DeploymentCircuitBreaker: { - Enable: true, - Rollback: true, + })); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + enableLogging: false, + environment: { + TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', + TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + }, + family: 'fargate-task-family', }, - }, - DeploymentController: { - Type: 'ECS', - }, - }); -}); - -test('setting NLB circuitBreaker works', () => { - // GIVEN - const stack = new cdk.Stack(); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - circuitBreaker: { rollback: true }, - }); + desiredCount: 2, + memoryLimitMiB: 512, + serviceName: 'fargate-test-service', + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DesiredCount: 2, + LaunchType: 'FARGATE', + ServiceName: 'fargate-test-service', + }); + + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Environment: [ + { + Name: 'TEST_ENVIRONMENT_VARIABLE1', + Value: 'test environment variable 1 value', + }, + { + Name: 'TEST_ENVIRONMENT_VARIABLE2', + Value: 'test environment variable 2 value', + }, + ], + Image: '/aws/aws-example-app', + }), + ], + Family: 'fargate-task-family', + }); + }); + + test('setting ALB deployment controller', () => { + // GIVEN + const stack = new cdk.Stack(); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + }, + deploymentController: { + type: ecs.DeploymentControllerType.CODE_DEPLOY, + }, + }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DeploymentConfiguration: { - DeploymentCircuitBreaker: { - Enable: true, - Rollback: true, + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DeploymentController: { + Type: 'CODE_DEPLOY', }, - }, - DeploymentController: { - Type: 'ECS', - }, + }); }); -}); -test('setting NLB special listener port to create the listener', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'FargateNlbService', { - cluster, - listenerPort: 2015, - taskImageOptions: { - containerPort: 2015, - image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), - }, - }); + test('setting a command for taskImageOption', () => { + // GIVEN + const stack = new cdk.Stack(); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { - DefaultActions: [ - Match.objectLike({ - Type: 'forward', + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + command: ['./app/bin/start.sh', '--foo'], + }, + }); + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Image: '/aws/aws-example-app', + Command: ['./app/bin/start.sh', '--foo'], + }), + ], + }); + }); + + test('setting an entryPoint for taskImageOptions', () => { + // GIVEN + const stack = new cdk.Stack(); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + entryPoint: ['echo', 'foo'], + }, + }); + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Image: '/aws/aws-example-app', + EntryPoint: ['echo', 'foo'], + }), + ], + }); + }); + + test('setting ALB circuitBreaker works', () => { + // GIVEN + const stack = new cdk.Stack(); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + }, + circuitBreaker: { rollback: true }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DeploymentConfiguration: { + DeploymentCircuitBreaker: { + Enable: true, + Rollback: true, + }, + }, + DeploymentController: { + Type: 'ECS', + }, + }); + }); + + test('setting ALB special listener port to create the listener', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { + cluster, + listenerPort: 2015, + taskImageOptions: { + containerPort: 2015, + image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { + DefaultActions: [ + Match.objectLike({ + Type: 'forward', + }), + ], + Port: 2015, + Protocol: 'HTTP', + }); + }); + + test('setting ALB HTTPS protocol to create the listener on 443', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { + cluster, + protocol: ApplicationProtocol.HTTPS, + domainName: 'domain.com', + domainZone: route53.HostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { + hostedZoneId: 'fakeId', + zoneName: 'domain.com', }), - ], - Port: 2015, - Protocol: 'TCP', - }); -}); - -test('setting ALB special listener port to create the listener', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { - cluster, - listenerPort: 2015, - taskImageOptions: { - containerPort: 2015, - image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { - DefaultActions: [ - Match.objectLike({ - Type: 'forward', + taskImageOptions: { + containerPort: 2015, + image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { + DefaultActions: [ + Match.objectLike({ + Type: 'forward', + }), + ], + Port: 443, + Protocol: 'HTTPS', + }); + }); + + test('setting ALB HTTPS correctly sets the recordset name', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { + cluster, + protocol: ApplicationProtocol.HTTPS, + domainName: 'test.domain.com', + domainZone: route53.HostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { + hostedZoneId: 'fakeId', + zoneName: 'domain.com.', }), - ], - Port: 2015, - Protocol: 'HTTP', - }); -}); - -test('setting ALB HTTPS protocol to create the listener on 443', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { - cluster, - protocol: ApplicationProtocol.HTTPS, - domainName: 'domain.com', - domainZone: route53.HostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { - hostedZoneId: 'fakeId', - zoneName: 'domain.com', - }), - taskImageOptions: { - containerPort: 2015, - image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { - DefaultActions: [ - Match.objectLike({ - Type: 'forward', + taskImageOptions: { + containerPort: 2015, + image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::Route53::RecordSet', { + Name: 'test.domain.com.', + }); + }); + + test('setting ALB cname option correctly sets the recordset type', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { + cluster, + protocol: ApplicationProtocol.HTTPS, + domainName: 'test.domain.com', + domainZone: route53.HostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { + hostedZoneId: 'fakeId', + zoneName: 'domain.com.', }), - ], - Port: 443, - Protocol: 'HTTPS', - }); -}); - -test('setting ALB HTTPS correctly sets the recordset name', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { - cluster, - protocol: ApplicationProtocol.HTTPS, - domainName: 'test.domain.com', - domainZone: route53.HostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { - hostedZoneId: 'fakeId', - zoneName: 'domain.com.', - }), - taskImageOptions: { - containerPort: 2015, - image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::Route53::RecordSet', { - Name: 'test.domain.com.', - }); -}); - -test('setting ALB cname option correctly sets the recordset type', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { - cluster, - protocol: ApplicationProtocol.HTTPS, - domainName: 'test.domain.com', - domainZone: route53.HostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { - hostedZoneId: 'fakeId', - zoneName: 'domain.com.', - }), - recordType: ecsPatterns.ApplicationLoadBalancedServiceRecordType.CNAME, - taskImageOptions: { - containerPort: 2015, - image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::Route53::RecordSet', { - Name: 'test.domain.com.', - Type: 'CNAME', - }); -}); - -test('setting ALB record type to NONE correctly omits the recordset', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { - cluster, - protocol: ApplicationProtocol.HTTPS, - domainName: 'test.domain.com', - domainZone: route53.HostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { - hostedZoneId: 'fakeId', - zoneName: 'domain.com.', - }), - recordType: ecsPatterns.ApplicationLoadBalancedServiceRecordType.NONE, - taskImageOptions: { - containerPort: 2015, - image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), - }, - }); - - // THEN - Template.fromStack(stack).resourceCountIs('AWS::Route53::RecordSet', 0); -}); - -test('setting NLB cname option correctly sets the recordset type', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'FargateNlbService', { - cluster, - domainName: 'test.domain.com', - domainZone: route53.HostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { - hostedZoneId: 'fakeId', - zoneName: 'domain.com.', - }), - recordType: ecsPatterns.NetworkLoadBalancedServiceRecordType.CNAME, - taskImageOptions: { - containerPort: 2015, - image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::Route53::RecordSet', { - Name: 'test.domain.com.', - Type: 'CNAME', - }); -}); - -test('setting NLB record type to NONE correctly omits the recordset', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'FargateNlbService', { - cluster, - domainName: 'test.domain.com', - domainZone: route53.HostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { - hostedZoneId: 'fakeId', - zoneName: 'domain.com.', - }), - recordType: ecsPatterns.NetworkLoadBalancedServiceRecordType.NONE, - taskImageOptions: { - containerPort: 2015, - image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), - }, - }); - - // THEN - Template.fromStack(stack).resourceCountIs('AWS::Route53::RecordSet', 0); -}); - -test('setting ALB HTTP protocol to create the listener on 80', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { - cluster, - protocol: ApplicationProtocol.HTTP, - taskImageOptions: { - containerPort: 2015, - image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { - DefaultActions: [ - Match.objectLike({ - Type: 'forward', + recordType: ecsPatterns.ApplicationLoadBalancedServiceRecordType.CNAME, + taskImageOptions: { + containerPort: 2015, + image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::Route53::RecordSet', { + Name: 'test.domain.com.', + Type: 'CNAME', + }); + }); + + test('setting ALB record type to NONE correctly omits the recordset', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { + cluster, + protocol: ApplicationProtocol.HTTPS, + domainName: 'test.domain.com', + domainZone: route53.HostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { + hostedZoneId: 'fakeId', + zoneName: 'domain.com.', }), - ], - Port: 80, - Protocol: 'HTTP', - }); -}); + recordType: ecsPatterns.ApplicationLoadBalancedServiceRecordType.NONE, + taskImageOptions: { + containerPort: 2015, + image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), + }, + }); -test('setting ALB without any protocol or listenerPort to create the listener on 80', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { - cluster, - taskImageOptions: { - containerPort: 2015, - image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), - }, + // THEN + Template.fromStack(stack).resourceCountIs('AWS::Route53::RecordSet', 0); }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { - DefaultActions: [ - Match.objectLike({ - Type: 'forward', - }), - ], - Port: 80, - Protocol: 'HTTP', - }); -}); + test('setting ALB HTTP protocol to create the listener on 80', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); -test('passing in existing network load balancer to NLB Fargate Service', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const nlb = new NetworkLoadBalancer(stack, 'NLB', { vpc }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - vpc, - loadBalancer: nlb, - taskImageOptions: { + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { + cluster, + protocol: ApplicationProtocol.HTTP, + taskImageOptions: { + containerPort: 2015, + image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { + DefaultActions: [ + Match.objectLike({ + Type: 'forward', + }), + ], + Port: 80, + Protocol: 'HTTP', + }); + }); + + test('setting ALB without any protocol or listenerPort to create the listener on 80', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { + cluster, + taskImageOptions: { + containerPort: 2015, + image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { + DefaultActions: [ + Match.objectLike({ + Type: 'forward', + }), + ], + Port: 80, + Protocol: 'HTTP', + }); + }); + + test('passing in previously created application load balancer', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'Vpc'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc, clusterName: 'MyCluster' }); + const sg = new ec2.SecurityGroup(stack, 'SecurityGroup', { vpc }); + cluster.connections.addSecurityGroup(sg); + const alb = new ApplicationLoadBalancer(stack, 'ALB', { vpc, securityGroup: sg }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + loadBalancer: alb, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + LaunchType: 'FARGATE', + }); + + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { + Type: 'application', + }); + }); + + test('passing in imported application load balancer and resources', () => { + // GIVEN + const stack1 = new cdk.Stack(); + const albArn = 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188'; + const vpc = new ec2.Vpc(stack1, 'Vpc'); + const cluster = new ecs.Cluster(stack1, 'Cluster', { vpc, clusterName: 'MyClusterName' }); + const sg = new ec2.SecurityGroup(stack1, 'SecurityGroup', { vpc }); + cluster.connections.addSecurityGroup(sg); + const alb = ApplicationLoadBalancer.fromApplicationLoadBalancerAttributes(stack1, 'ALB', { + loadBalancerArn: albArn, + vpc, + securityGroupId: sg.securityGroupId, + loadBalancerDnsName: 'MyDnsName', + }); + + // WHEN + const taskDef = new ecs.FargateTaskDefinition(stack1, 'TaskDef', { + cpu: 1024, + memoryLimitMiB: 1024, + }); + const container = taskDef.addContainer('Container', { image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - LaunchType: 'FARGATE', - }); - - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { - Type: 'network', - }); -}); - -test('passing in imported network load balancer and resources to NLB Fargate service', () => { - // GIVEN - const app = new cdk.App(); - const stack1 = new cdk.Stack(app, 'MyStack'); - const vpc1 = new ec2.Vpc(stack1, 'VPC'); - const cluster1 = new ecs.Cluster(stack1, 'Cluster', { vpc: vpc1 }); - const nlbArn = 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188'; - const stack2 = new cdk.Stack(stack1, 'Stack2'); - const cluster2 = ecs.Cluster.fromClusterAttributes(stack2, 'ImportedCluster', { - vpc: vpc1, - securityGroups: cluster1.connections.securityGroups, - clusterName: 'cluster-name', - }); + memoryLimitMiB: 1024, + }); + container.addPortMappings({ + containerPort: 80, + }); + + new ecsPatterns.ApplicationLoadBalancedFargateService(stack1, 'FargateALBService', { + cluster, + loadBalancer: alb, + desiredCount: 1, + taskDefinition: taskDef, + }); + + // THEN + Template.fromStack(stack1).hasResourceProperties('AWS::ECS::Service', { + LaunchType: 'FARGATE', + LoadBalancers: [Match.objectLike({ ContainerName: 'Container', ContainerPort: 80 })], + }); + + Template.fromStack(stack1).resourceCountIs('AWS::ElasticLoadBalancingV2::TargetGroup', 1); + + Template.fromStack(stack1).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { + LoadBalancerArn: alb.loadBalancerArn, + Port: 80, + }); + }); + + test('passing in previously created security groups', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'Vpc'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc, clusterName: 'MyCluster' }); + const securityGroup = new ec2.SecurityGroup(stack, 'SecurityGroup', { + allowAllOutbound: false, + description: 'Example', + securityGroupName: 'Rolly', + vpc, + }); - // WHEN - const nlb2 = NetworkLoadBalancer.fromNetworkLoadBalancerAttributes(stack2, 'ImportedNLB', { - loadBalancerArn: nlbArn, - vpc: vpc1, - }); - const taskDef = new ecs.FargateTaskDefinition(stack2, 'TaskDef', { - cpu: 1024, - memoryLimitMiB: 1024, - }); - const container = taskDef.addContainer('myContainer', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 1024, - }); - container.addPortMappings({ - containerPort: 80, - }); + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + }, + securityGroups: [securityGroup], + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + LaunchType: 'FARGATE', + }); + + Template.fromStack(stack).hasResourceProperties('AWS::EC2::SecurityGroup', { + GroupDescription: 'Example', + GroupName: 'Rolly', + SecurityGroupEgress: [ + { + CidrIp: '255.255.255.255/32', + Description: 'Disallow all traffic', + FromPort: 252, + IpProtocol: 'icmp', + ToPort: 86, + }, + ], + VpcId: { + Ref: 'Vpc8378EB38', + }, + }); + }); + + test('domainName and domainZone not required for HTTPS listener with provided cert', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + const exampleDotComZone = new route53.PublicHostedZone(stack, 'ExampleDotCom', { + zoneName: 'example.com', + }); + const certificate = new Certificate(stack, 'Certificate', { + domainName: 'test.example.com', + validation: CertificateValidation.fromDns(exampleDotComZone), + }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { + cluster, + protocol: ApplicationProtocol.HTTPS, + + taskImageOptions: { + containerPort: 2015, + image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), + }, + certificate: certificate, + }); - new ecsPatterns.NetworkLoadBalancedFargateService(stack2, 'FargateNLBService', { - cluster: cluster2, - loadBalancer: nlb2, - desiredCount: 1, - taskDefinition: taskDef, + // THEN + Template.fromStack(stack).resourceCountIs('AWS::Route53::RecordSet', 0); }); - // THEN - Template.fromStack(stack2).hasResourceProperties('AWS::ECS::Service', { - LaunchType: 'FARGATE', - LoadBalancers: [Match.objectLike({ ContainerName: 'myContainer', ContainerPort: 80 })], - }); + test('with docker labels defined', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - Template.fromStack(stack2).resourceCountIs('AWS::ElasticLoadBalancingV2::TargetGroup', 1); + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Image: '/aws/aws-example-app', + DockerLabels: { + label1: 'labelValue1', + label2: 'labelValue2', + }, + }), + ], + }); + }); + + test('Passing in token for desiredCount will not throw error', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + const param = new cdk.CfnParameter(stack, 'prammm', { + type: 'Number', + default: 1, + }); + + // WHEN + const service = new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, + }, + desiredCount: param.valueAsNumber, + }); - Template.fromStack(stack2).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { - LoadBalancerArn: nlb2.loadBalancerArn, - Port: 80, + // THEN + expect(() => { + service.internalDesiredCount; + }).toBeTruthy; }); -}); -test('passing in previously created application load balancer to ALB Fargate Service', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'Vpc'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc, clusterName: 'MyCluster' }); - const sg = new ec2.SecurityGroup(stack, 'SecurityGroup', { vpc }); - cluster.connections.addSecurityGroup(sg); - const alb = new ApplicationLoadBalancer(stack, 'ALB', { vpc, securityGroup: sg }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - loadBalancer: alb, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - }); + test('multiple capacity provider strategies are set', () => { + // GIVEN + const stack = new cdk.Stack(); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - LaunchType: 'FARGATE', - }); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.enableFargateCapacityProviders(); - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { - Type: 'application', + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + memoryLimitMiB: 1024, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + }, + capacityProviderStrategies: [ + { + capacityProvider: 'FARGATE', + base: 1, + weight: 1, + }, + { + capacityProvider: 'FARGATE_SPOT', + base: 0, + weight: 2, + }, + ], + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + CapacityProviderStrategy: Match.arrayEquals([ + { + Base: 1, + CapacityProvider: 'FARGATE', + Weight: 1, + }, + { + Base: 0, + CapacityProvider: 'FARGATE_SPOT', + Weight: 2, + }, + ]), + }); + }); + + test('should validate minHealthyPercent', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + expect(() => new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, + }, + minHealthyPercent: 0.5, + })).toThrow(/Must be a non-negative integer/); + }); + + test('should validate maxHealthyPercent', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + expect(() => new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, + }, + maxHealthyPercent: 0.5, + })).toThrow(/Must be a non-negative integer/); + }); + + test('minHealthyPercent must be less than maxHealthyPercent', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + expect(() => new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, + }, + minHealthyPercent: 100, + maxHealthyPercent: 70, + })).toThrow(/must be less than/); }); }); -test('passing in imported application load balancer and resources to ALB Fargate Service', () => { - // GIVEN - const stack1 = new cdk.Stack(); - const albArn = 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188'; - const vpc = new ec2.Vpc(stack1, 'Vpc'); - const cluster = new ecs.Cluster(stack1, 'Cluster', { vpc, clusterName: 'MyClusterName' }); - const sg = new ec2.SecurityGroup(stack1, 'SecurityGroup', { vpc }); - cluster.connections.addSecurityGroup(sg); - const alb = ApplicationLoadBalancer.fromApplicationLoadBalancerAttributes(stack1, 'ALB', { - loadBalancerArn: albArn, - vpc, - securityGroupId: sg.securityGroupId, - loadBalancerDnsName: 'MyDnsName', - }); - - // WHEN - const taskDef = new ecs.FargateTaskDefinition(stack1, 'TaskDef', { - cpu: 1024, - memoryLimitMiB: 1024, - }); - const container = taskDef.addContainer('Container', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 1024, - }); - container.addPortMappings({ - containerPort: 80, - }); - - new ecsPatterns.ApplicationLoadBalancedFargateService(stack1, 'FargateALBService', { - cluster, - loadBalancer: alb, - desiredCount: 1, - taskDefinition: taskDef, - }); +describe('NetworkLoadBalancedFargateService', () => { + test('setting loadBalancerType to Network creates an NLB Public', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { + Type: 'network', + Scheme: 'internet-facing', + }); + }); + + test('setting loadBalancerType to Network and publicLoadBalancer to false creates an NLB Private', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + }, + publicLoadBalancer: false, + }); - // THEN - Template.fromStack(stack1).hasResourceProperties('AWS::ECS::Service', { - LaunchType: 'FARGATE', - LoadBalancers: [Match.objectLike({ ContainerName: 'Container', ContainerPort: 80 })], + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { + Type: 'network', + Scheme: 'internal', + }); }); - Template.fromStack(stack1).resourceCountIs('AWS::ElasticLoadBalancingV2::TargetGroup', 1); + test('setting vpc and cluster throws error', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - Template.fromStack(stack1).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { - LoadBalancerArn: alb.loadBalancerArn, - Port: 80, - }); -}); - -test('passing in previously created security groups to ALB Fargate Service', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'Vpc'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc, clusterName: 'MyCluster' }); - const securityGroup = new ec2.SecurityGroup(stack, 'SecurityGroup', { - allowAllOutbound: false, - description: 'Example', - securityGroupName: 'Rolly', - vpc, - }); + // WHEN + expect(() => new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + cluster, + vpc, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + }, + })).toThrow(); + }); + + test('setting executionRole updated taskDefinition with given execution role', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + const executionRole = new iam.Role(stack, 'ExecutionRole', { + path: '/', + assumedBy: new iam.CompositePrincipal( + new iam.ServicePrincipal('ecs.amazonaws.com'), + new iam.ServicePrincipal('ecs-tasks.amazonaws.com'), + ), + }); + + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + executionRole, + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ExecutionRoleArn: { 'Fn::GetAtt': ['ExecutionRole605A040B', 'Arn'] }, + }); + }); + + test('setting taskRole updated taskDefinition with given task role', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + const taskRole = new iam.Role(stack, 'taskRoleTest', { + path: '/', + assumedBy: new iam.CompositePrincipal( + new iam.ServicePrincipal('ecs.amazonaws.com'), + new iam.ServicePrincipal('ecs-tasks.amazonaws.com'), + ), + }); + + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + taskRole, + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + TaskRoleArn: { 'Fn::GetAtt': ['taskRoleTest9DA66B6E', 'Arn'] }, + }); + }); + + test('setting containerName updates container name with given name', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + containerName: 'bob', + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Name: 'bob', + }), + ], + }); + }); + + test('not setting containerName updates container name with default', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Name: 'web', + }), + ], + }); + }); + + test('setting servicename updates service name with given name', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + }, + serviceName: 'bob', + }); + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + ServiceName: 'bob', + }); + }); + + test('not setting servicename updates service name with default', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + }, + }); - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - securityGroups: [securityGroup], + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + ServiceName: Match.absent(), + }); }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - LaunchType: 'FARGATE', - }); + test('setting NLB deployment controller', () => { + // GIVEN + const stack = new cdk.Stack(); - Template.fromStack(stack).hasResourceProperties('AWS::EC2::SecurityGroup', { - GroupDescription: 'Example', - GroupName: 'Rolly', - SecurityGroupEgress: [ - { - CidrIp: '255.255.255.255/32', - Description: 'Disallow all traffic', - FromPort: 252, - IpProtocol: 'icmp', - ToPort: 86, + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), }, - ], - VpcId: { - Ref: 'Vpc8378EB38', - }, - }); -}); - -test('domainName and domainZone not required for HTTPS listener with provided cert', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - const exampleDotComZone = new route53.PublicHostedZone(stack, 'ExampleDotCom', { - zoneName: 'example.com', - }); - const certificate = new Certificate(stack, 'Certificate', { - domainName: 'test.example.com', - validation: CertificateValidation.fromDns(exampleDotComZone), - }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'FargateAlbService', { - cluster, - protocol: ApplicationProtocol.HTTPS, + deploymentController: { + type: ecs.DeploymentControllerType.CODE_DEPLOY, + }, + }); - taskImageOptions: { - containerPort: 2015, - image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), - }, - certificate: certificate, + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DeploymentController: { + Type: 'CODE_DEPLOY', + }, + }); }); - // THEN - Template.fromStack(stack).resourceCountIs('AWS::Route53::RecordSet', 0); -}); + test('setting NLB circuitBreaker works', () => { + // GIVEN + const stack = new cdk.Stack(); -test('test ALB load balanced service with docker labels defined', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Image: '/aws/aws-example-app', - DockerLabels: { - label1: 'labelValue1', - label2: 'labelValue2', + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + }, + circuitBreaker: { rollback: true }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DeploymentConfiguration: { + DeploymentCircuitBreaker: { + Enable: true, + Rollback: true, }, + }, + DeploymentController: { + Type: 'ECS', + }, + }); + }); + + test('setting NLB special listener port to create the listener', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'FargateNlbService', { + cluster, + listenerPort: 2015, + taskImageOptions: { + containerPort: 2015, + image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { + DefaultActions: [ + Match.objectLike({ + Type: 'forward', + }), + ], + Port: 2015, + Protocol: 'TCP', + }); + }); + + test('setting NLB cname option correctly sets the recordset type', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'FargateNlbService', { + cluster, + domainName: 'test.domain.com', + domainZone: route53.HostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { + hostedZoneId: 'fakeId', + zoneName: 'domain.com.', }), - ], - }); -}); - -test('test Network load balanced service with docker labels defined', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Image: '/aws/aws-example-app', - DockerLabels: { - label1: 'labelValue1', - label2: 'labelValue2', - }, + recordType: ecsPatterns.NetworkLoadBalancedServiceRecordType.CNAME, + taskImageOptions: { + containerPort: 2015, + image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), + }, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::Route53::RecordSet', { + Name: 'test.domain.com.', + Type: 'CNAME', + }); + }); + + test('setting NLB record type to NONE correctly omits the recordset', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'FargateNlbService', { + cluster, + domainName: 'test.domain.com', + domainZone: route53.HostedZone.fromHostedZoneAttributes(stack, 'HostedZone', { + hostedZoneId: 'fakeId', + zoneName: 'domain.com.', }), - ], - }); -}); + recordType: ecsPatterns.NetworkLoadBalancedServiceRecordType.NONE, + taskImageOptions: { + containerPort: 2015, + image: ecs.ContainerImage.fromRegistry('abiosoft/caddy'), + }, + }); -test('Passing in token for desiredCount will not throw error', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - const param = new cdk.CfnParameter(stack, 'prammm', { - type: 'Number', - default: 1, + // THEN + Template.fromStack(stack).resourceCountIs('AWS::Route53::RecordSet', 0); }); - // WHEN - const service = new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, - }, - desiredCount: param.valueAsNumber, - }); + test('passing in existing network load balancer to NLB Fargate Service', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const nlb = new NetworkLoadBalancer(stack, 'NLB', { vpc }); - // THEN - expect(() => { - service.internalDesiredCount; - }).toBeTruthy; -}); - -test('ApplicationLoadBalancedFargateService multiple capacity provider strategies are set', () => { - // GIVEN - const stack = new cdk.Stack(); - - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.enableFargateCapacityProviders(); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - memoryLimitMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - }, - capacityProviderStrategies: [ - { - capacityProvider: 'FARGATE', - base: 1, - weight: 1, + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + vpc, + loadBalancer: nlb, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), }, - { - capacityProvider: 'FARGATE_SPOT', - base: 0, - weight: 2, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + LaunchType: 'FARGATE', + }); + + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { + Type: 'network', + }); + }); + + test('passing in imported network load balancer and resources to NLB Fargate service', () => { + // GIVEN + const app = new cdk.App(); + const stack1 = new cdk.Stack(app, 'MyStack'); + const vpc1 = new ec2.Vpc(stack1, 'VPC'); + const cluster1 = new ecs.Cluster(stack1, 'Cluster', { vpc: vpc1 }); + const nlbArn = 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188'; + const stack2 = new cdk.Stack(stack1, 'Stack2'); + const cluster2 = ecs.Cluster.fromClusterAttributes(stack2, 'ImportedCluster', { + vpc: vpc1, + securityGroups: cluster1.connections.securityGroups, + clusterName: 'cluster-name', + }); + + // WHEN + const nlb2 = NetworkLoadBalancer.fromNetworkLoadBalancerAttributes(stack2, 'ImportedNLB', { + loadBalancerArn: nlbArn, + vpc: vpc1, + }); + const taskDef = new ecs.FargateTaskDefinition(stack2, 'TaskDef', { + cpu: 1024, + memoryLimitMiB: 1024, + }); + const container = taskDef.addContainer('myContainer', { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + memoryLimitMiB: 1024, + }); + container.addPortMappings({ + containerPort: 80, + }); + + new ecsPatterns.NetworkLoadBalancedFargateService(stack2, 'FargateNLBService', { + cluster: cluster2, + loadBalancer: nlb2, + desiredCount: 1, + taskDefinition: taskDef, + }); + + // THEN + Template.fromStack(stack2).hasResourceProperties('AWS::ECS::Service', { + LaunchType: 'FARGATE', + LoadBalancers: [Match.objectLike({ ContainerName: 'myContainer', ContainerPort: 80 })], + }); + + Template.fromStack(stack2).resourceCountIs('AWS::ElasticLoadBalancingV2::TargetGroup', 1); + + Template.fromStack(stack2).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { + LoadBalancerArn: nlb2.loadBalancerArn, + Port: 80, + }); + }); + + test('test Network load balanced service with docker labels defined', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), + dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, }, - ], + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Image: '/aws/aws-example-app', + DockerLabels: { + label1: 'labelValue1', + label2: 'labelValue2', + }, + }), + ], + }); }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - CapacityProviderStrategy: Match.arrayEquals([ - { - Base: 1, - CapacityProvider: 'FARGATE', - Weight: 1, - }, - { - Base: 0, - CapacityProvider: 'FARGATE_SPOT', - Weight: 2, - }, - ]), - }); -}); + test('NetworkLoadBalancedFargateService multiple capacity provider strategies are set', () => { + // GIVEN + const stack = new cdk.Stack(); -test('NetworkLoadBalancedFargateService multiple capacity provider strategies are set', () => { - // GIVEN - const stack = new cdk.Stack(); - - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.enableFargateCapacityProviders(); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - cluster, - memoryLimitMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - }, - capacityProviderStrategies: [ - { - capacityProvider: 'FARGATE', - base: 1, - weight: 1, - }, - { - capacityProvider: 'FARGATE_SPOT', - base: 0, - weight: 2, - }, - ], - }); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.enableFargateCapacityProviders(); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - CapacityProviderStrategy: Match.arrayEquals([ - { - Base: 1, - CapacityProvider: 'FARGATE', - Weight: 1, + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + cluster, + memoryLimitMiB: 1024, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), }, - { - Base: 0, - CapacityProvider: 'FARGATE_SPOT', - Weight: 2, - }, - ]), + capacityProviderStrategies: [ + { + capacityProvider: 'FARGATE', + base: 1, + weight: 1, + }, + { + capacityProvider: 'FARGATE_SPOT', + base: 0, + weight: 2, + }, + ], + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + CapacityProviderStrategy: Match.arrayEquals([ + { + Base: 1, + CapacityProvider: 'FARGATE', + Weight: 1, + }, + { + Base: 0, + CapacityProvider: 'FARGATE_SPOT', + Weight: 2, + }, + ]), + }); }); }); - -test('should validate minHealthyPercent', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - expect(() => new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, - }, - minHealthyPercent: 0.5, - })).toThrow(/Must be a non-negative integer/); -}); - -test('should validate maxHealthyPercent', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - expect(() => new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, - }, - maxHealthyPercent: 0.5, - })).toThrow(/Must be a non-negative integer/); -}); - -test('minHealthyPercent must be less than maxHealthyPercent', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - expect(() => new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, - }, - minHealthyPercent: 100, - maxHealthyPercent: 70, - })).toThrow(/must be less than/); -}); From 03e82d10c29c912f223ec9927c884eb358191e07 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Feb 2024 15:46:53 +0000 Subject: [PATCH 11/22] chore(deps): bump thollander/actions-comment-pull-request from 2.4.3 to 2.5.0 (#29159) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [thollander/actions-comment-pull-request](https://github.com/thollander/actions-comment-pull-request) from 2.4.3 to 2.5.0.
Release notes

Sourced from thollander/actions-comment-pull-request's releases.

v2.4.3 : Node 20 version support

What's Changed

Full Changelog: https://github.com/thollander/actions-comment-pull-request/compare/v2.4.3...v2.5.0

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=thollander/actions-comment-pull-request&package-manager=github_actions&previous-version=2.4.3&new-version=2.5.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
--- .github/workflows/request-cli-integ-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/request-cli-integ-test.yml b/.github/workflows/request-cli-integ-test.yml index a319fffbdf58f..667fe0816975f 100644 --- a/.github/workflows/request-cli-integ-test.yml +++ b/.github/workflows/request-cli-integ-test.yml @@ -46,7 +46,7 @@ jobs: git config --global user.email 'aws-cdk-automation@users.noreply.github.com' git push --force --atomic https://github.com/${{ github.repository }}.git FETCH_HEAD:test-main-pipeline - name: Explain next steps - uses: thollander/actions-comment-pull-request@1d3973dc4b8e1399c0620d3f2b1aa5e795465308 + uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 with: message: | :arrow_right: **PR build request submitted to `test-main-pipeline`** :arrow_left: From c979d6bd88f5a0c70611e0302cb6a089d0f11601 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Feb 2024 16:14:27 +0000 Subject: [PATCH 12/22] chore(deps): bump tj-actions/changed-files from 42.0.2 to 42.0.4 (#29160) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 42.0.2 to 42.0.4.
Release notes

Sourced from tj-actions/changed-files's releases.

v42.0.4

What's Changed

Full Changelog: https://github.com/tj-actions/changed-files/compare/v42...v42.0.4

v42.0.3

What's Changed

... (truncated)

Changelog

Sourced from tj-actions/changed-files's changelog.

Changelog

42.0.4 - (2024-02-18)

⚙️ Miscellaneous Tasks

  • Update formatting and add missing dist changes (#1940) (3f54ebb) - (Tonye Jack)

⬆️ Upgrades

  • Upgraded to v42.0.3 (#1939)

Co-authored-by: jackton1 17484350+jackton1@users.noreply.github.com Co-authored-by: GitHub Action action@github.com (6f070cf) - (tj-actions[bot])

42.0.3 - (2024-02-17)

🐛 Bug Fixes

  • payload_api, git_diff: Accessing correct property in payload and Replacing --quiet with --no-patch in git diff (#1934) (e3cac49) - (Aravind)
  • Broken link to matrix example workflow (#1918) (ea35f7e) - (KeisukeYamashita)

➕ Add

  • Added missing changes and modified dist assets. (07ac0ac) - (GitHub Action)

🔄 Update

  • Updated README.md (#1938)

Co-authored-by: jackton1 17484350+jackton1@users.noreply.github.com (ec75ae5) - (tj-actions[bot])

  • Update README.md (8eced8a) - (Tonye Jack)
  • Update README.md (b2d4e1b) - (Tonye Jack)
  • Updated README.md (#1920)

Co-authored-by: jackton1 17484350+jackton1@users.noreply.github.com (3399f88) - (tj-actions[bot])

  • Updated README.md (#1917)

Co-authored-by: jackton1 17484350+jackton1@users.noreply.github.com (8e56bc0) - (tj-actions[bot])

  • Update action.yml (f6d3fe5) - (Tonye Jack)
  • Update README.md (efa99ea) - (Tonye Jack)
  • Update README.md (6d8f9bd) - (Tonye Jack)
  • Updated README.md (#1915)

Co-authored-by: jackton1 17484350+jackton1@users.noreply.github.com (7daee9e) - (tj-actions[bot])

  • Update README.md (99c80bd) - (Tonye Jack)
  • Updated README.md (#1911)

Co-authored-by: jackton1 17484350+jackton1@users.noreply.github.com (aa31060) - (tj-actions[bot])

... (truncated)

Commits
  • 3f54ebb chore: update formatting and add missing dist changes (#1940)
  • 6f070cf Upgraded to v42.0.3 (#1939)
  • ec75ae5 Updated README.md (#1938)
  • 4333ab5 docs: add codesculpture as a contributor for code, and bug (#1937)
  • e3cac49 fix(payload_api, git_diff): Accessing correct property in payload and Replaci...
  • 68bd453 chore(deps): update github artifact actions to v4 (major) (#1936)
  • f0ce41b chore(deps): update dependency eslint-plugin-jest to v27.9.0
  • ce451bf chore(deps): update dependency @​types/node to v20.11.19
  • 7592e9e chore(deps): update dependency @​types/node to v20.11.18
  • 999653c chore(deps): lock file maintenance
  • Additional commits viewable in compare view

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tj-actions/changed-files&package-manager=github_actions&previous-version=42.0.2&new-version=42.0.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
--- .github/workflows/request-cli-integ-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/request-cli-integ-test.yml b/.github/workflows/request-cli-integ-test.yml index 667fe0816975f..fcf723a1a17d5 100644 --- a/.github/workflows/request-cli-integ-test.yml +++ b/.github/workflows/request-cli-integ-test.yml @@ -19,7 +19,7 @@ jobs: persist-credentials: false - name: Find changed cli files id: changed-cli-files - uses: tj-actions/changed-files@90a06d6ba9543371ab4df8eeca0be07ca6054959 + uses: tj-actions/changed-files@3f54ebb830831fc121d3263c1857cfbdc310cdb9 with: base_sha: ${{ github.event.pull_request.base.sha }} files_yaml: | From da0b82c21e1ddd3c301db8f98e39767e07ff32fc Mon Sep 17 00:00:00 2001 From: Tomoya Oda <38136327+tmyoda@users.noreply.github.com> Date: Mon, 19 Feb 2024 21:51:25 +0000 Subject: [PATCH 13/22] feat(rds): support Aurora MySQL 3.05.2 (#29166) This PR adds support for Aurora MySQL 3.05.2. https://docs.aws.amazon.com/AmazonRDS/latest/AuroraMySQLReleaseNotes/AuroraMySQL.Updates.3052.html ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/aws-cdk-lib/aws-rds/lib/cluster-engine.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/aws-cdk-lib/aws-rds/lib/cluster-engine.ts b/packages/aws-cdk-lib/aws-rds/lib/cluster-engine.ts index 4ea2476bde536..38a44394d9f12 100644 --- a/packages/aws-cdk-lib/aws-rds/lib/cluster-engine.ts +++ b/packages/aws-cdk-lib/aws-rds/lib/cluster-engine.ts @@ -548,6 +548,8 @@ export class AuroraMysqlEngineVersion { public static readonly VER_3_05_0 = AuroraMysqlEngineVersion.builtIn_8_0('3.05.0'); /** Version "8.0.mysql_aurora.3.05.1". */ public static readonly VER_3_05_1 = AuroraMysqlEngineVersion.builtIn_8_0('3.05.1'); + /** Version "8.0.mysql_aurora.3.05.2". */ + public static readonly VER_3_05_2 = AuroraMysqlEngineVersion.builtIn_8_0('3.05.2'); /** * Create a new AuroraMysqlEngineVersion with an arbitrary version. From 1fd548588274a83810a55090dcc3a3a152c5116d Mon Sep 17 00:00:00 2001 From: Hirotaka Tagawa / wafuwafu13 Date: Mon, 19 Feb 2024 23:38:00 +0000 Subject: [PATCH 14/22] refactor(ecs-patterns): organize tests (#29170) ### Issue # (if applicable) part of https://github.com/aws/aws-cdk/issues/29041, https://github.com/aws/aws-cdk/issues/29039 continuation of https://github.com/aws/aws-cdk/pull/29153 Closes #. ### Reason for this change tests in `packages/aws-cdk-lib/aws-ecs-patterns/test/ec2/l3s.test.ts` was disorganized. ### Description of changes - No logical change. - Organized tests in `packages/aws-cdk-lib/aws-ecs-patterns/test/ec2/l3s.test.ts` as below. ```ts describe('ApplicationLoadBalancedEc2Service', () => { ... }) describe('NetworkLoadBalancedEc2Service', () => { ... }) ``` - move tests of `ApplicationLoadBalancedFargateService`, `NetworkLoadBalancedFargateService` in `packages/aws-cdk-lib/aws-ecs-patterns/test/ec2/l3s.test.ts` to `packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service.test.ts`. ### Description of how you validated changes Pass unit tests ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../aws-ecs-patterns/test/ec2/l3s-v2.test.ts | 4 +- .../aws-ecs-patterns/test/ec2/l3s.test.ts | 2396 +++++------------ .../load-balanced-fargate-service-v2.test.ts | 289 ++ .../load-balanced-fargate-service.test.ts | 727 ++++- 4 files changed, 1709 insertions(+), 1707 deletions(-) diff --git a/packages/aws-cdk-lib/aws-ecs-patterns/test/ec2/l3s-v2.test.ts b/packages/aws-cdk-lib/aws-ecs-patterns/test/ec2/l3s-v2.test.ts index 325101a7ee30b..55954e07c6620 100644 --- a/packages/aws-cdk-lib/aws-ecs-patterns/test/ec2/l3s-v2.test.ts +++ b/packages/aws-cdk-lib/aws-ecs-patterns/test/ec2/l3s-v2.test.ts @@ -22,7 +22,7 @@ import { NamespaceType } from '../../../aws-servicediscovery'; import { Duration, Stack } from '../../../core'; import { ApplicationMultipleTargetGroupsEc2Service, NetworkMultipleTargetGroupsEc2Service } from '../../lib'; -describe('When Application Load Balancer', () => { +describe('ApplicationMultipleTargetGroupsEc2Service', () => { test('test ECS ALB construct with default settings', () => { // GIVEN const stack = new Stack(); @@ -893,7 +893,7 @@ describe('When Application Load Balancer', () => { }); }); -describe('When Network Load Balancer', () => { +describe('NetworkMultipleTargetGroupsEc2Service', () => { test('test ECS NLB construct with default settings', () => { // GIVEN const stack = new Stack(); diff --git a/packages/aws-cdk-lib/aws-ecs-patterns/test/ec2/l3s.test.ts b/packages/aws-cdk-lib/aws-ecs-patterns/test/ec2/l3s.test.ts index 0c65e1ae77733..3b454534c1e68 100644 --- a/packages/aws-cdk-lib/aws-ecs-patterns/test/ec2/l3s.test.ts +++ b/packages/aws-cdk-lib/aws-ecs-patterns/test/ec2/l3s.test.ts @@ -5,1855 +5,843 @@ import * as ec2 from '../../../aws-ec2'; import { MachineImage } from '../../../aws-ec2'; import * as ecs from '../../../aws-ecs'; import { AsgCapacityProvider } from '../../../aws-ecs'; -import { ApplicationLoadBalancer, ApplicationProtocol, ApplicationProtocolVersion, NetworkLoadBalancer, SslPolicy } from '../../../aws-elasticloadbalancingv2'; +import { ApplicationLoadBalancer, ApplicationProtocol, ApplicationProtocolVersion, NetworkLoadBalancer } from '../../../aws-elasticloadbalancingv2'; import { PublicHostedZone } from '../../../aws-route53'; import * as cloudmap from '../../../aws-servicediscovery'; import * as cdk from '../../../core'; -import { Duration } from '../../../core'; import * as ecsPatterns from '../../lib'; -test('test ECS loadbalanced construct', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); +describe('ApplicationLoadBalancedEc2Service', () => { + test('ECS loadbalanced construct', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); - // WHEN - new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { - cluster, - memoryLimitMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - environment: { - TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', - TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + // WHEN + new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { + cluster, + memoryLimitMiB: 1024, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + environment: { + TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', + TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + }, + dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, + entryPoint: ['echo', 'ecs-is-awesome'], + command: ['/bin/bash'], }, - dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, - entryPoint: ['echo', 'ecs-is-awesome'], - command: ['/bin/bash'], - }, - desiredCount: 2, - }); + desiredCount: 2, + }); - // THEN - stack contains a load balancer and a service - Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::LoadBalancer', 1); + // THEN - stack contains a load balancer and a service + Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::LoadBalancer', 1); - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DesiredCount: 2, - LaunchType: 'EC2', - }); + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DesiredCount: 2, + LaunchType: 'EC2', + }); - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Environment: [ - { - Name: 'TEST_ENVIRONMENT_VARIABLE1', - Value: 'test environment variable 1 value', - }, - { - Name: 'TEST_ENVIRONMENT_VARIABLE2', - Value: 'test environment variable 2 value', + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Environment: [ + { + Name: 'TEST_ENVIRONMENT_VARIABLE1', + Value: 'test environment variable 1 value', + }, + { + Name: 'TEST_ENVIRONMENT_VARIABLE2', + Value: 'test environment variable 2 value', + }, + ], + Memory: 1024, + DockerLabels: { + label1: 'labelValue1', + label2: 'labelValue2', }, - ], - Memory: 1024, - DockerLabels: { - label1: 'labelValue1', - label2: 'labelValue2', - }, - EntryPoint: ['echo', 'ecs-is-awesome'], - Command: ['/bin/bash'], - }), - ], + EntryPoint: ['echo', 'ecs-is-awesome'], + Command: ['/bin/bash'], + }), + ], + }); }); -}); -test('ApplicationLoadBalancedEc2Service multiple capacity provider strategies are set', () => { - // GIVEN - const stack = new cdk.Stack(); + test('multiple capacity provider strategies are set', () => { + // GIVEN + const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'AutoScalingGroupProvider1', { - autoScalingGroup: new AutoScalingGroup(stack, 'AutoScalingGroup1', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'AutoScalingGroupProvider2', { - autoScalingGroup: new AutoScalingGroup(stack, 'AutoScalingGroup2', { - vpc, - instanceType: new ec2.InstanceType('t3.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'AutoScalingGroupProvider1', { + autoScalingGroup: new AutoScalingGroup(stack, 'AutoScalingGroup1', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'AutoScalingGroupProvider2', { + autoScalingGroup: new AutoScalingGroup(stack, 'AutoScalingGroup2', { + vpc, + instanceType: new ec2.InstanceType('t3.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); - // WHEN - new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { - cluster, - memoryLimitMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - }, - capacityProviderStrategies: [ - { - capacityProvider: 'AutoScalingGroupProvider1', - base: 1, - weight: 1, - }, - { - capacityProvider: 'AutoScalingGroupProvider2', - base: 0, - weight: 2, + // WHEN + new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { + cluster, + memoryLimitMiB: 1024, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), }, - ], - }); + capacityProviderStrategies: [ + { + capacityProvider: 'AutoScalingGroupProvider1', + base: 1, + weight: 1, + }, + { + capacityProvider: 'AutoScalingGroupProvider2', + base: 0, + weight: 2, + }, + ], + }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - CapacityProviderStrategy: Match.arrayEquals([ - { - Base: 1, - CapacityProvider: 'AutoScalingGroupProvider1', - Weight: 1, - }, - { - Base: 0, - CapacityProvider: 'AutoScalingGroupProvider2', - Weight: 2, - }, - ]), + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + CapacityProviderStrategy: Match.arrayEquals([ + { + Base: 1, + CapacityProvider: 'AutoScalingGroupProvider1', + Weight: 1, + }, + { + Base: 0, + CapacityProvider: 'AutoScalingGroupProvider2', + Weight: 2, + }, + ]), + }); }); -}); -test('NetworkLoadBalancedEc2Service multiple capacity provider strategies are set', () => { - // GIVEN - const stack = new cdk.Stack(); - - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'AutoScalingGroupProvider1', { - autoScalingGroup: new AutoScalingGroup(stack, 'AutoScalingGroup1', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'AutoScalingGroupProvider2', { - autoScalingGroup: new AutoScalingGroup(stack, 'AutoScalingGroup2', { - vpc, - instanceType: new ec2.InstanceType('t3.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - - // WHEN - new ecsPatterns.NetworkLoadBalancedEc2Service(stack, 'Service', { - cluster, - memoryLimitMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - }, - capacityProviderStrategies: [ - { - capacityProvider: 'AutoScalingGroupProvider1', - base: 1, - weight: 1, - }, - { - capacityProvider: 'AutoScalingGroupProvider2', - base: 0, - weight: 2, - }, - ], - }); + test('test ECS loadbalanced construct with memoryReservationMiB', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - CapacityProviderStrategy: Match.arrayEquals([ - { - Base: 1, - CapacityProvider: 'AutoScalingGroupProvider1', - Weight: 1, - }, - { - Base: 0, - CapacityProvider: 'AutoScalingGroupProvider2', - Weight: 2, + // WHEN + new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { + cluster, + memoryReservationMiB: 1024, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), }, - ]), - }); -}); - -test('setting vpc and cluster throws error', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - expect(() => new ecsPatterns.NetworkLoadBalancedEc2Service(stack, 'Service', { - cluster, - vpc, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), - }, - })).toThrow(); -}); + }); -test('test ECS loadbalanced construct with memoryReservationMiB', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); + // THEN - stack contains a load balancer and a service + Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::LoadBalancer', 1); - // WHEN - new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { - cluster, - memoryReservationMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - }, + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + MemoryReservation: 1024, + }), + ], + }); }); - // THEN - stack contains a load balancer and a service - Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::LoadBalancer', 1); - - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - MemoryReservation: 1024, + test('creates AWS Cloud Map service for Private DNS namespace with application load balanced ec2 service', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'MyVpc', {}); + const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), }), - ], - }); -}); - -test('creates AWS Cloud Map service for Private DNS namespace with application load balanced ec2 service', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'MyVpc', {}); - const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); + })); - // WHEN - cluster.addDefaultCloudMapNamespace({ - name: 'foo.com', - type: cloudmap.NamespaceType.DNS_PRIVATE, - }); - - new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { - cluster, - taskImageOptions: { - containerPort: 8000, - image: ecs.ContainerImage.fromRegistry('hello'), - }, - cloudMapOptions: { - name: 'myApp', - }, - memoryLimitMiB: 512, - }); + // WHEN + cluster.addDefaultCloudMapNamespace({ + name: 'foo.com', + type: cloudmap.NamespaceType.DNS_PRIVATE, + }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - ServiceRegistries: [ - { - ContainerName: 'web', - ContainerPort: 8000, - RegistryArn: { - 'Fn::GetAtt': [ - 'ServiceCloudmapServiceDE76B29D', - 'Arn', - ], - }, + new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { + cluster, + taskImageOptions: { + containerPort: 8000, + image: ecs.ContainerImage.fromRegistry('hello'), }, - ], - }); + cloudMapOptions: { + name: 'myApp', + }, + memoryLimitMiB: 512, + }); - Template.fromStack(stack).hasResourceProperties('AWS::ServiceDiscovery::Service', { - DnsConfig: { - DnsRecords: [ + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + ServiceRegistries: [ { - TTL: 60, - Type: 'SRV', + ContainerName: 'web', + ContainerPort: 8000, + RegistryArn: { + 'Fn::GetAtt': [ + 'ServiceCloudmapServiceDE76B29D', + 'Arn', + ], + }, }, ], - NamespaceId: { - 'Fn::GetAtt': [ - 'EcsClusterDefaultServiceDiscoveryNamespaceB0971B2F', - 'Id', - ], - }, - RoutingPolicy: 'MULTIVALUE', - }, - HealthCheckCustomConfig: { - FailureThreshold: 1, - }, - Name: 'myApp', - NamespaceId: { - 'Fn::GetAtt': [ - 'EcsClusterDefaultServiceDiscoveryNamespaceB0971B2F', - 'Id', - ], - }, - }); -}); - -test('creates AWS Cloud Map service for Private DNS namespace with network load balanced fargate service', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'MyVpc', {}); - const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - - // WHEN - cluster.addDefaultCloudMapNamespace({ - name: 'foo.com', - type: cloudmap.NamespaceType.DNS_PRIVATE, - }); - - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - containerPort: 8000, - image: ecs.ContainerImage.fromRegistry('hello'), - }, - cloudMapOptions: { - name: 'myApp', - }, - memoryLimitMiB: 512, - }); + }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - ServiceRegistries: [ - { - RegistryArn: { + Template.fromStack(stack).hasResourceProperties('AWS::ServiceDiscovery::Service', { + DnsConfig: { + DnsRecords: [ + { + TTL: 60, + Type: 'SRV', + }, + ], + NamespaceId: { 'Fn::GetAtt': [ - 'ServiceCloudmapServiceDE76B29D', - 'Arn', + 'EcsClusterDefaultServiceDiscoveryNamespaceB0971B2F', + 'Id', ], }, + RoutingPolicy: 'MULTIVALUE', }, - ], - }); - - Template.fromStack(stack).hasResourceProperties('AWS::ServiceDiscovery::Service', { - DnsConfig: { - DnsRecords: [ - { - TTL: 60, - Type: 'A', - }, - ], + HealthCheckCustomConfig: { + FailureThreshold: 1, + }, + Name: 'myApp', NamespaceId: { 'Fn::GetAtt': [ 'EcsClusterDefaultServiceDiscoveryNamespaceB0971B2F', 'Id', ], }, - RoutingPolicy: 'MULTIVALUE', - }, - HealthCheckCustomConfig: { - FailureThreshold: 1, - }, - Name: 'myApp', - NamespaceId: { - 'Fn::GetAtt': [ - 'EcsClusterDefaultServiceDiscoveryNamespaceB0971B2F', - 'Id', - ], - }, - }); -}); - -test('test Fargate loadbalanced construct', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - environment: { - TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', - TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', - }, - dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, - entryPoint: ['echo', 'running-on-fargate'], - command: ['/bin/bash'], - }, - desiredCount: 2, + }); }); - // THEN - stack contains a load balancer and a service - Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::LoadBalancer', 1); - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Environment: [ - { - Name: 'TEST_ENVIRONMENT_VARIABLE1', - Value: 'test environment variable 1 value', - }, - { - Name: 'TEST_ENVIRONMENT_VARIABLE2', - Value: 'test environment variable 2 value', - }, - ], - LogConfiguration: { - LogDriver: 'awslogs', - Options: { - 'awslogs-group': { Ref: 'ServiceTaskDefwebLogGroup2A898F61' }, - 'awslogs-stream-prefix': 'Service', - 'awslogs-region': { Ref: 'AWS::Region' }, - }, - }, - DockerLabels: { - label1: 'labelValue1', - label2: 'labelValue2', + test('throws if desiredTaskCount is 0', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); + + // THEN + expect(() => + new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { + cluster, + memoryLimitMiB: 1024, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), }, - EntryPoint: ['echo', 'running-on-fargate'], - Command: ['/bin/bash'], + desiredCount: 0, }), - ], - }); - - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DesiredCount: 2, - LaunchType: 'FARGATE', - }); - - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { - Port: 80, - Protocol: 'HTTP', - }); -}); + ).toThrow(/You must specify a desiredCount greater than 0/); + }); + + test('having *HealthyPercent properties', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); -test('test Fargate loadbalanced construct opting out of log driver creation', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + // WHEN + new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { + cluster, + memoryLimitMiB: 1024, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + }, + desiredCount: 1, + minHealthyPercent: 100, + maxHealthyPercent: 200, + }); - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - enableLogging: false, - environment: { - TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', - TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DeploymentConfiguration: { + MinimumHealthyPercent: 100, + MaximumPercent: 200, }, - }, - desiredCount: 2, + }); }); - // THEN - stack contains a load balancer and a service - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Environment: [ - { - Name: 'TEST_ENVIRONMENT_VARIABLE1', - Value: 'test environment variable 1 value', - }, - { - Name: 'TEST_ENVIRONMENT_VARIABLE2', - Value: 'test environment variable 2 value', - }, - ], - LogConfiguration: Match.absent(), + test('includes provided protocol version properties', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), }), - ], - }); -}); + })); + const zone = new PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }); -test('test Fargate loadbalanced construct with TLS', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - const zone = new PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - }, - domainName: 'api.example.com', - domainZone: zone, - certificate: Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), - sslPolicy: SslPolicy.TLS12_EXT, - }); - - // THEN - stack contains a load balancer and a service - Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::LoadBalancer', 1); + // WHEN + new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { + cluster, + memoryLimitMiB: 1024, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + }, + desiredCount: 1, + domainName: 'api.example.com', + domainZone: zone, + protocol: ApplicationProtocol.HTTPS, + protocolVersion: ApplicationProtocolVersion.GRPC, + }); - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { - Port: 443, - Protocol: 'HTTPS', - Certificates: [{ - CertificateArn: 'helloworld', - }], - SslPolicy: SslPolicy.TLS12_EXT, + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::TargetGroup', { + ProtocolVersion: 'GRPC', + }); }); - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::TargetGroup', { - Port: 80, - Protocol: 'HTTP', - TargetType: 'ip', - VpcId: { - Ref: 'VPCB9E5F0B4', - }, - }); + test('having deployment controller', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - LaunchType: 'FARGATE', - }); + // WHEN + new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { + cluster, + memoryLimitMiB: 1024, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + }, + deploymentController: { + type: ecs.DeploymentControllerType.CODE_DEPLOY, + }, + }); - Template.fromStack(stack).hasResourceProperties('AWS::Route53::RecordSet', { - Name: 'api.example.com.', - HostedZoneId: { - Ref: 'HostedZoneDB99F866', - }, - Type: 'A', - AliasTarget: { - HostedZoneId: { 'Fn::GetAtt': ['ServiceLBE9A1ADBC', 'CanonicalHostedZoneID'] }, - DNSName: { 'Fn::Join': ['', ['dualstack.', { 'Fn::GetAtt': ['ServiceLBE9A1ADBC', 'DNSName'] }]] }, - }, + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DeploymentController: { + Type: 'CODE_DEPLOY', + }, + }); }); -}); -test('test Fargateloadbalanced construct with TLS and default certificate', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - const zone = new PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }); + test('with circuit breaker', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - }, - domainName: 'api.example.com', - domainZone: zone, - protocol: ApplicationProtocol.HTTPS, - }); + // WHEN + new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { + cluster, + memoryLimitMiB: 1024, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + }, + circuitBreaker: { rollback: true }, + }); - // THEN - stack contains a load balancer, a service, and a certificate - Template.fromStack(stack).hasResourceProperties('AWS::CertificateManager::Certificate', { - DomainName: 'api.example.com', - DomainValidationOptions: [ - { - DomainName: 'api.example.com', - HostedZoneId: { - Ref: 'HostedZoneDB99F866', + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DeploymentConfiguration: { + DeploymentCircuitBreaker: { + Enable: true, + Rollback: true, }, }, - ], - ValidationMethod: 'DNS', + DeploymentController: { + Type: 'ECS', + }, + }); }); - Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::LoadBalancer', 1); + test('accepts previously created load balancer', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'Vpc'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc, clusterName: 'MyCluster' }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); + const sg = new ec2.SecurityGroup(stack, 'SG', { vpc }); + const alb = new ApplicationLoadBalancer(stack, 'NLB', { + vpc, + securityGroup: sg, + }); + const taskDef = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); + const container = taskDef.addContainer('Container', { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + memoryLimitMiB: 1024, + }); + container.addPortMappings({ containerPort: 80 }); - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { - Port: 443, - Protocol: 'HTTPS', - Certificates: [{ - CertificateArn: { - Ref: 'ServiceCertificateA7C65FE6', - }, - }], - }); + // WHEN + new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { + cluster, + loadBalancer: alb, + taskDefinition: taskDef, + }); - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - LaunchType: 'FARGATE', + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + LaunchType: 'EC2', + }); + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { + Type: 'application', + }); }); - Template.fromStack(stack).hasResourceProperties('AWS::Route53::RecordSet', { - Name: 'api.example.com.', - HostedZoneId: { - Ref: 'HostedZoneDB99F866', - }, - Type: 'A', - AliasTarget: { - HostedZoneId: { 'Fn::GetAtt': ['ServiceLBE9A1ADBC', 'CanonicalHostedZoneID'] }, - DNSName: { 'Fn::Join': ['', ['dualstack.', { 'Fn::GetAtt': ['ServiceLBE9A1ADBC', 'DNSName'] }]] }, - }, + test('accepts imported load balancer', () => { + // GIVEN + const stack = new cdk.Stack(); + const albArn = 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188'; + const vpc = new ec2.Vpc(stack, 'Vpc'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc, clusterName: 'MyCluster' }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); + const sg = new ec2.SecurityGroup(stack, 'SG', { vpc }); + const alb = ApplicationLoadBalancer.fromApplicationLoadBalancerAttributes(stack, 'ALB', { + loadBalancerArn: albArn, + vpc, + securityGroupId: sg.securityGroupId, + loadBalancerDnsName: 'MyName', + }); + const taskDef = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); + const container = taskDef.addContainer('Container', { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + memoryLimitMiB: 1024, + }); + container.addPortMappings({ + containerPort: 80, + }); + // WHEN + new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { + cluster, + loadBalancer: alb, + taskDefinition: taskDef, + }); + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + LaunchType: 'EC2', + LoadBalancers: [Match.objectLike({ ContainerName: 'Container', ContainerPort: 80 })], + }); + Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::TargetGroup', 1); + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { + LoadBalancerArn: alb.loadBalancerArn, + Port: 80, + }); }); -}); - -test('errors when setting domainName but not domainZone', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // THEN - expect(() => { - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + test('test ECS loadbalanced construct default/open security group', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); + // WHEN + new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { cluster, + memoryReservationMiB: 1024, taskImageOptions: { image: ecs.ContainerImage.fromRegistry('test'), }, - domainName: 'api.example.com', }); - }).toThrow(); -}); - -test('errors when setting both HTTP protocol and certificate', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + // THEN - Stack contains no ingress security group rules + Template.fromStack(stack).hasResourceProperties('AWS::EC2::SecurityGroup', { + SecurityGroupIngress: [Match.objectLike({ + CidrIp: '0.0.0.0/0', + FromPort: 80, + IpProtocol: 'tcp', + ToPort: 80, + })], + }); + }); - // THEN - expect(() => { - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + test('test ECS loadbalanced construct closed security group', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); + const zone = new PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }); + // WHEN + new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { cluster, + memoryReservationMiB: 1024, taskImageOptions: { image: ecs.ContainerImage.fromRegistry('test'), }, - protocol: ApplicationProtocol.HTTP, + domainName: 'api.example.com', + domainZone: zone, certificate: Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), + openListener: false, + redirectHTTP: true, + }); + // THEN - Stack contains no ingress security group rules + Template.fromStack(stack).hasResourceProperties('AWS::EC2::SecurityGroup', { + SecurityGroupIngress: Match.absent(), }); - }).toThrow(); + }); }); -test('errors when setting both HTTP protocol and redirectHTTP', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); +describe('NetworkLoadBalancedEc2Service', () => { + test('setting vpc and cluster throws error', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - // THEN - expect(() => { - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + // WHEN + expect(() => new ecsPatterns.NetworkLoadBalancedEc2Service(stack, 'Service', { cluster, + vpc, taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), + image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'), }, - protocol: ApplicationProtocol.HTTP, - redirectHTTP: true, - }); - }).toThrow(); -}); - -test('does not throw errors when not setting HTTPS protocol but certificate for redirectHTTP', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - const zone = new PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }); - - // THEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - }, - domainName: 'api.example.com', - domainZone: zone, - redirectHTTP: true, - certificate: Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), + })).toThrow(); }); -}); -test('errors when setting HTTPS protocol but not domain name', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + test('multiple capacity provider strategies are set', () => { + // GIVEN + const stack = new cdk.Stack(); + + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'AutoScalingGroupProvider1', { + autoScalingGroup: new AutoScalingGroup(stack, 'AutoScalingGroup1', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'AutoScalingGroupProvider2', { + autoScalingGroup: new AutoScalingGroup(stack, 'AutoScalingGroup2', { + vpc, + instanceType: new ec2.InstanceType('t3.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); - // THEN - expect(() => { - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + // WHEN + new ecsPatterns.NetworkLoadBalancedEc2Service(stack, 'Service', { cluster, + memoryLimitMiB: 1024, taskImageOptions: { image: ecs.ContainerImage.fromRegistry('test'), }, - protocol: ApplicationProtocol.HTTPS, - }); - }).toThrow(); -}); - -test('errors when idleTimeout is over 4000 seconds', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // THEN - expect(() => { - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - enableLogging: false, - environment: { - TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', - TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', - }, - logDriver: new ecs.AwsLogDriver({ - streamPrefix: 'TestStream', - }), - }, - idleTimeout: Duration.seconds(5000), - desiredCount: 2, - }); - }).toThrowError(); -}); - -test('errors when idleTimeout is under 1 seconds', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // THEN - expect(() => { - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - enableLogging: false, - environment: { - TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', - TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', - }, - logDriver: new ecs.AwsLogDriver({ - streamPrefix: 'TestStream', - }), - }, - idleTimeout: Duration.seconds(0), - desiredCount: 2, - }); - }).toThrowError(); -}); - -test('passes when idleTimeout is between 1 and 4000 seconds', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // THEN - expect(() => { - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - enableLogging: false, - environment: { - TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', - TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', - }, - logDriver: new ecs.AwsLogDriver({ - streamPrefix: 'TestStream', - }), - }, - idleTimeout: Duration.seconds(4000), - desiredCount: 2, - }); - }).toBeTruthy(); -}); - -test('idletime is undefined when not set', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - enableLogging: false, - environment: { - TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', - TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', - }, - logDriver: new ecs.AwsLogDriver({ - streamPrefix: 'TestStream', - }), - }, - desiredCount: 2, - }); - - // THEN - stack contains default LoadBalancer Attributes - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { - LoadBalancerAttributes: [ - { - Key: 'deletion_protection.enabled', - Value: 'false', - }, - ], - }); -}); - -test('errors when idleTimeout is over 4000 seconds for multiAlbService', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - - // THEN - expect(() => { - new ecsPatterns.ApplicationMultipleTargetGroupsFargateService(stack, 'myService', { - cluster: new ecs.Cluster(stack, 'EcsCluster', { vpc }), - memoryLimitMiB: 256, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - enableExecuteCommand: true, - loadBalancers: [ - { - name: 'lb', - idleTimeout: Duration.seconds(400), - domainName: 'api.example.com', - domainZone: new PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }), - listeners: [ - { - name: 'listener', - protocol: ApplicationProtocol.HTTPS, - certificate: Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), - sslPolicy: SslPolicy.TLS12_EXT, - }, - ], - }, - { - name: 'lb2', - idleTimeout: Duration.seconds(5000), - domainName: 'frontend.com', - domainZone: new PublicHostedZone(stack, 'HostedZone2', { zoneName: 'frontend.com' }), - listeners: [ - { - name: 'listener2', - protocol: ApplicationProtocol.HTTPS, - certificate: Certificate.fromCertificateArn(stack, 'Cert2', 'helloworld'), - sslPolicy: SslPolicy.TLS12_EXT, - }, - ], - }, - ], - targetGroups: [ - { - containerPort: 80, - listener: 'listener', - }, - { - containerPort: 90, - pathPattern: 'a/b/c', - priority: 10, - listener: 'listener', - }, + capacityProviderStrategies: [ { - containerPort: 443, - listener: 'listener2', + capacityProvider: 'AutoScalingGroupProvider1', + base: 1, + weight: 1, }, { - containerPort: 80, - pathPattern: 'a/b/c', - priority: 10, - listener: 'listener2', + capacityProvider: 'AutoScalingGroupProvider2', + base: 0, + weight: 2, }, ], }); - }).toThrowError(); -}); - -test('errors when idleTimeout is under 1 seconds for multiAlbService', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - // THEN - expect(() => { - new ecsPatterns.ApplicationMultipleTargetGroupsFargateService(stack, 'myService', { - cluster: new ecs.Cluster(stack, 'EcsCluster', { vpc }), - memoryLimitMiB: 256, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - enableExecuteCommand: true, - loadBalancers: [ + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + CapacityProviderStrategy: Match.arrayEquals([ { - name: 'lb', - idleTimeout: Duration.seconds(400), - domainName: 'api.example.com', - domainZone: new PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }), - listeners: [ - { - name: 'listener', - protocol: ApplicationProtocol.HTTPS, - certificate: Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), - sslPolicy: SslPolicy.TLS12_EXT, - }, - ], - }, - { - name: 'lb2', - idleTimeout: Duration.seconds(0), - domainName: 'frontend.com', - domainZone: new PublicHostedZone(stack, 'HostedZone2', { zoneName: 'frontend.com' }), - listeners: [ - { - name: 'listener2', - protocol: ApplicationProtocol.HTTPS, - certificate: Certificate.fromCertificateArn(stack, 'Cert2', 'helloworld'), - sslPolicy: SslPolicy.TLS12_EXT, - }, - ], + Base: 1, + CapacityProvider: 'AutoScalingGroupProvider1', + Weight: 1, }, - ], - targetGroups: [ { - containerPort: 80, - listener: 'listener', + Base: 0, + CapacityProvider: 'AutoScalingGroupProvider2', + Weight: 2, }, - { - containerPort: 90, - pathPattern: 'a/b/c', - priority: 10, - listener: 'listener', - }, - { - containerPort: 443, - listener: 'listener2', - }, - { - containerPort: 80, - pathPattern: 'a/b/c', - priority: 10, - listener: 'listener2', - }, - ], - }); - }).toThrowError(); -}); - -test('passes when idleTimeout is between 1 and 4000 seconds for multiAlbService', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - - // THEN - expect(() => { - new ecsPatterns.ApplicationMultipleTargetGroupsFargateService(stack, 'myService', { - cluster: new ecs.Cluster(stack, 'EcsCluster', { vpc }), - memoryLimitMiB: 256, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - enableExecuteCommand: true, - loadBalancers: [ - { - name: 'lb', - idleTimeout: Duration.seconds(5), - domainName: 'api.example.com', - domainZone: new PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }), - listeners: [ - { - name: 'listener', - protocol: ApplicationProtocol.HTTPS, - certificate: Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), - sslPolicy: SslPolicy.TLS12_EXT, - }, - ], - }, - { - name: 'lb2', - idleTimeout: Duration.seconds(500), - domainName: 'frontend.com', - domainZone: new PublicHostedZone(stack, 'HostedZone2', { zoneName: 'frontend.com' }), - listeners: [ - { - name: 'listener2', - protocol: ApplicationProtocol.HTTPS, - certificate: Certificate.fromCertificateArn(stack, 'Cert2', 'helloworld'), - sslPolicy: SslPolicy.TLS12_EXT, - }, - ], - }, - ], - targetGroups: [ - { - containerPort: 80, - listener: 'listener', - }, - { - containerPort: 90, - pathPattern: 'a/b/c', - priority: 10, - listener: 'listener', - }, - { - containerPort: 443, - listener: 'listener2', - }, - { - containerPort: 80, - pathPattern: 'a/b/c', - priority: 10, - listener: 'listener2', - }, - ], + ]), }); - }).toBeTruthy(); -}); - -test('idletime is undefined when not set for multiAlbService', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - - // WHEN - new ecsPatterns.ApplicationMultipleTargetGroupsFargateService(stack, 'myService', { - cluster: new ecs.Cluster(stack, 'EcsCluster', { vpc }), - memoryLimitMiB: 256, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - enableExecuteCommand: true, - loadBalancers: [ - { - name: 'lb', - domainName: 'api.example.com', - domainZone: new PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }), - listeners: [ - { - name: 'listener', - protocol: ApplicationProtocol.HTTPS, - certificate: Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), - sslPolicy: SslPolicy.TLS12_EXT, - }, - ], - }, - { - name: 'lb2', - domainName: 'frontend.com', - domainZone: new PublicHostedZone(stack, 'HostedZone2', { zoneName: 'frontend.com' }), - listeners: [ - { - name: 'listener2', - protocol: ApplicationProtocol.HTTPS, - certificate: Certificate.fromCertificateArn(stack, 'Cert2', 'helloworld'), - sslPolicy: SslPolicy.TLS12_EXT, - }, - ], - }, - ], - targetGroups: [ - { - containerPort: 80, - listener: 'listener', - }, - { - containerPort: 90, - pathPattern: 'a/b/c', - priority: 10, - listener: 'listener', - }, - { - containerPort: 443, - listener: 'listener2', - }, - { - containerPort: 80, - pathPattern: 'a/b/c', - priority: 10, - listener: 'listener2', - }, - ], }); - // THEN - stack contains default LoadBalancer Attributes - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { - LoadBalancerAttributes: [ - { - Key: 'deletion_protection.enabled', - Value: 'false', - }, - ], - }); -}); - -test('test Fargate loadbalanced construct with optional log driver input', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - enableLogging: false, - environment: { - TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', - TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', - }, - logDriver: new ecs.AwsLogDriver({ - streamPrefix: 'TestStream', + test('NLB - throws if desiredTaskCount is 0', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), }), - }, - desiredCount: 2, - }); - - // THEN - stack contains a load balancer and a service - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Environment: [ - { - Name: 'TEST_ENVIRONMENT_VARIABLE1', - Value: 'test environment variable 1 value', - }, - { - Name: 'TEST_ENVIRONMENT_VARIABLE2', - Value: 'test environment variable 2 value', - }, - ], - LogConfiguration: { - LogDriver: 'awslogs', - Options: { - 'awslogs-group': { Ref: 'ServiceTaskDefwebLogGroup2A898F61' }, - 'awslogs-stream-prefix': 'TestStream', - 'awslogs-region': { Ref: 'AWS::Region' }, - }, + })); + + // THEN + expect(() => + new ecsPatterns.NetworkLoadBalancedEc2Service(stack, 'Service', { + cluster, + memoryLimitMiB: 1024, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), }, + desiredCount: 0, }), - ], - }); -}); - -test('test Fargate loadbalanced construct with logging enabled', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - enableLogging: true, - environment: { - TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', - TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', - }, - }, - desiredCount: 2, - }); - - // THEN - stack contains a load balancer and a service - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Environment: [ - { - Name: 'TEST_ENVIRONMENT_VARIABLE1', - Value: 'test environment variable 1 value', - }, - { - Name: 'TEST_ENVIRONMENT_VARIABLE2', - Value: 'test environment variable 2 value', - }, - ], - LogConfiguration: { - LogDriver: 'awslogs', - Options: { - 'awslogs-group': { Ref: 'ServiceTaskDefwebLogGroup2A898F61' }, - 'awslogs-stream-prefix': 'Service', - 'awslogs-region': { Ref: 'AWS::Region' }, - }, - }, + ).toThrow(/You must specify a desiredCount greater than 0/); + }); + + test('having *HealthyPercent properties', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), }), - ], - }); -}); + })); -test('test Fargate loadbalanced construct with both image and taskDefinition provided', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'Ec2TaskDef'); - taskDefinition.addContainer('web', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 512, - }); - - // WHEN - expect(() => new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - enableLogging: true, - environment: { - TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', - TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + // WHEN + new ecsPatterns.NetworkLoadBalancedEc2Service(stack, 'Service', { + cluster, + memoryLimitMiB: 1024, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), }, - }, - desiredCount: 2, - taskDefinition, - })).toThrow(); -}); - -test('test Fargate application loadbalanced construct with taskDefinition provided', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - const taskDefinition = new ecs.FargateTaskDefinition(stack, 'FargateTaskDef'); - const container = taskDefinition.addContainer('passedTaskDef', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 512, - }); - container.addPortMappings({ - containerPort: 80, - }); + desiredCount: 1, + minHealthyPercent: 100, + maxHealthyPercent: 200, + }); - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { - cluster, - taskDefinition, - desiredCount: 2, - memoryLimitMiB: 1024, + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DeploymentConfiguration: { + MinimumHealthyPercent: 100, + MaximumPercent: 200, + }, + }); }); - Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { - ContainerDefinitions: [ - Match.objectLike({ - Image: 'amazon/amazon-ecs-sample', - Memory: 512, - Name: 'passedTaskDef', - PortMappings: [ - { - ContainerPort: 80, - Protocol: 'tcp', - }, - ], + test('having deployment controller', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), }), - ], - }); -}); + })); -test('ALB - throws if desiredTaskCount is 0', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - - // THEN - expect(() => - new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { + // WHEN + new ecsPatterns.NetworkLoadBalancedEc2Service(stack, 'Service', { cluster, memoryLimitMiB: 1024, taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), }, - desiredCount: 0, - }), - ).toThrow(/You must specify a desiredCount greater than 0/); -}); + deploymentController: { + type: ecs.DeploymentControllerType.CODE_DEPLOY, + }, + }); -test('NLB - throws if desiredTaskCount is 0', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DeploymentController: { + Type: 'CODE_DEPLOY', + }, + }); + }); - // THEN - expect(() => + test('with circuit breaker', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); + + // WHEN new ecsPatterns.NetworkLoadBalancedEc2Service(stack, 'Service', { cluster, memoryLimitMiB: 1024, taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), }, - desiredCount: 0, - }), - ).toThrow(/You must specify a desiredCount greater than 0/); -}); - -test('ALBFargate - having *HealthyPercent properties', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'ALB123Service', { - cluster, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - minHealthyPercent: 100, - maxHealthyPercent: 200, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DeploymentConfiguration: { - MinimumHealthyPercent: 100, - MaximumPercent: 200, - }, - }); -}); - -test('NLBFargate - having *HealthyPercent properties', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { - cluster, - memoryLimitMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - desiredCount: 1, - minHealthyPercent: 100, - maxHealthyPercent: 200, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DeploymentConfiguration: { - MinimumHealthyPercent: 100, - MaximumPercent: 200, - }, - }); -}); - -test('ALB - having *HealthyPercent properties', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { - cluster, - memoryLimitMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - desiredCount: 1, - minHealthyPercent: 100, - maxHealthyPercent: 200, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DeploymentConfiguration: { - MinimumHealthyPercent: 100, - MaximumPercent: 200, - }, - }); -}); - -test('ALB - includes provided protocol version properties', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - const zone = new PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { - cluster, - memoryLimitMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - desiredCount: 1, - domainName: 'api.example.com', - domainZone: zone, - protocol: ApplicationProtocol.HTTPS, - protocolVersion: ApplicationProtocolVersion.GRPC, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::TargetGroup', { - ProtocolVersion: 'GRPC', - }); -}); - -test('NLB - having *HealthyPercent properties', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - - // WHEN - new ecsPatterns.NetworkLoadBalancedEc2Service(stack, 'Service', { - cluster, - memoryLimitMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - desiredCount: 1, - minHealthyPercent: 100, - maxHealthyPercent: 200, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DeploymentConfiguration: { - MinimumHealthyPercent: 100, - MaximumPercent: 200, - }, - }); -}); - -test('ALB - having deployment controller', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { - cluster, - memoryLimitMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - deploymentController: { - type: ecs.DeploymentControllerType.CODE_DEPLOY, - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DeploymentController: { - Type: 'CODE_DEPLOY', - }, - }); -}); - -test('NLB - having deployment controller', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - - // WHEN - new ecsPatterns.NetworkLoadBalancedEc2Service(stack, 'Service', { - cluster, - memoryLimitMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - deploymentController: { - type: ecs.DeploymentControllerType.CODE_DEPLOY, - }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DeploymentController: { - Type: 'CODE_DEPLOY', - }, - }); -}); - -test('ALB with circuit breaker', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { - cluster, - memoryLimitMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - circuitBreaker: { rollback: true }, - }); + circuitBreaker: { rollback: true }, + }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DeploymentConfiguration: { - DeploymentCircuitBreaker: { - Enable: true, - Rollback: true, + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DeploymentConfiguration: { + DeploymentCircuitBreaker: { + Enable: true, + Rollback: true, + }, }, - }, - DeploymentController: { - Type: 'ECS', - }, - }); -}); - -test('NLB with circuit breaker', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - - // WHEN - new ecsPatterns.NetworkLoadBalancedEc2Service(stack, 'Service', { - cluster, - memoryLimitMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - }, - circuitBreaker: { rollback: true }, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - DeploymentConfiguration: { - DeploymentCircuitBreaker: { - Enable: true, - Rollback: true, + DeploymentController: { + Type: 'ECS', }, - }, - DeploymentController: { - Type: 'ECS', - }, - }); -}); - -test('NetworkLoadbalancedEC2Service accepts previously created load balancer', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'Vpc'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc, clusterName: 'MyCluster' }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - const nlb = new NetworkLoadBalancer(stack, 'NLB', { vpc }); - const taskDef = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); - const container = taskDef.addContainer('Container', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 1024, - }); - container.addPortMappings({ containerPort: 80 }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedEc2Service(stack, 'Service', { - cluster, - loadBalancer: nlb, - taskDefinition: taskDef, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - LaunchType: 'EC2', - }); - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { - Type: 'network', - }); -}); - -test('NetworkLoadBalancedEC2Service accepts imported load balancer', () => { - // GIVEN - const stack = new cdk.Stack(); - const nlbArn = 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188'; - const vpc = new ec2.Vpc(stack, 'Vpc'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc, clusterName: 'MyCluster' }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - const nlb = NetworkLoadBalancer.fromNetworkLoadBalancerAttributes(stack, 'NLB', { - loadBalancerArn: nlbArn, - vpc, - }); - const taskDef = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); - const container = taskDef.addContainer('Container', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 1024, - }); - container.addPortMappings({ - containerPort: 80, - }); - - // WHEN - new ecsPatterns.NetworkLoadBalancedEc2Service(stack, 'Service', { - cluster, - loadBalancer: nlb, - desiredCount: 1, - taskDefinition: taskDef, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - LaunchType: 'EC2', - LoadBalancers: [Match.objectLike({ ContainerName: 'Container', ContainerPort: 80 })], - }); - Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::TargetGroup', 1); - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { - LoadBalancerArn: nlb.loadBalancerArn, - Port: 80, - }); -}); - -test('ApplicationLoadBalancedEC2Service accepts previously created load balancer', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'Vpc'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc, clusterName: 'MyCluster' }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - const sg = new ec2.SecurityGroup(stack, 'SG', { vpc }); - const alb = new ApplicationLoadBalancer(stack, 'NLB', { - vpc, - securityGroup: sg, - }); - const taskDef = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); - const container = taskDef.addContainer('Container', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 1024, - }); - container.addPortMappings({ containerPort: 80 }); - - // WHEN - new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { - cluster, - loadBalancer: alb, - taskDefinition: taskDef, - }); - - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - LaunchType: 'EC2', - }); - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { - Type: 'application', - }); -}); - -test('ApplicationLoadBalancedEC2Service accepts imported load balancer', () => { - // GIVEN - const stack = new cdk.Stack(); - const albArn = 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188'; - const vpc = new ec2.Vpc(stack, 'Vpc'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc, clusterName: 'MyCluster' }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - const sg = new ec2.SecurityGroup(stack, 'SG', { vpc }); - const alb = ApplicationLoadBalancer.fromApplicationLoadBalancerAttributes(stack, 'ALB', { - loadBalancerArn: albArn, - vpc, - securityGroupId: sg.securityGroupId, - loadBalancerDnsName: 'MyName', - }); - const taskDef = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); - const container = taskDef.addContainer('Container', { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - memoryLimitMiB: 1024, - }); - container.addPortMappings({ - containerPort: 80, - }); - // WHEN - new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { - cluster, - loadBalancer: alb, - taskDefinition: taskDef, - }); - // THEN - Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { - LaunchType: 'EC2', - LoadBalancers: [Match.objectLike({ ContainerName: 'Container', ContainerPort: 80 })], - }); - Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::TargetGroup', 1); - Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { - LoadBalancerArn: alb.loadBalancerArn, - Port: 80, + }); }); -}); -test('test ECS loadbalanced construct default/open security group', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { - vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); + test('accepts previously created load balancer', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'Vpc'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc, clusterName: 'MyCluster' }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); + const nlb = new NetworkLoadBalancer(stack, 'NLB', { vpc }); + const taskDef = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); + const container = taskDef.addContainer('Container', { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + memoryLimitMiB: 1024, + }); + container.addPortMappings({ containerPort: 80 }); - // WHEN - new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { - cluster, - memoryReservationMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - }, - }); + // WHEN + new ecsPatterns.NetworkLoadBalancedEc2Service(stack, 'Service', { + cluster, + loadBalancer: nlb, + taskDefinition: taskDef, + }); - // THEN - Stack contains no ingress security group rules - Template.fromStack(stack).hasResourceProperties('AWS::EC2::SecurityGroup', { - SecurityGroupIngress: [Match.objectLike({ - CidrIp: '0.0.0.0/0', - FromPort: 80, - IpProtocol: 'tcp', - ToPort: 80, - })], + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + LaunchType: 'EC2', + }); + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { + Type: 'network', + }); }); -}); -test('test ECS loadbalanced construct closed security group', () => { - // GIVEN - const stack = new cdk.Stack(); - const vpc = new ec2.Vpc(stack, 'VPC'); - const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); - cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { - autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + test('accepts imported load balancer', () => { + // GIVEN + const stack = new cdk.Stack(); + const nlbArn = 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188'; + const vpc = new ec2.Vpc(stack, 'Vpc'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc, clusterName: 'MyCluster' }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); + const nlb = NetworkLoadBalancer.fromNetworkLoadBalancerAttributes(stack, 'NLB', { + loadBalancerArn: nlbArn, vpc, - instanceType: new ec2.InstanceType('t2.micro'), - machineImage: MachineImage.latestAmazonLinux(), - }), - })); - const zone = new PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }); + }); + const taskDef = new ecs.Ec2TaskDefinition(stack, 'TaskDef'); + const container = taskDef.addContainer('Container', { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + memoryLimitMiB: 1024, + }); + container.addPortMappings({ + containerPort: 80, + }); - // WHEN - new ecsPatterns.ApplicationLoadBalancedEc2Service(stack, 'Service', { - cluster, - memoryReservationMiB: 1024, - taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('test'), - }, - domainName: 'api.example.com', - domainZone: zone, - certificate: Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), - openListener: false, - redirectHTTP: true, - }); + // WHEN + new ecsPatterns.NetworkLoadBalancedEc2Service(stack, 'Service', { + cluster, + loadBalancer: nlb, + desiredCount: 1, + taskDefinition: taskDef, + }); - // THEN - Stack contains no ingress security group rules - Template.fromStack(stack).hasResourceProperties('AWS::EC2::SecurityGroup', { - SecurityGroupIngress: Match.absent(), + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + LaunchType: 'EC2', + LoadBalancers: [Match.objectLike({ ContainerName: 'Container', ContainerPort: 80 })], + }); + Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::TargetGroup', 1); + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { + LoadBalancerArn: nlb.loadBalancerArn, + Port: 80, + }); }); }); diff --git a/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service-v2.test.ts b/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service-v2.test.ts index b0cc895c7c4a1..53c34c69b5dde 100644 --- a/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service-v2.test.ts +++ b/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service-v2.test.ts @@ -1,8 +1,11 @@ import { Match, Template } from '../../../assertions'; +import { Certificate } from '../../../aws-certificatemanager'; import { Vpc } from '../../../aws-ec2'; import * as ecs from '../../../aws-ecs'; import { ContainerDefinition, ContainerImage } from '../../../aws-ecs'; +import { ApplicationProtocol, SslPolicy } from '../../../aws-elasticloadbalancingv2'; import { CompositePrincipal, Role, ServicePrincipal } from '../../../aws-iam'; +import { PublicHostedZone } from '../../../aws-route53'; import { Duration, Stack } from '../../../core'; import { ApplicationLoadBalancedFargateService, ApplicationMultipleTargetGroupsFargateService, NetworkLoadBalancedFargateService, NetworkMultipleTargetGroupsFargateService } from '../../lib'; @@ -416,6 +419,292 @@ describe('Application Load Balancer', () => { }); }).toThrow(/You must specify one of: taskDefinition or image/); }); + + test('errors when idleTimeout is over 4000 seconds for multiAlbService', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + + // THEN + expect(() => { + new ApplicationMultipleTargetGroupsFargateService(stack, 'myService', { + cluster: new ecs.Cluster(stack, 'EcsCluster', { vpc }), + memoryLimitMiB: 256, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + }, + enableExecuteCommand: true, + loadBalancers: [ + { + name: 'lb', + idleTimeout: Duration.seconds(400), + domainName: 'api.example.com', + domainZone: new PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }), + listeners: [ + { + name: 'listener', + protocol: ApplicationProtocol.HTTPS, + certificate: Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), + sslPolicy: SslPolicy.TLS12_EXT, + }, + ], + }, + { + name: 'lb2', + idleTimeout: Duration.seconds(5000), + domainName: 'frontend.com', + domainZone: new PublicHostedZone(stack, 'HostedZone2', { zoneName: 'frontend.com' }), + listeners: [ + { + name: 'listener2', + protocol: ApplicationProtocol.HTTPS, + certificate: Certificate.fromCertificateArn(stack, 'Cert2', 'helloworld'), + sslPolicy: SslPolicy.TLS12_EXT, + }, + ], + }, + ], + targetGroups: [ + { + containerPort: 80, + listener: 'listener', + }, + { + containerPort: 90, + pathPattern: 'a/b/c', + priority: 10, + listener: 'listener', + }, + { + containerPort: 443, + listener: 'listener2', + }, + { + containerPort: 80, + pathPattern: 'a/b/c', + priority: 10, + listener: 'listener2', + }, + ], + }); + }).toThrowError(); + }); + + test('errors when idleTimeout is under 1 seconds for multiAlbService', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + + // THEN + expect(() => { + new ApplicationMultipleTargetGroupsFargateService(stack, 'myService', { + cluster: new ecs.Cluster(stack, 'EcsCluster', { vpc }), + memoryLimitMiB: 256, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + }, + enableExecuteCommand: true, + loadBalancers: [ + { + name: 'lb', + idleTimeout: Duration.seconds(400), + domainName: 'api.example.com', + domainZone: new PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }), + listeners: [ + { + name: 'listener', + protocol: ApplicationProtocol.HTTPS, + certificate: Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), + sslPolicy: SslPolicy.TLS12_EXT, + }, + ], + }, + { + name: 'lb2', + idleTimeout: Duration.seconds(0), + domainName: 'frontend.com', + domainZone: new PublicHostedZone(stack, 'HostedZone2', { zoneName: 'frontend.com' }), + listeners: [ + { + name: 'listener2', + protocol: ApplicationProtocol.HTTPS, + certificate: Certificate.fromCertificateArn(stack, 'Cert2', 'helloworld'), + sslPolicy: SslPolicy.TLS12_EXT, + }, + ], + }, + ], + targetGroups: [ + { + containerPort: 80, + listener: 'listener', + }, + { + containerPort: 90, + pathPattern: 'a/b/c', + priority: 10, + listener: 'listener', + }, + { + containerPort: 443, + listener: 'listener2', + }, + { + containerPort: 80, + pathPattern: 'a/b/c', + priority: 10, + listener: 'listener2', + }, + ], + }); + }).toThrowError(); + }); + + test('passes when idleTimeout is between 1 and 4000 seconds for multiAlbService', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + + // THEN + expect(() => { + new ApplicationMultipleTargetGroupsFargateService(stack, 'myService', { + cluster: new ecs.Cluster(stack, 'EcsCluster', { vpc }), + memoryLimitMiB: 256, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + }, + enableExecuteCommand: true, + loadBalancers: [ + { + name: 'lb', + idleTimeout: Duration.seconds(5), + domainName: 'api.example.com', + domainZone: new PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }), + listeners: [ + { + name: 'listener', + protocol: ApplicationProtocol.HTTPS, + certificate: Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), + sslPolicy: SslPolicy.TLS12_EXT, + }, + ], + }, + { + name: 'lb2', + idleTimeout: Duration.seconds(500), + domainName: 'frontend.com', + domainZone: new PublicHostedZone(stack, 'HostedZone2', { zoneName: 'frontend.com' }), + listeners: [ + { + name: 'listener2', + protocol: ApplicationProtocol.HTTPS, + certificate: Certificate.fromCertificateArn(stack, 'Cert2', 'helloworld'), + sslPolicy: SslPolicy.TLS12_EXT, + }, + ], + }, + ], + targetGroups: [ + { + containerPort: 80, + listener: 'listener', + }, + { + containerPort: 90, + pathPattern: 'a/b/c', + priority: 10, + listener: 'listener', + }, + { + containerPort: 443, + listener: 'listener2', + }, + { + containerPort: 80, + pathPattern: 'a/b/c', + priority: 10, + listener: 'listener2', + }, + ], + }); + }).toBeTruthy(); + }); + + test('idletime is undefined when not set for multiAlbService', () => { + // GIVEN + const stack = new Stack(); + const vpc = new Vpc(stack, 'VPC'); + + // WHEN + new ApplicationMultipleTargetGroupsFargateService(stack, 'myService', { + cluster: new ecs.Cluster(stack, 'EcsCluster', { vpc }), + memoryLimitMiB: 256, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + }, + enableExecuteCommand: true, + loadBalancers: [ + { + name: 'lb', + domainName: 'api.example.com', + domainZone: new PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }), + listeners: [ + { + name: 'listener', + protocol: ApplicationProtocol.HTTPS, + certificate: Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), + sslPolicy: SslPolicy.TLS12_EXT, + }, + ], + }, + { + name: 'lb2', + domainName: 'frontend.com', + domainZone: new PublicHostedZone(stack, 'HostedZone2', { zoneName: 'frontend.com' }), + listeners: [ + { + name: 'listener2', + protocol: ApplicationProtocol.HTTPS, + certificate: Certificate.fromCertificateArn(stack, 'Cert2', 'helloworld'), + sslPolicy: SslPolicy.TLS12_EXT, + }, + ], + }, + ], + targetGroups: [ + { + containerPort: 80, + listener: 'listener', + }, + { + containerPort: 90, + pathPattern: 'a/b/c', + priority: 10, + listener: 'listener', + }, + { + containerPort: 443, + listener: 'listener2', + }, + { + containerPort: 80, + pathPattern: 'a/b/c', + priority: 10, + listener: 'listener2', + }, + ], + }); + + // THEN - stack contains default LoadBalancer Attributes + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { + LoadBalancerAttributes: [ + { + Key: 'deletion_protection.enabled', + Value: 'false', + }, + ], + }); + }); }); }); diff --git a/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service.test.ts b/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service.test.ts index c103d75c9a448..5092f257a96fb 100644 --- a/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service.test.ts +++ b/packages/aws-cdk-lib/aws-ecs-patterns/test/fargate/load-balanced-fargate-service.test.ts @@ -5,9 +5,10 @@ import * as ec2 from '../../../aws-ec2'; import { MachineImage } from '../../../aws-ec2'; import * as ecs from '../../../aws-ecs'; import { AsgCapacityProvider } from '../../../aws-ecs'; -import { ApplicationLoadBalancer, ApplicationProtocol, NetworkLoadBalancer } from '../../../aws-elasticloadbalancingv2'; +import { ApplicationLoadBalancer, ApplicationProtocol, NetworkLoadBalancer, SslPolicy } from '../../../aws-elasticloadbalancingv2'; import * as iam from '../../../aws-iam'; import * as route53 from '../../../aws-route53'; +import * as cloudmap from '../../../aws-servicediscovery'; import * as cdk from '../../../core'; import * as ecsPatterns from '../../lib'; @@ -809,6 +810,629 @@ describe('ApplicationLoadBalancedFargateService', () => { maxHealthyPercent: 70, })).toThrow(/must be less than/); }); + + test('test Fargate loadbalanced construct', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + environment: { + TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', + TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + }, + dockerLabels: { label1: 'labelValue1', label2: 'labelValue2' }, + entryPoint: ['echo', 'running-on-fargate'], + command: ['/bin/bash'], + }, + desiredCount: 2, + }); + + // THEN - stack contains a load balancer and a service + Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::LoadBalancer', 1); + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Environment: [ + { + Name: 'TEST_ENVIRONMENT_VARIABLE1', + Value: 'test environment variable 1 value', + }, + { + Name: 'TEST_ENVIRONMENT_VARIABLE2', + Value: 'test environment variable 2 value', + }, + ], + LogConfiguration: { + LogDriver: 'awslogs', + Options: { + 'awslogs-group': { Ref: 'ServiceTaskDefwebLogGroup2A898F61' }, + 'awslogs-stream-prefix': 'Service', + 'awslogs-region': { Ref: 'AWS::Region' }, + }, + }, + DockerLabels: { + label1: 'labelValue1', + label2: 'labelValue2', + }, + EntryPoint: ['echo', 'running-on-fargate'], + Command: ['/bin/bash'], + }), + ], + }); + + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DesiredCount: 2, + LaunchType: 'FARGATE', + }); + + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { + Port: 80, + Protocol: 'HTTP', + }); + }); + + test('test Fargate loadbalanced construct opting out of log driver creation', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + enableLogging: false, + environment: { + TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', + TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + }, + }, + desiredCount: 2, + }); + + // THEN - stack contains a load balancer and a service + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Environment: [ + { + Name: 'TEST_ENVIRONMENT_VARIABLE1', + Value: 'test environment variable 1 value', + }, + { + Name: 'TEST_ENVIRONMENT_VARIABLE2', + Value: 'test environment variable 2 value', + }, + ], + LogConfiguration: Match.absent(), + }), + ], + }); + }); + + test('test Fargate loadbalanced construct with TLS', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + const zone = new route53.PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + }, + domainName: 'api.example.com', + domainZone: zone, + certificate: Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), + sslPolicy: SslPolicy.TLS12_EXT, + }); + + // THEN - stack contains a load balancer and a service + Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::LoadBalancer', 1); + + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { + Port: 443, + Protocol: 'HTTPS', + Certificates: [{ + CertificateArn: 'helloworld', + }], + SslPolicy: SslPolicy.TLS12_EXT, + }); + + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::TargetGroup', { + Port: 80, + Protocol: 'HTTP', + TargetType: 'ip', + VpcId: { + Ref: 'VPCB9E5F0B4', + }, + }); + + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + LaunchType: 'FARGATE', + }); + + Template.fromStack(stack).hasResourceProperties('AWS::Route53::RecordSet', { + Name: 'api.example.com.', + HostedZoneId: { + Ref: 'HostedZoneDB99F866', + }, + Type: 'A', + AliasTarget: { + HostedZoneId: { 'Fn::GetAtt': ['ServiceLBE9A1ADBC', 'CanonicalHostedZoneID'] }, + DNSName: { 'Fn::Join': ['', ['dualstack.', { 'Fn::GetAtt': ['ServiceLBE9A1ADBC', 'DNSName'] }]] }, + }, + }); + }); + + test('test Fargateloadbalanced construct with TLS and default certificate', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + const zone = new route53.PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + }, + domainName: 'api.example.com', + domainZone: zone, + protocol: ApplicationProtocol.HTTPS, + }); + + // THEN - stack contains a load balancer, a service, and a certificate + Template.fromStack(stack).hasResourceProperties('AWS::CertificateManager::Certificate', { + DomainName: 'api.example.com', + DomainValidationOptions: [ + { + DomainName: 'api.example.com', + HostedZoneId: { + Ref: 'HostedZoneDB99F866', + }, + }, + ], + ValidationMethod: 'DNS', + }); + + Template.fromStack(stack).resourceCountIs('AWS::ElasticLoadBalancingV2::LoadBalancer', 1); + + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::Listener', { + Port: 443, + Protocol: 'HTTPS', + Certificates: [{ + CertificateArn: { + Ref: 'ServiceCertificateA7C65FE6', + }, + }], + }); + + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + LaunchType: 'FARGATE', + }); + + Template.fromStack(stack).hasResourceProperties('AWS::Route53::RecordSet', { + Name: 'api.example.com.', + HostedZoneId: { + Ref: 'HostedZoneDB99F866', + }, + Type: 'A', + AliasTarget: { + HostedZoneId: { 'Fn::GetAtt': ['ServiceLBE9A1ADBC', 'CanonicalHostedZoneID'] }, + DNSName: { 'Fn::Join': ['', ['dualstack.', { 'Fn::GetAtt': ['ServiceLBE9A1ADBC', 'DNSName'] }]] }, + }, + }); + }); + + test('errors when setting domainName but not domainZone', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // THEN + expect(() => { + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + }, + domainName: 'api.example.com', + }); + }).toThrow(); + }); + + test('errors when setting both HTTP protocol and certificate', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // THEN + expect(() => { + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + }, + protocol: ApplicationProtocol.HTTP, + certificate: Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), + }); + }).toThrow(); + }); + + test('errors when setting both HTTP protocol and redirectHTTP', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // THEN + expect(() => { + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + }, + protocol: ApplicationProtocol.HTTP, + redirectHTTP: true, + }); + }).toThrow(); + }); + + test('does not throw errors when not setting HTTPS protocol but certificate for redirectHTTP', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + const zone = new route53.PublicHostedZone(stack, 'HostedZone', { zoneName: 'example.com' }); + + // THEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + }, + domainName: 'api.example.com', + domainZone: zone, + redirectHTTP: true, + certificate: Certificate.fromCertificateArn(stack, 'Cert', 'helloworld'), + }); + }); + + test('errors when setting HTTPS protocol but not domain name', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // THEN + expect(() => { + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + }, + protocol: ApplicationProtocol.HTTPS, + }); + }).toThrow(); + }); + + test('errors when idleTimeout is over 4000 seconds', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // THEN + expect(() => { + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + enableLogging: false, + environment: { + TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', + TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + }, + logDriver: new ecs.AwsLogDriver({ + streamPrefix: 'TestStream', + }), + }, + idleTimeout: cdk.Duration.seconds(5000), + desiredCount: 2, + }); + }).toThrowError(); + }); + + test('errors when idleTimeout is under 1 seconds', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // THEN + expect(() => { + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + enableLogging: false, + environment: { + TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', + TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + }, + logDriver: new ecs.AwsLogDriver({ + streamPrefix: 'TestStream', + }), + }, + idleTimeout: cdk.Duration.seconds(0), + desiredCount: 2, + }); + }).toThrowError(); + }); + + test('passes when idleTimeout is between 1 and 4000 seconds', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // THEN + expect(() => { + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + enableLogging: false, + environment: { + TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', + TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + }, + logDriver: new ecs.AwsLogDriver({ + streamPrefix: 'TestStream', + }), + }, + idleTimeout: cdk.Duration.seconds(4000), + desiredCount: 2, + }); + }).toBeTruthy(); + }); + + test('idletime is undefined when not set', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + enableLogging: false, + environment: { + TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', + TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + }, + logDriver: new ecs.AwsLogDriver({ + streamPrefix: 'TestStream', + }), + }, + desiredCount: 2, + }); + + // THEN - stack contains default LoadBalancer Attributes + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { + LoadBalancerAttributes: [ + { + Key: 'deletion_protection.enabled', + Value: 'false', + }, + ], + }); + }); + + test('test Fargate loadbalanced construct with optional log driver input', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + enableLogging: false, + environment: { + TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', + TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + }, + logDriver: new ecs.AwsLogDriver({ + streamPrefix: 'TestStream', + }), + }, + desiredCount: 2, + }); + + // THEN - stack contains a load balancer and a service + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Environment: [ + { + Name: 'TEST_ENVIRONMENT_VARIABLE1', + Value: 'test environment variable 1 value', + }, + { + Name: 'TEST_ENVIRONMENT_VARIABLE2', + Value: 'test environment variable 2 value', + }, + ], + LogConfiguration: { + LogDriver: 'awslogs', + Options: { + 'awslogs-group': { Ref: 'ServiceTaskDefwebLogGroup2A898F61' }, + 'awslogs-stream-prefix': 'TestStream', + 'awslogs-region': { Ref: 'AWS::Region' }, + }, + }, + }), + ], + }); + }); + + test('test Fargate loadbalanced construct with logging enabled', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + enableLogging: true, + environment: { + TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', + TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + }, + }, + desiredCount: 2, + }); + + // THEN - stack contains a load balancer and a service + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Environment: [ + { + Name: 'TEST_ENVIRONMENT_VARIABLE1', + Value: 'test environment variable 1 value', + }, + { + Name: 'TEST_ENVIRONMENT_VARIABLE2', + Value: 'test environment variable 2 value', + }, + ], + LogConfiguration: { + LogDriver: 'awslogs', + Options: { + 'awslogs-group': { Ref: 'ServiceTaskDefwebLogGroup2A898F61' }, + 'awslogs-stream-prefix': 'Service', + 'awslogs-region': { Ref: 'AWS::Region' }, + }, + }, + }), + ], + }); + }); + + test('test Fargate loadbalanced construct with both image and taskDefinition provided', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'Ec2TaskDef'); + taskDefinition.addContainer('web', { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + memoryLimitMiB: 512, + }); + + // WHEN + expect(() => new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('test'), + enableLogging: true, + environment: { + TEST_ENVIRONMENT_VARIABLE1: 'test environment variable 1 value', + TEST_ENVIRONMENT_VARIABLE2: 'test environment variable 2 value', + }, + }, + desiredCount: 2, + taskDefinition, + })).toThrow(); + }); + + test('test Fargate application loadbalanced construct with taskDefinition provided', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + const taskDefinition = new ecs.FargateTaskDefinition(stack, 'FargateTaskDef'); + const container = taskDefinition.addContainer('passedTaskDef', { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + memoryLimitMiB: 512, + }); + container.addPortMappings({ + containerPort: 80, + }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'Service', { + cluster, + taskDefinition, + desiredCount: 2, + memoryLimitMiB: 1024, + }); + + Template.fromStack(stack).hasResourceProperties('AWS::ECS::TaskDefinition', { + ContainerDefinitions: [ + Match.objectLike({ + Image: 'amazon/amazon-ecs-sample', + Memory: 512, + Name: 'passedTaskDef', + PortMappings: [ + { + ContainerPort: 80, + Protocol: 'tcp', + }, + ], + }), + ], + }); + }); + + test('ALBFargate - having *HealthyPercent properties', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.ApplicationLoadBalancedFargateService(stack, 'ALB123Service', { + cluster, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + }, + minHealthyPercent: 100, + maxHealthyPercent: 200, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DeploymentConfiguration: { + MinimumHealthyPercent: 100, + MaximumPercent: 200, + }, + }); + }); }); describe('NetworkLoadBalancedFargateService', () => { @@ -1297,4 +1921,105 @@ describe('NetworkLoadBalancedFargateService', () => { ]), }); }); + + test('creates AWS Cloud Map service for Private DNS namespace with network load balanced fargate service', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'MyVpc', {}); + const cluster = new ecs.Cluster(stack, 'EcsCluster', { vpc }); + cluster.addAsgCapacityProvider(new AsgCapacityProvider(stack, 'DefaultAutoScalingGroupProvider', { + autoScalingGroup: new AutoScalingGroup(stack, 'DefaultAutoScalingGroup', { + vpc, + instanceType: new ec2.InstanceType('t2.micro'), + machineImage: MachineImage.latestAmazonLinux(), + }), + })); + + // WHEN + cluster.addDefaultCloudMapNamespace({ + name: 'foo.com', + type: cloudmap.NamespaceType.DNS_PRIVATE, + }); + + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + cluster, + taskImageOptions: { + containerPort: 8000, + image: ecs.ContainerImage.fromRegistry('hello'), + }, + cloudMapOptions: { + name: 'myApp', + }, + memoryLimitMiB: 512, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + ServiceRegistries: [ + { + RegistryArn: { + 'Fn::GetAtt': [ + 'ServiceCloudmapServiceDE76B29D', + 'Arn', + ], + }, + }, + ], + }); + + Template.fromStack(stack).hasResourceProperties('AWS::ServiceDiscovery::Service', { + DnsConfig: { + DnsRecords: [ + { + TTL: 60, + Type: 'A', + }, + ], + NamespaceId: { + 'Fn::GetAtt': [ + 'EcsClusterDefaultServiceDiscoveryNamespaceB0971B2F', + 'Id', + ], + }, + RoutingPolicy: 'MULTIVALUE', + }, + HealthCheckCustomConfig: { + FailureThreshold: 1, + }, + Name: 'myApp', + NamespaceId: { + 'Fn::GetAtt': [ + 'EcsClusterDefaultServiceDiscoveryNamespaceB0971B2F', + 'Id', + ], + }, + }); + }); + + test('having *HealthyPercent properties', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'VPC'); + const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); + + // WHEN + new ecsPatterns.NetworkLoadBalancedFargateService(stack, 'Service', { + cluster, + memoryLimitMiB: 1024, + taskImageOptions: { + image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), + }, + desiredCount: 1, + minHealthyPercent: 100, + maxHealthyPercent: 200, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ECS::Service', { + DeploymentConfiguration: { + MinimumHealthyPercent: 100, + MaximumPercent: 200, + }, + }); + }); }); From a75f447d6dc9ad8b1b00a7faebdd8aadc3d25e28 Mon Sep 17 00:00:00 2001 From: Michael Sambol Date: Tue, 20 Feb 2024 11:19:05 -0500 Subject: [PATCH 15/22] feat(sns): enforce ssl with topic policy (#29144) Adds a statement to match the document in the [docs](https://docs.aws.amazon.com/sns/latest/dg/sns-security-best-practices.html#enforce-encryption-data-in-transit): ``` { "Id": "ExamplePolicy", "Version": "2012-10-17", "Statement": [ { "Sid": "AllowPublishThroughSSLOnly", "Action": "SNS:Publish", "Effect": "Deny", "Resource": [ "arn:aws:sns:us-east-1:1234567890:test-topic" ], "Condition": { "Bool": { "aws:SecureTransport": "false" } }, "Principal": "*" } ] } ``` Closes #29142. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- ...efaultTestDeployAssert005CA6BA.assets.json | 19 ++ ...aultTestDeployAssert005CA6BA.template.json | 36 +++ .../SNSTopicPolicyStack.assets.json | 19 ++ .../SNSTopicPolicyStack.template.json | 132 +++++++++ .../cdk.out | 1 + .../integ.json | 13 + .../manifest.json | 131 +++++++++ .../tree.json | 267 ++++++++++++++++++ .../aws-sns/test/integ.sns-topic-policy.ts | 47 +++ packages/aws-cdk-lib/aws-sns/README.md | 38 +++ packages/aws-cdk-lib/aws-sns/lib/policy.ts | 33 ++- .../aws-cdk-lib/aws-sns/lib/topic-base.ts | 31 +- packages/aws-cdk-lib/aws-sns/lib/topic.ts | 11 + packages/aws-cdk-lib/aws-sns/test/sns.test.ts | 86 ++++++ 14 files changed, 861 insertions(+), 3 deletions(-) create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA.assets.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA.template.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyStack.assets.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyStack.template.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/cdk.out create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/integ.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/manifest.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/tree.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.ts diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA.assets.json new file mode 100644 index 0000000000000..3a6d49824aa28 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { + "source": { + "path": "SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA.template.json new file mode 100644 index 0000000000000..ad9d0fb73d1dd --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA.template.json @@ -0,0 +1,36 @@ +{ + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyStack.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyStack.assets.json new file mode 100644 index 0000000000000..106268b0f976a --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyStack.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "14fdbf9da76c6d2a9fd9d7ecce1e6fb899d1bd67a967d68ab86428209e729203": { + "source": { + "path": "SNSTopicPolicyStack.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "14fdbf9da76c6d2a9fd9d7ecce1e6fb899d1bd67a967d68ab86428209e729203.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyStack.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyStack.template.json new file mode 100644 index 0000000000000..c6af60e302553 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/SNSTopicPolicyStack.template.json @@ -0,0 +1,132 @@ +{ + "Resources": { + "TopicBFC7AF6E": { + "Type": "AWS::SNS::Topic", + "Properties": { + "DisplayName": "fooDisplay", + "TopicName": "fooTopic" + } + }, + "TopicPolicyA24B096F": { + "Type": "AWS::SNS::TopicPolicy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "sns:Publish", + "Effect": "Allow", + "Principal": { + "Service": "s3.amazonaws.com" + }, + "Resource": { + "Ref": "TopicBFC7AF6E" + }, + "Sid": "0" + }, + { + "Action": "sns:Publish", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": "*", + "Resource": { + "Ref": "TopicBFC7AF6E" + }, + "Sid": "AllowPublishThroughSSLOnly" + } + ], + "Version": "2012-10-17" + }, + "Topics": [ + { + "Ref": "TopicBFC7AF6E" + } + ] + } + }, + "TopicAddPolicy7DB03706": { + "Type": "AWS::SNS::Topic", + "Properties": { + "DisplayName": "topicDisplayNameAddPolicy", + "TopicName": "topicAddPolicy" + } + }, + "TopicAddPolicyAEA24A5A": { + "Type": "AWS::SNS::TopicPolicy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "sns:Publish", + "Effect": "Allow", + "Principal": { + "Service": "s3.amazonaws.com" + }, + "Resource": { + "Ref": "TopicAddPolicy7DB03706" + }, + "Sid": "0" + }, + { + "Action": "sns:Publish", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": "*", + "Resource": { + "Ref": "TopicAddPolicy7DB03706" + }, + "Sid": "AllowPublishThroughSSLOnly" + } + ], + "Version": "2012-10-17" + }, + "Topics": [ + { + "Ref": "TopicAddPolicy7DB03706" + } + ] + } + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/cdk.out new file mode 100644 index 0000000000000..1f0068d32659a --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/cdk.out @@ -0,0 +1 @@ +{"version":"36.0.0"} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/integ.json new file mode 100644 index 0000000000000..99eb1a0d311f1 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/integ.json @@ -0,0 +1,13 @@ +{ + "version": "36.0.0", + "testCases": { + "SNSTopicPolicyInteg/DefaultTest": { + "stacks": [ + "SNSTopicPolicyStack" + ], + "stackUpdateWorkflow": false, + "assertionStack": "SNSTopicPolicyInteg/DefaultTest/DeployAssert", + "assertionStackName": "SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/manifest.json new file mode 100644 index 0000000000000..1c70ea54b89c0 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/manifest.json @@ -0,0 +1,131 @@ +{ + "version": "36.0.0", + "artifacts": { + "SNSTopicPolicyStack.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "SNSTopicPolicyStack.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "SNSTopicPolicyStack": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "SNSTopicPolicyStack.template.json", + "terminationProtection": false, + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/14fdbf9da76c6d2a9fd9d7ecce1e6fb899d1bd67a967d68ab86428209e729203.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "SNSTopicPolicyStack.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "SNSTopicPolicyStack.assets" + ], + "metadata": { + "/SNSTopicPolicyStack/Topic/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TopicBFC7AF6E" + } + ], + "/SNSTopicPolicyStack/TopicPolicy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TopicPolicyA24B096F" + } + ], + "/SNSTopicPolicyStack/TopicAddPolicy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TopicAddPolicy7DB03706" + } + ], + "/SNSTopicPolicyStack/TopicAddPolicy/Policy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TopicAddPolicyAEA24A5A" + } + ], + "/SNSTopicPolicyStack/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/SNSTopicPolicyStack/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "SNSTopicPolicyStack" + }, + "SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA.template.json", + "terminationProtection": false, + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "SNSTopicPolicyIntegDefaultTestDeployAssert005CA6BA.assets" + ], + "metadata": { + "/SNSTopicPolicyInteg/DefaultTest/DeployAssert/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/SNSTopicPolicyInteg/DefaultTest/DeployAssert/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "SNSTopicPolicyInteg/DefaultTest/DeployAssert" + }, + "Tree": { + "type": "cdk:tree", + "properties": { + "file": "tree.json" + } + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/tree.json new file mode 100644 index 0000000000000..f65edb84ed63b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.js.snapshot/tree.json @@ -0,0 +1,267 @@ +{ + "version": "tree-0.1", + "tree": { + "id": "App", + "path": "", + "children": { + "SNSTopicPolicyStack": { + "id": "SNSTopicPolicyStack", + "path": "SNSTopicPolicyStack", + "children": { + "Topic": { + "id": "Topic", + "path": "SNSTopicPolicyStack/Topic", + "children": { + "Resource": { + "id": "Resource", + "path": "SNSTopicPolicyStack/Topic/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::SNS::Topic", + "aws:cdk:cloudformation:props": { + "displayName": "fooDisplay", + "topicName": "fooTopic" + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_sns.CfnTopic", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_sns.Topic", + "version": "0.0.0" + } + }, + "TopicPolicy": { + "id": "TopicPolicy", + "path": "SNSTopicPolicyStack/TopicPolicy", + "children": { + "Resource": { + "id": "Resource", + "path": "SNSTopicPolicyStack/TopicPolicy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::SNS::TopicPolicy", + "aws:cdk:cloudformation:props": { + "policyDocument": { + "Statement": [ + { + "Action": "sns:Publish", + "Effect": "Allow", + "Principal": { + "Service": "s3.amazonaws.com" + }, + "Resource": { + "Ref": "TopicBFC7AF6E" + }, + "Sid": "0" + }, + { + "Action": "sns:Publish", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": "*", + "Resource": { + "Ref": "TopicBFC7AF6E" + }, + "Sid": "AllowPublishThroughSSLOnly" + } + ], + "Version": "2012-10-17" + }, + "topics": [ + { + "Ref": "TopicBFC7AF6E" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_sns.CfnTopicPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_sns.TopicPolicy", + "version": "0.0.0" + } + }, + "TopicAddPolicy": { + "id": "TopicAddPolicy", + "path": "SNSTopicPolicyStack/TopicAddPolicy", + "children": { + "Resource": { + "id": "Resource", + "path": "SNSTopicPolicyStack/TopicAddPolicy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::SNS::Topic", + "aws:cdk:cloudformation:props": { + "displayName": "topicDisplayNameAddPolicy", + "topicName": "topicAddPolicy" + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_sns.CfnTopic", + "version": "0.0.0" + } + }, + "Policy": { + "id": "Policy", + "path": "SNSTopicPolicyStack/TopicAddPolicy/Policy", + "children": { + "Resource": { + "id": "Resource", + "path": "SNSTopicPolicyStack/TopicAddPolicy/Policy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::SNS::TopicPolicy", + "aws:cdk:cloudformation:props": { + "policyDocument": { + "Statement": [ + { + "Action": "sns:Publish", + "Effect": "Allow", + "Principal": { + "Service": "s3.amazonaws.com" + }, + "Resource": { + "Ref": "TopicAddPolicy7DB03706" + }, + "Sid": "0" + }, + { + "Action": "sns:Publish", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": "*", + "Resource": { + "Ref": "TopicAddPolicy7DB03706" + }, + "Sid": "AllowPublishThroughSSLOnly" + } + ], + "Version": "2012-10-17" + }, + "topics": [ + { + "Ref": "TopicAddPolicy7DB03706" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_sns.CfnTopicPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_sns.TopicPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_sns.Topic", + "version": "0.0.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "SNSTopicPolicyStack/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "SNSTopicPolicyStack/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + }, + "SNSTopicPolicyInteg": { + "id": "SNSTopicPolicyInteg", + "path": "SNSTopicPolicyInteg", + "children": { + "DefaultTest": { + "id": "DefaultTest", + "path": "SNSTopicPolicyInteg/DefaultTest", + "children": { + "Default": { + "id": "Default", + "path": "SNSTopicPolicyInteg/DefaultTest/Default", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DeployAssert": { + "id": "DeployAssert", + "path": "SNSTopicPolicyInteg/DefaultTest/DeployAssert", + "children": { + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "SNSTopicPolicyInteg/DefaultTest/DeployAssert/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "SNSTopicPolicyInteg/DefaultTest/DeployAssert/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.IntegTest", + "version": "0.0.0" + } + }, + "Tree": { + "id": "Tree", + "path": "Tree", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.App", + "version": "0.0.0" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.ts new file mode 100644 index 0000000000000..9aa9b9c73b58b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-sns/test/integ.sns-topic-policy.ts @@ -0,0 +1,47 @@ +import { App, Stack } from 'aws-cdk-lib'; +import { Topic, TopicPolicy } from 'aws-cdk-lib/aws-sns'; +import { IntegTest } from '@aws-cdk/integ-tests-alpha'; +import { PolicyDocument, PolicyStatement, ServicePrincipal } from 'aws-cdk-lib/aws-iam'; + +const app = new App(); + +const stack = new Stack(app, 'SNSTopicPolicyStack'); + +const topic = new Topic(stack, 'Topic', { + topicName: 'fooTopic', + displayName: 'fooDisplay', +}); + +const policyDocument = new PolicyDocument({ + assignSids: true, + statements: [ + new PolicyStatement({ + actions: ['sns:Publish'], + principals: [new ServicePrincipal('s3.amazonaws.com')], + resources: [topic.topicArn], + }), + ], +}); + +new TopicPolicy(stack, 'TopicPolicy', { + topics: [topic], + policyDocument, + enforceSSL: true, +}); + +const topicAddPolicy = new Topic(stack, 'TopicAddPolicy', { + topicName: 'topicAddPolicy', + displayName: 'topicDisplayNameAddPolicy', + enforceSSL: true, +}); + +topicAddPolicy.addToResourcePolicy(new PolicyStatement({ + principals: [new ServicePrincipal('s3.amazonaws.com')], + actions: ['sns:Publish'], + resources: [topicAddPolicy.topicArn], +})); + +new IntegTest(app, 'SNSTopicPolicyInteg', { + testCases: [stack], + stackUpdateWorkflow: false, +}); diff --git a/packages/aws-cdk-lib/aws-sns/README.md b/packages/aws-cdk-lib/aws-sns/README.md index 1f5219fb24bfd..0db9e79a0938e 100644 --- a/packages/aws-cdk-lib/aws-sns/README.md +++ b/packages/aws-cdk-lib/aws-sns/README.md @@ -208,6 +208,44 @@ const topicPolicy = new sns.TopicPolicy(this, 'Policy', { }); ``` +### Enforce encryption of data in transit when publishing to a topic + +You can enforce SSL when creating a topic policy by setting the `enforceSSL` flag: + +```ts +const topic = new sns.Topic(this, 'Topic'); +const policyDocument = new iam.PolicyDocument({ + assignSids: true, + statements: [ + new iam.PolicyStatement({ + actions: ["sns:Publish"], + principals: [new iam.ServicePrincipal('s3.amazonaws.com')], + resources: [topic.topicArn], + }), + ], +}); + +const topicPolicy = new sns.TopicPolicy(this, 'Policy', { + topics: [topic], + policyDocument, + enforceSSL: true, +}); +``` + +Similiarly you can enforce SSL by setting the `enforceSSL` flag on the topic: + +```ts +const topic = new sns.Topic(this, 'TopicAddPolicy', { + enforceSSL: true, +}); + +topic.addToResourcePolicy(new iam.PolicyStatement({ + principals: [new iam.ServicePrincipal('s3.amazonaws.com')], + actions: ['sns:Publish'], + resources: [topic.topicArn], +})); +``` + ## Delivery status logging Amazon SNS provides support to log the delivery status of notification messages sent to topics with the following Amazon SNS endpoints: diff --git a/packages/aws-cdk-lib/aws-sns/lib/policy.ts b/packages/aws-cdk-lib/aws-sns/lib/policy.ts index 56b555397a93b..2d663b733fa90 100644 --- a/packages/aws-cdk-lib/aws-sns/lib/policy.ts +++ b/packages/aws-cdk-lib/aws-sns/lib/policy.ts @@ -1,7 +1,7 @@ import { Construct } from 'constructs'; import { CfnTopicPolicy } from './sns.generated'; import { ITopic } from './topic-base'; -import { PolicyDocument } from '../../aws-iam'; +import { Effect, PolicyDocument, PolicyStatement, StarPrincipal } from '../../aws-iam'; import { Resource } from '../../core'; /** @@ -12,12 +12,21 @@ export interface TopicPolicyProps { * The set of topics this policy applies to. */ readonly topics: ITopic[]; + /** * IAM policy document to apply to topic(s). * @default empty policy document */ readonly policyDocument?: PolicyDocument; + /** + * Adds a statement to enforce encryption of data in transit when publishing to the topic. + * + * For more information, see https://docs.aws.amazon.com/sns/latest/dg/sns-security-best-practices.html#enforce-encryption-data-in-transit. + * + * @default false + */ + readonly enforceSSL?: boolean; } /** @@ -51,9 +60,31 @@ export class TopicPolicy extends Resource { this.document = props.policyDocument ?? this.document; + if (props.enforceSSL) { + props.topics.map(t => this.document.addStatements(this.createSSLPolicyDocument(t.topicArn))); + } + new CfnTopicPolicy(this, 'Resource', { policyDocument: this.document, topics: props.topics.map(t => t.topicArn), }); } + + /** + * Adds a statement to enforce encryption of data in transit when publishing to the topic. + * + * For more information, see https://docs.aws.amazon.com/sns/latest/dg/sns-security-best-practices.html#enforce-encryption-data-in-transit. + */ + protected createSSLPolicyDocument(topicArn: string): PolicyStatement { + return new PolicyStatement ({ + sid: 'AllowPublishThroughSSLOnly', + actions: ['sns:Publish'], + effect: Effect.DENY, + resources: [topicArn], + conditions: { + Bool: { 'aws:SecureTransport': 'false' }, + }, + principals: [new StarPrincipal()], + }); + } } diff --git a/packages/aws-cdk-lib/aws-sns/lib/topic-base.ts b/packages/aws-cdk-lib/aws-sns/lib/topic-base.ts index 602d83f866369..7e91e89038a6c 100644 --- a/packages/aws-cdk-lib/aws-sns/lib/topic-base.ts +++ b/packages/aws-cdk-lib/aws-sns/lib/topic-base.ts @@ -48,7 +48,7 @@ export interface ITopic extends IResource, notifications.INotificationRuleTarget * Adds a statement to the IAM resource policy associated with this topic. * * If this topic was created in this stack (`new Topic`), a topic policy - * will be automatically created upon the first call to `addToPolicy`. If + * will be automatically created upon the first call to `addToResourcePolicy`. If * the topic is imported (`Topic.import`), then this is a no-op. */ addToResourcePolicy(statement: iam.PolicyStatement): iam.AddToResourcePolicyResult; @@ -78,6 +78,11 @@ export abstract class TopicBase extends Resource implements ITopic { */ protected abstract readonly autoCreatePolicy: boolean; + /** + * Adds a statement to enforce encryption of data in transit when publishing to the topic. + */ + protected enforceSSL?: boolean; + private policy?: TopicPolicy; constructor(scope: Construct, id: string, props: ResourceProps = {}) { @@ -122,7 +127,7 @@ export abstract class TopicBase extends Resource implements ITopic { * Adds a statement to the IAM resource policy associated with this topic. * * If this topic was created in this stack (`new Topic`), a topic policy - * will be automatically created upon the first call to `addToPolicy`. If + * will be automatically created upon the first call to `addToResourcePolicy`. If * the topic is imported (`Topic.import`), then this is a no-op. */ public addToResourcePolicy(statement: iam.PolicyStatement): iam.AddToResourcePolicyResult { @@ -132,11 +137,33 @@ export abstract class TopicBase extends Resource implements ITopic { if (this.policy) { this.policy.document.addStatements(statement); + + if (this.enforceSSL) { + this.policy.document.addStatements(this.createSSLPolicyDocument()); + } return { statementAdded: true, policyDependable: this.policy }; } return { statementAdded: false }; } + /** + * Adds a statement to enforce encryption of data in transit when publishing to the topic. + * + * For more information, see https://docs.aws.amazon.com/sns/latest/dg/sns-security-best-practices.html#enforce-encryption-data-in-transit. + */ + protected createSSLPolicyDocument(): iam.PolicyStatement { + return new iam.PolicyStatement ({ + sid: 'AllowPublishThroughSSLOnly', + actions: ['sns:Publish'], + effect: iam.Effect.DENY, + resources: [this.topicArn], + conditions: { + Bool: { 'aws:SecureTransport': 'false' }, + }, + principals: [new iam.StarPrincipal()], + }); + } + /** * Grant topic publishing permissions to the given identity */ diff --git a/packages/aws-cdk-lib/aws-sns/lib/topic.ts b/packages/aws-cdk-lib/aws-sns/lib/topic.ts index bd55859014bcc..341548644e70d 100644 --- a/packages/aws-cdk-lib/aws-sns/lib/topic.ts +++ b/packages/aws-cdk-lib/aws-sns/lib/topic.ts @@ -67,6 +67,15 @@ export interface TopicProps { * @default - do not archive messages */ readonly messageRetentionPeriodInDays?: number; + + /** + * Adds a statement to enforce encryption of data in transit when publishing to the topic. + * + * For more information, see https://docs.aws.amazon.com/sns/latest/dg/sns-security-best-practices.html#enforce-encryption-data-in-transit. + * + * @default false + */ + readonly enforceSSL?: boolean; } /** @@ -174,6 +183,8 @@ export class Topic extends TopicBase { physicalName: props.topicName, }); + this.enforceSSL = props.enforceSSL; + if (props.contentBasedDeduplication && !props.fifo) { throw new Error('Content based deduplication can only be enabled for FIFO SNS topics.'); } diff --git a/packages/aws-cdk-lib/aws-sns/test/sns.test.ts b/packages/aws-cdk-lib/aws-sns/test/sns.test.ts index edc79b90530af..4cb1ee8a8b275 100644 --- a/packages/aws-cdk-lib/aws-sns/test/sns.test.ts +++ b/packages/aws-cdk-lib/aws-sns/test/sns.test.ts @@ -186,6 +186,51 @@ describe('Topic', () => { }); + test('can enforce ssl when creating the topic', () => { + // GIVEN + const stack = new cdk.Stack(); + const topic = new sns.Topic(stack, 'Topic', { + enforceSSL: true, + }); + + // WHEN + topic.addToResourcePolicy(new iam.PolicyStatement({ + resources: ['*'], + actions: ['sns:*'], + principals: [new iam.ArnPrincipal('arn')], + })); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::SNS::TopicPolicy', { + PolicyDocument: { + Version: '2012-10-17', + Statement: [ + { + 'Sid': '0', + 'Action': 'sns:*', + 'Effect': 'Allow', + 'Principal': { 'AWS': 'arn' }, + 'Resource': '*', + }, + { + 'Sid': 'AllowPublishThroughSSLOnly', + 'Action': 'sns:Publish', + 'Effect': 'Deny', + 'Resource': { + 'Ref': 'TopicBFC7AF6E', + }, + 'Condition': { + 'Bool': { + 'aws:SecureTransport': 'false', + }, + }, + 'Principal': '*', + }, + ], + }, + }); + }); + test('give publishing permissions', () => { // GIVEN const stack = new cdk.Stack(); @@ -281,6 +326,47 @@ describe('Topic', () => { }); + test('Create topic policy and enforce ssl', () => { + // GIVEN + const stack = new cdk.Stack(); + const topic = new sns.Topic(stack, 'MyTopic'); + + // WHEN + new sns.TopicPolicy(stack, 'TopicPolicy', { + topics: [topic], + enforceSSL: true, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::SNS::TopicPolicy', { + 'PolicyDocument': { + 'Statement': [ + { + 'Sid': 'AllowPublishThroughSSLOnly', + 'Action': 'sns:Publish', + 'Effect': 'Deny', + 'Resource': { + 'Ref': 'MyTopic86869434', + }, + 'Condition': { + 'Bool': { + 'aws:SecureTransport': 'false', + }, + }, + 'Principal': '*', + }, + ], + 'Version': '2012-10-17', + }, + 'Topics': [ + { + 'Ref': 'MyTopic86869434', + }, + ], + }); + + }); + test('topic resource policy includes unique SIDs', () => { const stack = new cdk.Stack(); From 74335f63b7be81ede07e1ae2e24e7f59ed44beef Mon Sep 17 00:00:00 2001 From: Calvin Combs <66279577+comcalvi@users.noreply.github.com> Date: Tue, 20 Feb 2024 09:38:44 -0800 Subject: [PATCH 16/22] feat(lambda): adding .net 8 (dotnet8) lambda runtime support (#29178) *Co-authored by*: @Beau-Gosse-dev ### Issue # (if applicable) ### Reason for this change Lambda is launching dotnet8 ### Description of changes new runtime added ### Description of how you validated changes integ tested ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../aws-lambda/test/dotnet-handler/handler.cs | 16 ++ .../handler.cs | 16 ++ ...-cdk-lambda-runtime-management.assets.json | 32 +++ ...dk-lambda-runtime-management.template.json | 91 ++++++++ .../test/integ.runtimes.js.snapshot/cdk.out | 1 + .../integ.runtimes.js.snapshot/integ.json | 12 + ...efaultTestDeployAssertDE680AF3.assets.json | 19 ++ ...aultTestDeployAssertDE680AF3.template.json | 36 +++ .../integ.runtimes.js.snapshot/manifest.json | 119 ++++++++++ .../test/integ.runtimes.js.snapshot/tree.json | 221 ++++++++++++++++++ .../test/aws-lambda/test/integ.runtimes.ts | 17 ++ .../aws-cdk-lib/aws-lambda/lib/runtime.ts | 5 + 12 files changed, 585 insertions(+) create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/dotnet-handler/handler.cs create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/asset.a328343cb12aa16bf2c12bfa98f28509923cf8a0e9771cccbbe967d9e15c08f6/handler.cs create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/aws-cdk-lambda-runtime-management.assets.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/aws-cdk-lambda-runtime-management.template.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/cdk.out create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/integ.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/lambdaruntimemanagementDefaultTestDeployAssertDE680AF3.assets.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/lambdaruntimemanagementDefaultTestDeployAssertDE680AF3.template.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/manifest.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/tree.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.ts diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/dotnet-handler/handler.cs b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/dotnet-handler/handler.cs new file mode 100644 index 0000000000000..5151f1ca92df6 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/dotnet-handler/handler.cs @@ -0,0 +1,16 @@ +[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer))] + +namespace Handler; + +public class Function { + public Function() {} + + public async Task Handler(APIGatewayProxyRequest request) { + var id = request.PathParameters["id"]; + + return new APIGatewayProxyResponse { + StatusCode = (int)HttpStatusCode.OK, + Body = JsonSerializer.Serialize(databaseRecord) + }; + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/asset.a328343cb12aa16bf2c12bfa98f28509923cf8a0e9771cccbbe967d9e15c08f6/handler.cs b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/asset.a328343cb12aa16bf2c12bfa98f28509923cf8a0e9771cccbbe967d9e15c08f6/handler.cs new file mode 100644 index 0000000000000..5151f1ca92df6 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/asset.a328343cb12aa16bf2c12bfa98f28509923cf8a0e9771cccbbe967d9e15c08f6/handler.cs @@ -0,0 +1,16 @@ +[assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer))] + +namespace Handler; + +public class Function { + public Function() {} + + public async Task Handler(APIGatewayProxyRequest request) { + var id = request.PathParameters["id"]; + + return new APIGatewayProxyResponse { + StatusCode = (int)HttpStatusCode.OK, + Body = JsonSerializer.Serialize(databaseRecord) + }; + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/aws-cdk-lambda-runtime-management.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/aws-cdk-lambda-runtime-management.assets.json new file mode 100644 index 0000000000000..3513cd2e82125 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/aws-cdk-lambda-runtime-management.assets.json @@ -0,0 +1,32 @@ +{ + "version": "36.0.0", + "files": { + "a328343cb12aa16bf2c12bfa98f28509923cf8a0e9771cccbbe967d9e15c08f6": { + "source": { + "path": "asset.a328343cb12aa16bf2c12bfa98f28509923cf8a0e9771cccbbe967d9e15c08f6", + "packaging": "zip" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "a328343cb12aa16bf2c12bfa98f28509923cf8a0e9771cccbbe967d9e15c08f6.zip", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + }, + "0b5d2fcad307870038cfd281c114626e26399f8e8640f09d0012b0b142d45dad": { + "source": { + "path": "aws-cdk-lambda-runtime-management.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "0b5d2fcad307870038cfd281c114626e26399f8e8640f09d0012b0b142d45dad.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/aws-cdk-lambda-runtime-management.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/aws-cdk-lambda-runtime-management.template.json new file mode 100644 index 0000000000000..0f82715b2a545 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/aws-cdk-lambda-runtime-management.template.json @@ -0,0 +1,91 @@ +{ + "Resources": { + "LambdaServiceRoleA8ED4D3B": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "LambdaD247545B": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "a328343cb12aa16bf2c12bfa98f28509923cf8a0e9771cccbbe967d9e15c08f6.zip" + }, + "Handler": "Handler", + "Role": { + "Fn::GetAtt": [ + "LambdaServiceRoleA8ED4D3B", + "Arn" + ] + }, + "Runtime": "dotnet8" + }, + "DependsOn": [ + "LambdaServiceRoleA8ED4D3B" + ] + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/cdk.out new file mode 100644 index 0000000000000..1f0068d32659a --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/cdk.out @@ -0,0 +1 @@ +{"version":"36.0.0"} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/integ.json new file mode 100644 index 0000000000000..3027def44fce1 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/integ.json @@ -0,0 +1,12 @@ +{ + "version": "36.0.0", + "testCases": { + "lambda-runtime-management/DefaultTest": { + "stacks": [ + "aws-cdk-lambda-runtime-management" + ], + "assertionStack": "lambda-runtime-management/DefaultTest/DeployAssert", + "assertionStackName": "lambdaruntimemanagementDefaultTestDeployAssertDE680AF3" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/lambdaruntimemanagementDefaultTestDeployAssertDE680AF3.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/lambdaruntimemanagementDefaultTestDeployAssertDE680AF3.assets.json new file mode 100644 index 0000000000000..02ab365f135aa --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/lambdaruntimemanagementDefaultTestDeployAssertDE680AF3.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { + "source": { + "path": "lambdaruntimemanagementDefaultTestDeployAssertDE680AF3.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/lambdaruntimemanagementDefaultTestDeployAssertDE680AF3.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/lambdaruntimemanagementDefaultTestDeployAssertDE680AF3.template.json new file mode 100644 index 0000000000000..ad9d0fb73d1dd --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/lambdaruntimemanagementDefaultTestDeployAssertDE680AF3.template.json @@ -0,0 +1,36 @@ +{ + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/manifest.json new file mode 100644 index 0000000000000..98bf563db0db5 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/manifest.json @@ -0,0 +1,119 @@ +{ + "version": "36.0.0", + "artifacts": { + "aws-cdk-lambda-runtime-management.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "aws-cdk-lambda-runtime-management.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "aws-cdk-lambda-runtime-management": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "aws-cdk-lambda-runtime-management.template.json", + "terminationProtection": false, + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0b5d2fcad307870038cfd281c114626e26399f8e8640f09d0012b0b142d45dad.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "aws-cdk-lambda-runtime-management.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "aws-cdk-lambda-runtime-management.assets" + ], + "metadata": { + "/aws-cdk-lambda-runtime-management/Lambda/ServiceRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LambdaServiceRoleA8ED4D3B" + } + ], + "/aws-cdk-lambda-runtime-management/Lambda/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LambdaD247545B" + } + ], + "/aws-cdk-lambda-runtime-management/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/aws-cdk-lambda-runtime-management/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "aws-cdk-lambda-runtime-management" + }, + "lambdaruntimemanagementDefaultTestDeployAssertDE680AF3.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "lambdaruntimemanagementDefaultTestDeployAssertDE680AF3.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "lambdaruntimemanagementDefaultTestDeployAssertDE680AF3": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "lambdaruntimemanagementDefaultTestDeployAssertDE680AF3.template.json", + "terminationProtection": false, + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "lambdaruntimemanagementDefaultTestDeployAssertDE680AF3.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "lambdaruntimemanagementDefaultTestDeployAssertDE680AF3.assets" + ], + "metadata": { + "/lambda-runtime-management/DefaultTest/DeployAssert/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/lambda-runtime-management/DefaultTest/DeployAssert/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "lambda-runtime-management/DefaultTest/DeployAssert" + }, + "Tree": { + "type": "cdk:tree", + "properties": { + "file": "tree.json" + } + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/tree.json new file mode 100644 index 0000000000000..4e2af82a8510a --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.js.snapshot/tree.json @@ -0,0 +1,221 @@ +{ + "version": "tree-0.1", + "tree": { + "id": "App", + "path": "", + "children": { + "aws-cdk-lambda-runtime-management": { + "id": "aws-cdk-lambda-runtime-management", + "path": "aws-cdk-lambda-runtime-management", + "children": { + "Lambda": { + "id": "Lambda", + "path": "aws-cdk-lambda-runtime-management/Lambda", + "children": { + "ServiceRole": { + "id": "ServiceRole", + "path": "aws-cdk-lambda-runtime-management/Lambda/ServiceRole", + "children": { + "ImportServiceRole": { + "id": "ImportServiceRole", + "path": "aws-cdk-lambda-runtime-management/Lambda/ServiceRole/ImportServiceRole", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-lambda-runtime-management/Lambda/ServiceRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "managedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.CfnRole", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.Role", + "version": "0.0.0" + } + }, + "Code": { + "id": "Code", + "path": "aws-cdk-lambda-runtime-management/Lambda/Code", + "children": { + "Stage": { + "id": "Stage", + "path": "aws-cdk-lambda-runtime-management/Lambda/Code/Stage", + "constructInfo": { + "fqn": "aws-cdk-lib.AssetStaging", + "version": "0.0.0" + } + }, + "AssetBucket": { + "id": "AssetBucket", + "path": "aws-cdk-lambda-runtime-management/Lambda/Code/AssetBucket", + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.BucketBase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3_assets.Asset", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-lambda-runtime-management/Lambda/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::Lambda::Function", + "aws:cdk:cloudformation:props": { + "code": { + "s3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "s3Key": "a328343cb12aa16bf2c12bfa98f28509923cf8a0e9771cccbbe967d9e15c08f6.zip" + }, + "handler": "Handler", + "role": { + "Fn::GetAtt": [ + "LambdaServiceRoleA8ED4D3B", + "Arn" + ] + }, + "runtime": "dotnet8" + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_lambda.CfnFunction", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_lambda.Function", + "version": "0.0.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "aws-cdk-lambda-runtime-management/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "aws-cdk-lambda-runtime-management/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + }, + "lambda-runtime-management": { + "id": "lambda-runtime-management", + "path": "lambda-runtime-management", + "children": { + "DefaultTest": { + "id": "DefaultTest", + "path": "lambda-runtime-management/DefaultTest", + "children": { + "Default": { + "id": "Default", + "path": "lambda-runtime-management/DefaultTest/Default", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DeployAssert": { + "id": "DeployAssert", + "path": "lambda-runtime-management/DefaultTest/DeployAssert", + "children": { + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "lambda-runtime-management/DefaultTest/DeployAssert/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "lambda-runtime-management/DefaultTest/DeployAssert/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.IntegTest", + "version": "0.0.0" + } + }, + "Tree": { + "id": "Tree", + "path": "Tree", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.App", + "version": "0.0.0" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.ts new file mode 100644 index 0000000000000..d5887867c6b74 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtimes.ts @@ -0,0 +1,17 @@ +import { App, Stack } from 'aws-cdk-lib'; +import * as integ from '@aws-cdk/integ-tests-alpha'; +import { Code, Function, Runtime } from 'aws-cdk-lib/aws-lambda'; + +const app = new App(); + +const stack = new Stack(app, 'aws-cdk-lambda-runtime-management'); + +new Function(stack, 'Lambda', { + code: Code.fromAsset('dotnet-handler'), + handler: 'Handler', + runtime: Runtime.DOTNET_8, +}); + +new integ.IntegTest(app, 'lambda-runtime-management', { + testCases: [stack], +}); diff --git a/packages/aws-cdk-lib/aws-lambda/lib/runtime.ts b/packages/aws-cdk-lib/aws-lambda/lib/runtime.ts index 1c05e74ec7957..1cee8ac05823d 100644 --- a/packages/aws-cdk-lib/aws-lambda/lib/runtime.ts +++ b/packages/aws-cdk-lib/aws-lambda/lib/runtime.ts @@ -226,6 +226,11 @@ export class Runtime { */ public static readonly DOTNET_6 = new Runtime('dotnet6', RuntimeFamily.DOTNET_CORE); + /** + * The .NET 8 runtime (dotnet8) + */ + public static readonly DOTNET_8 = new Runtime('dotnet8', RuntimeFamily.DOTNET_CORE); + /** * The .NET Core 1.0 runtime (dotnetcore1.0) * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime. From c17879dd8dab526695e69c6faf8345292634ba24 Mon Sep 17 00:00:00 2001 From: Jane Chen <125300057+chenjane-dev@users.noreply.github.com> Date: Tue, 20 Feb 2024 15:05:06 -0500 Subject: [PATCH 17/22] fix(appconfig): scope generated alarm role policy to '*' for composite alarm support (#29171) ### Reason for this change Customers could create an alarm of type `IAlarm` where the alarm would be a composite alarm (for ex, when importing composite alarms, they return a type `IAlarm` instead of `CompositeAlarm`. This caused the logic that differentiates a composite alarm to mistakenly categorize the alarm incorrectly. ### Description of changes Add one policy scoped to `*` for any alarm passed to an environment. ### Description of how you validated changes Unit and integration tests ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../aws-appconfig-alpha/lib/environment.ts | 24 +- .../test/environment.test.ts | 80 +++--- ...efaultTestDeployAssert75BD28E7.assets.json | 2 +- .../aws-appconfig-environment.assets.json | 6 +- .../aws-appconfig-environment.template.json | 171 ++++++----- .../integ.environment.js.snapshot/cdk.out | 2 +- .../integ.environment.js.snapshot/integ.json | 2 +- .../manifest.json | 47 +++- .../integ.environment.js.snapshot/tree.json | 265 +++++++++++------- .../test/integ.environment.ts | 56 +++- 10 files changed, 397 insertions(+), 258 deletions(-) diff --git a/packages/@aws-cdk/aws-appconfig-alpha/lib/environment.ts b/packages/@aws-cdk/aws-appconfig-alpha/lib/environment.ts index d85ecab12e231..aaad287952b5c 100644 --- a/packages/@aws-cdk/aws-appconfig-alpha/lib/environment.ts +++ b/packages/@aws-cdk/aws-appconfig-alpha/lib/environment.ts @@ -5,6 +5,7 @@ import * as iam from 'aws-cdk-lib/aws-iam'; import { Construct } from 'constructs'; import { IApplication } from './application'; import { ActionPoint, IEventDestination, ExtensionOptions, IExtension, IExtensible, ExtensibleBase } from './extension'; +import { getHash } from './private/hash'; /** * Attributes of an existing AWS AppConfig environment to import it. @@ -252,11 +253,11 @@ export class Environment extends EnvironmentBase { applicationId: this.applicationId, name: this.name, description: this.description, - monitors: this.monitors?.map((monitor, index) => { + monitors: this.monitors?.map((monitor) => { return { alarmArn: monitor.alarmArn, ...(monitor.monitorType === MonitorType.CLOUDWATCH - ? { alarmRoleArn: monitor.alarmRoleArn || this.createAlarmRole(monitor, index).roleArn } + ? { alarmRoleArn: monitor.alarmRoleArn || this.createOrGetAlarmRole().roleArn } : { alarmRoleArn: monitor.alarmRoleArn }), }; }), @@ -274,24 +275,20 @@ export class Environment extends EnvironmentBase { this.application.addExistingEnvironment(this); } - private createAlarmRole(monitor: Monitor, index: number): iam.IRole { - const logicalId = monitor.isCompositeAlarm ? 'RoleCompositeAlarm' : `Role${index}`; + private createOrGetAlarmRole(): iam.IRole { + // the name is guaranteed to be set in line 243 + const logicalId = `Role${getHash(this.name!)}`; const existingRole = this.node.tryFindChild(logicalId) as iam.IRole; if (existingRole) { return existingRole; } - const alarmArn = monitor.isCompositeAlarm - ? this.stack.formatArn({ - service: 'cloudwatch', - resource: 'alarm', - resourceName: '*', - arnFormat: ArnFormat.COLON_RESOURCE_NAME, - }) - : monitor.alarmArn; + // this scope is fine for cloudwatch:DescribeAlarms since it is readonly + // and it is required for composite alarms + // https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html const policy = new iam.PolicyStatement({ effect: iam.Effect.ALLOW, actions: ['cloudwatch:DescribeAlarms'], - resources: [alarmArn], + resources: ['*'], }); const document = new iam.PolicyDocument({ statements: [policy], @@ -338,7 +335,6 @@ export abstract class Monitor { alarmArn: alarm.alarmArn, alarmRoleArn: alarmRole?.roleArn, monitorType: MonitorType.CLOUDWATCH, - isCompositeAlarm: alarm instanceof cloudwatch.CompositeAlarm, }; } diff --git a/packages/@aws-cdk/aws-appconfig-alpha/test/environment.test.ts b/packages/@aws-cdk/aws-appconfig-alpha/test/environment.test.ts index 261d113728dae..8c0f8eae3aca1 100644 --- a/packages/@aws-cdk/aws-appconfig-alpha/test/environment.test.ts +++ b/packages/@aws-cdk/aws-appconfig-alpha/test/environment.test.ts @@ -140,7 +140,7 @@ describe('environment', () => { }, AlarmRoleArn: { 'Fn::GetAtt': [ - 'MyEnvironmentRole01C8C013F', + 'MyEnvironmentRole1E6113D2F07A1', 'Arn', ], }, @@ -154,12 +154,7 @@ describe('environment', () => { Statement: [ { Effect: iam.Effect.ALLOW, - Resource: { - 'Fn::GetAtt': [ - 'Alarm7103F465', - 'Arn', - ], - }, + Resource: '*', Action: 'cloudwatch:DescribeAlarms', }, ], @@ -272,7 +267,7 @@ describe('environment', () => { }, AlarmRoleArn: { 'Fn::GetAtt': [ - 'MyEnvironmentRoleCompositeAlarm8C2A0542', + 'MyEnvironmentRole1E6113D2F07A1', 'Arn', ], }, @@ -286,20 +281,7 @@ describe('environment', () => { Statement: [ { Effect: iam.Effect.ALLOW, - Resource: { - 'Fn::Join': [ - '', - [ - 'arn:', - { Ref: 'AWS::Partition' }, - ':cloudwatch:', - { Ref: 'AWS::Region' }, - ':', - { Ref: 'AWS::AccountId' }, - ':alarm:*', - ], - ], - }, + Resource: '*', Action: 'cloudwatch:DescribeAlarms', }, ], @@ -357,7 +339,7 @@ describe('environment', () => { }, AlarmRoleArn: { 'Fn::GetAtt': [ - 'MyEnvironmentRoleCompositeAlarm8C2A0542', + 'MyEnvironmentRole1E6113D2F07A1', 'Arn', ], }, @@ -371,7 +353,7 @@ describe('environment', () => { }, AlarmRoleArn: { 'Fn::GetAtt': [ - 'MyEnvironmentRoleCompositeAlarm8C2A0542', + 'MyEnvironmentRole1E6113D2F07A1', 'Arn', ], }, @@ -385,20 +367,7 @@ describe('environment', () => { Statement: [ { Effect: iam.Effect.ALLOW, - Resource: { - 'Fn::Join': [ - '', - [ - 'arn:', - { Ref: 'AWS::Partition' }, - ':cloudwatch:', - { Ref: 'AWS::Region' }, - ':', - { Ref: 'AWS::AccountId' }, - ':alarm:*', - ], - ], - }, + Resource: '*', Action: 'cloudwatch:DescribeAlarms', }, ], @@ -409,7 +378,7 @@ describe('environment', () => { }); }); - test('environment with monitors with two alarms', () => { + test('environment with monitors with multiple alarms', () => { const stack = new cdk.Stack(); const app = new Application(stack, 'MyAppConfig'); const alarm1 = new Alarm(stack, 'Alarm1', { @@ -432,17 +401,28 @@ describe('environment', () => { }, ), }); + const alarm3 = new Alarm(stack, 'Alarm3', { + threshold: 5, + evaluationPeriods: 5, + metric: new Metric( + { + namespace: 'aws', + metricName: 'myMetric', + }, + ), + }); new Environment(stack, 'MyEnvironment', { environmentName: 'TestEnv', application: app, monitors: [ Monitor.fromCloudWatchAlarm(alarm1), Monitor.fromCloudWatchAlarm(alarm2), + Monitor.fromCloudWatchAlarm(alarm3), ], }); - Template.fromStack(stack).resourceCountIs('AWS::CloudWatch::Alarm', 2); - Template.fromStack(stack).resourceCountIs('AWS::IAM::Role', 2); + Template.fromStack(stack).resourceCountIs('AWS::CloudWatch::Alarm', 3); + Template.fromStack(stack).resourceCountIs('AWS::IAM::Role', 1); Template.fromStack(stack).hasResourceProperties('AWS::AppConfig::Environment', { Name: 'TestEnv', ApplicationId: { @@ -458,7 +438,7 @@ describe('environment', () => { }, AlarmRoleArn: { 'Fn::GetAtt': [ - 'MyEnvironmentRole01C8C013F', + 'MyEnvironmentRole1E6113D2F07A1', 'Arn', ], }, @@ -472,7 +452,21 @@ describe('environment', () => { }, AlarmRoleArn: { 'Fn::GetAtt': [ - 'MyEnvironmentRole135A2CEE4', + 'MyEnvironmentRole1E6113D2F07A1', + 'Arn', + ], + }, + }, + { + AlarmArn: { + 'Fn::GetAtt': [ + 'Alarm32341D8D9', + 'Arn', + ], + }, + AlarmRoleArn: { + 'Fn::GetAtt': [ + 'MyEnvironmentRole1E6113D2F07A1', 'Arn', ], }, diff --git a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/appconfigenvironmentDefaultTestDeployAssert75BD28E7.assets.json b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/appconfigenvironmentDefaultTestDeployAssert75BD28E7.assets.json index 87b95745076b2..947e7fb4d76ea 100644 --- a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/appconfigenvironmentDefaultTestDeployAssert75BD28E7.assets.json +++ b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/appconfigenvironmentDefaultTestDeployAssert75BD28E7.assets.json @@ -1,5 +1,5 @@ { - "version": "35.0.0", + "version": "36.0.0", "files": { "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { "source": { diff --git a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/aws-appconfig-environment.assets.json b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/aws-appconfig-environment.assets.json index fa54d57aa0d8a..8ffcd1a6d5b6d 100644 --- a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/aws-appconfig-environment.assets.json +++ b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/aws-appconfig-environment.assets.json @@ -1,7 +1,7 @@ { - "version": "35.0.0", + "version": "36.0.0", "files": { - "6452c0ef7699cda5c609159e92012f180afda9cac21a0cba23acff97b8734de7": { + "6ec3a45c455c20f3072a3622b3e548aa72a4c1b8e5a1fac757962194d9f1c82d": { "source": { "path": "aws-appconfig-environment.template.json", "packaging": "file" @@ -9,7 +9,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "6452c0ef7699cda5c609159e92012f180afda9cac21a0cba23acff97b8734de7.json", + "objectKey": "6ec3a45c455c20f3072a3622b3e548aa72a4c1b8e5a1fac757962194d9f1c82d.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/aws-appconfig-environment.template.json b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/aws-appconfig-environment.template.json index bb9c67d5ebfcb..ea327d13d23c1 100644 --- a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/aws-appconfig-environment.template.json +++ b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/aws-appconfig-environment.template.json @@ -6,16 +6,33 @@ "Name": "AppForEnvTest" } }, - "MyAlarm696658B6": { + "StartDeploymentCallCountAlarm6846E07B": { "Type": "AWS::CloudWatch::Alarm", "Properties": { + "ActionsEnabled": false, + "AlarmName": "AppConfigStartDeploymentCallCountAlarm", "ComparisonOperator": "GreaterThanOrEqualToThreshold", - "EvaluationPeriods": 5, - "MetricName": "dummy name", - "Namespace": "aws", + "Dimensions": [ + { + "Name": "Resource", + "Value": "StartDeployment" + }, + { + "Name": "Service", + "Value": "AWS AppConfig" + }, + { + "Name": "Type", + "Value": "API" + } + ], + "EvaluationPeriods": 3, + "MetricName": "CallCount", + "Namespace": "AWS/AppConfig", "Period": 300, - "Statistic": "Average", - "Threshold": 10 + "Statistic": "Sum", + "Threshold": 300, + "TreatMissingData": "notBreaching" } }, "MyRoleF48FFE04": { @@ -32,7 +49,22 @@ } ], "Version": "2012-10-17" - } + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": "cloudwatch:DescribeAlarms", + "Effect": "Allow", + "Resource": "*" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AllowAppConfigMonitorAlarmPolicy" + } + ] } }, "MyCompositeAlarm0F045229": { @@ -46,7 +78,7 @@ "ALARM(\"", { "Fn::GetAtt": [ - "MyAlarm696658B6", + "StartDeploymentCallCountAlarm6846E07B", "Arn" ] }, @@ -56,44 +88,7 @@ } } }, - "MyEnvironmentRole01C8C013F": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appconfig.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": "cloudwatch:DescribeAlarms", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "MyAlarm696658B6", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AllowAppConfigMonitorAlarmPolicy" - } - ] - } - }, - "MyEnvironmentRoleCompositeAlarm8C2A0542": { + "MyEnvironmentRole1963C404EAE3E": { "Type": "AWS::IAM::Role", "Properties": { "AssumeRolePolicyDocument": { @@ -115,26 +110,7 @@ { "Action": "cloudwatch:DescribeAlarms", "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":cloudwatch:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":alarm:*" - ] - ] - } + "Resource": "*" } ], "Version": "2012-10-17" @@ -155,13 +131,13 @@ { "AlarmArn": { "Fn::GetAtt": [ - "MyAlarm696658B6", + "StartDeploymentCallCountAlarm6846E07B", "Arn" ] }, "AlarmRoleArn": { "Fn::GetAtt": [ - "MyEnvironmentRole01C8C013F", + "MyEnvironmentRole1963C404EAE3E", "Arn" ] } @@ -169,7 +145,7 @@ { "AlarmArn": { "Fn::GetAtt": [ - "MyAlarm696658B6", + "StartDeploymentCallCountAlarm6846E07B", "Arn" ] }, @@ -189,7 +165,7 @@ }, "AlarmRoleArn": { "Fn::GetAtt": [ - "MyEnvironmentRoleCompositeAlarm8C2A0542", + "MyEnvironmentRole1963C404EAE3E", "Arn" ] } @@ -197,6 +173,61 @@ ], "Name": "awsappconfigenvironment-MyEnvironment-C8813182" } + }, + "MyDeploymentStrategy60D31FB0": { + "Type": "AWS::AppConfig::DeploymentStrategy", + "Properties": { + "DeploymentDurationInMinutes": 1, + "GrowthFactor": 50, + "GrowthType": "LINEAR", + "Name": "awsappconfigenvironment-MyDeploymentStrategy-28486041", + "ReplicateTo": "NONE" + } + }, + "MyConfigConfigurationProfileCF3951C3": { + "Type": "AWS::AppConfig::ConfigurationProfile", + "Properties": { + "ApplicationId": { + "Ref": "MyApplicationForEnv1F597ED9" + }, + "LocationUri": "hosted", + "Name": "awsappconfigenvironment-MyConfig-24828868" + } + }, + "MyConfigFA92D419": { + "Type": "AWS::AppConfig::HostedConfigurationVersion", + "Properties": { + "ApplicationId": { + "Ref": "MyApplicationForEnv1F597ED9" + }, + "ConfigurationProfileId": { + "Ref": "MyConfigConfigurationProfileCF3951C3" + }, + "Content": "config content", + "ContentType": "application/octet-stream" + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "MyConfigDeployment1963CC374E8A4": { + "Type": "AWS::AppConfig::Deployment", + "Properties": { + "ApplicationId": { + "Ref": "MyApplicationForEnv1F597ED9" + }, + "ConfigurationProfileId": { + "Ref": "MyConfigConfigurationProfileCF3951C3" + }, + "ConfigurationVersion": { + "Ref": "MyConfigFA92D419" + }, + "DeploymentStrategyId": { + "Ref": "MyDeploymentStrategy60D31FB0" + }, + "EnvironmentId": { + "Ref": "MyEnvironment465E4DEA" + } + } } }, "Parameters": { diff --git a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/cdk.out b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/cdk.out index c5cb2e5de6344..1f0068d32659a 100644 --- a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/cdk.out +++ b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/cdk.out @@ -1 +1 @@ -{"version":"35.0.0"} \ No newline at end of file +{"version":"36.0.0"} \ No newline at end of file diff --git a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/integ.json b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/integ.json index 8c6291ddb72a5..c314a395d9c88 100644 --- a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/integ.json +++ b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/integ.json @@ -1,5 +1,5 @@ { - "version": "35.0.0", + "version": "36.0.0", "testCases": { "appconfig-environment/DefaultTest": { "stacks": [ diff --git a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/manifest.json b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/manifest.json index cb504329bc8a0..e21ade66747e8 100644 --- a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/manifest.json +++ b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/manifest.json @@ -1,5 +1,5 @@ { - "version": "35.0.0", + "version": "36.0.0", "artifacts": { "aws-appconfig-environment.assets": { "type": "cdk:asset-manifest", @@ -18,7 +18,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6452c0ef7699cda5c609159e92012f180afda9cac21a0cba23acff97b8734de7.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6ec3a45c455c20f3072a3622b3e548aa72a4c1b8e5a1fac757962194d9f1c82d.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -40,10 +40,10 @@ "data": "MyApplicationForEnv1F597ED9" } ], - "/aws-appconfig-environment/MyAlarm/Resource": [ + "/aws-appconfig-environment/StartDeploymentCallCountAlarm/Resource": [ { "type": "aws:cdk:logicalId", - "data": "MyAlarm696658B6" + "data": "StartDeploymentCallCountAlarm6846E07B" } ], "/aws-appconfig-environment/MyRole/Resource": [ @@ -58,22 +58,40 @@ "data": "MyCompositeAlarm0F045229" } ], - "/aws-appconfig-environment/MyEnvironment/Role0/Resource": [ + "/aws-appconfig-environment/MyEnvironment/Role1963C/Resource": [ { "type": "aws:cdk:logicalId", - "data": "MyEnvironmentRole01C8C013F" + "data": "MyEnvironmentRole1963C404EAE3E" } ], - "/aws-appconfig-environment/MyEnvironment/RoleCompositeAlarm/Resource": [ + "/aws-appconfig-environment/MyEnvironment/Resource": [ { "type": "aws:cdk:logicalId", - "data": "MyEnvironmentRoleCompositeAlarm8C2A0542" + "data": "MyEnvironment465E4DEA" } ], - "/aws-appconfig-environment/MyEnvironment/Resource": [ + "/aws-appconfig-environment/MyDeploymentStrategy/Resource": [ { "type": "aws:cdk:logicalId", - "data": "MyEnvironment465E4DEA" + "data": "MyDeploymentStrategy60D31FB0" + } + ], + "/aws-appconfig-environment/MyConfig/ConfigurationProfile": [ + { + "type": "aws:cdk:logicalId", + "data": "MyConfigConfigurationProfileCF3951C3" + } + ], + "/aws-appconfig-environment/MyConfig/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "MyConfigFA92D419" + } + ], + "/aws-appconfig-environment/MyConfig/Deployment1963C": [ + { + "type": "aws:cdk:logicalId", + "data": "MyConfigDeployment1963CC374E8A4" } ], "/aws-appconfig-environment/BootstrapVersion": [ @@ -87,6 +105,15 @@ "type": "aws:cdk:logicalId", "data": "CheckBootstrapVersion" } + ], + "MyConfigDeployment36077E0B58611": [ + { + "type": "aws:cdk:logicalId", + "data": "MyConfigDeployment36077E0B58611", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } ] }, "displayName": "aws-appconfig-environment" diff --git a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/tree.json b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/tree.json index 744719477b065..fd96c532cfa58 100644 --- a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/tree.json +++ b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.js.snapshot/tree.json @@ -32,23 +32,40 @@ "version": "0.0.0" } }, - "MyAlarm": { - "id": "MyAlarm", - "path": "aws-appconfig-environment/MyAlarm", + "StartDeploymentCallCountAlarm": { + "id": "StartDeploymentCallCountAlarm", + "path": "aws-appconfig-environment/StartDeploymentCallCountAlarm", "children": { "Resource": { "id": "Resource", - "path": "aws-appconfig-environment/MyAlarm/Resource", + "path": "aws-appconfig-environment/StartDeploymentCallCountAlarm/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm", "aws:cdk:cloudformation:props": { + "actionsEnabled": false, + "alarmName": "AppConfigStartDeploymentCallCountAlarm", "comparisonOperator": "GreaterThanOrEqualToThreshold", - "evaluationPeriods": 5, - "metricName": "dummy name", - "namespace": "aws", + "dimensions": [ + { + "name": "Resource", + "value": "StartDeployment" + }, + { + "name": "Service", + "value": "AWS AppConfig" + }, + { + "name": "Type", + "value": "API" + } + ], + "evaluationPeriods": 3, + "metricName": "CallCount", + "namespace": "AWS/AppConfig", "period": 300, - "statistic": "Average", - "threshold": 10 + "statistic": "Sum", + "threshold": 300, + "treatMissingData": "notBreaching" } }, "constructInfo": { @@ -91,7 +108,22 @@ } ], "Version": "2012-10-17" - } + }, + "policies": [ + { + "policyName": "AllowAppConfigMonitorAlarmPolicy", + "policyDocument": { + "Statement": [ + { + "Action": "cloudwatch:DescribeAlarms", + "Effect": "Allow", + "Resource": "*" + } + ], + "Version": "2012-10-17" + } + } + ] } }, "constructInfo": { @@ -123,7 +155,7 @@ "ALARM(\"", { "Fn::GetAtt": [ - "MyAlarm696658B6", + "StartDeploymentCallCountAlarm6846E07B", "Arn" ] }, @@ -148,76 +180,13 @@ "id": "MyEnvironment", "path": "aws-appconfig-environment/MyEnvironment", "children": { - "Role0": { - "id": "Role0", - "path": "aws-appconfig-environment/MyEnvironment/Role0", - "children": { - "ImportRole0": { - "id": "ImportRole0", - "path": "aws-appconfig-environment/MyEnvironment/Role0/ImportRole0", - "constructInfo": { - "fqn": "aws-cdk-lib.Resource", - "version": "0.0.0" - } - }, - "Resource": { - "id": "Resource", - "path": "aws-appconfig-environment/MyEnvironment/Role0/Resource", - "attributes": { - "aws:cdk:cloudformation:type": "AWS::IAM::Role", - "aws:cdk:cloudformation:props": { - "assumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appconfig.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "policies": [ - { - "policyName": "AllowAppConfigMonitorAlarmPolicy", - "policyDocument": { - "Statement": [ - { - "Action": "cloudwatch:DescribeAlarms", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "MyAlarm696658B6", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - } - } - ] - } - }, - "constructInfo": { - "fqn": "aws-cdk-lib.aws_iam.CfnRole", - "version": "0.0.0" - } - } - }, - "constructInfo": { - "fqn": "aws-cdk-lib.aws_iam.Role", - "version": "0.0.0" - } - }, - "RoleCompositeAlarm": { - "id": "RoleCompositeAlarm", - "path": "aws-appconfig-environment/MyEnvironment/RoleCompositeAlarm", + "Role1963C": { + "id": "Role1963C", + "path": "aws-appconfig-environment/MyEnvironment/Role1963C", "children": { - "ImportRoleCompositeAlarm": { - "id": "ImportRoleCompositeAlarm", - "path": "aws-appconfig-environment/MyEnvironment/RoleCompositeAlarm/ImportRoleCompositeAlarm", + "ImportRole1963C": { + "id": "ImportRole1963C", + "path": "aws-appconfig-environment/MyEnvironment/Role1963C/ImportRole1963C", "constructInfo": { "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" @@ -225,7 +194,7 @@ }, "Resource": { "id": "Resource", - "path": "aws-appconfig-environment/MyEnvironment/RoleCompositeAlarm/Resource", + "path": "aws-appconfig-environment/MyEnvironment/Role1963C/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::IAM::Role", "aws:cdk:cloudformation:props": { @@ -249,26 +218,7 @@ { "Action": "cloudwatch:DescribeAlarms", "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":cloudwatch:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":alarm:*" - ] - ] - } + "Resource": "*" } ], "Version": "2012-10-17" @@ -302,13 +252,13 @@ { "alarmArn": { "Fn::GetAtt": [ - "MyAlarm696658B6", + "StartDeploymentCallCountAlarm6846E07B", "Arn" ] }, "alarmRoleArn": { "Fn::GetAtt": [ - "MyEnvironmentRole01C8C013F", + "MyEnvironmentRole1963C404EAE3E", "Arn" ] } @@ -316,7 +266,7 @@ { "alarmArn": { "Fn::GetAtt": [ - "MyAlarm696658B6", + "StartDeploymentCallCountAlarm6846E07B", "Arn" ] }, @@ -336,7 +286,7 @@ }, "alarmRoleArn": { "Fn::GetAtt": [ - "MyEnvironmentRoleCompositeAlarm8C2A0542", + "MyEnvironmentRole1963C404EAE3E", "Arn" ] } @@ -356,6 +306,111 @@ "version": "0.0.0" } }, + "MyDeploymentStrategy": { + "id": "MyDeploymentStrategy", + "path": "aws-appconfig-environment/MyDeploymentStrategy", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-appconfig-environment/MyDeploymentStrategy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::AppConfig::DeploymentStrategy", + "aws:cdk:cloudformation:props": { + "deploymentDurationInMinutes": 1, + "growthFactor": 50, + "growthType": "LINEAR", + "name": "awsappconfigenvironment-MyDeploymentStrategy-28486041", + "replicateTo": "NONE" + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_appconfig.CfnDeploymentStrategy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-appconfig-alpha.DeploymentStrategy", + "version": "0.0.0" + } + }, + "MyConfig": { + "id": "MyConfig", + "path": "aws-appconfig-environment/MyConfig", + "children": { + "ConfigurationProfile": { + "id": "ConfigurationProfile", + "path": "aws-appconfig-environment/MyConfig/ConfigurationProfile", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::AppConfig::ConfigurationProfile", + "aws:cdk:cloudformation:props": { + "applicationId": { + "Ref": "MyApplicationForEnv1F597ED9" + }, + "locationUri": "hosted", + "name": "awsappconfigenvironment-MyConfig-24828868" + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_appconfig.CfnConfigurationProfile", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-appconfig-environment/MyConfig/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::AppConfig::HostedConfigurationVersion", + "aws:cdk:cloudformation:props": { + "applicationId": { + "Ref": "MyApplicationForEnv1F597ED9" + }, + "configurationProfileId": { + "Ref": "MyConfigConfigurationProfileCF3951C3" + }, + "content": "config content", + "contentType": "application/octet-stream" + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_appconfig.CfnHostedConfigurationVersion", + "version": "0.0.0" + } + }, + "Deployment1963C": { + "id": "Deployment1963C", + "path": "aws-appconfig-environment/MyConfig/Deployment1963C", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::AppConfig::Deployment", + "aws:cdk:cloudformation:props": { + "applicationId": { + "Ref": "MyApplicationForEnv1F597ED9" + }, + "configurationProfileId": { + "Ref": "MyConfigConfigurationProfileCF3951C3" + }, + "configurationVersion": { + "Ref": "MyConfigFA92D419" + }, + "deploymentStrategyId": { + "Ref": "MyDeploymentStrategy60D31FB0" + }, + "environmentId": { + "Ref": "MyEnvironment465E4DEA" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_appconfig.CfnDeployment", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-appconfig-alpha.HostedConfiguration", + "version": "0.0.0" + } + }, "BootstrapVersion": { "id": "BootstrapVersion", "path": "aws-appconfig-environment/BootstrapVersion", diff --git a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.ts b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.ts index 31f41061aaca1..30694cc43e900 100644 --- a/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.ts +++ b/packages/@aws-cdk/aws-appconfig-alpha/test/integ.environment.ts @@ -1,8 +1,8 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha'; -import { App, Stack } from 'aws-cdk-lib'; -import { Alarm, CompositeAlarm, Metric } from 'aws-cdk-lib/aws-cloudwatch'; -import { Role, ServicePrincipal } from 'aws-cdk-lib/aws-iam'; -import { Application, Environment, Monitor } from '../lib'; +import { App, Duration, PhysicalName, Stack } from 'aws-cdk-lib'; +import { Alarm, ComparisonOperator, CompositeAlarm, Metric, TreatMissingData } from 'aws-cdk-lib/aws-cloudwatch'; +import { Role, ServicePrincipal, Effect, PolicyStatement, PolicyDocument } from 'aws-cdk-lib/aws-iam'; +import { Application, ConfigurationContent, DeploymentStrategy, Environment, HostedConfiguration, Monitor, RolloutStrategy } from '../lib'; const app = new App(); @@ -12,23 +12,46 @@ const stack = new Stack(app, 'aws-appconfig-environment'); const appForEnv = new Application(stack, 'MyApplicationForEnv', { applicationName: 'AppForEnvTest', }); -const alarm = new Alarm(stack, 'MyAlarm', { +const alarm = new Alarm(stack, 'StartDeploymentCallCountAlarm', { + alarmName: 'AppConfigStartDeploymentCallCountAlarm', metric: new Metric({ - namespace: 'aws', - metricName: 'dummy name', + namespace: 'AWS/AppConfig', + metricName: 'CallCount', + dimensionsMap: { + Type: 'API', + Resource: 'StartDeployment', + Service: 'AWS AppConfig', + }, + statistic: 'SUM', + period: Duration.minutes(5), }), - evaluationPeriods: 5, - threshold: 10, + threshold: 300, + comparisonOperator: ComparisonOperator.GREATER_THAN_OR_EQUAL_TO_THRESHOLD, + evaluationPeriods: 3, + treatMissingData: TreatMissingData.NOT_BREACHING, + actionsEnabled: false, +}); +const policy = new PolicyStatement({ + effect: Effect.ALLOW, + actions: ['cloudwatch:DescribeAlarms'], + resources: ['*'], +}); +const document = new PolicyDocument({ + statements: [policy], }); const role = new Role(stack, 'MyRole', { + roleName: PhysicalName.GENERATE_IF_NEEDED, assumedBy: new ServicePrincipal('appconfig.amazonaws.com'), + inlinePolicies: { + ['AllowAppConfigMonitorAlarmPolicy']: document, + }, }); const compositeAlarm = new CompositeAlarm(stack, 'MyCompositeAlarm', { alarmRule: alarm, }); // create environment with all props defined -new Environment(stack, 'MyEnvironment', { +const env = new Environment(stack, 'MyEnvironment', { application: appForEnv, description: 'This is the environment for integ testing', monitors: [ @@ -41,6 +64,19 @@ new Environment(stack, 'MyEnvironment', { ], }); +// ensure the service can track the monitors in the environment +new HostedConfiguration(stack, 'MyConfig', { + application: appForEnv, + content: ConfigurationContent.fromInline('config content'), + deploymentStrategy: new DeploymentStrategy(stack, 'MyDeploymentStrategy', { + rolloutStrategy: RolloutStrategy.linear({ + deploymentDuration: Duration.minutes(1), + growthFactor: 50, + }), + }), + deployTo: [env], +}); + /* resource deployment alone is sufficient because we already have the corresponding resource handler tests to assert that resources can be used after created */ From 90caad953147c2c15022898f40b49a8d44997f6e Mon Sep 17 00:00:00 2001 From: Vandita Patidar Date: Tue, 20 Feb 2024 18:00:56 -0800 Subject: [PATCH 18/22] feat(lambda): Add `Ipv6AllowedforDualStack` support for Lambda function (#28928) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR adds support to configure IPv6 connectivity for lambda function by adding a single field to the VPC configuration in CDK’s Lambda Console to enable IPv6 dual stack support. The `Ipv6AllowedForDualStack` field is a new property that allows Lambda functions to specify whether the IPv6 traffic should be allowed when using dual-stack VPCs. - Support IPv6 connectivity for Lambda function by setting "ipv6AllowedForDualStack : true". This value will be converted to VpcConfig: {Ipv6AllowedForDualStack: true,} in template. *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- ...efaultTestDeployAssert8ACBFB2C.assets.json | 19 + ...aultTestDeployAssert8ACBFB2C.template.json | 36 + .../DualStackVpc.assets.json | 32 + .../DualStackVpc.template.json | 1145 +++++++++++++ .../__entrypoint__.js | 147 ++ .../index.js | 1 + .../cdk.out | 1 + .../integ.json | 12 + .../manifest.json | 755 +++++++++ .../tree.json | 1501 +++++++++++++++++ .../test/integ.lambda_with_dualStack_vpc.ts | 42 + packages/aws-cdk-lib/aws-lambda/README.md | 43 + .../aws-cdk-lib/aws-lambda/lib/function.ts | 28 +- .../aws-lambda/test/function.test.ts | 94 ++ 14 files changed, 3852 insertions(+), 4 deletions(-) create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackTestingDefaultTestDeployAssert8ACBFB2C.assets.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackTestingDefaultTestDeployAssert8ACBFB2C.template.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackVpc.assets.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackVpc.template.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/asset.4554b47be6f57b68c6c7a7391dcc73894866d2377fe174883351e7639097f292/__entrypoint__.js create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/asset.4554b47be6f57b68c6c7a7391dcc73894866d2377fe174883351e7639097f292/index.js create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/cdk.out create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/integ.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/manifest.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/tree.json create mode 100644 packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.ts diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackTestingDefaultTestDeployAssert8ACBFB2C.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackTestingDefaultTestDeployAssert8ACBFB2C.assets.json new file mode 100644 index 0000000000000..1f48cdfd504c4 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackTestingDefaultTestDeployAssert8ACBFB2C.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { + "source": { + "path": "DualStackTestingDefaultTestDeployAssert8ACBFB2C.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackTestingDefaultTestDeployAssert8ACBFB2C.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackTestingDefaultTestDeployAssert8ACBFB2C.template.json new file mode 100644 index 0000000000000..ad9d0fb73d1dd --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackTestingDefaultTestDeployAssert8ACBFB2C.template.json @@ -0,0 +1,36 @@ +{ + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackVpc.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackVpc.assets.json new file mode 100644 index 0000000000000..5d59dc84428d2 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackVpc.assets.json @@ -0,0 +1,32 @@ +{ + "version": "36.0.0", + "files": { + "4554b47be6f57b68c6c7a7391dcc73894866d2377fe174883351e7639097f292": { + "source": { + "path": "asset.4554b47be6f57b68c6c7a7391dcc73894866d2377fe174883351e7639097f292", + "packaging": "zip" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "4554b47be6f57b68c6c7a7391dcc73894866d2377fe174883351e7639097f292.zip", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + }, + "17bdcf840538818bd469e10cd17adc79eabe27fa42a55c094e2642ce192da977": { + "source": { + "path": "DualStackVpc.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "17bdcf840538818bd469e10cd17adc79eabe27fa42a55c094e2642ce192da977.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackVpc.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackVpc.template.json new file mode 100644 index 0000000000000..93977bc4fe135 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/DualStackVpc.template.json @@ -0,0 +1,1145 @@ +{ + "Resources": { + "DualStackVpcE812233C": { + "Type": "AWS::EC2::VPC", + "Properties": { + "CidrBlock": "10.0.0.0/16", + "EnableDnsHostnames": true, + "EnableDnsSupport": true, + "InstanceTenancy": "default", + "Tags": [ + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc" + } + ] + } + }, + "DualStackVpcipv6cidr0D52F270": { + "Type": "AWS::EC2::VPCCidrBlock", + "Properties": { + "AmazonProvidedIpv6CidrBlock": true, + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "DualStackVpcIpv6Public1Subnet1SubnetC431B310": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AssignIpv6AddressOnCreation": true, + "AvailabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.0.0/19", + "Ipv6CidrBlock": { + "Fn::Select": [ + 0, + { + "Fn::Cidr": [ + { + "Fn::Select": [ + 0, + { + "Fn::GetAtt": [ + "DualStackVpcE812233C", + "Ipv6CidrBlocks" + ] + } + ] + }, + 6, + "64" + ] + } + ] + }, + "MapPublicIpOnLaunch": false, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Ipv6Public1" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Public" + }, + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1" + } + ], + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public1Subnet1RouteTable73C65370": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1" + } + ], + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public1Subnet1RouteTableAssociation85711416": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "DualStackVpcIpv6Public1Subnet1RouteTable73C65370" + }, + "SubnetId": { + "Ref": "DualStackVpcIpv6Public1Subnet1SubnetC431B310" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public1Subnet1DefaultRoute57B6CABF": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "GatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "RouteTableId": { + "Ref": "DualStackVpcIpv6Public1Subnet1RouteTable73C65370" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270", + "DualStackVpcVPCGW7803C9BB" + ] + }, + "DualStackVpcIpv6Public1Subnet1DefaultRoute63C453094": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationIpv6CidrBlock": "::/0", + "GatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "RouteTableId": { + "Ref": "DualStackVpcIpv6Public1Subnet1RouteTable73C65370" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public1Subnet1EIP4E17F847": { + "Type": "AWS::EC2::EIP", + "Properties": { + "Domain": "vpc", + "Tags": [ + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1" + } + ] + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public1Subnet1NATGateway7D2A0F59": { + "Type": "AWS::EC2::NatGateway", + "Properties": { + "AllocationId": { + "Fn::GetAtt": [ + "DualStackVpcIpv6Public1Subnet1EIP4E17F847", + "AllocationId" + ] + }, + "SubnetId": { + "Ref": "DualStackVpcIpv6Public1Subnet1SubnetC431B310" + }, + "Tags": [ + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1" + } + ] + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270", + "DualStackVpcIpv6Public1Subnet1DefaultRoute57B6CABF", + "DualStackVpcIpv6Public1Subnet1DefaultRoute63C453094", + "DualStackVpcIpv6Public1Subnet1RouteTableAssociation85711416" + ] + }, + "DualStackVpcIpv6Public1Subnet2Subnet9515A153": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AssignIpv6AddressOnCreation": true, + "AvailabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.32.0/19", + "Ipv6CidrBlock": { + "Fn::Select": [ + 1, + { + "Fn::Cidr": [ + { + "Fn::Select": [ + 0, + { + "Fn::GetAtt": [ + "DualStackVpcE812233C", + "Ipv6CidrBlocks" + ] + } + ] + }, + 6, + "64" + ] + } + ] + }, + "MapPublicIpOnLaunch": false, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Ipv6Public1" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Public" + }, + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2" + } + ], + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public1Subnet2RouteTableC119E52D": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2" + } + ], + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public1Subnet2RouteTableAssociationC35EFFE6": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "DualStackVpcIpv6Public1Subnet2RouteTableC119E52D" + }, + "SubnetId": { + "Ref": "DualStackVpcIpv6Public1Subnet2Subnet9515A153" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public1Subnet2DefaultRoute5C081F90": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "GatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "RouteTableId": { + "Ref": "DualStackVpcIpv6Public1Subnet2RouteTableC119E52D" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270", + "DualStackVpcVPCGW7803C9BB" + ] + }, + "DualStackVpcIpv6Public1Subnet2DefaultRoute68F5F8AA5": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationIpv6CidrBlock": "::/0", + "GatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "RouteTableId": { + "Ref": "DualStackVpcIpv6Public1Subnet2RouteTableC119E52D" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public1Subnet2EIP45B7D0DE": { + "Type": "AWS::EC2::EIP", + "Properties": { + "Domain": "vpc", + "Tags": [ + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2" + } + ] + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public1Subnet2NATGateway76C3674B": { + "Type": "AWS::EC2::NatGateway", + "Properties": { + "AllocationId": { + "Fn::GetAtt": [ + "DualStackVpcIpv6Public1Subnet2EIP45B7D0DE", + "AllocationId" + ] + }, + "SubnetId": { + "Ref": "DualStackVpcIpv6Public1Subnet2Subnet9515A153" + }, + "Tags": [ + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2" + } + ] + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270", + "DualStackVpcIpv6Public1Subnet2DefaultRoute5C081F90", + "DualStackVpcIpv6Public1Subnet2DefaultRoute68F5F8AA5", + "DualStackVpcIpv6Public1Subnet2RouteTableAssociationC35EFFE6" + ] + }, + "DualStackVpcIpv6Public2Subnet1Subnet314CDCFE": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AssignIpv6AddressOnCreation": true, + "AvailabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.64.0/19", + "Ipv6CidrBlock": { + "Fn::Select": [ + 2, + { + "Fn::Cidr": [ + { + "Fn::Select": [ + 0, + { + "Fn::GetAtt": [ + "DualStackVpcE812233C", + "Ipv6CidrBlocks" + ] + } + ] + }, + 6, + "64" + ] + } + ] + }, + "MapPublicIpOnLaunch": false, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Ipv6Public2" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Public" + }, + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet1" + } + ], + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public2Subnet1RouteTableAFB7D529": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet1" + } + ], + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public2Subnet1RouteTableAssociation14B446E0": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "DualStackVpcIpv6Public2Subnet1RouteTableAFB7D529" + }, + "SubnetId": { + "Ref": "DualStackVpcIpv6Public2Subnet1Subnet314CDCFE" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public2Subnet1DefaultRouteD48C6F58": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "GatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "RouteTableId": { + "Ref": "DualStackVpcIpv6Public2Subnet1RouteTableAFB7D529" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270", + "DualStackVpcVPCGW7803C9BB" + ] + }, + "DualStackVpcIpv6Public2Subnet1DefaultRoute6DFD01A58": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationIpv6CidrBlock": "::/0", + "GatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "RouteTableId": { + "Ref": "DualStackVpcIpv6Public2Subnet1RouteTableAFB7D529" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public2Subnet2Subnet509DD3CC": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AssignIpv6AddressOnCreation": true, + "AvailabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.96.0/19", + "Ipv6CidrBlock": { + "Fn::Select": [ + 3, + { + "Fn::Cidr": [ + { + "Fn::Select": [ + 0, + { + "Fn::GetAtt": [ + "DualStackVpcE812233C", + "Ipv6CidrBlocks" + ] + } + ] + }, + 6, + "64" + ] + } + ] + }, + "MapPublicIpOnLaunch": false, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Ipv6Public2" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Public" + }, + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet2" + } + ], + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public2Subnet2RouteTable2D5742D9": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet2" + } + ], + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public2Subnet2RouteTableAssociation7399CA29": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "DualStackVpcIpv6Public2Subnet2RouteTable2D5742D9" + }, + "SubnetId": { + "Ref": "DualStackVpcIpv6Public2Subnet2Subnet509DD3CC" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Public2Subnet2DefaultRoute3D636DA7": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "GatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "RouteTableId": { + "Ref": "DualStackVpcIpv6Public2Subnet2RouteTable2D5742D9" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270", + "DualStackVpcVPCGW7803C9BB" + ] + }, + "DualStackVpcIpv6Public2Subnet2DefaultRoute630FBEA19": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationIpv6CidrBlock": "::/0", + "GatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "RouteTableId": { + "Ref": "DualStackVpcIpv6Public2Subnet2RouteTable2D5742D9" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Private1Subnet1Subnet2C527D85": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AssignIpv6AddressOnCreation": true, + "AvailabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.128.0/19", + "Ipv6CidrBlock": { + "Fn::Select": [ + 4, + { + "Fn::Cidr": [ + { + "Fn::Select": [ + 0, + { + "Fn::GetAtt": [ + "DualStackVpcE812233C", + "Ipv6CidrBlocks" + ] + } + ] + }, + 6, + "64" + ] + } + ] + }, + "MapPublicIpOnLaunch": false, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Ipv6Private1" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Private" + }, + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet1" + } + ], + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Private1Subnet1RouteTable9CCA0D06": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet1" + } + ], + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Private1Subnet1RouteTableAssociation0B2158D5": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "DualStackVpcIpv6Private1Subnet1RouteTable9CCA0D06" + }, + "SubnetId": { + "Ref": "DualStackVpcIpv6Private1Subnet1Subnet2C527D85" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Private1Subnet1DefaultRoute0F84EAB9": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "NatGatewayId": { + "Ref": "DualStackVpcIpv6Public1Subnet1NATGateway7D2A0F59" + }, + "RouteTableId": { + "Ref": "DualStackVpcIpv6Private1Subnet1RouteTable9CCA0D06" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Private1Subnet1DefaultRoute6D3F9C454": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationIpv6CidrBlock": "::/0", + "EgressOnlyInternetGatewayId": { + "Ref": "DualStackVpcEIGW64639A9F2" + }, + "RouteTableId": { + "Ref": "DualStackVpcIpv6Private1Subnet1RouteTable9CCA0D06" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Private1Subnet1Nat649907016D": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationIpv6CidrBlock": "64:ff9b::/96", + "NatGatewayId": { + "Ref": "DualStackVpcIpv6Public1Subnet1NATGateway7D2A0F59" + }, + "RouteTableId": { + "Ref": "DualStackVpcIpv6Private1Subnet1RouteTable9CCA0D06" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Private1Subnet2Subnet0F013554": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AssignIpv6AddressOnCreation": true, + "AvailabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.160.0/19", + "Ipv6CidrBlock": { + "Fn::Select": [ + 5, + { + "Fn::Cidr": [ + { + "Fn::Select": [ + 0, + { + "Fn::GetAtt": [ + "DualStackVpcE812233C", + "Ipv6CidrBlocks" + ] + } + ] + }, + 6, + "64" + ] + } + ] + }, + "MapPublicIpOnLaunch": false, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Ipv6Private1" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Private" + }, + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet2" + } + ], + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Private1Subnet2RouteTable18BA0241": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet2" + } + ], + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Private1Subnet2RouteTableAssociationC5571008": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "DualStackVpcIpv6Private1Subnet2RouteTable18BA0241" + }, + "SubnetId": { + "Ref": "DualStackVpcIpv6Private1Subnet2Subnet0F013554" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Private1Subnet2DefaultRouteBADA4821": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "NatGatewayId": { + "Ref": "DualStackVpcIpv6Public1Subnet2NATGateway76C3674B" + }, + "RouteTableId": { + "Ref": "DualStackVpcIpv6Private1Subnet2RouteTable18BA0241" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIpv6Private1Subnet2DefaultRoute68619C7A8": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationIpv6CidrBlock": "::/0", + "EgressOnlyInternetGatewayId": { + "Ref": "DualStackVpcEIGW64639A9F2" + }, + "RouteTableId": { + "Ref": "DualStackVpcIpv6Private1Subnet2RouteTable18BA0241" + } + }, + "DependsOn": [ + "DualStackVpcipv6cidr0D52F270" + ] + }, + "DualStackVpcIGW08AC356D": { + "Type": "AWS::EC2::InternetGateway", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "DualStackVpc/DualStackVpc" + } + ] + } + }, + "DualStackVpcVPCGW7803C9BB": { + "Type": "AWS::EC2::VPCGatewayAttachment", + "Properties": { + "InternetGatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "DualStackVpcEIGW64639A9F2": { + "Type": "AWS::EC2::EgressOnlyInternetGateway", + "Properties": { + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "DualStackVpcRestrictDefaultSecurityGroupCustomResource5AA79B96": { + "Type": "Custom::VpcRestrictDefaultSG", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomVpcRestrictDefaultSGCustomResourceProviderHandlerDC833E5E", + "Arn" + ] + }, + "DefaultSecurityGroupId": { + "Fn::GetAtt": [ + "DualStackVpcE812233C", + "DefaultSecurityGroup" + ] + }, + "Account": { + "Ref": "AWS::AccountId" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "CustomVpcRestrictDefaultSGCustomResourceProviderRole26592FE0": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ], + "Policies": [ + { + "PolicyName": "Inline", + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "ec2:AuthorizeSecurityGroupIngress", + "ec2:AuthorizeSecurityGroupEgress", + "ec2:RevokeSecurityGroupIngress", + "ec2:RevokeSecurityGroupEgress" + ], + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ec2:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":security-group/", + { + "Fn::GetAtt": [ + "DualStackVpcE812233C", + "DefaultSecurityGroup" + ] + } + ] + ] + } + ] + } + ] + } + } + ] + } + }, + "CustomVpcRestrictDefaultSGCustomResourceProviderHandlerDC833E5E": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "4554b47be6f57b68c6c7a7391dcc73894866d2377fe174883351e7639097f292.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "__entrypoint__.handler", + "Role": { + "Fn::GetAtt": [ + "CustomVpcRestrictDefaultSGCustomResourceProviderRole26592FE0", + "Arn" + ] + }, + "Runtime": "nodejs18.x", + "Description": "Lambda function for removing all inbound/outbound rules from the VPC default security group" + }, + "DependsOn": [ + "CustomVpcRestrictDefaultSGCustomResourceProviderRole26592FE0" + ] + }, + "LambdawithIPv6VPCServiceRoleC3866C85": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole" + ] + ] + } + ] + }, + "DependsOn": [ + "DualStackVpcIpv6Private1Subnet1DefaultRoute0F84EAB9", + "DualStackVpcIpv6Private1Subnet1DefaultRoute6D3F9C454", + "DualStackVpcIpv6Private1Subnet1Nat649907016D", + "DualStackVpcIpv6Private1Subnet1RouteTableAssociation0B2158D5", + "DualStackVpcIpv6Private1Subnet2DefaultRouteBADA4821", + "DualStackVpcIpv6Private1Subnet2DefaultRoute68619C7A8", + "DualStackVpcIpv6Private1Subnet2RouteTableAssociationC5571008" + ] + }, + "LambdawithIPv6VPCSecurityGroup1BC5651B": { + "Type": "AWS::EC2::SecurityGroup", + "Properties": { + "GroupDescription": "Automatic security group for Lambda Function DualStackVpcLambdawithIPv6VPC4667BF31", + "SecurityGroupEgress": [ + { + "CidrIp": "0.0.0.0/0", + "Description": "Allow all outbound traffic by default", + "IpProtocol": "-1" + } + ], + "VpcId": { + "Ref": "DualStackVpcE812233C" + } + }, + "DependsOn": [ + "DualStackVpcIpv6Private1Subnet1DefaultRoute0F84EAB9", + "DualStackVpcIpv6Private1Subnet1DefaultRoute6D3F9C454", + "DualStackVpcIpv6Private1Subnet1Nat649907016D", + "DualStackVpcIpv6Private1Subnet1RouteTableAssociation0B2158D5", + "DualStackVpcIpv6Private1Subnet2DefaultRouteBADA4821", + "DualStackVpcIpv6Private1Subnet2DefaultRoute68619C7A8", + "DualStackVpcIpv6Private1Subnet2RouteTableAssociationC5571008" + ] + }, + "LambdawithIPv6VPCF50054B3": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": "def main(event, context): pass" + }, + "Handler": "index.main", + "Role": { + "Fn::GetAtt": [ + "LambdawithIPv6VPCServiceRoleC3866C85", + "Arn" + ] + }, + "Runtime": "python3.9", + "VpcConfig": { + "Ipv6AllowedForDualStack": true, + "SecurityGroupIds": [ + { + "Fn::GetAtt": [ + "LambdawithIPv6VPCSecurityGroup1BC5651B", + "GroupId" + ] + } + ], + "SubnetIds": [ + { + "Ref": "DualStackVpcIpv6Private1Subnet1Subnet2C527D85" + }, + { + "Ref": "DualStackVpcIpv6Private1Subnet2Subnet0F013554" + } + ] + } + }, + "DependsOn": [ + "DualStackVpcIpv6Private1Subnet1DefaultRoute0F84EAB9", + "DualStackVpcIpv6Private1Subnet1DefaultRoute6D3F9C454", + "DualStackVpcIpv6Private1Subnet1Nat649907016D", + "DualStackVpcIpv6Private1Subnet1RouteTableAssociation0B2158D5", + "DualStackVpcIpv6Private1Subnet2DefaultRouteBADA4821", + "DualStackVpcIpv6Private1Subnet2DefaultRoute68619C7A8", + "DualStackVpcIpv6Private1Subnet2RouteTableAssociationC5571008", + "LambdawithIPv6VPCServiceRoleC3866C85" + ] + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/asset.4554b47be6f57b68c6c7a7391dcc73894866d2377fe174883351e7639097f292/__entrypoint__.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/asset.4554b47be6f57b68c6c7a7391dcc73894866d2377fe174883351e7639097f292/__entrypoint__.js new file mode 100644 index 0000000000000..1e64dba70bdc0 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/asset.4554b47be6f57b68c6c7a7391dcc73894866d2377fe174883351e7639097f292/__entrypoint__.js @@ -0,0 +1,147 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.withRetries = exports.handler = exports.external = void 0; +const https = require("https"); +const url = require("url"); +// for unit tests +exports.external = { + sendHttpRequest: defaultSendHttpRequest, + log: defaultLog, + includeStackTraces: true, + userHandlerIndex: './index', +}; +const CREATE_FAILED_PHYSICAL_ID_MARKER = 'AWSCDK::CustomResourceProviderFramework::CREATE_FAILED'; +const MISSING_PHYSICAL_ID_MARKER = 'AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID'; +async function handler(event, context) { + const sanitizedEvent = { ...event, ResponseURL: '...' }; + exports.external.log(JSON.stringify(sanitizedEvent, undefined, 2)); + // ignore DELETE event when the physical resource ID is the marker that + // indicates that this DELETE is a subsequent DELETE to a failed CREATE + // operation. + if (event.RequestType === 'Delete' && event.PhysicalResourceId === CREATE_FAILED_PHYSICAL_ID_MARKER) { + exports.external.log('ignoring DELETE event caused by a failed CREATE event'); + await submitResponse('SUCCESS', event); + return; + } + try { + // invoke the user handler. this is intentionally inside the try-catch to + // ensure that if there is an error it's reported as a failure to + // cloudformation (otherwise cfn waits). + // eslint-disable-next-line @typescript-eslint/no-require-imports + const userHandler = require(exports.external.userHandlerIndex).handler; + const result = await userHandler(sanitizedEvent, context); + // validate user response and create the combined event + const responseEvent = renderResponse(event, result); + // submit to cfn as success + await submitResponse('SUCCESS', responseEvent); + } + catch (e) { + const resp = { + ...event, + Reason: exports.external.includeStackTraces ? e.stack : e.message, + }; + if (!resp.PhysicalResourceId) { + // special case: if CREATE fails, which usually implies, we usually don't + // have a physical resource id. in this case, the subsequent DELETE + // operation does not have any meaning, and will likely fail as well. to + // address this, we use a marker so the provider framework can simply + // ignore the subsequent DELETE. + if (event.RequestType === 'Create') { + exports.external.log('CREATE failed, responding with a marker physical resource id so that the subsequent DELETE will be ignored'); + resp.PhysicalResourceId = CREATE_FAILED_PHYSICAL_ID_MARKER; + } + else { + // otherwise, if PhysicalResourceId is not specified, something is + // terribly wrong because all other events should have an ID. + exports.external.log(`ERROR: Malformed event. "PhysicalResourceId" is required: ${JSON.stringify(event)}`); + } + } + // this is an actual error, fail the activity altogether and exist. + await submitResponse('FAILED', resp); + } +} +exports.handler = handler; +function renderResponse(cfnRequest, handlerResponse = {}) { + // if physical ID is not returned, we have some defaults for you based + // on the request type. + const physicalResourceId = handlerResponse.PhysicalResourceId ?? cfnRequest.PhysicalResourceId ?? cfnRequest.RequestId; + // if we are in DELETE and physical ID was changed, it's an error. + if (cfnRequest.RequestType === 'Delete' && physicalResourceId !== cfnRequest.PhysicalResourceId) { + throw new Error(`DELETE: cannot change the physical resource ID from "${cfnRequest.PhysicalResourceId}" to "${handlerResponse.PhysicalResourceId}" during deletion`); + } + // merge request event and result event (result prevails). + return { + ...cfnRequest, + ...handlerResponse, + PhysicalResourceId: physicalResourceId, + }; +} +async function submitResponse(status, event) { + const json = { + Status: status, + Reason: event.Reason ?? status, + StackId: event.StackId, + RequestId: event.RequestId, + PhysicalResourceId: event.PhysicalResourceId || MISSING_PHYSICAL_ID_MARKER, + LogicalResourceId: event.LogicalResourceId, + NoEcho: event.NoEcho, + Data: event.Data, + }; + exports.external.log('submit response to cloudformation', json); + const responseBody = JSON.stringify(json); + const parsedUrl = url.parse(event.ResponseURL); + const req = { + hostname: parsedUrl.hostname, + path: parsedUrl.path, + method: 'PUT', + headers: { + 'content-type': '', + 'content-length': Buffer.byteLength(responseBody, 'utf8'), + }, + }; + const retryOptions = { + attempts: 5, + sleep: 1000, + }; + await withRetries(retryOptions, exports.external.sendHttpRequest)(req, responseBody); +} +async function defaultSendHttpRequest(options, responseBody) { + return new Promise((resolve, reject) => { + try { + const request = https.request(options, _ => resolve()); + request.on('error', reject); + request.write(responseBody); + request.end(); + } + catch (e) { + reject(e); + } + }); +} +function defaultLog(fmt, ...params) { + // eslint-disable-next-line no-console + console.log(fmt, ...params); +} +function withRetries(options, fn) { + return async (...xs) => { + let attempts = options.attempts; + let ms = options.sleep; + while (true) { + try { + return await fn(...xs); + } + catch (e) { + if (attempts-- <= 0) { + throw e; + } + await sleep(Math.floor(Math.random() * ms)); + ms *= 2; + } + } + }; +} +exports.withRetries = withRetries; +async function sleep(ms) { + return new Promise((ok) => setTimeout(ok, ms)); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrQkFBK0I7QUFDL0IsMkJBQTJCO0FBRTNCLGlCQUFpQjtBQUNKLFFBQUEsUUFBUSxHQUFHO0lBQ3RCLGVBQWUsRUFBRSxzQkFBc0I7SUFDdkMsR0FBRyxFQUFFLFVBQVU7SUFDZixrQkFBa0IsRUFBRSxJQUFJO0lBQ3hCLGdCQUFnQixFQUFFLFNBQVM7Q0FDNUIsQ0FBQztBQUVGLE1BQU0sZ0NBQWdDLEdBQUcsd0RBQXdELENBQUM7QUFDbEcsTUFBTSwwQkFBMEIsR0FBRyw4REFBOEQsQ0FBQztBQVczRixLQUFLLFVBQVUsT0FBTyxDQUFDLEtBQWtELEVBQUUsT0FBMEI7SUFDMUcsTUFBTSxjQUFjLEdBQUcsRUFBRSxHQUFHLEtBQUssRUFBRSxXQUFXLEVBQUUsS0FBSyxFQUFFLENBQUM7SUFDeEQsZ0JBQVEsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxjQUFjLEVBQUUsU0FBUyxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFFM0QsdUVBQXVFO0lBQ3ZFLHVFQUF1RTtJQUN2RSxhQUFhO0lBQ2IsSUFBSSxLQUFLLENBQUMsV0FBVyxLQUFLLFFBQVEsSUFBSSxLQUFLLENBQUMsa0JBQWtCLEtBQUssZ0NBQWdDLEVBQUU7UUFDbkcsZ0JBQVEsQ0FBQyxHQUFHLENBQUMsdURBQXVELENBQUMsQ0FBQztRQUN0RSxNQUFNLGNBQWMsQ0FBQyxTQUFTLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFDdkMsT0FBTztLQUNSO0lBRUQsSUFBSTtRQUNGLHlFQUF5RTtRQUN6RSxpRUFBaUU7UUFDakUsd0NBQXdDO1FBQ3hDLGlFQUFpRTtRQUNqRSxNQUFNLFdBQVcsR0FBWSxPQUFPLENBQUMsZ0JBQVEsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDLE9BQU8sQ0FBQztRQUN4RSxNQUFNLE1BQU0sR0FBRyxNQUFNLFdBQVcsQ0FBQyxjQUFjLEVBQUUsT0FBTyxDQUFDLENBQUM7UUFFMUQsdURBQXVEO1FBQ3ZELE1BQU0sYUFBYSxHQUFHLGNBQWMsQ0FBQyxLQUFLLEVBQUUsTUFBTSxDQUFDLENBQUM7UUFFcEQsMkJBQTJCO1FBQzNCLE1BQU0sY0FBYyxDQUFDLFNBQVMsRUFBRSxhQUFhLENBQUMsQ0FBQztLQUNoRDtJQUFDLE9BQU8sQ0FBTSxFQUFFO1FBQ2YsTUFBTSxJQUFJLEdBQWE7WUFDckIsR0FBRyxLQUFLO1lBQ1IsTUFBTSxFQUFFLGdCQUFRLENBQUMsa0JBQWtCLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxPQUFPO1NBQzFELENBQUM7UUFFRixJQUFJLENBQUMsSUFBSSxDQUFDLGtCQUFrQixFQUFFO1lBQzVCLHlFQUF5RTtZQUN6RSxtRUFBbUU7WUFDbkUsd0VBQXdFO1lBQ3hFLHFFQUFxRTtZQUNyRSxnQ0FBZ0M7WUFDaEMsSUFBSSxLQUFLLENBQUMsV0FBVyxLQUFLLFFBQVEsRUFBRTtnQkFDbEMsZ0JBQVEsQ0FBQyxHQUFHLENBQUMsNEdBQTRHLENBQUMsQ0FBQztnQkFDM0gsSUFBSSxDQUFDLGtCQUFrQixHQUFHLGdDQUFnQyxDQUFDO2FBQzVEO2lCQUFNO2dCQUNMLGtFQUFrRTtnQkFDbEUsNkRBQTZEO2dCQUM3RCxnQkFBUSxDQUFDLEdBQUcsQ0FBQyw2REFBNkQsSUFBSSxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDLENBQUM7YUFDcEc7U0FDRjtRQUVELG1FQUFtRTtRQUNuRSxNQUFNLGNBQWMsQ0FBQyxRQUFRLEVBQUUsSUFBSSxDQUFDLENBQUM7S0FDdEM7QUFDSCxDQUFDO0FBbkRELDBCQW1EQztBQUVELFNBQVMsY0FBYyxDQUNyQixVQUF5RixFQUN6RixrQkFBMEMsRUFBRztJQUU3QyxzRUFBc0U7SUFDdEUsdUJBQXVCO0lBQ3ZCLE1BQU0sa0JBQWtCLEdBQUcsZUFBZSxDQUFDLGtCQUFrQixJQUFJLFVBQVUsQ0FBQyxrQkFBa0IsSUFBSSxVQUFVLENBQUMsU0FBUyxDQUFDO0lBRXZILGtFQUFrRTtJQUNsRSxJQUFJLFVBQVUsQ0FBQyxXQUFXLEtBQUssUUFBUSxJQUFJLGtCQUFrQixLQUFLLFVBQVUsQ0FBQyxrQkFBa0IsRUFBRTtRQUMvRixNQUFNLElBQUksS0FBSyxDQUFDLHdEQUF3RCxVQUFVLENBQUMsa0JBQWtCLFNBQVMsZUFBZSxDQUFDLGtCQUFrQixtQkFBbUIsQ0FBQyxDQUFDO0tBQ3RLO0lBRUQsMERBQTBEO0lBQzFELE9BQU87UUFDTCxHQUFHLFVBQVU7UUFDYixHQUFHLGVBQWU7UUFDbEIsa0JBQWtCLEVBQUUsa0JBQWtCO0tBQ3ZDLENBQUM7QUFDSixDQUFDO0FBRUQsS0FBSyxVQUFVLGNBQWMsQ0FBQyxNQUE0QixFQUFFLEtBQWU7SUFDekUsTUFBTSxJQUFJLEdBQW1EO1FBQzNELE1BQU0sRUFBRSxNQUFNO1FBQ2QsTUFBTSxFQUFFLEtBQUssQ0FBQyxNQUFNLElBQUksTUFBTTtRQUM5QixPQUFPLEVBQUUsS0FBSyxDQUFDLE9BQU87UUFDdEIsU0FBUyxFQUFFLEtBQUssQ0FBQyxTQUFTO1FBQzFCLGtCQUFrQixFQUFFLEtBQUssQ0FBQyxrQkFBa0IsSUFBSSwwQkFBMEI7UUFDMUUsaUJBQWlCLEVBQUUsS0FBSyxDQUFDLGlCQUFpQjtRQUMxQyxNQUFNLEVBQUUsS0FBSyxDQUFDLE1BQU07UUFDcEIsSUFBSSxFQUFFLEtBQUssQ0FBQyxJQUFJO0tBQ2pCLENBQUM7SUFFRixnQkFBUSxDQUFDLEdBQUcsQ0FBQyxtQ0FBbUMsRUFBRSxJQUFJLENBQUMsQ0FBQztJQUV4RCxNQUFNLFlBQVksR0FBRyxJQUFJLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQzFDLE1BQU0sU0FBUyxHQUFHLEdBQUcsQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLFdBQVcsQ0FBQyxDQUFDO0lBQy9DLE1BQU0sR0FBRyxHQUFHO1FBQ1YsUUFBUSxFQUFFLFNBQVMsQ0FBQyxRQUFRO1FBQzVCLElBQUksRUFBRSxTQUFTLENBQUMsSUFBSTtRQUNwQixNQUFNLEVBQUUsS0FBSztRQUNiLE9BQU8sRUFBRTtZQUNQLGNBQWMsRUFBRSxFQUFFO1lBQ2xCLGdCQUFnQixFQUFFLE1BQU0sQ0FBQyxVQUFVLENBQUMsWUFBWSxFQUFFLE1BQU0sQ0FBQztTQUMxRDtLQUNGLENBQUM7SUFFRixNQUFNLFlBQVksR0FBRztRQUNuQixRQUFRLEVBQUUsQ0FBQztRQUNYLEtBQUssRUFBRSxJQUFJO0tBQ1osQ0FBQztJQUNGLE1BQU0sV0FBVyxDQUFDLFlBQVksRUFBRSxnQkFBUSxDQUFDLGVBQWUsQ0FBQyxDQUFDLEdBQUcsRUFBRSxZQUFZLENBQUMsQ0FBQztBQUMvRSxDQUFDO0FBRUQsS0FBSyxVQUFVLHNCQUFzQixDQUFDLE9BQTZCLEVBQUUsWUFBb0I7SUFDdkYsT0FBTyxJQUFJLE9BQU8sQ0FBQyxDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsRUFBRTtRQUNyQyxJQUFJO1lBQ0YsTUFBTSxPQUFPLEdBQUcsS0FBSyxDQUFDLE9BQU8sQ0FBQyxPQUFPLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxPQUFPLEVBQUUsQ0FBQyxDQUFDO1lBQ3ZELE9BQU8sQ0FBQyxFQUFFLENBQUMsT0FBTyxFQUFFLE1BQU0sQ0FBQyxDQUFDO1lBQzVCLE9BQU8sQ0FBQyxLQUFLLENBQUMsWUFBWSxDQUFDLENBQUM7WUFDNUIsT0FBTyxDQUFDLEdBQUcsRUFBRSxDQUFDO1NBQ2Y7UUFBQyxPQUFPLENBQUMsRUFBRTtZQUNWLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQztTQUNYO0lBQ0gsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDO0FBRUQsU0FBUyxVQUFVLENBQUMsR0FBVyxFQUFFLEdBQUcsTUFBYTtJQUMvQyxzQ0FBc0M7SUFDdEMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLEVBQUUsR0FBRyxNQUFNLENBQUMsQ0FBQztBQUM5QixDQUFDO0FBU0QsU0FBZ0IsV0FBVyxDQUEwQixPQUFxQixFQUFFLEVBQTRCO0lBQ3RHLE9BQU8sS0FBSyxFQUFFLEdBQUcsRUFBSyxFQUFFLEVBQUU7UUFDeEIsSUFBSSxRQUFRLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQztRQUNoQyxJQUFJLEVBQUUsR0FBRyxPQUFPLENBQUMsS0FBSyxDQUFDO1FBQ3ZCLE9BQU8sSUFBSSxFQUFFO1lBQ1gsSUFBSTtnQkFDRixPQUFPLE1BQU0sRUFBRSxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUM7YUFDeEI7WUFBQyxPQUFPLENBQUMsRUFBRTtnQkFDVixJQUFJLFFBQVEsRUFBRSxJQUFJLENBQUMsRUFBRTtvQkFDbkIsTUFBTSxDQUFDLENBQUM7aUJBQ1Q7Z0JBQ0QsTUFBTSxLQUFLLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsTUFBTSxFQUFFLEdBQUcsRUFBRSxDQUFDLENBQUMsQ0FBQztnQkFDNUMsRUFBRSxJQUFJLENBQUMsQ0FBQzthQUNUO1NBQ0Y7SUFDSCxDQUFDLENBQUM7QUFDSixDQUFDO0FBaEJELGtDQWdCQztBQUVELEtBQUssVUFBVSxLQUFLLENBQUMsRUFBVTtJQUM3QixPQUFPLElBQUksT0FBTyxDQUFDLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQyxVQUFVLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUM7QUFDakQsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIGh0dHBzIGZyb20gJ2h0dHBzJztcbmltcG9ydCAqIGFzIHVybCBmcm9tICd1cmwnO1xuXG4vLyBmb3IgdW5pdCB0ZXN0c1xuZXhwb3J0IGNvbnN0IGV4dGVybmFsID0ge1xuICBzZW5kSHR0cFJlcXVlc3Q6IGRlZmF1bHRTZW5kSHR0cFJlcXVlc3QsXG4gIGxvZzogZGVmYXVsdExvZyxcbiAgaW5jbHVkZVN0YWNrVHJhY2VzOiB0cnVlLFxuICB1c2VySGFuZGxlckluZGV4OiAnLi9pbmRleCcsXG59O1xuXG5jb25zdCBDUkVBVEVfRkFJTEVEX1BIWVNJQ0FMX0lEX01BUktFUiA9ICdBV1NDREs6OkN1c3RvbVJlc291cmNlUHJvdmlkZXJGcmFtZXdvcms6OkNSRUFURV9GQUlMRUQnO1xuY29uc3QgTUlTU0lOR19QSFlTSUNBTF9JRF9NQVJLRVIgPSAnQVdTQ0RLOjpDdXN0b21SZXNvdXJjZVByb3ZpZGVyRnJhbWV3b3JrOjpNSVNTSU5HX1BIWVNJQ0FMX0lEJztcblxuZXhwb3J0IHR5cGUgUmVzcG9uc2UgPSBBV1NMYW1iZGEuQ2xvdWRGb3JtYXRpb25DdXN0b21SZXNvdXJjZUV2ZW50ICYgSGFuZGxlclJlc3BvbnNlO1xuZXhwb3J0IHR5cGUgSGFuZGxlciA9IChldmVudDogQVdTTGFtYmRhLkNsb3VkRm9ybWF0aW9uQ3VzdG9tUmVzb3VyY2VFdmVudCwgY29udGV4dDogQVdTTGFtYmRhLkNvbnRleHQpID0+IFByb21pc2U8SGFuZGxlclJlc3BvbnNlIHwgdm9pZD47XG5leHBvcnQgdHlwZSBIYW5kbGVyUmVzcG9uc2UgPSB1bmRlZmluZWQgfCB7XG4gIERhdGE/OiBhbnk7XG4gIFBoeXNpY2FsUmVzb3VyY2VJZD86IHN0cmluZztcbiAgUmVhc29uPzogc3RyaW5nO1xuICBOb0VjaG8/OiBib29sZWFuO1xufTtcblxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGhhbmRsZXIoZXZlbnQ6IEFXU0xhbWJkYS5DbG91ZEZvcm1hdGlvbkN1c3RvbVJlc291cmNlRXZlbnQsIGNvbnRleHQ6IEFXU0xhbWJkYS5Db250ZXh0KSB7XG4gIGNvbnN0IHNhbml0aXplZEV2ZW50ID0geyAuLi5ldmVudCwgUmVzcG9uc2VVUkw6ICcuLi4nIH07XG4gIGV4dGVybmFsLmxvZyhKU09OLnN0cmluZ2lmeShzYW5pdGl6ZWRFdmVudCwgdW5kZWZpbmVkLCAyKSk7XG5cbiAgLy8gaWdub3JlIERFTEVURSBldmVudCB3aGVuIHRoZSBwaHlzaWNhbCByZXNvdXJjZSBJRCBpcyB0aGUgbWFya2VyIHRoYXRcbiAgLy8gaW5kaWNhdGVzIHRoYXQgdGhpcyBERUxFVEUgaXMgYSBzdWJzZXF1ZW50IERFTEVURSB0byBhIGZhaWxlZCBDUkVBVEVcbiAgLy8gb3BlcmF0aW9uLlxuICBpZiAoZXZlbnQuUmVxdWVzdFR5cGUgPT09ICdEZWxldGUnICYmIGV2ZW50LlBoeXNpY2FsUmVzb3VyY2VJZCA9PT0gQ1JFQVRFX0ZBSUxFRF9QSFlTSUNBTF9JRF9NQVJLRVIpIHtcbiAgICBleHRlcm5hbC5sb2coJ2lnbm9yaW5nIERFTEVURSBldmVudCBjYXVzZWQgYnkgYSBmYWlsZWQgQ1JFQVRFIGV2ZW50Jyk7XG4gICAgYXdhaXQgc3VibWl0UmVzcG9uc2UoJ1NVQ0NFU1MnLCBldmVudCk7XG4gICAgcmV0dXJuO1xuICB9XG5cbiAgdHJ5IHtcbiAgICAvLyBpbnZva2UgdGhlIHVzZXIgaGFuZGxlci4gdGhpcyBpcyBpbnRlbnRpb25hbGx5IGluc2lkZSB0aGUgdHJ5LWNhdGNoIHRvXG4gICAgLy8gZW5zdXJlIHRoYXQgaWYgdGhlcmUgaXMgYW4gZXJyb3IgaXQncyByZXBvcnRlZCBhcyBhIGZhaWx1cmUgdG9cbiAgICAvLyBjbG91ZGZvcm1hdGlvbiAob3RoZXJ3aXNlIGNmbiB3YWl0cykuXG4gICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby1yZXF1aXJlLWltcG9ydHNcbiAgICBjb25zdCB1c2VySGFuZGxlcjogSGFuZGxlciA9IHJlcXVpcmUoZXh0ZXJuYWwudXNlckhhbmRsZXJJbmRleCkuaGFuZGxlcjtcbiAgICBjb25zdCByZXN1bHQgPSBhd2FpdCB1c2VySGFuZGxlcihzYW5pdGl6ZWRFdmVudCwgY29udGV4dCk7XG5cbiAgICAvLyB2YWxpZGF0ZSB1c2VyIHJlc3BvbnNlIGFuZCBjcmVhdGUgdGhlIGNvbWJpbmVkIGV2ZW50XG4gICAgY29uc3QgcmVzcG9uc2VFdmVudCA9IHJlbmRlclJlc3BvbnNlKGV2ZW50LCByZXN1bHQpO1xuXG4gICAgLy8gc3VibWl0IHRvIGNmbiBhcyBzdWNjZXNzXG4gICAgYXdhaXQgc3VibWl0UmVzcG9uc2UoJ1NVQ0NFU1MnLCByZXNwb25zZUV2ZW50KTtcbiAgfSBjYXRjaCAoZTogYW55KSB7XG4gICAgY29uc3QgcmVzcDogUmVzcG9uc2UgPSB7XG4gICAgICAuLi5ldmVudCxcbiAgICAgIFJlYXNvbjogZXh0ZXJuYWwuaW5jbHVkZVN0YWNrVHJhY2VzID8gZS5zdGFjayA6IGUubWVzc2FnZSxcbiAgICB9O1xuXG4gICAgaWYgKCFyZXNwLlBoeXNpY2FsUmVzb3VyY2VJZCkge1xuICAgICAgLy8gc3BlY2lhbCBjYXNlOiBpZiBDUkVBVEUgZmFpbHMsIHdoaWNoIHVzdWFsbHkgaW1wbGllcywgd2UgdXN1YWxseSBkb24ndFxuICAgICAgLy8gaGF2ZSBhIHBoeXNpY2FsIHJlc291cmNlIGlkLiBpbiB0aGlzIGNhc2UsIHRoZSBzdWJzZXF1ZW50IERFTEVURVxuICAgICAgLy8gb3BlcmF0aW9uIGRvZXMgbm90IGhhdmUgYW55IG1lYW5pbmcsIGFuZCB3aWxsIGxpa2VseSBmYWlsIGFzIHdlbGwuIHRvXG4gICAgICAvLyBhZGRyZXNzIHRoaXMsIHdlIHVzZSBhIG1hcmtlciBzbyB0aGUgcHJvdmlkZXIgZnJhbWV3b3JrIGNhbiBzaW1wbHlcbiAgICAgIC8vIGlnbm9yZSB0aGUgc3Vic2VxdWVudCBERUxFVEUuXG4gICAgICBpZiAoZXZlbnQuUmVxdWVzdFR5cGUgPT09ICdDcmVhdGUnKSB7XG4gICAgICAgIGV4dGVybmFsLmxvZygnQ1JFQVRFIGZhaWxlZCwgcmVzcG9uZGluZyB3aXRoIGEgbWFya2VyIHBoeXNpY2FsIHJlc291cmNlIGlkIHNvIHRoYXQgdGhlIHN1YnNlcXVlbnQgREVMRVRFIHdpbGwgYmUgaWdub3JlZCcpO1xuICAgICAgICByZXNwLlBoeXNpY2FsUmVzb3VyY2VJZCA9IENSRUFURV9GQUlMRURfUEhZU0lDQUxfSURfTUFSS0VSO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgLy8gb3RoZXJ3aXNlLCBpZiBQaHlzaWNhbFJlc291cmNlSWQgaXMgbm90IHNwZWNpZmllZCwgc29tZXRoaW5nIGlzXG4gICAgICAgIC8vIHRlcnJpYmx5IHdyb25nIGJlY2F1c2UgYWxsIG90aGVyIGV2ZW50cyBzaG91bGQgaGF2ZSBhbiBJRC5cbiAgICAgICAgZXh0ZXJuYWwubG9nKGBFUlJPUjogTWFsZm9ybWVkIGV2ZW50LiBcIlBoeXNpY2FsUmVzb3VyY2VJZFwiIGlzIHJlcXVpcmVkOiAke0pTT04uc3RyaW5naWZ5KGV2ZW50KX1gKTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICAvLyB0aGlzIGlzIGFuIGFjdHVhbCBlcnJvciwgZmFpbCB0aGUgYWN0aXZpdHkgYWx0b2dldGhlciBhbmQgZXhpc3QuXG4gICAgYXdhaXQgc3VibWl0UmVzcG9uc2UoJ0ZBSUxFRCcsIHJlc3ApO1xuICB9XG59XG5cbmZ1bmN0aW9uIHJlbmRlclJlc3BvbnNlKFxuICBjZm5SZXF1ZXN0OiBBV1NMYW1iZGEuQ2xvdWRGb3JtYXRpb25DdXN0b21SZXNvdXJjZUV2ZW50ICYgeyBQaHlzaWNhbFJlc291cmNlSWQ/OiBzdHJpbmcgfSxcbiAgaGFuZGxlclJlc3BvbnNlOiB2b2lkIHwgSGFuZGxlclJlc3BvbnNlID0geyB9KTogUmVzcG9uc2Uge1xuXG4gIC8vIGlmIHBoeXNpY2FsIElEIGlzIG5vdCByZXR1cm5lZCwgd2UgaGF2ZSBzb21lIGRlZmF1bHRzIGZvciB5b3UgYmFzZWRcbiAgLy8gb24gdGhlIHJlcXVlc3QgdHlwZS5cbiAgY29uc3QgcGh5c2ljYWxSZXNvdXJjZUlkID0gaGFuZGxlclJlc3BvbnNlLlBoeXNpY2FsUmVzb3VyY2VJZCA/PyBjZm5SZXF1ZXN0LlBoeXNpY2FsUmVzb3VyY2VJZCA/PyBjZm5SZXF1ZXN0LlJlcXVlc3RJZDtcblxuICAvLyBpZiB3ZSBhcmUgaW4gREVMRVRFIGFuZCBwaHlzaWNhbCBJRCB3YXMgY2hhbmdlZCwgaXQncyBhbiBlcnJvci5cbiAgaWYgKGNmblJlcXVlc3QuUmVxdWVzdFR5cGUgPT09ICdEZWxldGUnICYmIHBoeXNpY2FsUmVzb3VyY2VJZCAhPT0gY2ZuUmVxdWVzdC5QaHlzaWNhbFJlc291cmNlSWQpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoYERFTEVURTogY2Fubm90IGNoYW5nZSB0aGUgcGh5c2ljYWwgcmVzb3VyY2UgSUQgZnJvbSBcIiR7Y2ZuUmVxdWVzdC5QaHlzaWNhbFJlc291cmNlSWR9XCIgdG8gXCIke2hhbmRsZXJSZXNwb25zZS5QaHlzaWNhbFJlc291cmNlSWR9XCIgZHVyaW5nIGRlbGV0aW9uYCk7XG4gIH1cblxuICAvLyBtZXJnZSByZXF1ZXN0IGV2ZW50IGFuZCByZXN1bHQgZXZlbnQgKHJlc3VsdCBwcmV2YWlscykuXG4gIHJldHVybiB7XG4gICAgLi4uY2ZuUmVxdWVzdCxcbiAgICAuLi5oYW5kbGVyUmVzcG9uc2UsXG4gICAgUGh5c2ljYWxSZXNvdXJjZUlkOiBwaHlzaWNhbFJlc291cmNlSWQsXG4gIH07XG59XG5cbmFzeW5jIGZ1bmN0aW9uIHN1Ym1pdFJlc3BvbnNlKHN0YXR1czogJ1NVQ0NFU1MnIHwgJ0ZBSUxFRCcsIGV2ZW50OiBSZXNwb25zZSkge1xuICBjb25zdCBqc29uOiBBV1NMYW1iZGEuQ2xvdWRGb3JtYXRpb25DdXN0b21SZXNvdXJjZVJlc3BvbnNlID0ge1xuICAgIFN0YXR1czogc3RhdHVzLFxuICAgIFJlYXNvbjogZXZlbnQuUmVhc29uID8/IHN0YXR1cyxcbiAgICBTdGFja0lkOiBldmVudC5TdGFja0lkLFxuICAgIFJlcXVlc3RJZDogZXZlbnQuUmVxdWVzdElkLFxuICAgIFBoeXNpY2FsUmVzb3VyY2VJZDogZXZlbnQuUGh5c2ljYWxSZXNvdXJjZUlkIHx8IE1JU1NJTkdfUEhZU0lDQUxfSURfTUFSS0VSLFxuICAgIExvZ2ljYWxSZXNvdXJjZUlkOiBldmVudC5Mb2dpY2FsUmVzb3VyY2VJZCxcbiAgICBOb0VjaG86IGV2ZW50Lk5vRWNobyxcbiAgICBEYXRhOiBldmVudC5EYXRhLFxuICB9O1xuXG4gIGV4dGVybmFsLmxvZygnc3VibWl0IHJlc3BvbnNlIHRvIGNsb3VkZm9ybWF0aW9uJywganNvbik7XG5cbiAgY29uc3QgcmVzcG9uc2VCb2R5ID0gSlNPTi5zdHJpbmdpZnkoanNvbik7XG4gIGNvbnN0IHBhcnNlZFVybCA9IHVybC5wYXJzZShldmVudC5SZXNwb25zZVVSTCk7XG4gIGNvbnN0IHJlcSA9IHtcbiAgICBob3N0bmFtZTogcGFyc2VkVXJsLmhvc3RuYW1lLFxuICAgIHBhdGg6IHBhcnNlZFVybC5wYXRoLFxuICAgIG1ldGhvZDogJ1BVVCcsXG4gICAgaGVhZGVyczoge1xuICAgICAgJ2NvbnRlbnQtdHlwZSc6ICcnLFxuICAgICAgJ2NvbnRlbnQtbGVuZ3RoJzogQnVmZmVyLmJ5dGVMZW5ndGgocmVzcG9uc2VCb2R5LCAndXRmOCcpLFxuICAgIH0sXG4gIH07XG5cbiAgY29uc3QgcmV0cnlPcHRpb25zID0ge1xuICAgIGF0dGVtcHRzOiA1LFxuICAgIHNsZWVwOiAxMDAwLFxuICB9O1xuICBhd2FpdCB3aXRoUmV0cmllcyhyZXRyeU9wdGlvbnMsIGV4dGVybmFsLnNlbmRIdHRwUmVxdWVzdCkocmVxLCByZXNwb25zZUJvZHkpO1xufVxuXG5hc3luYyBmdW5jdGlvbiBkZWZhdWx0U2VuZEh0dHBSZXF1ZXN0KG9wdGlvbnM6IGh0dHBzLlJlcXVlc3RPcHRpb25zLCByZXNwb25zZUJvZHk6IHN0cmluZyk6IFByb21pc2U8dm9pZD4ge1xuICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgIHRyeSB7XG4gICAgICBjb25zdCByZXF1ZXN0ID0gaHR0cHMucmVxdWVzdChvcHRpb25zLCBfID0+IHJlc29sdmUoKSk7XG4gICAgICByZXF1ZXN0Lm9uKCdlcnJvcicsIHJlamVjdCk7XG4gICAgICByZXF1ZXN0LndyaXRlKHJlc3BvbnNlQm9keSk7XG4gICAgICByZXF1ZXN0LmVuZCgpO1xuICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgIHJlamVjdChlKTtcbiAgICB9XG4gIH0pO1xufVxuXG5mdW5jdGlvbiBkZWZhdWx0TG9nKGZtdDogc3RyaW5nLCAuLi5wYXJhbXM6IGFueVtdKSB7XG4gIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBuby1jb25zb2xlXG4gIGNvbnNvbGUubG9nKGZtdCwgLi4ucGFyYW1zKTtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBSZXRyeU9wdGlvbnMge1xuICAvKiogSG93IG1hbnkgcmV0cmllcyAod2lsbCBhdCBsZWFzdCB0cnkgb25jZSkgKi9cbiAgcmVhZG9ubHkgYXR0ZW1wdHM6IG51bWJlcjtcbiAgLyoqIFNsZWVwIGJhc2UsIGluIG1zICovXG4gIHJlYWRvbmx5IHNsZWVwOiBudW1iZXI7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiB3aXRoUmV0cmllczxBIGV4dGVuZHMgQXJyYXk8YW55PiwgQj4ob3B0aW9uczogUmV0cnlPcHRpb25zLCBmbjogKC4uLnhzOiBBKSA9PiBQcm9taXNlPEI+KTogKC4uLnhzOiBBKSA9PiBQcm9taXNlPEI+IHtcbiAgcmV0dXJuIGFzeW5jICguLi54czogQSkgPT4ge1xuICAgIGxldCBhdHRlbXB0cyA9IG9wdGlvbnMuYXR0ZW1wdHM7XG4gICAgbGV0IG1zID0gb3B0aW9ucy5zbGVlcDtcbiAgICB3aGlsZSAodHJ1ZSkge1xuICAgICAgdHJ5IHtcbiAgICAgICAgcmV0dXJuIGF3YWl0IGZuKC4uLnhzKTtcbiAgICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgICAgaWYgKGF0dGVtcHRzLS0gPD0gMCkge1xuICAgICAgICAgIHRocm93IGU7XG4gICAgICAgIH1cbiAgICAgICAgYXdhaXQgc2xlZXAoTWF0aC5mbG9vcihNYXRoLnJhbmRvbSgpICogbXMpKTtcbiAgICAgICAgbXMgKj0gMjtcbiAgICAgIH1cbiAgICB9XG4gIH07XG59XG5cbmFzeW5jIGZ1bmN0aW9uIHNsZWVwKG1zOiBudW1iZXIpOiBQcm9taXNlPHZvaWQ+IHtcbiAgcmV0dXJuIG5ldyBQcm9taXNlKChvaykgPT4gc2V0VGltZW91dChvaywgbXMpKTtcbn1cbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/asset.4554b47be6f57b68c6c7a7391dcc73894866d2377fe174883351e7639097f292/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/asset.4554b47be6f57b68c6c7a7391dcc73894866d2377fe174883351e7639097f292/index.js new file mode 100644 index 0000000000000..013bcaffd8fe5 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/asset.4554b47be6f57b68c6c7a7391dcc73894866d2377fe174883351e7639097f292/index.js @@ -0,0 +1 @@ +"use strict";var I=Object.create;var t=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var G=(r,e)=>{for(var o in e)t(r,o,{get:e[o],enumerable:!0})},n=(r,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of P(e))!l.call(r,s)&&s!==o&&t(r,s,{get:()=>e[s],enumerable:!(i=y(e,s))||i.enumerable});return r};var R=(r,e,o)=>(o=r!=null?I(g(r)):{},n(e||!r||!r.__esModule?t(o,"default",{value:r,enumerable:!0}):o,r)),S=r=>n(t({},"__esModule",{value:!0}),r);var k={};G(k,{handler:()=>f});module.exports=S(k);var a=R(require("@aws-sdk/client-ec2")),u=new a.EC2({});function c(r,e){return{GroupId:r,IpPermissions:[{UserIdGroupPairs:[{GroupId:r,UserId:e}],IpProtocol:"-1"}]}}function d(r){return{GroupId:r,IpPermissions:[{IpRanges:[{CidrIp:"0.0.0.0/0"}],IpProtocol:"-1"}]}}async function f(r){let e=r.ResourceProperties.DefaultSecurityGroupId,o=r.ResourceProperties.Account;switch(r.RequestType){case"Create":return p(e,o);case"Update":return h(r);case"Delete":return m(e,o)}}async function h(r){let e=r.OldResourceProperties.DefaultSecurityGroupId,o=r.ResourceProperties.DefaultSecurityGroupId;e!==o&&(await m(e,r.ResourceProperties.Account),await p(o,r.ResourceProperties.Account))}async function p(r,e){try{await u.revokeSecurityGroupEgress(d(r))}catch(o){if(o.name!=="InvalidPermission.NotFound")throw o}try{await u.revokeSecurityGroupIngress(c(r,e))}catch(o){if(o.name!=="InvalidPermission.NotFound")throw o}}async function m(r,e){await u.authorizeSecurityGroupIngress(c(r,e)),await u.authorizeSecurityGroupEgress(d(r))}0&&(module.exports={handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/cdk.out new file mode 100644 index 0000000000000..1f0068d32659a --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/cdk.out @@ -0,0 +1 @@ +{"version":"36.0.0"} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/integ.json new file mode 100644 index 0000000000000..a0a7b84c46c06 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/integ.json @@ -0,0 +1,12 @@ +{ + "version": "36.0.0", + "testCases": { + "DualStackTesting/DefaultTest": { + "stacks": [ + "DualStackVpc" + ], + "assertionStack": "DualStackTesting/DefaultTest/DeployAssert", + "assertionStackName": "DualStackTestingDefaultTestDeployAssert8ACBFB2C" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/manifest.json new file mode 100644 index 0000000000000..32d6529b29210 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/manifest.json @@ -0,0 +1,755 @@ +{ + "version": "36.0.0", + "artifacts": { + "DualStackVpc.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "DualStackVpc.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "DualStackVpc": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "DualStackVpc.template.json", + "terminationProtection": false, + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/17bdcf840538818bd469e10cd17adc79eabe27fa42a55c094e2642ce192da977.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "DualStackVpc.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "DualStackVpc.assets" + ], + "metadata": { + "/DualStackVpc/DualStackVpc/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcE812233C" + } + ], + "/DualStackVpc/DualStackVpc/ipv6cidr": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcipv6cidr0D52F270" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public1Subnet1/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public1Subnet1SubnetC431B310" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public1Subnet1/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public1Subnet1RouteTable73C65370" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public1Subnet1/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public1Subnet1RouteTableAssociation85711416" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public1Subnet1/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public1Subnet1DefaultRoute57B6CABF" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public1Subnet1/DefaultRoute6": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public1Subnet1DefaultRoute63C453094" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public1Subnet1/EIP": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public1Subnet1EIP4E17F847" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public1Subnet1/NATGateway": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public1Subnet1NATGateway7D2A0F59" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public1Subnet2/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public1Subnet2Subnet9515A153" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public1Subnet2/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public1Subnet2RouteTableC119E52D" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public1Subnet2/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public1Subnet2RouteTableAssociationC35EFFE6" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public1Subnet2/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public1Subnet2DefaultRoute5C081F90" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public1Subnet2/DefaultRoute6": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public1Subnet2DefaultRoute68F5F8AA5" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public1Subnet2/EIP": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public1Subnet2EIP45B7D0DE" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public1Subnet2/NATGateway": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public1Subnet2NATGateway76C3674B" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public2Subnet1/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public2Subnet1Subnet314CDCFE" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public2Subnet1/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public2Subnet1RouteTableAFB7D529" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public2Subnet1/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public2Subnet1RouteTableAssociation14B446E0" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public2Subnet1/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public2Subnet1DefaultRouteD48C6F58" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public2Subnet1/DefaultRoute6": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public2Subnet1DefaultRoute6DFD01A58" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public2Subnet2/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public2Subnet2Subnet509DD3CC" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public2Subnet2/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public2Subnet2RouteTable2D5742D9" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public2Subnet2/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public2Subnet2RouteTableAssociation7399CA29" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public2Subnet2/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public2Subnet2DefaultRoute3D636DA7" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Public2Subnet2/DefaultRoute6": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Public2Subnet2DefaultRoute630FBEA19" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Private1Subnet1/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Private1Subnet1Subnet2C527D85" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Private1Subnet1/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Private1Subnet1RouteTable9CCA0D06" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Private1Subnet1/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Private1Subnet1RouteTableAssociation0B2158D5" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Private1Subnet1/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Private1Subnet1DefaultRoute0F84EAB9" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Private1Subnet1/DefaultRoute6": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Private1Subnet1DefaultRoute6D3F9C454" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Private1Subnet1/Nat64": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Private1Subnet1Nat649907016D" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Private1Subnet2/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Private1Subnet2Subnet0F013554" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Private1Subnet2/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Private1Subnet2RouteTable18BA0241" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Private1Subnet2/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Private1Subnet2RouteTableAssociationC5571008" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Private1Subnet2/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Private1Subnet2DefaultRouteBADA4821" + } + ], + "/DualStackVpc/DualStackVpc/Ipv6Private1Subnet2/DefaultRoute6": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIpv6Private1Subnet2DefaultRoute68619C7A8" + } + ], + "/DualStackVpc/DualStackVpc/IGW": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcIGW08AC356D" + } + ], + "/DualStackVpc/DualStackVpc/VPCGW": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcVPCGW7803C9BB" + } + ], + "/DualStackVpc/DualStackVpc/EIGW6": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcEIGW64639A9F2" + } + ], + "/DualStackVpc/DualStackVpc/RestrictDefaultSecurityGroupCustomResource/Default": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackVpcRestrictDefaultSecurityGroupCustomResource5AA79B96" + } + ], + "/DualStackVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role": [ + { + "type": "aws:cdk:logicalId", + "data": "CustomVpcRestrictDefaultSGCustomResourceProviderRole26592FE0" + } + ], + "/DualStackVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Handler": [ + { + "type": "aws:cdk:logicalId", + "data": "CustomVpcRestrictDefaultSGCustomResourceProviderHandlerDC833E5E" + } + ], + "/DualStackVpc/Lambda_with_IPv6_VPC/ServiceRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LambdawithIPv6VPCServiceRoleC3866C85" + } + ], + "/DualStackVpc/Lambda_with_IPv6_VPC/SecurityGroup/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LambdawithIPv6VPCSecurityGroup1BC5651B", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_REPLACE" + ] + } + ], + "/DualStackVpc/Lambda_with_IPv6_VPC/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LambdawithIPv6VPCF50054B3" + } + ], + "/DualStackVpc/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/DualStackVpc/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ], + "DualStackProtocolVpc85768F2C": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpc85768F2C", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcipv6cidr449C49CD": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcipv6cidr449C49CD", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub1Subnet1Subnet74CA4B8A": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub1Subnet1Subnet74CA4B8A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub1Subnet1RouteTable67D20294": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub1Subnet1RouteTable67D20294", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub1Subnet1RouteTableAssociation047F9491": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub1Subnet1RouteTableAssociation047F9491", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub1Subnet1DefaultRoute95ED74BD": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub1Subnet1DefaultRoute95ED74BD", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub1Subnet1DefaultRoute6C01F89FD": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub1Subnet1DefaultRoute6C01F89FD", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub1Subnet1EIP12EDF1FD": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub1Subnet1EIP12EDF1FD", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub1Subnet1NATGateway241D9A98": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub1Subnet1NATGateway241D9A98", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub1Subnet2Subnet8B1A85E2": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub1Subnet2Subnet8B1A85E2", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub1Subnet2RouteTable63549985": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub1Subnet2RouteTable63549985", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub1Subnet2RouteTableAssociation12736FE3": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub1Subnet2RouteTableAssociation12736FE3", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub1Subnet2DefaultRoute293C2941": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub1Subnet2DefaultRoute293C2941", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub1Subnet2DefaultRoute67E6A8DC8": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub1Subnet2DefaultRoute67E6A8DC8", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub1Subnet2EIP149FAFF5": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub1Subnet2EIP149FAFF5", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub1Subnet2NATGateway64DC713B": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub1Subnet2NATGateway64DC713B", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub2Subnet1Subnet483B9827": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub2Subnet1Subnet483B9827", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub2Subnet1RouteTable95379836": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub2Subnet1RouteTable95379836", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub2Subnet1RouteTableAssociation24FAAE7F": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub2Subnet1RouteTableAssociation24FAAE7F", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub2Subnet1DefaultRouteB99615CA": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub2Subnet1DefaultRouteB99615CA", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub2Subnet1DefaultRoute670D1366F": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub2Subnet1DefaultRoute670D1366F", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub2Subnet2SubnetCA5962A0": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub2Subnet2SubnetCA5962A0", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub2Subnet2RouteTable1300ACEE": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub2Subnet2RouteTable1300ACEE", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub2Subnet2RouteTableAssociation7E1F73B5": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub2Subnet2RouteTableAssociation7E1F73B5", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub2Subnet2DefaultRoute6B98C127": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub2Subnet2DefaultRoute6B98C127", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPub2Subnet2DefaultRoute60CFFE651": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPub2Subnet2DefaultRoute60CFFE651", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPriv1Subnet1Subnet6E77EDE7": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPriv1Subnet1Subnet6E77EDE7", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPriv1Subnet1RouteTableB9D9FD11": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPriv1Subnet1RouteTableB9D9FD11", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPriv1Subnet1RouteTableAssociation9D52852A": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPriv1Subnet1RouteTableAssociation9D52852A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPriv1Subnet1DefaultRouteEC60BBD4": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPriv1Subnet1DefaultRouteEC60BBD4", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPriv1Subnet1DefaultRoute65CC26492": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPriv1Subnet1DefaultRoute65CC26492", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPriv1Subnet1Nat649573F0A7": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPriv1Subnet1Nat649573F0A7", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPriv1Subnet2SubnetBC65773F": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPriv1Subnet2SubnetBC65773F", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPriv1Subnet2RouteTableC8DC5D06": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPriv1Subnet2RouteTableC8DC5D06", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPriv1Subnet2RouteTableAssociation0F224C80": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPriv1Subnet2RouteTableAssociation0F224C80", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPriv1Subnet2DefaultRouteD01D04E1": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPriv1Subnet2DefaultRouteD01D04E1", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcPriv1Subnet2DefaultRoute63F529AA9": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcPriv1Subnet2DefaultRoute63F529AA9", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcIGW0F74732B": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcIGW0F74732B", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcVPCGWADE48B7D": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcVPCGWADE48B7D", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcEIGW64BED696A": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcEIGW64BED696A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "DualStackProtocolVpcRestrictDefaultSecurityGroupCustomResource592699C8": [ + { + "type": "aws:cdk:logicalId", + "data": "DualStackProtocolVpcRestrictDefaultSecurityGroupCustomResource592699C8", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ] + }, + "displayName": "DualStackVpc" + }, + "DualStackTestingDefaultTestDeployAssert8ACBFB2C.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "DualStackTestingDefaultTestDeployAssert8ACBFB2C.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "DualStackTestingDefaultTestDeployAssert8ACBFB2C": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "DualStackTestingDefaultTestDeployAssert8ACBFB2C.template.json", + "terminationProtection": false, + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "DualStackTestingDefaultTestDeployAssert8ACBFB2C.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "DualStackTestingDefaultTestDeployAssert8ACBFB2C.assets" + ], + "metadata": { + "/DualStackTesting/DefaultTest/DeployAssert/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/DualStackTesting/DefaultTest/DeployAssert/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "DualStackTesting/DefaultTest/DeployAssert" + }, + "Tree": { + "type": "cdk:tree", + "properties": { + "file": "tree.json" + } + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/tree.json new file mode 100644 index 0000000000000..28308dac0be67 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.js.snapshot/tree.json @@ -0,0 +1,1501 @@ +{ + "version": "tree-0.1", + "tree": { + "id": "App", + "path": "", + "children": { + "DualStackVpc": { + "id": "DualStackVpc", + "path": "DualStackVpc", + "children": { + "DualStackVpc": { + "id": "DualStackVpc", + "path": "DualStackVpc/DualStackVpc", + "children": { + "Resource": { + "id": "Resource", + "path": "DualStackVpc/DualStackVpc/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::VPC", + "aws:cdk:cloudformation:props": { + "cidrBlock": "10.0.0.0/16", + "enableDnsHostnames": true, + "enableDnsSupport": true, + "instanceTenancy": "default", + "tags": [ + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnVPC", + "version": "0.0.0" + } + }, + "ipv6cidr": { + "id": "ipv6cidr", + "path": "DualStackVpc/DualStackVpc/ipv6cidr", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::VPCCidrBlock", + "aws:cdk:cloudformation:props": { + "amazonProvidedIpv6CidrBlock": true, + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnVPCCidrBlock", + "version": "0.0.0" + } + }, + "Ipv6Public1Subnet1": { + "id": "Ipv6Public1Subnet1", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1", + "children": { + "Subnet": { + "id": "Subnet", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "assignIpv6AddressOnCreation": true, + "availabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.0.0/19", + "ipv6CidrBlock": { + "Fn::Select": [ + 0, + { + "Fn::Cidr": [ + { + "Fn::Select": [ + 0, + { + "Fn::GetAtt": [ + "DualStackVpcE812233C", + "Ipv6CidrBlocks" + ] + } + ] + }, + 6, + "64" + ] + } + ] + }, + "mapPublicIpOnLaunch": false, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Ipv6Public1" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Public" + }, + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1" + } + ], + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", + "version": "0.0.0" + } + }, + "Acl": { + "id": "Acl", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1/Acl", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1" + } + ], + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", + "version": "0.0.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "DualStackVpcIpv6Public1Subnet1RouteTable73C65370" + }, + "subnetId": { + "Ref": "DualStackVpcIpv6Public1Subnet1SubnetC431B310" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", + "version": "0.0.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "gatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "routeTableId": { + "Ref": "DualStackVpcIpv6Public1Subnet1RouteTable73C65370" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + }, + "DefaultRoute6": { + "id": "DefaultRoute6", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1/DefaultRoute6", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationIpv6CidrBlock": "::/0", + "gatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "routeTableId": { + "Ref": "DualStackVpcIpv6Public1Subnet1RouteTable73C65370" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + }, + "EIP": { + "id": "EIP", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1/EIP", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::EIP", + "aws:cdk:cloudformation:props": { + "domain": "vpc", + "tags": [ + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnEIP", + "version": "0.0.0" + } + }, + "NATGateway": { + "id": "NATGateway", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1/NATGateway", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", + "aws:cdk:cloudformation:props": { + "allocationId": { + "Fn::GetAtt": [ + "DualStackVpcIpv6Public1Subnet1EIP4E17F847", + "AllocationId" + ] + }, + "subnetId": { + "Ref": "DualStackVpcIpv6Public1Subnet1SubnetC431B310" + }, + "tags": [ + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet1" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnNatGateway", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.PublicSubnet", + "version": "0.0.0" + } + }, + "Ipv6Public1Subnet2": { + "id": "Ipv6Public1Subnet2", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2", + "children": { + "Subnet": { + "id": "Subnet", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "assignIpv6AddressOnCreation": true, + "availabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.32.0/19", + "ipv6CidrBlock": { + "Fn::Select": [ + 1, + { + "Fn::Cidr": [ + { + "Fn::Select": [ + 0, + { + "Fn::GetAtt": [ + "DualStackVpcE812233C", + "Ipv6CidrBlocks" + ] + } + ] + }, + 6, + "64" + ] + } + ] + }, + "mapPublicIpOnLaunch": false, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Ipv6Public1" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Public" + }, + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2" + } + ], + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", + "version": "0.0.0" + } + }, + "Acl": { + "id": "Acl", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2/Acl", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2" + } + ], + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", + "version": "0.0.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "DualStackVpcIpv6Public1Subnet2RouteTableC119E52D" + }, + "subnetId": { + "Ref": "DualStackVpcIpv6Public1Subnet2Subnet9515A153" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", + "version": "0.0.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "gatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "routeTableId": { + "Ref": "DualStackVpcIpv6Public1Subnet2RouteTableC119E52D" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + }, + "DefaultRoute6": { + "id": "DefaultRoute6", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2/DefaultRoute6", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationIpv6CidrBlock": "::/0", + "gatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "routeTableId": { + "Ref": "DualStackVpcIpv6Public1Subnet2RouteTableC119E52D" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + }, + "EIP": { + "id": "EIP", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2/EIP", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::EIP", + "aws:cdk:cloudformation:props": { + "domain": "vpc", + "tags": [ + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnEIP", + "version": "0.0.0" + } + }, + "NATGateway": { + "id": "NATGateway", + "path": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2/NATGateway", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", + "aws:cdk:cloudformation:props": { + "allocationId": { + "Fn::GetAtt": [ + "DualStackVpcIpv6Public1Subnet2EIP45B7D0DE", + "AllocationId" + ] + }, + "subnetId": { + "Ref": "DualStackVpcIpv6Public1Subnet2Subnet9515A153" + }, + "tags": [ + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Public1Subnet2" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnNatGateway", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.PublicSubnet", + "version": "0.0.0" + } + }, + "Ipv6Public2Subnet1": { + "id": "Ipv6Public2Subnet1", + "path": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet1", + "children": { + "Subnet": { + "id": "Subnet", + "path": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet1/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "assignIpv6AddressOnCreation": true, + "availabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.64.0/19", + "ipv6CidrBlock": { + "Fn::Select": [ + 2, + { + "Fn::Cidr": [ + { + "Fn::Select": [ + 0, + { + "Fn::GetAtt": [ + "DualStackVpcE812233C", + "Ipv6CidrBlocks" + ] + } + ] + }, + 6, + "64" + ] + } + ] + }, + "mapPublicIpOnLaunch": false, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Ipv6Public2" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Public" + }, + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet1" + } + ], + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", + "version": "0.0.0" + } + }, + "Acl": { + "id": "Acl", + "path": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet1/Acl", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet1/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet1" + } + ], + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", + "version": "0.0.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet1/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "DualStackVpcIpv6Public2Subnet1RouteTableAFB7D529" + }, + "subnetId": { + "Ref": "DualStackVpcIpv6Public2Subnet1Subnet314CDCFE" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", + "version": "0.0.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet1/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "gatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "routeTableId": { + "Ref": "DualStackVpcIpv6Public2Subnet1RouteTableAFB7D529" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + }, + "DefaultRoute6": { + "id": "DefaultRoute6", + "path": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet1/DefaultRoute6", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationIpv6CidrBlock": "::/0", + "gatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "routeTableId": { + "Ref": "DualStackVpcIpv6Public2Subnet1RouteTableAFB7D529" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.PublicSubnet", + "version": "0.0.0" + } + }, + "Ipv6Public2Subnet2": { + "id": "Ipv6Public2Subnet2", + "path": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet2", + "children": { + "Subnet": { + "id": "Subnet", + "path": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet2/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "assignIpv6AddressOnCreation": true, + "availabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.96.0/19", + "ipv6CidrBlock": { + "Fn::Select": [ + 3, + { + "Fn::Cidr": [ + { + "Fn::Select": [ + 0, + { + "Fn::GetAtt": [ + "DualStackVpcE812233C", + "Ipv6CidrBlocks" + ] + } + ] + }, + 6, + "64" + ] + } + ] + }, + "mapPublicIpOnLaunch": false, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Ipv6Public2" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Public" + }, + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet2" + } + ], + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", + "version": "0.0.0" + } + }, + "Acl": { + "id": "Acl", + "path": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet2/Acl", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet2/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet2" + } + ], + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", + "version": "0.0.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet2/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "DualStackVpcIpv6Public2Subnet2RouteTable2D5742D9" + }, + "subnetId": { + "Ref": "DualStackVpcIpv6Public2Subnet2Subnet509DD3CC" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", + "version": "0.0.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet2/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "gatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "routeTableId": { + "Ref": "DualStackVpcIpv6Public2Subnet2RouteTable2D5742D9" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + }, + "DefaultRoute6": { + "id": "DefaultRoute6", + "path": "DualStackVpc/DualStackVpc/Ipv6Public2Subnet2/DefaultRoute6", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationIpv6CidrBlock": "::/0", + "gatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "routeTableId": { + "Ref": "DualStackVpcIpv6Public2Subnet2RouteTable2D5742D9" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.PublicSubnet", + "version": "0.0.0" + } + }, + "Ipv6Private1Subnet1": { + "id": "Ipv6Private1Subnet1", + "path": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet1", + "children": { + "Subnet": { + "id": "Subnet", + "path": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet1/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "assignIpv6AddressOnCreation": true, + "availabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.128.0/19", + "ipv6CidrBlock": { + "Fn::Select": [ + 4, + { + "Fn::Cidr": [ + { + "Fn::Select": [ + 0, + { + "Fn::GetAtt": [ + "DualStackVpcE812233C", + "Ipv6CidrBlocks" + ] + } + ] + }, + 6, + "64" + ] + } + ] + }, + "mapPublicIpOnLaunch": false, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Ipv6Private1" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Private" + }, + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet1" + } + ], + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", + "version": "0.0.0" + } + }, + "Acl": { + "id": "Acl", + "path": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet1/Acl", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet1/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet1" + } + ], + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", + "version": "0.0.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet1/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "DualStackVpcIpv6Private1Subnet1RouteTable9CCA0D06" + }, + "subnetId": { + "Ref": "DualStackVpcIpv6Private1Subnet1Subnet2C527D85" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", + "version": "0.0.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet1/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "natGatewayId": { + "Ref": "DualStackVpcIpv6Public1Subnet1NATGateway7D2A0F59" + }, + "routeTableId": { + "Ref": "DualStackVpcIpv6Private1Subnet1RouteTable9CCA0D06" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + }, + "DefaultRoute6": { + "id": "DefaultRoute6", + "path": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet1/DefaultRoute6", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationIpv6CidrBlock": "::/0", + "egressOnlyInternetGatewayId": { + "Ref": "DualStackVpcEIGW64639A9F2" + }, + "routeTableId": { + "Ref": "DualStackVpcIpv6Private1Subnet1RouteTable9CCA0D06" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + }, + "Nat64": { + "id": "Nat64", + "path": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet1/Nat64", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationIpv6CidrBlock": "64:ff9b::/96", + "natGatewayId": { + "Ref": "DualStackVpcIpv6Public1Subnet1NATGateway7D2A0F59" + }, + "routeTableId": { + "Ref": "DualStackVpcIpv6Private1Subnet1RouteTable9CCA0D06" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet", + "version": "0.0.0" + } + }, + "Ipv6Private1Subnet2": { + "id": "Ipv6Private1Subnet2", + "path": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet2", + "children": { + "Subnet": { + "id": "Subnet", + "path": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet2/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "assignIpv6AddressOnCreation": true, + "availabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.160.0/19", + "ipv6CidrBlock": { + "Fn::Select": [ + 5, + { + "Fn::Cidr": [ + { + "Fn::Select": [ + 0, + { + "Fn::GetAtt": [ + "DualStackVpcE812233C", + "Ipv6CidrBlocks" + ] + } + ] + }, + 6, + "64" + ] + } + ] + }, + "mapPublicIpOnLaunch": false, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Ipv6Private1" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Private" + }, + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet2" + } + ], + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", + "version": "0.0.0" + } + }, + "Acl": { + "id": "Acl", + "path": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet2/Acl", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet2/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet2" + } + ], + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", + "version": "0.0.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet2/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "DualStackVpcIpv6Private1Subnet2RouteTable18BA0241" + }, + "subnetId": { + "Ref": "DualStackVpcIpv6Private1Subnet2Subnet0F013554" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", + "version": "0.0.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet2/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "natGatewayId": { + "Ref": "DualStackVpcIpv6Public1Subnet2NATGateway76C3674B" + }, + "routeTableId": { + "Ref": "DualStackVpcIpv6Private1Subnet2RouteTable18BA0241" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + }, + "DefaultRoute6": { + "id": "DefaultRoute6", + "path": "DualStackVpc/DualStackVpc/Ipv6Private1Subnet2/DefaultRoute6", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationIpv6CidrBlock": "::/0", + "egressOnlyInternetGatewayId": { + "Ref": "DualStackVpcEIGW64639A9F2" + }, + "routeTableId": { + "Ref": "DualStackVpcIpv6Private1Subnet2RouteTable18BA0241" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet", + "version": "0.0.0" + } + }, + "IGW": { + "id": "IGW", + "path": "DualStackVpc/DualStackVpc/IGW", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::InternetGateway", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "DualStackVpc/DualStackVpc" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnInternetGateway", + "version": "0.0.0" + } + }, + "VPCGW": { + "id": "VPCGW", + "path": "DualStackVpc/DualStackVpc/VPCGW", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::VPCGatewayAttachment", + "aws:cdk:cloudformation:props": { + "internetGatewayId": { + "Ref": "DualStackVpcIGW08AC356D" + }, + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnVPCGatewayAttachment", + "version": "0.0.0" + } + }, + "EIGW6": { + "id": "EIGW6", + "path": "DualStackVpc/DualStackVpc/EIGW6", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::EgressOnlyInternetGateway", + "aws:cdk:cloudformation:props": { + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnEgressOnlyInternetGateway", + "version": "0.0.0" + } + }, + "RestrictDefaultSecurityGroupCustomResource": { + "id": "RestrictDefaultSecurityGroupCustomResource", + "path": "DualStackVpc/DualStackVpc/RestrictDefaultSecurityGroupCustomResource", + "children": { + "Default": { + "id": "Default", + "path": "DualStackVpc/DualStackVpc/RestrictDefaultSecurityGroupCustomResource/Default", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.CustomResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.Vpc", + "version": "0.0.0" + } + }, + "Custom::VpcRestrictDefaultSGCustomResourceProvider": { + "id": "Custom::VpcRestrictDefaultSGCustomResourceProvider", + "path": "DualStackVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider", + "children": { + "Staging": { + "id": "Staging", + "path": "DualStackVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Staging", + "constructInfo": { + "fqn": "aws-cdk-lib.AssetStaging", + "version": "0.0.0" + } + }, + "Role": { + "id": "Role", + "path": "DualStackVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + }, + "Handler": { + "id": "Handler", + "path": "DualStackVpc/Custom::VpcRestrictDefaultSGCustomResourceProvider/Handler", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.CustomResourceProviderBase", + "version": "0.0.0" + } + }, + "Lambda_with_IPv6_VPC": { + "id": "Lambda_with_IPv6_VPC", + "path": "DualStackVpc/Lambda_with_IPv6_VPC", + "children": { + "ServiceRole": { + "id": "ServiceRole", + "path": "DualStackVpc/Lambda_with_IPv6_VPC/ServiceRole", + "children": { + "ImportServiceRole": { + "id": "ImportServiceRole", + "path": "DualStackVpc/Lambda_with_IPv6_VPC/ServiceRole/ImportServiceRole", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "DualStackVpc/Lambda_with_IPv6_VPC/ServiceRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "managedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole" + ] + ] + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.CfnRole", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.Role", + "version": "0.0.0" + } + }, + "SecurityGroup": { + "id": "SecurityGroup", + "path": "DualStackVpc/Lambda_with_IPv6_VPC/SecurityGroup", + "children": { + "Resource": { + "id": "Resource", + "path": "DualStackVpc/Lambda_with_IPv6_VPC/SecurityGroup/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroup", + "aws:cdk:cloudformation:props": { + "groupDescription": "Automatic security group for Lambda Function DualStackVpcLambdawithIPv6VPC4667BF31", + "securityGroupEgress": [ + { + "cidrIp": "0.0.0.0/0", + "description": "Allow all outbound traffic by default", + "ipProtocol": "-1" + } + ], + "vpcId": { + "Ref": "DualStackVpcE812233C" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroup", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.SecurityGroup", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "DualStackVpc/Lambda_with_IPv6_VPC/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::Lambda::Function", + "aws:cdk:cloudformation:props": { + "code": { + "zipFile": "def main(event, context): pass" + }, + "handler": "index.main", + "role": { + "Fn::GetAtt": [ + "LambdawithIPv6VPCServiceRoleC3866C85", + "Arn" + ] + }, + "runtime": "python3.9", + "vpcConfig": { + "ipv6AllowedForDualStack": true, + "subnetIds": [ + { + "Ref": "DualStackVpcIpv6Private1Subnet1Subnet2C527D85" + }, + { + "Ref": "DualStackVpcIpv6Private1Subnet2Subnet0F013554" + } + ], + "securityGroupIds": [ + { + "Fn::GetAtt": [ + "LambdawithIPv6VPCSecurityGroup1BC5651B", + "GroupId" + ] + } + ] + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_lambda.CfnFunction", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_lambda.Function", + "version": "0.0.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "DualStackVpc/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "DualStackVpc/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + }, + "DualStackTesting": { + "id": "DualStackTesting", + "path": "DualStackTesting", + "children": { + "DefaultTest": { + "id": "DefaultTest", + "path": "DualStackTesting/DefaultTest", + "children": { + "Default": { + "id": "Default", + "path": "DualStackTesting/DefaultTest/Default", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DeployAssert": { + "id": "DeployAssert", + "path": "DualStackTesting/DefaultTest/DeployAssert", + "children": { + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "DualStackTesting/DefaultTest/DeployAssert/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "DualStackTesting/DefaultTest/DeployAssert/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.IntegTest", + "version": "0.0.0" + } + }, + "Tree": { + "id": "Tree", + "path": "Tree", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.App", + "version": "0.0.0" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.ts new file mode 100644 index 0000000000000..58b627f907f0b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.lambda_with_dualStack_vpc.ts @@ -0,0 +1,42 @@ +import { App, Stack } from 'aws-cdk-lib/core'; +import * as ec2 from 'aws-cdk-lib/aws-ec2'; +import { IntegTest } from '@aws-cdk/integ-tests-alpha'; +import * as lambda from 'aws-cdk-lib/aws-lambda'; + +const app = new App(); +const stack = new Stack(app, 'DualStackVpc'); + +const natProvider = ec2.NatProvider.gateway(); +const vpc = new ec2.Vpc(stack, 'DualStackVpc', { + ipProtocol: ec2.IpProtocol.DUAL_STACK, + subnetConfiguration: [ + { + name: 'Ipv6Public1', + subnetType: ec2.SubnetType.PUBLIC, + }, + { + name: 'Ipv6Public2', + subnetType: ec2.SubnetType.PUBLIC, + }, + { + name: 'Ipv6Private1', + subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS, + }, + ], + natGatewayProvider: natProvider, +}); + +const natGatewayId = natProvider.configuredGateways[0].gatewayId; +(vpc.privateSubnets[0] as ec2.PrivateSubnet).addIpv6Nat64Route(natGatewayId); + +new lambda.Function(stack, 'Lambda_with_IPv6_VPC', { + code: new lambda.InlineCode('def main(event, context): pass'), + handler: 'index.main', + runtime: lambda.Runtime.PYTHON_3_9, + vpc, + ipv6AllowedForDualStack: true, +}); + +new IntegTest(app, 'DualStackTesting', { + testCases: [stack], +}); \ No newline at end of file diff --git a/packages/aws-cdk-lib/aws-lambda/README.md b/packages/aws-cdk-lib/aws-lambda/README.md index 13b3c319ec7ff..5a876c8ae68eb 100644 --- a/packages/aws-cdk-lib/aws-lambda/README.md +++ b/packages/aws-cdk-lib/aws-lambda/README.md @@ -1075,6 +1075,49 @@ const fn = new lambda.Function(this, 'MyLambda', { }); ``` +## IPv6 support + +You can configure IPv6 connectivity for lambda function by setting `Ipv6AllowedForDualStack` to true. +It allows Lambda functions to specify whether the IPv6 traffic should be allowed when using dual-stack VPCs. +To access IPv6 network using Lambda, Dual-stack VPC is required. Using dual-stack VPC a function communicates with subnet over either of IPv4 or IPv6. + +```ts +import * as ec2 from 'aws-cdk-lib/aws-ec2'; + +const natProvider = ec2.NatProvider.gateway(); + +// create dual-stack VPC +const vpc = new ec2.Vpc(this, 'DualStackVpc', { + ipProtocol: ec2.IpProtocol.DUAL_STACK, + subnetConfiguration: [ + { + name: 'Ipv6Public1', + subnetType: ec2.SubnetType.PUBLIC, + }, + { + name: 'Ipv6Public2', + subnetType: ec2.SubnetType.PUBLIC, + }, + { + name: 'Ipv6Private1', + subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS, + }, + ], + natGatewayProvider: natProvider, +}); + +const natGatewayId = natProvider.configuredGateways[0].gatewayId; +(vpc.privateSubnets[0] as ec2.PrivateSubnet).addIpv6Nat64Route(natGatewayId); + +const fn = new lambda.Function(this, 'Lambda_with_IPv6_VPC', { + code: new lambda.InlineCode('def main(event, context): pass'), + handler: 'index.main', + runtime: lambda.Runtime.PYTHON_3_9, + vpc, + ipv6AllowedForDualStack: true, +}); +``` + ## Ephemeral Storage You can configure ephemeral storage on a function to control the amount of storage it gets for reading diff --git a/packages/aws-cdk-lib/aws-lambda/lib/function.ts b/packages/aws-cdk-lib/aws-lambda/lib/function.ts index 23c6e9b8ff2ef..dba046f447513 100644 --- a/packages/aws-cdk-lib/aws-lambda/lib/function.ts +++ b/packages/aws-cdk-lib/aws-lambda/lib/function.ts @@ -232,6 +232,15 @@ export interface FunctionOptions extends EventInvokeConfigOptions { */ readonly vpc?: ec2.IVpc; + /** + * Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. + * + * Only used if 'vpc' is supplied. + * + * @default false + */ + readonly ipv6AllowedForDualStack?: boolean; + /** * Where to place the network interfaces within the VPC. * @@ -1447,6 +1456,9 @@ Environment variables can be marked for removal when used in Lambda@Edge by sett if (props.vpcSubnets) { throw new Error('Cannot configure \'vpcSubnets\' without configuring a VPC'); } + if (props.ipv6AllowedForDualStack) { + throw new Error('Cannot configure \'ipv6AllowedForDualStack\' without configuring a VPC'); + } return undefined; } @@ -1483,6 +1495,7 @@ Environment variables can be marked for removal when used in Lambda@Edge by sett } } + const ipv6AllowedForDualStack = props.ipv6AllowedForDualStack; const allowPublicSubnet = props.allowPublicSubnet ?? false; const selectedSubnets = props.vpc.selectSubnets(props.vpcSubnets); const publicSubnetIds = new Set(props.vpc.publicSubnets.map(s => s.subnetId)); @@ -1497,10 +1510,17 @@ Environment variables can be marked for removal when used in Lambda@Edge by sett // List can't be empty here, if we got this far you intended to put your Lambda // in subnets. We're going to guarantee that we get the nice error message by // making VpcNetwork do the selection again. - - return { - subnetIds: selectedSubnets.subnetIds, - securityGroupIds: securityGroups.map(sg => sg.securityGroupId), + if (props.ipv6AllowedForDualStack !== undefined) { + return { + ipv6AllowedForDualStack: ipv6AllowedForDualStack, + subnetIds: selectedSubnets.subnetIds, + securityGroupIds: securityGroups.map(sg => sg.securityGroupId), + }; + } else { + return { + subnetIds: selectedSubnets.subnetIds, + securityGroupIds: securityGroups.map(sg => sg.securityGroupId), + }; }; } diff --git a/packages/aws-cdk-lib/aws-lambda/test/function.test.ts b/packages/aws-cdk-lib/aws-lambda/test/function.test.ts index 46a79c32acbdd..f4c5382707641 100644 --- a/packages/aws-cdk-lib/aws-lambda/test/function.test.ts +++ b/packages/aws-cdk-lib/aws-lambda/test/function.test.ts @@ -3832,6 +3832,100 @@ describe('VPC configuration', () => { allowAllOutbound: false, })).not.toThrow(); }); + + test('with ipv6AllowedForDualStack and no VPC', () => { + const stack = new cdk.Stack(); + expect(() => new lambda.Function(stack, 'MyLambda', { + code: new lambda.InlineCode('foo'), + handler: 'index.handler', + runtime: lambda.Runtime.PYTHON_3_9, + ipv6AllowedForDualStack: true, + })).toThrow(/Cannot configure 'ipv6AllowedForDualStack' without configuring a VPC/); + }); + + test('set ipv6AllowedForDualStack with VPC', () => { + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'Vpc', { + maxAzs: 3, + natGateways: 1, + }); + const securityGroup = new ec2.SecurityGroup(stack, 'LambdaSG', { + vpc, + allowAllOutbound: true, + allowAllIpv6Outbound: true, + }); + new lambda.Function(stack, 'MyLambda', { + vpc: vpc, + code: new lambda.InlineCode('foo'), + handler: 'index.handler', + runtime: lambda.Runtime.PYTHON_3_9, + ipv6AllowedForDualStack: true, + securityGroups: [securityGroup], + vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS }, + }); + + Template.fromStack(stack).hasResource('AWS::Lambda::Function', { + Properties: + { + Code: { ZipFile: 'foo' }, + Handler: 'index.handler', + Runtime: 'python3.9', + Role: { 'Fn::GetAtt': ['MyLambdaServiceRole4539ECB6', 'Arn'] }, + VpcConfig: { + Ipv6AllowedForDualStack: true, + SecurityGroupIds: [ + { 'Fn::GetAtt': ['LambdaSG9DBFCFB7', 'GroupId'] }, + ], + SubnetIds: [ + { Ref: 'VpcPrivateSubnet1Subnet536B997A' }, + { Ref: 'VpcPrivateSubnet2Subnet3788AAA1' }, + ], + }, + }, + }); + }); + + test('set ipv6AllowedForDualStack to False with VPC', () => { + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'Vpc', { + maxAzs: 3, + natGateways: 1, + }); + const securityGroup = new ec2.SecurityGroup(stack, 'LambdaSG', { + vpc, + allowAllOutbound: true, + allowAllIpv6Outbound: true, + }); + new lambda.Function(stack, 'MyLambda', { + vpc: vpc, + code: new lambda.InlineCode('foo'), + handler: 'index.handler', + runtime: lambda.Runtime.PYTHON_3_9, + ipv6AllowedForDualStack: false, + securityGroups: [securityGroup], + vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS }, + }); + + Template.fromStack(stack).hasResource('AWS::Lambda::Function', { + Properties: + { + Code: { ZipFile: 'foo' }, + Handler: 'index.handler', + Runtime: 'python3.9', + Role: { 'Fn::GetAtt': ['MyLambdaServiceRole4539ECB6', 'Arn'] }, + VpcConfig: { + Ipv6AllowedForDualStack: false, + SecurityGroupIds: [ + { 'Fn::GetAtt': ['LambdaSG9DBFCFB7', 'GroupId'] }, + ], + SubnetIds: [ + { Ref: 'VpcPrivateSubnet1Subnet536B997A' }, + { Ref: 'VpcPrivateSubnet2Subnet3788AAA1' }, + ], + }, + }, + }); + }); }); function newTestLambda(scope: constructs.Construct) { From c579e3cdfa425fe4e58fc20a653d32d32f943ca9 Mon Sep 17 00:00:00 2001 From: AWS CDK Automation <43080478+aws-cdk-automation@users.noreply.github.com> Date: Wed, 21 Feb 2024 04:38:23 -0800 Subject: [PATCH 19/22] feat: update L1 CloudFormation resource definitions (#29191) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updates the L1 CloudFormation resource definitions with the latest changes from `@aws-cdk/aws-service-spec` **L1 CloudFormation resource definition changes:** ``` ├[~] service aws-amazonmq │ └ resources │ └[~] resource AWS::AmazonMQ::Broker │ └ attributes │ ├ AmqpEndpoints: (documentation changed) │ ├ IpAddresses: (documentation changed) │ ├ MqttEndpoints: (documentation changed) │ ├ OpenWireEndpoints: (documentation changed) │ ├ StompEndpoints: (documentation changed) │ └ WssEndpoints: (documentation changed) ├[~] service aws-amplify │ └ resources │ └[~] resource AWS::Amplify::Domain │ └ attributes │ └ AutoSubDomainCreationPatterns: (documentation changed) ├[~] service aws-appconfig │ └ resources │ ├[~] resource AWS::AppConfig::Environment │ │ └ attributes │ │ └[-] Id: string │ └[~] resource AWS::AppConfig::HostedConfigurationVersion │ └ attributes │ └[-] Id: string ├[~] service aws-appstream │ └ resources │ ├[~] resource AWS::AppStream::Fleet │ │ ├ properties │ │ │ ├ IdleDisconnectTimeoutInSeconds: (documentation changed) │ │ │ └ MaxSessionsPerInstance: (documentation changed) │ │ └ types │ │ └[~] type ComputeCapacity │ │ └ properties │ │ └ DesiredSessions: (documentation changed) │ └[~] resource AWS::AppStream::Stack │ └ types │ └[~] type UserSetting │ └ properties │ └ MaximumLength: (documentation changed) ├[~] service aws-appsync │ └ resources │ ├[~] resource AWS::AppSync::ApiCache │ │ └ properties │ │ └[+] HealthMetricsConfig: string │ ├[~] resource AWS::AppSync::DataSource │ │ └ properties │ │ └[+] MetricsConfig: string │ ├[~] resource AWS::AppSync::GraphQLApi │ │ ├ properties │ │ │ ├[+] EnhancedMetricsConfig: EnhancedMetricsConfig │ │ │ └ EnvironmentVariables: (documentation changed) │ │ └ types │ │ └[+] type EnhancedMetricsConfig │ │ ├ documentation: Describes an enhanced metrics configuration. │ │ │ name: EnhancedMetricsConfig │ │ └ properties │ │ ├OperationLevelMetricsConfig: string (required) │ │ ├ResolverLevelMetricsBehavior: string (required) │ │ └DataSourceLevelMetricsBehavior: string (required) │ └[~] resource AWS::AppSync::Resolver │ └ properties │ └[+] MetricsConfig: string ├[~] service aws-autoscaling │ └ resources │ ├[~] resource AWS::AutoScaling::AutoScalingGroup │ │ ├ - documentation: The `AWS::AutoScaling::AutoScalingGroup` resource defines an Amazon EC2 Auto Scaling group, which is a collection of Amazon EC2 instances that are treated as a logical grouping for the purposes of automatic scaling and management. │ │ │ For more information about Amazon EC2 Auto Scaling, see the [Amazon EC2 Auto Scaling User Guide](https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html) . │ │ │ > Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group using either a [launch template](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html) or a launch configuration. We strongly recommend that you do not use launch configurations. They do not provide full functionality for Amazon EC2 Auto Scaling or Amazon EC2. For more information, see [Launch configurations](https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-configurations.html) and [Migrate AWS CloudFormation stacks from launch configurations to launch templates](https://docs.aws.amazon.com/autoscaling/ec2/userguide/migrate-launch-configurations-with-cloudformation.html) in the *Amazon EC2 Auto Scaling User Guide* . │ │ │ + documentation: The `AWS::AutoScaling::AutoScalingGroup` resource defines an Amazon EC2 Auto Scaling group, which is a collection of Amazon EC2 instances that are treated as a logical grouping for the purposes of automatic scaling and management. │ │ │ For more information about Amazon EC2 Auto Scaling, see the [Amazon EC2 Auto Scaling User Guide](https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html) . │ │ │ > Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group using either a [launch template](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html) or a launch configuration. We strongly recommend that you do not use launch configurations. For more information, see [Launch configurations](https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-configurations.html) in the *Amazon EC2 Auto Scaling User Guide* . │ │ │ > │ │ │ > For help migrating from launch configurations to launch templates, see [Migrate AWS CloudFormation stacks from launch configurations to launch templates](https://docs.aws.amazon.com/autoscaling/ec2/userguide/migrate-launch-configurations-with-cloudformation.html) in the *Amazon EC2 Auto Scaling User Guide* . │ │ └ types │ │ ├[~] type InstanceRequirements │ │ │ └ - documentation: The attributes for the instance types for a mixed instances policy. Amazon EC2 Auto Scaling uses your specified requirements to identify instance types. Then, it uses your On-Demand and Spot allocation strategies to launch instances from these instance types. │ │ │ When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values. │ │ │ To limit the list of instance types from which Amazon EC2 Auto Scaling can identify matching instance types, you can use one of the following parameters, but not both in the same request: │ │ │ - `AllowedInstanceTypes` - The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes. │ │ │ - `ExcludedInstanceTypes` - The instance types to exclude from the list, even if they match your specified attributes. │ │ │ > You must specify `VCpuCount` and `MemoryMiB` . All other attributes are optional. Any unspecified optional attribute is set to its default. │ │ │ For an example template, see [Auto scaling template snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html) . │ │ │ For more information, see [Creating an Auto Scaling group using attribute-based instance type selection](https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html) in the *Amazon EC2 Auto Scaling User Guide* . For help determining which instance types match your attributes before you apply them to your Auto Scaling group, see [Preview instance types with specified attributes](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-get-instance-types-from-instance-requirements) in the *Amazon EC2 User Guide for Linux Instances* . │ │ │ `InstanceRequirements` is a property of the `LaunchTemplateOverrides` property of the [AWS::AutoScaling::AutoScalingGroup LaunchTemplate](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplate.html) property type. │ │ │ + documentation: The attributes for the instance types for a mixed instances policy. Amazon EC2 Auto Scaling uses your specified requirements to identify instance types. Then, it uses your On-Demand and Spot allocation strategies to launch instances from these instance types. │ │ │ When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values. │ │ │ To limit the list of instance types from which Amazon EC2 Auto Scaling can identify matching instance types, you can use one of the following parameters, but not both in the same request: │ │ │ - `AllowedInstanceTypes` - The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes. │ │ │ - `ExcludedInstanceTypes` - The instance types to exclude from the list, even if they match your specified attributes. │ │ │ > You must specify `VCpuCount` and `MemoryMiB` . All other attributes are optional. Any unspecified optional attribute is set to its default. │ │ │ For an example template, see [Configure Amazon EC2 Auto Scaling resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html) . │ │ │ For more information, see [Creating an Auto Scaling group using attribute-based instance type selection](https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html) in the *Amazon EC2 Auto Scaling User Guide* . For help determining which instance types match your attributes before you apply them to your Auto Scaling group, see [Preview instance types with specified attributes](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-get-instance-types-from-instance-requirements) in the *Amazon EC2 User Guide for Linux Instances* . │ │ │ `InstanceRequirements` is a property of the `LaunchTemplateOverrides` property of the [AWS::AutoScaling::AutoScalingGroup LaunchTemplate](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplate.html) property type. │ │ ├[~] type LaunchTemplateSpecification │ │ │ └ - documentation: Specifies a launch template to use when provisioning EC2 instances for an Auto Scaling group. │ │ │ You must specify the following: │ │ │ - The ID or the name of the launch template, but not both. │ │ │ - The version of the launch template. │ │ │ `LaunchTemplateSpecification` is property of the [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) resource. It is also a property of the [AWS::AutoScaling::AutoScalingGroup LaunchTemplate](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplate.html) and [AWS::AutoScaling::AutoScalingGroup LaunchTemplateOverrides](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplateoverrides.html) property types. │ │ │ For information about creating a launch template, see [AWS::EC2::LaunchTemplate](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html) and [Create a launch template for an Auto Scaling group](https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html) in the *Amazon EC2 Auto Scaling User Guide* . │ │ │ For examples of launch templates, see [Auto scaling template snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html) and the [Examples](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#aws-resource-ec2-launchtemplate--examples) section in the `AWS::EC2::LaunchTemplate` resource. │ │ │ + documentation: Specifies a launch template to use when provisioning EC2 instances for an Auto Scaling group. │ │ │ You must specify the following: │ │ │ - The ID or the name of the launch template, but not both. │ │ │ - The version of the launch template. │ │ │ `LaunchTemplateSpecification` is property of the [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) resource. It is also a property of the [AWS::AutoScaling::AutoScalingGroup LaunchTemplate](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplate.html) and [AWS::AutoScaling::AutoScalingGroup LaunchTemplateOverrides](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplateoverrides.html) property types. │ │ │ For information about creating a launch template, see [AWS::EC2::LaunchTemplate](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html) and [Create a launch template for an Auto Scaling group](https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html) in the *Amazon EC2 Auto Scaling User Guide* . │ │ │ For examples of launch templates, see [Create launch templates](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-launch-templates.html) . │ │ └[~] type NotificationConfiguration │ │ └ - documentation: A structure that specifies an Amazon SNS notification configuration for the `NotificationConfigurations` property of the [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) resource. │ │ For an example template snippet, see [Auto scaling template snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html) . │ │ For more information, see [Get Amazon SNS notifications when your Auto Scaling group scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in the *Amazon EC2 Auto Scaling User Guide* . │ │ + documentation: A structure that specifies an Amazon SNS notification configuration for the `NotificationConfigurations` property of the [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) resource. │ │ For an example template snippet, see [Configure Amazon EC2 Auto Scaling resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html) . │ │ For more information, see [Get Amazon SNS notifications when your Auto Scaling group scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in the *Amazon EC2 Auto Scaling User Guide* . │ ├[~] resource AWS::AutoScaling::LaunchConfiguration │ │ └ - documentation: The `AWS::AutoScaling::LaunchConfiguration` resource specifies the launch configuration that can be used by an Auto Scaling group to configure Amazon EC2 instances. │ │ When you update the launch configuration for an Auto Scaling group, CloudFormation deletes that resource and creates a new launch configuration with the updated properties and a new name. Existing instances are not affected. To update existing instances when you update the `AWS::AutoScaling::LaunchConfiguration` resource, you can specify an [UpdatePolicy attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html) for the group. You can find sample update policies for rolling updates in [Auto scaling template snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html) . │ │ > Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group using either a [launch template](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html) or a launch configuration. We strongly recommend that you do not use launch configurations. They do not provide full functionality for Amazon EC2 Auto Scaling or Amazon EC2. For more information, see [Launch configurations](https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-configurations.html) and [Migrate AWS CloudFormation stacks from launch configurations to launch templates](https://docs.aws.amazon.com/autoscaling/ec2/userguide/migrate-launch-configurations-with-cloudformation.html) in the *Amazon EC2 Auto Scaling User Guide* . │ │ + documentation: The `AWS::AutoScaling::LaunchConfiguration` resource specifies the launch configuration that can be used by an Auto Scaling group to configure Amazon EC2 instances. │ │ When you update the launch configuration for an Auto Scaling group, CloudFormation deletes that resource and creates a new launch configuration with the updated properties and a new name. Existing instances are not affected. To update existing instances when you update the `AWS::AutoScaling::LaunchConfiguration` resource, you can specify an [UpdatePolicy attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html) for the group. You can find sample update policies for rolling updates in [Configure Amazon EC2 Auto Scaling resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html) . │ │ > Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group using either a [launch template](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html) or a launch configuration. We strongly recommend that you do not use launch configurations. For more information, see [Launch configurations](https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-configurations.html) in the *Amazon EC2 Auto Scaling User Guide* . │ │ > │ │ > For help migrating from launch configurations to launch templates, see [Migrate AWS CloudFormation stacks from launch configurations to launch templates](https://docs.aws.amazon.com/autoscaling/ec2/userguide/migrate-launch-configurations-with-cloudformation.html) in the *Amazon EC2 Auto Scaling User Guide* . │ └[~] resource AWS::AutoScaling::ScheduledAction │ └ - documentation: The `AWS::AutoScaling::ScheduledAction` resource specifies an Amazon EC2 Auto Scaling scheduled action so that the Auto Scaling group can change the number of instances available for your application in response to predictable load changes. │ When you update a stack with an Auto Scaling group and scheduled action, CloudFormation always sets the min size, max size, and desired capacity properties of your group to the values that are defined in the `AWS::AutoScaling::AutoScalingGroup` section of your template. However, you might not want CloudFormation to do that when you have a scheduled action in effect. You can use an [UpdatePolicy attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html) to prevent CloudFormation from changing the min size, max size, or desired capacity property values during a stack update unless you modified the individual values in your template. If you have rolling updates enabled, before you can update the Auto Scaling group, you must suspend scheduled actions by specifying an [UpdatePolicy attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html) for the Auto Scaling group. You can find a sample update policy for rolling updates in [Auto scaling template snippets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-autoscaling.html) . │ For more information, see [Scheduled scaling](https://docs.aws.amazon.com/autoscaling/ec2/userguide/schedule_time.html) and [Suspending and resuming scaling processes](https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html) in the *Amazon EC2 Auto Scaling User Guide* . │ + documentation: The `AWS::AutoScaling::ScheduledAction` resource specifies an Amazon EC2 Auto Scaling scheduled action so that the Auto Scaling group can change the number of instances available for your application in response to predictable load changes. │ When you update a stack with an Auto Scaling group and scheduled action, CloudFormation always sets the min size, max size, and desired capacity properties of your group to the values that are defined in the `AWS::AutoScaling::AutoScalingGroup` section of your template. However, you might not want CloudFormation to do that when you have a scheduled action in effect. You can use an [UpdatePolicy attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html) to prevent CloudFormation from changing the min size, max size, or desired capacity property values during a stack update unless you modified the individual values in your template. If you have rolling updates enabled, before you can update the Auto Scaling group, you must suspend scheduled actions by specifying an [UpdatePolicy attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html) for the Auto Scaling group. You can find a sample update policy for rolling updates in [Configure Amazon EC2 Auto Scaling resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html) . │ For more information, see [Scheduled scaling](https://docs.aws.amazon.com/autoscaling/ec2/userguide/schedule_time.html) and [Suspending and resuming scaling processes](https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html) in the *Amazon EC2 Auto Scaling User Guide* . ├[~] service aws-batch │ └ resources │ └[~] resource AWS::Batch::JobDefinition │ └ types │ ├[~] type ContainerProperties │ │ └ properties │ │ └[+] RepositoryCredentials: RepositoryCredentials │ ├[~] type Metadata │ │ ├ - documentation: undefined │ │ │ + documentation: Metadata about the Kubernetes pod. For more information, see [Understanding Kubernetes Objects](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/) in the *Kubernetes documentation* . │ │ └ properties │ │ └ Labels: (documentation changed) │ ├[~] type PodProperties │ │ ├ - documentation: undefined │ │ │ + documentation: The properties for the pod. │ │ └ properties │ │ ├ Containers: (documentation changed) │ │ ├ DnsPolicy: (documentation changed) │ │ ├ HostNetwork: (documentation changed) │ │ ├ Metadata: (documentation changed) │ │ ├ ServiceAccountName: (documentation changed) │ │ └ Volumes: (documentation changed) │ └[+] type RepositoryCredentials │ ├ documentation: The repository credentials for private registry authentication. │ │ name: RepositoryCredentials │ └ properties │ └CredentialsParameter: string (required) ├[~] service aws-cleanrooms │ └ resources │ └[~] resource AWS::CleanRooms::AnalysisTemplate │ └ attributes │ └ Schema: (documentation changed) ├[~] service aws-cloudformation │ └ resources │ ├[~] resource AWS::CloudFormation::Stack │ │ └ attributes │ │ └ Outputs: (documentation changed) │ └[~] resource AWS::CloudFormation::WaitCondition │ └ attributes │ └ Data: (documentation changed) ├[~] service aws-cloudfront │ └ resources │ ├[~] resource AWS::CloudFront::Distribution │ │ └ types │ │ ├[~] type DistributionConfig │ │ │ └ properties │ │ │ ├ CNAMEs: (documentation changed) │ │ │ ├ CustomOrigin: (documentation changed) │ │ │ ├ S3Origin: (documentation changed) │ │ │ └ WebACLId: (documentation changed) │ │ ├[~] type LegacyCustomOrigin │ │ │ └ properties │ │ │ ├ DNSName: (documentation changed) │ │ │ ├ HTTPPort: (documentation changed) │ │ │ ├ HTTPSPort: (documentation changed) │ │ │ ├ OriginProtocolPolicy: (documentation changed) │ │ │ └ OriginSSLProtocols: (documentation changed) │ │ ├[~] type LegacyS3Origin │ │ │ └ properties │ │ │ ├ DNSName: (documentation changed) │ │ │ └ OriginAccessIdentity: (documentation changed) │ │ └[~] type S3OriginConfig │ │ └ properties │ │ └ OriginAccessIdentity: (documentation changed) │ └[~] resource AWS::CloudFront::Function │ └ attributes │ └ FunctionMetadata.FunctionARN: (documentation changed) ├[~] service aws-cloudtrail │ └ resources │ ├[~] resource AWS::CloudTrail::EventDataStore │ │ └ types │ │ └[~] type AdvancedFieldSelector │ │ └ properties │ │ └ Field: (documentation changed) │ └[~] resource AWS::CloudTrail::Trail │ └ types │ └[~] type AdvancedFieldSelector │ └ properties │ └ Field: (documentation changed) ├[~] service aws-cloudwatch │ └ resources │ └[~] resource AWS::CloudWatch::AnomalyDetector │ ├ - documentation: The `AWS::CloudWatch::AnomalyDetector` type specifies an anomaly detection band for a certain metric and statistic. The band represents the expected "normal" range for the metric values. Anomaly detection bands can be used for visualization of a metric's expected values, and for alarms. │ │ + documentation: The `AWS::CloudWatch::AnomalyDetector` type specifies an anomaly detection band for a certain metric and statistic. The band represents the expected "normal" range for the metric values. Anomaly detection bands can be used for visualization of a metric's expected values, and for alarms. │ │ For more information see [Using CloudWatch anomaly detection.](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Anomaly_Detection.html) . │ └ types │ └[~] type SingleMetricAnomalyDetector │ └ - documentation: Designates the CloudWatch metric and statistic that provides the time series the anomaly detector uses as input. │ + documentation: Designates the CloudWatch metric and statistic that provides the time series the anomaly detector uses as input. If you have enabled unified cross-account observability, and this account is a monitoring account, the metric can be in the same account or a source account. ├[~] service aws-codepipeline │ └ resources │ └[~] resource AWS::CodePipeline::Pipeline │ ├ - documentation: The `AWS::CodePipeline::Pipeline` resource creates a CodePipeline pipeline that describes how software changes go through a release process. For more information, see [What Is CodePipeline?](https://docs.aws.amazon.com/codepipeline/latest/userguide/welcome.html) in the *AWS CodePipeline User Guide* . │ │ + documentation: The `AWS::CodePipeline::Pipeline` resource creates a CodePipeline pipeline that describes how software changes go through a release process. For more information, see [What Is CodePipeline?](https://docs.aws.amazon.com/codepipeline/latest/userguide/welcome.html) in the *CodePipeline User Guide* . │ │ For an example in YAML and JSON that contains the parameters in this reference, see [Examples](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codepipeline-pipeline.html#aws-resource-codepipeline-pipeline--examples) . │ ├ properties │ │ ├[+] ExecutionMode: string │ │ └ PipelineType: (documentation changed) │ └ types │ ├[~] type ActionDeclaration │ │ └ - documentation: Represents information about an action declaration. │ │ + documentation: Represents information about an action declaration. │ │ > Documentation for the `timeoutInMinutes` parameter in the `ActionDeclaration` is not yet available for CloudFormation and CDK resources in CodePipeline. For more information about the configurable timeout for manual approval actions, see the [ActionDeclaration](https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ActionDeclaration.html) in the CodePipeline API Reference. │ ├[+] type GitBranchFilterCriteria │ │ ├ documentation: The Git repository branches specified as filter criteria to start the pipeline. │ │ │ name: GitBranchFilterCriteria │ │ └ properties │ │ ├Includes: Array │ │ └Excludes: Array │ ├[~] type GitConfiguration │ │ └ properties │ │ ├[+] PullRequest: Array │ │ └ Push: (documentation changed) │ ├[+] type GitFilePathFilterCriteria │ │ ├ documentation: The Git repository file paths specified as filter criteria to start the pipeline. │ │ │ name: GitFilePathFilterCriteria │ │ └ properties │ │ ├Includes: Array │ │ └Excludes: Array │ ├[+] type GitPullRequestFilter │ │ ├ documentation: The event criteria for the pull request trigger configuration, such as the lists of branches or file paths to include and exclude. │ │ │ name: GitPullRequestFilter │ │ └ properties │ │ ├FilePaths: GitFilePathFilterCriteria │ │ ├Events: Array │ │ └Branches: GitBranchFilterCriteria │ └[~] type GitPushFilter │ └ properties │ ├[+] Branches: GitBranchFilterCriteria │ └[+] FilePaths: GitFilePathFilterCriteria ├[~] service aws-cognito │ └ resources │ └[~] resource AWS::Cognito::UserPoolRiskConfigurationAttachment │ └ attributes │ └[-] Id: string ├[~] service aws-config │ └ resources │ └[~] resource AWS::Config::ConformancePack │ └ types │ └[~] type TemplateSSMDocumentDetails │ └ properties │ └ DocumentName: (documentation changed) ├[~] service aws-connect │ └ resources │ └[~] resource AWS::Connect::User │ └ types │ ├[~] type UserIdentityInfo │ │ └ - documentation: Contains information about the identity of a user. │ │ + documentation: Contains information about the identity of a user. │ │ > For Amazon Connect instances that are created with the `EXISTING_DIRECTORY` identity management type, `FirstName` , `LastName` , and `Email` cannot be updated from within Amazon Connect because they are managed by the directory. │ └[~] type UserPhoneConfig │ └ properties │ └ AfterContactWorkTimeLimit: (documentation changed) ├[~] service aws-controltower │ └ resources │ ├[+] resource AWS::ControlTower::EnabledBaseline │ │ ├ name: EnabledBaseline │ │ │ cloudFormationType: AWS::ControlTower::EnabledBaseline │ │ │ documentation: This resource represents a `Baseline` that has been applied to a target. │ │ │ tagInformation: {"tagPropertyName":"Tags","variant":"standard"} │ │ ├ properties │ │ │ ├BaselineIdentifier: string (required, immutable) │ │ │ ├BaselineVersion: string (required) │ │ │ ├TargetIdentifier: string (required, immutable) │ │ │ ├Parameters: Array │ │ │ └Tags: Array │ │ ├ attributes │ │ │ └EnabledBaselineIdentifier: string │ │ └ types │ │ └type Parameter │ │ ├ documentation: A key-value parameter to an `EnabledBaseline` resource. │ │ │ name: Parameter │ │ └ properties │ │ ├Key: string │ │ └Value: string | json | number | Array | boolean │ ├[~] resource AWS::ControlTower::EnabledControl │ │ ├ - tagInformation: undefined │ │ │ + tagInformation: {"tagPropertyName":"Tags","variant":"standard"} │ │ └ properties │ │ ├ ControlIdentifier: (documentation changed) │ │ └[+] Tags: Array │ └[~] resource AWS::ControlTower::LandingZone │ ├ properties │ │ └ Manifest: (documentation changed) │ └ attributes │ └ Status: (documentation changed) ├[~] service aws-datasync │ └ resources │ └[~] resource AWS::DataSync::Task │ └ attributes │ ├ DestinationNetworkInterfaceArns: (documentation changed) │ └ SourceNetworkInterfaceArns: (documentation changed) ├[~] service aws-directoryservice │ └ resources │ ├[~] resource AWS::DirectoryService::MicrosoftAD │ │ └ attributes │ │ └ DnsIpAddresses: (documentation changed) │ └[~] resource AWS::DirectoryService::SimpleAD │ └ attributes │ └ DnsIpAddresses: (documentation changed) ├[~] service aws-ec2 │ └ resources │ ├[~] resource AWS::EC2::ClientVpnEndpoint │ │ ├ properties │ │ │ └[-] ClientRouteMonitoringOptions: ClientRouteMonitoringOptions │ │ └ types │ │ └[-] type ClientRouteMonitoringOptions │ │ ├ name: ClientRouteMonitoringOptions │ │ └ properties │ │ └Enabled: boolean │ ├[~] resource AWS::EC2::EC2Fleet │ │ └ types │ │ └[~] type InstanceRequirementsRequest │ │ └ properties │ │ └[+] MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: integer │ ├[~] resource AWS::EC2::LaunchTemplate │ │ └ types │ │ └[~] type MaintenanceOptions │ │ └ properties │ │ └ RebootMigration: (documentation changed) │ ├[~] resource AWS::EC2::NetworkInsightsAnalysis │ │ └ attributes │ │ ├ AlternatePathHints: (documentation changed) │ │ ├ Explanations: (documentation changed) │ │ ├ ForwardPathComponents: (documentation changed) │ │ ├ ReturnPathComponents: (documentation changed) │ │ └ SuggestedAccounts: (documentation changed) │ ├[~] resource AWS::EC2::NetworkInterface │ │ └ attributes │ │ └ SecondaryPrivateIpAddresses: (documentation changed) │ ├[~] resource AWS::EC2::PrefixList │ │ └ properties │ │ └ MaxEntries: - integer (required) │ │ + integer │ ├[~] resource AWS::EC2::SecurityGroupEgress │ │ └ attributes │ │ └ Id: (documentation changed) │ ├[~] resource AWS::EC2::SpotFleet │ │ └ types │ │ └[~] type InstanceRequirementsRequest │ │ └ properties │ │ └[+] MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: integer │ ├[~] resource AWS::EC2::TransitGatewayPeeringAttachment │ │ └ attributes │ │ └ Status: (documentation changed) │ ├[~] resource AWS::EC2::VPC │ │ └ attributes │ │ ├ CidrBlockAssociations: (documentation changed) │ │ └ Ipv6CidrBlocks: (documentation changed) │ └[~] resource AWS::EC2::VPCEndpoint │ └ attributes │ ├ DnsEntries: (documentation changed) │ └ NetworkInterfaceIds: (documentation changed) ├[~] service aws-ecs │ └ resources │ └[~] resource AWS::ECS::TaskDefinition │ └ types │ └[~] type KernelCapabilities │ └ - documentation: The `KernelCapabilities` property specifies the Linux capabilities for the container that are added to or dropped from the default configuration that is provided by Docker. For more information on the default capabilities and the non-default available capabilities, see [Runtime privilege and Linux capabilities](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities) in the *Docker run reference* . For more detailed information on these Linux capabilities, see the [capabilities(7)](https://docs.aws.amazon.com/http://man7.org/linux/man-pages/man7/capabilities.7.html) Linux manual page. │ + documentation: The Linux capabilities to add or remove from the default Docker configuration for a container defined in the task definition. For more information about the default capabilities and the non-default available capabilities, see [Runtime privilege and Linux capabilities](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities) in the *Docker run reference* . For more detailed information about these Linux capabilities, see the [capabilities(7)](https://docs.aws.amazon.com/http://man7.org/linux/man-pages/man7/capabilities.7.html) Linux manual page. ├[~] service aws-eks │ └ resources │ └[~] resource AWS::EKS::Cluster │ └ attributes │ └ KubernetesNetworkConfig.ServiceIpv6Cidr: (documentation changed) ├[~] service aws-elasticache │ └ resources │ ├[~] resource AWS::ElastiCache::CacheCluster │ │ └ properties │ │ └ PreferredMaintenanceWindow: (documentation changed) │ ├[~] resource AWS::ElastiCache::ParameterGroup │ │ └ attributes │ │ └[+] CacheParameterGroupName: string │ ├[~] resource AWS::ElastiCache::ReplicationGroup │ │ └ attributes │ │ ├ ReadEndPoint.Addresses.List: (documentation changed) │ │ └ ReadEndPoint.Ports.List: (documentation changed) │ ├[~] resource AWS::ElastiCache::ServerlessCache │ │ ├ properties │ │ │ ├ Endpoint: (documentation changed) │ │ │ └ ReaderEndpoint: (documentation changed) │ │ └ types │ │ └[~] type Endpoint │ │ └ - documentation: Represents the information required for client programs to connect to a cache node. │ │ + documentation: Represents the information required for client programs to connect to a cache node. This value is read-only. │ └[~] resource AWS::ElastiCache::User │ └ properties │ └ AuthenticationMode: (documentation changed) ├[~] service aws-elasticloadbalancingv2 │ └ resources │ ├[~] resource AWS::ElasticLoadBalancingV2::LoadBalancer │ │ └ attributes │ │ └ SecurityGroups: (documentation changed) │ ├[~] resource AWS::ElasticLoadBalancingV2::TargetGroup │ │ └ attributes │ │ └ LoadBalancerArns: (documentation changed) │ └[~] resource AWS::ElasticLoadBalancingV2::TrustStoreRevocation │ └ attributes │ └ TrustStoreRevocations: (documentation changed) ├[~] service aws-emr │ └ resources │ └[~] resource AWS::EMR::Cluster │ └ types │ └[~] type JobFlowInstancesConfig │ └ properties │ └[+] UnhealthyNodeReplacement: boolean ├[~] service aws-fis │ └ resources │ └[~] resource AWS::FIS::ExperimentTemplate │ └ types │ └[~] type ExperimentTemplateAction │ └ properties │ ├ Parameters: (documentation changed) │ └ Targets: (documentation changed) ├[~] service aws-frauddetector │ └ resources │ └[~] resource AWS::FraudDetector::Detector │ └ attributes │ ├ EventType.Arn: (documentation changed) │ ├ EventType.CreatedTime: (documentation changed) │ └ EventType.LastUpdatedTime: (documentation changed) ├[~] service aws-globalaccelerator │ └ resources │ └[~] resource AWS::GlobalAccelerator::Accelerator │ └ attributes │ ├ Ipv4Addresses: (documentation changed) │ └ Ipv6Addresses: (documentation changed) ├[~] service aws-glue │ └ resources │ ├[~] resource AWS::Glue::Classifier │ │ └ types │ │ └[~] type CsvClassifier │ │ └ properties │ │ ├ ContainsCustomDatatype: (documentation changed) │ │ └ CustomDatatypeConfigured: (documentation changed) │ ├[~] resource AWS::Glue::Crawler │ │ └ types │ │ ├[~] type IcebergTarget │ │ │ ├ - documentation: Specifies an Apache Iceberg data source where Iceberg tables are stored in Amazon S3. │ │ │ │ + documentation: Specifies Apache Iceberg data store targets. │ │ │ └ properties │ │ │ ├ Exclusions: (documentation changed) │ │ │ └ Paths: (documentation changed) │ │ └[~] type Targets │ │ └ properties │ │ └ IcebergTargets: (documentation changed) │ ├[~] resource AWS::Glue::CustomEntityType │ │ └ properties │ │ └ Tags: (documentation changed) │ ├[~] resource AWS::Glue::Database │ │ └ types │ │ └[~] type DatabaseIdentifier │ │ └ properties │ │ └ Region: (documentation changed) │ ├[~] resource AWS::Glue::DataCatalogEncryptionSettings │ │ └ types │ │ └[~] type EncryptionAtRest │ │ └ properties │ │ └[+] CatalogEncryptionServiceRole: string │ ├[~] resource AWS::Glue::Table │ │ ├ properties │ │ │ └ OpenTableFormatInput: (documentation changed) │ │ └ types │ │ ├[~] type IcebergInput │ │ │ ├ - documentation: A structure that defines an Apache Iceberg metadata table to create in the catalog. │ │ │ │ + documentation: Specifies an input structure that defines an Apache Iceberg metadata table. │ │ │ └ properties │ │ │ └ MetadataOperation: (documentation changed) │ │ ├[~] type OpenTableFormatInput │ │ │ └ - documentation: A structure representing an open format table. │ │ │ + documentation: Specifies an `OpenTableFormatInput` structure when creating an open format table. │ │ └[~] type TableIdentifier │ │ └ properties │ │ └ Region: (documentation changed) │ └[~] resource AWS::Glue::TableOptimizer │ ├ - documentation: Resource Type definition for AWS::Glue::TableOptimizer │ │ + documentation: A resource that describes the AWS Glue resource for enabling compaction to improve read performance for open table formats. │ ├ properties │ │ ├ CatalogId: (documentation changed) │ │ └ Type: (documentation changed) │ └ types │ └[~] type TableOptimizerConfiguration │ ├ - documentation: undefined │ │ + documentation: Specifies configuration details of a table optimizer. │ └ properties │ ├ Enabled: - boolean │ │ + boolean (required) │ │ (documentation changed) │ └ RoleArn: - string │ + string (required) │ (documentation changed) ├[~] service aws-groundstation │ └ resources │ └[~] resource AWS::GroundStation::MissionProfile │ └ properties │ ├ ContactPostPassDurationSeconds: (documentation changed) │ └ ContactPrePassDurationSeconds: (documentation changed) ├[~] service aws-guardduty │ └ resources │ ├[~] resource AWS::GuardDuty::Master │ │ └ properties │ │ └ MasterId: (documentation changed) │ └[~] resource AWS::GuardDuty::Member │ └ properties │ ├ DetectorId: - string (required, immutable) │ │ + string (immutable) │ └ MemberId: - string (required, immutable) │ + string (immutable) │ (documentation changed) ├[~] service aws-imagebuilder │ └ resources │ ├[~] resource AWS::ImageBuilder::Image │ │ ├ - documentation: An image build version. An image is a customized, secure, and up-to-date “golden” server image that is pre-installed and pre-configured with software and settings to meet specific IT standards. │ │ │ + documentation: Creates a new image. This request will create a new image along with all of the configured output resources defined in the distribution configuration. You must specify exactly one recipe for your image, using either a ContainerRecipeArn or an ImageRecipeArn. │ │ ├ properties │ │ │ ├ ContainerRecipeArn: (documentation changed) │ │ │ ├ DistributionConfigurationArn: (documentation changed) │ │ │ ├ EnhancedImageMetadataEnabled: (documentation changed) │ │ │ ├ ImageRecipeArn: (documentation changed) │ │ │ ├ ImageTestsConfiguration: (documentation changed) │ │ │ ├ InfrastructureConfigurationArn: (documentation changed) │ │ │ └ Workflows: (documentation changed) │ │ └ attributes │ │ └ ImageUri: (documentation changed) │ ├[~] resource AWS::ImageBuilder::LifecyclePolicy │ │ ├ - documentation: The configuration details for a lifecycle policy resource. │ │ │ + documentation: Create a lifecycle policy resource. │ │ ├ properties │ │ │ ├ ExecutionRole: (documentation changed) │ │ │ ├ Name: (documentation changed) │ │ │ ├ PolicyDetails: (documentation changed) │ │ │ ├ ResourceSelection: (documentation changed) │ │ │ ├ ResourceType: (documentation changed) │ │ │ └ Tags: (documentation changed) │ │ └ types │ │ ├[~] type Action │ │ │ ├ - documentation: The action of the policy detail. │ │ │ │ + documentation: Contains selection criteria for the lifecycle policy. │ │ │ └ properties │ │ │ ├ IncludeResources: (documentation changed) │ │ │ └ Type: (documentation changed) │ │ ├[~] type AmiExclusionRules │ │ │ ├ - documentation: The AMI exclusion rules for the policy detail. │ │ │ │ + documentation: Defines criteria for AMIs that are excluded from lifecycle actions. │ │ │ └ properties │ │ │ ├ IsPublic: (documentation changed) │ │ │ ├ LastLaunched: (documentation changed) │ │ │ ├ Regions: (documentation changed) │ │ │ ├ SharedAccounts: (documentation changed) │ │ │ └ TagMap: (documentation changed) │ │ ├[~] type ExclusionRules │ │ │ ├ - documentation: The exclusion rules to apply of the policy detail. │ │ │ │ + documentation: Specifies resources that lifecycle policy actions should not apply to. │ │ │ └ properties │ │ │ ├ Amis: (documentation changed) │ │ │ └ TagMap: (documentation changed) │ │ ├[~] type Filter │ │ │ ├ - documentation: A filter name and value pair that is used to return a more specific list of results from a list operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. │ │ │ │ + documentation: Defines filters that the lifecycle policy uses to determine impacted resource. │ │ │ └ properties │ │ │ ├ RetainAtLeast: (documentation changed) │ │ │ ├ Type: (documentation changed) │ │ │ ├ Unit: (documentation changed) │ │ │ └ Value: (documentation changed) │ │ ├[~] type IncludeResources │ │ │ ├ - documentation: The included resources of the policy detail. │ │ │ │ + documentation: Specifies how the lifecycle policy should apply actions to selected resources. │ │ │ └ properties │ │ │ ├ Amis: (documentation changed) │ │ │ ├ Containers: (documentation changed) │ │ │ └ Snapshots: (documentation changed) │ │ ├[~] type LastLaunched │ │ │ ├ - documentation: The last launched time of a resource. │ │ │ │ + documentation: Defines criteria to exclude AMIs from lifecycle actions based on the last time they were used to launch an instance. │ │ │ └ properties │ │ │ ├ Unit: (documentation changed) │ │ │ └ Value: (documentation changed) │ │ ├[~] type PolicyDetail │ │ │ ├ - documentation: The policy detail of the lifecycle policy. │ │ │ │ + documentation: The configuration details for a lifecycle policy resource. │ │ │ └ properties │ │ │ ├ Action: (documentation changed) │ │ │ ├ ExclusionRules: (documentation changed) │ │ │ └ Filter: (documentation changed) │ │ ├[~] type RecipeSelection │ │ │ ├ - documentation: The recipe to apply the lifecycle policy for. │ │ │ │ + documentation: Specifies an Image Builder recipe that the lifecycle policy uses for resource selection. │ │ │ └ properties │ │ │ ├ Name: (documentation changed) │ │ │ └ SemanticVersion: (documentation changed) │ │ └[~] type ResourceSelection │ │ ├ - documentation: The resource selection for the lifecycle policy. │ │ │ + documentation: Resource selection criteria for the lifecycle policy. │ │ └ properties │ │ ├ Recipes: (documentation changed) │ │ └ TagMap: (documentation changed) │ └[~] resource AWS::ImageBuilder::Workflow │ └ properties │ ├ Data: (documentation changed) │ ├ Description: (documentation changed) │ ├ KmsKeyId: (documentation changed) │ ├ Name: (documentation changed) │ ├ Tags: (documentation changed) │ ├ Type: (documentation changed) │ ├ Uri: (documentation changed) │ └ Version: (documentation changed) ├[~] service aws-internetmonitor │ └ resources │ └[~] resource AWS::InternetMonitor::Monitor │ └ types │ ├[~] type InternetMeasurementsLogDelivery │ │ └ properties │ │ └ S3Config: (documentation changed) │ └[~] type S3Config │ ├ - documentation: The configuration for publishing Amazon CloudWatch Internet Monitor internet measurements to Amazon S3. The configuration includes the bucket name and (optionally) prefix for the S3 bucket to store the measurements, and the delivery status. The delivery status is `ENABLED` or `DISABLED` , depending on whether you choose to deliver internet measurements to S3 logs. │ │ + documentation: The configuration for publishing Amazon CloudWatch Internet Monitor internet measurements to Amazon S3. The configuration includes the bucket name and (optionally) bucket prefix for the S3 bucket to store the measurements, and the delivery status. The delivery status is `ENABLED` if you choose to deliver internet measurements to S3 logs, and `DISABLED` otherwise. │ │ The measurements are also published to Amazon CloudWatch Logs. │ └ properties │ ├ BucketName: (documentation changed) │ ├ BucketPrefix: (documentation changed) │ └ LogDeliveryStatus: (documentation changed) ├[~] service aws-iot │ └ resources │ └[~] resource AWS::IoT::DomainConfiguration │ ├ properties │ │ └ ServerCertificateConfig: (documentation changed) │ ├ attributes │ │ └ ServerCertificates: (documentation changed) │ └ types │ └[~] type ServerCertificateConfig │ ├ - documentation: undefined │ │ + documentation: The server certificate configuration. │ │ For more information, see [Configurable endpoints](https://docs.aws.amazon.com//iot/latest/developerguide/iot-custom-endpoints-configurable.html) from the AWS IoT Core Developer Guide. │ └ properties │ └ EnableOCSPCheck: (documentation changed) ├[~] service aws-iotevents │ └ resources │ ├[~] resource AWS::IoTEvents::AlarmModel │ │ └ types │ │ └[~] type Firehose │ │ └ properties │ │ └ Payload: (documentation changed) │ └[~] resource AWS::IoTEvents::DetectorModel │ └ types │ └[~] type Firehose │ └ properties │ └ Payload: (documentation changed) ├[~] service aws-iotfleetwise │ └ resources │ └[~] resource AWS::IoTFleetWise::SignalCatalog │ └ attributes │ ├ NodeCounts.TotalActuators: (documentation changed) │ ├ NodeCounts.TotalAttributes: (documentation changed) │ ├ NodeCounts.TotalBranches: (documentation changed) │ ├ NodeCounts.TotalNodes: (documentation changed) │ └ NodeCounts.TotalSensors: (documentation changed) ├[~] service aws-iottwinmaker │ └ resources │ ├[~] resource AWS::IoTTwinMaker::ComponentType │ │ └ attributes │ │ └ Status: (documentation changed) │ ├[~] resource AWS::IoTTwinMaker::Entity │ │ └ attributes │ │ └ Status: (documentation changed) │ └[~] resource AWS::IoTTwinMaker::Scene │ └ attributes │ └ GeneratedSceneMetadata: (documentation changed) ├[~] service aws-iotwireless │ └ resources │ ├[~] resource AWS::IoTWireless::FuotaTask │ │ └ attributes │ │ └ LoRaWAN.StartTime: (documentation changed) │ ├[~] resource AWS::IoTWireless::MulticastGroup │ │ └ attributes │ │ ├ LoRaWAN.NumberOfDevicesInGroup: (documentation changed) │ │ └ LoRaWAN.NumberOfDevicesRequested: (documentation changed) │ └[~] resource AWS::IoTWireless::ServiceProfile │ └ attributes │ ├ LoRaWAN.ChannelMask: (documentation changed) │ ├ LoRaWAN.DevStatusReqFreq: (documentation changed) │ ├ LoRaWAN.DlBucketSize: (documentation changed) │ ├ LoRaWAN.DlRate: (documentation changed) │ ├ LoRaWAN.DlRatePolicy: (documentation changed) │ ├ LoRaWAN.DrMax: (documentation changed) │ ├ LoRaWAN.DrMin: (documentation changed) │ ├ LoRaWAN.HrAllowed: (documentation changed) │ ├ LoRaWAN.MinGwDiversity: (documentation changed) │ ├ LoRaWAN.NwkGeoLoc: (documentation changed) │ ├ LoRaWAN.ReportDevStatusBattery: (documentation changed) │ ├ LoRaWAN.ReportDevStatusMargin: (documentation changed) │ ├ LoRaWAN.TargetPer: (documentation changed) │ ├ LoRaWAN.UlBucketSize: (documentation changed) │ ├ LoRaWAN.UlRate: (documentation changed) │ └ LoRaWAN.UlRatePolicy: (documentation changed) ├[~] service aws-kendra │ └ resources │ └[~] resource AWS::Kendra::DataSource │ └ types │ ├[~] type DataSourceConfiguration │ │ └ properties │ │ └ S3Configuration: (documentation changed) │ └[~] type S3DataSourceConfiguration │ ├ - documentation: Provides the configuration information to connect to an Amazon S3 bucket. │ │ > `S3DataSourceConfiguration` is deprecated. Amazon VPC is not supported if you configure your Amazon S3 connector with this method. Use [TemplateConfiguration](https://docs.aws.amazon.com/kendra/latest/APIReference/API_TemplateConfiguration.html) to configure your Amazon S3 connector instead. See [Amazon S3 template schema](https://docs.aws.amazon.com/kendra/latest/dg/ds-schemas.html#ds-s3-schema) for more details. │ │ + documentation: Provides the configuration information to connect to an Amazon S3 bucket. │ │ > Amazon Kendra now supports an upgraded Amazon S3 connector. │ │ > │ │ > You must now use the [TemplateConfiguration](https://docs.aws.amazon.com/kendra/latest/APIReference/API_TemplateConfiguration.html) object instead of the `S3DataSourceConfiguration` object to configure your connector. │ │ > │ │ > Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector. │ │ > │ │ > We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024. │ └ properties │ ├ ExclusionPatterns: (documentation changed) │ └ InclusionPatterns: (documentation changed) ├[~] service aws-kinesisfirehose │ └ resources │ └[~] resource AWS::KinesisFirehose::DeliveryStream │ ├ properties │ │ └ SnowflakeDestinationConfiguration: (documentation changed) │ └ types │ ├[~] type AmazonOpenSearchServerlessDestinationConfiguration │ │ └ properties │ │ ├ RetryOptions: (documentation changed) │ │ ├ RoleARN: (documentation changed) │ │ └ S3BackupMode: (documentation changed) │ ├[~] type AmazonOpenSearchServerlessRetryOptions │ │ ├ - documentation: Configures retry behavior in case Kinesis Data Firehose is unable to deliver documents to the Serverless offering for Amazon OpenSearch Service. │ │ │ + documentation: Configures retry behavior in case Firehose is unable to deliver documents to the Serverless offering for Amazon OpenSearch Service. │ │ └ properties │ │ └ DurationInSeconds: (documentation changed) │ ├[~] type AmazonopensearchserviceDestinationConfiguration │ │ └ properties │ │ └ DocumentIdOptions: (documentation changed) │ ├[~] type DataFormatConversionConfiguration │ │ └ properties │ │ ├ InputFormatConfiguration: (documentation changed) │ │ └ OutputFormatConfiguration: (documentation changed) │ ├[~] type DeliveryStreamEncryptionConfigurationInput │ │ └ properties │ │ └ KeyARN: (documentation changed) │ ├[~] type Deserializer │ │ └ properties │ │ ├ HiveJsonSerDe: (documentation changed) │ │ └ OpenXJsonSerDe: (documentation changed) │ ├[~] type DocumentIdOptions │ │ ├ - documentation: Indicates the method for setting up document ID. The supported methods are Kinesis Data Firehose generated document ID and OpenSearch Service generated document ID. │ │ │ + documentation: Indicates the method for setting up document ID. The supported methods are Firehose generated document ID and OpenSearch Service generated document ID. │ │ └ properties │ │ └ DefaultDocumentIdFormat: (documentation changed) │ ├[~] type ElasticsearchDestinationConfiguration │ │ └ properties │ │ └ DocumentIdOptions: (documentation changed) │ ├[~] type HiveJsonSerDe │ │ ├ - documentation: The native Hive / HCatalog JsonSerDe. Used by Kinesis Data Firehose for deserializing data, which means converting it from the JSON format in preparation for serializing it to the Parquet or ORC format. This is one of two deserializers you can choose, depending on which one offers the functionality you need. The other option is the OpenX SerDe. │ │ │ + documentation: The native Hive / HCatalog JsonSerDe. Used by Firehose for deserializing data, which means converting it from the JSON format in preparation for serializing it to the Parquet or ORC format. This is one of two deserializers you can choose, depending on which one offers the functionality you need. The other option is the OpenX SerDe. │ │ └ properties │ │ └ TimestampFormats: (documentation changed) │ ├[~] type OpenXJsonSerDe │ │ ├ - documentation: The OpenX SerDe. Used by Kinesis Data Firehose for deserializing data, which means converting it from the JSON format in preparation for serializing it to the Parquet or ORC format. This is one of two deserializers you can choose, depending on which one offers the functionality you need. The other option is the native Hive / HCatalog JsonSerDe. │ │ │ + documentation: The OpenX SerDe. Used by Firehose for deserializing data, which means converting it from the JSON format in preparation for serializing it to the Parquet or ORC format. This is one of two deserializers you can choose, depending on which one offers the functionality you need. The other option is the native Hive / HCatalog JsonSerDe. │ │ └ properties │ │ ├ CaseInsensitive: (documentation changed) │ │ └ ConvertDotsInJsonKeysToUnderscores: (documentation changed) │ ├[~] type OrcSerDe │ │ └ properties │ │ ├ BlockSizeBytes: (documentation changed) │ │ └ BloomFilterColumns: (documentation changed) │ ├[~] type OutputFormatConfiguration │ │ └ - documentation: Specifies the serializer that you want Kinesis Data Firehose to use to convert the format of your data before it writes it to Amazon S3. This parameter is required if `Enabled` is set to true. │ │ + documentation: Specifies the serializer that you want Firehose to use to convert the format of your data before it writes it to Amazon S3. This parameter is required if `Enabled` is set to true. │ ├[~] type ParquetSerDe │ │ └ properties │ │ └ BlockSizeBytes: (documentation changed) │ ├[~] type RedshiftDestinationConfiguration │ │ └ properties │ │ └ RetryOptions: (documentation changed) │ ├[~] type RedshiftRetryOptions │ │ ├ - documentation: Configures retry behavior in case Kinesis Data Firehose is unable to deliver documents to Amazon Redshift. │ │ │ + documentation: Configures retry behavior in case Firehose is unable to deliver documents to Amazon Redshift. │ │ └ properties │ │ └ DurationInSeconds: (documentation changed) │ ├[~] type SchemaConfiguration │ │ ├ - documentation: Specifies the schema to which you want Kinesis Data Firehose to configure your data before it writes it to Amazon S3. This parameter is required if `Enabled` is set to true. │ │ │ + documentation: Specifies the schema to which you want Firehose to configure your data before it writes it to Amazon S3. This parameter is required if `Enabled` is set to true. │ │ └ properties │ │ ├ RoleARN: (documentation changed) │ │ └ VersionId: (documentation changed) │ ├[~] type Serializer │ │ └ - documentation: The serializer that you want Kinesis Data Firehose to use to convert data to the target format before writing it to Amazon S3. Kinesis Data Firehose supports two types of serializers: the [ORC SerDe](https://docs.aws.amazon.com/https://hive.apache.org/javadocs/r1.2.2/api/org/apache/hadoop/hive/ql/io/orc/OrcSerde.html) and the [Parquet SerDe](https://docs.aws.amazon.com/https://hive.apache.org/javadocs/r1.2.2/api/org/apache/hadoop/hive/ql/io/parquet/serde/ParquetHiveSerDe.html) . │ │ + documentation: The serializer that you want Firehose to use to convert data to the target format before writing it to Amazon S3. Firehose supports two types of serializers: the [ORC SerDe](https://docs.aws.amazon.com/https://hive.apache.org/javadocs/r1.2.2/api/org/apache/hadoop/hive/ql/io/orc/OrcSerde.html) and the [Parquet SerDe](https://docs.aws.amazon.com/https://hive.apache.org/javadocs/r1.2.2/api/org/apache/hadoop/hive/ql/io/parquet/serde/ParquetHiveSerDe.html) . │ ├[~] type SnowflakeDestinationConfiguration │ │ ├ - documentation: undefined │ │ │ + documentation: Configure Snowflake destination │ │ └ properties │ │ ├ AccountUrl: (documentation changed) │ │ ├ ContentColumnName: (documentation changed) │ │ ├ Database: (documentation changed) │ │ ├ DataLoadingOption: (documentation changed) │ │ ├ KeyPassphrase: (documentation changed) │ │ ├ MetaDataColumnName: (documentation changed) │ │ ├ PrivateKey: (documentation changed) │ │ ├ RetryOptions: (documentation changed) │ │ ├ RoleARN: (documentation changed) │ │ ├ S3BackupMode: (documentation changed) │ │ ├ Schema: (documentation changed) │ │ ├ SnowflakeRoleConfiguration: (documentation changed) │ │ ├ SnowflakeVpcConfiguration: (documentation changed) │ │ ├ Table: (documentation changed) │ │ └ User: (documentation changed) │ ├[~] type SnowflakeRetryOptions │ │ ├ - documentation: undefined │ │ │ + documentation: Specify how long Firehose retries sending data to the New Relic HTTP endpoint. After sending data, Firehose first waits for an acknowledgment from the HTTP endpoint. If an error occurs or the acknowledgment doesn’t arrive within the acknowledgment timeout period, Firehose starts the retry duration counter. It keeps retrying until the retry duration expires. After that, Firehose considers it a data delivery failure and backs up the data to your Amazon S3 bucket. Every time that Firehose sends data to the HTTP endpoint (either the initial attempt or a retry), it restarts the acknowledgement timeout counter and waits for an acknowledgement from the HTTP endpoint. Even if the retry duration expires, Firehose still waits for the acknowledgment until it receives it or the acknowledgement timeout period is reached. If the acknowledgment times out, Firehose determines whether there's time left in the retry counter. If there is time left, it retries again and repeats the logic until it receives an acknowledgment or determines that the retry time has expired. If you don't want Firehose to retry sending data, set this value to 0. │ │ └ properties │ │ └ DurationInSeconds: (documentation changed) │ ├[~] type SnowflakeRoleConfiguration │ │ ├ - documentation: undefined │ │ │ + documentation: Optionally configure a Snowflake role. Otherwise the default user role will be used. │ │ └ properties │ │ ├ Enabled: (documentation changed) │ │ └ SnowflakeRole: (documentation changed) │ ├[~] type SnowflakeVpcConfiguration │ │ ├ - documentation: undefined │ │ │ + documentation: Configure a Snowflake VPC │ │ └ properties │ │ └ PrivateLinkVpceId: (documentation changed) │ ├[~] type SplunkDestinationConfiguration │ │ └ properties │ │ ├ HECAcknowledgmentTimeoutInSeconds: (documentation changed) │ │ ├ HECEndpoint: (documentation changed) │ │ ├ RetryOptions: (documentation changed) │ │ └ S3BackupMode: (documentation changed) │ └[~] type SplunkRetryOptions │ └ properties │ └ DurationInSeconds: (documentation changed) ├[~] service aws-lambda │ └ resources │ └[~] resource AWS::Lambda::Permission │ └ attributes │ └ Id: (documentation changed) ├[~] service aws-lightsail │ └ resources │ ├[~] resource AWS::Lightsail::Container │ │ ├ properties │ │ │ └ PrivateRegistryAccess: (documentation changed) │ │ ├ attributes │ │ │ └ PrivateRegistryAccess.EcrImagePullerRole.PrincipalArn: (documentation changed) │ │ └ types │ │ └[~] type PrivateRegistryAccess │ │ └ - documentation: Describes the configuration for an Amazon Lightsail container service to access private container image repositories, such as Amazon Elastic Container Registry ( Amazon ECR ) private repo --- .../@aws-cdk/cloudformation-diff/package.json | 4 +-- packages/@aws-cdk/integ-runner/package.json | 2 +- packages/aws-cdk-lib/package.json | 2 +- tools/@aws-cdk/spec2cdk/package.json | 6 ++-- yarn.lock | 35 +++++++++++-------- 5 files changed, 28 insertions(+), 21 deletions(-) diff --git a/packages/@aws-cdk/cloudformation-diff/package.json b/packages/@aws-cdk/cloudformation-diff/package.json index ec19247dbb116..15ce01ef7fec4 100644 --- a/packages/@aws-cdk/cloudformation-diff/package.json +++ b/packages/@aws-cdk/cloudformation-diff/package.json @@ -23,8 +23,8 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-cdk/aws-service-spec": "^0.0.47", - "@aws-cdk/service-spec-types": "^0.0.47", + "@aws-cdk/aws-service-spec": "^0.0.50", + "@aws-cdk/service-spec-types": "^0.0.50", "chalk": "^4", "diff": "^5.2.0", "fast-deep-equal": "^3.1.3", diff --git a/packages/@aws-cdk/integ-runner/package.json b/packages/@aws-cdk/integ-runner/package.json index 54bab833550c6..092ccdf4456a1 100644 --- a/packages/@aws-cdk/integ-runner/package.json +++ b/packages/@aws-cdk/integ-runner/package.json @@ -74,7 +74,7 @@ "@aws-cdk/cloud-assembly-schema": "0.0.0", "@aws-cdk/cloudformation-diff": "0.0.0", "@aws-cdk/cx-api": "0.0.0", - "@aws-cdk/aws-service-spec": "^0.0.47", + "@aws-cdk/aws-service-spec": "^0.0.50", "cdk-assets": "0.0.0", "@aws-cdk/cdk-cli-wrapper": "0.0.0", "aws-cdk": "0.0.0", diff --git a/packages/aws-cdk-lib/package.json b/packages/aws-cdk-lib/package.json index cd7f05f1b0495..379e9c5f0aed8 100644 --- a/packages/aws-cdk-lib/package.json +++ b/packages/aws-cdk-lib/package.json @@ -133,7 +133,7 @@ "yaml": "1.10.2" }, "devDependencies": { - "@aws-cdk/aws-service-spec": "^0.0.47", + "@aws-cdk/aws-service-spec": "^0.0.50", "@aws-cdk/cdk-build-tools": "0.0.0", "@aws-cdk/custom-resource-handlers": "0.0.0", "@aws-cdk/pkglint": "0.0.0", diff --git a/tools/@aws-cdk/spec2cdk/package.json b/tools/@aws-cdk/spec2cdk/package.json index 6ec22dde70d8f..02aa72adc04fb 100644 --- a/tools/@aws-cdk/spec2cdk/package.json +++ b/tools/@aws-cdk/spec2cdk/package.json @@ -32,9 +32,9 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-cdk/aws-service-spec": "^0.0.47", - "@aws-cdk/service-spec-importers": "^0.0.20", - "@aws-cdk/service-spec-types": "^0.0.47", + "@aws-cdk/aws-service-spec": "^0.0.50", + "@aws-cdk/service-spec-importers": "^0.0.22", + "@aws-cdk/service-spec-types": "^0.0.50", "@cdklabs/tskb": "^0.0.3", "@cdklabs/typewriter": "^0.0.3", "camelcase": "^6", diff --git a/yarn.lock b/yarn.lock index e59abdf8dd30a..de8faeee177ad 100644 --- a/yarn.lock +++ b/yarn.lock @@ -56,12 +56,12 @@ resolved "https://registry.npmjs.org/@aws-cdk/asset-node-proxy-agent-v6/-/asset-node-proxy-agent-v6-2.0.1.tgz#6dc9b7cdb22ff622a7176141197962360c33e9ac" integrity sha512-DDt4SLdLOwWCjGtltH4VCST7hpOI5DzieuhGZsBpZ+AgJdSI2GCjklCXm0GCTwJG/SolkL5dtQXyUKgg9luBDg== -"@aws-cdk/aws-service-spec@^0.0.47": - version "0.0.47" - resolved "https://registry.npmjs.org/@aws-cdk/aws-service-spec/-/aws-service-spec-0.0.47.tgz#170aa62cd472bc9549c4db355823ba0ad7ea4045" - integrity sha512-Z1J3k9u/kMl0m2p7tLJag+a/8+rJt4qY9CYwmTrl6kSpBFKGYQJ3ZsLxojWbQyUXA9ZvA4p1GY9AXH21MkAfIw== +"@aws-cdk/aws-service-spec@^0.0.50": + version "0.0.50" + resolved "https://registry.npmjs.org/@aws-cdk/aws-service-spec/-/aws-service-spec-0.0.50.tgz#9d2e1218be8982f3cc79ffcd2c268749e6d6d1db" + integrity sha512-uVKv4sJMARQxnHfpiwn+hXq4a2+///vsURP4TdfEF/unrKl8i7s4s5d165au//aNZNOJ4UMTWLohb5UnwDMhzw== dependencies: - "@aws-cdk/service-spec-types" "^0.0.47" + "@aws-cdk/service-spec-types" "^0.0.50" "@cdklabs/tskb" "^0.0.3" "@aws-cdk/lambda-layer-kubectl-v24@^2.0.242": @@ -69,12 +69,12 @@ resolved "https://registry.npmjs.org/@aws-cdk/lambda-layer-kubectl-v24/-/lambda-layer-kubectl-v24-2.0.242.tgz#4273a5ad7714f933a7eba155eb9280823086db71" integrity sha512-7/wIOo685tmrEe4hh6zqDELhBZh5OQGf3Hd2FU2Vnwy2ZubW8qTmEw5gqJCsCrGKeYDoa1BcVhDRZ/nzjkaqyA== -"@aws-cdk/service-spec-importers@^0.0.20": - version "0.0.20" - resolved "https://registry.npmjs.org/@aws-cdk/service-spec-importers/-/service-spec-importers-0.0.20.tgz#62107342ee1adbeddf080cf84ea072e946657515" - integrity sha512-c+dhPNapnqJFuCva9L4VKW7nd3nNYZtDF60sJP4xEso6omAeCSIDVthUGcKD1xOBfWCxx35uIjm2aGa+2tlaPg== +"@aws-cdk/service-spec-importers@^0.0.22": + version "0.0.22" + resolved "https://registry.npmjs.org/@aws-cdk/service-spec-importers/-/service-spec-importers-0.0.22.tgz#05a3f200e2bcfd59d81fbbd6643930705547419b" + integrity sha512-GWAglOy/9kVNPJtKuDt6RX+uMgszaKBPrRwHKuvUDlYvGBcB7XT1e0e7sPtSArFCALHQuu1fapNpunC5pjEytw== dependencies: - "@aws-cdk/service-spec-types" "^0.0.47" + "@aws-cdk/service-spec-types" "^0.0.49" "@cdklabs/tskb" "^0.0.3" ajv "^6" canonicalize "^2.0.0" @@ -85,10 +85,17 @@ glob "^8" sort-json "^2.0.1" -"@aws-cdk/service-spec-types@^0.0.47": - version "0.0.47" - resolved "https://registry.npmjs.org/@aws-cdk/service-spec-types/-/service-spec-types-0.0.47.tgz#42d2dcaa920b711d5f091e275756e9738d33bed4" - integrity sha512-Qzv/RWabErhyv255ktR6VBabJyx/aqpVVmqAxiCZROgqpZtNNsFmSgdUVkBRFsc71gwR9UTBUUSf/ux+iQ3VoQ== +"@aws-cdk/service-spec-types@^0.0.49": + version "0.0.49" + resolved "https://registry.npmjs.org/@aws-cdk/service-spec-types/-/service-spec-types-0.0.49.tgz#1adc059466cd4107b6fd2d424c663bf6964ee1ac" + integrity sha512-j8UZXdWjplG+HcmpejNlJcEHJzkoVdj4hhxa8cTW+PNqqw8j0nAniZbS58qI+dcg7zFB1NA0M76gX2ns7ExgTQ== + dependencies: + "@cdklabs/tskb" "^0.0.3" + +"@aws-cdk/service-spec-types@^0.0.50": + version "0.0.50" + resolved "https://registry.npmjs.org/@aws-cdk/service-spec-types/-/service-spec-types-0.0.50.tgz#5fd946acc1212bfa51021813fb71d8087c44554a" + integrity sha512-J6XoyihczUWoQvxjKf0EqmdeZ8Djs1LCse49rXyQ8IFUXZIUNNrZ1A1x0tAeU3iZn08yC3KAh+YSPRMScfZ5Lw== dependencies: "@cdklabs/tskb" "^0.0.3" From 66b3046b09d62132a84dfa3fae60b3db21719ef6 Mon Sep 17 00:00:00 2001 From: AWS CDK Team Date: Wed, 21 Feb 2024 13:18:28 +0000 Subject: [PATCH 20/22] chore(release): 2.129.0 --- CHANGELOG.v2.alpha.md | 7 +++++++ CHANGELOG.v2.md | 16 ++++++++++++++++ version.v2.json | 4 ++-- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.v2.alpha.md b/CHANGELOG.v2.alpha.md index 90ebdaaca2176..c72c70ed2945e 100644 --- a/CHANGELOG.v2.alpha.md +++ b/CHANGELOG.v2.alpha.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [2.129.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.128.0-alpha.0...v2.129.0-alpha.0) (2024-02-21) + + +### Bug Fixes + +* **appconfig:** scope generated alarm role policy to '*' for composite alarm support ([#29171](https://github.com/aws/aws-cdk/issues/29171)) ([c17879d](https://github.com/aws/aws-cdk/commit/c17879dd8dab526695e69c6faf8345292634ba24)) + ## [2.128.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.127.0-alpha.0...v2.128.0-alpha.0) (2024-02-14) diff --git a/CHANGELOG.v2.md b/CHANGELOG.v2.md index 365cffa9569fc..e4c88aeb52676 100644 --- a/CHANGELOG.v2.md +++ b/CHANGELOG.v2.md @@ -2,6 +2,22 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [2.129.0](https://github.com/aws/aws-cdk/compare/v2.128.0...v2.129.0) (2024-02-21) + + +### Features + +* update L1 CloudFormation resource definitions ([#29191](https://github.com/aws/aws-cdk/issues/29191)) ([c579e3c](https://github.com/aws/aws-cdk/commit/c579e3cdfa425fe4e58fc20a653d32d32f943ca9)), closes [/docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2](https://github.com/aws//docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html/issues/ec2) [/docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2](https://github.com/aws//docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html/issues/ec2) [/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#aws-resource-ec2](https://github.com/aws//docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html/issues/aws-resource-ec2) [/docs.aws.amazon.com/kendra/latest/dg/ds-schemas.html#ds-s3](https://github.com/aws//docs.aws.amazon.com/kendra/latest/dg/ds-schemas.html/issues/ds-s3) +* **applicationautoscaling:** timezone for ScheduledAction ([#29116](https://github.com/aws/aws-cdk/issues/29116)) ([8694125](https://github.com/aws/aws-cdk/commit/869412535f564d5b36cf7cc5356aa38a381d02f1)), closes [#22645](https://github.com/aws/aws-cdk/issues/22645) [#27754](https://github.com/aws/aws-cdk/issues/27754) [#27052](https://github.com/aws/aws-cdk/issues/27052) [#21181](https://github.com/aws/aws-cdk/issues/21181) [/github.com/aws/aws-cdk/blob/256cca4017a80f8643c5f5a5999a2ce0383eebf0/packages/aws-cdk-lib/aws-autoscaling/lib/scheduled-action.ts#L21](https://github.com/aws//github.com/aws/aws-cdk/blob/256cca4017a80f8643c5f5a5999a2ce0383eebf0/packages/aws-cdk-lib/aws-autoscaling/lib/scheduled-action.ts/issues/L21) [#27105](https://github.com/aws/aws-cdk/issues/27105) +* **cloudfront-origin:** adding FunctionUrlOrigin ([#29101](https://github.com/aws/aws-cdk/issues/29101)) ([2b0ed53](https://github.com/aws/aws-cdk/commit/2b0ed53bfe85a59e9334883a667c88fb9e3f5bc0)) +* **ecs:** credentialSpecs in ContainerDefinitionOptions ([#29085](https://github.com/aws/aws-cdk/issues/29085)) ([e92dbec](https://github.com/aws/aws-cdk/commit/e92dbec0e5fb51bad6037d01d6131c9ab4ce3f55)) +* **events-targets:** `launchType` property for ECS task ([#29069](https://github.com/aws/aws-cdk/issues/29069)) ([b4daf84](https://github.com/aws/aws-cdk/commit/b4daf84cf8a90ef38e3a2328df6271bdaf19de01)), closes [#28990](https://github.com/aws/aws-cdk/issues/28990) +* **lambda:** Add `Ipv6AllowedforDualStack` support for Lambda function ([#28928](https://github.com/aws/aws-cdk/issues/28928)) ([90caad9](https://github.com/aws/aws-cdk/commit/90caad953147c2c15022898f40b49a8d44997f6e)) +* **lambda:** adding .net 8 (dotnet8) lambda runtime support ([#29178](https://github.com/aws/aws-cdk/issues/29178)) ([74335f6](https://github.com/aws/aws-cdk/commit/74335f63b7be81ede07e1ae2e24e7f59ed44beef)) +* **rds:** support Aurora MySQL 3.05.2 ([#29166](https://github.com/aws/aws-cdk/issues/29166)) ([da0b82c](https://github.com/aws/aws-cdk/commit/da0b82c21e1ddd3c301db8f98e39767e07ff32fc)) +* **sns:** enforce ssl with topic policy ([#29144](https://github.com/aws/aws-cdk/issues/29144)) ([a75f447](https://github.com/aws/aws-cdk/commit/a75f447d6dc9ad8b1b00a7faebdd8aadc3d25e28)), closes [#29142](https://github.com/aws/aws-cdk/issues/29142) +* **synthetics:** latest canary runtimes for NodeJS, Python ([#29132](https://github.com/aws/aws-cdk/issues/29132)) ([3c122a4](https://github.com/aws/aws-cdk/commit/3c122a435c9d8ee3012859c05a5acf4864e9030a)), closes [#29135](https://github.com/aws/aws-cdk/issues/29135) + ## [2.128.0](https://github.com/aws/aws-cdk/compare/v2.127.0...v2.128.0) (2024-02-14) diff --git a/version.v2.json b/version.v2.json index 32e1df69cccd2..053f9770f5a0b 100644 --- a/version.v2.json +++ b/version.v2.json @@ -1,4 +1,4 @@ { - "version": "2.128.0", - "alphaVersion": "2.128.0-alpha.0" + "version": "2.129.0", + "alphaVersion": "2.129.0-alpha.0" } \ No newline at end of file From 7378a63868658985579b68abfe944927a0ebeda8 Mon Sep 17 00:00:00 2001 From: Momo Kornher Date: Wed, 21 Feb 2024 14:20:53 +0100 Subject: [PATCH 21/22] chore: fixup changelog for 2.129.0 --- CHANGELOG.v2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.v2.md b/CHANGELOG.v2.md index e4c88aeb52676..7efd2b53e9758 100644 --- a/CHANGELOG.v2.md +++ b/CHANGELOG.v2.md @@ -7,7 +7,7 @@ All notable changes to this project will be documented in this file. See [standa ### Features -* update L1 CloudFormation resource definitions ([#29191](https://github.com/aws/aws-cdk/issues/29191)) ([c579e3c](https://github.com/aws/aws-cdk/commit/c579e3cdfa425fe4e58fc20a653d32d32f943ca9)), closes [/docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2](https://github.com/aws//docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html/issues/ec2) [/docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2](https://github.com/aws//docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html/issues/ec2) [/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#aws-resource-ec2](https://github.com/aws//docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html/issues/aws-resource-ec2) [/docs.aws.amazon.com/kendra/latest/dg/ds-schemas.html#ds-s3](https://github.com/aws//docs.aws.amazon.com/kendra/latest/dg/ds-schemas.html/issues/ds-s3) +* update L1 CloudFormation resource definitions ([#29191](https://github.com/aws/aws-cdk/issues/29191)) ([c579e3c](https://github.com/aws/aws-cdk/commit/c579e3cdfa425fe4e58fc20a653d32d32f943ca9)) * **applicationautoscaling:** timezone for ScheduledAction ([#29116](https://github.com/aws/aws-cdk/issues/29116)) ([8694125](https://github.com/aws/aws-cdk/commit/869412535f564d5b36cf7cc5356aa38a381d02f1)), closes [#22645](https://github.com/aws/aws-cdk/issues/22645) [#27754](https://github.com/aws/aws-cdk/issues/27754) [#27052](https://github.com/aws/aws-cdk/issues/27052) [#21181](https://github.com/aws/aws-cdk/issues/21181) [/github.com/aws/aws-cdk/blob/256cca4017a80f8643c5f5a5999a2ce0383eebf0/packages/aws-cdk-lib/aws-autoscaling/lib/scheduled-action.ts#L21](https://github.com/aws//github.com/aws/aws-cdk/blob/256cca4017a80f8643c5f5a5999a2ce0383eebf0/packages/aws-cdk-lib/aws-autoscaling/lib/scheduled-action.ts/issues/L21) [#27105](https://github.com/aws/aws-cdk/issues/27105) * **cloudfront-origin:** adding FunctionUrlOrigin ([#29101](https://github.com/aws/aws-cdk/issues/29101)) ([2b0ed53](https://github.com/aws/aws-cdk/commit/2b0ed53bfe85a59e9334883a667c88fb9e3f5bc0)) * **ecs:** credentialSpecs in ContainerDefinitionOptions ([#29085](https://github.com/aws/aws-cdk/issues/29085)) ([e92dbec](https://github.com/aws/aws-cdk/commit/e92dbec0e5fb51bad6037d01d6131c9ab4ce3f55)) From d81ed03e783c5616f0d19e0eadac869ec932f101 Mon Sep 17 00:00:00 2001 From: Momo Kornher Date: Wed, 21 Feb 2024 14:23:56 +0100 Subject: [PATCH 22/22] chore: fixup changelog for 2.129.0 pt2 --- CHANGELOG.v2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.v2.md b/CHANGELOG.v2.md index 7efd2b53e9758..9e9d37195cb22 100644 --- a/CHANGELOG.v2.md +++ b/CHANGELOG.v2.md @@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file. See [standa ### Features * update L1 CloudFormation resource definitions ([#29191](https://github.com/aws/aws-cdk/issues/29191)) ([c579e3c](https://github.com/aws/aws-cdk/commit/c579e3cdfa425fe4e58fc20a653d32d32f943ca9)) -* **applicationautoscaling:** timezone for ScheduledAction ([#29116](https://github.com/aws/aws-cdk/issues/29116)) ([8694125](https://github.com/aws/aws-cdk/commit/869412535f564d5b36cf7cc5356aa38a381d02f1)), closes [#22645](https://github.com/aws/aws-cdk/issues/22645) [#27754](https://github.com/aws/aws-cdk/issues/27754) [#27052](https://github.com/aws/aws-cdk/issues/27052) [#21181](https://github.com/aws/aws-cdk/issues/21181) [/github.com/aws/aws-cdk/blob/256cca4017a80f8643c5f5a5999a2ce0383eebf0/packages/aws-cdk-lib/aws-autoscaling/lib/scheduled-action.ts#L21](https://github.com/aws//github.com/aws/aws-cdk/blob/256cca4017a80f8643c5f5a5999a2ce0383eebf0/packages/aws-cdk-lib/aws-autoscaling/lib/scheduled-action.ts/issues/L21) [#27105](https://github.com/aws/aws-cdk/issues/27105) +* **applicationautoscaling:** timezone for ScheduledAction ([#29116](https://github.com/aws/aws-cdk/issues/29116)) ([8694125](https://github.com/aws/aws-cdk/commit/869412535f564d5b36cf7cc5356aa38a381d02f1)), closes [#22645](https://github.com/aws/aws-cdk/issues/22645) [#27754](https://github.com/aws/aws-cdk/issues/27754) * **cloudfront-origin:** adding FunctionUrlOrigin ([#29101](https://github.com/aws/aws-cdk/issues/29101)) ([2b0ed53](https://github.com/aws/aws-cdk/commit/2b0ed53bfe85a59e9334883a667c88fb9e3f5bc0)) * **ecs:** credentialSpecs in ContainerDefinitionOptions ([#29085](https://github.com/aws/aws-cdk/issues/29085)) ([e92dbec](https://github.com/aws/aws-cdk/commit/e92dbec0e5fb51bad6037d01d6131c9ab4ce3f55)) * **events-targets:** `launchType` property for ECS task ([#29069](https://github.com/aws/aws-cdk/issues/29069)) ([b4daf84](https://github.com/aws/aws-cdk/commit/b4daf84cf8a90ef38e3a2328df6271bdaf19de01)), closes [#28990](https://github.com/aws/aws-cdk/issues/28990)