diff --git a/.github/workflows/request-cli-integ-test.yml b/.github/workflows/request-cli-integ-test.yml index 270a36834e8c2..9b525628a4df6 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@aa08304bd477b800d468db44fe10f6c61f7f7b11 + uses: tj-actions/changed-files@77af4bed286740ef1a6387dc4e4e4dec39f96054 with: base_sha: ${{ github.event.pull_request.base.sha }} files_yaml: | diff --git a/CHANGELOG.v2.alpha.md b/CHANGELOG.v2.alpha.md index c65bc01de5f12..cd60394bee4cc 100644 --- a/CHANGELOG.v2.alpha.md +++ b/CHANGELOG.v2.alpha.md @@ -2,6 +2,8 @@ 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.133.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.132.1-alpha.0...v2.133.0-alpha.0) (2024-03-14) + ## [2.132.1-alpha.0](https://github.com/aws/aws-cdk/compare/v2.132.0-alpha.0...v2.132.1-alpha.0) (2024-03-12) ## [2.132.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.131.0-alpha.0...v2.132.0-alpha.0) (2024-03-08) diff --git a/CHANGELOG.v2.md b/CHANGELOG.v2.md index bf338bfa1ad6d..309e6289202d9 100644 --- a/CHANGELOG.v2.md +++ b/CHANGELOG.v2.md @@ -2,6 +2,32 @@ 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.133.0](https://github.com/aws/aws-cdk/compare/v2.132.1...v2.133.0) (2024-03-14) + + +### Features + +* **CLI:** improved nested stack diff ([#29172](https://github.com/aws/aws-cdk/issues/29172)) ([135b520](https://github.com/aws/aws-cdk/commit/135b5208dce849f49b6f540f7199ece057a7ef22)) +* **codepipeline:** change default pipeline type to V2 (under feature flag) ([#29096](https://github.com/aws/aws-cdk/issues/29096)) ([e85231c](https://github.com/aws/aws-cdk/commit/e85231c092892879479cf12b89756e8f2b70a094)), closes [/github.com/aws/aws-cdk/pull/28538#discussion_r1471761574](https://github.com/aws//github.com/aws/aws-cdk/pull/28538/issues/discussion_r1471761574) [/github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-codepipeline/lib/pipeline.ts#L492](https://github.com/aws//github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-codepipeline/lib/pipeline.ts/issues/L492) +* **ec2:** add APPCONFIG and APPCONFIGDATA to InterfaceVpcEndpointAwsService ([#29408](https://github.com/aws/aws-cdk/issues/29408)) ([baaa50c](https://github.com/aws/aws-cdk/commit/baaa50c73ae3a88d606b62349736ef1180dcf1ad)) +* **ecs-patterns:** support `securityGroups` in `NetworkLoadBalancedFargateService` ([#29431](https://github.com/aws/aws-cdk/issues/29431)) ([00e8a7b](https://github.com/aws/aws-cdk/commit/00e8a7b877a732b4236227f6462bf3914ce7a214)), closes [#29430](https://github.com/aws/aws-cdk/issues/29430) [/github.com/aws/aws-cdk/pull/29186#issuecomment-1959231406](https://github.com/aws//github.com/aws/aws-cdk/pull/29186/issues/issuecomment-1959231406) +* **opensearchservice:** cold storage option ([#29387](https://github.com/aws/aws-cdk/issues/29387)) ([ce52c7e](https://github.com/aws/aws-cdk/commit/ce52c7e1ac939dc2f9f08cb29fad0f2dc9714445)), closes [#29366](https://github.com/aws/aws-cdk/issues/29366) +* **rds:** proxy for mariadb ([#29412](https://github.com/aws/aws-cdk/issues/29412)) ([6fef789](https://github.com/aws/aws-cdk/commit/6fef789e14a0f53317da9ca4f319950d33f86ed1)), closes [#29402](https://github.com/aws/aws-cdk/issues/29402) +* **stepfunctions-tasks:** start glue crawler ([#29016](https://github.com/aws/aws-cdk/issues/29016)) ([5592553](https://github.com/aws/aws-cdk/commit/5592553ac5edc6b2c29a786031b8bec139b2aef7)), closes [#24188](https://github.com/aws/aws-cdk/issues/24188) +* update L1 CloudFormation resource definitions ([#29438](https://github.com/aws/aws-cdk/issues/29438)) ([5b910f0](https://github.com/aws/aws-cdk/commit/5b910f0d61d4adae38788f7f16ccdae6cb214057)) + + +### Bug Fixes + +* **cli:** `cdk ls` returns stack id instead of stack display name ([#29447](https://github.com/aws/aws-cdk/issues/29447)) ([77189be](https://github.com/aws/aws-cdk/commit/77189be16b4ab007450176010f71f1558ced6430)), closes [#29420](https://github.com/aws/aws-cdk/issues/29420) +* **lambda-nodejs:** fixing esbuildArgs to take in account re-specified keys ([#29167](https://github.com/aws/aws-cdk/issues/29167)) ([919d16f](https://github.com/aws/aws-cdk/commit/919d16ff611ee01495ae2cb4c646c4e27378b3e3)), closes [#25385](https://github.com/aws/aws-cdk/issues/25385) +* **stepfunctions:** the retry field in CustomState is not iterable ([#29403](https://github.com/aws/aws-cdk/issues/29403)) ([a1fbd51](https://github.com/aws/aws-cdk/commit/a1fbd51d7fa6791b6a55004a938ec157194b89ba)), closes [#29274](https://github.com/aws/aws-cdk/issues/29274) + + +### Reverts + +* prevent changeset diff for non-deployed stacks ([#29485](https://github.com/aws/aws-cdk/issues/29485)) ([fac4a9c](https://github.com/aws/aws-cdk/commit/fac4a9c23f8e9090b3dc7e26a8306d3a8034b4c9)), closes [#29394](https://github.com/aws/aws-cdk/issues/29394) [#29172](https://github.com/aws/aws-cdk/issues/29172) + ## [2.132.1](https://github.com/aws/aws-cdk/compare/v2.132.0...v2.132.1) (2024-03-12) diff --git a/package.json b/package.json index 210adc01dc93a..c3a65004bd419 100644 --- a/package.json +++ b/package.json @@ -20,15 +20,15 @@ "@types/prettier": "2.6.0", "@yarnpkg/lockfile": "^1.1.0", "aws-sdk-js-codemod": "^0.28.2", - "cdk-generate-synthetic-examples": "^0.1.304", + "cdk-generate-synthetic-examples": "^0.1.307", "conventional-changelog-cli": "^2.2.2", "fs-extra": "^9.1.0", "graceful-fs": "^4.2.11", "jest-junit": "^13.2.0", - "jsii-diff": "1.94.0", - "jsii-pacmak": "1.94.0", - "jsii-reflect": "1.94.0", - "jsii-rosetta": "~5.3.18", + "jsii-diff": "1.95.0", + "jsii-pacmak": "1.95.0", + "jsii-reflect": "1.95.0", + "jsii-rosetta": "~5.3.29", "lerna": "^7.4.2", "nx": "^16.10.0", "patch-package": "^6.5.1", diff --git a/packages/@aws-cdk-testing/cli-integ/package.json b/packages/@aws-cdk-testing/cli-integ/package.json index 389cb0c85a313..32de3dc762f57 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.7", + "@types/semver": "^7.5.8", "@types/yargs": "^15.0.19", "@types/fs-extra": "^9.0.13", "@types/glob": "^7.2.0", @@ -39,8 +39,8 @@ }, "dependencies": { "@octokit/rest": "^18.12.0", - "aws-sdk": "^2.1562.0", - "axios": "^1.6.7", + "aws-sdk": "^2.1583.0", + "axios": "^1.6.8", "fs-extra": "^9.1.0", "glob": "^7.2.3", "jest": "^29.7.0", diff --git a/packages/@aws-cdk-testing/framework-integ/package.json b/packages/@aws-cdk-testing/framework-integ/package.json index d818f5081c206..4f784aa03cff6 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.1562.0", + "aws-sdk": "^2.1583.0", "aws-sdk-mock": "5.6.0", - "cdk8s": "2.68.40", - "cdk8s-plus-27": "2.7.80", + "cdk8s": "2.68.46", + "cdk8s-plus-27": "2.7.84", "constructs": "^10.0.0" }, "repository": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/apiDefaultTestDeployAssert018781F2.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/apiDefaultTestDeployAssert018781F2.assets.json new file mode 100644 index 0000000000000..8202fda5ae125 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/apiDefaultTestDeployAssert018781F2.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { + "source": { + "path": "apiDefaultTestDeployAssert018781F2.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-appsync/test/integ.appsync-limit-configs.js.snapshot/apiDefaultTestDeployAssert018781F2.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/apiDefaultTestDeployAssert018781F2.template.json new file mode 100644 index 0000000000000..ad9d0fb73d1dd --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/apiDefaultTestDeployAssert018781F2.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-appsync/test/integ.appsync-limit-configs.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/cdk.out new file mode 100644 index 0000000000000..1f0068d32659a --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.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-appsync/test/integ.appsync-limit-configs.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/integ.json new file mode 100644 index 0000000000000..1c3707aa5a091 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/integ.json @@ -0,0 +1,12 @@ +{ + "version": "36.0.0", + "testCases": { + "api/DefaultTest": { + "stacks": [ + "stack" + ], + "assertionStack": "api/DefaultTest/DeployAssert", + "assertionStackName": "apiDefaultTestDeployAssert018781F2" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/manifest.json new file mode 100644 index 0000000000000..7c691b1ab7250 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/manifest.json @@ -0,0 +1,131 @@ +{ + "version": "36.0.0", + "artifacts": { + "stack.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "stack.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "stack": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "stack.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}/4a4743ab86ffb5a36ee7fe130a71132db740f65aa7f4c6b86ca1155f8b488b7e.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "stack.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": [ + "stack.assets" + ], + "metadata": { + "/stack/ApiLimitConfigs/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "ApiLimitConfigsC74D7493" + } + ], + "/stack/ApiLimitConfigs/Schema": [ + { + "type": "aws:cdk:logicalId", + "data": "ApiLimitConfigsSchema1451D8D1" + } + ], + "/stack/ApiLimitConfigs/DefaultApiKey": [ + { + "type": "aws:cdk:logicalId", + "data": "ApiLimitConfigsDefaultApiKey7D682F04" + } + ], + "/stack/ApiLimitConfigs/NoneDS/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "ApiLimitConfigsNoneDS3CA3BDA6" + } + ], + "/stack/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/stack/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "stack" + }, + "apiDefaultTestDeployAssert018781F2.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "apiDefaultTestDeployAssert018781F2.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "apiDefaultTestDeployAssert018781F2": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "apiDefaultTestDeployAssert018781F2.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": [ + "apiDefaultTestDeployAssert018781F2.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": [ + "apiDefaultTestDeployAssert018781F2.assets" + ], + "metadata": { + "/api/DefaultTest/DeployAssert/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/api/DefaultTest/DeployAssert/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "api/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-appsync/test/integ.appsync-limit-configs.js.snapshot/stack.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/stack.assets.json new file mode 100644 index 0000000000000..bb30ac7514210 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/stack.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "4a4743ab86ffb5a36ee7fe130a71132db740f65aa7f4c6b86ca1155f8b488b7e": { + "source": { + "path": "stack.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "4a4743ab86ffb5a36ee7fe130a71132db740f65aa7f4c6b86ca1155f8b488b7e.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-appsync/test/integ.appsync-limit-configs.js.snapshot/stack.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/stack.template.json new file mode 100644 index 0000000000000..5c0a093e92174 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/stack.template.json @@ -0,0 +1,86 @@ +{ + "Resources": { + "ApiLimitConfigsC74D7493": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AuthenticationType": "API_KEY", + "Name": "ApiLimitConfigs", + "QueryDepthLimit": 2, + "ResolverCountLimit": 2 + } + }, + "ApiLimitConfigsSchema1451D8D1": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "ApiLimitConfigsC74D7493", + "ApiId" + ] + }, + "Definition": "type test {\n version: String!\n}\ntype Query {\n getTests: [test]!\n}\ntype Mutation {\n addTest(version: String!): test\n}\n" + } + }, + "ApiLimitConfigsDefaultApiKey7D682F04": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "ApiLimitConfigsC74D7493", + "ApiId" + ] + } + }, + "DependsOn": [ + "ApiLimitConfigsSchema1451D8D1" + ] + }, + "ApiLimitConfigsNoneDS3CA3BDA6": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "ApiLimitConfigsC74D7493", + "ApiId" + ] + }, + "Name": "NoneDS", + "Type": "NONE" + } + } + }, + "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-appsync/test/integ.appsync-limit-configs.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/tree.json new file mode 100644 index 0000000000000..7990b054a38cd --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.js.snapshot/tree.json @@ -0,0 +1,206 @@ +{ + "version": "tree-0.1", + "tree": { + "id": "App", + "path": "", + "children": { + "stack": { + "id": "stack", + "path": "stack", + "children": { + "ApiLimitConfigs": { + "id": "ApiLimitConfigs", + "path": "stack/ApiLimitConfigs", + "children": { + "Resource": { + "id": "Resource", + "path": "stack/ApiLimitConfigs/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::AppSync::GraphQLApi", + "aws:cdk:cloudformation:props": { + "authenticationType": "API_KEY", + "name": "ApiLimitConfigs", + "queryDepthLimit": 2, + "resolverCountLimit": 2 + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_appsync.CfnGraphQLApi", + "version": "0.0.0" + } + }, + "Schema": { + "id": "Schema", + "path": "stack/ApiLimitConfigs/Schema", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::AppSync::GraphQLSchema", + "aws:cdk:cloudformation:props": { + "apiId": { + "Fn::GetAtt": [ + "ApiLimitConfigsC74D7493", + "ApiId" + ] + }, + "definition": "type test {\n version: String!\n}\ntype Query {\n getTests: [test]!\n}\ntype Mutation {\n addTest(version: String!): test\n}\n" + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_appsync.CfnGraphQLSchema", + "version": "0.0.0" + } + }, + "DefaultApiKey": { + "id": "DefaultApiKey", + "path": "stack/ApiLimitConfigs/DefaultApiKey", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::AppSync::ApiKey", + "aws:cdk:cloudformation:props": { + "apiId": { + "Fn::GetAtt": [ + "ApiLimitConfigsC74D7493", + "ApiId" + ] + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_appsync.CfnApiKey", + "version": "0.0.0" + } + }, + "LogGroup": { + "id": "LogGroup", + "path": "stack/ApiLimitConfigs/LogGroup", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "NoneDS": { + "id": "NoneDS", + "path": "stack/ApiLimitConfigs/NoneDS", + "children": { + "Resource": { + "id": "Resource", + "path": "stack/ApiLimitConfigs/NoneDS/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::AppSync::DataSource", + "aws:cdk:cloudformation:props": { + "apiId": { + "Fn::GetAtt": [ + "ApiLimitConfigsC74D7493", + "ApiId" + ] + }, + "name": "NoneDS", + "type": "NONE" + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_appsync.CfnDataSource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_appsync.NoneDataSource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_appsync.GraphqlApi", + "version": "0.0.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "stack/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "stack/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + }, + "api": { + "id": "api", + "path": "api", + "children": { + "DefaultTest": { + "id": "DefaultTest", + "path": "api/DefaultTest", + "children": { + "Default": { + "id": "Default", + "path": "api/DefaultTest/Default", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DeployAssert": { + "id": "DeployAssert", + "path": "api/DefaultTest/DeployAssert", + "children": { + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "api/DefaultTest/DeployAssert/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "api/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-appsync/test/integ.appsync-limit-configs.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.ts new file mode 100644 index 0000000000000..62832101c5411 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-limit-configs.ts @@ -0,0 +1,24 @@ +import * as path from 'path'; +import * as cdk from 'aws-cdk-lib'; +import * as appsync from 'aws-cdk-lib/aws-appsync'; +import { IntegTest } from '@aws-cdk/integ-tests-alpha'; + +const app = new cdk.App(); +const stack = new cdk.Stack(app, 'stack'); + +const api = new appsync.GraphqlApi(stack, 'ApiLimitConfigs', { + name: 'ApiLimitConfigs', + schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')), + queryDepthLimit: 2, + resolverCountLimit: 2, +}); + +api.addNoneDataSource('NoneDS', { + name: cdk.Lazy.string({ produce(): string { return 'NoneDS'; } }), +}); + +new IntegTest(app, 'api', { + testCases: [stack], +}); + +app.synth(); \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/aws-cdk-codepipeline-cloudformation.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/aws-cdk-codepipeline-cloudformation.assets.json index cd7f3f314fdb6..56d0bc756dae2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/aws-cdk-codepipeline-cloudformation.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/aws-cdk-codepipeline-cloudformation.assets.json @@ -1,7 +1,7 @@ { - "version": "34.0.0", + "version": "36.0.0", "files": { - "084ca20cbe926238233c0a6584e19f8ce8057e3e7b7adcb4f21c6b6828acd256": { + "9a14027f70a5347df91e17dca191f41087c869425efe6897fa2d61199cf4de5f": { "source": { "path": "aws-cdk-codepipeline-cloudformation.template.json", "packaging": "file" @@ -9,7 +9,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "084ca20cbe926238233c0a6584e19f8ce8057e3e7b7adcb4f21c6b6828acd256.json", + "objectKey": "9a14027f70a5347df91e17dca191f41087c869425efe6897fa2d61199cf4de5f.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-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/aws-cdk-codepipeline-cloudformation.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/aws-cdk-codepipeline-cloudformation.template.json index 1a40cea03c640..4459f6e926720 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/aws-cdk-codepipeline-cloudformation.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/aws-cdk-codepipeline-cloudformation.template.json @@ -795,6 +795,7 @@ { "Action": [ "cloudformation:DescribeChangeSet", + "cloudformation:DescribeStackEvents", "cloudformation:DescribeStacks", "cloudformation:ExecuteChangeSet" ], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/cdk.out index 2313ab5436501..1f0068d32659a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/cdk.out +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.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-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/integ.json index 19c9f44bcac42..0f37e6eb95c71 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/integ.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/integ.json @@ -1,5 +1,5 @@ { - "version": "34.0.0", + "version": "36.0.0", "testCases": { "integ.cfn-template-from-repo.lit": { "stacks": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/manifest.json index b7b1f0d0bb29e..74bf61c224298 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/manifest.json @@ -1,5 +1,5 @@ { - "version": "34.0.0", + "version": "36.0.0", "artifacts": { "aws-cdk-codepipeline-cloudformation.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}/084ca20cbe926238233c0a6584e19f8ce8057e3e7b7adcb4f21c6b6828acd256.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9a14027f70a5347df91e17dca191f41087c869425efe6897fa2d61199cf4de5f.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -40,6 +40,12 @@ "data": "TemplateRepo2326F199" } ], + "/aws-cdk-codepipeline-cloudformation/Pipeline": [ + { + "type": "aws:cdk:warning", + "data": "V1 pipeline type is implicitly selected when `pipelineType` is not set. If you want to use V2 type, set `PipelineType.V2`. [ack: @aws-cdk/aws-codepipeline:unspecifiedPipelineType]" + } + ], "/aws-cdk-codepipeline-cloudformation/Pipeline/ArtifactsBucketEncryptionKey/Resource": [ { "type": "aws:cdk:logicalId", diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/tree.json index 5ecb19c0bb7c9..9d86e4fe09e2a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.js.snapshot/tree.json @@ -706,13 +706,13 @@ }, "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } } }, "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "Deploy": { @@ -780,7 +780,7 @@ "path": "aws-cdk-codepipeline-cloudformation/Pipeline/Deploy/PrepareChanges/CodePipelineActionRole/8389e75f-0810-4838-bf64-d6f85a95cf83", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "DefaultPolicy": { @@ -1038,7 +1038,7 @@ }, "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "ApproveChanges": { @@ -1106,7 +1106,7 @@ }, "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "ExecuteChanges": { @@ -1170,7 +1170,7 @@ "path": "aws-cdk-codepipeline-cloudformation/Pipeline/Deploy/ExecuteChanges/CodePipelineActionRole/8389e75f-0810-4838-bf64-d6f85a95cf83", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } }, "DefaultPolicy": { @@ -1188,6 +1188,7 @@ { "Action": [ "cloudformation:DescribeChangeSet", + "cloudformation:DescribeStackEvents", "cloudformation:DescribeStacks", "cloudformation:ExecuteChangeSet" ], @@ -1249,13 +1250,13 @@ }, "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } } }, "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.70" + "version": "10.3.0" } } }, @@ -1291,7 +1292,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-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/AlbFargateServiceWithCommandAndEntryPointDefaultTestDeployAssert84DAACDF.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/AlbFargateServiceWithCommandAndEntryPointDefaultTestDeployAssert84DAACDF.assets.json index 161b98e729347..afee9f7a14240 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/AlbFargateServiceWithCommandAndEntryPointDefaultTestDeployAssert84DAACDF.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/AlbFargateServiceWithCommandAndEntryPointDefaultTestDeployAssert84DAACDF.assets.json @@ -1,5 +1,5 @@ { - "version": "32.0.0", + "version": "36.0.0", "files": { "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { "source": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/aws-ecs-integ-lb-fargate-cmd-entrypoint-test.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/aws-ecs-integ-lb-fargate-cmd-entrypoint-test.assets.json index e2efe1199559d..f0c30a25d7502 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/aws-ecs-integ-lb-fargate-cmd-entrypoint-test.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/aws-ecs-integ-lb-fargate-cmd-entrypoint-test.assets.json @@ -1,7 +1,7 @@ { - "version": "32.0.0", + "version": "36.0.0", "files": { - "bd5c4694c4fe13248b11699dfcee108b7c5a6835e60b9f68628928a30689fa29": { + "d5bc6608a501023f394e622f56da7bfa3d009cdcb254814891d1352b1e41bbbe": { "source": { "path": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test.template.json", "packaging": "file" @@ -9,7 +9,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "bd5c4694c4fe13248b11699dfcee108b7c5a6835e60b9f68628928a30689fa29.json", + "objectKey": "d5bc6608a501023f394e622f56da7bfa3d009cdcb254814891d1352b1e41bbbe.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-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/aws-ecs-integ-lb-fargate-cmd-entrypoint-test.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/aws-ecs-integ-lb-fargate-cmd-entrypoint-test.template.json index aff60e08182b5..7adff19cc7449 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/aws-ecs-integ-lb-fargate-cmd-entrypoint-test.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/aws-ecs-integ-lb-fargate-cmd-entrypoint-test.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-lb-fargate-cmd-entrypoint-test/Vpc/PublicSubnet1" } - ] + ], + "VpcId": { + "Ref": "Vpc8378EB38" + } } }, "VpcPublicSubnet1RouteTable6C95E38E": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "Vpc8378EB38" - }, "Tags": [ { "Key": "Name", "Value": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/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 @@ "VpcPublicSubnet2Subnet691E08A3": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "Vpc8378EB38" - }, "AvailabilityZone": { "Fn::Select": [ 1, @@ -152,21 +149,24 @@ "Key": "Name", "Value": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/Vpc/PublicSubnet2" } - ] + ], + "VpcId": { + "Ref": "Vpc8378EB38" + } } }, "VpcPublicSubnet2RouteTable94F7E489": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "Vpc8378EB38" - }, "Tags": [ { "Key": "Name", "Value": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/Vpc/PublicSubnet2" } - ] + ], + "VpcId": { + "Ref": "Vpc8378EB38" + } } }, "VpcPublicSubnet2RouteTableAssociationDD5762D8": { @@ -183,12 +183,12 @@ "VpcPublicSubnet2DefaultRoute97F91067": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VpcPublicSubnet2RouteTable94F7E489" - }, "DestinationCidrBlock": "0.0.0.0/0", "GatewayId": { "Ref": "VpcIGWD7BA715C" + }, + "RouteTableId": { + "Ref": "VpcPublicSubnet2RouteTable94F7E489" } }, "DependsOn": [ @@ -210,15 +210,15 @@ "VpcPublicSubnet2NATGateway9182C01D": { "Type": "AWS::EC2::NatGateway", "Properties": { - "SubnetId": { - "Ref": "VpcPublicSubnet2Subnet691E08A3" - }, "AllocationId": { "Fn::GetAtt": [ "VpcPublicSubnet2EIP3C605A87", "AllocationId" ] }, + "SubnetId": { + "Ref": "VpcPublicSubnet2Subnet691E08A3" + }, "Tags": [ { "Key": "Name", @@ -234,9 +234,6 @@ "VpcPrivateSubnet1Subnet536B997A": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "Vpc8378EB38" - }, "AvailabilityZone": { "Fn::Select": [ 0, @@ -260,21 +257,24 @@ "Key": "Name", "Value": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/Vpc/PrivateSubnet1" } - ] + ], + "VpcId": { + "Ref": "Vpc8378EB38" + } } }, "VpcPrivateSubnet1RouteTableB2C5B500": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "Vpc8378EB38" - }, "Tags": [ { "Key": "Name", "Value": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/Vpc/PrivateSubnet1" } - ] + ], + "VpcId": { + "Ref": "Vpc8378EB38" + } } }, "VpcPrivateSubnet1RouteTableAssociation70C59FA6": { @@ -291,21 +291,18 @@ "VpcPrivateSubnet1DefaultRouteBE02A9ED": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VpcPrivateSubnet1RouteTableB2C5B500" - }, "DestinationCidrBlock": "0.0.0.0/0", "NatGatewayId": { "Ref": "VpcPublicSubnet1NATGateway4D7517AA" + }, + "RouteTableId": { + "Ref": "VpcPrivateSubnet1RouteTableB2C5B500" } } }, "VpcPrivateSubnet2Subnet3788AAA1": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "Vpc8378EB38" - }, "AvailabilityZone": { "Fn::Select": [ 1, @@ -329,21 +326,24 @@ "Key": "Name", "Value": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/Vpc/PrivateSubnet2" } - ] + ], + "VpcId": { + "Ref": "Vpc8378EB38" + } } }, "VpcPrivateSubnet2RouteTableA678073B": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "Vpc8378EB38" - }, "Tags": [ { "Key": "Name", "Value": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/Vpc/PrivateSubnet2" } - ] + ], + "VpcId": { + "Ref": "Vpc8378EB38" + } } }, "VpcPrivateSubnet2RouteTableAssociationA89CAD56": { @@ -360,12 +360,12 @@ "VpcPrivateSubnet2DefaultRoute060D2087": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VpcPrivateSubnet2RouteTableA678073B" - }, "DestinationCidrBlock": "0.0.0.0/0", "NatGatewayId": { "Ref": "VpcPublicSubnet2NATGateway9182C01D" + }, + "RouteTableId": { + "Ref": "VpcPrivateSubnet2RouteTableA678073B" } } }, @@ -383,17 +383,56 @@ "VpcVPCGWBF912B6E": { "Type": "AWS::EC2::VPCGatewayAttachment", "Properties": { - "VpcId": { - "Ref": "Vpc8378EB38" - }, "InternetGatewayId": { "Ref": "VpcIGWD7BA715C" + }, + "VpcId": { + "Ref": "Vpc8378EB38" } } }, "TestFargateCluster0BF869F3": { "Type": "AWS::ECS::Cluster" }, + "SecurityGroupDD263621": { + "Type": "AWS::EC2::SecurityGroup", + "Properties": { + "GroupDescription": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/SecurityGroup", + "SecurityGroupIngress": [ + { + "CidrIp": "0.0.0.0/0", + "Description": "from 0.0.0.0/0:80", + "FromPort": 80, + "IpProtocol": "tcp", + "ToPort": 80 + } + ], + "VpcId": { + "Ref": "Vpc8378EB38" + } + } + }, + "SecurityGrouptoawsecsinteglbfargatecmdentrypointtestALBFargateServiceWithCommandAndEntryPointServiceSecurityGroup6D1E5F1180E99BF818": { + "Type": "AWS::EC2::SecurityGroupEgress", + "Properties": { + "Description": "Load balancer to target", + "DestinationSecurityGroupId": { + "Fn::GetAtt": [ + "ALBFargateServiceWithCommandAndEntryPointServiceSecurityGroupD154E880", + "GroupId" + ] + }, + "FromPort": 80, + "GroupId": { + "Fn::GetAtt": [ + "SecurityGroupDD263621", + "GroupId" + ] + }, + "IpProtocol": "tcp", + "ToPort": 80 + } + }, "ALBFargateServiceWithCommandAndEntryPointLB353EA7CA": { "Type": "AWS::ElasticLoadBalancingV2::LoadBalancer", "Properties": { @@ -410,6 +449,12 @@ "ALBFargateServiceWithCommandAndEntryPointLBSecurityGroupD7099797", "GroupId" ] + }, + { + "Fn::GetAtt": [ + "SecurityGroupDD263621", + "GroupId" + ] } ], "Subnets": [ @@ -450,13 +495,6 @@ "ALBFargateServiceWithCommandAndEntryPointLBSecurityGrouptoawsecsinteglbfargatecmdentrypointtestALBFargateServiceWithCommandAndEntryPointServiceSecurityGroup6D1E5F11801B449FAA": { "Type": "AWS::EC2::SecurityGroupEgress", "Properties": { - "GroupId": { - "Fn::GetAtt": [ - "ALBFargateServiceWithCommandAndEntryPointLBSecurityGroupD7099797", - "GroupId" - ] - }, - "IpProtocol": "tcp", "Description": "Load balancer to target", "DestinationSecurityGroupId": { "Fn::GetAtt": [ @@ -465,6 +503,13 @@ ] }, "FromPort": 80, + "GroupId": { + "Fn::GetAtt": [ + "ALBFargateServiceWithCommandAndEntryPointLBSecurityGroupD7099797", + "GroupId" + ] + }, + "IpProtocol": "tcp", "ToPort": 80 } }, @@ -526,15 +571,14 @@ "ContainerDefinitions": [ { "Command": [ - "/usr/sbin/apache2", - "-D", - "FOREGROUND" + "/bin/sh -c \"echo '

Amazon ECS Sample App

' > /usr/local/apache2/htdocs/index.html && httpd-foreground\"" ], "EntryPoint": [ - "/bin/bash" + "sh", + "-c" ], "Essential": true, - "Image": "amazon/amazon-ecs-sample", + "Image": "public.ecr.aws/docker/library/httpd:2.4", "LogConfiguration": { "LogDriver": "awslogs", "Options": { @@ -708,7 +752,6 @@ "ALBFargateServiceWithCommandAndEntryPointServiceSecurityGroupfromawsecsinteglbfargatecmdentrypointtestALBFargateServiceWithCommandAndEntryPointLBSecurityGroup886E70918046DDBFE6": { "Type": "AWS::EC2::SecurityGroupIngress", "Properties": { - "IpProtocol": "tcp", "Description": "Load balancer to target", "FromPort": 80, "GroupId": { @@ -717,6 +760,7 @@ "GroupId" ] }, + "IpProtocol": "tcp", "SourceSecurityGroupId": { "Fn::GetAtt": [ "ALBFargateServiceWithCommandAndEntryPointLBSecurityGroupD7099797", @@ -728,6 +772,30 @@ "DependsOn": [ "ALBFargateServiceWithCommandAndEntryPointTaskDefTaskRole65CE9392" ] + }, + "ALBFargateServiceWithCommandAndEntryPointServiceSecurityGroupfromawsecsinteglbfargatecmdentrypointtestSecurityGroupECF7922B806B1E1C2D": { + "Type": "AWS::EC2::SecurityGroupIngress", + "Properties": { + "Description": "Load balancer to target", + "FromPort": 80, + "GroupId": { + "Fn::GetAtt": [ + "ALBFargateServiceWithCommandAndEntryPointServiceSecurityGroupD154E880", + "GroupId" + ] + }, + "IpProtocol": "tcp", + "SourceSecurityGroupId": { + "Fn::GetAtt": [ + "SecurityGroupDD263621", + "GroupId" + ] + }, + "ToPort": 80 + }, + "DependsOn": [ + "ALBFargateServiceWithCommandAndEntryPointTaskDefTaskRole65CE9392" + ] } }, "Outputs": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/cdk.out index f0b901e7c06e5..1f0068d32659a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/cdk.out +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/cdk.out @@ -1 +1 @@ -{"version":"32.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-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/integ.json index 5e4bcf603026b..6cc5d28209e4a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/integ.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/integ.json @@ -1,5 +1,5 @@ { - "version": "32.0.0", + "version": "36.0.0", "testCases": { "AlbFargateServiceWithCommandAndEntryPoint/DefaultTest": { "stacks": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/manifest.json index 487bb373d901d..2af9e7724ebd3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/manifest.json @@ -1,5 +1,5 @@ { - "version": "32.0.0", + "version": "36.0.0", "artifacts": { "aws-ecs-integ-lb-fargate-cmd-entrypoint-test.assets": { "type": "cdk:asset-manifest", @@ -14,10 +14,11 @@ "environment": "aws://unknown-account/unknown-region", "properties": { "templateFile": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test.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}/bd5c4694c4fe13248b11699dfcee108b7c5a6835e60b9f68628928a30689fa29.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d5bc6608a501023f394e622f56da7bfa3d009cdcb254814891d1352b1e41bbbe.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -177,6 +178,18 @@ "data": "TestFargateCluster0BF869F3" } ], + "/aws-ecs-integ-lb-fargate-cmd-entrypoint-test/SecurityGroup/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "SecurityGroupDD263621" + } + ], + "/aws-ecs-integ-lb-fargate-cmd-entrypoint-test/SecurityGroup/to awsecsinteglbfargatecmdentrypointtestALBFargateServiceWithCommandAndEntryPointServiceSecurityGroup6D1E5F11:80": [ + { + "type": "aws:cdk:logicalId", + "data": "SecurityGrouptoawsecsinteglbfargatecmdentrypointtestALBFargateServiceWithCommandAndEntryPointServiceSecurityGroup6D1E5F1180E99BF818" + } + ], "/aws-ecs-integ-lb-fargate-cmd-entrypoint-test/ALBFargateServiceWithCommandAndEntryPoint/LB/Resource": [ { "type": "aws:cdk:logicalId", @@ -267,6 +280,12 @@ "data": "ALBFargateServiceWithCommandAndEntryPointServiceSecurityGroupfromawsecsinteglbfargatecmdentrypointtestALBFargateServiceWithCommandAndEntryPointLBSecurityGroup886E70918046DDBFE6" } ], + "/aws-ecs-integ-lb-fargate-cmd-entrypoint-test/ALBFargateServiceWithCommandAndEntryPoint/Service/SecurityGroup/from awsecsinteglbfargatecmdentrypointtestSecurityGroupECF7922B:80": [ + { + "type": "aws:cdk:logicalId", + "data": "ALBFargateServiceWithCommandAndEntryPointServiceSecurityGroupfromawsecsinteglbfargatecmdentrypointtestSecurityGroupECF7922B806B1E1C2D" + } + ], "/aws-ecs-integ-lb-fargate-cmd-entrypoint-test/BootstrapVersion": [ { "type": "aws:cdk:logicalId", @@ -295,6 +314,7 @@ "environment": "aws://unknown-account/unknown-region", "properties": { "templateFile": "AlbFargateServiceWithCommandAndEntryPointDefaultTestDeployAssert84DAACDF.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-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/tree.json index d1a001dceb12c..8488ff8dbd2af 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.js.snapshot/tree.json @@ -45,9 +45,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "Vpc8378EB38" - }, "availabilityZone": { "Fn::Select": [ 0, @@ -71,7 +68,10 @@ "key": "Name", "value": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/Vpc/PublicSubnet1" } - ] + ], + "vpcId": { + "Ref": "Vpc8378EB38" + } } }, "constructInfo": { @@ -93,15 +93,15 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "Vpc8378EB38" - }, "tags": [ { "key": "Name", "value": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/Vpc/PublicSubnet1" } - ] + ], + "vpcId": { + "Ref": "Vpc8378EB38" + } } }, "constructInfo": { @@ -134,12 +134,12 @@ "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" } } }, @@ -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", @@ -212,9 +212,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "Vpc8378EB38" - }, "availabilityZone": { "Fn::Select": [ 1, @@ -238,7 +235,10 @@ "key": "Name", "value": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/Vpc/PublicSubnet2" } - ] + ], + "vpcId": { + "Ref": "Vpc8378EB38" + } } }, "constructInfo": { @@ -260,15 +260,15 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "Vpc8378EB38" - }, "tags": [ { "key": "Name", "value": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/Vpc/PublicSubnet2" } - ] + ], + "vpcId": { + "Ref": "Vpc8378EB38" + } } }, "constructInfo": { @@ -301,12 +301,12 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VpcPublicSubnet2RouteTable94F7E489" - }, "destinationCidrBlock": "0.0.0.0/0", "gatewayId": { "Ref": "VpcIGWD7BA715C" + }, + "routeTableId": { + "Ref": "VpcPublicSubnet2RouteTable94F7E489" } } }, @@ -341,15 +341,15 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", "aws:cdk:cloudformation:props": { - "subnetId": { - "Ref": "VpcPublicSubnet2Subnet691E08A3" - }, "allocationId": { "Fn::GetAtt": [ "VpcPublicSubnet2EIP3C605A87", "AllocationId" ] }, + "subnetId": { + "Ref": "VpcPublicSubnet2Subnet691E08A3" + }, "tags": [ { "key": "Name", @@ -379,9 +379,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "Vpc8378EB38" - }, "availabilityZone": { "Fn::Select": [ 0, @@ -405,7 +402,10 @@ "key": "Name", "value": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/Vpc/PrivateSubnet1" } - ] + ], + "vpcId": { + "Ref": "Vpc8378EB38" + } } }, "constructInfo": { @@ -427,15 +427,15 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "Vpc8378EB38" - }, "tags": [ { "key": "Name", "value": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/Vpc/PrivateSubnet1" } - ] + ], + "vpcId": { + "Ref": "Vpc8378EB38" + } } }, "constructInfo": { @@ -468,12 +468,12 @@ "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" } } }, @@ -498,9 +498,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "Vpc8378EB38" - }, "availabilityZone": { "Fn::Select": [ 1, @@ -524,7 +521,10 @@ "key": "Name", "value": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/Vpc/PrivateSubnet2" } - ] + ], + "vpcId": { + "Ref": "Vpc8378EB38" + } } }, "constructInfo": { @@ -546,15 +546,15 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "Vpc8378EB38" - }, "tags": [ { "key": "Name", "value": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/Vpc/PrivateSubnet2" } - ] + ], + "vpcId": { + "Ref": "Vpc8378EB38" + } } }, "constructInfo": { @@ -587,12 +587,12 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VpcPrivateSubnet2RouteTableA678073B" - }, "destinationCidrBlock": "0.0.0.0/0", "natGatewayId": { "Ref": "VpcPublicSubnet2NATGateway9182C01D" + }, + "routeTableId": { + "Ref": "VpcPrivateSubnet2RouteTableA678073B" } } }, @@ -632,11 +632,11 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::VPCGatewayAttachment", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "Vpc8378EB38" - }, "internetGatewayId": { "Ref": "VpcIGWD7BA715C" + }, + "vpcId": { + "Ref": "Vpc8378EB38" } } }, @@ -673,6 +673,71 @@ "version": "0.0.0" } }, + "SecurityGroup": { + "id": "SecurityGroup", + "path": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/SecurityGroup", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/SecurityGroup/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroup", + "aws:cdk:cloudformation:props": { + "groupDescription": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/SecurityGroup", + "securityGroupIngress": [ + { + "cidrIp": "0.0.0.0/0", + "ipProtocol": "tcp", + "fromPort": 80, + "toPort": 80, + "description": "from 0.0.0.0/0:80" + } + ], + "vpcId": { + "Ref": "Vpc8378EB38" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroup", + "version": "0.0.0" + } + }, + "to awsecsinteglbfargatecmdentrypointtestALBFargateServiceWithCommandAndEntryPointServiceSecurityGroup6D1E5F11:80": { + "id": "to awsecsinteglbfargatecmdentrypointtestALBFargateServiceWithCommandAndEntryPointServiceSecurityGroup6D1E5F11:80", + "path": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/SecurityGroup/to awsecsinteglbfargatecmdentrypointtestALBFargateServiceWithCommandAndEntryPointServiceSecurityGroup6D1E5F11:80", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroupEgress", + "aws:cdk:cloudformation:props": { + "description": "Load balancer to target", + "destinationSecurityGroupId": { + "Fn::GetAtt": [ + "ALBFargateServiceWithCommandAndEntryPointServiceSecurityGroupD154E880", + "GroupId" + ] + }, + "fromPort": 80, + "groupId": { + "Fn::GetAtt": [ + "SecurityGroupDD263621", + "GroupId" + ] + }, + "ipProtocol": "tcp", + "toPort": 80 + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroupEgress", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.SecurityGroup", + "version": "0.0.0" + } + }, "ALBFargateServiceWithCommandAndEntryPoint": { "id": "ALBFargateServiceWithCommandAndEntryPoint", "path": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/ALBFargateServiceWithCommandAndEntryPoint", @@ -700,6 +765,12 @@ "ALBFargateServiceWithCommandAndEntryPointLBSecurityGroupD7099797", "GroupId" ] + }, + { + "Fn::GetAtt": [ + "SecurityGroupDD263621", + "GroupId" + ] } ], "subnets": [ @@ -754,13 +825,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroupEgress", "aws:cdk:cloudformation:props": { - "groupId": { - "Fn::GetAtt": [ - "ALBFargateServiceWithCommandAndEntryPointLBSecurityGroupD7099797", - "GroupId" - ] - }, - "ipProtocol": "tcp", "description": "Load balancer to target", "destinationSecurityGroupId": { "Fn::GetAtt": [ @@ -769,6 +833,13 @@ ] }, "fromPort": 80, + "groupId": { + "Fn::GetAtt": [ + "ALBFargateServiceWithCommandAndEntryPointLBSecurityGroupD7099797", + "GroupId" + ] + }, + "ipProtocol": "tcp", "toPort": 80 } }, @@ -932,15 +1003,14 @@ "containerDefinitions": [ { "command": [ - "/usr/sbin/apache2", - "-D", - "FOREGROUND" + "/bin/sh -c \"echo '

Amazon ECS Sample App

' > /usr/local/apache2/htdocs/index.html && httpd-foreground\"" ], "entryPoint": [ - "/bin/bash" + "sh", + "-c" ], "essential": true, - "image": "amazon/amazon-ecs-sample", + "image": "public.ecr.aws/docker/library/httpd:2.4", "name": "web", "portMappings": [ { @@ -1215,7 +1285,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroupIngress", "aws:cdk:cloudformation:props": { - "ipProtocol": "tcp", "description": "Load balancer to target", "fromPort": 80, "groupId": { @@ -1224,6 +1293,7 @@ "GroupId" ] }, + "ipProtocol": "tcp", "sourceSecurityGroupId": { "Fn::GetAtt": [ "ALBFargateServiceWithCommandAndEntryPointLBSecurityGroupD7099797", @@ -1237,6 +1307,35 @@ "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroupIngress", "version": "0.0.0" } + }, + "from awsecsinteglbfargatecmdentrypointtestSecurityGroupECF7922B:80": { + "id": "from awsecsinteglbfargatecmdentrypointtestSecurityGroupECF7922B:80", + "path": "aws-ecs-integ-lb-fargate-cmd-entrypoint-test/ALBFargateServiceWithCommandAndEntryPoint/Service/SecurityGroup/from awsecsinteglbfargatecmdentrypointtestSecurityGroupECF7922B:80", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroupIngress", + "aws:cdk:cloudformation:props": { + "description": "Load balancer to target", + "fromPort": 80, + "groupId": { + "Fn::GetAtt": [ + "ALBFargateServiceWithCommandAndEntryPointServiceSecurityGroupD154E880", + "GroupId" + ] + }, + "ipProtocol": "tcp", + "sourceSecurityGroupId": { + "Fn::GetAtt": [ + "SecurityGroupDD263621", + "GroupId" + ] + }, + "toPort": 80 + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroupIngress", + "version": "0.0.0" + } } }, "constructInfo": { @@ -1291,7 +1390,7 @@ "path": "AlbFargateServiceWithCommandAndEntryPoint/DefaultTest/Default", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.55" + "version": "10.3.0" } }, "DeployAssert": { @@ -1337,7 +1436,7 @@ "path": "Tree", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.2.55" + "version": "10.3.0" } } }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.ts index 32e2c2ebf7cbe..72eba5604fb9f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.alb-fargate-service-command-entry-point.ts @@ -13,9 +13,14 @@ const stack = new cdk.Stack( // Create VPC and cluster const vpc = new ec2.Vpc(stack, 'Vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); const cluster = new ecs.Cluster(stack, 'TestFargateCluster', { vpc }); +const securityGroup = new ec2.SecurityGroup(stack, 'SecurityGroup', { + vpc, + allowAllOutbound: false, +}); +securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(80)); // Create ALB service with Command and EntryPoint -new ecsPatterns.ApplicationLoadBalancedFargateService( +const applicationLoadBalancedFargateService = new ecsPatterns.ApplicationLoadBalancedFargateService( stack, 'ALBFargateServiceWithCommandAndEntryPoint', { @@ -23,12 +28,13 @@ new ecsPatterns.ApplicationLoadBalancedFargateService( memoryLimitMiB: 512, cpu: 256, taskImageOptions: { - image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'), - command: ['/usr/sbin/apache2', '-D', 'FOREGROUND'], - entryPoint: ['/bin/bash'], + image: ecs.ContainerImage.fromRegistry('public.ecr.aws/docker/library/httpd:2.4'), + command: ['/bin/sh -c \"echo \'

Amazon ECS Sample App

\' > /usr/local/apache2/htdocs/index.html && httpd-foreground\"'], + entryPoint: ['sh', '-c'], }, }, ); +applicationLoadBalancedFargateService.loadBalancer.connections.addSecurityGroup(securityGroup); new integ.IntegTest(app, 'AlbFargateServiceWithCommandAndEntryPoint', { testCases: [stack], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/Elbv2TestDefaultTestDeployAssert82DC2DEA.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/Elbv2TestDefaultTestDeployAssert82DC2DEA.assets.json index afcae57e1590a..fb3d8d3707def 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/Elbv2TestDefaultTestDeployAssert82DC2DEA.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/Elbv2TestDefaultTestDeployAssert82DC2DEA.assets.json @@ -1,5 +1,5 @@ { - "version": "21.0.0", + "version": "36.0.0", "files": { "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { "source": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/aws-cdk-elbv2-integ.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/aws-cdk-elbv2-integ.assets.json index e393be50ae5b4..61e205aa8a505 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/aws-cdk-elbv2-integ.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/aws-cdk-elbv2-integ.assets.json @@ -1,7 +1,7 @@ { - "version": "21.0.0", + "version": "36.0.0", "files": { - "e0013d77550f4ad9d409277deba48d88a38a35f26ba1e36af47e988d8d2fc164": { + "94c6c20cc1d7906c1b2328a47826a615c5175c928769994769ea4f60c79f394c": { "source": { "path": "aws-cdk-elbv2-integ.template.json", "packaging": "file" @@ -9,7 +9,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e0013d77550f4ad9d409277deba48d88a38a35f26ba1e36af47e988d8d2fc164.json", + "objectKey": "94c6c20cc1d7906c1b2328a47826a615c5175c928769994769ea4f60c79f394c.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-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/aws-cdk-elbv2-integ.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/aws-cdk-elbv2-integ.template.json index 3d39dc0ca2332..4c5482a79d6f9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/aws-cdk-elbv2-integ.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/aws-cdk-elbv2-integ.template.json @@ -18,9 +18,6 @@ "VPCPublicSubnet1SubnetB4246D30": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "AvailabilityZone": { "Fn::Select": [ 0, @@ -44,21 +41,24 @@ "Key": "Name", "Value": "aws-cdk-elbv2-integ/VPC/PublicSubnet1" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPublicSubnet1RouteTableFEE4B781": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "Tags": [ { "Key": "Name", "Value": "aws-cdk-elbv2-integ/VPC/PublicSubnet1" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPublicSubnet1RouteTableAssociation0B0896DC": { @@ -75,12 +75,12 @@ "VPCPublicSubnet1DefaultRoute91CEF279": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VPCPublicSubnet1RouteTableFEE4B781" - }, "DestinationCidrBlock": "0.0.0.0/0", "GatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "RouteTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" } }, "DependsOn": [ @@ -102,15 +102,15 @@ "VPCPublicSubnet1NATGatewayE0556630": { "Type": "AWS::EC2::NatGateway", "Properties": { - "SubnetId": { - "Ref": "VPCPublicSubnet1SubnetB4246D30" - }, "AllocationId": { "Fn::GetAtt": [ "VPCPublicSubnet1EIP6AD938E8", "AllocationId" ] }, + "SubnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + }, "Tags": [ { "Key": "Name", @@ -126,9 +126,6 @@ "VPCPublicSubnet2Subnet74179F39": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "AvailabilityZone": { "Fn::Select": [ 1, @@ -152,21 +149,24 @@ "Key": "Name", "Value": "aws-cdk-elbv2-integ/VPC/PublicSubnet2" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPublicSubnet2RouteTable6F1A15F1": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "Tags": [ { "Key": "Name", "Value": "aws-cdk-elbv2-integ/VPC/PublicSubnet2" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPublicSubnet2RouteTableAssociation5A808732": { @@ -183,12 +183,12 @@ "VPCPublicSubnet2DefaultRouteB7481BBA": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" - }, "DestinationCidrBlock": "0.0.0.0/0", "GatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "RouteTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" } }, "DependsOn": [ @@ -210,15 +210,15 @@ "VPCPublicSubnet2NATGateway3C070193": { "Type": "AWS::EC2::NatGateway", "Properties": { - "SubnetId": { - "Ref": "VPCPublicSubnet2Subnet74179F39" - }, "AllocationId": { "Fn::GetAtt": [ "VPCPublicSubnet2EIP4947BC00", "AllocationId" ] }, + "SubnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + }, "Tags": [ { "Key": "Name", @@ -234,9 +234,6 @@ "VPCPrivateSubnet1Subnet8BCA10E0": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "AvailabilityZone": { "Fn::Select": [ 0, @@ -260,21 +257,24 @@ "Key": "Name", "Value": "aws-cdk-elbv2-integ/VPC/PrivateSubnet1" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPrivateSubnet1RouteTableBE8A6027": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "Tags": [ { "Key": "Name", "Value": "aws-cdk-elbv2-integ/VPC/PrivateSubnet1" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPrivateSubnet1RouteTableAssociation347902D1": { @@ -291,21 +291,18 @@ "VPCPrivateSubnet1DefaultRouteAE1D6490": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" - }, "DestinationCidrBlock": "0.0.0.0/0", "NatGatewayId": { "Ref": "VPCPublicSubnet1NATGatewayE0556630" + }, + "RouteTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" } } }, "VPCPrivateSubnet2SubnetCFCDAA7A": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "AvailabilityZone": { "Fn::Select": [ 1, @@ -329,21 +326,24 @@ "Key": "Name", "Value": "aws-cdk-elbv2-integ/VPC/PrivateSubnet2" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPrivateSubnet2RouteTable0A19E10E": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "Tags": [ { "Key": "Name", "Value": "aws-cdk-elbv2-integ/VPC/PrivateSubnet2" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPrivateSubnet2RouteTableAssociation0C73D413": { @@ -360,12 +360,12 @@ "VPCPrivateSubnet2DefaultRouteF4F5CFD2": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" - }, "DestinationCidrBlock": "0.0.0.0/0", "NatGatewayId": { "Ref": "VPCPublicSubnet2NATGateway3C070193" + }, + "RouteTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" } } }, @@ -383,11 +383,11 @@ "VPCVPCGW99B986DC": { "Type": "AWS::EC2::VPCGatewayAttachment", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "InternetGatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "VpcId": { + "Ref": "VPCB9E5F0B4" } } }, @@ -414,6 +414,10 @@ { "Key": "routing.http.desync_mitigation_mode", "Value": "defensive" + }, + { + "Key": "client_keep_alive.seconds", + "Value": "1000" } ], "Scheme": "internet-facing", diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/cdk.out index 8ecc185e9dbee..1f0068d32659a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/cdk.out +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/cdk.out @@ -1 +1 @@ -{"version":"21.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-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/integ.json index 2e5f6f902fb7a..bf47e732763e6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/integ.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/integ.json @@ -1,5 +1,5 @@ { - "version": "21.0.0", + "version": "36.0.0", "testCases": { "Elbv2Test/DefaultTest": { "stacks": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/manifest.json index 8ad4568cd3e6c..cdb4b77174ab6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/manifest.json @@ -1,12 +1,6 @@ { - "version": "21.0.0", + "version": "36.0.0", "artifacts": { - "Tree": { - "type": "cdk:tree", - "properties": { - "file": "tree.json" - } - }, "aws-cdk-elbv2-integ.assets": { "type": "cdk:asset-manifest", "properties": { @@ -20,10 +14,11 @@ "environment": "aws://unknown-account/unknown-region", "properties": { "templateFile": "aws-cdk-elbv2-integ.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}/e0013d77550f4ad9d409277deba48d88a38a35f26ba1e36af47e988d8d2fc164.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/94c6c20cc1d7906c1b2328a47826a615c5175c928769994769ea4f60c79f394c.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -241,6 +236,7 @@ "environment": "aws://unknown-account/unknown-region", "properties": { "templateFile": "Elbv2TestDefaultTestDeployAssert82DC2DEA.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}", @@ -274,6 +270,12 @@ ] }, "displayName": "Elbv2Test/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-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/tree.json index 2a008316a3bab..bb57d65671ade 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.js.snapshot/tree.json @@ -4,14 +4,6 @@ "id": "App", "path": "", "children": { - "Tree": { - "id": "Tree", - "path": "Tree", - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.1.140" - } - }, "aws-cdk-elbv2-integ": { "id": "aws-cdk-elbv2-integ", "path": "aws-cdk-elbv2-integ", @@ -39,7 +31,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnVPC", + "fqn": "aws-cdk-lib.aws_ec2.CfnVPC", "version": "0.0.0" } }, @@ -53,9 +45,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "availabilityZone": { "Fn::Select": [ 0, @@ -79,11 +68,14 @@ "key": "Name", "value": "aws-cdk-elbv2-integ/VPC/PublicSubnet1" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -91,7 +83,7 @@ "id": "Acl", "path": "aws-cdk-elbv2-integ/VPC/PublicSubnet1/Acl", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -101,19 +93,19 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "tags": [ { "key": "Name", "value": "aws-cdk-elbv2-integ/VPC/PublicSubnet1" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -132,7 +124,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -142,17 +134,17 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VPCPublicSubnet1RouteTableFEE4B781" - }, "destinationCidrBlock": "0.0.0.0/0", "gatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "routeTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } }, @@ -172,7 +164,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnEIP", + "fqn": "aws-cdk-lib.aws_ec2.CfnEIP", "version": "0.0.0" } }, @@ -182,15 +174,15 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", "aws:cdk:cloudformation:props": { - "subnetId": { - "Ref": "VPCPublicSubnet1SubnetB4246D30" - }, "allocationId": { "Fn::GetAtt": [ "VPCPublicSubnet1EIP6AD938E8", "AllocationId" ] }, + "subnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + }, "tags": [ { "key": "Name", @@ -200,13 +192,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnNatGateway", + "fqn": "aws-cdk-lib.aws_ec2.CfnNatGateway", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PublicSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PublicSubnet", "version": "0.0.0" } }, @@ -220,9 +212,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "availabilityZone": { "Fn::Select": [ 1, @@ -246,11 +235,14 @@ "key": "Name", "value": "aws-cdk-elbv2-integ/VPC/PublicSubnet2" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -258,7 +250,7 @@ "id": "Acl", "path": "aws-cdk-elbv2-integ/VPC/PublicSubnet2/Acl", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -268,19 +260,19 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "tags": [ { "key": "Name", "value": "aws-cdk-elbv2-integ/VPC/PublicSubnet2" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -299,7 +291,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -309,17 +301,17 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" - }, "destinationCidrBlock": "0.0.0.0/0", "gatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "routeTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } }, @@ -339,7 +331,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnEIP", + "fqn": "aws-cdk-lib.aws_ec2.CfnEIP", "version": "0.0.0" } }, @@ -349,15 +341,15 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", "aws:cdk:cloudformation:props": { - "subnetId": { - "Ref": "VPCPublicSubnet2Subnet74179F39" - }, "allocationId": { "Fn::GetAtt": [ "VPCPublicSubnet2EIP4947BC00", "AllocationId" ] }, + "subnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + }, "tags": [ { "key": "Name", @@ -367,13 +359,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnNatGateway", + "fqn": "aws-cdk-lib.aws_ec2.CfnNatGateway", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PublicSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PublicSubnet", "version": "0.0.0" } }, @@ -387,9 +379,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "availabilityZone": { "Fn::Select": [ 0, @@ -413,11 +402,14 @@ "key": "Name", "value": "aws-cdk-elbv2-integ/VPC/PrivateSubnet1" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -425,7 +417,7 @@ "id": "Acl", "path": "aws-cdk-elbv2-integ/VPC/PrivateSubnet1/Acl", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -435,19 +427,19 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "tags": [ { "key": "Name", "value": "aws-cdk-elbv2-integ/VPC/PrivateSubnet1" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -466,7 +458,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -476,23 +468,23 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" - }, "destinationCidrBlock": "0.0.0.0/0", "natGatewayId": { "Ref": "VPCPublicSubnet1NATGatewayE0556630" + }, + "routeTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PrivateSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet", "version": "0.0.0" } }, @@ -506,9 +498,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "availabilityZone": { "Fn::Select": [ 1, @@ -532,11 +521,14 @@ "key": "Name", "value": "aws-cdk-elbv2-integ/VPC/PrivateSubnet2" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -544,7 +536,7 @@ "id": "Acl", "path": "aws-cdk-elbv2-integ/VPC/PrivateSubnet2/Acl", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -554,19 +546,19 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "tags": [ { "key": "Name", "value": "aws-cdk-elbv2-integ/VPC/PrivateSubnet2" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -585,7 +577,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -595,23 +587,23 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" - }, "destinationCidrBlock": "0.0.0.0/0", "natGatewayId": { "Ref": "VPCPublicSubnet2NATGateway3C070193" + }, + "routeTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PrivateSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet", "version": "0.0.0" } }, @@ -630,7 +622,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnInternetGateway", + "fqn": "aws-cdk-lib.aws_ec2.CfnInternetGateway", "version": "0.0.0" } }, @@ -640,22 +632,22 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::VPCGatewayAttachment", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "internetGatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "vpcId": { + "Ref": "VPCB9E5F0B4" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnVPCGatewayAttachment", + "fqn": "aws-cdk-lib.aws_ec2.CfnVPCGatewayAttachment", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.Vpc", + "fqn": "aws-cdk-lib.aws_ec2.Vpc", "version": "0.0.0" } }, @@ -689,6 +681,10 @@ { "key": "routing.http.desync_mitigation_mode", "value": "defensive" + }, + { + "key": "client_keep_alive.seconds", + "value": "1000" } ], "scheme": "internet-facing", @@ -712,7 +708,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-elasticloadbalancingv2.CfnLoadBalancer", + "fqn": "aws-cdk-lib.aws_elasticloadbalancingv2.CfnLoadBalancer", "version": "0.0.0" } }, @@ -742,19 +738,19 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSecurityGroup", + "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.SecurityGroup", + "fqn": "aws-cdk-lib.aws_ec2.SecurityGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer", + "fqn": "aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationLoadBalancer", "version": "0.0.0" } }, @@ -799,7 +795,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-elasticloadbalancingv2.CfnLoadBalancer", + "fqn": "aws-cdk-lib.aws_elasticloadbalancingv2.CfnLoadBalancer", "version": "0.0.0" } }, @@ -829,19 +825,19 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSecurityGroup", + "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.SecurityGroup", + "fqn": "aws-cdk-lib.aws_ec2.SecurityGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer", + "fqn": "aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationLoadBalancer", "version": "0.0.0" } }, @@ -886,7 +882,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-elasticloadbalancingv2.CfnLoadBalancer", + "fqn": "aws-cdk-lib.aws_elasticloadbalancingv2.CfnLoadBalancer", "version": "0.0.0" } }, @@ -916,25 +912,41 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSecurityGroup", + "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.SecurityGroup", + "fqn": "aws-cdk-lib.aws_ec2.SecurityGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer", + "fqn": "aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationLoadBalancer", + "version": "0.0.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "aws-cdk-elbv2-integ/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "aws-cdk-elbv2-integ/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/core.Stack", + "fqn": "aws-cdk-lib.Stack", "version": "0.0.0" } }, @@ -951,32 +963,58 @@ "path": "Elbv2Test/DefaultTest/Default", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.1.140" + "version": "10.3.0" } }, "DeployAssert": { "id": "DeployAssert", "path": "Elbv2Test/DefaultTest/DeployAssert", + "children": { + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "Elbv2Test/DefaultTest/DeployAssert/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "Elbv2Test/DefaultTest/DeployAssert/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, "constructInfo": { - "fqn": "@aws-cdk/core.Stack", + "fqn": "aws-cdk-lib.Stack", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/integ-tests.IntegTestCase", + "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/integ-tests.IntegTest", + "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/core.App", + "fqn": "aws-cdk-lib.App", "version": "0.0.0" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.ts index 995be1ba79d10..cc6bdeb1e3683 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.attributes.ts @@ -19,6 +19,7 @@ new elbv2.ApplicationLoadBalancer(stack, 'LB', { idleTimeout: cdk.Duration.seconds(1000), dropInvalidHeaderFields: true, desyncMitigationMode: elbv2.DesyncMitigationMode.DEFENSIVE, + clientKeepAlive: cdk.Duration.seconds(1000), }); new elbv2.ApplicationLoadBalancer(stack, 'DesyncMitigationModeMonitor', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/aws-cdk-nlb-attributes-integ.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/aws-cdk-nlb-attributes-integ.assets.json new file mode 100644 index 0000000000000..e77f03c32cea8 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/aws-cdk-nlb-attributes-integ.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "fde94b9ee2e36931660662e5ad6718e40f59c205fc43297b7480bf3e57157358": { + "source": { + "path": "aws-cdk-nlb-attributes-integ.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "fde94b9ee2e36931660662e5ad6718e40f59c205fc43297b7480bf3e57157358.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-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/aws-cdk-nlb-attributes-integ.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/aws-cdk-nlb-attributes-integ.template.json new file mode 100644 index 0000000000000..92f24238a0511 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/aws-cdk-nlb-attributes-integ.template.json @@ -0,0 +1,462 @@ +{ + "Resources": { + "VPCB9E5F0B4": { + "Type": "AWS::EC2::VPC", + "Properties": { + "CidrBlock": "10.0.0.0/16", + "EnableDnsHostnames": true, + "EnableDnsSupport": true, + "InstanceTenancy": "default", + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-nlb-attributes-integ/VPC" + } + ] + } + }, + "VPCPublicSubnet1SubnetB4246D30": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.0.0/18", + "MapPublicIpOnLaunch": true, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Public" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Public" + }, + { + "Key": "Name", + "Value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPublicSubnet1RouteTableFEE4B781": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPublicSubnet1RouteTableAssociation0B0896DC": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" + }, + "SubnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + } + } + }, + "VPCPublicSubnet1DefaultRoute91CEF279": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "GatewayId": { + "Ref": "VPCIGWB7E252D3" + }, + "RouteTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" + } + }, + "DependsOn": [ + "VPCVPCGW99B986DC" + ] + }, + "VPCPublicSubnet1EIP6AD938E8": { + "Type": "AWS::EC2::EIP", + "Properties": { + "Domain": "vpc", + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1" + } + ] + } + }, + "VPCPublicSubnet1NATGatewayE0556630": { + "Type": "AWS::EC2::NatGateway", + "Properties": { + "AllocationId": { + "Fn::GetAtt": [ + "VPCPublicSubnet1EIP6AD938E8", + "AllocationId" + ] + }, + "SubnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + }, + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1" + } + ] + }, + "DependsOn": [ + "VPCPublicSubnet1DefaultRoute91CEF279", + "VPCPublicSubnet1RouteTableAssociation0B0896DC" + ] + }, + "VPCPublicSubnet2Subnet74179F39": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.64.0/18", + "MapPublicIpOnLaunch": true, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Public" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Public" + }, + { + "Key": "Name", + "Value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPublicSubnet2RouteTable6F1A15F1": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPublicSubnet2RouteTableAssociation5A808732": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" + }, + "SubnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + } + } + }, + "VPCPublicSubnet2DefaultRouteB7481BBA": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "GatewayId": { + "Ref": "VPCIGWB7E252D3" + }, + "RouteTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" + } + }, + "DependsOn": [ + "VPCVPCGW99B986DC" + ] + }, + "VPCPublicSubnet2EIP4947BC00": { + "Type": "AWS::EC2::EIP", + "Properties": { + "Domain": "vpc", + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2" + } + ] + } + }, + "VPCPublicSubnet2NATGateway3C070193": { + "Type": "AWS::EC2::NatGateway", + "Properties": { + "AllocationId": { + "Fn::GetAtt": [ + "VPCPublicSubnet2EIP4947BC00", + "AllocationId" + ] + }, + "SubnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + }, + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2" + } + ] + }, + "DependsOn": [ + "VPCPublicSubnet2DefaultRouteB7481BBA", + "VPCPublicSubnet2RouteTableAssociation5A808732" + ] + }, + "VPCPrivateSubnet1Subnet8BCA10E0": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.128.0/18", + "MapPublicIpOnLaunch": false, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Private" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Private" + }, + { + "Key": "Name", + "Value": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet1" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPrivateSubnet1RouteTableBE8A6027": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet1" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPrivateSubnet1RouteTableAssociation347902D1": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" + }, + "SubnetId": { + "Ref": "VPCPrivateSubnet1Subnet8BCA10E0" + } + } + }, + "VPCPrivateSubnet1DefaultRouteAE1D6490": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "NatGatewayId": { + "Ref": "VPCPublicSubnet1NATGatewayE0556630" + }, + "RouteTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" + } + } + }, + "VPCPrivateSubnet2SubnetCFCDAA7A": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.192.0/18", + "MapPublicIpOnLaunch": false, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Private" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Private" + }, + { + "Key": "Name", + "Value": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet2" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPrivateSubnet2RouteTable0A19E10E": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet2" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPrivateSubnet2RouteTableAssociation0C73D413": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" + }, + "SubnetId": { + "Ref": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + } + }, + "VPCPrivateSubnet2DefaultRouteF4F5CFD2": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "NatGatewayId": { + "Ref": "VPCPublicSubnet2NATGateway3C070193" + }, + "RouteTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" + } + } + }, + "VPCIGWB7E252D3": { + "Type": "AWS::EC2::InternetGateway", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-nlb-attributes-integ/VPC" + } + ] + } + }, + "VPCVPCGW99B986DC": { + "Type": "AWS::EC2::VPCGatewayAttachment", + "Properties": { + "InternetGatewayId": { + "Ref": "VPCIGWB7E252D3" + }, + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "NLB55158F82": { + "Type": "AWS::ElasticLoadBalancingV2::LoadBalancer", + "Properties": { + "LoadBalancerAttributes": [ + { + "Key": "deletion_protection.enabled", + "Value": "false" + }, + { + "Key": "load_balancing.cross_zone.enabled", + "Value": "true" + }, + { + "Key": "ipv6.deny_all_igw_traffic", + "Value": "true" + }, + { + "Key": "dns_record.client_routing_policy", + "Value": "partial_availability_zone_affinity" + } + ], + "Scheme": "internal", + "Subnets": [ + { + "Ref": "VPCPrivateSubnet1Subnet8BCA10E0" + }, + { + "Ref": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + ], + "Type": "network" + } + } + }, + "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-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/cdk.out new file mode 100644 index 0000000000000..1f0068d32659a --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.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-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/integ.json new file mode 100644 index 0000000000000..e053d515e200b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/integ.json @@ -0,0 +1,12 @@ +{ + "version": "36.0.0", + "testCases": { + "nlb-attlibutes-integ/DefaultTest": { + "stacks": [ + "aws-cdk-nlb-attributes-integ" + ], + "assertionStack": "nlb-attlibutes-integ/DefaultTest/DeployAssert", + "assertionStackName": "nlbattlibutesintegDefaultTestDeployAssert2D727654" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/manifest.json new file mode 100644 index 0000000000000..7e9b4e6aa18a8 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/manifest.json @@ -0,0 +1,251 @@ +{ + "version": "36.0.0", + "artifacts": { + "aws-cdk-nlb-attributes-integ.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "aws-cdk-nlb-attributes-integ.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "aws-cdk-nlb-attributes-integ": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "aws-cdk-nlb-attributes-integ.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}/fde94b9ee2e36931660662e5ad6718e40f59c205fc43297b7480bf3e57157358.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "aws-cdk-nlb-attributes-integ.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-nlb-attributes-integ.assets" + ], + "metadata": { + "/aws-cdk-nlb-attributes-integ/VPC/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCB9E5F0B4" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1SubnetB4246D30" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1RouteTableFEE4B781" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1RouteTableAssociation0B0896DC" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1DefaultRoute91CEF279" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1/EIP": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1EIP6AD938E8" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1/NATGateway": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1NATGatewayE0556630" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2Subnet74179F39" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2RouteTable6F1A15F1" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2RouteTableAssociation5A808732" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2DefaultRouteB7481BBA" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2/EIP": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2EIP4947BC00" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2/NATGateway": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2NATGateway3C070193" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet1/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1Subnet8BCA10E0" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet1/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1RouteTableBE8A6027" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet1/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1RouteTableAssociation347902D1" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet1/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1DefaultRouteAE1D6490" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet2/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet2/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2RouteTable0A19E10E" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet2/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2RouteTableAssociation0C73D413" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet2/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2DefaultRouteF4F5CFD2" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/IGW": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCIGWB7E252D3" + } + ], + "/aws-cdk-nlb-attributes-integ/VPC/VPCGW": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCVPCGW99B986DC" + } + ], + "/aws-cdk-nlb-attributes-integ/NLB/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "NLB55158F82" + } + ], + "/aws-cdk-nlb-attributes-integ/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/aws-cdk-nlb-attributes-integ/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "aws-cdk-nlb-attributes-integ" + }, + "nlbattlibutesintegDefaultTestDeployAssert2D727654.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "nlbattlibutesintegDefaultTestDeployAssert2D727654.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "nlbattlibutesintegDefaultTestDeployAssert2D727654": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "nlbattlibutesintegDefaultTestDeployAssert2D727654.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": [ + "nlbattlibutesintegDefaultTestDeployAssert2D727654.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": [ + "nlbattlibutesintegDefaultTestDeployAssert2D727654.assets" + ], + "metadata": { + "/nlb-attlibutes-integ/DefaultTest/DeployAssert/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/nlb-attlibutes-integ/DefaultTest/DeployAssert/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "nlb-attlibutes-integ/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-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/nlbattlibutesintegDefaultTestDeployAssert2D727654.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/nlbattlibutesintegDefaultTestDeployAssert2D727654.assets.json new file mode 100644 index 0000000000000..b62025cc28315 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/nlbattlibutesintegDefaultTestDeployAssert2D727654.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { + "source": { + "path": "nlbattlibutesintegDefaultTestDeployAssert2D727654.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-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/nlbattlibutesintegDefaultTestDeployAssert2D727654.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/nlbattlibutesintegDefaultTestDeployAssert2D727654.template.json new file mode 100644 index 0000000000000..ad9d0fb73d1dd --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/nlbattlibutesintegDefaultTestDeployAssert2D727654.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-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/tree.json new file mode 100644 index 0000000000000..dfe987eaa13bc --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.js.snapshot/tree.json @@ -0,0 +1,795 @@ +{ + "version": "tree-0.1", + "tree": { + "id": "App", + "path": "", + "children": { + "aws-cdk-nlb-attributes-integ": { + "id": "aws-cdk-nlb-attributes-integ", + "path": "aws-cdk-nlb-attributes-integ", + "children": { + "VPC": { + "id": "VPC", + "path": "aws-cdk-nlb-attributes-integ/VPC", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-nlb-attributes-integ/VPC/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": "aws-cdk-nlb-attributes-integ/VPC" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnVPC", + "version": "0.0.0" + } + }, + "PublicSubnet1": { + "id": "PublicSubnet1", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "availabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.0.0/18", + "mapPublicIpOnLaunch": true, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Public" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Public" + }, + { + "key": "Name", + "value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", + "version": "0.0.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1/Acl", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", + "version": "0.0.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" + }, + "subnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", + "version": "0.0.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "gatewayId": { + "Ref": "VPCIGWB7E252D3" + }, + "routeTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + }, + "EIP": { + "id": "EIP", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1/EIP", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::EIP", + "aws:cdk:cloudformation:props": { + "domain": "vpc", + "tags": [ + { + "key": "Name", + "value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnEIP", + "version": "0.0.0" + } + }, + "NATGateway": { + "id": "NATGateway", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1/NATGateway", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", + "aws:cdk:cloudformation:props": { + "allocationId": { + "Fn::GetAtt": [ + "VPCPublicSubnet1EIP6AD938E8", + "AllocationId" + ] + }, + "subnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + }, + "tags": [ + { + "key": "Name", + "value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet1" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnNatGateway", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.PublicSubnet", + "version": "0.0.0" + } + }, + "PublicSubnet2": { + "id": "PublicSubnet2", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "availabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.64.0/18", + "mapPublicIpOnLaunch": true, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Public" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Public" + }, + { + "key": "Name", + "value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", + "version": "0.0.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2/Acl", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", + "version": "0.0.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" + }, + "subnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", + "version": "0.0.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "gatewayId": { + "Ref": "VPCIGWB7E252D3" + }, + "routeTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + }, + "EIP": { + "id": "EIP", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2/EIP", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::EIP", + "aws:cdk:cloudformation:props": { + "domain": "vpc", + "tags": [ + { + "key": "Name", + "value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnEIP", + "version": "0.0.0" + } + }, + "NATGateway": { + "id": "NATGateway", + "path": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2/NATGateway", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", + "aws:cdk:cloudformation:props": { + "allocationId": { + "Fn::GetAtt": [ + "VPCPublicSubnet2EIP4947BC00", + "AllocationId" + ] + }, + "subnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + }, + "tags": [ + { + "key": "Name", + "value": "aws-cdk-nlb-attributes-integ/VPC/PublicSubnet2" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnNatGateway", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.PublicSubnet", + "version": "0.0.0" + } + }, + "PrivateSubnet1": { + "id": "PrivateSubnet1", + "path": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet1", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet1/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "availabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.128.0/18", + "mapPublicIpOnLaunch": false, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Private" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Private" + }, + { + "key": "Name", + "value": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet1" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", + "version": "0.0.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet1/Acl", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet1/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet1" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", + "version": "0.0.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet1/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" + }, + "subnetId": { + "Ref": "VPCPrivateSubnet1Subnet8BCA10E0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", + "version": "0.0.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet1/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "natGatewayId": { + "Ref": "VPCPublicSubnet1NATGatewayE0556630" + }, + "routeTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet", + "version": "0.0.0" + } + }, + "PrivateSubnet2": { + "id": "PrivateSubnet2", + "path": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet2", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet2/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "availabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.192.0/18", + "mapPublicIpOnLaunch": false, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Private" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Private" + }, + { + "key": "Name", + "value": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet2" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", + "version": "0.0.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet2/Acl", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet2/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet2" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", + "version": "0.0.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet2/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" + }, + "subnetId": { + "Ref": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", + "version": "0.0.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-nlb-attributes-integ/VPC/PrivateSubnet2/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "natGatewayId": { + "Ref": "VPCPublicSubnet2NATGateway3C070193" + }, + "routeTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" + } + } + }, + "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": "aws-cdk-nlb-attributes-integ/VPC/IGW", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::InternetGateway", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-nlb-attributes-integ/VPC" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnInternetGateway", + "version": "0.0.0" + } + }, + "VPCGW": { + "id": "VPCGW", + "path": "aws-cdk-nlb-attributes-integ/VPC/VPCGW", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::VPCGatewayAttachment", + "aws:cdk:cloudformation:props": { + "internetGatewayId": { + "Ref": "VPCIGWB7E252D3" + }, + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.CfnVPCGatewayAttachment", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_ec2.Vpc", + "version": "0.0.0" + } + }, + "NLB": { + "id": "NLB", + "path": "aws-cdk-nlb-attributes-integ/NLB", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-nlb-attributes-integ/NLB/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::ElasticLoadBalancingV2::LoadBalancer", + "aws:cdk:cloudformation:props": { + "loadBalancerAttributes": [ + { + "key": "deletion_protection.enabled", + "value": "false" + }, + { + "key": "load_balancing.cross_zone.enabled", + "value": "true" + }, + { + "key": "ipv6.deny_all_igw_traffic", + "value": "true" + }, + { + "key": "dns_record.client_routing_policy", + "value": "partial_availability_zone_affinity" + } + ], + "scheme": "internal", + "subnets": [ + { + "Ref": "VPCPrivateSubnet1Subnet8BCA10E0" + }, + { + "Ref": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + ], + "type": "network" + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_elasticloadbalancingv2.CfnLoadBalancer", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_elasticloadbalancingv2.NetworkLoadBalancer", + "version": "0.0.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "aws-cdk-nlb-attributes-integ/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "aws-cdk-nlb-attributes-integ/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + }, + "nlb-attlibutes-integ": { + "id": "nlb-attlibutes-integ", + "path": "nlb-attlibutes-integ", + "children": { + "DefaultTest": { + "id": "DefaultTest", + "path": "nlb-attlibutes-integ/DefaultTest", + "children": { + "Default": { + "id": "Default", + "path": "nlb-attlibutes-integ/DefaultTest/Default", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DeployAssert": { + "id": "DeployAssert", + "path": "nlb-attlibutes-integ/DefaultTest/DeployAssert", + "children": { + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "nlb-attlibutes-integ/DefaultTest/DeployAssert/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "nlb-attlibutes-integ/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-elasticloadbalancingv2/test/integ.nlb-attributes.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.ts new file mode 100644 index 0000000000000..2e83d346c4095 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb-attributes.ts @@ -0,0 +1,26 @@ +import * as ec2 from 'aws-cdk-lib/aws-ec2'; +import * as integ from '@aws-cdk/integ-tests-alpha'; +import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; +import { App, Stack } from 'aws-cdk-lib'; + +const app = new App(); +const stack = new Stack(app, 'aws-cdk-nlb-attributes-integ'); + +const vpc = new ec2.Vpc(stack, 'VPC', { + restrictDefaultSecurityGroup: false, + maxAzs: 2, +}); + +new elbv2.NetworkLoadBalancer(stack, 'NLB', { + vpc, + crossZoneEnabled: true, + deletionProtection: false, + denyAllIgwTraffic: true, + clientRoutingPolicy: elbv2.ClientRoutingPolicy.PARTIAL_AVAILABILITY_ZONE_AFFINITY, +}); + +new integ.IntegTest(app, 'nlb-attlibutes-integ', { + testCases: [stack], +}); + +app.synth(); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/IntegTestDefaultTestDeployAssertE3E7D2A4.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/IntegTestDefaultTestDeployAssertE3E7D2A4.assets.json new file mode 100644 index 0000000000000..87dfbae32bf67 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/IntegTestDefaultTestDeployAssertE3E7D2A4.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { + "source": { + "path": "IntegTestDefaultTestDeployAssertE3E7D2A4.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-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/IntegTestDefaultTestDeployAssertE3E7D2A4.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/IntegTestDefaultTestDeployAssertE3E7D2A4.template.json new file mode 100644 index 0000000000000..ad9d0fb73d1dd --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/IntegTestDefaultTestDeployAssertE3E7D2A4.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-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/aws-cdk-elbv2-integ-enforce-sg-inbound-rules.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/aws-cdk-elbv2-integ-enforce-sg-inbound-rules.assets.json new file mode 100644 index 0000000000000..dbee909f39526 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/aws-cdk-elbv2-integ-enforce-sg-inbound-rules.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "e7bde62df25ebdccb0f847ca080ea21ea0c8580a4d62cdec4adb3dec77ce2b91": { + "source": { + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "e7bde62df25ebdccb0f847ca080ea21ea0c8580a4d62cdec4adb3dec77ce2b91.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-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/aws-cdk-elbv2-integ-enforce-sg-inbound-rules.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/aws-cdk-elbv2-integ-enforce-sg-inbound-rules.template.json new file mode 100644 index 0000000000000..82ac66b9f1e21 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/aws-cdk-elbv2-integ-enforce-sg-inbound-rules.template.json @@ -0,0 +1,481 @@ +{ + "Resources": { + "VPCB9E5F0B4": { + "Type": "AWS::EC2::VPC", + "Properties": { + "CidrBlock": "10.0.0.0/16", + "EnableDnsHostnames": true, + "EnableDnsSupport": true, + "InstanceTenancy": "default", + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC" + } + ] + } + }, + "VPCPublicSubnet1SubnetB4246D30": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.0.0/18", + "MapPublicIpOnLaunch": true, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Public" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Public" + }, + { + "Key": "Name", + "Value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPublicSubnet1RouteTableFEE4B781": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPublicSubnet1RouteTableAssociation0B0896DC": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" + }, + "SubnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + } + } + }, + "VPCPublicSubnet1DefaultRoute91CEF279": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "GatewayId": { + "Ref": "VPCIGWB7E252D3" + }, + "RouteTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" + } + }, + "DependsOn": [ + "VPCVPCGW99B986DC" + ] + }, + "VPCPublicSubnet1EIP6AD938E8": { + "Type": "AWS::EC2::EIP", + "Properties": { + "Domain": "vpc", + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1" + } + ] + } + }, + "VPCPublicSubnet1NATGatewayE0556630": { + "Type": "AWS::EC2::NatGateway", + "Properties": { + "AllocationId": { + "Fn::GetAtt": [ + "VPCPublicSubnet1EIP6AD938E8", + "AllocationId" + ] + }, + "SubnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + }, + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1" + } + ] + }, + "DependsOn": [ + "VPCPublicSubnet1DefaultRoute91CEF279", + "VPCPublicSubnet1RouteTableAssociation0B0896DC" + ] + }, + "VPCPublicSubnet2Subnet74179F39": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.64.0/18", + "MapPublicIpOnLaunch": true, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Public" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Public" + }, + { + "Key": "Name", + "Value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPublicSubnet2RouteTable6F1A15F1": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPublicSubnet2RouteTableAssociation5A808732": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" + }, + "SubnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + } + } + }, + "VPCPublicSubnet2DefaultRouteB7481BBA": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "GatewayId": { + "Ref": "VPCIGWB7E252D3" + }, + "RouteTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" + } + }, + "DependsOn": [ + "VPCVPCGW99B986DC" + ] + }, + "VPCPublicSubnet2EIP4947BC00": { + "Type": "AWS::EC2::EIP", + "Properties": { + "Domain": "vpc", + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2" + } + ] + } + }, + "VPCPublicSubnet2NATGateway3C070193": { + "Type": "AWS::EC2::NatGateway", + "Properties": { + "AllocationId": { + "Fn::GetAtt": [ + "VPCPublicSubnet2EIP4947BC00", + "AllocationId" + ] + }, + "SubnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + }, + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2" + } + ] + }, + "DependsOn": [ + "VPCPublicSubnet2DefaultRouteB7481BBA", + "VPCPublicSubnet2RouteTableAssociation5A808732" + ] + }, + "VPCPrivateSubnet1Subnet8BCA10E0": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.128.0/18", + "MapPublicIpOnLaunch": false, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Private" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Private" + }, + { + "Key": "Name", + "Value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet1" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPrivateSubnet1RouteTableBE8A6027": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet1" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPrivateSubnet1RouteTableAssociation347902D1": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" + }, + "SubnetId": { + "Ref": "VPCPrivateSubnet1Subnet8BCA10E0" + } + } + }, + "VPCPrivateSubnet1DefaultRouteAE1D6490": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "NatGatewayId": { + "Ref": "VPCPublicSubnet1NATGatewayE0556630" + }, + "RouteTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" + } + } + }, + "VPCPrivateSubnet2SubnetCFCDAA7A": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.192.0/18", + "MapPublicIpOnLaunch": false, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Private" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Private" + }, + { + "Key": "Name", + "Value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet2" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPrivateSubnet2RouteTable0A19E10E": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet2" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "VPCPrivateSubnet2RouteTableAssociation0C73D413": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" + }, + "SubnetId": { + "Ref": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + } + }, + "VPCPrivateSubnet2DefaultRouteF4F5CFD2": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "NatGatewayId": { + "Ref": "VPCPublicSubnet2NATGateway3C070193" + }, + "RouteTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" + } + } + }, + "VPCIGWB7E252D3": { + "Type": "AWS::EC2::InternetGateway", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC" + } + ] + } + }, + "VPCVPCGW99B986DC": { + "Type": "AWS::EC2::VPCGatewayAttachment", + "Properties": { + "InternetGatewayId": { + "Ref": "VPCIGWB7E252D3" + }, + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "SGADB53937": { + "Type": "AWS::EC2::SecurityGroup", + "Properties": { + "GroupDescription": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/SG", + "SecurityGroupEgress": [ + { + "CidrIp": "0.0.0.0/0", + "Description": "Allow all outbound traffic by default", + "IpProtocol": "-1" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "LB8A12904C": { + "Type": "AWS::ElasticLoadBalancingV2::LoadBalancer", + "Properties": { + "EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic": "on", + "LoadBalancerAttributes": [ + { + "Key": "deletion_protection.enabled", + "Value": "false" + } + ], + "Scheme": "internet-facing", + "SecurityGroups": [ + { + "Fn::GetAtt": [ + "SGADB53937", + "GroupId" + ] + } + ], + "Subnets": [ + { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + }, + { + "Ref": "VPCPublicSubnet2Subnet74179F39" + } + ], + "Type": "network" + }, + "DependsOn": [ + "VPCPublicSubnet1DefaultRoute91CEF279", + "VPCPublicSubnet1RouteTableAssociation0B0896DC", + "VPCPublicSubnet2DefaultRouteB7481BBA", + "VPCPublicSubnet2RouteTableAssociation5A808732" + ] + } + }, + "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-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/cdk.out new file mode 100644 index 0000000000000..1f0068d32659a --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.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-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/integ.json new file mode 100644 index 0000000000000..c372d1f68bf76 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/integ.json @@ -0,0 +1,12 @@ +{ + "version": "36.0.0", + "testCases": { + "IntegTest/DefaultTest": { + "stacks": [ + "aws-cdk-elbv2-integ-enforce-sg-inbound-rules" + ], + "assertionStack": "IntegTest/DefaultTest/DeployAssert", + "assertionStackName": "IntegTestDefaultTestDeployAssertE3E7D2A4" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/manifest.json new file mode 100644 index 0000000000000..b9ba57e330325 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/manifest.json @@ -0,0 +1,257 @@ +{ + "version": "36.0.0", + "artifacts": { + "aws-cdk-elbv2-integ-enforce-sg-inbound-rules.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "aws-cdk-elbv2-integ-enforce-sg-inbound-rules": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules.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}/e7bde62df25ebdccb0f847ca080ea21ea0c8580a4d62cdec4adb3dec77ce2b91.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "aws-cdk-elbv2-integ-enforce-sg-inbound-rules.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-elbv2-integ-enforce-sg-inbound-rules.assets" + ], + "metadata": { + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCB9E5F0B4" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1SubnetB4246D30" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1RouteTableFEE4B781" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1RouteTableAssociation0B0896DC" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1DefaultRoute91CEF279" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1/EIP": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1EIP6AD938E8" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1/NATGateway": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1NATGatewayE0556630" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2Subnet74179F39" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2RouteTable6F1A15F1" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2RouteTableAssociation5A808732" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2DefaultRouteB7481BBA" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2/EIP": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2EIP4947BC00" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2/NATGateway": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2NATGateway3C070193" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet1/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1Subnet8BCA10E0" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet1/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1RouteTableBE8A6027" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet1/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1RouteTableAssociation347902D1" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet1/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1DefaultRouteAE1D6490" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet2/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet2/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2RouteTable0A19E10E" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet2/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2RouteTableAssociation0C73D413" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet2/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2DefaultRouteF4F5CFD2" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/IGW": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCIGWB7E252D3" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/VPCGW": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCVPCGW99B986DC" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/SG/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "SGADB53937" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/LB/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LB8A12904C" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/aws-cdk-elbv2-integ-enforce-sg-inbound-rules/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules" + }, + "IntegTestDefaultTestDeployAssertE3E7D2A4.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "IntegTestDefaultTestDeployAssertE3E7D2A4.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "IntegTestDefaultTestDeployAssertE3E7D2A4": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "IntegTestDefaultTestDeployAssertE3E7D2A4.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": [ + "IntegTestDefaultTestDeployAssertE3E7D2A4.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": [ + "IntegTestDefaultTestDeployAssertE3E7D2A4.assets" + ], + "metadata": { + "/IntegTest/DefaultTest/DeployAssert/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/IntegTest/DefaultTest/DeployAssert/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "IntegTest/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-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/tree.json new file mode 100644 index 0000000000000..db08c59140fe0 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.js.snapshot/tree.json @@ -0,0 +1,826 @@ +{ + "version": "tree-0.1", + "tree": { + "id": "App", + "path": "", + "children": { + "aws-cdk-elbv2-integ-enforce-sg-inbound-rules": { + "id": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules", + "children": { + "VPC": { + "id": "VPC", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/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": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "PublicSubnet1": { + "id": "PublicSubnet1", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "availabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.0.0/18", + "mapPublicIpOnLaunch": true, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Public" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Public" + }, + { + "key": "Name", + "value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1/Acl", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" + }, + "subnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "gatewayId": { + "Ref": "VPCIGWB7E252D3" + }, + "routeTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "EIP": { + "id": "EIP", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1/EIP", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::EIP", + "aws:cdk:cloudformation:props": { + "domain": "vpc", + "tags": [ + { + "key": "Name", + "value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "NATGateway": { + "id": "NATGateway", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1/NATGateway", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", + "aws:cdk:cloudformation:props": { + "allocationId": { + "Fn::GetAtt": [ + "VPCPublicSubnet1EIP6AD938E8", + "AllocationId" + ] + }, + "subnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + }, + "tags": [ + { + "key": "Name", + "value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet1" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "PublicSubnet2": { + "id": "PublicSubnet2", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "availabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.64.0/18", + "mapPublicIpOnLaunch": true, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Public" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Public" + }, + { + "key": "Name", + "value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2/Acl", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" + }, + "subnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "gatewayId": { + "Ref": "VPCIGWB7E252D3" + }, + "routeTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "EIP": { + "id": "EIP", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2/EIP", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::EIP", + "aws:cdk:cloudformation:props": { + "domain": "vpc", + "tags": [ + { + "key": "Name", + "value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "NATGateway": { + "id": "NATGateway", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2/NATGateway", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", + "aws:cdk:cloudformation:props": { + "allocationId": { + "Fn::GetAtt": [ + "VPCPublicSubnet2EIP4947BC00", + "AllocationId" + ] + }, + "subnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + }, + "tags": [ + { + "key": "Name", + "value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PublicSubnet2" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "PrivateSubnet1": { + "id": "PrivateSubnet1", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet1", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet1/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "availabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.128.0/18", + "mapPublicIpOnLaunch": false, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Private" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Private" + }, + { + "key": "Name", + "value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet1" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet1/Acl", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet1/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet1" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet1/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" + }, + "subnetId": { + "Ref": "VPCPrivateSubnet1Subnet8BCA10E0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet1/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "natGatewayId": { + "Ref": "VPCPublicSubnet1NATGatewayE0556630" + }, + "routeTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "PrivateSubnet2": { + "id": "PrivateSubnet2", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet2", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet2/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "availabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.192.0/18", + "mapPublicIpOnLaunch": false, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Private" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Private" + }, + { + "key": "Name", + "value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet2" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet2/Acl", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet2/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet2" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet2/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" + }, + "subnetId": { + "Ref": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/PrivateSubnet2/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "natGatewayId": { + "Ref": "VPCPublicSubnet2NATGateway3C070193" + }, + "routeTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "IGW": { + "id": "IGW", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/IGW", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::InternetGateway", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "VPCGW": { + "id": "VPCGW", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/VPC/VPCGW", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::VPCGatewayAttachment", + "aws:cdk:cloudformation:props": { + "internetGatewayId": { + "Ref": "VPCIGWB7E252D3" + }, + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "SG": { + "id": "SG", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/SG", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/SG/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroup", + "aws:cdk:cloudformation:props": { + "groupDescription": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/SG", + "securityGroupEgress": [ + { + "cidrIp": "0.0.0.0/0", + "description": "Allow all outbound traffic by default", + "ipProtocol": "-1" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "LB": { + "id": "LB", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/LB", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/LB/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::ElasticLoadBalancingV2::LoadBalancer", + "aws:cdk:cloudformation:props": { + "enforceSecurityGroupInboundRulesOnPrivateLinkTraffic": "on", + "loadBalancerAttributes": [ + { + "key": "deletion_protection.enabled", + "value": "false" + } + ], + "scheme": "internet-facing", + "securityGroups": [ + { + "Fn::GetAtt": [ + "SGADB53937", + "GroupId" + ] + } + ], + "subnets": [ + { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + }, + { + "Ref": "VPCPublicSubnet2Subnet74179F39" + } + ], + "type": "network" + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/BootstrapVersion", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "aws-cdk-elbv2-integ-enforce-sg-inbound-rules/CheckBootstrapVersion", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "IntegTest": { + "id": "IntegTest", + "path": "IntegTest", + "children": { + "DefaultTest": { + "id": "DefaultTest", + "path": "IntegTest/DefaultTest", + "children": { + "Default": { + "id": "Default", + "path": "IntegTest/DefaultTest/Default", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DeployAssert": { + "id": "DeployAssert", + "path": "IntegTest/DefaultTest/DeployAssert", + "children": { + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "IntegTest/DefaultTest/DeployAssert/BootstrapVersion", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "IntegTest/DefaultTest/DeployAssert/CheckBootstrapVersion", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.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": "constructs.Construct", + "version": "10.3.0" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.ts new file mode 100644 index 0000000000000..fea5f2866179d --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.enforce-sg-inbound-rules.ts @@ -0,0 +1,23 @@ +import * as ec2 from 'aws-cdk-lib/aws-ec2'; +import * as cdk from 'aws-cdk-lib'; +import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'; +import { IntegTest } from '@aws-cdk/integ-tests-alpha'; + +const app = new cdk.App(); +const stack = new cdk.Stack(app, 'aws-cdk-elbv2-integ-enforce-sg-inbound-rules'); + +const vpc = new ec2.Vpc(stack, 'VPC', { + restrictDefaultSecurityGroup: false, + maxAzs: 2, +}); + +new elbv2.NetworkLoadBalancer(stack, 'LB', { + vpc, + internetFacing: true, + securityGroups: [ + new ec2.SecurityGroup(stack, 'SG', { vpc }), + ], + enforceSecurityGroupInboundRulesOnPrivateLinkTraffic: true, +}); + +new IntegTest(app, 'IntegTest', { testCases: [stack] }); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5.bundle/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.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.ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5.bundle/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.js.snapshot/asset.310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17.bundle/index.js index f64f691d7ce65..58396e8540522 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5.bundle/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.js.snapshot/asset.310f432b946edeef3316f39f32b344b6bdc401a3b438433db42adadab1bf5e17.bundle/index.js @@ -1,3 +1,4 @@ +"use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; @@ -32231,6 +32232,7 @@ var CustomResourceHandler = class { constructor(event, context) { this.event = event; this.context = context; + this.timedOut = false; this.timeout = setTimeout(async () => { await this.respond({ status: "FAILED", @@ -32242,9 +32244,6 @@ 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 @@ -32378,7 +32377,6 @@ 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-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/aws-cdk-ec2-vpc-endpoint-service.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/aws-cdk-ec2-vpc-endpoint-service.assets.json index 73554612de597..7e55a126fcd09 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/aws-cdk-ec2-vpc-endpoint-service.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/aws-cdk-ec2-vpc-endpoint-service.assets.json @@ -1,7 +1,7 @@ { - "version": "20.0.0", + "version": "36.0.0", "files": { - "dca8c6f29f9cb97c3091fd8ea69f720a8c9ff8f0fe20301e64be7b4db1fd7ca2": { + "48343d2f7c978d432f304a99e23ee0dff7134e50337ead0cebee5112e9b31f16": { "source": { "path": "aws-cdk-ec2-vpc-endpoint-service.template.json", "packaging": "file" @@ -9,7 +9,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "dca8c6f29f9cb97c3091fd8ea69f720a8c9ff8f0fe20301e64be7b4db1fd7ca2.json", + "objectKey": "48343d2f7c978d432f304a99e23ee0dff7134e50337ead0cebee5112e9b31f16.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-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/aws-cdk-ec2-vpc-endpoint-service.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/aws-cdk-ec2-vpc-endpoint-service.template.json index b6a82772e1960..a584e76c17d36 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/aws-cdk-ec2-vpc-endpoint-service.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/aws-cdk-ec2-vpc-endpoint-service.template.json @@ -18,9 +18,6 @@ "VPCPublicSubnet1SubnetB4246D30": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "AvailabilityZone": { "Fn::Select": [ 0, @@ -44,21 +41,24 @@ "Key": "Name", "Value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PublicSubnet1" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPublicSubnet1RouteTableFEE4B781": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "Tags": [ { "Key": "Name", "Value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PublicSubnet1" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPublicSubnet1RouteTableAssociation0B0896DC": { @@ -75,12 +75,12 @@ "VPCPublicSubnet1DefaultRoute91CEF279": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VPCPublicSubnet1RouteTableFEE4B781" - }, "DestinationCidrBlock": "0.0.0.0/0", "GatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "RouteTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" } }, "DependsOn": [ @@ -102,15 +102,15 @@ "VPCPublicSubnet1NATGatewayE0556630": { "Type": "AWS::EC2::NatGateway", "Properties": { - "SubnetId": { - "Ref": "VPCPublicSubnet1SubnetB4246D30" - }, "AllocationId": { "Fn::GetAtt": [ "VPCPublicSubnet1EIP6AD938E8", "AllocationId" ] }, + "SubnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + }, "Tags": [ { "Key": "Name", @@ -126,9 +126,6 @@ "VPCPublicSubnet2Subnet74179F39": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "AvailabilityZone": { "Fn::Select": [ 1, @@ -152,21 +149,24 @@ "Key": "Name", "Value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PublicSubnet2" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPublicSubnet2RouteTable6F1A15F1": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "Tags": [ { "Key": "Name", "Value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PublicSubnet2" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPublicSubnet2RouteTableAssociation5A808732": { @@ -183,12 +183,12 @@ "VPCPublicSubnet2DefaultRouteB7481BBA": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" - }, "DestinationCidrBlock": "0.0.0.0/0", "GatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "RouteTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" } }, "DependsOn": [ @@ -210,15 +210,15 @@ "VPCPublicSubnet2NATGateway3C070193": { "Type": "AWS::EC2::NatGateway", "Properties": { - "SubnetId": { - "Ref": "VPCPublicSubnet2Subnet74179F39" - }, "AllocationId": { "Fn::GetAtt": [ "VPCPublicSubnet2EIP4947BC00", "AllocationId" ] }, + "SubnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + }, "Tags": [ { "Key": "Name", @@ -234,9 +234,6 @@ "VPCPrivateSubnet1Subnet8BCA10E0": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "AvailabilityZone": { "Fn::Select": [ 0, @@ -260,21 +257,24 @@ "Key": "Name", "Value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PrivateSubnet1" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPrivateSubnet1RouteTableBE8A6027": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "Tags": [ { "Key": "Name", "Value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PrivateSubnet1" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPrivateSubnet1RouteTableAssociation347902D1": { @@ -291,21 +291,18 @@ "VPCPrivateSubnet1DefaultRouteAE1D6490": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" - }, "DestinationCidrBlock": "0.0.0.0/0", "NatGatewayId": { "Ref": "VPCPublicSubnet1NATGatewayE0556630" + }, + "RouteTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" } } }, "VPCPrivateSubnet2SubnetCFCDAA7A": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "AvailabilityZone": { "Fn::Select": [ 1, @@ -329,21 +326,24 @@ "Key": "Name", "Value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PrivateSubnet2" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPrivateSubnet2RouteTable0A19E10E": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "Tags": [ { "Key": "Name", "Value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PrivateSubnet2" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPrivateSubnet2RouteTableAssociation0C73D413": { @@ -360,12 +360,12 @@ "VPCPrivateSubnet2DefaultRouteF4F5CFD2": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" - }, "DestinationCidrBlock": "0.0.0.0/0", "NatGatewayId": { "Ref": "VPCPublicSubnet2NATGateway3C070193" + }, + "RouteTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" } } }, @@ -383,11 +383,11 @@ "VPCVPCGW99B986DC": { "Type": "AWS::EC2::VPCGatewayAttachment", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "InternetGatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "VpcId": { + "Ref": "VPCB9E5F0B4" } } }, @@ -458,12 +458,13 @@ "MyVpcEndpointServiceWithPrincipalsPermissions29F9BD5A": { "Type": "AWS::EC2::VPCEndpointServicePermissions", "Properties": { + "AllowedPrincipals": [ + "arn:aws:iam::123456789012:root", + "ec2.amazonaws.com" + ], "ServiceId": { "Ref": "MyVpcEndpointServiceWithPrincipals41EE2DF2" - }, - "AllowedPrincipals": [ - "arn:aws:iam::123456789012:root" - ] + } } } }, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/cdk.out index 588d7b269d34f..1f0068d32659a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/cdk.out +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/cdk.out @@ -1 +1 @@ -{"version":"20.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-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/integ.json index 55a8721b7882e..42410539fb4cd 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/integ.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/integ.json @@ -1,5 +1,5 @@ { - "version": "20.0.0", + "version": "36.0.0", "testCases": { "integ.vpc-endpoint-service": { "stacks": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/manifest.json index 95360b8ffed6f..75955cc4a642e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/manifest.json @@ -1,12 +1,6 @@ { - "version": "20.0.0", + "version": "36.0.0", "artifacts": { - "Tree": { - "type": "cdk:tree", - "properties": { - "file": "tree.json" - } - }, "aws-cdk-ec2-vpc-endpoint-service.assets": { "type": "cdk:asset-manifest", "properties": { @@ -20,10 +14,11 @@ "environment": "aws://unknown-account/unknown-region", "properties": { "templateFile": "aws-cdk-ec2-vpc-endpoint-service.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}/dca8c6f29f9cb97c3091fd8ea69f720a8c9ff8f0fe20301e64be7b4db1fd7ca2.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/48343d2f7c978d432f304a99e23ee0dff7134e50337ead0cebee5112e9b31f16.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -233,6 +228,12 @@ ] }, "displayName": "aws-cdk-ec2-vpc-endpoint-service" + }, + "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-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/tree.json index 9a30c0df0107d..be5e71860f044 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.js.snapshot/tree.json @@ -4,14 +4,6 @@ "id": "App", "path": "", "children": { - "Tree": { - "id": "Tree", - "path": "Tree", - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.1.85" - } - }, "aws-cdk-ec2-vpc-endpoint-service": { "id": "aws-cdk-ec2-vpc-endpoint-service", "path": "aws-cdk-ec2-vpc-endpoint-service", @@ -39,7 +31,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnVPC", + "fqn": "aws-cdk-lib.aws_ec2.CfnVPC", "version": "0.0.0" } }, @@ -53,9 +45,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "availabilityZone": { "Fn::Select": [ 0, @@ -79,11 +68,14 @@ "key": "Name", "value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PublicSubnet1" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -91,8 +83,8 @@ "id": "Acl", "path": "aws-cdk-ec2-vpc-endpoint-service/VPC/PublicSubnet1/Acl", "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.1.85" + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" } }, "RouteTable": { @@ -101,19 +93,19 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "tags": [ { "key": "Name", "value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PublicSubnet1" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -132,7 +124,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -142,17 +134,17 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VPCPublicSubnet1RouteTableFEE4B781" - }, "destinationCidrBlock": "0.0.0.0/0", "gatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "routeTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } }, @@ -172,7 +164,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnEIP", + "fqn": "aws-cdk-lib.aws_ec2.CfnEIP", "version": "0.0.0" } }, @@ -182,15 +174,15 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", "aws:cdk:cloudformation:props": { - "subnetId": { - "Ref": "VPCPublicSubnet1SubnetB4246D30" - }, "allocationId": { "Fn::GetAtt": [ "VPCPublicSubnet1EIP6AD938E8", "AllocationId" ] }, + "subnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + }, "tags": [ { "key": "Name", @@ -200,13 +192,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnNatGateway", + "fqn": "aws-cdk-lib.aws_ec2.CfnNatGateway", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PublicSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PublicSubnet", "version": "0.0.0" } }, @@ -220,9 +212,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "availabilityZone": { "Fn::Select": [ 1, @@ -246,11 +235,14 @@ "key": "Name", "value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PublicSubnet2" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -258,8 +250,8 @@ "id": "Acl", "path": "aws-cdk-ec2-vpc-endpoint-service/VPC/PublicSubnet2/Acl", "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.1.85" + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" } }, "RouteTable": { @@ -268,19 +260,19 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "tags": [ { "key": "Name", "value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PublicSubnet2" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -299,7 +291,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -309,17 +301,17 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" - }, "destinationCidrBlock": "0.0.0.0/0", "gatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "routeTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } }, @@ -339,7 +331,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnEIP", + "fqn": "aws-cdk-lib.aws_ec2.CfnEIP", "version": "0.0.0" } }, @@ -349,15 +341,15 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", "aws:cdk:cloudformation:props": { - "subnetId": { - "Ref": "VPCPublicSubnet2Subnet74179F39" - }, "allocationId": { "Fn::GetAtt": [ "VPCPublicSubnet2EIP4947BC00", "AllocationId" ] }, + "subnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + }, "tags": [ { "key": "Name", @@ -367,13 +359,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnNatGateway", + "fqn": "aws-cdk-lib.aws_ec2.CfnNatGateway", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PublicSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PublicSubnet", "version": "0.0.0" } }, @@ -387,9 +379,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "availabilityZone": { "Fn::Select": [ 0, @@ -413,11 +402,14 @@ "key": "Name", "value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PrivateSubnet1" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -425,8 +417,8 @@ "id": "Acl", "path": "aws-cdk-ec2-vpc-endpoint-service/VPC/PrivateSubnet1/Acl", "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.1.85" + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" } }, "RouteTable": { @@ -435,19 +427,19 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "tags": [ { "key": "Name", "value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PrivateSubnet1" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -466,7 +458,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -476,23 +468,23 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" - }, "destinationCidrBlock": "0.0.0.0/0", "natGatewayId": { "Ref": "VPCPublicSubnet1NATGatewayE0556630" + }, + "routeTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PrivateSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet", "version": "0.0.0" } }, @@ -506,9 +498,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "availabilityZone": { "Fn::Select": [ 1, @@ -532,11 +521,14 @@ "key": "Name", "value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PrivateSubnet2" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -544,8 +536,8 @@ "id": "Acl", "path": "aws-cdk-ec2-vpc-endpoint-service/VPC/PrivateSubnet2/Acl", "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.1.85" + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" } }, "RouteTable": { @@ -554,19 +546,19 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "tags": [ { "key": "Name", "value": "aws-cdk-ec2-vpc-endpoint-service/VPC/PrivateSubnet2" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -585,7 +577,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -595,23 +587,23 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" - }, "destinationCidrBlock": "0.0.0.0/0", "natGatewayId": { "Ref": "VPCPublicSubnet2NATGateway3C070193" + }, + "routeTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PrivateSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet", "version": "0.0.0" } }, @@ -630,7 +622,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnInternetGateway", + "fqn": "aws-cdk-lib.aws_ec2.CfnInternetGateway", "version": "0.0.0" } }, @@ -640,22 +632,22 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::VPCGatewayAttachment", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "internetGatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "vpcId": { + "Ref": "VPCB9E5F0B4" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnVPCGatewayAttachment", + "fqn": "aws-cdk-lib.aws_ec2.CfnVPCGatewayAttachment", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.Vpc", + "fqn": "aws-cdk-lib.aws_ec2.Vpc", "version": "0.0.0" } }, @@ -688,13 +680,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-elasticloadbalancingv2.CfnLoadBalancer", + "fqn": "aws-cdk-lib.aws_elasticloadbalancingv2.CfnLoadBalancer", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-elasticloadbalancingv2.NetworkLoadBalancer", + "fqn": "aws-cdk-lib.aws_elasticloadbalancingv2.NetworkLoadBalancer", "version": "0.0.0" } }, @@ -717,13 +709,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnVPCEndpointService", + "fqn": "aws-cdk-lib.aws_ec2.CfnVPCEndpointService", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.VpcEndpointService", + "fqn": "aws-cdk-lib.aws_ec2.VpcEndpointService", "version": "0.0.0" } }, @@ -756,13 +748,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-elasticloadbalancingv2.CfnLoadBalancer", + "fqn": "aws-cdk-lib.aws_elasticloadbalancingv2.CfnLoadBalancer", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-elasticloadbalancingv2.NetworkLoadBalancer", + "fqn": "aws-cdk-lib.aws_elasticloadbalancingv2.NetworkLoadBalancer", "version": "0.0.0" } }, @@ -785,7 +777,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnVPCEndpointService", + "fqn": "aws-cdk-lib.aws_ec2.CfnVPCEndpointService", "version": "0.0.0" } }, @@ -795,22 +787,23 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::VPCEndpointServicePermissions", "aws:cdk:cloudformation:props": { + "allowedPrincipals": [ + "arn:aws:iam::123456789012:root", + "ec2.amazonaws.com" + ], "serviceId": { "Ref": "MyVpcEndpointServiceWithPrincipals41EE2DF2" - }, - "allowedPrincipals": [ - "arn:aws:iam::123456789012:root" - ] + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnVPCEndpointServicePermissions", + "fqn": "aws-cdk-lib.aws_ec2.CfnVPCEndpointServicePermissions", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.VpcEndpointService", + "fqn": "aws-cdk-lib.aws_ec2.VpcEndpointService", "version": "0.0.0" } }, @@ -818,28 +811,52 @@ "id": "MyVpcEndpointServiceWithNoPrincipalsServiceName", "path": "aws-cdk-ec2-vpc-endpoint-service/MyVpcEndpointServiceWithNoPrincipalsServiceName", "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.1.85" + "fqn": "aws-cdk-lib.CfnOutput", + "version": "0.0.0" } }, "MyVpcEndpointServiceWithPrincipalsEndpointServiceId": { "id": "MyVpcEndpointServiceWithPrincipalsEndpointServiceId", "path": "aws-cdk-ec2-vpc-endpoint-service/MyVpcEndpointServiceWithPrincipalsEndpointServiceId", "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.1.85" + "fqn": "aws-cdk-lib.CfnOutput", + "version": "0.0.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "aws-cdk-ec2-vpc-endpoint-service/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "aws-cdk-ec2-vpc-endpoint-service/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" } } }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + }, + "Tree": { + "id": "Tree", + "path": "Tree", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.1.85" + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.1.85" + "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-elasticloadbalancingv2/test/integ.vpc-endpoint-service.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.ts index 77bf310da823c..915acf2680fdf 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.vpc-endpoint-service.ts @@ -24,11 +24,12 @@ class VpcEndpointServiceStack extends cdk.Stack { vpc, }); const principalArn = new ArnPrincipal('arn:aws:iam::123456789012:root'); + const servicePrincipal = new ArnPrincipal('ec2.amazonaws.com'); const service2 = new ec2.VpcEndpointService(this, 'MyVpcEndpointServiceWithPrincipals', { vpcEndpointServiceLoadBalancers: [nlbWithPrincipals], acceptanceRequired: false, - allowedPrincipals: [principalArn], + allowedPrincipals: [principalArn, servicePrincipal], }); new cdk.CfnOutput(this, 'MyVpcEndpointServiceWithNoPrincipalsServiceName', { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.imported-bucket.js.snapshot/tester.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.imported-bucket.js.snapshot/tester.template.json index 8bad325aed1ad..2319fb188a3ba 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.imported-bucket.js.snapshot/tester.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.imported-bucket.js.snapshot/tester.template.json @@ -178,7 +178,7 @@ "Arn" ] }, - "Runtime": "python3.9", + "Runtime": "python3.11", "Timeout": 300 }, "DependsOn": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.js.snapshot/lambda-event-source-s3.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.js.snapshot/lambda-event-source-s3.template.json index 04ce3c2d9e109..4391dd632d8a2 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.js.snapshot/lambda-event-source-s3.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-event-sources/test/integ.s3.js.snapshot/lambda-event-source-s3.template.json @@ -323,7 +323,7 @@ "Arn" ] }, - "Runtime": "python3.9", + "Runtime": "python3.11", "Timeout": 300 }, "DependsOn": [ 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 6004ed96dd322..2140c7176578c 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": { - "ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5": { + "30d328e47ab6c6a4d0d137aac9e53e30955ac7469bcb2be4a49f9baf5cfc2f9c": { "source": { - "path": "asset.ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5.bundle", + "path": "asset.30d328e47ab6c6a4d0d137aac9e53e30955ac7469bcb2be4a49f9baf5cfc2f9c.bundle", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5.zip", + "objectKey": "30d328e47ab6c6a4d0d137aac9e53e30955ac7469bcb2be4a49f9baf5cfc2f9c.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "1d10b8caf2cb2eae49df0a0e4771deac196be9378fc17c0b362ad22eb23146f7": { + "3987b03486cf6080b1bfeec0f61db44127df0bd1ebade5e3229d33dacf20ae9e": { "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": "1d10b8caf2cb2eae49df0a0e4771deac196be9378fc17c0b362ad22eb23146f7.json", + "objectKey": "3987b03486cf6080b1bfeec0f61db44127df0bd1ebade5e3229d33dacf20ae9e.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 0e3e0e1ca8776..5eb81b9db6773 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": "1708942012056" + "salt": "1711083557887" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -127,7 +127,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "ac51674cf5325b7a0e5444d6b7c1f88607c16a031b852bd51c375ac8c5c4fce5.zip" + "S3Key": "30d328e47ab6c6a4d0d137aac9e53e30955ac7469bcb2be4a49f9baf5cfc2f9c.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.0d566d0b142d607dcb771773171c1d44a90d9fa8c0547ae1ed371978818a8876.bundle/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.30d328e47ab6c6a4d0d137aac9e53e30955ac7469bcb2be4a49f9baf5cfc2f9c.bundle/index.js similarity index 86% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.0d566d0b142d607dcb771773171c1d44a90d9fa8c0547ae1ed371978818a8876.bundle/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.30d328e47ab6c6a4d0d137aac9e53e30955ac7469bcb2be4a49f9baf5cfc2f9c.bundle/index.js index 6c3415f5b86c4..1e875e7c41543 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.0d566d0b142d607dcb771773171c1d44a90d9fa8c0547ae1ed371978818a8876.bundle/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.30d328e47ab6c6a4d0d137aac9e53e30955ac7469bcb2be4a49f9baf5cfc2f9c.bundle/index.js @@ -1,4 +1,3 @@ -"use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; @@ -1362,317 +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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resolveHttpHandlerRuntimeConfig = exports2.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(); - } - }; - }; - exports2.getHttpHandlerExtensionConfiguration = getHttpHandlerExtensionConfiguration; - var resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => { - return { - httpHandler: httpHandlerExtensionConfiguration.httpHandler() - }; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_httpExtensionConfiguration(), exports2); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/abort.js -var require_abort = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/abort.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/auth/auth.js -var require_auth = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/auth/auth.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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 = exports2.HttpAuthLocation || (exports2.HttpAuthLocation = {})); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js -var require_HttpApiKeyAuth = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.HttpApiKeyAuthLocation = void 0; - var HttpApiKeyAuthLocation; - (function(HttpApiKeyAuthLocation2) { + return HttpAuthLocation2; + })(HttpAuthLocation || {}); + var HttpApiKeyAuthLocation = /* @__PURE__ */ ((HttpApiKeyAuthLocation2) => { HttpApiKeyAuthLocation2["HEADER"] = "header"; HttpApiKeyAuthLocation2["QUERY"] = "query"; - })(HttpApiKeyAuthLocation = exports2.HttpApiKeyAuthLocation || (exports2.HttpApiKeyAuthLocation = {})); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js -var require_HttpAuthScheme = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js -var require_HttpAuthSchemeProvider = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js -var require_HttpSigner = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js -var require_IdentityProviderConfig = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/auth/index.js -var require_auth2 = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/auth/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_auth(), exports2); - tslib_1.__exportStar(require_HttpApiKeyAuth(), exports2); - tslib_1.__exportStar(require_HttpAuthScheme(), exports2); - tslib_1.__exportStar(require_HttpAuthSchemeProvider(), exports2); - tslib_1.__exportStar(require_HttpSigner(), exports2); - tslib_1.__exportStar(require_IdentityProviderConfig(), exports2); - } -}); - -// ../../../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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/checksum.js -var require_checksum = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/checksum.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/client.js -var require_client = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/client.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/command.js -var require_command = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/command.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_config(), exports2); - tslib_1.__exportStar(require_manager(), exports2); - tslib_1.__exportStar(require_pool(), exports2); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/crypto.js -var require_crypto = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/crypto.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/encode.js -var require_encode = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/encode.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/endpoint.js -var require_endpoint = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoint.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.EndpointURLScheme = void 0; - var EndpointURLScheme; - (function(EndpointURLScheme2) { + return HttpApiKeyAuthLocation2; + })(HttpApiKeyAuthLocation || {}); + var EndpointURLScheme = /* @__PURE__ */ ((EndpointURLScheme2) => { EndpointURLScheme2["HTTP"] = "http"; EndpointURLScheme2["HTTPS"] = "https"; - })(EndpointURLScheme = exports2.EndpointURLScheme || (exports2.EndpointURLScheme = {})); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js -var require_EndpointRuleObject = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_EndpointRuleObject(), exports2); - tslib_1.__exportStar(require_ErrorRuleObject(), exports2); - tslib_1.__exportStar(require_RuleSetObject(), exports2); - tslib_1.__exportStar(require_shared(), exports2); - tslib_1.__exportStar(require_TreeRuleObject(), exports2); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/eventStream.js -var require_eventStream = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/eventStream.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resolveChecksumRuntimeConfig = exports2.getChecksumConfiguration = exports2.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 = exports2.AlgorithmId || (exports2.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 }); } @@ -1685,430 +1442,197 @@ var require_checksum2 = __commonJS({ return this._checksumAlgorithms; } }; - }; - exports2.getChecksumConfiguration = getChecksumConfiguration; - var resolveChecksumRuntimeConfig = (clientConfig) => { + }, "getChecksumConfiguration"); + var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => { const runtimeConfig = {}; clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => { runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor(); }); return runtimeConfig; - }; - exports2.resolveChecksumRuntimeConfig = resolveChecksumRuntimeConfig; - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js -var require_defaultClientConfiguration = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resolveDefaultRuntimeConfig = exports2.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) }; - }; - exports2.getDefaultClientConfiguration = getDefaultClientConfiguration; - var resolveDefaultRuntimeConfig = (config) => { + }, "getDefaultClientConfiguration"); + var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => { return { - ...(0, checksum_1.resolveChecksumRuntimeConfig)(config) + ...resolveChecksumRuntimeConfig(config) }; - }; - exports2.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig; - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js -var require_defaultExtensionConfiguration = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.AlgorithmId = void 0; - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_defaultClientConfiguration(), exports2); - tslib_1.__exportStar(require_defaultExtensionConfiguration(), exports2); - var checksum_1 = require_checksum2(); - Object.defineProperty(exports2, "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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.FieldPosition = void 0; - var FieldPosition; - (function(FieldPosition2) { + }, "resolveDefaultRuntimeConfig"); + var FieldPosition = /* @__PURE__ */ ((FieldPosition2) => { FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER"; FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER"; - })(FieldPosition = exports2.FieldPosition || (exports2.FieldPosition = {})); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js -var require_httpHandlerInitialization = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js -var require_apiKeyIdentity = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js -var require_awsCredentialIdentity = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js -var require_tokenIdentity = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); + 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"; + return RequestHandlerProtocol2; + })(RequestHandlerProtocol || {}); } }); -// ../../../node_modules/@smithy/types/dist-cjs/identity/index.js -var require_identity2 = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/identity/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_apiKeyIdentity(), exports2); - tslib_1.__exportStar(require_awsCredentialIdentity(), exports2); - tslib_1.__exportStar(require_identity(), exports2); - tslib_1.__exportStar(require_tokenIdentity(), exports2); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/logger.js -var require_logger = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/logger.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/middleware.js -var require_middleware = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/middleware.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.SMITHY_CONTEXT_KEY = void 0; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/profile.js -var require_profile = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/profile.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.IniSectionType = void 0; - var IniSectionType; - (function(IniSectionType2) { - IniSectionType2["PROFILE"] = "profile"; - IniSectionType2["SSO_SESSION"] = "sso-session"; - IniSectionType2["SERVICES"] = "services"; - })(IniSectionType = exports2.IniSectionType || (exports2.IniSectionType = {})); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/response.js -var require_response = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/response.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/retry.js -var require_retry = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/retry.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/serde.js -var require_serde = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/serde.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/shapes.js -var require_shapes = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/shapes.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/signature.js -var require_signature = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/signature.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/stream.js -var require_stream = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/stream.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/transfer.js -var require_transfer = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/transfer.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.RequestHandlerProtocol = void 0; - var RequestHandlerProtocol; - (function(RequestHandlerProtocol2) { - RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9"; - RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0"; - RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0"; - })(RequestHandlerProtocol = exports2.RequestHandlerProtocol || (exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/transform/no-undefined.js -var require_no_undefined = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/transform/no-undefined.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/uri.js -var require_uri = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/uri.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/util.js -var require_util = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/util.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/waiter.js -var require_waiter = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/waiter.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/index.js -var require_dist_cjs = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_abort(), exports2); - tslib_1.__exportStar(require_auth2(), exports2); - tslib_1.__exportStar(require_blob_payload_input_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_crypto(), exports2); - tslib_1.__exportStar(require_encode(), exports2); - tslib_1.__exportStar(require_endpoint(), exports2); - tslib_1.__exportStar(require_endpoints(), exports2); - tslib_1.__exportStar(require_eventStream(), exports2); - tslib_1.__exportStar(require_extensions2(), exports2); - tslib_1.__exportStar(require_http(), exports2); - tslib_1.__exportStar(require_httpHandlerInitialization(), exports2); - tslib_1.__exportStar(require_identity2(), 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_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_streaming_blob_common_types(), exports2); - tslib_1.__exportStar(require_streaming_blob_payload_input_types(), exports2); - tslib_1.__exportStar(require_streaming_blob_payload_output_types(), exports2); - tslib_1.__exportStar(require_transfer(), exports2); - tslib_1.__exportStar(require_client_payload_blob_type_narrow(), exports2); - tslib_1.__exportStar(require_no_undefined(), exports2); - tslib_1.__exportStar(require_type_transform(), exports2); - tslib_1.__exportStar(require_uri(), exports2); - tslib_1.__exportStar(require_util(), exports2); - tslib_1.__exportStar(require_waiter(), exports2); - } -}); - -// ../../../node_modules/@smithy/protocol-http/dist-cjs/Field.js -var require_Field = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/Field.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; } }; - exports2.Field = Field; - } -}); - -// ../../../node_modules/@smithy/protocol-http/dist-cjs/Fields.js -var require_Fields = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/Fields.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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); } }; - exports2.Fields = Fields; - } -}); - -// ../../../node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js -var require_httpHandler = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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"; @@ -2129,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 } }); @@ -2138,7 +1662,8 @@ var require_httpRequest = __commonJS({ return cloned; } }; - exports2.HttpRequest = HttpRequest; + __name(_HttpRequest, "HttpRequest"); + var HttpRequest = _HttpRequest; function cloneQuery(query) { return Object.keys(query).reduce((carry, paramName) => { const param = query[paramName]; @@ -2148,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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.HttpResponse = void 0; - var HttpResponse = class { + __name(cloneQuery, "cloneQuery"); + var _HttpResponse = class _HttpResponse { constructor(options) { this.statusCode = options.statusCode; this.reason = options.reason; @@ -2171,46 +1688,13 @@ var require_httpResponse = __commonJS({ return typeof resp.statusCode === "number" && typeof resp.headers === "object"; } }; - exports2.HttpResponse = HttpResponse; - } -}); - -// ../../../node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js -var require_isValidHostname = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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); } - exports2.isValidHostname = isValidHostname; - } -}); - -// ../../../node_modules/@smithy/protocol-http/dist-cjs/types.js -var require_types = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/types.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_extensions(), exports2); - tslib_1.__exportStar(require_Field(), exports2); - tslib_1.__exportStar(require_Fields(), exports2); - tslib_1.__exportStar(require_httpHandler(), exports2); - tslib_1.__exportStar(require_httpRequest(), exports2); - tslib_1.__exportStar(require_httpResponse(), exports2); - tslib_1.__exportStar(require_isValidHostname(), exports2); - tslib_1.__exportStar(require_types(), exports2); + __name(isValidHostname, "isValidHostname"); } }); @@ -2364,75 +1848,73 @@ var require_dist_cjs5 = __commonJS({ } }); -// ../../../node_modules/@smithy/property-provider/dist-cjs/ProviderError.js -var require_ProviderError = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/ProviderError.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.ProviderError = void 0; - var ProviderError = class _ProviderError extends Error { - constructor(message, tryNextLink = true) { - super(message); +// ../../../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); } }; - exports2.ProviderError = ProviderError; - } -}); - -// ../../../node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js -var require_CredentialsProviderError = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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); } }; - exports2.CredentialsProviderError = CredentialsProviderError; - } -}); - -// ../../../node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js -var require_TokenProviderError = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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); } }; - exports2.TokenProviderError = TokenProviderError; - } -}); - -// ../../../node_modules/@smithy/property-provider/dist-cjs/chain.js -var require_chain = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/chain.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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) { @@ -2441,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; - }; - exports2.chain = chain; - } -}); - -// ../../../node_modules/@smithy/property-provider/dist-cjs/fromStatic.js -var require_fromStatic = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/fromStatic.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.fromStatic = void 0; - var fromStatic = (staticValue) => () => Promise.resolve(staticValue); - exports2.fromStatic = fromStatic; - } -}); - -// ../../../node_modules/@smithy/property-provider/dist-cjs/memoize.js -var require_memoize = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/memoize.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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(); } @@ -2487,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) { @@ -2513,23 +1975,7 @@ var require_memoize = __commonJS({ } return resolved; }; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_CredentialsProviderError(), exports2); - tslib_1.__exportStar(require_ProviderError(), exports2); - tslib_1.__exportStar(require_TokenProviderError(), exports2); - tslib_1.__exportStar(require_chain(), exports2); - tslib_1.__exportStar(require_fromStatic(), exports2); - tslib_1.__exportStar(require_memoize(), exports2); + }, "memoize"); } }); @@ -3430,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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.toHex = exports2.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++) { @@ -3459,7 +2926,7 @@ var require_dist_cjs8 = __commonJS({ } return out; } - exports2.fromHex = fromHex; + __name(fromHex, "fromHex"); function toHex(bytes) { let out = ""; for (let i = 0; i < bytes.byteLength; i++) { @@ -3467,18 +2934,45 @@ var require_dist_cjs8 = __commonJS({ } return out; } - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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) { @@ -3496,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()); } }; - exports2.Int64 = Int64; + __name(_Int64, "Int64"); + var Int64 = _Int64; function negate(bytes) { for (let i = 0; i < 8; i++) { bytes[i] ^= 255; @@ -3521,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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; @@ -3554,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": @@ -3574,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); @@ -3582,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); @@ -3590,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)) { @@ -3598,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; } } @@ -3645,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; @@ -3670,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; @@ -3679,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: @@ -3689,20 +3198,8 @@ var require_HeaderMarshaller = __commonJS({ return out; } }; - exports2.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"; @@ -3713,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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; @@ -3739,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) + ) }; } - exports2.splitMessage = splitMessage; - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js -var require_EventStreamCodec = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; } @@ -3802,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); @@ -3816,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); } }; - exports2.EventStreamCodec = EventStreamCodec; - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/Message.js -var require_Message = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/Message.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.MessageDecoderStream = void 0; - var MessageDecoderStream = class { + __name(_EventStreamCodec, "EventStreamCodec"); + var EventStreamCodec = _EventStreamCodec; + var _MessageDecoderStream = class _MessageDecoderStream { constructor(options) { this.options = options; } @@ -3856,17 +3338,9 @@ var require_MessageDecoderStream = __commonJS({ } } }; - exports2.MessageDecoderStream = MessageDecoderStream; - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js -var require_MessageEncoderStream = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.MessageEncoderStream = void 0; - var MessageEncoderStream = class { + __name(_MessageDecoderStream, "MessageDecoderStream"); + var MessageDecoderStream = _MessageDecoderStream; + var _MessageEncoderStream = class _MessageEncoderStream { constructor(options) { this.options = options; } @@ -3883,17 +3357,9 @@ var require_MessageEncoderStream = __commonJS({ } } }; - exports2.MessageEncoderStream = MessageEncoderStream; - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js -var require_SmithyMessageDecoderStream = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.SmithyMessageDecoderStream = void 0; - var SmithyMessageDecoderStream = class { + __name(_MessageEncoderStream, "MessageEncoderStream"); + var MessageEncoderStream = _MessageEncoderStream; + var _SmithyMessageDecoderStream = class _SmithyMessageDecoderStream { constructor(options) { this.options = options; } @@ -3909,17 +3375,9 @@ var require_SmithyMessageDecoderStream = __commonJS({ } } }; - exports2.SmithyMessageDecoderStream = SmithyMessageDecoderStream; - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js -var require_SmithyMessageEncoderStream = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.SmithyMessageEncoderStream = void 0; - var SmithyMessageEncoderStream = class { + __name(_SmithyMessageDecoderStream, "SmithyMessageDecoderStream"); + var SmithyMessageDecoderStream = _SmithyMessageDecoderStream; + var _SmithyMessageEncoderStream = class _SmithyMessageEncoderStream { constructor(options) { this.options = options; } @@ -3933,184 +3391,265 @@ var require_SmithyMessageEncoderStream = __commonJS({ } } }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_EventStreamCodec(), exports2); - tslib_1.__exportStar(require_HeaderMarshaller(), exports2); - tslib_1.__exportStar(require_Int64(), exports2); - tslib_1.__exportStar(require_Message(), exports2); - tslib_1.__exportStar(require_MessageDecoderStream(), exports2); - tslib_1.__exportStar(require_MessageEncoderStream(), exports2); - tslib_1.__exportStar(require_SmithyMessageDecoderStream(), exports2); - tslib_1.__exportStar(require_SmithyMessageEncoderStream(), exports2); - } -}); - -// ../../../node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js -var require_getSmithyContext = __commonJS({ - "../../../node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getSmithyContext = void 0; - var types_1 = require_dist_cjs(); - var getSmithyContext = (context) => context[types_1.SMITHY_CONTEXT_KEY] || (context[types_1.SMITHY_CONTEXT_KEY] = {}); - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_getSmithyContext(), exports2); - tslib_1.__exportStar(require_normalizeProvider(), exports2); + }, "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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.isArrayBuffer = void 0; - var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]"; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.fromString = exports2.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); - }; - exports2.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); - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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); - }; - exports2.fromUtf8 = fromUtf8; - } -}); - -// ../../../node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js -var require_toUint8Array = __commonJS({ - "../../../node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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); - }; - exports2.toUint8Array = toUint8Array; - } -}); - -// ../../../node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js -var require_toUtf8 = __commonJS({ - "../../../node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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"); - exports2.toUtf8 = toUtf8; + }, "toUint8Array"); + var toUtf8 = /* @__PURE__ */ __name((input) => { + if (typeof input === "string") { + return input; + } + if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") { + throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array."); + } + return (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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromUtf8(), exports2); - tslib_1.__exportStar(require_toUint8Array(), exports2); - tslib_1.__exportStar(require_toUtf8(), exports2); +// ../../../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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.MAX_PRESIGNED_TTL = exports2.KEY_TYPE_IDENTIFIER = exports2.MAX_CACHE_SIZE = exports2.UNSIGNED_PAYLOAD = exports2.EVENT_ALGORITHM_IDENTIFIER = exports2.ALGORITHM_IDENTIFIER_V4A = exports2.ALGORITHM_IDENTIFIER = exports2.UNSIGNABLE_PATTERNS = exports2.SEC_HEADER_PATTERN = exports2.PROXY_HEADER_PATTERN = exports2.ALWAYS_UNSIGNABLE_HEADERS = exports2.HOST_HEADER = exports2.TOKEN_HEADER = exports2.SHA256_HEADER = exports2.SIGNATURE_HEADER = exports2.GENERATED_HEADERS = exports2.DATE_HEADER = exports2.AMZ_DATE_HEADER = exports2.AUTH_HEADER = exports2.REGION_SET_PARAM = exports2.TOKEN_QUERY_PARAM = exports2.SIGNATURE_QUERY_PARAM = exports2.EXPIRES_QUERY_PARAM = exports2.SIGNED_HEADERS_QUERY_PARAM = exports2.AMZ_DATE_QUERY_PARAM = exports2.CREDENTIAL_QUERY_PARAM = exports2.ALGORITHM_QUERY_PARAM = void 0; - exports2.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; - exports2.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; - exports2.AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; - exports2.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; - exports2.EXPIRES_QUERY_PARAM = "X-Amz-Expires"; - exports2.SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; - exports2.TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; - exports2.REGION_SET_PARAM = "X-Amz-Region-Set"; - exports2.AUTH_HEADER = "authorization"; - exports2.AMZ_DATE_HEADER = exports2.AMZ_DATE_QUERY_PARAM.toLowerCase(); - exports2.DATE_HEADER = "date"; - exports2.GENERATED_HEADERS = [exports2.AUTH_HEADER, exports2.AMZ_DATE_HEADER, exports2.DATE_HEADER]; - exports2.SIGNATURE_HEADER = exports2.SIGNATURE_QUERY_PARAM.toLowerCase(); - exports2.SHA256_HEADER = "x-amz-content-sha256"; - exports2.TOKEN_HEADER = exports2.TOKEN_QUERY_PARAM.toLowerCase(); - exports2.HOST_HEADER = "host"; - exports2.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, @@ -4127,79 +3666,54 @@ var require_constants = __commonJS({ "user-agent": true, "x-amzn-trace-id": true }; - exports2.PROXY_HEADER_PATTERN = /^proxy-/; - exports2.SEC_HEADER_PATTERN = /^sec-/; - exports2.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; - exports2.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; - exports2.ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; - exports2.EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; - exports2.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; - exports2.MAX_CACHE_SIZE = 50; - exports2.KEY_TYPE_IDENTIFIER = "aws4_request"; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.clearCredentialCache = exports2.getSigningKey = exports2.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}`; - exports2.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; - }; - exports2.getSigningKey = getSigningKey; - var clearCredentialCache = () => { + }, "getSigningKey"); + var clearCredentialCache = /* @__PURE__ */ __name(() => { cacheQueue.length = 0; Object.keys(signingKeyCache).forEach((cacheKey) => { delete signingKeyCache[cacheKey]; }); - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; } @@ -4207,111 +3721,46 @@ var require_getCanonicalHeaders = __commonJS({ canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " "); } return canonical; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.escapeUri = void 0; - var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.escapeUriPath = void 0; - var escape_uri_1 = require_escape_uri(); - var escapeUriPath = (uri) => uri.split("/").map(escape_uri_1.escapeUri).join("/"); - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_escape_uri(), exports2); - tslib_1.__exportStar(require_escape_uri_path(), exports2); - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js -var require_getCanonicalQuery = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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("&"); - }; - exports2.getCanonicalQuery = getCanonicalQuery; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js -var require_getPayloadHash = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; - }; - exports2.getPayloadHash = getPayloadHash; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js -var require_headerUtil = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deleteHeader = exports2.getHeaderValue = exports2.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()) { @@ -4319,66 +3768,25 @@ var require_headerUtil = __commonJS({ } } return false; - }; - exports2.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; - }; - exports2.getHeaderValue = getHeaderValue; - var deleteHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - delete headers[headerName]; - } - } - }; - exports2.deleteHeader = deleteHeader; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/cloneRequest.js -var require_cloneRequest = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/cloneRequest.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.cloneQuery = exports2.cloneRequest = void 0; - var cloneRequest = ({ headers, query, ...rest }) => ({ + }, "hasHeader"); + var cloneRequest = /* @__PURE__ */ __name(({ headers, query, ...rest }) => ({ ...rest, headers: { ...headers }, - query: query ? (0, exports2.cloneQuery)(query) : void 0 - }); - exports2.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 }; - }, {}); - exports2.cloneQuery = cloneQuery; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js -var require_moveHeadersToQuery = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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]; } @@ -4388,41 +3796,18 @@ var require_moveHeadersToQuery = __commonJS({ headers, query }; - }; - exports2.moveHeadersToQuery = moveHeadersToQuery; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js -var require_prepareRequest = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; - }; - exports2.prepareRequest = prepareRequest; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/utilDate.js -var require_utilDate = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/utilDate.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.toDate = exports2.iso8601 = void 0; - var iso8601 = (time) => (0, exports2.toDate)(time).toISOString().replace(/\.\d{3}Z$/, "Z"); - exports2.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); } @@ -4433,61 +3818,60 @@ var require_utilDate = __commonJS({ return new Date(time); } return time; - }; - exports2.toDate = toDate; - } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js -var require_SignatureV4 = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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) { @@ -4502,15 +3886,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, @@ -4520,15 +3904,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 }; }); @@ -4536,37 +3923,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(";")} @@ -4574,18 +3972,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; @@ -4595,7 +3993,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, "/"); } @@ -4604,59 +4002,30 @@ ${(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"); } } }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.prepareRequest = exports2.moveHeadersToQuery = exports2.getPayloadHash = exports2.getCanonicalQuery = exports2.getCanonicalHeaders = void 0; - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_SignatureV4(), exports2); - var getCanonicalHeaders_1 = require_getCanonicalHeaders(); - Object.defineProperty(exports2, "getCanonicalHeaders", { enumerable: true, get: function() { - return getCanonicalHeaders_1.getCanonicalHeaders; - } }); - var getCanonicalQuery_1 = require_getCanonicalQuery(); - Object.defineProperty(exports2, "getCanonicalQuery", { enumerable: true, get: function() { - return getCanonicalQuery_1.getCanonicalQuery; - } }); - var getPayloadHash_1 = require_getPayloadHash(); - Object.defineProperty(exports2, "getPayloadHash", { enumerable: true, get: function() { - return getPayloadHash_1.getPayloadHash; - } }); - var moveHeadersToQuery_1 = require_moveHeadersToQuery(); - Object.defineProperty(exports2, "moveHeadersToQuery", { enumerable: true, get: function() { - return moveHeadersToQuery_1.moveHeadersToQuery; - } }); - var prepareRequest_1 = require_prepareRequest(); - Object.defineProperty(exports2, "prepareRequest", { enumerable: true, get: function() { - return prepareRequest_1.prepareRequest; - } }); - tslib_1.__exportStar(require_credentialDerivation(), exports2); + }, "formatDate"); + var getCanonicalHeaderList = /* @__PURE__ */ __name((headers) => Object.keys(headers).sort().join(";"), "getCanonicalHeaderList"); } }); @@ -5236,7 +4605,7 @@ var require_EndpointError = __commonJS({ }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointRuleObject.js -var require_EndpointRuleObject2 = __commonJS({ +var require_EndpointRuleObject = __commonJS({ "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointRuleObject.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5244,7 +4613,7 @@ var require_EndpointRuleObject2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/ErrorRuleObject.js -var require_ErrorRuleObject2 = __commonJS({ +var require_ErrorRuleObject = __commonJS({ "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/ErrorRuleObject.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5252,7 +4621,7 @@ var require_ErrorRuleObject2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/RuleSetObject.js -var require_RuleSetObject2 = __commonJS({ +var require_RuleSetObject = __commonJS({ "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/RuleSetObject.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5260,7 +4629,7 @@ var require_RuleSetObject2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/TreeRuleObject.js -var require_TreeRuleObject2 = __commonJS({ +var require_TreeRuleObject = __commonJS({ "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/TreeRuleObject.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5268,7 +4637,7 @@ var require_TreeRuleObject2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/shared.js -var require_shared2 = __commonJS({ +var require_shared = __commonJS({ "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/shared.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5276,17 +4645,17 @@ var require_shared2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/index.js -var require_types2 = __commonJS({ +var require_types = __commonJS({ "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/index.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); tslib_1.__exportStar(require_EndpointError(), exports2); - tslib_1.__exportStar(require_EndpointRuleObject2(), exports2); - tslib_1.__exportStar(require_ErrorRuleObject2(), exports2); - tslib_1.__exportStar(require_RuleSetObject2(), exports2); - tslib_1.__exportStar(require_TreeRuleObject2(), exports2); - tslib_1.__exportStar(require_shared2(), 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); } }); @@ -5402,7 +4771,7 @@ var require_getAttrPathList = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getAttrPathList = void 0; - var types_1 = require_types2(); + var types_1 = require_types(); var getAttrPathList = (path) => { const parts = path.split("."); const pathList = []; @@ -5436,7 +4805,7 @@ var require_getAttr = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getAttr = void 0; - var types_1 = require_types2(); + 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") { @@ -5473,7 +4842,7 @@ var require_not = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/abort.js -var require_abort2 = __commonJS({ +var require_abort = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/abort.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5481,7 +4850,7 @@ var require_abort2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/auth.js -var require_auth3 = __commonJS({ +var require_auth = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/auth.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5502,7 +4871,7 @@ var require_blob_types = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/checksum.js -var require_checksum3 = __commonJS({ +var require_checksum = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/checksum.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5510,7 +4879,7 @@ var require_checksum3 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/client.js -var require_client2 = __commonJS({ +var require_client = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/client.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5518,7 +4887,7 @@ var require_client2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/command.js -var require_command2 = __commonJS({ +var require_command = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/command.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5526,7 +4895,7 @@ var require_command2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/connection.js -var require_connection2 = __commonJS({ +var require_connection = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/connection.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5542,7 +4911,7 @@ var require_credentials = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/crypto.js -var require_crypto2 = __commonJS({ +var require_crypto = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/crypto.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5564,7 +4933,7 @@ var require_dns = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/encode.js -var require_encode2 = __commonJS({ +var require_encode = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/encode.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5572,7 +4941,7 @@ var require_encode2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/endpoint.js -var require_endpoint2 = __commonJS({ +var require_endpoint = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/endpoint.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5585,7 +4954,7 @@ var require_endpoint2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/eventStream.js -var require_eventStream2 = __commonJS({ +var require_eventStream = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/eventStream.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5593,7 +4962,7 @@ var require_eventStream2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/extensions/index.js -var require_extensions3 = __commonJS({ +var require_extensions = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/extensions/index.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5601,7 +4970,7 @@ var require_extensions3 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/http.js -var require_http2 = __commonJS({ +var require_http = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/http.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5649,7 +5018,7 @@ var require_TokenIdentity = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/identity/index.js -var require_identity3 = __commonJS({ +var require_identity = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/identity/index.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5663,7 +5032,7 @@ var require_identity3 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/logger.js -var require_logger2 = __commonJS({ +var require_logger = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/logger.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5671,7 +5040,7 @@ var require_logger2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/middleware.js -var require_middleware2 = __commonJS({ +var require_middleware = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/middleware.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5679,7 +5048,7 @@ var require_middleware2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/pagination.js -var require_pagination2 = __commonJS({ +var require_pagination = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/pagination.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5687,7 +5056,7 @@ var require_pagination2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/profile.js -var require_profile2 = __commonJS({ +var require_profile = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/profile.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5703,7 +5072,7 @@ var require_request = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/response.js -var require_response2 = __commonJS({ +var require_response = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/response.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5711,7 +5080,7 @@ var require_response2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/retry.js -var require_retry2 = __commonJS({ +var require_retry = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/retry.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5719,7 +5088,7 @@ var require_retry2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/serde.js -var require_serde2 = __commonJS({ +var require_serde = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/serde.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5727,7 +5096,7 @@ var require_serde2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/shapes.js -var require_shapes2 = __commonJS({ +var require_shapes = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/shapes.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5735,7 +5104,7 @@ var require_shapes2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/signature.js -var require_signature2 = __commonJS({ +var require_signature = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/signature.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5743,7 +5112,7 @@ var require_signature2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/stream.js -var require_stream2 = __commonJS({ +var require_stream = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/stream.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5759,7 +5128,7 @@ var require_token = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/transfer.js -var require_transfer2 = __commonJS({ +var require_transfer = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/transfer.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5772,7 +5141,7 @@ var require_transfer2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/uri.js -var require_uri2 = __commonJS({ +var require_uri = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/uri.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5780,7 +5149,7 @@ var require_uri2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/util.js -var require_util2 = __commonJS({ +var require_util = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/util.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5788,7 +5157,7 @@ var require_util2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/types/dist-cjs/waiter.js -var require_waiter2 = __commonJS({ +var require_waiter = __commonJS({ "../../../node_modules/@aws-sdk/types/dist-cjs/waiter.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -5801,38 +5170,38 @@ var require_dist_cjs17 = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_abort2(), exports2); - tslib_1.__exportStar(require_auth3(), exports2); + tslib_1.__exportStar(require_abort(), exports2); + tslib_1.__exportStar(require_auth(), exports2); tslib_1.__exportStar(require_blob_types(), exports2); - tslib_1.__exportStar(require_checksum3(), exports2); - tslib_1.__exportStar(require_client2(), exports2); - tslib_1.__exportStar(require_command2(), exports2); - tslib_1.__exportStar(require_connection2(), 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_crypto2(), exports2); + tslib_1.__exportStar(require_crypto(), exports2); tslib_1.__exportStar(require_dns(), exports2); - tslib_1.__exportStar(require_encode2(), exports2); - tslib_1.__exportStar(require_endpoint2(), exports2); - tslib_1.__exportStar(require_eventStream2(), exports2); - tslib_1.__exportStar(require_extensions3(), exports2); - tslib_1.__exportStar(require_http2(), exports2); - tslib_1.__exportStar(require_identity3(), exports2); - tslib_1.__exportStar(require_logger2(), exports2); - tslib_1.__exportStar(require_middleware2(), exports2); - tslib_1.__exportStar(require_pagination2(), exports2); - tslib_1.__exportStar(require_profile2(), 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_response2(), exports2); - tslib_1.__exportStar(require_retry2(), exports2); - tslib_1.__exportStar(require_serde2(), exports2); - tslib_1.__exportStar(require_shapes2(), exports2); - tslib_1.__exportStar(require_signature2(), exports2); - tslib_1.__exportStar(require_stream2(), 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_transfer2(), exports2); - tslib_1.__exportStar(require_uri2(), exports2); - tslib_1.__exportStar(require_util2(), exports2); - tslib_1.__exportStar(require_waiter2(), 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); } }); @@ -6022,7 +5391,7 @@ var require_evaluateExpression = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.evaluateExpression = void 0; - var types_1 = require_types2(); + var types_1 = require_types(); var callFunction_1 = require_callFunction(); var evaluateTemplate_1 = require_evaluateTemplate(); var getReferenceValue_1 = require_getReferenceValue(); @@ -6064,7 +5433,7 @@ var require_evaluateCondition = __commonJS({ 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; @@ -6121,7 +5490,7 @@ var require_getEndpointHeaders = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getEndpointHeaders = void 0; - var types_1 = require_types2(); + var types_1 = require_types(); var evaluateExpression_1 = require_evaluateExpression(); var getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({ ...acc, @@ -6143,7 +5512,7 @@ var require_getEndpointProperty = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getEndpointProperty = void 0; - var types_1 = require_types2(); + var types_1 = require_types(); var evaluateTemplate_1 = require_evaluateTemplate(); var getEndpointProperties_1 = require_getEndpointProperties(); var getEndpointProperty = (property, options) => { @@ -6189,7 +5558,7 @@ var require_getEndpointUrl = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getEndpointUrl = void 0; - var types_1 = require_types2(); + var types_1 = require_types(); var evaluateExpression_1 = require_evaluateExpression(); var getEndpointUrl = (endpointUrl, options) => { const expression = (0, evaluateExpression_1.evaluateExpression)(endpointUrl, "Endpoint URL", options); @@ -6251,7 +5620,7 @@ var require_evaluateErrorRule = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.evaluateErrorRule = void 0; - var types_1 = require_types2(); + var types_1 = require_types(); var evaluateConditions_1 = require_evaluateConditions(); var evaluateExpression_1 = require_evaluateExpression(); var evaluateErrorRule = (errorRule, options) => { @@ -6298,7 +5667,7 @@ var require_evaluateRules = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.evaluateRules = void 0; - var types_1 = require_types2(); + var types_1 = require_types(); var evaluateEndpointRule_1 = require_evaluateEndpointRule(); var evaluateErrorRule_1 = require_evaluateErrorRule(); var evaluateTreeRule_1 = require_evaluateTreeRule(); @@ -6343,7 +5712,7 @@ var require_resolveEndpoint = __commonJS({ 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; @@ -6388,12 +5757,12 @@ var require_dist_cjs18 = __commonJS({ tslib_1.__exportStar(require_partition(), exports2); tslib_1.__exportStar(require_isIpAddress(), exports2); tslib_1.__exportStar(require_resolveEndpoint(), exports2); - tslib_1.__exportStar(require_types2(), exports2); + tslib_1.__exportStar(require_types(), exports2); } }); // ../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js -var require_constants2 = __commonJS({ +var require_constants = __commonJS({ "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -6416,7 +5785,7 @@ var require_user_agent_middleware = __commonJS({ 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; @@ -6494,13 +5863,35 @@ var require_dist_cjs19 = __commonJS({ } }); -// ../../../node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js -var require_booleanSelector = __commonJS({ - "../../../node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.booleanSelector = void 0; - 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") @@ -6508,18 +5899,8 @@ var require_booleanSelector = __commonJS({ if (obj[key] === "false") return false; throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`); - }; - exports2.booleanSelector = booleanSelector; - } -}); - -// ../../../node_modules/@smithy/util-config-provider/dist-cjs/numberSelector.js -var require_numberSelector = __commonJS({ - "../../../node_modules/@smithy/util-config-provider/dist-cjs/numberSelector.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.numberSelector = void 0; - var numberSelector = (obj, key, type) => { + }, "booleanSelector"); + var numberSelector = /* @__PURE__ */ __name((obj, key, type) => { if (!(key in obj)) return void 0; const numberValue = parseInt(obj[key], 10); @@ -6527,103 +5908,85 @@ var require_numberSelector = __commonJS({ throw new TypeError(`Cannot load ${type} '${key}'. Expected number, got '${obj[key]}'.`); } return numberValue; - }; - exports2.numberSelector = numberSelector; - } -}); - -// ../../../node_modules/@smithy/util-config-provider/dist-cjs/types.js -var require_types3 = __commonJS({ - "../../../node_modules/@smithy/util-config-provider/dist-cjs/types.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.SelectorType = void 0; - var SelectorType; - (function(SelectorType2) { + }, "numberSelector"); + var SelectorType = /* @__PURE__ */ ((SelectorType2) => { SelectorType2["ENV"] = "env"; SelectorType2["CONFIG"] = "shared config entry"; - })(SelectorType = exports2.SelectorType || (exports2.SelectorType = {})); - } -}); - -// ../../../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) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_booleanSelector(), exports2); - tslib_1.__exportStar(require_numberSelector(), exports2); - tslib_1.__exportStar(require_types3(), exports2); + 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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = exports2.DEFAULT_USE_DUALSTACK_ENDPOINT = exports2.CONFIG_USE_DUALSTACK_ENDPOINT = exports2.ENV_USE_DUALSTACK_ENDPOINT = void 0; - var util_config_provider_1 = require_dist_cjs20(); - exports2.ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; - exports2.CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; - exports2.DEFAULT_USE_DUALSTACK_ENDPOINT = false; - exports2.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports2.ENV_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = exports2.DEFAULT_USE_FIPS_ENDPOINT = exports2.CONFIG_USE_FIPS_ENDPOINT = exports2.ENV_USE_FIPS_ENDPOINT = void 0; - var util_config_provider_1 = require_dist_cjs20(); - exports2.ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; - exports2.CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; - exports2.DEFAULT_USE_FIPS_ENDPOINT = false; - exports2.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports2.ENV_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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) }; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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])$/); @@ -6632,106 +5995,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}`); - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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 }; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_NodeUseDualstackEndpointConfigOptions(), exports2); - tslib_1.__exportStar(require_NodeUseFipsEndpointConfigOptions(), exports2); - tslib_1.__exportStar(require_resolveCustomEndpointsConfig(), exports2); - tslib_1.__exportStar(require_resolveEndpointsConfig(), exports2); - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js -var require_config2 = __commonJS({ - "../../../node_modules/@smithy/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], + }, "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"); } }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.isFipsRegion = void 0; - var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); - exports2.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"(exports2) { - "use strict"; - 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; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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"); @@ -6740,97 +6035,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(); } }; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_config2(), exports2); - tslib_1.__exportStar(require_resolveRegionConfig(), exports2); - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js -var require_PartitionHash = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getResolvedHostname = void 0; - var getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace("{region}", resolvedRegion) : void 0; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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"; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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) { @@ -6840,34 +6067,26 @@ var require_getResolvedSigningRegion = __commonJS({ return regionRegexmatchArray[0].slice(1, -1); } } - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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 }); @@ -6876,51 +6095,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 } }; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_PartitionHash(), exports2); - tslib_1.__exportStar(require_RegionHash(), exports2); - tslib_1.__exportStar(require_getRegionInfo(), exports2); - } -}); - -// ../../../node_modules/@smithy/config-resolver/dist-cjs/index.js -var require_dist_cjs21 = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_endpointsConfig(), exports2); - tslib_1.__exportStar(require_regionConfig(), exports2); - tslib_1.__exportStar(require_regionInfo(), exports2); + }, "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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getContentLengthPlugin = exports2.contentLengthMiddlewareOptions = exports2.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 { @@ -6939,140 +6155,18 @@ var require_dist_cjs22 = __commonJS({ }); }; } - exports2.contentLengthMiddleware = contentLengthMiddleware; - exports2.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), exports2.contentLengthMiddlewareOptions); - } - }); - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.isArnBucketName = exports2.isDnsCompatibleBucketName = exports2.S3_HOSTNAME_PATTERN = exports2.DOT_PATTERN = exports2.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, exports2.isArnBucketName)(bucket)) { - if (endpointParams.ForcePathStyle === true) { - throw new Error("Path-style addressing cannot be used with ARN buckets"); - } - } else if (!(0, exports2.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; - }; - exports2.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 = /\.\./; - exports2.DOT_PATTERN = /\./; - exports2.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); - exports2.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; - }; - exports2.isArnBucketName = isArnBucketName; - } -}); - -// ../../../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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_s3(), exports2); - } -}); - -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js -var require_createConfigValueProvider = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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 === "credentialScope" || canonicalEndpointParamKey === "CredentialScope") { - return async () => { - var _a; - const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials; - const configValue = (_a = credentials === null || credentials === void 0 ? void 0 : credentials.credentialScope) !== null && _a !== void 0 ? _a : credentials === null || credentials === void 0 ? 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; - }; - exports2.createConfigValueProvider = createConfigValueProvider; - } -}); - -// ../../../node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js -var require_fromEnv = __commonJS({ - "../../../node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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}`); + clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions); } - }; - exports2.fromEnv = fromEnv; + }), "getContentLengthPlugin"); } }); @@ -7091,7 +6185,7 @@ var require_getHomeDir = __commonJS({ } return "DEFAULT"; }; - var getHomeDir = () => { + var getHomeDir2 = () => { const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env; if (HOME) return HOME; @@ -7104,20 +6198,7 @@ var require_getHomeDir = __commonJS({ homeDirCache[homeDirCacheKey] = (0, os_1.homedir)(); return homeDirCache[homeDirCacheKey]; }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getProfileName = exports2.DEFAULT_PROFILE = exports2.ENV_PROFILE = void 0; - exports2.ENV_PROFILE = "AWS_PROFILE"; - exports2.DEFAULT_PROFILE = "default"; - var getProfileName = (init) => init.profile || process.env[exports2.ENV_PROFILE] || exports2.DEFAULT_PROFILE; - exports2.getProfileName = getProfileName; + exports2.getHomeDir = getHomeDir2; } }); @@ -7130,12 +6211,12 @@ var require_getSSOTokenFilepath = __commonJS({ var crypto_1 = require("crypto"); var path_1 = require("path"); var getHomeDir_1 = require_getHomeDir(); - var getSSOTokenFilepath = (id) => { + 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 = getSSOTokenFilepath; + exports2.getSSOTokenFilepath = getSSOTokenFilepath2; } }); @@ -7148,80 +6229,102 @@ var require_getSSOTokenFromFile = __commonJS({ var fs_1 = require("fs"); var getSSOTokenFilepath_1 = require_getSSOTokenFilepath(); var { readFile } = fs_1.promises; - var getSSOTokenFromFile = async (id) => { + var getSSOTokenFromFile2 = async (id) => { const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id); const ssoTokenText = await readFile(ssoTokenFilepath, "utf8"); return JSON.parse(ssoTokenText); }; - exports2.getSSOTokenFromFile = getSSOTokenFromFile; + exports2.getSSOTokenFromFile = getSSOTokenFromFile2; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js -var require_getConfigData = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js"(exports2) { +// ../../../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(exports2, "__esModule", { value: true }); - exports2.getConfigData = void 0; - var types_1 = require_dist_cjs(); - var loadSharedConfigFiles_1 = require_loadSharedConfigFiles(); - var getConfigData = (data) => Object.entries(data).filter(([key]) => { - const indexOfSeparator = key.indexOf(loadSharedConfigFiles_1.CONFIG_PREFIX_SEPARATOR); - if (indexOfSeparator === -1) { - return false; + 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"); } - return Object.values(types_1.IniSectionType).includes(key.substring(0, indexOfSeparator)); - }).reduce((acc, [key, value]) => { - const indexOfSeparator = key.indexOf(loadSharedConfigFiles_1.CONFIG_PREFIX_SEPARATOR); - const updatedKey = key.substring(0, indexOfSeparator) === types_1.IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key; - acc[updatedKey] = value; - return acc; - }, { - ...data.default && { default: data.default } - }); - exports2.getConfigData = getConfigData; - } -}); - -// ../../../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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getConfigFilepath = exports2.ENV_CONFIG_PATH = void 0; - var path_1 = require("path"); - var getHomeDir_1 = require_getHomeDir(); - exports2.ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; - var getConfigFilepath = () => process.env[exports2.ENV_CONFIG_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "config"); - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getCredentialsFilepath = exports2.ENV_CREDENTIALS_PATH = void 0; - var path_1 = require("path"); - var getHomeDir_1 = require_getHomeDir(); - exports2.ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; - var getCredentialsFilepath = () => process.env[exports2.ENV_CREDENTIALS_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "credentials"); - exports2.getCredentialsFilepath = getCredentialsFilepath; + return filePromisesHash[path]; + }; + exports2.slurpFile = slurpFile; } }); -// ../../../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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.parseIni = void 0; - var types_1 = require_dist_cjs(); - var loadSharedConfigFiles_1 = require_loadSharedConfigFiles(); +// ../../../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 = (iniData) => { + var parseIni = /* @__PURE__ */ __name((iniData) => { const map = {}; let currentSection; let currentSubSection; @@ -7235,8 +6338,8 @@ var require_parseIni = __commonJS({ const matches = prefixKeyRegex.exec(sectionName); if (matches) { const [, prefix, , name] = matches; - if (Object.values(types_1.IniSectionType).includes(prefix)) { - currentSection = [prefix, name].join(loadSharedConfigFiles_1.CONFIG_PREFIX_SEPARATOR); + if (Object.values(import_types.IniSectionType).includes(prefix)) { + currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR); } } else { currentSection = sectionName; @@ -7258,108 +6361,37 @@ var require_parseIni = __commonJS({ currentSubSection = void 0; } map[currentSection] = map[currentSection] || {}; - const key = currentSubSection ? [currentSubSection, name].join(loadSharedConfigFiles_1.CONFIG_PREFIX_SEPARATOR) : name; + const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name; map[currentSection][key] = value; } } } } return map; - }; - exports2.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"(exports2) { - "use strict"; - 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"); - } - return filePromisesHash[path]; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.loadSharedConfigFiles = exports2.CONFIG_PREFIX_SEPARATOR = void 0; - var getConfigData_1 = require_getConfigData(); - var getConfigFilepath_1 = require_getConfigFilepath(); - var getCredentialsFilepath_1 = require_getCredentialsFilepath(); - var parseIni_1 = require_parseIni(); - var slurpFile_1 = require_slurpFile(); - var swallowError = () => ({}); - exports2.CONFIG_PREFIX_SEPARATOR = "."; - var loadSharedConfigFiles = async (init = {}) => { - const { filepath = (0, getCredentialsFilepath_1.getCredentialsFilepath)(), configFilepath = (0, getConfigFilepath_1.getConfigFilepath)() } = init; + }, "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, slurpFile_1.slurpFile)(configFilepath, { + (0, import_slurpFile.slurpFile)(configFilepath, { ignoreCache: init.ignoreCache - }).then(parseIni_1.parseIni).then(getConfigData_1.getConfigData).catch(swallowError), - (0, slurpFile_1.slurpFile)(filepath, { + }).then(parseIni).then(getConfigData).catch(swallowError), + (0, import_slurpFile.slurpFile)(filepath, { ignoreCache: init.ignoreCache - }).then(parseIni_1.parseIni).catch(swallowError) + }).then(parseIni).catch(swallowError) ]); return { configFile: parsedFiles[0], credentialsFile: parsedFiles[1] }; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getSsoSessionData = void 0; - var types_1 = require_dist_cjs(); - var loadSharedConfigFiles_1 = require_loadSharedConfigFiles(); - var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => key.startsWith(types_1.IniSectionType.SSO_SESSION + loadSharedConfigFiles_1.CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.split(loadSharedConfigFiles_1.CONFIG_PREFIX_SEPARATOR)[1]]: value }), {}); - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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); - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.mergeConfigFiles = void 0; - var mergeConfigFiles = (...files) => { + }, "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.substring(key.indexOf(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)) { @@ -7371,66 +6403,61 @@ var require_mergeConfigFiles = __commonJS({ } } return merged; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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); - }; - exports2.parseKnownFiles = parseKnownFiles; - } -}); - -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js -var require_types4 = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../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) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_getHomeDir(), exports2); - tslib_1.__exportStar(require_getProfileName(), exports2); - tslib_1.__exportStar(require_getSSOTokenFilepath(), exports2); - tslib_1.__exportStar(require_getSSOTokenFromFile(), exports2); - tslib_1.__exportStar(require_loadSharedConfigFiles(), exports2); - tslib_1.__exportStar(require_loadSsoSessionData(), exports2); - tslib_1.__exportStar(require_parseKnownFiles(), exports2); - tslib_1.__exportStar(require_types4(), exports2); + }, "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/fromSharedConfigFiles.js -var require_fromSharedConfigFiles = __commonJS({ - "../../../node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.fromSharedConfigFiles = void 0; - var property_provider_1 = require_dist_cjs6(); - var shared_ini_file_loader_1 = require_dist_cjs23(); - 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 }; +// ../../../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}` + ); + } + }, "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); @@ -7439,48 +6466,20 @@ var require_fromSharedConfigFiles = __commonJS({ } 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}`); + throw new import_property_provider.CredentialsProviderError( + e.message || `Cannot load config for profile ${profile} in SDK configuration files with getter: ${configSelector}` + ); } - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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); - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.loadConfig = void 0; - var property_provider_1 = require_dist_cjs6(); - var fromEnv_1 = require_fromEnv(); - 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))); - exports2.loadConfig = loadConfig; - } -}); - -// ../../../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) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_configLoader(), exports2); + }, "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"); } }); @@ -7540,10 +6539,30 @@ var require_getEndpointFromConfig = __commonJS({ // ../../../node_modules/@smithy/querystring-parser/dist-cjs/index.js var require_dist_cjs25 = __commonJS({ - "../../../node_modules/@smithy/querystring-parser/dist-cjs/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.parseQueryString = void 0; + "../../../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(/^\?/, ""); @@ -7565,25 +6584,45 @@ var require_dist_cjs25 = __commonJS({ } return query; } - exports2.parseQueryString = parseQueryString; + __name(parseQueryString, "parseQueryString"); } }); // ../../../node_modules/@smithy/url-parser/dist-cjs/index.js var require_dist_cjs26 = __commonJS({ - "../../../node_modules/@smithy/url-parser/dist-cjs/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.parseUrl = void 0; - var querystring_parser_1 = require_dist_cjs25(); - var parseUrl = (url2) => { + "../../../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, exports2.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, @@ -7592,60 +6631,224 @@ var require_dist_cjs26 = __commonJS({ path: pathname, query }; - }; - exports2.parseUrl = 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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.toEndpointV1 = void 0; - var url_parser_1 = require_dist_cjs26(); - var toEndpointV1 = (endpoint) => { - if (typeof endpoint === "object") { - if ("url" in endpoint) { - return (0, url_parser_1.parseUrl)(endpoint.url); +// ../../../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); + return { + response, + output: parsed + }; + } catch (error) { + Object.defineProperty(error, "$response", { + value: response + }); + if (!("$metadata" in error)) { + const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`; + error.message += "\n " + hint; + if (typeof error.$responseBodyText !== "undefined") { + if (error.$response) { + error.$response.body = error.$responseBodyText; + } + } } - return endpoint; + throw error; } - return (0, url_parser_1.parseUrl)(endpoint); + }, "deserializerMiddleware"); + var serializerMiddleware = /* @__PURE__ */ __name((options, serializer) => (next, context) => async (args) => { + var _a; + 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."); + } + const request2 = await serializer(args.input, { ...options, endpoint }); + return next({ + ...args, + request: request2 + }); + }, "serializerMiddleware"); + var deserializerMiddlewareOption = { + name: "deserializerMiddleware", + step: "deserialize", + tags: ["DESERIALIZER"], + override: true + }; + var serializerMiddlewareOption = { + name: "serializerMiddleware", + step: "serialize", + tags: ["SERIALIZER"], + override: true }; - exports2.toEndpointV1 = toEndpointV1; + function getSerdePlugin(config, serializer, deserializer) { + return { + applyToStack: (commandStack) => { + commandStack.add(deserializerMiddleware(config, deserializer), deserializerMiddlewareOption); + commandStack.add(serializerMiddleware(config, serializer), serializerMiddlewareOption); + } + }; + } + __name(getSerdePlugin, "getSerdePlugin"); } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js -var require_getEndpointFromInstructions = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resolveParams = exports2.getEndpointFromInstructions = void 0; - var service_customizations_1 = require_service_customizations(); - var createConfigValueProvider_1 = require_createConfigValueProvider(); - var getEndpointFromConfig_1 = require_getEndpointFromConfig(); - var toEndpointV1_1 = require_toEndpointV1(); - var getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => { +// ../../../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, getEndpointFromConfig_1.getEndpointFromConfig)(clientConfig.serviceId || ""); + const endpointFromConfig = await (0, import_getEndpointFromConfig.getEndpointFromConfig)(clientConfig.serviceId || ""); if (endpointFromConfig) { - clientConfig.endpoint = () => Promise.resolve((0, toEndpointV1_1.toEndpointV1)(endpointFromConfig)); + clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig)); } } - const endpointParams = await (0, exports2.resolveParams)(commandInput, instructionsSupplier, clientConfig); + 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; - }; - exports2.getEndpointFromInstructions = getEndpointFromInstructions; - var resolveParams = async (commandInput, instructionsSupplier, clientConfig) => { + }, "getEndpointFromInstructions"); + var resolveParams = /* @__PURE__ */ __name(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)) || {}; + 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": @@ -7656,7 +6859,7 @@ var require_getEndpointFromInstructions = __commonJS({ break; case "clientContextParams": case "builtInParams": - endpointParams[name] = await (0, createConfigValueProvider_1.createConfigValueProvider)(instruction.name, name, clientConfig)(); + endpointParams[name] = await createConfigValueProvider(instruction.name, name, clientConfig)(); break; default: throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction)); @@ -7666,338 +6869,562 @@ var require_getEndpointFromInstructions = __commonJS({ Object.assign(endpointParams, clientConfig); } if (String(clientConfig.serviceId).toLowerCase() === "s3") { - await (0, service_customizations_1.resolveParamsForS3)(endpointParams); + await resolveParamsForS3(endpointParams); } return endpointParams; - }; - exports2.resolveParams = resolveParams; - } -}); - -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js -var require_adaptors = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_getEndpointFromInstructions(), exports2); - tslib_1.__exportStar(require_toEndpointV1(), exports2); - } -}); - -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js -var require_endpointMiddleware = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.endpointMiddleware = void 0; - var util_middleware_1 = require_dist_cjs10(); - var getEndpointFromInstructions_1 = require_getEndpointFromInstructions(); - var endpointMiddleware = ({ config, instructions }) => { + }, "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 (0, getEndpointFromInstructions_1.getEndpointFromInstructions)(args.input, { - getEndpointParameterInstructions() { - return instructions; - } - }, { ...config }, context); + const endpoint = await 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]; + 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, util_middleware_1.getSmithyContext)(context); - const httpAuthOption = (_c = smithyContext === null || smithyContext === void 0 ? void 0 : smithyContext.selectedHttpAuthScheme) === null || _c === void 0 ? void 0 : _c.httpAuthOption; + 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); + 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: import_middleware_serde.serializerMiddlewareOption.name }; - exports2.endpointMiddleware = endpointMiddleware; + var getEndpointPlugin = /* @__PURE__ */ __name((config, instructions) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo( + endpointMiddleware({ + config, + instructions + }), + endpointMiddlewareOptions + ); + } + }), "getEndpointPlugin"); + var resolveEndpointConfig = /* @__PURE__ */ __name((input) => { + const tls = input.tls ?? true; + const { endpoint } = input; + 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, import_util_middleware.normalizeProvider)(input.useDualstackEndpoint ?? false), + useFipsEndpoint: (0, import_util_middleware.normalizeProvider)(input.useFipsEndpoint ?? false) + }; + }, "resolveEndpointConfig"); } }); -// ../../../node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js -var require_deserializerMiddleware = __commonJS({ - "../../../node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.deserializerMiddleware = void 0; - var deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { - const { response } = await next(args); - try { - const parsed = await deserializer(response, options); - return { - response, - output: parsed - }; - } catch (error) { - Object.defineProperty(error, "$response", { - value: response - }); - if (!("$metadata" in error)) { - const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`; - error.message += "\n " + hint; - } - throw error; - } - }; - exports2.deserializerMiddleware = deserializerMiddleware; +// ../../../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/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js -var require_serializerMiddleware = __commonJS({ - "../../../node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.serializerMiddleware = void 0; - var serializerMiddleware = (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; - if (!endpoint) { - throw new Error("No valid endpoint provider available."); - } - const request2 = await serializer(args.input, { ...options, endpoint }); - return next({ - ...args, - request: request2 - }); - }; - exports2.serializerMiddleware = serializerMiddleware; +// ../../../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/middleware-serde/dist-cjs/serdePlugin.js -var require_serdePlugin = __commonJS({ - "../../../node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getSerdePlugin = exports2.serializerMiddlewareOption = exports2.deserializerMiddlewareOption = void 0; - var deserializerMiddleware_1 = require_deserializerMiddleware(); - var serializerMiddleware_1 = require_serializerMiddleware(); - exports2.deserializerMiddlewareOption = { - name: "deserializerMiddleware", - step: "deserialize", - tags: ["DESERIALIZER"], - override: true - }; - exports2.serializerMiddlewareOption = { - name: "serializerMiddleware", - step: "serialize", - tags: ["SERIALIZER"], - override: true - }; - function getSerdePlugin(config, serializer, deserializer) { - return { - applyToStack: (commandStack) => { - commandStack.add((0, deserializerMiddleware_1.deserializerMiddleware)(config, deserializer), exports2.deserializerMiddlewareOption); - commandStack.add((0, serializerMiddleware_1.serializerMiddleware)(config, serializer), exports2.serializerMiddlewareOption); - } - }; - } - exports2.getSerdePlugin = getSerdePlugin; +// ../../../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/middleware-serde/dist-cjs/index.js -var require_dist_cjs27 = __commonJS({ - "../../../node_modules/@smithy/middleware-serde/dist-cjs/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_deserializerMiddleware(), exports2); - tslib_1.__exportStar(require_serdePlugin(), exports2); - tslib_1.__exportStar(require_serializerMiddleware(), exports2); +// ../../../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"); } -}); - -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js -var require_getEndpointPlugin = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getEndpointPlugin = exports2.endpointMiddlewareOptions = void 0; - var middleware_serde_1 = require_dist_cjs27(); - var endpointMiddleware_1 = require_endpointMiddleware(); - exports2.endpointMiddlewareOptions = { - step: "serialize", - tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"], - name: "endpointV2Middleware", - override: true, - relation: "before", - toMiddleware: middleware_serde_1.serializerMiddlewareOption.name - }; - var getEndpointPlugin = (config, instructions) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, endpointMiddleware_1.endpointMiddleware)({ - config, - instructions - }), exports2.endpointMiddlewareOptions); - } - }); - exports2.getEndpointPlugin = getEndpointPlugin; + 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/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js -var require_resolveEndpointConfig = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; - const { endpoint } = input; - const customEndpointProvider = endpoint != null ? async () => (0, toEndpointV1_1.toEndpointV1)(await (0, util_middleware_1.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) - }; - }; - exports2.resolveEndpointConfig = resolveEndpointConfig; +// ../../../node_modules/uuid/dist/esm-node/v1.js +function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq; + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || rng)(); + if (node == null) { + node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + if (clockseq == null) { + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383; + } + } + let msecs = options.msecs !== void 0 ? options.msecs : Date.now(); + let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1; + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; + if (dt < 0 && options.clockseq === void 0) { + clockseq = clockseq + 1 & 16383; + } + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) { + nsecs = 0; + } + if (nsecs >= 1e4) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; + msecs += 122192928e5; + const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; + b[i++] = tl >>> 24 & 255; + b[i++] = tl >>> 16 & 255; + b[i++] = tl >>> 8 & 255; + b[i++] = tl & 255; + const tmh = msecs / 4294967296 * 1e4 & 268435455; + b[i++] = tmh >>> 8 & 255; + b[i++] = tmh & 255; + b[i++] = tmh >>> 24 & 15 | 16; + b[i++] = tmh >>> 16 & 255; + b[i++] = clockseq >>> 8 | 128; + b[i++] = clockseq & 255; + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + return buf || stringify_default(b); +} +var _nodeId, _clockseq, _lastMSecs, _lastNSecs, v1_default; +var init_v1 = __esm({ + "../../../node_modules/uuid/dist/esm-node/v1.js"() { + init_rng(); + init_stringify(); + _lastMSecs = 0; + _lastNSecs = 0; + v1_default = v1; } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/types.js -var require_types5 = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/types.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); +// ../../../node_modules/uuid/dist/esm-node/parse.js +function parse(uuid) { + if (!validate_default(uuid)) { + throw TypeError("Invalid UUID"); + } + let v; + const arr = new Uint8Array(16); + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 255; + arr[2] = v >>> 8 & 255; + arr[3] = v & 255; + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 255; + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 255; + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 255; + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; + arr[11] = v / 4294967296 & 255; + arr[12] = v >>> 24 & 255; + arr[13] = v >>> 16 & 255; + arr[14] = v >>> 8 & 255; + arr[15] = v & 255; + return arr; +} +var parse_default; +var init_parse = __esm({ + "../../../node_modules/uuid/dist/esm-node/parse.js"() { + init_validate(); + parse_default = parse; } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/index.js -var require_dist_cjs28 = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_adaptors(), exports2); - tslib_1.__exportStar(require_endpointMiddleware(), exports2); - tslib_1.__exportStar(require_getEndpointPlugin(), exports2); - tslib_1.__exportStar(require_resolveEndpointConfig(), exports2); - tslib_1.__exportStar(require_types5(), exports2); +// ../../../node_modules/uuid/dist/esm-node/v35.js +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); + const bytes = []; + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + return bytes; +} +function v35_default(name, version2, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === "string") { + value = stringToBytes(value); + } + if (typeof namespace === "string") { + namespace = parse_default(namespace); + } + if (namespace.length !== 16) { + throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); + } + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 15 | version2; + bytes[8] = bytes[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + return buf; + } + return stringify_default(bytes); + } + try { + generateUUID.name = name; + } catch (err) { + } + generateUUID.DNS = DNS; + generateUUID.URL = URL2; + return generateUUID; +} +var DNS, URL2; +var init_v35 = __esm({ + "../../../node_modules/uuid/dist/esm-node/v35.js"() { + init_stringify(); + init_parse(); + DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; + URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; } }); -// ../../../node_modules/@smithy/util-retry/dist-cjs/config.js -var require_config3 = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/config.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.DEFAULT_RETRY_MODE = exports2.DEFAULT_MAX_ATTEMPTS = exports2.RETRY_MODES = void 0; - var RETRY_MODES; - (function(RETRY_MODES2) { - RETRY_MODES2["STANDARD"] = "standard"; - RETRY_MODES2["ADAPTIVE"] = "adaptive"; - })(RETRY_MODES = exports2.RETRY_MODES || (exports2.RETRY_MODES = {})); - exports2.DEFAULT_MAX_ATTEMPTS = 3; - exports2.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; +// ../../../node_modules/uuid/dist/esm-node/md5.js +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return import_crypto2.default.createHash("md5").update(bytes).digest(); +} +var import_crypto2, md5_default; +var init_md5 = __esm({ + "../../../node_modules/uuid/dist/esm-node/md5.js"() { + import_crypto2 = __toESM(require("crypto")); + md5_default = md5; } }); -// ../../../node_modules/@smithy/service-error-classification/dist-cjs/constants.js -var require_constants3 = __commonJS({ - "../../../node_modules/@smithy/service-error-classification/dist-cjs/constants.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.NODEJS_TIMEOUT_ERROR_CODES = exports2.TRANSIENT_ERROR_STATUS_CODES = exports2.TRANSIENT_ERROR_CODES = exports2.THROTTLING_ERROR_CODES = exports2.CLOCK_SKEW_ERROR_CODES = void 0; - exports2.CLOCK_SKEW_ERROR_CODES = [ - "AuthFailure", - "InvalidSignatureException", - "RequestExpired", - "RequestInTheFuture", - "RequestTimeTooSkewed", - "SignatureDoesNotMatch" - ]; - exports2.THROTTLING_ERROR_CODES = [ - "BandwidthLimitExceeded", - "EC2ThrottledException", - "LimitExceededException", - "PriorRequestNotComplete", - "ProvisionedThroughputExceededException", - "RequestLimitExceeded", - "RequestThrottled", - "RequestThrottledException", - "SlowDown", - "ThrottledException", - "Throttling", - "ThrottlingException", - "TooManyRequestsException", - "TransactionInProgressException" - ]; - exports2.TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"]; - exports2.TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; - exports2.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"]; +// ../../../node_modules/uuid/dist/esm-node/v3.js +var v3, v3_default; +var init_v3 = __esm({ + "../../../node_modules/uuid/dist/esm-node/v3.js"() { + init_v35(); + init_md5(); + v3 = v35_default("v3", 48, md5_default); + v3_default = v3; } }); -// ../../../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) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.isServerError = exports2.isTransientError = exports2.isThrottlingError = exports2.isClockSkewError = exports2.isRetryableByTrait = void 0; - var constants_1 = require_constants3(); - var isRetryableByTrait = (error) => error.$retryable !== void 0; - exports2.isRetryableByTrait = isRetryableByTrait; - var isClockSkewError = (error) => constants_1.CLOCK_SKEW_ERROR_CODES.includes(error.name); - exports2.isClockSkewError = isClockSkewError; - var isThrottlingError = (error) => { +// ../../../node_modules/uuid/dist/esm-node/v4.js +function v4(options, buf, offset) { + options = options || {}; + const rnds = options.random || (options.rng || rng)(); + rnds[6] = rnds[6] & 15 | 64; + rnds[8] = rnds[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + return buf; + } + return stringify_default(rnds); +} +var v4_default; +var init_v4 = __esm({ + "../../../node_modules/uuid/dist/esm-node/v4.js"() { + init_rng(); + init_stringify(); + v4_default = v4; + } +}); + +// ../../../node_modules/uuid/dist/esm-node/sha1.js +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return import_crypto3.default.createHash("sha1").update(bytes).digest(); +} +var import_crypto3, sha1_default; +var init_sha1 = __esm({ + "../../../node_modules/uuid/dist/esm-node/sha1.js"() { + import_crypto3 = __toESM(require("crypto")); + sha1_default = sha1; + } +}); + +// ../../../node_modules/uuid/dist/esm-node/v5.js +var v5, v5_default; +var init_v5 = __esm({ + "../../../node_modules/uuid/dist/esm-node/v5.js"() { + init_v35(); + init_sha1(); + v5 = v35_default("v5", 80, sha1_default); + v5_default = v5; + } +}); + +// ../../../node_modules/uuid/dist/esm-node/nil.js +var nil_default; +var init_nil = __esm({ + "../../../node_modules/uuid/dist/esm-node/nil.js"() { + nil_default = "00000000-0000-0000-0000-000000000000"; + } +}); + +// ../../../node_modules/uuid/dist/esm-node/version.js +function version(uuid) { + if (!validate_default(uuid)) { + throw TypeError("Invalid UUID"); + } + return parseInt(uuid.substr(14, 1), 16); +} +var version_default; +var init_version = __esm({ + "../../../node_modules/uuid/dist/esm-node/version.js"() { + init_validate(); + version_default = version; + } +}); + +// ../../../node_modules/uuid/dist/esm-node/index.js +var esm_node_exports = {}; +__export(esm_node_exports, { + NIL: () => nil_default, + parse: () => parse_default, + stringify: () => stringify_default, + v1: () => v1_default, + v3: () => v3_default, + v4: () => v4_default, + v5: () => v5_default, + validate: () => validate_default, + version: () => version_default +}); +var init_esm_node = __esm({ + "../../../node_modules/uuid/dist/esm-node/index.js"() { + init_v1(); + init_v3(); + init_v4(); + init_v5(); + init_nil(); + init_version(); + init_validate(); + init_stringify(); + init_parse(); + } +}); + +// ../../../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, { + isClockSkewCorrectedError: () => isClockSkewCorrectedError, + 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 isClockSkewCorrectedError = /* @__PURE__ */ __name((error) => { + var _a; + return (_a = error.$metadata) == null ? void 0 : _a.clockSkewCorrected; + }, "isClockSkewCorrectedError"); + var isThrottlingError = /* @__PURE__ */ __name((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; - }; - exports2.isThrottlingError = isThrottlingError; - var isTransientError = (error) => { + 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 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); - }; - exports2.isTransientError = isTransientError; - var isServerError = (error) => { + return isClockSkewCorrectedError(error) || 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 || _a === void 0 ? void 0 : _a.httpStatusCode) !== void 0) { + if (((_a = error.$metadata) == null ? void 0 : _a.httpStatusCode) !== void 0) { const statusCode = error.$metadata.httpStatusCode; - if (500 <= statusCode && statusCode <= 599 && !(0, exports2.isTransientError)(error)) { + if (500 <= statusCode && statusCode <= 599 && !isTransientError(error)) { return true; } return false; } return false; - }; - exports2.isServerError = isServerError; + }, "isServerError"); } }); -// ../../../node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js -var require_DefaultRateLimiter = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.DefaultRateLimiter = void 0; - var service_error_classification_1 = require_dist_cjs29(); - var DefaultRateLimiter = class { +// ../../../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) { - var _a, _b, _c, _d, _e; this.currentCapacity = 0; this.enabled = false; this.lastMaxRate = 0; @@ -8005,11 +7432,11 @@ var require_DefaultRateLimiter = __commonJS({ 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; + 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()); @@ -8046,7 +7473,7 @@ var require_DefaultRateLimiter = __commonJS({ updateClientSendingRate(response) { let calculatedRate; this.updateMeasuredRate(); - if ((0, service_error_classification_1.isThrottlingError)(response)) { + 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(); @@ -8067,7 +7494,9 @@ var require_DefaultRateLimiter = __commonJS({ return this.getPrecise(rateToUse * this.beta); } cubicSuccess(timestamp) { - return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); + return this.getPrecise( + this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate + ); } enableTokenBucket() { this.enabled = true; @@ -8093,94 +7522,55 @@ var require_DefaultRateLimiter = __commonJS({ return parseFloat(num.toFixed(8)); } }; - exports2.DefaultRateLimiter = DefaultRateLimiter; - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/constants.js -var require_constants4 = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/constants.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.REQUEST_HEADER = exports2.INVOCATION_ID_HEADER = exports2.NO_RETRY_INCREMENT = exports2.TIMEOUT_RETRY_COST = exports2.RETRY_COST = exports2.INITIAL_RETRY_TOKENS = exports2.THROTTLING_RETRY_DELAY_BASE = exports2.MAXIMUM_RETRY_DELAY = exports2.DEFAULT_RETRY_DELAY_BASE = void 0; - exports2.DEFAULT_RETRY_DELAY_BASE = 100; - exports2.MAXIMUM_RETRY_DELAY = 20 * 1e3; - exports2.THROTTLING_RETRY_DELAY_BASE = 500; - exports2.INITIAL_RETRY_TOKENS = 500; - exports2.RETRY_COST = 5; - exports2.TIMEOUT_RETRY_COST = 10; - exports2.NO_RETRY_INCREMENT = 1; - exports2.INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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) => { + __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 { computeNextBackoffDelay, setDelayBase }; - }; - exports2.getDefaultRetryBackoffStrategy = getDefaultRetryBackoffStrategy; - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js -var require_defaultRetryToken = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; + }, "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 }; - }; - exports2.createDefaultRetryToken = createDefaultRetryToken; - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js -var require_StandardRetryStrategy = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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 { + }, "createDefaultRetryToken"); + var _StandardRetryStrategy = class _StandardRetryStrategy { 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.mode = "standard"; + this.capacity = INITIAL_RETRY_TOKENS; + this.retryBackoffStrategy = getDefaultRetryBackoffStrategy(); this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts; } async acquireInitialRetryToken(retryTokenScope) { - return (0, defaultRetryToken_1.createDefaultRetryToken)({ - retryDelay: constants_1.DEFAULT_RETRY_DELAY_BASE, + return createDefaultRetryToken({ + retryDelay: DEFAULT_RETRY_DELAY_BASE, retryCount: 0 }); } @@ -8188,12 +7578,14 @@ var require_StandardRetryStrategy = __commonJS({ 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); + 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 (0, defaultRetryToken_1.createDefaultRetryToken)({ + return createDefaultRetryToken({ retryDelay, retryCount: token.getRetryCount() + 1, retryCost: capacityCost @@ -8202,793 +7594,126 @@ var require_StandardRetryStrategy = __commonJS({ 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"; - } - }; - exports2.StandardRetryStrategy = StandardRetryStrategy; - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js -var require_AdaptiveRetryStrategy = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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); - } - }; - exports2.AdaptiveRetryStrategy = AdaptiveRetryStrategy; - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js -var require_ConfiguredRetryStrategy = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; + this.capacity = Math.max(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT)); } - }; - exports2.ConfiguredRetryStrategy = ConfiguredRetryStrategy; - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/types.js -var require_types6 = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/types.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/util-retry/dist-cjs/index.js -var require_dist_cjs30 = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_AdaptiveRetryStrategy(), exports2); - tslib_1.__exportStar(require_ConfiguredRetryStrategy(), exports2); - tslib_1.__exportStar(require_DefaultRateLimiter(), exports2); - tslib_1.__exportStar(require_StandardRetryStrategy(), exports2); - tslib_1.__exportStar(require_config3(), exports2); - tslib_1.__exportStar(require_constants4(), exports2); - tslib_1.__exportStar(require_types6(), exports2); - } -}); - -// ../../../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/v1.js -function v1(options, buf, offset) { - let i = buf && offset || 0; - const b = buf || new Array(16); - options = options || {}; - let node = options.node || _nodeId; - let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq; - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || rng)(); - if (node == null) { - node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; - } - if (clockseq == null) { - clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383; - } - } - let msecs = options.msecs !== void 0 ? options.msecs : Date.now(); - let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1; - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; - if (dt < 0 && options.clockseq === void 0) { - clockseq = clockseq + 1 & 16383; - } - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) { - nsecs = 0; - } - if (nsecs >= 1e4) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; - msecs += 122192928e5; - const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; - b[i++] = tl >>> 24 & 255; - b[i++] = tl >>> 16 & 255; - b[i++] = tl >>> 8 & 255; - b[i++] = tl & 255; - const tmh = msecs / 4294967296 * 1e4 & 268435455; - b[i++] = tmh >>> 8 & 255; - b[i++] = tmh & 255; - b[i++] = tmh >>> 24 & 15 | 16; - b[i++] = tmh >>> 16 & 255; - b[i++] = clockseq >>> 8 | 128; - b[i++] = clockseq & 255; - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - return buf || stringify_default(b); -} -var _nodeId, _clockseq, _lastMSecs, _lastNSecs, v1_default; -var init_v1 = __esm({ - "../../../node_modules/uuid/dist/esm-node/v1.js"() { - init_rng(); - init_stringify(); - _lastMSecs = 0; - _lastNSecs = 0; - v1_default = v1; - } -}); - -// ../../../node_modules/uuid/dist/esm-node/parse.js -function parse(uuid) { - if (!validate_default(uuid)) { - throw TypeError("Invalid UUID"); - } - let v; - const arr = new Uint8Array(16); - arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v >>> 16 & 255; - arr[2] = v >>> 8 & 255; - arr[3] = v & 255; - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 255; - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 255; - arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v & 255; - arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; - arr[11] = v / 4294967296 & 255; - arr[12] = v >>> 24 & 255; - arr[13] = v >>> 16 & 255; - arr[14] = v >>> 8 & 255; - arr[15] = v & 255; - return arr; -} -var parse_default; -var init_parse = __esm({ - "../../../node_modules/uuid/dist/esm-node/parse.js"() { - init_validate(); - parse_default = parse; - } -}); - -// ../../../node_modules/uuid/dist/esm-node/v35.js -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); - const bytes = []; - for (let i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } - return bytes; -} -function v35_default(name, version2, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - if (typeof value === "string") { - value = stringToBytes(value); - } - if (typeof namespace === "string") { - namespace = parse_default(namespace); - } - if (namespace.length !== 16) { - throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); - } - let bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 15 | version2; - bytes[8] = bytes[8] & 63 | 128; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return stringify_default(bytes); - } - try { - generateUUID.name = name; - } catch (err) { - } - generateUUID.DNS = DNS; - generateUUID.URL = URL2; - return generateUUID; -} -var DNS, URL2; -var init_v35 = __esm({ - "../../../node_modules/uuid/dist/esm-node/v35.js"() { - init_stringify(); - init_parse(); - DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; - URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; - } -}); - -// ../../../node_modules/uuid/dist/esm-node/md5.js -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === "string") { - bytes = Buffer.from(bytes, "utf8"); - } - return import_crypto2.default.createHash("md5").update(bytes).digest(); -} -var import_crypto2, md5_default; -var init_md5 = __esm({ - "../../../node_modules/uuid/dist/esm-node/md5.js"() { - import_crypto2 = __toESM(require("crypto")); - md5_default = md5; - } -}); - -// ../../../node_modules/uuid/dist/esm-node/v3.js -var v3, v3_default; -var init_v3 = __esm({ - "../../../node_modules/uuid/dist/esm-node/v3.js"() { - init_v35(); - init_md5(); - v3 = v35_default("v3", 48, md5_default); - v3_default = v3; - } -}); - -// ../../../node_modules/uuid/dist/esm-node/v4.js -function v4(options, buf, offset) { - options = options || {}; - const rnds = options.random || (options.rng || rng)(); - rnds[6] = rnds[6] & 15 | 64; - rnds[8] = rnds[8] & 63 | 128; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } - return stringify_default(rnds); -} -var v4_default; -var init_v4 = __esm({ - "../../../node_modules/uuid/dist/esm-node/v4.js"() { - init_rng(); - init_stringify(); - v4_default = v4; - } -}); - -// ../../../node_modules/uuid/dist/esm-node/sha1.js -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === "string") { - bytes = Buffer.from(bytes, "utf8"); - } - return import_crypto3.default.createHash("sha1").update(bytes).digest(); -} -var import_crypto3, sha1_default; -var init_sha1 = __esm({ - "../../../node_modules/uuid/dist/esm-node/sha1.js"() { - import_crypto3 = __toESM(require("crypto")); - sha1_default = sha1; - } -}); - -// ../../../node_modules/uuid/dist/esm-node/v5.js -var v5, v5_default; -var init_v5 = __esm({ - "../../../node_modules/uuid/dist/esm-node/v5.js"() { - init_v35(); - init_sha1(); - v5 = v35_default("v5", 80, sha1_default); - v5_default = v5; - } -}); - -// ../../../node_modules/uuid/dist/esm-node/nil.js -var nil_default; -var init_nil = __esm({ - "../../../node_modules/uuid/dist/esm-node/nil.js"() { - nil_default = "00000000-0000-0000-0000-000000000000"; - } -}); - -// ../../../node_modules/uuid/dist/esm-node/version.js -function version(uuid) { - if (!validate_default(uuid)) { - throw TypeError("Invalid UUID"); - } - return parseInt(uuid.substr(14, 1), 16); -} -var version_default; -var init_version = __esm({ - "../../../node_modules/uuid/dist/esm-node/version.js"() { - init_validate(); - version_default = version; - } -}); - -// ../../../node_modules/uuid/dist/esm-node/index.js -var esm_node_exports = {}; -__export(esm_node_exports, { - NIL: () => nil_default, - parse: () => parse_default, - stringify: () => stringify_default, - v1: () => v1_default, - v3: () => v3_default, - v4: () => v4_default, - v5: () => v5_default, - validate: () => validate_default, - version: () => version_default -}); -var init_esm_node = __esm({ - "../../../node_modules/uuid/dist/esm-node/index.js"() { - init_v1(); - init_v3(); - init_v4(); - init_v5(); - init_nil(); - init_version(); - init_validate(); - init_stringify(); - init_parse(); - } -}); - -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js -var require_defaultRetryQuota = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getDefaultRetryQuota = void 0; - var util_retry_1 = require_dist_cjs30(); - 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 - }); - }; - exports2.getDefaultRetryQuota = getDefaultRetryQuota; - } -}); - -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js -var require_delayDecider = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.defaultDelayDecider = void 0; - var util_retry_1 = require_dist_cjs30(); - var defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(util_retry_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); - exports2.defaultDelayDecider = defaultDelayDecider; - } -}); - -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js -var require_retryDecider = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.defaultRetryDecider = void 0; - var service_error_classification_1 = require_dist_cjs29(); - var defaultRetryDecider = (error) => { - if (!error) { - 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); - }; - exports2.defaultRetryDecider = defaultRetryDecider; - } -}); - -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/util.js -var require_util3 = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/util.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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}`); - }; - exports2.asSdkError = asSdkError; - } -}); - -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js -var require_StandardRetryStrategy2 = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.StandardRetryStrategy = void 0; - var protocol_http_1 = require_dist_cjs2(); - var service_error_classification_1 = require_dist_cjs29(); - var util_retry_1 = require_dist_cjs30(); - 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); - } - 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 = util_retry_1.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 (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}`; - } - 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; - } - } - } - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.AdaptiveRetryStrategy = void 0; - var util_retry_1 = require_dist_cjs30(); - 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; - } - async retry(next, args) { - return super.retry(next, args, { - beforeRequest: async () => { - return this.rateLimiter.getSendToken(); - }, - afterRequest: (response) => { - this.rateLimiter.updateClientSendingRate(response); - } - }); - } - }; - exports2.AdaptiveRetryStrategy = AdaptiveRetryStrategy; - } -}); - -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/configurations.js -var require_configurations2 = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/configurations.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.NODE_RETRY_MODE_CONFIG_OPTIONS = exports2.CONFIG_RETRY_MODE = exports2.ENV_RETRY_MODE = exports2.resolveRetryConfig = exports2.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = exports2.CONFIG_MAX_ATTEMPTS = exports2.ENV_MAX_ATTEMPTS = void 0; - var util_middleware_1 = require_dist_cjs10(); - var util_retry_1 = require_dist_cjs30(); - exports2.ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; - exports2.CONFIG_MAX_ATTEMPTS = "max_attempts"; - exports2.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - const value = env[exports2.ENV_MAX_ATTEMPTS]; - if (!value) - return void 0; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(`Environment variable ${exports2.ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`); - } - return maxAttempt; - }, - configFileSelector: (profile) => { - const value = profile[exports2.CONFIG_MAX_ATTEMPTS]; - if (!value) - return void 0; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(`Shared config file entry ${exports2.CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`); - } - return maxAttempt; - }, - default: util_retry_1.DEFAULT_MAX_ATTEMPTS - }; - 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); - 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); + /** + * @returns the current available retry capacity. + * + * This number decreases when retries are executed and refills when requests or retries succeed. + */ + getCapacity() { + return this.capacity; + } + 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; } - }; - }; - exports2.resolveRetryConfig = resolveRetryConfig; - exports2.ENV_RETRY_MODE = "AWS_RETRY_MODE"; - exports2.CONFIG_RETRY_MODE = "retry_mode"; - exports2.NODE_RETRY_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports2.ENV_RETRY_MODE], - configFileSelector: (profile) => profile[exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getOmitRetryHeadersPlugin = exports2.omitRetryHeadersMiddlewareOptions = exports2.omitRetryHeadersMiddleware = void 0; - var protocol_http_1 = require_dist_cjs2(); - var util_retry_1 = require_dist_cjs30(); - 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]; } - return next(args); - }; - exports2.omitRetryHeadersMiddleware = omitRetryHeadersMiddleware; - exports2.omitRetryHeadersMiddlewareOptions = { - name: "omitRetryHeadersMiddleware", - tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"], - relation: "before", - toMiddleware: "awsAuthMiddleware", - override: true + 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; + } + isRetryableError(errorType) { + return errorType === "THROTTLING" || errorType === "TRANSIENT"; + } }; - var getOmitRetryHeadersPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, exports2.omitRetryHeadersMiddleware)(), exports2.omitRetryHeadersMiddlewareOptions); + __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); } - }); - exports2.getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js -var require_NoOpLogger = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.NoOpLogger = void 0; - var NoOpLogger = class { - trace() { + async acquireInitialRetryToken(retryTokenScope) { + await this.rateLimiter.getSendToken(); + return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope); } - debug() { + async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { + this.rateLimiter.updateClientSendingRate(errorInfo); + return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo); } - info() { + recordSuccess(token) { + this.rateLimiter.updateClientSendingRate({}); + this.standardRetryStrategy.recordSuccess(token); } - warn() { + }; + __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; + } } - error() { + async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { + const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo); + token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount()); + return token; } }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.constructStack = void 0; - var getAllAliases = (name, aliases) => { +// ../../../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); @@ -8999,19 +7724,21 @@ var require_MiddlewareStack = __commonJS({ } } return _aliases; - }; - var getMiddlewareNameWithAliases = (name, aliases) => { + }, "getAllAliases"); + var getMiddlewareNameWithAliases = /* @__PURE__ */ __name((name, aliases) => { return `${name || "anonymous"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(",")})` : ""}`; - }; - var constructStack = () => { + }, "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) => { + const filterCb = /* @__PURE__ */ __name((entry) => { const aliases = getAllAliases(entry.name, entry.aliases); if (aliases.includes(toRemove)) { isRemoved = true; @@ -9021,14 +7748,14 @@ var require_MiddlewareStack = __commonJS({ 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; for (const alias of getAllAliases(entry.name, entry.aliases)) { @@ -9037,12 +7764,12 @@ var require_MiddlewareStack = __commonJS({ 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 }); @@ -9050,10 +7777,10 @@ var require_MiddlewareStack = __commonJS({ relativeEntries.forEach((entry) => { toStack.addRelativeTo(entry.middleware, { ...entry }); }); - (_a = toStack.identifyOnResolve) === null || _a === void 0 ? void 0 : _a.call(toStack, 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) { @@ -9071,8 +7798,8 @@ var require_MiddlewareStack = __commonJS({ } }); return expandedMiddlewareList; - }; - const getMiddlewareList = (debug = false) => { + }, "expandRelativeMiddlewareList"); + const getMiddlewareList = /* @__PURE__ */ __name((debug = false) => { const normalizedAbsoluteEntries = []; const normalizedRelativeEntries = []; const normalizedEntriesNameMap = {}; @@ -9105,7 +7832,9 @@ var require_MiddlewareStack = __commonJS({ if (debug) { return; } - throw new Error(`${entry.toMiddleware} is not found when adding ${getMiddlewareNameWithAliases(entry.name, entry.aliases)} 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); @@ -9120,7 +7849,7 @@ var require_MiddlewareStack = __commonJS({ return wholeList; }, []); return mainChain; - }; + }, "getMiddlewareList"); const stack = { add: (middleware, options = {}) => { const { name, override, aliases: _aliases } = options; @@ -9136,16 +7865,20 @@ var require_MiddlewareStack = __commonJS({ if (!override) 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 || _a === void 0 ? void 0 : _a.some((a) => a === alias)); - }); + 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.`); + 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); } @@ -9168,16 +7901,20 @@ var require_MiddlewareStack = __commonJS({ if (!override) 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 || _a === void 0 ? void 0 : _a.some((a) => a === alias)); - }); + 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.`); + 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); } @@ -9188,7 +7925,7 @@ var require_MiddlewareStack = __commonJS({ } relativeEntries.push(entry); }, - clone: () => cloneTo((0, exports2.constructStack)()), + clone: () => cloneTo(constructStack()), use: (plugin) => { plugin.applyToStack(stack); }, @@ -9200,7 +7937,7 @@ var require_MiddlewareStack = __commonJS({ }, removeByTag: (toRemove) => { let isRemoved = false; - const filterCb = (entry) => { + const filterCb = /* @__PURE__ */ __name((entry) => { const { tags, name, aliases: _aliases } = entry; if (tags && tags.includes(toRemove)) { const aliases = getAllAliases(name, _aliases); @@ -9211,23 +7948,24 @@ var require_MiddlewareStack = __commonJS({ return false; } return true; - }; + }, "filterCb"); absoluteEntries = absoluteEntries.filter(filterCb); relativeEntries = relativeEntries.filter(filterCb); return isRemoved; }, concat: (from) => { - var _a, _b; - const cloned = cloneTo((0, exports2.constructStack)()); + var _a; + const cloned = cloneTo(constructStack()); cloned.use(from); - cloned.identifyOnResolve(identifyOnResolve || cloned.identifyOnResolve() || ((_b = (_a = from.identifyOnResolve) === null || _a === void 0 ? void 0 : _a.call(from)) !== null && _b !== void 0 ? _b : false)); + 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; + const step = mw.step ?? mw.relation + " " + mw.toMiddleware; return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step; }); }, @@ -9247,8 +7985,7 @@ var require_MiddlewareStack = __commonJS({ } }; return stack; - }; - exports2.constructStack = constructStack; + }, "constructStack"); var stepWeights = { initialize: 5, serialize: 4, @@ -9264,48 +8001,6 @@ var require_MiddlewareStack = __commonJS({ } }); -// ../../../node_modules/@smithy/middleware-stack/dist-cjs/index.js -var require_dist_cjs31 = __commonJS({ - "../../../node_modules/@smithy/middleware-stack/dist-cjs/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_MiddlewareStack(), exports2); - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/client.js -var require_client3 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/client.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.Client = void 0; - var middleware_stack_1 = require_dist_cjs31(); - 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(); - } - }; - exports2.Client = Client; - } -}); - // ../../../node_modules/@smithy/util-base64/dist-cjs/fromBase64.js var require_fromBase64 = __commonJS({ "../../../node_modules/@smithy/util-base64/dist-cjs/fromBase64.js"(exports2) { @@ -9314,7 +8009,7 @@ var require_fromBase64 = __commonJS({ 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.`); } @@ -9324,7 +8019,7 @@ var require_fromBase64 = __commonJS({ const buffer = (0, util_buffer_from_1.fromString)(input, "base64"); return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); }; - exports2.fromBase64 = fromBase64; + exports2.fromBase64 = fromBase642; } }); @@ -9335,73 +8030,44 @@ var require_toBase64 = __commonJS({ 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"); - exports2.toBase64 = toBase64; - } -}); - -// ../../../node_modules/@smithy/util-base64/dist-cjs/index.js -var require_dist_cjs32 = __commonJS({ - "../../../node_modules/@smithy/util-base64/dist-cjs/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromBase64(), exports2); - tslib_1.__exportStar(require_toBase64(), exports2); - } -}); - -// ../../../node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js -var require_transforms = __commonJS({ - "../../../node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.transformFromString = exports2.transformToString = void 0; - var util_base64_1 = require_dist_cjs32(); 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); + var toBase642 = (_input) => { + let input; + if (typeof _input === "string") { + input = (0, util_utf8_1.fromUtf8)(_input); + } else { + input = _input; } - return (0, util_utf8_1.toUtf8)(payload); - } - exports2.transformToString = transformToString; - function transformFromString(str, encoding) { - if (encoding === "base64") { - return Uint8ArrayBlobAdapter_1.Uint8ArrayBlobAdapter.mutate((0, util_base64_1.fromBase64)(str)); + if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") { + throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array."); } - return Uint8ArrayBlobAdapter_1.Uint8ArrayBlobAdapter.mutate((0, util_utf8_1.fromUtf8)(str)); - } - exports2.transformFromString = transformFromString; + return (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64"); + }; + exports2.toBase64 = toBase642; } }); -// ../../../node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js -var require_Uint8ArrayBlobAdapter = __commonJS({ - "../../../node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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); +// ../../../node_modules/@smithy/util-base64/dist-cjs/index.js +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; }; - exports2.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); } }); @@ -9412,7 +8078,7 @@ var require_getAwsChunkedEncodingStream = __commonJS({ 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; @@ -9439,83 +8105,123 @@ var require_getAwsChunkedEncodingStream = __commonJS({ }); return awsChunkedEncodingStream; }; - exports2.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream; + exports2.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream2; } }); // ../../../node_modules/@smithy/querystring-builder/dist-cjs/index.js var require_dist_cjs33 = __commonJS({ - "../../../node_modules/@smithy/querystring-builder/dist-cjs/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.buildQueryString = void 0; - var util_uri_escape_1 = require_dist_cjs14(); + "../../../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("&"); } - exports2.buildQueryString = buildQueryString; + __name(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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.NODEJS_TIMEOUT_ERROR_CODES = void 0; - exports2.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; - } -}); - -// ../../../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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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) { @@ -9526,56 +8232,25 @@ var require_set_connection_timeout = __commonJS({ clearTimeout(timeoutId); } }); - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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); }); - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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" })); }); - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; @@ -9601,44 +8276,32 @@ var require_write_request_body = __commonJS({ writeBody(httpRequest, request2.body); } } - exports2.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)); - } else { - httpRequest.end(); + return; } - } - } -}); - -// ../../../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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.NodeHttpHandler = exports2.DEFAULT_REQUEST_TIMEOUT = void 0; - var protocol_http_1 = require_dist_cjs2(); - var querystring_builder_1 = require_dist_cjs33(); - 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(); - exports2.DEFAULT_REQUEST_TIMEOUT = 0; - var NodeHttpHandler = class _NodeHttpHandler { - static create(instanceOrOptions) { - if (typeof (instanceOrOptions === null || instanceOrOptions === void 0 ? void 0 : instanceOrOptions.handle) === "function") { - return instanceOrOptions; + if (body) { + if (Buffer.isBuffer(body) || typeof body === "string") { + httpRequest.end(body); + return; } - return new _NodeHttpHandler(instanceOrOptions); + const uint8 = body; + if (typeof uint8 === "object" && uint8.buffer && typeof uint8.byteOffset === "number" && typeof uint8.byteLength === "number") { + httpRequest.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength)); + return; + } + httpRequest.end(Buffer.from(body)); + return; } + httpRequest.end(); + } + __name(writeBody, "writeBody"); + var DEFAULT_REQUEST_TIMEOUT = 0; + var _NodeHttpHandler = class _NodeHttpHandler2 { constructor(options) { + this.socketWarningTimestamp = 0; this.metadata = { handlerProtocol: "http/1.1" }; this.configProvider = new Promise((resolve, reject) => { if (typeof options === "function") { @@ -9650,52 +8313,110 @@ 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); + } + /** + * @internal + * + * @param agent - http(s) agent in use by the NodeHttpHandler instance. + * @returns timestamp of last emitted warning. + */ + static checkSocketUsage(agent, socketWarningTimestamp) { + var _a, _b; + const { sockets, requests, maxSockets } = agent; + if (typeof maxSockets !== "number" || maxSockets === Infinity) { + return socketWarningTimestamp; + } + const interval = 15e3; + if (Date.now() - interval < socketWarningTimestamp) { + return socketWarningTimestamp; + } + if (sockets && requests) { + for (const origin in sockets) { + const socketsInUse = ((_a = sockets[origin]) == null ? void 0 : _a.length) ?? 0; + const requestsEnqueued = ((_b = requests[origin]) == null ? void 0 : _b.length) ?? 0; + if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) { + console.warn( + "@smithy/node-http-handler:WARN", + `socket usage at capacity=${socketsInUse} and ${requestsEnqueued} additional requests are enqueued.`, + "See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html", + "or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config." + ); + return Date.now(); + } + } + } + return socketWarningTimestamp; + } 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: (() => { + if (httpAgent instanceof import_http2.Agent || typeof (httpAgent == null ? void 0 : httpAgent.destroy) === "function") { + return httpAgent; + } + return new import_http2.Agent({ keepAlive, maxSockets, ...httpAgent }); + })(), + httpsAgent: (() => { + if (httpsAgent instanceof import_https.Agent || typeof (httpsAgent == null ? void 0 : httpsAgent.destroy) === "function") { + return httpsAgent; + } + return new import_https.Agent({ keepAlive, maxSockets, ...httpsAgent }); + })() }; } 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; } + let socketCheckTimeoutId; return new Promise((_resolve, _reject) => { - var _a, _b; let writeRequestBodyPromise = void 0; - const resolve = async (arg) => { + const resolve = /* @__PURE__ */ __name(async (arg) => { await writeRequestBodyPromise; + clearTimeout(socketCheckTimeoutId); _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 agent = isSSL ? this.config.httpsAgent : this.config.httpAgent; + socketCheckTimeoutId = setTimeout(() => { + this.socketWarningTimestamp = _NodeHttpHandler2.checkSocketUsage(agent, this.socketWarningTimestamp); + }, this.config.socketAcquisitionWarningTimeout ?? (this.config.requestTimeout ?? 2e3) + (this.config.connectionTimeout ?? 1e3)); + 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; @@ -9711,28 +8432,28 @@ var require_node_http_handler = __commonJS({ method: request2.method, path, port: request2.port, - agent: isSSL ? this.config.httpsAgent : this.config.httpAgent, + agent, 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(); @@ -9743,12 +8464,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) { @@ -9761,24 +8484,17 @@ var require_node_http_handler = __commonJS({ }); } httpHandlerConfigs() { - var _a; - return (_a = this.config) !== null && _a !== void 0 ? _a : {}; + return this.config ?? {}; } }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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) { @@ -9805,22 +8521,11 @@ var require_node_http2_connection_pool = __commonJS({ } } } - } - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; @@ -9837,19 +8542,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); @@ -9857,11 +8564,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) { @@ -9876,7 +8588,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) { @@ -9902,32 +8614,12 @@ var require_node_http2_connection_manager = __commonJS({ return request2.destination.toString(); } }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.NodeHttp2Handler = void 0; - var protocol_http_1 = require_dist_cjs2(); - var querystring_builder_1 = require_dist_cjs33(); - 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 _NodeHttp2Handler { - static create(instanceOrOptions) { - if (typeof (instanceOrOptions === null || instanceOrOptions === void 0 ? void 0 : instanceOrOptions.handle) === "function") { - return instanceOrOptions; - } - return new _NodeHttp2Handler(instanceOrOptions); - } + __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) => { @@ -9938,6 +8630,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(); } @@ -9951,18 +8653,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"; @@ -9972,24 +8674,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}`; @@ -9999,14 +8701,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; @@ -10037,7 +8739,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(); @@ -10048,7 +8752,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) { @@ -10061,27 +8765,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(); } } }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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 = []; @@ -10091,19 +8789,10 @@ var require_collector = __commonJS({ callback(); } }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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(); @@ -10114,20 +8803,7 @@ var require_stream_collector = __commonJS({ const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes)); resolve(bytes); }); - }); - exports2.streamCollector = streamCollector; - } -}); - -// ../../../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) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_node_http_handler(), exports2); - tslib_1.__exportStar(require_node_http2_handler(), exports2); - tslib_1.__exportStar(require_stream_collector(), exports2); + }), "streamCollector"); } }); @@ -10142,7 +8818,7 @@ var require_sdk_stream_mixin = __commonJS({ 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; @@ -10182,81 +8858,279 @@ var require_sdk_stream_mixin = __commonJS({ } }); }; - exports2.sdkStreamMixin = sdkStreamMixin; + exports2.sdkStreamMixin = sdkStreamMixin2; } }); // ../../../node_modules/@smithy/util-stream/dist-cjs/index.js var require_dist_cjs35 = __commonJS({ - "../../../node_modules/@smithy/util-stream/dist-cjs/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_Uint8ArrayBlobAdapter(), exports2); - tslib_1.__exportStar(require_getAwsChunkedEncodingStream(), exports2); - tslib_1.__exportStar(require_sdk_stream_mixin(), exports2); + "../../../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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.collectBody = void 0; - var util_stream_1 = require_dist_cjs35(); - 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); - }; - exports2.collectBody = collectBody; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/command.js -var require_command3 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/command.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.Command = void 0; - var middleware_stack_1 = require_dist_cjs31(); - var types_1 = require_dist_cjs(); - var Command = class { + return import_util_stream.Uint8ArrayBlobAdapter.mutate(await fromContext); + }, "collectBody"); + var import_types = require_dist_cjs(); + var _Command = class _Command { constructor() { - this.middlewareStack = (0, middleware_stack_1.constructStack)(); + this.middlewareStack = (0, import_middleware_stack.constructStack)(); } + /** + * Factory for Command ClassBuilder. + * @internal + */ static classBuilder() { return new ClassBuilder(); } - resolveMiddlewareWithContext(clientStack, configuration, options, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor }) { + /** + * @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 } = configuration; + const { logger: logger2 } = configuration; const handlerExecutionContext = { - logger, + logger: logger2, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { + [import_types.SMITHY_CONTEXT_KEY]: { ...smithyContext }, ...additionalContext }; const { requestHandler } = configuration; - return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); + return stack.resolve( + (request2) => requestHandler.handle(request2.request, options || {}), + handlerExecutionContext + ); } }; - exports2.Command = Command; - var ClassBuilder = class { + __name(_Command, "Command"); + var Command = _Command; + var _ClassBuilder = class _ClassBuilder { constructor() { this._init = () => { }; @@ -10271,17 +9145,29 @@ var require_command3 = __commonJS({ 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, @@ -10290,42 +9176,70 @@ var require_command3 = __commonJS({ }; 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 = class extends Command { - static getEndpointParameterInstructions() { - return closure._ep; - } - constructor(input) { + return CommandRef = (_a = class extends Command { + /** + * @public + */ + constructor(...[input]) { super(); - this.input = input; this.serialize = closure._serializer; this.deserialize = closure._deserializer; + this.input = input ?? {}; closure._init(this); } + /** + * @public + */ + static getEndpointParameterInstructions() { + return closure._ep; + } + /** + * @internal + */ resolveMiddleware(stack, configuration, options) { return this.resolveMiddlewareWithContext(stack, configuration, options, { CommandCtor: CommandRef, @@ -10338,32 +9252,16 @@ var require_command3 = __commonJS({ additionalContext: closure._additionalContext }); } - }; + }, __name(_a, "CommandRef"), _a); } }; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/constants.js -var require_constants6 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/constants.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.SENSITIVE_STRING = void 0; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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); @@ -10374,22 +9272,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; } - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.logger = exports2.strictParseByte = exports2.strictParseShort = exports2.strictParseInt32 = exports2.strictParseInt = exports2.strictParseLong = exports2.limitedParseFloat32 = exports2.limitedParseFloat = exports2.handleFloat = exports2.limitedParseDouble = exports2.strictParseFloat32 = exports2.strictParseFloat = exports2.strictParseDouble = exports2.expectUnion = exports2.expectString = exports2.expectObject = exports2.expectNonNull = exports2.expectByte = exports2.expectShort = exports2.expectInt32 = exports2.expectInt = exports2.expectLong = exports2.expectFloat32 = exports2.expectNumber = exports2.expectBoolean = exports2.parseBoolean = void 0; - var parseBoolean = (value) => { + }, "createAggregatedClient"); + var parseBoolean = /* @__PURE__ */ __name((value) => { switch (value) { case "true": return true; @@ -10398,15 +9286,14 @@ var require_parse_utils = __commonJS({ default: throw new Error(`Unable to parse boolean value "${value}"`); } - }; - exports2.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) { - exports2.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); } if (value === 0) { return false; @@ -10418,7 +9305,7 @@ var require_parse_utils = __commonJS({ if (typeof value === "string") { const lower = value.toLowerCase(); if (lower === "false" || lower === "true") { - exports2.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); } if (lower === "false") { return false; @@ -10431,9 +9318,8 @@ var require_parse_utils = __commonJS({ return value; } throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`); - }; - exports2.expectBoolean = expectBoolean; - var expectNumber = (value) => { + }, "expectBoolean"); + var expectNumber = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } @@ -10441,7 +9327,7 @@ var require_parse_utils = __commonJS({ const parsed = parseFloat(value); if (!Number.isNaN(parsed)) { if (String(parsed) !== String(value)) { - exports2.logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`)); + logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`)); } return parsed; } @@ -10450,20 +9336,18 @@ var require_parse_utils = __commonJS({ return value; } throw new TypeError(`Expected number, got ${typeof value}: ${value}`); - }; - exports2.expectNumber = expectNumber; + }, "expectNumber"); var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); - var expectFloat32 = (value) => { - const expected = (0, exports2.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; - }; - exports2.expectFloat32 = expectFloat32; - var expectLong = (value) => { + }, "expectFloat32"); + var expectLong = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } @@ -10471,23 +9355,19 @@ var require_parse_utils = __commonJS({ return value; } throw new TypeError(`Expected integer, got ${typeof value}: ${value}`); - }; - exports2.expectLong = expectLong; - exports2.expectInt = exports2.expectLong; - var expectInt32 = (value) => expectSizedInt(value, 32); - exports2.expectInt32 = expectInt32; - var expectShort = (value) => expectSizedInt(value, 16); - exports2.expectShort = expectShort; - var expectByte = (value) => expectSizedInt(value, 8); - exports2.expectByte = expectByte; - var expectSizedInt = (value, size) => { - const expected = (0, exports2.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]; @@ -10496,8 +9376,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}`); @@ -10505,9 +9385,8 @@ var require_parse_utils = __commonJS({ throw new TypeError("Expected a non-null value"); } return value; - }; - exports2.expectNonNull = expectNonNull; - var expectObject = (value) => { + }, "expectNonNull"); + var expectObject = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } @@ -10516,9 +9395,8 @@ var require_parse_utils = __commonJS({ } const receivedType = Array.isArray(value) ? "array" : typeof value; throw new TypeError(`Expected object, got ${receivedType}: ${value}`); - }; - exports2.expectObject = expectObject; - var expectString = (value) => { + }, "expectObject"); + var expectString = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } @@ -10526,17 +9404,16 @@ var require_parse_utils = __commonJS({ return value; } if (["boolean", "number", "bigint"].includes(typeof value)) { - exports2.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}`); - }; - exports2.expectString = expectString; - var expectUnion = (value) => { + }, "expectString"); + var expectUnion = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } - const asObject = (0, exports2.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.`); @@ -10545,48 +9422,43 @@ var require_parse_utils = __commonJS({ throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); } return asObject; - }; - exports2.expectUnion = expectUnion; - var strictParseDouble = (value) => { + }, "expectUnion"); + var strictParseDouble = /* @__PURE__ */ __name((value) => { if (typeof value == "string") { - return (0, exports2.expectNumber)(parseNumber(value)); + return expectNumber(parseNumber(value)); } - return (0, exports2.expectNumber)(value); - }; - exports2.strictParseDouble = strictParseDouble; - exports2.strictParseFloat = exports2.strictParseDouble; - var strictParseFloat32 = (value) => { + return expectNumber(value); + }, "strictParseDouble"); + var strictParseFloat = strictParseDouble; + var strictParseFloat32 = /* @__PURE__ */ __name((value) => { if (typeof value == "string") { - return (0, exports2.expectFloat32)(parseNumber(value)); + return expectFloat32(parseNumber(value)); } - return (0, exports2.expectFloat32)(value); - }; - exports2.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, exports2.expectNumber)(value); - }; - exports2.limitedParseDouble = limitedParseDouble; - exports2.handleFloat = exports2.limitedParseDouble; - exports2.limitedParseFloat = exports2.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, exports2.expectFloat32)(value); - }; - exports2.limitedParseFloat32 = limitedParseFloat32; - var parseFloatString = (value) => { + return expectFloat32(value); + }, "limitedParseFloat32"); + var parseFloatString = /* @__PURE__ */ __name((value) => { switch (value) { case "NaN": return NaN; @@ -10597,52 +9469,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, exports2.expectLong)(parseNumber(value)); + return expectLong(parseNumber(value)); } - return (0, exports2.expectLong)(value); - }; - exports2.strictParseLong = strictParseLong; - exports2.strictParseInt = exports2.strictParseLong; - var strictParseInt32 = (value) => { + return expectLong(value); + }, "strictParseLong"); + var strictParseInt = strictParseLong; + var strictParseInt32 = /* @__PURE__ */ __name((value) => { if (typeof value === "string") { - return (0, exports2.expectInt32)(parseNumber(value)); + return expectInt32(parseNumber(value)); } - return (0, exports2.expectInt32)(value); - }; - exports2.strictParseInt32 = strictParseInt32; - var strictParseShort = (value) => { + return expectInt32(value); + }, "strictParseInt32"); + var strictParseShort = /* @__PURE__ */ __name((value) => { if (typeof value === "string") { - return (0, exports2.expectShort)(parseNumber(value)); + return expectShort(parseNumber(value)); } - return (0, exports2.expectShort)(value); - }; - exports2.strictParseShort = strictParseShort; - var strictParseByte = (value) => { + return expectShort(value); + }, "strictParseShort"); + var strictParseByte = /* @__PURE__ */ __name((value) => { if (typeof value === "string") { - return (0, exports2.expectByte)(parseNumber(value)); + return expectByte(parseNumber(value)); } - return (0, exports2.expectByte)(value); - }; - exports2.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"); - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.parseEpochTimestamp = exports2.parseRfc7231DateTime = exports2.parseRfc3339DateTimeWithOffset = exports2.parseRfc3339DateTime = exports2.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) { @@ -10659,9 +9517,9 @@ var require_date_utils = __commonJS({ const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; } - exports2.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; } @@ -10673,14 +9531,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 }); - }; - exports2.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; } @@ -10692,7 +9551,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 }); @@ -10700,12 +9559,17 @@ var require_date_utils = __commonJS({ date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr)); } return date; - }; - exports2.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; } @@ -10715,27 +9579,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"); - }; - exports2.parseRfc7231DateTime = parseRfc7231DateTime; - var parseEpochTimestamp = (value) => { + }, "parseRfc7231DateTime"); + var parseEpochTimestamp = /* @__PURE__ */ __name((value) => { if (value === null || value === void 0) { return void 0; } @@ -10743,7 +9618,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"); } @@ -10751,37 +9626,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)); - }; - exports2.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; @@ -10789,24 +9684,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 == "+") { @@ -10819,8 +9714,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++; @@ -10829,27 +9724,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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.decorateServiceException = exports2.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; } }; - exports2.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; @@ -10859,54 +9746,29 @@ var require_exceptions = __commonJS({ exception.message = message; delete exception.Message; return exception; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.withBaseException = exports2.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); - }; - exports2.throwDefaultError = throwDefaultError; - var withBaseException = (ExceptionCtor) => { + throw decorateServiceException(response, parsedBody); + }, "throwDefaultError"); + var withBaseException = /* @__PURE__ */ __name((ExceptionCtor) => { return ({ output, parsedBody, errorCode }) => { - (0, exports2.throwDefaultError)({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); - }; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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 { @@ -10931,41 +9793,17 @@ var require_defaults_mode = __commonJS({ default: return {}; } - }; - exports2.loadConfigsForDefaultMode = loadConfigsForDefaultMode; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js -var require_emitWarningIfUnsupportedVersion = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; } - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resolveChecksumRuntimeConfig = exports2.getChecksumConfiguration = exports2.AlgorithmId = void 0; - var types_1 = require_dist_cjs(); - Object.defineProperty(exports2, "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; } @@ -10983,26 +9821,15 @@ var require_checksum4 = __commonJS({ return this._checksumAlgorithms; } }; - }; - exports2.getChecksumConfiguration = getChecksumConfiguration; - var resolveChecksumRuntimeConfig = (clientConfig) => { + }, "getChecksumConfiguration"); + var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => { const runtimeConfig = {}; clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => { runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor(); }); return runtimeConfig; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resolveRetryRuntimeConfig = exports2.getRetryConfiguration = void 0; - var getRetryConfiguration = (runtimeConfig) => { + }, "resolveChecksumRuntimeConfig"); + var getRetryConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { let _retryStrategy = runtimeConfig.retryStrategy; return { setRetryStrategy(retryStrategy) { @@ -11012,124 +9839,60 @@ var require_retry3 = __commonJS({ return _retryStrategy; } }; - }; - exports2.getRetryConfiguration = getRetryConfiguration; - var resolveRetryRuntimeConfig = (retryStrategyConfiguration) => { + }, "getRetryConfiguration"); + var resolveRetryRuntimeConfig = /* @__PURE__ */ __name((retryStrategyConfiguration) => { const runtimeConfig = {}; runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy(); return runtimeConfig; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.resolveDefaultRuntimeConfig = exports2.getDefaultClientConfiguration = exports2.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) }; - }; - exports2.getDefaultExtensionConfiguration = getDefaultExtensionConfiguration; - exports2.getDefaultClientConfiguration = exports2.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) }; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_defaultExtensionConfiguration2(), exports2); - } -}); - -// ../../../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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.extendedEncodeURIComponent = void 0; + }, "resolveDefaultRuntimeConfig"); function extendedEncodeURIComponent(str) { return encodeURIComponent(str).replace(/[!'()*]/g, function(c) { return "%" + c.charCodeAt(0).toString(16).toUpperCase(); }); } - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getArrayIfSingleItem = void 0; - var getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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, exports2.getValueFromTextNode)(obj[key]); + obj[key] = getValueFromTextNode(obj[key]); } } return obj; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.LazyJsonString = exports2.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; - }; - exports2.StringWrapper = StringWrapper; - exports2.StringWrapper.prototype = Object.create(String.prototype, { + }, "StringWrapper"); + StringWrapper.prototype = Object.create(String.prototype, { constructor: { - value: exports2.StringWrapper, + value: StringWrapper, enumerable: false, writable: true, configurable: true } }); - Object.setPrototypeOf(exports2.StringWrapper, String); - var LazyJsonString = class _LazyJsonString extends exports2.StringWrapper { + Object.setPrototypeOf(StringWrapper, String); + var _LazyJsonString = class _LazyJsonString2 extends StringWrapper { deserializeJSON() { return JSON.parse(super.toString()); } @@ -11137,24 +9900,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)); } }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.take = exports2.convertMap = exports2.map = void 0; + __name(_LazyJsonString, "LazyJsonString"); + var LazyJsonString = _LazyJsonString; function map(arg0, arg1, arg2) { let target; let filter; @@ -11181,38 +9936,42 @@ var require_object_mapping = __commonJS({ } return target; } - exports2.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; - }; - exports2.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; - }; - exports2.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) => { + }, "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") { @@ -11241,42 +10000,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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.serializeFloat = void 0; - var serializeFloat = (value) => { + }, "resolvedPath"); + var serializeFloat = /* @__PURE__ */ __name((value) => { if (value !== value) { return "NaN"; } @@ -11288,23 +10030,13 @@ var require_ser_utils = __commonJS({ default: return value; } - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2._json = void 0; - var _json = (obj) => { + }, "serializeFloat"); + var _json = /* @__PURE__ */ __name((obj) => { if (obj == null) { return {}; } if (Array.isArray(obj)) { - return obj.filter((_) => _ != null).map(exports2._json); + return obj.filter((_) => _ != null).map(_json); } if (typeof obj === "object") { const target = {}; @@ -11312,22 +10044,12 @@ var require_serde_json = __commonJS({ if (obj[key] == null) { continue; } - target[key] = (0, exports2._json)(obj[key]); + target[key] = _json(obj[key]); } return target; } return obj; - }; - exports2._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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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."); @@ -11349,72 +10071,295 @@ var require_split_every = __commonJS({ currentSegment = ""; } } - if (currentSegment !== "") { - compoundSegments.push(currentSegment); + if (currentSegment !== "") { + compoundSegments.push(currentSegment); + } + return compoundSegments; + } + __name(splitEvery, "splitEvery"); + } +}); + +// ../../../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(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); } - return compoundSegments; - } - exports2.splitEvery = splitEvery; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/index.js -var require_dist_cjs36 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_NoOpLogger(), exports2); - tslib_1.__exportStar(require_client3(), exports2); - tslib_1.__exportStar(require_collect_stream_body(), exports2); - tslib_1.__exportStar(require_command3(), exports2); - tslib_1.__exportStar(require_constants6(), exports2); - tslib_1.__exportStar(require_create_aggregated_client(), exports2); - tslib_1.__exportStar(require_date_utils(), exports2); - tslib_1.__exportStar(require_default_error_handler(), exports2); - tslib_1.__exportStar(require_defaults_mode(), exports2); - tslib_1.__exportStar(require_emitWarningIfUnsupportedVersion(), exports2); - tslib_1.__exportStar(require_extensions4(), exports2); - tslib_1.__exportStar(require_exceptions(), exports2); - tslib_1.__exportStar(require_extended_encode_uri_component(), exports2); - tslib_1.__exportStar(require_get_array_if_single_item(), exports2); - tslib_1.__exportStar(require_get_value_from_text_node(), exports2); - tslib_1.__exportStar(require_lazy_json(), exports2); - tslib_1.__exportStar(require_object_mapping(), exports2); - tslib_1.__exportStar(require_parse_utils(), exports2); - tslib_1.__exportStar(require_resolve_path(), exports2); - tslib_1.__exportStar(require_ser_utils(), exports2); - tslib_1.__exportStar(require_serde_json(), exports2); - tslib_1.__exportStar(require_split_every(), exports2); - } -}); - -// ../../../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(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/retryMiddleware.js -var require_retryMiddleware = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getRetryAfterHint = exports2.getRetryPlugin = exports2.retryMiddlewareOptions = exports2.retryMiddleware = void 0; - var protocol_http_1 = require_dist_cjs2(); - var service_error_classification_1 = require_dist_cjs29(); - var smithy_client_1 = require_dist_cjs36(); - var util_retry_1 = require_dist_cjs30(); - var uuid_1 = (init_esm_node(), __toCommonJS(esm_node_exports)); - var isStreamingPayload_1 = require_isStreamingPayload(); - var util_1 = require_util3(); - var retryMiddleware = (options) => (next, context) => async (args) => { + }), "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(); @@ -11425,14 +10370,14 @@ var require_retryMiddleware = __commonJS({ let attempts = 0; let totalRetryDelay = 0; const { request: request2 } = args; - const isRequest = protocol_http_1.HttpRequest.isInstance(request2); + const isRequest = import_protocol_http.HttpRequest.isInstance(request2); if (isRequest) { - request2.headers[util_retry_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); + request2.headers[import_util_retry.INVOCATION_ID_HEADER] = (0, import_uuid.v4)(); } while (true) { try { if (isRequest) { - request2.headers[util_retry_1.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; + request2.headers[import_util_retry.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; } const { response, output } = await next(args); retryStrategy.recordSuccess(retryToken); @@ -11441,9 +10386,11 @@ var require_retryMiddleware = __commonJS({ return { response, output }; } catch (e) { const retryErrorInfo = getRetryErrorInfo(e); - lastError = (0, util_1.asSdkError)(e); - if (isRequest && (0, isStreamingPayload_1.isStreamingPayload)(request2)) { - (_a = context.logger instanceof smithy_client_1.NoOpLogger ? console : context.logger) === null || _a === void 0 ? void 0 : _a.warn("An error was encountered in a non-retryable streaming request."); + 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 { @@ -11464,47 +10411,46 @@ var require_retryMiddleware = __commonJS({ } } else { retryStrategy = retryStrategy; - if (retryStrategy === null || retryStrategy === void 0 ? void 0 : retryStrategy.mode) + if (retryStrategy == null ? void 0 : retryStrategy.mode) context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]]; return retryStrategy.retry(next, args); } - }; - exports2.retryMiddleware = retryMiddleware; - var isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined"; - var getRetryErrorInfo = (error) => { + }, "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 = { + error, errorType: getRetryErrorType(error) }; - const retryAfterHint = (0, exports2.getRetryAfterHint)(error.$response); + const retryAfterHint = getRetryAfterHint(error.$response); if (retryAfterHint) { errorInfo.retryAfterHint = retryAfterHint; } return errorInfo; - }; - var getRetryErrorType = (error) => { - if ((0, service_error_classification_1.isThrottlingError)(error)) + }, "getRetryErrorInfo"); + var getRetryErrorType = /* @__PURE__ */ __name((error) => { + if ((0, import_service_error_classification.isThrottlingError)(error)) return "THROTTLING"; - if ((0, service_error_classification_1.isTransientError)(error)) + if ((0, import_service_error_classification.isTransientError)(error)) return "TRANSIENT"; - if ((0, service_error_classification_1.isServerError)(error)) + if ((0, import_service_error_classification.isServerError)(error)) return "SERVER_ERROR"; return "CLIENT_ERROR"; - }; - exports2.retryMiddlewareOptions = { + }, "getRetryErrorType"); + var retryMiddlewareOptions = { name: "retryMiddleware", tags: ["RETRY"], step: "finalizeRequest", priority: "high", override: true }; - var getRetryPlugin = (options) => ({ + var getRetryPlugin = /* @__PURE__ */ __name((options) => ({ applyToStack: (clientStack) => { - clientStack.add((0, exports2.retryMiddleware)(options), exports2.retryMiddlewareOptions); + clientStack.add(retryMiddleware(options), retryMiddlewareOptions); } - }); - exports2.getRetryPlugin = getRetryPlugin; - var getRetryAfterHint = (response) => { - if (!protocol_http_1.HttpResponse.isInstance(response)) + }), "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) @@ -11515,24 +10461,7 @@ var require_retryMiddleware = __commonJS({ return new Date(retryAfterSeconds * 1e3); const retryAfterDate = new Date(retryAfter); return retryAfterDate; - }; - exports2.getRetryAfterHint = getRetryAfterHint; - } -}); - -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/index.js -var require_dist_cjs37 = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_AdaptiveRetryStrategy2(), exports2); - tslib_1.__exportStar(require_StandardRetryStrategy2(), exports2); - tslib_1.__exportStar(require_configurations2(), exports2); - tslib_1.__exportStar(require_delayDecider(), exports2); - tslib_1.__exportStar(require_omitRetryHeadersMiddleware(), exports2); - tslib_1.__exportStar(require_retryDecider(), exports2); - tslib_1.__exportStar(require_retryMiddleware(), exports2); + }, "getRetryAfterHint"); } }); @@ -11979,7 +10908,7 @@ var require_models_0 = __commonJS({ }); // ../../../node_modules/fast-xml-parser/src/util.js -var require_util4 = __commonJS({ +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"; @@ -12041,7 +10970,7 @@ var require_util4 = __commonJS({ var require_validator = __commonJS({ "../../../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 @@ -12436,7 +11365,7 @@ 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"(exports2, module2) { - var util = require_util4(); + 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") { @@ -12643,7 +11572,7 @@ var require_strnum = __commonJS({ var require_OrderedObjParser = __commonJS({ "../../../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(); @@ -14895,7 +13824,7 @@ var require_defaultStsRoleAssumers = __commonJS({ }); // ../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js -var require_fromEnv2 = __commonJS({ +var require_fromEnv = __commonJS({ "../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -14930,39 +13859,74 @@ var require_dist_cjs39 = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromEnv2(), exports2); + tslib_1.__exportStar(require_fromEnv(), exports2); } }); -// ../../../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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.httpRequest = void 0; - var property_provider_1 = require_dist_cjs6(); - var buffer_1 = require("buffer"); - var http_1 = require("http"); +// ../../../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, + Endpoint: () => Endpoint, + fromContainerMetadata: () => fromContainerMetadata, + fromInstanceMetadata: () => fromInstanceMetadata, + getInstanceMetadataEndpoint: () => getInstanceMetadataEndpoint, + httpRequest: () => httpRequest, + providerConfigFromInit: () => providerConfigFromInit + }); + 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 = []; @@ -14970,105 +13934,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(); }); } - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.fromImdsCredentials = exports2.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"; - exports2.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) - }); - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.providerConfigFromInit = exports2.DEFAULT_MAX_RETRIES = exports2.DEFAULT_TIMEOUT = void 0; - exports2.DEFAULT_TIMEOUT = 1e3; - exports2.DEFAULT_MAX_RETRIES = 0; - var providerConfigFromInit = ({ maxRetries = exports2.DEFAULT_MAX_RETRIES, timeout = exports2.DEFAULT_TIMEOUT }) => ({ maxRetries, timeout }); - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.fromContainerMetadata = exports2.ENV_CMDS_AUTH_TOKEN = exports2.ENV_CMDS_RELATIVE_URI = exports2.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(); - exports2.ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; - exports2.ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; - exports2.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); - }; - exports2.fromContainerMetadata = fromContainerMetadata; - var requestFromEcsImds = async (timeout, options) => { - if (process.env[exports2.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[exports2.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, @@ -15078,186 +13998,118 @@ var require_fromContainerMetadata = __commonJS({ "http:": true, "https:": true }; - var getCmdsUri = async () => { - if (process.env[exports2.ENV_CMDS_RELATIVE_URI]) { + var getCmdsUri = /* @__PURE__ */ __name(async () => { + if (process.env[ENV_CMDS_RELATIVE_URI]) { return { hostname: CMDS_IP, - path: process.env[exports2.ENV_CMDS_RELATIVE_URI] + path: process.env[ENV_CMDS_RELATIVE_URI] }; } - if (process.env[exports2.ENV_CMDS_FULL_URI]) { - const parsed = (0, url_1.parse)(process.env[exports2.ENV_CMDS_FULL_URI]); + 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 property_provider_1.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, false); + 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 property_provider_1.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, false); + 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 property_provider_1.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${exports2.ENV_CMDS_RELATIVE_URI} or ${exports2.ENV_CMDS_FULL_URI} environment variable is set`, false); - }; - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js -var require_InstanceMetadataV1FallbackError = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.InstanceMetadataV1FallbackError = void 0; - var property_provider_1 = require_dist_cjs6(); - var InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends property_provider_1.CredentialsProviderError { + 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, _InstanceMetadataV1FallbackError.prototype); + Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError2.prototype); } }; - exports2.InstanceMetadataV1FallbackError = InstanceMetadataV1FallbackError; - } -}); - -// ../../../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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.Endpoint = void 0; - var Endpoint; - (function(Endpoint2) { + __name(_InstanceMetadataV1FallbackError, "InstanceMetadataV1FallbackError"); + var InstanceMetadataV1FallbackError = _InstanceMetadataV1FallbackError; + var import_node_config_provider = require_dist_cjs24(); + var import_url_parser = require_dist_cjs26(); + var Endpoint = /* @__PURE__ */ ((Endpoint2) => { Endpoint2["IPv4"] = "http://169.254.169.254"; Endpoint2["IPv6"] = "http://[fd00:ec2::254]"; - })(Endpoint = exports2.Endpoint || (exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.ENDPOINT_CONFIG_OPTIONS = exports2.CONFIG_ENDPOINT_NAME = exports2.ENV_ENDPOINT_NAME = void 0; - exports2.ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; - exports2.CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; - exports2.ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports2.ENV_ENDPOINT_NAME], - configFileSelector: (profile) => profile[exports2.CONFIG_ENDPOINT_NAME], + return Endpoint2; + })(Endpoint || {}); + 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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.EndpointMode = void 0; - var EndpointMode; - (function(EndpointMode2) { + var EndpointMode = /* @__PURE__ */ ((EndpointMode2) => { EndpointMode2["IPv4"] = "IPv4"; EndpointMode2["IPv6"] = "IPv6"; - })(EndpointMode = exports2.EndpointMode || (exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.ENDPOINT_MODE_CONFIG_OPTIONS = exports2.CONFIG_ENDPOINT_MODE_NAME = exports2.ENV_ENDPOINT_MODE_NAME = void 0; - var EndpointMode_1 = require_EndpointMode(); - exports2.ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; - exports2.CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; - exports2.ENDPOINT_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports2.ENV_ENDPOINT_MODE_NAME], - configFileSelector: (profile) => profile[exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getInstanceMetadataEndpoint = void 0; - var node_config_provider_1 = require_dist_cjs24(); - var url_parser_1 = require_dist_cjs26(); - 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()); - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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)}. +For more information, please visit: ` + STATIC_STABILITY_DOC_URL + ); + const originalExpiration = credentials.originalExpiration ?? credentials.expiration; return { ...credentials, ...originalExpiration ? { originalExpiration } : {}, expiration: newExpiration }; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; } @@ -15265,61 +14117,46 @@ var require_staticStabilityProvider = __commonJS({ pastCredentials = credentials; return credentials; }; - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.fromInstanceMetadata = void 0; - var node_config_provider_1 = require_dist_cjs24(); - var property_provider_1 = require_dist_cjs6(); - var InstanceMetadataV1FallbackError_1 = require_InstanceMetadataV1FallbackError(); - 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 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 = (init = {}) => (0, staticStabilityProvider_1.staticStabilityProvider)(getInstanceImdsProvider(init), { logger: init.logger }); - exports2.fromInstanceMetadata = fromInstanceMetadata; - var getInstanceImdsProvider = (init) => { + var fromInstanceMetadata = /* @__PURE__ */ __name((init = {}) => staticStabilityProvider(getInstanceImdsProvider(init), { logger: init.logger }), "fromInstanceMetadata"); + var getInstanceImdsProvider = /* @__PURE__ */ __name((init) => { let disableFetchToken = false; const { logger, profile } = init; - const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); - const getCredentials = async (maxRetries2, options) => { + const { timeout, maxRetries } = providerConfigFromInit(init); + const getCredentials = /* @__PURE__ */ __name(async (maxRetries2, options) => { var _a; - const isImdsV1Fallback = disableFetchToken || ((_a = options.headers) === null || _a === void 0 ? void 0 : _a[X_AWS_EC2_METADATA_TOKEN]) == null; + 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, node_config_provider_1.loadConfig)({ - environmentVariableSelector: (env) => { - const envValue = env[AWS_EC2_METADATA_V1_DISABLED]; - fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false"; - if (envValue === void 0) { - throw new property_provider_1.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; + 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 }, - default: false - }, { - profile - })(); + { + profile + } + )(); if (init.ec2MetadataV1Disabled || configValue) { const causes = []; if (init.ec2MetadataV1Disabled) @@ -15328,10 +14165,14 @@ var require_fromInstanceMetadata = __commonJS({ 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_1.InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(", ")}].`); + throw new InstanceMetadataV1FallbackError( + `AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join( + ", " + )}].` + ); } } - const imdsProfile = (await (0, retry_1.retry)(async () => { + const imdsProfile = (await retry(async () => { let profile2; try { profile2 = await getProfile(options); @@ -15343,7 +14184,7 @@ var require_fromInstanceMetadata = __commonJS({ } return profile2; }, maxRetries2)).trim(); - return (0, retry_1.retry)(async () => { + return retry(async () => { let creds; try { creds = await getCredentialsFromProfile(imdsProfile, options); @@ -15355,25 +14196,25 @@ 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 || logger === void 0 ? void 0 : logger.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)"); + 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 || logger === void 0 ? void 0 : logger.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)"); + logger == null ? void 0 : logger.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)"); return getCredentials(maxRetries, { ...endpoint, timeout }); } return getCredentials(maxRetries, { @@ -15385,56 +14226,28 @@ var require_fromInstanceMetadata = __commonJS({ }); } }; - }; - 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_types7 = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/types.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getInstanceMetadataEndpoint = exports2.httpRequest = void 0; - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromContainerMetadata(), exports2); - tslib_1.__exportStar(require_fromInstanceMetadata(), exports2); - tslib_1.__exportStar(require_RemoteProviderInit(), exports2); - tslib_1.__exportStar(require_types7(), exports2); - var httpRequest_1 = require_httpRequest2(); - Object.defineProperty(exports2, "httpRequest", { enumerable: true, get: function() { - return httpRequest_1.httpRequest; - } }); - var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); - Object.defineProperty(exports2, "getInstanceMetadataEndpoint", { enumerable: true, get: function() { - return getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint; - } }); + return fromImdsCredentials(credsResponse); + }, "getCredentialsFromProfile"); } }); @@ -15826,59 +14639,101 @@ var require_dist_cjs42 = __commonJS({ // ../../../node_modules/@smithy/hash-node/dist-cjs/index.js var require_dist_cjs43 = __commonJS({ - "../../../node_modules/@smithy/hash-node/dist-cjs/index.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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); } }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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; } if (typeof body === "string") { - return Buffer.from(body).length; + return Buffer.byteLength(body); } else if (typeof body.byteLength === "number") { return body.byteLength; } else if (typeof body.size === "number") { @@ -15886,23 +14741,12 @@ 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}`); - }; - exports2.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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_calculateBodyLength(), exports2); + }, "calculateBodyLength"); } }); @@ -15983,30 +14827,54 @@ var require_runtimeConfig_shared = __commonJS({ } }); -// ../../../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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.IMDS_REGION_PATH = exports2.DEFAULTS_MODE_OPTIONS = exports2.ENV_IMDS_DISABLED = exports2.AWS_DEFAULT_REGION_ENV = exports2.AWS_REGION_ENV = exports2.AWS_EXECUTION_ENV = void 0; - exports2.AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; - exports2.AWS_REGION_ENV = "AWS_REGION"; - exports2.AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION"; - exports2.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; - exports2.DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"]; - exports2.IMDS_REGION_PATH = "/latest/meta-data/placement/region"; - } -}); - -// ../../../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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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"; - exports2.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { + var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { environmentVariableSelector: (env) => { return env[AWS_DEFAULTS_MODE_ENV]; }, @@ -16015,24 +14883,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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.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_cjs24(); - 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": @@ -16040,15 +14896,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}` + ); } - }); - exports2.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(); @@ -16062,30 +14919,20 @@ 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"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_resolveDefaultsModeConfig(), exports2); + }, "inferPhysicalRegion"); } }); @@ -16139,7 +14986,7 @@ var require_runtimeConfig = __commonJS({ }); // ../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/extensions/index.js -var require_extensions5 = __commonJS({ +var require_extensions2 = __commonJS({ "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/extensions/index.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -16175,7 +15022,7 @@ var require_extensions5 = __commonJS({ }); // ../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/config.js -var require_config4 = __commonJS({ +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 }); @@ -16196,7 +15043,7 @@ var require_config4 = __commonJS({ }); // ../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/isFipsRegion.js -var require_isFipsRegion2 = __commonJS({ +var require_isFipsRegion = __commonJS({ "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/isFipsRegion.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -16207,25 +15054,25 @@ var require_isFipsRegion2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/getRealRegion.js -var require_getRealRegion2 = __commonJS({ +var require_getRealRegion = __commonJS({ "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/getRealRegion.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.getRealRegion = void 0; - var isFipsRegion_1 = require_isFipsRegion2(); + 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; exports2.getRealRegion = getRealRegion; } }); // ../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js -var require_resolveRegionConfig2 = __commonJS({ +var require_resolveRegionConfig = __commonJS({ "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.resolveRegionConfig = void 0; - var getRealRegion_1 = require_getRealRegion2(); - var isFipsRegion_1 = require_isFipsRegion2(); + var getRealRegion_1 = require_getRealRegion(); + var isFipsRegion_1 = require_isFipsRegion(); var resolveRegionConfig = (input) => { const { region, useFipsEndpoint } = input; if (!region) { @@ -16254,13 +15101,13 @@ var require_resolveRegionConfig2 = __commonJS({ }); // ../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/index.js -var require_regionConfig2 = __commonJS({ +var require_regionConfig = __commonJS({ "../../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/index.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_config4(), exports2); - tslib_1.__exportStar(require_resolveRegionConfig2(), exports2); + tslib_1.__exportStar(require_config(), exports2); + tslib_1.__exportStar(require_resolveRegionConfig(), exports2); } }); @@ -16270,8 +15117,8 @@ var require_dist_cjs46 = __commonJS({ "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_extensions5(), exports2); - tslib_1.__exportStar(require_regionConfig2(), exports2); + tslib_1.__exportStar(require_extensions2(), exports2); + tslib_1.__exportStar(require_regionConfig(), exports2); } }); @@ -17189,7 +16036,7 @@ var require_ListAccountsPaginator = __commonJS({ }); // ../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js -var require_pagination3 = __commonJS({ +var require_pagination2 = __commonJS({ "../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -17220,7 +16067,7 @@ var require_dist_cjs47 = __commonJS({ tslib_1.__exportStar(require_SSOClient(), exports2); tslib_1.__exportStar(require_SSO(), exports2); tslib_1.__exportStar(require_commands(), exports2); - tslib_1.__exportStar(require_pagination3(), exports2); + tslib_1.__exportStar(require_pagination2(), exports2); tslib_1.__exportStar(require_models(), exports2); var SSOServiceException_1 = require_SSOServiceException(); Object.defineProperty(exports2, "SSOServiceException", { enumerable: true, get: function() { @@ -18137,7 +16984,7 @@ var require_client_sso_oidc_node = __commonJS({ }); // ../../../node_modules/@aws-sdk/token-providers/dist-cjs/constants.js -var require_constants8 = __commonJS({ +var require_constants2 = __commonJS({ "../../../node_modules/@aws-sdk/token-providers/dist-cjs/constants.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -18195,7 +17042,7 @@ var require_validateTokenExpiry = __commonJS({ 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); @@ -18212,7 +17059,7 @@ var require_validateTokenKey = __commonJS({ 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); @@ -18248,7 +17095,7 @@ var require_fromSso = __commonJS({ exports2.fromSso = void 0; var property_provider_1 = require_dist_cjs6(); var shared_ini_file_loader_1 = require_dist_cjs23(); - var constants_1 = require_constants8(); + var constants_1 = require_constants2(); var getNewSsoOidcToken_1 = require_getNewSsoOidcToken(); var validateTokenExpiry_1 = require_validateTokenExpiry(); var validateTokenKey_1 = require_validateTokenKey(); @@ -18325,7 +17172,7 @@ var require_fromSso = __commonJS({ }); // ../../../node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js -var require_fromStatic3 = __commonJS({ +var require_fromStatic = __commonJS({ "../../../node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -18364,7 +17211,7 @@ var require_dist_cjs48 = __commonJS({ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); tslib_1.__exportStar(require_client_sso_oidc_node(), exports2); tslib_1.__exportStar(require_fromSso(), exports2); - tslib_1.__exportStar(require_fromStatic3(), exports2); + tslib_1.__exportStar(require_fromStatic(), exports2); tslib_1.__exportStar(require_nodeProvider(), exports2); } }); @@ -18509,7 +17356,7 @@ var require_fromSSO = __commonJS({ }); // ../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js -var require_types8 = __commonJS({ +var require_types2 = __commonJS({ "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -18524,7 +17371,7 @@ var require_dist_cjs49 = __commonJS({ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); tslib_1.__exportStar(require_fromSSO(), exports2); tslib_1.__exportStar(require_isSsoProfile(), exports2); - tslib_1.__exportStar(require_types8(), exports2); + tslib_1.__exportStar(require_types2(), exports2); tslib_1.__exportStar(require_validateSsoProfile(), exports2); } }); @@ -25138,7 +23985,7 @@ var require_ListStateMachinesPaginator = __commonJS({ }); // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/index.js -var require_pagination4 = __commonJS({ +var require_pagination3 = __commonJS({ "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/pagination/index.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -25172,7 +24019,7 @@ var require_dist_cjs54 = __commonJS({ tslib_1.__exportStar(require_SFNClient(), exports2); tslib_1.__exportStar(require_SFN(), exports2); tslib_1.__exportStar(require_commands3(), exports2); - tslib_1.__exportStar(require_pagination4(), exports2); + tslib_1.__exportStar(require_pagination3(), exports2); tslib_1.__exportStar(require_models3(), exports2); var SFNServiceException_1 = require_SFNServiceException(); Object.defineProperty(exports2, "SFNServiceException", { enumerable: true, get: function() { @@ -31918,7 +30765,7 @@ var init_parameter_types = __esm({ "use strict"; zlib = __toESM(require("zlib")); typeCoercionStateMachine = () => { - const encoded = "W3XeNQrpSevl2plIdSekJQV926mqho2rh3c7/Ni21Q0qTD0kb4XkRt9K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R/P51+JPzJTWuZhanhwiUQVI3T0DBvsYyf1Kc5v5aiDM1165c9vzMMFvgD2iOkDT6U8csxqHJ44a6SziEAdGtl6xZyDr8Wvq1cHsV0vu0RKFsbR3/6f+814h7BvUNA7/rtcd76Bowon0hy6hG249Z2IOVQ1Z8uPnJ/6Bxxa5kkQ3z1iHOM0Ckf4eLc5YU4kkE0qKyG9iY8J9nFsdW/gXvlPMK0qjvF+NzVRY1AyF04wUt4WC4Q8zTjntUgg261MPsQJaVClqv/ZWvBwGB1fxVKScSL/010AvDl//alhAS7iS2FvycMw/3OWX36Xr8nwVTb5XZceudtAPDuV3UDmyITkLwnnoWu7cgk2HKq4jzdOinQPNik6l9BvexeuNIv6KKhexaUou9gGkzAgN/Y5pIJnSPqIBIogpcgPlR6bggk6zCr4qRJtyERu56JEA19whA4GLPcG4X3/J4n8HEMGhhlT2D7CNzAlm/JfZN4tnhnZj6OtCAdX2Onvxtd2WR6kPYF77WWutDXYAMF7j7N2YOLpDqm2oIrpSmjJ29EijTpy0MZFEo9Avjo++AHh1WwNYMSDBqkp30T7I3+oDK/WMJDa9OPeLpO/j749+jTfXDPTN+Vz3dJAnD6K/Q7VEx+itVCYHadAK8x896G0moCbk3kEAYw3cap8DIpII7xdWozsWqFl3ahiYBPHvMLIgdf/EY9uR1yDS3yiMAbu4iRXYasn49rFMZlAK5Ag+6KsBLJl4lNAHWMy2OhmuRod+kyzBe3j/pQilv09PpokoQjXIEntTpGqILAzmOwQe83jNUnY1Uvj+InKbJl9efKWK5r+saZ33ttJQDaLSFiUopBSMkOSI/oCYFR/M9Mgg4WQeli/OvB31Zjg3eTisZRg0BNXBX+o+ch1EHtb/pTKY99/vcJ7fMiX0eBkIwrSPiP1sbZbxQ0u0zwBD3C50PdJYOz5k4="; const decoded = JSON.parse(zlib.brotliDecompressSync(Buffer.from(encoded, "base64")).toString()); typeCoercionStateMachine = () => decoded; return decoded; @@ -32946,6 +31793,9 @@ var require_sdk_v3_metadata = __commonJS({ networkmanager: { iamPrefix: "networkmanager" }, + networkmonitor: { + iamPrefix: "networkmonitor" + }, nimble: { iamPrefix: "nimble" }, @@ -33241,6 +32091,9 @@ var require_sdk_v3_metadata = __commonJS({ sts: { iamPrefix: "sts" }, + supplychain: { + iamPrefix: "scn" + }, "support-app": { iamPrefix: "supportapp" }, @@ -33557,7 +32410,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", @@ -33569,6 +32421,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 @@ -33702,6 +32557,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-lambda-nodejs/test/integ.latest.js.snapshot/asset.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/index.js deleted file mode 100644 index 609e84a852540..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/index.js +++ /dev/null @@ -1,77 +0,0 @@ -"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};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 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(` -`)} - -${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,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((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=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 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{if(typeof require=="function"){let e=require,n="@aws-sdk/signature-v4-crt";e.call(null,n),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 -require("@aws-sdk/signature-v4-crt"); // CJS - -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=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",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 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: - (*! ***************************************************************************** - Copyright (c) Microsoft Corporation. - - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted. - - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - 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. - ***************************************************************************** *) - -tslib/tslib.es6.js: - (*! ***************************************************************************** - Copyright (c) Microsoft Corporation. - - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted. - - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - 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. - ***************************************************************************** *) -*/ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/index.js new file mode 100644 index 0000000000000..1b35cc43c1d5e --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/index.js @@ -0,0 +1,78 @@ +"use strict";var qL=Object.create;var Ya=Object.defineProperty;var DL=Object.getOwnPropertyDescriptor;var ML=Object.getOwnPropertyNames;var FL=Object.getPrototypeOf,LL=Object.prototype.hasOwnProperty;var je=(e,n)=>()=>(e&&(n=e(e=0)),n);var m=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),Oi=(e,n)=>{for(var t in n)Ya(e,t,{get:n[t],enumerable:!0})},$S=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of ML(n))!LL.call(e,o)&&o!==t&&Ya(e,o,{get:()=>n[o],enumerable:!(r=DL(n,o))||r.enumerable});return e};var Ni=(e,n,t)=>(t=e!=null?qL(FL(e)):{},$S(n||!e||!e.__esModule?Ya(t,"default",{value:e,enumerable:!0}):t,e)),J=e=>$S(Ya({},"__esModule",{value:!0}),e);var te={};Oi(te,{__addDisposableResource:()=>mb,__assign:()=>Ja,__asyncDelegator:()=>ob,__asyncGenerator:()=>rb,__asyncValues:()=>sb,__await:()=>br,__awaiter:()=>JS,__classPrivateFieldGet:()=>db,__classPrivateFieldIn:()=>ub,__classPrivateFieldSet:()=>lb,__createBinding:()=>Za,__decorate:()=>XS,__disposeResources:()=>pb,__esDecorate:()=>jL,__exportStar:()=>ZS,__extends:()=>KS,__generator:()=>QS,__importDefault:()=>cb,__importStar:()=>ab,__makeTemplateObject:()=>ib,__metadata:()=>YS,__param:()=>WS,__propKey:()=>zL,__read:()=>Um,__rest:()=>VS,__runInitializers:()=>UL,__setFunctionName:()=>GL,__spread:()=>eb,__spreadArray:()=>nb,__spreadArrays:()=>tb,__values:()=>Qa,default:()=>KL});function KS(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 VS(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--)(a=e[i])&&(s=(o<3?a(s):o>3?a(n,t,s):a(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function WS(e,n){return function(t,r){n(t,r,e)}}function jL(e,n,t,r,o,s){function a(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,c=n||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),y,g=!1,C=t.length-1;C>=0;C--){var P={};for(var A in r)P[A]=A==="access"?{}:r[A];for(var A in r.access)P.access[A]=r.access[A];P.addInitializer=function(G){if(g)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(G||null))};var v=(0,t[C])(i==="accessor"?{get:c.get,set:c.set}:c[u],P);if(i==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(y=a(v.get))&&(c.get=y),(y=a(v.set))&&(c.set=y),(y=a(v.init))&&o.unshift(y)}else(y=a(v))&&(i==="field"?o.unshift(y):c[u]=y)}l&&Object.defineProperty(l,r.name,c),g=!0}function UL(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 Um(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,s=[],a;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){a={error:i}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return s}function eb(){for(var e=[],n=0;n1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(P){y(s[0][3],P)}}function u(g){g.value instanceof br?Promise.resolve(g.value.v).then(l,c):y(s[0][2],g)}function l(g){i("next",g)}function c(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function ob(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(a){return(t=!t)?{value:br(e[o](a)),done:!1}:s?s(a):a}:s}}function sb(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(a){return new Promise(function(i,u){a=e[s](a),o(i,u,a.done,a.value)})}}function o(s,a,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},a)}}function ib(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function ab(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 HL(n,e),n}function cb(e){return e&&e.__esModule?e:{default:e}}function db(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 lb(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 ub(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 mb(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 pb(e){function n(r){e.error=e.hasError?new $L(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,HL,$L,KL,ne=je(()=>{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,VL=Object.getOwnPropertyDescriptor,XL=Object.getOwnPropertyNames,WL=Object.prototype.hasOwnProperty,tc=(e,n)=>ec(e,"name",{value:n,configurable:!0}),YL=(e,n)=>{for(var t in n)ec(e,t,{get:n[t],enumerable:!0})},JL=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of XL(n))!WL.call(e,o)&&o!==t&&ec(e,o,{get:()=>n[o],enumerable:!(r=VL(n,o))||r.enumerable});return e},QL=e=>JL(ec({},"__esModule",{value:!0}),e),fb={};YL(fb,{AlgorithmId:()=>_b,EndpointURLScheme:()=>hb,FieldPosition:()=>Cb,HttpApiKeyAuthLocation:()=>gb,HttpAuthLocation:()=>yb,IniSectionType:()=>Sb,RequestHandlerProtocol:()=>bb,SMITHY_CONTEXT_KEY:()=>rj,getDefaultClientConfiguration:()=>tj,resolveDefaultRuntimeConfig:()=>nj});Eb.exports=QL(fb);var yb=(e=>(e.HEADER="header",e.QUERY="query",e))(yb||{}),gb=(e=>(e.HEADER="header",e.QUERY="query",e))(gb||{}),hb=(e=>(e.HTTP="http",e.HTTPS="https",e))(hb||{}),_b=(e=>(e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256",e))(_b||{}),ZL=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"),ej=tc(e=>{let n={};return e.checksumAlgorithms().forEach(t=>{n[t.algorithmId()]=t.checksumConstructor()}),n},"resolveChecksumRuntimeConfig"),tj=tc(e=>({...ZL(e)}),"getDefaultClientConfiguration"),nj=tc(e=>({...ej(e)}),"resolveDefaultRuntimeConfig"),Cb=(e=>(e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER",e))(Cb||{}),rj="__smithy_context",Sb=(e=>(e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services",e))(Sb||{}),bb=(e=>(e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0",e))(bb||{})});var Ne=m((fbe,Ib)=>{var nc=Object.defineProperty,oj=Object.getOwnPropertyDescriptor,sj=Object.getOwnPropertyNames,ij=Object.prototype.hasOwnProperty,wn=(e,n)=>nc(e,"name",{value:n,configurable:!0}),aj=(e,n)=>{for(var t in n)nc(e,t,{get:n[t],enumerable:!0})},cj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of sj(n))!ij.call(e,o)&&o!==t&&nc(e,o,{get:()=>n[o],enumerable:!(r=oj(n,o))||r.enumerable});return e},dj=e=>cj(nc({},"__esModule",{value:!0}),e),Pb={};aj(Pb,{Field:()=>pj,Fields:()=>fj,HttpRequest:()=>yj,HttpResponse:()=>gj,getHttpHandlerExtensionConfiguration:()=>lj,isValidHostname:()=>Nb,resolveHttpHandlerRuntimeConfig:()=>uj});Ib.exports=dj(Pb);var lj=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"),uj=wn(e=>({httpHandler:e.httpHandler()}),"resolveHttpHandlerRuntimeConfig"),mj=w(),vb=class{constructor({name:n,kind:t=mj.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(vb,"Field");var pj=vb,wb=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(wb,"Fields");var fj=wb,xb=class kb{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 kb({...this,headers:{...this.headers}});return n.query&&(n.query=Ab(n.query)),n}};wn(xb,"HttpRequest");var yj=xb;function Ab(e){return Object.keys(e).reduce((n,t)=>{let r=e[t];return{...n,[t]:Array.isArray(r)?[...r]:r}},{})}wn(Ab,"cloneQuery");var Ob=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(Ob,"HttpResponse");var gj=Ob;function Nb(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}wn(Nb,"isValidHostname")});var Tb=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.getAddExpectContinuePlugin=Zt.addExpectContinueMiddlewareOptions=Zt.addExpectContinueMiddleware=void 0;var hj=Ne();function Rb(e){return n=>async t=>{let{request:r}=t;return hj.HttpRequest.isInstance(r)&&r.body&&e.runtime==="node"&&(r.headers={...r.headers,Expect:"100-continue"}),n({...t,request:r})}}Zt.addExpectContinueMiddleware=Rb;Zt.addExpectContinueMiddlewareOptions={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0};var _j=e=>({applyToStack:n=>{n.add(Rb(e),Zt.addExpectContinueMiddlewareOptions)}});Zt.getAddExpectContinuePlugin=_j});var Ii=m(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.getHostHeaderPlugin=ft.hostHeaderMiddlewareOptions=ft.hostHeaderMiddleware=ft.resolveHostHeaderConfig=void 0;var Cj=Ne();function Sj(e){return e}ft.resolveHostHeaderConfig=Sj;var bj=e=>n=>async t=>{if(!Cj.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)};ft.hostHeaderMiddleware=bj;ft.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var Ej=e=>({applyToStack:n=>{n.add((0,ft.hostHeaderMiddleware)(e),ft.hostHeaderMiddlewareOptions)}});ft.getHostHeaderPlugin=Ej});var Bb=m(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getLoggerPlugin=Nt.loggerMiddlewareOptions=Nt.loggerMiddleware=void 0;var Pj=()=>(e,n)=>async t=>{var r,o;try{let s=await e(t),{clientName:a,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=n,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:y}=l,g=c??n.inputFilterSensitiveLog,C=y??n.outputFilterSensitiveLog,{$metadata:P,...A}=s.output;return(r=u==null?void 0:u.info)===null||r===void 0||r.call(u,{clientName:a,commandName:i,input:g(t.input),output:C(A),metadata:P}),s}catch(s){let{clientName:a,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=n,{overrideInputFilterSensitiveLog:c}=l,y=c??n.inputFilterSensitiveLog;throw(o=u==null?void 0:u.error)===null||o===void 0||o.call(u,{clientName:a,commandName:i,input:y(t.input),error:s,metadata:s.$metadata}),s}};Nt.loggerMiddleware=Pj;Nt.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var vj=e=>({applyToStack:n=>{n.add((0,Nt.loggerMiddleware)(),Nt.loggerMiddlewareOptions)}});Nt.getLoggerPlugin=vj});var Ri=m(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});var wj=(ne(),J(te));wj.__exportStar(Bb(),zm)});var Ti=m(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.getRecursionDetectionPlugin=It.addRecursionDetectionMiddlewareOptions=It.recursionDetectionMiddleware=void 0;var xj=Ne(),qb="X-Amzn-Trace-Id",kj="AWS_LAMBDA_FUNCTION_NAME",Aj="_X_AMZN_TRACE_ID",Oj=e=>n=>async t=>{let{request:r}=t;if(!xj.HttpRequest.isInstance(r)||e.runtime!=="node"||r.headers.hasOwnProperty(qb))return n(t);let o=process.env[kj],s=process.env[Aj],a=i=>typeof i=="string"&&i.length>0;return a(o)&&a(s)&&(r.headers[qb]=s),n({...t,request:r})};It.recursionDetectionMiddleware=Oj;It.addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"};var Nj=e=>({applyToStack:n=>{n.add((0,It.recursionDetectionMiddleware)(e),It.addRecursionDetectionMiddlewareOptions)}});It.getRecursionDetectionPlugin=Nj});var jb=m((Sbe,Lb)=>{var rc=Object.defineProperty,Ij=Object.getOwnPropertyDescriptor,Rj=Object.getOwnPropertyNames,Tj=Object.prototype.hasOwnProperty,yt=(e,n)=>rc(e,"name",{value:n,configurable:!0}),Bj=(e,n)=>{for(var t in n)rc(e,t,{get:n[t],enumerable:!0})},qj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Rj(n))!Tj.call(e,o)&&o!==t&&rc(e,o,{get:()=>n[o],enumerable:!(r=Ij(n,o))||r.enumerable});return e},Dj=e=>qj(rc({},"__esModule",{value:!0}),e),Fb={};Bj(Fb,{constructStack:()=>Gm});Lb.exports=Dj(Fb);var ir=yt((e,n)=>{let t=[];if(e&&t.push(e),n)for(let r of n)t.push(r);return t},"getAllAliases"),xn=yt((e,n)=>`${e||"anonymous"}${n&&n.length>0?` (a.k.a. ${n.join(",")})`:""}`,"getMiddlewareNameWithAliases"),Gm=yt(()=>{let e=[],n=[],t=!1,r=new Set,o=yt(y=>y.sort((g,C)=>Db[C.step]-Db[g.step]||Mb[C.priority||"normal"]-Mb[g.priority||"normal"]),"sort"),s=yt(y=>{let g=!1,C=yt(P=>{let A=ir(P.name,P.aliases);if(A.includes(y)){g=!0;for(let v of A)r.delete(v);return!1}return!0},"filterCb");return e=e.filter(C),n=n.filter(C),g},"removeByName"),a=yt(y=>{let g=!1,C=yt(P=>{if(P.middleware===y){g=!0;for(let A of ir(P.name,P.aliases))r.delete(A);return!1}return!0},"filterCb");return e=e.filter(C),n=n.filter(C),g},"removeByReference"),i=yt(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,c.identifyOnResolve()),y},"cloneTo"),u=yt(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=yt((y=!1)=>{let g=[],C=[],P={};return e.forEach(v=>{let G={...v,before:[],after:[]};for(let Y of ir(G.name,G.aliases))P[Y]=G;g.push(G)}),n.forEach(v=>{let G={...v,before:[],after:[]};for(let Y of ir(G.name,G.aliases))P[Y]=G;C.push(G)}),C.forEach(v=>{if(v.toMiddleware){let G=P[v.toMiddleware];if(G===void 0){if(y)return;throw new Error(`${v.toMiddleware} is not found when adding ${xn(v.name,v.aliases)} middleware ${v.relation} ${v.toMiddleware}`)}v.relation==="after"&&G.after.push(v),v.relation==="before"&&G.before.push(v)}}),o(g).map(u).reduce((v,G)=>(v.push(...G),v),[])},"getMiddlewareList"),c={add:(y,g={})=>{let{name:C,override:P,aliases:A}=g,v={step:"initialize",priority:"normal",middleware:y,...g},G=ir(C,A);if(G.length>0){if(G.some(Y=>r.has(Y))){if(!P)throw new Error(`Duplicate middleware name '${xn(C,A)}'`);for(let Y of G){let Fe=e.findIndex(pt=>{var vn;return pt.name===Y||((vn=pt.aliases)==null?void 0:vn.some(sr=>sr===Y))});if(Fe===-1)continue;let Ae=e[Fe];if(Ae.step!==v.step||v.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 ${v.priority} priority in ${v.step} step.`);e.splice(Fe,1)}}for(let Y of G)r.add(Y)}e.push(v)},addRelativeTo:(y,g)=>{let{name:C,override:P,aliases:A}=g,v={middleware:y,...g},G=ir(C,A);if(G.length>0){if(G.some(Y=>r.has(Y))){if(!P)throw new Error(`Duplicate middleware name '${xn(C,A)}'`);for(let Y of G){let Fe=n.findIndex(pt=>{var vn;return pt.name===Y||((vn=pt.aliases)==null?void 0:vn.some(sr=>sr===Y))});if(Fe===-1)continue;let Ae=n[Fe];if(Ae.toMiddleware!==v.toMiddleware||Ae.relation!==v.relation)throw new Error(`"${xn(Ae.name,Ae.aliases)}" middleware ${Ae.relation} "${Ae.toMiddleware}" middleware cannot be overridden by "${xn(C,A)}" middleware ${v.relation} "${v.toMiddleware}" middleware.`);n.splice(Fe,1)}}for(let Y of G)r.add(Y)}n.push(v)},clone:()=>i(Gm()),use:y=>{y.applyToStack(c)},remove:y=>typeof y=="string"?s(y):a(y),removeByTag:y=>{let g=!1,C=yt(P=>{let{tags:A,name:v,aliases:G}=P;if(A&&A.includes(y)){let Y=ir(v,G);for(let Fe of Y)r.delete(Fe);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(P=>P.middleware).reverse())y=C(y,g);return t&&console.log(c.identify()),y}};return c},"constructStack"),Db={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Mb={high:3,normal:2,low:1}});var sc=m((bbe,zb)=>{var oc=Object.defineProperty,Mj=Object.getOwnPropertyDescriptor,Fj=Object.getOwnPropertyNames,Lj=Object.prototype.hasOwnProperty,jj=(e,n)=>oc(e,"name",{value:n,configurable:!0}),Uj=(e,n)=>{for(var t in n)oc(e,t,{get:n[t],enumerable:!0})},zj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Fj(n))!Lj.call(e,o)&&o!==t&&oc(e,o,{get:()=>n[o],enumerable:!(r=Mj(n,o))||r.enumerable});return e},Gj=e=>zj(oc({},"__esModule",{value:!0}),e),Ub={};Uj(Ub,{isArrayBuffer:()=>Hj});zb.exports=Gj(Ub);var Hj=jj(e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]","isArrayBuffer")});var Er=m((Ebe,$b)=>{var ic=Object.defineProperty,$j=Object.getOwnPropertyDescriptor,Kj=Object.getOwnPropertyNames,Vj=Object.prototype.hasOwnProperty,Gb=(e,n)=>ic(e,"name",{value:n,configurable:!0}),Xj=(e,n)=>{for(var t in n)ic(e,t,{get:n[t],enumerable:!0})},Wj=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Kj(n))!Vj.call(e,o)&&o!==t&&ic(e,o,{get:()=>n[o],enumerable:!(r=$j(n,o))||r.enumerable});return e},Yj=e=>Wj(ic({},"__esModule",{value:!0}),e),Hb={};Xj(Hb,{fromArrayBuffer:()=>Qj,fromString:()=>Zj});$b.exports=Yj(Hb);var Jj=sc(),Hm=require("buffer"),Qj=Gb((e,n=0,t=e.byteLength-n)=>{if(!(0,Jj.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Hm.Buffer.from(e,n,t)},"fromArrayBuffer"),Zj=Gb((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 Kb=m(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.fromBase64=void 0;var eU=Er(),tU=/^[A-Za-z0-9+/]*={0,2}$/,nU=e=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!tU.exec(e))throw new TypeError("Invalid base64 string.");let n=(0,eU.fromString)(e,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)};ac.fromBase64=nU});var ct=m((vbe,Yb)=>{var cc=Object.defineProperty,rU=Object.getOwnPropertyDescriptor,oU=Object.getOwnPropertyNames,sU=Object.prototype.hasOwnProperty,$m=(e,n)=>cc(e,"name",{value:n,configurable:!0}),iU=(e,n)=>{for(var t in n)cc(e,t,{get:n[t],enumerable:!0})},aU=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of oU(n))!sU.call(e,o)&&o!==t&&cc(e,o,{get:()=>n[o],enumerable:!(r=rU(n,o))||r.enumerable});return e},cU=e=>aU(cc({},"__esModule",{value:!0}),e),Vb={};iU(Vb,{fromUtf8:()=>Wb,toUint8Array:()=>dU,toUtf8:()=>lU});Yb.exports=cU(Vb);var Xb=Er(),Wb=$m(e=>{let n=(0,Xb.fromString)(e,"utf8");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),dU=$m(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"),lU=$m(e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,Xb.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8")},"toUtf8")});var Jb=m(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.toBase64=void 0;var uU=Er(),mU=ct(),pU=e=>{let n;if(typeof e=="string"?n=(0,mU.fromUtf8)(e):n=e,typeof n!="object"||typeof n.byteOffset!="number"||typeof n.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,uU.fromArrayBuffer)(n.buffer,n.byteOffset,n.byteLength).toString("base64")};dc.toBase64=pU});var Pr=m((xbe,lc)=>{var Qb=Object.defineProperty,fU=Object.getOwnPropertyDescriptor,yU=Object.getOwnPropertyNames,gU=Object.prototype.hasOwnProperty,Km=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of yU(n))!gU.call(e,o)&&o!==t&&Qb(e,o,{get:()=>n[o],enumerable:!(r=fU(n,o))||r.enumerable});return e},Zb=(e,n,t)=>(Km(e,n,"default"),t&&Km(t,n,"default")),hU=e=>Km(Qb({},"__esModule",{value:!0}),e),Vm={};lc.exports=hU(Vm);Zb(Vm,Kb(),lc.exports);Zb(Vm,Jb(),lc.exports)});var eE=m(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.getAwsChunkedEncodingStream=void 0;var _U=require("stream"),CU=(e,n)=>{let{base64Encoder:t,bodyLengthChecker:r,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:a}=n,i=t!==void 0&&o!==void 0&&s!==void 0&&a!==void 0,u=i?a(o,e):void 0,l=new _U.Readable({read:()=>{}});return e.on("data",c=>{let y=r(c)||0;l.push(`${y.toString(16)}\r +`),l.push(c),l.push(`\r +`)}),e.on("end",async()=>{if(l.push(`0\r +`),i){let c=t(await u);l.push(`${s}:${c}\r +`),l.push(`\r +`)}l.push(null)}),l};uc.getAwsChunkedEncodingStream=CU});var Wm=m((Abe,rE)=>{var mc=Object.defineProperty,SU=Object.getOwnPropertyDescriptor,bU=Object.getOwnPropertyNames,EU=Object.prototype.hasOwnProperty,Xm=(e,n)=>mc(e,"name",{value:n,configurable:!0}),PU=(e,n)=>{for(var t in n)mc(e,t,{get:n[t],enumerable:!0})},vU=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of bU(n))!EU.call(e,o)&&o!==t&&mc(e,o,{get:()=>n[o],enumerable:!(r=SU(n,o))||r.enumerable});return e},wU=e=>vU(mc({},"__esModule",{value:!0}),e),tE={};PU(tE,{escapeUri:()=>nE,escapeUriPath:()=>kU});rE.exports=wU(tE);var nE=Xm(e=>encodeURIComponent(e).replace(/[!'()*]/g,xU),"escapeUri"),xU=Xm(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),kU=Xm(e=>e.split("/").map(nE).join("/"),"escapeUriPath")});var aE=m((Obe,iE)=>{var pc=Object.defineProperty,AU=Object.getOwnPropertyDescriptor,OU=Object.getOwnPropertyNames,NU=Object.prototype.hasOwnProperty,IU=(e,n)=>pc(e,"name",{value:n,configurable:!0}),RU=(e,n)=>{for(var t in n)pc(e,t,{get:n[t],enumerable:!0})},TU=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of OU(n))!NU.call(e,o)&&o!==t&&pc(e,o,{get:()=>n[o],enumerable:!(r=AU(n,o))||r.enumerable});return e},BU=e=>TU(pc({},"__esModule",{value:!0}),e),oE={};RU(oE,{buildQueryString:()=>sE});iE.exports=BU(oE);var Ym=Wm();function sE(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 qU=Object.create,Bi=Object.defineProperty,DU=Object.getOwnPropertyDescriptor,MU=Object.getOwnPropertyNames,FU=Object.getPrototypeOf,LU=Object.prototype.hasOwnProperty,Ue=(e,n)=>Bi(e,"name",{value:n,configurable:!0}),jU=(e,n)=>{for(var t in n)Bi(e,t,{get:n[t],enumerable:!0})},lE=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of MU(n))!LU.call(e,o)&&o!==t&&Bi(e,o,{get:()=>n[o],enumerable:!(r=DU(n,o))||r.enumerable});return e},UU=(e,n,t)=>(t=e!=null?qU(FU(e)):{},lE(n||!e||!e.__esModule?Bi(t,"default",{value:e,enumerable:!0}):t,e)),zU=e=>lE(Bi({},"__esModule",{value:!0}),e),uE={};jU(uE,{DEFAULT_REQUEST_TIMEOUT:()=>VU,NodeHttp2Handler:()=>QU,NodeHttpHandler:()=>XU,streamCollector:()=>ez});PE.exports=zU(uE);var mE=Ne(),pE=aE(),Jm=require("http"),Qm=require("https"),GU=["ECONNRESET","EPIPE","ETIMEDOUT"],fE=Ue(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"),HU=Ue((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"),$U=Ue((e,{keepAlive:n,keepAliveMsecs:t})=>{n===!0&&e.on("socket",r=>{r.setKeepAlive(n,t||0)})},"setSocketKeepAlive"),KU=Ue((e,n,t=0)=>{e.setTimeout(t,()=>{e.destroy(),n(Object.assign(new Error(`Connection timed out after ${t} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),yE=require("stream"),cE=1e3;async function ep(e,n,t=cE){let r=n.headers??{},o=r.Expect||r.expect,s=-1,a=!1;o==="100-continue"&&await Promise.race([new Promise(i=>{s=Number(setTimeout(i,Math.max(cE,t)))}),new Promise(i=>{e.on("continue",()=>{clearTimeout(s),i()}),e.on("error",()=>{a=!0,clearTimeout(s),i()})})]),a||gE(e,n.body)}Ue(ep,"writeRequestBody");function gE(e,n){if(n instanceof yE.Readable){n.pipe(e);return}if(n){if(Buffer.isBuffer(n)||typeof n=="string"){e.end(n);return}let t=n;if(typeof t=="object"&&t.buffer&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number"){e.end(Buffer.from(t.buffer,t.byteOffset,t.byteLength));return}e.end(Buffer.from(n));return}e.end()}Ue(gE,"writeBody");var VU=0,hE=class Zm{constructor(n){this.socketWarningTimestamp=0,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 Zm(n)}static checkSocketUsage(n,t){var r,o;let{sockets:s,requests:a,maxSockets:i}=n;if(typeof i!="number"||i===1/0||Date.now()-15e3=i&&y>=2*i)return console.warn("@smithy/node-http-handler:WARN",`socket usage at capacity=${c} and ${y} additional requests are enqueued.`,"See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html","or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config."),Date.now()}return t}resolveDefaultConfig(n){let{requestTimeout:t,connectionTimeout:r,socketTimeout:o,httpAgent:s,httpsAgent:a}=n||{},i=!0,u=50;return{connectionTimeout:r,requestTimeout:t??o,httpAgent:s instanceof Jm.Agent||typeof(s==null?void 0:s.destroy)=="function"?s:new Jm.Agent({keepAlive:i,maxSockets:u,...s}),httpsAgent:a instanceof Qm.Agent||typeof(a==null?void 0:a.destroy)=="function"?a:new Qm.Agent({keepAlive:i,maxSockets:u,...a})}}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}={}){this.config||(this.config=await this.configProvider);let r;return new Promise((o,s)=>{let a,i=Ue(async Y=>{await a,clearTimeout(r),o(Y)},"resolve"),u=Ue(async Y=>{await a,s(Y)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(t!=null&&t.aborted){let Y=new Error("Request aborted");Y.name="AbortError",u(Y);return}let l=n.protocol==="https:",c=l?this.config.httpsAgent:this.config.httpAgent;r=setTimeout(()=>{this.socketWarningTimestamp=Zm.checkSocketUsage(c,this.socketWarningTimestamp)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2e3)+(this.config.connectionTimeout??1e3));let y=(0,pE.buildQueryString)(n.query||{}),g;if(n.username!=null||n.password!=null){let Y=n.username??"",Fe=n.password??"";g=`${Y}:${Fe}`}let C=n.path;y&&(C+=`?${y}`),n.fragment&&(C+=`#${n.fragment}`);let P={headers:n.headers,host:n.hostname,method:n.method,path:C,port:n.port,agent:c,auth:g},v=(l?Qm.request:Jm.request)(P,Y=>{let Fe=new mE.HttpResponse({statusCode:Y.statusCode||-1,reason:Y.statusMessage,headers:fE(Y.headers),body:Y});i({response:Fe})});v.on("error",Y=>{GU.includes(Y.code)?u(Object.assign(Y,{name:"TimeoutError"})):u(Y)}),HU(v,u,this.config.connectionTimeout),KU(v,u,this.config.requestTimeout),t&&(t.onabort=()=>{v.abort();let Y=new Error("Request aborted");Y.name="AbortError",u(Y)});let G=P.agent;typeof G=="object"&&"keepAlive"in G&&$U(v,{keepAlive:G.keepAlive,keepAliveMsecs:G.keepAliveMsecs}),a=ep(v,n,this.config.requestTimeout).catch(s)})}updateHttpClientConfig(n,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>({...r,[n]:t}))}httpHandlerConfigs(){return this.config??{}}};Ue(hE,"NodeHttpHandler");var XU=hE,dE=require("http2"),WU=UU(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())}};Ue(_E,"NodeHttp2ConnectionPool");var YU=_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=WU.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 a=Ue(()=>{s.destroy(),this.deleteSession(r,s)},"destroySessionCb");s.on("goaway",a),s.on("error",a),s.on("frameError",a),s.on("close",()=>this.deleteSession(r,s)),t.requestTimeout&&s.setTimeout(t.requestTimeout,a);let i=this.sessionCache.get(r)||new YU;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()}};Ue(CE,"NodeHttp2ConnectionManager");var JU=CE,SE=class bE{constructor(n){this.metadata={handlerProtocol:"h2"},this.connectionManager=new JU({}),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,a)=>{var i;let u=!1,l,c=Ue(async Oe=>{await l,s(Oe)},"resolve"),y=Ue(async Oe=>{await l,a(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:P,protocol:A,query:v}=n,G="";if(n.username!=null||n.password!=null){let Oe=n.username??"",Ai=n.password??"";G=`${Oe}:${Ai}@`}let Y=`${A}//${G}${g}${P?`:${P}`:""}`,Fe={destination:new URL(Y)},Ae=this.connectionManager.lease(Fe,{requestTimeout:(i=this.config)==null?void 0:i.sessionTimeout,disableConcurrentStreams:o||!1}),pt=Ue(Oe=>{o&&this.destroySession(Ae),u=!0,y(Oe)},"rejectWithDestroy"),vn=(0,pE.buildQueryString)(v||{}),sr=n.path;vn&&(sr+=`?${vn}`),n.fragment&&(sr+=`#${n.fragment}`);let Et=Ae.request({...n.headers,[dE.constants.HTTP2_HEADER_PATH]:sr,[dE.constants.HTTP2_HEADER_METHOD]:C});Ae.ref(),Et.on("response",Oe=>{let Ai=new mE.HttpResponse({statusCode:Oe[":status"]||-1,headers:fE(Oe),body:Et});u=!0,c({response:Ai}),o&&(Ae.close(),this.connectionManager.deleteSession(Y,Ae))}),r&&Et.setTimeout(r,()=>{Et.close();let Oe=new Error(`Stream timed out because of no activity for ${r} ms`);Oe.name="TimeoutError",pt(Oe)}),t&&(t.onabort=()=>{Et.close();let Oe=new Error("Request aborted");Oe.name="AbortError",pt(Oe)}),Et.on("frameError",(Oe,Ai,BL)=>{pt(new Error(`Frame type id ${Oe} in stream id ${BL} has failed with code ${Ai}.`))}),Et.on("error",pt),Et.on("aborted",()=>{pt(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||pt(new Error("Unexpected error: http2 request did not get a response"))}),l=ep(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()}};Ue(SE,"NodeHttp2Handler");var QU=SE,EE=class extends yE.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(n,t,r){this.bufferedBytes.push(n),r()}};Ue(EE,"Collector");var ZU=EE,ez=Ue(e=>new Promise((n,t)=>{let r=new ZU;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 tz=vr(),nz=Er(),tp=require("stream"),rz=require("util"),vE="The stream has already been transformed.",oz=e=>{var n,t;if(!(e instanceof tp.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,tz.streamCollector)(e)};return Object.assign(e,{transformToByteArray:o,transformToString:async s=>{let a=await o();return s===void 0||Buffer.isEncoding(s)?(0,nz.fromArrayBuffer)(a.buffer,a.byteOffset,a.byteLength).toString(s):new rz.TextDecoder(s).decode(a)},transformToWebStream:()=>{if(r)throw new Error(vE);if(e.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof tp.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,tp.Readable.toWeb(e)}})};fc.sdkStreamMixin=oz});var sp=m((qbe,hc)=>{var yc=Object.defineProperty,sz=Object.getOwnPropertyDescriptor,iz=Object.getOwnPropertyNames,az=Object.prototype.hasOwnProperty,op=(e,n)=>yc(e,"name",{value:n,configurable:!0}),cz=(e,n)=>{for(var t in n)yc(e,t,{get:n[t],enumerable:!0})},np=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of iz(n))!az.call(e,o)&&o!==t&&yc(e,o,{get:()=>n[o],enumerable:!(r=sz(n,o))||r.enumerable});return e},xE=(e,n,t)=>(np(e,n,"default"),t&&np(t,n,"default")),dz=e=>np(yc({},"__esModule",{value:!0}),e),gc={};cz(gc,{Uint8ArrayBlobAdapter:()=>rp});hc.exports=dz(gc);var kE=Pr(),AE=ct();function OE(e,n="utf-8"){return n==="base64"?(0,kE.toBase64)(e):(0,AE.toUtf8)(e)}op(OE,"transformToString");function NE(e,n){return n==="base64"?rp.mutate((0,kE.fromBase64)(e)):rp.mutate((0,AE.fromUtf8)(e))}op(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)}};op(IE,"Uint8ArrayBlobAdapter");var rp=IE;xE(gc,eE(),hc.exports);xE(gc,wE(),hc.exports)});var b=m((jbe,nP)=>{var Ec=Object.defineProperty,lz=Object.getOwnPropertyDescriptor,uz=Object.getOwnPropertyNames,mz=Object.prototype.hasOwnProperty,z=(e,n)=>Ec(e,"name",{value:n,configurable:!0}),pz=(e,n)=>{for(var t in n)Ec(e,t,{get:n[t],enumerable:!0})},fz=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of uz(n))!mz.call(e,o)&&o!==t&&Ec(e,o,{get:()=>n[o],enumerable:!(r=lz(n,o))||r.enumerable});return e},yz=e=>fz(Ec({},"__esModule",{value:!0}),e),BE={};pz(BE,{Client:()=>hz,Command:()=>LE,LazyJsonString:()=>p3,NoOpLogger:()=>gz,SENSITIVE_STRING:()=>Sz,ServiceException:()=>t3,StringWrapper:()=>Li,_json:()=>mp,collectBody:()=>_z,convertMap:()=>f3,createAggregatedClient:()=>bz,dateToUtcString:()=>KE,decorateServiceException:()=>WE,emitWarningIfUnsupportedVersion:()=>s3,expectBoolean:()=>Pz,expectByte:()=>up,expectFloat32:()=>Cc,expectInt:()=>wz,expectInt32:()=>dp,expectLong:()=>Mi,expectNonNull:()=>kz,expectNumber:()=>Di,expectObject:()=>UE,expectShort:()=>lp,expectString:()=>Az,expectUnion:()=>Oz,extendedEncodeURIComponent:()=>bc,getArrayIfSingleItem:()=>m3,getDefaultClientConfiguration:()=>l3,getDefaultExtensionConfiguration:()=>JE,getValueFromTextNode:()=>QE,handleFloat:()=>Rz,limitedParseDouble:()=>yp,limitedParseFloat:()=>Tz,limitedParseFloat32:()=>Bz,loadConfigsForDefaultMode:()=>o3,logger:()=>Fi,map:()=>hp,parseBoolean:()=>Ez,parseEpochTimestamp:()=>Kz,parseRfc3339DateTime:()=>Lz,parseRfc3339DateTimeWithOffset:()=>Uz,parseRfc7231DateTime:()=>$z,resolveDefaultRuntimeConfig:()=>u3,resolvedPath:()=>C3,serializeFloat:()=>S3,splitEvery:()=>tP,strictParseByte:()=>$E,strictParseDouble:()=>fp,strictParseFloat:()=>Nz,strictParseFloat32:()=>zE,strictParseInt:()=>qz,strictParseInt32:()=>Dz,strictParseLong:()=>HE,strictParseShort:()=>wr,take:()=>y3,throwDefaultError:()=>YE,withBaseException:()=>n3});nP.exports=yz(BE);var qE=class{trace(){}debug(){}info(){}warn(){}error(){}};z(qE,"NoOpLogger");var gz=qE,DE=jb(),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,a=n.resolveMiddleware(this.middlewareStack,this.config,o);if(s)a(n).then(i=>s(null,i.output),i=>s(i)).catch(()=>{});else return a(n).then(i=>i.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};z(ME,"Client");var hz=ME,ip=sp(),_z=z(async(e=new Uint8Array,n)=>{if(e instanceof Uint8Array)return ip.Uint8ArrayBlobAdapter.mutate(e);if(!e)return ip.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let t=n.streamCollector(e);return ip.Uint8ArrayBlobAdapter.mutate(await t)},"collectBody"),cp=w(),FE=class{constructor(){this.middlewareStack=(0,DE.constructStack)()}static classBuilder(){return new Cz}resolveMiddlewareWithContext(n,t,r,{middlewareFn:o,clientName:s,commandName:a,inputFilterSensitiveLog:i,outputFilterSensitiveLog:u,smithyContext:l,additionalContext:c,CommandCtor:y}){for(let v of o.bind(this)(y,n,t,r))this.middlewareStack.use(v);let g=n.concat(this.middlewareStack),{logger:C}=t,P={logger:C,clientName:s,commandName:a,inputFilterSensitiveLog:i,outputFilterSensitiveLog:u,[cp.SMITHY_CONTEXT_KEY]:{...l},...c},{requestHandler:A}=t;return g.resolve(v=>A.handle(v.request,r||{}),P)}};z(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.serialize=t._serializer,this.deserialize=t._deserializer,this.input=o??{},t._init(this)}static getEndpointParameterInstructions(){return t._ep}resolveMiddleware(o,s,a){return this.resolveMiddlewareWithContext(o,s,a,{CommandCtor:r,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog,outputFilterSensitiveLog:t._outputFilterSensitiveLog,smithyContext:t._smithyContext,additionalContext:t._additionalContext})}},z(n,"CommandRef"),n)}};z(jE,"ClassBuilder");var Cz=jE,Sz="***SensitiveInformation***",bz=z((e,n)=>{for(let t of Object.keys(e)){let r=e[t],o=z(async function(a,i,u){let l=new r(a);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"),Ez=z(e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}},"parseBoolean"),Pz=z(e=>{if(e!=null){if(typeof e=="number"){if((e===0||e===1)&&Fi.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")&&Fi.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"),Di=z(e=>{if(e!=null){if(typeof e=="string"){let n=parseFloat(e);if(!Number.isNaN(n))return String(n)!==String(e)&&Fi.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"),vz=Math.ceil(2**127*(2-2**-23)),Cc=z(e=>{let n=Di(e);if(n!==void 0&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0&&Math.abs(n)>vz)throw new TypeError(`Expected 32-bit float, got ${e}`);return n},"expectFloat32"),Mi=z(e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},"expectLong"),wz=Mi,dp=z(e=>pp(e,32),"expectInt32"),lp=z(e=>pp(e,16),"expectShort"),up=z(e=>pp(e,8),"expectByte"),pp=z((e,n)=>{let t=Mi(e);if(t!==void 0&&xz(t,n)!==t)throw new TypeError(`Expected ${n}-bit integer, got ${e}`);return t},"expectSizedInt"),xz=z((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"),kz=z((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"),UE=z(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"),Az=z(e=>{if(e!=null){if(typeof e=="string")return e;if(["boolean","number","bigint"].includes(typeof e))return Fi.warn(Sc(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},"expectString"),Oz=z(e=>{if(e==null)return;let n=UE(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"),fp=z(e=>Di(typeof e=="string"?kr(e):e),"strictParseDouble"),Nz=fp,zE=z(e=>Cc(typeof e=="string"?kr(e):e),"strictParseFloat32"),Iz=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,kr=z(e=>{let n=e.match(Iz);if(n===null||n[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},"parseNumber"),yp=z(e=>typeof e=="string"?GE(e):Di(e),"limitedParseDouble"),Rz=yp,Tz=yp,Bz=z(e=>typeof e=="string"?GE(e):Cc(e),"limitedParseFloat32"),GE=z(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=z(e=>Mi(typeof e=="string"?kr(e):e),"strictParseLong"),qz=HE,Dz=z(e=>dp(typeof e=="string"?kr(e):e),"strictParseInt32"),wr=z(e=>lp(typeof e=="string"?kr(e):e),"strictParseShort"),$E=z(e=>up(typeof e=="string"?kr(e):e),"strictParseByte"),Sc=z(e=>String(new TypeError(e).stack||e).split(` +`).slice(0,5).filter(n=>!n.includes("stackTraceWarning")).join(` +`),"stackTraceWarning"),Fi={warn:console.warn},Mz=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],gp=["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(),a=e.getUTCMinutes(),i=e.getUTCSeconds(),u=o<10?`0${o}`:`${o}`,l=s<10?`0${s}`:`${s}`,c=a<10?`0${a}`:`${a}`,y=i<10?`0${i}`:`${i}`;return`${Mz[r]}, ${u} ${gp[t]} ${n} ${l}:${c}:${y} GMT`}z(KE,"dateToUtcString");var Fz=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Lz=z(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let n=Fz.exec(e);if(!n)throw new TypeError("Invalid RFC-3339 date-time value");let[t,r,o,s,a,i,u,l]=n,c=wr(xr(r)),y=Rt(o,"month",1,12),g=Rt(s,"day",1,31);return qi(c,y,g,{hours:a,minutes:i,seconds:u,fractionalMilliseconds:l})},"parseRfc3339DateTime"),jz=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Uz=z(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let n=jz.exec(e);if(!n)throw new TypeError("Invalid RFC-3339 date-time value");let[t,r,o,s,a,i,u,l,c]=n,y=wr(xr(r)),g=Rt(o,"month",1,12),C=Rt(s,"day",1,31),P=qi(y,g,C,{hours:a,minutes:i,seconds:u,fractionalMilliseconds:l});return c.toUpperCase()!="Z"&&P.setTime(P.getTime()-e3(c)),P},"parseRfc3339DateTimeWithOffset"),zz=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$/),Gz=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$/),Hz=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})$/),$z=z(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let n=zz.exec(e);if(n){let[t,r,o,s,a,i,u,l]=n;return qi(wr(xr(s)),ap(o),Rt(r,"day",1,31),{hours:a,minutes:i,seconds:u,fractionalMilliseconds:l})}if(n=Gz.exec(e),n){let[t,r,o,s,a,i,u,l]=n;return Wz(qi(Vz(s),ap(o),Rt(r,"day",1,31),{hours:a,minutes:i,seconds:u,fractionalMilliseconds:l}))}if(n=Hz.exec(e),n){let[t,r,o,s,a,i,u,l]=n;return qi(wr(xr(l)),ap(r),Rt(o.trimLeft(),"day",1,31),{hours:s,minutes:a,seconds:i,fractionalMilliseconds:u})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),Kz=z(e=>{if(e==null)return;let n;if(typeof e=="number")n=e;else if(typeof e=="string")n=fp(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"),qi=z((e,n,t,r)=>{let o=n-1;return Jz(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),Zz(r.fractionalMilliseconds)))},"buildDate"),Vz=z(e=>{let n=new Date().getUTCFullYear(),t=Math.floor(n/100)*100+wr(xr(e));return te.getTime()-new Date().getTime()>Xz?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,"adjustRfc850Year"),ap=z(e=>{let n=gp.indexOf(e);if(n<0)throw new TypeError(`Invalid month: ${e}`);return n+1},"parseMonthByShortName"),Yz=[31,28,31,30,31,30,31,31,30,31,30,31],Jz=z((e,n,t)=>{let r=Yz[n];if(n===1&&Qz(e)&&(r=29),t>r)throw new TypeError(`Invalid day for ${gp[n]} in ${e}: ${t}`)},"validateDayOfMonth"),Qz=z(e=>e%4===0&&(e%100!==0||e%400===0),"isLeapYear"),Rt=z((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"),Zz=z(e=>e==null?0:zE("0."+e)*1e3,"parseMilliseconds"),e3=z(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=z(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=z(({output:e,parsedBody:n,exceptionCtor:t,errorCode:r})=>{let o=r3(e),s=o.httpStatusCode?o.httpStatusCode+"":void 0,a=new t({name:(n==null?void 0:n.code)||(n==null?void 0:n.Code)||r||s||"UnknownError",$fault:"client",$metadata:o});throw WE(a,n)},"throwDefaultError"),n3=z(e=>({output:n,parsedBody:t,errorCode:r})=>{YE({output:n,parsedBody:t,exceptionCtor:e,errorCode:r})},"withBaseException"),r3=z(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"),o3=z(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,s3=z(e=>{e&&!TE&&parseInt(e.substring(1,e.indexOf(".")))<14&&(TE=!0)},"emitWarningIfUnsupportedVersion"),i3=z(e=>{let n=[];for(let t in cp.AlgorithmId){let r=cp.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"),a3=z(e=>{let n={};return e.checksumAlgorithms().forEach(t=>{n[t.algorithmId()]=t.checksumConstructor()}),n},"resolveChecksumRuntimeConfig"),c3=z(e=>{let n=e.retryStrategy;return{setRetryStrategy(t){n=t},retryStrategy(){return n}}},"getRetryConfiguration"),d3=z(e=>{let n={};return n.retryStrategy=e.retryStrategy(),n},"resolveRetryRuntimeConfig"),JE=z(e=>({...i3(e),...c3(e)}),"getDefaultExtensionConfiguration"),l3=JE,u3=z(e=>({...a3(e),...d3(e)}),"resolveDefaultRuntimeConfig");function bc(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(n){return"%"+n.charCodeAt(0).toString(16).toUpperCase()})}z(bc,"extendedEncodeURIComponent");var m3=z(e=>Array.isArray(e)?e:[e],"getArrayIfSingleItem"),QE=z(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"),Li=z(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");Li.prototype=Object.create(String.prototype,{constructor:{value:Li,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Li,String);var ZE=class _c extends Li{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))}};z(ZE,"LazyJsonString");var p3=ZE;function hp(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,g3(r,o,s);s=n}for(let a of Object.keys(s)){if(!Array.isArray(s[a])){r[a]=s[a];continue}eP(r,null,s,a)}return r}z(hp,"map");var f3=z(e=>{let n={};for(let[t,r]of Object.entries(e||{}))n[t]=[,r];return n},"convertMap"),y3=z((e,n)=>{let t={};for(let r in n)eP(t,e,n,r);return t},"take"),g3=z((e,n,t)=>hp(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=z((e,n,t,r)=>{if(n!==null){let a=t[r];typeof a=="function"&&(a=[,a]);let[i=h3,u=_3,l=r]=a;(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 a,i=o===void 0&&(a=s())!=null,u=typeof o=="function"&&!!o(void 0)||typeof o!="function"&&!!o;i?e[r]=a:u&&(e[r]=s())}else{let a=o===void 0&&s!=null,i=typeof o=="function"&&!!o(s)||typeof o!="function"&&!!o;(a||i)&&(e[r]=s)}},"applyInstruction"),h3=z(e=>e!=null,"nonNullish"),_3=z(e=>e,"pass"),C3=z((e,n,t,r,o,s)=>{if(n!=null&&n[t]!==void 0){let a=r();if(a.length<=0)throw new Error("Empty value provided for input HTTP label: "+t+".");e=e.replace(o,s?a.split("/").map(i=>bc(i)).join("/"):bc(a))}else throw new Error("No value provided for input HTTP label: "+t+".");return e},"resolvedPath"),S3=z(e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}},"serializeFloat"),mp=z(e=>{if(e==null)return{};if(Array.isArray(e))return e.filter(n=>n!=null).map(mp);if(typeof e=="object"){let n={};for(let t of Object.keys(e))e[t]!=null&&(n[t]=mp(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 a=0;a{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.getCheckContentLengthHeaderPlugin=en.checkContentLengthHeaderMiddlewareOptions=en.checkContentLengthHeader=void 0;var b3=Ne(),E3=b(),P3="content-length";function rP(){return(e,n)=>async t=>{var r;let{request:o}=t;if(b3.HttpRequest.isInstance(o)&&!o.headers[P3]){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 E3.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 v3=e=>({applyToStack:n=>{n.add(rP(),en.checkContentLengthHeaderMiddlewareOptions)}});en.getCheckContentLengthHeaderPlugin=v3});var sP=m(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.resolveS3Config=void 0;var w3=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=w3});var aP=m(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getThrow200ExceptionsPlugin=Tt.throw200ExceptionsMiddlewareOptions=Tt.throw200ExceptionsMiddleware=void 0;var x3=Ne(),k3=e=>n=>async t=>{let r=await n(t),{response:o}=r;if(!x3.HttpResponse.isInstance(o))return r;let{statusCode:s,body:a}=o;if(s<200||s>=300)return r;let i=await iP(a,e),u=await A3(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=k3;var iP=(e=new Uint8Array,n)=>e instanceof Uint8Array?Promise.resolve(e):n.streamCollector(e)||Promise.resolve(new Uint8Array),A3=(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 O3=e=>({applyToStack:n=>{n.addRelativeTo((0,Tt.throw200ExceptionsMiddleware)(e),Tt.throw200ExceptionsMiddlewareOptions)}});Tt.getThrow200ExceptionsPlugin=O3});var _p=m(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.build=kn.parse=kn.validate=void 0;var N3=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;kn.validate=N3;var I3=e=>{let n=e.split(":");if(n.length<6||n[0]!=="arn")throw new Error("Malformed ARN");let[,t,r,o,s,...a]=n;return{partition:t,service:r,region:o,accountId:s,resource:a.join(":")}};kn.parse=I3;var R3=e=>{let{partition:n="aws",service:t,region:r,accountId:o,resource:s}=e;if([t,r,o,s].some(a=>typeof a!="string"))throw new Error("Input ARN object is invalid");return`arn:${n}:${t}:${r}:${o}:${s}`};kn.build=R3});var dP=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.getValidateBucketNamePlugin=tn.validateBucketNameMiddlewareOptions=tn.validateBucketNameMiddleware=void 0;var T3=_p();function cP(){return e=>async n=>{let{input:{Bucket:t}}=n;if(typeof t=="string"&&!(0,T3.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 B3=e=>({applyToStack:n=>{n.add(cP(),tn.validateBucketNameMiddlewareOptions)}});tn.getValidateBucketNamePlugin=B3});var Or=m(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var vc=(ne(),J(te));vc.__exportStar(oP(),Ar);vc.__exportStar(sP(),Ar);vc.__exportStar(aP(),Ar);vc.__exportStar(dP(),Ar)});var xe=m((Xbe,hP)=>{var wc=Object.defineProperty,q3=Object.getOwnPropertyDescriptor,D3=Object.getOwnPropertyNames,M3=Object.prototype.hasOwnProperty,ar=(e,n)=>wc(e,"name",{value:n,configurable:!0}),F3=(e,n)=>{for(var t in n)wc(e,t,{get:n[t],enumerable:!0})},L3=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of D3(n))!M3.call(e,o)&&o!==t&&wc(e,o,{get:()=>n[o],enumerable:!(r=q3(n,o))||r.enumerable});return e},j3=e=>L3(wc({},"__esModule",{value:!0}),e),lP={};F3(lP,{CredentialsProviderError:()=>U3,ProviderError:()=>xc,TokenProviderError:()=>z3,chain:()=>G3,fromStatic:()=>H3,memoize:()=>$3});hP.exports=j3(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 U3=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 z3=yP,G3=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"),H3=ar(e=>()=>Promise.resolve(e),"fromStatic"),$3=ar((e,n,t)=>{let r,o,s,a=!1,i=ar(async()=>{o||(o=e());try{r=await o,s=!0,a=!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()),a?r:t&&!t(r)?(a=!0,r):(n(r)&&await i(),r))},"memoize")});var Ep={};Oi(Ep,{__assign:()=>Sp,__asyncDelegator:()=>oG,__asyncGenerator:()=>rG,__asyncValues:()=>sG,__await:()=>ji,__awaiter:()=>J3,__classPrivateFieldGet:()=>dG,__classPrivateFieldSet:()=>lG,__createBinding:()=>Z3,__decorate:()=>X3,__exportStar:()=>eG,__extends:()=>K3,__generator:()=>Q3,__importDefault:()=>cG,__importStar:()=>aG,__makeTemplateObject:()=>iG,__metadata:()=>Y3,__param:()=>W3,__read:()=>_P,__rest:()=>V3,__spread:()=>tG,__spreadArrays:()=>nG,__values:()=>bp});function K3(e,n){Cp(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function V3(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--)(a=e[i])&&(s=(o<3?a(s):o>3?a(n,t,s):a(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function W3(e,n){return function(t,r){n(t,r,e)}}function Y3(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)}function J3(e,n,t,r){function o(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function i(c){try{l(r.next(c))}catch(y){a(y)}}function u(c){try{l(r.throw(c))}catch(y){a(y)}}function l(c){c.done?s(c.value):o(c.value).then(i,u)}l((r=r.apply(e,n||[])).next())})}function Q3(e,n){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(l){return function(c){return u([l,c])}}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=[],a;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){a={error:i}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return s}function tG(){for(var e=[],n=0;n1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(P){y(s[0][3],P)}}function u(g){g.value instanceof ji?Promise.resolve(g.value.v).then(l,c):y(s[0][2],g)}function l(g){i("next",g)}function c(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function oG(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(a){return(t=!t)?{value:ji(e[o](a)),done:o==="return"}:s?s(a):a}:s}}function sG(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 bp=="function"?bp(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(a){return new Promise(function(i,u){a=e[s](a),o(i,u,a.done,a.value)})}}function o(s,a,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},a)}}function iG(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function aG(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 cG(e){return e&&e.__esModule?e:{default:e}}function dG(e,n){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return n.get(e)}function lG(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 Cp,Sp,Pp=je(()=>{Cp=function(e,n){return Cp=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])},Cp(e,n)};Sp=function(){return Sp=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 uG=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=uG;var mG=e=>{let n="";for(let t=0,r=e.length;ti.toString(16)).join("%");n+=decodeURIComponent(a)}else n+=String.fromCharCode((o&15)<<12|(e[++t]&63)<<6|e[++t]&63)}return n};Nr.toUtf8=mG});var SP=m(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.toUtf8=Ir.fromUtf8=void 0;function pG(e){return new TextEncoder().encode(e)}Ir.fromUtf8=pG;function fG(e){return new TextDecoder("utf-8").decode(e)}Ir.toUtf8=fG});var PP=m(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.toUtf8=Rr.fromUtf8=void 0;var bP=CP(),EP=SP(),yG=e=>typeof TextEncoder=="function"?(0,EP.fromUtf8)(e):(0,bP.fromUtf8)(e);Rr.fromUtf8=yG;var gG=e=>typeof TextDecoder=="function"?(0,EP.toUtf8)(e):(0,bP.toUtf8)(e);Rr.toUtf8=gG});var vP=m(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.convertToBuffer=void 0;var hG=PP(),_G=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:hG.fromUtf8;function CG(e){return e instanceof Uint8Array?e:typeof e=="string"?_G(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}kc.convertToBuffer=CG});var wP=m(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.isEmptyData=void 0;function SG(e){return typeof e=="string"?e.length===0:e.byteLength===0}Ac.isEmptyData=SG});var xP=m(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.numToUint8=void 0;function bG(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}Oc.numToUint8=bG});var kP=m(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.uint32ArrayFrom=void 0;function EG(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 PG=vP();Object.defineProperty(Bt,"convertToBuffer",{enumerable:!0,get:function(){return PG.convertToBuffer}});var vG=wP();Object.defineProperty(Bt,"isEmptyData",{enumerable:!0,get:function(){return vG.isEmptyData}});var wG=xP();Object.defineProperty(Bt,"numToUint8",{enumerable:!0,get:function(){return wG.numToUint8}});var xG=kP();Object.defineProperty(Bt,"uint32ArrayFrom",{enumerable:!0,get:function(){return xG.uint32ArrayFrom}})});var NP=m(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.AwsCrc32=void 0;var AP=(Pp(),J(Ep)),vp=Ui(),OP=zi(),kG=function(){function e(){this.crc32=new OP.Crc32}return e.prototype.update=function(n){(0,vp.isEmptyData)(n)||this.crc32.update((0,vp.convertToBuffer)(n))},e.prototype.digest=function(){return AP.__awaiter(this,void 0,void 0,function(){return AP.__generator(this,function(n){return[2,(0,vp.numToUint8)(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new OP.Crc32},e}();Ic.AwsCrc32=kG});var zi=m(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.AwsCrc32=An.Crc32=An.crc32=void 0;var AG=(Pp(),J(Ep)),OG=Ui();function NG(e){return new IP().update(e).digest()}An.crc32=NG;var IP=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(n){var t,r;try{for(var o=AG.__values(n),s=o.next();!s.done;s=o.next()){var a=s.value;this.checksum=this.checksum>>>8^RG[(this.checksum^a)&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 IG=[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],RG=(0,OG.uint32ArrayFrom)(IG),TG=NP();Object.defineProperty(An,"AwsCrc32",{enumerable:!0,get:function(){return TG.AwsCrc32}})});var xp=m((sEe,MP)=>{var Rc=Object.defineProperty,BG=Object.getOwnPropertyDescriptor,qG=Object.getOwnPropertyNames,DG=Object.prototype.hasOwnProperty,RP=(e,n)=>Rc(e,"name",{value:n,configurable:!0}),MG=(e,n)=>{for(var t in n)Rc(e,t,{get:n[t],enumerable:!0})},FG=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of qG(n))!DG.call(e,o)&&o!==t&&Rc(e,o,{get:()=>n[o],enumerable:!(r=BG(n,o))||r.enumerable});return e},LG=e=>FG(Rc({},"__esModule",{value:!0}),e),TP={};MG(TP,{fromHex:()=>qP,toHex:()=>DP});MP.exports=LG(TP);var BP={},wp={};for(let e=0;e<256;e++){let n=e.toString(16).toLowerCase();n.length===1&&(n=`0${n}`),BP[e]=n,wp[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,jG=Object.getOwnPropertyDescriptor,UG=Object.getOwnPropertyNames,zG=Object.prototype.hasOwnProperty,nn=(e,n)=>Bc(e,"name",{value:n,configurable:!0}),GG=(e,n)=>{for(var t in n)Bc(e,t,{get:n[t],enumerable:!0})},HG=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of UG(n))!zG.call(e,o)&&o!==t&&Bc(e,o,{get:()=>n[o],enumerable:!(r=jG(n,o))||r.enumerable});return e},$G=e=>HG(Bc({},"__esModule",{value:!0}),e),LP={};GG(LP,{EventStreamCodec:()=>o2,HeaderMarshaller:()=>GP,Int64:()=>Tc,MessageDecoderStream:()=>s2,MessageEncoderStream:()=>i2,SmithyMessageDecoderStream:()=>a2,SmithyMessageEncoderStream:()=>c2});JP.exports=$G(LP);var KG=zi(),cr=xp(),jP=class UP{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&&kp(t),new UP(t)}valueOf(){let n=this.bytes.slice(0),t=n[0]&128;return t&&kp(n),parseInt((0,cr.toHex)(n),16)*(t?-1:1)}toString(){return String(this.valueOf())}};nn(jP,"Int64");var Tc=jP;function kp(e){for(let n=0;n<8;n++)e[n]^=255;for(let n=7;n>-1&&(e[n]++,e[n]===0);n--);}nn(kp,"negate");var zP=class{constructor(n,t){this.toUtf8=n,this.fromUtf8=t}format(n){let t=[];for(let s of Object.keys(n)){let a=this.fromUtf8(s);t.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(n[s]))}let r=new Uint8Array(t.reduce((s,a)=>s+a.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 a=new Uint8Array(s.buffer);return a.set(n.value,3),a;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 c=new Uint8Array(9);return c[0]=8,c.set(Tc.fromNumber(n.value.valueOf()).bytes,1),c;case"uuid":if(!t2.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,d2=Object.getOwnPropertyDescriptor,l2=Object.getOwnPropertyNames,u2=Object.prototype.hasOwnProperty,ZP=(e,n)=>qc(e,"name",{value:n,configurable:!0}),m2=(e,n)=>{for(var t in n)qc(e,t,{get:n[t],enumerable:!0})},p2=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of l2(n))!u2.call(e,o)&&o!==t&&qc(e,o,{get:()=>n[o],enumerable:!(r=d2(n,o))||r.enumerable});return e},f2=e=>p2(qc({},"__esModule",{value:!0}),e),e0={};m2(e0,{getSmithyContext:()=>y2,normalizeProvider:()=>g2});t0.exports=f2(e0);var QP=w(),y2=ZP(e=>e[QP.SMITHY_CONTEXT_KEY]||(e[QP.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),g2=ZP(e=>{if(typeof e=="function")return e;let n=Promise.resolve(e);return()=>n},"normalizeProvider")});var Tp=m((yEe,h0)=>{var Uc=Object.defineProperty,h2=Object.getOwnPropertyDescriptor,_2=Object.getOwnPropertyNames,C2=Object.prototype.hasOwnProperty,Ke=(e,n)=>Uc(e,"name",{value:n,configurable:!0}),S2=(e,n)=>{for(var t in n)Uc(e,t,{get:n[t],enumerable:!0})},b2=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of _2(n))!C2.call(e,o)&&o!==t&&Uc(e,o,{get:()=>n[o],enumerable:!(r=h2(n,o))||r.enumerable});return e},E2=e=>b2(Uc({},"__esModule",{value:!0}),e),s0={};S2(s0,{SignatureV4:()=>V2,clearCredentialCache:()=>j2,createScope:()=>Lc,getCanonicalHeaders:()=>Ip,getCanonicalQuery:()=>p0,getPayloadHash:()=>jc,getSigningKey:()=>m0,moveHeadersToQuery:()=>y0,prepareRequest:()=>Rp});h0.exports=E2(s0);var P2=Ap(),n0=Tr(),Gi=ct(),v2="X-Amz-Algorithm",w2="X-Amz-Credential",i0="X-Amz-Date",x2="X-Amz-SignedHeaders",k2="X-Amz-Expires",a0="X-Amz-Signature",c0="X-Amz-Security-Token",d0="authorization",l0=i0.toLowerCase(),A2="date",O2=[d0,l0,A2],N2=a0.toLowerCase(),Np="x-amz-content-sha256",I2=c0.toLowerCase(),R2={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},T2=/^proxy-/,B2=/^sec-/,Op="AWS4-HMAC-SHA256",q2="AWS4-HMAC-SHA256-PAYLOAD",D2="UNSIGNED-PAYLOAD",M2=50,u0="aws4_request",F2=60*60*24*7,Br=xp(),L2=ct(),qr={},Fc=[],Lc=Ke((e,n,t)=>`${e}/${n}/${t}/${u0}`,"createScope"),m0=Ke(async(e,n,t,r,o)=>{let s=await r0(e,n.secretAccessKey,n.accessKeyId),a=`${t}:${r}:${o}:${(0,Br.toHex)(s)}:${n.sessionToken}`;if(a in qr)return qr[a];for(Fc.push(a);Fc.length>M2;)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[a]=i},"getSigningKey"),j2=Ke(()=>{Fc.length=0,Object.keys(qr).forEach(e=>{delete qr[e]})},"clearCredentialCache"),r0=Ke((e,n,t)=>{let r=new e(n);return r.update((0,L2.toUint8Array)(t)),r.digest()},"hmac"),Ip=Ke(({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 R2||n!=null&&n.has(s)||T2.test(s)||B2.test(s))&&(!t||t&&!t.has(s))||(r[s]=e[o].trim().replace(/\s+/g," "))}return r},"getCanonicalHeaders"),Dc=Wm(),p0=Ke(({query:e={}})=>{let n=[],t={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===N2)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,a)=>s.concat([`${(0,Dc.escapeUri)(r)}=${(0,Dc.escapeUri)(a)}`]),[]).sort().join("&"))}return n.map(r=>t[r]).filter(r=>r).join("&")},"getCanonicalQuery"),U2=sc(),z2=ct(),jc=Ke(async({headers:e,body:n},t)=>{for(let r of Object.keys(e))if(r.toLowerCase()===Np)return e[r];if(n==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof n=="string"||ArrayBuffer.isView(n)||(0,U2.isArrayBuffer)(n)){let r=new t;return r.update((0,z2.toUint8Array)(n)),(0,Br.toHex)(await r.digest())}return D2},"getPayloadHash"),G2=Ke((e,n)=>{e=e.toLowerCase();for(let t of Object.keys(n))if(e===t.toLowerCase())return!0;return!1},"hasHeader"),f0=Ke(({headers:e,query:n,...t})=>({...t,headers:{...e},query:n?H2(n):void 0}),"cloneRequest"),H2=Ke(e=>Object.keys(e).reduce((n,t)=>{let r=e[t];return{...n,[t]:Array.isArray(r)?[...r]:r}},{}),"cloneQuery"),y0=Ke((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 a=s.toLowerCase();a.slice(0,6)==="x-amz-"&&!((t=n.unhoistableHeaders)!=null&&t.has(a))&&(o[s]=r[s],delete r[s])}return{...e,headers:r,query:o}},"moveHeadersToQuery"),Rp=Ke(e=>{e=typeof e.clone=="function"?e.clone():f0(e);for(let n of Object.keys(e.headers))O2.indexOf(n.toLowerCase())>-1&&delete e.headers[n];return e},"prepareRequest"),$2=Ke(e=>K2(e).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),K2=Ke(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:a=!0}){this.headerMarshaller=new P2.HeaderMarshaller(Gi.toUtf8,Gi.fromUtf8),this.service=o,this.sha256=s,this.uriEscapePath=a,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:a,signableHeaders:i,signingRegion:u,signingService:l}=t,c=await this.credentialProvider();this.validateResolvedCredentials(c);let y=u??await this.regionProvider(),{longDate:g,shortDate:C}=Mc(r);if(o>F2)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let P=Lc(C,y,l??this.service),A=y0(Rp(n),{unhoistableHeaders:a});c.sessionToken&&(A.query[c0]=c.sessionToken),A.query[v2]=Op,A.query[w2]=`${c.accessKeyId}/${P}`,A.query[i0]=g,A.query[k2]=o.toString(10);let v=Ip(A,s,i);return A.query[x2]=o0(v),A.query[a0]=await this.getSignature(g,P,this.getSigningKey(c,y,C,l),this.createCanonicalRequest(A,v,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:a}){let i=s??await this.regionProvider(),{shortDate:u,longDate:l}=Mc(r),c=Lc(u,i,a??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()),P=[q2,l,c,o,C,y].join(` +`);return this.signString(P,{signingDate:r,signingRegion:i,signingService:a})}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(a=>({message:n.message,signature:a}))}async signString(n,{signingDate:t=new Date,signingRegion:r,signingService:o}={}){let s=await this.credentialProvider();this.validateResolvedCredentials(s);let a=r??await this.regionProvider(),{shortDate:i}=Mc(t),u=new this.sha256(await this.getSigningKey(s,a,i,o));return u.update((0,Gi.toUint8Array)(n)),(0,Br.toHex)(await u.digest())}async signRequest(n,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:o,signingRegion:s,signingService:a}={}){let i=await this.credentialProvider();this.validateResolvedCredentials(i);let u=s??await this.regionProvider(),l=Rp(n),{longDate:c,shortDate:y}=Mc(t),g=Lc(y,u,a??this.service);l.headers[l0]=c,i.sessionToken&&(l.headers[I2]=i.sessionToken);let C=await jc(l,this.sha256);!G2(Np,l.headers)&&this.applyChecksum&&(l.headers[Np]=C);let P=Ip(l,o,r),A=await this.getSignature(c,g,this.getSigningKey(i,u,y,a),this.createCanonicalRequest(l,P,C));return l.headers[d0]=`${Op} Credential=${i.accessKeyId}/${g}, SignedHeaders=${o0(P)}, 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(` +`)} + +${o.join(";")} +${r}`}async createStringToSign(n,t,r){let o=new this.sha256;o.update((0,Gi.toUint8Array)(r));let s=await o.digest();return`${Op} +${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),a=new this.sha256(await r);return a.update((0,Gi.toUint8Array)(s)),(0,Br.toHex)(await a.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")}};Ke(g0,"SignatureV4");var V2=g0,Mc=Ke(e=>{let n=$2(e).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}},"formatDate"),o0=Ke(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 X2=xe(),Bp=Tp(),Dr=Tr(),W2=3e5,Y2=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 a=>[await e.regionInfoProvider(a,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},a]).then(([a,i])=>{let{signingRegion:u,signingService:l}=a;e.signingRegion=e.signingRegion||u||i,e.signingName=e.signingName||l||e.serviceId;let c={...e,credentials:n,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:t},y=e.signerConstructor||Bp.SignatureV4;return new y(c)}):s=async a=>{a=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,Dr.normalizeProvider)(e.region)(),properties:{}},a);let i=a.signingRegion,u=a.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},c=e.signerConstructor||Bp.SignatureV4;return new c(l)},{...e,systemClockOffset:r,signingEscapePath:t,credentials:n,signer:s}};Mr.resolveAwsAuthConfig=Y2;var J2=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 Bp.SignatureV4({credentials:n,region:e.region,service:e.signingName,sha256:o,uriEscapePath:t})),{...e,systemClockOffset:r,signingEscapePath:t,credentials:n,signer:s}};Mr.resolveSigV4AuthConfig=J2;var _0=e=>typeof e=="function"?(0,X2.memoize)(e,n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()n.expiration!==void 0):(0,Dr.normalizeProvider)(e)});var qp=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.getSkewCorrectedDate=void 0;var Q2=e=>new Date(Date.now()+e);zc.getSkewCorrectedDate=Q2});var S0=m(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.isClockSkewed=void 0;var Z2=qp(),eH=(e,n)=>Math.abs((0,Z2.getSkewCorrectedDate)(n).getTime()-e)>=3e5;Gc.isClockSkewed=eH});var b0=m(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.getUpdatedSystemClockOffset=void 0;var tH=S0(),nH=(e,n)=>{let t=Date.parse(e);return(0,tH.isClockSkewed)(t,n)?t-Date.now():n};Hc.getUpdatedSystemClockOffset=nH});var w0=m(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.getSigV4AuthPlugin=dt.getAwsAuthPlugin=dt.awsAuthMiddlewareOptions=dt.awsAuthMiddleware=void 0;var v0=Ne(),rH=qp(),E0=b0(),oH=e=>(n,t)=>async function(r){var o,s,a,i;if(!v0.HttpRequest.isInstance(r.request))return n(r);let u=(a=(s=(o=t.endpointV2)===null||o===void 0?void 0:o.properties)===null||s===void 0?void 0:s.authSchemes)===null||a===void 0?void 0:a[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,c=await e.signer(u),y=await n({...r,request:await c.sign(r.request,{signingDate:(0,rH.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:l||t.signing_region,signingService:t.signing_service})}).catch(C=>{var P;let A=(P=C.ServerTime)!==null&&P!==void 0?P: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};dt.awsAuthMiddleware=oH;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};dt.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var sH=e=>({applyToStack:n=>{n.addRelativeTo((0,dt.awsAuthMiddleware)(e),dt.awsAuthMiddlewareOptions)}});dt.getAwsAuthPlugin=sH;dt.getSigV4AuthPlugin=dt.getAwsAuthPlugin});var rn=m($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});var x0=(ne(),J(te));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 iH(e){return{...e,customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent}}Kc.resolveUserAgentConfig=iH});var A0=m((PEe,aH)=>{aH.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 Dp=m(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.getUserAgentPrefix=Pt.useDefaultPartitionInfo=Pt.setPartitionInfo=Pt.partition=void 0;var cH=(ne(),J(te)),O0=cH.__importDefault(A0()),N0=O0.default,I0="",dH=e=>{let{partitions:n}=N0;for(let r of n){let{regions:o,outputs:s}=r;for(let[a,i]of Object.entries(o))if(a===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=dH;var lH=(e,n="")=>{N0=e,I0=n};Pt.setPartitionInfo=lH;var uH=()=>{(0,Pt.setPartitionInfo)(O0.default,"")};Pt.useDefaultPartitionInfo=uH;var mH=()=>I0;Pt.getUserAgentPrefix=mH});var Xc=m(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.isIpAddress=void 0;var pH=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}$"),fH=e=>pH.test(e)||e.startsWith("[")&&e.endsWith("]");Vc.isIpAddress=fH});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 Mp(e){return typeof e!="object"||e==null?e:"ref"in e?`$${Mp(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Mp).join(", ")})`:JSON.stringify(e,null,2)}Yc.toDebugString=Mp});var Hi=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var B0=(ne(),J(te));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 Fp=class extends Error{constructor(n){super(n),this.name="EndpointError"}};Qc.EndpointError=Fp});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 U0=m(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0})});var G0=m(z0=>{"use strict";Object.defineProperty(z0,"__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=(ne(),J(te));Fr.__exportStar(q0(),Nn);Fr.__exportStar(M0(),Nn);Fr.__exportStar(L0(),Nn);Fr.__exportStar(U0(),Nn);Fr.__exportStar(G0(),Nn);Fr.__exportStar($0(),Nn)});var Lp=m($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.isValidHostLabel=void 0;var yH=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),gH=(e,n=!1)=>{if(!n)return yH.test(e);let t=e.split(".");for(let r of t)if(!(0,$i.isValidHostLabel)(r))return!1;return!0};$i.isValidHostLabel=gH});var K0=m(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.isVirtualHostableS3Bucket=void 0;var hH=Xc(),_H=Lp(),CH=(e,n=!1)=>{if(n){for(let t of e.split("."))if(!(0,Ki.isVirtualHostableS3Bucket)(t))return!1;return!0}return!(!(0,_H.isValidHostLabel)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,hH.isIpAddress)(e))};Ki.isVirtualHostableS3Bucket=CH});var V0=m(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.parseArn=void 0;var SH=e=>{let n=e.split(":");if(n.length<6)return null;let[t,r,o,s,a,...i]=n;return t!=="arn"||r===""||o===""||i[0]===""?null:{partition:r,service:o,region:s,accountId:a,resourceId:i[0].includes("/")?i[0].split("/"):i}};Zc.parseArn=SH});var X0=m(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});var jp=(ne(),J(te));jp.__exportStar(K0(),Vi);jp.__exportStar(V0(),Vi);jp.__exportStar(Dp(),Vi)});var W0=m(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.booleanEquals=void 0;var bH=(e,n)=>e===n;ed.booleanEquals=bH});var J0=m(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.getAttrPathList=void 0;var Y0=gt(),EH=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=EH});var Q0=m(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.getAttr=void 0;var PH=gt(),vH=J0(),wH=(e,n)=>(0,vH.getAttrPathList)(n).reduce((t,r)=>{if(typeof t!="object")throw new PH.EndpointError(`Index '${r}' in '${n}' not found in '${JSON.stringify(e)}'`);return Array.isArray(t)?t[parseInt(r)]:t[r]},e);nd.getAttr=wH});var Z0=m(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.isSet=void 0;var xH=e=>e!=null;rd.isSet=xH});var ev=m(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.not=void 0;var kH=e=>!e;od.not=kH});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 AH=w();Object.defineProperty(sd,"HttpAuthLocation",{enumerable:!0,get:function(){return AH.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(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.HostAddressType=void 0;var OH;(function(e){e.AAAA="AAAA",e.A="A"})(OH=Xi.HostAddressType||(Xi.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 NH=w();Object.defineProperty(id,"EndpointURLScheme",{enumerable:!0,get:function(){return NH.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 Wi=(ne(),J(te));Wi.__exportStar(Ov(),lr);Wi.__exportStar(Iv(),lr);Wi.__exportStar(Tv(),lr);Wi.__exportStar(qv(),lr);Wi.__exportStar(Mv(),lr)});var jv=m(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0})});var zv=m(Uv=>{"use strict";Object.defineProperty(Uv,"__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 IH=w();Object.defineProperty(ad,"RequestHandlerProtocol",{enumerable:!0,get:function(){return IH.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(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var pe=(ne(),J(te));pe.__exportStar(nv(),ue);pe.__exportStar(rv(),ue);pe.__exportStar(sv(),ue);pe.__exportStar(av(),ue);pe.__exportStar(dv(),ue);pe.__exportStar(uv(),ue);pe.__exportStar(pv(),ue);pe.__exportStar(yv(),ue);pe.__exportStar(hv(),ue);pe.__exportStar(_v(),ue);pe.__exportStar(Sv(),ue);pe.__exportStar(bv(),ue);pe.__exportStar(Pv(),ue);pe.__exportStar(wv(),ue);pe.__exportStar(kv(),ue);pe.__exportStar(Fv(),ue);pe.__exportStar(jv(),ue);pe.__exportStar(zv(),ue);pe.__exportStar(Hv(),ue);pe.__exportStar(Kv(),ue);pe.__exportStar(Xv(),ue);pe.__exportStar(Yv(),ue);pe.__exportStar(Qv(),ue);pe.__exportStar(ew(),ue);pe.__exportStar(nw(),ue);pe.__exportStar(ow(),ue);pe.__exportStar(iw(),ue);pe.__exportStar(cw(),ue);pe.__exportStar(dw(),ue);pe.__exportStar(uw(),ue);pe.__exportStar(pw(),ue);pe.__exportStar(yw(),ue)});var hw=m(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.parseURL=void 0;var zp=gw(),RH=Xc(),Up={[zp.EndpointURLScheme.HTTP]:80,[zp.EndpointURLScheme.HTTPS]:443},TH=e=>{let n=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:g,port:C,protocol:P="",path:A="",query:v={}}=e,G=new URL(`${P}//${g}${C?`:${C}`:""}${A}`);return G.search=Object.entries(v).map(([Y,Fe])=>`${Y}=${Fe}`).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:a,search:i}=n;if(i)return null;let u=a.slice(0,-1);if(!Object.values(zp.EndpointURLScheme).includes(u))return null;let l=(0,RH.isIpAddress)(o),c=t.includes(`${r}:${Up[u]}`)||typeof e=="string"&&e.includes(`${r}:${Up[u]}`),y=`${r}${c?`:${Up[u]}`:""}`;return{scheme:u,authority:y,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:l}};cd.parseURL=TH});var _w=m(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.stringEquals=void 0;var BH=(e,n)=>e===n;dd.stringEquals=BH});var Cw=m(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.substring=void 0;var qH=(e,n,t,r)=>n>=t||e.length{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.uriEncode=void 0;var DH=e=>encodeURIComponent(e).replace(/[!*'()]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`);ud.uriEncode=DH});var Gp=m(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.aws=void 0;var qt=(ne(),J(te));lt.aws=qt.__importStar(X0());qt.__exportStar(W0(),lt);qt.__exportStar(Q0(),lt);qt.__exportStar(Z0(),lt);qt.__exportStar(Lp(),lt);qt.__exportStar(ev(),lt);qt.__exportStar(hw(),lt);qt.__exportStar(_w(),lt);qt.__exportStar(Cw(),lt);qt.__exportStar(Sw(),lt)});var Hp=m(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.evaluateTemplate=void 0;var MH=Gp(),FH=(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 LH=({ref:e},n)=>({...n.endpointParams,...n.referenceRecord})[e];pd.getReferenceValue=LH});var Yi=m(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.evaluateExpression=void 0;var jH=gt(),UH=$p(),zH=Hp(),GH=bw(),HH=(e,n,t)=>{if(typeof e=="string")return(0,zH.evaluateTemplate)(e,t);if(e.fn)return(0,UH.callFunction)(e,t);if(e.ref)return(0,GH.getReferenceValue)(e,t);throw new jH.EndpointError(`'${n}': ${String(e)} is not a string, function or reference.`)};fd.evaluateExpression=HH});var $p=m(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.callFunction=void 0;var $H=(ne(),J(te)),KH=$H.__importStar(Gp()),VH=Yi(),XH=({fn:e,argv:n},t)=>{let r=n.map(o=>["boolean","number"].includes(typeof o)?o:(0,VH.evaluateExpression)(o,"arg",t));return e.split(".").reduce((o,s)=>o[s],KH)(...r)};yd.callFunction=XH});var Ew=m(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.evaluateCondition=void 0;var Kp=Hi(),WH=gt(),YH=$p(),JH=({assign:e,...n},t)=>{var r,o;if(e&&e in t.referenceRecord)throw new WH.EndpointError(`'${e}' is already defined in Reference Record.`);let s=(0,YH.callFunction)(n,t);return(o=(r=t.logger)===null||r===void 0?void 0:r.debug)===null||o===void 0||o.call(r,Kp.debugId,`evaluateCondition: ${(0,Kp.toDebugString)(n)} = ${(0,Kp.toDebugString)(s)}`),{result:s===""?!0:!!s,...e!=null&&{toAssign:{name:e,value:s}}}};gd.evaluateCondition=JH});var _d=m(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.evaluateConditions=void 0;var Pw=Hi(),QH=Ew(),ZH=(e=[],n)=>{var t,r;let o={};for(let s of e){let{result:a,toAssign:i}=(0,QH.evaluateCondition)(s,{...n,referenceRecord:{...n.referenceRecord,...o}});if(!a)return{result:a};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=ZH});var vw=m(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.getEndpointHeaders=void 0;var e$=gt(),t$=Yi(),n$=(e,n)=>Object.entries(e).reduce((t,[r,o])=>({...t,[r]:o.map(s=>{let a=(0,t$.evaluateExpression)(s,"Header value entry",n);if(typeof a!="string")throw new e$.EndpointError(`Header '${r}' value '${a}' is not a string`);return a})}),{});Cd.getEndpointHeaders=n$});var xw=m(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.getEndpointProperty=void 0;var ww=gt(),r$=Hp(),o$=Vp(),s$=(e,n)=>{if(Array.isArray(e))return e.map(t=>(0,Ji.getEndpointProperty)(t,n));switch(typeof e){case"string":return(0,r$.evaluateTemplate)(e,n);case"object":if(e===null)throw new ww.EndpointError(`Unexpected endpoint property: ${e}`);return(0,o$.getEndpointProperties)(e,n);case"boolean":return e;default:throw new ww.EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};Ji.getEndpointProperty=s$});var Vp=m(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.getEndpointProperties=void 0;var i$=xw(),a$=(e,n)=>Object.entries(e).reduce((t,[r,o])=>({...t,[r]:(0,i$.getEndpointProperty)(o,n)}),{});Sd.getEndpointProperties=a$});var kw=m(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.getEndpointUrl=void 0;var c$=gt(),d$=Yi(),l$=(e,n)=>{let t=(0,d$.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 c$.EndpointError(`Endpoint URL must be a string, got ${typeof t}`)};bd.getEndpointUrl=l$});var Ow=m(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.evaluateEndpointRule=void 0;var Aw=Hi(),u$=_d(),m$=vw(),p$=Vp(),f$=kw(),y$=(e,n)=>{var t,r;let{conditions:o,endpoint:s}=e,{result:a,referenceRecord:i}=(0,u$.evaluateConditions)(o,n);if(!a)return;let u={...n,referenceRecord:{...n.referenceRecord,...i}},{url:l,properties:c,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,m$.getEndpointHeaders)(y,u)},...c!=null&&{properties:(0,p$.getEndpointProperties)(c,u)},url:(0,f$.getEndpointUrl)(l,u)}};Ed.evaluateEndpointRule=y$});var Nw=m(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.evaluateErrorRule=void 0;var g$=gt(),h$=_d(),_$=Yi(),C$=(e,n)=>{let{conditions:t,error:r}=e,{result:o,referenceRecord:s}=(0,h$.evaluateConditions)(t,n);if(o)throw new g$.EndpointError((0,_$.evaluateExpression)(r,"Error",{...n,referenceRecord:{...n.referenceRecord,...s}}))};Pd.evaluateErrorRule=C$});var Iw=m(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.evaluateTreeRule=void 0;var S$=_d(),b$=Xp(),E$=(e,n)=>{let{conditions:t,rules:r}=e,{result:o,referenceRecord:s}=(0,S$.evaluateConditions)(t,n);if(o)return(0,b$.evaluateRules)(r,{...n,referenceRecord:{...n.referenceRecord,...s}})};vd.evaluateTreeRule=E$});var Xp=m(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.evaluateRules=void 0;var Rw=gt(),P$=Ow(),v$=Nw(),w$=Iw(),x$=(e,n)=>{for(let t of e)if(t.type==="endpoint"){let r=(0,P$.evaluateEndpointRule)(t,n);if(r)return r}else if(t.type==="error")(0,v$.evaluateErrorRule)(t,n);else if(t.type==="tree"){let r=(0,w$.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=x$});var Tw=m(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var k$=(ne(),J(te));k$.__exportStar(Xp(),Wp)});var Bw=m(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.resolveEndpoint=void 0;var xd=Hi(),A$=gt(),O$=Tw(),N$=(e,n)=>{var t,r,o,s,a,i;let{endpointParams:u,logger:l}=n,{parameters:c,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(c).filter(([,A])=>A.default!=null).map(([A,v])=>[A,v.default]);if(g.length>0)for(let[A,v]of g)u[A]=(o=u[A])!==null&&o!==void 0?o:v;let C=Object.entries(c).filter(([,A])=>A.required).map(([A])=>A);for(let A of C)if(u[A]==null)throw new A$.EndpointError(`Missing required parameter: '${A}'`);let P=(0,O$.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:v,port:G}=A;P.url.protocol=v,P.url.port=G}catch{}return(i=(a=n.logger)===null||a===void 0?void 0:a.debug)===null||i===void 0||i.call(a,`${xd.debugId} Resolved endpoint: ${(0,xd.toDebugString)(P)}`),P};kd.resolveEndpoint=N$});var jr=m(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});var Ad=(ne(),J(te));Ad.__exportStar(Dp(),Lr);Ad.__exportStar(Xc(),Lr);Ad.__exportStar(Bw(),Lr);Ad.__exportStar(gt(),Lr)});var qw=m(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.UA_ESCAPE_CHAR=Qe.UA_VALUE_ESCAPE_REGEX=Qe.UA_NAME_ESCAPE_REGEX=Qe.UA_NAME_SEPARATOR=Qe.SPACE=Qe.X_AMZ_USER_AGENT=Qe.USER_AGENT=void 0;Qe.USER_AGENT="user-agent";Qe.X_AMZ_USER_AGENT="x-amz-user-agent";Qe.SPACE=" ";Qe.UA_NAME_SEPARATOR="/";Qe.UA_NAME_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;Qe.UA_VALUE_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;Qe.UA_ESCAPE_CHAR="-"});var Dw=m(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.getUserAgentPlugin=Dt.getUserAgentMiddlewareOptions=Dt.userAgentMiddleware=void 0;var I$=jr(),R$=Ne(),st=qw(),T$=e=>(n,t)=>async r=>{var o,s;let{request:a}=r;if(!R$.HttpRequest.isInstance(a))return n(r);let{headers:i}=a,u=((o=t==null?void 0:t.userAgent)===null||o===void 0?void 0:o.map(Yp))||[],l=(await e.defaultUserAgentProvider()).map(Yp),c=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(Yp))||[],y=(0,I$.getUserAgentPrefix)(),g=(y?[y]:[]).concat([...l,...u,...c]).join(st.SPACE),C=[...l.filter(P=>P.startsWith("aws-sdk-")),...c].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:a})};Dt.userAgentMiddleware=T$;var Yp=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),a=t.substring(o+1);return s==="api"&&(a=a.toLowerCase()),[s,a,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 B$=e=>({applyToStack:n=>{n.add((0,Dt.userAgentMiddleware)(e),Dt.getUserAgentMiddlewareOptions)}});Dt.getUserAgentPlugin=B$});var Qi=m(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var Mw=(ne(),J(te));Mw.__exportStar(k0(),Od);Mw.__exportStar(Dw(),Od)});var Id=m((e0e,Uw)=>{var Nd=Object.defineProperty,q$=Object.getOwnPropertyDescriptor,D$=Object.getOwnPropertyNames,M$=Object.prototype.hasOwnProperty,Fw=(e,n)=>Nd(e,"name",{value:n,configurable:!0}),F$=(e,n)=>{for(var t in n)Nd(e,t,{get:n[t],enumerable:!0})},L$=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of D$(n))!M$.call(e,o)&&o!==t&&Nd(e,o,{get:()=>n[o],enumerable:!(r=q$(n,o))||r.enumerable});return e},j$=e=>L$(Nd({},"__esModule",{value:!0}),e),Lw={};F$(Lw,{SelectorType:()=>jw,booleanSelector:()=>U$,numberSelector:()=>z$});Uw.exports=j$(Lw);var U$=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"),z$=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((t0e,Qw)=>{var Td=Object.defineProperty,G$=Object.getOwnPropertyDescriptor,H$=Object.getOwnPropertyNames,$$=Object.prototype.hasOwnProperty,vt=(e,n)=>Td(e,"name",{value:n,configurable:!0}),K$=(e,n)=>{for(var t in n)Td(e,t,{get:n[t],enumerable:!0})},V$=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of H$(n))!$$.call(e,o)&&o!==t&&Td(e,o,{get:()=>n[o],enumerable:!(r=G$(n,o))||r.enumerable});return e},X$=e=>V$(Td({},"__esModule",{value:!0}),e),Hw={};K$(Hw,{CONFIG_USE_DUALSTACK_ENDPOINT:()=>Kw,CONFIG_USE_FIPS_ENDPOINT:()=>Xw,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>W$,DEFAULT_USE_FIPS_ENDPOINT:()=>J$,ENV_USE_DUALSTACK_ENDPOINT:()=>$w,ENV_USE_FIPS_ENDPOINT:()=>Vw,NODE_REGION_CONFIG_FILE_OPTIONS:()=>rK,NODE_REGION_CONFIG_OPTIONS:()=>nK,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>Y$,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>Q$,REGION_ENV_NAME:()=>Ww,REGION_INI_NAME:()=>Yw,getRegionInfo:()=>cK,resolveCustomEndpointsConfig:()=>Z$,resolveEndpointsConfig:()=>tK,resolveRegionConfig:()=>oK});Qw.exports=X$(Hw);var In=Id(),$w="AWS_USE_DUALSTACK_ENDPOINT",Kw="use_dualstack_endpoint",W$=!1,Y$={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",J$=!1,Q$={environmentVariableSelector:e=>(0,In.booleanSelector)(e,Vw,In.SelectorType.ENV),configFileSelector:e=>(0,In.booleanSelector)(e,Xw,In.SelectorType.CONFIG),default:!1},Rd=Tr(),Z$=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"),eK=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:a}=await e.regionInfoProvider(t,{useDualstackEndpoint:o,useFipsEndpoint:s})??{};if(!a)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${n?"https:":"http:"}//${a}`)},"getEndpointFromRegion"),tK=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):()=>eK({...e,useDualstackEndpoint:n,useFipsEndpoint:r}),isCustomEndpoint:!!t,useDualstackEndpoint:n}},"resolveEndpointsConfig"),Ww="AWS_REGION",Yw="region",nK={environmentVariableSelector:e=>e[Ww],configFileSelector:e=>e[Yw],default:()=>{throw new Error("Region is missing")}},rK={preferredFile:"credentials"},Jw=vt(e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),"isFipsRegion"),zw=vt(e=>Jw(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,"getRealRegion"),oK=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 zw(n);let r=await n();return zw(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"),sK=vt((e,{regionHostname:n,partitionHostname:t})=>n||(t?t.replace("{region}",e):void 0),"getResolvedHostname"),iK=vt((e,{partitionHash:n})=>Object.keys(n||{}).find(t=>n[t].regions.includes(e))??"aws","getResolvedPartition"),aK=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"),cK=vt((e,{useFipsEndpoint:n=!1,useDualstackEndpoint:t=!1,signingService:r,regionHash:o,partitionHash:s})=>{var a,i,u,l,c;let y=iK(e,{partitionHash:s}),g=e in o?e:((a=s[y])==null?void 0:a.endpoint)??e,C={useFipsEndpoint:n,useDualstackEndpoint:t},P=Gw((i=o[g])==null?void 0:i.variants,C),A=Gw((u=s[y])==null?void 0:u.variants,C),v=sK(g,{regionHostname:P,partitionHostname:A});if(v===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:g,useFipsEndpoint:n,useDualstackEndpoint:t}}`);let G=aK(v,{signingRegion:(l=o[g])==null?void 0:l.signingRegion,regionRegex:s[y].regionRegex,useFipsEndpoint:n});return{partition:y,signingService:r,hostname:v,...G&&{signingRegion:G},...((c=o[g])==null?void 0:c.signingService)&&{signingService:o[g].signingService}}},"getRegionInfo")});var tx=m((n0e,ex)=>{var Bd=Object.defineProperty,dK=Object.getOwnPropertyDescriptor,lK=Object.getOwnPropertyNames,uK=Object.prototype.hasOwnProperty,mK=(e,n)=>Bd(e,"name",{value:n,configurable:!0}),pK=(e,n)=>{for(var t in n)Bd(e,t,{get:n[t],enumerable:!0})},fK=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of lK(n))!uK.call(e,o)&&o!==t&&Bd(e,o,{get:()=>n[o],enumerable:!(r=dK(n,o))||r.enumerable});return e},yK=e=>fK(Bd({},"__esModule",{value:!0}),e),Zw={};pK(Zw,{resolveEventStreamSerdeConfig:()=>gK});ex.exports=yK(Zw);var gK=mK(e=>({...e,eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),"resolveEventStreamSerdeConfig")});var Zi=m((r0e,ix)=>{var qd=Object.defineProperty,hK=Object.getOwnPropertyDescriptor,_K=Object.getOwnPropertyNames,CK=Object.prototype.hasOwnProperty,rx=(e,n)=>qd(e,"name",{value:n,configurable:!0}),SK=(e,n)=>{for(var t in n)qd(e,t,{get:n[t],enumerable:!0})},bK=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of _K(n))!CK.call(e,o)&&o!==t&&qd(e,o,{get:()=>n[o],enumerable:!(r=hK(n,o))||r.enumerable});return e},EK=e=>bK(qd({},"__esModule",{value:!0}),e),ox={};SK(ox,{contentLengthMiddleware:()=>Jp,contentLengthMiddlewareOptions:()=>sx,getContentLengthPlugin:()=>vK});ix.exports=EK(ox);var PK=Ne(),nx="content-length";function Jp(e){return n=>async t=>{let r=t.request;if(PK.HttpRequest.isInstance(r)){let{body:o,headers:s}=r;if(o&&Object.keys(s).map(a=>a.toLowerCase()).indexOf(nx)===-1)try{let a=e(o);r.headers={...r.headers,[nx]:String(a)}}catch{}}return n({...t,request:r})}}rx(Jp,"contentLengthMiddleware");var sx={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},vK=rx(e=>({applyToStack:n=>{n.add(Jp(e.bodyLengthChecker),sx)}}),"getContentLengthPlugin")});var ea=m(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.getHomeDir=void 0;var wK=require("os"),xK=require("path"),Qp={},kK=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",AK=()=>{let{HOME:e,USERPROFILE:n,HOMEPATH:t,HOMEDRIVE:r=`C:${xK.sep}`}=process.env;if(e)return e;if(n)return n;if(t)return`${r}${t}`;let o=kK();return Qp[o]||(Qp[o]=(0,wK.homedir)()),Qp[o]};Dd.getHomeDir=AK});var Zp=m(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.getSSOTokenFilepath=void 0;var OK=require("crypto"),NK=require("path"),IK=ea(),RK=e=>{let t=(0,OK.createHash)("sha1").update(e).digest("hex");return(0,NK.join)((0,IK.getHomeDir)(),".aws","sso","cache",`${t}.json`)};Md.getSSOTokenFilepath=RK});var ax=m(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.getSSOTokenFromFile=void 0;var TK=require("fs"),BK=Zp(),{readFile:qK}=TK.promises,DK=async e=>{let n=(0,BK.getSSOTokenFilepath)(e),t=await qK(n,"utf8");return JSON.parse(t)};Fd.getSSOTokenFromFile=DK});var tf=m(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.slurpFile=void 0;var MK=require("fs"),{readFile:FK}=MK.promises,ef={},LK=(e,n)=>((!ef[e]||n!=null&&n.ignoreCache)&&(ef[e]=FK(e,"utf8")),ef[e]);Ld.slurpFile=LK});var wt=m((c0e,na)=>{var Ud=Object.defineProperty,jK=Object.getOwnPropertyDescriptor,UK=Object.getOwnPropertyNames,zK=Object.prototype.hasOwnProperty,ht=(e,n)=>Ud(e,"name",{value:n,configurable:!0}),GK=(e,n)=>{for(var t in n)Ud(e,t,{get:n[t],enumerable:!0})},nf=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of UK(n))!zK.call(e,o)&&o!==t&&Ud(e,o,{get:()=>n[o],enumerable:!(r=jK(n,o))||r.enumerable});return e},of=(e,n,t)=>(nf(e,n,"default"),t&&nf(t,n,"default")),HK=e=>nf(Ud({},"__esModule",{value:!0}),e),ta={};GK(ta,{CONFIG_PREFIX_SEPARATOR:()=>ur,DEFAULT_PROFILE:()=>ux,ENV_PROFILE:()=>lx,getProfileName:()=>$K,loadSharedConfigFiles:()=>fx,loadSsoSessionData:()=>rV,parseKnownFiles:()=>sV});na.exports=HK(ta);of(ta,ea(),na.exports);var lx="AWS_PROFILE",ux="default",$K=ht(e=>e.profile||process.env[lx]||ux,"getProfileName");of(ta,Zp(),na.exports);of(ta,ax(),na.exports);var jd=w(),KK=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"),VK=ea(),XK="AWS_CONFIG_FILE",px=ht(()=>process.env[XK]||(0,mx.join)((0,VK.getHomeDir)(),".aws","config"),"getConfigFilepath"),WK=ea(),YK="AWS_SHARED_CREDENTIALS_FILE",JK=ht(()=>process.env[YK]||(0,mx.join)((0,WK.getHomeDir)(),".aws","credentials"),"getCredentialsFilepath"),QK=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,ZK=["__proto__","profile __proto__"],rf=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=QK.exec(i);if(u){let[,l,,c]=u;Object.values(jd.IniSectionType).includes(l)&&(t=[l,c].join(ur))}else t=i;if(ZK.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 c=r?[r,u].join(ur):u;n[t][c]=l}}}}return n},"parseIni"),cx=tf(),dx=ht(()=>({}),"swallowError"),ur=".",fx=ht(async(e={})=>{let{filepath:n=JK(),configFilepath:t=px()}=e,r=await Promise.all([(0,cx.slurpFile)(t,{ignoreCache:e.ignoreCache}).then(rf).then(KK).catch(dx),(0,cx.slurpFile)(n,{ignoreCache:e.ignoreCache}).then(rf).catch(dx)]);return{configFile:r[0],credentialsFile:r[1]}},"loadSharedConfigFiles"),eV=ht(e=>Object.entries(e).filter(([n])=>n.startsWith(jd.IniSectionType.SSO_SESSION+ur)).reduce((n,[t,r])=>({...n,[t.substring(t.indexOf(ur)+1)]:r}),{}),"getSsoSessionData"),tV=tf(),nV=ht(()=>({}),"swallowError"),rV=ht(async(e={})=>(0,tV.slurpFile)(e.configFilepath??px()).then(rf).then(eV).catch(nV),"loadSsoSessionData"),oV=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"),sV=ht(async e=>{let n=await fx(e);return oV(n.configFile,n.credentialsFile)},"parseKnownFiles")});var on=m((d0e,hx)=>{var zd=Object.defineProperty,iV=Object.getOwnPropertyDescriptor,aV=Object.getOwnPropertyNames,cV=Object.prototype.hasOwnProperty,oa=(e,n)=>zd(e,"name",{value:n,configurable:!0}),dV=(e,n)=>{for(var t in n)zd(e,t,{get:n[t],enumerable:!0})},lV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of aV(n))!cV.call(e,o)&&o!==t&&zd(e,o,{get:()=>n[o],enumerable:!(r=iV(n,o))||r.enumerable});return e},uV=e=>lV(zd({},"__esModule",{value:!0}),e),gx={};dV(gx,{loadConfig:()=>gV});hx.exports=uV(gx);var ra=xe(),mV=oa(e=>async()=>{try{let n=e(process.env);if(n===void 0)throw new Error;return n}catch(n){throw new ra.CredentialsProviderError(n.message||`Cannot load config from environment variables with getter: ${e}`)}},"fromEnv"),yx=wt(),pV=oa((e,{preferredFile:n="config",...t}={})=>async()=>{let r=(0,yx.getProfileName)(t),{configFile:o,credentialsFile:s}=await(0,yx.loadSharedConfigFiles)(t),a=s[r]||{},i=o[r]||{},u=n==="config"?{...a,...i}:{...i,...a};try{let c=e(u,n==="config"?o:s);if(c===void 0)throw new Error;return c}catch(l){throw new ra.CredentialsProviderError(l.message||`Cannot load config for profile ${r} in SDK configuration files with getter: ${e}`)}},"fromSharedConfigFiles"),fV=oa(e=>typeof e=="function","isFunction"),yV=oa(e=>fV(e)?async()=>await e():(0,ra.fromStatic)(e),"fromStatic"),gV=oa(({environmentVariableSelector:e,configFileSelector:n,default:t},r={})=>(0,ra.memoize)((0,ra.chain)(mV(e),pV(n,r),yV(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",hV=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()),a=o[[s.join("_"),Sx].join(_x.CONFIG_PREFIX_SEPARATOR)];if(a)return a}}let r=n[Sx];if(r)return r},default:void 0});Gd.getEndpointUrlConfig=hV});var Ex=m(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.getEndpointFromConfig=void 0;var _V=on(),CV=bx(),SV=async e=>(0,_V.loadConfig)((0,CV.getEndpointUrlConfig)(e))();Hd.getEndpointFromConfig=SV});var xx=m((m0e,wx)=>{var $d=Object.defineProperty,bV=Object.getOwnPropertyDescriptor,EV=Object.getOwnPropertyNames,PV=Object.prototype.hasOwnProperty,vV=(e,n)=>$d(e,"name",{value:n,configurable:!0}),wV=(e,n)=>{for(var t in n)$d(e,t,{get:n[t],enumerable:!0})},xV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of EV(n))!PV.call(e,o)&&o!==t&&$d(e,o,{get:()=>n[o],enumerable:!(r=bV(n,o))||r.enumerable});return e},kV=e=>xV($d({},"__esModule",{value:!0}),e),Px={};wV(Px,{parseQueryString:()=>vx});wx.exports=kV(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}vV(vx,"parseQueryString")});var mr=m((p0e,Ox)=>{var Kd=Object.defineProperty,AV=Object.getOwnPropertyDescriptor,OV=Object.getOwnPropertyNames,NV=Object.prototype.hasOwnProperty,IV=(e,n)=>Kd(e,"name",{value:n,configurable:!0}),RV=(e,n)=>{for(var t in n)Kd(e,t,{get:n[t],enumerable:!0})},TV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of OV(n))!NV.call(e,o)&&o!==t&&Kd(e,o,{get:()=>n[o],enumerable:!(r=AV(n,o))||r.enumerable});return e},BV=e=>TV(Kd({},"__esModule",{value:!0}),e),kx={};RV(kx,{parseUrl:()=>Ax});Ox.exports=BV(kx);var qV=xx(),Ax=IV(e=>{if(typeof e=="string")return Ax(new URL(e));let{hostname:n,pathname:t,port:r,protocol:o,search:s}=e,a;return s&&(a=(0,qV.parseQueryString)(s)),{hostname:n,port:r?parseInt(r):void 0,protocol:o,path:t,query:a}},"parseUrl")});var k=m((f0e,Dx)=>{var Vd=Object.defineProperty,DV=Object.getOwnPropertyDescriptor,MV=Object.getOwnPropertyNames,FV=Object.prototype.hasOwnProperty,sf=(e,n)=>Vd(e,"name",{value:n,configurable:!0}),LV=(e,n)=>{for(var t in n)Vd(e,t,{get:n[t],enumerable:!0})},jV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of MV(n))!FV.call(e,o)&&o!==t&&Vd(e,o,{get:()=>n[o],enumerable:!(r=DV(n,o))||r.enumerable});return e},UV=e=>jV(Vd({},"__esModule",{value:!0}),e),Nx={};LV(Nx,{deserializerMiddleware:()=>Ix,deserializerMiddlewareOption:()=>Tx,getSerdePlugin:()=>qx,serializerMiddleware:()=>Rx,serializerMiddlewareOption:()=>Bx});Dx.exports=UV(Nx);var Ix=sf((e,n)=>(t,r)=>async o=>{let{response:s}=await t(o);try{let a=await n(s,e);return{response:s,output:a}}catch(a){if(Object.defineProperty(a,"$response",{value:s}),!("$metadata"in a)){let i="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";a.message+=` + `+i,typeof a.$responseBodyText<"u"&&a.$response&&(a.$response.body=a.$responseBodyText)}throw a}},"deserializerMiddleware"),Rx=sf((e,n)=>(t,r)=>async o=>{var s;let a=(s=r.endpointV2)!=null&&s.url&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint;if(!a)throw new Error("No valid endpoint provider available.");let i=await n(o.input,{...e,endpoint:a});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)}}}sf(qx,"getSerdePlugin")});var x=m((y0e,Gx)=>{var Wd=Object.defineProperty,zV=Object.getOwnPropertyDescriptor,GV=Object.getOwnPropertyNames,HV=Object.prototype.hasOwnProperty,xt=(e,n)=>Wd(e,"name",{value:n,configurable:!0}),$V=(e,n)=>{for(var t in n)Wd(e,t,{get:n[t],enumerable:!0})},KV=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of GV(n))!HV.call(e,o)&&o!==t&&Wd(e,o,{get:()=>n[o],enumerable:!(r=zV(n,o))||r.enumerable});return e},VV=e=>KV(Wd({},"__esModule",{value:!0}),e),Fx={};$V(Fx,{endpointMiddleware:()=>Ux,endpointMiddlewareOptions:()=>zx,getEndpointFromInstructions:()=>Lx,getEndpointPlugin:()=>r6,resolveEndpointConfig:()=>o6,resolveParams:()=>jx,toEndpointV1:()=>af});Gx.exports=VV(Fx);var XV=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("?"))),ZV(n)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!QV(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"),WV=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,YV=/(\d+\.){3}\d+/,JV=/\.\./,QV=xt(e=>WV.test(e)&&!YV.test(e)&&!JV.test(e),"isDnsCompatibleBucketName"),ZV=xt(e=>{let[n,t,r,o,s,a]=e.split(":"),i=n==="arn"&&e.split(":").length>=6,u=[n,t,r,s,a].filter(Boolean).length===5;if(i&&!u)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return n==="arn"&&!!t&&!!r&&!!s&&!!a},"isArnBucketName"),e6=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:a,port:i,path:u}=o;return`${s}//${a}${i?":"+i:""}${u}`}}return o}:r},"createConfigValueProvider"),t6=Ex(),Mx=mr(),af=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 a=await(0,t6.getEndpointFromConfig)(t.serviceId||"");a&&(t.endpoint=()=>Promise.resolve(af(a)))}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[a,i]of Object.entries(s))switch(i.type){case"staticContextParams":o[a]=i.value;break;case"contextParams":o[a]=e[i.name];break;case"clientContextParams":case"builtInParams":o[a]=await e6(i.name,a,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 XV(o),o},"resolveParams"),Xd=Tr(),Ux=xt(({config:e,instructions:n})=>(t,r)=>async o=>{var s,a,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=(a=r.authSchemes)==null?void 0:a[0];if(l){r.signing_region=l.signingRegion,r.signing_service=l.signingName;let c=(0,Xd.getSmithyContext)(r),y=(i=c==null?void 0:c.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"),n6=k(),zx={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:n6.serializerMiddlewareOption.name},r6=xt((e,n)=>({applyToStack:t=>{t.addRelativeTo(Ux({config:e,instructions:n}),zx)}}),"getEndpointPlugin"),o6=xt(e=>{let n=e.tls??!0,{endpoint:t}=e,r=t!=null?async()=>af(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 sa(){return Yd>Jd.length-16&&(Hx.default.randomFillSync(Jd),Yd=0),Jd.slice(Yd,Yd+=16)}var Hx,Jd,Yd,cf=je(()=>{Hx=Ni(require("crypto")),Jd=new Uint8Array(256),Yd=Jd.length});var $x,Kx=je(()=>{$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 s6(e){return typeof e=="string"&&$x.test(e)}var Rn,ia=je(()=>{Kx();Rn=s6});function i6(e,n=0){let t=(Ve[e[n+0]]+Ve[e[n+1]]+Ve[e[n+2]]+Ve[e[n+3]]+"-"+Ve[e[n+4]]+Ve[e[n+5]]+"-"+Ve[e[n+6]]+Ve[e[n+7]]+"-"+Ve[e[n+8]]+Ve[e[n+9]]+"-"+Ve[e[n+10]]+Ve[e[n+11]]+Ve[e[n+12]]+Ve[e[n+13]]+Ve[e[n+14]]+Ve[e[n+15]]).toLowerCase();if(!Rn(t))throw TypeError("Stringified UUID is invalid");return t}var Ve,Tn,aa=je(()=>{ia();Ve=[];for(let e=0;e<256;++e)Ve.push((e+256).toString(16).substr(1));Tn=i6});function a6(e,n,t){let r=n&&t||0,o=n||new Array(16);e=e||{};let s=e.node||Vx,a=e.clockseq!==void 0?e.clockseq:df;if(s==null||a==null){let g=e.random||(e.rng||sa)();s==null&&(s=Vx=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]),a==null&&(a=df=(g[6]<<8|g[7])&16383)}let i=e.msecs!==void 0?e.msecs:Date.now(),u=e.nsecs!==void 0?e.nsecs:uf+1,l=i-lf+(u-uf)/1e4;if(l<0&&e.clockseq===void 0&&(a=a+1&16383),(l<0||i>lf)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");lf=i,uf=u,df=a,i+=122192928e5;let c=((i&268435455)*1e4+u)%4294967296;o[r++]=c>>>24&255,o[r++]=c>>>16&255,o[r++]=c>>>8&255,o[r++]=c&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++]=a>>>8|128,o[r++]=a&255;for(let g=0;g<6;++g)o[r+g]=s[g];return n||Tn(o)}var Vx,df,lf,uf,Xx,Wx=je(()=>{cf();aa();lf=0,uf=0;Xx=a6});function c6(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,mf=je(()=>{ia();Qd=c6});function d6(e){e=unescape(encodeURIComponent(e));let n=[];for(let t=0;t{aa();mf();l6="6ba7b810-9dad-11d1-80b4-00c04fd430c8",u6="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});function m6(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=je(()=>{Yx=Ni(require("crypto"));Jx=m6});var p6,Zx,ek=je(()=>{pf();Qx();p6=Zd("v3",48,Jx),Zx=p6});function f6(e,n,t){e=e||{};let r=e.random||(e.rng||sa)();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=je(()=>{cf();aa();tk=f6});function y6(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=je(()=>{rk=Ni(require("crypto"));ok=y6});var g6,ik,ak=je(()=>{pf();sk();g6=Zd("v5",80,ok),ik=g6});var ck,dk=je(()=>{ck="00000000-0000-0000-0000-000000000000"});function h6(e){if(!Rn(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var lk,uk=je(()=>{ia();lk=h6});var mk={};Oi(mk,{NIL:()=>ck,parse:()=>Qd,stringify:()=>Tn,v1:()=>Xx,v3:()=>Zx,v4:()=>tk,v5:()=>ik,validate:()=>Rn,version:()=>lk});var pk=je(()=>{Wx();ek();nk();ak();dk();uk();ia();aa();mf()});var ff=m((Z0e,hk)=>{var el=Object.defineProperty,_6=Object.getOwnPropertyDescriptor,C6=Object.getOwnPropertyNames,S6=Object.prototype.hasOwnProperty,Ur=(e,n)=>el(e,"name",{value:n,configurable:!0}),b6=(e,n)=>{for(var t in n)el(e,t,{get:n[t],enumerable:!0})},E6=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of C6(n))!S6.call(e,o)&&o!==t&&el(e,o,{get:()=>n[o],enumerable:!(r=_6(n,o))||r.enumerable});return e},P6=e=>E6(el({},"__esModule",{value:!0}),e),fk={};b6(fk,{isClockSkewCorrectedError:()=>yk,isClockSkewError:()=>N6,isRetryableByTrait:()=>O6,isServerError:()=>R6,isThrottlingError:()=>I6,isTransientError:()=>gk});hk.exports=P6(fk);var v6=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],w6=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],x6=["TimeoutError","RequestTimeout","RequestTimeoutException"],k6=[500,502,503,504],A6=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],O6=Ur(e=>e.$retryable!==void 0,"isRetryableByTrait"),N6=Ur(e=>v6.includes(e.name),"isClockSkewError"),yk=Ur(e=>{var n;return(n=e.$metadata)==null?void 0:n.clockSkewCorrected},"isClockSkewCorrectedError"),I6=Ur(e=>{var n,t;return((n=e.$metadata)==null?void 0:n.httpStatusCode)===429||w6.includes(e.name)||((t=e.$retryable)==null?void 0:t.throttling)==!0},"isThrottlingError"),gk=Ur(e=>{var n;return yk(e)||x6.includes(e.name)||A6.includes((e==null?void 0:e.code)||"")||k6.includes(((n=e.$metadata)==null?void 0:n.httpStatusCode)||0)},"isTransientError"),R6=Ur(e=>{var n;if(((n=e.$metadata)==null?void 0:n.httpStatusCode)!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!gk(e)}return!1},"isServerError")});var zr=m((ove,Nk)=>{var tl=Object.defineProperty,T6=Object.getOwnPropertyDescriptor,B6=Object.getOwnPropertyNames,q6=Object.prototype.hasOwnProperty,kt=(e,n)=>tl(e,"name",{value:n,configurable:!0}),D6=(e,n)=>{for(var t in n)tl(e,t,{get:n[t],enumerable:!0})},M6=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of B6(n))!q6.call(e,o)&&o!==t&&tl(e,o,{get:()=>n[o],enumerable:!(r=T6(n,o))||r.enumerable});return e},F6=e=>M6(tl({},"__esModule",{value:!0}),e),Ck={};D6(Ck,{AdaptiveRetryStrategy:()=>H6,ConfiguredRetryStrategy:()=>$6,DEFAULT_MAX_ATTEMPTS:()=>yf,DEFAULT_RETRY_DELAY_BASE:()=>ca,DEFAULT_RETRY_MODE:()=>L6,DefaultRateLimiter:()=>Ek,INITIAL_RETRY_TOKENS:()=>gf,INVOCATION_ID_HEADER:()=>U6,MAXIMUM_RETRY_DELAY:()=>hf,NO_RETRY_INCREMENT:()=>xk,REQUEST_HEADER:()=>z6,RETRY_COST:()=>vk,RETRY_MODES:()=>Sk,StandardRetryStrategy:()=>_f,THROTTLING_RETRY_DELAY_BASE:()=>Pk,TIMEOUT_RETRY_COST:()=>wk});Nk.exports=F6(Ck);var Sk=(e=>(e.STANDARD="standard",e.ADAPTIVE="adaptive",e))(Sk||{}),yf=3,L6="standard",j6=ff(),bk=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,j6.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(bk,"DefaultRateLimiter");var Ek=bk,ca=100,hf=20*1e3,Pk=500,gf=500,vk=5,wk=10,xk=1,U6="amz-sdk-invocation-id",z6="amz-sdk-request",G6=kt(()=>{let e=ca;return{computeNextBackoffDelay:kt(r=>Math.floor(Math.min(hf,Math.random()*2**r*e)),"computeNextBackoffDelay"),setDelayBase:kt(r=>{e=r},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),_k=kt(({retryDelay:e,retryCount:n,retryCost:t})=>({getRetryCount:kt(()=>n,"getRetryCount"),getRetryDelay:kt(()=>Math.min(hf,e),"getRetryDelay"),getRetryCost:kt(()=>t,"getRetryCost")}),"createDefaultRetryToken"),kk=class{constructor(n){this.maxAttempts=n,this.mode="standard",this.capacity=gf,this.retryBackoffStrategy=G6(),this.maxAttemptsProvider=typeof n=="function"?n:async()=>n}async acquireInitialRetryToken(n){return _k({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"?Pk:ca);let s=this.retryBackoffStrategy.computeNextBackoffDelay(n.getRetryCount()),a=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,s):s,i=this.getCapacityCost(o);return this.capacity-=i,_k({retryDelay:a,retryCount:n.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(n){this.capacity=Math.max(gf,this.capacity+(n.getRetryCost()??xk))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${yf}`),yf}}shouldRetry(n,t,r){return n.getRetryCount()+1=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(n){return n==="TRANSIENT"?wk:vk}isRetryableError(n){return n==="THROTTLING"||n==="TRANSIENT"}};kt(kk,"StandardRetryStrategy");var _f=kk,Ak=class{constructor(n,t){this.maxAttemptsProvider=n,this.mode="adaptive";let{rateLimiter:r}=t??{};this.rateLimiter=r??new Ek,this.standardRetryStrategy=new _f(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(Ak,"AdaptiveRetryStrategy");var H6=Ak,Ok=class extends _f{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(Ok,"ConfiguredRetryStrategy");var $6=Ok});var Ik=m(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.isStreamingPayload=void 0;var K6=require("stream"),V6=e=>(e==null?void 0:e.body)instanceof K6.Readable||typeof ReadableStream<"u"&&(e==null?void 0:e.body)instanceof ReadableStream;nl.isStreamingPayload=V6});var sn=m((cve,Xk)=>{var rl=Object.defineProperty,X6=Object.getOwnPropertyDescriptor,W6=Object.getOwnPropertyNames,Y6=Object.prototype.hasOwnProperty,Te=(e,n)=>rl(e,"name",{value:n,configurable:!0}),J6=(e,n)=>{for(var t in n)rl(e,t,{get:n[t],enumerable:!0})},Q6=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of W6(n))!Y6.call(e,o)&&o!==t&&rl(e,o,{get:()=>n[o],enumerable:!(r=X6(n,o))||r.enumerable});return e},Z6=e=>Q6(rl({},"__esModule",{value:!0}),e),Tk={};J6(Tk,{AdaptiveRetryStrategy:()=>nX,CONFIG_MAX_ATTEMPTS:()=>Sf,CONFIG_RETRY_MODE:()=>zk,ENV_MAX_ATTEMPTS:()=>Cf,ENV_RETRY_MODE:()=>Uk,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>rX,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>sX,StandardRetryStrategy:()=>Lk,defaultDelayDecider:()=>qk,defaultRetryDecider:()=>Dk,getOmitRetryHeadersPlugin:()=>iX,getRetryAfterHint:()=>Vk,getRetryPlugin:()=>mX,omitRetryHeadersMiddleware:()=>Gk,omitRetryHeadersMiddlewareOptions:()=>Hk,resolveRetryConfig:()=>oX,retryMiddleware:()=>$k,retryMiddlewareOptions:()=>Kk});Xk.exports=Z6(Tk);var Gr=Ne(),Bk=(pk(),J(mk)),ve=zr(),eX=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,a=e,i=Te(y=>y.name==="TimeoutError"?s:o,"getCapacityAmount"),u=Te(y=>i(y)<=a,"hasRetryTokens");return Object.freeze({hasRetryTokens:u,retrieveRetryTokens:Te(y=>{if(!u(y))throw new Error("No retry token available");let g=i(y);return a-=g,g},"retrieveRetryTokens"),releaseRetryTokens:Te(y=>{a+=y??r,a=Math.min(a,t)},"releaseRetryTokens")})},"getDefaultRetryQuota"),qk=Te((e,n)=>Math.floor(Math.min(ve.MAXIMUM_RETRY_DELAY,Math.random()*2**n*e)),"defaultDelayDecider"),Bn=ff(),Dk=Te(e=>e?(0,Bn.isRetryableByTrait)(e)||(0,Bn.isClockSkewError)(e)||(0,Bn.isThrottlingError)(e)||(0,Bn.isTransientError)(e):!1,"defaultRetryDecider"),Mk=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"),Fk=class{constructor(n,t){this.maxAttemptsProvider=n,this.mode=ve.RETRY_MODES.STANDARD,this.retryDecider=(t==null?void 0:t.retryDecider)??Dk,this.delayDecider=(t==null?void 0:t.delayDecider)??qk,this.retryQuota=(t==null?void 0:t.retryQuota)??eX(ve.INITIAL_RETRY_TOKENS)}shouldRetry(n,t,r){return tsetTimeout(P,C));continue}throw c.$metadata||(c.$metadata={}),c.$metadata.attempts=s,c.$metadata.totalRetryDelay=a,c}}};Te(Fk,"StandardRetryStrategy");var Lk=Fk,tX=Te(e=>{if(!Gr.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"),jk=class extends Lk{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(jk,"AdaptiveRetryStrategy");var nX=jk,Rk=Tr(),Cf="AWS_MAX_ATTEMPTS",Sf="max_attempts",rX={environmentVariableSelector:e=>{let n=e[Cf];if(!n)return;let t=parseInt(n);if(Number.isNaN(t))throw new Error(`Environment variable ${Cf} mast be a number, got "${n}"`);return t},configFileSelector:e=>{let n=e[Sf];if(!n)return;let t=parseInt(n);if(Number.isNaN(t))throw new Error(`Shared config file entry ${Sf} mast be a number, got "${n}"`);return t},default:ve.DEFAULT_MAX_ATTEMPTS},oX=Te(e=>{let{retryStrategy:n}=e,t=(0,Rk.normalizeProvider)(e.maxAttempts??ve.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:t,retryStrategy:async()=>n||(await(0,Rk.normalizeProvider)(e.retryMode)()===ve.RETRY_MODES.ADAPTIVE?new ve.AdaptiveRetryStrategy(t):new ve.StandardRetryStrategy(t))}},"resolveRetryConfig"),Uk="AWS_RETRY_MODE",zk="retry_mode",sX={environmentVariableSelector:e=>e[Uk],configFileSelector:e=>e[zk],default:ve.DEFAULT_RETRY_MODE},Gk=Te(()=>e=>async n=>{let{request:t}=n;return Gr.HttpRequest.isInstance(t)&&(delete t.headers[ve.INVOCATION_ID_HEADER],delete t.headers[ve.REQUEST_HEADER]),e(n)},"omitRetryHeadersMiddleware"),Hk={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},iX=Te(e=>({applyToStack:n=>{n.addRelativeTo(Gk(),Hk)}}),"getOmitRetryHeadersPlugin"),aX=b(),cX=Ik(),$k=Te(e=>(n,t)=>async r=>{var o;let s=await e.retryStrategy(),a=await e.maxAttempts();if(dX(s)){s=s;let i=await s.acquireInitialRetryToken(t.partition_id),u=new Error,l=0,c=0,{request:y}=r,g=Gr.HttpRequest.isInstance(y);for(g&&(y.headers[ve.INVOCATION_ID_HEADER]=(0,Bk.v4)());;)try{g&&(y.headers[ve.REQUEST_HEADER]=`attempt=${l+1}; max=${a}`);let{response:C,output:P}=await n(r);return s.recordSuccess(i),P.$metadata.attempts=l+1,P.$metadata.totalRetryDelay=c,{response:C,output:P}}catch(C){let P=lX(C);if(u=Mk(C),g&&(0,cX.isStreamingPayload)(y))throw(o=t.logger instanceof aX.NoOpLogger?console:t.logger)==null||o.warn("An error was encountered in a non-retryable streaming request."),u;try{i=await s.refreshRetryTokenForRetry(i,P)}catch{throw u.$metadata||(u.$metadata={}),u.$metadata.attempts=l+1,u.$metadata.totalRetryDelay=c,u}l=i.getRetryCount();let A=i.getRetryDelay();c+=A,await new Promise(v=>setTimeout(v,A))}}else return s=s,s!=null&&s.mode&&(t.userAgent=[...t.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(n,r)},"retryMiddleware"),dX=Te(e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u","isRetryStrategyV2"),lX=Te(e=>{let n={error:e,errorType:uX(e)},t=Vk(e.$response);return t&&(n.retryAfterHint=t),n},"getRetryErrorInfo"),uX=Te(e=>(0,Bn.isThrottlingError)(e)?"THROTTLING":(0,Bn.isTransientError)(e)?"TRANSIENT":(0,Bn.isServerError)(e)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),Kk={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},mX=Te(e=>({applyToStack:n=>{n.add($k(e),Kk)}}),"getRetryPlugin"),Vk=Te(e=>{if(!Gr.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 Wk=m(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.resolveClientEndpointParameters=void 0;var pX=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=pX});var Yk=m((lve,fX)=>{fX.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 Jk=m(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.resolveStsAuthConfig=void 0;var yX=rn(),gX=(e,{stsClientCtor:n})=>(0,yX.resolveAwsAuthConfig)({...e,stsClientCtor:n});sl.resolveStsAuthConfig=gX});var Qk=m(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.resolveClientEndpointParameters=void 0;var hX=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"});il.resolveClientEndpointParameters=hX});var Zk=m((pve,_X)=>{_X.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(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.STSServiceException=Hr.__ServiceException=void 0;var eA=b();Object.defineProperty(Hr,"__ServiceException",{enumerable:!0,get:function(){return eA.ServiceException}});var bf=class e extends eA.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};Hr.STSServiceException=bf});var Dn=m(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.GetSessionTokenResponseFilterSensitiveLog=ae.GetFederationTokenResponseFilterSensitiveLog=ae.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=ae.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=ae.AssumeRoleWithSAMLResponseFilterSensitiveLog=ae.AssumeRoleWithSAMLRequestFilterSensitiveLog=ae.AssumeRoleResponseFilterSensitiveLog=ae.CredentialsFilterSensitiveLog=ae.InvalidAuthorizationMessageException=ae.IDPCommunicationErrorException=ae.InvalidIdentityTokenException=ae.IDPRejectedClaimException=ae.RegionDisabledException=ae.PackedPolicyTooLargeException=ae.MalformedPolicyDocumentException=ae.ExpiredTokenException=void 0;var Nf=b(),qn=al(),Ef=class e extends qn.STSServiceException{constructor(n){super({name:"ExpiredTokenException",$fault:"client",...n}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.ExpiredTokenException=Ef;var Pf=class e extends qn.STSServiceException{constructor(n){super({name:"MalformedPolicyDocumentException",$fault:"client",...n}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.MalformedPolicyDocumentException=Pf;var vf=class e extends qn.STSServiceException{constructor(n){super({name:"PackedPolicyTooLargeException",$fault:"client",...n}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.PackedPolicyTooLargeException=vf;var wf=class e extends qn.STSServiceException{constructor(n){super({name:"RegionDisabledException",$fault:"client",...n}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.RegionDisabledException=wf;var xf=class e extends qn.STSServiceException{constructor(n){super({name:"IDPRejectedClaimException",$fault:"client",...n}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.IDPRejectedClaimException=xf;var kf=class e extends qn.STSServiceException{constructor(n){super({name:"InvalidIdentityTokenException",$fault:"client",...n}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.InvalidIdentityTokenException=kf;var Af=class e extends qn.STSServiceException{constructor(n){super({name:"IDPCommunicationErrorException",$fault:"client",...n}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.IDPCommunicationErrorException=Af;var Of=class e extends qn.STSServiceException{constructor(n){super({name:"InvalidAuthorizationMessageException",$fault:"client",...n}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};ae.InvalidAuthorizationMessageException=Of;var CX=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:Nf.SENSITIVE_STRING}});ae.CredentialsFilterSensitiveLog=CX;var SX=e=>({...e,...e.Credentials&&{Credentials:(0,ae.CredentialsFilterSensitiveLog)(e.Credentials)}});ae.AssumeRoleResponseFilterSensitiveLog=SX;var bX=e=>({...e,...e.SAMLAssertion&&{SAMLAssertion:Nf.SENSITIVE_STRING}});ae.AssumeRoleWithSAMLRequestFilterSensitiveLog=bX;var EX=e=>({...e,...e.Credentials&&{Credentials:(0,ae.CredentialsFilterSensitiveLog)(e.Credentials)}});ae.AssumeRoleWithSAMLResponseFilterSensitiveLog=EX;var PX=e=>({...e,...e.WebIdentityToken&&{WebIdentityToken:Nf.SENSITIVE_STRING}});ae.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=PX;var vX=e=>({...e,...e.Credentials&&{Credentials:(0,ae.CredentialsFilterSensitiveLog)(e.Credentials)}});ae.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=vX;var wX=e=>({...e,...e.Credentials&&{Credentials:(0,ae.CredentialsFilterSensitiveLog)(e.Credentials)}});ae.GetFederationTokenResponseFilterSensitiveLog=wX;var xX=e=>({...e,...e.Credentials&&{Credentials:(0,ae.CredentialsFilterSensitiveLog)(e.Credentials)}});ae.GetSessionTokenResponseFilterSensitiveLog=xX});var cl=m(an=>{"use strict";var tA=":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",kX=tA+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",nA="["+tA+"]["+kX+"]*",AX=new RegExp("^"+nA+"$"),OX=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 a=0;a"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 If=cl(),IX={allowBooleanAttributes:!1,unpairedTags:[]};aA.validate=function(e,n){n=Object.assign({},IX,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--),!LX(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=BX(e,s);if(l===!1)return Be("InvalidAttr","Attributes for '"+u+"' have open quote.",it(e,s));let c=l.value;if(s=l.index,c[c.length-1]==="/"){let y=s-c.length;c=c.substring(0,c.length-1);let g=iA(c,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(c.trim().length>0)return Be("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",it(e,a));{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,a))}t.length==0&&(o=!0)}}else return Be("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",it(e,s));else{let y=iA(c,n);if(y!==!0)return Be(y.err.code,y.err.msg,it(e,s-c.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:a}),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 rA(e){return e===" "||e===" "||e===` +`||e==="\r"}function oA(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 sA(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 RX='"',TX="'";function BX(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 qX=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function iA(e,n){let t=If.getAllMatches(e,qX),r={};for(let o=0;o{var cA={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}},jX=function(e){return Object.assign({},cA,e)};Tf.buildOptions=jX;Tf.defaultOptions=cA});var uA=m((Cve,lA)=>{"use strict";var Bf=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})}};lA.exports=Bf});var pA=m((Sve,mA)=>{var UX=cl();function zX(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,a="";for(;n"){if(s?e[n-1]==="-"&&e[n-2]==="-"&&(s=!1,r--):r--,r===0)break}else e[n]==="["?o=!0:a+=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 GX(e,n){let t="";for(;n{var YX=/^[-+]?0x[a-fA-F0-9]+$/,JX=/^([\-\+])?(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 QX={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function ZX(e,n={}){if(n=Object.assign({},QX,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&&YX.test(t))return Number.parseInt(t,16);{let r=JX.exec(t);if(r){let o=r[1],s=r[2],a=e8(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"&&a===""||l===a||o&&l==="-"+a?u:e:s?a===l||o+a===l?u:e:t===l||t===o+l?u:e}}else return e}}function e8(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}fA.exports=ZX});var hA=m((Pve,gA)=>{"use strict";var Ff=cl(),la=uA(),t8=pA(),n8=yA(),Eve="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,Ff.nameRegexp),qf=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=r8,this.parseXml=c8,this.parseTextData=o8,this.resolveNameSpace=s8,this.buildAttributesMap=a8,this.isItStopNode=m8,this.replaceEntitiesValue=l8,this.readStopNodeData=f8,this.saveTextToParentTag=u8,this.addChild=d8}};function r8(e){let n=Object.keys(e);for(let t=0;t0)){a||(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?Mf(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?Mf(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function s8(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 i8=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function a8(e,n,t){if(!this.options.ignoreAttributes&&typeof e=="string"){let r=Ff.getAllMatches(e,i8),o=r.length,s={};for(let a=0;a",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 c=0;l&&this.options.unpairedTags.indexOf(l)!==-1?(c=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):c=o.lastIndexOf("."),o=o.substring(0,c),t=this.tagsNodeStack.pop(),r="",s=i}else if(e[s+1]==="?"){let i=Df(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=t8(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=Df(e,s,this.options.removeNSPrefix),u=i.tagName,l=i.tagExp,c=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 P=new la(u);u!==l&&c&&(P[":@"]=this.buildAttributesMap(l,o,u)),C&&(C=this.parseTextData(C,u,o,!0,c,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),P.add(this.options.textNodeName,C),this.addChild(t,P,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&&c&&(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&&c&&(C[":@"]=this.buildAttributesMap(l,o,u)),this.addChild(t,C,o),t=C}r="",s=y}}else r+=e[s];return n.child};function d8(e,n,t){let r=this.options.updateTag(n.tagname,t,n[":@"]);r===!1||(typeof r=="string"&&(n.tagname=r),e.addChild(n))}var l8=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 u8(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 m8(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 p8(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=Df(e,t,">");s&&((s&&s.tagName)===n&&s.tagExp[s.tagExp.length-1]!=="/"&&o++,t=s.closeIndex)}}function Mf(e,n,t){if(n&&typeof e=="string"){let r=e.trim();return r==="true"?!0:r==="false"?!1:n8(e,t)}else return Ff.isExist(e)?e:""}gA.exports=qf});var SA=m(CA=>{"use strict";function y8(e,n){return _A(e,n)}function _A(e,n,t){let r,o={};for(let s=0;s0&&(o[n.textNodeName]=r):r!==void 0&&(o[n.textNodeName]=r),o}function g8(e){let n=Object.keys(e);for(let t=0;t{var{buildOptions:C8}=dA(),S8=hA(),{prettify:b8}=SA(),E8=Rf(),Lf=class{constructor(n){this.externalEntities={},this.options=C8(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=E8.validate(n,t);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}let r=new S8(this.options);r.addExternalEntities(this.externalEntities);let o=r.parseXml(n);return this.options.preserveOrder||o===void 0?o:b8(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}};bA.exports=Lf});var kA=m((xve,xA)=>{var P8=` +`;function v8(e,n){let t="";return n.format&&n.indentBy.length>0&&(t=P8),vA(e,n,"",t)}function vA(e,n,t,r){let o="",s=!1;for(let a=0;a`,s=!1;continue}else if(u===n.commentPropName){o+=r+``,s=!0;continue}else if(u[0]==="?"){let P=PA(i[":@"],n),A=u==="?xml"?"":r,v=i[u][0][n.textNodeName];v=v.length!==0?" "+v:"",o+=A+`<${u}${v}${P}?>`,s=!0;continue}let c=r;c!==""&&(c+=n.indentBy);let y=PA(i[":@"],n),g=r+`<${u}${y}`,C=vA(i[u],n,l,c);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 w8(e){let n=Object.keys(e);for(let t=0;t0&&n.processEntities)for(let t=0;t{"use strict";var k8=kA(),A8={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({},A8,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=I8),this.processTextOrObjNode=O8,this.options.format?(this.indentate=N8,this.tagEndChar=`> +`,this.newLine=` +`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Mn.prototype.build=function(e){return this.options.preserveOrder?k8(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 a=this.options.tagValueProcessor(o,""+e[o]);r+=this.replaceEntitiesValue(a)}else r+=this.buildTextValNode(e[o],o,"",n)}else if(Array.isArray(e[o])){let s=e[o].length,a="";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?a+=this.j2x(u,n+1).val:a+=this.processTextOrObjNode(u,o,n):a+=this.buildTextValNode(u,o,"",n))}this.options.oneListGroup&&(a=this.buildObjectNode(a,o,"",n)),r+=a}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let s=Object.keys(e[o]),a=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 R8=Rf(),T8=EA(),B8=OA();NA.exports={XMLParser:T8,XMLValidator:R8,XMLBuilder:B8}});var dn=m(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.de_GetSessionTokenCommand=me.de_GetFederationTokenCommand=me.de_GetCallerIdentityCommand=me.de_GetAccessKeyInfoCommand=me.de_DecodeAuthorizationMessageCommand=me.de_AssumeRoleWithWebIdentityCommand=me.de_AssumeRoleWithSAMLCommand=me.de_AssumeRoleCommand=me.se_GetSessionTokenCommand=me.se_GetFederationTokenCommand=me.se_GetCallerIdentityCommand=me.se_GetAccessKeyInfoCommand=me.se_DecodeAuthorizationMessageCommand=me.se_AssumeRoleWithWebIdentityCommand=me.se_AssumeRoleWithSAMLCommand=me.se_AssumeRoleCommand=void 0;var q8=Ne(),W=b(),D8=jf(),Fn=Dn(),M8=al(),F8=async(e,n)=>{let t=Un,r;return r=Gn({...l4(e,n),Action:"AssumeRole",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};me.se_AssumeRoleCommand=F8;var L8=async(e,n)=>{let t=Un,r;return r=Gn({...u4(e,n),Action:"AssumeRoleWithSAML",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};me.se_AssumeRoleWithSAMLCommand=L8;var j8=async(e,n)=>{let t=Un,r;return r=Gn({...m4(e,n),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};me.se_AssumeRoleWithWebIdentityCommand=j8;var U8=async(e,n)=>{let t=Un,r;return r=Gn({...p4(e,n),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};me.se_DecodeAuthorizationMessageCommand=U8;var z8=async(e,n)=>{let t=Un,r;return r=Gn({...f4(e,n),Action:"GetAccessKeyInfo",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};me.se_GetAccessKeyInfoCommand=z8;var G8=async(e,n)=>{let t=Un,r;return r=Gn({...y4(e,n),Action:"GetCallerIdentity",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};me.se_GetCallerIdentityCommand=G8;var H8=async(e,n)=>{let t=Un,r;return r=Gn({...g4(e,n),Action:"GetFederationToken",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};me.se_GetFederationTokenCommand=H8;var $8=async(e,n)=>{let t=Un,r;return r=Gn({...h4(e,n),Action:"GetSessionToken",Version:"2011-06-15"}),jn(n,t,"/",void 0,r)};me.se_GetSessionTokenCommand=$8;var K8=async(e,n)=>{if(e.statusCode>=300)return V8(e,n);let t=await cn(e.body,n),r={};return r=P4(t.AssumeRoleResult,n),{$metadata:Ze(e),...r}};me.de_AssumeRoleCommand=K8;var V8=async(e,n)=>{let t={...e,body:await zn(e.body,n)},r=Hn(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Uf(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})}},X8=async(e,n)=>{if(e.statusCode>=300)return W8(e,n);let t=await cn(e.body,n),r={};return r=v4(t.AssumeRoleWithSAMLResult,n),{$metadata:Ze(e),...r}};me.de_AssumeRoleWithSAMLCommand=X8;var W8=async(e,n)=>{let t={...e,body:await zn(e.body,n)},r=Hn(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Uf(t,n);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await IA(t,n);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await RA(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})}},Y8=async(e,n)=>{if(e.statusCode>=300)return J8(e,n);let t=await cn(e.body,n),r={};return r=w4(t.AssumeRoleWithWebIdentityResult,n),{$metadata:Ze(e),...r}};me.de_AssumeRoleWithWebIdentityCommand=Y8;var J8=async(e,n)=>{let t={...e,body:await zn(e.body,n)},r=Hn(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Uf(t,n);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await c4(t,n);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await IA(t,n);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await RA(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})}},Q8=async(e,n)=>{if(e.statusCode>=300)return Z8(e,n);let t=await cn(e.body,n),r={};return r=x4(t.DecodeAuthorizationMessageResult,n),{$metadata:Ze(e),...r}};me.de_DecodeAuthorizationMessageCommand=Q8;var Z8=async(e,n)=>{let t={...e,body:await zn(e.body,n)},r=Hn(e,t.body);switch(r){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await d4(t,n);default:let o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})}},e4=async(e,n)=>{if(e.statusCode>=300)return t4(e,n);let t=await cn(e.body,n),r={};return r=O4(t.GetAccessKeyInfoResult,n),{$metadata:Ze(e),...r}};me.de_GetAccessKeyInfoCommand=e4;var t4=async(e,n)=>{let t={...e,body:await zn(e.body,n)},r=Hn(e,t.body),o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})},n4=async(e,n)=>{if(e.statusCode>=300)return r4(e,n);let t=await cn(e.body,n),r={};return r=N4(t.GetCallerIdentityResult,n),{$metadata:Ze(e),...r}};me.de_GetCallerIdentityCommand=n4;var r4=async(e,n)=>{let t={...e,body:await zn(e.body,n)},r=Hn(e,t.body),o=t.body;return Ln({output:e,parsedBody:o.Error,errorCode:r})},o4=async(e,n)=>{if(e.statusCode>=300)return s4(e,n);let t=await cn(e.body,n),r={};return r=I4(t.GetFederationTokenResult,n),{$metadata:Ze(e),...r}};me.de_GetFederationTokenCommand=o4;var s4=async(e,n)=>{let t={...e,body:await zn(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})}},i4=async(e,n)=>{if(e.statusCode>=300)return a4(e,n);let t=await cn(e.body,n),r={};return r=R4(t.GetSessionTokenResult,n),{$metadata:Ze(e),...r}};me.de_GetSessionTokenCommand=i4;var a4=async(e,n)=>{let t={...e,body:await zn(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})}},Uf=async(e,n)=>{let t=e.body,r=k4(t.Error,n),o=new Fn.ExpiredTokenException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,t)},c4=async(e,n)=>{let t=e.body,r=T4(t.Error,n),o=new Fn.IDPCommunicationErrorException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,t)},IA=async(e,n)=>{let t=e.body,r=B4(t.Error,n),o=new Fn.IDPRejectedClaimException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,t)},d4=async(e,n)=>{let t=e.body,r=q4(t.Error,n),o=new Fn.InvalidAuthorizationMessageException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,t)},RA=async(e,n)=>{let t=e.body,r=D4(t.Error,n),o=new Fn.InvalidIdentityTokenException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,t)},dl=async(e,n)=>{let t=e.body,r=M4(t.Error,n),o=new Fn.MalformedPolicyDocumentException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,t)},ll=async(e,n)=>{let t=e.body,r=F4(t.Error,n),o=new Fn.PackedPolicyTooLargeException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,t)},ua=async(e,n)=>{let t=e.body,r=L4(t.Error,n),o=new Fn.RegionDisabledException({$metadata:Ze(e),...r});return(0,W.decorateServiceException)(o,t)},l4=(e,n)=>{var r,o,s,a;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 c=`PolicyArns.${u}`;t[c]=l})}if(e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.Tags!=null){let i=TA(e.Tags,n);((o=e.Tags)==null?void 0:o.length)===0&&(t.Tags=[]),Object.entries(i).forEach(([u,l])=>{let c=`Tags.${u}`;t[c]=l})}if(e.TransitiveTagKeys!=null){let i=E4(e.TransitiveTagKeys,n);((s=e.TransitiveTagKeys)==null?void 0:s.length)===0&&(t.TransitiveTagKeys=[]),Object.entries(i).forEach(([u,l])=>{let c=`TransitiveTagKeys.${u}`;t[c]=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=S4(e.ProvidedContexts,n);((a=e.ProvidedContexts)==null?void 0:a.length)===0&&(t.ProvidedContexts=[]),Object.entries(i).forEach(([u,l])=>{let c=`ProvidedContexts.${u}`;t[c]=l})}return t},u4=(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,a])=>{let i=`PolicyArns.${s}`;t[i]=a})}return e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),t},m4=(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,a])=>{let i=`PolicyArns.${s}`;t[i]=a})}return e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),t},p4=(e,n)=>{let t={};return e.EncodedMessage!=null&&(t.EncodedMessage=e.EncodedMessage),t},f4=(e,n)=>{let t={};return e.AccessKeyId!=null&&(t.AccessKeyId=e.AccessKeyId),t},y4=(e,n)=>({}),g4=(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(([a,i])=>{let u=`PolicyArns.${a}`;t[u]=i})}if(e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.Tags!=null){let s=TA(e.Tags,n);((o=e.Tags)==null?void 0:o.length)===0&&(t.Tags=[]),Object.entries(s).forEach(([a,i])=>{let u=`Tags.${a}`;t[u]=i})}return t},h4=(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=_4(o,n);Object.entries(s).forEach(([a,i])=>{t[`member.${r}.${a}`]=i}),r++}return t},_4=(e,n)=>{let t={};return e.arn!=null&&(t.arn=e.arn),t},C4=(e,n)=>{let t={};return e.ProviderArn!=null&&(t.ProviderArn=e.ProviderArn),e.ContextAssertion!=null&&(t.ContextAssertion=e.ContextAssertion),t},S4=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=C4(o,n);Object.entries(s).forEach(([a,i])=>{t[`member.${r}.${a}`]=i}),r++}return t},b4=(e,n)=>{let t={};return e.Key!=null&&(t.Key=e.Key),e.Value!=null&&(t.Value=e.Value),t},E4=(e,n)=>{let t={},r=1;for(let o of e)o!==null&&(t[`member.${r}`]=o,r++);return t},TA=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=b4(o,n);Object.entries(s).forEach(([a,i])=>{t[`member.${r}.${a}`]=i}),r++}return t},zf=(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},P4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=zf(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},v4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=zf(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},w4=(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=zf(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},x4=(e,n)=>{let t={};return e.DecodedMessage!==void 0&&(t.DecodedMessage=(0,W.expectString)(e.DecodedMessage)),t},k4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},A4=(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},O4=(e,n)=>{let t={};return e.Account!==void 0&&(t.Account=(0,W.expectString)(e.Account)),t},N4=(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},I4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),e.FederatedUser!==void 0&&(t.FederatedUser=A4(e.FederatedUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,W.strictParseInt32)(e.PackedPolicySize)),t},R4=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=ma(e.Credentials,n)),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},M4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},F4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},L4=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,W.expectString)(e.message)),t},Ze=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"]}),j4=(e,n)=>(0,W.collectBody)(e,n).then(t=>n.utf8Encoder(t)),Ln=(0,W.withBaseException)(M8.STSServiceException),jn=async(e,n,t,r,o)=>{let{hostname:s,protocol:a="https",port:i,path:u}=await e.endpoint(),l={protocol:a,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 q8.HttpRequest(l)},Un={"content-type":"application/x-www-form-urlencoded"},cn=(e,n)=>j4(e,n).then(t=>{if(t.length){let r=new D8.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",a=Object.keys(o)[0],i=o[a];return i[s]&&(i[a]=i[s],delete i[s]),(0,W.getValueFromTextNode)(i)}return{}}),zn=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($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.AssumeRoleCommand=$r.$Command=void 0;var U4=rn(),z4=x(),G4=k(),qA=b();Object.defineProperty($r,"$Command",{enumerable:!0,get:function(){return qA.Command}});var H4=w(),$4=Dn(),BA=dn(),Gf=class e extends qA.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,G4.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,z4.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,U4.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:$4.AssumeRoleResponseFilterSensitiveLog,[H4.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRole"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,BA.se_AssumeRoleCommand)(n,t)}deserialize(n,t){return(0,BA.de_AssumeRoleCommand)(n,t)}};$r.AssumeRoleCommand=Gf});var pl=m(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.AssumeRoleWithWebIdentityCommand=Kr.$Command=void 0;var K4=x(),V4=k(),FA=b();Object.defineProperty(Kr,"$Command",{enumerable:!0,get:function(){return FA.Command}});var X4=w(),DA=Dn(),MA=dn(),Hf=class e extends FA.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,V4.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,K4.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:DA.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:DA.AssumeRoleWithWebIdentityResponseFilterSensitiveLog,[X4.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithWebIdentity"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,MA.se_AssumeRoleWithWebIdentityCommand)(n,t)}deserialize(n,t){return(0,MA.de_AssumeRoleWithWebIdentityCommand)(n,t)}};Kr.AssumeRoleWithWebIdentityCommand=Hf});var $f=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.decorateDefaultCredentialProvider=Ft.getDefaultRoleAssumerWithWebIdentity=Ft.getDefaultRoleAssumer=void 0;var W4=ml(),Y4=pl(),LA="us-east-1",jA=e=>typeof e!="function"?e===void 0?LA:e:async()=>{try{return await e()}catch{return LA}},J4=(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:jA(u||e.region),...l?{requestHandler:l}:{}})}let{Credentials:a}=await t.send(new W4.AssumeRoleCommand(s));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration}}};Ft.getDefaultRoleAssumer=J4;var Q4=(e,n)=>{let t;return async r=>{if(!t){let{logger:s,region:a,requestHandler:i}=e;t=new n({logger:s,region:jA(a||e.region),...i?{requestHandler:i}:{}})}let{Credentials:o}=await t.send(new Y4.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=Q4;var Z4=e=>n=>e({roleAssumer:(0,Ft.getDefaultRoleAssumer)(n,n.stsClientCtor),roleAssumerWithWebIdentity:(0,Ft.getDefaultRoleAssumerWithWebIdentity)(n,n.stsClientCtor),...n});Ft.decorateDefaultCredentialProvider=Z4});var UA=m(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.fromEnv=et.ENV_EXPIRATION=et.ENV_SESSION=et.ENV_SECRET=et.ENV_KEY=void 0;var eW=xe();et.ENV_KEY="AWS_ACCESS_KEY_ID";et.ENV_SECRET="AWS_SECRET_ACCESS_KEY";et.ENV_SESSION="AWS_SESSION_TOKEN";et.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var tW=()=>async()=>{let e=process.env[et.ENV_KEY],n=process.env[et.ENV_SECRET],t=process.env[et.ENV_SESSION],r=process.env[et.ENV_EXPIRATION];if(e&&n)return{accessKeyId:e,secretAccessKey:n,...t&&{sessionToken:t},...r&&{expiration:new Date(r)}};throw new eW.CredentialsProviderError("Unable to find environment variable credentials.")};et.fromEnv=tW});var Vf=m(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});var nW=(ne(),J(te));nW.__exportStar(UA(),Kf)});var hl=m((qve,nO)=>{var gl=Object.defineProperty,rW=Object.getOwnPropertyDescriptor,oW=Object.getOwnPropertyNames,sW=Object.prototype.hasOwnProperty,qe=(e,n)=>gl(e,"name",{value:n,configurable:!0}),iW=(e,n)=>{for(var t in n)gl(e,t,{get:n[t],enumerable:!0})},aW=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of oW(n))!sW.call(e,o)&&o!==t&&gl(e,o,{get:()=>n[o],enumerable:!(r=rW(n,o))||r.enumerable});return e},cW=e=>aW(gl({},"__esModule",{value:!0}),e),$A={};iW($A,{DEFAULT_MAX_RETRIES:()=>WA,DEFAULT_TIMEOUT:()=>XA,ENV_CMDS_AUTH_TOKEN:()=>Yf,ENV_CMDS_FULL_URI:()=>fl,ENV_CMDS_RELATIVE_URI:()=>yl,Endpoint:()=>QA,fromContainerMetadata:()=>mW,fromInstanceMetadata:()=>TW,getInstanceMetadataEndpoint:()=>eO,httpRequest:()=>Vr,providerConfigFromInit:()=>Jf});nO.exports=cW($A);var dW=require("url"),Lt=xe(),lW=require("buffer"),uW=require("http");function Vr(e){return new Promise((n,t)=>{var r;let o=(0,uW.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:a=400}=s;(a<200||300<=a)&&(t(Object.assign(new Lt.ProviderError("Error response received from instance metadata service"),{statusCode:a})),o.destroy());let i=[];s.on("data",u=>{i.push(u)}),s.on("end",()=>{n(lW.Buffer.concat(i)),o.destroy()})}),o.end()})}qe(Vr,"httpRequest");var KA=qe(e=>!!e&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string","isImdsCredentials"),VA=qe(e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)}),"fromImdsCredentials"),XA=1e3,WA=0,Jf=qe(({maxRetries:e=WA,timeout:n=XA})=>({maxRetries:e,timeout:n}),"providerConfigFromInit"),Wf=qe((e,n)=>{let t=e();for(let r=0;r{let{timeout:n,maxRetries:t}=Jf(e);return()=>Wf(async()=>{let r=await hW(),o=JSON.parse(await pW(n,r));if(!KA(o))throw new Lt.CredentialsProviderError("Invalid response received from instance metadata service.");return VA(o)},t)},"fromContainerMetadata"),pW=qe(async(e,n)=>(process.env[Yf]&&(n.headers={...n.headers,Authorization:process.env[Yf]}),(await Vr({...n,timeout:e})).toString()),"requestFromEcsImds"),fW="169.254.170.2",yW={localhost:!0,"127.0.0.1":!0},gW={"http:":!0,"https:":!0},hW=qe(async()=>{if(process.env[yl])return{hostname:fW,path:process.env[yl]};if(process.env[fl]){let e=(0,dW.parse)(process.env[fl]);if(!e.hostname||!(e.hostname in yW))throw new Lt.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in gW))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"),YA=class JA extends Lt.CredentialsProviderError{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,JA.prototype)}};qe(YA,"InstanceMetadataV1FallbackError");var _W=YA,Qf=on(),CW=mr(),QA=(e=>(e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]",e))(QA||{}),SW="AWS_EC2_METADATA_SERVICE_ENDPOINT",bW="ec2_metadata_service_endpoint",EW={environmentVariableSelector:e=>e[SW],configFileSelector:e=>e[bW],default:void 0},ZA=(e=>(e.IPv4="IPv4",e.IPv6="IPv6",e))(ZA||{}),PW="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",vW="ec2_metadata_service_endpoint_mode",wW={environmentVariableSelector:e=>e[PW],configFileSelector:e=>e[vW],default:"IPv4"},eO=qe(async()=>(0,CW.parseUrl)(await xW()||await kW()),"getInstanceMetadataEndpoint"),xW=qe(async()=>(0,Qf.loadConfig)(EW)(),"getFromEndpointConfig"),kW=qe(async()=>{let e=await(0,Qf.loadConfig)(wW)();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(ZA)}`)}},"getFromEndpointModeConfig"),AW=5*60,OW=5*60,NW="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",zA=qe((e,n)=>{let t=AW+Math.floor(Math.random()*OW),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(r)}. +For more information, please visit: `+NW);let o=e.originalExpiration??e.expiration;return{...e,...o?{originalExpiration:o}:{},expiration:r}},"getExtendedInstanceMetadataCredentials"),IW=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()IW(BW(e),{logger:e.logger}),"fromInstanceMetadata"),BW=qe(e=>{let n=!1,{logger:t,profile:r}=e,{timeout:o,maxRetries:s}=Jf(e),a=qe(async(i,u)=>{var l;if(n||((l=u.headers)==null?void 0:l[HA])==null){let g=!1,C=!1,P=await(0,Qf.loadConfig)({environmentVariableSelector:A=>{let v=A[Xf];if(C=!!v&&v!=="false",v===void 0)throw new Lt.CredentialsProviderError(`${Xf} not set in env, checking config file next.`);return C},configFileSelector:A=>{let v=A[GA];return g=!!v&&v!=="false",g},default:!1},{profile:r})();if(e.ec2MetadataV1Disabled||P){let A=[];throw e.ec2MetadataV1Disabled&&A.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),g&&A.push(`config file profile (${GA})`),C&&A.push(`process environment variable (${Xf})`),new _W(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${A.join(", ")}].`)}}let y=(await Wf(async()=>{let g;try{g=await DW(u)}catch(C){throw C.statusCode===401&&(n=!1),C}return g},i)).trim();return Wf(async()=>{let g;try{g=await MW(y,u)}catch(C){throw C.statusCode===401&&(n=!1),C}return g},i)},"getCredentials");return async()=>{let i=await eO();if(n)return t==null||t.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),a(s,{...i,timeout:o});{let u;try{u=(await qW({...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)"),a(s,{...i,timeout:o})}return a(s,{...i,headers:{[HA]:u},timeout:o})}}},"getInstanceImdsProvider"),qW=qe(async e=>Vr({...e,path:RW,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),DW=qe(async e=>(await Vr({...e,path:tO})).toString(),"getProfile"),MW=qe(async(e,n)=>{let t=JSON.parse((await Vr({...n,path:tO+e})).toString());if(!KA(t))throw new Lt.CredentialsProviderError("Invalid response received from instance metadata service.");return VA(t)},"getCredentialsFromProfile")});var oO=m(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.resolveCredentialSource=void 0;var FW=Vf(),rO=hl(),LW=xe(),jW=(e,n)=>{let t={EcsContainer:rO.fromContainerMetadata,Ec2InstanceMetadata:rO.fromInstanceMetadata,Environment:FW.fromEnv};if(e in t)return t[e]();throw new LW.CredentialsProviderError(`Unsupported credential source in profile ${n}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};_l.resolveCredentialSource=jW});var sO=m(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.resolveAssumeRoleCredentials=Xr.isAssumeRoleProfile=void 0;var Zf=xe(),UW=wt(),zW=oO(),GW=ey(),HW=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&&($W(e)||KW(e));Xr.isAssumeRoleProfile=HW;var $W=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",KW=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",VW=async(e,n,t,r={})=>{let o=n[e];if(!t.roleAssumer)throw new Zf.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 Zf.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,UW.getProfileName)(t)}. Profiles visited: `+Object.keys(r).join(", "),!1);let a=s?(0,GW.resolveProfileData)(s,n,t,{...r,[s]:!0}):(0,zW.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 Zf.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 a;return t.roleAssumer(l,i)};Xr.resolveAssumeRoleCredentials=VW});var iO=m(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.getValidatedProcessCredentials=void 0;var XW=(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 ty=xe(),WW=require("child_process"),YW=require("util"),JW=iO(),QW=async(e,n)=>{let t=n[e];if(n[e]){let r=t.credential_process;if(r!==void 0){let o=(0,YW.promisify)(WW.exec);try{let{stdout:s}=await o(r),a;try{a=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,JW.getValidatedProcessCredentials)(e,a)}catch(s){throw new ty.CredentialsProviderError(s.message)}}else throw new ty.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new ty.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};Sl.resolveProcessCredentials=QW});var dO=m(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.fromProcess=void 0;var cO=wt(),ZW=aO(),e5=(e={})=>async()=>{let n=await(0,cO.parseKnownFiles)(e);return(0,ZW.resolveProcessCredentials)((0,cO.getProfileName)(e),n)};bl.fromProcess=e5});var ry=m(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});var t5=(ne(),J(te));t5.__exportStar(dO(),ny)});var lO=m(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.resolveProcessCredentials=Wr.isProcessProfile=void 0;var n5=ry(),r5=e=>!!e&&typeof e=="object"&&typeof e.credential_process=="string";Wr.isProcessProfile=r5;var o5=async(e,n)=>(0,n5.fromProcess)({...e,profile:n})();Wr.resolveProcessCredentials=o5});var oy=m(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.isSsoProfile=void 0;var s5=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=s5});var uO=m(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.resolveClientEndpointParameters=void 0;var i5=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"});Pl.resolveClientEndpointParameters=i5});var mO=m(($ve,a5)=>{a5.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 fO=m((vl,pO)=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.isCrtAvailable=void 0;var c5=()=>{try{return typeof require=="function"&&typeof pO<"u"&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};vl.isCrtAvailable=c5});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 d5=on(),yO=require("os"),sy=require("process"),l5=fO();jt.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";jt.UA_APP_ID_INI_NAME="sdk-ua-app-id";var u5=({serviceId:e,clientVersion:n})=>{let t=[["aws-sdk-js",n],["ua","2.0"],[`os/${(0,yO.platform)()}`,(0,yO.release)()],["lang/js"],["md/nodejs",`${sy.versions.node}`]],r=(0,l5.isCrtAvailable)();r&&t.push(r),e&&t.push([`api/${e}`,n]),sy.env.AWS_EXECUTION_ENV&&t.push([`exec-env/${sy.env.AWS_EXECUTION_ENV}`]);let o=(0,d5.loadConfig)({environmentVariableSelector:a=>a[jt.UA_APP_ID_ENV_NAME],configFileSelector:a=>a[jt.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let a=await o;s=a?[...t,[`app/${a}`]]:[...t]}return s}};jt.defaultUserAgent=u5});var fa=m((Xve,SO)=>{var wl=Object.defineProperty,m5=Object.getOwnPropertyDescriptor,p5=Object.getOwnPropertyNames,f5=Object.prototype.hasOwnProperty,hO=(e,n)=>wl(e,"name",{value:n,configurable:!0}),y5=(e,n)=>{for(var t in n)wl(e,t,{get:n[t],enumerable:!0})},g5=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of p5(n))!f5.call(e,o)&&o!==t&&wl(e,o,{get:()=>n[o],enumerable:!(r=m5(n,o))||r.enumerable});return e},h5=e=>g5(wl({},"__esModule",{value:!0}),e),_O={};y5(_O,{Hash:()=>S5});SO.exports=h5(_O);var iy=Er(),_5=ct(),C5=require("buffer"),gO=require("crypto"),CO=class{constructor(n,t){this.algorithmIdentifier=n,this.secret=t,this.reset()}update(n,t){this.hash.update((0,_5.toUint8Array)(ay(n,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,gO.createHmac)(this.algorithmIdentifier,ay(this.secret)):(0,gO.createHash)(this.algorithmIdentifier)}};hO(CO,"Hash");var S5=CO;function ay(e,n){return C5.Buffer.isBuffer(e)?e:typeof e=="string"?(0,iy.fromString)(e,n):ArrayBuffer.isView(e)?(0,iy.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,iy.fromArrayBuffer)(e)}hO(ay,"castSourceData")});var ya=m((Wve,PO)=>{var xl=Object.defineProperty,b5=Object.getOwnPropertyDescriptor,E5=Object.getOwnPropertyNames,P5=Object.prototype.hasOwnProperty,v5=(e,n)=>xl(e,"name",{value:n,configurable:!0}),w5=(e,n)=>{for(var t in n)xl(e,t,{get:n[t],enumerable:!0})},x5=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of E5(n))!P5.call(e,o)&&o!==t&&xl(e,o,{get:()=>n[o],enumerable:!(r=b5(n,o))||r.enumerable});return e},k5=e=>x5(xl({},"__esModule",{value:!0}),e),EO={};w5(EO,{calculateBodyLength:()=>A5});PO.exports=k5(EO);var bO=require("fs"),A5=v5(e=>{if(!e)return 0;if(typeof e=="string")return Buffer.byteLength(e);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,bO.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,bO.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)},"calculateBodyLength")});var DO=m(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.ruleSet=void 0;var TO="required",un="fn",mn="argv",Jr="ref",vO="isSet",ln="tree",Yr="error",ga="endpoint",cy="PartitionResult",wO={[TO]:!1,type:"String"},xO={[TO]:!0,default:!1,type:"Boolean"},kO={[Jr]:"Endpoint"},BO={[un]:"booleanEquals",[mn]:[{[Jr]:"UseFIPS"},!0]},qO={[un]:"booleanEquals",[mn]:[{[Jr]:"UseDualStack"},!0]},Ut={},AO={[un]:"booleanEquals",[mn]:[!0,{[un]:"getAttr",[mn]:[{[Jr]:cy},"supportsFIPS"]}]},OO={[un]:"booleanEquals",[mn]:[!0,{[un]:"getAttr",[mn]:[{[Jr]:cy},"supportsDualStack"]}]},NO=[BO],IO=[qO],RO=[{[Jr]:"Region"}],O5={version:"1.0",parameters:{Region:wO,UseDualStack:xO,UseFIPS:xO,Endpoint:wO},rules:[{conditions:[{[un]:vO,[mn]:[kO]}],type:ln,rules:[{conditions:NO,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Yr},{conditions:IO,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Yr},{endpoint:{url:kO,properties:Ut,headers:Ut},type:ga}]},{conditions:[{[un]:vO,[mn]:RO}],type:ln,rules:[{conditions:[{[un]:"aws.partition",[mn]:RO,assign:cy}],type:ln,rules:[{conditions:[BO,qO],type:ln,rules:[{conditions:[AO,OO],type:ln,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ut,headers:Ut},type:ga}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Yr}]},{conditions:NO,type:ln,rules:[{conditions:[AO],type:ln,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Ut,headers:Ut},type:ga}]},{error:"FIPS is enabled but this partition does not support FIPS",type:Yr}]},{conditions:IO,type:ln,rules:[{conditions:[OO],type:ln,rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ut,headers:Ut},type:ga}]},{error:"DualStack is enabled but this partition does not support DualStack",type:Yr}]},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:Ut,headers:Ut},type:ga}]}]},{error:"Invalid Configuration: Missing Region",type:Yr}]};kl.ruleSet=O5});var MO=m(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.defaultEndpointResolver=void 0;var N5=jr(),I5=DO(),R5=(e,n={})=>(0,N5.resolveEndpoint)(I5.ruleSet,{endpointParams:e,logger:n.logger});Al.defaultEndpointResolver=R5});var jO=m(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.getRuntimeConfig=void 0;var T5=b(),B5=mr(),FO=Pr(),LO=ct(),q5=MO(),D5=e=>({apiVersion:"2019-06-10",base64Decoder:(e==null?void 0:e.base64Decoder)??FO.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??FO.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??q5.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new T5.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"SSO",urlParser:(e==null?void 0:e.urlParser)??B5.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??LO.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??LO.toUtf8});Ol.getRuntimeConfig=D5});var _a=m((Zve,KO)=>{var M5=Object.create,ha=Object.defineProperty,F5=Object.getOwnPropertyDescriptor,L5=Object.getOwnPropertyNames,j5=Object.getPrototypeOf,U5=Object.prototype.hasOwnProperty,dy=(e,n)=>ha(e,"name",{value:n,configurable:!0}),z5=(e,n)=>{for(var t in n)ha(e,t,{get:n[t],enumerable:!0})},HO=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of L5(n))!U5.call(e,o)&&o!==t&&ha(e,o,{get:()=>n[o],enumerable:!(r=F5(n,o))||r.enumerable});return e},G5=(e,n,t)=>(t=e!=null?M5(j5(e)):{},HO(n||!e||!e.__esModule?ha(t,"default",{value:e,enumerable:!0}):t,e)),H5=e=>HO(ha({},"__esModule",{value:!0}),e),$O={};z5($O,{resolveDefaultsModeConfig:()=>e9});KO.exports=H5($O);var $5=Mt(),UO=on(),K5=xe(),V5="AWS_EXECUTION_ENV",zO="AWS_REGION",GO="AWS_DEFAULT_REGION",X5="AWS_EC2_METADATA_DISABLED",W5=["in-region","cross-region","mobile","standard","legacy"],Y5="/latest/meta-data/placement/region",J5="AWS_DEFAULTS_MODE",Q5="defaults_mode",Z5={environmentVariableSelector:e=>e[J5],configFileSelector:e=>e[Q5],default:"legacy"},e9=dy(({region:e=(0,UO.loadConfig)($5.NODE_REGION_CONFIG_OPTIONS),defaultsMode:n=(0,UO.loadConfig)(Z5)}={})=>(0,K5.memoize)(async()=>{let t=typeof n=="function"?await n():n;switch(t==null?void 0:t.toLowerCase()){case"auto":return t9(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 ${W5.join(", ")}, got ${t}`)}}),"resolveDefaultsModeConfig"),t9=dy(async e=>{if(e){let n=typeof e=="function"?await e():e,t=await n9();return t?n===t?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),n9=dy(async()=>{if(process.env[V5]&&(process.env[zO]||process.env[GO]))return process.env[zO]??process.env[GO];if(!process.env[X5])try{let{getInstanceMetadataEndpoint:e,httpRequest:n}=await Promise.resolve().then(()=>G5(hl())),t=await e();return(await n({...t,path:Y5})).toString()}catch{}},"inferPhysicalRegion")});var WO=m(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.getRuntimeConfig=void 0;var r9=(ne(),J(te)),o9=r9.__importDefault(mO()),s9=pa(),Nl=Mt(),i9=fa(),VO=sn(),Ca=on(),XO=vr(),a9=ya(),c9=zr(),d9=jO(),l9=b(),u9=_a(),m9=b(),p9=e=>{(0,m9.emitWarningIfUnsupportedVersion)(process.version);let n=(0,u9.resolveDefaultsModeConfig)(e),t=()=>n().then(l9.loadConfigsForDefaultMode),r=(0,d9.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??a9.calculateBodyLength,defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,s9.defaultUserAgent)({serviceId:r.serviceId,clientVersion:o9.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,Ca.loadConfig)(VO.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 XO.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,Ca.loadConfig)({...VO.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||c9.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??i9.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??XO.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=p9});var YO=m(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.resolveAwsRegionExtensionConfiguration=Qr.getAwsRegionExtensionConfiguration=void 0;var f9=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}}};Qr.getAwsRegionExtensionConfiguration=f9;var y9=e=>({region:e.region()});Qr.resolveAwsRegionExtensionConfiguration=y9});var JO=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 ly=m(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.isFipsRegion=void 0;var g9=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));Rl.isFipsRegion=g9});var QO=m(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.getRealRegion=void 0;var h9=ly(),_9=e=>(0,h9.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;Tl.getRealRegion=_9});var eN=m(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.resolveRegionConfig=void 0;var ZO=QO(),C9=ly(),S9=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,ZO.getRealRegion)(n);let r=await n();return(0,ZO.getRealRegion)(r)},useFipsEndpoint:async()=>{let r=typeof n=="string"?n:await n();return(0,C9.isFipsRegion)(r)?!0:typeof t!="function"?Promise.resolve(!!t):t()}}};Bl.resolveRegionConfig=S9});var nN=m(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var tN=(ne(),J(te));tN.__exportStar(JO(),ql);tN.__exportStar(eN(),ql)});var Ml=m(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var rN=(ne(),J(te));rN.__exportStar(YO(),Dl);rN.__exportStar(nN(),Dl)});var aN=m(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.resolveRuntimeExtensions=void 0;var oN=Ml(),sN=Ne(),iN=b(),uy=e=>e,b9=(e,n)=>{let t={...uy((0,oN.getAwsRegionExtensionConfiguration)(e)),...uy((0,iN.getDefaultExtensionConfiguration)(e)),...uy((0,sN.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,oN.resolveAwsRegionExtensionConfiguration)(t),...(0,iN.resolveDefaultRuntimeConfig)(t),...(0,sN.resolveHttpHandlerRuntimeConfig)(t)}};Fl.resolveRuntimeExtensions=b9});var Sa=m(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.SSOClient=Zr.__Client=void 0;var cN=Ii(),E9=Ri(),P9=Ti(),dN=Qi(),v9=Mt(),w9=Zi(),x9=x(),lN=sn(),uN=b();Object.defineProperty(Zr,"__Client",{enumerable:!0,get:function(){return uN.Client}});var k9=uO(),A9=WO(),O9=aN(),my=class extends uN.Client{constructor(...[n]){let t=(0,A9.getRuntimeConfig)(n||{}),r=(0,k9.resolveClientEndpointParameters)(t),o=(0,v9.resolveRegionConfig)(r),s=(0,x9.resolveEndpointConfig)(o),a=(0,lN.resolveRetryConfig)(s),i=(0,cN.resolveHostHeaderConfig)(a),u=(0,dN.resolveUserAgentConfig)(i),l=(0,O9.resolveRuntimeExtensions)(u,(n==null?void 0:n.extensions)||[]);super(l),this.config=l,this.middlewareStack.use((0,lN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,w9.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,cN.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,E9.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,P9.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,dN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Zr.SSOClient=my});var Ll=m(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.SSOServiceException=eo.__ServiceException=void 0;var mN=b();Object.defineProperty(eo,"__ServiceException",{enumerable:!0,get:function(){return mN.ServiceException}});var py=class e extends mN.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};eo.SSOServiceException=py});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 to=b(),jl=Ll(),fy=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=fy;var yy=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=yy;var gy=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=gy;var hy=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=hy;var N9=e=>({...e,...e.accessToken&&{accessToken:to.SENSITIVE_STRING}});we.GetRoleCredentialsRequestFilterSensitiveLog=N9;var I9=e=>({...e,...e.secretAccessKey&&{secretAccessKey:to.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:to.SENSITIVE_STRING}});we.RoleCredentialsFilterSensitiveLog=I9;var R9=e=>({...e,...e.roleCredentials&&{roleCredentials:(0,we.RoleCredentialsFilterSensitiveLog)(e.roleCredentials)}});we.GetRoleCredentialsResponseFilterSensitiveLog=R9;var T9=e=>({...e,...e.accessToken&&{accessToken:to.SENSITIVE_STRING}});we.ListAccountRolesRequestFilterSensitiveLog=T9;var B9=e=>({...e,...e.accessToken&&{accessToken:to.SENSITIVE_STRING}});we.ListAccountsRequestFilterSensitiveLog=B9;var q9=e=>({...e,...e.accessToken&&{accessToken:to.SENSITIVE_STRING}});we.LogoutRequestFilterSensitiveLog=q9});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 Ul=Ne(),Q=b(),zl=fr(),D9=Ll(),M9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,Q.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,u=(0,Q.map)({role_name:[,(0,Q.expectNonNull)(e.roleName,"roleName")],account_id:[,(0,Q.expectNonNull)(e.accountId,"accountId")]}),l;return new Ul.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:a,path:i,query:u,body:l})};ze.se_GetRoleCredentialsCommand=M9;var F9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,Q.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,u=(0,Q.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,(0,Q.expectNonNull)(e.accountId,"accountId")]}),l;return new Ul.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:a,path:i,query:u,body:l})};ze.se_ListAccountRolesCommand=F9;var L9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,Q.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,u=(0,Q.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]}),l;return new Ul.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:a,path:i,query:u,body:l})};ze.se_ListAccountsCommand=L9;var j9=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,Q.map)({},Vl,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,u;return new Ul.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:a,path:i,body:u})};ze.se_LogoutCommand=j9;var U9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return z9(e,n);let t=(0,Q.map)({$metadata:$n(e)}),r=(0,Q.expectNonNull)((0,Q.expectObject)(await Xl(e.body,n)),"body"),o=(0,Q.take)(r,{roleCredentials:Q._json});return Object.assign(t,o),t};ze.de_GetRoleCredentialsCommand=U9;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 _y(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})}},G9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return H9(e,n);let t=(0,Q.map)({$metadata:$n(e)}),r=(0,Q.expectNonNull)((0,Q.expectObject)(await Xl(e.body,n)),"body"),o=(0,Q.take)(r,{nextToken:Q.expectString,roleList:Q._json});return Object.assign(t,o),t};ze.de_ListAccountRolesCommand=G9;var H9=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 _y(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})}},$9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return K9(e,n);let t=(0,Q.map)({$metadata:$n(e)}),r=(0,Q.expectNonNull)((0,Q.expectObject)(await Xl(e.body,n)),"body"),o=(0,Q.take)(r,{accountList:Q._json,nextToken:Q.expectString});return Object.assign(t,o),t};ze.de_ListAccountsCommand=$9;var K9=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 _y(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})}},V9=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return X9(e,n);let t=(0,Q.map)({$metadata:$n(e)});return await(0,Q.collectBody)(e.body,n),t};ze.de_LogoutCommand=V9;var X9=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,Q.withBaseException)(D9.SSOServiceException),Hl=async(e,n)=>{let t=(0,Q.map)({}),r=e.body,o=(0,Q.take)(r,{message:Q.expectString});Object.assign(t,o);let s=new zl.InvalidRequestException({$metadata:$n(e),...t});return(0,Q.decorateServiceException)(s,e.body)},_y=async(e,n)=>{let t=(0,Q.map)({}),r=e.body,o=(0,Q.take)(r,{message:Q.expectString});Object.assign(t,o);let s=new zl.ResourceNotFoundException({$metadata:$n(e),...t});return(0,Q.decorateServiceException)(s,e.body)},$l=async(e,n)=>{let t=(0,Q.map)({}),r=e.body,o=(0,Q.take)(r,{message:Q.expectString});Object.assign(t,o);let s=new zl.TooManyRequestsException({$metadata:$n(e),...t});return(0,Q.decorateServiceException)(s,e.body)},Kl=async(e,n)=>{let t=(0,Q.map)({}),r=e.body,o=(0,Q.take)(r,{message:Q.expectString});Object.assign(t,o);let s=new zl.UnauthorizedException({$metadata:$n(e),...t});return(0,Q.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"]}),W9=(e,n)=>(0,Q.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)=>W9(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,a)=>Object.keys(s).find(i=>i.toLowerCase()===a.toLowerCase()),r=s=>{let a=s;return typeof a=="number"&&(a=a.toString()),a.indexOf(",")>=0&&(a=a.split(",")[0]),a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},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 Sy=m(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.GetRoleCredentialsCommand=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(),pN=fr(),fN=ba(),Cy=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:"GetRoleCredentialsCommand",inputFilterSensitiveLog:pN.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:pN.GetRoleCredentialsResponseFilterSensitiveLog,[Q9.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"GetRoleCredentials"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,fN.se_GetRoleCredentialsCommand)(n,t)}deserialize(n,t){return(0,fN.de_GetRoleCredentialsCommand)(n,t)}};no.GetRoleCredentialsCommand=Cy});var Jl=m(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.ListAccountRolesCommand=ro.$Command=void 0;var Z9=x(),eY=k(),hN=b();Object.defineProperty(ro,"$Command",{enumerable:!0,get:function(){return hN.Command}});var tY=w(),nY=fr(),gN=ba(),by=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,eY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Z9.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:nY.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[tY.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccountRoles"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,gN.se_ListAccountRolesCommand)(n,t)}deserialize(n,t){return(0,gN.de_ListAccountRolesCommand)(n,t)}};ro.ListAccountRolesCommand=by});var Ql=m(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.ListAccountsCommand=oo.$Command=void 0;var rY=x(),oY=k(),CN=b();Object.defineProperty(oo,"$Command",{enumerable:!0,get:function(){return CN.Command}});var sY=w(),iY=fr(),_N=ba(),Ey=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,oY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,rY.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:iY.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[sY.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccounts"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,_N.se_ListAccountsCommand)(n,t)}deserialize(n,t){return(0,_N.de_ListAccountsCommand)(n,t)}};oo.ListAccountsCommand=Ey});var vy=m(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.LogoutCommand=so.$Command=void 0;var aY=x(),cY=k(),bN=b();Object.defineProperty(so,"$Command",{enumerable:!0,get:function(){return bN.Command}});var dY=w(),lY=fr(),SN=ba(),Py=class e extends bN.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,cY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,aY.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:lY.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[dY.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"Logout"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,SN.se_LogoutCommand)(n,t)}deserialize(n,t){return(0,SN.de_LogoutCommand)(n,t)}};so.LogoutCommand=Py});var EN=m(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.SSO=void 0;var uY=b(),mY=Sy(),pY=Jl(),fY=Ql(),yY=vy(),gY=Sa(),hY={GetRoleCredentialsCommand:mY.GetRoleCredentialsCommand,ListAccountRolesCommand:pY.ListAccountRolesCommand,ListAccountsCommand:fY.ListAccountsCommand,LogoutCommand:yY.LogoutCommand},Zl=class extends gY.SSOClient{};eu.SSO=Zl;(0,uY.createAggregatedClient)(hY,Zl)});var PN=m(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});var tu=(ne(),J(te));tu.__exportStar(Sy(),io);tu.__exportStar(Jl(),io);tu.__exportStar(Ql(),io);tu.__exportStar(vy(),io)});var wN=m(vN=>{"use strict";Object.defineProperty(vN,"__esModule",{value:!0})});var xN=m(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.paginateListAccountRoles=void 0;var _Y=Jl(),CY=Sa(),SY=async(e,n,...t)=>await e.send(new _Y.ListAccountRolesCommand(n),...t);async function*bY(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 CY.SSOClient)s=await SY(e.client,n,...t);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let a=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==a))}return void 0}nu.paginateListAccountRoles=bY});var kN=m(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.paginateListAccounts=void 0;var EY=Ql(),PY=Sa(),vY=async(e,n,...t)=>await e.send(new EY.ListAccountsCommand(n),...t);async function*wY(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 PY.SSOClient)s=await vY(e.client,n,...t);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let a=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==a))}return void 0}ru.paginateListAccounts=wY});var AN=m(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var wy=(ne(),J(te));wy.__exportStar(wN(),Ea);wy.__exportStar(xN(),Ea);wy.__exportStar(kN(),Ea)});var ON=m(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var xY=(ne(),J(te));xY.__exportStar(fr(),xy)});var NN=m(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.SSOServiceException=void 0;var Pa=(ne(),J(te));Pa.__exportStar(Sa(),pn);Pa.__exportStar(EN(),pn);Pa.__exportStar(PN(),pn);Pa.__exportStar(AN(),pn);Pa.__exportStar(ON(),pn);var kY=Ll();Object.defineProperty(pn,"SSOServiceException",{enumerable:!0,get:function(){return kY.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 IN=Ii(),AY=Ri(),OY=Ti(),RN=Qi(),NY=Mt(),IY=Zi(),RY=x(),TN=sn(),TY=b(),BY=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"}},qY={version:"3.387.0"},DY=pa(),ou=Mt(),MY=fa(),BN=sn(),va=on(),qN=vr(),FY=ya(),LY=zr(),jY=b(),UY=mr(),DN=Pr(),MN=ct(),zY=jr(),$N="required",fn="fn",yn="argv",ao="ref",ky="PartitionResult",zt="tree",wa="error",xa="endpoint",FN={[$N]:!1,type:"String"},LN={[$N]:!0,default:!1,type:"Boolean"},KN={[ao]:"Endpoint"},VN={[fn]:"booleanEquals",[yn]:[{[ao]:"UseFIPS"},!0]},XN={[fn]:"booleanEquals",[yn]:[{[ao]:"UseDualStack"},!0]},Gt={},jN={[fn]:"booleanEquals",[yn]:[!0,{[fn]:"getAttr",[yn]:[{[ao]:ky},"supportsFIPS"]}]},UN={[fn]:"booleanEquals",[yn]:[!0,{[fn]:"getAttr",[yn]:[{[ao]:ky},"supportsDualStack"]}]},zN=[KN],GN=[VN],HN=[XN],GY={version:"1.0",parameters:{Region:FN,UseDualStack:LN,UseFIPS:LN,Endpoint:FN},rules:[{conditions:[{[fn]:"aws.partition",[yn]:[{[ao]:"Region"}],assign:ky}],type:zt,rules:[{conditions:[{[fn]:"isSet",[yn]:zN},{[fn]:"parseURL",[yn]:zN,assign:"url"}],type:zt,rules:[{conditions:GN,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:wa},{type:zt,rules:[{conditions:HN,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:wa},{endpoint:{url:KN,properties:Gt,headers:Gt},type:xa}]}]},{conditions:[VN,XN],type:zt,rules:[{conditions:[jN,UN],type:zt,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:GN,type:zt,rules:[{conditions:[jN],type:zt,rules:[{type:zt,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:HN,type:zt,rules:[{conditions:[UN],type:zt,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}]}]},HY=GY,$Y=(e,n={})=>(0,zY.resolveEndpoint)(HY,{endpointParams:e,logger:n.logger}),KY=e=>{var n,t,r,o,s,a,i,u,l;return{apiVersion:"2019-06-10",base64Decoder:(n=e==null?void 0:e.base64Decoder)!==null&&n!==void 0?n:DN.fromBase64,base64Encoder:(t=e==null?void 0:e.base64Encoder)!==null&&t!==void 0?t:DN.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:$Y,logger:(s=e==null?void 0:e.logger)!==null&&s!==void 0?s:new jY.NoOpLogger,serviceId:(a=e==null?void 0:e.serviceId)!==null&&a!==void 0?a:"SSO OIDC",urlParser:(i=e==null?void 0:e.urlParser)!==null&&i!==void 0?i:UY.parseUrl,utf8Decoder:(u=e==null?void 0:e.utf8Decoder)!==null&&u!==void 0?u:MN.fromUtf8,utf8Encoder:(l=e==null?void 0:e.utf8Encoder)!==null&&l!==void 0?l:MN.toUtf8}},VY=b(),XY=_a(),WY=b(),YY=e=>{var n,t,r,o,s,a,i,u,l,c;(0,WY.emitWarningIfUnsupportedVersion)(process.version);let y=(0,XY.resolveDefaultsModeConfig)(e),g=()=>y().then(VY.loadConfigsForDefaultMode),C=KY(e);return{...C,...e,runtime:"node",defaultsMode:y,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:FY.calculateBodyLength,defaultUserAgentProvider:(t=e==null?void 0:e.defaultUserAgentProvider)!==null&&t!==void 0?t:(0,DY.defaultUserAgent)({serviceId:C.serviceId,clientVersion:qY.version}),maxAttempts:(r=e==null?void 0:e.maxAttempts)!==null&&r!==void 0?r:(0,va.loadConfig)(BN.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 qN.NodeHttpHandler(g),retryMode:(a=e==null?void 0:e.retryMode)!==null&&a!==void 0?a:(0,va.loadConfig)({...BN.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await g()).retryMode||LY.DEFAULT_RETRY_MODE}),sha256:(i=e==null?void 0:e.sha256)!==null&&i!==void 0?i:MY.Hash.bind(null,"sha256"),streamCollector:(u=e==null?void 0:e.streamCollector)!==null&&u!==void 0?u:qN.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:(c=e==null?void 0:e.useFipsEndpoint)!==null&&c!==void 0?c:(0,va.loadConfig)(ou.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}},WN=class extends TY.Client{constructor(...[e]){let n=YY(e||{}),t=BY(n),r=(0,NY.resolveRegionConfig)(t),o=(0,RY.resolveEndpointConfig)(r),s=(0,TN.resolveRetryConfig)(o),a=(0,IN.resolveHostHeaderConfig)(s),i=(0,RN.resolveUserAgentConfig)(a);super(i),this.config=i,this.middlewareStack.use((0,TN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,IY.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,IN.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,AY.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,OY.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,RN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};he.SSOOIDCClient=WN;var JY=b(),QY=x(),ZY=k(),e7=b(),Ay=Ne(),R=b(),t7=b(),ut=class YN extends t7.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,YN.prototype)}},JN=class QN extends ut{constructor(n){super({name:"AccessDeniedException",$fault:"client",...n}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,QN.prototype),this.error=n.error,this.error_description=n.error_description}};he.AccessDeniedException=JN;var ZN=class eI extends ut{constructor(n){super({name:"AuthorizationPendingException",$fault:"client",...n}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,eI.prototype),this.error=n.error,this.error_description=n.error_description}};he.AuthorizationPendingException=ZN;var tI=class nI extends ut{constructor(n){super({name:"ExpiredTokenException",$fault:"client",...n}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,nI.prototype),this.error=n.error,this.error_description=n.error_description}};he.ExpiredTokenException=tI;var rI=class oI extends ut{constructor(n){super({name:"InternalServerException",$fault:"server",...n}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,oI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InternalServerException=rI;var sI=class iI extends ut{constructor(n){super({name:"InvalidClientException",$fault:"client",...n}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,iI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InvalidClientException=sI;var n7=class aI extends ut{constructor(n){super({name:"InvalidGrantException",$fault:"client",...n}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,aI.prototype),this.error=n.error,this.error_description=n.error_description}},cI=class dI extends ut{constructor(n){super({name:"InvalidRequestException",$fault:"client",...n}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,dI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InvalidRequestException=cI;var lI=class uI extends ut{constructor(n){super({name:"InvalidScopeException",$fault:"client",...n}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,uI.prototype),this.error=n.error,this.error_description=n.error_description}};he.InvalidScopeException=lI;var mI=class pI extends ut{constructor(n){super({name:"SlowDownException",$fault:"client",...n}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,pI.prototype),this.error=n.error,this.error_description=n.error_description}};he.SlowDownException=mI;var fI=class yI extends ut{constructor(n){super({name:"UnauthorizedClientException",$fault:"client",...n}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,yI.prototype),this.error=n.error,this.error_description=n.error_description}};he.UnauthorizedClientException=fI;var gI=class hI extends ut{constructor(n){super({name:"UnsupportedGrantTypeException",$fault:"client",...n}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,hI.prototype),this.error=n.error,this.error_description=n.error_description}};he.UnsupportedGrantTypeException=gI;var r7=class _I extends ut{constructor(n){super({name:"InvalidClientMetadataException",$fault:"client",...n}),this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,_I.prototype),this.error=n.error,this.error_description=n.error_description}},o7=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a={"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 Ay.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:a,path:i,body:u})},s7=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a={"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 Ay.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:a,path:i,body:u})},i7=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a={"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 Ay.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:a,path:i,body:u})},a7=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return c7(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},c7=async(e,n)=>{let t={...e,body:await Ry(e.body,n)},r=Ty(e,t.body);switch(r){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await p7(t,n);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await f7(t,n);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await y7(t,n);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Ny(t,n);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await CI(t,n);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await h7(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Iy(t,n);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await SI(t,n);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await bI(t,n);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await EI(t,n);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await _7(t,n);default:let o=t.body;return Oy({output:e,parsedBody:o,errorCode:r})}},d7=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return l7(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},l7=async(e,n)=>{let t={...e,body:await Ry(e.body,n)},r=Ty(e,t.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Ny(t,n);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await g7(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Iy(t,n);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await SI(t,n);default:let o=t.body;return Oy({output:e,parsedBody:o,errorCode:r})}},u7=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return m7(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},m7=async(e,n)=>{let t={...e,body:await Ry(e.body,n)},r=Ty(e,t.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Ny(t,n);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await CI(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Iy(t,n);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await bI(t,n);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await EI(t,n);default:let o=t.body;return Oy({output:e,parsedBody:o,errorCode:r})}},Oy=(0,R.withBaseException)(ut),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 JN({$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 ZN({$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 tI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},Ny=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)},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 sI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},g7=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 r7({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},h7=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 n7({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},Iy=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)},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 lI({$metadata:rt(e),...t});return(0,R.decorateServiceException)(s,e.body)},bI=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)},EI=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)},_7=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 gI({$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"]}},C7=(e,n)=>(0,R.collectBody)(e,n).then(t=>n.utf8Encoder(t)),su=(e,n)=>C7(e,n).then(t=>t.length?JSON.parse(t):{}),Ry=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},Ty=(e,n)=>{let t=(s,a)=>Object.keys(s).find(i=>i.toLowerCase()===a.toLowerCase()),r=s=>{let a=s;return typeof a=="number"&&(a=a.toString()),a.indexOf(",")>=0&&(a=a.split(",")[0]),a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},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)},PI=class vI extends e7.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,ZY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,QY.getEndpointPlugin)(t,vI.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"CreateTokenCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return o7(n,t)}deserialize(n,t){return a7(n,t)}};he.CreateTokenCommand=PI;var S7=x(),b7=k(),E7=b(),P7=class wI extends E7.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,b7.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,S7.getEndpointPlugin)(t,wI.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"RegisterClientCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return s7(n,t)}deserialize(n,t){return d7(n,t)}},v7=x(),w7=k(),x7=b(),k7=class xI extends x7.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,w7.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,v7.getEndpointPlugin)(t,xI.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"StartDeviceAuthorizationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return i7(n,t)}deserialize(n,t){return u7(n,t)}},A7={CreateTokenCommand:PI,RegisterClientCommand:P7,StartDeviceAuthorizationCommand:k7},O7=class extends WN{};(0,JY.createAggregatedClient)(A7,O7)});var au=m(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.REFRESH_MESSAGE=co.EXPIRE_WINDOW_MS=void 0;co.EXPIRE_WINDOW_MS=5*60*1e3;co.REFRESH_MESSAGE="To refresh this SSO session run 'aws sso login' with the corresponding profile."});var kI=m(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.getSsoOidcClient=void 0;var N7=iu(),By={},I7=e=>{if(By[e])return By[e];let n=new N7.SSOOIDCClient({region:e});return By[e]=n,n};cu.getSsoOidcClient=I7});var AI=m(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.getNewSsoOidcToken=void 0;var R7=iu(),T7=kI(),B7=(e,n)=>(0,T7.getSsoOidcClient)(n).send(new R7.CreateTokenCommand({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}));du.getNewSsoOidcToken=B7});var OI=m(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.validateTokenExpiry=void 0;var q7=xe(),D7=au(),M7=e=>{if(e.expiration&&e.expiration.getTime(){"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.validateTokenKey=void 0;var F7=xe(),L7=au(),j7=(e,n,t=!1)=>{if(typeof n>"u")throw new F7.TokenProviderError(`Value not present for '${e}' in SSO Token${t?". Cannot refresh":""}. ${L7.REFRESH_MESSAGE}`,!1)};uu.validateTokenKey=j7});var II=m(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.writeSSOTokenToFile=void 0;var U7=wt(),z7=require("fs"),{writeFile:G7}=z7.promises,H7=(e,n)=>{let t=(0,U7.getSSOTokenFilepath)(e),r=JSON.stringify(n,null,2);return G7(t,r)};mu.writeSSOTokenToFile=H7});var qy=m(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.fromSso=void 0;var ka=xe(),pu=wt(),RI=au(),$7=AI(),TI=OI(),yr=NI(),K7=II(),BI=new Date(0),V7=(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,a=(await(0,pu.loadSsoSessionData)(e))[o];if(!a)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(!a[C])throw new ka.TokenProviderError(`Sso session '${o}' is missing required property '${C}'.`,!1);let i=a.sso_start_url,u=a.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. ${RI.REFRESH_MESSAGE}`,!1)}(0,yr.validateTokenKey)("accessToken",l.accessToken),(0,yr.validateTokenKey)("expiresAt",l.expiresAt);let{accessToken:c,expiresAt:y}=l,g={token:c,expiration:new Date(y)};if(g.expiration.getTime()-Date.now()>RI.EXPIRE_WINDOW_MS)return g;if(Date.now()-BI.getTime()<30*1e3)return(0,TI.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{BI.setTime(Date.now());let C=await(0,$7.getNewSsoOidcToken)(l,u);(0,yr.validateTokenKey)("accessToken",C.accessToken),(0,yr.validateTokenKey)("expiresIn",C.expiresIn);let P=new Date(Date.now()+C.expiresIn*1e3);try{await(0,K7.writeSSOTokenToFile)(o,{...l,accessToken:C.accessToken,expiresAt:P.toISOString(),refreshToken:C.refreshToken})}catch{}return{token:C.accessToken,expiration:P}}catch{return(0,TI.validateTokenExpiry)(g),g}};fu.fromSso=V7});var qI=m(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.fromStatic=void 0;var X7=xe(),W7=({token:e})=>async()=>{if(!e||!e.token)throw new X7.TokenProviderError("Please pass a valid token to fromStatic",!1);return e};yu.fromStatic=W7});var DI=m(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.nodeProvider=void 0;var Dy=xe(),Y7=qy(),J7=(e={})=>(0,Dy.memoize)((0,Dy.chain)((0,Y7.fromSso)(e),async()=>{throw new Dy.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=J7});var MI=m(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});var hu=(ne(),J(te));hu.__exportStar(iu(),lo);hu.__exportStar(qy(),lo);hu.__exportStar(qI(),lo);hu.__exportStar(DI(),lo)});var LI=m(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.resolveSSOCredentials=void 0;var FI=NN(),Q7=MI(),Aa=xe(),Z7=wt(),Oa=!1,eJ=async({ssoStartUrl:e,ssoSession:n,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:a})=>{let i,u="To refresh this SSO session run aws sso login with the corresponding profile.";if(n)try{let v=await(0,Q7.fromSso)({profile:a})();i={accessToken:v.token,expiresAt:new Date(v.expiration).toISOString()}}catch(v){throw new Aa.CredentialsProviderError(v.message,Oa)}else try{i=await(0,Z7.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,c=s||new FI.SSOClient({region:r}),y;try{y=await c.send(new FI.GetRoleCredentialsCommand({accountId:t,roleName:o,accessToken:l}))}catch(v){throw Aa.CredentialsProviderError.from(v,Oa)}let{roleCredentials:{accessKeyId:g,secretAccessKey:C,sessionToken:P,expiration:A}={}}=y;if(!g||!C||!P||!A)throw new Aa.CredentialsProviderError("SSO returns an invalid temporary credential.",Oa);return{accessKeyId:g,secretAccessKey:C,sessionToken:P,expiration:new Date(A)}};_u.resolveSSOCredentials=eJ});var My=m(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.validateSsoProfile=void 0;var tJ=xe(),nJ=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 tJ.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=nJ});var UI=m(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.fromSSO=void 0;var Na=xe(),Fy=wt(),rJ=oy(),jI=LI(),oJ=My(),sJ=(e={})=>async()=>{let{ssoStartUrl:n,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,ssoSession:a}=e,i=(0,Fy.getProfileName)(e);if(!n&&!t&&!r&&!o&&!a){let l=(await(0,Fy.parseKnownFiles)(e))[i];if(!l)throw new Na.CredentialsProviderError(`Profile ${i} was not found.`);if(!(0,rJ.isSsoProfile)(l))throw new Na.CredentialsProviderError(`Profile ${i} is not configured with SSO credentials.`);if(l!=null&&l.sso_session){let v=(await(0,Fy.loadSsoSessionData)(e))[l.sso_session],G=` configurations in profile ${i} and sso-session ${l.sso_session}`;if(r&&r!==v.sso_region)throw new Na.CredentialsProviderError("Conflicting SSO region"+G,!1);if(n&&n!==v.sso_start_url)throw new Na.CredentialsProviderError("Conflicting SSO start_url"+G,!1);l.sso_region=v.sso_region,l.sso_start_url=v.sso_start_url}let{sso_start_url:c,sso_account_id:y,sso_region:g,sso_role_name:C,sso_session:P}=(0,oJ.validateSsoProfile)(l);return(0,jI.resolveSSOCredentials)({ssoStartUrl:c,ssoSession:P,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,jI.resolveSSOCredentials)({ssoStartUrl:n,ssoSession:a,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:i})}};Su.fromSSO=sJ});var GI=m(zI=>{"use strict";Object.defineProperty(zI,"__esModule",{value:!0})});var Eu=m(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});var bu=(ne(),J(te));bu.__exportStar(UI(),uo);bu.__exportStar(oy(),uo);bu.__exportStar(GI(),uo);bu.__exportStar(My(),uo)});var $I=m(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.resolveSsoCredentials=mo.isSsoProfile=void 0;var HI=Eu(),iJ=Eu();Object.defineProperty(mo,"isSsoProfile",{enumerable:!0,get:function(){return iJ.isSsoProfile}});var aJ=e=>{let{sso_start_url:n,sso_account_id:t,sso_session:r,sso_region:o,sso_role_name:s}=(0,HI.validateSsoProfile)(e);return(0,HI.fromSSO)({ssoStartUrl:n,ssoAccountId:t,ssoSession:r,ssoRegion:o,ssoRoleName:s})()};mo.resolveSsoCredentials=aJ});var KI=m(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.resolveStaticCredentials=po.isStaticCredsProfile=void 0;var cJ=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;po.isStaticCredsProfile=cJ;var dJ=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});po.resolveStaticCredentials=dJ});var Ly=m(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.fromWebToken=void 0;var lJ=xe(),uJ=e=>()=>{let{roleArn:n,roleSessionName:t,webIdentityToken:r,providerId:o,policyArns:s,policy:a,durationSeconds:i,roleAssumerWithWebIdentity:u}=e;if(!u)throw new lJ.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:a,DurationSeconds:i})};Pu.fromWebToken=uJ});var VI=m(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.fromTokenFile=void 0;var mJ=xe(),pJ=require("fs"),fJ=Ly(),yJ="AWS_WEB_IDENTITY_TOKEN_FILE",gJ="AWS_ROLE_ARN",hJ="AWS_ROLE_SESSION_NAME",_J=(e={})=>async()=>{var n,t,r;let o=(n=e==null?void 0:e.webIdentityTokenFile)!==null&&n!==void 0?n:process.env[yJ],s=(t=e==null?void 0:e.roleArn)!==null&&t!==void 0?t:process.env[gJ],a=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[hJ];if(!o||!s)throw new mJ.CredentialsProviderError("Web identity configuration not specified");return(0,fJ.fromWebToken)({...e,webIdentityToken:(0,pJ.readFileSync)(o,{encoding:"ascii"}),roleArn:s,roleSessionName:a})()};vu.fromTokenFile=_J});var jy=m(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var XI=(ne(),J(te));XI.__exportStar(VI(),wu);XI.__exportStar(Ly(),wu)});var WI=m(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.resolveWebIdentityCredentials=fo.isWebIdentityProfile=void 0;var CJ=jy(),SJ=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;fo.isWebIdentityProfile=SJ;var bJ=async(e,n)=>(0,CJ.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity})();fo.resolveWebIdentityCredentials=bJ});var ey=m(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.resolveProfileData=void 0;var EJ=xe(),YI=sO(),JI=lO(),QI=$I(),xu=KI(),ZI=WI(),PJ=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,YI.isAssumeRoleProfile)(o))return(0,YI.resolveAssumeRoleCredentials)(e,n,t,r);if((0,xu.isStaticCredsProfile)(o))return(0,xu.resolveStaticCredentials)(o);if((0,ZI.isWebIdentityProfile)(o))return(0,ZI.resolveWebIdentityCredentials)(o,t);if((0,JI.isProcessProfile)(o))return(0,JI.resolveProcessCredentials)(t,e);if((0,QI.isSsoProfile)(o))return(0,QI.resolveSsoCredentials)(o);throw new EJ.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};ku.resolveProfileData=PJ});var tR=m(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.fromIni=void 0;var eR=wt(),vJ=ey(),wJ=(e={})=>async()=>{let n=await(0,eR.parseKnownFiles)(e);return(0,vJ.resolveProfileData)((0,eR.getProfileName)(e),n,e)};Au.fromIni=wJ});var nR=m(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});var xJ=(ne(),J(te));xJ.__exportStar(tR(),Uy)});var rR=m(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.remoteProvider=gr.ENV_IMDS_DISABLED=void 0;var Ou=hl(),kJ=xe();gr.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var AJ=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 kJ.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,Ou.fromInstanceMetadata)(e);gr.remoteProvider=AJ});var oR=m(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.defaultProvider=void 0;var OJ=Vf(),NJ=nR(),IJ=ry(),RJ=Eu(),TJ=jy(),zy=xe(),BJ=wt(),qJ=rR(),DJ=(e={})=>(0,zy.memoize)((0,zy.chain)(...e.profile||process.env[BJ.ENV_PROFILE]?[]:[(0,OJ.fromEnv)()],(0,RJ.fromSSO)(e),(0,NJ.fromIni)(e),(0,IJ.fromProcess)(e),(0,TJ.fromTokenFile)(e),(0,qJ.remoteProvider)(e),async()=>{throw new zy.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=DJ});var Hy=m(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});var MJ=(ne(),J(te));MJ.__exportStar(oR(),Gy)});var xR=m(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.ruleSet=void 0;var gR="required",se="type",fe="fn",ye="argv",Kn="ref",sR=!1,FJ=!0,hr="booleanEquals",Ht="tree",Xe="stringEquals",hR="sigv4",_R="sts",CR="us-east-1",Ee="endpoint",iR="https://sts.{Region}.{PartitionResult#dnsSuffix}",yo="error",Ky="getAttr",aR={[gR]:!1,[se]:"String"},$y={[gR]:!0,default:!1,[se]:"Boolean"},SR={[Kn]:"Endpoint"},cR={[fe]:"isSet",[ye]:[{[Kn]:"Region"}]},We={[Kn]:"Region"},dR={[fe]:"aws.partition",[ye]:[We],assign:"PartitionResult"},bR={[Kn]:"UseFIPS"},ER={[Kn]:"UseDualStack"},tt={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:hR,signingName:_R,signingRegion:CR}]},headers:{}},mt={},lR={conditions:[{[fe]:Xe,[ye]:[We,"aws-global"]}],[Ee]:tt,[se]:Ee},PR={[fe]:hr,[ye]:[bR,!0]},vR={[fe]:hr,[ye]:[ER,!0]},uR={[fe]:hr,[ye]:[!0,{[fe]:Ky,[ye]:[{[Kn]:"PartitionResult"},"supportsFIPS"]}]},wR={[Kn]:"PartitionResult"},mR={[fe]:hr,[ye]:[!0,{[fe]:Ky,[ye]:[wR,"supportsDualStack"]}]},pR=[{[fe]:"isSet",[ye]:[SR]}],fR=[PR],yR=[vR],LJ={version:"1.0",parameters:{Region:aR,UseDualStack:$y,UseFIPS:$y,Endpoint:aR,UseGlobalEndpoint:$y},rules:[{conditions:[{[fe]:hr,[ye]:[{[Kn]:"UseGlobalEndpoint"},FJ]},{[fe]:"not",[ye]:pR},cR,dR,{[fe]:hr,[ye]:[bR,sR]},{[fe]:hr,[ye]:[ER,sR]}],[se]:Ht,rules:[{conditions:[{[fe]:Xe,[ye]:[We,"ap-northeast-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"ap-south-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"ap-southeast-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"ap-southeast-2"]}],endpoint:tt,[se]:Ee},lR,{conditions:[{[fe]:Xe,[ye]:[We,"ca-central-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"eu-central-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"eu-north-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"eu-west-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"eu-west-2"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"eu-west-3"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"sa-east-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,CR]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"us-east-2"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"us-west-1"]}],endpoint:tt,[se]:Ee},{conditions:[{[fe]:Xe,[ye]:[We,"us-west-2"]}],endpoint:tt,[se]:Ee},{endpoint:{url:iR,properties:{authSchemes:[{name:hR,signingName:_R,signingRegion:"{Region}"}]},headers:mt},[se]:Ee}]},{conditions:pR,[se]:Ht,rules:[{conditions:fR,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[se]:yo},{conditions:yR,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[se]:yo},{endpoint:{url:SR,properties:mt,headers:mt},[se]:Ee}]},{conditions:[cR],[se]:Ht,rules:[{conditions:[dR],[se]:Ht,rules:[{conditions:[PR,vR],[se]:Ht,rules:[{conditions:[uR,mR],[se]:Ht,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:mt,headers:mt},[se]:Ee}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[se]:yo}]},{conditions:fR,[se]:Ht,rules:[{conditions:[uR],[se]:Ht,rules:[{conditions:[{[fe]:Xe,[ye]:["aws-us-gov",{[fe]:Ky,[ye]:[wR,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:mt,headers:mt},[se]:Ee},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:mt,headers:mt},[se]:Ee}]},{error:"FIPS is enabled but this partition does not support FIPS",[se]:yo}]},{conditions:yR,[se]:Ht,rules:[{conditions:[mR],[se]:Ht,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:mt,headers:mt},[se]:Ee}]},{error:"DualStack is enabled but this partition does not support DualStack",[se]:yo}]},lR,{endpoint:{url:iR,properties:mt,headers:mt},[se]:Ee}]}]},{error:"Invalid Configuration: Missing Region",[se]:yo}]};Iu.ruleSet=LJ});var kR=m(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.defaultEndpointResolver=void 0;var jJ=jr(),UJ=xR(),zJ=(e,n={})=>(0,jJ.resolveEndpoint)(UJ.ruleSet,{endpointParams:e,logger:n.logger});Ru.defaultEndpointResolver=zJ});var NR=m(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.getRuntimeConfig=void 0;var GJ=b(),HJ=mr(),AR=Pr(),OR=ct(),$J=kR(),KJ=e=>({apiVersion:"2011-06-15",base64Decoder:(e==null?void 0:e.base64Decoder)??AR.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??AR.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??$J.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new GJ.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"STS",urlParser:(e==null?void 0:e.urlParser)??HJ.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??OR.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??OR.toUtf8});Tu.getRuntimeConfig=KJ});var TR=m(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.getRuntimeConfig=void 0;var VJ=(ne(),J(te)),XJ=VJ.__importDefault(Zk()),WJ=$f(),YJ=Hy(),JJ=pa(),Bu=Mt(),QJ=fa(),IR=sn(),Ia=on(),RR=vr(),ZJ=ya(),eQ=zr(),tQ=NR(),nQ=b(),rQ=_a(),oQ=b(),sQ=e=>{(0,oQ.emitWarningIfUnsupportedVersion)(process.version);let n=(0,rQ.resolveDefaultsModeConfig)(e),t=()=>n().then(nQ.loadConfigsForDefaultMode),r=(0,tQ.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??ZJ.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,WJ.decorateDefaultCredentialProvider)(YJ.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,JJ.defaultUserAgent)({serviceId:r.serviceId,clientVersion:XJ.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,Ia.loadConfig)(IR.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 RR.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,Ia.loadConfig)({...IR.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||eQ.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??QJ.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??RR.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=sQ});var MR=m(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.resolveRuntimeExtensions=void 0;var BR=Ml(),qR=Ne(),DR=b(),Vy=e=>e,iQ=(e,n)=>{let t={...Vy((0,BR.getAwsRegionExtensionConfiguration)(e)),...Vy((0,DR.getDefaultExtensionConfiguration)(e)),...Vy((0,qR.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,BR.resolveAwsRegionExtensionConfiguration)(t),...(0,DR.resolveDefaultRuntimeConfig)(t),...(0,qR.resolveHttpHandlerRuntimeConfig)(t)}};Du.resolveRuntimeExtensions=iQ});var Mu=m(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.STSClient=go.__Client=void 0;var FR=Ii(),aQ=Ri(),cQ=Ti(),dQ=Jk(),LR=Qi(),lQ=Mt(),uQ=Zi(),mQ=x(),jR=sn(),UR=b();Object.defineProperty(go,"__Client",{enumerable:!0,get:function(){return UR.Client}});var pQ=Qk(),fQ=TR(),yQ=MR(),Xy=class e extends UR.Client{constructor(...[n]){let t=(0,fQ.getRuntimeConfig)(n||{}),r=(0,pQ.resolveClientEndpointParameters)(t),o=(0,lQ.resolveRegionConfig)(r),s=(0,mQ.resolveEndpointConfig)(o),a=(0,jR.resolveRetryConfig)(s),i=(0,FR.resolveHostHeaderConfig)(a),u=(0,dQ.resolveStsAuthConfig)(i,{stsClientCtor:e}),l=(0,LR.resolveUserAgentConfig)(u),c=(0,yQ.resolveRuntimeExtensions)(l,(n==null?void 0:n.extensions)||[]);super(c),this.config=c,this.middlewareStack.use((0,jR.getRetryPlugin)(this.config)),this.middlewareStack.use((0,uQ.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,FR.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,aQ.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,cQ.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,LR.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};go.STSClient=Xy});var Yy=m(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.AssumeRoleWithSAMLCommand=ho.$Command=void 0;var gQ=x(),hQ=k(),HR=b();Object.defineProperty(ho,"$Command",{enumerable:!0,get:function(){return HR.Command}});var _Q=w(),zR=Dn(),GR=dn(),Wy=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,hQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,gQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:zR.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:zR.AssumeRoleWithSAMLResponseFilterSensitiveLog,[_Q.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithSAML"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,GR.se_AssumeRoleWithSAMLCommand)(n,t)}deserialize(n,t){return(0,GR.de_AssumeRoleWithSAMLCommand)(n,t)}};ho.AssumeRoleWithSAMLCommand=Wy});var Qy=m(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.DecodeAuthorizationMessageCommand=_o.$Command=void 0;var CQ=rn(),SQ=x(),bQ=k(),KR=b();Object.defineProperty(_o,"$Command",{enumerable:!0,get:function(){return KR.Command}});var EQ=w(),$R=dn(),Jy=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,bQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,SQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,CQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[EQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"DecodeAuthorizationMessage"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,$R.se_DecodeAuthorizationMessageCommand)(n,t)}deserialize(n,t){return(0,$R.de_DecodeAuthorizationMessageCommand)(n,t)}};_o.DecodeAuthorizationMessageCommand=Jy});var eg=m(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.GetAccessKeyInfoCommand=Co.$Command=void 0;var PQ=rn(),vQ=x(),wQ=k(),XR=b();Object.defineProperty(Co,"$Command",{enumerable:!0,get:function(){return XR.Command}});var xQ=w(),VR=dn(),Zy=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,wQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,vQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,PQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[xQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetAccessKeyInfo"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,VR.se_GetAccessKeyInfoCommand)(n,t)}deserialize(n,t){return(0,VR.de_GetAccessKeyInfoCommand)(n,t)}};Co.GetAccessKeyInfoCommand=Zy});var ng=m(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.GetCallerIdentityCommand=So.$Command=void 0;var kQ=rn(),AQ=x(),OQ=k(),YR=b();Object.defineProperty(So,"$Command",{enumerable:!0,get:function(){return YR.Command}});var NQ=w(),WR=dn(),tg=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,OQ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,AQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,kQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[NQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetCallerIdentity"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,WR.se_GetCallerIdentityCommand)(n,t)}deserialize(n,t){return(0,WR.de_GetCallerIdentityCommand)(n,t)}};So.GetCallerIdentityCommand=tg});var og=m(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.GetFederationTokenCommand=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(),rg=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:"GetFederationTokenCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:qQ.GetFederationTokenResponseFilterSensitiveLog,[BQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetFederationToken"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,JR.se_GetFederationTokenCommand)(n,t)}deserialize(n,t){return(0,JR.de_GetFederationTokenCommand)(n,t)}};bo.GetFederationTokenCommand=rg});var ig=m(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.GetSessionTokenCommand=Eo.$Command=void 0;var DQ=rn(),MQ=x(),FQ=k(),eT=b();Object.defineProperty(Eo,"$Command",{enumerable:!0,get:function(){return eT.Command}});var LQ=w(),jQ=Dn(),ZR=dn(),sg=class e extends eT.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,MQ.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,DQ.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:jQ.GetSessionTokenResponseFilterSensitiveLog,[LQ.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetSessionToken"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,ZR.se_GetSessionTokenCommand)(n,t)}deserialize(n,t){return(0,ZR.de_GetSessionTokenCommand)(n,t)}};Eo.GetSessionTokenCommand=sg});var tT=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.STS=void 0;var UQ=b(),zQ=ml(),GQ=Yy(),HQ=pl(),$Q=Qy(),KQ=eg(),VQ=ng(),XQ=og(),WQ=ig(),YQ=Mu(),JQ={AssumeRoleCommand:zQ.AssumeRoleCommand,AssumeRoleWithSAMLCommand:GQ.AssumeRoleWithSAMLCommand,AssumeRoleWithWebIdentityCommand:HQ.AssumeRoleWithWebIdentityCommand,DecodeAuthorizationMessageCommand:$Q.DecodeAuthorizationMessageCommand,GetAccessKeyInfoCommand:KQ.GetAccessKeyInfoCommand,GetCallerIdentityCommand:VQ.GetCallerIdentityCommand,GetFederationTokenCommand:XQ.GetFederationTokenCommand,GetSessionTokenCommand:WQ.GetSessionTokenCommand},Fu=class extends YQ.STSClient{};Lu.STS=Fu;(0,UQ.createAggregatedClient)(JQ,Fu)});var nT=m($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});var Vn=(ne(),J(te));Vn.__exportStar(ml(),$t);Vn.__exportStar(Yy(),$t);Vn.__exportStar(pl(),$t);Vn.__exportStar(Qy(),$t);Vn.__exportStar(eg(),$t);Vn.__exportStar(ng(),$t);Vn.__exportStar(og(),$t);Vn.__exportStar(ig(),$t)});var rT=m(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0});var QQ=(ne(),J(te));QQ.__exportStar(Dn(),ag)});var aT=m(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.decorateDefaultCredentialProvider=Kt.getDefaultRoleAssumerWithWebIdentity=Kt.getDefaultRoleAssumer=void 0;var oT=$f(),sT=Mu(),iT=(e,n)=>n?class extends e{constructor(r){super(r);for(let o of n)this.middlewareStack.use(o)}}:e,ZQ=(e={},n)=>(0,oT.getDefaultRoleAssumer)(e,iT(sT.STSClient,n));Kt.getDefaultRoleAssumer=ZQ;var eZ=(e={},n)=>(0,oT.getDefaultRoleAssumerWithWebIdentity)(e,iT(sT.STSClient,n));Kt.getDefaultRoleAssumerWithWebIdentity=eZ;var tZ=e=>n=>e({roleAssumer:(0,Kt.getDefaultRoleAssumer)(n),roleAssumerWithWebIdentity:(0,Kt.getDefaultRoleAssumerWithWebIdentity)(n),...n});Kt.decorateDefaultCredentialProvider=tZ});var cT=m(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.STSServiceException=void 0;var Ra=(ne(),J(te));Ra.__exportStar(Mu(),gn);Ra.__exportStar(tT(),gn);Ra.__exportStar(nT(),gn);Ra.__exportStar(rT(),gn);Ra.__exportStar(aT(),gn);var nZ=al();Object.defineProperty(gn,"STSServiceException",{enumerable:!0,get:function(){return nZ.STSServiceException}})});var dT=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 lT=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 Uu=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,Uu.booleanSelector)(e,Xt.NODE_USE_ARN_REGION_ENV_NAME,Uu.SelectorType.ENV),configFileSelector:e=>(0,Uu.booleanSelector)(e,Xt.NODE_USE_ARN_REGION_INI_NAME,Uu.SelectorType.CONFIG),default:!1}});var lg=m(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.validateMrapAlias=ee.validateNoFIPS=ee.validateNoDualstack=ee.getArnResources=ee.validateCustomEndpoint=ee.validateDNSHostLabel=ee.validateAccountId=ee.validateRegionalClient=ee.validateRegion=ee.validatePartition=ee.validateOutpostService=ee.validateS3Service=ee.validateService=ee.validateArnEndpointOptions=ee.getSuffixForArnEndpoint=ee.getSuffix=ee.isDnsCompatibleBucketName=ee.isBucketNameOptions=ee.S3_HOSTNAME_PATTERN=ee.DOT_PATTERN=void 0;var rZ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,oZ=/(\d+\.){3}\d+/,sZ=/\.\./;ee.DOT_PATTERN=/\./;ee.S3_HOSTNAME_PATTERN=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;var uT=/^s3(-external-1)?\.amazonaws\.com$/,dg="amazonaws.com",iZ=e=>typeof e.bucketName=="string";ee.isBucketNameOptions=iZ;var aZ=e=>rZ.test(e)&&!oZ.test(e)&&!sZ.test(e);ee.isDnsCompatibleBucketName=aZ;var mT=e=>{let n=e.match(ee.S3_HOSTNAME_PATTERN);return[n[4],e.replace(new RegExp(`^${n[0]}`),"")]},cZ=e=>uT.test(e)?["us-east-1",dg]:mT(e);ee.getSuffix=cZ;var dZ=e=>uT.test(e)?[e.replace(`.${dg}`,""),dg]:mT(e);ee.getSuffixForArnEndpoint=dZ;var lZ=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")};ee.validateArnEndpointOptions=lZ;var uZ=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")};ee.validateService=uZ;var mZ=e=>{if(e!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")};ee.validateS3Service=mZ;var pZ=e=>{if(e!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")};ee.validateOutpostService=pZ;var fZ=(e,n)=>{if(e!==n.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${e}" but expected "${n.clientPartition}"`)};ee.validatePartition=fZ;var yZ=(e,n)=>{if(e==="")throw new Error("ARN region is empty");if(n.useFipsEndpoint)if(n.allowFipsRegion){if(!cg(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&&!cg(e,n.clientRegion||"")&&!cg(e,n.clientSigningRegion||""))throw new Error(`Region in ARN is incompatible, got ${e} but expected ${n.clientRegion}`)};ee.validateRegion=yZ;var gZ=e=>{if(["s3-external-1","aws-global"].includes(e))throw new Error(`Client region ${e} is not regional`)};ee.validateRegionalClient=gZ;var cg=(e,n)=>e===n,hZ=e=>{if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")};ee.validateAccountId=hZ;var _Z=(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&&ee.DOT_PATTERN.test(e))throw new Error(`Invalid DNS label ${e}`)};ee.validateDNSHostLabel=_Z;var CZ=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")}};ee.validateCustomEndpoint=CZ;var SZ=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,a]=r;return{outpostId:o,accesspointName:a}}else throw new Error(`ARN resource should begin with 'accesspoint${n}' or 'outpost${n}'`)};ee.getArnResources=SZ;var bZ=e=>{if(e)throw new Error("Dualstack endpoint is not supported with Outpost or Multi-region Access Point ARN.")};ee.validateNoDualstack=bZ;var EZ=e=>{if(e)throw new Error("FIPS region is not supported with Outpost.")};ee.validateNoFIPS=EZ;var PZ=e=>{try{e.split(".").forEach(n=>{(0,ee.validateDNSHostLabel)(n)})}catch{throw new Error(`"${e}" is not a DNS compatible name.`)}};ee.validateMrapAlias=PZ});var ug=m(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.bucketHostname=void 0;var ge=lg(),vZ=e=>((0,ge.validateCustomEndpoint)(e),(0,ge.isBucketNameOptions)(e)?wZ(e):xZ(e));zu.bucketHostname=vZ;var wZ=({accelerateEndpoint:e=!1,clientRegion:n,baseHostname:t,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,pathStyleEndpoint:a=!1,tlsCompatible:i=!0,isCustomEndpoint:u=!1})=>{let[l,c]=u?[n,t]:(0,ge.getSuffix)(t);return a||!(0,ge.isDnsCompatibleBucketName)(r)||i&&ge.DOT_PATTERN.test(r)?{bucketEndpoint:!1,hostname:o?`s3.dualstack.${l}.${c}`:t}:(e?t=`s3-accelerate${o?".dualstack":""}.${c}`:o&&(t=`s3.dualstack.${l}.${c}`),{bucketEndpoint:!0,hostname:`${r}.${t}`})},xZ=e=>{let{isCustomEndpoint:n,baseHostname:t,clientRegion:r}=e,o=n?t:(0,ge.getSuffixForArnEndpoint)(t)[1],{pathStyleEndpoint:s,accelerateEndpoint:a=!1,fipsEndpoint:i=!1,tlsCompatible:u=!0,bucketName:l,clientPartition:c="aws"}=e;(0,ge.validateArnEndpointOptions)({pathStyleEndpoint:s,accelerateEndpoint:a,tlsCompatible:u});let{service:y,partition:g,accountId:C,region:P,resource:A}=l;(0,ge.validateService)(y),(0,ge.validatePartition)(g,{clientPartition:c}),(0,ge.validateAccountId)(C);let{accesspointName:v,outpostId:G}=(0,ge.getArnResources)(A);return y==="s3-object-lambda"?kZ({...e,tlsCompatible:u,bucketName:l,accesspointName:v,hostnameSuffix:o}):P===""?AZ({...e,clientRegion:r,mrapAlias:v,hostnameSuffix:o}):G?OZ({...e,clientRegion:r,outpostId:G,accesspointName:v,hostnameSuffix:o}):NZ({...e,clientRegion:r,accesspointName:v,hostnameSuffix:o})},kZ=({dualstackEndpoint:e=!1,fipsEndpoint:n=!1,tlsCompatible:t=!0,useArnRegion:r,clientRegion:o,clientSigningRegion:s=o,accesspointName:a,bucketName:i,hostnameSuffix:u})=>{let{accountId:l,region:c,service:y}=i;(0,ge.validateRegionalClient)(o),(0,ge.validateRegion)(c,{useArnRegion:r,clientRegion:o,clientSigningRegion:s,allowFipsRegion:!0,useFipsEndpoint:n}),(0,ge.validateNoDualstack)(e);let g=`${a}-${l}`;(0,ge.validateDNSHostLabel)(g,{tlsCompatible:t});let C=r?c:o,P=r?c:s;return{bucketEndpoint:!0,hostname:`${g}.${y}${n?"-fips":""}.${C}.${u}`,signingRegion:P,signingService:y}},AZ=({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:"*"}},OZ=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,outpostId:o,dualstackEndpoint:s=!1,fipsEndpoint:a=!1,tlsCompatible:i=!0,accesspointName:u,isCustomEndpoint:l,hostnameSuffix:c})=>{(0,ge.validateRegionalClient)(n),(0,ge.validateRegion)(r.region,{useArnRegion:e,clientRegion:n,clientSigningRegion:t,useFipsEndpoint:a});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)(a),{bucketEndpoint:!0,hostname:`${`${y}.${o}`}${l?"":`.s3-outposts.${g}`}.${c}`,signingRegion:C,signingService:"s3-outposts"}},NZ=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:a=!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 c=`${i}-${r.accountId}`;(0,ge.validateDNSHostLabel)(c,{tlsCompatible:a});let y=e?r.region:n,g=e?r.region:t;return(0,ge.validateS3Service)(r.service),{bucketEndpoint:!0,hostname:`${c}${u?"":`.s3-accesspoint${s?"-fips":""}${o?".dualstack":""}.${y}`}.${l}`,signingRegion:g}}});var yT=m(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.getBucketEndpointPlugin=Wt.bucketEndpointMiddlewareOptions=Wt.bucketEndpointMiddleware=void 0;var pT=_p(),IZ=Ne(),fT=ug(),RZ=e=>(n,t)=>async r=>{let{Bucket:o}=r.input,s=e.bucketEndpoint,a=r.request;if(IZ.HttpRequest.isInstance(a)){if(e.bucketEndpoint)a.hostname=o;else if((0,pT.validate)(o)){let i=(0,pT.parse)(o),u=await e.region(),l=await e.useDualstackEndpoint(),c=await e.useFipsEndpoint(),{partition:y,signingRegion:g=u}=await e.regionInfoProvider(u,{useDualstackEndpoint:l,useFipsEndpoint:c})||{},C=await e.useArnRegion(),{hostname:P,bucketEndpoint:A,signingRegion:v,signingService:G}=(0,fT.bucketHostname)({bucketName:i,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:l,fipsEndpoint:c,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:a.protocol==="https:",useArnRegion:C,clientPartition:y,clientSigningRegion:g,clientRegion:u,isCustomEndpoint:e.isCustomEndpoint,disableMultiregionAccessPoints:await e.disableMultiregionAccessPoints()});v&&v!==g&&(t.signing_region=v),G&&G!=="s3"&&(t.signing_service=G),a.hostname=P,s=A}else{let i=await e.region(),u=await e.useDualstackEndpoint(),l=await e.useFipsEndpoint(),{hostname:c,bucketEndpoint:y}=(0,fT.bucketHostname)({bucketName:o,clientRegion:i,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:u,fipsEndpoint:l,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:a.protocol==="https:",isCustomEndpoint:e.isCustomEndpoint});a.hostname=c,s=y}s&&(a.path=a.path.replace(/^(\/)?[^\/]+/,""),a.path===""&&(a.path="/"))}return n({...r,request:a})};Wt.bucketEndpointMiddleware=RZ;Wt.bucketEndpointMiddlewareOptions={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0};var TZ=e=>({applyToStack:n=>{n.addRelativeTo((0,Wt.bucketEndpointMiddleware)(e),Wt.bucketEndpointMiddlewareOptions)}});Wt.getBucketEndpointPlugin=TZ});var gT=m(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.resolveBucketEndpointConfig=void 0;function BZ(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=BZ});var hT=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=(ne(),J(te));Ta.__exportStar(dT(),Se);Ta.__exportStar(lT(),Se);Ta.__exportStar(yT(),Se);Ta.__exportStar(ug(),Se);Ta.__exportStar(gT(),Se);var hn=lg();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 vT=m((kxe,PT)=>{var Hu=Object.defineProperty,qZ=Object.getOwnPropertyDescriptor,DZ=Object.getOwnPropertyNames,MZ=Object.prototype.hasOwnProperty,Po=(e,n)=>Hu(e,"name",{value:n,configurable:!0}),FZ=(e,n)=>{for(var t in n)Hu(e,t,{get:n[t],enumerable:!0})},LZ=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of DZ(n))!MZ.call(e,o)&&o!==t&&Hu(e,o,{get:()=>n[o],enumerable:!(r=qZ(n,o))||r.enumerable});return e},jZ=e=>LZ(Hu({},"__esModule",{value:!0}),e),_T={};FZ(_T,{EventStreamMarshaller:()=>ET,eventStreamSerdeProvider:()=>UZ});PT.exports=jZ(_T);var Ba=Ap();function CT(e){let n=0,t=0,r=null,o=null,s=Po(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"),a=Po(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 c=u.length,y=0;for(;ynew ET(e),"eventStreamSerdeProvider")});var NT=m((Oxe,OT)=>{var $u=Object.defineProperty,zZ=Object.getOwnPropertyDescriptor,GZ=Object.getOwnPropertyNames,HZ=Object.prototype.hasOwnProperty,mg=(e,n)=>$u(e,"name",{value:n,configurable:!0}),$Z=(e,n)=>{for(var t in n)$u(e,t,{get:n[t],enumerable:!0})},KZ=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of GZ(n))!HZ.call(e,o)&&o!==t&&$u(e,o,{get:()=>n[o],enumerable:!(r=zZ(n,o))||r.enumerable});return e},VZ=e=>KZ($u({},"__esModule",{value:!0}),e),wT={};$Z(wT,{EventStreamMarshaller:()=>AT,eventStreamSerdeProvider:()=>YZ});OT.exports=VZ(wT);var XZ=vT(),WZ=require("stream");async function*xT(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}}mg(xT,"readabletoIterable");var kT=class{constructor({utf8Encoder:n,utf8Decoder:t}){this.universalMarshaller=new XZ.EventStreamMarshaller({utf8Decoder:t,utf8Encoder:n})}deserialize(n,t){let r=typeof n[Symbol.asyncIterator]=="function"?n:xT(n);return this.universalMarshaller.deserialize(r,t)}serialize(n,t){return WZ.Readable.from(this.universalMarshaller.serialize(n,t))}};mg(kT,"EventStreamMarshaller");var AT=kT,YZ=mg(e=>new AT(e),"eventStreamSerdeProvider")});var qT=m((Ixe,BT)=>{var Ku=Object.defineProperty,JZ=Object.getOwnPropertyDescriptor,QZ=Object.getOwnPropertyNames,ZZ=Object.prototype.hasOwnProperty,Vu=(e,n)=>Ku(e,"name",{value:n,configurable:!0}),eee=(e,n)=>{for(var t in n)Ku(e,t,{get:n[t],enumerable:!0})},tee=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of QZ(n))!ZZ.call(e,o)&&o!==t&&Ku(e,o,{get:()=>n[o],enumerable:!(r=JZ(n,o))||r.enumerable});return e},nee=e=>tee(Ku({},"__esModule",{value:!0}),e),IT={};eee(IT,{fileStreamHasher:()=>iee,readableStreamHasher:()=>cee});BT.exports=nee(IT);var ree=require("fs"),oee=ct(),see=require("stream"),RT=class extends see.Writable{constructor(n,t){super(t),this.hash=n}_write(n,t,r){try{this.hash.update((0,oee.toUint8Array)(n))}catch(o){return r(o)}r()}};Vu(RT,"HashCalculator");var TT=RT,iee=Vu((e,n)=>new Promise((t,r)=>{if(!aee(n)){r(new Error("Unable to calculate hash for non-file streams."));return}let o=(0,ree.createReadStream)(n.path,{start:n.start,end:n.end}),s=new e,a=new TT(s);o.pipe(a),o.on("error",i=>{a.end(),r(i)}),a.on("error",r),a.on("finish",function(){s.digest().then(t).catch(r)})}),"fileStreamHasher"),aee=Vu(e=>typeof e.path=="string","isReadStream"),cee=Vu((e,n)=>{if(n.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let t=new e,r=new TT(t);return n.pipe(r),new Promise((o,s)=>{n.on("error",a=>{r.end(),s(a)}),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 DT=m(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.loadCrt=void 0;var dee=Wu();function lee(){if(!dee.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 +require("@aws-sdk/signature-v4-crt"); // CJS + +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=lee});var MT=m(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.SignatureV4MultiRegion=void 0;var uee=Tp(),mee=DT(),pee=Wu(),pg=class{constructor(n){this.sigv4Signer=new uee.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,mee.loadCrt)(),n=pee.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=pg});var LT=m(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var FT=(ne(),J(te));FT.__exportStar(MT(),Qu);FT.__exportStar(Wu(),Qu)});var YB=m(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.ruleSet=void 0;var jg="required",h="type",S="conditions",O="fn",N="argv",oe="ref",Ye="assign",$="url",K="properties",Cn="authSchemes",Sn="disableDoubleEncoding",bn="signingName",Yn="signingRegion",V="headers",jT=!1,Yt=!0,Jt="isSet",j="tree",nt="booleanEquals",H="error",nm="aws.partition",ke="stringEquals",Re="getAttr",Ct="name",qa="substring",TB="hardwareType",BB="regionPrefix",UT="bucketAliasSuffix",Mg="outpostId",_r="isValidHostLabel",Ot="not",qB="parseURL",Ug="s3-outposts",U="endpoint",zT="aws.isVirtualHostableS3Bucket",wo="s3",DB="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",MB="{url#scheme}://{Bucket}.{url#authority}{url#path}",FB="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",GT="https://{Bucket}.s3.{partitionResult#dnsSuffix}",LB="aws.parseArn",jB="bucketArn",UB="arnType",rm="",zg="s3-object-lambda",zB="accesspoint",Gg="accessPointName",HT="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",$T="mrapPartition",KT="outpostType",VT="arnPrefix",GB="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",XT="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Fg="{url#scheme}://{url#authority}{url#path}",WT="https://s3.{partitionResult#dnsSuffix}",fg={[jg]:!1,[h]:"String"},vo={[jg]:!0,default:!1,[h]:"Boolean"},yg={[jg]:!1,[h]:"Boolean"},At={[O]:nt,[N]:[{[oe]:"Accelerate"},!0]},Pe={[O]:nt,[N]:[{[oe]:"UseFIPS"},!0]},_e={[O]:nt,[N]:[{[oe]:"UseDualStack"},!0]},Ie={[O]:Jt,[N]:[{[oe]:"Endpoint"}]},HB={[O]:nm,[N]:[{[oe]:"Region"}],[Ye]:"partitionResult"},YT={[O]:ke,[N]:[{[O]:Re,[N]:[{[oe]:"partitionResult"},Ct]},"aws-cn"]},$B={[O]:Jt,[N]:[{[oe]:"Bucket"}]},_n={[oe]:"Bucket"},JT={[oe]:TB},QT={[S]:[{[O]:Ot,[N]:[Ie]}],[H]:"Expected a endpoint to be specified but no endpoint was found",[h]:H},re={[O]:Ot,[N]:[Ie]},ot={[O]:qB,[N]:[{[oe]:"Endpoint"}],[Ye]:"url"},Zu={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Ug,[Yn]:"{Region}"}]},ce={},gg={[O]:nt,[N]:[{[oe]:"ForcePathStyle"},!1]},fee={[oe]:"ForcePathStyle"},De={[O]:nt,[N]:[{[oe]:"Accelerate"},!1]},Le={[O]:ke,[N]:[{[oe]:"Region"},"aws-global"]},Ge={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:wo,[Yn]:"us-east-1"}]},le={[O]:Ot,[N]:[Le]},He={[O]:nt,[N]:[{[oe]:"UseGlobalEndpoint"},!0]},ZT={[$]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:{[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:wo,[Yn]:"{Region}"}]},[V]:{}},Me={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:wo,[Yn]:"{Region}"}]},$e={[O]:nt,[N]:[{[oe]:"UseGlobalEndpoint"},!1]},de={[O]:nt,[N]:[{[oe]:"UseDualStack"},!1]},eB={[$]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},ie={[O]:nt,[N]:[{[oe]:"UseFIPS"},!1]},tB={[$]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},nB={[$]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},hg={[O]:nt,[N]:[{[O]:Re,[N]:[{[oe]:"url"},"isIp"]},!0]},KB={[oe]:"url"},_g={[O]:nt,[N]:[{[O]:Re,[N]:[KB,"isIp"]},!1]},Cg={[$]:DB,[K]:Me,[V]:{}},Lg={[$]:MB,[K]:Me,[V]:{}},rB={[U]:Lg,[h]:U},Sg={[$]:FB,[K]:Me,[V]:{}},oB={[$]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},em={[H]:"Invalid region: region was not a valid DNS name.",[h]:H},at={[oe]:jB},VB={[oe]:UB},bg={[O]:Re,[N]:[at,"service"]},Hg={[oe]:Gg},sB={[S]:[_e],[H]:"S3 Object Lambda does not support Dual-stack",[h]:H},iB={[S]:[At],[H]:"S3 Object Lambda does not support S3 Accelerate",[h]:H},aB={[S]:[{[O]:Jt,[N]:[{[oe]:"DisableAccessPoints"}]},{[O]:nt,[N]:[{[oe]:"DisableAccessPoints"},!0]}],[H]:"Access points are not supported for this operation",[h]:H},Eg={[S]:[{[O]:Jt,[N]:[{[oe]:"UseArnRegion"}]},{[O]:nt,[N]:[{[oe]:"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},XB={[O]:Re,[N]:[{[oe]:"bucketPartition"},Ct]},WB={[O]:Re,[N]:[at,"accountId"]},Pg={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:zg,[Yn]:"{bucketArn#region}"}]},cB={[H]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[h]:H},vg={[H]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[h]:H},wg={[H]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[h]:H},xg={[H]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[h]:H},dB={[H]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[h]:H},lB={[H]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[h]:H},Da={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:wo,[Yn]:"{bucketArn#region}"}]},uB={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:Ug,[Yn]:"{bucketArn#region}"}]},mB={[O]:LB,[N]:[_n]},pB={[$]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},fB={[$]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},yB={[$]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},kg={[$]:GB,[K]:Me,[V]:{}},gB={[$]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Me,[V]:{}},hB={[oe]:"UseObjectLambdaEndpoint"},Ag={[Cn]:[{[Sn]:!0,[Ct]:"sigv4",[bn]:zg,[Yn]:"{Region}"}]},_B={[$]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},CB={[$]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},SB={[$]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},Og={[$]:Fg,[K]:Me,[V]:{}},bB={[$]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[K]:Me,[V]:{}},Ng=[{[oe]:"Region"}],yee=[{[oe]:"Endpoint"}],EB=[_n],PB=[{[O]:_r,[N]:[{[oe]:Mg},!1]}],vB=[{[O]:ke,[N]:[{[oe]:BB},"beta"]}],Ma=[Ie,ot],wB=[$B],Xn=[HB],xB=[{[O]:_r,[N]:[{[oe]:"Region"},!1]}],Wn=[{[O]:ke,[N]:[{[oe]:"Region"},"us-east-1"]}],Ig=[{[O]:ke,[N]:[VB,zB]}],kB=[{[O]:Re,[N]:[at,"resourceId[1]"],[Ye]:Gg},{[O]:Ot,[N]:[{[O]:ke,[N]:[Hg,rm]}]}],gee=[at,"resourceId[1]"],AB=[_e],Rg=[At],Tg=[{[O]:Ot,[N]:[{[O]:ke,[N]:[{[O]:Re,[N]:[at,"region"]},rm]}]}],OB=[{[O]:Ot,[N]:[{[O]:Jt,[N]:[{[O]:Re,[N]:[at,"resourceId[2]"]}]}]}],hee=[at,"resourceId[2]"],Bg=[{[O]:nm,[N]:[{[O]:Re,[N]:[at,"region"]}],[Ye]:"bucketPartition"}],NB=[{[O]:ke,[N]:[XB,{[O]:Re,[N]:[{[oe]:"partitionResult"},Ct]}]}],qg=[{[O]:_r,[N]:[{[O]:Re,[N]:[at,"region"]},!0]}],Dg=[{[O]:_r,[N]:[WB,!1]}],IB=[{[O]:_r,[N]:[Hg,!1]}],tm=[Pe],RB=[{[O]:_r,[N]:[{[oe]:"Region"},!0]}],_ee={version:"1.0",parameters:{Bucket:fg,Region:fg,UseFIPS:vo,UseDualStack:vo,Endpoint:fg,ForcePathStyle:vo,Accelerate:vo,UseGlobalEndpoint:vo,UseObjectLambdaEndpoint:yg,DisableAccessPoints:yg,DisableMultiRegionAccessPoints:vo,UseArnRegion:yg},rules:[{[S]:[{[O]:Jt,[N]:Ng}],[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,HB,YT],error:"Partition does not support FIPS",[h]:H},{[S]:[$B,{[O]:qa,[N]:[_n,49,50,Yt],[Ye]:TB},{[O]:qa,[N]:[_n,8,12,Yt],[Ye]:BB},{[O]:qa,[N]:[_n,0,7,Yt],[Ye]:UT},{[O]:qa,[N]:[_n,32,49,Yt],[Ye]:Mg},{[O]:nm,[N]:Ng,[Ye]:"regionPartition"},{[O]:ke,[N]:[{[oe]:UT},"--op-s3"]}],[h]:j,rules:[{[S]:PB,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[JT,"e"]}],[h]:j,rules:[{[S]:vB,[h]:j,rules:[QT,{[S]:Ma,endpoint:{[$]:"https://{Bucket}.ec2.{url#authority}",[K]:Zu,[V]:ce},[h]:U}]},{endpoint:{[$]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[K]:Zu,[V]:ce},[h]:U}]},{[S]:[{[O]:ke,[N]:[JT,"o"]}],[h]:j,rules:[{[S]:vB,[h]:j,rules:[QT,{[S]:Ma,endpoint:{[$]:"https://{Bucket}.op-{outpostId}.{url#authority}",[K]:Zu,[V]:ce},[h]:U}]},{endpoint:{[$]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[K]:Zu,[V]:ce},[h]:U}]},{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]:wB,[h]:j,rules:[{[S]:[Ie,{[O]:Ot,[N]:[{[O]:Jt,[N]:[{[O]:qB,[N]:yee}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[h]:H},{[S]:[gg,{[O]:zT,[N]:[_n,jT]}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:xB,[h]:j,rules:[{[S]:[At,YT],error:"S3 Accelerate cannot be used in this region",[h]:H},{[S]:[_e,Pe,De,re,Le],endpoint:{[$]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ge,[V]:ce},[h]:U},{[S]:[_e,Pe,De,re,le,He],[h]:j,rules:[{endpoint:ZT,[h]:U}]},{[S]:[_e,Pe,De,re,le,$e],endpoint:ZT,[h]:U},{[S]:[de,Pe,De,re,Le],endpoint:{[$]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[K]:Ge,[V]:ce},[h]:U},{[S]:[de,Pe,De,re,le,He],[h]:j,rules:[{endpoint:eB,[h]:U}]},{[S]:[de,Pe,De,re,le,$e],endpoint:eB,[h]:U},{[S]:[_e,ie,At,re,Le],endpoint:{[$]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ge,[V]:ce},[h]:U},{[S]:[_e,ie,At,re,le,He],[h]:j,rules:[{endpoint:tB,[h]:U}]},{[S]:[_e,ie,At,re,le,$e],endpoint:tB,[h]:U},{[S]:[_e,ie,De,re,Le],endpoint:{[$]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ge,[V]:ce},[h]:U},{[S]:[_e,ie,De,re,le,He],[h]:j,rules:[{endpoint:nB,[h]:U}]},{[S]:[_e,ie,De,re,le,$e],endpoint:nB,[h]:U},{[S]:[de,ie,De,Ie,ot,hg,Le],endpoint:{[$]:DB,[K]:Ge,[V]:ce},[h]:U},{[S]:[de,ie,De,Ie,ot,_g,Le],endpoint:{[$]:MB,[K]:Ge,[V]:ce},[h]:U},{[S]:[de,ie,De,Ie,ot,hg,le,He],[h]:j,rules:[{[S]:Wn,endpoint:Cg,[h]:U},{endpoint:Cg,[h]:U}]},{[S]:[de,ie,De,Ie,ot,_g,le,He],[h]:j,rules:[{[S]:Wn,endpoint:Lg,[h]:U},rB]},{[S]:[de,ie,De,Ie,ot,hg,le,$e],endpoint:Cg,[h]:U},{[S]:[de,ie,De,Ie,ot,_g,le,$e],endpoint:Lg,[h]:U},{[S]:[de,ie,At,re,Le],endpoint:{[$]:FB,[K]:Ge,[V]:ce},[h]:U},{[S]:[de,ie,At,re,le,He],[h]:j,rules:[{[S]:Wn,endpoint:Sg,[h]:U},{endpoint:Sg,[h]:U}]},{[S]:[de,ie,At,re,le,$e],endpoint:Sg,[h]:U},{[S]:[de,ie,De,re,Le],endpoint:{[$]:GT,[K]:Ge,[V]:ce},[h]:U},{[S]:[de,ie,De,re,le,He],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:GT,[K]:Me,[V]:ce},[h]:U},{endpoint:oB,[h]:U}]},{[S]:[de,ie,De,re,le,$e],endpoint:oB,[h]:U}]},em]}]},{[S]:[Ie,ot,{[O]:ke,[N]:[{[O]:Re,[N]:[KB,"scheme"]},"http"]},{[O]:zT,[N]:[_n,Yt]},gg,ie,de,De],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:xB,[h]:j,rules:[rB]},em]}]},{[S]:[gg,{[O]:LB,[N]:EB,[Ye]:jB}],[h]:j,rules:[{[S]:[{[O]:Re,[N]:[at,"resourceId[0]"],[Ye]:UB},{[O]:Ot,[N]:[{[O]:ke,[N]:[VB,rm]}]}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[bg,zg]}],[h]:j,rules:[{[S]:Ig,[h]:j,rules:[{[S]:kB,[h]:j,rules:[sB,iB,{[S]:Tg,[h]:j,rules:[aB,{[S]:OB,[h]:j,rules:[Eg,{[S]:Bg,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:NB,[h]:j,rules:[{[S]:qg,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[WB,rm]}],error:"Invalid ARN: Missing account id",[h]:H},{[S]:Dg,[h]:j,rules:[{[S]:IB,[h]:j,rules:[{[S]:Ma,endpoint:{[$]:HT,[K]:Pg,[V]:ce},[h]:U},{[S]:tm,endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Pg,[V]:ce},[h]:U},{endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Pg,[V]:ce},[h]:U}]},cB]},vg]},wg]},xg]}]}]},dB]},{error:"Invalid ARN: bucket ARN is missing a region",[h]:H}]},lB]},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[h]:H}]},{[S]:Ig,[h]:j,rules:[{[S]:kB,[h]:j,rules:[{[S]:Tg,[h]:j,rules:[{[S]:Ig,[h]:j,rules:[{[S]:Tg,[h]:j,rules:[aB,{[S]:OB,[h]:j,rules:[Eg,{[S]:Bg,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[XB,"{partitionResult#name}"]}],[h]:j,rules:[{[S]:qg,[h]:j,rules:[{[S]:[{[O]:ke,[N]:[bg,wo]}],[h]:j,rules:[{[S]:Dg,[h]:j,rules:[{[S]:IB,[h]:j,rules:[{[S]:Rg,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]:ce},[h]:U},{[S]:[Pe,de],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Da,[V]:ce},[h]:U},{[S]:[ie,_e],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Da,[V]:ce},[h]:U},{[S]:[ie,de,Ie,ot],endpoint:{[$]:HT,[K]:Da,[V]:ce},[h]:U},{[S]:[ie,de],endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:Da,[V]:ce},[h]:U}]},cB]},vg]},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[h]:H}]},wg]},xg]}]}]},dB]}]}]},{[S]:[{[O]:_r,[N]:[Hg,Yt]}],[h]:j,rules:[{[S]:AB,error:"S3 MRAP does not support dual-stack",[h]:H},{[S]:tm,error:"S3 MRAP does not support FIPS",[h]:H},{[S]:Rg,error:"S3 MRAP does not support S3 Accelerate",[h]:H},{[S]:[{[O]:nt,[N]:[{[oe]:"DisableMultiRegionAccessPoints"},Yt]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[h]:H},{[S]:[{[O]:nm,[N]:Ng,[Ye]:$T}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[{[O]:Re,[N]:[{[oe]:$T},Ct]},{[O]:Re,[N]:[at,"partition"]}]}],[h]:j,rules:[{endpoint:{[$]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[K]:{[Cn]:[{[Sn]:Yt,name:"sigv4a",[bn]:wo,signingRegionSet:["*"]}]},[V]:ce},[h]:U}]},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[h]:H}]}]},{error:"Invalid Access Point Name",[h]:H}]},lB]},{[S]:[{[O]:ke,[N]:[bg,Ug]}],[h]:j,rules:[{[S]:AB,error:"S3 Outposts does not support Dual-stack",[h]:H},{[S]:tm,error:"S3 Outposts does not support FIPS",[h]:H},{[S]:Rg,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]:gee,[Ye]:Mg}],[h]:j,rules:[{[S]:PB,[h]:j,rules:[Eg,{[S]:Bg,[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:NB,[h]:j,rules:[{[S]:qg,[h]:j,rules:[{[S]:Dg,[h]:j,rules:[{[S]:[{[O]:Re,[N]:hee,[Ye]:KT}],[h]:j,rules:[{[S]:[{[O]:Re,[N]:[at,"resourceId[3]"],[Ye]:Gg}],[h]:j,rules:[{[S]:[{[O]:ke,[N]:[{[oe]:KT},zB]}],[h]:j,rules:[{[S]:Ma,endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[K]:uB,[V]:ce},[h]:U},{endpoint:{[$]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[K]:uB,[V]:ce},[h]:U}]},{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}]},vg]},wg]},xg]}]}]},{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,jT],[Ye]:VT},{[O]:ke,[N]:[{[oe]:VT},"arn:"]},{[O]:Ot,[N]:[{[O]:Jt,[N]:[mB]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[h]:H},{[S]:[{[O]:nt,[N]:[fee,Yt]},mB],error:"Path-style addressing cannot be used with ARN buckets",[h]:H},{[S]:[{[O]:"uriEncode",[N]:EB,[Ye]:"uri_encoded_bucket"}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:[De],[h]:j,rules:[{[S]:[_e,re,Pe,Le],endpoint:{[$]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Ge,[V]:ce},[h]:U},{[S]:[_e,re,Pe,le,He],[h]:j,rules:[{endpoint:pB,[h]:U}]},{[S]:[_e,re,Pe,le,$e],endpoint:pB,[h]:U},{[S]:[de,re,Pe,Le],endpoint:{[$]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Ge,[V]:ce},[h]:U},{[S]:[de,re,Pe,le,He],[h]:j,rules:[{endpoint:fB,[h]:U}]},{[S]:[de,re,Pe,le,$e],endpoint:fB,[h]:U},{[S]:[_e,re,ie,Le],endpoint:{[$]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[K]:Ge,[V]:ce},[h]:U},{[S]:[_e,re,ie,le,He],[h]:j,rules:[{endpoint:yB,[h]:U}]},{[S]:[_e,re,ie,le,$e],endpoint:yB,[h]:U},{[S]:[de,Ie,ot,ie,Le],endpoint:{[$]:GB,[K]:Ge,[V]:ce},[h]:U},{[S]:[de,Ie,ot,ie,le,He],[h]:j,rules:[{[S]:Wn,endpoint:kg,[h]:U},{endpoint:kg,[h]:U}]},{[S]:[de,Ie,ot,ie,le,$e],endpoint:kg,[h]:U},{[S]:[de,re,ie,Le],endpoint:{[$]:XT,[K]:Ge,[V]:ce},[h]:U},{[S]:[de,re,ie,le,He],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:XT,[K]:Me,[V]:ce},[h]:U},{endpoint:gB,[h]:U}]},{[S]:[de,re,ie,le,$e],endpoint:gB,[h]:U}]},{error:"Path-style addressing cannot be used with S3 Accelerate",[h]:H}]}]}]},{[S]:[{[O]:Jt,[N]:[hB]},{[O]:nt,[N]:[hB,Yt]}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:RB,[h]:j,rules:[sB,iB,{[S]:Ma,endpoint:{[$]:Fg,[K]:Ag,[V]:ce},[h]:U},{[S]:tm,endpoint:{[$]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[K]:Ag,[V]:ce},[h]:U},{endpoint:{[$]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[K]:Ag,[V]:ce},[h]:U}]},em]}]},{[S]:[{[O]:Ot,[N]:wB}],[h]:j,rules:[{[S]:Xn,[h]:j,rules:[{[S]:RB,[h]:j,rules:[{[S]:[Pe,_e,re,Le],endpoint:{[$]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ge,[V]:ce},[h]:U},{[S]:[Pe,_e,re,le,He],[h]:j,rules:[{endpoint:_B,[h]:U}]},{[S]:[Pe,_e,re,le,$e],endpoint:_B,[h]:U},{[S]:[Pe,de,re,Le],endpoint:{[$]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[K]:Ge,[V]:ce},[h]:U},{[S]:[Pe,de,re,le,He],[h]:j,rules:[{endpoint:CB,[h]:U}]},{[S]:[Pe,de,re,le,$e],endpoint:CB,[h]:U},{[S]:[ie,_e,re,Le],endpoint:{[$]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[K]:Ge,[V]:ce},[h]:U},{[S]:[ie,_e,re,le,He],[h]:j,rules:[{endpoint:SB,[h]:U}]},{[S]:[ie,_e,re,le,$e],endpoint:SB,[h]:U},{[S]:[ie,de,Ie,ot,Le],endpoint:{[$]:Fg,[K]:Ge,[V]:ce},[h]:U},{[S]:[ie,de,Ie,ot,le,He],[h]:j,rules:[{[S]:Wn,endpoint:Og,[h]:U},{endpoint:Og,[h]:U}]},{[S]:[ie,de,Ie,ot,le,$e],endpoint:Og,[h]:U},{[S]:[ie,de,re,Le],endpoint:{[$]:WT,[K]:Ge,[V]:ce},[h]:U},{[S]:[ie,de,re,le,He],[h]:j,rules:[{[S]:Wn,endpoint:{[$]:WT,[K]:Me,[V]:ce},[h]:U},{endpoint:bB,[h]:U}]},{[S]:[ie,de,re,le,$e],endpoint:bB,[h]:U}]},em]}]}]},{error:"A region must be set when sending requests to S3.",[h]:H}]};om.ruleSet=_ee});var JB=m(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.defaultEndpointResolver=void 0;var Cee=jr(),See=YB(),bee=(e,n={})=>(0,Cee.resolveEndpoint)(See.ruleSet,{endpointParams:e,logger:n.logger});sm.defaultEndpointResolver=bee});var tq=m(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.getRuntimeConfig=void 0;var Eee=LT(),Pee=b(),vee=mr(),QB=Pr(),ZB=sp(),eq=ct(),wee=JB(),xee=e=>({apiVersion:"2006-03-01",base64Decoder:(e==null?void 0:e.base64Decoder)??QB.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??QB.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??wee.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],getAwsChunkedEncodingStream:(e==null?void 0:e.getAwsChunkedEncodingStream)??ZB.getAwsChunkedEncodingStream,logger:(e==null?void 0:e.logger)??new Pee.NoOpLogger,sdkStreamMixin:(e==null?void 0:e.sdkStreamMixin)??ZB.sdkStreamMixin,serviceId:(e==null?void 0:e.serviceId)??"S3",signerConstructor:(e==null?void 0:e.signerConstructor)??Eee.SignatureV4MultiRegion,signingEscapePath:(e==null?void 0:e.signingEscapePath)??!1,urlParser:(e==null?void 0:e.urlParser)??vee.parseUrl,useArnRegion:(e==null?void 0:e.useArnRegion)??!1,utf8Decoder:(e==null?void 0:e.utf8Decoder)??eq.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??eq.toUtf8});im.getRuntimeConfig=xee});var oq=m(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.getRuntimeConfig=void 0;var kee=(ne(),J(te)),Aee=kee.__importDefault(Yk()),Oee=cT(),Nee=Hy(),Iee=hT(),Ree=pa(),am=Mt(),Tee=NT(),$g=fa(),Bee=qT(),nq=sn(),xo=on(),rq=vr(),qee=ya(),Dee=zr(),Mee=tq(),Fee=b(),Lee=_a(),jee=b(),Uee=e=>{(0,jee.emitWarningIfUnsupportedVersion)(process.version);let n=(0,Lee.resolveDefaultsModeConfig)(e),t=()=>n().then(Fee.loadConfigsForDefaultMode),r=(0,Mee.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??qee.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,Oee.decorateDefaultCredentialProvider)(Nee.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,Ree.defaultUserAgent)({serviceId:r.serviceId,clientVersion:Aee.default.version}),eventStreamSerdeProvider:(e==null?void 0:e.eventStreamSerdeProvider)??Tee.eventStreamSerdeProvider,maxAttempts:(e==null?void 0:e.maxAttempts)??(0,xo.loadConfig)(nq.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),md5:(e==null?void 0:e.md5)??$g.Hash.bind(null,"md5"),region:(e==null?void 0:e.region)??(0,xo.loadConfig)(am.NODE_REGION_CONFIG_OPTIONS,am.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new rq.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,xo.loadConfig)({...nq.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||Dee.DEFAULT_RETRY_MODE}),sha1:(e==null?void 0:e.sha1)??$g.Hash.bind(null,"sha1"),sha256:(e==null?void 0:e.sha256)??$g.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??rq.streamCollector,streamHasher:(e==null?void 0:e.streamHasher)??Bee.readableStreamHasher,useArnRegion:(e==null?void 0:e.useArnRegion)??(0,xo.loadConfig)(Iee.NODE_USE_ARN_REGION_CONFIG_OPTIONS),useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,xo.loadConfig)(am.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,xo.loadConfig)(am.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};cm.getRuntimeConfig=Uee});var cq=m(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.resolveRuntimeExtensions=void 0;var sq=Ml(),iq=Ne(),aq=b(),Kg=e=>e,zee=(e,n)=>{let t={...Kg((0,sq.getAwsRegionExtensionConfiguration)(e)),...Kg((0,aq.getDefaultExtensionConfiguration)(e)),...Kg((0,iq.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,sq.resolveAwsRegionExtensionConfiguration)(t),...(0,aq.resolveDefaultRuntimeConfig)(t),...(0,iq.resolveHttpHandlerRuntimeConfig)(t)}};dm.resolveRuntimeExtensions=zee});var Fa=m(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.S3Client=ko.__Client=void 0;var Gee=Tb(),dq=Ii(),Hee=Ri(),$ee=Ti(),lq=Or(),uq=rn(),mq=Qi(),Kee=Mt(),Vee=tx(),Xee=Zi(),Wee=x(),pq=sn(),fq=b();Object.defineProperty(ko,"__Client",{enumerable:!0,get:function(){return fq.Client}});var Yee=Wk(),Jee=oq(),Qee=cq(),Vg=class extends fq.Client{constructor(...[n]){let t=(0,Jee.getRuntimeConfig)(n||{}),r=(0,Yee.resolveClientEndpointParameters)(t),o=(0,Kee.resolveRegionConfig)(r),s=(0,Wee.resolveEndpointConfig)(o),a=(0,pq.resolveRetryConfig)(s),i=(0,dq.resolveHostHeaderConfig)(a),u=(0,uq.resolveAwsAuthConfig)(i),l=(0,lq.resolveS3Config)(u),c=(0,mq.resolveUserAgentConfig)(l),y=(0,Vee.resolveEventStreamSerdeConfig)(c),g=(0,Qee.resolveRuntimeExtensions)(y,(n==null?void 0:n.extensions)||[]);super(g),this.config=g,this.middlewareStack.use((0,pq.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Xee.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,dq.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Hee.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,$ee.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,uq.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,lq.getValidateBucketNamePlugin)(this.config)),this.middlewareStack.use((0,Gee.getAddExpectContinuePlugin)(this.config)),this.middlewareStack.use((0,mq.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};ko.S3Client=Vg});var yq=m(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.escapeAttribute=void 0;function Zee(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}lm.escapeAttribute=Zee});var gq=m(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.escapeElement=void 0;function ete(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}um.escapeElement=ete});var Wg=m(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.XmlText=void 0;var tte=gq(),Xg=class{constructor(n){this.value=n}toString(){return(0,tte.escapeElement)(""+this.value)}};mm.XmlText=Xg});var hq=m(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.XmlNode=void 0;var nte=yq(),rte=Wg(),Yg=class e{static of(n,t,r){let o=new e(n);return t!==void 0&&o.addChildNode(new rte.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,nte.escapeAttribute)(""+s)}"`)}return t+=n?`>${this.children.map(o=>o.toString()).join("")}`:"/>"}};pm.XmlNode=Yg});var Cq=m(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});var _q=(ne(),J(te));_q.__exportStar(hq(),fm);_q.__exportStar(Wg(),fm)});var La=m(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.S3ServiceException=Ao.__ServiceException=void 0;var Sq=b();Object.defineProperty(Ao,"__ServiceException",{enumerable:!0,get:function(){return Sq.ServiceException}});var Jg=class e extends Sq.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};Ao.S3ServiceException=Jg});var Je=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 Qg=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=Qg;_.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 Zg=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=Zg;var eh=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=eh;var th=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=th;_.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 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=_.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 ste;(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])})(ste=_.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 ite;(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])})(ite=_.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 ate;(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])})(ate=_.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 nh=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=nh;var rh=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=rh;_.ObjectAttributes={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"};_.ObjectLockEnabled={Enabled:"Enabled"};_.ObjectLockRetentionMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};var oh=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=oh;_.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 sh=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=sh;_.ObjectVersionStorageClass={STANDARD:"STANDARD"};_.MFADelete={Disabled:"Disabled",Enabled:"Enabled"};var cte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.CompleteMultipartUploadOutputFilterSensitiveLog=cte;var dte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.CompleteMultipartUploadRequestFilterSensitiveLog=dte;var lte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CopyObjectOutputFilterSensitiveLog=lte;var ute=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=ute;var mte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CreateMultipartUploadOutputFilterSensitiveLog=mte;var pte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.CreateMultipartUploadRequestFilterSensitiveLog=pte;var fte=e=>({...e,...e.KMSMasterKeyID&&{KMSMasterKeyID:Ce.SENSITIVE_STRING}});_.ServerSideEncryptionByDefaultFilterSensitiveLog=fte;var yte=e=>({...e,...e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:(0,_.ServerSideEncryptionByDefaultFilterSensitiveLog)(e.ApplyServerSideEncryptionByDefault)}});_.ServerSideEncryptionRuleFilterSensitiveLog=yte;var gte=e=>({...e,...e.Rules&&{Rules:e.Rules.map(n=>(0,_.ServerSideEncryptionRuleFilterSensitiveLog)(n))}});_.ServerSideEncryptionConfigurationFilterSensitiveLog=gte;var hte=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,_.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});_.GetBucketEncryptionOutputFilterSensitiveLog=hte;var _te=e=>({...e,...e.KeyId&&{KeyId:Ce.SENSITIVE_STRING}});_.SSEKMSFilterSensitiveLog=_te;var Cte=e=>({...e,...e.SSEKMS&&{SSEKMS:(0,_.SSEKMSFilterSensitiveLog)(e.SSEKMS)}});_.InventoryEncryptionFilterSensitiveLog=Cte;var Ste=e=>({...e,...e.Encryption&&{Encryption:(0,_.InventoryEncryptionFilterSensitiveLog)(e.Encryption)}});_.InventoryS3BucketDestinationFilterSensitiveLog=Ste;var bte=e=>({...e,...e.S3BucketDestination&&{S3BucketDestination:(0,_.InventoryS3BucketDestinationFilterSensitiveLog)(e.S3BucketDestination)}});_.InventoryDestinationFilterSensitiveLog=bte;var Ete=e=>({...e,...e.Destination&&{Destination:(0,_.InventoryDestinationFilterSensitiveLog)(e.Destination)}});_.InventoryConfigurationFilterSensitiveLog=Ete;var Pte=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,_.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});_.GetBucketInventoryConfigurationOutputFilterSensitiveLog=Pte;var vte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.GetObjectOutputFilterSensitiveLog=vte;var wte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.GetObjectRequestFilterSensitiveLog=wte;var xte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.GetObjectAttributesRequestFilterSensitiveLog=xte;var kte=e=>({...e});_.GetObjectTorrentOutputFilterSensitiveLog=kte;var Ate=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING}});_.HeadObjectOutputFilterSensitiveLog=Ate;var Ote=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.HeadObjectRequestFilterSensitiveLog=Ote;var Nte=e=>({...e,...e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map(n=>(0,_.InventoryConfigurationFilterSensitiveLog)(n))}});_.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=Nte;var Ite=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING}});_.ListPartsRequestFilterSensitiveLog=Ite;var Rte=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,_.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});_.PutBucketEncryptionRequestFilterSensitiveLog=Rte;var Tte=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,_.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});_.PutBucketInventoryConfigurationRequestFilterSensitiveLog=Tte;var Bte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.PutObjectOutputFilterSensitiveLog=Bte;var qte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Ce.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Ce.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Ce.SENSITIVE_STRING}});_.PutObjectRequestFilterSensitiveLog=qte});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(),Dte=La(),ih=class e extends Dte.S3ServiceException{constructor(n){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...n}),this.name="ObjectAlreadyInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};X.ObjectAlreadyInActiveTierError=ih;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 Mte;(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])})(Mte=X.SelectObjectContentEventStream||(X.SelectObjectContentEventStream={}));var Fte=e=>({...e,...e.KMSKeyId&&{KMSKeyId:Qn.SENSITIVE_STRING}});X.EncryptionFilterSensitiveLog=Fte;var Lte=e=>({...e,...e.Encryption&&{Encryption:(0,X.EncryptionFilterSensitiveLog)(e.Encryption)}});X.S3LocationFilterSensitiveLog=Lte;var jte=e=>({...e,...e.S3&&{S3:(0,X.S3LocationFilterSensitiveLog)(e.S3)}});X.OutputLocationFilterSensitiveLog=jte;var Ute=e=>({...e,...e.OutputLocation&&{OutputLocation:(0,X.OutputLocationFilterSensitiveLog)(e.OutputLocation)}});X.RestoreRequestFilterSensitiveLog=Ute;var zte=e=>({...e,...e.RestoreRequest&&{RestoreRequest:(0,X.RestoreRequestFilterSensitiveLog)(e.RestoreRequest)}});X.RestoreObjectRequestFilterSensitiveLog=zte;var Gte=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=Gte;var Hte=e=>({...e,...e.Payload&&{Payload:"STREAMING_CONTENT"}});X.SelectObjectContentOutputFilterSensitiveLog=Hte;var $te=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING}});X.SelectObjectContentRequestFilterSensitiveLog=$te;var Kte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.UploadPartOutputFilterSensitiveLog=Kte;var Vte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING}});X.UploadPartRequestFilterSensitiveLog=Vte;var Xte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.UploadPartCopyOutputFilterSensitiveLog=Xte;var Wte=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Qn.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Qn.SENSITIVE_STRING}});X.UploadPartCopyRequestFilterSensitiveLog=Wte;var Yte=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Qn.SENSITIVE_STRING}});X.WriteGetObjectResponseRequestFilterSensitiveLog=Yte});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=Cq(),B=Ne(),d=b(),Jte=jf(),St=Je(),Qte=Zn(),Zte=La(),ene=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_AbortMultipartUploadCommand=ene;var tne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=wq(e.MultipartUpload,n));let c;return e.MultipartUpload!==void 0&&(c=wq(e.MultipartUpload,n),c=c.withName("CompleteMultipartUpload"),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_CompleteMultipartUploadCommand=tne;var nne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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":[()=>E(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>E(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],expires:[()=>E(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":[()=>E(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":[()=>E(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((c,y)=>(c[`x-amz-meta-${y.toLowerCase()}`]=e.Metadata[y],c),{})}),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:a,path:i,query:u,body:l})};p.se_CopyObjectCommand=nne;var rne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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":[()=>E(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=kq(e.CreateBucketConfiguration,n));let l;return e.CreateBucketConfiguration!==void 0&&(l=kq(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:a,path:i,body:u})};p.se_CreateBucketCommand=rne;var one=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:[()=>E(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":[()=>E(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":[()=>E(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((c,y)=>(c[`x-amz-meta-${y.toLowerCase()}`]=e.Metadata[y],c),{})}),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:a,path:i,query:u,body:l})};p.se_CreateMultipartUploadCommand=one;var sne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,body:u})};p.se_DeleteBucketCommand=sne;var ine=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_DeleteBucketAnalyticsConfigurationCommand=ine;var ane=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_DeleteBucketCorsCommand=ane;var cne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_DeleteBucketEncryptionCommand=cne;var dne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a={},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:a,path:i,query:u,body:l})};p.se_DeleteBucketIntelligentTieringConfigurationCommand=dne;var lne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_DeleteBucketInventoryConfigurationCommand=lne;var une=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_DeleteBucketLifecycleCommand=une;var mne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_DeleteBucketMetricsConfigurationCommand=mne;var pne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_DeleteBucketOwnershipControlsCommand=pne;var fne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_DeleteBucketPolicyCommand=fne;var yne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_DeleteBucketReplicationCommand=yne;var gne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_DeleteBucketTaggingCommand=gne;var hne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_DeleteBucketWebsiteCommand=hne;var _ne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>E(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:a,path:i,query:u,body:l})};p.se_DeleteObjectCommand=_ne;var Cne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>E(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=Aq(e.Delete,n));let c;return e.Delete!==void 0&&(c=Aq(e.Delete,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_DeleteObjectsCommand=Cne;var Sne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_DeleteObjectTaggingCommand=Sne;var bne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_DeletePublicAccessBlockCommand=bne;var Ene=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketAccelerateConfigurationCommand=Ene;var Pne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketAclCommand=Pne;var vne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketAnalyticsConfigurationCommand=vne;var wne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketCorsCommand=wne;var xne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketEncryptionCommand=xne;var kne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a={},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:a,path:i,query:u,body:l})};p.se_GetBucketIntelligentTieringConfigurationCommand=kne;var Ane=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketInventoryConfigurationCommand=Ane;var One=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketLifecycleConfigurationCommand=One;var Nne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketLocationCommand=Nne;var Ine=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketLoggingCommand=Ine;var Rne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketMetricsConfigurationCommand=Rne;var Tne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketNotificationConfigurationCommand=Tne;var Bne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketOwnershipControlsCommand=Bne;var qne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketPolicyCommand=qne;var Dne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketPolicyStatusCommand=Dne;var Mne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketReplicationCommand=Mne;var Fne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketRequestPaymentCommand=Fne;var Lne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketTaggingCommand=Lne;var jne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketVersioningCommand=jne;var Une=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetBucketWebsiteCommand=Une;var zne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"if-match":e.IfMatch,"if-modified-since":[()=>E(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>E(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:a,path:i,query:u,body:l})};p.se_GetObjectCommand=zne;var Gne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetObjectAclCommand=Gne;var Hne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"x-amz-max-parts":[()=>E(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":[()=>E(e.ObjectAttributes),()=>(e.ObjectAttributes||[]).map(c=>c).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:a,path:i,query:u,body:l})};p.se_GetObjectAttributesCommand=Hne;var $ne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetObjectLegalHoldCommand=$ne;var Kne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetObjectLockConfigurationCommand=Kne;var Vne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetObjectRetentionCommand=Vne;var Xne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetObjectTaggingCommand=Xne;var Wne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetObjectTorrentCommand=Wne;var Yne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_GetPublicAccessBlockCommand=Yne;var Jne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,body:u})};p.se_HeadBucketCommand=Jne;var Qne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"if-match":e.IfMatch,"if-modified-since":[()=>E(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>E(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:a,path:i,query:u,body:l})};p.se_HeadObjectCommand=Qne;var Zne=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_ListBucketAnalyticsConfigurationsCommand=Zne;var ere=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a={},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:a,path:i,query:u,body:l})};p.se_ListBucketIntelligentTieringConfigurationsCommand=ere;var tre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_ListBucketInventoryConfigurationsCommand=tre;var nre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_ListBucketMetricsConfigurationsCommand=nre;var rre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a={"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:a,path:i,body:u})};p.se_ListBucketsCommand=rre;var ore=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_ListMultipartUploadsCommand=ore;var sre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>E(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(c=>c).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:a,path:i,query:u,body:l})};p.se_ListObjectsCommand=sre;var ire=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>E(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(c=>c).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:a,path:i,query:u,body:l})};p.se_ListObjectsV2Command=ire;var are=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer,"x-amz-optional-object-attributes":[()=>E(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(c=>c).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:a,path:i,query:u,body:l})};p.se_ListObjectVersionsCommand=are;var cre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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:a,path:i,query:u,body:l})};p.se_ListPartsCommand=cre;var dre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=bq(e.AccelerateConfiguration,n));let c;return e.AccelerateConfiguration!==void 0&&(c=bq(e.AccelerateConfiguration,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketAccelerateConfigurationCommand=dre;var lre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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 c;return e.AccessControlPolicy!==void 0&&(c=ym(e.AccessControlPolicy,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketAclCommand=lre;var ure=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=Eq(e.AnalyticsConfiguration,n));let c;return e.AnalyticsConfiguration!==void 0&&(c=Eq(e.AnalyticsConfiguration,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketAnalyticsConfigurationCommand=ure;var mre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=xq(e.CORSConfiguration,n));let c;return e.CORSConfiguration!==void 0&&(c=xq(e.CORSConfiguration,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketCorsCommand=mre;var pre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=Uq(e.ServerSideEncryptionConfiguration,n));let c;return e.ServerSideEncryptionConfiguration!==void 0&&(c=Uq(e.ServerSideEncryptionConfiguration,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketEncryptionCommand=pre;var fre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a={"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=Oq(e.IntelligentTieringConfiguration,n));let c;return e.IntelligentTieringConfiguration!==void 0&&(c=Oq(e.IntelligentTieringConfiguration,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketIntelligentTieringConfigurationCommand=fre;var yre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=Nq(e.InventoryConfiguration,n));let c;return e.InventoryConfiguration!==void 0&&(c=Nq(e.InventoryConfiguration,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketInventoryConfigurationCommand=yre;var gre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=Pq(e.LifecycleConfiguration,n));let c;return e.LifecycleConfiguration!==void 0&&(c=Pq(e.LifecycleConfiguration,n),c=c.withName("LifecycleConfiguration"),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketLifecycleConfigurationCommand=gre;var hre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=vq(e.BucketLoggingStatus,n));let c;return e.BucketLoggingStatus!==void 0&&(c=vq(e.BucketLoggingStatus,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketLoggingCommand=hre;var _re=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=Iq(e.MetricsConfiguration,n));let c;return e.MetricsConfiguration!==void 0&&(c=Iq(e.MetricsConfiguration,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketMetricsConfigurationCommand=_re;var Cre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-skip-destination-validation":[()=>E(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=Rq(e.NotificationConfiguration,n));let c;return e.NotificationConfiguration!==void 0&&(c=Rq(e.NotificationConfiguration,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketNotificationConfigurationCommand=Cre;var Sre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=Dq(e.OwnershipControls,n));let c;return e.OwnershipControls!==void 0&&(c=Dq(e.OwnershipControls,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketOwnershipControlsCommand=Sre;var bre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"content-type":"text/plain","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-confirm-remove-self-bucket-access":[()=>E(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 c;return e.Policy!==void 0&&(c=e.Policy,l=c),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketPolicyCommand=bre;var Ere=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=Fq(e.ReplicationConfiguration,n));let c;return e.ReplicationConfiguration!==void 0&&(c=Fq(e.ReplicationConfiguration,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketReplicationCommand=Ere;var Pre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=Lq(e.RequestPaymentConfiguration,n));let c;return e.RequestPaymentConfiguration!==void 0&&(c=Lq(e.RequestPaymentConfiguration,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketRequestPaymentCommand=Pre;var vre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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 c;return e.Tagging!==void 0&&(c=ja(e.Tagging,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketTaggingCommand=vre;var wre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=zq(e.VersioningConfiguration,n));let c;return e.VersioningConfiguration!==void 0&&(c=zq(e.VersioningConfiguration,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketVersioningCommand=wre;var xre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=Gq(e.WebsiteConfiguration,n));let c;return e.WebsiteConfiguration!==void 0&&(c=Gq(e.WebsiteConfiguration,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutBucketWebsiteCommand=xre;var kre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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":[()=>E(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:[()=>E(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":[()=>E(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":[()=>E(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 c;return e.Body!==void 0&&(c=e.Body,l=c),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectCommand=kre;var Are=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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 c;return e.AccessControlPolicy!==void 0&&(c=ym(e.AccessControlPolicy,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectAclCommand=Are;var Ore=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=Bq(e.LegalHold,n));let c;return e.LegalHold!==void 0&&(c=Bq(e.LegalHold,n),c=c.withName("LegalHold"),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectLegalHoldCommand=Ore;var Nre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=Tq(e.ObjectLockConfiguration,n));let c;return e.ObjectLockConfiguration!==void 0&&(c=Tq(e.ObjectLockConfiguration,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectLockConfigurationCommand=Nre;var Ire=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>E(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=qq(e.Retention,n));let c;return e.Retention!==void 0&&(c=qq(e.Retention,n),c=c.withName("Retention"),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectRetentionCommand=Ire;var Rre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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 c;return e.Tagging!==void 0&&(c=ja(e.Tagging,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutObjectTaggingCommand=Rre;var Tre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=Mq(e.PublicAccessBlockConfiguration,n));let c;return e.PublicAccessBlockConfiguration!==void 0&&(c=Mq(e.PublicAccessBlockConfiguration,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_PutPublicAccessBlockCommand=Tre;var Bre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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=jq(e.RestoreRequest,n));let c;return e.RestoreRequest!==void 0&&(c=jq(e.RestoreRequest,n),l='',c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=c.toString()),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_RestoreObjectCommand=Bre;var qre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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 c=new f.XmlNode("SelectObjectContentRequest");if(c.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),e.Expression!==void 0){let y=f.XmlNode.of("Expression",e.Expression).withName("Expression");c.addChildNode(y)}if(e.ExpressionType!==void 0){let y=f.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");c.addChildNode(y)}if(e.InputSerialization!==void 0){let y=Xq(e.InputSerialization,n).withName("InputSerialization");c.addChildNode(y)}if(e.OutputSerialization!==void 0){let y=Wq(e.OutputSerialization,n).withName("OutputSerialization");c.addChildNode(y)}if(e.RequestProgress!==void 0){let y=jce(e.RequestProgress,n).withName("RequestProgress");c.addChildNode(y)}if(e.ScanRange!==void 0){let y=$ce(e.ScanRange,n).withName("ScanRange");c.addChildNode(y)}return l+=c.toString(),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:a,path:i,query:u,body:l})};p.se_SelectObjectContentCommand=qre;var Dre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"content-type":"application/octet-stream","content-length":[()=>E(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 c;return e.Body!==void 0&&(c=e.Body,l=c),new B.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:a,path:i,query:u,body:l})};p.se_UploadPartCommand=Dre;var Mre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>E(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>E(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:a,path:i,query:u,body:l})};p.se_UploadPartCopyCommand=Mre;var Fre=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),a=(0,d.map)({},E,{"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":[()=>E(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":[()=>E(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":[()=>E(e.DeleteMarker),()=>e.DeleteMarker.toString()],"x-amz-fwd-header-etag":e.ETag,"x-amz-fwd-header-expires":[()=>E(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-fwd-header-x-amz-expiration":e.Expiration,"x-amz-fwd-header-last-modified":[()=>E(e.LastModified),()=>(0,d.dateToUtcString)(e.LastModified).toString()],"x-amz-fwd-header-x-amz-missing-meta":[()=>E(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":[()=>E(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-fwd-header-x-amz-mp-parts-count":[()=>E(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":[()=>E(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":[()=>E(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 c;e.Body!==void 0&&(c=e.Body,l=c);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:a,path:i,query:u,body:l})};p.se_WriteGetObjectResponseCommand=Fre;var Lre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return jre(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=Lre;var jre=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 mae(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 zre(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 Z(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=Ure;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})},Gre=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Hre(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 Z(e.body,n));return t.CopyObjectResult=kde(r,n),t};p.de_CopyObjectCommand=Gre;var Hre=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 fae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},$re=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Kre(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=$re;var Kre=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 dae(t,n);case"BucketAlreadyOwnedByYou":case"com.amazonaws.s3#BucketAlreadyOwnedByYou":throw await lae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Vre=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Xre(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 Z(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=Vre;var Xre=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})},Wre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Yre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketCommand=Wre;var Yre=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!==204&&e.statusCode>=300)return Qre(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketAnalyticsConfigurationCommand=Jre;var Qre=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})},Zre=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return eoe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketCorsCommand=Zre;var eoe=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})},toe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return noe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketEncryptionCommand=toe;var noe=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!==204&&e.statusCode>=300)return ooe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketIntelligentTieringConfigurationCommand=roe;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})},soe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return ioe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketInventoryConfigurationCommand=soe;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})},aoe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return coe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketLifecycleCommand=aoe;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})},doe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return loe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketMetricsConfigurationCommand=doe;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})},uoe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return moe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketOwnershipControlsCommand=uoe;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})},poe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return foe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketPolicyCommand=poe;var foe=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!==204&&e.statusCode>=300)return goe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketReplicationCommand=yoe;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!==204&&e.statusCode>=300)return _oe(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketTaggingCommand=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})},Coe=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_DeleteBucketWebsiteCommand=Coe;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})},boe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Eoe(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=boe;var Eoe=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})},Poe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return voe(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 Z(e.body,n)),"body");return r.Deleted===""?t.Deleted=[]:r.Deleted!==void 0&&(t.Deleted=Tde((0,d.getArrayIfSingleItem)(r.Deleted),n)),r.Error===""?t.Errors=[]:r.Error!==void 0&&(t.Errors=zde((0,d.getArrayIfSingleItem)(r.Error),n)),t};p.de_DeleteObjectsCommand=Poe;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})},woe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return xoe(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=woe;var xoe=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!==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_DeletePublicAccessBlockCommand=koe;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})},Ooe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Noe(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 Z(e.body,n)),"body");return r.Status!==void 0&&(t.Status=(0,d.expectString)(r.Status)),t};p.de_GetBucketAccelerateConfigurationCommand=Ooe;var Noe=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!==200&&e.statusCode>=300)return Roe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,n)),"body");return r.AccessControlList===""?t.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(t.Grants=eD((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),n)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),t};p.de_GetBucketAclCommand=Ioe;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})},Toe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Boe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,n));return t.AnalyticsConfiguration=Jq(r,n),t};p.de_GetBucketAnalyticsConfigurationCommand=Toe;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})},qoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Doe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,n)),"body");return r.CORSRule===""?t.CORSRules=[]:r.CORSRule!==void 0&&(t.CORSRules=Nde((0,d.getArrayIfSingleItem)(r.CORSRule),n)),t};p.de_GetBucketCorsCommand=qoe;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})},Moe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Foe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,n));return t.ServerSideEncryptionConfiguration=nue(r,n),t};p.de_GetBucketEncryptionCommand=Moe;var Foe=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!==200&&e.statusCode>=300)return joe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,n));return t.IntelligentTieringConfiguration=nD(r,n),t};p.de_GetBucketIntelligentTieringConfigurationCommand=Loe;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})},Uoe=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 Z(e.body,n));return t.InventoryConfiguration=rD(r,n),t};p.de_GetBucketInventoryConfigurationCommand=Uoe;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})},Goe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Hoe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,n)),"body");return r.Rule===""?t.Rules=[]:r.Rule!==void 0&&(t.Rules=ple((0,d.getArrayIfSingleItem)(r.Rule),n)),t};p.de_GetBucketLifecycleConfigurationCommand=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 Koe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,n)),"body");return r.LocationConstraint!==void 0&&(t.LocationConstraint=(0,d.expectString)(r.LocationConstraint)),t};p.de_GetBucketLocationCommand=$oe;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})},Voe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Xoe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,n)),"body");return r.LoggingEnabled!==void 0&&(t.LoggingEnabled=fle(r.LoggingEnabled,n)),t};p.de_GetBucketLoggingCommand=Voe;var Xoe=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})},Woe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Yoe(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,n));return t.MetricsConfiguration=oD(r,n),t};p.de_GetBucketMetricsConfigurationCommand=Woe;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})},Joe=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.expectNonNull)((0,d.expectObject)(await Z(e.body,n)),"body");return r.EventBridgeConfiguration!==void 0&&(t.EventBridgeConfiguration=Gde(r.EventBridgeConfiguration,n)),r.CloudFunctionConfiguration===""?t.LambdaFunctionConfigurations=[]:r.CloudFunctionConfiguration!==void 0&&(t.LambdaFunctionConfigurations=cle((0,d.getArrayIfSingleItem)(r.CloudFunctionConfiguration),n)),r.QueueConfiguration===""?t.QueueConfigurations=[]:r.QueueConfiguration!==void 0&&(t.QueueConfigurations=zle((0,d.getArrayIfSingleItem)(r.QueueConfiguration),n)),r.TopicConfiguration===""?t.TopicConfigurations=[]:r.TopicConfiguration!==void 0&&(t.TopicConfigurations=hue((0,d.getArrayIfSingleItem)(r.TopicConfiguration),n)),t};p.de_GetBucketNotificationConfigurationCommand=Joe;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})},Zoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return ese(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,n));return t.OwnershipControls=Rle(r,n),t};p.de_GetBucketOwnershipControlsCommand=Zoe;var ese=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})},tse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return nse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=await cD(e.body,n);return t.Policy=(0,d.expectString)(r),t};p.de_GetBucketPolicyCommand=tse;var nse=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})},rse=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 Z(e.body,n));return t.PolicyStatus=Fle(r,n),t};p.de_GetBucketPolicyStatusCommand=rse;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})},sse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return ise(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,n));return t.ReplicationConfiguration=Kle(r,n),t};p.de_GetBucketReplicationCommand=sse;var ise=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 cse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,n)),"body");return r.Payer!==void 0&&(t.Payer=(0,d.expectString)(r.Payer)),t};p.de_GetBucketRequestPaymentCommand=ase;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})},dse=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 Z(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=dse;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})},use=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 Z(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=use;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})},pse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return fse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,n)),"body");return r.ErrorDocument!==void 0&&(t.ErrorDocument=Ude(r.ErrorDocument,n)),r.IndexDocument!==void 0&&(t.IndexDocument=Yde(r.IndexDocument,n)),r.RedirectAllRequestsTo!==void 0&&(t.RedirectAllRequestsTo=Hle(r.RedirectAllRequestsTo,n)),r.RoutingRules===""?t.RoutingRules=[]:r.RoutingRules!==void 0&&r.RoutingRules.RoutingRule!==void 0&&(t.RoutingRules=Zle((0,d.getArrayIfSingleItem)(r.RoutingRules.RoutingRule),n)),t};p.de_GetBucketWebsiteCommand=pse;var fse=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 gse(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=yse;var gse=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 uae(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})}},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 Z(e.body,n)),"body");return r.AccessControlList===""?t.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(t.Grants=eD((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),n)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),t};p.de_GetObjectAclCommand=hse;var _se=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})}},Cse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Sse(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 Z(e.body,n)),"body");return r.Checksum!==void 0&&(t.Checksum=Pde(r.Checksum,n)),r.ETag!==void 0&&(t.ETag=(0,d.expectString)(r.ETag)),r.ObjectParts!==void 0&&(t.ObjectParts=Xde(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=Cse;var Sse=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})}},bse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ese(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,n));return t.LegalHold=xle(r,n),t};p.de_GetObjectLegalHoldCommand=bse;var Ese=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})},Pse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return vse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,n));return t.ObjectLockConfiguration=wle(r,n),t};p.de_GetObjectLockConfigurationCommand=Pse;var vse=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})},wse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return xse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,n));return t.Retention=kle(r,n),t};p.de_GetObjectRetentionCommand=wse;var xse=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 Ase(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 Z(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=kse;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})},Ose=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Nse(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=Ose;var Nse=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 Rse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectObject)(await Z(e.body,n));return t.PublicAccessBlockConfiguration=jle(r,n),t};p.de_GetPublicAccessBlockCommand=Ise;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})},Tse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Bse(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_HeadBucketCommand=Tse;var Bse=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 $q(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},qse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Dse(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=qse;var Dse=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 $q(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 Fse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,n)),"body");return r.AnalyticsConfiguration===""?t.AnalyticsConfigurationList=[]:r.AnalyticsConfiguration!==void 0&&(t.AnalyticsConfigurationList=hde((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=Mse;var Fse=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 jse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(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=Qde((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=Lse;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})},Use=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 Z(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=ele((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=Use;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})},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.expectNonNull)((0,d.expectObject)(await Z(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=hle((0,d.getArrayIfSingleItem)(r.MetricsConfiguration),n)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketMetricsConfigurationsCommand=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 Kse(e,n);let t=(0,d.map)({$metadata:I(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await Z(e.body,n)),"body");return r.Buckets===""?t.Buckets=[]:r.Buckets!==void 0&&r.Buckets.Bucket!==void 0&&(t.Buckets=Ede((0,d.getArrayIfSingleItem)(r.Buckets.Bucket),n)),r.Owner!==void 0&&(t.Owner=er(r.Owner,n)),t};p.de_ListBucketsCommand=$se;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})},Vse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Xse(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 Z(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=Sle((0,d.getArrayIfSingleItem)(r.Upload),n)),t};p.de_ListMultipartUploadsCommand=Vse;var Xse=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})},Wse=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 Z(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=sD((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=Wse;var Yse=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 Hq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Jse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Qse(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 Z(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=sD((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=Jse;var Qse=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 Hq(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},Zse=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return eie(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 Z(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=Dde((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=Ile((0,d.getArrayIfSingleItem)(r.Version),n)),t};p.de_ListObjectVersionsCommand=Zse;var eie=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})},tie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return nie(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 Z(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=tD(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=Dle((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=tie;var nie=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 oie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAccelerateConfigurationCommand=rie;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})},sie=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_PutBucketAclCommand=sie;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})},aie=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_PutBucketAnalyticsConfigurationCommand=aie;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})},die=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return lie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketCorsCommand=die;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})},uie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return mie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketEncryptionCommand=uie;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})},pie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return fie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketIntelligentTieringConfigurationCommand=pie;var fie=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 gie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketInventoryConfigurationCommand=yie;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)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketLifecycleConfigurationCommand=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})},Cie=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_PutBucketLoggingCommand=Cie;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})},bie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Eie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketMetricsConfigurationCommand=bie;var Eie=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})},Pie=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_PutBucketNotificationConfigurationCommand=Pie;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})},wie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return xie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketOwnershipControlsCommand=wie;var xie=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 Aie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketPolicyCommand=kie;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})},Oie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Nie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketReplicationCommand=Oie;var Nie=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 Rie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketRequestPaymentCommand=Iie;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})},Tie=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_PutBucketTaggingCommand=Tie;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})},qie=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_PutBucketVersioningCommand=qie;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})},Mie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Fie(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketWebsiteCommand=Mie;var Fie=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 jie(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=Lie;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})},Uie=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_PutObjectAclCommand=Uie;var zie=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})}},Gie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Hie(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=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 Kie(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=$ie;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})},Vie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Xie(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=Vie;var Xie=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})},Wie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Yie(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=Wie;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})},Jie=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_PutPublicAccessBlockCommand=Jie;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})},Zie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return eae(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=Zie;var eae=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 pae(t,n);default:let o=t.body;return D({output:e,parsedBody:o,errorCode:r})}},tae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return nae(e,n);let t=(0,d.map)({$metadata:I(e)}),r=e.body;return t.Payload=yae(r,n),t};p.de_SelectObjectContentCommand=tae;var nae=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})},rae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return oae(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=rae;var oae=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})},sae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return iae(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 Z(e.body,n));return t.CopyPartResult=Ade(r,n),t};p.de_UploadPartCopyCommand=sae;var iae=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})},aae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return cae(e,n);let t=(0,d.map)({$metadata:I(e)});return await(0,d.collectBody)(e.body,n),t};p.de_WriteGetObjectResponseCommand=aae;var cae=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)(Zte.S3ServiceException),dae=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)},lae=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)},uae=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)},Hq=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)},mae=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)},$q=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)},pae=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new Qte.ObjectAlreadyInActiveTierError({$metadata:I(e),...t});return(0,d.decorateServiceException)(o,e.body)},fae=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)},yae=(e,n)=>n.eventStreamMarshaller.deserialize(e,async t=>t.Records!=null?{Records:await Cae(t.Records,n)}:t.Stats!=null?{Stats:await Sae(t.Stats,n)}:t.Progress!=null?{Progress:await _ae(t.Progress,n)}:t.Cont!=null?{Cont:await gae(t.Cont,n)}:t.End!=null?{End:await hae(t.End,n)}:{$unknown:e}),gae=async(e,n)=>{let t={},r=await Z(e.body,n);return Object.assign(t,xde(r,n)),t},hae=async(e,n)=>{let t={},r=await Z(e.body,n);return Object.assign(t,Lde(r,n)),t},_ae=async(e,n)=>{let t={},r=await Z(e.body,n);return t.Details=Lle(r,n),t},Cae=async(e,n)=>{let t={};return t.Payload=e.body,t},Sae=async(e,n)=>{let t={},r=await Z(e.body,n);return t.Details=due(r,n),t},bae=(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},bq=(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=Vq(e.Grants,n),o=new f.XmlNode("AccessControlList");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Owner!=null){let r=xce(e.Owner,n).withName("Owner");t.addChildNode(r)}return t},Eae=(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},Pae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedHeader",t).withName("member")),vae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedMethod",t).withName("member")),wae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedOrigin",t).withName("member")),xae=(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&&No(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},Eq=(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=Aae(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.StorageClassAnalysis!=null){let r=ede(e.StorageClassAnalysis,n).withName("StorageClassAnalysis");t.addChildNode(r)}return t},kae=(e,n)=>{let t=new f.XmlNode("AnalyticsExportDestination");if(e.S3BucketDestination!=null){let r=Oae(e.S3BucketDestination,n).withName("S3BucketDestination");t.addChildNode(r)}return t},Aae=(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=Oo(r,n).withName("Tag");t.addChildNode(o)},And:r=>{let o=xae(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},Oae=(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},Pq=(e,n)=>{let t=new f.XmlNode("BucketLifecycleConfiguration");return e.Rules!=null&&pce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},vq=(e,n)=>{let t=new f.XmlNode("BucketLoggingStatus");if(e.LoggingEnabled!=null){let r=fce(e.LoggingEnabled,n).withName("LoggingEnabled");t.addChildNode(r)}return t},wq=(e,n)=>{let t=new f.XmlNode("CompletedMultipartUpload");return e.Parts!=null&&Iae(e.Parts,n).map(o=>{o=o.withName("Part"),t.addChildNode(o)}),t},Nae=(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},Iae=(e,n)=>e.filter(t=>t!=null).map(t=>Nae(t,n).withName("member")),Rae=(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},xq=(e,n)=>{let t=new f.XmlNode("CORSConfiguration");return e.CORSRules!=null&&Bae(e.CORSRules,n).map(o=>{o=o.withName("CORSRule"),t.addChildNode(o)}),t},Tae=(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&&Pae(e.AllowedHeaders,n).map(o=>{o=o.withName("AllowedHeader"),t.addChildNode(o)}),e.AllowedMethods!=null&&vae(e.AllowedMethods,n).map(o=>{o=o.withName("AllowedMethod"),t.addChildNode(o)}),e.AllowedOrigins!=null&&wae(e.AllowedOrigins,n).map(o=>{o=o.withName("AllowedOrigin"),t.addChildNode(o)}),e.ExposeHeaders!=null&&$ae(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},Bae=(e,n)=>e.filter(t=>t!=null).map(t=>Tae(t,n).withName("member")),kq=(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},qae=(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},Dae=(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},Mae=(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},Aq=(e,n)=>{let t=new f.XmlNode("Delete");if(e.Objects!=null&&Pce(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},Fae=(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},Lae=(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=Eae(e.AccessControlTranslation,n).withName("AccessControlTranslation");t.addChildNode(r)}if(e.EncryptionConfiguration!=null){let r=Uae(e.EncryptionConfiguration,n).withName("EncryptionConfiguration");t.addChildNode(r)}if(e.ReplicationTime!=null){let r=Lce(e.ReplicationTime,n).withName("ReplicationTime");t.addChildNode(r)}if(e.Metrics!=null){let r=gce(e.Metrics,n).withName("Metrics");t.addChildNode(r)}return t},jae=(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},Uae=(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},zae=(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},Gae=(e,n)=>new f.XmlNode("EventBridgeConfiguration"),ah=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("Event",t).withName("member")),Hae=(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},$ae=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("ExposeHeader",t).withName("member")),Kae=(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},Vae=(e,n)=>e.filter(t=>t!=null).map(t=>Kae(t,n).withName("member")),Xae=(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},Wae=(e,n)=>{let t=new f.XmlNode("Grant");if(e.Grantee!=null){let r=Kq(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},Kq=(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},Vq=(e,n)=>e.filter(t=>t!=null).map(t=>Wae(t,n).withName("Grant")),Yae=(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},Xq=(e,n)=>{let t=new f.XmlNode("InputSerialization");if(e.CSV!=null){let r=qae(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=sce(e.JSON,n).withName("JSON");t.addChildNode(r)}if(e.Parquet!=null){let r=Oce(e.Parquet,n).withName("Parquet");t.addChildNode(r)}return t},Jae=(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&&No(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},Oq=(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=Qae(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&&sde(e.Tierings,n).map(o=>{o=o.withName("Tiering"),t.addChildNode(o)}),t},Qae=(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=Oo(e.Tag,n).withName("Tag");t.addChildNode(r)}if(e.And!=null){let r=Jae(e.And,n).withName("And");t.addChildNode(r)}return t},Nq=(e,n)=>{let t=new f.XmlNode("InventoryConfiguration");if(e.Destination!=null){let r=Zae(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=tce(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=nce(e.OptionalFields,n),o=new f.XmlNode("OptionalFields");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Schedule!=null){let r=oce(e.Schedule,n).withName("Schedule");t.addChildNode(r)}return t},Zae=(e,n)=>{let t=new f.XmlNode("InventoryDestination");if(e.S3BucketDestination!=null){let r=rce(e.S3BucketDestination,n).withName("S3BucketDestination");t.addChildNode(r)}return t},ece=(e,n)=>{let t=new f.XmlNode("InventoryEncryption");if(e.SSES3!=null){let r=Zce(e.SSES3,n).withName("SSE-S3");t.addChildNode(r)}if(e.SSEKMS!=null){let r=Jce(e.SSEKMS,n).withName("SSE-KMS");t.addChildNode(r)}return t},tce=(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},nce=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("InventoryOptionalField",t).withName("Field")),rce=(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=ece(e.Encryption,n).withName("Encryption");t.addChildNode(r)}return t},oce=(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},sce=(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},ice=(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},ace=(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&&ah(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=ch(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},cce=(e,n)=>e.filter(t=>t!=null).map(t=>ace(t,n).withName("member")),dce=(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},lce=(e,n)=>{let t=new f.XmlNode("LifecycleRule");if(e.Expiration!=null){let r=dce(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=mce(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&&dde(e.Transitions,n).map(o=>{o=o.withName("Transition"),t.addChildNode(o)}),e.NoncurrentVersionTransitions!=null&&bce(e.NoncurrentVersionTransitions,n).map(o=>{o=o.withName("NoncurrentVersionTransition"),t.addChildNode(o)}),e.NoncurrentVersionExpiration!=null){let r=Cce(e.NoncurrentVersionExpiration,n).withName("NoncurrentVersionExpiration");t.addChildNode(r)}if(e.AbortIncompleteMultipartUpload!=null){let r=bae(e.AbortIncompleteMultipartUpload,n).withName("AbortIncompleteMultipartUpload");t.addChildNode(r)}return t},uce=(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&&No(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},mce=(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=Oo(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=uce(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},pce=(e,n)=>e.filter(t=>t!=null).map(t=>lce(t,n).withName("member")),fce=(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=rde(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},yce=(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},gce=(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=Yq(e.EventThreshold,n).withName("EventThreshold");t.addChildNode(r)}return t},hce=(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&&No(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},Iq=(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=_ce(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},_ce=(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=Oo(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=hce(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)=>{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},Sce=(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},bce=(e,n)=>e.filter(t=>t!=null).map(t=>Sce(t,n).withName("member")),Rq=(e,n)=>{let t=new f.XmlNode("NotificationConfiguration");if(e.TopicConfigurations!=null&&ade(e.TopicConfigurations,n).map(o=>{o=o.withName("TopicConfiguration"),t.addChildNode(o)}),e.QueueConfigurations!=null&&Ice(e.QueueConfigurations,n).map(o=>{o=o.withName("QueueConfiguration"),t.addChildNode(o)}),e.LambdaFunctionConfigurations!=null&&cce(e.LambdaFunctionConfigurations,n).map(o=>{o=o.withName("CloudFunctionConfiguration"),t.addChildNode(o)}),e.EventBridgeConfiguration!=null){let r=Gae(e.EventBridgeConfiguration,n).withName("EventBridgeConfiguration");t.addChildNode(r)}return t},ch=(e,n)=>{let t=new f.XmlNode("NotificationConfigurationFilter");if(e.Key!=null){let r=Gce(e.Key,n).withName("S3Key");t.addChildNode(r)}return t},Ece=(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},Pce=(e,n)=>e.filter(t=>t!=null).map(t=>Ece(t,n).withName("member")),Tq=(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=vce(e.Rule,n).withName("Rule");t.addChildNode(r)}return t},Bq=(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},qq=(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},vce=(e,n)=>{let t=new f.XmlNode("ObjectLockRule");if(e.DefaultRetention!=null){let r=Mae(e.DefaultRetention,n).withName("DefaultRetention");t.addChildNode(r)}return t},wce=(e,n)=>{let t=new f.XmlNode("OutputLocation");if(e.S3!=null){let r=Hce(e.S3,n).withName("S3");t.addChildNode(r)}return t},Wq=(e,n)=>{let t=new f.XmlNode("OutputSerialization");if(e.CSV!=null){let r=Dae(e.CSV,n).withName("CSV");t.addChildNode(r)}if(e.JSON!=null){let r=ice(e.JSON,n).withName("JSON");t.addChildNode(r)}return t},xce=(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},Dq=(e,n)=>{let t=new f.XmlNode("OwnershipControls");return e.Rules!=null&&Ace(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},kce=(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},Ace=(e,n)=>e.filter(t=>t!=null).map(t=>kce(t,n).withName("member")),Oce=(e,n)=>new f.XmlNode("ParquetInput"),Mq=(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},Nce=(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&&ah(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=ch(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},Ice=(e,n)=>e.filter(t=>t!=null).map(t=>Nce(t,n).withName("member")),Rce=(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},Tce=(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},Bce=(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},Fq=(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&&Fce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},qce=(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=Mce(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=Yce(e.SourceSelectionCriteria,n).withName("SourceSelectionCriteria");t.addChildNode(r)}if(e.ExistingObjectReplication!=null){let r=Hae(e.ExistingObjectReplication,n).withName("ExistingObjectReplication");t.addChildNode(r)}if(e.Destination!=null){let r=Lae(e.Destination,n).withName("Destination");t.addChildNode(r)}if(e.DeleteMarkerReplication!=null){let r=Fae(e.DeleteMarkerReplication,n).withName("DeleteMarkerReplication");t.addChildNode(r)}return t},Dce=(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&&No(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},Mce=(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=Oo(r,n).withName("Tag");t.addChildNode(o)},And:r=>{let o=Dce(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)=>e.filter(t=>t!=null).map(t=>qce(t,n).withName("member")),Lce=(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=Yq(e.Time,n).withName("Time");t.addChildNode(r)}return t},Yq=(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},Lq=(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},jce=(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},jq=(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=Xae(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=Kce(e.SelectParameters,n).withName("SelectParameters");t.addChildNode(r)}if(e.OutputLocation!=null){let r=wce(e.OutputLocation,n).withName("OutputLocation");t.addChildNode(r)}return t},Uce=(e,n)=>{let t=new f.XmlNode("RoutingRule");if(e.Condition!=null){let r=Rae(e.Condition,n).withName("Condition");t.addChildNode(r)}if(e.Redirect!=null){let r=Rce(e.Redirect,n).withName("Redirect");t.addChildNode(r)}return t},zce=(e,n)=>e.filter(t=>t!=null).map(t=>Uce(t,n).withName("RoutingRule")),Gce=(e,n)=>{let t=new f.XmlNode("S3KeyFilter");return e.FilterRules!=null&&Vae(e.FilterRules,n).map(o=>{o=o.withName("FilterRule"),t.addChildNode(o)}),t},Hce=(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=jae(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=Vq(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=lde(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},$ce=(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},Kce=(e,n)=>{let t=new f.XmlNode("SelectParameters");if(e.InputSerialization!=null){let r=Xq(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=Wq(e.OutputSerialization,n).withName("OutputSerialization");t.addChildNode(r)}return t},Vce=(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},Uq=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionConfiguration");return e.Rules!=null&&Wce(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},Xce=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionRule");if(e.ApplyServerSideEncryptionByDefault!=null){let r=Vce(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},Wce=(e,n)=>e.filter(t=>t!=null).map(t=>Xce(t,n).withName("member")),Yce=(e,n)=>{let t=new f.XmlNode("SourceSelectionCriteria");if(e.SseKmsEncryptedObjects!=null){let r=Qce(e.SseKmsEncryptedObjects,n).withName("SseKmsEncryptedObjects");t.addChildNode(r)}if(e.ReplicaModifications!=null){let r=Bce(e.ReplicaModifications,n).withName("ReplicaModifications");t.addChildNode(r)}return t},Jce=(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},Qce=(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},Zce=(e,n)=>new f.XmlNode("SSE-S3"),ede=(e,n)=>{let t=new f.XmlNode("StorageClassAnalysis");if(e.DataExport!=null){let r=tde(e.DataExport,n).withName("DataExport");t.addChildNode(r)}return t},tde=(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=kae(e.Destination,n).withName("Destination");t.addChildNode(r)}return t},Oo=(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=No(e.TagSet,n),o=new f.XmlNode("TagSet");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}return t},No=(e,n)=>e.filter(t=>t!=null).map(t=>Oo(t,n).withName("Tag")),nde=(e,n)=>{let t=new f.XmlNode("TargetGrant");if(e.Grantee!=null){let r=Kq(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},rde=(e,n)=>e.filter(t=>t!=null).map(t=>nde(t,n).withName("Grant")),ode=(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},sde=(e,n)=>e.filter(t=>t!=null).map(t=>ode(t,n).withName("member")),ide=(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&&ah(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=ch(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},ade=(e,n)=>e.filter(t=>t!=null).map(t=>ide(t,n).withName("member")),cde=(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},dde=(e,n)=>e.filter(t=>t!=null).map(t=>cde(t,n).withName("member")),lde=(e,n)=>e.filter(t=>t!=null).map(t=>yce(t,n).withName("MetadataEntry")),zq=(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},Gq=(e,n)=>{let t=new f.XmlNode("WebsiteConfiguration");if(e.ErrorDocument!=null){let r=zae(e.ErrorDocument,n).withName("ErrorDocument");t.addChildNode(r)}if(e.IndexDocument!=null){let r=Yae(e.IndexDocument,n).withName("IndexDocument");t.addChildNode(r)}if(e.RedirectAllRequestsTo!=null){let r=Tce(e.RedirectAllRequestsTo,n).withName("RedirectAllRequestsTo");t.addChildNode(r)}if(e.RoutingRules!=null){let r=zce(e.RoutingRules,n),o=new f.XmlNode("RoutingRules");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}return t},ude=(e,n)=>{let t={};return e.DaysAfterInitiation!==void 0&&(t.DaysAfterInitiation=(0,d.strictParseInt32)(e.DaysAfterInitiation)),t},mde=(e,n)=>{let t={};return e.Owner!==void 0&&(t.Owner=(0,d.expectString)(e.Owner)),t},pde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),fde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),yde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),gde=(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},Jq=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(t.Filter=Cde((0,d.expectUnion)(e.Filter),n)),e.StorageClassAnalysis!==void 0&&(t.StorageClassAnalysis=lue(e.StorageClassAnalysis,n)),t},hde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Jq(t,n)),_de=(e,n)=>{let t={};return e.S3BucketDestination!==void 0&&(t.S3BucketDestination=Sde(e.S3BucketDestination,n)),t},Cde=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Io(e.Tag,n)}:e.And!==void 0?{And:gde(e.And,n)}:{$unknown:Object.entries(e)[0]},Sde=(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},bde=(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},Ede=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>bde(t,n)),Pde=(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},Qq=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),vde=(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=>vde(t,n)),wde=(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},xde=(e,n)=>({}),kde=(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},Ade=(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},Ode=(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=pde((0,d.getArrayIfSingleItem)(e.AllowedHeader),n)),e.AllowedMethod===""?t.AllowedMethods=[]:e.AllowedMethod!==void 0&&(t.AllowedMethods=fde((0,d.getArrayIfSingleItem)(e.AllowedMethod),n)),e.AllowedOrigin===""?t.AllowedOrigins=[]:e.AllowedOrigin!==void 0&&(t.AllowedOrigins=yde((0,d.getArrayIfSingleItem)(e.AllowedOrigin),n)),e.ExposeHeader===""?t.ExposeHeaders=[]:e.ExposeHeader!==void 0&&(t.ExposeHeaders=$de((0,d.getArrayIfSingleItem)(e.ExposeHeader),n)),e.MaxAgeSeconds!==void 0&&(t.MaxAgeSeconds=(0,d.strictParseInt32)(e.MaxAgeSeconds)),t},Nde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ode(t,n)),Ide=(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},Rde=(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},Tde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Rde(t,n)),Bde=(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},qde=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Dde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Bde(t,n)),Mde=(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=mde(e.AccessControlTranslation,n)),e.EncryptionConfiguration!==void 0&&(t.EncryptionConfiguration=Fde(e.EncryptionConfiguration,n)),e.ReplicationTime!==void 0&&(t.ReplicationTime=Jle(e.ReplicationTime,n)),e.Metrics!==void 0&&(t.Metrics=yle(e.Metrics,n)),t},Fde=(e,n)=>{let t={};return e.ReplicaKmsKeyID!==void 0&&(t.ReplicaKmsKeyID=(0,d.expectString)(e.ReplicaKmsKeyID)),t},Lde=(e,n)=>({}),jde=(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},Ude=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),t},zde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>jde(t,n)),Gde=(e,n)=>({}),dh=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Hde=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},$de=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Kde=(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},Vde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Kde(t,n)),Xde=(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=Mle((0,d.getArrayIfSingleItem)(e.Part),n)),t},Wde=(e,n)=>{let t={};return e.Grantee!==void 0&&(t.Grantee=Zq(e.Grantee,n)),e.Permission!==void 0&&(t.Permission=(0,d.expectString)(e.Permission)),t},Zq=(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},eD=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Wde(t,n)),Yde=(e,n)=>{let t={};return e.Suffix!==void 0&&(t.Suffix=(0,d.expectString)(e.Suffix)),t},tD=(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},Jde=(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},nD=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter!==void 0&&(t.Filter=Zde(e.Filter,n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Tiering===""?t.Tierings=[]:e.Tiering!==void 0&&(t.Tierings=yue((0,d.getArrayIfSingleItem)(e.Tiering),n)),t},Qde=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>nD(t,n)),Zde=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag!==void 0&&(t.Tag=Io(e.Tag,n)),e.And!==void 0&&(t.And=Jde(e.And,n)),t},rD=(e,n)=>{let t={};return e.Destination!==void 0&&(t.Destination=tle(e.Destination,n)),e.IsEnabled!==void 0&&(t.IsEnabled=(0,d.parseBoolean)(e.IsEnabled)),e.Filter!==void 0&&(t.Filter=rle(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=ole((0,d.getArrayIfSingleItem)(e.OptionalFields.Field),n)),e.Schedule!==void 0&&(t.Schedule=ile(e.Schedule,n)),t},ele=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>rD(t,n)),tle=(e,n)=>{let t={};return e.S3BucketDestination!==void 0&&(t.S3BucketDestination=sle(e.S3BucketDestination,n)),t},nle=(e,n)=>{let t={};return e["SSE-S3"]!==void 0&&(t.SSES3=cue(e["SSE-S3"],n)),e["SSE-KMS"]!==void 0&&(t.SSEKMS=iue(e["SSE-KMS"],n)),t},rle=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},ole=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),sle=(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=nle(e.Encryption,n)),t},ile=(e,n)=>{let t={};return e.Frequency!==void 0&&(t.Frequency=(0,d.expectString)(e.Frequency)),t},ale=(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=dh((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=lh(e.Filter,n)),t},cle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>ale(t,n)),dle=(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},lle=(e,n)=>{let t={};return e.Expiration!==void 0&&(t.Expiration=dle(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=mle((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=Cue((0,d.getArrayIfSingleItem)(e.Transition),n)),e.NoncurrentVersionTransition===""?t.NoncurrentVersionTransitions=[]:e.NoncurrentVersionTransition!==void 0&&(t.NoncurrentVersionTransitions=Ple((0,d.getArrayIfSingleItem)(e.NoncurrentVersionTransition),n)),e.NoncurrentVersionExpiration!==void 0&&(t.NoncurrentVersionExpiration=ble(e.NoncurrentVersionExpiration,n)),e.AbortIncompleteMultipartUpload!==void 0&&(t.AbortIncompleteMultipartUpload=ude(e.AbortIncompleteMultipartUpload,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.ObjectSizeGreaterThan!==void 0&&(t.ObjectSizeGreaterThan=(0,d.strictParseLong)(e.ObjectSizeGreaterThan)),e.ObjectSizeLessThan!==void 0&&(t.ObjectSizeLessThan=(0,d.strictParseLong)(e.ObjectSizeLessThan)),t},mle=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Io(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:ule(e.And,n)}:{$unknown:Object.entries(e)[0]},ple=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>lle(t,n)),fle=(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=pue((0,d.getArrayIfSingleItem)(e.TargetGrants.Grant),n)),e.TargetPrefix!==void 0&&(t.TargetPrefix=(0,d.expectString)(e.TargetPrefix)),t},yle=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.EventThreshold!==void 0&&(t.EventThreshold=iD(e.EventThreshold,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)),e.AccessPointArn!==void 0&&(t.AccessPointArn=(0,d.expectString)(e.AccessPointArn)),t},oD=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(t.Filter=_le((0,d.expectUnion)(e.Filter),n)),t},hle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>oD(t,n)),_le=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Io(e.Tag,n)}:e.AccessPointArn!==void 0?{AccessPointArn:(0,d.expectString)(e.AccessPointArn)}:e.And!==void 0?{And:gle(e.And,n)}:{$unknown:Object.entries(e)[0]},Cle=(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=tD(e.Initiator,n)),e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=(0,d.expectString)(e.ChecksumAlgorithm)),t},Sle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Cle(t,n)),ble=(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},Ele=(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},Ple=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ele(t,n)),lh=(e,n)=>{let t={};return e.S3Key!==void 0&&(t.Key=eue(e.S3Key,n)),t},vle=(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=Qq((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=aD(e.RestoreStatus,n)),t},sD=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>vle(t,n)),wle=(e,n)=>{let t={};return e.ObjectLockEnabled!==void 0&&(t.ObjectLockEnabled=(0,d.expectString)(e.ObjectLockEnabled)),e.Rule!==void 0&&(t.Rule=Ale(e.Rule,n)),t},xle=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},kle=(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},Ale=(e,n)=>{let t={};return e.DefaultRetention!==void 0&&(t.DefaultRetention=Ide(e.DefaultRetention,n)),t},Ole=(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},Nle=(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=Qq((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=aD(e.RestoreStatus,n)),t},Ile=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Nle(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},Rle=(e,n)=>{let t={};return e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=Ble((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Tle=(e,n)=>{let t={};return e.ObjectOwnership!==void 0&&(t.ObjectOwnership=(0,d.expectString)(e.ObjectOwnership)),t},Ble=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Tle(t,n)),qle=(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},Dle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>qle(t,n)),Mle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ole(t,n)),Fle=(e,n)=>{let t={};return e.IsPublic!==void 0&&(t.IsPublic=(0,d.parseBoolean)(e.IsPublic)),t},Lle=(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},jle=(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},Ule=(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=dh((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=lh(e.Filter,n)),t},zle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ule(t,n)),Gle=(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},Hle=(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},$le=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Kle=(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=Yle((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Vle=(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=Wle((0,d.expectUnion)(e.Filter),n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.SourceSelectionCriteria!==void 0&&(t.SourceSelectionCriteria=sue(e.SourceSelectionCriteria,n)),e.ExistingObjectReplication!==void 0&&(t.ExistingObjectReplication=Hde(e.ExistingObjectReplication,n)),e.Destination!==void 0&&(t.Destination=Mde(e.Destination,n)),e.DeleteMarkerReplication!==void 0&&(t.DeleteMarkerReplication=qde(e.DeleteMarkerReplication,n)),t},Xle=(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},Wle=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Io(e.Tag,n)}:e.And!==void 0?{And:Xle(e.And,n)}:{$unknown:Object.entries(e)[0]},Yle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Vle(t,n)),Jle=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Time!==void 0&&(t.Time=iD(e.Time,n)),t},iD=(e,n)=>{let t={};return e.Minutes!==void 0&&(t.Minutes=(0,d.strictParseInt32)(e.Minutes)),t},aD=(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},Qle=(e,n)=>{let t={};return e.Condition!==void 0&&(t.Condition=wde(e.Condition,n)),e.Redirect!==void 0&&(t.Redirect=Gle(e.Redirect,n)),t},Zle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Qle(t,n)),eue=(e,n)=>{let t={};return e.FilterRule===""?t.FilterRules=[]:e.FilterRule!==void 0&&(t.FilterRules=Vde((0,d.getArrayIfSingleItem)(e.FilterRule),n)),t},tue=(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},nue=(e,n)=>{let t={};return e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=oue((0,d.getArrayIfSingleItem)(e.Rule),n)),t},rue=(e,n)=>{let t={};return e.ApplyServerSideEncryptionByDefault!==void 0&&(t.ApplyServerSideEncryptionByDefault=tue(e.ApplyServerSideEncryptionByDefault,n)),e.BucketKeyEnabled!==void 0&&(t.BucketKeyEnabled=(0,d.parseBoolean)(e.BucketKeyEnabled)),t},oue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>rue(t,n)),sue=(e,n)=>{let t={};return e.SseKmsEncryptedObjects!==void 0&&(t.SseKmsEncryptedObjects=aue(e.SseKmsEncryptedObjects,n)),e.ReplicaModifications!==void 0&&(t.ReplicaModifications=$le(e.ReplicaModifications,n)),t},iue=(e,n)=>{let t={};return e.KeyId!==void 0&&(t.KeyId=(0,d.expectString)(e.KeyId)),t},aue=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},cue=(e,n)=>({}),due=(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},lue=(e,n)=>{let t={};return e.DataExport!==void 0&&(t.DataExport=uue(e.DataExport,n)),t},uue=(e,n)=>{let t={};return e.OutputSchemaVersion!==void 0&&(t.OutputSchemaVersion=(0,d.expectString)(e.OutputSchemaVersion)),e.Destination!==void 0&&(t.Destination=_de(e.Destination,n)),t},Io=(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=>Io(t,n)),mue=(e,n)=>{let t={};return e.Grantee!==void 0&&(t.Grantee=Zq(e.Grantee,n)),e.Permission!==void 0&&(t.Permission=(0,d.expectString)(e.Permission)),t},pue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>mue(t,n)),fue=(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},yue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>fue(t,n)),gue=(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=dh((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=lh(e.Filter,n)),t},hue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>gue(t,n)),_ue=(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},Cue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>_ue(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"]}),cD=(e,n)=>(0,d.collectBody)(e,n).then(t=>n.utf8Encoder(t)),E=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Z=(e,n)=>cD(e,n).then(t=>{if(t.length){let r=new Jte.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",a=Object.keys(o)[0],i=o[a];return i[s]&&(i[a]=i[s],delete i[s]),(0,d.getValueFromTextNode)(i)}return{}}),M=async(e,n)=>{let t=await Z(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 mh=m(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.AbortMultipartUploadCommand=Ro.$Command=void 0;var Sue=x(),bue=k(),lD=b();Object.defineProperty(Ro,"$Command",{enumerable:!0,get:function(){return lD.Command}});var Eue=w(),dD=q(),uh=class e extends lD.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,bue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Sue.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"AbortMultipartUploadCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Eue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"AbortMultipartUpload"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,dD.se_AbortMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,dD.de_AbortMultipartUploadCommand)(n,t)}};Ro.AbortMultipartUploadCommand=uh});var bt=m(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.getSsecPlugin=En.ssecMiddlewareOptions=En.ssecMiddleware=void 0;function uD(e){return n=>async t=>{let r={...t.input},o=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of o){let a=r[s.target];if(a){let i=ArrayBuffer.isView(a)?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):typeof a=="string"?e.utf8Decoder(a):new Uint8Array(a),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=uD;En.ssecMiddlewareOptions={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0};var Pue=e=>({applyToStack:n=>{n.add(uD(e),En.ssecMiddlewareOptions)}});En.getSsecPlugin=Pue});var fh=m(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.CompleteMultipartUploadCommand=To.$Command=void 0;var vue=Or(),wue=bt(),xue=x(),kue=k(),fD=b();Object.defineProperty(To,"$Command",{enumerable:!0,get:function(){return fD.Command}});var Aue=w(),mD=Je(),pD=q(),ph=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,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:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:mD.CompleteMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:mD.CompleteMultipartUploadOutputFilterSensitiveLog,[Aue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CompleteMultipartUpload"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,pD.se_CompleteMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,pD.de_CompleteMultipartUploadCommand)(n,t)}};To.CompleteMultipartUploadCommand=ph});var gh=m(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.CopyObjectCommand=Bo.$Command=void 0;var Oue=Or(),Nue=bt(),Iue=x(),Rue=k(),hD=b();Object.defineProperty(Bo,"$Command",{enumerable:!0,get:function(){return hD.Command}});var Tue=w(),yD=Je(),gD=q(),yh=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,Rue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Iue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Oue.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,Nue.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CopyObjectCommand",inputFilterSensitiveLog:yD.CopyObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:yD.CopyObjectOutputFilterSensitiveLog,[Tue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CopyObject"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,gD.se_CopyObjectCommand)(n,t)}deserialize(n,t){return(0,gD.de_CopyObjectCommand)(n,t)}};Bo.CopyObjectCommand=yh});var CD=m(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.getLocationConstraintPlugin=Pn.locationConstraintMiddlewareOptions=Pn.locationConstraintMiddleware=void 0;function _D(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=_D;Pn.locationConstraintMiddlewareOptions={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0};var Bue=e=>({applyToStack:n=>{n.add(_D(e),Pn.locationConstraintMiddlewareOptions)}});Pn.getLocationConstraintPlugin=Bue});var _h=m(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.CreateBucketCommand=qo.$Command=void 0;var que=CD(),Due=x(),Mue=k(),bD=b();Object.defineProperty(qo,"$Command",{enumerable:!0,get:function(){return bD.Command}});var Fue=w(),SD=q(),hh=class e extends bD.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,Mue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Due.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,que.getLocationConstraintPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CreateBucketCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Fue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CreateBucket"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,SD.se_CreateBucketCommand)(n,t)}deserialize(n,t){return(0,SD.de_CreateBucketCommand)(n,t)}};qo.CreateBucketCommand=hh});var Sh=m(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.CreateMultipartUploadCommand=Do.$Command=void 0;var Lue=bt(),jue=x(),Uue=k(),vD=b();Object.defineProperty(Do,"$Command",{enumerable:!0,get:function(){return vD.Command}});var zue=w(),ED=Je(),PD=q(),Ch=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,Uue.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,jue.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Lue.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:ED.CreateMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:ED.CreateMultipartUploadOutputFilterSensitiveLog,[zue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"CreateMultipartUpload"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,PD.se_CreateMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,PD.de_CreateMultipartUploadCommand)(n,t)}};Do.CreateMultipartUploadCommand=Ch});var Eh=m(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.DeleteBucketAnalyticsConfigurationCommand=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(),bh=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:"DeleteBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[$ue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketAnalyticsConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,wD.se_DeleteBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,wD.de_DeleteBucketAnalyticsConfigurationCommand)(n,t)}};Mo.DeleteBucketAnalyticsConfigurationCommand=bh});var vh=m(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.DeleteBucketCommand=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(),Ph=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:"DeleteBucketCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Xue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucket"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,kD.se_DeleteBucketCommand)(n,t)}deserialize(n,t){return(0,kD.de_DeleteBucketCommand)(n,t)}};Fo.DeleteBucketCommand=Ph});var xh=m(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.DeleteBucketCorsCommand=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(),wh=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:"DeleteBucketCorsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Jue.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketCors"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,OD.se_DeleteBucketCorsCommand)(n,t)}deserialize(n,t){return(0,OD.de_DeleteBucketCorsCommand)(n,t)}};Lo.DeleteBucketCorsCommand=wh});var Ah=m(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.DeleteBucketEncryptionCommand=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(),kh=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:"DeleteBucketEncryptionCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[eme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketEncryption"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,ID.se_DeleteBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,ID.de_DeleteBucketEncryptionCommand)(n,t)}};jo.DeleteBucketEncryptionCommand=kh});var Nh=m(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.DeleteBucketIntelligentTieringConfigurationCommand=Uo.$Command=void 0;var tme=x(),nme=k(),BD=b();Object.defineProperty(Uo,"$Command",{enumerable:!0,get:function(){return BD.Command}});var rme=w(),TD=q(),Oh=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:"DeleteBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[rme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketIntelligentTieringConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,TD.se_DeleteBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,TD.de_DeleteBucketIntelligentTieringConfigurationCommand)(n,t)}};Uo.DeleteBucketIntelligentTieringConfigurationCommand=Oh});var Rh=m(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.DeleteBucketInventoryConfigurationCommand=zo.$Command=void 0;var ome=x(),sme=k(),DD=b();Object.defineProperty(zo,"$Command",{enumerable:!0,get:function(){return DD.Command}});var ime=w(),qD=q(),Ih=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:"DeleteBucketInventoryConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[ime.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketInventoryConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,qD.se_DeleteBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,qD.de_DeleteBucketInventoryConfigurationCommand)(n,t)}};zo.DeleteBucketInventoryConfigurationCommand=Ih});var Bh=m(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.DeleteBucketLifecycleCommand=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(),Th=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:"DeleteBucketLifecycleCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[dme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketLifecycle"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,MD.se_DeleteBucketLifecycleCommand)(n,t)}deserialize(n,t){return(0,MD.de_DeleteBucketLifecycleCommand)(n,t)}};Go.DeleteBucketLifecycleCommand=Th});var Dh=m(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.DeleteBucketMetricsConfigurationCommand=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(),qh=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:"DeleteBucketMetricsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[mme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketMetricsConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,LD.se_DeleteBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,LD.de_DeleteBucketMetricsConfigurationCommand)(n,t)}};Ho.DeleteBucketMetricsConfigurationCommand=qh});var Fh=m($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.DeleteBucketOwnershipControlsCommand=$o.$Command=void 0;var pme=x(),fme=k(),zD=b();Object.defineProperty($o,"$Command",{enumerable:!0,get:function(){return zD.Command}});var yme=w(),UD=q(),Mh=class e extends zD.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:"DeleteBucketOwnershipControlsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[yme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketOwnershipControls"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,UD.se_DeleteBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,UD.de_DeleteBucketOwnershipControlsCommand)(n,t)}};$o.DeleteBucketOwnershipControlsCommand=Mh});var jh=m(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.DeleteBucketPolicyCommand=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(),Lh=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:"DeleteBucketPolicyCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[_me.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketPolicy"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,GD.se_DeleteBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,GD.de_DeleteBucketPolicyCommand)(n,t)}};Ko.DeleteBucketPolicyCommand=Lh});var zh=m(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.DeleteBucketReplicationCommand=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(),Uh=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:"DeleteBucketReplicationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[bme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketReplication"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,$D.se_DeleteBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,$D.de_DeleteBucketReplicationCommand)(n,t)}};Vo.DeleteBucketReplicationCommand=Uh});var Hh=m(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.DeleteBucketTaggingCommand=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(),Gh=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:"DeleteBucketTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[vme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketTagging"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,VD.se_DeleteBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,VD.de_DeleteBucketTaggingCommand)(n,t)}};Xo.DeleteBucketTaggingCommand=Gh});var Kh=m(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.DeleteBucketWebsiteCommand=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(),$h=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:"DeleteBucketWebsiteCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[kme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteBucketWebsite"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,WD.se_DeleteBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,WD.de_DeleteBucketWebsiteCommand)(n,t)}};Wo.DeleteBucketWebsiteCommand=$h});var Xh=m(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.DeleteObjectCommand=Yo.$Command=void 0;var Ame=x(),Ome=k(),QD=b();Object.defineProperty(Yo,"$Command",{enumerable:!0,get:function(){return QD.Command}});var Nme=w(),JD=q(),Vh=class e extends QD.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,Ome.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:"DeleteObjectCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Nme.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObject"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,JD.se_DeleteObjectCommand)(n,t)}deserialize(n,t){return(0,JD.de_DeleteObjectCommand)(n,t)}};Yo.DeleteObjectCommand=Vh});var Jo=m(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.ChecksumLocation=tr.ChecksumAlgorithm=void 0;var Ime;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.SHA1="SHA1",e.SHA256="SHA256"})(Ime=tr.ChecksumAlgorithm||(tr.ChecksumAlgorithm={}));var Rme;(function(e){e.HEADER="header",e.TRAILER="trailer"})(Rme=tr.ChecksumLocation||(tr.ChecksumLocation={}))});var Wh=m(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.PRIORITY_ORDER_ALGORITHMS=Qo.CLIENT_SUPPORTED_ALGORITHMS=void 0;var nr=Jo();Qo.CLIENT_SUPPORTED_ALGORITHMS=[nr.ChecksumAlgorithm.CRC32,nr.ChecksumAlgorithm.CRC32C,nr.ChecksumAlgorithm.SHA1,nr.ChecksumAlgorithm.SHA256];Qo.PRIORITY_ORDER_ALGORITHMS=[nr.ChecksumAlgorithm.CRC32,nr.ChecksumAlgorithm.CRC32C,nr.ChecksumAlgorithm.SHA1,nr.ChecksumAlgorithm.SHA256]});var e1=m(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.getChecksumAlgorithmForRequest=void 0;var Tme=Jo(),ZD=Wh(),Bme=(e,{requestChecksumRequired:n,requestAlgorithmMember:t})=>{if(!t||!e[t])return n?Tme.ChecksumAlgorithm.MD5:void 0;let r=e[t];if(!ZD.CLIENT_SUPPORTED_ALGORITHMS.includes(r))throw new Error(`The checksum algorithm "${r}" is not supported by the client. Select one of ${ZD.CLIENT_SUPPORTED_ALGORITHMS}.`);return r};_m.getChecksumAlgorithmForRequest=Bme});var Yh=m(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.getChecksumLocationName=void 0;var qme=Jo(),Dme=e=>e===qme.ChecksumAlgorithm.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`;Cm.getChecksumLocationName=Dme});var t1=m(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.hasHeader=void 0;var Mme=(e,n)=>{let t=e.toLowerCase();for(let r of Object.keys(n))if(t===r.toLowerCase())return!0;return!1};Sm.hasHeader=Mme});var Em=m(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.isStreaming=void 0;var Fme=sc(),Lme=e=>e!==void 0&&typeof e!="string"&&!ArrayBuffer.isView(e)&&!(0,Fme.isArrayBuffer)(e);bm.isStreaming=Lme});var e_={};Oi(e_,{__assign:()=>Qh,__asyncDelegator:()=>Qme,__asyncGenerator:()=>Jme,__asyncValues:()=>Zme,__await:()=>Ua,__awaiter:()=>$me,__classPrivateFieldGet:()=>rpe,__classPrivateFieldSet:()=>ope,__createBinding:()=>Vme,__decorate:()=>zme,__exportStar:()=>Xme,__extends:()=>jme,__generator:()=>Kme,__importDefault:()=>npe,__importStar:()=>tpe,__makeTemplateObject:()=>epe,__metadata:()=>Hme,__param:()=>Gme,__read:()=>n1,__rest:()=>Ume,__spread:()=>Wme,__spreadArrays:()=>Yme,__values:()=>Zh});function jme(e,n){Jh(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function Ume(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--)(a=e[i])&&(s=(o<3?a(s):o>3?a(n,t,s):a(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s}function Gme(e,n){return function(t,r){n(t,r,e)}}function Hme(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)}function $me(e,n,t,r){function o(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function i(c){try{l(r.next(c))}catch(y){a(y)}}function u(c){try{l(r.throw(c))}catch(y){a(y)}}function l(c){c.done?s(c.value):o(c.value).then(i,u)}l((r=r.apply(e,n||[])).next())})}function Kme(e,n){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(l){return function(c){return u([l,c])}}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 n1(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,s=[],a;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(i){a={error:i}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return s}function Wme(){for(var e=[],n=0;n1||i(g,C)})})}function i(g,C){try{u(r[g](C))}catch(P){y(s[0][3],P)}}function u(g){g.value instanceof Ua?Promise.resolve(g.value.v).then(l,c):y(s[0][2],g)}function l(g){i("next",g)}function c(g){i("throw",g)}function y(g,C){g(C),s.shift(),s.length&&i(s[0][0],s[0][1])}}function Qme(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(a){return(t=!t)?{value:Ua(e[o](a)),done:o==="return"}:s?s(a):a}:s}}function Zme(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 Zh=="function"?Zh(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(a){return new Promise(function(i,u){a=e[s](a),o(i,u,a.done,a.value)})}}function o(s,a,i,u){Promise.resolve(u).then(function(l){s({value:l,done:i})},a)}}function epe(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function tpe(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 npe(e){return e&&e.__esModule?e:{default:e}}function rpe(e,n){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return n.get(e)}function ope(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 Jh,Qh,t_=je(()=>{Jh=function(e,n){return Jh=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])},Jh(e,n)};Qh=function(){return Qh=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 r1=(t_(),J(e_)),n_=Ui(),o1=r_(),spe=function(){function e(){this.crc32c=new o1.Crc32c}return e.prototype.update=function(n){(0,n_.isEmptyData)(n)||this.crc32c.update((0,n_.convertToBuffer)(n))},e.prototype.digest=function(){return r1.__awaiter(this,void 0,void 0,function(){return r1.__generator(this,function(n){return[2,(0,n_.numToUint8)(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new o1.Crc32c},e}();Pm.AwsCrc32c=spe});var r_=m(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.AwsCrc32c=rr.Crc32c=rr.crc32c=void 0;var ipe=(t_(),J(e_)),ape=Ui();function cpe(e){return new i1().update(e).digest()}rr.crc32c=cpe;var i1=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(n){var t,r;try{for(var o=ipe.__values(n),s=o.next();!s.done;s=o.next()){var a=s.value;this.checksum=this.checksum>>>8^lpe[(this.checksum^a)&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=i1;var dpe=[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],lpe=(0,ape.uint32ArrayFrom)(dpe),upe=s1();Object.defineProperty(rr,"AwsCrc32c",{enumerable:!0,get:function(){return upe.AwsCrc32c}})});var o_=m(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.selectChecksumAlgorithmFunction=void 0;var mpe=zi(),ppe=r_(),za=Jo(),fpe=(e,n)=>({[za.ChecksumAlgorithm.MD5]:n.md5,[za.ChecksumAlgorithm.CRC32]:mpe.AwsCrc32,[za.ChecksumAlgorithm.CRC32C]:ppe.AwsCrc32c,[za.ChecksumAlgorithm.SHA1]:n.sha1,[za.ChecksumAlgorithm.SHA256]:n.sha256})[e];vm.selectChecksumAlgorithmFunction=fpe});var s_=m(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.stringHasher=void 0;var ype=ct(),gpe=(e,n)=>{let t=new e;return t.update((0,ype.toUint8Array)(n||"")),t.digest()};wm.stringHasher=gpe});var i_=m(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.flexibleChecksumsMiddleware=void 0;var hpe=Ne(),_pe=e1(),Cpe=Yh(),Spe=t1(),bpe=Em(),Epe=o_(),Ppe=s_(),vpe=(e,n)=>t=>async r=>{if(!hpe.HttpRequest.isInstance(r.request))return t(r);let{request:o}=r,{body:s,headers:a}=o,{base64Encoder:i,streamHasher:u}=e,{input:l,requestChecksumRequired:c,requestAlgorithmMember:y}=n,g=(0,_pe.getChecksumAlgorithmForRequest)(l,{requestChecksumRequired:c,requestAlgorithmMember:y}),C=s,P=a;if(g){let v=(0,Cpe.getChecksumLocationName)(g),G=(0,Epe.selectChecksumAlgorithmFunction)(g,e);if((0,bpe.isStreaming)(s)){let{getAwsChunkedEncodingStream:Y,bodyLengthChecker:Fe}=e;C=Y(s,{base64Encoder:i,bodyLengthChecker:Fe,checksumLocationName:v,checksumAlgorithmFn:G,streamHasher:u}),P={...a,"content-encoding":a["content-encoding"]?`${a["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":a["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":v},delete P["content-length"]}else if(!(0,Spe.hasHeader)(v,a)){let Y=await(0,Ppe.stringHasher)(G,s);P={...a,[v]:i(Y)}}}return await t({...r,request:{...o,headers:P,body:C}})};xm.flexibleChecksumsMiddleware=vpe});var a1=m(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.createReadStreamOnBuffer=void 0;var wpe=require("stream");function xpe(e){let n=new wpe.Transform;return n.push(e),n.push(null),n}km.createReadStreamOnBuffer=xpe});var c1=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.getChecksum=void 0;var kpe=Em(),Ape=s_(),Ope=async(e,{streamHasher:n,checksumAlgorithmFn:t,base64Encoder:r})=>{let o=(0,kpe.isStreaming)(e)?n(t,e):(0,Ape.stringHasher)(t,e);return r(await o)};Am.getChecksum=Ope});var l1=m(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.getChecksumAlgorithmListForResponse=void 0;var d1=Wh(),Npe=(e=[])=>{let n=[];for(let t of d1.PRIORITY_ORDER_ALGORITHMS)!e.includes(t)||!d1.CLIENT_SUPPORTED_ALGORITHMS.includes(t)||n.push(t);return n};Om.getChecksumAlgorithmListForResponse=Npe});var u1=m(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.validateChecksumFromResponse=void 0;var Ipe=c1(),Rpe=l1(),Tpe=Yh(),Bpe=o_(),qpe=async(e,{config:n,responseAlgorithms:t})=>{let r=(0,Rpe.getChecksumAlgorithmListForResponse)(t),{body:o,headers:s}=e;for(let a of r){let i=(0,Tpe.getChecksumLocationName)(a),u=s[i];if(u){let l=(0,Bpe.selectChecksumAlgorithmFunction)(a,n),{streamHasher:c,base64Encoder:y}=n,g=await(0,Ipe.getChecksum)(o,{streamHasher:c,checksumAlgorithmFn:l,base64Encoder:y});if(g===u)break;throw new Error(`Checksum mismatch: expected "${g}" but received "${u}" in response header "${i}".`)}}};Nm.validateChecksumFromResponse=qpe});var p1=m(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.flexibleChecksumsResponseMiddleware=Zo.flexibleChecksumsResponseMiddlewareOptions=void 0;var Dpe=Ne(),Mpe=Em(),m1=a1(),Fpe=u1();Zo.flexibleChecksumsResponseMiddlewareOptions={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0};var Lpe=(e,n)=>t=>async r=>{if(!Dpe.HttpRequest.isInstance(r.request))return t(r);let o=r.input,s=await t(r),a=s.response,i,{requestValidationModeMember:u,responseAlgorithms:l}=n;if(u&&o[u]==="ENABLED"){let c=(0,Mpe.isStreaming)(a.body);c&&(i=await e.streamCollector(a.body),a.body=(0,m1.createReadStreamOnBuffer)(i)),await(0,Fpe.validateChecksumFromResponse)(s.response,{config:e,responseAlgorithms:l}),c&&i&&(a.body=(0,m1.createReadStreamOnBuffer)(i))}return s};Zo.flexibleChecksumsResponseMiddleware=Lpe});var y1=m(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.getFlexibleChecksumsPlugin=Sr.flexibleChecksumsMiddlewareOptions=void 0;var jpe=i_(),f1=p1();Sr.flexibleChecksumsMiddlewareOptions={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0};var Upe=(e,n)=>({applyToStack:t=>{t.add((0,jpe.flexibleChecksumsMiddleware)(e,n),Sr.flexibleChecksumsMiddlewareOptions),t.addRelativeTo((0,f1.flexibleChecksumsResponseMiddleware)(e,n),f1.flexibleChecksumsResponseMiddlewareOptions)}});Sr.getFlexibleChecksumsPlugin=Upe});var be=m(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var a_=(ne(),J(te));a_.__exportStar(Jo(),Ga);a_.__exportStar(i_(),Ga);a_.__exportStar(y1(),Ga)});var d_=m(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.DeleteObjectsCommand=es.$Command=void 0;var zpe=be(),Gpe=x(),Hpe=k(),h1=b();Object.defineProperty(es,"$Command",{enumerable:!0,get:function(){return h1.Command}});var $pe=w(),g1=q(),c_=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())),this.middlewareStack.use((0,zpe.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:c=>c,outputFilterSensitiveLog:c=>c,[$pe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObjects"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,g1.se_DeleteObjectsCommand)(n,t)}deserialize(n,t){return(0,g1.de_DeleteObjectsCommand)(n,t)}};es.DeleteObjectsCommand=c_});var u_=m(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.DeleteObjectTaggingCommand=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(),l_=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:"DeleteObjectTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Xpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeleteObjectTagging"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,_1.se_DeleteObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,_1.de_DeleteObjectTaggingCommand)(n,t)}};ts.DeleteObjectTaggingCommand=l_});var p_=m(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.DeletePublicAccessBlockCommand=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(),m_=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:"DeletePublicAccessBlockCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Jpe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"DeletePublicAccessBlock"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,S1.se_DeletePublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,S1.de_DeletePublicAccessBlockCommand)(n,t)}};ns.DeletePublicAccessBlockCommand=m_});var y_=m(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.GetBucketAccelerateConfigurationCommand=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(),f_=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:"GetBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[efe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAccelerateConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,E1.se_GetBucketAccelerateConfigurationCommand)(n,t)}deserialize(n,t){return(0,E1.de_GetBucketAccelerateConfigurationCommand)(n,t)}};rs.GetBucketAccelerateConfigurationCommand=f_});var h_=m(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.GetBucketAclCommand=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(),g_=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:"GetBucketAclCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[rfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAcl"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,v1.se_GetBucketAclCommand)(n,t)}deserialize(n,t){return(0,v1.de_GetBucketAclCommand)(n,t)}};os.GetBucketAclCommand=g_});var C_=m(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.GetBucketAnalyticsConfigurationCommand=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(),__=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:"GetBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[ife.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketAnalyticsConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,x1.se_GetBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,x1.de_GetBucketAnalyticsConfigurationCommand)(n,t)}};ss.GetBucketAnalyticsConfigurationCommand=__});var b_=m(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.GetBucketCorsCommand=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(),A1=q(),S_=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:"GetBucketCorsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[dfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketCors"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,A1.se_GetBucketCorsCommand)(n,t)}deserialize(n,t){return(0,A1.de_GetBucketCorsCommand)(n,t)}};is.GetBucketCorsCommand=S_});var P_=m(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.GetBucketEncryptionCommand=as.$Command=void 0;var lfe=x(),ufe=k(),I1=b();Object.defineProperty(as,"$Command",{enumerable:!0,get:function(){return I1.Command}});var mfe=w(),pfe=Je(),N1=q(),E_=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,ufe.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:"GetBucketEncryptionCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:pfe.GetBucketEncryptionOutputFilterSensitiveLog,[mfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketEncryption"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,N1.se_GetBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,N1.de_GetBucketEncryptionCommand)(n,t)}};as.GetBucketEncryptionCommand=E_});var w_=m(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.GetBucketIntelligentTieringConfigurationCommand=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(),R1=q(),v_=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:"GetBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[gfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketIntelligentTieringConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,R1.se_GetBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,R1.de_GetBucketIntelligentTieringConfigurationCommand)(n,t)}};cs.GetBucketIntelligentTieringConfigurationCommand=v_});var k_=m(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.GetBucketInventoryConfigurationCommand=ds.$Command=void 0;var hfe=x(),_fe=k(),q1=b();Object.defineProperty(ds,"$Command",{enumerable:!0,get:function(){return q1.Command}});var Cfe=w(),Sfe=Je(),B1=q(),x_=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,_fe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketInventoryConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:Sfe.GetBucketInventoryConfigurationOutputFilterSensitiveLog,[Cfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketInventoryConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,B1.se_GetBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,B1.de_GetBucketInventoryConfigurationCommand)(n,t)}};ds.GetBucketInventoryConfigurationCommand=x_});var O_=m(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.GetBucketLifecycleConfigurationCommand=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(),A_=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:"GetBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Pfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLifecycleConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,D1.se_GetBucketLifecycleConfigurationCommand)(n,t)}deserialize(n,t){return(0,D1.de_GetBucketLifecycleConfigurationCommand)(n,t)}};ls.GetBucketLifecycleConfigurationCommand=A_});var I_=m(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.GetBucketLocationCommand=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(),N_=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:"GetBucketLocationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[xfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLocation"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,F1.se_GetBucketLocationCommand)(n,t)}deserialize(n,t){return(0,F1.de_GetBucketLocationCommand)(n,t)}};us.GetBucketLocationCommand=N_});var T_=m(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.GetBucketLoggingCommand=ms.$Command=void 0;var kfe=x(),Afe=k(),U1=b();Object.defineProperty(ms,"$Command",{enumerable:!0,get:function(){return U1.Command}});var Ofe=w(),j1=q(),R_=class e extends U1.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:"GetBucketLoggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Ofe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketLogging"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,j1.se_GetBucketLoggingCommand)(n,t)}deserialize(n,t){return(0,j1.de_GetBucketLoggingCommand)(n,t)}};ms.GetBucketLoggingCommand=R_});var q_=m(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.GetBucketMetricsConfigurationCommand=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(),z1=q(),B_=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:"GetBucketMetricsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Rfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketMetricsConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,z1.se_GetBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,z1.de_GetBucketMetricsConfigurationCommand)(n,t)}};ps.GetBucketMetricsConfigurationCommand=B_});var M_=m(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.GetBucketNotificationConfigurationCommand=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(),D_=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:"GetBucketNotificationConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[qfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketNotificationConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,H1.se_GetBucketNotificationConfigurationCommand)(n,t)}deserialize(n,t){return(0,H1.de_GetBucketNotificationConfigurationCommand)(n,t)}};fs.GetBucketNotificationConfigurationCommand=D_});var L_=m(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.GetBucketOwnershipControlsCommand=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(),F_=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:"GetBucketOwnershipControlsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Ffe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketOwnershipControls"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,K1.se_GetBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,K1.de_GetBucketOwnershipControlsCommand)(n,t)}};ys.GetBucketOwnershipControlsCommand=F_});var U_=m(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.GetBucketPolicyCommand=gs.$Command=void 0;var Lfe=x(),jfe=k(),W1=b();Object.defineProperty(gs,"$Command",{enumerable:!0,get:function(){return W1.Command}});var Ufe=w(),X1=q(),j_=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:"GetBucketPolicyCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Ufe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketPolicy"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,X1.se_GetBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,X1.de_GetBucketPolicyCommand)(n,t)}};gs.GetBucketPolicyCommand=j_});var G_=m(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.GetBucketPolicyStatusCommand=hs.$Command=void 0;var zfe=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,zfe.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetBucketPolicyStatusCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Hfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketPolicyStatus"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,Y1.se_GetBucketPolicyStatusCommand)(n,t)}deserialize(n,t){return(0,Y1.de_GetBucketPolicyStatusCommand)(n,t)}};hs.GetBucketPolicyStatusCommand=z_});var $_=m(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.GetBucketReplicationCommand=_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(),H_=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:"GetBucketReplicationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Vfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketReplication"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,Q1.se_GetBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,Q1.de_GetBucketReplicationCommand)(n,t)}};_s.GetBucketReplicationCommand=H_});var V_=m(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.GetBucketRequestPaymentCommand=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(),K_=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:"GetBucketRequestPaymentCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Yfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketRequestPayment"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,eM.se_GetBucketRequestPaymentCommand)(n,t)}deserialize(n,t){return(0,eM.de_GetBucketRequestPaymentCommand)(n,t)}};Cs.GetBucketRequestPaymentCommand=K_});var W_=m(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.GetBucketTaggingCommand=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(),X_=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:"GetBucketTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Zfe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketTagging"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,nM.se_GetBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,nM.de_GetBucketTaggingCommand)(n,t)}};Ss.GetBucketTaggingCommand=X_});var J_=m(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.GetBucketVersioningCommand=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(),Y_=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:"GetBucketVersioningCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[nye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketVersioning"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,oM.se_GetBucketVersioningCommand)(n,t)}deserialize(n,t){return(0,oM.de_GetBucketVersioningCommand)(n,t)}};bs.GetBucketVersioningCommand=Y_});var Z_=m(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.GetBucketWebsiteCommand=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(),Q_=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:"GetBucketWebsiteCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[sye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetBucketWebsite"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,iM.se_GetBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,iM.de_GetBucketWebsiteCommand)(n,t)}};Es.GetBucketWebsiteCommand=Q_});var tC=m(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.GetObjectAclCommand=Ps.$Command=void 0;var iye=x(),aye=k(),dM=b();Object.defineProperty(Ps,"$Command",{enumerable:!0,get:function(){return dM.Command}});var cye=w(),cM=q(),eC=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,aye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,iye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectAclCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[cye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectAcl"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,cM.se_GetObjectAclCommand)(n,t)}deserialize(n,t){return(0,cM.de_GetObjectAclCommand)(n,t)}};Ps.GetObjectAclCommand=eC});var rC=m(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.GetObjectAttributesCommand=vs.$Command=void 0;var dye=bt(),lye=x(),uye=k(),uM=b();Object.defineProperty(vs,"$Command",{enumerable:!0,get:function(){return uM.Command}});var mye=w(),pye=Je(),lM=q(),nC=class e extends uM.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,uye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,lye.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:"GetObjectAttributesCommand",inputFilterSensitiveLog:pye.GetObjectAttributesRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[mye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectAttributes"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,lM.se_GetObjectAttributesCommand)(n,t)}deserialize(n,t){return(0,lM.de_GetObjectAttributesCommand)(n,t)}};vs.GetObjectAttributesCommand=nC});var sC=m(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.GetObjectCommand=ws.$Command=void 0;var fye=be(),yye=bt(),gye=x(),hye=k(),fM=b();Object.defineProperty(ws,"$Command",{enumerable:!0,get:function(){return fM.Command}});var _ye=w(),mM=Je(),pM=q(),oC=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())),this.middlewareStack.use((0,yye.getSsecPlugin)(t)),this.middlewareStack.use((0,fye.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:mM.GetObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:mM.GetObjectOutputFilterSensitiveLog,[_ye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObject"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,pM.se_GetObjectCommand)(n,t)}deserialize(n,t){return(0,pM.de_GetObjectCommand)(n,t)}};ws.GetObjectCommand=oC});var aC=m(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.GetObjectLegalHoldCommand=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(),iC=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:"GetObjectLegalHoldCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[bye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectLegalHold"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,yM.se_GetObjectLegalHoldCommand)(n,t)}deserialize(n,t){return(0,yM.de_GetObjectLegalHoldCommand)(n,t)}};xs.GetObjectLegalHoldCommand=iC});var dC=m(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.GetObjectLockConfigurationCommand=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(),cC=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:"GetObjectLockConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[vye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectLockConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,hM.se_GetObjectLockConfigurationCommand)(n,t)}deserialize(n,t){return(0,hM.de_GetObjectLockConfigurationCommand)(n,t)}};ks.GetObjectLockConfigurationCommand=cC});var uC=m(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.GetObjectRetentionCommand=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(),lC=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:"GetObjectRetentionCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[kye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectRetention"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,CM.se_GetObjectRetentionCommand)(n,t)}deserialize(n,t){return(0,CM.de_GetObjectRetentionCommand)(n,t)}};As.GetObjectRetentionCommand=lC});var pC=m(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.GetObjectTaggingCommand=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(),bM=q(),mC=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:"GetObjectTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Nye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectTagging"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,bM.se_GetObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,bM.de_GetObjectTaggingCommand)(n,t)}};Os.GetObjectTaggingCommand=mC});var yC=m(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.GetObjectTorrentCommand=Ns.$Command=void 0;var Iye=x(),Rye=k(),vM=b();Object.defineProperty(Ns,"$Command",{enumerable:!0,get:function(){return vM.Command}});var Tye=w(),Bye=Je(),PM=q(),fC=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,Rye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Iye.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"GetObjectTorrentCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:Bye.GetObjectTorrentOutputFilterSensitiveLog,[Tye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetObjectTorrent"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,PM.se_GetObjectTorrentCommand)(n,t)}deserialize(n,t){return(0,PM.de_GetObjectTorrentCommand)(n,t)}};Ns.GetObjectTorrentCommand=fC});var hC=m(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.GetPublicAccessBlockCommand=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(),gC=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:"GetPublicAccessBlockCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Mye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"GetPublicAccessBlock"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,wM.se_GetPublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,wM.de_GetPublicAccessBlockCommand)(n,t)}};Is.GetPublicAccessBlockCommand=gC});var Ha=m(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.HeadBucketCommand=Rs.$Command=void 0;var Fye=x(),Lye=k(),AM=b();Object.defineProperty(Rs,"$Command",{enumerable:!0,get:function(){return AM.Command}});var jye=w(),kM=q(),_C=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,Lye.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:"HeadBucketCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[jye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"HeadBucket"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,kM.se_HeadBucketCommand)(n,t)}deserialize(n,t){return(0,kM.de_HeadBucketCommand)(n,t)}};Rs.HeadBucketCommand=_C});var $a=m(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.HeadObjectCommand=Ts.$Command=void 0;var Uye=bt(),zye=x(),Gye=k(),IM=b();Object.defineProperty(Ts,"$Command",{enumerable:!0,get:function(){return IM.Command}});var Hye=w(),OM=Je(),NM=q(),CC=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,zye.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Uye.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"HeadObjectCommand",inputFilterSensitiveLog:OM.HeadObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:OM.HeadObjectOutputFilterSensitiveLog,[Hye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"HeadObject"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,NM.se_HeadObjectCommand)(n,t)}deserialize(n,t){return(0,NM.de_HeadObjectCommand)(n,t)}};Ts.HeadObjectCommand=CC});var bC=m(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.ListBucketAnalyticsConfigurationsCommand=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(),SC=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:"ListBucketAnalyticsConfigurationsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Vye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketAnalyticsConfigurations"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,RM.se_ListBucketAnalyticsConfigurationsCommand)(n,t)}deserialize(n,t){return(0,RM.de_ListBucketAnalyticsConfigurationsCommand)(n,t)}};Bs.ListBucketAnalyticsConfigurationsCommand=SC});var PC=m(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.ListBucketIntelligentTieringConfigurationsCommand=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(),BM=q(),EC=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:"ListBucketIntelligentTieringConfigurationsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Yye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketIntelligentTieringConfigurations"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,BM.se_ListBucketIntelligentTieringConfigurationsCommand)(n,t)}deserialize(n,t){return(0,BM.de_ListBucketIntelligentTieringConfigurationsCommand)(n,t)}};qs.ListBucketIntelligentTieringConfigurationsCommand=EC});var wC=m(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.ListBucketInventoryConfigurationsCommand=Ds.$Command=void 0;var Jye=x(),Qye=k(),MM=b();Object.defineProperty(Ds,"$Command",{enumerable:!0,get:function(){return MM.Command}});var Zye=w(),ege=Je(),DM=q(),vC=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,Qye.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:"ListBucketInventoryConfigurationsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:ege.ListBucketInventoryConfigurationsOutputFilterSensitiveLog,[Zye.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketInventoryConfigurations"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,DM.se_ListBucketInventoryConfigurationsCommand)(n,t)}deserialize(n,t){return(0,DM.de_ListBucketInventoryConfigurationsCommand)(n,t)}};Ds.ListBucketInventoryConfigurationsCommand=vC});var kC=m(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.ListBucketMetricsConfigurationsCommand=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(),xC=class e extends LM.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,tge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListBucketMetricsConfigurationsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[rge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBucketMetricsConfigurations"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,FM.se_ListBucketMetricsConfigurationsCommand)(n,t)}deserialize(n,t){return(0,FM.de_ListBucketMetricsConfigurationsCommand)(n,t)}};Ms.ListBucketMetricsConfigurationsCommand=xC});var OC=m(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.ListBucketsCommand=Fs.$Command=void 0;var oge=x(),sge=k(),UM=b();Object.defineProperty(Fs,"$Command",{enumerable:!0,get:function(){return UM.Command}});var ige=w(),jM=q(),AC=class e extends UM.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,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:"ListBucketsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[ige.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListBuckets"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,jM.se_ListBucketsCommand)(n,t)}deserialize(n,t){return(0,jM.de_ListBucketsCommand)(n,t)}};Fs.ListBucketsCommand=AC});var IC=m(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.ListMultipartUploadsCommand=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(),zM=q(),NC=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:"ListMultipartUploadsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[dge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListMultipartUploads"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,zM.se_ListMultipartUploadsCommand)(n,t)}deserialize(n,t){return(0,zM.de_ListMultipartUploadsCommand)(n,t)}};Ls.ListMultipartUploadsCommand=NC});var TC=m(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.ListObjectsCommand=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(),RC=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:"ListObjectsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[mge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjects"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,HM.se_ListObjectsCommand)(n,t)}deserialize(n,t){return(0,HM.de_ListObjectsCommand)(n,t)}};js.ListObjectsCommand=RC});var Im=m(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.ListObjectsV2Command=Us.$Command=void 0;var pge=x(),fge=k(),VM=b();Object.defineProperty(Us,"$Command",{enumerable:!0,get:function(){return VM.Command}});var yge=w(),KM=q(),BC=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:"ListObjectsV2Command",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[yge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjectsV2"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,KM.se_ListObjectsV2Command)(n,t)}deserialize(n,t){return(0,KM.de_ListObjectsV2Command)(n,t)}};Us.ListObjectsV2Command=BC});var DC=m(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.ListObjectVersionsCommand=zs.$Command=void 0;var gge=x(),hge=k(),WM=b();Object.defineProperty(zs,"$Command",{enumerable:!0,get:function(){return WM.Command}});var _ge=w(),XM=q(),qC=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,hge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,gge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListObjectVersionsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[_ge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListObjectVersions"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,XM.se_ListObjectVersionsCommand)(n,t)}deserialize(n,t){return(0,XM.de_ListObjectVersionsCommand)(n,t)}};zs.ListObjectVersionsCommand=qC});var Rm=m(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.ListPartsCommand=Gs.$Command=void 0;var Cge=bt(),Sge=x(),bge=k(),JM=b();Object.defineProperty(Gs,"$Command",{enumerable:!0,get:function(){return JM.Command}});var Ege=w(),Pge=Je(),YM=q(),MC=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.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"ListPartsCommand",inputFilterSensitiveLog:Pge.ListPartsRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[Ege.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"ListParts"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,YM.se_ListPartsCommand)(n,t)}deserialize(n,t){return(0,YM.de_ListPartsCommand)(n,t)}};Gs.ListPartsCommand=MC});var LC=m(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.PutBucketAccelerateConfigurationCommand=Hs.$Command=void 0;var vge=be(),wge=x(),xge=k(),ZM=b();Object.defineProperty(Hs,"$Command",{enumerable:!0,get:function(){return ZM.Command}});var kge=w(),QM=q(),FC=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,xge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,wge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,vge.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:c=>c,outputFilterSensitiveLog:c=>c,[kge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAccelerateConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,QM.se_PutBucketAccelerateConfigurationCommand)(n,t)}deserialize(n,t){return(0,QM.de_PutBucketAccelerateConfigurationCommand)(n,t)}};Hs.PutBucketAccelerateConfigurationCommand=FC});var UC=m($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.PutBucketAclCommand=$s.$Command=void 0;var Age=be(),Oge=x(),Nge=k(),tF=b();Object.defineProperty($s,"$Command",{enumerable:!0,get:function(){return tF.Command}});var Ige=w(),eF=q(),jC=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())),this.middlewareStack.use((0,Age.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:c=>c,outputFilterSensitiveLog:c=>c,[Ige.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAcl"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,eF.se_PutBucketAclCommand)(n,t)}deserialize(n,t){return(0,eF.de_PutBucketAclCommand)(n,t)}};$s.PutBucketAclCommand=jC});var GC=m(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.PutBucketAnalyticsConfigurationCommand=Ks.$Command=void 0;var Rge=x(),Tge=k(),rF=b();Object.defineProperty(Ks,"$Command",{enumerable:!0,get:function(){return rF.Command}});var Bge=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,Tge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Rge.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Bge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketAnalyticsConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,nF.se_PutBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,nF.de_PutBucketAnalyticsConfigurationCommand)(n,t)}};Ks.PutBucketAnalyticsConfigurationCommand=zC});var $C=m(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.PutBucketCorsCommand=Vs.$Command=void 0;var qge=be(),Dge=x(),Mge=k(),sF=b();Object.defineProperty(Vs,"$Command",{enumerable:!0,get:function(){return sF.Command}});var Fge=w(),oF=q(),HC=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,Mge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Dge.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:"PutBucketCorsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Fge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketCors"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,oF.se_PutBucketCorsCommand)(n,t)}deserialize(n,t){return(0,oF.de_PutBucketCorsCommand)(n,t)}};Vs.PutBucketCorsCommand=HC});var VC=m(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.PutBucketEncryptionCommand=Xs.$Command=void 0;var Lge=be(),jge=x(),Uge=k(),aF=b();Object.defineProperty(Xs,"$Command",{enumerable:!0,get:function(){return aF.Command}});var zge=w(),Gge=Je(),iF=q(),KC=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,jge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Lge.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:Gge.PutBucketEncryptionRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[zge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketEncryption"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,iF.se_PutBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,iF.de_PutBucketEncryptionCommand)(n,t)}};Xs.PutBucketEncryptionCommand=KC});var WC=m(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.PutBucketIntelligentTieringConfigurationCommand=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(),cF=q(),XC=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:"PutBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Kge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketIntelligentTieringConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,cF.se_PutBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,cF.de_PutBucketIntelligentTieringConfigurationCommand)(n,t)}};Ws.PutBucketIntelligentTieringConfigurationCommand=XC});var JC=m(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.PutBucketInventoryConfigurationCommand=Ys.$Command=void 0;var Vge=x(),Xge=k(),uF=b();Object.defineProperty(Ys,"$Command",{enumerable:!0,get:function(){return uF.Command}});var Wge=w(),Yge=Je(),lF=q(),YC=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()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketInventoryConfigurationCommand",inputFilterSensitiveLog:Yge.PutBucketInventoryConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[Wge.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketInventoryConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,lF.se_PutBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,lF.de_PutBucketInventoryConfigurationCommand)(n,t)}};Ys.PutBucketInventoryConfigurationCommand=YC});var ZC=m(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.PutBucketLifecycleConfigurationCommand=Js.$Command=void 0;var Jge=be(),Qge=x(),Zge=k(),pF=b();Object.defineProperty(Js,"$Command",{enumerable:!0,get:function(){return pF.Command}});var ehe=w(),mF=q(),QC=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,Zge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Qge.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Jge.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:c=>c,outputFilterSensitiveLog:c=>c,[ehe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketLifecycleConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,mF.se_PutBucketLifecycleConfigurationCommand)(n,t)}deserialize(n,t){return(0,mF.de_PutBucketLifecycleConfigurationCommand)(n,t)}};Js.PutBucketLifecycleConfigurationCommand=QC});var tS=m(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.PutBucketLoggingCommand=Qs.$Command=void 0;var the=be(),nhe=x(),rhe=k(),yF=b();Object.defineProperty(Qs,"$Command",{enumerable:!0,get:function(){return yF.Command}});var ohe=w(),fF=q(),eS=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())),this.middlewareStack.use((0,the.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:c=>c,outputFilterSensitiveLog:c=>c,[ohe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketLogging"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,fF.se_PutBucketLoggingCommand)(n,t)}deserialize(n,t){return(0,fF.de_PutBucketLoggingCommand)(n,t)}};Qs.PutBucketLoggingCommand=eS});var rS=m(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.PutBucketMetricsConfigurationCommand=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(),nS=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:"PutBucketMetricsConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[ahe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketMetricsConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,gF.se_PutBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,gF.de_PutBucketMetricsConfigurationCommand)(n,t)}};Zs.PutBucketMetricsConfigurationCommand=nS});var sS=m(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.PutBucketNotificationConfigurationCommand=ei.$Command=void 0;var che=x(),dhe=k(),CF=b();Object.defineProperty(ei,"$Command",{enumerable:!0,get:function(){return CF.Command}});var lhe=w(),_F=q(),oS=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,dhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,che.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketNotificationConfigurationCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[lhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketNotificationConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,_F.se_PutBucketNotificationConfigurationCommand)(n,t)}deserialize(n,t){return(0,_F.de_PutBucketNotificationConfigurationCommand)(n,t)}};ei.PutBucketNotificationConfigurationCommand=oS});var aS=m(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.PutBucketOwnershipControlsCommand=ti.$Command=void 0;var uhe=be(),mhe=x(),phe=k(),bF=b();Object.defineProperty(ti,"$Command",{enumerable:!0,get:function(){return bF.Command}});var fhe=w(),SF=q(),iS=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,phe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,mhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,uhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestChecksumRequired:!0}));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"PutBucketOwnershipControlsCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[fhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketOwnershipControls"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,SF.se_PutBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,SF.de_PutBucketOwnershipControlsCommand)(n,t)}};ti.PutBucketOwnershipControlsCommand=iS});var dS=m(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.PutBucketPolicyCommand=ni.$Command=void 0;var yhe=be(),ghe=x(),hhe=k(),PF=b();Object.defineProperty(ni,"$Command",{enumerable:!0,get:function(){return PF.Command}});var _he=w(),EF=q(),cS=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,hhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ghe.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:"PutBucketPolicyCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[_he.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketPolicy"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,EF.se_PutBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,EF.de_PutBucketPolicyCommand)(n,t)}};ni.PutBucketPolicyCommand=cS});var uS=m(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.PutBucketReplicationCommand=ri.$Command=void 0;var Che=be(),She=x(),bhe=k(),wF=b();Object.defineProperty(ri,"$Command",{enumerable:!0,get:function(){return wF.Command}});var Ehe=w(),vF=q(),lS=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,bhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,She.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Che.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:c=>c,outputFilterSensitiveLog:c=>c,[Ehe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketReplication"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,vF.se_PutBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,vF.de_PutBucketReplicationCommand)(n,t)}};ri.PutBucketReplicationCommand=lS});var pS=m(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.PutBucketRequestPaymentCommand=oi.$Command=void 0;var Phe=be(),vhe=x(),whe=k(),kF=b();Object.defineProperty(oi,"$Command",{enumerable:!0,get:function(){return kF.Command}});var xhe=w(),xF=q(),mS=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,whe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,vhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Phe.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:c=>c,outputFilterSensitiveLog:c=>c,[xhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketRequestPayment"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,xF.se_PutBucketRequestPaymentCommand)(n,t)}deserialize(n,t){return(0,xF.de_PutBucketRequestPaymentCommand)(n,t)}};oi.PutBucketRequestPaymentCommand=mS});var yS=m(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.PutBucketTaggingCommand=si.$Command=void 0;var khe=be(),Ahe=x(),Ohe=k(),OF=b();Object.defineProperty(si,"$Command",{enumerable:!0,get:function(){return OF.Command}});var Nhe=w(),AF=q(),fS=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,Ohe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ahe.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:"PutBucketTaggingCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Nhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketTagging"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,AF.se_PutBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,AF.de_PutBucketTaggingCommand)(n,t)}};si.PutBucketTaggingCommand=fS});var hS=m(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.PutBucketVersioningCommand=ii.$Command=void 0;var Ihe=be(),Rhe=x(),The=k(),IF=b();Object.defineProperty(ii,"$Command",{enumerable:!0,get:function(){return IF.Command}});var Bhe=w(),NF=q(),gS=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,The.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Rhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Ihe.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:c=>c,outputFilterSensitiveLog:c=>c,[Bhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketVersioning"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,NF.se_PutBucketVersioningCommand)(n,t)}deserialize(n,t){return(0,NF.de_PutBucketVersioningCommand)(n,t)}};ii.PutBucketVersioningCommand=gS});var CS=m(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.PutBucketWebsiteCommand=ai.$Command=void 0;var qhe=be(),Dhe=x(),Mhe=k(),TF=b();Object.defineProperty(ai,"$Command",{enumerable:!0,get:function(){return TF.Command}});var Fhe=w(),RF=q(),_S=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,Mhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Dhe.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:"PutBucketWebsiteCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[Fhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutBucketWebsite"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,RF.se_PutBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,RF.de_PutBucketWebsiteCommand)(n,t)}};ai.PutBucketWebsiteCommand=_S});var bS=m(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.PutObjectAclCommand=ci.$Command=void 0;var Lhe=be(),jhe=x(),Uhe=k(),qF=b();Object.defineProperty(ci,"$Command",{enumerable:!0,get:function(){return qF.Command}});var zhe=w(),BF=q(),SS=class e extends qF.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,jhe.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:"PutObjectAclCommand",inputFilterSensitiveLog:c=>c,outputFilterSensitiveLog:c=>c,[zhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectAcl"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,BF.se_PutObjectAclCommand)(n,t)}deserialize(n,t){return(0,BF.de_PutObjectAclCommand)(n,t)}};ci.PutObjectAclCommand=SS});var PS=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.PutObjectCommand=di.$Command=void 0;var Ghe=be(),Hhe=Or(),$he=bt(),Khe=x(),Vhe=k(),FF=b();Object.defineProperty(di,"$Command",{enumerable:!0,get:function(){return FF.Command}});var Xhe=w(),DF=Je(),MF=q(),ES=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,Vhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Khe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Hhe.getCheckContentLengthHeaderPlugin)(t)),this.middlewareStack.use((0,$he.getSsecPlugin)(t)),this.middlewareStack.use((0,Ghe.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:DF.PutObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:DF.PutObjectOutputFilterSensitiveLog,[Xhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObject"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,MF.se_PutObjectCommand)(n,t)}deserialize(n,t){return(0,MF.de_PutObjectCommand)(n,t)}};di.PutObjectCommand=ES});var wS=m(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.PutObjectLegalHoldCommand=li.$Command=void 0;var Whe=be(),Yhe=x(),Jhe=k(),jF=b();Object.defineProperty(li,"$Command",{enumerable:!0,get:function(){return jF.Command}});var Qhe=w(),LF=q(),vS=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,Jhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Yhe.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Whe.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:c=>c,outputFilterSensitiveLog:c=>c,[Qhe.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectLegalHold"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,LF.se_PutObjectLegalHoldCommand)(n,t)}deserialize(n,t){return(0,LF.de_PutObjectLegalHoldCommand)(n,t)}};li.PutObjectLegalHoldCommand=vS});var kS=m(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.PutObjectLockConfigurationCommand=ui.$Command=void 0;var Zhe=be(),e_e=x(),t_e=k(),zF=b();Object.defineProperty(ui,"$Command",{enumerable:!0,get:function(){return zF.Command}});var n_e=w(),UF=q(),xS=class e extends zF.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,t_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,e_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Zhe.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:c=>c,outputFilterSensitiveLog:c=>c,[n_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectLockConfiguration"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,UF.se_PutObjectLockConfigurationCommand)(n,t)}deserialize(n,t){return(0,UF.de_PutObjectLockConfigurationCommand)(n,t)}};ui.PutObjectLockConfigurationCommand=xS});var OS=m(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.PutObjectRetentionCommand=mi.$Command=void 0;var r_e=be(),o_e=x(),s_e=k(),HF=b();Object.defineProperty(mi,"$Command",{enumerable:!0,get:function(){return HF.Command}});var i_e=w(),GF=q(),AS=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,s_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,o_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,r_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:c=>c,outputFilterSensitiveLog:c=>c,[i_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectRetention"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,GF.se_PutObjectRetentionCommand)(n,t)}deserialize(n,t){return(0,GF.de_PutObjectRetentionCommand)(n,t)}};mi.PutObjectRetentionCommand=AS});var IS=m(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.PutObjectTaggingCommand=pi.$Command=void 0;var a_e=be(),c_e=x(),d_e=k(),KF=b();Object.defineProperty(pi,"$Command",{enumerable:!0,get:function(){return KF.Command}});var l_e=w(),$F=q(),NS=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,d_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,c_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,a_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:c=>c,outputFilterSensitiveLog:c=>c,[l_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutObjectTagging"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,$F.se_PutObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,$F.de_PutObjectTaggingCommand)(n,t)}};pi.PutObjectTaggingCommand=NS});var TS=m(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.PutPublicAccessBlockCommand=fi.$Command=void 0;var u_e=be(),m_e=x(),p_e=k(),XF=b();Object.defineProperty(fi,"$Command",{enumerable:!0,get:function(){return XF.Command}});var f_e=w(),VF=q(),RS=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,p_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,m_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,u_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:c=>c,outputFilterSensitiveLog:c=>c,[f_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"PutPublicAccessBlock"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,VF.se_PutPublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,VF.de_PutPublicAccessBlockCommand)(n,t)}};fi.PutPublicAccessBlockCommand=RS});var qS=m(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.RestoreObjectCommand=yi.$Command=void 0;var y_e=be(),g_e=x(),h_e=k(),YF=b();Object.defineProperty(yi,"$Command",{enumerable:!0,get:function(){return YF.Command}});var __e=w(),C_e=Zn(),WF=q(),BS=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,h_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,g_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,y_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:C_e.RestoreObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[__e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"RestoreObject"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,WF.se_RestoreObjectCommand)(n,t)}deserialize(n,t){return(0,WF.de_RestoreObjectCommand)(n,t)}};yi.RestoreObjectCommand=BS});var MS=m(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.SelectObjectContentCommand=gi.$Command=void 0;var S_e=bt(),b_e=x(),E_e=k(),ZF=b();Object.defineProperty(gi,"$Command",{enumerable:!0,get:function(){return ZF.Command}});var P_e=w(),JF=Zn(),QF=q(),DS=class e extends ZF.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));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"SelectObjectContentCommand",inputFilterSensitiveLog:JF.SelectObjectContentRequestFilterSensitiveLog,outputFilterSensitiveLog:JF.SelectObjectContentOutputFilterSensitiveLog,[P_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"SelectObjectContent"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,QF.se_SelectObjectContentCommand)(n,t)}deserialize(n,t){return(0,QF.de_SelectObjectContentCommand)(n,t)}};gi.SelectObjectContentCommand=DS});var LS=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.UploadPartCommand=hi.$Command=void 0;var v_e=be(),w_e=bt(),x_e=x(),k_e=k(),nL=b();Object.defineProperty(hi,"$Command",{enumerable:!0,get:function(){return nL.Command}});var A_e=w(),eL=Zn(),tL=q(),FS=class e extends nL.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,w_e.getSsecPlugin)(t)),this.middlewareStack.use((0,v_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:eL.UploadPartRequestFilterSensitiveLog,outputFilterSensitiveLog:eL.UploadPartOutputFilterSensitiveLog,[A_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"UploadPart"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,tL.se_UploadPartCommand)(n,t)}deserialize(n,t){return(0,tL.de_UploadPartCommand)(n,t)}};hi.UploadPartCommand=FS});var US=m(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.UploadPartCopyCommand=_i.$Command=void 0;var O_e=Or(),N_e=bt(),I_e=x(),R_e=k(),sL=b();Object.defineProperty(_i,"$Command",{enumerable:!0,get:function(){return sL.Command}});var T_e=w(),rL=Zn(),oL=q(),jS=class e extends sL.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,R_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,I_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,O_e.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,N_e.getSsecPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"UploadPartCopyCommand",inputFilterSensitiveLog:rL.UploadPartCopyRequestFilterSensitiveLog,outputFilterSensitiveLog:rL.UploadPartCopyOutputFilterSensitiveLog,[T_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"UploadPartCopy"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,oL.se_UploadPartCopyCommand)(n,t)}deserialize(n,t){return(0,oL.de_UploadPartCopyCommand)(n,t)}};_i.UploadPartCopyCommand=jS});var GS=m(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.WriteGetObjectResponseCommand=Ci.$Command=void 0;var B_e=x(),q_e=k(),aL=b();Object.defineProperty(Ci,"$Command",{enumerable:!0,get:function(){return aL.Command}});var D_e=w(),M_e=Zn(),iL=q(),zS=class e extends aL.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,q_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,B_e.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"S3Client",commandName:"WriteGetObjectResponseCommand",inputFilterSensitiveLog:M_e.WriteGetObjectResponseRequestFilterSensitiveLog,outputFilterSensitiveLog:c=>c,[D_e.SMITHY_CONTEXT_KEY]:{service:"AmazonS3",operation:"WriteGetObjectResponse"}},{requestHandler:l}=t;return o.resolve(c=>l.handle(c.request,r||{}),u)}serialize(n,t){return(0,iL.se_WriteGetObjectResponseCommand)(n,t)}deserialize(n,t){return(0,iL.de_WriteGetObjectResponseCommand)(n,t)}};Ci.WriteGetObjectResponseCommand=zS});var cL=m(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.S3=void 0;var F_e=b(),L_e=mh(),j_e=fh(),U_e=gh(),z_e=_h(),G_e=Sh(),H_e=Eh(),$_e=vh(),K_e=xh(),V_e=Ah(),X_e=Nh(),W_e=Rh(),Y_e=Bh(),J_e=Dh(),Q_e=Fh(),Z_e=jh(),eCe=zh(),tCe=Hh(),nCe=Kh(),rCe=Xh(),oCe=d_(),sCe=u_(),iCe=p_(),aCe=y_(),cCe=h_(),dCe=C_(),lCe=b_(),uCe=P_(),mCe=w_(),pCe=k_(),fCe=O_(),yCe=I_(),gCe=T_(),hCe=q_(),_Ce=M_(),CCe=L_(),SCe=U_(),bCe=G_(),ECe=$_(),PCe=V_(),vCe=W_(),wCe=J_(),xCe=Z_(),kCe=tC(),ACe=rC(),OCe=sC(),NCe=aC(),ICe=dC(),RCe=uC(),TCe=pC(),BCe=yC(),qCe=hC(),DCe=Ha(),MCe=$a(),FCe=bC(),LCe=PC(),jCe=wC(),UCe=kC(),zCe=OC(),GCe=IC(),HCe=TC(),$Ce=Im(),KCe=DC(),VCe=Rm(),XCe=LC(),WCe=UC(),YCe=GC(),JCe=$C(),QCe=VC(),ZCe=WC(),eSe=JC(),tSe=ZC(),nSe=tS(),rSe=rS(),oSe=sS(),sSe=aS(),iSe=dS(),aSe=uS(),cSe=pS(),dSe=yS(),lSe=hS(),uSe=CS(),mSe=bS(),pSe=PS(),fSe=wS(),ySe=kS(),gSe=OS(),hSe=IS(),_Se=TS(),CSe=qS(),SSe=MS(),bSe=LS(),ESe=US(),PSe=GS(),vSe=Fa(),wSe={AbortMultipartUploadCommand:L_e.AbortMultipartUploadCommand,CompleteMultipartUploadCommand:j_e.CompleteMultipartUploadCommand,CopyObjectCommand:U_e.CopyObjectCommand,CreateBucketCommand:z_e.CreateBucketCommand,CreateMultipartUploadCommand:G_e.CreateMultipartUploadCommand,DeleteBucketCommand:$_e.DeleteBucketCommand,DeleteBucketAnalyticsConfigurationCommand:H_e.DeleteBucketAnalyticsConfigurationCommand,DeleteBucketCorsCommand:K_e.DeleteBucketCorsCommand,DeleteBucketEncryptionCommand:V_e.DeleteBucketEncryptionCommand,DeleteBucketIntelligentTieringConfigurationCommand:X_e.DeleteBucketIntelligentTieringConfigurationCommand,DeleteBucketInventoryConfigurationCommand:W_e.DeleteBucketInventoryConfigurationCommand,DeleteBucketLifecycleCommand:Y_e.DeleteBucketLifecycleCommand,DeleteBucketMetricsConfigurationCommand:J_e.DeleteBucketMetricsConfigurationCommand,DeleteBucketOwnershipControlsCommand:Q_e.DeleteBucketOwnershipControlsCommand,DeleteBucketPolicyCommand:Z_e.DeleteBucketPolicyCommand,DeleteBucketReplicationCommand:eCe.DeleteBucketReplicationCommand,DeleteBucketTaggingCommand:tCe.DeleteBucketTaggingCommand,DeleteBucketWebsiteCommand:nCe.DeleteBucketWebsiteCommand,DeleteObjectCommand:rCe.DeleteObjectCommand,DeleteObjectsCommand:oCe.DeleteObjectsCommand,DeleteObjectTaggingCommand:sCe.DeleteObjectTaggingCommand,DeletePublicAccessBlockCommand:iCe.DeletePublicAccessBlockCommand,GetBucketAccelerateConfigurationCommand:aCe.GetBucketAccelerateConfigurationCommand,GetBucketAclCommand:cCe.GetBucketAclCommand,GetBucketAnalyticsConfigurationCommand:dCe.GetBucketAnalyticsConfigurationCommand,GetBucketCorsCommand:lCe.GetBucketCorsCommand,GetBucketEncryptionCommand:uCe.GetBucketEncryptionCommand,GetBucketIntelligentTieringConfigurationCommand:mCe.GetBucketIntelligentTieringConfigurationCommand,GetBucketInventoryConfigurationCommand:pCe.GetBucketInventoryConfigurationCommand,GetBucketLifecycleConfigurationCommand:fCe.GetBucketLifecycleConfigurationCommand,GetBucketLocationCommand:yCe.GetBucketLocationCommand,GetBucketLoggingCommand:gCe.GetBucketLoggingCommand,GetBucketMetricsConfigurationCommand:hCe.GetBucketMetricsConfigurationCommand,GetBucketNotificationConfigurationCommand:_Ce.GetBucketNotificationConfigurationCommand,GetBucketOwnershipControlsCommand:CCe.GetBucketOwnershipControlsCommand,GetBucketPolicyCommand:SCe.GetBucketPolicyCommand,GetBucketPolicyStatusCommand:bCe.GetBucketPolicyStatusCommand,GetBucketReplicationCommand:ECe.GetBucketReplicationCommand,GetBucketRequestPaymentCommand:PCe.GetBucketRequestPaymentCommand,GetBucketTaggingCommand:vCe.GetBucketTaggingCommand,GetBucketVersioningCommand:wCe.GetBucketVersioningCommand,GetBucketWebsiteCommand:xCe.GetBucketWebsiteCommand,GetObjectCommand:OCe.GetObjectCommand,GetObjectAclCommand:kCe.GetObjectAclCommand,GetObjectAttributesCommand:ACe.GetObjectAttributesCommand,GetObjectLegalHoldCommand:NCe.GetObjectLegalHoldCommand,GetObjectLockConfigurationCommand:ICe.GetObjectLockConfigurationCommand,GetObjectRetentionCommand:RCe.GetObjectRetentionCommand,GetObjectTaggingCommand:TCe.GetObjectTaggingCommand,GetObjectTorrentCommand:BCe.GetObjectTorrentCommand,GetPublicAccessBlockCommand:qCe.GetPublicAccessBlockCommand,HeadBucketCommand:DCe.HeadBucketCommand,HeadObjectCommand:MCe.HeadObjectCommand,ListBucketAnalyticsConfigurationsCommand:FCe.ListBucketAnalyticsConfigurationsCommand,ListBucketIntelligentTieringConfigurationsCommand:LCe.ListBucketIntelligentTieringConfigurationsCommand,ListBucketInventoryConfigurationsCommand:jCe.ListBucketInventoryConfigurationsCommand,ListBucketMetricsConfigurationsCommand:UCe.ListBucketMetricsConfigurationsCommand,ListBucketsCommand:zCe.ListBucketsCommand,ListMultipartUploadsCommand:GCe.ListMultipartUploadsCommand,ListObjectsCommand:HCe.ListObjectsCommand,ListObjectsV2Command:$Ce.ListObjectsV2Command,ListObjectVersionsCommand:KCe.ListObjectVersionsCommand,ListPartsCommand:VCe.ListPartsCommand,PutBucketAccelerateConfigurationCommand:XCe.PutBucketAccelerateConfigurationCommand,PutBucketAclCommand:WCe.PutBucketAclCommand,PutBucketAnalyticsConfigurationCommand:YCe.PutBucketAnalyticsConfigurationCommand,PutBucketCorsCommand:JCe.PutBucketCorsCommand,PutBucketEncryptionCommand:QCe.PutBucketEncryptionCommand,PutBucketIntelligentTieringConfigurationCommand:ZCe.PutBucketIntelligentTieringConfigurationCommand,PutBucketInventoryConfigurationCommand:eSe.PutBucketInventoryConfigurationCommand,PutBucketLifecycleConfigurationCommand:tSe.PutBucketLifecycleConfigurationCommand,PutBucketLoggingCommand:nSe.PutBucketLoggingCommand,PutBucketMetricsConfigurationCommand:rSe.PutBucketMetricsConfigurationCommand,PutBucketNotificationConfigurationCommand:oSe.PutBucketNotificationConfigurationCommand,PutBucketOwnershipControlsCommand:sSe.PutBucketOwnershipControlsCommand,PutBucketPolicyCommand:iSe.PutBucketPolicyCommand,PutBucketReplicationCommand:aSe.PutBucketReplicationCommand,PutBucketRequestPaymentCommand:cSe.PutBucketRequestPaymentCommand,PutBucketTaggingCommand:dSe.PutBucketTaggingCommand,PutBucketVersioningCommand:lSe.PutBucketVersioningCommand,PutBucketWebsiteCommand:uSe.PutBucketWebsiteCommand,PutObjectCommand:pSe.PutObjectCommand,PutObjectAclCommand:mSe.PutObjectAclCommand,PutObjectLegalHoldCommand:fSe.PutObjectLegalHoldCommand,PutObjectLockConfigurationCommand:ySe.PutObjectLockConfigurationCommand,PutObjectRetentionCommand:gSe.PutObjectRetentionCommand,PutObjectTaggingCommand:hSe.PutObjectTaggingCommand,PutPublicAccessBlockCommand:_Se.PutPublicAccessBlockCommand,RestoreObjectCommand:CSe.RestoreObjectCommand,SelectObjectContentCommand:SSe.SelectObjectContentCommand,UploadPartCommand:bSe.UploadPartCommand,UploadPartCopyCommand:ESe.UploadPartCopyCommand,WriteGetObjectResponseCommand:PSe.WriteGetObjectResponseCommand},Tm=class extends vSe.S3Client{};Bm.S3=Tm;(0,F_e.createAggregatedClient)(wSe,Tm)});var dL=m(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});var L=(ne(),J(te));L.__exportStar(mh(),T);L.__exportStar(fh(),T);L.__exportStar(gh(),T);L.__exportStar(_h(),T);L.__exportStar(Sh(),T);L.__exportStar(Eh(),T);L.__exportStar(vh(),T);L.__exportStar(xh(),T);L.__exportStar(Ah(),T);L.__exportStar(Nh(),T);L.__exportStar(Rh(),T);L.__exportStar(Bh(),T);L.__exportStar(Dh(),T);L.__exportStar(Fh(),T);L.__exportStar(jh(),T);L.__exportStar(zh(),T);L.__exportStar(Hh(),T);L.__exportStar(Kh(),T);L.__exportStar(Xh(),T);L.__exportStar(u_(),T);L.__exportStar(d_(),T);L.__exportStar(p_(),T);L.__exportStar(y_(),T);L.__exportStar(h_(),T);L.__exportStar(C_(),T);L.__exportStar(b_(),T);L.__exportStar(P_(),T);L.__exportStar(w_(),T);L.__exportStar(k_(),T);L.__exportStar(O_(),T);L.__exportStar(I_(),T);L.__exportStar(T_(),T);L.__exportStar(q_(),T);L.__exportStar(M_(),T);L.__exportStar(L_(),T);L.__exportStar(U_(),T);L.__exportStar(G_(),T);L.__exportStar($_(),T);L.__exportStar(V_(),T);L.__exportStar(W_(),T);L.__exportStar(J_(),T);L.__exportStar(Z_(),T);L.__exportStar(tC(),T);L.__exportStar(rC(),T);L.__exportStar(sC(),T);L.__exportStar(aC(),T);L.__exportStar(dC(),T);L.__exportStar(uC(),T);L.__exportStar(pC(),T);L.__exportStar(yC(),T);L.__exportStar(hC(),T);L.__exportStar(Ha(),T);L.__exportStar($a(),T);L.__exportStar(bC(),T);L.__exportStar(PC(),T);L.__exportStar(wC(),T);L.__exportStar(kC(),T);L.__exportStar(OC(),T);L.__exportStar(IC(),T);L.__exportStar(DC(),T);L.__exportStar(TC(),T);L.__exportStar(Im(),T);L.__exportStar(Rm(),T);L.__exportStar(LC(),T);L.__exportStar(UC(),T);L.__exportStar(GC(),T);L.__exportStar($C(),T);L.__exportStar(VC(),T);L.__exportStar(WC(),T);L.__exportStar(JC(),T);L.__exportStar(ZC(),T);L.__exportStar(tS(),T);L.__exportStar(rS(),T);L.__exportStar(sS(),T);L.__exportStar(aS(),T);L.__exportStar(dS(),T);L.__exportStar(uS(),T);L.__exportStar(pS(),T);L.__exportStar(yS(),T);L.__exportStar(hS(),T);L.__exportStar(CS(),T);L.__exportStar(bS(),T);L.__exportStar(PS(),T);L.__exportStar(wS(),T);L.__exportStar(kS(),T);L.__exportStar(OS(),T);L.__exportStar(IS(),T);L.__exportStar(TS(),T);L.__exportStar(qS(),T);L.__exportStar(MS(),T);L.__exportStar(LS(),T);L.__exportStar(US(),T);L.__exportStar(GS(),T)});var uL=m(lL=>{"use strict";Object.defineProperty(lL,"__esModule",{value:!0})});var mL=m(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.paginateListObjectsV2=void 0;var xSe=Im(),kSe=Fa(),ASe=async(e,n,...t)=>await e.send(new xSe.ListObjectsV2Command(n),...t);async function*OSe(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 kSe.S3Client)s=await ASe(e.client,n,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield s;let a=r;r=s.NextContinuationToken,o=!!(r&&(!e.stopOnSameToken||r!==a))}return void 0}qm.paginateListObjectsV2=OSe});var pL=m(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.paginateListParts=void 0;var NSe=Rm(),ISe=Fa(),RSe=async(e,n,...t)=>await e.send(new NSe.ListPartsCommand(n),...t);async function*TSe(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 ISe.S3Client)s=await RSe(e.client,n,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield s;let a=r;r=s.NextPartNumberMarker,o=!!(r&&(!e.stopOnSameToken||r!==a))}return void 0}Dm.paginateListParts=TSe});var fL=m(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var HS=(ne(),J(te));HS.__exportStar(uL(),Ka);HS.__exportStar(mL(),Ka);HS.__exportStar(pL(),Ka)});var Va=m((cOe,CL)=>{var Mm=Object.defineProperty,BSe=Object.getOwnPropertyDescriptor,qSe=Object.getOwnPropertyNames,DSe=Object.prototype.hasOwnProperty,or=(e,n)=>Mm(e,"name",{value:n,configurable:!0}),MSe=(e,n)=>{for(var t in n)Mm(e,t,{get:n[t],enumerable:!0})},FSe=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of qSe(n))!DSe.call(e,o)&&o!==t&&Mm(e,o,{get:()=>n[o],enumerable:!(r=BSe(n,o))||r.enumerable});return e},LSe=e=>FSe(Mm({},"__esModule",{value:!0}),e),gL={};MSe(gL,{WaiterState:()=>_L,checkExceptions:()=>USe,createWaiter:()=>KSe,waiterServiceDefaults:()=>hL});CL.exports=LSe(gL);var jSe=or(e=>new Promise(n=>setTimeout(n,e*1e3)),"sleep"),hL={minDelay:2,maxDelay:120},_L=(e=>(e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT",e))(_L||{}),USe=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"),zSe=or((e,n,t,r)=>{if(r>t)return n;let o=e*2**(r-1);return GSe(e,o)},"exponentialBackoffWithJitter"),GSe=or((e,n)=>e+Math.random()*(n-e),"randomInRange"),HSe=or(async({minDelay:e,maxDelay:n,maxWaitTime:t,abortController:r,client:o,abortSignal:s},a,i)=>{var u;let{state:l,reason:c}=await i(o,a);if(l!=="RETRY")return{state:l,reason:c};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 P=zSe(e,n,C,y);if(Date.now()+P*1e3>g)return{state:"TIMEOUT"};await jSe(P);let{state:A,reason:v}=await i(o,a);if(A!=="RETRY")return{state:A,reason:v};y+=1}},"runPolling"),$Se=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"),KSe=or(async(e,n,t)=>{let r={...hL,...e};$Se(r);let o=[HSe(r,n,t)];return e.abortController&&o.push(yL(e.abortController.signal)),e.abortSignal&&o.push(yL(e.abortSignal)),Promise.race(o)},"createWaiter")});var bL=m(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.waitUntilBucketExists=bi.waitForBucketExists=void 0;var Si=Va(),VSe=Ha(),SL=async(e,n)=>{let t;try{return t=await e.send(new VSe.HeadBucketCommand(n)),{state:Si.WaiterState.SUCCESS,reason:t}}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Si.WaiterState.RETRY,reason:t}}return{state:Si.WaiterState.RETRY,reason:t}},XSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Si.createWaiter)({...t,...e},n,SL)};bi.waitForBucketExists=XSe;var WSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Si.createWaiter)({...t,...e},n,SL);return(0,Si.checkExceptions)(r)};bi.waitUntilBucketExists=WSe});var PL=m(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.waitUntilBucketNotExists=Ei.waitForBucketNotExists=void 0;var Xa=Va(),YSe=Ha(),EL=async(e,n)=>{let t;try{t=await e.send(new YSe.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}},JSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Xa.createWaiter)({...t,...e},n,EL)};Ei.waitForBucketNotExists=JSe;var QSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Xa.createWaiter)({...t,...e},n,EL);return(0,Xa.checkExceptions)(r)};Ei.waitUntilBucketNotExists=QSe});var wL=m(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.waitUntilObjectExists=vi.waitForObjectExists=void 0;var Pi=Va(),ZSe=$a(),vL=async(e,n)=>{let t;try{return t=await e.send(new ZSe.HeadObjectCommand(n)),{state:Pi.WaiterState.SUCCESS,reason:t}}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Pi.WaiterState.RETRY,reason:t}}return{state:Pi.WaiterState.RETRY,reason:t}},ebe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Pi.createWaiter)({...t,...e},n,vL)};vi.waitForObjectExists=ebe;var tbe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Pi.createWaiter)({...t,...e},n,vL);return(0,Pi.checkExceptions)(r)};vi.waitUntilObjectExists=tbe});var kL=m(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.waitUntilObjectNotExists=wi.waitForObjectNotExists=void 0;var Wa=Va(),nbe=$a(),xL=async(e,n)=>{let t;try{t=await e.send(new nbe.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}},rbe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Wa.createWaiter)({...t,...e},n,xL)};wi.waitForObjectNotExists=rbe;var obe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Wa.createWaiter)({...t,...e},n,xL);return(0,Wa.checkExceptions)(r)};wi.waitUntilObjectNotExists=obe});var AL=m(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});var Fm=(ne(),J(te));Fm.__exportStar(bL(),xi);Fm.__exportStar(PL(),xi);Fm.__exportStar(wL(),xi);Fm.__exportStar(kL(),xi)});var NL=m(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});var OL=(ne(),J(te));OL.__exportStar(Je(),Lm);OL.__exportStar(Zn(),Lm)});var IL=m(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.S3ServiceException=void 0;var ki=(ne(),J(te));ki.__exportStar(Fa(),Qt);ki.__exportStar(cL(),Qt);ki.__exportStar(dL(),Qt);ki.__exportStar(fL(),Qt);ki.__exportStar(AL(),Qt);ki.__exportStar(NL(),Qt);var sbe=La();Object.defineProperty(Qt,"S3ServiceException",{enumerable:!0,get:function(){return sbe.S3ServiceException}})});var cbe={};Oi(cbe,{handler:()=>abe});module.exports=J(cbe);var RL=Ni(IL()),TL=Ni(require("delay")),ibe=new RL.S3;async function abe(){console.log(ibe),await(0,TL.default)(5)}0&&(module.exports={handler}); +/*! Bundled license information: + +tslib/tslib.es6.js: + (*! ***************************************************************************** + Copyright (c) Microsoft Corporation. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + 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. + ***************************************************************************** *) + +tslib/tslib.es6.js: + (*! ***************************************************************************** + Copyright (c) Microsoft Corporation. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + 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. + ***************************************************************************** *) +*/ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/node_modules/.yarn-integrity b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/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.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/node_modules/.yarn-integrity rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/node_modules/.yarn-integrity diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/node_modules/delay/index.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/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.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/node_modules/delay/index.d.ts rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/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.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/node_modules/delay/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/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.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/node_modules/delay/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/node_modules/delay/index.js diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/node_modules/delay/license b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/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.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/node_modules/delay/license rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/node_modules/delay/license diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/node_modules/delay/package.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/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.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/node_modules/delay/package.json rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/node_modules/delay/package.json diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/node_modules/delay/readme.md b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/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.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/node_modules/delay/readme.md rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/node_modules/delay/readme.md diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/package.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/package.json similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/package.json rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/package.json diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/yarn.lock b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/yarn.lock similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f/yarn.lock rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac/yarn.lock diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/bundling-temp-71cc1f73324ecf927c754dd5f0d3c2a644d9d3210f3e05620217e3db1b009ddc/package.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/bundling-temp-71cc1f73324ecf927c754dd5f0d3c2a644d9d3210f3e05620217e3db1b009ddc/package.json deleted file mode 100644 index 4d496d170e3fd..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/bundling-temp-71cc1f73324ecf927c754dd5f0d3c2a644d9d3210f3e05620217e3db1b009ddc/package.json +++ /dev/null @@ -1 +0,0 @@ -{"dependencies":{"delay":"5.0.0"}} diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/bundling-temp-71cc1f73324ecf927c754dd5f0d3c2a644d9d3210f3e05620217e3db1b009ddc/yarn.lock b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/bundling-temp-71cc1f73324ecf927c754dd5f0d3c2a644d9d3210f3e05620217e3db1b009ddc/yarn.lock deleted file mode 100644 index 1e82e94000a8c..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/bundling-temp-71cc1f73324ecf927c754dd5f0d3c2a644d9d3210f3e05620217e3db1b009ddc/yarn.lock +++ /dev/null @@ -1,8 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -delay@5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/delay/-/delay-5.0.0.tgz#137045ef1b96e5071060dd5be60bf9334436bd1d" - integrity sha512-ReEBKkIfe4ya47wlPYf/gu5ib6yUG0/Aez0JQZQz94kiWtRQvZIQbTiehsnwHvLSWJnQdhVeqYue7Id1dKr0qw== 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 5a3e5ad6cee20..ecc9b5435e35f 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": { - "386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f": { + "f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac": { "source": { - "path": "asset.386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f", + "path": "asset.f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f.zip", + "objectKey": "f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "191c2b7c95ec1945abc8a2fab739ab8d2917e006fe03660150a4ebbe8929eacf": { + "f76815709e905a0629750d0c44c8947cd637994a905c48a5705ff4d61830a6a3": { "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": "191c2b7c95ec1945abc8a2fab739ab8d2917e006fe03660150a4ebbe8929eacf.json", + "objectKey": "f76815709e905a0629750d0c44c8947cd637994a905c48a5705ff4d61830a6a3.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 a0f8beb7951f5..9bb6142015092 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": "5cea6a85ed0a0680ff29f4c65face159d9990204dd6cae4a489ad3dbd8e25c06.zip" + "S3Key": "f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac.zip" }, "Environment": { "Variables": { @@ -103,4 +103,4 @@ ] } } -} +} \ No newline at end of file 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 6ada11967f7e2..b4d16b9a7f07c 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}/191c2b7c95ec1945abc8a2fab739ab8d2917e006fe03660150a4ebbe8929eacf.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f76815709e905a0629750d0c44c8947cd637994a905c48a5705ff4d61830a6a3.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}/1d10b8caf2cb2eae49df0a0e4771deac196be9378fc17c0b362ad22eb23146f7.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3987b03486cf6080b1bfeec0f61db44127df0bd1ebade5e3229d33dacf20ae9e.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 51516426fe7ea..e5af252e314ef 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": "386feb67b7bf6af448077c3c16e21124802b9da0b0c9a5e9f1ba783d2c2fb01f.zip" + "s3Key": "f9b0f4d8625cbe898e0489f6ac67297230716f8ccea80be6f26c8793a9e220ac.zip" }, "environment": { "variables": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/IntegDefaultTestDeployAssert4E6713E1.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/IntegDefaultTestDeployAssert4E6713E1.assets.json new file mode 100644 index 0000000000000..2af610f0d4a39 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/IntegDefaultTestDeployAssert4E6713E1.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { + "source": { + "path": "IntegDefaultTestDeployAssert4E6713E1.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-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/IntegDefaultTestDeployAssert4E6713E1.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/IntegDefaultTestDeployAssert4E6713E1.template.json new file mode 100644 index 0000000000000..ad9d0fb73d1dd --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/IntegDefaultTestDeployAssert4E6713E1.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-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/cdk-integ-opensearch-with-logging-disabled.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/cdk-integ-opensearch-with-logging-disabled.assets.json new file mode 100644 index 0000000000000..b46fb3b2b28a2 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/cdk-integ-opensearch-with-logging-disabled.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "415ec226ad6b4b9ef60a562147e766bbbb20cee0dbafabba072b480f5be4521e": { + "source": { + "path": "cdk-integ-opensearch-with-logging-disabled.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "415ec226ad6b4b9ef60a562147e766bbbb20cee0dbafabba072b480f5be4521e.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-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/cdk-integ-opensearch-with-logging-disabled.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/cdk-integ-opensearch-with-logging-disabled.template.json new file mode 100644 index 0000000000000..e40bf735f746d --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/cdk-integ-opensearch-with-logging-disabled.template.json @@ -0,0 +1,82 @@ +{ + "Resources": { + "Domain66AC69E0": { + "Type": "AWS::OpenSearchService::Domain", + "Properties": { + "ClusterConfig": { + "DedicatedMasterEnabled": false, + "InstanceCount": 1, + "InstanceType": "r5.large.search", + "MultiAZWithStandbyEnabled": false, + "ZoneAwarenessEnabled": false + }, + "DomainEndpointOptions": { + "EnforceHTTPS": false, + "TLSSecurityPolicy": "Policy-Min-TLS-1-0-2019-07" + }, + "EBSOptions": { + "EBSEnabled": true, + "VolumeSize": 10, + "VolumeType": "gp2" + }, + "EncryptionAtRestOptions": { + "Enabled": false + }, + "EngineVersion": "OpenSearch_2.11", + "LogPublishingOptions": { + "SEARCH_SLOW_LOGS": { + "Enabled": false + }, + "INDEX_SLOW_LOGS": { + "Enabled": false + }, + "ES_APPLICATION_LOGS": { + "Enabled": false + }, + "AUDIT_LOGS": { + "Enabled": false + } + }, + "NodeToNodeEncryptionOptions": { + "Enabled": false + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + } + }, + "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-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/cdk.out new file mode 100644 index 0000000000000..1f0068d32659a --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.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-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/integ.json new file mode 100644 index 0000000000000..6da636c654237 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/integ.json @@ -0,0 +1,12 @@ +{ + "version": "36.0.0", + "testCases": { + "Integ/DefaultTest": { + "stacks": [ + "cdk-integ-opensearch-with-logging-disabled" + ], + "assertionStack": "Integ/DefaultTest/DeployAssert", + "assertionStackName": "IntegDefaultTestDeployAssert4E6713E1" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/manifest.json new file mode 100644 index 0000000000000..22189f0b3cf1b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/manifest.json @@ -0,0 +1,113 @@ +{ + "version": "36.0.0", + "artifacts": { + "cdk-integ-opensearch-with-logging-disabled.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "cdk-integ-opensearch-with-logging-disabled.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "cdk-integ-opensearch-with-logging-disabled": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "cdk-integ-opensearch-with-logging-disabled.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}/415ec226ad6b4b9ef60a562147e766bbbb20cee0dbafabba072b480f5be4521e.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "cdk-integ-opensearch-with-logging-disabled.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": [ + "cdk-integ-opensearch-with-logging-disabled.assets" + ], + "metadata": { + "/cdk-integ-opensearch-with-logging-disabled/Domain/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "Domain66AC69E0" + } + ], + "/cdk-integ-opensearch-with-logging-disabled/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/cdk-integ-opensearch-with-logging-disabled/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "cdk-integ-opensearch-with-logging-disabled" + }, + "IntegDefaultTestDeployAssert4E6713E1.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "IntegDefaultTestDeployAssert4E6713E1.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "IntegDefaultTestDeployAssert4E6713E1": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "IntegDefaultTestDeployAssert4E6713E1.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": [ + "IntegDefaultTestDeployAssert4E6713E1.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": [ + "IntegDefaultTestDeployAssert4E6713E1.assets" + ], + "metadata": { + "/Integ/DefaultTest/DeployAssert/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "Integ/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-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/tree.json new file mode 100644 index 0000000000000..4164a22f7ead6 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.js.snapshot/tree.json @@ -0,0 +1,161 @@ +{ + "version": "tree-0.1", + "tree": { + "id": "App", + "path": "", + "children": { + "cdk-integ-opensearch-with-logging-disabled": { + "id": "cdk-integ-opensearch-with-logging-disabled", + "path": "cdk-integ-opensearch-with-logging-disabled", + "children": { + "Domain": { + "id": "Domain", + "path": "cdk-integ-opensearch-with-logging-disabled/Domain", + "children": { + "Resource": { + "id": "Resource", + "path": "cdk-integ-opensearch-with-logging-disabled/Domain/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::OpenSearchService::Domain", + "aws:cdk:cloudformation:props": { + "clusterConfig": { + "dedicatedMasterEnabled": false, + "instanceCount": 1, + "instanceType": "r5.large.search", + "multiAzWithStandbyEnabled": false, + "zoneAwarenessEnabled": false + }, + "domainEndpointOptions": { + "enforceHttps": false, + "tlsSecurityPolicy": "Policy-Min-TLS-1-0-2019-07" + }, + "ebsOptions": { + "ebsEnabled": true, + "volumeSize": 10, + "volumeType": "gp2" + }, + "encryptionAtRestOptions": { + "enabled": false + }, + "engineVersion": "OpenSearch_2.11", + "logPublishingOptions": { + "SEARCH_SLOW_LOGS": { + "enabled": false + }, + "INDEX_SLOW_LOGS": { + "enabled": false + }, + "ES_APPLICATION_LOGS": { + "enabled": false + }, + "AUDIT_LOGS": { + "enabled": false + } + }, + "nodeToNodeEncryptionOptions": { + "enabled": false + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_opensearchservice.CfnDomain", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_opensearchservice.Domain", + "version": "0.0.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "cdk-integ-opensearch-with-logging-disabled/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "cdk-integ-opensearch-with-logging-disabled/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + }, + "Integ": { + "id": "Integ", + "path": "Integ", + "children": { + "DefaultTest": { + "id": "DefaultTest", + "path": "Integ/DefaultTest", + "children": { + "Default": { + "id": "Default", + "path": "Integ/DefaultTest/Default", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DeployAssert": { + "id": "DeployAssert", + "path": "Integ/DefaultTest/DeployAssert", + "children": { + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "Integ/DefaultTest/DeployAssert/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "Integ/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-opensearchservice/test/integ.opensearch.disable-logging.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.ts new file mode 100644 index 0000000000000..7ebaaa8d1e056 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-opensearchservice/test/integ.opensearch.disable-logging.ts @@ -0,0 +1,29 @@ +import { App, RemovalPolicy, Stack, StackProps } from 'aws-cdk-lib'; +import { Construct } from 'constructs'; +import * as opensearch from 'aws-cdk-lib/aws-opensearchservice'; + +class TestStack extends Stack { + constructor(scope: Construct, id: string, props?: StackProps) { + super(scope, id, props); + + const domainProps: opensearch.DomainProps = { + version: opensearch.EngineVersion.OPENSEARCH_2_11, + removalPolicy: RemovalPolicy.DESTROY, + logging: { + auditLogEnabled: false, + appLogEnabled: false, + slowIndexLogEnabled: false, + slowSearchLogEnabled: false, + }, + capacity: { + multiAzWithStandbyEnabled: false, + }, + }; + + new opensearch.Domain(this, 'Domain', domainProps); + } +} + +const app = new App(); +new TestStack(app, 'cdk-integ-opensearch-with-logging-disabled'); +app.synth(); \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/cluster-kerberos.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/cluster-data-api.assets.json similarity index 82% rename from packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/cluster-kerberos.assets.json rename to packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/cluster-data-api.assets.json index df5838befd59b..b800063a0def3 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/cluster-kerberos.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/cluster-data-api.assets.json @@ -14,15 +14,15 @@ } } }, - "30c06211c853a3fd7c30a7376cbd63b2155519a67ba90ed0a731aa67dcd179e2": { + "b2fb40833cc33946a3656aa5e2cdb19e4259b9a84dbabe7a6559ad319344359d": { "source": { - "path": "cluster-kerberos.template.json", + "path": "cluster-data-api.template.json", "packaging": "file" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "30c06211c853a3fd7c30a7376cbd63b2155519a67ba90ed0a731aa67dcd179e2.json", + "objectKey": "b2fb40833cc33946a3656aa5e2cdb19e4259b9a84dbabe7a6559ad319344359d.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-rds/test/integ.cluster-data-api.js.snapshot/cluster-kerberos.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/cluster-data-api.template.json similarity index 95% rename from packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/cluster-kerberos.template.json rename to packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/cluster-data-api.template.json index 43e8e05ad0450..76ea729cef991 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/cluster-kerberos.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/cluster-data-api.template.json @@ -10,7 +10,7 @@ "Tags": [ { "Key": "Name", - "Value": "cluster-kerberos/VPC" + "Value": "cluster-data-api/VPC" } ] } @@ -39,7 +39,7 @@ }, { "Key": "Name", - "Value": "cluster-kerberos/VPC/PublicSubnet1" + "Value": "cluster-data-api/VPC/PublicSubnet1" } ], "VpcId": { @@ -53,7 +53,7 @@ "Tags": [ { "Key": "Name", - "Value": "cluster-kerberos/VPC/PublicSubnet1" + "Value": "cluster-data-api/VPC/PublicSubnet1" } ], "VpcId": { @@ -94,7 +94,7 @@ "Tags": [ { "Key": "Name", - "Value": "cluster-kerberos/VPC/PublicSubnet1" + "Value": "cluster-data-api/VPC/PublicSubnet1" } ] } @@ -114,7 +114,7 @@ "Tags": [ { "Key": "Name", - "Value": "cluster-kerberos/VPC/PublicSubnet1" + "Value": "cluster-data-api/VPC/PublicSubnet1" } ] }, @@ -147,7 +147,7 @@ }, { "Key": "Name", - "Value": "cluster-kerberos/VPC/PublicSubnet2" + "Value": "cluster-data-api/VPC/PublicSubnet2" } ], "VpcId": { @@ -161,7 +161,7 @@ "Tags": [ { "Key": "Name", - "Value": "cluster-kerberos/VPC/PublicSubnet2" + "Value": "cluster-data-api/VPC/PublicSubnet2" } ], "VpcId": { @@ -202,7 +202,7 @@ "Tags": [ { "Key": "Name", - "Value": "cluster-kerberos/VPC/PublicSubnet2" + "Value": "cluster-data-api/VPC/PublicSubnet2" } ] } @@ -222,7 +222,7 @@ "Tags": [ { "Key": "Name", - "Value": "cluster-kerberos/VPC/PublicSubnet2" + "Value": "cluster-data-api/VPC/PublicSubnet2" } ] }, @@ -255,7 +255,7 @@ }, { "Key": "Name", - "Value": "cluster-kerberos/VPC/PrivateSubnet1" + "Value": "cluster-data-api/VPC/PrivateSubnet1" } ], "VpcId": { @@ -269,7 +269,7 @@ "Tags": [ { "Key": "Name", - "Value": "cluster-kerberos/VPC/PrivateSubnet1" + "Value": "cluster-data-api/VPC/PrivateSubnet1" } ], "VpcId": { @@ -324,7 +324,7 @@ }, { "Key": "Name", - "Value": "cluster-kerberos/VPC/PrivateSubnet2" + "Value": "cluster-data-api/VPC/PrivateSubnet2" } ], "VpcId": { @@ -338,7 +338,7 @@ "Tags": [ { "Key": "Name", - "Value": "cluster-kerberos/VPC/PrivateSubnet2" + "Value": "cluster-data-api/VPC/PrivateSubnet2" } ], "VpcId": { @@ -375,7 +375,7 @@ "Tags": [ { "Key": "Name", - "Value": "cluster-kerberos/VPC" + "Value": "cluster-data-api/VPC" } ] } @@ -543,6 +543,16 @@ "Properties": { "PolicyDocument": { "Statement": [ + { + "Action": [ + "secretsmanager:DescribeSecret", + "secretsmanager:GetSecretValue" + ], + "Effect": "Allow", + "Resource": { + "Ref": "DatabaseSecretAttachmentE5D1B020" + } + }, { "Action": [ "rds-data:BatchExecuteStatement", @@ -575,16 +585,6 @@ ] ] } - }, - { - "Action": [ - "secretsmanager:DescribeSecret", - "secretsmanager:GetSecretValue" - ], - "Effect": "Allow", - "Resource": { - "Ref": "DatabaseSecretAttachmentE5D1B020" - } } ], "Version": "2012-10-17" diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/integ.json index 9d07906800ea0..f58e123a17c69 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/integ.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/integ.json @@ -3,7 +3,7 @@ "testCases": { "integ-cluster-data-api/DefaultTest": { "stacks": [ - "cluster-kerberos" + "cluster-data-api" ], "assertionStack": "integ-cluster-data-api/DefaultTest/DeployAssert", "assertionStackName": "integclusterdataapiDefaultTestDeployAssertACD87C08" diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/manifest.json index 97dcacd1833fa..873f1cd7cb6c8 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/manifest.json @@ -1,28 +1,28 @@ { "version": "36.0.0", "artifacts": { - "cluster-kerberos.assets": { + "cluster-data-api.assets": { "type": "cdk:asset-manifest", "properties": { - "file": "cluster-kerberos.assets.json", + "file": "cluster-data-api.assets.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" } }, - "cluster-kerberos": { + "cluster-data-api": { "type": "aws:cloudformation:stack", "environment": "aws://unknown-account/unknown-region", "properties": { - "templateFile": "cluster-kerberos.template.json", + "templateFile": "cluster-data-api.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}/30c06211c853a3fd7c30a7376cbd63b2155519a67ba90ed0a731aa67dcd179e2.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b2fb40833cc33946a3656aa5e2cdb19e4259b9a84dbabe7a6559ad319344359d.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ - "cluster-kerberos.assets" + "cluster-data-api.assets" ], "lookupRole": { "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", @@ -31,233 +31,233 @@ } }, "dependencies": [ - "cluster-kerberos.assets" + "cluster-data-api.assets" ], "metadata": { - "/cluster-kerberos/VPC/Resource": [ + "/cluster-data-api/VPC/Resource": [ { "type": "aws:cdk:logicalId", "data": "VPCB9E5F0B4" } ], - "/cluster-kerberos/VPC/PublicSubnet1/Subnet": [ + "/cluster-data-api/VPC/PublicSubnet1/Subnet": [ { "type": "aws:cdk:logicalId", "data": "VPCPublicSubnet1SubnetB4246D30" } ], - "/cluster-kerberos/VPC/PublicSubnet1/RouteTable": [ + "/cluster-data-api/VPC/PublicSubnet1/RouteTable": [ { "type": "aws:cdk:logicalId", "data": "VPCPublicSubnet1RouteTableFEE4B781" } ], - "/cluster-kerberos/VPC/PublicSubnet1/RouteTableAssociation": [ + "/cluster-data-api/VPC/PublicSubnet1/RouteTableAssociation": [ { "type": "aws:cdk:logicalId", "data": "VPCPublicSubnet1RouteTableAssociation0B0896DC" } ], - "/cluster-kerberos/VPC/PublicSubnet1/DefaultRoute": [ + "/cluster-data-api/VPC/PublicSubnet1/DefaultRoute": [ { "type": "aws:cdk:logicalId", "data": "VPCPublicSubnet1DefaultRoute91CEF279" } ], - "/cluster-kerberos/VPC/PublicSubnet1/EIP": [ + "/cluster-data-api/VPC/PublicSubnet1/EIP": [ { "type": "aws:cdk:logicalId", "data": "VPCPublicSubnet1EIP6AD938E8" } ], - "/cluster-kerberos/VPC/PublicSubnet1/NATGateway": [ + "/cluster-data-api/VPC/PublicSubnet1/NATGateway": [ { "type": "aws:cdk:logicalId", "data": "VPCPublicSubnet1NATGatewayE0556630" } ], - "/cluster-kerberos/VPC/PublicSubnet2/Subnet": [ + "/cluster-data-api/VPC/PublicSubnet2/Subnet": [ { "type": "aws:cdk:logicalId", "data": "VPCPublicSubnet2Subnet74179F39" } ], - "/cluster-kerberos/VPC/PublicSubnet2/RouteTable": [ + "/cluster-data-api/VPC/PublicSubnet2/RouteTable": [ { "type": "aws:cdk:logicalId", "data": "VPCPublicSubnet2RouteTable6F1A15F1" } ], - "/cluster-kerberos/VPC/PublicSubnet2/RouteTableAssociation": [ + "/cluster-data-api/VPC/PublicSubnet2/RouteTableAssociation": [ { "type": "aws:cdk:logicalId", "data": "VPCPublicSubnet2RouteTableAssociation5A808732" } ], - "/cluster-kerberos/VPC/PublicSubnet2/DefaultRoute": [ + "/cluster-data-api/VPC/PublicSubnet2/DefaultRoute": [ { "type": "aws:cdk:logicalId", "data": "VPCPublicSubnet2DefaultRouteB7481BBA" } ], - "/cluster-kerberos/VPC/PublicSubnet2/EIP": [ + "/cluster-data-api/VPC/PublicSubnet2/EIP": [ { "type": "aws:cdk:logicalId", "data": "VPCPublicSubnet2EIP4947BC00" } ], - "/cluster-kerberos/VPC/PublicSubnet2/NATGateway": [ + "/cluster-data-api/VPC/PublicSubnet2/NATGateway": [ { "type": "aws:cdk:logicalId", "data": "VPCPublicSubnet2NATGateway3C070193" } ], - "/cluster-kerberos/VPC/PrivateSubnet1/Subnet": [ + "/cluster-data-api/VPC/PrivateSubnet1/Subnet": [ { "type": "aws:cdk:logicalId", "data": "VPCPrivateSubnet1Subnet8BCA10E0" } ], - "/cluster-kerberos/VPC/PrivateSubnet1/RouteTable": [ + "/cluster-data-api/VPC/PrivateSubnet1/RouteTable": [ { "type": "aws:cdk:logicalId", "data": "VPCPrivateSubnet1RouteTableBE8A6027" } ], - "/cluster-kerberos/VPC/PrivateSubnet1/RouteTableAssociation": [ + "/cluster-data-api/VPC/PrivateSubnet1/RouteTableAssociation": [ { "type": "aws:cdk:logicalId", "data": "VPCPrivateSubnet1RouteTableAssociation347902D1" } ], - "/cluster-kerberos/VPC/PrivateSubnet1/DefaultRoute": [ + "/cluster-data-api/VPC/PrivateSubnet1/DefaultRoute": [ { "type": "aws:cdk:logicalId", "data": "VPCPrivateSubnet1DefaultRouteAE1D6490" } ], - "/cluster-kerberos/VPC/PrivateSubnet2/Subnet": [ + "/cluster-data-api/VPC/PrivateSubnet2/Subnet": [ { "type": "aws:cdk:logicalId", "data": "VPCPrivateSubnet2SubnetCFCDAA7A" } ], - "/cluster-kerberos/VPC/PrivateSubnet2/RouteTable": [ + "/cluster-data-api/VPC/PrivateSubnet2/RouteTable": [ { "type": "aws:cdk:logicalId", "data": "VPCPrivateSubnet2RouteTable0A19E10E" } ], - "/cluster-kerberos/VPC/PrivateSubnet2/RouteTableAssociation": [ + "/cluster-data-api/VPC/PrivateSubnet2/RouteTableAssociation": [ { "type": "aws:cdk:logicalId", "data": "VPCPrivateSubnet2RouteTableAssociation0C73D413" } ], - "/cluster-kerberos/VPC/PrivateSubnet2/DefaultRoute": [ + "/cluster-data-api/VPC/PrivateSubnet2/DefaultRoute": [ { "type": "aws:cdk:logicalId", "data": "VPCPrivateSubnet2DefaultRouteF4F5CFD2" } ], - "/cluster-kerberos/VPC/IGW": [ + "/cluster-data-api/VPC/IGW": [ { "type": "aws:cdk:logicalId", "data": "VPCIGWB7E252D3" } ], - "/cluster-kerberos/VPC/VPCGW": [ + "/cluster-data-api/VPC/VPCGW": [ { "type": "aws:cdk:logicalId", "data": "VPCVPCGW99B986DC" } ], - "/cluster-kerberos/VPC/RestrictDefaultSecurityGroupCustomResource/Default": [ + "/cluster-data-api/VPC/RestrictDefaultSecurityGroupCustomResource/Default": [ { "type": "aws:cdk:logicalId", "data": "VPCRestrictDefaultSecurityGroupCustomResource59474679" } ], - "/cluster-kerberos/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role": [ + "/cluster-data-api/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role": [ { "type": "aws:cdk:logicalId", "data": "CustomVpcRestrictDefaultSGCustomResourceProviderRole26592FE0" } ], - "/cluster-kerberos/Custom::VpcRestrictDefaultSGCustomResourceProvider/Handler": [ + "/cluster-data-api/Custom::VpcRestrictDefaultSGCustomResourceProvider/Handler": [ { "type": "aws:cdk:logicalId", "data": "CustomVpcRestrictDefaultSGCustomResourceProviderHandlerDC833E5E" } ], - "/cluster-kerberos/Function/ServiceRole/Resource": [ + "/cluster-data-api/Function/ServiceRole/Resource": [ { "type": "aws:cdk:logicalId", "data": "FunctionServiceRole675BB04A" } ], - "/cluster-kerberos/Function/ServiceRole/DefaultPolicy/Resource": [ + "/cluster-data-api/Function/ServiceRole/DefaultPolicy/Resource": [ { "type": "aws:cdk:logicalId", "data": "FunctionServiceRoleDefaultPolicy2F49994A" } ], - "/cluster-kerberos/Function/Resource": [ + "/cluster-data-api/Function/Resource": [ { "type": "aws:cdk:logicalId", "data": "Function76856677" } ], - "/cluster-kerberos/Database/Subnets/Default": [ + "/cluster-data-api/Database/Subnets/Default": [ { "type": "aws:cdk:logicalId", "data": "DatabaseSubnets56F17B9A" } ], - "/cluster-kerberos/Database/SecurityGroup/Resource": [ + "/cluster-data-api/Database/SecurityGroup/Resource": [ { "type": "aws:cdk:logicalId", "data": "DatabaseSecurityGroup5C91FDCB" } ], - "/cluster-kerberos/Database/Secret/Resource": [ + "/cluster-data-api/Database/Secret/Resource": [ { "type": "aws:cdk:logicalId", "data": "DatabaseSecret3B817195" } ], - "/cluster-kerberos/Database/Secret/Attachment/Resource": [ + "/cluster-data-api/Database/Secret/Attachment/Resource": [ { "type": "aws:cdk:logicalId", "data": "DatabaseSecretAttachmentE5D1B020" } ], - "/cluster-kerberos/Database/Resource": [ + "/cluster-data-api/Database/Resource": [ { "type": "aws:cdk:logicalId", "data": "DatabaseB269D8BB" } ], - "/cluster-kerberos/Database/writerInstance/Resource": [ + "/cluster-data-api/Database/writerInstance/Resource": [ { "type": "aws:cdk:logicalId", "data": "DatabasewriterInstanceEBFCC003" } ], - "/cluster-kerberos/BootstrapVersion": [ + "/cluster-data-api/BootstrapVersion": [ { "type": "aws:cdk:logicalId", "data": "BootstrapVersion" } ], - "/cluster-kerberos/CheckBootstrapVersion": [ + "/cluster-data-api/CheckBootstrapVersion": [ { "type": "aws:cdk:logicalId", "data": "CheckBootstrapVersion" } ] }, - "displayName": "cluster-kerberos" + "displayName": "cluster-data-api" }, "integclusterdataapiDefaultTestDeployAssertACD87C08.assets": { "type": "cdk:asset-manifest", diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/tree.json index c9bbb077426b1..5b1165f6b9b53 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.js.snapshot/tree.json @@ -4,17 +4,17 @@ "id": "App", "path": "", "children": { - "cluster-kerberos": { - "id": "cluster-kerberos", - "path": "cluster-kerberos", + "cluster-data-api": { + "id": "cluster-data-api", + "path": "cluster-data-api", "children": { "VPC": { "id": "VPC", - "path": "cluster-kerberos/VPC", + "path": "cluster-data-api/VPC", "children": { "Resource": { "id": "Resource", - "path": "cluster-kerberos/VPC/Resource", + "path": "cluster-data-api/VPC/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::VPC", "aws:cdk:cloudformation:props": { @@ -25,7 +25,7 @@ "tags": [ { "key": "Name", - "value": "cluster-kerberos/VPC" + "value": "cluster-data-api/VPC" } ] } @@ -37,11 +37,11 @@ }, "PublicSubnet1": { "id": "PublicSubnet1", - "path": "cluster-kerberos/VPC/PublicSubnet1", + "path": "cluster-data-api/VPC/PublicSubnet1", "children": { "Subnet": { "id": "Subnet", - "path": "cluster-kerberos/VPC/PublicSubnet1/Subnet", + "path": "cluster-data-api/VPC/PublicSubnet1/Subnet", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { @@ -66,7 +66,7 @@ }, { "key": "Name", - "value": "cluster-kerberos/VPC/PublicSubnet1" + "value": "cluster-data-api/VPC/PublicSubnet1" } ], "vpcId": { @@ -81,7 +81,7 @@ }, "Acl": { "id": "Acl", - "path": "cluster-kerberos/VPC/PublicSubnet1/Acl", + "path": "cluster-data-api/VPC/PublicSubnet1/Acl", "constructInfo": { "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" @@ -89,14 +89,14 @@ }, "RouteTable": { "id": "RouteTable", - "path": "cluster-kerberos/VPC/PublicSubnet1/RouteTable", + "path": "cluster-data-api/VPC/PublicSubnet1/RouteTable", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { "tags": [ { "key": "Name", - "value": "cluster-kerberos/VPC/PublicSubnet1" + "value": "cluster-data-api/VPC/PublicSubnet1" } ], "vpcId": { @@ -111,7 +111,7 @@ }, "RouteTableAssociation": { "id": "RouteTableAssociation", - "path": "cluster-kerberos/VPC/PublicSubnet1/RouteTableAssociation", + "path": "cluster-data-api/VPC/PublicSubnet1/RouteTableAssociation", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", "aws:cdk:cloudformation:props": { @@ -130,7 +130,7 @@ }, "DefaultRoute": { "id": "DefaultRoute", - "path": "cluster-kerberos/VPC/PublicSubnet1/DefaultRoute", + "path": "cluster-data-api/VPC/PublicSubnet1/DefaultRoute", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { @@ -150,7 +150,7 @@ }, "EIP": { "id": "EIP", - "path": "cluster-kerberos/VPC/PublicSubnet1/EIP", + "path": "cluster-data-api/VPC/PublicSubnet1/EIP", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::EIP", "aws:cdk:cloudformation:props": { @@ -158,7 +158,7 @@ "tags": [ { "key": "Name", - "value": "cluster-kerberos/VPC/PublicSubnet1" + "value": "cluster-data-api/VPC/PublicSubnet1" } ] } @@ -170,7 +170,7 @@ }, "NATGateway": { "id": "NATGateway", - "path": "cluster-kerberos/VPC/PublicSubnet1/NATGateway", + "path": "cluster-data-api/VPC/PublicSubnet1/NATGateway", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", "aws:cdk:cloudformation:props": { @@ -186,7 +186,7 @@ "tags": [ { "key": "Name", - "value": "cluster-kerberos/VPC/PublicSubnet1" + "value": "cluster-data-api/VPC/PublicSubnet1" } ] } @@ -204,11 +204,11 @@ }, "PublicSubnet2": { "id": "PublicSubnet2", - "path": "cluster-kerberos/VPC/PublicSubnet2", + "path": "cluster-data-api/VPC/PublicSubnet2", "children": { "Subnet": { "id": "Subnet", - "path": "cluster-kerberos/VPC/PublicSubnet2/Subnet", + "path": "cluster-data-api/VPC/PublicSubnet2/Subnet", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { @@ -233,7 +233,7 @@ }, { "key": "Name", - "value": "cluster-kerberos/VPC/PublicSubnet2" + "value": "cluster-data-api/VPC/PublicSubnet2" } ], "vpcId": { @@ -248,7 +248,7 @@ }, "Acl": { "id": "Acl", - "path": "cluster-kerberos/VPC/PublicSubnet2/Acl", + "path": "cluster-data-api/VPC/PublicSubnet2/Acl", "constructInfo": { "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" @@ -256,14 +256,14 @@ }, "RouteTable": { "id": "RouteTable", - "path": "cluster-kerberos/VPC/PublicSubnet2/RouteTable", + "path": "cluster-data-api/VPC/PublicSubnet2/RouteTable", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { "tags": [ { "key": "Name", - "value": "cluster-kerberos/VPC/PublicSubnet2" + "value": "cluster-data-api/VPC/PublicSubnet2" } ], "vpcId": { @@ -278,7 +278,7 @@ }, "RouteTableAssociation": { "id": "RouteTableAssociation", - "path": "cluster-kerberos/VPC/PublicSubnet2/RouteTableAssociation", + "path": "cluster-data-api/VPC/PublicSubnet2/RouteTableAssociation", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", "aws:cdk:cloudformation:props": { @@ -297,7 +297,7 @@ }, "DefaultRoute": { "id": "DefaultRoute", - "path": "cluster-kerberos/VPC/PublicSubnet2/DefaultRoute", + "path": "cluster-data-api/VPC/PublicSubnet2/DefaultRoute", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { @@ -317,7 +317,7 @@ }, "EIP": { "id": "EIP", - "path": "cluster-kerberos/VPC/PublicSubnet2/EIP", + "path": "cluster-data-api/VPC/PublicSubnet2/EIP", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::EIP", "aws:cdk:cloudformation:props": { @@ -325,7 +325,7 @@ "tags": [ { "key": "Name", - "value": "cluster-kerberos/VPC/PublicSubnet2" + "value": "cluster-data-api/VPC/PublicSubnet2" } ] } @@ -337,7 +337,7 @@ }, "NATGateway": { "id": "NATGateway", - "path": "cluster-kerberos/VPC/PublicSubnet2/NATGateway", + "path": "cluster-data-api/VPC/PublicSubnet2/NATGateway", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", "aws:cdk:cloudformation:props": { @@ -353,7 +353,7 @@ "tags": [ { "key": "Name", - "value": "cluster-kerberos/VPC/PublicSubnet2" + "value": "cluster-data-api/VPC/PublicSubnet2" } ] } @@ -371,11 +371,11 @@ }, "PrivateSubnet1": { "id": "PrivateSubnet1", - "path": "cluster-kerberos/VPC/PrivateSubnet1", + "path": "cluster-data-api/VPC/PrivateSubnet1", "children": { "Subnet": { "id": "Subnet", - "path": "cluster-kerberos/VPC/PrivateSubnet1/Subnet", + "path": "cluster-data-api/VPC/PrivateSubnet1/Subnet", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { @@ -400,7 +400,7 @@ }, { "key": "Name", - "value": "cluster-kerberos/VPC/PrivateSubnet1" + "value": "cluster-data-api/VPC/PrivateSubnet1" } ], "vpcId": { @@ -415,7 +415,7 @@ }, "Acl": { "id": "Acl", - "path": "cluster-kerberos/VPC/PrivateSubnet1/Acl", + "path": "cluster-data-api/VPC/PrivateSubnet1/Acl", "constructInfo": { "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" @@ -423,14 +423,14 @@ }, "RouteTable": { "id": "RouteTable", - "path": "cluster-kerberos/VPC/PrivateSubnet1/RouteTable", + "path": "cluster-data-api/VPC/PrivateSubnet1/RouteTable", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { "tags": [ { "key": "Name", - "value": "cluster-kerberos/VPC/PrivateSubnet1" + "value": "cluster-data-api/VPC/PrivateSubnet1" } ], "vpcId": { @@ -445,7 +445,7 @@ }, "RouteTableAssociation": { "id": "RouteTableAssociation", - "path": "cluster-kerberos/VPC/PrivateSubnet1/RouteTableAssociation", + "path": "cluster-data-api/VPC/PrivateSubnet1/RouteTableAssociation", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", "aws:cdk:cloudformation:props": { @@ -464,7 +464,7 @@ }, "DefaultRoute": { "id": "DefaultRoute", - "path": "cluster-kerberos/VPC/PrivateSubnet1/DefaultRoute", + "path": "cluster-data-api/VPC/PrivateSubnet1/DefaultRoute", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { @@ -490,11 +490,11 @@ }, "PrivateSubnet2": { "id": "PrivateSubnet2", - "path": "cluster-kerberos/VPC/PrivateSubnet2", + "path": "cluster-data-api/VPC/PrivateSubnet2", "children": { "Subnet": { "id": "Subnet", - "path": "cluster-kerberos/VPC/PrivateSubnet2/Subnet", + "path": "cluster-data-api/VPC/PrivateSubnet2/Subnet", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { @@ -519,7 +519,7 @@ }, { "key": "Name", - "value": "cluster-kerberos/VPC/PrivateSubnet2" + "value": "cluster-data-api/VPC/PrivateSubnet2" } ], "vpcId": { @@ -534,7 +534,7 @@ }, "Acl": { "id": "Acl", - "path": "cluster-kerberos/VPC/PrivateSubnet2/Acl", + "path": "cluster-data-api/VPC/PrivateSubnet2/Acl", "constructInfo": { "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" @@ -542,14 +542,14 @@ }, "RouteTable": { "id": "RouteTable", - "path": "cluster-kerberos/VPC/PrivateSubnet2/RouteTable", + "path": "cluster-data-api/VPC/PrivateSubnet2/RouteTable", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { "tags": [ { "key": "Name", - "value": "cluster-kerberos/VPC/PrivateSubnet2" + "value": "cluster-data-api/VPC/PrivateSubnet2" } ], "vpcId": { @@ -564,7 +564,7 @@ }, "RouteTableAssociation": { "id": "RouteTableAssociation", - "path": "cluster-kerberos/VPC/PrivateSubnet2/RouteTableAssociation", + "path": "cluster-data-api/VPC/PrivateSubnet2/RouteTableAssociation", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", "aws:cdk:cloudformation:props": { @@ -583,7 +583,7 @@ }, "DefaultRoute": { "id": "DefaultRoute", - "path": "cluster-kerberos/VPC/PrivateSubnet2/DefaultRoute", + "path": "cluster-data-api/VPC/PrivateSubnet2/DefaultRoute", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { @@ -609,14 +609,14 @@ }, "IGW": { "id": "IGW", - "path": "cluster-kerberos/VPC/IGW", + "path": "cluster-data-api/VPC/IGW", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::InternetGateway", "aws:cdk:cloudformation:props": { "tags": [ { "key": "Name", - "value": "cluster-kerberos/VPC" + "value": "cluster-data-api/VPC" } ] } @@ -628,7 +628,7 @@ }, "VPCGW": { "id": "VPCGW", - "path": "cluster-kerberos/VPC/VPCGW", + "path": "cluster-data-api/VPC/VPCGW", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::VPCGatewayAttachment", "aws:cdk:cloudformation:props": { @@ -647,11 +647,11 @@ }, "RestrictDefaultSecurityGroupCustomResource": { "id": "RestrictDefaultSecurityGroupCustomResource", - "path": "cluster-kerberos/VPC/RestrictDefaultSecurityGroupCustomResource", + "path": "cluster-data-api/VPC/RestrictDefaultSecurityGroupCustomResource", "children": { "Default": { "id": "Default", - "path": "cluster-kerberos/VPC/RestrictDefaultSecurityGroupCustomResource/Default", + "path": "cluster-data-api/VPC/RestrictDefaultSecurityGroupCustomResource/Default", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -671,11 +671,11 @@ }, "Custom::VpcRestrictDefaultSGCustomResourceProvider": { "id": "Custom::VpcRestrictDefaultSGCustomResourceProvider", - "path": "cluster-kerberos/Custom::VpcRestrictDefaultSGCustomResourceProvider", + "path": "cluster-data-api/Custom::VpcRestrictDefaultSGCustomResourceProvider", "children": { "Staging": { "id": "Staging", - "path": "cluster-kerberos/Custom::VpcRestrictDefaultSGCustomResourceProvider/Staging", + "path": "cluster-data-api/Custom::VpcRestrictDefaultSGCustomResourceProvider/Staging", "constructInfo": { "fqn": "aws-cdk-lib.AssetStaging", "version": "0.0.0" @@ -683,7 +683,7 @@ }, "Role": { "id": "Role", - "path": "cluster-kerberos/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role", + "path": "cluster-data-api/Custom::VpcRestrictDefaultSGCustomResourceProvider/Role", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -691,7 +691,7 @@ }, "Handler": { "id": "Handler", - "path": "cluster-kerberos/Custom::VpcRestrictDefaultSGCustomResourceProvider/Handler", + "path": "cluster-data-api/Custom::VpcRestrictDefaultSGCustomResourceProvider/Handler", "constructInfo": { "fqn": "aws-cdk-lib.CfnResource", "version": "0.0.0" @@ -705,15 +705,15 @@ }, "Function": { "id": "Function", - "path": "cluster-kerberos/Function", + "path": "cluster-data-api/Function", "children": { "ServiceRole": { "id": "ServiceRole", - "path": "cluster-kerberos/Function/ServiceRole", + "path": "cluster-data-api/Function/ServiceRole", "children": { "ImportServiceRole": { "id": "ImportServiceRole", - "path": "cluster-kerberos/Function/ServiceRole/ImportServiceRole", + "path": "cluster-data-api/Function/ServiceRole/ImportServiceRole", "constructInfo": { "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" @@ -721,7 +721,7 @@ }, "Resource": { "id": "Resource", - "path": "cluster-kerberos/Function/ServiceRole/Resource", + "path": "cluster-data-api/Function/ServiceRole/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::IAM::Role", "aws:cdk:cloudformation:props": { @@ -760,16 +760,26 @@ }, "DefaultPolicy": { "id": "DefaultPolicy", - "path": "cluster-kerberos/Function/ServiceRole/DefaultPolicy", + "path": "cluster-data-api/Function/ServiceRole/DefaultPolicy", "children": { "Resource": { "id": "Resource", - "path": "cluster-kerberos/Function/ServiceRole/DefaultPolicy/Resource", + "path": "cluster-data-api/Function/ServiceRole/DefaultPolicy/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::IAM::Policy", "aws:cdk:cloudformation:props": { "policyDocument": { "Statement": [ + { + "Action": [ + "secretsmanager:DescribeSecret", + "secretsmanager:GetSecretValue" + ], + "Effect": "Allow", + "Resource": { + "Ref": "DatabaseSecretAttachmentE5D1B020" + } + }, { "Action": [ "rds-data:BatchExecuteStatement", @@ -802,16 +812,6 @@ ] ] } - }, - { - "Action": [ - "secretsmanager:DescribeSecret", - "secretsmanager:GetSecretValue" - ], - "Effect": "Allow", - "Resource": { - "Ref": "DatabaseSecretAttachmentE5D1B020" - } } ], "Version": "2012-10-17" @@ -843,7 +843,7 @@ }, "Resource": { "id": "Resource", - "path": "cluster-kerberos/Function/Resource", + "path": "cluster-data-api/Function/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::Lambda::Function", "aws:cdk:cloudformation:props": { @@ -873,15 +873,15 @@ }, "Database": { "id": "Database", - "path": "cluster-kerberos/Database", + "path": "cluster-data-api/Database", "children": { "Subnets": { "id": "Subnets", - "path": "cluster-kerberos/Database/Subnets", + "path": "cluster-data-api/Database/Subnets", "children": { "Default": { "id": "Default", - "path": "cluster-kerberos/Database/Subnets/Default", + "path": "cluster-data-api/Database/Subnets/Default", "attributes": { "aws:cdk:cloudformation:type": "AWS::RDS::DBSubnetGroup", "aws:cdk:cloudformation:props": { @@ -909,11 +909,11 @@ }, "SecurityGroup": { "id": "SecurityGroup", - "path": "cluster-kerberos/Database/SecurityGroup", + "path": "cluster-data-api/Database/SecurityGroup", "children": { "Resource": { "id": "Resource", - "path": "cluster-kerberos/Database/SecurityGroup/Resource", + "path": "cluster-data-api/Database/SecurityGroup/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroup", "aws:cdk:cloudformation:props": { @@ -943,7 +943,7 @@ }, "AuroraPostgreSqlDatabaseClusterEngineDefaultParameterGroup": { "id": "AuroraPostgreSqlDatabaseClusterEngineDefaultParameterGroup", - "path": "cluster-kerberos/Database/AuroraPostgreSqlDatabaseClusterEngineDefaultParameterGroup", + "path": "cluster-data-api/Database/AuroraPostgreSqlDatabaseClusterEngineDefaultParameterGroup", "constructInfo": { "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" @@ -951,11 +951,11 @@ }, "Secret": { "id": "Secret", - "path": "cluster-kerberos/Database/Secret", + "path": "cluster-data-api/Database/Secret", "children": { "Resource": { "id": "Resource", - "path": "cluster-kerberos/Database/Secret/Resource", + "path": "cluster-data-api/Database/Secret/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::SecretsManager::Secret", "aws:cdk:cloudformation:props": { @@ -985,11 +985,11 @@ }, "Attachment": { "id": "Attachment", - "path": "cluster-kerberos/Database/Secret/Attachment", + "path": "cluster-data-api/Database/Secret/Attachment", "children": { "Resource": { "id": "Resource", - "path": "cluster-kerberos/Database/Secret/Attachment/Resource", + "path": "cluster-data-api/Database/Secret/Attachment/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::SecretsManager::SecretTargetAttachment", "aws:cdk:cloudformation:props": { @@ -1021,7 +1021,7 @@ }, "Resource": { "id": "Resource", - "path": "cluster-kerberos/Database/Resource", + "path": "cluster-data-api/Database/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::RDS::DBCluster", "aws:cdk:cloudformation:props": { @@ -1079,11 +1079,11 @@ }, "writerInstance": { "id": "writerInstance", - "path": "cluster-kerberos/Database/writerInstance", + "path": "cluster-data-api/Database/writerInstance", "children": { "Resource": { "id": "Resource", - "path": "cluster-kerberos/Database/writerInstance/Resource", + "path": "cluster-data-api/Database/writerInstance/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::RDS::DBInstance", "aws:cdk:cloudformation:props": { @@ -1114,7 +1114,7 @@ }, "BootstrapVersion": { "id": "BootstrapVersion", - "path": "cluster-kerberos/BootstrapVersion", + "path": "cluster-data-api/BootstrapVersion", "constructInfo": { "fqn": "aws-cdk-lib.CfnParameter", "version": "0.0.0" @@ -1122,7 +1122,7 @@ }, "CheckBootstrapVersion": { "id": "CheckBootstrapVersion", - "path": "cluster-kerberos/CheckBootstrapVersion", + "path": "cluster-data-api/CheckBootstrapVersion", "constructInfo": { "fqn": "aws-cdk-lib.CfnRule", "version": "0.0.0" diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.ts index 16394b4b5cd5e..f9c4f1cf28127 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.ts +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-data-api.ts @@ -6,7 +6,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda'; const app = new cdk.App(); -const stack = new cdk.Stack(app, 'cluster-kerberos'); +const stack = new cdk.Stack(app, 'cluster-data-api'); const vpc = new ec2.Vpc(stack, 'VPC'); const fucntion = new lambda.Function(stack, 'Function', { @@ -23,7 +23,6 @@ const cluster = new rds.DatabaseCluster(stack, 'Database', { }); cluster.grantDataApiAccess(fucntion); -cluster.secret?.grantRead(fucntion); new integ.IntegTest(app, 'integ-cluster-data-api', { testCases: [stack], diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/aws-cdk-rds-proxy-mariadb.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/aws-cdk-rds-proxy-mariadb.assets.json new file mode 100644 index 0000000000000..09256e0b2b86d --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/aws-cdk-rds-proxy-mariadb.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "f0fff306f7e137bbf1a002fa55210d252f5846dc8e753143422b180e68469441": { + "source": { + "path": "aws-cdk-rds-proxy-mariadb.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "f0fff306f7e137bbf1a002fa55210d252f5846dc8e753143422b180e68469441.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-rds/test/integ.proxy-mariadb.js.snapshot/aws-cdk-rds-proxy-mariadb.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/aws-cdk-rds-proxy-mariadb.template.json new file mode 100644 index 0000000000000..df22dfd1df50b --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/aws-cdk-rds-proxy-mariadb.template.json @@ -0,0 +1,816 @@ +{ + "Resources": { + "vpcA2121C38": { + "Type": "AWS::EC2::VPC", + "Properties": { + "CidrBlock": "10.0.0.0/16", + "EnableDnsHostnames": true, + "EnableDnsSupport": true, + "InstanceTenancy": "default", + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-proxy-mariadb/vpc" + } + ] + } + }, + "vpcPublicSubnet1Subnet2E65531E": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.0.0/18", + "MapPublicIpOnLaunch": true, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Public" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Public" + }, + { + "Key": "Name", + "Value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1" + } + ], + "VpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "vpcPublicSubnet1RouteTable48A2DF9B": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1" + } + ], + "VpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "vpcPublicSubnet1RouteTableAssociation5D3F4579": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "vpcPublicSubnet1RouteTable48A2DF9B" + }, + "SubnetId": { + "Ref": "vpcPublicSubnet1Subnet2E65531E" + } + } + }, + "vpcPublicSubnet1DefaultRoute10708846": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "GatewayId": { + "Ref": "vpcIGWE57CBDCA" + }, + "RouteTableId": { + "Ref": "vpcPublicSubnet1RouteTable48A2DF9B" + } + }, + "DependsOn": [ + "vpcVPCGW7984C166" + ] + }, + "vpcPublicSubnet1EIPDA49DCBE": { + "Type": "AWS::EC2::EIP", + "Properties": { + "Domain": "vpc", + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1" + } + ] + } + }, + "vpcPublicSubnet1NATGateway9C16659E": { + "Type": "AWS::EC2::NatGateway", + "Properties": { + "AllocationId": { + "Fn::GetAtt": [ + "vpcPublicSubnet1EIPDA49DCBE", + "AllocationId" + ] + }, + "SubnetId": { + "Ref": "vpcPublicSubnet1Subnet2E65531E" + }, + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1" + } + ] + }, + "DependsOn": [ + "vpcPublicSubnet1DefaultRoute10708846", + "vpcPublicSubnet1RouteTableAssociation5D3F4579" + ] + }, + "vpcPublicSubnet2Subnet009B674F": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.64.0/18", + "MapPublicIpOnLaunch": true, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Public" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Public" + }, + { + "Key": "Name", + "Value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2" + } + ], + "VpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "vpcPublicSubnet2RouteTableEB40D4CB": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2" + } + ], + "VpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "vpcPublicSubnet2RouteTableAssociation21F81B59": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "vpcPublicSubnet2RouteTableEB40D4CB" + }, + "SubnetId": { + "Ref": "vpcPublicSubnet2Subnet009B674F" + } + } + }, + "vpcPublicSubnet2DefaultRouteA1EC0F60": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "GatewayId": { + "Ref": "vpcIGWE57CBDCA" + }, + "RouteTableId": { + "Ref": "vpcPublicSubnet2RouteTableEB40D4CB" + } + }, + "DependsOn": [ + "vpcVPCGW7984C166" + ] + }, + "vpcPublicSubnet2EIP9B3743B1": { + "Type": "AWS::EC2::EIP", + "Properties": { + "Domain": "vpc", + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2" + } + ] + } + }, + "vpcPublicSubnet2NATGateway9B8AE11A": { + "Type": "AWS::EC2::NatGateway", + "Properties": { + "AllocationId": { + "Fn::GetAtt": [ + "vpcPublicSubnet2EIP9B3743B1", + "AllocationId" + ] + }, + "SubnetId": { + "Ref": "vpcPublicSubnet2Subnet009B674F" + }, + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2" + } + ] + }, + "DependsOn": [ + "vpcPublicSubnet2DefaultRouteA1EC0F60", + "vpcPublicSubnet2RouteTableAssociation21F81B59" + ] + }, + "vpcPrivateSubnet1Subnet934893E8": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.128.0/18", + "MapPublicIpOnLaunch": false, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Private" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Private" + }, + { + "Key": "Name", + "Value": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet1" + } + ], + "VpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "vpcPrivateSubnet1RouteTableB41A48CC": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet1" + } + ], + "VpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "vpcPrivateSubnet1RouteTableAssociation67945127": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "vpcPrivateSubnet1RouteTableB41A48CC" + }, + "SubnetId": { + "Ref": "vpcPrivateSubnet1Subnet934893E8" + } + } + }, + "vpcPrivateSubnet1DefaultRoute1AA8E2E5": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "NatGatewayId": { + "Ref": "vpcPublicSubnet1NATGateway9C16659E" + }, + "RouteTableId": { + "Ref": "vpcPrivateSubnet1RouteTableB41A48CC" + } + } + }, + "vpcPrivateSubnet2Subnet7031C2BA": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "AvailabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "CidrBlock": "10.0.192.0/18", + "MapPublicIpOnLaunch": false, + "Tags": [ + { + "Key": "aws-cdk:subnet-name", + "Value": "Private" + }, + { + "Key": "aws-cdk:subnet-type", + "Value": "Private" + }, + { + "Key": "Name", + "Value": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet2" + } + ], + "VpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "vpcPrivateSubnet2RouteTable7280F23E": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet2" + } + ], + "VpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "vpcPrivateSubnet2RouteTableAssociation007E94D3": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "vpcPrivateSubnet2RouteTable7280F23E" + }, + "SubnetId": { + "Ref": "vpcPrivateSubnet2Subnet7031C2BA" + } + } + }, + "vpcPrivateSubnet2DefaultRouteB0E07F99": { + "Type": "AWS::EC2::Route", + "Properties": { + "DestinationCidrBlock": "0.0.0.0/0", + "NatGatewayId": { + "Ref": "vpcPublicSubnet2NATGateway9B8AE11A" + }, + "RouteTableId": { + "Ref": "vpcPrivateSubnet2RouteTable7280F23E" + } + } + }, + "vpcIGWE57CBDCA": { + "Type": "AWS::EC2::InternetGateway", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-rds-proxy-mariadb/vpc" + } + ] + } + }, + "vpcVPCGW7984C166": { + "Type": "AWS::EC2::VPCGatewayAttachment", + "Properties": { + "InternetGatewayId": { + "Ref": "vpcIGWE57CBDCA" + }, + "VpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "SecretEncryptionKey40C82244": { + "Type": "AWS::KMS::Key", + "Properties": { + "KeyPolicy": { + "Statement": [ + { + "Action": "kms:*", + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::", + { + "Ref": "AWS::AccountId" + }, + ":root" + ] + ] + } + }, + "Resource": "*" + }, + { + "Action": [ + "kms:CreateGrant", + "kms:Decrypt", + "kms:DescribeKey", + "kms:Encrypt", + "kms:GenerateDataKey*", + "kms:ReEncrypt*" + ], + "Condition": { + "StringEquals": { + "kms:ViaService": { + "Fn::Join": [ + "", + [ + "secretsmanager.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com" + ] + ] + } + } + }, + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::", + { + "Ref": "AWS::AccountId" + }, + ":root" + ] + ] + } + }, + "Resource": "*" + }, + { + "Action": "kms:Decrypt", + "Condition": { + "StringEquals": { + "kms:ViaService": { + "Fn::Join": [ + "", + [ + "secretsmanager.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com" + ] + ] + } + } + }, + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "mariaDBProxyIAMRoleB91DE271", + "Arn" + ] + } + }, + "Resource": "*" + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "mariaDBInstanceSubnetGroupA17E5651": { + "Type": "AWS::RDS::DBSubnetGroup", + "Properties": { + "DBSubnetGroupDescription": "Subnet group for mariaDBInstance database", + "SubnetIds": [ + { + "Ref": "vpcPrivateSubnet1Subnet934893E8" + }, + { + "Ref": "vpcPrivateSubnet2Subnet7031C2BA" + } + ] + } + }, + "mariaDBInstanceSecurityGroup1C05EFED": { + "Type": "AWS::EC2::SecurityGroup", + "Properties": { + "GroupDescription": "Security group for mariaDBInstance database", + "SecurityGroupEgress": [ + { + "CidrIp": "0.0.0.0/0", + "Description": "Allow all outbound traffic by default", + "IpProtocol": "-1" + } + ], + "VpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "mariaDBInstanceSecurityGroupfromawscdkrdsproxymariadbmariaDBProxyProxySecurityGroup4F55583FIndirectPort44A97795": { + "Type": "AWS::EC2::SecurityGroupIngress", + "Properties": { + "Description": "Allow connections to the database Instance from the Proxy", + "FromPort": { + "Fn::GetAtt": [ + "mariaDBInstance7DFDB9B1", + "Endpoint.Port" + ] + }, + "GroupId": { + "Fn::GetAtt": [ + "mariaDBInstanceSecurityGroup1C05EFED", + "GroupId" + ] + }, + "IpProtocol": "tcp", + "SourceSecurityGroupId": { + "Fn::GetAtt": [ + "mariaDBProxyProxySecurityGroupFD730755", + "GroupId" + ] + }, + "ToPort": { + "Fn::GetAtt": [ + "mariaDBInstance7DFDB9B1", + "Endpoint.Port" + ] + } + } + }, + "mariaDBInstanceSecretED322D85": { + "Type": "AWS::SecretsManager::Secret", + "Properties": { + "Description": { + "Fn::Join": [ + "", + [ + "Generated by the CDK for stack: ", + { + "Ref": "AWS::StackName" + } + ] + ] + }, + "GenerateSecretString": { + "ExcludeCharacters": "\"@/\\", + "GenerateStringKey": "password", + "PasswordLength": 30, + "SecretStringTemplate": "{\"username\":\"master\"}" + }, + "KmsKeyId": { + "Fn::GetAtt": [ + "SecretEncryptionKey40C82244", + "Arn" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "mariaDBInstanceSecretAttachment900E3C52": { + "Type": "AWS::SecretsManager::SecretTargetAttachment", + "Properties": { + "SecretId": { + "Ref": "mariaDBInstanceSecretED322D85" + }, + "TargetId": { + "Ref": "mariaDBInstance7DFDB9B1" + }, + "TargetType": "AWS::RDS::DBInstance" + } + }, + "mariaDBInstance7DFDB9B1": { + "Type": "AWS::RDS::DBInstance", + "Properties": { + "AllocatedStorage": "100", + "CopyTagsToSnapshot": true, + "DBInstanceClass": "db.t3.medium", + "DBSubnetGroupName": { + "Ref": "mariaDBInstanceSubnetGroupA17E5651" + }, + "Engine": "mariadb", + "EngineVersion": "10.6.16", + "MasterUserPassword": { + "Fn::Join": [ + "", + [ + "{{resolve:secretsmanager:", + { + "Ref": "mariaDBInstanceSecretED322D85" + }, + ":SecretString:password::}}" + ] + ] + }, + "MasterUsername": { + "Fn::Join": [ + "", + [ + "{{resolve:secretsmanager:", + { + "Ref": "mariaDBInstanceSecretED322D85" + }, + ":SecretString:username::}}" + ] + ] + }, + "StorageType": "gp2", + "VPCSecurityGroups": [ + { + "Fn::GetAtt": [ + "mariaDBInstanceSecurityGroup1C05EFED", + "GroupId" + ] + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "mariaDBProxyIAMRoleB91DE271": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "rds.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "mariaDBProxyIAMRoleDefaultPolicyF4BE519B": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "secretsmanager:DescribeSecret", + "secretsmanager:GetSecretValue" + ], + "Effect": "Allow", + "Resource": { + "Ref": "mariaDBInstanceSecretAttachment900E3C52" + } + }, + { + "Action": "kms:Decrypt", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "SecretEncryptionKey40C82244", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "mariaDBProxyIAMRoleDefaultPolicyF4BE519B", + "Roles": [ + { + "Ref": "mariaDBProxyIAMRoleB91DE271" + } + ] + } + }, + "mariaDBProxyProxySecurityGroupFD730755": { + "Type": "AWS::EC2::SecurityGroup", + "Properties": { + "GroupDescription": "SecurityGroup for Database Proxy", + "SecurityGroupEgress": [ + { + "CidrIp": "0.0.0.0/0", + "Description": "Allow all outbound traffic by default", + "IpProtocol": "-1" + } + ], + "VpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "mariaDBProxy23E8B2BB": { + "Type": "AWS::RDS::DBProxy", + "Properties": { + "Auth": [ + { + "AuthScheme": "SECRETS", + "IAMAuth": "DISABLED", + "SecretArn": { + "Ref": "mariaDBInstanceSecretAttachment900E3C52" + } + } + ], + "DBProxyName": "awscdkrdsproxymariadbmariaDBProxyB0A701B2", + "EngineFamily": "MYSQL", + "RequireTLS": true, + "RoleArn": { + "Fn::GetAtt": [ + "mariaDBProxyIAMRoleB91DE271", + "Arn" + ] + }, + "VpcSecurityGroupIds": [ + { + "Fn::GetAtt": [ + "mariaDBProxyProxySecurityGroupFD730755", + "GroupId" + ] + } + ], + "VpcSubnetIds": [ + { + "Ref": "vpcPrivateSubnet1Subnet934893E8" + }, + { + "Ref": "vpcPrivateSubnet2Subnet7031C2BA" + } + ] + } + }, + "mariaDBProxyProxyTargetGroup960ACB39": { + "Type": "AWS::RDS::DBProxyTargetGroup", + "Properties": { + "ConnectionPoolConfigurationInfo": { + "ConnectionBorrowTimeout": 30, + "MaxConnectionsPercent": 50 + }, + "DBInstanceIdentifiers": [ + { + "Ref": "mariaDBInstance7DFDB9B1" + } + ], + "DBProxyName": { + "Ref": "mariaDBProxy23E8B2BB" + }, + "TargetGroupName": "default" + } + } + }, + "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-rds/test/integ.proxy-mariadb.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/cdk.out new file mode 100644 index 0000000000000..1f0068d32659a --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.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-rds/test/integ.proxy-mariadb.js.snapshot/databaseproxymariadbintegtestDefaultTestDeployAssert9D9B7FF3.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/databaseproxymariadbintegtestDefaultTestDeployAssert9D9B7FF3.assets.json new file mode 100644 index 0000000000000..1d4ef8153edea --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/databaseproxymariadbintegtestDefaultTestDeployAssert9D9B7FF3.assets.json @@ -0,0 +1,19 @@ +{ + "version": "36.0.0", + "files": { + "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { + "source": { + "path": "databaseproxymariadbintegtestDefaultTestDeployAssert9D9B7FF3.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-rds/test/integ.proxy-mariadb.js.snapshot/databaseproxymariadbintegtestDefaultTestDeployAssert9D9B7FF3.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/databaseproxymariadbintegtestDefaultTestDeployAssert9D9B7FF3.template.json new file mode 100644 index 0000000000000..ad9d0fb73d1dd --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/databaseproxymariadbintegtestDefaultTestDeployAssert9D9B7FF3.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-rds/test/integ.proxy-mariadb.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/integ.json new file mode 100644 index 0000000000000..227e6f88af581 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/integ.json @@ -0,0 +1,20 @@ +{ + "version": "36.0.0", + "testCases": { + "database-proxy-mariadb-integ-test/DefaultTest": { + "stacks": [ + "aws-cdk-rds-proxy-mariadb" + ], + "diffAssets": true, + "cdkCommandOptions": { + "deploy": { + "args": { + "rollback": true + } + } + }, + "assertionStack": "database-proxy-mariadb-integ-test/DefaultTest/DeployAssert", + "assertionStackName": "databaseproxymariadbintegtestDefaultTestDeployAssert9D9B7FF3" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/manifest.json new file mode 100644 index 0000000000000..8b423ee7ee9ca --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/manifest.json @@ -0,0 +1,317 @@ +{ + "version": "36.0.0", + "artifacts": { + "aws-cdk-rds-proxy-mariadb.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "aws-cdk-rds-proxy-mariadb.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "aws-cdk-rds-proxy-mariadb": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "aws-cdk-rds-proxy-mariadb.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}/f0fff306f7e137bbf1a002fa55210d252f5846dc8e753143422b180e68469441.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "aws-cdk-rds-proxy-mariadb.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-rds-proxy-mariadb.assets" + ], + "metadata": { + "/aws-cdk-rds-proxy-mariadb/vpc/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcA2121C38" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPublicSubnet1Subnet2E65531E" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPublicSubnet1RouteTable48A2DF9B" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPublicSubnet1RouteTableAssociation5D3F4579" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPublicSubnet1DefaultRoute10708846" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1/EIP": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPublicSubnet1EIPDA49DCBE" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1/NATGateway": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPublicSubnet1NATGateway9C16659E" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPublicSubnet2Subnet009B674F" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPublicSubnet2RouteTableEB40D4CB" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPublicSubnet2RouteTableAssociation21F81B59" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPublicSubnet2DefaultRouteA1EC0F60" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2/EIP": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPublicSubnet2EIP9B3743B1" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2/NATGateway": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPublicSubnet2NATGateway9B8AE11A" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet1/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPrivateSubnet1Subnet934893E8" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet1/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPrivateSubnet1RouteTableB41A48CC" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet1/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPrivateSubnet1RouteTableAssociation67945127" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet1/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPrivateSubnet1DefaultRoute1AA8E2E5" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet2/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPrivateSubnet2Subnet7031C2BA" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet2/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPrivateSubnet2RouteTable7280F23E" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet2/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPrivateSubnet2RouteTableAssociation007E94D3" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet2/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcPrivateSubnet2DefaultRouteB0E07F99" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/IGW": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcIGWE57CBDCA" + } + ], + "/aws-cdk-rds-proxy-mariadb/vpc/VPCGW": [ + { + "type": "aws:cdk:logicalId", + "data": "vpcVPCGW7984C166" + } + ], + "/aws-cdk-rds-proxy-mariadb/SecretEncryptionKey/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "SecretEncryptionKey40C82244" + } + ], + "/aws-cdk-rds-proxy-mariadb/mariaDBInstance/SubnetGroup/Default": [ + { + "type": "aws:cdk:logicalId", + "data": "mariaDBInstanceSubnetGroupA17E5651" + } + ], + "/aws-cdk-rds-proxy-mariadb/mariaDBInstance/SecurityGroup/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "mariaDBInstanceSecurityGroup1C05EFED" + } + ], + "/aws-cdk-rds-proxy-mariadb/mariaDBInstance/SecurityGroup/from awscdkrdsproxymariadbmariaDBProxyProxySecurityGroup4F55583F:{IndirectPort}": [ + { + "type": "aws:cdk:logicalId", + "data": "mariaDBInstanceSecurityGroupfromawscdkrdsproxymariadbmariaDBProxyProxySecurityGroup4F55583FIndirectPort44A97795" + } + ], + "/aws-cdk-rds-proxy-mariadb/mariaDBInstance/Secret/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "mariaDBInstanceSecretED322D85" + } + ], + "/aws-cdk-rds-proxy-mariadb/mariaDBInstance/Secret/Attachment/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "mariaDBInstanceSecretAttachment900E3C52" + } + ], + "/aws-cdk-rds-proxy-mariadb/mariaDBInstance/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "mariaDBInstance7DFDB9B1" + } + ], + "/aws-cdk-rds-proxy-mariadb/mariaDBProxy/IAMRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "mariaDBProxyIAMRoleB91DE271" + } + ], + "/aws-cdk-rds-proxy-mariadb/mariaDBProxy/IAMRole/DefaultPolicy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "mariaDBProxyIAMRoleDefaultPolicyF4BE519B" + } + ], + "/aws-cdk-rds-proxy-mariadb/mariaDBProxy/ProxySecurityGroup/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "mariaDBProxyProxySecurityGroupFD730755" + } + ], + "/aws-cdk-rds-proxy-mariadb/mariaDBProxy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "mariaDBProxy23E8B2BB" + } + ], + "/aws-cdk-rds-proxy-mariadb/mariaDBProxy/ProxyTargetGroup": [ + { + "type": "aws:cdk:logicalId", + "data": "mariaDBProxyProxyTargetGroup960ACB39" + } + ], + "/aws-cdk-rds-proxy-mariadb/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/aws-cdk-rds-proxy-mariadb/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "aws-cdk-rds-proxy-mariadb" + }, + "databaseproxymariadbintegtestDefaultTestDeployAssert9D9B7FF3.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "databaseproxymariadbintegtestDefaultTestDeployAssert9D9B7FF3.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "databaseproxymariadbintegtestDefaultTestDeployAssert9D9B7FF3": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "databaseproxymariadbintegtestDefaultTestDeployAssert9D9B7FF3.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": [ + "databaseproxymariadbintegtestDefaultTestDeployAssert9D9B7FF3.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": [ + "databaseproxymariadbintegtestDefaultTestDeployAssert9D9B7FF3.assets" + ], + "metadata": { + "/database-proxy-mariadb-integ-test/DefaultTest/DeployAssert/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/database-proxy-mariadb-integ-test/DefaultTest/DeployAssert/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "database-proxy-mariadb-integ-test/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-rds/test/integ.proxy-mariadb.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/tree.json new file mode 100644 index 0000000000000..b0c1987a150b8 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.js.snapshot/tree.json @@ -0,0 +1,1329 @@ +{ + "version": "tree-0.1", + "tree": { + "id": "App", + "path": "", + "children": { + "aws-cdk-rds-proxy-mariadb": { + "id": "aws-cdk-rds-proxy-mariadb", + "path": "aws-cdk-rds-proxy-mariadb", + "children": { + "vpc": { + "id": "vpc", + "path": "aws-cdk-rds-proxy-mariadb/vpc", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-rds-proxy-mariadb/vpc/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": "aws-cdk-rds-proxy-mariadb/vpc" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "PublicSubnet1": { + "id": "PublicSubnet1", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "availabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.0.0/18", + "mapPublicIpOnLaunch": true, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Public" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Public" + }, + { + "key": "Name", + "value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1" + } + ], + "vpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1/Acl", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1" + } + ], + "vpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "vpcPublicSubnet1RouteTable48A2DF9B" + }, + "subnetId": { + "Ref": "vpcPublicSubnet1Subnet2E65531E" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "gatewayId": { + "Ref": "vpcIGWE57CBDCA" + }, + "routeTableId": { + "Ref": "vpcPublicSubnet1RouteTable48A2DF9B" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "EIP": { + "id": "EIP", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1/EIP", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::EIP", + "aws:cdk:cloudformation:props": { + "domain": "vpc", + "tags": [ + { + "key": "Name", + "value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "NATGateway": { + "id": "NATGateway", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1/NATGateway", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", + "aws:cdk:cloudformation:props": { + "allocationId": { + "Fn::GetAtt": [ + "vpcPublicSubnet1EIPDA49DCBE", + "AllocationId" + ] + }, + "subnetId": { + "Ref": "vpcPublicSubnet1Subnet2E65531E" + }, + "tags": [ + { + "key": "Name", + "value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet1" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "PublicSubnet2": { + "id": "PublicSubnet2", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "availabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.64.0/18", + "mapPublicIpOnLaunch": true, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Public" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Public" + }, + { + "key": "Name", + "value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2" + } + ], + "vpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2/Acl", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2" + } + ], + "vpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "vpcPublicSubnet2RouteTableEB40D4CB" + }, + "subnetId": { + "Ref": "vpcPublicSubnet2Subnet009B674F" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "gatewayId": { + "Ref": "vpcIGWE57CBDCA" + }, + "routeTableId": { + "Ref": "vpcPublicSubnet2RouteTableEB40D4CB" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "EIP": { + "id": "EIP", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2/EIP", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::EIP", + "aws:cdk:cloudformation:props": { + "domain": "vpc", + "tags": [ + { + "key": "Name", + "value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "NATGateway": { + "id": "NATGateway", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2/NATGateway", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", + "aws:cdk:cloudformation:props": { + "allocationId": { + "Fn::GetAtt": [ + "vpcPublicSubnet2EIP9B3743B1", + "AllocationId" + ] + }, + "subnetId": { + "Ref": "vpcPublicSubnet2Subnet009B674F" + }, + "tags": [ + { + "key": "Name", + "value": "aws-cdk-rds-proxy-mariadb/vpc/PublicSubnet2" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "PrivateSubnet1": { + "id": "PrivateSubnet1", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet1", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet1/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "availabilityZone": { + "Fn::Select": [ + 0, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.128.0/18", + "mapPublicIpOnLaunch": false, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Private" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Private" + }, + { + "key": "Name", + "value": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet1" + } + ], + "vpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet1/Acl", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet1/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet1" + } + ], + "vpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet1/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "vpcPrivateSubnet1RouteTableB41A48CC" + }, + "subnetId": { + "Ref": "vpcPrivateSubnet1Subnet934893E8" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet1/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "natGatewayId": { + "Ref": "vpcPublicSubnet1NATGateway9C16659E" + }, + "routeTableId": { + "Ref": "vpcPrivateSubnet1RouteTableB41A48CC" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "PrivateSubnet2": { + "id": "PrivateSubnet2", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet2", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet2/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "availabilityZone": { + "Fn::Select": [ + 1, + { + "Fn::GetAZs": "" + } + ] + }, + "cidrBlock": "10.0.192.0/18", + "mapPublicIpOnLaunch": false, + "tags": [ + { + "key": "aws-cdk:subnet-name", + "value": "Private" + }, + { + "key": "aws-cdk:subnet-type", + "value": "Private" + }, + { + "key": "Name", + "value": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet2" + } + ], + "vpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet2/Acl", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet2/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet2" + } + ], + "vpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet2/RouteTableAssociation", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SubnetRouteTableAssociation", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "vpcPrivateSubnet2RouteTable7280F23E" + }, + "subnetId": { + "Ref": "vpcPrivateSubnet2Subnet7031C2BA" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-rds-proxy-mariadb/vpc/PrivateSubnet2/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "destinationCidrBlock": "0.0.0.0/0", + "natGatewayId": { + "Ref": "vpcPublicSubnet2NATGateway9B8AE11A" + }, + "routeTableId": { + "Ref": "vpcPrivateSubnet2RouteTable7280F23E" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "IGW": { + "id": "IGW", + "path": "aws-cdk-rds-proxy-mariadb/vpc/IGW", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::InternetGateway", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-rds-proxy-mariadb/vpc" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "VPCGW": { + "id": "VPCGW", + "path": "aws-cdk-rds-proxy-mariadb/vpc/VPCGW", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::VPCGatewayAttachment", + "aws:cdk:cloudformation:props": { + "internetGatewayId": { + "Ref": "vpcIGWE57CBDCA" + }, + "vpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "SecretEncryptionKey": { + "id": "SecretEncryptionKey", + "path": "aws-cdk-rds-proxy-mariadb/SecretEncryptionKey", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-rds-proxy-mariadb/SecretEncryptionKey/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::KMS::Key", + "aws:cdk:cloudformation:props": { + "keyPolicy": { + "Statement": [ + { + "Action": "kms:*", + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::", + { + "Ref": "AWS::AccountId" + }, + ":root" + ] + ] + } + }, + "Resource": "*" + }, + { + "Action": [ + "kms:CreateGrant", + "kms:Decrypt", + "kms:DescribeKey", + "kms:Encrypt", + "kms:GenerateDataKey*", + "kms:ReEncrypt*" + ], + "Condition": { + "StringEquals": { + "kms:ViaService": { + "Fn::Join": [ + "", + [ + "secretsmanager.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com" + ] + ] + } + } + }, + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::", + { + "Ref": "AWS::AccountId" + }, + ":root" + ] + ] + } + }, + "Resource": "*" + }, + { + "Action": "kms:Decrypt", + "Condition": { + "StringEquals": { + "kms:ViaService": { + "Fn::Join": [ + "", + [ + "secretsmanager.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com" + ] + ] + } + } + }, + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "mariaDBProxyIAMRoleB91DE271", + "Arn" + ] + } + }, + "Resource": "*" + } + ], + "Version": "2012-10-17" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "mariaDBInstance": { + "id": "mariaDBInstance", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBInstance", + "children": { + "SubnetGroup": { + "id": "SubnetGroup", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBInstance/SubnetGroup", + "children": { + "Default": { + "id": "Default", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBInstance/SubnetGroup/Default", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::RDS::DBSubnetGroup", + "aws:cdk:cloudformation:props": { + "dbSubnetGroupDescription": "Subnet group for mariaDBInstance database", + "subnetIds": [ + { + "Ref": "vpcPrivateSubnet1Subnet934893E8" + }, + { + "Ref": "vpcPrivateSubnet2Subnet7031C2BA" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "SecurityGroup": { + "id": "SecurityGroup", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBInstance/SecurityGroup", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBInstance/SecurityGroup/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroup", + "aws:cdk:cloudformation:props": { + "groupDescription": "Security group for mariaDBInstance database", + "securityGroupEgress": [ + { + "cidrIp": "0.0.0.0/0", + "description": "Allow all outbound traffic by default", + "ipProtocol": "-1" + } + ], + "vpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "from awscdkrdsproxymariadbmariaDBProxyProxySecurityGroup4F55583F:{IndirectPort}": { + "id": "from awscdkrdsproxymariadbmariaDBProxyProxySecurityGroup4F55583F:{IndirectPort}", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBInstance/SecurityGroup/from awscdkrdsproxymariadbmariaDBProxyProxySecurityGroup4F55583F:{IndirectPort}", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroupIngress", + "aws:cdk:cloudformation:props": { + "description": "Allow connections to the database Instance from the Proxy", + "fromPort": { + "Fn::GetAtt": [ + "mariaDBInstance7DFDB9B1", + "Endpoint.Port" + ] + }, + "groupId": { + "Fn::GetAtt": [ + "mariaDBInstanceSecurityGroup1C05EFED", + "GroupId" + ] + }, + "ipProtocol": "tcp", + "sourceSecurityGroupId": { + "Fn::GetAtt": [ + "mariaDBProxyProxySecurityGroupFD730755", + "GroupId" + ] + }, + "toPort": { + "Fn::GetAtt": [ + "mariaDBInstance7DFDB9B1", + "Endpoint.Port" + ] + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Secret": { + "id": "Secret", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBInstance/Secret", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBInstance/Secret/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::SecretsManager::Secret", + "aws:cdk:cloudformation:props": { + "description": { + "Fn::Join": [ + "", + [ + "Generated by the CDK for stack: ", + { + "Ref": "AWS::StackName" + } + ] + ] + }, + "generateSecretString": { + "passwordLength": 30, + "secretStringTemplate": "{\"username\":\"master\"}", + "generateStringKey": "password", + "excludeCharacters": "\"@/\\" + }, + "kmsKeyId": { + "Fn::GetAtt": [ + "SecretEncryptionKey40C82244", + "Arn" + ] + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Attachment": { + "id": "Attachment", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBInstance/Secret/Attachment", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBInstance/Secret/Attachment/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::SecretsManager::SecretTargetAttachment", + "aws:cdk:cloudformation:props": { + "secretId": { + "Ref": "mariaDBInstanceSecretED322D85" + }, + "targetId": { + "Ref": "mariaDBInstance7DFDB9B1" + }, + "targetType": "AWS::RDS::DBInstance" + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBInstance/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::RDS::DBInstance", + "aws:cdk:cloudformation:props": { + "allocatedStorage": "100", + "copyTagsToSnapshot": true, + "dbInstanceClass": "db.t3.medium", + "dbSubnetGroupName": { + "Ref": "mariaDBInstanceSubnetGroupA17E5651" + }, + "engine": "mariadb", + "engineVersion": "10.6.16", + "masterUsername": { + "Fn::Join": [ + "", + [ + "{{resolve:secretsmanager:", + { + "Ref": "mariaDBInstanceSecretED322D85" + }, + ":SecretString:username::}}" + ] + ] + }, + "masterUserPassword": { + "Fn::Join": [ + "", + [ + "{{resolve:secretsmanager:", + { + "Ref": "mariaDBInstanceSecretED322D85" + }, + ":SecretString:password::}}" + ] + ] + }, + "storageType": "gp2", + "vpcSecurityGroups": [ + { + "Fn::GetAtt": [ + "mariaDBInstanceSecurityGroup1C05EFED", + "GroupId" + ] + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "mariaDBProxy": { + "id": "mariaDBProxy", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBProxy", + "children": { + "IAMRole": { + "id": "IAMRole", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBProxy/IAMRole", + "children": { + "ImportIAMRole": { + "id": "ImportIAMRole", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBProxy/IAMRole/ImportIAMRole", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBProxy/IAMRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "rds.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DefaultPolicy": { + "id": "DefaultPolicy", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBProxy/IAMRole/DefaultPolicy", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBProxy/IAMRole/DefaultPolicy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Policy", + "aws:cdk:cloudformation:props": { + "policyDocument": { + "Statement": [ + { + "Action": [ + "secretsmanager:DescribeSecret", + "secretsmanager:GetSecretValue" + ], + "Effect": "Allow", + "Resource": { + "Ref": "mariaDBInstanceSecretAttachment900E3C52" + } + }, + { + "Action": "kms:Decrypt", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "SecretEncryptionKey40C82244", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "policyName": "mariaDBProxyIAMRoleDefaultPolicyF4BE519B", + "roles": [ + { + "Ref": "mariaDBProxyIAMRoleB91DE271" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "ProxySecurityGroup": { + "id": "ProxySecurityGroup", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBProxy/ProxySecurityGroup", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBProxy/ProxySecurityGroup/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroup", + "aws:cdk:cloudformation:props": { + "groupDescription": "SecurityGroup for Database Proxy", + "securityGroupEgress": [ + { + "cidrIp": "0.0.0.0/0", + "description": "Allow all outbound traffic by default", + "ipProtocol": "-1" + } + ], + "vpcId": { + "Ref": "vpcA2121C38" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBProxy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::RDS::DBProxy", + "aws:cdk:cloudformation:props": { + "auth": [ + { + "authScheme": "SECRETS", + "iamAuth": "DISABLED", + "secretArn": { + "Ref": "mariaDBInstanceSecretAttachment900E3C52" + } + } + ], + "dbProxyName": "awscdkrdsproxymariadbmariaDBProxyB0A701B2", + "engineFamily": "MYSQL", + "requireTls": true, + "roleArn": { + "Fn::GetAtt": [ + "mariaDBProxyIAMRoleB91DE271", + "Arn" + ] + }, + "vpcSecurityGroupIds": [ + { + "Fn::GetAtt": [ + "mariaDBProxyProxySecurityGroupFD730755", + "GroupId" + ] + } + ], + "vpcSubnetIds": [ + { + "Ref": "vpcPrivateSubnet1Subnet934893E8" + }, + { + "Ref": "vpcPrivateSubnet2Subnet7031C2BA" + } + ] + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "ProxyTargetGroup": { + "id": "ProxyTargetGroup", + "path": "aws-cdk-rds-proxy-mariadb/mariaDBProxy/ProxyTargetGroup", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::RDS::DBProxyTargetGroup", + "aws:cdk:cloudformation:props": { + "connectionPoolConfigurationInfo": { + "connectionBorrowTimeout": 30, + "maxConnectionsPercent": 50 + }, + "dbInstanceIdentifiers": [ + { + "Ref": "mariaDBInstance7DFDB9B1" + } + ], + "dbProxyName": { + "Ref": "mariaDBProxy23E8B2BB" + }, + "targetGroupName": "default" + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "aws-cdk-rds-proxy-mariadb/BootstrapVersion", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "aws-cdk-rds-proxy-mariadb/CheckBootstrapVersion", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "database-proxy-mariadb-integ-test": { + "id": "database-proxy-mariadb-integ-test", + "path": "database-proxy-mariadb-integ-test", + "children": { + "DefaultTest": { + "id": "DefaultTest", + "path": "database-proxy-mariadb-integ-test/DefaultTest", + "children": { + "Default": { + "id": "Default", + "path": "database-proxy-mariadb-integ-test/DefaultTest/Default", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "DeployAssert": { + "id": "DeployAssert", + "path": "database-proxy-mariadb-integ-test/DefaultTest/DeployAssert", + "children": { + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "database-proxy-mariadb-integ-test/DefaultTest/DeployAssert/BootstrapVersion", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "database-proxy-mariadb-integ-test/DefaultTest/DeployAssert/CheckBootstrapVersion", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.3.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": "constructs.Construct", + "version": "10.3.0" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.ts new file mode 100644 index 0000000000000..c49d0a53ca66c --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.proxy-mariadb.ts @@ -0,0 +1,45 @@ +import * as ec2 from 'aws-cdk-lib/aws-ec2'; +import * as cdk from 'aws-cdk-lib'; +import { RemovalPolicy } from 'aws-cdk-lib'; +import * as integ from '@aws-cdk/integ-tests-alpha'; +import * as kms from 'aws-cdk-lib/aws-kms'; +import * as rds from 'aws-cdk-lib/aws-rds'; + +const app = new cdk.App(); +const stack = new cdk.Stack(app, 'aws-cdk-rds-proxy-mariadb'); + +const vpc = new ec2.Vpc(stack, 'vpc', { maxAzs: 2, restrictDefaultSecurityGroup: false }); +const kmsKey = new kms.Key(stack, 'SecretEncryptionKey'); + +const mariaDBInstance = new rds.DatabaseInstance(stack, 'mariaDBInstance', { + engine: rds.DatabaseInstanceEngine.mariaDb({ + version: rds.MariaDbEngineVersion.VER_10_6_16, + }), + instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.MEDIUM), + credentials: rds.Credentials.fromUsername('master', { + encryptionKey: kmsKey, + excludeCharacters: '"@/\\', + }), + vpc, + removalPolicy: RemovalPolicy.DESTROY, +}); + +new rds.DatabaseProxy(stack, 'mariaDBProxy', { + borrowTimeout: cdk.Duration.seconds(30), + maxConnectionsPercent: 50, + secrets: [mariaDBInstance.secret!], + proxyTarget: rds.ProxyTarget.fromInstance(mariaDBInstance), + vpc, +}); + +new integ.IntegTest(app, 'database-proxy-mariadb-integ-test', { + testCases: [stack], + diffAssets: true, + cdkCommandOptions: { + deploy: { + args: { + rollback: true, + }, + }, + }, +}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/asset.5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/asset.5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9/index.js deleted file mode 100644 index d108d3ce36d09..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/asset.5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var a=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var P=(t,e)=>{for(var r in e)a(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Z(e))!N.call(t,n)&&n!==r&&a(t,n,{get:()=>e[n],enumerable:!(o=f(e,n))||o.enumerable});return t};var E=t=>h(a({},"__esModule",{value:!0}),t);var T={};P(T,{handler:()=>D});module.exports=E(T);var c=require("@aws-sdk/client-route-53"),u=require("@aws-sdk/credential-providers");async function D(t){let e=t.ResourceProperties;switch(t.RequestType){case"Create":return s(e,!1);case"Update":return w(e,t.OldResourceProperties);case"Delete":return s(e,!0)}}async function w(t,e){e&&t.DelegatedZoneName!==e.DelegatedZoneName&&await s(e,!0),await s(t,!1)}async function s(t,e){let{AssumeRoleArn:r,ParentZoneId:o,ParentZoneName:n,DelegatedZoneName:d,DelegatedZoneNameServers:m,TTL:g}=t;if(!o&&!n)throw Error("One of ParentZoneId or ParentZoneName must be specified");let l=new Date().getTime(),i=new c.Route53({credentials:(0,u.fromTemporaryCredentials)({clientConfig:{region:S(process.env.AWS_REGION??process.env.AWS_DEFAULT_REGION??"")},params:{RoleArn:r,RoleSessionName:`cross-account-zone-delegation-${l}`}})}),R=o??await A(n,i);await i.changeResourceRecordSets({HostedZoneId:R,ChangeBatch:{Changes:[{Action:e?"DELETE":"UPSERT",ResourceRecordSet:{Name:d,Type:"NS",TTL:g,ResourceRecords:m.map(p=>({Value:p}))}}]}})}async function A(t,e){let o=(await e.listHostedZonesByName({DNSName:t})).HostedZones?.filter(n=>n.Name===`${t}.`)??[];if(o&&o.length!==1)throw Error(`Expected one hosted zone to match the given name but found ${o.length}`);return o[0].Id}function S(t){let e={cn:"cn-northwest-1","us-gov":"us-gov-west-1","us-iso":"us-iso-east-1","us-isob":"us-isob-east-1"};for(let[r,o]of Object.entries(e))if(t.startsWith(`${r}-`))return o;return"us-east-1"}0&&(module.exports={handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/asset.5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9/__entrypoint__.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/asset.aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a/__entrypoint__.js similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/asset.5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9/__entrypoint__.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/asset.aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a/__entrypoint__.js diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/asset.aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/asset.aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a/index.js new file mode 100644 index 0000000000000..d69c0934f88d4 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/asset.aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a/index.js @@ -0,0 +1 @@ +"use strict";var a=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var h=(o,e)=>{for(var s in e)a(o,s,{get:e[s],enumerable:!0})},P=(o,e,s,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Z(e))!N.call(o,n)&&n!==s&&a(o,n,{get:()=>e[n],enumerable:!(t=p(e,n))||t.enumerable});return o};var E=o=>P(a({},"__esModule",{value:!0}),o);var T={};h(T,{handler:()=>w});module.exports=E(T);var c=require("@aws-sdk/client-route-53"),u=require("@aws-sdk/credential-providers");async function w(o){let e=o.ResourceProperties;switch(o.RequestType){case"Create":return r(e,!1);case"Update":return D(e,o.OldResourceProperties);case"Delete":return r(e,!0)}}async function D(o,e){e&&o.DelegatedZoneName!==e.DelegatedZoneName&&await r(e,!0),await r(o,!1)}async function r(o,e){let{AssumeRoleArn:s,ParentZoneId:t,ParentZoneName:n,DelegatedZoneName:d,DelegatedZoneNameServers:m,TTL:g}=o;if(!t&&!n)throw Error("One of ParentZoneId or ParentZoneName must be specified");let l=new Date().getTime(),i=new c.Route53({credentials:(0,u.fromTemporaryCredentials)({clientConfig:{region:S(process.env.AWS_REGION??process.env.AWS_DEFAULT_REGION??"")},params:{RoleArn:s,RoleSessionName:`cross-account-zone-delegation-${l}`}})}),R=t??await A(n,i);await i.changeResourceRecordSets({HostedZoneId:R,ChangeBatch:{Changes:[{Action:e?"DELETE":"UPSERT",ResourceRecordSet:{Name:d,Type:"NS",TTL:g,ResourceRecords:m.map(f=>({Value:f}))}}]}})}async function A(o,e){let t=(await e.listHostedZonesByName({DNSName:o})).HostedZones?.filter(n=>n.Name===`${o}.`)??[];if(t&&t.length!==1)throw Error(`Expected one hosted zone to match the given name but found ${t.length}`);return t[0].Id}function S(o){let e={cn:"cn-northwest-1","us-gov":"us-gov-west-1","us-iso":"us-iso-east-1","us-isob":"us-isob-east-1","eu-isoe":"eu-isoe-west-1","us-isof":"us-isof-south-1"};for(let[s,t]of Object.entries(e))if(o.startsWith(`${s}-`))return t;return"us-east-1"}0&&(module.exports={handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-opt-in-stack.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-opt-in-stack.assets.json index fd75a43874a44..71e2bce9c16b6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-opt-in-stack.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-opt-in-stack.assets.json @@ -1,21 +1,21 @@ { "version": "36.0.0", "files": { - "5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9": { + "aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a": { "source": { - "path": "asset.5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9", + "path": "asset.aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a", "packaging": "zip" }, "destinations": { "234567890123-af-south-1": { "bucketName": "cdk-hnb659fds-assets-234567890123-af-south-1", - "objectKey": "5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9.zip", + "objectKey": "aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a.zip", "region": "af-south-1", "assumeRoleArn": "arn:${AWS::Partition}:iam::234567890123:role/cdk-hnb659fds-file-publishing-role-234567890123-af-south-1" } } }, - "c691e2667a0fcaa091fcc80b87990cd2ab0c8271317bc51c37c0aaaf37e871e6": { + "34da3610276ae2d635b15c43c511f47cbd7b4f6e3b7de7b82b980f76956011b1": { "source": { "path": "child-opt-in-stack.template.json", "packaging": "file" @@ -23,7 +23,7 @@ "destinations": { "234567890123-af-south-1": { "bucketName": "cdk-hnb659fds-assets-234567890123-af-south-1", - "objectKey": "c691e2667a0fcaa091fcc80b87990cd2ab0c8271317bc51c37c0aaaf37e871e6.json", + "objectKey": "34da3610276ae2d635b15c43c511f47cbd7b4f6e3b7de7b82b980f76956011b1.json", "region": "af-south-1", "assumeRoleArn": "arn:${AWS::Partition}:iam::234567890123:role/cdk-hnb659fds-file-publishing-role-234567890123-af-south-1" } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-opt-in-stack.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-opt-in-stack.template.json index 1a2d444829645..fb9d627591fd9 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-opt-in-stack.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-opt-in-stack.template.json @@ -103,7 +103,7 @@ "Properties": { "Code": { "S3Bucket": "cdk-hnb659fds-assets-234567890123-af-south-1", - "S3Key": "5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9.zip" + "S3Key": "aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a.zip" }, "Timeout": 900, "MemorySize": 128, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-stack.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-stack.assets.json index e52bfa536432f..3e9342b96558d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-stack.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-stack.assets.json @@ -1,21 +1,21 @@ { "version": "36.0.0", "files": { - "5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9": { + "aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a": { "source": { - "path": "asset.5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9", + "path": "asset.aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a", "packaging": "zip" }, "destinations": { "234567890123-us-east-1": { "bucketName": "cdk-hnb659fds-assets-234567890123-us-east-1", - "objectKey": "5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9.zip", + "objectKey": "aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a.zip", "region": "us-east-1", "assumeRoleArn": "arn:${AWS::Partition}:iam::234567890123:role/cdk-hnb659fds-file-publishing-role-234567890123-us-east-1" } } }, - "8830d36005b1bf5ac6f0bea89067c6f6ea2b4009fe6e6b4a2cb159c2429fc84d": { + "3e4b4f51ab2cf9d297070625300465aeacdc41af65e442818c5ef6c17e800728": { "source": { "path": "child-stack.template.json", "packaging": "file" @@ -23,7 +23,7 @@ "destinations": { "234567890123-us-east-1": { "bucketName": "cdk-hnb659fds-assets-234567890123-us-east-1", - "objectKey": "8830d36005b1bf5ac6f0bea89067c6f6ea2b4009fe6e6b4a2cb159c2429fc84d.json", + "objectKey": "3e4b4f51ab2cf9d297070625300465aeacdc41af65e442818c5ef6c17e800728.json", "region": "us-east-1", "assumeRoleArn": "arn:${AWS::Partition}:iam::234567890123:role/cdk-hnb659fds-file-publishing-role-234567890123-us-east-1" } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-stack.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-stack.template.json index 32880f7ebd948..0e056b8c4a286 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-stack.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/child-stack.template.json @@ -103,7 +103,7 @@ "Properties": { "Code": { "S3Bucket": "cdk-hnb659fds-assets-234567890123-us-east-1", - "S3Key": "5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9.zip" + "S3Key": "aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a.zip" }, "Timeout": 900, "MemorySize": 128, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/manifest.json index a216ab06a9cde..e880c00afc438 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.cross-account-zone-delegation.js.snapshot/manifest.json @@ -84,7 +84,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::234567890123:role/cdk-hnb659fds-deploy-role-234567890123-us-east-1", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::234567890123:role/cdk-hnb659fds-cfn-exec-role-234567890123-us-east-1", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-234567890123-us-east-1/8830d36005b1bf5ac6f0bea89067c6f6ea2b4009fe6e6b4a2cb159c2429fc84d.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-234567890123-us-east-1/3e4b4f51ab2cf9d297070625300465aeacdc41af65e442818c5ef6c17e800728.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -163,7 +163,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::234567890123:role/cdk-hnb659fds-deploy-role-234567890123-af-south-1", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::234567890123:role/cdk-hnb659fds-cfn-exec-role-234567890123-af-south-1", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-234567890123-af-south-1/c691e2667a0fcaa091fcc80b87990cd2ab0c8271317bc51c37c0aaaf37e871e6.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-234567890123-af-south-1/34da3610276ae2d635b15c43c511f47cbd7b4f6e3b7de7b82b980f76956011b1.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/asset.5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/asset.5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9/index.js deleted file mode 100644 index d108d3ce36d09..0000000000000 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/asset.5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var a=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var P=(t,e)=>{for(var r in e)a(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Z(e))!N.call(t,n)&&n!==r&&a(t,n,{get:()=>e[n],enumerable:!(o=f(e,n))||o.enumerable});return t};var E=t=>h(a({},"__esModule",{value:!0}),t);var T={};P(T,{handler:()=>D});module.exports=E(T);var c=require("@aws-sdk/client-route-53"),u=require("@aws-sdk/credential-providers");async function D(t){let e=t.ResourceProperties;switch(t.RequestType){case"Create":return s(e,!1);case"Update":return w(e,t.OldResourceProperties);case"Delete":return s(e,!0)}}async function w(t,e){e&&t.DelegatedZoneName!==e.DelegatedZoneName&&await s(e,!0),await s(t,!1)}async function s(t,e){let{AssumeRoleArn:r,ParentZoneId:o,ParentZoneName:n,DelegatedZoneName:d,DelegatedZoneNameServers:m,TTL:g}=t;if(!o&&!n)throw Error("One of ParentZoneId or ParentZoneName must be specified");let l=new Date().getTime(),i=new c.Route53({credentials:(0,u.fromTemporaryCredentials)({clientConfig:{region:S(process.env.AWS_REGION??process.env.AWS_DEFAULT_REGION??"")},params:{RoleArn:r,RoleSessionName:`cross-account-zone-delegation-${l}`}})}),R=o??await A(n,i);await i.changeResourceRecordSets({HostedZoneId:R,ChangeBatch:{Changes:[{Action:e?"DELETE":"UPSERT",ResourceRecordSet:{Name:d,Type:"NS",TTL:g,ResourceRecords:m.map(p=>({Value:p}))}}]}})}async function A(t,e){let o=(await e.listHostedZonesByName({DNSName:t})).HostedZones?.filter(n=>n.Name===`${t}.`)??[];if(o&&o.length!==1)throw Error(`Expected one hosted zone to match the given name but found ${o.length}`);return o[0].Id}function S(t){let e={cn:"cn-northwest-1","us-gov":"us-gov-west-1","us-iso":"us-iso-east-1","us-isob":"us-isob-east-1"};for(let[r,o]of Object.entries(e))if(t.startsWith(`${r}-`))return o;return"us-east-1"}0&&(module.exports={handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/asset.5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9/__entrypoint__.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/asset.aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a/__entrypoint__.js similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/asset.5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9/__entrypoint__.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/asset.aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a/__entrypoint__.js diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/asset.aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/asset.aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a/index.js new file mode 100644 index 0000000000000..d69c0934f88d4 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/asset.aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a/index.js @@ -0,0 +1 @@ +"use strict";var a=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var h=(o,e)=>{for(var s in e)a(o,s,{get:e[s],enumerable:!0})},P=(o,e,s,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Z(e))!N.call(o,n)&&n!==s&&a(o,n,{get:()=>e[n],enumerable:!(t=p(e,n))||t.enumerable});return o};var E=o=>P(a({},"__esModule",{value:!0}),o);var T={};h(T,{handler:()=>w});module.exports=E(T);var c=require("@aws-sdk/client-route-53"),u=require("@aws-sdk/credential-providers");async function w(o){let e=o.ResourceProperties;switch(o.RequestType){case"Create":return r(e,!1);case"Update":return D(e,o.OldResourceProperties);case"Delete":return r(e,!0)}}async function D(o,e){e&&o.DelegatedZoneName!==e.DelegatedZoneName&&await r(e,!0),await r(o,!1)}async function r(o,e){let{AssumeRoleArn:s,ParentZoneId:t,ParentZoneName:n,DelegatedZoneName:d,DelegatedZoneNameServers:m,TTL:g}=o;if(!t&&!n)throw Error("One of ParentZoneId or ParentZoneName must be specified");let l=new Date().getTime(),i=new c.Route53({credentials:(0,u.fromTemporaryCredentials)({clientConfig:{region:S(process.env.AWS_REGION??process.env.AWS_DEFAULT_REGION??"")},params:{RoleArn:s,RoleSessionName:`cross-account-zone-delegation-${l}`}})}),R=t??await A(n,i);await i.changeResourceRecordSets({HostedZoneId:R,ChangeBatch:{Changes:[{Action:e?"DELETE":"UPSERT",ResourceRecordSet:{Name:d,Type:"NS",TTL:g,ResourceRecords:m.map(f=>({Value:f}))}}]}})}async function A(o,e){let t=(await e.listHostedZonesByName({DNSName:o})).HostedZones?.filter(n=>n.Name===`${o}.`)??[];if(t&&t.length!==1)throw Error(`Expected one hosted zone to match the given name but found ${t.length}`);return t[0].Id}function S(o){let e={cn:"cn-northwest-1","us-gov":"us-gov-west-1","us-iso":"us-iso-east-1","us-isob":"us-isob-east-1","eu-isoe":"eu-isoe-west-1","us-isof":"us-isof-south-1"};for(let[s,t]of Object.entries(e))if(o.startsWith(`${s}-`))return t;return"us-east-1"}0&&(module.exports={handler}); diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/child-stack.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/child-stack.assets.json index 3558484bfff3c..9f17e5a71f2d7 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/child-stack.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/child-stack.assets.json @@ -1,21 +1,21 @@ { "version": "36.0.0", "files": { - "5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9": { + "aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a": { "source": { - "path": "asset.5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9", + "path": "asset.aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a", "packaging": "zip" }, "destinations": { "234567890123-us-east-1": { "bucketName": "cdk-hnb659fds-assets-234567890123-us-east-1", - "objectKey": "5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9.zip", + "objectKey": "aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a.zip", "region": "us-east-1", "assumeRoleArn": "arn:${AWS::Partition}:iam::234567890123:role/cdk-hnb659fds-file-publishing-role-234567890123-us-east-1" } } }, - "f6830a6eaa888f5b36392a0cc2b5850266cf11e1dc7bd19c1c7d55228af904fb": { + "29bfebfb05b102586faa0f38d585a3aea3433366ba19f4b7f213dbc46a9e7544": { "source": { "path": "child-stack.template.json", "packaging": "file" @@ -23,7 +23,7 @@ "destinations": { "234567890123-us-east-1": { "bucketName": "cdk-hnb659fds-assets-234567890123-us-east-1", - "objectKey": "f6830a6eaa888f5b36392a0cc2b5850266cf11e1dc7bd19c1c7d55228af904fb.json", + "objectKey": "29bfebfb05b102586faa0f38d585a3aea3433366ba19f4b7f213dbc46a9e7544.json", "region": "us-east-1", "assumeRoleArn": "arn:${AWS::Partition}:iam::234567890123:role/cdk-hnb659fds-file-publishing-role-234567890123-us-east-1" } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/child-stack.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/child-stack.template.json index aa7138a0428b8..b510dd3a2b69f 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/child-stack.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/child-stack.template.json @@ -103,7 +103,7 @@ "Properties": { "Code": { "S3Bucket": "cdk-hnb659fds-assets-234567890123-us-east-1", - "S3Key": "5e6e9858d1b0f5ba042ceacb850822cb985861c7bd174ceb7659a10daebe43e9.zip" + "S3Key": "aca4a134bf7ace6088b21213be7ab4357e3705f714362b690d76376b8f1df53a.zip" }, "Timeout": 900, "MemorySize": 128, diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/manifest.json index 21bdd3fe8b930..b5cc97c012268 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-route53/test/integ.rename-cross-account-zone-delegation.js.snapshot/manifest.json @@ -84,7 +84,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::234567890123:role/cdk-hnb659fds-deploy-role-234567890123-us-east-1", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::234567890123:role/cdk-hnb659fds-cfn-exec-role-234567890123-us-east-1", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-234567890123-us-east-1/f6830a6eaa888f5b36392a0cc2b5850266cf11e1dc7bd19c1c7d55228af904fb.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-234567890123-us-east-1/29bfebfb05b102586faa0f38d585a3aea3433366ba19f4b7f213dbc46a9e7544.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.js.snapshot/test-3.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.js.snapshot/test-3.template.json index fbc82f667ab39..a4c6c1474ee02 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.js.snapshot/test-3.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/integ.notifications.js.snapshot/test-3.template.json @@ -254,7 +254,7 @@ "Arn" ] }, - "Runtime": "python3.9", + "Runtime": "python3.11", "Timeout": 300 }, "DependsOn": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/cdk-integ-lambda-bucket-notifications.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/cdk-integ-lambda-bucket-notifications.template.json index d9c1a51e5e340..940d53e40c205 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/cdk-integ-lambda-bucket-notifications.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/lambda/integ.bucket-notifications.js.snapshot/cdk-integ-lambda-bucket-notifications.template.json @@ -246,7 +246,7 @@ "Arn" ] }, - "Runtime": "python3.9", + "Runtime": "python3.11", "Timeout": 300 }, "DependsOn": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.js.snapshot/sns-bucket-notifications.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.js.snapshot/sns-bucket-notifications.template.json index aa1bbc1e9ff4c..ef290e6ef91de 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.js.snapshot/sns-bucket-notifications.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sns/integ.sns-bucket-notifications.js.snapshot/sns-bucket-notifications.template.json @@ -204,7 +204,7 @@ "Arn" ] }, - "Runtime": "python3.9", + "Runtime": "python3.11", "Timeout": 300 }, "DependsOn": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications-unmanaged.js.snapshot/integ-sqs-bucket-notifications.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications-unmanaged.js.snapshot/integ-sqs-bucket-notifications.template.json index 0a89f897d98c2..4cf9e73a147f6 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications-unmanaged.js.snapshot/integ-sqs-bucket-notifications.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications-unmanaged.js.snapshot/integ-sqs-bucket-notifications.template.json @@ -412,7 +412,7 @@ "Arn" ] }, - "Runtime": "python3.9", + "Runtime": "python3.11", "Timeout": 300 }, "DependsOn": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.js.snapshot/sqs-bucket-notifications.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.js.snapshot/sqs-bucket-notifications.template.json index 5054faf3f9eda..27d4054b8d193 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.js.snapshot/sqs-bucket-notifications.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3-notifications/test/sqs/integ.bucket-notifications.js.snapshot/sqs-bucket-notifications.template.json @@ -193,7 +193,7 @@ "Arn" ] }, - "Runtime": "python3.9", + "Runtime": "python3.11", "Timeout": 300 }, "DependsOn": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.js.snapshot/aws-cdk-s3-notifications.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.js.snapshot/aws-cdk-s3-notifications.template.json index a8da931afe76f..8a13892087d2d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.js.snapshot/aws-cdk-s3-notifications.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-s3/test/integ.bucket.notifications.js.snapshot/aws-cdk-s3-notifications.template.json @@ -89,7 +89,7 @@ "Arn" ] }, - "Runtime": "python3.9", + "Runtime": "python3.11", "Timeout": 300 }, "DependsOn": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-file-system-locations.js b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-file-system-locations.js index d3e18c9bfc4f9..137aacedd7835 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-file-system-locations.js +++ b/packages/@aws-cdk-testing/framework-integ/test/pipelines/test/integ.newpipeline-with-file-system-locations.js @@ -51,8 +51,9 @@ class AppStage extends aws_cdk_lib_1.Stage { } } const app = new aws_cdk_lib_1.App({ - context: { + postCliContext: { '@aws-cdk/core:newStyleStackSynthesis': '1', + '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2': false, }, }); const stack = new TestStack(app, 'PipelinesFileSystemLocations'); @@ -61,4 +62,4 @@ new integ.IntegTest(app, 'cdk-integ-codepipeline-with-file-system-locations', { diffAssets: true, }); app.synth(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubmV3cGlwZWxpbmUtd2l0aC1maWxlLXN5c3RlbS1sb2NhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5uZXdwaXBlbGluZS13aXRoLWZpbGUtc3lzdGVtLWxvY2F0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3Qix1REFBdUQ7QUFDdkQsMkNBQTJDO0FBQzNDLHlDQUF5QztBQUN6Qyx1REFBdUQ7QUFDdkQsNkNBQXFIO0FBQ3JILG9EQUFvRDtBQUVwRCxtREFBbUQ7QUFFbkQsTUFBTSxTQUFVLFNBQVEsbUJ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XNpemVyOiBuZXcgRGVmYXVsdFN0YWNrU3ludGhlc2l6ZXIoKSxcbiAgICB9KTtcbiAgICBuZXcgczNfYXNzZXRzLkFzc2V0KHN0YWNrLCAnQXNzZXQnLCB7XG4gICAgICBwYXRoOiBwYXRoLmpvaW4oX19kaXJuYW1lLCAndGVzdGhlbHBlcnMvYXNzZXRzL3Rlc3QtZmlsZS1hc3NldC50eHQnKSxcbiAgICB9KTtcbiAgfVxufVxuXG5jb25zdCBhcHAgPSBuZXcgQXBwKHtcbiAgcG9zdENsaUNvbnRleHQ6IHtcbiAgICAnQGF3cy1jZGsvY29yZTpuZXdTdHlsZVN0YWNrU3ludGhlc2lzJzogJzEnLFxuICAgICdAYXdzLWNkay9hd3MtY29kZXBpcGVsaW5lOmRlZmF1bHRQaXBlbGluZVR5cGVUb1YyJzogZmFsc2UsXG4gIH0sXG59KTtcblxuY29uc3Qgc3RhY2sgPSBuZXcgVGVzdFN0YWNrKGFwcCwgJ1BpcGVsaW5lc0ZpbGVTeXN0ZW1Mb2NhdGlvbnMnKTtcblxubmV3IGludGVnLkludGVnVGVzdChhcHAsICdjZGstaW50ZWctY29kZXBpcGVsaW5lLXdpdGgtZmlsZS1zeXN0ZW0tbG9jYXRpb25zJywge1xuICB0ZXN0Q2FzZXM6IFtzdGFja10sXG4gIGRpZmZBc3NldHM6IHRydWUsXG59KTtcblxuYXBwLnN5bnRoKCk7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk/aws-glue-alpha/lib/job.ts b/packages/@aws-cdk/aws-glue-alpha/lib/job.ts index 8420d380bb675..813894f0b6898 100644 --- a/packages/@aws-cdk/aws-glue-alpha/lib/job.ts +++ b/packages/@aws-cdk/aws-glue-alpha/lib/job.ts @@ -826,7 +826,7 @@ export class Job extends JobBase { bucket.grantReadWrite(role, this.cleanPrefixForGrant(props.prefix)); const args = { '--enable-spark-ui': 'true', - '--spark-event-logs-path': bucket.s3UrlForObject(props.prefix), + '--spark-event-logs-path': bucket.s3UrlForObject(props.prefix).replace(/\/?$/, '/'), // path will always end with a slash }; return { diff --git a/packages/@aws-cdk/aws-glue-alpha/test/integ.job.js.snapshot/aws-glue-job.assets.json b/packages/@aws-cdk/aws-glue-alpha/test/integ.job.js.snapshot/aws-glue-job.assets.json index 4be1daf9e3601..79fcfa4848c78 100644 --- a/packages/@aws-cdk/aws-glue-alpha/test/integ.job.js.snapshot/aws-glue-job.assets.json +++ b/packages/@aws-cdk/aws-glue-alpha/test/integ.job.js.snapshot/aws-glue-job.assets.json @@ -40,7 +40,7 @@ } } }, - "4595f761e767da2650d387dfba7358d632f1da57744033b6023677b8bc150f15": { + "dd8261e4900491c4aaaec8bcd31c57b1f30085f1d579f19089bd55a4bdb023b7": { "source": { "path": "aws-glue-job.template.json", "packaging": "file" @@ -48,7 +48,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "4595f761e767da2650d387dfba7358d632f1da57744033b6023677b8bc150f15.json", + "objectKey": "dd8261e4900491c4aaaec8bcd31c57b1f30085f1d579f19089bd55a4bdb023b7.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-glue-alpha/test/integ.job.js.snapshot/aws-glue-job.template.json b/packages/@aws-cdk/aws-glue-alpha/test/integ.job.js.snapshot/aws-glue-job.template.json index 6ed2d571b6a3e..a198186232829 100644 --- a/packages/@aws-cdk/aws-glue-alpha/test/integ.job.js.snapshot/aws-glue-job.template.json +++ b/packages/@aws-cdk/aws-glue-alpha/test/integ.job.js.snapshot/aws-glue-job.template.json @@ -162,7 +162,8 @@ "s3://", { "Ref": "EtlJob20SparkUIBucketFD07FBD8" - } + }, + "/" ] ] }, @@ -267,6 +268,43 @@ "Properties": { "PolicyDocument": { "Statement": [ + { + "Action": [ + "s3:Abort*", + "s3:DeleteObject*", + "s3:GetBucket*", + "s3:GetObject*", + "s3:List*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "StreamingJob20SparkUIBucket92EF3706", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "StreamingJob20SparkUIBucket92EF3706", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, { "Action": [ "s3:GetBucket*", @@ -319,6 +357,11 @@ ] } }, + "StreamingJob20SparkUIBucket92EF3706": { + "Type": "AWS::S3::Bucket", + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, "StreamingJob20355B58C7": { "Type": "AWS::Glue::Job", "Properties": { @@ -340,6 +383,19 @@ }, "DefaultArguments": { "--job-language": "python", + "--enable-spark-ui": "true", + "--spark-event-logs-path": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "StreamingJob20SparkUIBucket92EF3706" + }, + "/" + ] + ] + }, "arg1": "value1", "arg2": "value2" }, @@ -520,7 +576,8 @@ "s3://", { "Ref": "EtlJob30SparkUIBucket9D789346" - } + }, + "/" ] ] }, @@ -625,6 +682,43 @@ "Properties": { "PolicyDocument": { "Statement": [ + { + "Action": [ + "s3:Abort*", + "s3:DeleteObject*", + "s3:GetBucket*", + "s3:GetObject*", + "s3:List*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "StreamingJob30SparkUIBucketEFBF52D3", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "StreamingJob30SparkUIBucketEFBF52D3", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, { "Action": [ "s3:GetBucket*", @@ -677,6 +771,11 @@ ] } }, + "StreamingJob30SparkUIBucketEFBF52D3": { + "Type": "AWS::S3::Bucket", + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, "StreamingJob30E005FBEB": { "Type": "AWS::Glue::Job", "Properties": { @@ -698,6 +797,19 @@ }, "DefaultArguments": { "--job-language": "python", + "--enable-spark-ui": "true", + "--spark-event-logs-path": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "StreamingJob30SparkUIBucketEFBF52D3" + }, + "/" + ] + ] + }, "arg1": "value1", "arg2": "value2" }, @@ -878,7 +990,8 @@ "s3://", { "Ref": "EtlJob40SparkUIBucket02F50B0D" - } + }, + "/" ] ] }, @@ -983,6 +1096,43 @@ "Properties": { "PolicyDocument": { "Statement": [ + { + "Action": [ + "s3:Abort*", + "s3:DeleteObject*", + "s3:GetBucket*", + "s3:GetObject*", + "s3:List*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "StreamingJob40SparkUIBucketA97E24C6", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "StreamingJob40SparkUIBucketA97E24C6", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, { "Action": [ "s3:GetBucket*", @@ -1035,6 +1185,11 @@ ] } }, + "StreamingJob40SparkUIBucketA97E24C6": { + "Type": "AWS::S3::Bucket", + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, "StreamingJob40E284A782": { "Type": "AWS::Glue::Job", "Properties": { @@ -1056,6 +1211,19 @@ }, "DefaultArguments": { "--job-language": "python", + "--enable-spark-ui": "true", + "--spark-event-logs-path": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "StreamingJob40SparkUIBucketA97E24C6" + }, + "/" + ] + ] + }, "arg1": "value1", "arg2": "value2" }, diff --git a/packages/@aws-cdk/aws-glue-alpha/test/integ.job.js.snapshot/manifest.json b/packages/@aws-cdk/aws-glue-alpha/test/integ.job.js.snapshot/manifest.json index e0a0106226e31..1d980ef4d57bb 100644 --- a/packages/@aws-cdk/aws-glue-alpha/test/integ.job.js.snapshot/manifest.json +++ b/packages/@aws-cdk/aws-glue-alpha/test/integ.job.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}/4595f761e767da2650d387dfba7358d632f1da57744033b6023677b8bc150f15.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/dd8261e4900491c4aaaec8bcd31c57b1f30085f1d579f19089bd55a4bdb023b7.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -76,6 +76,12 @@ "data": "StreamingJob20ServiceRoleDefaultPolicy3CF74B2D" } ], + "/aws-glue-job/StreamingJob2.0/SparkUIBucket/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "StreamingJob20SparkUIBucket92EF3706" + } + ], "/aws-glue-job/StreamingJob2.0/Resource": [ { "type": "aws:cdk:logicalId", @@ -124,6 +130,12 @@ "data": "StreamingJob30ServiceRoleDefaultPolicy0C15D010" } ], + "/aws-glue-job/StreamingJob3.0/SparkUIBucket/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "StreamingJob30SparkUIBucketEFBF52D3" + } + ], "/aws-glue-job/StreamingJob3.0/Resource": [ { "type": "aws:cdk:logicalId", @@ -172,6 +184,12 @@ "data": "StreamingJob40ServiceRoleDefaultPolicy0667C434" } ], + "/aws-glue-job/StreamingJob4.0/SparkUIBucket/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "StreamingJob40SparkUIBucketA97E24C6" + } + ], "/aws-glue-job/StreamingJob4.0/Resource": [ { "type": "aws:cdk:logicalId", diff --git a/packages/@aws-cdk/aws-glue-alpha/test/integ.job.js.snapshot/tree.json b/packages/@aws-cdk/aws-glue-alpha/test/integ.job.js.snapshot/tree.json index 6d88a4cb8fd4a..91a8fd605214a 100644 --- a/packages/@aws-cdk/aws-glue-alpha/test/integ.job.js.snapshot/tree.json +++ b/packages/@aws-cdk/aws-glue-alpha/test/integ.job.js.snapshot/tree.json @@ -264,7 +264,8 @@ "s3://", { "Ref": "EtlJob20SparkUIBucketFD07FBD8" - } + }, + "/" ] ] }, @@ -429,6 +430,43 @@ "aws:cdk:cloudformation:props": { "policyDocument": { "Statement": [ + { + "Action": [ + "s3:Abort*", + "s3:DeleteObject*", + "s3:GetBucket*", + "s3:GetObject*", + "s3:List*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "StreamingJob20SparkUIBucket92EF3706", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "StreamingJob20SparkUIBucket92EF3706", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, { "Action": [ "s3:GetBucket*", @@ -498,6 +536,28 @@ "version": "0.0.0" } }, + "SparkUIBucket": { + "id": "SparkUIBucket", + "path": "aws-glue-job/StreamingJob2.0/SparkUIBucket", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-glue-job/StreamingJob2.0/SparkUIBucket/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::S3::Bucket", + "aws:cdk:cloudformation:props": {} + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.CfnBucket", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.Bucket", + "version": "0.0.0" + } + }, "Resource": { "id": "Resource", "path": "aws-glue-job/StreamingJob2.0/Resource", @@ -522,6 +582,19 @@ }, "defaultArguments": { "--job-language": "python", + "--enable-spark-ui": "true", + "--spark-event-logs-path": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "StreamingJob20SparkUIBucket92EF3706" + }, + "/" + ] + ] + }, "arg1": "value1", "arg2": "value2" }, @@ -781,7 +854,8 @@ "s3://", { "Ref": "EtlJob30SparkUIBucket9D789346" - } + }, + "/" ] ] }, @@ -946,6 +1020,43 @@ "aws:cdk:cloudformation:props": { "policyDocument": { "Statement": [ + { + "Action": [ + "s3:Abort*", + "s3:DeleteObject*", + "s3:GetBucket*", + "s3:GetObject*", + "s3:List*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "StreamingJob30SparkUIBucketEFBF52D3", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "StreamingJob30SparkUIBucketEFBF52D3", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, { "Action": [ "s3:GetBucket*", @@ -1015,6 +1126,28 @@ "version": "0.0.0" } }, + "SparkUIBucket": { + "id": "SparkUIBucket", + "path": "aws-glue-job/StreamingJob3.0/SparkUIBucket", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-glue-job/StreamingJob3.0/SparkUIBucket/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::S3::Bucket", + "aws:cdk:cloudformation:props": {} + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.CfnBucket", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.Bucket", + "version": "0.0.0" + } + }, "Resource": { "id": "Resource", "path": "aws-glue-job/StreamingJob3.0/Resource", @@ -1039,6 +1172,19 @@ }, "defaultArguments": { "--job-language": "python", + "--enable-spark-ui": "true", + "--spark-event-logs-path": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "StreamingJob30SparkUIBucketEFBF52D3" + }, + "/" + ] + ] + }, "arg1": "value1", "arg2": "value2" }, @@ -1298,7 +1444,8 @@ "s3://", { "Ref": "EtlJob40SparkUIBucket02F50B0D" - } + }, + "/" ] ] }, @@ -1463,6 +1610,43 @@ "aws:cdk:cloudformation:props": { "policyDocument": { "Statement": [ + { + "Action": [ + "s3:Abort*", + "s3:DeleteObject*", + "s3:GetBucket*", + "s3:GetObject*", + "s3:List*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "StreamingJob40SparkUIBucketA97E24C6", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "StreamingJob40SparkUIBucketA97E24C6", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, { "Action": [ "s3:GetBucket*", @@ -1532,6 +1716,28 @@ "version": "0.0.0" } }, + "SparkUIBucket": { + "id": "SparkUIBucket", + "path": "aws-glue-job/StreamingJob4.0/SparkUIBucket", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-glue-job/StreamingJob4.0/SparkUIBucket/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::S3::Bucket", + "aws:cdk:cloudformation:props": {} + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.CfnBucket", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.Bucket", + "version": "0.0.0" + } + }, "Resource": { "id": "Resource", "path": "aws-glue-job/StreamingJob4.0/Resource", @@ -1556,6 +1762,19 @@ }, "defaultArguments": { "--job-language": "python", + "--enable-spark-ui": "true", + "--spark-event-logs-path": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "StreamingJob40SparkUIBucketA97E24C6" + }, + "/" + ] + ] + }, "arg1": "value1", "arg2": "value2" }, diff --git a/packages/@aws-cdk/aws-glue-alpha/test/integ.job.ts b/packages/@aws-cdk/aws-glue-alpha/test/integ.job.ts index 7b405d53ca490..91bf9bab212fc 100644 --- a/packages/@aws-cdk/aws-glue-alpha/test/integ.job.ts +++ b/packages/@aws-cdk/aws-glue-alpha/test/integ.job.ts @@ -71,6 +71,9 @@ const moduleUtils = glue.Code.fromAsset(path.join(__dirname, 'module', 'utils.zi arg1: 'value1', arg2: 'value2', }, + sparkUI: { + enabled: true, + }, tags: { key: 'value', }, diff --git a/packages/@aws-cdk/aws-glue-alpha/test/job.test.ts b/packages/@aws-cdk/aws-glue-alpha/test/job.test.ts index 48e395a3fedc9..0e6db582c1d71 100644 --- a/packages/@aws-cdk/aws-glue-alpha/test/job.test.ts +++ b/packages/@aws-cdk/aws-glue-alpha/test/job.test.ts @@ -542,6 +542,7 @@ describe('Job', () => { { Ref: 'JobSparkUIBucket8E6A0139', }, + '/', ], ], }, @@ -625,7 +626,7 @@ describe('Job', () => { Template.fromStack(stack).hasResourceProperties('AWS::Glue::Job', { DefaultArguments: { '--enable-spark-ui': 'true', - '--spark-event-logs-path': `s3://${sparkUIBucketName}`, + '--spark-event-logs-path': `s3://${sparkUIBucketName}/`, }, }); }); diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/README.md b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/README.md index 2e99aeb3ba0d0..72d5f5cefae4d 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/README.md +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/README.md @@ -46,7 +46,7 @@ const flinkApp = new flink.Application(this, 'Application', { }, }, // ... - runtime: flink.Runtime.FLINK_1_15, + runtime: flink.Runtime.FLINK_1_18, code: flink.ApplicationCode.fromBucket(bucket, 'my-app.jar'), }); ``` @@ -59,7 +59,7 @@ snapshotting, monitoring, and parallelism. declare const bucket: s3.Bucket; const flinkApp = new flink.Application(this, 'Application', { code: flink.ApplicationCode.fromBucket(bucket, 'my-app.jar'), - runtime: flink.Runtime.FLINK_1_15, + runtime: flink.Runtime.FLINK_1_18, checkpointingEnabled: true, // default is true checkpointInterval: Duration.seconds(30), // default is 1 minute minPauseBetweenCheckpoints: Duration.seconds(10), // default is 5 seconds @@ -80,7 +80,7 @@ declare const bucket: s3.Bucket; declare const vpc: ec2.Vpc; const flinkApp = new flink.Application(this, 'Application', { code: flink.ApplicationCode.fromBucket(bucket, 'my-app.jar'), - runtime: flink.Runtime.FLINK_1_15, + runtime: flink.Runtime.FLINK_1_18, vpc, }); ``` diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/lib/types.ts b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/lib/types.ts index 1aba548d23655..9dbca48bcdeaa 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/lib/types.ts +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/lib/types.ts @@ -66,6 +66,9 @@ export class Runtime { /** Flink Version 1.15 */ public static readonly FLINK_1_15 = Runtime.of('FLINK-1_15'); + /** Flink Version 1.18 */ + public static readonly FLINK_1_18 = Runtime.of('FLINK-1_18'); + /** Create a new Runtime with with an arbitrary Flink version string */ public static of(value: string) { return new Runtime(value); diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/FlinkAppCodeFromBucketTest.assets.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/FlinkAppCodeFromBucketTest.assets.json index 2f89f7471b45f..512342f1e3cfc 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/FlinkAppCodeFromBucketTest.assets.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/FlinkAppCodeFromBucketTest.assets.json @@ -1,5 +1,5 @@ { - "version": "20.0.0", + "version": "36.0.0", "files": { "8be9e0b5f53d41e9a3b1d51c9572c65f24f8170a7188d0ed57fb7d571de4d577": { "source": { @@ -14,7 +14,7 @@ } } }, - "29b6babcdc09f7011be31e1014e8b548e391623adf4fedfc5ba3e9dace27c968": { + "1bb9d6dca32d920930c65ef51caf5b52af031dde0168b5e26ba8384c5a3d0eba": { "source": { "path": "FlinkAppCodeFromBucketTest.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "29b6babcdc09f7011be31e1014e8b548e391623adf4fedfc5ba3e9dace27c968.json", + "objectKey": "1bb9d6dca32d920930c65ef51caf5b52af031dde0168b5e26ba8384c5a3d0eba.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-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/FlinkAppCodeFromBucketTest.template.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/FlinkAppCodeFromBucketTest.template.json index f7ddc667eef74..7468c5f86bde2 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/FlinkAppCodeFromBucketTest.template.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/FlinkAppCodeFromBucketTest.template.json @@ -147,13 +147,6 @@ "AppF1B96344": { "Type": "AWS::KinesisAnalyticsV2::Application", "Properties": { - "RuntimeEnvironment": "FLINK-1_11", - "ServiceExecutionRole": { - "Fn::GetAtt": [ - "AppRole1AF9B530", - "Arn" - ] - }, "ApplicationConfiguration": { "ApplicationCodeConfiguration": { "CodeContent": { @@ -181,6 +174,13 @@ "ApplicationSnapshotConfiguration": { "SnapshotsEnabled": true } + }, + "RuntimeEnvironment": "FLINK-1_18", + "ServiceExecutionRole": { + "Fn::GetAtt": [ + "AppRole1AF9B530", + "Arn" + ] } }, "DependsOn": [ diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/cdk.out b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/cdk.out index 588d7b269d34f..1f0068d32659a 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/cdk.out +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/cdk.out @@ -1 +1 @@ -{"version":"20.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-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/integ.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/integ.json index be512e1edfc06..6cd66b9ac9426 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/integ.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/integ.json @@ -1,5 +1,5 @@ { - "version": "20.0.0", + "version": "36.0.0", "testCases": { "integ.application-code-from-bucket.lit": { "stacks": [ diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/manifest.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/manifest.json index b40ea914d9237..b2e8fdbe2bedb 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/manifest.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/manifest.json @@ -1,12 +1,6 @@ { - "version": "20.0.0", + "version": "36.0.0", "artifacts": { - "Tree": { - "type": "cdk:tree", - "properties": { - "file": "tree.json" - } - }, "FlinkAppCodeFromBucketTest.assets": { "type": "cdk:asset-manifest", "properties": { @@ -20,10 +14,11 @@ "environment": "aws://unknown-account/unknown-region", "properties": { "templateFile": "FlinkAppCodeFromBucketTest.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}/29b6babcdc09f7011be31e1014e8b548e391623adf4fedfc5ba3e9dace27c968.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1bb9d6dca32d920930c65ef51caf5b52af031dde0168b5e26ba8384c5a3d0eba.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -54,7 +49,10 @@ "/FlinkAppCodeFromBucketTest/App/Resource": [ { "type": "aws:cdk:logicalId", - "data": "AppF1B96344" + "data": "AppF1B96344", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_REPLACE" + ] } ], "/FlinkAppCodeFromBucketTest/App/LogGroup/Resource": [ @@ -72,7 +70,10 @@ "/FlinkAppCodeFromBucketTest/App/LoggingOption": [ { "type": "aws:cdk:logicalId", - "data": "AppLoggingOption75BE995E" + "data": "AppLoggingOption75BE995E", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_REPLACE" + ] } ], "/FlinkAppCodeFromBucketTest/BootstrapVersion": [ @@ -89,6 +90,12 @@ ] }, "displayName": "FlinkAppCodeFromBucketTest" + }, + "Tree": { + "type": "cdk:tree", + "properties": { + "file": "tree.json" + } } } } \ No newline at end of file diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/tree.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/tree.json index 319633a311c2f..380a8cfac2686 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/tree.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.js.snapshot/tree.json @@ -4,14 +4,6 @@ "id": "App", "path": "", "children": { - "Tree": { - "id": "Tree", - "path": "Tree", - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.1.85" - } - }, "FlinkAppCodeFromBucketTest": { "id": "FlinkAppCodeFromBucketTest", "path": "FlinkAppCodeFromBucketTest", @@ -24,21 +16,21 @@ "id": "Stage", "path": "FlinkAppCodeFromBucketTest/CodeAsset/Stage", "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.1.85" + "fqn": "aws-cdk-lib.AssetStaging", + "version": "0.0.0" } }, "AssetBucket": { "id": "AssetBucket", "path": "FlinkAppCodeFromBucketTest/CodeAsset/AssetBucket", "constructInfo": { - "fqn": "@aws-cdk/aws-s3.BucketBase", + "fqn": "aws-cdk-lib.aws_s3.BucketBase", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-s3-assets.Asset", + "fqn": "aws-cdk-lib.aws_s3_assets.Asset", "version": "0.0.0" } }, @@ -50,6 +42,14 @@ "id": "Role", "path": "FlinkAppCodeFromBucketTest/App/Role", "children": { + "ImportRole": { + "id": "ImportRole", + "path": "FlinkAppCodeFromBucketTest/App/Role/ImportRole", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, "Resource": { "id": "Resource", "path": "FlinkAppCodeFromBucketTest/App/Role/Resource", @@ -71,7 +71,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.CfnRole", + "fqn": "aws-cdk-lib.aws_iam.CfnRole", "version": "0.0.0" } }, @@ -210,19 +210,19 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.CfnPolicy", + "fqn": "aws-cdk-lib.aws_iam.CfnPolicy", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.Policy", + "fqn": "aws-cdk-lib.aws_iam.Policy", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.Role", + "fqn": "aws-cdk-lib.aws_iam.Role", "version": "0.0.0" } }, @@ -232,13 +232,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::KinesisAnalyticsV2::Application", "aws:cdk:cloudformation:props": { - "runtimeEnvironment": "FLINK-1_11", - "serviceExecutionRole": { - "Fn::GetAtt": [ - "AppRole1AF9B530", - "Arn" - ] - }, "applicationConfiguration": { "applicationCodeConfiguration": { "codeContent": { @@ -266,11 +259,18 @@ "applicationSnapshotConfiguration": { "snapshotsEnabled": true } + }, + "runtimeEnvironment": "FLINK-1_18", + "serviceExecutionRole": { + "Fn::GetAtt": [ + "AppRole1AF9B530", + "Arn" + ] } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-kinesisanalytics.CfnApplicationV2", + "fqn": "aws-cdk-lib.aws_kinesisanalytics.CfnApplicationV2", "version": "0.0.0" } }, @@ -288,13 +288,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-logs.CfnLogGroup", + "fqn": "aws-cdk-lib.aws_logs.CfnLogGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-logs.LogGroup", + "fqn": "aws-cdk-lib.aws_logs.LogGroup", "version": "0.0.0" } }, @@ -314,13 +314,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-logs.CfnLogStream", + "fqn": "aws-cdk-lib.aws_logs.CfnLogStream", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-logs.LogStream", + "fqn": "aws-cdk-lib.aws_logs.LogStream", "version": "0.0.0" } }, @@ -365,26 +365,50 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-kinesisanalytics.CfnApplicationCloudWatchLoggingOptionV2", + "fqn": "aws-cdk-lib.aws_kinesisanalytics.CfnApplicationCloudWatchLoggingOptionV2", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-kinesisanalytics-flink.Application", + "fqn": "@aws-cdk/aws-kinesisanalytics-flink-alpha.Application", + "version": "0.0.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "FlinkAppCodeFromBucketTest/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "FlinkAppCodeFromBucketTest/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", "version": "0.0.0" } } }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + }, + "Tree": { + "id": "Tree", + "path": "Tree", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.1.85" + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.1.85" + "fqn": "aws-cdk-lib.App", + "version": "0.0.0" } } } \ No newline at end of file diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.ts b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.ts index 0d4e39a9bbb92..56fd6661b1aeb 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.ts +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application-code-from-bucket.lit.ts @@ -15,7 +15,7 @@ const fileKey = asset.s3ObjectKey; ///! show new flink.Application(stack, 'App', { code: flink.ApplicationCode.fromBucket(bucket, fileKey), - runtime: flink.Runtime.FLINK_1_11, + runtime: flink.Runtime.FLINK_1_18, }); ///! hide diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/FlinkAppTest.assets.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/FlinkAppTest.assets.json index 17c8b2e10bc8e..03b680411ffa8 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/FlinkAppTest.assets.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/FlinkAppTest.assets.json @@ -1,5 +1,5 @@ { - "version": "20.0.0", + "version": "36.0.0", "files": { "8be9e0b5f53d41e9a3b1d51c9572c65f24f8170a7188d0ed57fb7d571de4d577": { "source": { @@ -14,7 +14,7 @@ } } }, - "b87c9ca115369ddec2218b39dd812556831e2abf35fe09315930aa407c1e0d69": { + "48dd04d48b618ae68b67e5b8cf8896c84fb9c39997deb11669ac2a4a5205a3db": { "source": { "path": "FlinkAppTest.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "b87c9ca115369ddec2218b39dd812556831e2abf35fe09315930aa407c1e0d69.json", + "objectKey": "48dd04d48b618ae68b67e5b8cf8896c84fb9c39997deb11669ac2a4a5205a3db.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-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/FlinkAppTest.template.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/FlinkAppTest.template.json index b9c3e751700b7..641754e087da3 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/FlinkAppTest.template.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/FlinkAppTest.template.json @@ -147,13 +147,6 @@ "AppF1B96344": { "Type": "AWS::KinesisAnalyticsV2::Application", "Properties": { - "RuntimeEnvironment": "FLINK-1_11", - "ServiceExecutionRole": { - "Fn::GetAtt": [ - "AppRole1AF9B530", - "Arn" - ] - }, "ApplicationConfiguration": { "ApplicationCodeConfiguration": { "CodeContent": { @@ -181,6 +174,13 @@ "ApplicationSnapshotConfiguration": { "SnapshotsEnabled": true } + }, + "RuntimeEnvironment": "FLINK-1_18", + "ServiceExecutionRole": { + "Fn::GetAtt": [ + "AppRole1AF9B530", + "Arn" + ] } }, "DependsOn": [ @@ -249,7 +249,6 @@ "Type": "AWS::CloudWatch::Alarm", "Properties": { "ComparisonOperator": "GreaterThanOrEqualToThreshold", - "EvaluationPeriods": 1, "Dimensions": [ { "Name": "Application", @@ -258,6 +257,7 @@ } } ], + "EvaluationPeriods": 1, "MetricName": "fullRestarts", "Namespace": "AWS/KinesisAnalytics", "Period": 300, diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/cdk.out b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/cdk.out index 588d7b269d34f..1f0068d32659a 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/cdk.out +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/cdk.out @@ -1 +1 @@ -{"version":"20.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-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/integ.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/integ.json index 32ac179f44050..a0d917194b8c1 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/integ.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/integ.json @@ -1,5 +1,5 @@ { - "version": "20.0.0", + "version": "36.0.0", "testCases": { "integ.application.lit": { "stacks": [ diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/manifest.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/manifest.json index 32b7bca79faca..fec94be2b694b 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/manifest.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/manifest.json @@ -1,12 +1,6 @@ { - "version": "20.0.0", + "version": "36.0.0", "artifacts": { - "Tree": { - "type": "cdk:tree", - "properties": { - "file": "tree.json" - } - }, "FlinkAppTest.assets": { "type": "cdk:asset-manifest", "properties": { @@ -20,10 +14,11 @@ "environment": "aws://unknown-account/unknown-region", "properties": { "templateFile": "FlinkAppTest.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}/b87c9ca115369ddec2218b39dd812556831e2abf35fe09315930aa407c1e0d69.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/48dd04d48b618ae68b67e5b8cf8896c84fb9c39997deb11669ac2a4a5205a3db.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -54,7 +49,10 @@ "/FlinkAppTest/App/Resource": [ { "type": "aws:cdk:logicalId", - "data": "AppF1B96344" + "data": "AppF1B96344", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_REPLACE" + ] } ], "/FlinkAppTest/App/LogGroup/Resource": [ @@ -72,7 +70,10 @@ "/FlinkAppTest/App/LoggingOption": [ { "type": "aws:cdk:logicalId", - "data": "AppLoggingOption75BE995E" + "data": "AppLoggingOption75BE995E", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_REPLACE" + ] } ], "/FlinkAppTest/Alarm/Resource": [ @@ -95,6 +96,12 @@ ] }, "displayName": "FlinkAppTest" + }, + "Tree": { + "type": "cdk:tree", + "properties": { + "file": "tree.json" + } } } } \ No newline at end of file diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/tree.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/tree.json index dfec5e50659ad..dbea05c652f46 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/tree.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.js.snapshot/tree.json @@ -4,14 +4,6 @@ "id": "App", "path": "", "children": { - "Tree": { - "id": "Tree", - "path": "Tree", - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.1.85" - } - }, "FlinkAppTest": { "id": "FlinkAppTest", "path": "FlinkAppTest", @@ -24,6 +16,14 @@ "id": "Role", "path": "FlinkAppTest/App/Role", "children": { + "ImportRole": { + "id": "ImportRole", + "path": "FlinkAppTest/App/Role/ImportRole", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, "Resource": { "id": "Resource", "path": "FlinkAppTest/App/Role/Resource", @@ -45,7 +45,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.CfnRole", + "fqn": "aws-cdk-lib.aws_iam.CfnRole", "version": "0.0.0" } }, @@ -184,19 +184,19 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.CfnPolicy", + "fqn": "aws-cdk-lib.aws_iam.CfnPolicy", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.Policy", + "fqn": "aws-cdk-lib.aws_iam.Policy", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.Role", + "fqn": "aws-cdk-lib.aws_iam.Role", "version": "0.0.0" } }, @@ -208,21 +208,21 @@ "id": "Stage", "path": "FlinkAppTest/App/Code/Stage", "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.1.85" + "fqn": "aws-cdk-lib.AssetStaging", + "version": "0.0.0" } }, "AssetBucket": { "id": "AssetBucket", "path": "FlinkAppTest/App/Code/AssetBucket", "constructInfo": { - "fqn": "@aws-cdk/aws-s3.BucketBase", + "fqn": "aws-cdk-lib.aws_s3.BucketBase", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-s3-assets.Asset", + "fqn": "aws-cdk-lib.aws_s3_assets.Asset", "version": "0.0.0" } }, @@ -232,13 +232,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::KinesisAnalyticsV2::Application", "aws:cdk:cloudformation:props": { - "runtimeEnvironment": "FLINK-1_11", - "serviceExecutionRole": { - "Fn::GetAtt": [ - "AppRole1AF9B530", - "Arn" - ] - }, "applicationConfiguration": { "applicationCodeConfiguration": { "codeContent": { @@ -266,11 +259,18 @@ "applicationSnapshotConfiguration": { "snapshotsEnabled": true } + }, + "runtimeEnvironment": "FLINK-1_18", + "serviceExecutionRole": { + "Fn::GetAtt": [ + "AppRole1AF9B530", + "Arn" + ] } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-kinesisanalytics.CfnApplicationV2", + "fqn": "aws-cdk-lib.aws_kinesisanalytics.CfnApplicationV2", "version": "0.0.0" } }, @@ -288,13 +288,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-logs.CfnLogGroup", + "fqn": "aws-cdk-lib.aws_logs.CfnLogGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-logs.LogGroup", + "fqn": "aws-cdk-lib.aws_logs.LogGroup", "version": "0.0.0" } }, @@ -314,13 +314,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-logs.CfnLogStream", + "fqn": "aws-cdk-lib.aws_logs.CfnLogStream", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-logs.LogStream", + "fqn": "aws-cdk-lib.aws_logs.LogStream", "version": "0.0.0" } }, @@ -365,13 +365,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-kinesisanalytics.CfnApplicationCloudWatchLoggingOptionV2", + "fqn": "aws-cdk-lib.aws_kinesisanalytics.CfnApplicationCloudWatchLoggingOptionV2", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-kinesisanalytics-flink.Application", + "fqn": "@aws-cdk/aws-kinesisanalytics-flink-alpha.Application", "version": "0.0.0" } }, @@ -386,7 +386,6 @@ "aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm", "aws:cdk:cloudformation:props": { "comparisonOperator": "GreaterThanOrEqualToThreshold", - "evaluationPeriods": 1, "dimensions": [ { "name": "Application", @@ -395,6 +394,7 @@ } } ], + "evaluationPeriods": 1, "metricName": "fullRestarts", "namespace": "AWS/KinesisAnalytics", "period": 300, @@ -403,26 +403,50 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-cloudwatch.CfnAlarm", + "fqn": "aws-cdk-lib.aws_cloudwatch.CfnAlarm", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-cloudwatch.Alarm", + "fqn": "aws-cdk-lib.aws_cloudwatch.Alarm", + "version": "0.0.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "FlinkAppTest/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "FlinkAppTest/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", "version": "0.0.0" } } }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + }, + "Tree": { + "id": "Tree", + "path": "Tree", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.1.85" + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.1.85" + "fqn": "aws-cdk-lib.App", + "version": "0.0.0" } } } \ No newline at end of file diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.ts b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.ts index 3d927517dde6f..4503fb68b607d 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.ts +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.application.lit.ts @@ -9,7 +9,7 @@ const stack = new core.Stack(app, 'FlinkAppTest'); const flinkApp = new flink.Application(stack, 'App', { code: flink.ApplicationCode.fromAsset(path.join(__dirname, 'code-asset')), - runtime: flink.Runtime.FLINK_1_11, + runtime: flink.Runtime.FLINK_1_18, }); new cloudwatch.Alarm(stack, 'Alarm', { diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/FlinkAppTest.assets.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/FlinkAppTest.assets.json index 705074e025672..40297376933cc 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/FlinkAppTest.assets.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/FlinkAppTest.assets.json @@ -1,5 +1,5 @@ { - "version": "30.1.0", + "version": "36.0.0", "files": { "8be9e0b5f53d41e9a3b1d51c9572c65f24f8170a7188d0ed57fb7d571de4d577": { "source": { @@ -14,7 +14,7 @@ } } }, - "e6269b086e65eaed552c57d90811a297037300cdaf9403468e748cc1d22dc668": { + "fe970e1e860316af219eaa6f9d8b7a5281e9d62e630b8cdeb13c470780eb8edb": { "source": { "path": "FlinkAppTest.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "e6269b086e65eaed552c57d90811a297037300cdaf9403468e748cc1d22dc668.json", + "objectKey": "fe970e1e860316af219eaa6f9d8b7a5281e9d62e630b8cdeb13c470780eb8edb.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-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/FlinkAppTest.template.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/FlinkAppTest.template.json index b2ab7859cf42a..761924982d37b 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/FlinkAppTest.template.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/FlinkAppTest.template.json @@ -18,9 +18,6 @@ "VPCPublicSubnet1SubnetB4246D30": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "AvailabilityZone": { "Fn::Select": [ 0, @@ -44,21 +41,24 @@ "Key": "Name", "Value": "FlinkAppTest/VPC/PublicSubnet1" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPublicSubnet1RouteTableFEE4B781": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "Tags": [ { "Key": "Name", "Value": "FlinkAppTest/VPC/PublicSubnet1" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPublicSubnet1RouteTableAssociation0B0896DC": { @@ -75,12 +75,12 @@ "VPCPublicSubnet1DefaultRoute91CEF279": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VPCPublicSubnet1RouteTableFEE4B781" - }, "DestinationCidrBlock": "0.0.0.0/0", "GatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "RouteTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" } }, "DependsOn": [ @@ -102,15 +102,15 @@ "VPCPublicSubnet1NATGatewayE0556630": { "Type": "AWS::EC2::NatGateway", "Properties": { - "SubnetId": { - "Ref": "VPCPublicSubnet1SubnetB4246D30" - }, "AllocationId": { "Fn::GetAtt": [ "VPCPublicSubnet1EIP6AD938E8", "AllocationId" ] }, + "SubnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + }, "Tags": [ { "Key": "Name", @@ -126,9 +126,6 @@ "VPCPublicSubnet2Subnet74179F39": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "AvailabilityZone": { "Fn::Select": [ 1, @@ -152,21 +149,24 @@ "Key": "Name", "Value": "FlinkAppTest/VPC/PublicSubnet2" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPublicSubnet2RouteTable6F1A15F1": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "Tags": [ { "Key": "Name", "Value": "FlinkAppTest/VPC/PublicSubnet2" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPublicSubnet2RouteTableAssociation5A808732": { @@ -183,12 +183,12 @@ "VPCPublicSubnet2DefaultRouteB7481BBA": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" - }, "DestinationCidrBlock": "0.0.0.0/0", "GatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "RouteTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" } }, "DependsOn": [ @@ -210,15 +210,15 @@ "VPCPublicSubnet2NATGateway3C070193": { "Type": "AWS::EC2::NatGateway", "Properties": { - "SubnetId": { - "Ref": "VPCPublicSubnet2Subnet74179F39" - }, "AllocationId": { "Fn::GetAtt": [ "VPCPublicSubnet2EIP4947BC00", "AllocationId" ] }, + "SubnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + }, "Tags": [ { "Key": "Name", @@ -234,9 +234,6 @@ "VPCPrivateSubnet1Subnet8BCA10E0": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "AvailabilityZone": { "Fn::Select": [ 0, @@ -260,21 +257,24 @@ "Key": "Name", "Value": "FlinkAppTest/VPC/PrivateSubnet1" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPrivateSubnet1RouteTableBE8A6027": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "Tags": [ { "Key": "Name", "Value": "FlinkAppTest/VPC/PrivateSubnet1" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPrivateSubnet1RouteTableAssociation347902D1": { @@ -291,21 +291,18 @@ "VPCPrivateSubnet1DefaultRouteAE1D6490": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" - }, "DestinationCidrBlock": "0.0.0.0/0", "NatGatewayId": { "Ref": "VPCPublicSubnet1NATGatewayE0556630" + }, + "RouteTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" } } }, "VPCPrivateSubnet2SubnetCFCDAA7A": { "Type": "AWS::EC2::Subnet", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "AvailabilityZone": { "Fn::Select": [ 1, @@ -329,21 +326,24 @@ "Key": "Name", "Value": "FlinkAppTest/VPC/PrivateSubnet2" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPrivateSubnet2RouteTable0A19E10E": { "Type": "AWS::EC2::RouteTable", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "Tags": [ { "Key": "Name", "Value": "FlinkAppTest/VPC/PrivateSubnet2" } - ] + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "VPCPrivateSubnet2RouteTableAssociation0C73D413": { @@ -360,12 +360,12 @@ "VPCPrivateSubnet2DefaultRouteF4F5CFD2": { "Type": "AWS::EC2::Route", "Properties": { - "RouteTableId": { - "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" - }, "DestinationCidrBlock": "0.0.0.0/0", "NatGatewayId": { "Ref": "VPCPublicSubnet2NATGateway3C070193" + }, + "RouteTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" } } }, @@ -383,11 +383,11 @@ "VPCVPCGW99B986DC": { "Type": "AWS::EC2::VPCGatewayAttachment", "Properties": { - "VpcId": { - "Ref": "VPCB9E5F0B4" - }, "InternetGatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "VpcId": { + "Ref": "VPCB9E5F0B4" } } }, @@ -564,13 +564,6 @@ "AppF1B96344": { "Type": "AWS::KinesisAnalyticsV2::Application", "Properties": { - "RuntimeEnvironment": "FLINK-1_15", - "ServiceExecutionRole": { - "Fn::GetAtt": [ - "AppRole1AF9B530", - "Arn" - ] - }, "ApplicationConfiguration": { "ApplicationCodeConfiguration": { "CodeContent": { @@ -618,6 +611,13 @@ ] } ] + }, + "RuntimeEnvironment": "FLINK-1_18", + "ServiceExecutionRole": { + "Fn::GetAtt": [ + "AppRole1AF9B530", + "Arn" + ] } }, "DependsOn": [ diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/VpcTestDefaultTestDeployAssert06A9965C.assets.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/VpcTestDefaultTestDeployAssert06A9965C.assets.json index e03abd70970a9..596589ad37adf 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/VpcTestDefaultTestDeployAssert06A9965C.assets.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/VpcTestDefaultTestDeployAssert06A9965C.assets.json @@ -1,5 +1,5 @@ { - "version": "30.1.0", + "version": "36.0.0", "files": { "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { "source": { diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/cdk.out b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/cdk.out index b72fef144f05c..1f0068d32659a 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/cdk.out +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/cdk.out @@ -1 +1 @@ -{"version":"30.1.0"} \ No newline at end of file +{"version":"36.0.0"} \ No newline at end of file diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/integ.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/integ.json index dbb80adf83c08..4f8e84e312a8c 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/integ.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/integ.json @@ -1,5 +1,5 @@ { - "version": "30.1.0", + "version": "36.0.0", "testCases": { "VpcTest/DefaultTest": { "stacks": [ diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/manifest.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/manifest.json index 741b85af43cf8..2007d0265edd2 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/manifest.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/manifest.json @@ -1,5 +1,5 @@ { - "version": "30.1.0", + "version": "36.0.0", "artifacts": { "FlinkAppTest.assets": { "type": "cdk:asset-manifest", @@ -14,10 +14,11 @@ "environment": "aws://unknown-account/unknown-region", "properties": { "templateFile": "FlinkAppTest.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}/e6269b086e65eaed552c57d90811a297037300cdaf9403468e748cc1d22dc668.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe970e1e860316af219eaa6f9d8b7a5281e9d62e630b8cdeb13c470780eb8edb.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -192,7 +193,10 @@ "/FlinkAppTest/App/Resource": [ { "type": "aws:cdk:logicalId", - "data": "AppF1B96344" + "data": "AppF1B96344", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_REPLACE" + ] } ], "/FlinkAppTest/App/LogGroup/Resource": [ @@ -210,7 +214,10 @@ "/FlinkAppTest/App/LoggingOption": [ { "type": "aws:cdk:logicalId", - "data": "AppLoggingOption75BE995E" + "data": "AppLoggingOption75BE995E", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_REPLACE" + ] } ], "/FlinkAppTest/BootstrapVersion": [ @@ -241,6 +248,7 @@ "environment": "aws://unknown-account/unknown-region", "properties": { "templateFile": "VpcTestDefaultTestDeployAssert06A9965C.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/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/tree.json b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/tree.json index 7890359dcfe66..b5c9ccfc97f1a 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/tree.json +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.js.snapshot/tree.json @@ -31,7 +31,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnVPC", + "fqn": "aws-cdk-lib.aws_ec2.CfnVPC", "version": "0.0.0" } }, @@ -45,9 +45,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "availabilityZone": { "Fn::Select": [ 0, @@ -71,11 +68,14 @@ "key": "Name", "value": "FlinkAppTest/VPC/PublicSubnet1" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -83,7 +83,7 @@ "id": "Acl", "path": "FlinkAppTest/VPC/PublicSubnet1/Acl", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -93,19 +93,19 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "tags": [ { "key": "Name", "value": "FlinkAppTest/VPC/PublicSubnet1" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -124,7 +124,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -134,17 +134,17 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VPCPublicSubnet1RouteTableFEE4B781" - }, "destinationCidrBlock": "0.0.0.0/0", "gatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "routeTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } }, @@ -164,7 +164,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnEIP", + "fqn": "aws-cdk-lib.aws_ec2.CfnEIP", "version": "0.0.0" } }, @@ -174,15 +174,15 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", "aws:cdk:cloudformation:props": { - "subnetId": { - "Ref": "VPCPublicSubnet1SubnetB4246D30" - }, "allocationId": { "Fn::GetAtt": [ "VPCPublicSubnet1EIP6AD938E8", "AllocationId" ] }, + "subnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + }, "tags": [ { "key": "Name", @@ -192,13 +192,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnNatGateway", + "fqn": "aws-cdk-lib.aws_ec2.CfnNatGateway", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PublicSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PublicSubnet", "version": "0.0.0" } }, @@ -212,9 +212,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "availabilityZone": { "Fn::Select": [ 1, @@ -238,11 +235,14 @@ "key": "Name", "value": "FlinkAppTest/VPC/PublicSubnet2" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -250,7 +250,7 @@ "id": "Acl", "path": "FlinkAppTest/VPC/PublicSubnet2/Acl", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -260,19 +260,19 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "tags": [ { "key": "Name", "value": "FlinkAppTest/VPC/PublicSubnet2" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -291,7 +291,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -301,17 +301,17 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" - }, "destinationCidrBlock": "0.0.0.0/0", "gatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "routeTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } }, @@ -331,7 +331,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnEIP", + "fqn": "aws-cdk-lib.aws_ec2.CfnEIP", "version": "0.0.0" } }, @@ -341,15 +341,15 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", "aws:cdk:cloudformation:props": { - "subnetId": { - "Ref": "VPCPublicSubnet2Subnet74179F39" - }, "allocationId": { "Fn::GetAtt": [ "VPCPublicSubnet2EIP4947BC00", "AllocationId" ] }, + "subnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + }, "tags": [ { "key": "Name", @@ -359,13 +359,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnNatGateway", + "fqn": "aws-cdk-lib.aws_ec2.CfnNatGateway", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PublicSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PublicSubnet", "version": "0.0.0" } }, @@ -379,9 +379,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "availabilityZone": { "Fn::Select": [ 0, @@ -405,11 +402,14 @@ "key": "Name", "value": "FlinkAppTest/VPC/PrivateSubnet1" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -417,7 +417,7 @@ "id": "Acl", "path": "FlinkAppTest/VPC/PrivateSubnet1/Acl", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -427,19 +427,19 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "tags": [ { "key": "Name", "value": "FlinkAppTest/VPC/PrivateSubnet1" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -458,7 +458,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -468,23 +468,23 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" - }, "destinationCidrBlock": "0.0.0.0/0", "natGatewayId": { "Ref": "VPCPublicSubnet1NATGatewayE0556630" + }, + "routeTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PrivateSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet", "version": "0.0.0" } }, @@ -498,9 +498,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "availabilityZone": { "Fn::Select": [ 1, @@ -524,11 +521,14 @@ "key": "Name", "value": "FlinkAppTest/VPC/PrivateSubnet2" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnet", "version": "0.0.0" } }, @@ -536,7 +536,7 @@ "id": "Acl", "path": "FlinkAppTest/VPC/PrivateSubnet2/Acl", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -546,19 +546,19 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "tags": [ { "key": "Name", "value": "FlinkAppTest/VPC/PrivateSubnet2" } - ] + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "fqn": "aws-cdk-lib.aws_ec2.CfnRouteTable", "version": "0.0.0" } }, @@ -577,7 +577,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSubnetRouteTableAssociation", + "fqn": "aws-cdk-lib.aws_ec2.CfnSubnetRouteTableAssociation", "version": "0.0.0" } }, @@ -587,23 +587,23 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::Route", "aws:cdk:cloudformation:props": { - "routeTableId": { - "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" - }, "destinationCidrBlock": "0.0.0.0/0", "natGatewayId": { "Ref": "VPCPublicSubnet2NATGateway3C070193" + }, + "routeTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "fqn": "aws-cdk-lib.aws_ec2.CfnRoute", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.PrivateSubnet", + "fqn": "aws-cdk-lib.aws_ec2.PrivateSubnet", "version": "0.0.0" } }, @@ -622,7 +622,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnInternetGateway", + "fqn": "aws-cdk-lib.aws_ec2.CfnInternetGateway", "version": "0.0.0" } }, @@ -632,22 +632,22 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::EC2::VPCGatewayAttachment", "aws:cdk:cloudformation:props": { - "vpcId": { - "Ref": "VPCB9E5F0B4" - }, "internetGatewayId": { "Ref": "VPCIGWB7E252D3" + }, + "vpcId": { + "Ref": "VPCB9E5F0B4" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnVPCGatewayAttachment", + "fqn": "aws-cdk-lib.aws_ec2.CfnVPCGatewayAttachment", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.Vpc", + "fqn": "aws-cdk-lib.aws_ec2.Vpc", "version": "0.0.0" } }, @@ -663,7 +663,7 @@ "id": "ImportRole", "path": "FlinkAppTest/App/Role/ImportRole", "constructInfo": { - "fqn": "@aws-cdk/core.Resource", + "fqn": "aws-cdk-lib.Resource", "version": "0.0.0" } }, @@ -688,7 +688,7 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.CfnRole", + "fqn": "aws-cdk-lib.aws_iam.CfnRole", "version": "0.0.0" } }, @@ -837,19 +837,19 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.CfnPolicy", + "fqn": "aws-cdk-lib.aws_iam.CfnPolicy", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.Policy", + "fqn": "aws-cdk-lib.aws_iam.Policy", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-iam.Role", + "fqn": "aws-cdk-lib.aws_iam.Role", "version": "0.0.0" } }, @@ -861,7 +861,7 @@ "id": "Stage", "path": "FlinkAppTest/App/Code/Stage", "constructInfo": { - "fqn": "@aws-cdk/core.AssetStaging", + "fqn": "aws-cdk-lib.AssetStaging", "version": "0.0.0" } }, @@ -869,13 +869,13 @@ "id": "AssetBucket", "path": "FlinkAppTest/App/Code/AssetBucket", "constructInfo": { - "fqn": "@aws-cdk/aws-s3.BucketBase", + "fqn": "aws-cdk-lib.aws_s3.BucketBase", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-s3-assets.Asset", + "fqn": "aws-cdk-lib.aws_s3_assets.Asset", "version": "0.0.0" } }, @@ -903,13 +903,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.CfnSecurityGroup", + "fqn": "aws-cdk-lib.aws_ec2.CfnSecurityGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-ec2.SecurityGroup", + "fqn": "aws-cdk-lib.aws_ec2.SecurityGroup", "version": "0.0.0" } }, @@ -919,13 +919,6 @@ "attributes": { "aws:cdk:cloudformation:type": "AWS::KinesisAnalyticsV2::Application", "aws:cdk:cloudformation:props": { - "runtimeEnvironment": "FLINK-1_15", - "serviceExecutionRole": { - "Fn::GetAtt": [ - "AppRole1AF9B530", - "Arn" - ] - }, "applicationConfiguration": { "applicationCodeConfiguration": { "codeContent": { @@ -973,11 +966,18 @@ ] } ] + }, + "runtimeEnvironment": "FLINK-1_18", + "serviceExecutionRole": { + "Fn::GetAtt": [ + "AppRole1AF9B530", + "Arn" + ] } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-kinesisanalytics.CfnApplicationV2", + "fqn": "aws-cdk-lib.aws_kinesisanalytics.CfnApplicationV2", "version": "0.0.0" } }, @@ -995,13 +995,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-logs.CfnLogGroup", + "fqn": "aws-cdk-lib.aws_logs.CfnLogGroup", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-logs.LogGroup", + "fqn": "aws-cdk-lib.aws_logs.LogGroup", "version": "0.0.0" } }, @@ -1021,13 +1021,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-logs.CfnLogStream", + "fqn": "aws-cdk-lib.aws_logs.CfnLogStream", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-logs.LogStream", + "fqn": "aws-cdk-lib.aws_logs.LogStream", "version": "0.0.0" } }, @@ -1072,13 +1072,13 @@ } }, "constructInfo": { - "fqn": "@aws-cdk/aws-kinesisanalytics.CfnApplicationCloudWatchLoggingOptionV2", + "fqn": "aws-cdk-lib.aws_kinesisanalytics.CfnApplicationCloudWatchLoggingOptionV2", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/aws-kinesisanalytics-flink.Application", + "fqn": "@aws-cdk/aws-kinesisanalytics-flink-alpha.Application", "version": "0.0.0" } }, @@ -1086,7 +1086,7 @@ "id": "BootstrapVersion", "path": "FlinkAppTest/BootstrapVersion", "constructInfo": { - "fqn": "@aws-cdk/core.CfnParameter", + "fqn": "aws-cdk-lib.CfnParameter", "version": "0.0.0" } }, @@ -1094,13 +1094,13 @@ "id": "CheckBootstrapVersion", "path": "FlinkAppTest/CheckBootstrapVersion", "constructInfo": { - "fqn": "@aws-cdk/core.CfnRule", + "fqn": "aws-cdk-lib.CfnRule", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/core.Stack", + "fqn": "aws-cdk-lib.Stack", "version": "0.0.0" } }, @@ -1117,7 +1117,7 @@ "path": "VpcTest/DefaultTest/Default", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.1.264" + "version": "10.3.0" } }, "DeployAssert": { @@ -1128,7 +1128,7 @@ "id": "BootstrapVersion", "path": "VpcTest/DefaultTest/DeployAssert/BootstrapVersion", "constructInfo": { - "fqn": "@aws-cdk/core.CfnParameter", + "fqn": "aws-cdk-lib.CfnParameter", "version": "0.0.0" } }, @@ -1136,25 +1136,25 @@ "id": "CheckBootstrapVersion", "path": "VpcTest/DefaultTest/DeployAssert/CheckBootstrapVersion", "constructInfo": { - "fqn": "@aws-cdk/core.CfnRule", + "fqn": "aws-cdk-lib.CfnRule", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/core.Stack", + "fqn": "aws-cdk-lib.Stack", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/integ-tests.IntegTestCase", + "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase", "version": "0.0.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/integ-tests.IntegTest", + "fqn": "@aws-cdk/integ-tests-alpha.IntegTest", "version": "0.0.0" } }, @@ -1163,12 +1163,12 @@ "path": "Tree", "constructInfo": { "fqn": "constructs.Construct", - "version": "10.1.264" + "version": "10.3.0" } } }, "constructInfo": { - "fqn": "@aws-cdk/core.App", + "fqn": "aws-cdk-lib.App", "version": "0.0.0" } } diff --git a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.ts b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.ts index b16cba9d239bd..a2c78ba68f1db 100644 --- a/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.ts +++ b/packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/test/integ.vpc-application.ts @@ -10,7 +10,7 @@ const vpc = new ec2.Vpc(stack, 'VPC', { restrictDefaultSecurityGroup: false }); new flink.Application(stack, 'App', { code: flink.ApplicationCode.fromAsset(path.join(__dirname, 'code-asset')), - runtime: flink.Runtime.FLINK_1_15, + runtime: flink.Runtime.FLINK_1_18, vpc, }); diff --git a/packages/@aws-cdk/aws-lambda-go-alpha/README.md b/packages/@aws-cdk/aws-lambda-go-alpha/README.md index 40ffa67b0dfd7..aa812502227b3 100644 --- a/packages/@aws-cdk/aws-lambda-go-alpha/README.md +++ b/packages/@aws-cdk/aws-lambda-go-alpha/README.md @@ -29,7 +29,7 @@ Define a `GoFunction`: ```ts new go.GoFunction(this, 'handler', { - entry: 'app/cmd/api', + entry: 'lambda-app/cmd/api', }); ``` @@ -37,7 +37,7 @@ By default, if `entry` points to a directory, then the construct will assume the Let's look at an example Go project: ```bash -lamda-app +lambda-app ├── cmd │   └── api │   └── main.go @@ -244,7 +244,7 @@ all of your functions if anything changes, then `AssetHashType.SOURCE` will prob For example, if my app looked like this: ```bash -lamda-app +lambda-app ├── cmd │   └── api │   └── main.go @@ -263,7 +263,7 @@ should trigger a new deploy, I could specify `AssetHashType.SOURCE`. On the other hand, if I had a project that deployed multiple Lambda functions, for example: ```bash -lamda-app +lambda-app ├── cmd │   ├── api │   │   └── main.go diff --git a/packages/@aws-cdk/aws-msk-alpha/README.md b/packages/@aws-cdk/aws-msk-alpha/README.md index 81b74be3aa279..8155f8829a756 100644 --- a/packages/@aws-cdk/aws-msk-alpha/README.md +++ b/packages/@aws-cdk/aws-msk-alpha/README.md @@ -217,7 +217,8 @@ You can configure an MSK cluster storage mode using the `storageMode` property. Tiered storage is a low-cost storage tier for Amazon MSK that scales to virtually unlimited storage, making it cost-effective to build streaming data applications. -> Visit [Tiered storage](https://docs.aws.amazon.com/msk/latest/developerguide/msk-tiered-storage.html) for more details. +> Visit [Tiered storage](https://docs.aws.amazon.com/msk/latest/developerguide/msk-tiered-storage.html) +to see the list of compatible Kafka versions and for more details. ```ts declare const vpc: ec2.Vpc; @@ -225,7 +226,7 @@ declare const bucket: s3.IBucket; const cluster = new msk.Cluster(this, 'cluster', { clusterName: 'myCluster', - kafkaVersion: msk.KafkaVersion.V2_8_2_TIERED, + kafkaVersion: msk.KafkaVersion.V3_6_0, vpc, storageMode: msk.StorageMode.TIERED, }); diff --git a/packages/@aws-cdk/aws-msk-alpha/lib/cluster-version.ts b/packages/@aws-cdk/aws-msk-alpha/lib/cluster-version.ts index 405c0c6ee0ecc..b3c5277018b1c 100644 --- a/packages/@aws-cdk/aws-msk-alpha/lib/cluster-version.ts +++ b/packages/@aws-cdk/aws-msk-alpha/lib/cluster-version.ts @@ -11,6 +11,15 @@ export class KafkaVersion { */ public static readonly V1_1_1 = KafkaVersion.of('1.1.1'); + /** + * **Deprecated by Amazon MSK. You can't create a Kafka cluster with a deprecated version.** + * + * Kafka version 2.1.0 + * + * @deprecated use the latest runtime instead + */ + public static readonly V2_1_0 = KafkaVersion.of('2.1.0'); + /** * Kafka version 2.2.1 */ @@ -21,6 +30,15 @@ export class KafkaVersion { */ public static readonly V2_3_1 = KafkaVersion.of('2.3.1'); + /** + * **Deprecated by Amazon MSK. You can't create a Kafka cluster with a deprecated version.** + * + * Kafka version 2.4.1 + * + * @deprecated use the latest runtime instead + */ + public static readonly V2_4_1 = KafkaVersion.of('2.4.1'); + /** * Kafka version 2.4.1 */ @@ -111,6 +129,11 @@ export class KafkaVersion { */ public static readonly V3_5_1 = KafkaVersion.of('3.5.1'); + /** + * Kafka version 3.6.0 + */ + public static readonly V3_6_0 = KafkaVersion.of('3.6.0'); + /** * Custom cluster version * @param version custom version number @@ -119,6 +142,16 @@ export class KafkaVersion { return new KafkaVersion(version); } + /** + * List of Kafka versions that support tiered storage + * + * @see https://docs.aws.amazon.com/msk/latest/developerguide/msk-tiered-storage.html#msk-tiered-storage-requirements + */ + private static readonly TIERED_STORAGE_COMPATIBLE_VERSIONS = [ + KafkaVersion.V2_8_2_TIERED, + KafkaVersion.V3_6_0, + ].map(({ version }) => version); + /** * * @param version cluster version number @@ -129,6 +162,6 @@ export class KafkaVersion { * Checks if the cluster version supports tiered storage mode. */ public isTieredStorageCompatible() { - return this.version.endsWith('.tiered'); + return KafkaVersion.TIERED_STORAGE_COMPATIBLE_VERSIONS.includes(this.version); }; } diff --git a/packages/@aws-cdk/aws-msk-alpha/test/cluster.test.ts b/packages/@aws-cdk/aws-msk-alpha/test/cluster.test.ts index babbb235b40a3..7c4bd6a10f4ec 100644 --- a/packages/@aws-cdk/aws-msk-alpha/test/cluster.test.ts +++ b/packages/@aws-cdk/aws-msk-alpha/test/cluster.test.ts @@ -790,6 +790,12 @@ describe('MSK Cluster', () => { describe('created with storage mode', () => { describe('with tiered storage mode', () => { + test('version.isTieredStorageCompatible', () => { + expect(msk.KafkaVersion.V2_8_2_TIERED.isTieredStorageCompatible()).toBeTruthy(); + expect(msk.KafkaVersion.V3_5_1.isTieredStorageCompatible()).toBeFalsy(); + expect(msk.KafkaVersion.V3_6_0.isTieredStorageCompatible()).toBeTruthy(); + }); + test('create a cluster with tiered storage mode', () => { new msk.Cluster(stack, 'Cluster', { clusterName: 'cluster', @@ -797,7 +803,7 @@ describe('MSK Cluster', () => { kafkaVersion: msk.KafkaVersion.V2_8_2_TIERED, vpc, storageMode: msk.StorageMode.TIERED, - }), + }); Template.fromStack(stack).hasResourceProperties('AWS::MSK::Cluster', { StorageMode: 'TIERED', }); diff --git a/packages/@aws-cdk/cloud-assembly-schema/package.json b/packages/@aws-cdk/cloud-assembly-schema/package.json index b42ab501c7689..7151b4fc45469 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.7", + "@types/semver": "^7.5.8", "aws-cdk-lib": "0.0.0", "jest": "^29.7.0", "mock-fs": "^4.14.0", diff --git a/packages/@aws-cdk/cloudformation-diff/lib/diff-template.ts b/packages/@aws-cdk/cloudformation-diff/lib/diff-template.ts index 1902d757f486d..76f7f161f892d 100644 --- a/packages/@aws-cdk/cloudformation-diff/lib/diff-template.ts +++ b/packages/@aws-cdk/cloudformation-diff/lib/diff-template.ts @@ -37,7 +37,6 @@ const DIFF_HANDLERS: HandlerRegistry = { * @param currentTemplate the current state of the stack. * @param newTemplate the target state of the stack. * @param changeSet the change set for this stack. - * @param isImport if the stack is importing resources (a migrate stack). * * @returns a +types.TemplateDiff+ object that represents the changes that will happen if * a stack which current state is described by +currentTemplate+ is updated with @@ -54,17 +53,16 @@ export function fullDiff( normalize(newTemplate); const theDiff = diffTemplate(currentTemplate, newTemplate); if (changeSet) { - filterFalsePositivies(theDiff, changeSet); + filterFalsePositives(theDiff, changeSet); addImportInformation(theDiff, changeSet); - } - if (isImport) { - addImportInformation(theDiff); + } else if (isImport) { + makeAllResourceChangesImports(theDiff); } return theDiff; } -function diffTemplate( +export function diffTemplate( currentTemplate: { [key: string]: any }, newTemplate: { [key: string]: any }, ): types.TemplateDiff { @@ -214,28 +212,22 @@ function deepCopy(x: any): any { return x; } -/** - * Sets import flag to true for resource imports. - * When the changeset parameter is not set, the stack is a new migrate stack, - * so all resource changes are imports. - */ -function addImportInformation(diff: types.TemplateDiff, changeSet?: CloudFormation.DescribeChangeSetOutput) { - if (changeSet) { - const imports = findResourceImports(changeSet); - diff.resources.forEachDifference((logicalId: string, change: types.ResourceDifference) => { - if (imports.includes(logicalId)) { - change.isImport = true; - } - }); - } else { - diff.resources.forEachDifference((logicalId: string, change: types.ResourceDifference) => { - logicalId; // dont know how to get past warning that this variable is not used. +function addImportInformation(diff: types.TemplateDiff, changeSet: CloudFormation.DescribeChangeSetOutput) { + const imports = findResourceImports(changeSet); + diff.resources.forEachDifference((logicalId: string, change: types.ResourceDifference) => { + if (imports.includes(logicalId)) { change.isImport = true; - }); - } + } + }); +} + +function makeAllResourceChangesImports(diff: types.TemplateDiff) { + diff.resources.forEachDifference((_logicalId: string, change: types.ResourceDifference) => { + change.isImport = true; + }); } -function filterFalsePositivies(diff: types.TemplateDiff, changeSet: CloudFormation.DescribeChangeSetOutput) { +function filterFalsePositives(diff: types.TemplateDiff, changeSet: CloudFormation.DescribeChangeSetOutput) { const replacements = findResourceReplacements(changeSet); diff.resources.forEachDifference((logicalId: string, change: types.ResourceDifference) => { if (change.resourceType.includes('AWS::Serverless')) { diff --git a/packages/@aws-cdk/cloudformation-diff/lib/format.ts b/packages/@aws-cdk/cloudformation-diff/lib/format.ts index 7935f774fd468..724af468c2f45 100644 --- a/packages/@aws-cdk/cloudformation-diff/lib/format.ts +++ b/packages/@aws-cdk/cloudformation-diff/lib/format.ts @@ -30,7 +30,7 @@ export interface FormatStream extends NodeJS.WritableStream { export function formatDifferences( stream: FormatStream, templateDiff: TemplateDiff, - logicalToPathMap: { [logicalId: string]: string } = { }, + logicalToPathMap: { [logicalId: string]: string } = {}, context: number = 3) { const formatter = new Formatter(stream, logicalToPathMap, templateDiff, context); @@ -59,7 +59,7 @@ export function formatDifferences( export function formatSecurityChanges( stream: NodeJS.WritableStream, templateDiff: TemplateDiff, - logicalToPathMap: {[logicalId: string]: string} = {}, + logicalToPathMap: { [logicalId: string]: string } = {}, context?: number) { const formatter = new Formatter(stream, logicalToPathMap, templateDiff, context); @@ -254,7 +254,7 @@ class Formatter { const oldStr = JSON.stringify(oldObject, null, 2); const newStr = JSON.stringify(newObject, null, 2); const diff = _diffStrings(oldStr, newStr, this.context); - for (let i = 0 ; i < diff.length ; i++) { + for (let i = 0; i < diff.length; i++) { this.print('%s %s %s', linePrefix, i === 0 ? '└─' : ' ', diff[i]); } } else { @@ -466,7 +466,7 @@ function _diffStrings(oldStr: string, newStr: string, context: number): string[] function _findIndent(lines: string[]): number { let indent = Number.MAX_SAFE_INTEGER; for (const line of lines) { - for (let i = 1 ; i < line.length ; i++) { + for (let i = 1; i < line.length; i++) { if (line.charAt(i) !== ' ') { indent = indent > i - 1 ? i - 1 : indent; break; diff --git a/packages/@aws-cdk/cloudformation-diff/package.json b/packages/@aws-cdk/cloudformation-diff/package.json index 95d9fd32188df..0173072e3a2b9 100644 --- a/packages/@aws-cdk/cloudformation-diff/package.json +++ b/packages/@aws-cdk/cloudformation-diff/package.json @@ -23,8 +23,9 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-cdk/aws-service-spec": "^0.0.53", - "@aws-cdk/service-spec-types": "^0.0.53", + "@aws-cdk/aws-service-spec": "^0.0.56", + "@aws-cdk/service-spec-types": "^0.0.56", + "aws-sdk": "2.1583.0", "chalk": "^4", "diff": "^5.2.0", "fast-deep-equal": "^3.1.3", @@ -36,9 +37,8 @@ "@aws-cdk/pkglint": "0.0.0", "@types/jest": "^29.5.12", "@types/string-width": "^4.0.1", - "fast-check": "^3.15.1", + "fast-check": "^3.16.0", "jest": "^29.7.0", - "aws-sdk": "2.1562.0", "ts-jest": "^29.1.2" }, "repository": { diff --git a/packages/@aws-cdk/custom-resource-handlers/lib/aws-route53/cross-account-zone-delegation-handler/index.ts b/packages/@aws-cdk/custom-resource-handlers/lib/aws-route53/cross-account-zone-delegation-handler/index.ts index c39fd03b0926f..833ec0cb5d3b9 100644 --- a/packages/@aws-cdk/custom-resource-handlers/lib/aws-route53/cross-account-zone-delegation-handler/index.ts +++ b/packages/@aws-cdk/custom-resource-handlers/lib/aws-route53/cross-account-zone-delegation-handler/index.ts @@ -111,6 +111,8 @@ function route53Region(region: string) { 'us-gov': 'us-gov-west-1', 'us-iso': 'us-iso-east-1', 'us-isob': 'us-isob-east-1', + 'eu-isoe': 'eu-isoe-west-1', + 'us-isof': 'us-isof-south-1', }; for (const [prefix, mainRegion] of Object.entries(partitions)) { diff --git a/packages/@aws-cdk/custom-resource-handlers/package.json b/packages/@aws-cdk/custom-resource-handlers/package.json index 8a46b7105b04a..239036f772e03 100644 --- a/packages/@aws-cdk/custom-resource-handlers/package.json +++ b/packages/@aws-cdk/custom-resource-handlers/package.json @@ -45,17 +45,17 @@ "@aws-sdk/client-eks": "3.421.0", "@aws-sdk/client-sts": "3.421.0", "@aws-sdk/node-http-handler": "^3.370.0", - "@smithy/util-stream": "^2.1.1", + "@smithy/util-stream": "^2.2.0", "@types/jest": "^29.5.12", - "aws-sdk-client-mock": "^3.0.1", - "aws-sdk-client-mock-jest": "^3.0.1", + "aws-sdk-client-mock": "^3.1.0", + "aws-sdk-client-mock-jest": "^3.1.0", "aws-sdk-mock": "5.8.0", "@cdklabs/typewriter": "^0.0.3", "jest": "^29.7.0", "sinon": "^9.2.4", - "nock": "^13.5.3", + "nock": "^13.5.4", "fs-extra": "^11.2.0", - "esbuild": "^0.20.1" + "esbuild": "^0.20.2" }, "dependencies": { "@aws-cdk/asset-node-proxy-agent-v6": "^2.0.1", @@ -64,7 +64,7 @@ "@aws-sdk/client-ecr": "3.421.0", "@aws-sdk/client-s3": "3.421.0", "@aws-sdk/client-cloudwatch": "3.421.0", - "aws-sdk": "^2.1562.0" + "aws-sdk": "^2.1583.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 86bb8373fa803..0c39405d31b7e 100644 --- a/packages/@aws-cdk/cx-api/FEATURE_FLAGS.md +++ b/packages/@aws-cdk/cx-api/FEATURE_FLAGS.md @@ -65,7 +65,8 @@ Flags come in three types: | [@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. | 2.127.0 | (default) | -| [@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2](#aws-cdkaws-codepipelinedefaultpipelinetypetov2) | Enables Pipeline to set the default pipeline type to V2. | V2NEXT | (default) | +| [@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2](#aws-cdkaws-codepipelinedefaultpipelinetypetov2) | Enables Pipeline to set the default pipeline type to V2. | 2.133.0 | (default) | +| [@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope](#aws-cdkaws-kmsreducecrossaccountregionpolicyscope) | When enabled, IAM Policy created from KMS key grant will reduce the resource scope to this key only. | V2NEXT | (fix) | @@ -122,7 +123,8 @@ The following json shows the current recommended set of flags, as `cdk init` wou "@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource": true, "@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction": true, "@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse": true, - "@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2": true + "@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2": true, + "@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope": true } } ``` @@ -1244,9 +1246,23 @@ construct, the construct automatically defaults the value of this property to `P | Since | Default | Recommended | | ----- | ----- | ----- | | (not in v1) | | | -| V2NEXT | `false` | `true` | +| 2.133.0 | `false` | `true` | **Compatibility with old behavior:** Pass `pipelineType: PipelineType.V1` to `Pipeline` construct to restore the previous behavior. +### @aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope + +*When enabled, IAM Policy created from KMS key grant will reduce the resource scope to this key only.* (fix) + +When this feature flag is enabled and calling KMS key grant method, the created IAM policy will reduce the resource scope from +'*' to this specific granting KMS key. + + +| Since | Default | Recommended | +| ----- | ----- | ----- | +| (not in v1) | | | +| V2NEXT | `false` | `true` | + + diff --git a/packages/@aws-cdk/cx-api/package.json b/packages/@aws-cdk/cx-api/package.json index c7d11f2fd3c61..3cdf6049e5d58 100644 --- a/packages/@aws-cdk/cx-api/package.json +++ b/packages/@aws-cdk/cx-api/package.json @@ -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.7", + "@types/semver": "^7.5.8", "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 20c28f40d9f3a..f9fadf948c68f 100644 --- a/packages/@aws-cdk/integ-runner/THIRD_PARTY_LICENSES +++ b/packages/@aws-cdk/integ-runner/THIRD_PARTY_LICENSES @@ -100,10 +100,11 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE ---------------- -** binary-extensions@2.2.0 - https://www.npmjs.com/package/binary-extensions/v/2.2.0 | MIT +** binary-extensions@2.3.0 - https://www.npmjs.com/package/binary-extensions/v/2.3.0 | MIT MIT License -Copyright (c) 2019 Sindre Sorhus (https://sindresorhus.com), Paul Miller (https://paulmillr.com) +Copyright (c) Sindre Sorhus (https://sindresorhus.com) +Copyright (c) Paul Miller (https://paulmillr.com) 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: diff --git a/packages/@aws-cdk/integ-runner/package.json b/packages/@aws-cdk/integ-runner/package.json index 1d04992fca455..73faa034d8012 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.53", + "@aws-cdk/aws-service-spec": "^0.0.56", "cdk-assets": "0.0.0", "@aws-cdk/cdk-cli-wrapper": "0.0.0", "aws-cdk": "0.0.0", diff --git a/packages/@aws-cdk/integ-tests-alpha/README.md b/packages/@aws-cdk/integ-tests-alpha/README.md index 9ca5a2416d016..ff04b1cb477c1 100644 --- a/packages/@aws-cdk/integ-tests-alpha/README.md +++ b/packages/@aws-cdk/integ-tests-alpha/README.md @@ -439,6 +439,28 @@ invoke.expect(ExpectedResult.objectLike({ })); ``` +The above example will by default create a CloudWatch log group that's never +expired. If you want to configure it with custom log retention days, you need +to specify the `logRetention` property. + +```ts +import * as logs from 'aws-cdk-lib/aws-logs'; + +declare const lambdaFunction: lambda.IFunction; +declare const app: App; + +const stack = new Stack(app, 'cdk-integ-lambda-bundling'); + +const integ = new IntegTest(app, 'IntegTest', { + testCases: [stack], +}); + +const invoke = integ.assertions.invokeFunction({ + functionName: lambdaFunction.functionName, + logRetention: logs.RetentionDays.ONE_WEEK, +}); +``` + #### Make an AWS API Call In this example there is a StepFunctions state machine that is executed diff --git a/packages/@aws-cdk/integ-tests-alpha/lib/assertions/providers/provider.ts b/packages/@aws-cdk/integ-tests-alpha/lib/assertions/providers/provider.ts index 1fe737965c841..36d268ad37379 100644 --- a/packages/@aws-cdk/integ-tests-alpha/lib/assertions/providers/provider.ts +++ b/packages/@aws-cdk/integ-tests-alpha/lib/assertions/providers/provider.ts @@ -2,6 +2,7 @@ import * as path from 'path'; import { Duration, CfnResource, AssetStaging, Stack, FileAssetPackaging, Token, Lazy, Reference } from 'aws-cdk-lib/core'; import { Construct } from 'constructs'; import { awsSdkToIamAction } from 'aws-cdk-lib/custom-resources/lib/helpers-internal'; +import { RetentionDays } from 'aws-cdk-lib/aws-logs'; /** * Properties for a lambda function provider @@ -13,6 +14,13 @@ export interface LambdaFunctionProviderProps { * @default index.handler */ readonly handler?: string; + + /** + * How long, in days, the log contents will be retained. + * + * @default - no retention days specified + */ + readonly logRetention?: RetentionDays; } /** @@ -75,18 +83,34 @@ class LambdaFunctionProvider extends Construct { }, }); + const functionProperties: any = { + Runtime: 'nodejs18.x', + Code: { + S3Bucket: asset.bucketName, + S3Key: asset.objectKey, + }, + Timeout: Duration.minutes(2).toSeconds(), + Handler: props?.handler ?? 'index.handler', + Role: role.getAtt('Arn'), + }; + + if (props?.logRetention) { + const logGroup = new CfnResource(this, 'LogGroup', { + type: 'AWS::Logs::LogGroup', + properties: { + LogGroupName: `/aws/lambda/${id}`, + RetentionInDays: props.logRetention, + }, + }); + + functionProperties.LoggingConfig = { + LogGroup: logGroup.ref, + }; + } + const handler = new CfnResource(this, 'Handler', { type: 'AWS::Lambda::Function', - properties: { - Runtime: 'nodejs18.x', - Code: { - S3Bucket: asset.bucketName, - S3Key: asset.objectKey, - }, - Timeout: Duration.minutes(2).toSeconds(), - Handler: props?.handler ?? 'index.handler', - Role: role.getAtt('Arn'), - }, + properties: functionProperties, }); this.serviceToken = Token.asString(handler.getAtt('Arn')); @@ -131,6 +155,7 @@ class SingletonFunction extends Construct { return new LambdaFunctionProvider(Stack.of(this), constructName, { handler: props.handler, + logRetention: props.logRetention, }); } @@ -204,6 +229,7 @@ export class AssertionsProvider extends Construct { this.handler = new SingletonFunction(this, 'AssertionsProvider', { handler: props?.handler, uuid: props?.uuid ?? '1488541a-7b23-4664-81b6-9b4408076b81', + logRetention: props?.logRetention, }); this.handlerRoleArn = this.handler.lambdaFunction.roleArn; diff --git a/packages/@aws-cdk/integ-tests-alpha/lib/assertions/sdk.ts b/packages/@aws-cdk/integ-tests-alpha/lib/assertions/sdk.ts index d437f54c5ddbf..6a535f8fb2fac 100644 --- a/packages/@aws-cdk/integ-tests-alpha/lib/assertions/sdk.ts +++ b/packages/@aws-cdk/integ-tests-alpha/lib/assertions/sdk.ts @@ -4,6 +4,7 @@ import { ApiCallBase, IApiCall } from './api-call-base'; import { ExpectedResult } from './common'; import { AssertionsProvider, SDK_RESOURCE_TYPE_PREFIX } from './providers'; import { WaiterStateMachine, WaiterStateMachineOptions } from './waiter-state-machine'; +import { RetentionDays } from 'aws-cdk-lib/aws-logs'; /** * Options to perform an AWS JavaScript V2 API call @@ -75,7 +76,9 @@ export class AwsApiCall extends ApiCallBase { constructor(scope: Construct, id: string, props: AwsApiCallProps) { super(scope, id); - this.provider = new AssertionsProvider(this, 'SdkProvider'); + this.provider = new AssertionsProvider(this, 'SdkProvider', { + logRetention: props.parameters?.RetentionDays, + }); this.provider.addPolicyStatementFromSdkCall(props.service, props.api); this.name = `${props.service}${props.api}`; this.api = props.api; @@ -210,6 +213,13 @@ export interface LambdaInvokeFunctionProps { */ readonly logType?: LogType; + /** + * How long, in days, the log contents will be retained. + * + * @default - no retention days specified + */ + readonly logRetention?: RetentionDays; + /** * Payload to send as part of the invoke * @@ -234,6 +244,7 @@ export class LambdaInvokeFunction extends AwsApiCall { InvocationType: props.invocationType, LogType: props.logType, Payload: props.payload, + RetentionDays: props.logRetention, }, }); diff --git a/packages/@aws-cdk/integ-tests-alpha/package.json b/packages/@aws-cdk/integ-tests-alpha/package.json index 72f6952a9d9cb..e61433c0adb3e 100644 --- a/packages/@aws-cdk/integ-tests-alpha/package.json +++ b/packages/@aws-cdk/integ-tests-alpha/package.json @@ -76,10 +76,10 @@ "@aws-sdk/types": "^3.433.0", "@types/fs-extra": "^9.0.13", "@types/jest": "^29.5.12", - "aws-sdk-client-mock": "^3.0.1", - "aws-sdk-client-mock-jest": "^3.0.1", + "aws-sdk-client-mock": "^3.1.0", + "aws-sdk-client-mock-jest": "^3.1.0", "jest": "^29.7.0", - "nock": "^13.5.3", + "nock": "^13.5.4", "sinon": "^9.2.4", "aws-cdk-lib": "0.0.0", "node-fetch": "^2.7.0", diff --git a/packages/@aws-cdk/integ-tests-alpha/test/assertions/providers/provider.test.ts b/packages/@aws-cdk/integ-tests-alpha/test/assertions/providers/provider.test.ts index 823c297c8923b..03643d2c9779d 100644 --- a/packages/@aws-cdk/integ-tests-alpha/test/assertions/providers/provider.test.ts +++ b/packages/@aws-cdk/integ-tests-alpha/test/assertions/providers/provider.test.ts @@ -1,6 +1,7 @@ import { Template } from 'aws-cdk-lib/assertions'; import { Stack } from 'aws-cdk-lib'; import { AssertionsProvider } from '../../../lib/assertions'; +import { RetentionDays } from 'aws-cdk-lib/aws-logs'; let stack: Stack; beforeEach(() => { @@ -20,6 +21,25 @@ describe('AssertionProvider', () => { }); }); + test('default', () => { + // WHEN + const provider = new AssertionsProvider(stack, 'AssertionProvider', { + logRetention: RetentionDays.ONE_WEEK, + }); + + // THEN + const template = Template.fromStack(stack); + template.resourceCountIs('AWS::Logs::LogGroup', 1); + expect(stack.resolve(provider.serviceToken)).toEqual({ 'Fn::GetAtt': ['SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F', 'Arn'] }); + Template.fromStack(stack).hasResourceProperties('AWS::Lambda::Function', { + Handler: 'index.handler', + Timeout: 120, + }); + template.hasResourceProperties('AWS::Logs::LogGroup', { + RetentionInDays: 7, + }); + }); + describe('addPolicyStatementForSdkCall', () => { test('default', () => { // WHEN diff --git a/packages/@aws-cdk/sdk-v2-to-v3-adapter/package.json b/packages/@aws-cdk/sdk-v2-to-v3-adapter/package.json index 6762bce1b6177..cf8756f303318 100644 --- a/packages/@aws-cdk/sdk-v2-to-v3-adapter/package.json +++ b/packages/@aws-cdk/sdk-v2-to-v3-adapter/package.json @@ -28,7 +28,7 @@ "@aws-cdk/cdk-build-tools": "0.0.0", "@aws-cdk/pkglint": "0.0.0", "@aws-sdk/client-s3": "3.421.0", - "@smithy/types": "^2.9.1", + "@smithy/types": "^2.12.0", "@types/jest": "^29.5.12", "jest": "^29.7.0" }, diff --git a/packages/aws-cdk-lib/aws-appsync/README.md b/packages/aws-cdk-lib/aws-appsync/README.md index 119b139ff0721..c001eb67b121a 100644 --- a/packages/aws-cdk-lib/aws-appsync/README.md +++ b/packages/aws-cdk-lib/aws-appsync/README.md @@ -757,6 +757,33 @@ const api = new appsync.GraphqlApi(this, 'api', { }); ``` +## Query Depth Limits + +By default, queries are able to process an unlimited amount of nested levels. +Limiting queries to a specified amount of nested levels has potential implications for the performance and flexibility of your project. + +```ts +const api = new appsync.GraphqlApi(this, 'api', { + name: 'LimitQueryDepths', + definition: appsync.Definition.fromFile(path.join(__dirname, 'appsync.schema.graphql')), + queryDepthLimit: 2, +}); +``` + +## Resolver Count Limits + +You can control how many resolvers each query can process. +By default, each query can process up to 10000 resolvers. +By setting a limit AppSync will not handle any resolvers past a certain number limit. + +```ts +const api = new appsync.GraphqlApi(this, 'api', { + name: 'LimitResolverCount', + definition: appsync.Definition.fromFile(path.join(__dirname, 'appsync.schema.graphql')), + resolverCountLimit: 2, +}); +``` + ## Environment Variables To use environment variables in resolvers, you can use the `environmentVariables` property and diff --git a/packages/aws-cdk-lib/aws-appsync/lib/graphqlapi.ts b/packages/aws-cdk-lib/aws-appsync/lib/graphqlapi.ts index 75420814843b7..0c3d28173941d 100644 --- a/packages/aws-cdk-lib/aws-appsync/lib/graphqlapi.ts +++ b/packages/aws-cdk-lib/aws-appsync/lib/graphqlapi.ts @@ -443,6 +443,22 @@ export interface GraphqlApiProps { */ readonly introspectionConfig?: IntrospectionConfig; + /** + * A number indicating the maximum depth resolvers should be accepted when handling queries. + * Value must be withing range of 0 to 75 + * + * @default - The default value is 0 (or unspecified) which indicates no maximum depth. + */ + readonly queryDepthLimit?: number; + + /** + * A number indicating the maximum number of resolvers that should be accepted when handling queries. + * Value must be withing range of 0 to 10000 + * + * @default - The default value is 0 (or unspecified), which will set the limit to 10000 + */ + readonly resolverCountLimit?: number; + /** * A map containing the list of resources with their properties and environment variables. * @@ -594,6 +610,13 @@ export class GraphqlApi extends GraphqlApiBase { if ((props.schema !== undefined) === (props.definition !== undefined)) { throw new Error('You cannot specify both properties schema and definition.'); } + if (props.queryDepthLimit !== undefined && (props.queryDepthLimit < 0 || props.queryDepthLimit > 75)) { + throw new Error('You must specify a query depth limit between 0 and 75.'); + } + if (props.resolverCountLimit !== undefined && (props.resolverCountLimit < 0 || props.resolverCountLimit > 10000)) { + throw new Error('You must specify a resolver count limit between 0 and 10000.'); + } + this.definition = props.schema ? Definition.fromSchema(props.schema) : props.definition!; if (this.definition.sourceApiOptions) { @@ -620,6 +643,8 @@ export class GraphqlApi extends GraphqlApiBase { mergedApiExecutionRoleArn: this.mergedApiExecutionRole?.roleArn, apiType: this.definition.sourceApiOptions ? 'MERGED' : undefined, introspectionConfig: props.introspectionConfig, + queryDepthLimit: props.queryDepthLimit, + resolverCountLimit: props.resolverCountLimit, environmentVariables: Lazy.any({ produce: () => this.renderEnvironmentVariables() }), }); diff --git a/packages/aws-cdk-lib/aws-appsync/test/appsync.test.ts b/packages/aws-cdk-lib/aws-appsync/test/appsync.test.ts index ee7e2bf9707b4..015491c97e891 100644 --- a/packages/aws-cdk-lib/aws-appsync/test/appsync.test.ts +++ b/packages/aws-cdk-lib/aws-appsync/test/appsync.test.ts @@ -313,4 +313,61 @@ test('when introspectionConfig is set it should be used when creating the API', Template.fromStack(stack).hasResourceProperties('AWS::AppSync::GraphQLApi', { IntrospectionConfig: 'DISABLED', }); +}); + +test('when query limits are set, they should be used on API', () => { + // WHEN + new appsync.GraphqlApi(stack, 'query-limits', { + authorizationConfig: {}, + name: 'query-limits', + schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')), + queryDepthLimit: 2, + resolverCountLimit: 2, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::AppSync::GraphQLApi', { + QueryDepthLimit: 2, + ResolverCountLimit: 2, + }); +}); + +test('when query depth limit is out of range, it throws an error', () => { + + const errorString = 'You must specify a query depth limit between 0 and 75.'; + + const buildWithLimit = (name, queryDepthLimit) => { + new appsync.GraphqlApi(stack, name, { + authorizationConfig: {}, + name: 'query-limits', + schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')), + queryDepthLimit, + }); + }; + + expect(() => buildWithLimit('query-limit-low', -1)).toThrow(errorString); + expect(() => buildWithLimit('query-limit-min', 0)).not.toThrow(errorString); + expect(() => buildWithLimit('query-limit-max', 75)).not.toThrow(errorString); + expect(() => buildWithLimit('query-limit-high', 76)).toThrow(errorString); + +}); + +test('when resolver limit is out of range, it throws an error', () => { + + const errorString = 'You must specify a resolver count limit between 0 and 10000.'; + + const buildWithLimit = (name, resolverCountLimit) => { + new appsync.GraphqlApi(stack, name, { + authorizationConfig: {}, + name: 'query-limits', + schema: appsync.SchemaFile.fromAsset(path.join(__dirname, 'appsync.test.graphql')), + resolverCountLimit, + }); + }; + + expect(() => buildWithLimit('resolver-limit-low', -1)).toThrow(errorString); + expect(() => buildWithLimit('resolver-limit-min', 0)).not.toThrow(errorString); + expect(() => buildWithLimit('resolver-limit-max', 10000)).not.toThrow(errorString); + expect(() => buildWithLimit('resolver-limit-high', 10001)).toThrow(errorString); + }); \ No newline at end of file diff --git a/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts b/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts index 2c470512a2e81..e25bf8cfe1aef 100644 --- a/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts +++ b/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts @@ -267,7 +267,7 @@ export class Alarm extends AlarmBase { if (ec2ActionsRegexp.test(actionArn)) { // Check per-instance metric const metricConfig = this.metric.toMetricConfig(); - if (metricConfig.metricStat?.dimensions?.length != 1 || metricConfig.metricStat?.dimensions![0].name != 'InstanceId') { + if (metricConfig.metricStat?.dimensions?.length != 1 || !metricConfig.metricStat?.dimensions?.some(dimension => dimension.name === 'InstanceId')) { throw new Error(`EC2 alarm actions requires an EC2 Per-Instance Metric. (${JSON.stringify(metricConfig)} does not have an 'InstanceId' dimension)`); } } diff --git a/packages/aws-cdk-lib/aws-cloudwatch/lib/private/statistic.ts b/packages/aws-cdk-lib/aws-cloudwatch/lib/private/statistic.ts index 395f347e97ebf..80e05f26488d7 100644 --- a/packages/aws-cdk-lib/aws-cloudwatch/lib/private/statistic.ts +++ b/packages/aws-cdk-lib/aws-cloudwatch/lib/private/statistic.ts @@ -34,6 +34,10 @@ export interface PercentileStatistic extends SingleStatistic { statName: 'percentile'; } +export interface PercentileRankStatistic extends PairStatistic { + statName: 'percentileRank'; +} + export interface TrimmedMeanStatistic extends PairStatistic { statName: 'trimmedMean'; } @@ -154,6 +158,7 @@ export function parseStatistic( ): | SimpleStatistic | PercentileStatistic + | PercentileRankStatistic | TrimmedMeanStatistic | WinsorizedMeanStatistic | TrimmedCountStatistic @@ -188,6 +193,10 @@ export function parseStatistic( m = parseSingleStatistic(stat, 'p'); if (m) return { ...m, statName: 'percentile' } as PercentileStatistic; + // Percentile Rank statistics + m = parsePairStatistic(stat, 'pr'); + if (m) return { ...m, statName: 'percentileRank' } as PercentileRankStatistic; + // Trimmed mean statistics m = parseSingleStatistic(stat, 'tm') || parsePairStatistic(stat, 'tm'); if (m) return { ...m, statName: 'trimmedMean' } as TrimmedMeanStatistic; diff --git a/packages/aws-cdk-lib/aws-cloudwatch/test/alarm.test.ts b/packages/aws-cdk-lib/aws-cloudwatch/test/alarm.test.ts index ffc79405b1fe8..85feb315eda91 100644 --- a/packages/aws-cdk-lib/aws-cloudwatch/test/alarm.test.ts +++ b/packages/aws-cdk-lib/aws-cloudwatch/test/alarm.test.ts @@ -1,6 +1,8 @@ import { Construct } from 'constructs'; import { Match, Template, Annotations } from '../../assertions'; -import { Duration, Stack } from '../../core'; +import { Ec2Action, Ec2InstanceAction } from '../../aws-cloudwatch-actions/lib'; +import { Duration, Stack, App } from '../../core'; +import { ENABLE_PARTITION_LITERALS } from '../../cx-api'; import { Alarm, IAlarm, IAlarmAction, Metric, MathExpression, IMetric, Stats } from '../lib'; const testMetric = new Metric({ @@ -232,6 +234,65 @@ describe('Alarm', () => { }); }); + test('EC2 alarm actions with InstanceId dimension', () => { + // GIVEN + const app = new App({ context: { [ ENABLE_PARTITION_LITERALS]: true } }); + const stack = new Stack(app, 'EC2AlarmStack', { env: { region: 'us-west-2', account: '123456789012' } }); + + // WHEN + const metric = new Metric({ + namespace: 'CWAgent', + metricName: 'disk_used_percent', + dimensionsMap: { + InstanceId: 'instance-id', + }, + period: Duration.minutes(5), + statistic: 'Average', + }); + + const sev3Alarm = new Alarm(stack, 'DISK_USED_PERCENT_SEV3', { + alarmName: 'DISK_USED_PERCENT_SEV3', + actionsEnabled: true, + metric: metric, + threshold: 1, + evaluationPeriods: 1, + }); + + expect(() => { + sev3Alarm.addAlarmAction(new Ec2Action(Ec2InstanceAction.REBOOT)); + }).not.toThrow(); + }); + + test('EC2 alarm actions without InstanceId dimension', () => { + // GIVEN + const app = new App({ context: { [ ENABLE_PARTITION_LITERALS]: true } }); + const stack = new Stack(app, 'EC2AlarmStack', { env: { region: 'us-west-2', account: '123456789012' } }); + + // WHEN + const metric = new Metric({ + namespace: 'CWAgent', + metricName: 'disk_used_percent', + dimensionsMap: { + ImageId: 'image-id', + InstanceType: 't2.micro', + }, + period: Duration.minutes(5), + statistic: 'Average', + }); + + const sev3Alarm = new Alarm(stack, 'DISK_USED_PERCENT_SEV3', { + alarmName: 'DISK_USED_PERCENT_SEV3', + actionsEnabled: true, + metric: metric, + threshold: 1, + evaluationPeriods: 1, + }); + + expect(() => { + sev3Alarm.addAlarmAction(new Ec2Action(Ec2InstanceAction.REBOOT)); + }).toThrow(/EC2 alarm actions requires an EC2 Per-Instance Metric/); + }); + test('can use percentile string to make alarm', () => { // GIVEN const stack = new Stack(); diff --git a/packages/aws-cdk-lib/aws-cloudwatch/test/stats.test.ts b/packages/aws-cdk-lib/aws-cloudwatch/test/stats.test.ts index 0a65ae2e143de..f2b399e243c79 100644 --- a/packages/aws-cdk-lib/aws-cloudwatch/test/stats.test.ts +++ b/packages/aws-cdk-lib/aws-cloudwatch/test/stats.test.ts @@ -1,5 +1,20 @@ +import { Metric, Stats } from '../../aws-cloudwatch'; import * as cloudwatch from '../lib'; +it.each([ + Stats.percentileRank(0), + Stats.percentileRank(0, 1), + Stats.percentileRank(0, undefined), +])('Stats can create valid statistics %s without causing warnings', (statistic) => { + const metric = new Metric({ + namespace: 'example', + metricName: 'example', + statistic, + }); + + expect(metric.warningsV2).toEqual(undefined); +}); + test('spot check some constants', () => { expect(cloudwatch.Stats.AVERAGE).toEqual('Average'); expect(cloudwatch.Stats.IQM).toEqual('IQM'); diff --git a/packages/aws-cdk-lib/aws-codepipeline-actions/lib/cloudformation/private/singleton-policy.ts b/packages/aws-cdk-lib/aws-codepipeline-actions/lib/cloudformation/private/singleton-policy.ts index be2c0052671b2..a20e89da62b8d 100644 --- a/packages/aws-cdk-lib/aws-codepipeline-actions/lib/cloudformation/private/singleton-policy.ts +++ b/packages/aws-cdk-lib/aws-codepipeline-actions/lib/cloudformation/private/singleton-policy.ts @@ -37,6 +37,7 @@ export class SingletonPolicy extends Construct implements iam.IGrantable { this.statementFor({ actions: [ 'cloudformation:DescribeStacks', + 'cloudformation:DescribeStackEvents', 'cloudformation:DescribeChangeSet', 'cloudformation:ExecuteChangeSet', ], diff --git a/packages/aws-cdk-lib/aws-codepipeline-actions/test/cloudformation/pipeline-actions.test.ts b/packages/aws-cdk-lib/aws-codepipeline-actions/test/cloudformation/pipeline-actions.test.ts index 9d916ad9a0c47..b0380a457a154 100644 --- a/packages/aws-cdk-lib/aws-codepipeline-actions/test/cloudformation/pipeline-actions.test.ts +++ b/packages/aws-cdk-lib/aws-codepipeline-actions/test/cloudformation/pipeline-actions.test.ts @@ -163,6 +163,7 @@ describe('Pipeline Actions', () => { { Action: [ 'cloudformation:DescribeChangeSet', + 'cloudformation:DescribeStackEvents', 'cloudformation:DescribeStacks', 'cloudformation:ExecuteChangeSet', ], diff --git a/packages/aws-cdk-lib/aws-ec2/README.md b/packages/aws-cdk-lib/aws-ec2/README.md index 50b7bf8d2c72b..24fb39b3605c0 100644 --- a/packages/aws-cdk-lib/aws-ec2/README.md +++ b/packages/aws-cdk-lib/aws-ec2/README.md @@ -1052,6 +1052,17 @@ new ec2.VpcEndpointService(this, 'EndpointService', { }); ``` +You can also include a service principal in the `allowedPrincipals` property by specifying it as a parameter to the `ArnPrincipal` constructor. +The resulting VPC endpoint will have an allowlisted principal of type `Service`, instead of `Arn` for that item in the list. +```ts +declare const networkLoadBalancer: elbv2.NetworkLoadBalancer; + +new ec2.VpcEndpointService(this, 'EndpointService', { + vpcEndpointServiceLoadBalancers: [networkLoadBalancer], + allowedPrincipals: [new iam.ArnPrincipal('ec2.amazonaws.com')], +}); +``` + Endpoint services support private DNS, which makes it easier for clients to connect to your service by automatically setting up DNS in their VPC. You can enable private DNS on an endpoint service like so: diff --git a/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts b/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts index 890363932a68f..d4ee8c47e1d44 100644 --- a/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts +++ b/packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts @@ -223,6 +223,11 @@ export enum InstanceClass { */ MEMORY5_AMD_NVME_DRIVE = 'memory5-amd-nvme-drive', + /** + * Memory optimized instances based on AMD EPYC with local NVME drive, 5th generation + */ + R5AD = 'r5ad', + /** * High memory instances (3TB) based on Intel Xeon Platinum 8176M (Skylake) processors, 1st generation */ @@ -283,11 +288,6 @@ export enum InstanceClass { */ U_24TB1 = 'u-24tb1', - /** - * Memory optimized instances based on AMD EPYC with local NVME drive, 5th generation - */ - R5AD = 'r5ad', - /** * Memory optimized instances that are also EBS-optimized, 5th generation */ @@ -611,20 +611,30 @@ export enum InstanceClass { */ STORAGE_COMPUTE_1 = 'storage-compute-1', + /** + * Storage/compute balanced instances, 1st generation + */ + H1 = 'h1', + /** * High performance computing powered by AWS Trainium */ - TRN1 = 'trn1', + TRAINING_ACCELERATOR1 = 'training-accelerator1', /** * High performance computing powered by AWS Trainium */ - TRN1N = 'trn1n', + TRN1 = 'trn1', /** - * Storage/compute balanced instances, 1st generation + * Network-optimized high performance computing powered by AWS Trainium */ - H1 = 'h1', + TRAINING_ACCELERATOR1_ENHANCED_NETWORK = 'training-accelerator1-enhanced-network', + + /** + * Network-optimized high performance computing powered by AWS Trainium + */ + TRN1N = 'trn1n', /** * I/O-optimized instances, 3rd generation @@ -742,7 +752,7 @@ export enum InstanceClass { MEMORY_INTENSIVE_1_EXTENDED = 'memory-intensive-1-extended', /** - * Memory-intensive instances, 1st generation + * Memory-intensive instances, extended, 1st generation */ X1E = 'x1e', @@ -881,7 +891,7 @@ export enum InstanceClass { P2 = 'p2', /** - * Parallel-processing optimized instances, 3nd generation + * Parallel-processing optimized instances, 3rd generation */ PARALLEL3 = 'parallel3', @@ -891,7 +901,7 @@ export enum InstanceClass { P3 = 'p3', /** - * Parallel-processing optimized instances with local NVME drive for high performance computing, 3nd generation + * Parallel-processing optimized instances with local NVME drive for high performance computing, 3rd generation */ PARALLEL3_NVME_DRIVE_HIGH_PERFORMANCE = 'parallel3-nvme-drive-high-performance', @@ -1199,6 +1209,16 @@ export enum InstanceClass { * Deep learning instances powered by Gaudi accelerators from Habana Labs (an Intel company), 1st generation */ DL1 = 'dl1', + + /** + * Deep learning instances powered by Qualcomm AI 100 Standard accelerators, 2nd generation + */ + DEEP_LEARNING2_QUALCOMM = 'deep-learning2-qualcomm', + + /** + * Deep learning instances powered by Qualcomm AI 100 Standard accelerators, 2nd generation + */ + DL2Q = 'dl2q', } /** @@ -1490,7 +1510,9 @@ export class InstanceType { [InstanceClass.D3]: 'd3', [InstanceClass.STORAGE3_ENHANCED_NETWORK]: 'd3en', [InstanceClass.D3EN]: 'd3en', + [InstanceClass.TRAINING_ACCELERATOR1]: 'trn1', [InstanceClass.TRN1]: 'trn1', + [InstanceClass.TRAINING_ACCELERATOR1_ENHANCED_NETWORK]: 'trn1n', [InstanceClass.TRN1N]: 'trn1n', [InstanceClass.STORAGE_COMPUTE_1]: 'h1', [InstanceClass.H1]: 'h1', @@ -1606,6 +1628,8 @@ export class InstanceType { [InstanceClass.MEMORY_INTENSIVE_2_XTZ_INTEL]: 'x2iezn', [InstanceClass.DEEP_LEARNING1]: 'dl1', [InstanceClass.DL1]: 'dl1', + [InstanceClass.DEEP_LEARNING2_QUALCOMM]: 'dl2q', + [InstanceClass.DL2Q]: 'dl2q', }; return new InstanceType(`${instanceClassMap[instanceClass] ?? instanceClass}.${instanceSize}`); } diff --git a/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts b/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts index 3ba1f09f81dfa..7a9322fc522a6 100644 --- a/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts +++ b/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts @@ -92,6 +92,7 @@ export interface IGatewayVpcEndpointService { export class GatewayVpcEndpointAwsService implements IGatewayVpcEndpointService { public static readonly DYNAMODB = new GatewayVpcEndpointAwsService('dynamodb'); public static readonly S3 = new GatewayVpcEndpointAwsService('s3'); + public static readonly S3_EXPRESS = new GatewayVpcEndpointAwsService('s3express'); /** * The name of the service. @@ -264,7 +265,10 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ public static readonly AIRFLOW_ENV = new InterfaceVpcEndpointAwsService('airflow.env'); public static readonly AIRFLOW_OPS = new InterfaceVpcEndpointAwsService('airflow.ops'); public static readonly APIGATEWAY = new InterfaceVpcEndpointAwsService('execute-api'); + /** @deprecated - Use InterfaceVpcEndpointAwsService.APP_MESH_ENVOY_MANAGEMENT instead. */ public static readonly APP_MESH = new InterfaceVpcEndpointAwsService('appmesh-envoy-management'); + public static readonly APP_MESH_ENVOY_MANAGEMENT = new InterfaceVpcEndpointAwsService('appmesh-envoy-management'); + public static readonly APP_MESH_OPS = new InterfaceVpcEndpointAwsService('appmesh'); public static readonly APP_RUNNER = new InterfaceVpcEndpointAwsService('apprunner'); public static readonly APP_RUNNER_REQUESTS = new InterfaceVpcEndpointAwsService('apprunner.requests'); public static readonly APP_SYNC = new InterfaceVpcEndpointAwsService('appsync-api'); @@ -278,17 +282,28 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ public static readonly AUDIT_MANAGER = new InterfaceVpcEndpointAwsService('auditmanager'); public static readonly AUTOSCALING = new InterfaceVpcEndpointAwsService('autoscaling'); public static readonly AUTOSCALING_PLANS = new InterfaceVpcEndpointAwsService('autoscaling-plans'); + public static readonly B2B_DATA_INTERCHANGE = new InterfaceVpcEndpointAwsService('b2bi'); public static readonly BACKUP = new InterfaceVpcEndpointAwsService('backup'); public static readonly BACKUP_GATEWAY = new InterfaceVpcEndpointAwsService('backup-gateway'); public static readonly BATCH = new InterfaceVpcEndpointAwsService('batch'); + public static readonly BEDROCK = new InterfaceVpcEndpointAwsService('bedrock'); + public static readonly BEDROCK_AGENT = new InterfaceVpcEndpointAwsService('bedrock-agent'); + public static readonly BEDROCK_AGENT_RUNTIME = new InterfaceVpcEndpointAwsService('bedrock-agent-runtime'); + public static readonly BEDROCK_RUNTIME = new InterfaceVpcEndpointAwsService('bedrock-runtime'); public static readonly BILLING_CONDUCTOR = new InterfaceVpcEndpointAwsService('billingconductor'); public static readonly BRAKET = new InterfaceVpcEndpointAwsService('braket'); + public static readonly CLEAN_ROOMS = new InterfaceVpcEndpointAwsService('cleanrooms'); public static readonly CLOUD_CONTROL_API = new InterfaceVpcEndpointAwsService('cloudcontrolapi'); public static readonly CLOUD_CONTROL_API_FIPS = new InterfaceVpcEndpointAwsService('cloudcontrolapi-fips'); public static readonly CLOUD_DIRECTORY = new InterfaceVpcEndpointAwsService('clouddirectory'); + public static readonly CLOUD_MAP_DATA_SERVICE_DISCOVERY = new InterfaceVpcEndpointAwsService('data-servicediscovery'); + public static readonly CLOUD_MAP_DATA_SERVICE_DISCOVERY_FIPS = new InterfaceVpcEndpointAwsService('data-servicediscovery-fips'); + public static readonly CLOUD_MAP_SERVICE_DISCOVERY = new InterfaceVpcEndpointAwsService('servicediscovery'); + public static readonly CLOUD_MAP_SERVICE_DISCOVERY_FIPS = new InterfaceVpcEndpointAwsService('servicediscovery-fips'); public static readonly CLOUDFORMATION = new InterfaceVpcEndpointAwsService('cloudformation'); public static readonly CLOUDHSM = new InterfaceVpcEndpointAwsService('cloudhsmv2'); public static readonly CLOUDTRAIL = new InterfaceVpcEndpointAwsService('cloudtrail'); + public static readonly CODEWHISPERER = new InterfaceVpcEndpointAwsService('codewhisperer'); /** @deprecated - Use InterfaceVpcEndpointAwsService.CLOUDWATCH_MONITORING instead. */ public static readonly CLOUDWATCH = new InterfaceVpcEndpointAwsService('monitoring'); /** @deprecated - Use InterfaceVpcEndpointAwsService.EVENTBRIDGE instead. */ @@ -297,6 +312,7 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ public static readonly CLOUDWATCH_EVIDENTLY_DATAPLANE = new InterfaceVpcEndpointAwsService('evidently-dataplane'); public static readonly CLOUDWATCH_LOGS = new InterfaceVpcEndpointAwsService('logs'); public static readonly CLOUDWATCH_MONITORING = new InterfaceVpcEndpointAwsService('monitoring'); + public static readonly CLOUDWATCH_NETWORK_MONITOR = new InterfaceVpcEndpointAwsService('networkmonitor'); public static readonly CLOUDWATCH_RUM = new InterfaceVpcEndpointAwsService('rum'); public static readonly CLOUDWATCH_RUM_DATAPLANE = new InterfaceVpcEndpointAwsService('rum-dataplane'); public static readonly CLOUDWATCH_SYNTHETICS = new InterfaceVpcEndpointAwsService('synthetics'); @@ -304,6 +320,8 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ public static readonly CODEARTIFACT_REPOSITORIES = new InterfaceVpcEndpointAwsService('codeartifact.repositories'); public static readonly CODEBUILD = new InterfaceVpcEndpointAwsService('codebuild'); public static readonly CODEBUILD_FIPS = new InterfaceVpcEndpointAwsService('codebuild-fips'); + public static readonly CODECATALYST_GIT = new InterfaceVpcEndpointAwsService('codecatalyst.git'); + public static readonly CODECATALYST_PACKAGES = new InterfaceVpcEndpointAwsService('codecatalyst.packages'); public static readonly CODECOMMIT = new InterfaceVpcEndpointAwsService('codecommit'); public static readonly CODECOMMIT_FIPS = new InterfaceVpcEndpointAwsService('codecommit-fips'); public static readonly CODEDEPLOY = new InterfaceVpcEndpointAwsService('codedeploy'); @@ -322,10 +340,12 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ public static readonly CONNECT_VOICEID = new InterfaceVpcEndpointAwsService('voiceid'); public static readonly CONNECT_WISDOM = new InterfaceVpcEndpointAwsService('wisdom'); public static readonly DATA_EXCHANGE = new InterfaceVpcEndpointAwsService('dataexchange'); + public static readonly DATASYNC = new InterfaceVpcEndpointAwsService('datasync'); + public static readonly DATAZONE = new InterfaceVpcEndpointAwsService('datazone'); public static readonly DATABASE_MIGRATION_SERVICE = new InterfaceVpcEndpointAwsService('dms'); public static readonly DATABASE_MIGRATION_SERVICE_FIPS = new InterfaceVpcEndpointAwsService('dms-fips'); - public static readonly DATASYNC = new InterfaceVpcEndpointAwsService('datasync'); public static readonly DEVOPS_GURU = new InterfaceVpcEndpointAwsService('devops-guru'); + public static readonly DIRECTORY_SERVICE = new InterfaceVpcEndpointAwsService('ds'); public static readonly EBS_DIRECT = new InterfaceVpcEndpointAwsService('ebs'); public static readonly EC2 = new InterfaceVpcEndpointAwsService('ec2'); public static readonly EC2_MESSAGES = new InterfaceVpcEndpointAwsService('ec2messages'); @@ -335,6 +355,7 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ public static readonly ECS_AGENT = new InterfaceVpcEndpointAwsService('ecs-agent'); public static readonly ECS_TELEMETRY = new InterfaceVpcEndpointAwsService('ecs-telemetry'); public static readonly EKS = new InterfaceVpcEndpointAwsService('eks'); + public static readonly EKS_AUTH = new InterfaceVpcEndpointAwsService('eks-auth'); public static readonly ELASTIC_BEANSTALK = new InterfaceVpcEndpointAwsService('elasticbeanstalk'); public static readonly ELASTIC_BEANSTALK_HEALTH = new InterfaceVpcEndpointAwsService('elasticbeanstalk-health'); public static readonly ELASTIC_DISASTER_RECOVERY = new InterfaceVpcEndpointAwsService('drs'); @@ -344,10 +365,13 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ public static readonly ELASTIC_LOAD_BALANCING = new InterfaceVpcEndpointAwsService('elasticloadbalancing'); public static readonly ELASTICACHE = new InterfaceVpcEndpointAwsService('elasticache'); public static readonly ELASTICACHE_FIPS = new InterfaceVpcEndpointAwsService('elasticache-fips'); + public static readonly ELEMENTAL_MEDIACONNECT = new InterfaceVpcEndpointAwsService('mediaconnect'); public static readonly EMAIL_SMTP = new InterfaceVpcEndpointAwsService('email-smtp'); public static readonly EMR = new InterfaceVpcEndpointAwsService('elasticmapreduce'); public static readonly EMR_EKS = new InterfaceVpcEndpointAwsService('emr-containers'); public static readonly EMR_SERVERLESS = new InterfaceVpcEndpointAwsService('emr-serverless'); + public static readonly EMR_WAL = new InterfaceVpcEndpointAwsService('emrwal.prod'); + public static readonly ENTITY_RESOLUTION = new InterfaceVpcEndpointAwsService('entityresolution'); public static readonly EVENTBRIDGE = new InterfaceVpcEndpointAwsService('events'); public static readonly FAULT_INJECTION_SIMULATOR = new InterfaceVpcEndpointAwsService('fis'); public static readonly FINSPACE = new InterfaceVpcEndpointAwsService('finspace'); @@ -366,14 +390,22 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ public static readonly GRAFANA = new InterfaceVpcEndpointAwsService('grafana'); public static readonly GRAFANA_WORKSPACE = new InterfaceVpcEndpointAwsService('grafana-workspace'); public static readonly GROUNDSTATION = new InterfaceVpcEndpointAwsService('groundstation'); + public static readonly GUARDDUTY_DATA = new InterfaceVpcEndpointAwsService('guardduty-data'); + public static readonly GUARDDUTY_DATA_FIPS = new InterfaceVpcEndpointAwsService('guardduty-data-fips'); + public static readonly HEALTH_IMAGING = new InterfaceVpcEndpointAwsService('medical-imaging'); + public static readonly HEALTH_IMAGING_RUNTIME = new InterfaceVpcEndpointAwsService('runtime-medical-imaging'); public static readonly HEALTHLAKE = new InterfaceVpcEndpointAwsService('healthlake'); public static readonly IAM_IDENTITY_CENTER = new InterfaceVpcEndpointAwsService('identitystore'); public static readonly IAM_ROLES_ANYWHERE = new InterfaceVpcEndpointAwsService('rolesanywhere'); public static readonly IMAGE_BUILDER = new InterfaceVpcEndpointAwsService('imagebuilder'); public static readonly INSPECTOR = new InterfaceVpcEndpointAwsService('inspector2'); + public static readonly INSPECTOR_SCAN = new InterfaceVpcEndpointAwsService('inspector-scan'); public static readonly IOT_CORE = new InterfaceVpcEndpointAwsService('iot.data'); + public static readonly IOT_CORE_CREDENTIALS = new InterfaceVpcEndpointAwsService('iot.credentials'); public static readonly IOT_CORE_DEVICE_ADVISOR = new InterfaceVpcEndpointAwsService('deviceadvisor.iot'); + public static readonly IOT_CORE_FLEETHUB_API = new InterfaceVpcEndpointAwsService('iot.fleethub.api'); public static readonly IOT_CORE_FOR_LORAWAN = new InterfaceVpcEndpointAwsService('iotwireless.api'); + public static readonly IOT_FLEETWISE = new InterfaceVpcEndpointAwsService('iotfleetwise'); public static readonly IOT_LORAWAN_CUPS = new InterfaceVpcEndpointAwsService('lorawan.cups'); public static readonly IOT_LORAWAN_LNS = new InterfaceVpcEndpointAwsService('lorawan.lns'); public static readonly IOT_GREENGRASS = new InterfaceVpcEndpointAwsService('greengrass'); @@ -396,44 +428,66 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ public static readonly LEX_RUNTIME = new InterfaceVpcEndpointAwsService('runtime-v2-lex'); public static readonly LICENSE_MANAGER = new InterfaceVpcEndpointAwsService('license-manager'); public static readonly LICENSE_MANAGER_FIPS = new InterfaceVpcEndpointAwsService('license-manager-fips'); + public static readonly LICENSE_MANAGER_USER_SUBSCRIPTIONS = new InterfaceVpcEndpointAwsService('license-manager-user-subscriptions'); public static readonly LOOKOUT_EQUIPMENT = new InterfaceVpcEndpointAwsService('lookoutequipment'); public static readonly LOOKOUT_METRICS = new InterfaceVpcEndpointAwsService('lookoutmetrics'); public static readonly LOOKOUT_VISION = new InterfaceVpcEndpointAwsService('lookoutvision'); - public static readonly MACIE = new InterfaceVpcEndpointAwsService('macie2'); public static readonly MAINFRAME_MODERNIZATION = new InterfaceVpcEndpointAwsService('m2'); - public static readonly PROMETHEUS = new InterfaceVpcEndpointAwsService('aps'); - public static readonly PROMETHEUS_WORKSPACES = new InterfaceVpcEndpointAwsService('aps-workspaces'); + public static readonly MACIE = new InterfaceVpcEndpointAwsService('macie2'); + public static readonly MANAGEMENT_CONSOLE = new InterfaceVpcEndpointAwsService('console'); + public static readonly MANAGEMENT_CONSOLE_SIGNIN = new InterfaceVpcEndpointAwsService('signin'); + public static readonly MANAGED_BLOCKCHAIN_QUERY = new InterfaceVpcEndpointAwsService('managedblockchain-query'); + public static readonly MANAGED_BLOCKCHAIN_BITCOIN_MAINNET = new InterfaceVpcEndpointAwsService('managedblockchain.bitcoin.mainnet'); + public static readonly MANAGED_BLOCKCHAIN_BITCOIN_TESTNET = new InterfaceVpcEndpointAwsService('managedblockchain.bitcoin.testnet'); public static readonly MEMORY_DB = new InterfaceVpcEndpointAwsService('memory-db'); public static readonly MEMORY_DB_FIPS = new InterfaceVpcEndpointAwsService('memorydb-fips'); public static readonly MIGRATIONHUB_ORCHESTRATOR = new InterfaceVpcEndpointAwsService('migrationhub-orchestrator'); public static readonly MIGRATIONHUB_REFACTOR_SPACES = new InterfaceVpcEndpointAwsService('refactor-spaces'); public static readonly MIGRATIONHUB_STRATEGY = new InterfaceVpcEndpointAwsService('migrationhub-strategy'); + public static readonly NEPTUNE_ANALYTICS = new InterfaceVpcEndpointAwsService('neptune-graph'); public static readonly NIMBLE_STUDIO = new InterfaceVpcEndpointAwsService('nimble'); + public static readonly ORGANIZATIONS = new InterfaceVpcEndpointAwsService('organizations'); + public static readonly ORGANIZATIONS_FIPS = new InterfaceVpcEndpointAwsService('organizations-fips'); public static readonly OMICS_ANALYTICS = new InterfaceVpcEndpointAwsService('analytics-omics'); public static readonly OMICS_CONTROL_STORAGE = new InterfaceVpcEndpointAwsService('control-storage-omics'); public static readonly OMICS_STORAGE = new InterfaceVpcEndpointAwsService('storage-omics'); public static readonly OMICS_TAGS = new InterfaceVpcEndpointAwsService('tags-omics'); public static readonly OMICS_WORKFLOWS = new InterfaceVpcEndpointAwsService('workflows-omics'); public static readonly PANORAMA = new InterfaceVpcEndpointAwsService('panorama'); + public static readonly PAYMENT_CRYPTOGRAPHY_CONTROLPLANE = new InterfaceVpcEndpointAwsService('payment-cryptography.controlplane'); + public static readonly PAYMENT_CRYTOGRAPHY_DATAPLANE = new InterfaceVpcEndpointAwsService('payment-cryptography.dataplane'); + public static readonly PERSONALIZE = new InterfaceVpcEndpointAwsService('personalize'); + public static readonly PERSONALIZE_EVENTS = new InterfaceVpcEndpointAwsService('personalize-events'); + public static readonly PERSONALIZE_RUNTIME = new InterfaceVpcEndpointAwsService('personalize-runtime'); + public static readonly PINPOINT_V1 = new InterfaceVpcEndpointAwsService('pinpoint'); + /** @deprecated - Use InterfaceVpcEndpointAwsService.PINPOINT_SMS_VOICE_V2 instead. */ public static readonly PINPOINT = new InterfaceVpcEndpointAwsService('pinpoint-sms-voice-v2'); + public static readonly PINPOINT_SMS_VOICE_V2 = new InterfaceVpcEndpointAwsService('pinpoint-sms-voice-v2'); public static readonly POLLY = new InterfaceVpcEndpointAwsService('polly'); public static readonly PRIVATE_5G = new InterfaceVpcEndpointAwsService('private-networks'); public static readonly PRIVATE_CERTIFICATE_AUTHORITY = new InterfaceVpcEndpointAwsService('acm-pca'); + public static readonly PRIVATE_CERTIFICATE_AUTHORITY_CONNECTOR_AD = new InterfaceVpcEndpointAwsService('pca-connector-ad'); + public static readonly PROMETHEUS = new InterfaceVpcEndpointAwsService('aps'); + public static readonly PROMETHEUS_WORKSPACES = new InterfaceVpcEndpointAwsService('aps-workspaces'); public static readonly PROTON = new InterfaceVpcEndpointAwsService('proton'); public static readonly QLDB = new InterfaceVpcEndpointAwsService('qldb.session'); public static readonly RDS = new InterfaceVpcEndpointAwsService('rds'); public static readonly RDS_DATA = new InterfaceVpcEndpointAwsService('rds-data'); - public static readonly ROBOMAKER = new InterfaceVpcEndpointAwsService('robomaker'); public static readonly REDSHIFT = new InterfaceVpcEndpointAwsService('redshift'); public static readonly REDSHIFT_FIPS = new InterfaceVpcEndpointAwsService('redshift-fips'); public static readonly REDSHIFT_DATA = new InterfaceVpcEndpointAwsService('redshift-data'); public static readonly REKOGNITION = new InterfaceVpcEndpointAwsService('rekognition'); public static readonly REKOGNITION_FIPS = new InterfaceVpcEndpointAwsService('rekognition-fips'); + public static readonly REKOGNITION_STREAMING = new InterfaceVpcEndpointAwsService('streaming-rekognition'); + public static readonly REKOGNITION_STREAMING_FIPS = new InterfaceVpcEndpointAwsService('streaming-rekognition-fips'); + public static readonly REPOST_SPACE = new InterfaceVpcEndpointAwsService('repostspace'); + public static readonly ROBOMAKER = new InterfaceVpcEndpointAwsService('robomaker'); public static readonly S3 = new InterfaceVpcEndpointAwsService('s3'); - public static readonly S3_MULTI_REGION_ACCESS_POINTS = new InterfaceVpcEndpointAwsService('s3-global.accesspoint', 'com.amazonaws'); public static readonly S3_OUTPOSTS = new InterfaceVpcEndpointAwsService('s3-outposts'); + public static readonly S3_MULTI_REGION_ACCESS_POINTS = new InterfaceVpcEndpointAwsService('s3-global.accesspoint', 'com.amazonaws'); public static readonly SAGEMAKER_API = new InterfaceVpcEndpointAwsService('sagemaker.api'); public static readonly SAGEMAKER_FEATURESTORE_RUNTIME = new InterfaceVpcEndpointAwsService('sagemaker.featurestore-runtime'); + public static readonly SAGEMAKER_GEOSPATIAL = new InterfaceVpcEndpointAwsService('sagemaker-geospatial'); public static readonly SAGEMAKER_METRICS = new InterfaceVpcEndpointAwsService('sagemaker.metrics'); public static readonly SAGEMAKER_NOTEBOOK = new InterfaceVpcEndpointAwsService('notebook', 'aws.sagemaker'); public static readonly SAGEMAKER_RUNTIME = new InterfaceVpcEndpointAwsService('sagemaker.runtime'); @@ -448,6 +502,7 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ public static readonly SERVER_MIGRATION_SERVICE_AWSCONNECTOR = new InterfaceVpcEndpointAwsService('awsconnector'); /** @deprecated - Use InterfaceVpcEndpointAwsService.EMAIL_SMTP instead. */ public static readonly SES = new InterfaceVpcEndpointAwsService('email-smtp'); + public static readonly SIMSPACE_WEAVER = new InterfaceVpcEndpointAwsService('simspaceweaver'); public static readonly SNOW_DEVICE_MANAGEMENT = new InterfaceVpcEndpointAwsService('snow-device-management'); public static readonly SNS = new InterfaceVpcEndpointAwsService('sns'); public static readonly SQS = new InterfaceVpcEndpointAwsService('sqs'); @@ -459,16 +514,24 @@ export class InterfaceVpcEndpointAwsService implements IInterfaceVpcEndpointServ public static readonly STEP_FUNCTIONS_SYNC = new InterfaceVpcEndpointAwsService('sync-states'); public static readonly STORAGE_GATEWAY = new InterfaceVpcEndpointAwsService('storagegateway'); public static readonly STS = new InterfaceVpcEndpointAwsService('sts'); + public static readonly SUPPLY_CHAIN = new InterfaceVpcEndpointAwsService('scn'); + public static readonly SWF = new InterfaceVpcEndpointAwsService('swf'); + public static readonly SWF_FIPS = new InterfaceVpcEndpointAwsService('swf-fips'); + public static readonly TELCO_NETWORK_BUILDER = new InterfaceVpcEndpointAwsService('tnb'); public static readonly TEXTRACT = new InterfaceVpcEndpointAwsService('textract'); public static readonly TEXTRACT_FIPS = new InterfaceVpcEndpointAwsService('textract-fips'); + public static readonly TIMESTREAM_INFLUXDB = new InterfaceVpcEndpointAwsService('timestream-influxdb'); public static readonly TRANSCRIBE = new InterfaceVpcEndpointAwsService('transcribe'); public static readonly TRANSCRIBE_STREAMING = new InterfaceVpcEndpointAwsService('transcribestreaming'); public static readonly TRANSFER = new InterfaceVpcEndpointAwsService('transfer'); public static readonly TRANSFER_SERVER = new InterfaceVpcEndpointAwsService('transfer.server'); public static readonly TRANSLATE = new InterfaceVpcEndpointAwsService('translate'); + public static readonly TRUSTED_ADVISOR = new InterfaceVpcEndpointAwsService('trustedadvisor'); public static readonly WORKSPACES = new InterfaceVpcEndpointAwsService('workspaces'); + public static readonly WORKSPACES_THIN_CLIENT = new InterfaceVpcEndpointAwsService('thinclient.api'); public static readonly XRAY = new InterfaceVpcEndpointAwsService('xray'); public static readonly VERIFIED_PERMISSIONS = new InterfaceVpcEndpointAwsService('verifiedpermissions'); + public static readonly VPC_LATTICE = new InterfaceVpcEndpointAwsService('vpc-lattice'); /** * The name of the service. e.g. com.amazonaws.us-east-1.ecs diff --git a/packages/aws-cdk-lib/aws-ec2/test/vpc-endpoint-service.test.ts b/packages/aws-cdk-lib/aws-ec2/test/vpc-endpoint-service.test.ts index 66f67f3ee8ba2..5ffc11c5025e2 100644 --- a/packages/aws-cdk-lib/aws-ec2/test/vpc-endpoint-service.test.ts +++ b/packages/aws-cdk-lib/aws-ec2/test/vpc-endpoint-service.test.ts @@ -75,6 +75,33 @@ describe('vpc endpoint service', () => { }); + test('create endpoint service with a service principal (workaround)', () => { + // GIVEN + const stack = new Stack(); + + // WHEN + const lb = new DummyEndpointLoadBalacer('arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/net/Test/9bn6qkf4e9jrw77a'); + new VpcEndpointService(stack, 'EndpointService', { + vpcEndpointServiceLoadBalancers: [lb], + acceptanceRequired: false, + allowedPrincipals: [new ArnPrincipal('ec2.amazonaws.com')], + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::EC2::VPCEndpointService', { + NetworkLoadBalancerArns: ['arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/net/Test/9bn6qkf4e9jrw77a'], + AcceptanceRequired: false, + }); + + Template.fromStack(stack).hasResourceProperties('AWS::EC2::VPCEndpointServicePermissions', { + ServiceId: { + Ref: 'EndpointServiceED36BE1F', + }, + AllowedPrincipals: ['ec2.amazonaws.com'], + }); + + }); + test('with acceptance required', () => { // GIVEN const stack = new Stack(); diff --git a/packages/aws-cdk-lib/aws-eks/README.md b/packages/aws-cdk-lib/aws-eks/README.md index f5d2c00c9aca3..bbd31e8987b76 100644 --- a/packages/aws-cdk-lib/aws-eks/README.md +++ b/packages/aws-cdk-lib/aws-eks/README.md @@ -228,8 +228,8 @@ cluster.addNodegroupCapacity('custom-node-group', { }); ``` -> **NOTE:** If you add instances with the inferentia (`inf1` or `inf2`) class the -> [neuron plugin](https://awsdocs-neuron.readthedocs-hosted.com/en/latest/containers/dlc-then-eks-devflow.html) +> **NOTE:** If you add instances with the inferentia class (`inf1` or `inf2`) or trainium class (`trn1` or `trn1n`) +> the [neuron plugin](https://awsdocs-neuron.readthedocs-hosted.com/en/latest/containers/dlc-then-eks-devflow.html) > will be automatically installed in the kubernetes cluster. #### Node Groups with IPv6 Support diff --git a/packages/aws-cdk-lib/aws-eks/lib/cluster.ts b/packages/aws-cdk-lib/aws-eks/lib/cluster.ts index ba3189b798f22..2fcbe7f8df8cc 100644 --- a/packages/aws-cdk-lib/aws-eks/lib/cluster.ts +++ b/packages/aws-cdk-lib/aws-eks/lib/cluster.ts @@ -1800,7 +1800,8 @@ export class Cluster extends ClusterBase { spotInterruptHandler: options.spotInterruptHandler, }); - if (nodeTypeForInstanceType(options.instanceType) === NodeType.INFERENTIA) { + if (nodeTypeForInstanceType(options.instanceType) === NodeType.INFERENTIA || + nodeTypeForInstanceType(options.instanceType) === NodeType.TRAINIUM ) { this.addNeuronDevicePlugin(); } @@ -1817,11 +1818,13 @@ export class Cluster extends ClusterBase { * @param options options for creating a new nodegroup */ public addNodegroupCapacity(id: string, options?: NodegroupOptions): Nodegroup { - const hasInferentiaInstanceType = [ + const hasInferentiaOrTrainiumInstanceType = [ options?.instanceType, ...options?.instanceTypes ?? [], - ].some(i => i && nodeTypeForInstanceType(i) === NodeType.INFERENTIA); - if (hasInferentiaInstanceType) { + ].some(i => i && (nodeTypeForInstanceType(i) === NodeType.INFERENTIA || + nodeTypeForInstanceType(i) === NodeType.TRAINIUM)); + + if (hasInferentiaOrTrainiumInstanceType) { this.addNeuronDevicePlugin(); } return new Nodegroup(this, `Nodegroup${id}`, { @@ -2373,6 +2376,7 @@ export class EksOptimizedImage implements ec2.IMachineImage { 'amazon-linux-2/' : 'amazon-linux-2-arm64/' : '') + (this.nodeType === NodeType.GPU ? 'amazon-linux-2-gpu/' : '') + (this.nodeType === NodeType.INFERENTIA ? 'amazon-linux-2-gpu/' : '') + + (this.nodeType === NodeType.TRAINIUM ? 'amazon-linux-2-gpu/' : '') + 'recommended/image_id'; } @@ -2410,6 +2414,11 @@ export enum NodeType { * Inferentia instances */ INFERENTIA = 'INFERENTIA', + + /** + * Trainium instances + */ + TRAINIUM = 'TRAINIUM', } /** @@ -2471,9 +2480,14 @@ export enum MachineImageType { } function nodeTypeForInstanceType(instanceType: ec2.InstanceType) { - return INSTANCE_TYPES.gpu.includes(instanceType.toString().substring(0, 2)) ? NodeType.GPU : - INSTANCE_TYPES.inferentia.includes(instanceType.toString().substring(0, 4)) ? NodeType.INFERENTIA : - NodeType.STANDARD; + if (INSTANCE_TYPES.gpu.includes(instanceType.toString().substring(0, 2))) { + return NodeType.GPU; + } else if (INSTANCE_TYPES.inferentia.includes(instanceType.toString().substring(0, 4))) { + return NodeType.INFERENTIA; + } else if (INSTANCE_TYPES.trainium.includes(instanceType.toString().substring(0, 4))) { + return NodeType.TRAINIUM; + } + return NodeType.STANDARD; } function cpuArchForInstanceType(instanceType: ec2.InstanceType) { diff --git a/packages/aws-cdk-lib/aws-eks/lib/instance-types.ts b/packages/aws-cdk-lib/aws-eks/lib/instance-types.ts index af322ba5e2abd..164e82b0f840c 100644 --- a/packages/aws-cdk-lib/aws-eks/lib/instance-types.ts +++ b/packages/aws-cdk-lib/aws-eks/lib/instance-types.ts @@ -4,4 +4,5 @@ export const INSTANCE_TYPES = { graviton: ['a1'], graviton2: ['c6g', 'm6g', 'r6g', 't4g'], graviton3: ['c7g'], + trainium: ['trn1', 'trn1n'], }; diff --git a/packages/aws-cdk-lib/aws-eks/test/cluster.test.ts b/packages/aws-cdk-lib/aws-eks/test/cluster.test.ts index 7bc91c4a0cf84..6b7367d6fc5f6 100644 --- a/packages/aws-cdk-lib/aws-eks/test/cluster.test.ts +++ b/packages/aws-cdk-lib/aws-eks/test/cluster.test.ts @@ -2209,6 +2209,42 @@ describe('cluster', () => { Manifest: JSON.stringify([sanitized]), }); }); + test('trn1 instances are supported', () => { + // GIVEN + const { stack } = testFixtureNoVpc(); + const cluster = new eks.Cluster(stack, 'Cluster', { defaultCapacity: 0, version: CLUSTER_VERSION, prune: false }); + + // WHEN + cluster.addAutoScalingGroupCapacity('TrainiumInstances', { + instanceType: new ec2.InstanceType('trn1.2xlarge'), + minCapacity: 1, + }); + const fileContents = fs.readFileSync(path.join(__dirname, '..', 'lib', 'addons', 'neuron-device-plugin.yaml'), 'utf8'); + const sanitized = YAML.parse(fileContents); + + // THEN + Template.fromStack(stack).hasResourceProperties(eks.KubernetesManifest.RESOURCE_TYPE, { + Manifest: JSON.stringify([sanitized]), + }); + }); + test('trn1n instances are supported', () => { + // GIVEN + const { stack } = testFixtureNoVpc(); + const cluster = new eks.Cluster(stack, 'Cluster', { defaultCapacity: 0, version: CLUSTER_VERSION, prune: false }); + + // WHEN + cluster.addAutoScalingGroupCapacity('TrainiumInstances', { + instanceType: new ec2.InstanceType('trn1n.2xlarge'), + minCapacity: 1, + }); + const fileContents = fs.readFileSync(path.join(__dirname, '..', 'lib', 'addons', 'neuron-device-plugin.yaml'), 'utf8'); + const sanitized = YAML.parse(fileContents); + + // THEN + Template.fromStack(stack).hasResourceProperties(eks.KubernetesManifest.RESOURCE_TYPE, { + Manifest: JSON.stringify([sanitized]), + }); + }); test('inf1 instances are supported in addNodegroupCapacity', () => { // GIVEN diff --git a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/README.md b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/README.md index cc7d200abdf83..7d3494daedbe3 100644 --- a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/README.md +++ b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/README.md @@ -193,7 +193,7 @@ If you do not provide any options for this method, it redirects HTTP port 80 to By default all ingress traffic will be allowed on the source port. If you want to be more selective with your ingress rules then set `open: false` and use the listener's `connections` object to selectively grant access to the listener. -### Load Balancer attributes +### Application Load Balancer attributes You can modify attributes of Application Load Balancers: @@ -220,6 +220,15 @@ const lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { // The type of IP addresses to use. ipAddressType: elbv2.IpAddressType.IPV4, + + // The duration of client keep-alive connections + clientKeepAlive: Duration.seconds(500), + + // Whether cross-zone load balancing is enabled. + crossZoneEnabled: true, + + // Whether the load balancer blocks traffic through the Internet Gateway (IGW). + denyAllIgwTraffic: false }); ``` @@ -257,6 +266,21 @@ listener.addTargets('AppFleet', { }); ``` +### Enforce security group inbound rules on PrivateLink traffic for a Network Load Balancer + +You can indicate whether to evaluate inbound security group rules for traffic +sent to a Network Load Balancer through AWS PrivateLink. +The evaluation is enabled by default. + +```ts +declare const vpc: ec2.Vpc; + +const nlb = new elbv2.NetworkLoadBalancer(this, 'LB', { + vpc, + enforceSecurityGroupInboundRulesOnPrivateLinkTraffic: true, +}); +``` + One thing to keep in mind is that network load balancers do not have security groups, and no automatic security group configuration is done for you. You will have to configure the security groups of the target yourself to allow traffic by @@ -267,6 +291,7 @@ and [Register targets with your Target Group](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/target-group-register-targets.html) for more information. + ### Dualstack Network Load Balancer You can create a dualstack Network Load Balancer using the `ipAddressType` property: @@ -282,6 +307,29 @@ const lb = new elbv2.NetworkLoadBalancer(this, 'LB', { You cannot add UDP or TCP_UDP listeners to a dualstack Network Load Balancer. +### Network Load Balancer attributes + +You can modify attributes of Network Load Balancers: + +```ts +declare const vpc: ec2.Vpc; + +const lb = new elbv2.NetworkLoadBalancer(this, 'LB', { + vpc, + // Whether deletion protection is enabled. + deletionProtection: true, + + // Whether cross-zone load balancing is enabled. + crossZoneEnabled: true, + + // Whether the load balancer blocks traffic through the Internet Gateway (IGW). + denyAllIgwTraffic: false, + + // Indicates how traffic is distributed among the load balancer Availability Zones. + clientRoutingPolicy: elbv2.ClientRoutingPolicy.AVAILABILITY_ZONE_AFFINITY, +}); +``` + ## Targets and Target Groups Application and Network Load Balancers organize load balancing targets in Target @@ -335,6 +383,26 @@ const tg2 = new elbv2.ApplicationTargetGroup(this, 'TG2', { }); ``` +### Slow start mode for your Application Load Balancer + +By default, a target starts to receive its full share of requests as soon as it is registered with a target group and passes an initial health check. Using slow start mode gives targets time to warm up before the load balancer sends them a full share of requests. + +After you enable slow start for a target group, its targets enter slow start mode when they are considered healthy by the target group. A target in slow start mode exits slow start mode when the configured slow start duration period elapses or the target becomes unhealthy. The load balancer linearly increases the number of requests that it can send to a target in slow start mode. After a healthy target exits slow start mode, the load balancer can send it a full share of requests. + +The allowed range is 30-900 seconds (15 minutes). The default is 0 seconds (disabled). + +```ts +declare const vpc: ec2.Vpc; + +// Target group with slow start mode enabled +const tg = new elbv2.ApplicationTargetGroup(this, 'TG', { + targetType: elbv2.TargetType.INSTANCE, + slowStart: Duration.seconds(60), + port: 80, + vpc, +}); +``` + For more information see: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/sticky-sessions.html#application-based-stickiness ### Setting the target group protocol version diff --git a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-load-balancer.ts b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-load-balancer.ts index 4ddb300b9b92f..bb6f2cfbefb8d 100644 --- a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-load-balancer.ts +++ b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-load-balancer.ts @@ -58,6 +58,13 @@ export interface ApplicationLoadBalancerProps extends BaseLoadBalancerProps { * @default DesyncMitigationMode.DEFENSIVE */ readonly desyncMitigationMode?: DesyncMitigationMode; + + /** + * The client keep alive duration. The valid range is 60 to 604800 seconds (1 minute to 7 days). + * + * @default - Duration.seconds(3600) + */ + readonly clientKeepAlive?: Duration; } /** @@ -119,6 +126,18 @@ export class ApplicationLoadBalancer extends BaseLoadBalancer implements IApplic if (props.idleTimeout !== undefined) { this.setAttribute('idle_timeout.timeout_seconds', props.idleTimeout.toSeconds().toString()); } if (props.dropInvalidHeaderFields) {this.setAttribute('routing.http.drop_invalid_header_fields.enabled', 'true'); } if (props.desyncMitigationMode !== undefined) {this.setAttribute('routing.http.desync_mitigation_mode', props.desyncMitigationMode); } + if (props.clientKeepAlive !== undefined) { + const clientKeepAliveInMillis = props.clientKeepAlive.toMilliseconds(); + if (clientKeepAliveInMillis < 1000) { + throw new Error(`\'clientKeepAlive\' must be between 60 and 604800 seconds. Got: ${clientKeepAliveInMillis} milliseconds`); + } + + const clientKeepAliveInSeconds = props.clientKeepAlive.toSeconds(); + if (clientKeepAliveInSeconds < 60 || clientKeepAliveInSeconds > 604800) { + throw new Error(`\'clientKeepAlive\' must be between 60 and 604800 seconds. Got: ${clientKeepAliveInSeconds} seconds`); + } + this.setAttribute('client_keep_alive.seconds', clientKeepAliveInSeconds.toString()); + } } /** diff --git a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-target-group.ts b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-target-group.ts index f5ed22b92379f..4f5f25568cd3d 100644 --- a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-target-group.ts +++ b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-target-group.ts @@ -330,8 +330,9 @@ export class ApplicationTargetGroup extends TargetGroupBase implements IApplicat if (props) { if (props.slowStart !== undefined) { - if (props.slowStart.toSeconds() < 30 || props.slowStart.toSeconds() > 900) { - throw new Error('Slow start duration value must be between 30 and 900 seconds.'); + // 0 is allowed and disables slow start + if ((props.slowStart.toSeconds() < 30 && props.slowStart.toSeconds() !== 0) || props.slowStart.toSeconds() > 900) { + throw new Error('Slow start duration value must be between 30 and 900 seconds, or 0 to disable slow start.'); } this.setAttribute('slow_start.duration_seconds', props.slowStart.toSeconds().toString()); } diff --git a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/nlb/network-load-balancer.ts b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/nlb/network-load-balancer.ts index de04af98d240d..2ea54549cb977 100644 --- a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/nlb/network-load-balancer.ts +++ b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/nlb/network-load-balancer.ts @@ -11,16 +11,29 @@ import { IpAddressType } from '../shared/enums'; import { parseLoadBalancerFullName } from '../shared/util'; /** - * Properties for a network load balancer + * Indicates how traffic is distributed among the load balancer Availability Zones. + * + * @see https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html#zonal-dns-affinity */ -export interface NetworkLoadBalancerProps extends BaseLoadBalancerProps { +export enum ClientRoutingPolicy { /** - * Indicates whether cross-zone load balancing is enabled. - * - * @default false + * 100 percent zonal affinity + */ + AVAILABILITY_ZONE_AFFINITY = 'availability_zone_affinity', + /** + * 85 percent zonal affinity + */ + PARTIAL_AVAILABILITY_ZONE_AFFINITY = 'partial_availability_zone_affinity', + /** + * No zonal affinity */ - readonly crossZoneEnabled?: boolean; + ANY_AVAILABILITY_ZONE = 'any_availability_zone', +} +/** + * Properties for a network load balancer + */ +export interface NetworkLoadBalancerProps extends BaseLoadBalancerProps { /** * Security groups to associate with this load balancer * @@ -37,6 +50,22 @@ export interface NetworkLoadBalancerProps extends BaseLoadBalancerProps { * @default IpAddressType.IPV4 */ readonly ipAddressType?: IpAddressType; + + /** + * The AZ affinity routing policy + * + * @see https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html#zonal-dns-affinity + * + * @default - AZ affinity is disabled. + */ + readonly clientRoutingPolicy?: ClientRoutingPolicy; + + /** + * Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through AWS PrivateLink. + * + * @default true + */ + readonly enforceSecurityGroupInboundRulesOnPrivateLinkTraffic?: boolean; } /** @@ -202,6 +231,7 @@ export class NetworkLoadBalancer extends BaseLoadBalancer implements INetworkLoa public readonly ipAddressType?: IpAddressType; public readonly connections: ec2.Connections; private readonly isSecurityGroupsPropertyDefined: boolean; + private readonly _enforceSecurityGroupInboundRulesOnPrivateLinkTraffic?: boolean; /** * After the implementation of `IConnectable` (see https://github.com/aws/aws-cdk/pull/28494), the default @@ -220,13 +250,24 @@ export class NetworkLoadBalancer extends BaseLoadBalancer implements INetworkLoa type: 'network', securityGroups: Lazy.list({ produce: () => this.securityGroups }), ipAddressType: props.ipAddressType, + enforceSecurityGroupInboundRulesOnPrivateLinkTraffic: Lazy.string({ + produce: () => this.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic, + }), }); this.metrics = new NetworkLoadBalancerMetrics(this, this.loadBalancerFullName); this.isSecurityGroupsPropertyDefined = !!props.securityGroups; this.connections = new ec2.Connections({ securityGroups: props.securityGroups }); this.ipAddressType = props.ipAddressType ?? IpAddressType.IPV4; - if (props.crossZoneEnabled) { this.setAttribute('load_balancing.cross_zone.enabled', 'true'); } + if (props.clientRoutingPolicy) { + this.setAttribute('dns_record.client_routing_policy', props.clientRoutingPolicy); + } + this._enforceSecurityGroupInboundRulesOnPrivateLinkTraffic = props.enforceSecurityGroupInboundRulesOnPrivateLinkTraffic; + } + + public get enforceSecurityGroupInboundRulesOnPrivateLinkTraffic(): string | undefined { + if (this._enforceSecurityGroupInboundRulesOnPrivateLinkTraffic === undefined) return undefined; + return this._enforceSecurityGroupInboundRulesOnPrivateLinkTraffic ? 'on' : 'off'; } /** @@ -465,6 +506,13 @@ export interface INetworkLoadBalancer extends ILoadBalancerV2, ec2.IVpcEndpointS */ readonly ipAddressType?: IpAddressType; + /** + * Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through AWS PrivateLink + * + * @default on + */ + readonly enforceSecurityGroupInboundRulesOnPrivateLinkTraffic?: string; + /** * Add a listener to this load balancer * diff --git a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/shared/base-load-balancer.ts b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/shared/base-load-balancer.ts index d6ccaeeee0507..404895225af4d 100644 --- a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/shared/base-load-balancer.ts +++ b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/shared/base-load-balancer.ts @@ -47,6 +47,20 @@ export interface BaseLoadBalancerProps { * @default false */ readonly deletionProtection?: boolean; + + /** + * Indicates whether cross-zone load balancing is enabled. + * + * @default - false for Network Load Balancers and true for Application Load Balancers. + */ + readonly crossZoneEnabled?: boolean; + + /** + * Indicates whether the load balancer blocks traffic through the Internet Gateway (IGW). + * + * @default - false for internet-facing load balancers and true for internal load balancers + */ + readonly denyAllIgwTraffic?: boolean; } export interface ILoadBalancerV2 extends IResource { @@ -229,6 +243,10 @@ export abstract class BaseLoadBalancer extends Resource { } this.setAttribute('deletion_protection.enabled', baseProps.deletionProtection ? 'true' : 'false'); + if (baseProps.crossZoneEnabled) { this.setAttribute('load_balancing.cross_zone.enabled', 'true'); } + if (baseProps.denyAllIgwTraffic !== undefined) { + this.setAttribute('ipv6.deny_all_igw_traffic', baseProps.denyAllIgwTraffic.toString()); + } this.loadBalancerCanonicalHostedZoneId = resource.attrCanonicalHostedZoneId; this.loadBalancerDnsName = resource.attrDnsName; diff --git a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/test/alb/load-balancer.test.ts b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/test/alb/load-balancer.test.ts index b100a161ab50e..0bc9f98a775c0 100644 --- a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/test/alb/load-balancer.test.ts +++ b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/test/alb/load-balancer.test.ts @@ -82,6 +82,8 @@ describe('tests', () => { http2Enabled: false, idleTimeout: cdk.Duration.seconds(1000), dropInvalidHeaderFields: true, + clientKeepAlive: cdk.Duration.seconds(200), + denyAllIgwTraffic: true, }); // THEN @@ -91,6 +93,10 @@ describe('tests', () => { Key: 'deletion_protection.enabled', Value: 'true', }, + { + Key: 'ipv6.deny_all_igw_traffic', + Value: 'true', + }, { Key: 'routing.http2.enabled', Value: 'false', @@ -103,10 +109,42 @@ describe('tests', () => { Key: 'routing.http.drop_invalid_header_fields.enabled', Value: 'true', }, + { + Key: 'client_keep_alive.seconds', + Value: '200', + }, ], }); }); + test.each([59, 604801])('throw error for invalid clientKeepAlive in seconds', (duration) => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'Stack'); + + // THEN + expect(() => { + new elbv2.ApplicationLoadBalancer(stack, 'LB', { + vpc, + clientKeepAlive: cdk.Duration.seconds(duration), + }); + }).toThrow(`\'clientKeepAlive\' must be between 60 and 604800 seconds. Got: ${duration} seconds`); + }); + + test('throw errer for invalid clientKeepAlive in milliseconds', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'Stack'); + + // THEN + expect(() => { + new elbv2.ApplicationLoadBalancer(stack, 'LB', { + vpc, + clientKeepAlive: cdk.Duration.millis(100), + }); + }).toThrow('\'clientKeepAlive\' must be between 60 and 604800 seconds. Got: 100 milliseconds'); + }); + describe('Desync mitigation mode', () => { test('Defensive', () => { // GIVEN diff --git a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/test/alb/target-group.test.ts b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/test/alb/target-group.test.ts index 7e30c3db10ecb..f94e514fa6746 100644 --- a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/test/alb/target-group.test.ts +++ b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/test/alb/target-group.test.ts @@ -340,7 +340,33 @@ describe('tests', () => { slowStart: badDuration, vpc, }); - }).toThrow(/Slow start duration value must be between 30 and 900 seconds./); + }).toThrow(/Slow start duration value must be between 30 and 900 seconds, or 0 to disable slow start./); + }); + }); + + test('Disable slow start by setting to 0 seconds', () => { + const app = new cdk.App(); + const stack = new cdk.Stack(app, 'Stack'); + const vpc = new ec2.Vpc(stack, 'VPC', {}); + + // WHEN + new elbv2.ApplicationTargetGroup(stack, 'TargetGroup', { + slowStart: cdk.Duration.seconds(0), + vpc, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::TargetGroup', { + TargetGroupAttributes: [ + { + Key: 'slow_start.duration_seconds', + Value: '0', + }, + { + Key: 'stickiness.enabled', + Value: 'false', + }, + ], }); }); diff --git a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/test/nlb/load-balancer.test.ts b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/test/nlb/load-balancer.test.ts index efe1babf4898c..443fe4fbe50cb 100644 --- a/packages/aws-cdk-lib/aws-elasticloadbalancingv2/test/nlb/load-balancer.test.ts +++ b/packages/aws-cdk-lib/aws-elasticloadbalancingv2/test/nlb/load-balancer.test.ts @@ -80,6 +80,8 @@ describe('tests', () => { new elbv2.NetworkLoadBalancer(stack, 'LB', { vpc, crossZoneEnabled: true, + denyAllIgwTraffic: true, + clientRoutingPolicy: elbv2.ClientRoutingPolicy.PARTIAL_AVAILABILITY_ZONE_AFFINITY, }); // THEN @@ -89,6 +91,14 @@ describe('tests', () => { Key: 'load_balancing.cross_zone.enabled', Value: 'true', }, + { + Key: 'ipv6.deny_all_igw_traffic', + Value: 'true', + }, + { + Key: 'dns_record.client_routing_policy', + Value: 'partial_availability_zone_affinity', + }, ]), }); }); @@ -350,6 +360,44 @@ describe('tests', () => { }); }); + test('can set EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic on', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'Stack'); + + // WHEN + new elbv2.NetworkLoadBalancer(stack, 'NLB', { + loadBalancerName: 'myLoadBalancer', + enforceSecurityGroupInboundRulesOnPrivateLinkTraffic: true, + vpc, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { + Name: 'myLoadBalancer', + EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic: 'on', + }); + }); + + test('can set EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic off', () => { + // GIVEN + const stack = new cdk.Stack(); + const vpc = new ec2.Vpc(stack, 'Stack'); + + // WHEN + new elbv2.NetworkLoadBalancer(stack, 'NLB', { + loadBalancerName: 'myLoadBalancer', + enforceSecurityGroupInboundRulesOnPrivateLinkTraffic: false, + vpc, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::ElasticLoadBalancingV2::LoadBalancer', { + Name: 'myLoadBalancer', + EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic: 'off', + }); + }); + test('loadBalancerName unallowed: more than 32 characters', () => { // GIVEN const app = new cdk.App(); diff --git a/packages/aws-cdk-lib/aws-iam/lib/policy.ts b/packages/aws-cdk-lib/aws-iam/lib/policy.ts index 43c3addd72b0f..a8dd67f5fecbf 100644 --- a/packages/aws-cdk-lib/aws-iam/lib/policy.ts +++ b/packages/aws-cdk-lib/aws-iam/lib/policy.ts @@ -79,7 +79,8 @@ export interface PolicyProps { * creating invalid--and hence undeployable--CloudFormation templates. * * In cases where you know the policy must be created and it is actually - * an error if no statements have been added to it, you can set this to `true`. + * an error if no statements have been added to it or it remains unattached to + * an IAM identity, you can set this to `true`. * * @default false */ @@ -96,9 +97,9 @@ export interface PolicyProps { } /** - * The AWS::IAM::Policy resource associates an IAM policy with IAM users, roles, - * or groups. For more information about IAM policies, see [Overview of IAM - * Policies](http://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html) + * The AWS::IAM::Policy resource associates an [inline](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#inline) + * IAM policy with IAM users, roles, or groups. For more information about IAM policies, see + * [Overview of IAM Policies](http://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html) * in the IAM User Guide guide. */ export class Policy extends Resource implements IPolicy, IGrantable { diff --git a/packages/aws-cdk-lib/aws-kms/lib/key.ts b/packages/aws-cdk-lib/aws-kms/lib/key.ts index 1f2c13e0615c7..ba5d33c2988e9 100644 --- a/packages/aws-cdk-lib/aws-kms/lib/key.ts +++ b/packages/aws-cdk-lib/aws-kms/lib/key.ts @@ -262,6 +262,12 @@ abstract class KeyBase extends Resource implements IKey { } const bucketStack = Stack.of(this); const identityStack = Stack.of(grantee.grantPrincipal); + + if (FeatureFlags.of(this).isEnabled(cxapi.KMS_REDUCE_CROSS_ACCOUNT_REGION_POLICY_SCOPE)) { + // if two compared stacks have the same region, this should return 'false' since it's from the + // same region; if two stacks have different region, then compare env.region + return bucketStack.region !== identityStack.region && this.env.region !== identityStack.region; + } return bucketStack.region !== identityStack.region; } @@ -271,6 +277,12 @@ abstract class KeyBase extends Resource implements IKey { } const bucketStack = Stack.of(this); const identityStack = Stack.of(grantee.grantPrincipal); + + if (FeatureFlags.of(this).isEnabled(cxapi.KMS_REDUCE_CROSS_ACCOUNT_REGION_POLICY_SCOPE)) { + // if two compared stacks have the same region, this should return 'false' since it's from the + // same region; if two stacks have different region, then compare env.account + return bucketStack.account !== identityStack.account && this.env.account !== identityStack.account; + } return bucketStack.account !== identityStack.account; } } diff --git a/packages/aws-cdk-lib/aws-kms/test/key.test.ts b/packages/aws-cdk-lib/aws-kms/test/key.test.ts index 9c0ce901dd910..3493c31dff3ac 100644 --- a/packages/aws-cdk-lib/aws-kms/test/key.test.ts +++ b/packages/aws-cdk-lib/aws-kms/test/key.test.ts @@ -2,6 +2,7 @@ import { describeDeprecated } from '@aws-cdk/cdk-build-tools'; import { Match, Template } from '../../assertions'; import * as iam from '../../aws-iam'; import * as cdk from '../../core'; +import * as cxapi from '../../cx-api'; import * as kms from '../lib'; import { KeySpec, KeyUsage } from '../lib'; @@ -81,6 +82,66 @@ describe('key policies', () => { }); }); + test('cross region key with iam role grant', () => { + const app = new cdk.App({ context: { [cxapi.KMS_REDUCE_CROSS_ACCOUNT_REGION_POLICY_SCOPE]: true } }); + const stack = new cdk.Stack(app, 'test-stack', { env: { account: '000000000000', region: 'us-west-2' } }); + const key = kms.Key.fromKeyArn( + stack, + 'Key', + 'arn:aws:kms:eu-north-1:000000000000:key/e3ab59e5-3dc3-4bc4-9c3f-c790231d2287', + ); + + const roleStack = new cdk.Stack(app, 'RoleStack', { + env: { account: '000000000000', region: 'eu-north-1' }, + }); + const role = new iam.Role(roleStack, 'Role', { + assumedBy: new iam.AccountPrincipal('000000000000'), + }); + key.grantEncryptDecrypt(role); + + Template.fromStack(roleStack).hasResourceProperties('AWS::IAM::Policy', { + PolicyDocument: { + Statement: [ + { + Effect: 'Allow', + Resource: 'arn:aws:kms:eu-north-1:000000000000:key/e3ab59e5-3dc3-4bc4-9c3f-c790231d2287', + }, + ], + Version: '2012-10-17', + }, + }); + }); + + test('cross region key with iam role grant when feature flag is disabled', () => { + const app = new cdk.App({ context: { [cxapi.KMS_REDUCE_CROSS_ACCOUNT_REGION_POLICY_SCOPE]: false } }); + const stack = new cdk.Stack(app, 'test-stack', { env: { account: '000000000000', region: 'us-west-2' } }); + const key = kms.Key.fromKeyArn( + stack, + 'Key', + 'arn:aws:kms:eu-north-1:000000000000:key/e3ab59e5-3dc3-4bc4-9c3f-c790231d2287', + ); + + const roleStack = new cdk.Stack(app, 'RoleStack', { + env: { account: '000000000000', region: 'eu-north-1' }, + }); + const role = new iam.Role(roleStack, 'Role', { + assumedBy: new iam.AccountPrincipal('000000000000'), + }); + key.grantEncryptDecrypt(role); + + Template.fromStack(roleStack).hasResourceProperties('AWS::IAM::Policy', { + PolicyDocument: { + Statement: [ + { + Effect: 'Allow', + Resource: '*', + }, + ], + Version: '2012-10-17', + }, + }); + }); + test('can append to the default key policy', () => { const stack = new cdk.Stack(); const statement = new iam.PolicyStatement({ resources: ['*'], actions: ['kms:Put*'] }); diff --git a/packages/aws-cdk-lib/aws-opensearchservice/lib/domain.ts b/packages/aws-cdk-lib/aws-opensearchservice/lib/domain.ts index be08ca406d525..81c7060dd7f2f 100644 --- a/packages/aws-cdk-lib/aws-opensearchservice/lib/domain.ts +++ b/packages/aws-cdk-lib/aws-opensearchservice/lib/domain.ts @@ -32,8 +32,7 @@ export interface CapacityConfig { /** * The hardware configuration of the computer that hosts the dedicated master * node, such as `m3.medium.search`. For valid values, see [Supported - * Instance Types] - * (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-instance-types.html) + * Instance Types](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-instance-types.html) * in the Amazon OpenSearch Service Developer Guide. * * @default - r5.large.search @@ -66,8 +65,8 @@ export interface CapacityConfig { /** * The instance type for your UltraWarm node, such as `ultrawarm1.medium.search`. - * For valid values, see [UltraWarm Storage Limits] - * (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/limits.html#limits-ultrawarm) + * For valid values, see [UltraWarm Storage + * Limits](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/limits.html#limits-ultrawarm) * in the Amazon OpenSearch Service Developer Guide. * * @default - ultrawarm1.medium.search @@ -76,8 +75,8 @@ export interface CapacityConfig { /** * Indicates whether Multi-AZ with Standby deployment option is enabled. - * For more information, see [Multi-AZ with Standby] - * (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html#managedomains-za-standby) + * For more information, see [Multi-AZ with + * Standby](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html#managedomains-za-standby) * * @default - no multi-az with standby */ @@ -95,8 +94,7 @@ export interface ZoneAwarenessConfig { * in the same region to prevent data loss and minimize downtime in the event * of node or data center failure. Don't enable zone awareness if your cluster * has no replica index shards or is a single-node cluster. For more information, - * see [Configuring a Multi-AZ Domain] - * (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html) + * see [Configuring a Multi-AZ Domain](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html) * in the Amazon OpenSearch Service Developer Guide. * * @default - false @@ -115,8 +113,7 @@ export interface ZoneAwarenessConfig { /** * The configurations of Amazon Elastic Block Store (Amazon EBS) volumes that * are attached to data nodes in the Amazon OpenSearch Service domain. For more information, see - * [Amazon EBS] - * (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html) + * [Amazon EBS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html) * in the Amazon Elastic Compute Cloud Developer Guide. */ export interface EbsOptions { @@ -149,8 +146,7 @@ export interface EbsOptions { * The size (in GiB) of the EBS volume for each data node. The minimum and * maximum size of an EBS volume depends on the EBS volume type and the * instance type to which it is attached. For valid values, see - * [EBS volume size limits] - * (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/limits.html#ebsresource) + * [EBS volume size limits](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/limits.html#ebsresource) * in the Amazon OpenSearch Service Developer Guide. * * @default 10 @@ -1724,6 +1720,7 @@ export class Domain extends DomainBase implements IDomain, ec2.IConnectable { // Setup logging const logGroups: logs.ILogGroup[] = []; + const logPublishing: Record = {}; if (props.logging?.slowSearchLogEnabled) { this.slowSearchLogGroup = props.logging.slowSearchLogGroup ?? @@ -1732,6 +1729,14 @@ export class Domain extends DomainBase implements IDomain, ec2.IConnectable { }); logGroups.push(this.slowSearchLogGroup); + logPublishing.SEARCH_SLOW_LOGS = { + enabled: true, + cloudWatchLogsLogGroupArn: this.slowSearchLogGroup.logGroupArn, + }; + } else if (props.logging?.slowSearchLogEnabled === false) { + logPublishing.SEARCH_SLOW_LOGS = { + enabled: false, + }; }; if (props.logging?.slowIndexLogEnabled) { @@ -1741,6 +1746,14 @@ export class Domain extends DomainBase implements IDomain, ec2.IConnectable { }); logGroups.push(this.slowIndexLogGroup); + logPublishing.INDEX_SLOW_LOGS = { + enabled: true, + cloudWatchLogsLogGroupArn: this.slowIndexLogGroup.logGroupArn, + }; + } else if (props.logging?.slowIndexLogEnabled === false) { + logPublishing.INDEX_SLOW_LOGS = { + enabled: false, + }; }; if (props.logging?.appLogEnabled) { @@ -1750,6 +1763,14 @@ export class Domain extends DomainBase implements IDomain, ec2.IConnectable { }); logGroups.push(this.appLogGroup); + logPublishing.ES_APPLICATION_LOGS = { + enabled: true, + cloudWatchLogsLogGroupArn: this.appLogGroup.logGroupArn, + }; + } else if (props.logging?.appLogEnabled === false) { + logPublishing.ES_APPLICATION_LOGS = { + enabled: false, + }; }; if (props.logging?.auditLogEnabled) { @@ -1759,6 +1780,14 @@ export class Domain extends DomainBase implements IDomain, ec2.IConnectable { }); logGroups.push(this.auditLogGroup); + logPublishing.AUDIT_LOGS = { + enabled: true, + cloudWatchLogsLogGroupArn: this.auditLogGroup?.logGroupArn, + }; + } else if (props.logging?.auditLogEnabled === false) { + logPublishing.AUDIT_LOGS = { + enabled: false, + }; }; let logGroupResourcePolicy: LogGroupResourcePolicy | null = null; @@ -1779,36 +1808,6 @@ export class Domain extends DomainBase implements IDomain, ec2.IConnectable { }); } - const logPublishing: Record = {}; - - if (this.appLogGroup) { - logPublishing.ES_APPLICATION_LOGS = { - enabled: true, - cloudWatchLogsLogGroupArn: this.appLogGroup.logGroupArn, - }; - } - - if (this.slowSearchLogGroup) { - logPublishing.SEARCH_SLOW_LOGS = { - enabled: true, - cloudWatchLogsLogGroupArn: this.slowSearchLogGroup.logGroupArn, - }; - } - - if (this.slowIndexLogGroup) { - logPublishing.INDEX_SLOW_LOGS = { - enabled: true, - cloudWatchLogsLogGroupArn: this.slowIndexLogGroup.logGroupArn, - }; - } - - if (this.auditLogGroup) { - logPublishing.AUDIT_LOGS = { - enabled: this.auditLogGroup != null, - cloudWatchLogsLogGroupArn: this.auditLogGroup?.logGroupArn, - }; - } - let customEndpointCertificate: acm.ICertificate | undefined; if (props.customEndpoint) { if (props.customEndpoint.certificate) { diff --git a/packages/aws-cdk-lib/aws-opensearchservice/lib/version.ts b/packages/aws-cdk-lib/aws-opensearchservice/lib/version.ts index 739aa5cad3476..d5934627ab938 100644 --- a/packages/aws-cdk-lib/aws-opensearchservice/lib/version.ts +++ b/packages/aws-cdk-lib/aws-opensearchservice/lib/version.ts @@ -90,7 +90,10 @@ export class EngineVersion { /** AWS OpenSearch 2.9 */ public static readonly OPENSEARCH_2_9 = EngineVersion.openSearch('2.9'); - /** AWS OpenSearch 2.10 */ + /** + * AWS OpenSearch 2.10 + * @deprecated use latest version of the OpenSearch engine + **/ public static readonly OPENSEARCH_2_10 = EngineVersion.openSearch('2.10'); /** AWS OpenSearch 2.11 */ diff --git a/packages/aws-cdk-lib/aws-opensearchservice/test/domain.test.ts b/packages/aws-cdk-lib/aws-opensearchservice/test/domain.test.ts index 4c10e6868b70c..4c7796fe3e5ea 100644 --- a/packages/aws-cdk-lib/aws-opensearchservice/test/domain.test.ts +++ b/packages/aws-cdk-lib/aws-opensearchservice/test/domain.test.ts @@ -846,6 +846,90 @@ each([testedOpenSearchVersions]).describe('log groups', (engineVersion) => { }, }); }); + + test('can disable application logs', () => { + new Domain(stack, 'Domain1', { + version: engineVersion, + logging: { + appLogEnabled: false, + }, + }); + + Template.fromStack(stack).resourceCountIs('Custom::CloudwatchLogResourcePolicy', 0); + Template.fromStack(stack).hasResourceProperties('AWS::OpenSearchService::Domain', { + LogPublishingOptions: { + ES_APPLICATION_LOGS: { + Enabled: false, + }, + AUDIT_LOGS: Match.absent(), + SEARCH_SLOW_LOGS: Match.absent(), + INDEX_SLOW_LOGS: Match.absent(), + }, + }); + }); + + test('can disable audit logs', () => { + new Domain(stack, 'Domain1', { + version: engineVersion, + logging: { + auditLogEnabled: false, + }, + }); + + Template.fromStack(stack).resourceCountIs('Custom::CloudwatchLogResourcePolicy', 0); + Template.fromStack(stack).hasResourceProperties('AWS::OpenSearchService::Domain', { + LogPublishingOptions: { + ES_APPLICATION_LOGS: Match.absent(), + AUDIT_LOGS: { + Enabled: false, + }, + SEARCH_SLOW_LOGS: Match.absent(), + INDEX_SLOW_LOGS: Match.absent(), + }, + }); + }); + + test('can disable slow search logs', () => { + new Domain(stack, 'Domain1', { + version: engineVersion, + logging: { + slowSearchLogEnabled: false, + }, + }); + + Template.fromStack(stack).resourceCountIs('Custom::CloudwatchLogResourcePolicy', 0); + Template.fromStack(stack).hasResourceProperties('AWS::OpenSearchService::Domain', { + LogPublishingOptions: { + ES_APPLICATION_LOGS: Match.absent(), + AUDIT_LOGS: Match.absent(), + SEARCH_SLOW_LOGS: { + Enabled: false, + }, + INDEX_SLOW_LOGS: Match.absent(), + }, + }); + }); + + test('can disable slow index logs', () => { + new Domain(stack, 'Domain1', { + version: engineVersion, + logging: { + slowIndexLogEnabled: false, + }, + }); + + Template.fromStack(stack).resourceCountIs('Custom::CloudwatchLogResourcePolicy', 0); + Template.fromStack(stack).hasResourceProperties('AWS::OpenSearchService::Domain', { + LogPublishingOptions: { + ES_APPLICATION_LOGS: Match.absent(), + AUDIT_LOGS: Match.absent(), + SEARCH_SLOW_LOGS: Match.absent(), + INDEX_SLOW_LOGS: { + Enabled: false, + }, + }, + }); + }); }); each(testedOpenSearchVersions).describe('grants', (engineVersion) => { diff --git a/packages/aws-cdk-lib/aws-rds/README.md b/packages/aws-cdk-lib/aws-rds/README.md index 20605a5463abd..f1c677dc434da 100644 --- a/packages/aws-cdk-lib/aws-rds/README.md +++ b/packages/aws-cdk-lib/aws-rds/README.md @@ -972,7 +972,9 @@ new rds.DatabaseCluster(this, 'dbcluster', { ## Creating a Database Proxy Amazon RDS Proxy sits between your application and your relational database to efficiently manage -connections to the database and improve scalability of the application. Learn more about at [Amazon RDS Proxy](https://aws.amazon.com/rds/proxy/) +connections to the database and improve scalability of the application. Learn more about at [Amazon RDS Proxy](https://aws.amazon.com/rds/proxy/). + +RDS Proxy is supported for MySQL, MariaDB, Postgres, and SQL Server. The following code configures an RDS Proxy for a `DatabaseInstance`. @@ -1189,8 +1191,6 @@ const cluster = new rds.DatabaseCluster(this, 'Cluster', { enableDataApi: true, // Optional - will be automatically set if you call grantDataApiAccess() }); cluster.grantDataApiAccess(fn); -// It is necessary to grant the function access to the secret associated with the cluster for `DatabaseCluster`. -cluster.secret!.grantRead(fn); ``` **Note**: To invoke the Data API, the resource will need to read the secret associated with the cluster. diff --git a/packages/aws-cdk-lib/aws-rds/lib/cluster-ref.ts b/packages/aws-cdk-lib/aws-rds/lib/cluster-ref.ts index a55a0c4f52396..1785548c82af4 100644 --- a/packages/aws-cdk-lib/aws-rds/lib/cluster-ref.ts +++ b/packages/aws-cdk-lib/aws-rds/lib/cluster-ref.ts @@ -137,4 +137,11 @@ export interface DatabaseClusterAttributes { * @default - the imported Cluster's engine is unknown */ readonly engine?: IClusterEngine; + + /** + * The secret attached to the database cluster + * + * @default - the imported Cluster's secret is unknown + */ + readonly secret?: secretsmanager.ISecret; } diff --git a/packages/aws-cdk-lib/aws-rds/lib/cluster.ts b/packages/aws-cdk-lib/aws-rds/lib/cluster.ts index 41bcc57d35a6c..5119f57a3dec5 100644 --- a/packages/aws-cdk-lib/aws-rds/lib/cluster.ts +++ b/packages/aws-cdk-lib/aws-rds/lib/cluster.ts @@ -467,6 +467,11 @@ export abstract class DatabaseClusterBase extends Resource implements IDatabaseC protected abstract enableDataApi?: boolean; + /** + * Secret in SecretsManager to store the database cluster user credentials. + */ + public abstract readonly secret?: secretsmanager.ISecret; + /** * The ARN of the cluster */ @@ -521,6 +526,7 @@ export abstract class DatabaseClusterBase extends Resource implements IDatabaseC } this.enableDataApi = true; + this.secret?.grantRead(grantee); return iam.Grant.addToPrincipal({ actions: DATA_API_ACTIONS, grantee, @@ -546,11 +552,6 @@ abstract class DatabaseClusterNew extends DatabaseClusterBase { private readonly domainId?: string; private readonly domainRole?: iam.IRole; - /** - * Secret in SecretsManager to store the database cluster user credentials. - */ - public abstract readonly secret?: secretsmanager.ISecret; - /** * The VPC network to place the cluster in. */ @@ -964,6 +965,7 @@ class ImportedDatabaseCluster extends DatabaseClusterBase implements IDatabaseCl public readonly clusterIdentifier: string; public readonly connections: ec2.Connections; public readonly engine?: IClusterEngine; + public readonly secret?: secretsmanager.ISecret; private readonly _clusterResourceIdentifier?: string; private readonly _clusterEndpoint?: Endpoint; @@ -985,6 +987,7 @@ class ImportedDatabaseCluster extends DatabaseClusterBase implements IDatabaseCl defaultPort, }); this.engine = attrs.engine; + this.secret = attrs.secret; this._clusterEndpoint = (attrs.clusterEndpointAddress && attrs.port) ? new Endpoint(attrs.clusterEndpointAddress, attrs.port) : undefined; this._clusterReadEndpoint = (attrs.readerEndpointAddress && attrs.port) ? new Endpoint(attrs.readerEndpointAddress, attrs.port) : undefined; diff --git a/packages/aws-cdk-lib/aws-rds/lib/instance-engine.ts b/packages/aws-cdk-lib/aws-rds/lib/instance-engine.ts index 3774347e21e61..d705b9494a4fd 100644 --- a/packages/aws-cdk-lib/aws-rds/lib/instance-engine.ts +++ b/packages/aws-cdk-lib/aws-rds/lib/instance-engine.ts @@ -570,6 +570,7 @@ class MariaDbInstanceEngine extends InstanceEngineBase { majorVersion: version.mariaDbMajorVersion, } : undefined, + engineFamily: 'MYSQL', }); } diff --git a/packages/aws-cdk-lib/aws-rds/test/cluster.test.ts b/packages/aws-cdk-lib/aws-rds/test/cluster.test.ts index 7563065fd0f10..b3a67928987b5 100644 --- a/packages/aws-cdk-lib/aws-rds/test/cluster.test.ts +++ b/packages/aws-cdk-lib/aws-rds/test/cluster.test.ts @@ -4249,6 +4249,16 @@ describe('cluster', () => { Template.fromStack(stack).hasResourceProperties('AWS::IAM::Policy', { PolicyDocument: { Statement: [ + { + Action: [ + 'secretsmanager:GetSecretValue', + 'secretsmanager:DescribeSecret', + ], + Effect: 'Allow', + Resource: { + Ref: 'DatabaseSecretAttachmentE5D1B020', + }, + }, { Action: [ 'rds-data:BatchExecuteStatement', diff --git a/packages/aws-cdk-lib/aws-rds/test/proxy.test.ts b/packages/aws-cdk-lib/aws-rds/test/proxy.test.ts index 970f13b09908d..7c1d76a68a416 100644 --- a/packages/aws-cdk-lib/aws-rds/test/proxy.test.ts +++ b/packages/aws-cdk-lib/aws-rds/test/proxy.test.ts @@ -79,6 +79,67 @@ describe('proxy', () => { }); }); + test('create a DB proxy for a MariaDB instance', () => { + // GIVEN + const instance = new rds.DatabaseInstance(stack, 'Instance', { + engine: rds.DatabaseInstanceEngine.mariaDb({ + version: rds.MariaDbEngineVersion.VER_10_6_16, + }), + vpc, + }); + + // WHEN + new rds.DatabaseProxy(stack, 'Proxy', { + proxyTarget: rds.ProxyTarget.fromInstance(instance), + secrets: [instance.secret!], + vpc, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::RDS::DBProxy', { + Auth: [ + { + AuthScheme: 'SECRETS', + IAMAuth: 'DISABLED', + SecretArn: { + Ref: 'InstanceSecretAttachment83BEE581', + }, + }, + ], + DBProxyName: 'Proxy', + EngineFamily: 'MYSQL', + RequireTLS: true, + RoleArn: { + 'Fn::GetAtt': [ + 'ProxyIAMRole2FE8AB0F', + 'Arn', + ], + }, + VpcSubnetIds: [ + { + Ref: 'VPCPrivateSubnet1Subnet8BCA10E0', + }, + { + Ref: 'VPCPrivateSubnet2SubnetCFCDAA7A', + }, + ], + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::RDS::DBProxyTargetGroup', { + DBProxyName: { + Ref: 'ProxyCB0DFB71', + }, + ConnectionPoolConfigurationInfo: {}, + DBInstanceIdentifiers: [ + { + Ref: 'InstanceC1063A87', + }, + ], + TargetGroupName: 'default', + }); + }); + test('create a DB proxy from a cluster', () => { // GIVEN const cluster = new rds.DatabaseCluster(stack, 'Database', { @@ -192,8 +253,8 @@ describe('proxy', () => { instanceEndpointAddress: 'instance-address', port: 5432, securityGroups: [], - engine: rds.DatabaseInstanceEngine.mariaDb({ - version: rds.MariaDbEngineVersion.VER_10_0_24, + engine: rds.DatabaseInstanceEngine.oracleEe({ + version: rds.OracleEngineVersion.VER_21, }), }); @@ -203,7 +264,7 @@ describe('proxy', () => { vpc, secrets: [new secretsmanager.Secret(stack, 'Secret')], }); - }).toThrow(/RDS proxies require an engine family to be specified on the database cluster or instance. No family specified for engine 'mariadb-10\.0\.24'/); + }).toThrow(/RDS proxies require an engine family to be specified on the database cluster or instance. No family specified for engine 'oracle-ee-21'/); }); test('correctly creates a proxy for an imported Cluster if its engine is known', () => { diff --git a/packages/aws-cdk-lib/aws-s3/lib/notifications-resource/notifications-resource-handler.ts b/packages/aws-cdk-lib/aws-s3/lib/notifications-resource/notifications-resource-handler.ts index 9c969b8b06bca..4c4968f1558ec 100644 --- a/packages/aws-cdk-lib/aws-s3/lib/notifications-resource/notifications-resource-handler.ts +++ b/packages/aws-cdk-lib/aws-s3/lib/notifications-resource/notifications-resource-handler.ts @@ -98,7 +98,7 @@ export class NotificationsResourceHandler extends Construct { Code: { ZipFile: handlerSourceWithoutComments }, Handler: 'index.handler', Role: this.role.roleArn, - Runtime: 'python3.9', + Runtime: 'python3.11', Timeout: 300, }, }); diff --git a/packages/aws-cdk-lib/aws-s3/test/notification.test.ts b/packages/aws-cdk-lib/aws-s3/test/notification.test.ts index 225fb4a6991f7..fb5b037d74c1d 100644 --- a/packages/aws-cdk-lib/aws-s3/test/notification.test.ts +++ b/packages/aws-cdk-lib/aws-s3/test/notification.test.ts @@ -182,7 +182,7 @@ describe('notification', () => { }); Template.fromStack(stack).hasResourceProperties('AWS::Lambda::Function', { - Runtime: 'python3.9', + Runtime: 'python3.11', }); }); }); diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md b/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md index 17ab14275f6bb..789529547b6d6 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/README.md @@ -61,8 +61,12 @@ This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aw - [EventBridge](#eventbridge) - [Put Events](#put-events) - [Glue](#glue) + - [Start Job Run](#start-job-run) + - [Start Crawler Run](#startcrawlerrun) - [Glue DataBrew](#glue-databrew) + - [Start Job Run](#start-job-run-1) - [Lambda](#lambda) + - [Invoke](#invoke) - [SageMaker](#sagemaker) - [Create Training Job](#create-training-job) - [Create Transform Job](#create-transform-job) @@ -71,10 +75,12 @@ This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aw - [Create Model](#create-model) - [Update Endpoint](#update-endpoint) - [SNS](#sns) + - [Publish](#publish) - [Step Functions](#step-functions) - [Start Execution](#start-execution) - [Invoke Activity](#invoke-activity) - [SQS](#sqs) + - [Send Message](#send-message) ## Paths @@ -1119,6 +1125,8 @@ new tasks.GlueStartCrawlerRun(this, 'Task2', { Step Functions supports [AWS Glue DataBrew](https://docs.aws.amazon.com/step-functions/latest/dg/connect-databrew.html) through the service integration pattern. +### Start Job Run + You can call the [`StartJobRun`](https://docs.aws.amazon.com/databrew/latest/dg/API_StartJobRun.html) API from a `Task` state. ```ts @@ -1129,6 +1137,10 @@ new tasks.GlueDataBrewStartJobRun(this, 'Task', { ## Lambda +Step Functions supports [AWS Lambda](https://docs.aws.amazon.com/step-functions/latest/dg/connect-lambda.html) through the service integration pattern. + +### Invoke + [Invoke](https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html) a Lambda function. You can specify the input to your Lambda function through the `payload` attribute. @@ -1363,6 +1375,8 @@ new tasks.SageMakerUpdateEndpoint(this, 'SagemakerEndpoint', { Step Functions supports [Amazon SNS](https://docs.aws.amazon.com/step-functions/latest/dg/connect-sns.html) through the service integration pattern. +### Publish + You can call the [`Publish`](https://docs.aws.amazon.com/sns/latest/api/API_Publish.html) API from a `Task` state to publish to an SNS topic. ```ts @@ -1404,6 +1418,8 @@ const task2 = new tasks.SnsPublish(this, 'Publish2', { ## Step Functions +Step Functions supports [AWS Step Functions](https://docs.aws.amazon.com/step-functions/latest/dg/connect-stepfunctions.html) through the service integration pattern. + ### Start Execution You can manage [AWS Step Functions](https://docs.aws.amazon.com/step-functions/latest/dg/connect-stepfunctions.html) executions. @@ -1499,6 +1515,8 @@ new tasks.StepFunctionsInvokeActivity(this, 'Submit Job', { Step Functions supports [Amazon SQS](https://docs.aws.amazon.com/step-functions/latest/dg/connect-sqs.html) +### Send Message + You can call the [`SendMessage`](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html) API from a `Task` state to send a message to an SQS queue. diff --git a/packages/aws-cdk-lib/aws-synthetics/lib/runtime.ts b/packages/aws-cdk-lib/aws-synthetics/lib/runtime.ts index b2b5207e6235b..9c4acfa496bfa 100644 --- a/packages/aws-cdk-lib/aws-synthetics/lib/runtime.ts +++ b/packages/aws-cdk-lib/aws-synthetics/lib/runtime.ts @@ -25,9 +25,12 @@ export class Runtime { /** * `syn-nodejs-puppeteer-3.5` includes the following: * - Lambda runtime Node.js 14.x - * - Puppeteer-core version 10.1.0 + * - Puppeteer-core version 5.5.0 * - Chromium version 92.0.4512 * + * New features: + * - **Updated dependencies**: The only new features in this runtime are the updated dependencies. + * * @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. */ @@ -36,7 +39,7 @@ export class Runtime { /** * `syn-nodejs-puppeteer-3.6` includes the following: * - Lambda runtime Node.js 14.x - * - Puppeteer-core version 10.1.0 + * - Puppeteer-core version 5.5.0 * - 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 @@ -47,7 +50,7 @@ export class Runtime { /** * `syn-nodejs-puppeteer-3.7` includes the following: * - Lambda runtime Node.js 14.x - * - Puppeteer-core version 10.1.0 + * - Puppeteer-core version 5.5.0 * - Chromium version 92.0.4512 * * New Features: @@ -98,6 +101,7 @@ export class Runtime { * - **Dependency upgrades**: The Node.js dependency is updated to 16.x. * * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-4.0 + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS Puppeteer runtime. */ public static readonly SYNTHETICS_NODEJS_PUPPETEER_4_0 = new Runtime('syn-nodejs-puppeteer-4.0', RuntimeFamily.NODEJS); @@ -111,6 +115,7 @@ export class Runtime { * - **Dependency upgrade**: The Puppeteer-core version is updated to 19.7.0. The Chromium version is upgraded to 111.0.5563.146. * * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-5.0 + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS Puppeteer runtime. */ public static readonly SYNTHETICS_NODEJS_PUPPETEER_5_0 = new Runtime('syn-nodejs-puppeteer-5.0', RuntimeFamily.NODEJS); @@ -124,6 +129,7 @@ export class Runtime { * - **Bug fix**: This runtime fixes a bug in `syn-nodejs-puppeteer-5.0` where the HAR files created by the canaries were missing request headers. * * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-5.1 + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS Puppeteer runtime. */ public static readonly SYNTHETICS_NODEJS_PUPPETEER_5_1 = new Runtime('syn-nodejs-puppeteer-5.1', RuntimeFamily.NODEJS); @@ -153,6 +159,7 @@ export class Runtime { * - **Bug fix**: Clean up core dump generated when Chromium crashes during a canary run. * * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-6.0 + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS Puppeteer runtime. */ public static readonly SYNTHETICS_NODEJS_PUPPETEER_6_0 = new Runtime('syn-nodejs-puppeteer-6.0', RuntimeFamily.NODEJS); @@ -165,9 +172,10 @@ export class Runtime { * 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. + * - **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 {@link https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_CanaryPermissions.html | 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 + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS Puppeteer runtime. */ public static readonly SYNTHETICS_NODEJS_PUPPETEER_6_1 = new Runtime('syn-nodejs-puppeteer-6.1', RuntimeFamily.NODEJS); @@ -186,6 +194,19 @@ export class Runtime { */ public static readonly SYNTHETICS_NODEJS_PUPPETEER_6_2 = new Runtime('syn-nodejs-puppeteer-6.2', RuntimeFamily.NODEJS); + /** + * `syn-nodejs-puppeteer-7.0` includes the following: + * - Lambda runtime Node.js 18.x + * - Puppeteer-core version 21.9.0 + * - Chromium version 121.0.6167.139 + * + * New Features: + * - **Updated versions of the bundled libraries in Puppeteer and Chromium**: The Puppeteer and Chromium dependencies are updated to new versions. + * + * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-7.0 + */ + public static readonly SYNTHETICS_NODEJS_PUPPETEER_7_0 = new Runtime('syn-nodejs-puppeteer-7.0', RuntimeFamily.NODEJS); + /** * `syn-python-selenium-1.0` includes the following: * - Lambda runtime Python 3.8 @@ -193,6 +214,7 @@ export class Runtime { * - Chromium version 83.0.4103.0 * * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-1.0 + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python Selenium runtime. */ public static readonly SYNTHETICS_PYTHON_SELENIUM_1_0 = new Runtime('syn-python-selenium-1.0', RuntimeFamily.PYTHON); @@ -209,6 +231,7 @@ export class Runtime { * - **Cross-Region artifact buckets**: A canary can store its artifacts in an Amazon S3 bucket in a different Region. * * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-1.1 + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python Selenium runtime. */ public static readonly SYNTHETICS_PYTHON_SELENIUM_1_1 = new Runtime('syn-python-selenium-1.1', RuntimeFamily.PYTHON); @@ -222,6 +245,7 @@ export class Runtime { * - **Updated dependencies**: The only new features in this runtime are the updated dependencies. * * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-1.2 + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python Selenium runtime. */ public static readonly SYNTHETICS_PYTHON_SELENIUM_1_2 = new Runtime('syn-python-selenium-1.2', RuntimeFamily.PYTHON); @@ -235,6 +259,7 @@ export class Runtime { * - **More precise timestamps**: The start time and stop time of canary runs are now precise to the millisecond. * * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-1.3 + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python Selenium runtime. */ public static readonly SYNTHETICS_PYTHON_SELENIUM_1_3 = new Runtime('syn-python-selenium-1.3', RuntimeFamily.PYTHON); @@ -251,7 +276,9 @@ export class Runtime { * Bug fixes: * - **Timestamp added**: A timestamp has been added to canary logs. * - **Session re-use**: A bug was fixed so that canaries are now prevented from reusing the session from their previous canary run. + * * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-2.0 + * @deprecated Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python Selenium runtime. */ public static readonly SYNTHETICS_PYTHON_SELENIUM_2_0 = new Runtime('syn-python-selenium-2.0', RuntimeFamily.PYTHON); @@ -268,6 +295,19 @@ export class Runtime { */ public static readonly SYNTHETICS_PYTHON_SELENIUM_2_1 = new Runtime('syn-python-selenium-2.1', RuntimeFamily.PYTHON); + /** + * `syn-python-selenium-3.0` includes the following: + * - Lambda runtime Python 3.8 + * - Selenium version 4.15.1 + * - Chromium version 121.0.6167.139 + * + * New Features: + * - **Updated versions of the bundled libraries in Chromium**: The Chromium dependency is updated to a new version. + * + * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-3.0 + */ + public static readonly SYNTHETICS_PYTHON_SELENIUM_3_0 = new Runtime('syn-python-selenium-3.0', RuntimeFamily.PYTHON); + /** * @param name The name of the runtime version * @param family The Lambda runtime family diff --git a/packages/aws-cdk-lib/awslint.json b/packages/aws-cdk-lib/awslint.json index 91782293bdb5f..3e0a4fe6f0cb7 100644 --- a/packages/aws-cdk-lib/awslint.json +++ b/packages/aws-cdk-lib/awslint.json @@ -306,6 +306,7 @@ "docs-public-apis:aws-cdk-lib.aws_ec2.GatewayVpcEndpoint.fromGatewayVpcEndpointId", "docs-public-apis:aws-cdk-lib.aws_ec2.GatewayVpcEndpointAwsService.DYNAMODB", "docs-public-apis:aws-cdk-lib.aws_ec2.GatewayVpcEndpointAwsService.S3", + "docs-public-apis:aws-cdk-lib.aws_ec2.GatewayVpcEndpointAwsService.S3_EXPRESS", "docs-public-apis:aws-cdk-lib.aws_ec2.InstanceType.sameInstanceClassAs", "docs-public-apis:aws-cdk-lib.aws_ec2.InterfaceVpcEndpointAwsService.*", "docs-public-apis:aws-cdk-lib.aws_ec2.LogFormat.value", diff --git a/packages/aws-cdk-lib/core/lib/duration.ts b/packages/aws-cdk-lib/core/lib/duration.ts index 9e32fbb89d391..24e7b1ca0577b 100644 --- a/packages/aws-cdk-lib/core/lib/duration.ts +++ b/packages/aws-cdk-lib/core/lib/duration.ts @@ -62,6 +62,13 @@ export class Duration { /** * Parse a period formatted according to the ISO 8601 standard * + * Days are the largest ISO duration supported, i.e., + * weeks, months, and years are not supported. + * + * @example + * // This represents 1 day, 2 hours, 3 minutes, 4 seconds, and 567 milliseconds. + * 'P1DT2H3M4.567S' + * * @see https://www.iso.org/standard/70907.html * @param duration an ISO-formatted duration to be parsed. * @returns the parsed `Duration`. diff --git a/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md b/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md index 86bb8373fa803..0c39405d31b7e 100644 --- a/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md +++ b/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md @@ -65,7 +65,8 @@ Flags come in three types: | [@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. | 2.127.0 | (default) | -| [@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2](#aws-cdkaws-codepipelinedefaultpipelinetypetov2) | Enables Pipeline to set the default pipeline type to V2. | V2NEXT | (default) | +| [@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2](#aws-cdkaws-codepipelinedefaultpipelinetypetov2) | Enables Pipeline to set the default pipeline type to V2. | 2.133.0 | (default) | +| [@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope](#aws-cdkaws-kmsreducecrossaccountregionpolicyscope) | When enabled, IAM Policy created from KMS key grant will reduce the resource scope to this key only. | V2NEXT | (fix) | @@ -122,7 +123,8 @@ The following json shows the current recommended set of flags, as `cdk init` wou "@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource": true, "@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction": true, "@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse": true, - "@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2": true + "@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2": true, + "@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope": true } } ``` @@ -1244,9 +1246,23 @@ construct, the construct automatically defaults the value of this property to `P | Since | Default | Recommended | | ----- | ----- | ----- | | (not in v1) | | | -| V2NEXT | `false` | `true` | +| 2.133.0 | `false` | `true` | **Compatibility with old behavior:** Pass `pipelineType: PipelineType.V1` to `Pipeline` construct to restore the previous behavior. +### @aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope + +*When enabled, IAM Policy created from KMS key grant will reduce the resource scope to this key only.* (fix) + +When this feature flag is enabled and calling KMS key grant method, the created IAM policy will reduce the resource scope from +'*' to this specific granting KMS key. + + +| Since | Default | Recommended | +| ----- | ----- | ----- | +| (not in v1) | | | +| V2NEXT | `false` | `true` | + + diff --git a/packages/aws-cdk-lib/cx-api/README.md b/packages/aws-cdk-lib/cx-api/README.md index 394a47009b24d..cdbd86f3ae08e 100644 --- a/packages/aws-cdk-lib/cx-api/README.md +++ b/packages/aws-cdk-lib/cx-api/README.md @@ -292,3 +292,20 @@ _cdk.json_ } } ``` + +* `@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope` + +Reduce resource scope of the IAM Policy created from KMS key grant to granting key only. + +When this feature flag is enabled and calling KMS key grant method, the created IAM policy will reduce the resource scope from +'*' to this specific granting KMS key. + +_cdk.json_ + +```json +{ + "context": { + "@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope": true + } +} +``` diff --git a/packages/aws-cdk-lib/cx-api/lib/features.ts b/packages/aws-cdk-lib/cx-api/lib/features.ts index 28b15de29a57c..2d76033fb0a5f 100644 --- a/packages/aws-cdk-lib/cx-api/lib/features.ts +++ b/packages/aws-cdk-lib/cx-api/lib/features.ts @@ -100,6 +100,7 @@ export const CODECOMMIT_SOURCE_ACTION_DEFAULT_BRANCH_NAME = '@aws-cdk/aws-codepi export const LAMBDA_PERMISSION_LOGICAL_ID_FOR_LAMBDA_ACTION = '@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction'; export const CODEPIPELINE_CROSS_ACCOUNT_KEYS_DEFAULT_VALUE_TO_FALSE = '@aws-cdk/aws-codepipeline:crossAccountKeysDefaultValueToFalse'; export const CODEPIPELINE_DEFAULT_PIPELINE_TYPE_TO_V2 = '@aws-cdk/aws-codepipeline:defaultPipelineTypeToV2'; +export const KMS_REDUCE_CROSS_ACCOUNT_REGION_POLICY_SCOPE = '@aws-cdk/aws-kms:reduceCrossAccountRegionPolicyScope'; export const FLAGS: Record = { ////////////////////////////////////////////////////////////////////// @@ -1017,10 +1018,22 @@ export const FLAGS: Record = { When this feature flag is enabled, and the \`pipelineType\` property is not provided in a \`Pipeline\` construct, the construct automatically defaults the value of this property to \`PipelineType.V2\`. `, - introducedIn: { v2: 'V2NEXT' }, + introducedIn: { v2: '2.133.0' }, recommendedValue: true, compatibilityWithOldBehaviorMd: 'Pass `pipelineType: PipelineType.V1` to `Pipeline` construct to restore the previous behavior.', }, + + ////////////////////////////////////////////////////////////////////// + [KMS_REDUCE_CROSS_ACCOUNT_REGION_POLICY_SCOPE]: { + type: FlagType.BugFix, + summary: 'When enabled, IAM Policy created from KMS key grant will reduce the resource scope to this key only.', + detailsMd: ` + When this feature flag is enabled and calling KMS key grant method, the created IAM policy will reduce the resource scope from + '*' to this specific granting KMS key. + `, + introducedIn: { v2: 'V2NEXT' }, + recommendedValue: true, + }, }; const CURRENT_MV = 'v2'; diff --git a/packages/aws-cdk-lib/package.json b/packages/aws-cdk-lib/package.json index 994e5afd0eac6..59aaa956a40c1 100644 --- a/packages/aws-cdk-lib/package.json +++ b/packages/aws-cdk-lib/package.json @@ -135,7 +135,7 @@ "mime-types": "^2.1.35" }, "devDependencies": { - "@aws-cdk/aws-service-spec": "^0.0.53", + "@aws-cdk/aws-service-spec": "^0.0.56", "@aws-cdk/cdk-build-tools": "0.0.0", "@aws-cdk/custom-resource-handlers": "0.0.0", "@aws-cdk/pkglint": "0.0.0", @@ -159,27 +159,27 @@ "@aws-sdk/credential-providers": "3.421.0", "@aws-sdk/node-http-handler": "^3.370.0", "@aws-sdk/types": "^3.433.0", - "@smithy/util-stream": "^2.1.1", - "@types/aws-lambda": "^8.10.134", + "@smithy/util-stream": "^2.2.0", + "@types/aws-lambda": "^8.10.136", "@types/jest": "^29.5.12", - "@types/lodash": "^4.14.202", + "@types/lodash": "^4.17.0", "@types/punycode": "^2.1.4", "@types/mime-types": "^2.1.4", "@aws-cdk/lazify": "0.0.0", - "aws-sdk": "^2.1562.0", - "aws-sdk-client-mock": "^3.0.1", - "aws-sdk-client-mock-jest": "^3.0.1", + "aws-sdk": "^2.1583.0", + "aws-sdk-client-mock": "^3.1.0", + "aws-sdk-client-mock-jest": "^3.1.0", "aws-sdk-mock": "5.8.0", - "cdk8s": "2.68.40", + "cdk8s": "2.68.46", "constructs": "^10.0.0", "delay": "5.0.0", - "esbuild": "^0.20.1", - "fast-check": "^3.15.1", + "esbuild": "^0.20.2", + "fast-check": "^3.16.0", "jest": "^29.7.0", "jest-each": "^29.7.0", "lambda-tester": "^4.0.1", "lodash": "^4.17.21", - "nock": "^13.5.3", + "nock": "^13.5.4", "sinon": "^9.2.4", "ts-mock-imports": "^1.3.8", "ts-node": "^10.9.2", diff --git a/packages/aws-cdk/THIRD_PARTY_LICENSES b/packages/aws-cdk/THIRD_PARTY_LICENSES index a8bdfa43f5001..6d3cd62943e0c 100644 --- a/packages/aws-cdk/THIRD_PARTY_LICENSES +++ b/packages/aws-cdk/THIRD_PARTY_LICENSES @@ -1,6 +1,6 @@ The aws-cdk package includes the following third-party software/licensing: -** @jsii/check-node@1.94.0 - https://www.npmjs.com/package/@jsii/check-node/v/1.94.0 | Apache-2.0 +** @jsii/check-node@1.95.0 - https://www.npmjs.com/package/@jsii/check-node/v/1.95.0 | Apache-2.0 jsii Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. @@ -264,7 +264,7 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE ---------------- -** aws-sdk@2.1562.0 - https://www.npmjs.com/package/aws-sdk/v/2.1562.0 | Apache-2.0 +** aws-sdk@2.1583.0 - https://www.npmjs.com/package/aws-sdk/v/2.1583.0 | Apache-2.0 AWS SDK for JavaScript Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. @@ -278,7 +278,7 @@ Amazon Web Services, Inc. (http://aws.amazon.com/). ---------------- -** basic-ftp@5.0.4 - https://www.npmjs.com/package/basic-ftp/v/5.0.4 | MIT +** basic-ftp@5.0.5 - https://www.npmjs.com/package/basic-ftp/v/5.0.5 | MIT Copyright (c) 2019 Patrick Juchli Permission is hereby granted, free of charge, to any person obtaining a copy @@ -301,10 +301,11 @@ SOFTWARE. ---------------- -** binary-extensions@2.2.0 - https://www.npmjs.com/package/binary-extensions/v/2.2.0 | MIT +** binary-extensions@2.3.0 - https://www.npmjs.com/package/binary-extensions/v/2.3.0 | MIT MIT License -Copyright (c) 2019 Sindre Sorhus (https://sindresorhus.com), Paul Miller (https://paulmillr.com) +Copyright (c) Sindre Sorhus (https://sindresorhus.com) +Copyright (c) Paul Miller (https://paulmillr.com) 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: @@ -461,7 +462,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ---------------- -** cdk-from-cfn@0.141.0 - https://www.npmjs.com/package/cdk-from-cfn/v/0.141.0 | MIT OR Apache-2.0 +** cdk-from-cfn@0.150.0 - https://www.npmjs.com/package/cdk-from-cfn/v/0.150.0 | MIT OR Apache-2.0 ---------------- @@ -2974,7 +2975,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------- -** socks@2.7.3 - https://www.npmjs.com/package/socks/v/2.7.3 | MIT +** socks@2.8.1 - https://www.npmjs.com/package/socks/v/2.8.1 | MIT The MIT License (MIT) Copyright (c) 2013 Josh Glazebrook diff --git a/packages/aws-cdk/lib/api/deployments.ts b/packages/aws-cdk/lib/api/deployments.ts index 925cdebd45e15..b7bea90c56c28 100644 --- a/packages/aws-cdk/lib/api/deployments.ts +++ b/packages/aws-cdk/lib/api/deployments.ts @@ -7,7 +7,7 @@ import { CredentialsOptions, SdkForEnvironment, SdkProvider } from './aws-auth/s import { deployStack, DeployStackResult, destroyStack, DeploymentMethod } from './deploy-stack'; import { EnvironmentResources, EnvironmentResourcesRegistry } from './environment-resources'; import { HotswapMode } from './hotswap/common'; -import { loadCurrentTemplateWithNestedStacks, loadCurrentTemplate, flattenNestedStackNames, TemplateWithNestedStackCount } from './nested-stack-helpers'; +import { loadCurrentTemplateWithNestedStacks, loadCurrentTemplate, RootTemplateWithNestedStacks } from './nested-stack-helpers'; import { CloudFormationStack, Template, ResourcesToImport, ResourceIdentifierSummaries } from './util/cloudformation'; import { StackActivityProgress } from './util/cloudformation/stack-activity-monitor'; import { replaceEnvPlaceholders } from './util/placeholders'; @@ -327,13 +327,9 @@ export class Deployments { public async readCurrentTemplateWithNestedStacks( rootStackArtifact: cxapi.CloudFormationStackArtifact, retrieveProcessedTemplate: boolean = false, - ): Promise { + ): Promise { const sdk = (await this.prepareSdkWithLookupOrDeployRole(rootStackArtifact)).stackSdk; - const templateWithNestedStacks = await loadCurrentTemplateWithNestedStacks(rootStackArtifact, sdk, retrieveProcessedTemplate); - return { - deployedTemplate: templateWithNestedStacks.deployedTemplate, - nestedStackCount: flattenNestedStackNames(templateWithNestedStacks.nestedStackNames).length, - }; + return loadCurrentTemplateWithNestedStacks(rootStackArtifact, sdk, retrieveProcessedTemplate); } public async readCurrentTemplate(stackArtifact: cxapi.CloudFormationStackArtifact): Promise