From e2bc0d7d4d7ffac52f04e945769a54d1772761de Mon Sep 17 00:00:00 2001 From: Casey Lee Date: Sun, 9 Oct 2022 22:28:14 -0700 Subject: [PATCH] feat: add support for deploying to ECS services with CodeDeploy --- packages/@aws-cdk/aws-codedeploy/.npmignore | 3 + packages/@aws-cdk/aws-codedeploy/README.md | 52 + .../lambda-packages/.no-packagejson-validator | 0 .../ecs-deployment-provider/.eslintrc.js | 8 + .../ecs-deployment-provider/.gitignore | 12 + .../ecs-deployment-provider/.node-version | 1 + .../ecs-deployment-provider/.npmignore | 5 + .../ecs-deployment-provider/LICENSE | 201 + .../ecs-deployment-provider/NOTICE | 2 + .../ecs-deployment-provider/README.md | 4 + .../ecs-deployment-provider/jest.config.js | 26 + .../lib/is-complete.ts | 128 + .../ecs-deployment-provider/lib/on-event.ts | 116 + .../ecs-deployment-provider/package.json | 57 + .../test/is-complete.test.ts | 303 + .../test/on-event.test.ts | 163 + .../aws-codedeploy/lib/ecs/appspec.ts | 137 + .../aws-codedeploy/lib/ecs/deployment.ts | 194 + .../@aws-cdk/aws-codedeploy/lib/ecs/index.ts | 2 + packages/@aws-cdk/aws-codedeploy/package.json | 5 +- .../aws-codedeploy/test/ecs/appspec.test.ts | 135 + ...efaultTestDeployAssert60AABFA0.assets.json | 19 + ...aultTestDeployAssert60AABFA0.template.json | 36 + .../index.js | 27189 +++++++++++++++ .../cfn-response.js | 83 + .../consts.js | 10 + .../framework.js | 168 + .../outbound.js | 45 + .../util.js | 17 + .../index.js | 27208 ++++++++++++++++ ...-cdk-codedeploy-ecs-deployment.assets.json | 58 + ...dk-codedeploy-ecs-deployment.template.json | 2346 ++ .../ecs/deployment.integ.snapshot/cdk.out | 1 + .../ecs/deployment.integ.snapshot/integ.json | 12 + .../deployment.integ.snapshot/manifest.json | 525 + .../ecs/deployment.integ.snapshot/tree.json | 3206 ++ .../test/ecs/deployment.test.ts | 99 + .../test/ecs/integ.deployment.ts | 206 + yarn.lock | 913 +- 39 files changed, 63686 insertions(+), 9 deletions(-) create mode 100644 packages/@aws-cdk/aws-codedeploy/lambda-packages/.no-packagejson-validator create mode 100644 packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.eslintrc.js create mode 100644 packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.gitignore create mode 100644 packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.node-version create mode 100644 packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.npmignore create mode 100644 packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/LICENSE create mode 100644 packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/NOTICE create mode 100644 packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/README.md create mode 100644 packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/jest.config.js create mode 100644 packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/lib/is-complete.ts create mode 100644 packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/lib/on-event.ts create mode 100644 packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/package.json create mode 100644 packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/test/is-complete.test.ts create mode 100644 packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/test/on-event.test.ts create mode 100644 packages/@aws-cdk/aws-codedeploy/lib/ecs/appspec.ts create mode 100644 packages/@aws-cdk/aws-codedeploy/lib/ecs/deployment.ts create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/appspec.test.ts create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0.assets.json create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0.template.json create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.1441a653914635996087caa4fac8e0e31589bf1601556f25eef99b2411745ba7/index.js create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/cfn-response.js create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/consts.js create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/framework.js create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/outbound.js create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/util.js create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.6ac1448e726779b45302ae5560690a6ce8925b2bcd7f3da633ee6abc605b5bac/index.js create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/aws-cdk-codedeploy-ecs-deployment.assets.json create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/aws-cdk-codedeploy-ecs-deployment.template.json create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/cdk.out create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/integ.json create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/manifest.json create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/tree.json create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.test.ts create mode 100644 packages/@aws-cdk/aws-codedeploy/test/ecs/integ.deployment.ts diff --git a/packages/@aws-cdk/aws-codedeploy/.npmignore b/packages/@aws-cdk/aws-codedeploy/.npmignore index 53c924b8b19d1..edeae911ba84a 100644 --- a/packages/@aws-cdk/aws-codedeploy/.npmignore +++ b/packages/@aws-cdk/aws-codedeploy/.npmignore @@ -28,3 +28,6 @@ test/ jest.config.js **/*.integ.snapshot **/*.integ.snapshot + +# Don't pack node_modules directories of the lambdas in there. They should only be dev dependencies. +lambda-packages/ecs-deployment-provider/node_modules \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/README.md b/packages/@aws-cdk/aws-codedeploy/README.md index e28582fb001c0..240745d5e61bc 100644 --- a/packages/@aws-cdk/aws-codedeploy/README.md +++ b/packages/@aws-cdk/aws-codedeploy/README.md @@ -26,6 +26,7 @@ - [ECS Applications](#ecs-applications) - [ECS Deployment Groups](#ecs-deployment-groups) - [ECS Deployment Configurations](#ecs-deployment-configurations) + - [ECS Deployments](#ecs-deployments) ## Introduction @@ -663,3 +664,54 @@ const deploymentConfig = codedeploy.EcsDeploymentConfig.fromEcsDeploymentConfigN 'MyExistingDeploymentConfiguration', ); ``` + +## ECS Deployments + +CodeDeploy for ECS can manage the deployment of new task definitions to ECS services. +Only 1 deployment construct can be defined for a given EcsDeploymentGroup. + +```ts +declare const deploymentGroup: codeDeploy.IEcsDeploymentGroup; +declare const taskDefinition: ecs.ITaskDefinition; + +new codedeploy.EcsDeployment({ + deploymentGroup, + appspec: new codedeploy.EcsAppSpec({ + taskDefinition, + containerName: 'mycontainer', + containerPort: 80, + }), +}); +``` + +The deployment will use the AutoRollbackConfig for the EcsDeploymentGroup unless it is overridden in the deployment: + +```ts +new codedeploy.EcsDeployment({ + deploymentGroup, + appspec: new codedeploy.EcsAppSpec({ + taskDefinition, + containerName: 'mycontainer', + containerPort: 80, + }), + autoRollback: { + failedDeployment: true, + deploymentInAlarm: true, + stoppedDeployment: false, + }, +}); +``` + +By default, the deployment will timeout after 30 minutes. The timeout value can be overridden: + +```ts +new codedeploy.EcsDeployment({ + deploymentGroup, + appspec: new codedeploy.EcsAppSpec({ + taskDefinition, + containerName: 'mycontainer', + containerPort: 80, + }), + timeout: Duration.minutes(60), +}); +``` diff --git a/packages/@aws-cdk/aws-codedeploy/lambda-packages/.no-packagejson-validator b/packages/@aws-cdk/aws-codedeploy/lambda-packages/.no-packagejson-validator new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.eslintrc.js b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.eslintrc.js new file mode 100644 index 0000000000000..e314d237c673e --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.eslintrc.js @@ -0,0 +1,8 @@ +const baseConfig = require('@aws-cdk/cdk-build-tools/config/eslintrc'); +baseConfig.parserOptions.project = __dirname + '/tsconfig.json'; +module.exports = { + extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'], + parser: '@typescript-eslint/parser', + plugins: ['@typescript-eslint'], + root: true, +}; \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.gitignore b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.gitignore new file mode 100644 index 0000000000000..e437839199006 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.gitignore @@ -0,0 +1,12 @@ +*.js +*.js.map +*.d.ts + +node_modules/ + +dist +.LAST_PACKAGE +.LAST_BUILD +*.snk +!.eslintrc.js +!jest.config.js diff --git a/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.node-version b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.node-version new file mode 100644 index 0000000000000..d3be72cbe1234 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.node-version @@ -0,0 +1 @@ +14.5.0 \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.npmignore b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.npmignore new file mode 100644 index 0000000000000..bc9fd0e49f9a1 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/.npmignore @@ -0,0 +1,5 @@ + +dist +.LAST_PACKAGE +.LAST_BUILD +*.snk \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/LICENSE b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/LICENSE new file mode 100644 index 0000000000000..82ad00bb02d0b --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/NOTICE b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/NOTICE new file mode 100644 index 0000000000000..1b7adbb891265 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/NOTICE @@ -0,0 +1,2 @@ +AWS Cloud Development Kit (AWS CDK) +Copyright 2018-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. diff --git a/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/README.md b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/README.md new file mode 100644 index 0000000000000..5146c6c3cfb2a --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/README.md @@ -0,0 +1,4 @@ +# ECS Deployment Provider + +CloudFormation Custom Resource for creating CodeDeploy Deployments for ECS Deployment Groups +This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project. diff --git a/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/jest.config.js b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/jest.config.js new file mode 100644 index 0000000000000..270f2454e9a4b --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/jest.config.js @@ -0,0 +1,26 @@ +module.exports = { + "roots": [ + "/lib", + "/test" + ], + "transform": { + "^.+\\.tsx?$": "ts-jest" + }, + "testRegex": ".test.ts$", + "moduleFileExtensions": [ + "ts", + "tsx", + "js", + "jsx", + "json", + "node" + ], + "collectCoverage": true, + "collectCoverageFrom": ["./lib/**"], + "coverageThreshold": { + "global": { + "branches": 80 + } + }, + "testEnvironment": "node" +} diff --git a/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/lib/is-complete.ts b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/lib/is-complete.ts new file mode 100644 index 0000000000000..061d59a26aa93 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/lib/is-complete.ts @@ -0,0 +1,128 @@ +import { Logger } from '@aws-lambda-powertools/logger'; +import { CodeDeploy, DeploymentStatus, GetDeploymentOutput } from '@aws-sdk/client-codedeploy'; + +const logger = new Logger({ serviceName: 'ecsDeploymentProviderIsComplete' }); +const codedeployClient = new CodeDeploy({}); + +/** + * The request object that the custom resource lamba function receives from CloudFormation. + */ +export interface IsCompleteRequest { + /** + * The type of CloudFormation request (e.g. 'Create', 'Update', or 'Delete') + */ + RequestType: string; + + /** + * The physical resource id. Could be undefined for 'Create' events. + */ + PhysicalResourceId: string; +} + +/** + * The response object that the custom resource lambda function returns to CloudFormation. + */ +export interface IsCompleteResponse { + /** + * True iff the deployment is in a final state. + */ + IsComplete: boolean; +} + +/** + * The lambda function called from CloudFormation for this custom resource. + * + * @param event + * @returns whether the deployment is complete + */ +export async function handler(event: IsCompleteRequest): Promise { + try { + const resp = await codedeployClient.getDeployment({ deploymentId: event.PhysicalResourceId }); + let rollbackResp: GetDeploymentOutput = {}; + if (resp.deploymentInfo?.rollbackInfo?.rollbackDeploymentId) { + rollbackResp = await codedeployClient.getDeployment({ deploymentId: resp.deploymentInfo?.rollbackInfo?.rollbackDeploymentId }); + } + logger.appendKeys({ + stackEvent: event.RequestType, + deploymentId: event.PhysicalResourceId, + status: resp.deploymentInfo?.status, + rollbackStatus: rollbackResp?.deploymentInfo?.status, + }); + logger.info('Checking deployment'); + + // check if deployment id is complete + switch (event.RequestType) { + case 'Create': + case 'Update': + switch (resp.deploymentInfo?.status) { + case DeploymentStatus.SUCCEEDED: + logger.info('Deployment finished successfully', { complete: true }); + + return { IsComplete: true }; + case DeploymentStatus.FAILED: + case DeploymentStatus.STOPPED: + if (rollbackResp.deploymentInfo?.status) { + if (rollbackResp.deploymentInfo?.status == DeploymentStatus.SUCCEEDED || + rollbackResp.deploymentInfo?.status == DeploymentStatus.FAILED || + rollbackResp.deploymentInfo?.status == DeploymentStatus.STOPPED) { + const errInfo = resp.deploymentInfo.errorInformation; + const error = new Error(`Deployment ${resp.deploymentInfo.status}: [${errInfo?.code}] ${errInfo?.message}`); + logger.error('Deployment failed', { complete: true, error }); + throw error; + } + logger.info('Waiting for final status from a rollback', { complete: false }); + + return { IsComplete: false }; // waiting for final status from rollback + } else { + const errInfo = resp.deploymentInfo.errorInformation; + const error = new Error(`Deployment ${resp.deploymentInfo.status}: [${errInfo?.code}] ${errInfo?.message}`); + logger.error('No rollback to wait for', { complete: true, error }); + throw error; + } + default: + logger.info('Waiting for final status from deployment', { complete: false }); + + return { IsComplete: false }; + } + case 'Delete': + switch (resp.deploymentInfo?.status) { + case DeploymentStatus.SUCCEEDED: + logger.info('Deployment finished successfully - nothing to delete', { complete: true }); + + return { IsComplete: true }; + case DeploymentStatus.FAILED: + case DeploymentStatus.STOPPED: + if (rollbackResp.deploymentInfo?.status) { + if (rollbackResp.deploymentInfo?.status == DeploymentStatus.SUCCEEDED || + rollbackResp.deploymentInfo?.status == DeploymentStatus.FAILED || + rollbackResp.deploymentInfo?.status == DeploymentStatus.STOPPED) { + logger.info('Rollback in final status', { complete: true }); + + return { IsComplete: true }; // rollback finished, we're deleted + } + logger.info('Waiting for final status from a rollback', { complete: false }); + + return { IsComplete: false }; // waiting for rollback + } + logger.info('No rollback to wait for', { complete: true }); + + return { IsComplete: true }; + default: + logger.info('Waiting for final status from deployment', { complete: false }); + + return { IsComplete: false }; + } + default: + logger.error('Unknown request type'); + throw new Error(`Unknown request type: ${event.RequestType}`); + } + } catch (e) { + logger.error('Unable to determine deployment status', e as Error); + if (event.RequestType === 'Delete') { + logger.warn('Ignoring error - nothing to do', { complete: true }); + + return { IsComplete: true }; + } + throw e; + } +} \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/lib/on-event.ts b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/lib/on-event.ts new file mode 100644 index 0000000000000..32b9ff81b55ea --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/lib/on-event.ts @@ -0,0 +1,116 @@ +import { Logger } from '@aws-lambda-powertools/logger'; +import { CodeDeploy } from '@aws-sdk/client-codedeploy'; + +const logger = new Logger({ serviceName: 'ecsDeploymentProviderOnEvent' }); +const codedeployClient = new CodeDeploy({}); + +/** + * The properties of the CodeDeploy Deployment to create + */ +interface DeploymentProperties { + description: string; + applicationName: string; + deploymentConfigName: string; + deploymentGroupName: string; + autoRollbackConfigurationEnabled: string; + autoRollbackConfigurationEvents: string; + revisionAppSpecContent: string; +} + +/** + * The properties in the Data object returned to CloudFormation + */ +export interface DataAttributes { + deploymentId: string; +} + +/** + * The request object that the custom resource lamba function receives from CloudFormation. + */ +export interface OnEventRequest { + RequestType: string; + LogicalResourceId: string; + PhysicalResourceId: string; + ResourceProperties: DeploymentProperties; + OldResourceProperties: DeploymentProperties; + ResourceType: string; + RequestId: string; + StackId: string; +} +/** + * The response object that the custom resource lambda function returns to CloudFormation. + */ +export interface OnEventResponse { + PhysicalResourceId?: string; + Data?: DataAttributes; + NoEcho?: boolean; +} + +/** + * The lambda function called from CloudFormation for this custom resource. + * + * @param event + * @returns attribues of the deployment that was created + */ +export async function handler(event: OnEventRequest): Promise { + logger.appendKeys({ + stackEvent: event.RequestType, + }); + switch (event.RequestType) { + case 'Create': + case 'Update': { + // create deployment + const props = event.ResourceProperties; + const resp = await codedeployClient.createDeployment({ + applicationName: props.applicationName, + deploymentConfigName: props.deploymentConfigName, + deploymentGroupName: props.deploymentGroupName, + autoRollbackConfiguration: { + enabled: props.autoRollbackConfigurationEnabled === 'true', + events: props.autoRollbackConfigurationEvents?.split(','), + }, + description: props.description, + revision: { + revisionType: 'AppSpecContent', + appSpecContent: { + content: props.revisionAppSpecContent, + }, + }, + }); + if (!resp.deploymentId) { + throw new Error('No deploymentId received from call to CreateDeployment'); + } + logger.appendKeys({ + deploymentId: resp.deploymentId, + }); + logger.info('Created new deployment'); + + return { + PhysicalResourceId: resp.deploymentId, + Data: { + deploymentId: resp.deploymentId, + }, + }; + } + case 'Delete': + logger.appendKeys({ + deploymentId: event.PhysicalResourceId, + }); + // cancel deployment and rollback + try { + const resp = await codedeployClient.stopDeployment({ + deploymentId: event.PhysicalResourceId, + autoRollbackEnabled: true, + }); + logger.info(`Stopped deployment: ${resp.status} ${resp.statusMessage}`); + } catch (e) { + logger.warn('Ignoring error', e as Error); + } + + return {}; + default: + logger.error('Unknown stack event'); + throw new Error(`Unknown request type: ${event.RequestType}`); + } +} + diff --git a/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/package.json b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/package.json new file mode 100644 index 0000000000000..aca34708c45d1 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/package.json @@ -0,0 +1,57 @@ +{ + "name": "@aws-cdk/ecs-deployment-provider", + "private": true, + "version": "0.0.0", + "description": "This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.", + "main": "lib/index.js", + "directories": { + "test": "test" + }, + "scripts": { + "build": "echo No build", + "test": "jest", + "eslint": "eslint lib test", + "build+test+package": "npm run build+test", + "build+test": "npm run build && npm test", + "build+test+extract": "npm run build+test", + "build+extract": "npm run build" + }, + "keywords": [ + "aws", + "cdk", + "constructs", + "codedeploy" + ], + "author": { + "name": "Amazon Web Services", + "url": "https://aws.amazon.com", + "organization": true + }, + "license": "Apache-2.0", + "devDependencies": { + "@aws-cdk/cdk-build-tools": "0.0.0", + "@types/aws-lambda": "^8.10.108", + "@types/lambda-tester": "^3.6.1", + "@types/node": "^14.18.32", + "@typescript-eslint/eslint-plugin": "^5", + "@typescript-eslint/parser": "^5", + "aws-sdk-client-mock": "^2.0.0", + "aws-sdk-client-mock-jest": "^2.0.0", + "eslint": "^7.32.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.26.0", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-promise": "^4.3.1", + "eslint-plugin-standard": "^4.1.0", + "jest": "^27.5.1", + "lambda-tester": "^4.0.1", + "ts-jest": "^27.1.5", + "typescript": "^4.8.4", + "@aws-lambda-powertools/logger": "^1.2.1", + "@aws-sdk/client-codedeploy": "^3.137.0", + "@middy/core": "^3.5.0" + }, + "resolutions": { + "@types/aws-lambda": "^8.10.108" + } +} diff --git a/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/test/is-complete.test.ts b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/test/is-complete.test.ts new file mode 100644 index 0000000000000..90d5b8b794b5b --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/test/is-complete.test.ts @@ -0,0 +1,303 @@ +import 'aws-sdk-client-mock-jest'; +import { handler, IsCompleteRequest, IsCompleteResponse } from '../lib/is-complete'; +import * as lambdaTester from 'lambda-tester'; +import { mockClient } from "aws-sdk-client-mock"; +import { CodeDeploy, DeploymentStatus, GetDeploymentCommand } from '@aws-sdk/client-codedeploy'; + + +const codeDeployMock = mockClient(CodeDeploy); + +describe('isComplete', () => { + beforeEach(() => { + codeDeployMock.reset(); + }); + + test('Empty event payload fails', () => { + return lambdaTester(handler) + .event({} as IsCompleteRequest) + .expectError((err: Error) => { + expect(err.message).toBeDefined(); + }); + }); + test('Unknown event type fails', () => { + codeDeployMock.on(GetDeploymentCommand).resolves({ + deploymentInfo: { + status: DeploymentStatus.SUCCEEDED, + } + }); + return lambdaTester(handler) + .event({ + RequestType: 'FOO', + PhysicalResourceId: '11111111', + } as IsCompleteRequest) + .expectError((err: Error) => { + expect(err.message).toBe("Unknown request type: FOO"); + }); + }); + + test('Throws error finding deploymentId for Create', () => { + codeDeployMock.on(GetDeploymentCommand).rejects('Unable to find deployment'); + + return lambdaTester(handler) + .event({ + RequestType: 'Create', + PhysicalResourceId: '11111111', + } as IsCompleteRequest) + .expectReject((error: Error) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(GetDeploymentCommand, 1); + expect(codeDeployMock).toHaveReceivedCommandWith(GetDeploymentCommand, { + deploymentId: '11111111', + }); + expect(error.message).toEqual("Unable to find deployment"); + }); + }); + test('Ignores error finding deploymentId for Delete', () => { + codeDeployMock.on(GetDeploymentCommand).rejects('Unable to find deployment'); + + return lambdaTester(handler) + .event({ + RequestType: 'Delete', + PhysicalResourceId: '11111111', + } as IsCompleteRequest) + .expectResolve((resp: IsCompleteResponse) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(GetDeploymentCommand, 1); + expect(codeDeployMock).toHaveReceivedCommandWith(GetDeploymentCommand, { + deploymentId: '11111111', + }); + expect(resp).toEqual({ IsComplete: true}); + }); + }); + test('Is complete when create deployment succeeds', () => { + codeDeployMock.on(GetDeploymentCommand).resolves({ + deploymentInfo: { + status: DeploymentStatus.SUCCEEDED, + } + }); + + return lambdaTester(handler) + .event({ + RequestType: 'Create', + PhysicalResourceId: '11111111', + } as IsCompleteRequest) + .expectResolve((resp: IsCompleteResponse) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(GetDeploymentCommand, 1); + expect(codeDeployMock).toHaveReceivedCommandWith(GetDeploymentCommand, { + deploymentId: '11111111', + }); + expect(resp).toEqual({ IsComplete: true}); + }); + }); + test('Is not complete when create deployment in progress', () => { + codeDeployMock.on(GetDeploymentCommand).resolves({ + deploymentInfo: { + status: DeploymentStatus.IN_PROGRESS, + } + }); + + return lambdaTester(handler) + .event({ + RequestType: 'Create', + PhysicalResourceId: '11111111', + } as IsCompleteRequest) + .expectResolve((resp: IsCompleteResponse) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(GetDeploymentCommand, 1); + expect(codeDeployMock).toHaveReceivedCommandWith(GetDeploymentCommand, { + deploymentId: '11111111', + }); + expect(resp).toEqual({ IsComplete: false}); + }); + }); + test('Is not complete when create deployment failed and rollback in progress', () => { + codeDeployMock.on(GetDeploymentCommand, { deploymentId: '11111111' }).resolves({ + deploymentInfo: { + status: DeploymentStatus.FAILED, + rollbackInfo: { + rollbackDeploymentId: '22222222', + }, + errorInformation: { + code: 'xxx', + message: 'failure occurred', + } + } + }); + codeDeployMock.on(GetDeploymentCommand, { deploymentId: '22222222' }).resolves({ + deploymentInfo: { + status: DeploymentStatus.IN_PROGRESS, + } + }); + + return lambdaTester(handler) + .event({ + RequestType: 'Create', + PhysicalResourceId: '11111111', + } as IsCompleteRequest) + .expectResolve((resp: IsCompleteResponse) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(GetDeploymentCommand, 2); + expect(resp.IsComplete).toBe(false); + }); + }); + test('Throws error when create deployment failed and rollback failed', () => { + codeDeployMock.on(GetDeploymentCommand, { deploymentId: '11111111' }).resolves({ + deploymentInfo: { + status: DeploymentStatus.FAILED, + rollbackInfo: { + rollbackDeploymentId: '22222222', + }, + errorInformation: { + code: 'xxx', + message: 'failure occurred', + } + } + }); + codeDeployMock.on(GetDeploymentCommand, { deploymentId: '22222222' }).resolves({ + deploymentInfo: { + status: DeploymentStatus.FAILED, + } + }); + + return lambdaTester(handler) + .event({ + RequestType: 'Create', + PhysicalResourceId: '11111111', + } as IsCompleteRequest) + .expectReject((error: Error) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(GetDeploymentCommand, 2); + expect(error.message).toEqual('Deployment Failed: [xxx] failure occurred'); + }); + }); + test('Throws error when create deployment failed and no rollback found', () => { + codeDeployMock.on(GetDeploymentCommand, { deploymentId: '11111111' }).resolves({ + deploymentInfo: { + status: DeploymentStatus.FAILED, + errorInformation: { + code: 'xxx', + message: 'failure occurred', + } + } + }); + + return lambdaTester(handler) + .event({ + RequestType: 'Create', + PhysicalResourceId: '11111111', + } as IsCompleteRequest) + .expectReject((error: Error) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(GetDeploymentCommand, 1); + expect(error.message).toEqual('Deployment Failed: [xxx] failure occurred'); + }); + }); + test('Is complete when delete deployment succeeds', () => { + codeDeployMock.on(GetDeploymentCommand, {deploymentId: '11111111'}).resolves({ + deploymentInfo: { + status: DeploymentStatus.SUCCEEDED, + } + }); + + return lambdaTester(handler) + .event({ + RequestType: 'Delete', + PhysicalResourceId: '11111111', + } as IsCompleteRequest) + .expectResolve((resp: IsCompleteResponse) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(GetDeploymentCommand, 1); + expect(resp).toEqual({ IsComplete: true}); + }); + }); + test('Is not complete when delete deployment in progress', () => { + codeDeployMock.on(GetDeploymentCommand, {deploymentId: '11111111'}).resolves({ + deploymentInfo: { + status: DeploymentStatus.IN_PROGRESS, + } + }); + + return lambdaTester(handler) + .event({ + RequestType: 'Delete', + PhysicalResourceId: '11111111', + } as IsCompleteRequest) + .expectResolve((resp: IsCompleteResponse) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(GetDeploymentCommand, 1); + expect(resp).toEqual({ IsComplete: false}); + }); + }); + test('Is complete when delete deployment failed with final rollback status', () => { + codeDeployMock.on(GetDeploymentCommand, { deploymentId: '11111111' }).resolves({ + deploymentInfo: { + status: DeploymentStatus.FAILED, + rollbackInfo: { + rollbackDeploymentId: '22222222', + }, + errorInformation: { + code: 'xxx', + message: 'failure occurred', + } + } + }); + codeDeployMock.on(GetDeploymentCommand, { deploymentId: '22222222' }).resolves({ + deploymentInfo: { + status: DeploymentStatus.FAILED, + } + }); + + return lambdaTester(handler) + .event({ + RequestType: 'Delete', + PhysicalResourceId: '11111111', + } as IsCompleteRequest) + .expectResolve((resp: IsCompleteResponse) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(GetDeploymentCommand, 2); + expect(resp).toEqual({ IsComplete: true}); + }); + }); + test('Is complete when delete deployment failed with no rollback', () => { + codeDeployMock.on(GetDeploymentCommand, { deploymentId: '11111111' }).resolves({ + deploymentInfo: { + status: DeploymentStatus.FAILED, + errorInformation: { + code: 'xxx', + message: 'failure occurred', + } + } + }); + + return lambdaTester(handler) + .event({ + RequestType: 'Delete', + PhysicalResourceId: '11111111', + } as IsCompleteRequest) + .expectResolve((resp: IsCompleteResponse) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(GetDeploymentCommand, 1); + expect(resp).toEqual({ IsComplete: true}); + }); + }); + test('Is not complete when delete deployment failed with rollback in progress', () => { + codeDeployMock.on(GetDeploymentCommand, { deploymentId: '11111111' }).resolves({ + deploymentInfo: { + status: DeploymentStatus.FAILED, + rollbackInfo: { + rollbackDeploymentId: '22222222', + }, + errorInformation: { + code: 'xxx', + message: 'failure occurred', + } + } + }); + codeDeployMock.on(GetDeploymentCommand, { deploymentId: '22222222' }).resolves({ + deploymentInfo: { + status: DeploymentStatus.IN_PROGRESS, + } + }); + + return lambdaTester(handler) + .event({ + RequestType: 'Delete', + PhysicalResourceId: '11111111', + } as IsCompleteRequest) + .expectResolve((resp: IsCompleteResponse) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(GetDeploymentCommand, 2); + expect(resp).toEqual({ IsComplete: false}); + }); + }); + +}); diff --git a/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/test/on-event.test.ts b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/test/on-event.test.ts new file mode 100644 index 0000000000000..d33e1bb14a311 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/test/on-event.test.ts @@ -0,0 +1,163 @@ +import 'aws-sdk-client-mock-jest'; +import { handler, OnEventRequest, OnEventResponse } from '../lib/on-event'; +import * as lambdaTester from 'lambda-tester'; +import { mockClient } from "aws-sdk-client-mock"; +import { CodeDeploy, CreateDeploymentCommand, StopDeploymentCommand } from '@aws-sdk/client-codedeploy'; + + +const codeDeployMock = mockClient(CodeDeploy); + +describe('onEvent', () => { + beforeEach(() => { + codeDeployMock.reset(); + }); + + test('Empty event payload fails', () => { + return lambdaTester(handler) + .event({} as OnEventRequest) + .expectError((err: Error) => { + expect(err.message).toBe('Unknown request type: undefined'); + }); + }); + + test('Create deployment succeeds', () => { + codeDeployMock.on(CreateDeploymentCommand).resolves({ + deploymentId: '1111111', + }); + + return lambdaTester(handler) + .event({ + RequestType: 'Create', + ResourceProperties: { + applicationName: 'testapp', + deploymentConfigName: 'testdeployconfig', + deploymentGroupName: 'testdeploygroup', + autoRollbackConfigurationEnabled: 'true', + autoRollbackConfigurationEvents: 'event1,event2', + description: 'testing', + revisionAppSpecContent: 'appspec-goes-here', + }, + } as OnEventRequest) + .expectResolve((resp: OnEventResponse) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(CreateDeploymentCommand, 1); + expect(codeDeployMock).toHaveReceivedCommandWith(CreateDeploymentCommand, { + applicationName: 'testapp', + deploymentConfigName: 'testdeployconfig', + deploymentGroupName: 'testdeploygroup', + autoRollbackConfiguration: { + enabled: true, + events: ['event1','event2'], + }, + description: 'testing', + revision: { + revisionType: 'AppSpecContent', + appSpecContent: { + content: 'appspec-goes-here', + }, + }, + }); + expect(resp.PhysicalResourceId).toBe('1111111'); + expect(resp.Data?.deploymentId).toBe('1111111'); + }); + }); + + test('Create deployment fails', () => { + codeDeployMock.on(CreateDeploymentCommand).resolves({}); + + return lambdaTester(handler) + .event({ + RequestType: 'Create', + ResourceProperties: { + applicationName: 'testapp', + deploymentConfigName: 'testdeployconfig', + deploymentGroupName: 'testdeploygroup', + autoRollbackConfigurationEnabled: 'true', + autoRollbackConfigurationEvents: 'event1,event2', + description: 'testing', + revisionAppSpecContent: 'appspec-goes-here', + }, + } as OnEventRequest) + .expectReject((error: Error) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(CreateDeploymentCommand, 1); + expect(error.message).toBe('No deploymentId received from call to CreateDeployment'); + }); + }); + + test('Update deployment succeeds', () => { + codeDeployMock.on(CreateDeploymentCommand).resolves({ + deploymentId: '1111111', + }); + + return lambdaTester(handler) + .event({ + RequestType: 'Update', + ResourceProperties: { + applicationName: 'testapp', + deploymentConfigName: 'testdeployconfig', + deploymentGroupName: 'testdeploygroup', + description: 'testing', + revisionAppSpecContent: 'appspec-goes-here', + }, + } as OnEventRequest) + .expectResolve((resp: OnEventResponse) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(CreateDeploymentCommand, 1); + expect(codeDeployMock).toHaveReceivedCommandWith(CreateDeploymentCommand, { + applicationName: 'testapp', + deploymentConfigName: 'testdeployconfig', + deploymentGroupName: 'testdeploygroup', + autoRollbackConfiguration: { + enabled: false, + events: undefined, + }, + description: 'testing', + revision: { + revisionType: 'AppSpecContent', + appSpecContent: { + content: 'appspec-goes-here', + }, + }, + }); + expect(resp.PhysicalResourceId).toBe('1111111'); + expect(resp.Data?.deploymentId).toBe('1111111'); + }); + }); + + test('Delete deployment successfully stops', () => { + codeDeployMock.on(StopDeploymentCommand).resolves({ + status: 'ok', + statusMessage: 'successfully stopped', + }); + + return lambdaTester(handler) + .event({ + RequestType: 'Delete', + PhysicalResourceId: '22222222', + } as OnEventRequest) + .expectResolve((resp: OnEventResponse) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(StopDeploymentCommand, 1); + expect(codeDeployMock).toHaveReceivedCommandWith(StopDeploymentCommand, { + deploymentId: '22222222', + autoRollbackEnabled: true, + }); + expect(resp).toEqual({}); + }); + }); + + test('Delete deployment fails to stop', () => { + codeDeployMock.on(StopDeploymentCommand).rejects("Unable to stop"); + + return lambdaTester(handler) + .event({ + RequestType: 'Delete', + PhysicalResourceId: '22222222', + } as OnEventRequest) + .expectResolve((resp: OnEventResponse) => { + expect(codeDeployMock).toHaveReceivedCommandTimes(StopDeploymentCommand, 1); + expect(codeDeployMock).toHaveReceivedCommandWith(StopDeploymentCommand, { + deploymentId: '22222222', + autoRollbackEnabled: true, + }); + expect(resp).toEqual({}); + }); + }); +}); diff --git a/packages/@aws-cdk/aws-codedeploy/lib/ecs/appspec.ts b/packages/@aws-cdk/aws-codedeploy/lib/ecs/appspec.ts new file mode 100644 index 0000000000000..b8358ae5cd075 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/lib/ecs/appspec.ts @@ -0,0 +1,137 @@ +import * as ec2 from '@aws-cdk/aws-ec2'; +import * as ecs from '@aws-cdk/aws-ecs'; + +/** + * Represents an AppSpec to be used for ECS services. + * + * {@link https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-resources.html#reference-appspec-file-structure-resources-ecs} + */ +export class EcsAppSpec { + /** + * List of services to target for the deployment. Must have a length of 1. + */ + private readonly targetServices: TargetService[]; + + constructor(...targetServices: TargetService[]) { + if (targetServices.length !== 1) { + throw new Error('targetServices must have a length of 1'); + } + this.targetServices = targetServices; + } + + /** + * Render JSON string for this AppSpec to be used + * + * @returns string representation of this AppSpec + */ + toString(): string { + const appSpec = { + version: '0.0', + Resources: this.targetServices.map(targetService => { + return { + TargetService: { + Type: 'AWS::ECS::Service', + Properties: { + TaskDefinition: targetService.taskDefinition.taskDefinitionArn, + LoadBalancerInfo: { + ContainerName: targetService.containerName, + ContainerPort: targetService.containerPort, + }, + PlatformVersion: targetService.platformVersion, + NetworkConfiguration: this.configureAwsVpcNetworkingWithSecurityGroups(targetService.awsvpcConfiguration), + CapacityProviderStrategy: targetService.capacityProviderStrategy?.map(capacityProviderStrategy => { + return { + Base: capacityProviderStrategy.base, + CapacityProvider: capacityProviderStrategy.capacityProvider, + Weight: capacityProviderStrategy.weight, + }; + }), + }, + }, + }; + }), + }; + return JSON.stringify(appSpec); + } + + private configureAwsVpcNetworkingWithSecurityGroups(awsvpcConfiguration?: AwsvpcConfiguration) { + if (!awsvpcConfiguration) { + return undefined; + } + return { + awsvpcConfiguration: { + assignPublicIp: awsvpcConfiguration.assignPublicIp ? 'ENABLED' : 'DISABLED', + subnets: awsvpcConfiguration.vpc.selectSubnets(awsvpcConfiguration.vpcSubnets).subnetIds, + securityGroups: awsvpcConfiguration.securityGroups?.map((sg) => sg.securityGroupId), + }, + }; + } +} + +/** + * Describe the target for CodeDeploy to use when creating a deployment for a {@link ecs.EcsDeploymentGroup}. + */ +export interface TargetService { + /** + * The TaskDefintion to deploy to the target services. + */ + readonly taskDefinition: ecs.ITaskDefinition; + + /** + * The name of the Amazon ECS container that contains your Amazon ECS application. It must be a container specified in your Amazon ECS task definition. + */ + readonly containerName: string; + + /** + * The port on the container where traffic will be routed to. + */ + readonly containerPort: number; + + /** + * The platform version of the Fargate tasks in the deployed Amazon ECS service. + * {@link https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html} + * + * @default LATEST + */ + readonly platformVersion?: ecs.FargatePlatformVersion; + + /** + * Network configuration for ECS services that have a network type of `awsvpc`. + * + * @default reuse current network settings for ECS service. + */ + readonly awsvpcConfiguration?: AwsvpcConfiguration; + + /** + * A list of Amazon ECS capacity providers to use for the deployment. + * + * @default reuse current capcity provider strategy for ECS service. + */ + readonly capacityProviderStrategy?: ecs.CapacityProviderStrategy[]; + +} + +/** + * Network configuration for ECS services that have a network type of `awsvpc`. + */ +export interface AwsvpcConfiguration { + /** + * The VPC to use for the task. + */ + readonly vpc: ec2.IVpc; + + /** + * The Subnets to use for the task. + */ + readonly vpcSubnets: ec2.SubnetSelection; + + /** + * The Security Groups to use for the task. + */ + readonly securityGroups: ec2.ISecurityGroup[]; + + /** + * Assign a public IP address to the task. + */ + readonly assignPublicIp: boolean; +} \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/lib/ecs/deployment.ts b/packages/@aws-cdk/aws-codedeploy/lib/ecs/deployment.ts new file mode 100644 index 0000000000000..98a2fd0f8e56a --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/lib/ecs/deployment.ts @@ -0,0 +1,194 @@ +import * as path from 'path'; +import * as iam from '@aws-cdk/aws-iam'; +import * as lambda from '@aws-cdk/aws-lambda'; +import { NodejsFunction } from '@aws-cdk/aws-lambda-nodejs'; +import * as cdk from '@aws-cdk/core'; +import * as cr from '@aws-cdk/custom-resources'; +import { Construct } from 'constructs'; +import { AutoRollbackConfig } from '../rollback-config'; +import { EcsAppSpec } from './appspec'; +import { IEcsDeploymentGroup } from './deployment-group'; + +/** + * Construction properties of {@link EcsDeployment}. + */ +export interface EcsDeploymentProps { + /** + * The deployment group to target for this deployment. + */ + readonly deploymentGroup: IEcsDeploymentGroup; + + /** + * The AppSpec to use for the deployment. + * + * {@link https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-resources.html#reference-appspec-file-structure-resources-ecs} + */ + readonly appspec: EcsAppSpec; + + /** + * The configuration for rollback in the event that a deployment fails. + * + * @default: no automatic rollback triggered + */ + readonly autoRollback?: AutoRollbackConfig; + + /** + * The description for the deployment. + * + * @default no description + */ + readonly description?: string; + + /** + * The timeout for the deployment. If the timeout is reached, it will trigger a rollback of the stack. + * + * @default 30 minutes + */ + readonly timeout?: cdk.Duration; + +} + +/** + * A CodeDeploy Deployment for a Amazon ECS service DeploymentGroup. + */ +export class EcsDeployment extends Construct { + /** + * The id of the deployment that was created. + */ + deploymentId: string; + + /** + * An {@link EcsDeploymentGroup} must only have 1 EcsDeployment. This limit is enforced by not allowing + * the `scope` or `id` to be passed to the constructor. The `scope` will always be set to the + * `deploymentGroup` from `props` and the `id` will always be set to the string 'Deployment' + * to force an error if mulitiple EcsDeployment constructs are created for a single EcsDeploymentGrouop. + */ + constructor(props: EcsDeploymentProps) { + super(props.deploymentGroup, 'Deployment'); + + const ecsDeploymentProvider = new EcsDeploymentProvider(this, 'DeploymentProvider', { + deploymentGroup: props.deploymentGroup, + timeout: props.timeout || cdk.Duration.minutes(30), + }); + + let autoRollbackConfigurationEvents = []; + if (props.autoRollback?.deploymentInAlarm) { + autoRollbackConfigurationEvents.push('DEPLOYMENT_STOP_ON_ALARM'); + } + if (props.autoRollback?.failedDeployment) { + autoRollbackConfigurationEvents.push('DEPLOYMENT_FAILURE'); + } + if (props.autoRollback?.stoppedDeployment) { + autoRollbackConfigurationEvents.push('DEPLOYMENT_STOP_ON_REQUEST'); + } + + const deployment = new cdk.CustomResource(this, 'DeploymentResource', { + serviceToken: ecsDeploymentProvider.serviceToken, + resourceType: 'Custom::EcsDeployment', + properties: { + applicationName: props.deploymentGroup.application.applicationName, + deploymentConfigName: props.deploymentGroup.deploymentConfig.deploymentConfigName, + deploymentGroupName: props.deploymentGroup.deploymentGroupName, + autoRollbackConfigurationEnabled: (autoRollbackConfigurationEvents.length > 0).toString(), + autoRollbackConfigurationEvents: autoRollbackConfigurationEvents.join(','), + description: props.description, + revisionAppSpecContent: props.appspec.toString(), + }, + }); + this.deploymentId = deployment.getAttString('deploymentId'); + } +} + +/** + * Construction properties of {@link EcsDeploymentProvider}. + */ +interface EcsDeploymentProviderProps { + /** + * The deployment group to target for this deployment. + */ + readonly deploymentGroup: IEcsDeploymentGroup; + + /** + * The timeout for the deployment. If the timeout is reached, it will trigger a rollback of the stack. + */ + readonly timeout: cdk.Duration; + + /** + * The interval to query the deployment to determine when the deployment is completed. + * + * @default 15 seconds + */ + readonly queryInterval?: cdk.Duration; +} + +/** + * A custom resource provider to handle creation of new {@link EcsDeployment}. + */ +class EcsDeploymentProvider extends cr.Provider { + constructor(scope: Construct, id: string, props: EcsDeploymentProviderProps) { + + const functionNamePrefix = [ + 'EcsDeploymentProvider', + props.deploymentGroup.application.applicationName, + props.deploymentGroup.deploymentGroupName, + ].join('-'); + const eventLambda = new NodejsFunction(scope, `${id}OnEventLambda`, { + functionName: `${functionNamePrefix}-onEvent`, + timeout: cdk.Duration.seconds(60), + runtime: lambda.Runtime.NODEJS_16_X, + handler: 'handler', + entry: path.resolve(__dirname, '..', '..', 'lambda-packages', 'ecs-deployment-provider', 'lib', 'on-event.ts'), + }); + eventLambda.addToRolePolicy(new iam.PolicyStatement({ + actions: [ + 'codedeploy:GetApplicationRevision', + 'codedeploy:RegisterApplicationRevision', + ], + resources: [ + props.deploymentGroup.application.applicationArn, + ], + })); + eventLambda.addToRolePolicy(new iam.PolicyStatement({ + actions: [ + 'codedeploy:CreateDeployment', + 'codedeploy:StopDeployment', + 'codedeploy:GetDeployment', + ], + resources: [ + props.deploymentGroup.deploymentGroupArn, + ], + })); + eventLambda.addToRolePolicy(new iam.PolicyStatement({ + actions: [ + 'codedeploy:GetDeploymentConfig', + ], + resources: [ + props.deploymentGroup.deploymentConfig.deploymentConfigArn, + ], + })); + + const completeLambda = new NodejsFunction(scope, `${id}IsCompleteLambda`, { + functionName: `${functionNamePrefix}-isComplete`, + timeout: cdk.Duration.seconds(60), + runtime: lambda.Runtime.NODEJS_16_X, + handler: 'handler', + entry: path.resolve(__dirname, '..', '..', 'lambda-packages', 'ecs-deployment-provider', 'lib', 'is-complete.ts'), + }); + completeLambda.addToRolePolicy(new iam.PolicyStatement({ + actions: [ + 'codedeploy:GetDeployment', + ], + resources: [ + props.deploymentGroup.deploymentGroupArn, + ], + })); + super(scope, id, { + providerFunctionName: `${functionNamePrefix}-provider`, + onEventHandler: eventLambda, + isCompleteHandler: completeLambda, + queryInterval: props.queryInterval || cdk.Duration.seconds(15), + totalTimeout: props.timeout, + }); + } + +} \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/lib/ecs/index.ts b/packages/@aws-cdk/aws-codedeploy/lib/ecs/index.ts index 933062a88e18e..3f6dd50a85a10 100644 --- a/packages/@aws-cdk/aws-codedeploy/lib/ecs/index.ts +++ b/packages/@aws-cdk/aws-codedeploy/lib/ecs/index.ts @@ -1,3 +1,5 @@ export * from './application'; export * from './deployment-config'; export * from './deployment-group'; +export * from './deployment'; +export * from './appspec'; diff --git a/packages/@aws-cdk/aws-codedeploy/package.json b/packages/@aws-cdk/aws-codedeploy/package.json index ad4f31f642035..3578c53d9ff35 100644 --- a/packages/@aws-cdk/aws-codedeploy/package.json +++ b/packages/@aws-cdk/aws-codedeploy/package.json @@ -85,9 +85,9 @@ "devDependencies": { "@aws-cdk/assertions": "0.0.0", "@aws-cdk/cdk-build-tools": "0.0.0", + "@aws-cdk/cfn2ts": "0.0.0", "@aws-cdk/integ-runner": "0.0.0", "@aws-cdk/integ-tests": "0.0.0", - "@aws-cdk/cfn2ts": "0.0.0", "@aws-cdk/pkglint": "0.0.0", "@types/jest": "^27.5.2", "jest": "^27.5.1" @@ -101,6 +101,7 @@ "@aws-cdk/aws-elasticloadbalancingv2": "0.0.0", "@aws-cdk/aws-iam": "0.0.0", "@aws-cdk/aws-lambda": "0.0.0", + "@aws-cdk/aws-lambda-nodejs": "0.0.0", "@aws-cdk/aws-s3": "0.0.0", "@aws-cdk/core": "0.0.0", "@aws-cdk/custom-resources": "0.0.0", @@ -116,6 +117,7 @@ "@aws-cdk/aws-elasticloadbalancingv2": "0.0.0", "@aws-cdk/aws-iam": "0.0.0", "@aws-cdk/aws-lambda": "0.0.0", + "@aws-cdk/aws-lambda-nodejs": "0.0.0", "@aws-cdk/aws-s3": "0.0.0", "@aws-cdk/core": "0.0.0", "@aws-cdk/custom-resources": "0.0.0", @@ -129,6 +131,7 @@ "construct-interface-extends-iconstruct:@aws-cdk/aws-codedeploy.IServerDeploymentConfig", "construct-interface-extends-iconstruct:@aws-cdk/aws-codedeploy.ILambdaDeploymentConfig", "construct-interface-extends-iconstruct:@aws-cdk/aws-codedeploy.IEcsDeploymentConfig", + "construct-ctor:@aws-cdk/aws-codedeploy.EcsDeployment.", "resource-interface-extends-resource:@aws-cdk/aws-codedeploy.IServerDeploymentConfig", "resource-interface-extends-resource:@aws-cdk/aws-codedeploy.ILambdaDeploymentConfig", "resource-interface-extends-resource:@aws-cdk/aws-codedeploy.IEcsDeploymentConfig", diff --git a/packages/@aws-cdk/aws-codedeploy/test/ecs/appspec.test.ts b/packages/@aws-cdk/aws-codedeploy/test/ecs/appspec.test.ts new file mode 100644 index 0000000000000..a33bba6fe3e2b --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/appspec.test.ts @@ -0,0 +1,135 @@ +import * as ec2 from '@aws-cdk/aws-ec2'; +import * as ecs from '@aws-cdk/aws-ecs'; +import * as cdk from '@aws-cdk/core'; +import * as codedeploy from '../../lib'; + +describe('CodeDeploy ECS AppSpec', () => { + let stack: cdk.Stack; + + beforeEach(() => { + stack = new cdk.Stack(); + }); + + test('cannot create with undefined list of targetServices', () => { + expect(() => { + new codedeploy.EcsAppSpec(); + }).toThrow('targetServices must have a length of 1'); + }); + + test('cannot create with list of 2 targetServices', () => { + expect(() => { + new codedeploy.EcsAppSpec({ + taskDefinition: {} as ecs.ITaskDefinition, + containerName: 'foo', + containerPort: 80, + }, { + taskDefinition: {} as ecs.ITaskDefinition, + containerName: 'bar', + containerPort: 81, + }); + }).toThrow('targetServices must have a length of 1'); + }); + + test('can create without network configuration', () => { + const arn = 'taskdefarn'; + const taskDefinition = ecs.FargateTaskDefinition.fromFargateTaskDefinitionArn(stack, 'taskdef', arn); + const appspec = new codedeploy.EcsAppSpec({ + taskDefinition: taskDefinition, + containerName: 'foo', + containerPort: 80, + }); + const appspecJson = JSON.parse(appspec.toString()); + expect(appspecJson).toEqual({ + version: '0.0', + Resources: [{ + TargetService: { + Type: 'AWS::ECS::Service', + Properties: { + TaskDefinition: arn, + LoadBalancerInfo: { + ContainerName: 'foo', + ContainerPort: 80, + }, + }, + }, + }], + }); + }); + + test('can create with all configuration', () => { + const arn = 'taskdefarn'; + const vpc = ec2.Vpc.fromVpcAttributes(stack, 'vpc', { + vpcId: 'vpc-0000', + availabilityZones: ['us-west-2a', 'us-west2b'], + }); + const sg = ec2.SecurityGroup.fromSecurityGroupId(stack, 'sg', 'sg-00000000'); + const taskDefinition = ecs.FargateTaskDefinition.fromFargateTaskDefinitionArn(stack, 'taskdef', arn); + const appspec = new codedeploy.EcsAppSpec({ + taskDefinition: taskDefinition, + containerName: 'foo', + containerPort: 80, + platformVersion: ecs.FargatePlatformVersion.VERSION1_3, + awsvpcConfiguration: { + vpc, + vpcSubnets: vpc.selectSubnets({ + subnets: [ + ec2.Subnet.fromSubnetAttributes(stack, 'subnet', { + subnetId: 'subnet-11111111', + availabilityZone: 'us-west-2a', + }), + ], + }), + securityGroups: [sg], + assignPublicIp: true, + }, + capacityProviderStrategy: [ + { + capacityProvider: 'fargate', + base: 2, + weight: 4, + }, + { + capacityProvider: 'ec2', + base: 3, + weight: 5, + }, + ], + }); + const appspecJson = JSON.parse(appspec.toString()); + expect(appspecJson).toEqual({ + version: '0.0', + Resources: [{ + TargetService: { + Type: 'AWS::ECS::Service', + Properties: { + TaskDefinition: arn, + LoadBalancerInfo: { + ContainerName: 'foo', + ContainerPort: 80, + }, + PlatformVersion: '1.3.0', + NetworkConfiguration: { + awsvpcConfiguration: { + assignPublicIp: 'ENABLED', + subnets: ['subnet-11111111'], + securityGroups: ['sg-00000000'], + }, + }, + CapacityProviderStrategy: [ + { + Base: 2, + Weight: 4, + CapacityProvider: 'fargate', + }, + { + Base: 3, + Weight: 5, + CapacityProvider: 'ec2', + }, + ], + }, + }, + }], + }); + }); +}); diff --git a/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0.assets.json b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0.assets.json new file mode 100644 index 0000000000000..0f418df24db57 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0.assets.json @@ -0,0 +1,19 @@ +{ + "version": "21.0.0", + "files": { + "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { + "source": { + "path": "EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0.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/aws-codedeploy/test/ecs/deployment.integ.snapshot/EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0.template.json b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0.template.json new file mode 100644 index 0000000000000..ad9d0fb73d1dd --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0.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/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.1441a653914635996087caa4fac8e0e31589bf1601556f25eef99b2411745ba7/index.js b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.1441a653914635996087caa4fac8e0e31589bf1601556f25eef99b2411745ba7/index.js new file mode 100644 index 0000000000000..fbd85dfa56b34 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.1441a653914635996087caa4fac8e0e31589bf1601556f25eef99b2411745ba7/index.js @@ -0,0 +1,27189 @@ +"use strict"; +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __commonJS = (cb, mod) => function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; +}; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// node_modules/@aws-lambda-powertools/logger/lib/helpers.js +var require_helpers = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/helpers.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.createLogger = void 0; + var _1 = require_lib2(); + var createLogger = (options = {}) => new _1.Logger(options); + exports.createLogger = createLogger; + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/utils/lambda/LambdaInterface.js +var require_LambdaInterface = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/utils/lambda/LambdaInterface.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/utils/lambda/index.js +var require_lambda = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/utils/lambda/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + __exportStar(require_LambdaInterface(), exports); + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/Utility.js +var require_Utility = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/Utility.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Utility = void 0; + var Utility = class { + constructor() { + this.coldStart = true; + } + getColdStart() { + if (this.coldStart) { + this.coldStart = false; + return true; + } + return false; + } + isColdStart() { + return this.getColdStart(); + } + }; + exports.Utility = Utility; + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/samples/resources/contexts/hello-world.js +var require_hello_world = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/samples/resources/contexts/hello-world.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.helloworldContext = void 0; + var helloworldContext = { + callbackWaitsForEmptyEventLoop: true, + functionVersion: "$LATEST", + functionName: "foo-bar-function", + memoryLimitInMB: "128", + logGroupName: "/aws/lambda/foo-bar-function-123456abcdef", + logStreamName: "2021/03/09/[$LATEST]abcdef123456abcdef123456abcdef123456", + invokedFunctionArn: "arn:aws:lambda:eu-west-1:123456789012:function:Example", + awsRequestId: "c6af9ac6-7b61-11e6-9a41-93e8deadbeef", + getRemainingTimeInMillis: () => 1234, + done: () => console.log("Done!"), + fail: () => console.log("Failed!"), + succeed: () => console.log("Succeeded!") + }; + exports.helloworldContext = helloworldContext; + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/samples/resources/contexts/index.js +var require_contexts = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/samples/resources/contexts/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + __exportStar(require_hello_world(), exports); + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/samples/resources/events/custom/index.js +var require_custom = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/samples/resources/events/custom/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CustomEvent = void 0; + exports.CustomEvent = { + key1: "value1", + key2: "value2", + key3: "value3" + }; + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/samples/resources/events/index.js +var require_events = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/samples/resources/events/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Custom = void 0; + exports.Custom = require_custom(); + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/index.js +var require_lib = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Events = exports.ContextExamples = void 0; + __exportStar(require_lambda(), exports); + __exportStar(require_Utility(), exports); + exports.ContextExamples = require_contexts(); + exports.Events = require_events(); + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/formatter/LogFormatter.js +var require_LogFormatter = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/formatter/LogFormatter.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.LogFormatter = void 0; + var LogFormatter = class { + formatError(error) { + return { + name: error.name, + location: this.getCodeLocation(error.stack), + message: error.message, + stack: error.stack + }; + } + formatTimestamp(now) { + return now.toISOString(); + } + getCodeLocation(stack) { + if (!stack) { + return ""; + } + const stackLines = stack.split("\n"); + const regex = /\((.*):(\d+):(\d+)\)\\?$/; + let i; + for (i = 0; i < stackLines.length; i++) { + const match = regex.exec(stackLines[i]); + if (Array.isArray(match)) { + return `${match[1]}:${Number(match[2])}`; + } + } + return ""; + } + }; + exports.LogFormatter = LogFormatter; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/formatter/LogFormatterInterface.js +var require_LogFormatterInterface = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/formatter/LogFormatterInterface.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/formatter/PowertoolLogFormatter.js +var require_PowertoolLogFormatter = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/formatter/PowertoolLogFormatter.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.PowertoolLogFormatter = void 0; + var _1 = require_formatter(); + var PowertoolLogFormatter = class extends _1.LogFormatter { + formatAttributes(attributes) { + var _a, _b, _c, _d, _e; + return { + cold_start: (_a = attributes.lambdaContext) === null || _a === void 0 ? void 0 : _a.coldStart, + function_arn: (_b = attributes.lambdaContext) === null || _b === void 0 ? void 0 : _b.invokedFunctionArn, + function_memory_size: (_c = attributes.lambdaContext) === null || _c === void 0 ? void 0 : _c.memoryLimitInMB, + function_name: (_d = attributes.lambdaContext) === null || _d === void 0 ? void 0 : _d.functionName, + function_request_id: (_e = attributes.lambdaContext) === null || _e === void 0 ? void 0 : _e.awsRequestId, + level: attributes.logLevel, + message: attributes.message, + sampling_rate: attributes.sampleRateValue, + service: attributes.serviceName, + timestamp: this.formatTimestamp(attributes.timestamp), + xray_trace_id: attributes.xRayTraceId + }; + } + }; + exports.PowertoolLogFormatter = PowertoolLogFormatter; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/formatter/index.js +var require_formatter = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/formatter/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + __exportStar(require_LogFormatter(), exports); + __exportStar(require_LogFormatterInterface(), exports); + __exportStar(require_PowertoolLogFormatter(), exports); + } +}); + +// node_modules/lodash.pickby/index.js +var require_lodash = __commonJS({ + "node_modules/lodash.pickby/index.js"(exports, module2) { + var LARGE_ARRAY_SIZE = 200; + var FUNC_ERROR_TEXT = "Expected a function"; + var HASH_UNDEFINED = "__lodash_hash_undefined__"; + var UNORDERED_COMPARE_FLAG = 1; + var PARTIAL_COMPARE_FLAG = 2; + var INFINITY = 1 / 0; + var MAX_SAFE_INTEGER = 9007199254740991; + var argsTag = "[object Arguments]"; + var arrayTag = "[object Array]"; + var boolTag = "[object Boolean]"; + var dateTag = "[object Date]"; + var errorTag = "[object Error]"; + var funcTag = "[object Function]"; + var genTag = "[object GeneratorFunction]"; + var mapTag = "[object Map]"; + var numberTag = "[object Number]"; + var objectTag = "[object Object]"; + var promiseTag = "[object Promise]"; + var regexpTag = "[object RegExp]"; + var setTag = "[object Set]"; + var stringTag = "[object String]"; + var symbolTag = "[object Symbol]"; + var weakMapTag = "[object WeakMap]"; + var arrayBufferTag = "[object ArrayBuffer]"; + var dataViewTag = "[object DataView]"; + var float32Tag = "[object Float32Array]"; + var float64Tag = "[object Float64Array]"; + var int8Tag = "[object Int8Array]"; + var int16Tag = "[object Int16Array]"; + var int32Tag = "[object Int32Array]"; + var uint8Tag = "[object Uint8Array]"; + var uint8ClampedTag = "[object Uint8ClampedArray]"; + var uint16Tag = "[object Uint16Array]"; + var uint32Tag = "[object Uint32Array]"; + var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; + var reIsPlainProp = /^\w*$/; + var reLeadingDot = /^\./; + var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; + var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + var reEscapeChar = /\\(\\)?/g; + var reIsHostCtor = /^\[object .+?Constructor\]$/; + var reIsUint = /^(?:0|[1-9]\d*)$/; + var typedArrayTags = {}; + typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; + typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; + var freeGlobal = typeof global == "object" && global && global.Object === Object && global; + var freeSelf = typeof self == "object" && self && self.Object === Object && self; + var root = freeGlobal || freeSelf || Function("return this")(); + var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; + var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2; + var moduleExports = freeModule && freeModule.exports === freeExports; + var freeProcess = moduleExports && freeGlobal.process; + var nodeUtil = function() { + try { + return freeProcess && freeProcess.binding("util"); + } catch (e) { + } + }(); + var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; + function arrayPush(array, values) { + var index = -1, length = values.length, offset = array.length; + while (++index < length) { + array[offset + index] = values[index]; + } + return array; + } + function arraySome(array, predicate) { + var index = -1, length = array ? array.length : 0; + while (++index < length) { + if (predicate(array[index], index, array)) { + return true; + } + } + return false; + } + function baseProperty(key) { + return function(object) { + return object == null ? void 0 : object[key]; + }; + } + function baseTimes(n, iteratee) { + var index = -1, result = Array(n); + while (++index < n) { + result[index] = iteratee(index); + } + return result; + } + function baseUnary(func) { + return function(value) { + return func(value); + }; + } + function getValue(object, key) { + return object == null ? void 0 : object[key]; + } + function isHostObject(value) { + var result = false; + if (value != null && typeof value.toString != "function") { + try { + result = !!(value + ""); + } catch (e) { + } + } + return result; + } + function mapToArray(map) { + var index = -1, result = Array(map.size); + map.forEach(function(value, key) { + result[++index] = [key, value]; + }); + return result; + } + function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; + } + function setToArray(set) { + var index = -1, result = Array(set.size); + set.forEach(function(value) { + result[++index] = value; + }); + return result; + } + var arrayProto = Array.prototype; + var funcProto = Function.prototype; + var objectProto = Object.prototype; + var coreJsData = root["__core-js_shared__"]; + var maskSrcKey = function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); + return uid ? "Symbol(src)_1." + uid : ""; + }(); + var funcToString = funcProto.toString; + var hasOwnProperty = objectProto.hasOwnProperty; + var objectToString = objectProto.toString; + var reIsNative = RegExp( + "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" + ); + var Symbol2 = root.Symbol; + var Uint8Array2 = root.Uint8Array; + var getPrototype = overArg(Object.getPrototypeOf, Object); + var propertyIsEnumerable = objectProto.propertyIsEnumerable; + var splice = arrayProto.splice; + var nativeGetSymbols = Object.getOwnPropertySymbols; + var nativeKeys = overArg(Object.keys, Object); + var DataView = getNative(root, "DataView"); + var Map2 = getNative(root, "Map"); + var Promise2 = getNative(root, "Promise"); + var Set2 = getNative(root, "Set"); + var WeakMap = getNative(root, "WeakMap"); + var nativeCreate = getNative(Object, "create"); + var dataViewCtorString = toSource(DataView); + var mapCtorString = toSource(Map2); + var promiseCtorString = toSource(Promise2); + var setCtorString = toSource(Set2); + var weakMapCtorString = toSource(WeakMap); + var symbolProto = Symbol2 ? Symbol2.prototype : void 0; + var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0; + var symbolToString = symbolProto ? symbolProto.toString : void 0; + function Hash(entries) { + var index = -1, length = entries ? entries.length : 0; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + } + function hashDelete(key) { + return this.has(key) && delete this.__data__[key]; + } + function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? void 0 : result; + } + return hasOwnProperty.call(data, key) ? data[key] : void 0; + } + function hashHas(key) { + var data = this.__data__; + return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key); + } + function hashSet(key, value) { + var data = this.__data__; + data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value; + return this; + } + Hash.prototype.clear = hashClear; + Hash.prototype["delete"] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; + function ListCache(entries) { + var index = -1, length = entries ? entries.length : 0; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function listCacheClear() { + this.__data__ = []; + } + function listCacheDelete(key) { + var data = this.__data__, index = assocIndexOf(data, key); + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + return true; + } + function listCacheGet(key) { + var data = this.__data__, index = assocIndexOf(data, key); + return index < 0 ? void 0 : data[index][1]; + } + function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; + } + function listCacheSet(key, value) { + var data = this.__data__, index = assocIndexOf(data, key); + if (index < 0) { + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; + } + ListCache.prototype.clear = listCacheClear; + ListCache.prototype["delete"] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; + function MapCache(entries) { + var index = -1, length = entries ? entries.length : 0; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function mapCacheClear() { + this.__data__ = { + "hash": new Hash(), + "map": new (Map2 || ListCache)(), + "string": new Hash() + }; + } + function mapCacheDelete(key) { + return getMapData(this, key)["delete"](key); + } + function mapCacheGet(key) { + return getMapData(this, key).get(key); + } + function mapCacheHas(key) { + return getMapData(this, key).has(key); + } + function mapCacheSet(key, value) { + getMapData(this, key).set(key, value); + return this; + } + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype["delete"] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; + function SetCache(values) { + var index = -1, length = values ? values.length : 0; + this.__data__ = new MapCache(); + while (++index < length) { + this.add(values[index]); + } + } + function setCacheAdd(value) { + this.__data__.set(value, HASH_UNDEFINED); + return this; + } + function setCacheHas(value) { + return this.__data__.has(value); + } + SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; + SetCache.prototype.has = setCacheHas; + function Stack(entries) { + this.__data__ = new ListCache(entries); + } + function stackClear() { + this.__data__ = new ListCache(); + } + function stackDelete(key) { + return this.__data__["delete"](key); + } + function stackGet(key) { + return this.__data__.get(key); + } + function stackHas(key) { + return this.__data__.has(key); + } + function stackSet(key, value) { + var cache = this.__data__; + if (cache instanceof ListCache) { + var pairs = cache.__data__; + if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) { + pairs.push([key, value]); + return this; + } + cache = this.__data__ = new MapCache(pairs); + } + cache.set(key, value); + return this; + } + Stack.prototype.clear = stackClear; + Stack.prototype["delete"] = stackDelete; + Stack.prototype.get = stackGet; + Stack.prototype.has = stackHas; + Stack.prototype.set = stackSet; + function arrayLikeKeys(value, inherited) { + var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : []; + var length = result.length, skipIndexes = !!length; + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isIndex(key, length)))) { + result.push(key); + } + } + return result; + } + function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; + } + function baseGet(object, path) { + path = isKey(path, object) ? [path] : castPath(path); + var index = 0, length = path.length; + while (object != null && index < length) { + object = object[toKey(path[index++])]; + } + return index && index == length ? object : void 0; + } + function baseGetAllKeys(object, keysFunc, symbolsFunc) { + var result = keysFunc(object); + return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); + } + function baseGetTag(value) { + return objectToString.call(value); + } + function baseHasIn(object, key) { + return object != null && key in Object(object); + } + function baseIsEqual(value, other, customizer, bitmask, stack) { + if (value === other) { + return true; + } + if (value == null || other == null || !isObject(value) && !isObjectLike(other)) { + return value !== value && other !== other; + } + return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack); + } + function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) { + var objIsArr = isArray(object), othIsArr = isArray(other), objTag = arrayTag, othTag = arrayTag; + if (!objIsArr) { + objTag = getTag(object); + objTag = objTag == argsTag ? objectTag : objTag; + } + if (!othIsArr) { + othTag = getTag(other); + othTag = othTag == argsTag ? objectTag : othTag; + } + var objIsObj = objTag == objectTag && !isHostObject(object), othIsObj = othTag == objectTag && !isHostObject(other), isSameTag = objTag == othTag; + if (isSameTag && !objIsObj) { + stack || (stack = new Stack()); + return objIsArr || isTypedArray(object) ? equalArrays(object, other, equalFunc, customizer, bitmask, stack) : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack); + } + if (!(bitmask & PARTIAL_COMPARE_FLAG)) { + var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__"); + if (objIsWrapped || othIsWrapped) { + var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; + stack || (stack = new Stack()); + return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack); + } + } + if (!isSameTag) { + return false; + } + stack || (stack = new Stack()); + return equalObjects(object, other, equalFunc, customizer, bitmask, stack); + } + function baseIsMatch(object, source, matchData, customizer) { + var index = matchData.length, length = index, noCustomizer = !customizer; + if (object == null) { + return !length; + } + object = Object(object); + while (index--) { + var data = matchData[index]; + if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) { + return false; + } + } + while (++index < length) { + data = matchData[index]; + var key = data[0], objValue = object[key], srcValue = data[1]; + if (noCustomizer && data[2]) { + if (objValue === void 0 && !(key in object)) { + return false; + } + } else { + var stack = new Stack(); + if (customizer) { + var result = customizer(objValue, srcValue, key, object, source, stack); + } + if (!(result === void 0 ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack) : result)) { + return false; + } + } + } + return true; + } + function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); + } + function baseIsTypedArray(value) { + return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objectToString.call(value)]; + } + function baseIteratee(value) { + if (typeof value == "function") { + return value; + } + if (value == null) { + return identity; + } + if (typeof value == "object") { + return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value); + } + return property(value); + } + function baseKeys(object) { + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != "constructor") { + result.push(key); + } + } + return result; + } + function baseKeysIn(object) { + if (!isObject(object)) { + return nativeKeysIn(object); + } + var isProto = isPrototype(object), result = []; + for (var key in object) { + if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) { + result.push(key); + } + } + return result; + } + function baseMatches(source) { + var matchData = getMatchData(source); + if (matchData.length == 1 && matchData[0][2]) { + return matchesStrictComparable(matchData[0][0], matchData[0][1]); + } + return function(object) { + return object === source || baseIsMatch(object, source, matchData); + }; + } + function baseMatchesProperty(path, srcValue) { + if (isKey(path) && isStrictComparable(srcValue)) { + return matchesStrictComparable(toKey(path), srcValue); + } + return function(object) { + var objValue = get(object, path); + return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, void 0, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG); + }; + } + function basePickBy(object, props, predicate) { + var index = -1, length = props.length, result = {}; + while (++index < length) { + var key = props[index], value = object[key]; + if (predicate(value, key)) { + result[key] = value; + } + } + return result; + } + function basePropertyDeep(path) { + return function(object) { + return baseGet(object, path); + }; + } + function baseToString(value) { + if (typeof value == "string") { + return value; + } + if (isSymbol(value)) { + return symbolToString ? symbolToString.call(value) : ""; + } + var result = value + ""; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; + } + function castPath(value) { + return isArray(value) ? value : stringToPath(value); + } + function equalArrays(array, other, equalFunc, customizer, bitmask, stack) { + var isPartial = bitmask & PARTIAL_COMPARE_FLAG, arrLength = array.length, othLength = other.length; + if (arrLength != othLength && !(isPartial && othLength > arrLength)) { + return false; + } + var stacked = stack.get(array); + if (stacked && stack.get(other)) { + return stacked == other; + } + var index = -1, result = true, seen = bitmask & UNORDERED_COMPARE_FLAG ? new SetCache() : void 0; + stack.set(array, other); + stack.set(other, array); + while (++index < arrLength) { + var arrValue = array[index], othValue = other[index]; + if (customizer) { + var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack); + } + if (compared !== void 0) { + if (compared) { + continue; + } + result = false; + break; + } + if (seen) { + if (!arraySome(other, function(othValue2, othIndex) { + if (!seen.has(othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, customizer, bitmask, stack))) { + return seen.add(othIndex); + } + })) { + result = false; + break; + } + } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) { + result = false; + break; + } + } + stack["delete"](array); + stack["delete"](other); + return result; + } + function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) { + switch (tag) { + case dataViewTag: + if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) { + return false; + } + object = object.buffer; + other = other.buffer; + case arrayBufferTag: + if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) { + return false; + } + return true; + case boolTag: + case dateTag: + case numberTag: + return eq(+object, +other); + case errorTag: + return object.name == other.name && object.message == other.message; + case regexpTag: + case stringTag: + return object == other + ""; + case mapTag: + var convert = mapToArray; + case setTag: + var isPartial = bitmask & PARTIAL_COMPARE_FLAG; + convert || (convert = setToArray); + if (object.size != other.size && !isPartial) { + return false; + } + var stacked = stack.get(object); + if (stacked) { + return stacked == other; + } + bitmask |= UNORDERED_COMPARE_FLAG; + stack.set(object, other); + var result = equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack); + stack["delete"](object); + return result; + case symbolTag: + if (symbolValueOf) { + return symbolValueOf.call(object) == symbolValueOf.call(other); + } + } + return false; + } + function equalObjects(object, other, equalFunc, customizer, bitmask, stack) { + var isPartial = bitmask & PARTIAL_COMPARE_FLAG, objProps = keys(object), objLength = objProps.length, othProps = keys(other), othLength = othProps.length; + if (objLength != othLength && !isPartial) { + return false; + } + var index = objLength; + while (index--) { + var key = objProps[index]; + if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { + return false; + } + } + var stacked = stack.get(object); + if (stacked && stack.get(other)) { + return stacked == other; + } + var result = true; + stack.set(object, other); + stack.set(other, object); + var skipCtor = isPartial; + while (++index < objLength) { + key = objProps[index]; + var objValue = object[key], othValue = other[key]; + if (customizer) { + var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); + } + if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack) : compared)) { + result = false; + break; + } + skipCtor || (skipCtor = key == "constructor"); + } + if (result && !skipCtor) { + var objCtor = object.constructor, othCtor = other.constructor; + if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) { + result = false; + } + } + stack["delete"](object); + stack["delete"](other); + return result; + } + function getAllKeysIn(object) { + return baseGetAllKeys(object, keysIn, getSymbolsIn); + } + function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; + } + function getMatchData(object) { + var result = keys(object), length = result.length; + while (length--) { + var key = result[length], value = object[key]; + result[length] = [key, value, isStrictComparable(value)]; + } + return result; + } + function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : void 0; + } + var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray; + var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { + var result = []; + while (object) { + arrayPush(result, getSymbols(object)); + object = getPrototype(object); + } + return result; + }; + var getTag = baseGetTag; + if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) { + getTag = function(value) { + var result = objectToString.call(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : void 0; + if (ctorString) { + switch (ctorString) { + case dataViewCtorString: + return dataViewTag; + case mapCtorString: + return mapTag; + case promiseCtorString: + return promiseTag; + case setCtorString: + return setTag; + case weakMapCtorString: + return weakMapTag; + } + } + return result; + }; + } + function hasPath(object, path, hasFunc) { + path = isKey(path, object) ? [path] : castPath(path); + var result, index = -1, length = path.length; + while (++index < length) { + var key = toKey(path[index]); + if (!(result = object != null && hasFunc(object, key))) { + break; + } + object = object[key]; + } + if (result) { + return result; + } + var length = object ? object.length : 0; + return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); + } + function isIndex(value, length) { + length = length == null ? MAX_SAFE_INTEGER : length; + return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); + } + function isKey(value, object) { + if (isArray(value)) { + return false; + } + var type = typeof value; + if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) { + return true; + } + return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object); + } + function isKeyable(value) { + var type = typeof value; + return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; + } + function isMasked(func) { + return !!maskSrcKey && maskSrcKey in func; + } + function isPrototype(value) { + var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; + return value === proto; + } + function isStrictComparable(value) { + return value === value && !isObject(value); + } + function matchesStrictComparable(key, srcValue) { + return function(object) { + if (object == null) { + return false; + } + return object[key] === srcValue && (srcValue !== void 0 || key in Object(object)); + }; + } + function nativeKeysIn(object) { + var result = []; + if (object != null) { + for (var key in Object(object)) { + result.push(key); + } + } + return result; + } + var stringToPath = memoize(function(string) { + string = toString(string); + var result = []; + if (reLeadingDot.test(string)) { + result.push(""); + } + string.replace(rePropName, function(match, number, quote, string2) { + result.push(quote ? string2.replace(reEscapeChar, "$1") : number || match); + }); + return result; + }); + function toKey(value) { + if (typeof value == "string" || isSymbol(value)) { + return value; + } + var result = value + ""; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; + } + function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) { + } + try { + return func + ""; + } catch (e) { + } + } + return ""; + } + function memoize(func, resolver) { + if (typeof func != "function" || resolver && typeof resolver != "function") { + throw new TypeError(FUNC_ERROR_TEXT); + } + var memoized = function() { + var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; + if (cache.has(key)) { + return cache.get(key); + } + var result = func.apply(this, args); + memoized.cache = cache.set(key, result); + return result; + }; + memoized.cache = new (memoize.Cache || MapCache)(); + return memoized; + } + memoize.Cache = MapCache; + function eq(value, other) { + return value === other || value !== value && other !== other; + } + function isArguments(value) { + return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag); + } + var isArray = Array.isArray; + function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); + } + function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); + } + function isFunction(value) { + var tag = isObject(value) ? objectToString.call(value) : ""; + return tag == funcTag || tag == genTag; + } + function isLength(value) { + return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; + } + function isObject(value) { + var type = typeof value; + return !!value && (type == "object" || type == "function"); + } + function isObjectLike(value) { + return !!value && typeof value == "object"; + } + function isSymbol(value) { + return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag; + } + var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; + function toString(value) { + return value == null ? "" : baseToString(value); + } + function get(object, path, defaultValue) { + var result = object == null ? void 0 : baseGet(object, path); + return result === void 0 ? defaultValue : result; + } + function hasIn(object, path) { + return object != null && hasPath(object, path, baseHasIn); + } + function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); + } + function keysIn(object) { + return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); + } + function pickBy(object, predicate) { + return object == null ? {} : basePickBy(object, getAllKeysIn(object), baseIteratee(predicate)); + } + function identity(value) { + return value; + } + function property(path) { + return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); + } + function stubArray() { + return []; + } + module2.exports = pickBy; + } +}); + +// node_modules/lodash.merge/index.js +var require_lodash2 = __commonJS({ + "node_modules/lodash.merge/index.js"(exports, module2) { + var LARGE_ARRAY_SIZE = 200; + var HASH_UNDEFINED = "__lodash_hash_undefined__"; + var HOT_COUNT = 800; + var HOT_SPAN = 16; + var MAX_SAFE_INTEGER = 9007199254740991; + var argsTag = "[object Arguments]"; + var arrayTag = "[object Array]"; + var asyncTag = "[object AsyncFunction]"; + var boolTag = "[object Boolean]"; + var dateTag = "[object Date]"; + var errorTag = "[object Error]"; + var funcTag = "[object Function]"; + var genTag = "[object GeneratorFunction]"; + var mapTag = "[object Map]"; + var numberTag = "[object Number]"; + var nullTag = "[object Null]"; + var objectTag = "[object Object]"; + var proxyTag = "[object Proxy]"; + var regexpTag = "[object RegExp]"; + var setTag = "[object Set]"; + var stringTag = "[object String]"; + var undefinedTag = "[object Undefined]"; + var weakMapTag = "[object WeakMap]"; + var arrayBufferTag = "[object ArrayBuffer]"; + var dataViewTag = "[object DataView]"; + var float32Tag = "[object Float32Array]"; + var float64Tag = "[object Float64Array]"; + var int8Tag = "[object Int8Array]"; + var int16Tag = "[object Int16Array]"; + var int32Tag = "[object Int32Array]"; + var uint8Tag = "[object Uint8Array]"; + var uint8ClampedTag = "[object Uint8ClampedArray]"; + var uint16Tag = "[object Uint16Array]"; + var uint32Tag = "[object Uint32Array]"; + var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + var reIsHostCtor = /^\[object .+?Constructor\]$/; + var reIsUint = /^(?:0|[1-9]\d*)$/; + var typedArrayTags = {}; + typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; + typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; + var freeGlobal = typeof global == "object" && global && global.Object === Object && global; + var freeSelf = typeof self == "object" && self && self.Object === Object && self; + var root = freeGlobal || freeSelf || Function("return this")(); + var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; + var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2; + var moduleExports = freeModule && freeModule.exports === freeExports; + var freeProcess = moduleExports && freeGlobal.process; + var nodeUtil = function() { + try { + var types = freeModule && freeModule.require && freeModule.require("util").types; + if (types) { + return types; + } + return freeProcess && freeProcess.binding && freeProcess.binding("util"); + } catch (e) { + } + }(); + var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; + function apply(func, thisArg, args) { + switch (args.length) { + case 0: + return func.call(thisArg); + case 1: + return func.call(thisArg, args[0]); + case 2: + return func.call(thisArg, args[0], args[1]); + case 3: + return func.call(thisArg, args[0], args[1], args[2]); + } + return func.apply(thisArg, args); + } + function baseTimes(n, iteratee) { + var index = -1, result = Array(n); + while (++index < n) { + result[index] = iteratee(index); + } + return result; + } + function baseUnary(func) { + return function(value) { + return func(value); + }; + } + function getValue(object, key) { + return object == null ? void 0 : object[key]; + } + function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; + } + var arrayProto = Array.prototype; + var funcProto = Function.prototype; + var objectProto = Object.prototype; + var coreJsData = root["__core-js_shared__"]; + var funcToString = funcProto.toString; + var hasOwnProperty = objectProto.hasOwnProperty; + var maskSrcKey = function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); + return uid ? "Symbol(src)_1." + uid : ""; + }(); + var nativeObjectToString = objectProto.toString; + var objectCtorString = funcToString.call(Object); + var reIsNative = RegExp( + "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" + ); + var Buffer2 = moduleExports ? root.Buffer : void 0; + var Symbol2 = root.Symbol; + var Uint8Array2 = root.Uint8Array; + var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0; + var getPrototype = overArg(Object.getPrototypeOf, Object); + var objectCreate = Object.create; + var propertyIsEnumerable = objectProto.propertyIsEnumerable; + var splice = arrayProto.splice; + var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0; + var defineProperty = function() { + try { + var func = getNative(Object, "defineProperty"); + func({}, "", {}); + return func; + } catch (e) { + } + }(); + var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0; + var nativeMax = Math.max; + var nativeNow = Date.now; + var Map2 = getNative(root, "Map"); + var nativeCreate = getNative(Object, "create"); + var baseCreate = function() { + function object() { + } + return function(proto) { + if (!isObject(proto)) { + return {}; + } + if (objectCreate) { + return objectCreate(proto); + } + object.prototype = proto; + var result = new object(); + object.prototype = void 0; + return result; + }; + }(); + function Hash(entries) { + var index = -1, length = entries == null ? 0 : entries.length; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; + } + function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; + } + function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? void 0 : result; + } + return hasOwnProperty.call(data, key) ? data[key] : void 0; + } + function hashHas(key) { + var data = this.__data__; + return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key); + } + function hashSet(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value; + return this; + } + Hash.prototype.clear = hashClear; + Hash.prototype["delete"] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; + function ListCache(entries) { + var index = -1, length = entries == null ? 0 : entries.length; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function listCacheClear() { + this.__data__ = []; + this.size = 0; + } + function listCacheDelete(key) { + var data = this.__data__, index = assocIndexOf(data, key); + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; + } + function listCacheGet(key) { + var data = this.__data__, index = assocIndexOf(data, key); + return index < 0 ? void 0 : data[index][1]; + } + function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; + } + function listCacheSet(key, value) { + var data = this.__data__, index = assocIndexOf(data, key); + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; + } + ListCache.prototype.clear = listCacheClear; + ListCache.prototype["delete"] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; + function MapCache(entries) { + var index = -1, length = entries == null ? 0 : entries.length; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function mapCacheClear() { + this.size = 0; + this.__data__ = { + "hash": new Hash(), + "map": new (Map2 || ListCache)(), + "string": new Hash() + }; + } + function mapCacheDelete(key) { + var result = getMapData(this, key)["delete"](key); + this.size -= result ? 1 : 0; + return result; + } + function mapCacheGet(key) { + return getMapData(this, key).get(key); + } + function mapCacheHas(key) { + return getMapData(this, key).has(key); + } + function mapCacheSet(key, value) { + var data = getMapData(this, key), size = data.size; + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; + } + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype["delete"] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; + function Stack(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; + } + function stackClear() { + this.__data__ = new ListCache(); + this.size = 0; + } + function stackDelete(key) { + var data = this.__data__, result = data["delete"](key); + this.size = data.size; + return result; + } + function stackGet(key) { + return this.__data__.get(key); + } + function stackHas(key) { + return this.__data__.has(key); + } + function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); + } + data.set(key, value); + this.size = data.size; + return this; + } + Stack.prototype.clear = stackClear; + Stack.prototype["delete"] = stackDelete; + Stack.prototype.get = stackGet; + Stack.prototype.has = stackHas; + Stack.prototype.set = stackSet; + function arrayLikeKeys(value, inherited) { + var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) { + result.push(key); + } + } + return result; + } + function assignMergeValue(object, key, value) { + if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) { + baseAssignValue(object, key, value); + } + } + function assignValue(object, key, value) { + var objValue = object[key]; + if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) { + baseAssignValue(object, key, value); + } + } + function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; + } + function baseAssignValue(object, key, value) { + if (key == "__proto__" && defineProperty) { + defineProperty(object, key, { + "configurable": true, + "enumerable": true, + "value": value, + "writable": true + }); + } else { + object[key] = value; + } + } + var baseFor = createBaseFor(); + function baseGetTag(value) { + if (value == null) { + return value === void 0 ? undefinedTag : nullTag; + } + return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); + } + function baseIsArguments(value) { + return isObjectLike(value) && baseGetTag(value) == argsTag; + } + function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); + } + function baseIsTypedArray(value) { + return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; + } + function baseKeysIn(object) { + if (!isObject(object)) { + return nativeKeysIn(object); + } + var isProto = isPrototype(object), result = []; + for (var key in object) { + if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) { + result.push(key); + } + } + return result; + } + function baseMerge(object, source, srcIndex, customizer, stack) { + if (object === source) { + return; + } + baseFor(source, function(srcValue, key) { + stack || (stack = new Stack()); + if (isObject(srcValue)) { + baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); + } else { + var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0; + if (newValue === void 0) { + newValue = srcValue; + } + assignMergeValue(object, key, newValue); + } + }, keysIn); + } + function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { + var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue); + if (stacked) { + assignMergeValue(object, key, stacked); + return; + } + var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0; + var isCommon = newValue === void 0; + if (isCommon) { + var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue); + newValue = srcValue; + if (isArr || isBuff || isTyped) { + if (isArray(objValue)) { + newValue = objValue; + } else if (isArrayLikeObject(objValue)) { + newValue = copyArray(objValue); + } else if (isBuff) { + isCommon = false; + newValue = cloneBuffer(srcValue, true); + } else if (isTyped) { + isCommon = false; + newValue = cloneTypedArray(srcValue, true); + } else { + newValue = []; + } + } else if (isPlainObject(srcValue) || isArguments(srcValue)) { + newValue = objValue; + if (isArguments(objValue)) { + newValue = toPlainObject(objValue); + } else if (!isObject(objValue) || isFunction(objValue)) { + newValue = initCloneObject(srcValue); + } + } else { + isCommon = false; + } + } + if (isCommon) { + stack.set(srcValue, newValue); + mergeFunc(newValue, srcValue, srcIndex, customizer, stack); + stack["delete"](srcValue); + } + assignMergeValue(object, key, newValue); + } + function baseRest(func, start) { + return setToString(overRest(func, start, identity), func + ""); + } + var baseSetToString = !defineProperty ? identity : function(func, string) { + return defineProperty(func, "toString", { + "configurable": true, + "enumerable": false, + "value": constant(string), + "writable": true + }); + }; + function cloneBuffer(buffer, isDeep) { + if (isDeep) { + return buffer.slice(); + } + var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); + buffer.copy(result); + return result; + } + function cloneArrayBuffer(arrayBuffer) { + var result = new arrayBuffer.constructor(arrayBuffer.byteLength); + new Uint8Array2(result).set(new Uint8Array2(arrayBuffer)); + return result; + } + function cloneTypedArray(typedArray, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; + return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); + } + function copyArray(source, array) { + var index = -1, length = source.length; + array || (array = Array(length)); + while (++index < length) { + array[index] = source[index]; + } + return array; + } + function copyObject(source, props, object, customizer) { + var isNew = !object; + object || (object = {}); + var index = -1, length = props.length; + while (++index < length) { + var key = props[index]; + var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0; + if (newValue === void 0) { + newValue = source[key]; + } + if (isNew) { + baseAssignValue(object, key, newValue); + } else { + assignValue(object, key, newValue); + } + } + return object; + } + function createAssigner(assigner) { + return baseRest(function(object, sources) { + var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0; + customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0; + if (guard && isIterateeCall(sources[0], sources[1], guard)) { + customizer = length < 3 ? void 0 : customizer; + length = 1; + } + object = Object(object); + while (++index < length) { + var source = sources[index]; + if (source) { + assigner(object, source, index, customizer); + } + } + return object; + }); + } + function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; + while (length--) { + var key = props[fromRight ? length : ++index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; + } + function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; + } + function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : void 0; + } + function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; + try { + value[symToStringTag] = void 0; + var unmasked = true; + } catch (e) { + } + var result = nativeObjectToString.call(value); + if (unmasked) { + if (isOwn) { + value[symToStringTag] = tag; + } else { + delete value[symToStringTag]; + } + } + return result; + } + function initCloneObject(object) { + return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {}; + } + function isIndex(value, length) { + var type = typeof value; + length = length == null ? MAX_SAFE_INTEGER : length; + return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); + } + function isIterateeCall(value, index, object) { + if (!isObject(object)) { + return false; + } + var type = typeof index; + if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) { + return eq(object[index], value); + } + return false; + } + function isKeyable(value) { + var type = typeof value; + return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; + } + function isMasked(func) { + return !!maskSrcKey && maskSrcKey in func; + } + function isPrototype(value) { + var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; + return value === proto; + } + function nativeKeysIn(object) { + var result = []; + if (object != null) { + for (var key in Object(object)) { + result.push(key); + } + } + return result; + } + function objectToString(value) { + return nativeObjectToString.call(value); + } + function overRest(func, start, transform) { + start = nativeMax(start === void 0 ? func.length - 1 : start, 0); + return function() { + var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); + while (++index < length) { + array[index] = args[start + index]; + } + index = -1; + var otherArgs = Array(start + 1); + while (++index < start) { + otherArgs[index] = args[index]; + } + otherArgs[start] = transform(array); + return apply(func, this, otherArgs); + }; + } + function safeGet(object, key) { + if (key === "constructor" && typeof object[key] === "function") { + return; + } + if (key == "__proto__") { + return; + } + return object[key]; + } + var setToString = shortOut(baseSetToString); + function shortOut(func) { + var count = 0, lastCalled = 0; + return function() { + var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); + lastCalled = stamp; + if (remaining > 0) { + if (++count >= HOT_COUNT) { + return arguments[0]; + } + } else { + count = 0; + } + return func.apply(void 0, arguments); + }; + } + function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) { + } + try { + return func + ""; + } catch (e) { + } + } + return ""; + } + function eq(value, other) { + return value === other || value !== value && other !== other; + } + var isArguments = baseIsArguments(function() { + return arguments; + }()) ? baseIsArguments : function(value) { + return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); + }; + var isArray = Array.isArray; + function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); + } + function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); + } + var isBuffer = nativeIsBuffer || stubFalse; + function isFunction(value) { + if (!isObject(value)) { + return false; + } + var tag = baseGetTag(value); + return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; + } + function isLength(value) { + return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; + } + function isObject(value) { + var type = typeof value; + return value != null && (type == "object" || type == "function"); + } + function isObjectLike(value) { + return value != null && typeof value == "object"; + } + function isPlainObject(value) { + if (!isObjectLike(value) || baseGetTag(value) != objectTag) { + return false; + } + var proto = getPrototype(value); + if (proto === null) { + return true; + } + var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor; + return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; + } + var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; + function toPlainObject(value) { + return copyObject(value, keysIn(value)); + } + function keysIn(object) { + return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); + } + var merge = createAssigner(function(object, source, srcIndex) { + baseMerge(object, source, srcIndex); + }); + function constant(value) { + return function() { + return value; + }; + } + function identity(value) { + return value; + } + function stubFalse() { + return false; + } + module2.exports = merge; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/log/LogItem.js +var require_LogItem = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/log/LogItem.js"(exports) { + "use strict"; + var __importDefault = exports && exports.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.LogItem = void 0; + var lodash_pickby_1 = __importDefault(require_lodash()); + var lodash_merge_1 = __importDefault(require_lodash2()); + var LogItem = class { + constructor(params) { + this.attributes = {}; + this.addAttributes(params.baseAttributes); + this.addAttributes(params.persistentAttributes); + } + addAttributes(attributes) { + this.attributes = (0, lodash_merge_1.default)(this.attributes, attributes); + return this; + } + getAttributes() { + return this.attributes; + } + prepareForPrint() { + this.setAttributes(this.removeEmptyKeys(this.getAttributes())); + } + removeEmptyKeys(attributes) { + return (0, lodash_pickby_1.default)(attributes, (value) => value !== void 0 && value !== "" && value !== null); + } + setAttributes(attributes) { + this.attributes = attributes; + } + }; + exports.LogItem = LogItem; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/log/LogItemInterface.js +var require_LogItemInterface = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/log/LogItemInterface.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/log/index.js +var require_log = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/log/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + __exportStar(require_LogItem(), exports); + __exportStar(require_LogItemInterface(), exports); + } +}); + +// node_modules/lodash.clonedeep/index.js +var require_lodash3 = __commonJS({ + "node_modules/lodash.clonedeep/index.js"(exports, module2) { + var LARGE_ARRAY_SIZE = 200; + var HASH_UNDEFINED = "__lodash_hash_undefined__"; + var MAX_SAFE_INTEGER = 9007199254740991; + var argsTag = "[object Arguments]"; + var arrayTag = "[object Array]"; + var boolTag = "[object Boolean]"; + var dateTag = "[object Date]"; + var errorTag = "[object Error]"; + var funcTag = "[object Function]"; + var genTag = "[object GeneratorFunction]"; + var mapTag = "[object Map]"; + var numberTag = "[object Number]"; + var objectTag = "[object Object]"; + var promiseTag = "[object Promise]"; + var regexpTag = "[object RegExp]"; + var setTag = "[object Set]"; + var stringTag = "[object String]"; + var symbolTag = "[object Symbol]"; + var weakMapTag = "[object WeakMap]"; + var arrayBufferTag = "[object ArrayBuffer]"; + var dataViewTag = "[object DataView]"; + var float32Tag = "[object Float32Array]"; + var float64Tag = "[object Float64Array]"; + var int8Tag = "[object Int8Array]"; + var int16Tag = "[object Int16Array]"; + var int32Tag = "[object Int32Array]"; + var uint8Tag = "[object Uint8Array]"; + var uint8ClampedTag = "[object Uint8ClampedArray]"; + var uint16Tag = "[object Uint16Array]"; + var uint32Tag = "[object Uint32Array]"; + var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + var reFlags = /\w*$/; + var reIsHostCtor = /^\[object .+?Constructor\]$/; + var reIsUint = /^(?:0|[1-9]\d*)$/; + var cloneableTags = {}; + cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; + cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; + var freeGlobal = typeof global == "object" && global && global.Object === Object && global; + var freeSelf = typeof self == "object" && self && self.Object === Object && self; + var root = freeGlobal || freeSelf || Function("return this")(); + var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; + var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2; + var moduleExports = freeModule && freeModule.exports === freeExports; + function addMapEntry(map, pair) { + map.set(pair[0], pair[1]); + return map; + } + function addSetEntry(set, value) { + set.add(value); + return set; + } + function arrayEach(array, iteratee) { + var index = -1, length = array ? array.length : 0; + while (++index < length) { + if (iteratee(array[index], index, array) === false) { + break; + } + } + return array; + } + function arrayPush(array, values) { + var index = -1, length = values.length, offset = array.length; + while (++index < length) { + array[offset + index] = values[index]; + } + return array; + } + function arrayReduce(array, iteratee, accumulator, initAccum) { + var index = -1, length = array ? array.length : 0; + if (initAccum && length) { + accumulator = array[++index]; + } + while (++index < length) { + accumulator = iteratee(accumulator, array[index], index, array); + } + return accumulator; + } + function baseTimes(n, iteratee) { + var index = -1, result = Array(n); + while (++index < n) { + result[index] = iteratee(index); + } + return result; + } + function getValue(object, key) { + return object == null ? void 0 : object[key]; + } + function isHostObject(value) { + var result = false; + if (value != null && typeof value.toString != "function") { + try { + result = !!(value + ""); + } catch (e) { + } + } + return result; + } + function mapToArray(map) { + var index = -1, result = Array(map.size); + map.forEach(function(value, key) { + result[++index] = [key, value]; + }); + return result; + } + function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; + } + function setToArray(set) { + var index = -1, result = Array(set.size); + set.forEach(function(value) { + result[++index] = value; + }); + return result; + } + var arrayProto = Array.prototype; + var funcProto = Function.prototype; + var objectProto = Object.prototype; + var coreJsData = root["__core-js_shared__"]; + var maskSrcKey = function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); + return uid ? "Symbol(src)_1." + uid : ""; + }(); + var funcToString = funcProto.toString; + var hasOwnProperty = objectProto.hasOwnProperty; + var objectToString = objectProto.toString; + var reIsNative = RegExp( + "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" + ); + var Buffer2 = moduleExports ? root.Buffer : void 0; + var Symbol2 = root.Symbol; + var Uint8Array2 = root.Uint8Array; + var getPrototype = overArg(Object.getPrototypeOf, Object); + var objectCreate = Object.create; + var propertyIsEnumerable = objectProto.propertyIsEnumerable; + var splice = arrayProto.splice; + var nativeGetSymbols = Object.getOwnPropertySymbols; + var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0; + var nativeKeys = overArg(Object.keys, Object); + var DataView = getNative(root, "DataView"); + var Map2 = getNative(root, "Map"); + var Promise2 = getNative(root, "Promise"); + var Set2 = getNative(root, "Set"); + var WeakMap = getNative(root, "WeakMap"); + var nativeCreate = getNative(Object, "create"); + var dataViewCtorString = toSource(DataView); + var mapCtorString = toSource(Map2); + var promiseCtorString = toSource(Promise2); + var setCtorString = toSource(Set2); + var weakMapCtorString = toSource(WeakMap); + var symbolProto = Symbol2 ? Symbol2.prototype : void 0; + var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0; + function Hash(entries) { + var index = -1, length = entries ? entries.length : 0; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + } + function hashDelete(key) { + return this.has(key) && delete this.__data__[key]; + } + function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? void 0 : result; + } + return hasOwnProperty.call(data, key) ? data[key] : void 0; + } + function hashHas(key) { + var data = this.__data__; + return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key); + } + function hashSet(key, value) { + var data = this.__data__; + data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value; + return this; + } + Hash.prototype.clear = hashClear; + Hash.prototype["delete"] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; + function ListCache(entries) { + var index = -1, length = entries ? entries.length : 0; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function listCacheClear() { + this.__data__ = []; + } + function listCacheDelete(key) { + var data = this.__data__, index = assocIndexOf(data, key); + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + return true; + } + function listCacheGet(key) { + var data = this.__data__, index = assocIndexOf(data, key); + return index < 0 ? void 0 : data[index][1]; + } + function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; + } + function listCacheSet(key, value) { + var data = this.__data__, index = assocIndexOf(data, key); + if (index < 0) { + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; + } + ListCache.prototype.clear = listCacheClear; + ListCache.prototype["delete"] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; + function MapCache(entries) { + var index = -1, length = entries ? entries.length : 0; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function mapCacheClear() { + this.__data__ = { + "hash": new Hash(), + "map": new (Map2 || ListCache)(), + "string": new Hash() + }; + } + function mapCacheDelete(key) { + return getMapData(this, key)["delete"](key); + } + function mapCacheGet(key) { + return getMapData(this, key).get(key); + } + function mapCacheHas(key) { + return getMapData(this, key).has(key); + } + function mapCacheSet(key, value) { + getMapData(this, key).set(key, value); + return this; + } + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype["delete"] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; + function Stack(entries) { + this.__data__ = new ListCache(entries); + } + function stackClear() { + this.__data__ = new ListCache(); + } + function stackDelete(key) { + return this.__data__["delete"](key); + } + function stackGet(key) { + return this.__data__.get(key); + } + function stackHas(key) { + return this.__data__.has(key); + } + function stackSet(key, value) { + var cache = this.__data__; + if (cache instanceof ListCache) { + var pairs = cache.__data__; + if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) { + pairs.push([key, value]); + return this; + } + cache = this.__data__ = new MapCache(pairs); + } + cache.set(key, value); + return this; + } + Stack.prototype.clear = stackClear; + Stack.prototype["delete"] = stackDelete; + Stack.prototype.get = stackGet; + Stack.prototype.has = stackHas; + Stack.prototype.set = stackSet; + function arrayLikeKeys(value, inherited) { + var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : []; + var length = result.length, skipIndexes = !!length; + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isIndex(key, length)))) { + result.push(key); + } + } + return result; + } + function assignValue(object, key, value) { + var objValue = object[key]; + if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) { + object[key] = value; + } + } + function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; + } + function baseAssign(object, source) { + return object && copyObject(source, keys(source), object); + } + function baseClone(value, isDeep, isFull, customizer, key, object, stack) { + var result; + if (customizer) { + result = object ? customizer(value, key, object, stack) : customizer(value); + } + if (result !== void 0) { + return result; + } + if (!isObject(value)) { + return value; + } + var isArr = isArray(value); + if (isArr) { + result = initCloneArray(value); + if (!isDeep) { + return copyArray(value, result); + } + } else { + var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; + if (isBuffer(value)) { + return cloneBuffer(value, isDeep); + } + if (tag == objectTag || tag == argsTag || isFunc && !object) { + if (isHostObject(value)) { + return object ? value : {}; + } + result = initCloneObject(isFunc ? {} : value); + if (!isDeep) { + return copySymbols(value, baseAssign(result, value)); + } + } else { + if (!cloneableTags[tag]) { + return object ? value : {}; + } + result = initCloneByTag(value, tag, baseClone, isDeep); + } + } + stack || (stack = new Stack()); + var stacked = stack.get(value); + if (stacked) { + return stacked; + } + stack.set(value, result); + if (!isArr) { + var props = isFull ? getAllKeys(value) : keys(value); + } + arrayEach(props || value, function(subValue, key2) { + if (props) { + key2 = subValue; + subValue = value[key2]; + } + assignValue(result, key2, baseClone(subValue, isDeep, isFull, customizer, key2, value, stack)); + }); + return result; + } + function baseCreate(proto) { + return isObject(proto) ? objectCreate(proto) : {}; + } + function baseGetAllKeys(object, keysFunc, symbolsFunc) { + var result = keysFunc(object); + return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); + } + function baseGetTag(value) { + return objectToString.call(value); + } + function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); + } + function baseKeys(object) { + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != "constructor") { + result.push(key); + } + } + return result; + } + function cloneBuffer(buffer, isDeep) { + if (isDeep) { + return buffer.slice(); + } + var result = new buffer.constructor(buffer.length); + buffer.copy(result); + return result; + } + function cloneArrayBuffer(arrayBuffer) { + var result = new arrayBuffer.constructor(arrayBuffer.byteLength); + new Uint8Array2(result).set(new Uint8Array2(arrayBuffer)); + return result; + } + function cloneDataView(dataView, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; + return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); + } + function cloneMap(map, isDeep, cloneFunc) { + var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map); + return arrayReduce(array, addMapEntry, new map.constructor()); + } + function cloneRegExp(regexp) { + var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); + result.lastIndex = regexp.lastIndex; + return result; + } + function cloneSet(set, isDeep, cloneFunc) { + var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set); + return arrayReduce(array, addSetEntry, new set.constructor()); + } + function cloneSymbol(symbol) { + return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; + } + function cloneTypedArray(typedArray, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; + return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); + } + function copyArray(source, array) { + var index = -1, length = source.length; + array || (array = Array(length)); + while (++index < length) { + array[index] = source[index]; + } + return array; + } + function copyObject(source, props, object, customizer) { + object || (object = {}); + var index = -1, length = props.length; + while (++index < length) { + var key = props[index]; + var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0; + assignValue(object, key, newValue === void 0 ? source[key] : newValue); + } + return object; + } + function copySymbols(source, object) { + return copyObject(source, getSymbols(source), object); + } + function getAllKeys(object) { + return baseGetAllKeys(object, keys, getSymbols); + } + function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; + } + function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : void 0; + } + var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray; + var getTag = baseGetTag; + if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) { + getTag = function(value) { + var result = objectToString.call(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : void 0; + if (ctorString) { + switch (ctorString) { + case dataViewCtorString: + return dataViewTag; + case mapCtorString: + return mapTag; + case promiseCtorString: + return promiseTag; + case setCtorString: + return setTag; + case weakMapCtorString: + return weakMapTag; + } + } + return result; + }; + } + function initCloneArray(array) { + var length = array.length, result = array.constructor(length); + if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) { + result.index = array.index; + result.input = array.input; + } + return result; + } + function initCloneObject(object) { + return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {}; + } + function initCloneByTag(object, tag, cloneFunc, isDeep) { + var Ctor = object.constructor; + switch (tag) { + case arrayBufferTag: + return cloneArrayBuffer(object); + case boolTag: + case dateTag: + return new Ctor(+object); + case dataViewTag: + return cloneDataView(object, isDeep); + case float32Tag: + case float64Tag: + case int8Tag: + case int16Tag: + case int32Tag: + case uint8Tag: + case uint8ClampedTag: + case uint16Tag: + case uint32Tag: + return cloneTypedArray(object, isDeep); + case mapTag: + return cloneMap(object, isDeep, cloneFunc); + case numberTag: + case stringTag: + return new Ctor(object); + case regexpTag: + return cloneRegExp(object); + case setTag: + return cloneSet(object, isDeep, cloneFunc); + case symbolTag: + return cloneSymbol(object); + } + } + function isIndex(value, length) { + length = length == null ? MAX_SAFE_INTEGER : length; + return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); + } + function isKeyable(value) { + var type = typeof value; + return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; + } + function isMasked(func) { + return !!maskSrcKey && maskSrcKey in func; + } + function isPrototype(value) { + var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; + return value === proto; + } + function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) { + } + try { + return func + ""; + } catch (e) { + } + } + return ""; + } + function cloneDeep(value) { + return baseClone(value, true, true); + } + function eq(value, other) { + return value === other || value !== value && other !== other; + } + function isArguments(value) { + return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag); + } + var isArray = Array.isArray; + function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); + } + function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); + } + var isBuffer = nativeIsBuffer || stubFalse; + function isFunction(value) { + var tag = isObject(value) ? objectToString.call(value) : ""; + return tag == funcTag || tag == genTag; + } + function isLength(value) { + return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; + } + function isObject(value) { + var type = typeof value; + return !!value && (type == "object" || type == "function"); + } + function isObjectLike(value) { + return !!value && typeof value == "object"; + } + function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); + } + function stubArray() { + return []; + } + function stubFalse() { + return false; + } + module2.exports = cloneDeep; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/config/ConfigService.js +var require_ConfigService = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/config/ConfigService.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ConfigService = void 0; + var ConfigService = class { + constructor() { + this.currentEnvironmentVariable = "ENVIRONMENT"; + this.logEventVariable = "POWERTOOLS_LOGGER_LOG_EVENT"; + this.logLevelVariable = "LOG_LEVEL"; + this.sampleRateValueVariable = "POWERTOOLS_LOGGER_SAMPLE_RATE"; + this.serviceNameVariable = "POWERTOOLS_SERVICE_NAME"; + } + isValueTrue(value) { + return value.toLowerCase() === "true" || value === "1"; + } + }; + exports.ConfigService = ConfigService; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/config/ConfigServiceInterface.js +var require_ConfigServiceInterface = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/config/ConfigServiceInterface.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/config/EnvironmentVariablesService.js +var require_EnvironmentVariablesService = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/config/EnvironmentVariablesService.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.EnvironmentVariablesService = void 0; + var _1 = require_config(); + var EnvironmentVariablesService = class extends _1.ConfigService { + constructor() { + super(...arguments); + this.awsRegionVariable = "AWS_REGION"; + this.functionNameVariable = "AWS_LAMBDA_FUNCTION_NAME"; + this.functionVersionVariable = "AWS_LAMBDA_FUNCTION_VERSION"; + this.memoryLimitInMBVariable = "AWS_LAMBDA_FUNCTION_MEMORY_SIZE"; + this.xRayTraceIdVariable = "_X_AMZN_TRACE_ID"; + } + get(name) { + var _a; + return ((_a = process.env[name]) === null || _a === void 0 ? void 0 : _a.trim()) || ""; + } + getAwsRegion() { + return this.get(this.awsRegionVariable); + } + getCurrentEnvironment() { + return this.get(this.currentEnvironmentVariable); + } + getFunctionMemory() { + const value = this.get(this.memoryLimitInMBVariable); + return Number(value); + } + getFunctionName() { + return this.get(this.functionNameVariable); + } + getFunctionVersion() { + return this.get(this.functionVersionVariable); + } + getLogEvent() { + return this.isValueTrue(this.get(this.logEventVariable)); + } + getLogLevel() { + return this.get(this.logLevelVariable); + } + getSampleRateValue() { + const value = this.get(this.sampleRateValueVariable); + return value && value.length > 0 ? Number(value) : void 0; + } + getServiceName() { + return this.get(this.serviceNameVariable); + } + getXrayTraceId() { + return this.get(this.xRayTraceIdVariable); + } + }; + exports.EnvironmentVariablesService = EnvironmentVariablesService; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/config/index.js +var require_config = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/config/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + __exportStar(require_ConfigService(), exports); + __exportStar(require_ConfigServiceInterface(), exports); + __exportStar(require_EnvironmentVariablesService(), exports); + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/Logger.js +var require_Logger = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/Logger.js"(exports) { + "use strict"; + var __importDefault = exports && exports.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Logger = void 0; + var console_1 = require("console"); + var commons_1 = require_lib(); + var formatter_1 = require_formatter(); + var log_1 = require_log(); + var lodash_clonedeep_1 = __importDefault(require_lodash3()); + var lodash_merge_1 = __importDefault(require_lodash2()); + var config_1 = require_config(); + var Logger2 = class extends commons_1.Utility { + constructor(options = {}) { + super(); + this.console = new console_1.Console({ stdout: process.stdout, stderr: process.stderr }); + this.logEvent = false; + this.logLevelThresholds = { + DEBUG: 8, + INFO: 12, + WARN: 16, + ERROR: 20 + }; + this.logsSampled = false; + this.persistentLogAttributes = {}; + this.powertoolLogData = {}; + this.setOptions(options); + } + addContext(context) { + const lambdaContext = { + invokedFunctionArn: context.invokedFunctionArn, + coldStart: this.getColdStart(), + awsRequestId: context.awsRequestId, + memoryLimitInMB: Number(context.memoryLimitInMB), + functionName: context.functionName, + functionVersion: context.functionVersion + }; + this.addToPowertoolLogData({ + lambdaContext + }); + } + addPersistentLogAttributes(attributes) { + (0, lodash_merge_1.default)(this.persistentLogAttributes, attributes); + } + appendKeys(attributes) { + this.addPersistentLogAttributes(attributes); + } + createChild(options = {}) { + return (0, lodash_clonedeep_1.default)(this).setOptions(options); + } + debug(input, ...extraInput) { + this.processLogItem("DEBUG", input, extraInput); + } + error(input, ...extraInput) { + this.processLogItem("ERROR", input, extraInput); + } + getLogEvent() { + return this.logEvent; + } + getLogsSampled() { + return this.logsSampled; + } + getPersistentLogAttributes() { + return this.persistentLogAttributes; + } + info(input, ...extraInput) { + this.processLogItem("INFO", input, extraInput); + } + injectLambdaContext(options) { + return (target, _propertyKey, descriptor) => { + const originalMethod = descriptor.value; + const loggerRef = this; + descriptor.value = function(event, context, callback) { + let initialPersistentAttributes = {}; + if (options && options.clearState === true) { + initialPersistentAttributes = { ...loggerRef.getPersistentLogAttributes() }; + } + Logger2.injectLambdaContextBefore(loggerRef, event, context, options); + let result; + try { + result = originalMethod.apply(this, [event, context, callback]); + } catch (error) { + throw error; + } finally { + Logger2.injectLambdaContextAfterOrOnError(loggerRef, initialPersistentAttributes, options); + } + return result; + }; + }; + } + static injectLambdaContextAfterOrOnError(logger2, initialPersistentAttributes, options) { + if (options && options.clearState === true) { + logger2.setPersistentLogAttributes(initialPersistentAttributes); + } + } + static injectLambdaContextBefore(logger2, event, context, options) { + logger2.addContext(context); + let shouldLogEvent = void 0; + if (options && options.hasOwnProperty("logEvent")) { + shouldLogEvent = options.logEvent; + } + logger2.logEventIfEnabled(event, shouldLogEvent); + } + logEventIfEnabled(event, overwriteValue) { + if (!this.shouldLogEvent(overwriteValue)) { + return; + } + this.info("Lambda invocation event", { event }); + } + refreshSampleRateCalculation() { + this.setLogsSampled(); + } + removeKeys(keys) { + this.removePersistentLogAttributes(keys); + } + removePersistentLogAttributes(keys) { + keys.forEach((key) => { + if (this.persistentLogAttributes && key in this.persistentLogAttributes) { + delete this.persistentLogAttributes[key]; + } + }); + } + setPersistentLogAttributes(attributes) { + this.persistentLogAttributes = attributes; + } + setSampleRateValue(sampleRateValue) { + var _a; + this.powertoolLogData.sampleRateValue = sampleRateValue || ((_a = this.getCustomConfigService()) === null || _a === void 0 ? void 0 : _a.getSampleRateValue()) || this.getEnvVarsService().getSampleRateValue(); + } + shouldLogEvent(overwriteValue) { + if (typeof overwriteValue === "boolean") { + return overwriteValue; + } + return this.getLogEvent(); + } + warn(input, ...extraInput) { + this.processLogItem("WARN", input, extraInput); + } + addToPowertoolLogData(...attributesArray) { + attributesArray.forEach((attributes) => { + (0, lodash_merge_1.default)(this.powertoolLogData, attributes); + }); + } + createAndPopulateLogItem(logLevel, input, extraInput) { + const unformattedBaseAttributes = (0, lodash_merge_1.default)({ + logLevel, + timestamp: new Date(), + message: typeof input === "string" ? input : input.message, + xRayTraceId: this.getXrayTraceId() + }, this.getPowertoolLogData()); + const logItem = new log_1.LogItem({ + baseAttributes: this.getLogFormatter().formatAttributes(unformattedBaseAttributes), + persistentAttributes: this.getPersistentLogAttributes() + }); + if (typeof input !== "string") { + logItem.addAttributes(input); + } + extraInput.forEach((item) => { + const attributes = item instanceof Error ? { error: item } : typeof item === "string" ? { extra: item } : item; + logItem.addAttributes(attributes); + }); + return logItem; + } + getCustomConfigService() { + return this.customConfigService; + } + getEnvVarsService() { + return this.envVarsService; + } + getLogFormatter() { + return this.logFormatter; + } + getLogLevel() { + return this.logLevel; + } + getPowertoolLogData() { + return this.powertoolLogData; + } + getSampleRateValue() { + if (!this.powertoolLogData.sampleRateValue) { + this.setSampleRateValue(); + } + return this.powertoolLogData.sampleRateValue; + } + getXrayTraceId() { + const xRayTraceId = this.getEnvVarsService().getXrayTraceId(); + return xRayTraceId.length > 0 ? xRayTraceId.split(";")[0].replace("Root=", "") : xRayTraceId; + } + isValidLogLevel(logLevel) { + return typeof logLevel === "string" && logLevel.toUpperCase() in this.logLevelThresholds; + } + printLog(logLevel, log) { + log.prepareForPrint(); + const consoleMethod = logLevel.toLowerCase(); + this.console[consoleMethod](JSON.stringify(log.getAttributes(), this.removeCircularDependencies())); + } + processLogItem(logLevel, input, extraInput) { + if (!this.shouldPrint(logLevel)) { + return; + } + this.printLog(logLevel, this.createAndPopulateLogItem(logLevel, input, extraInput)); + } + removeCircularDependencies() { + const references = /* @__PURE__ */ new WeakSet(); + return (key, value) => { + let item = value; + if (item instanceof Error) { + item = this.getLogFormatter().formatError(item); + } + if (typeof item === "object" && value !== null) { + if (references.has(item)) { + return; + } + references.add(item); + } + return item; + }; + } + setCustomConfigService(customConfigService) { + this.customConfigService = customConfigService ? customConfigService : void 0; + } + setEnvVarsService() { + this.envVarsService = new config_1.EnvironmentVariablesService(); + } + setLogEvent() { + if (this.getEnvVarsService().getLogEvent()) { + this.logEvent = true; + } + } + setLogFormatter(logFormatter) { + this.logFormatter = logFormatter || new formatter_1.PowertoolLogFormatter(); + } + setLogLevel(logLevel) { + var _a; + if (this.isValidLogLevel(logLevel)) { + this.logLevel = logLevel.toUpperCase(); + return; + } + const customConfigValue = (_a = this.getCustomConfigService()) === null || _a === void 0 ? void 0 : _a.getLogLevel(); + if (this.isValidLogLevel(customConfigValue)) { + this.logLevel = customConfigValue.toUpperCase(); + return; + } + const envVarsValue = this.getEnvVarsService().getLogLevel(); + if (this.isValidLogLevel(envVarsValue)) { + this.logLevel = envVarsValue.toUpperCase(); + return; + } + this.logLevel = Logger2.defaultLogLevel; + } + setLogsSampled() { + const sampleRateValue = this.getSampleRateValue(); + this.logsSampled = sampleRateValue !== void 0 && (sampleRateValue === 1 || Math.random() < sampleRateValue); + } + setOptions(options) { + const { logLevel, serviceName, sampleRateValue, logFormatter, customConfigService, persistentLogAttributes, environment } = options; + this.setEnvVarsService(); + this.setCustomConfigService(customConfigService); + this.setLogLevel(logLevel); + this.setSampleRateValue(sampleRateValue); + this.setLogsSampled(); + this.setLogFormatter(logFormatter); + this.setPowertoolLogData(serviceName, environment); + this.setLogEvent(); + this.addPersistentLogAttributes(persistentLogAttributes); + return this; + } + setPowertoolLogData(serviceName, environment, persistentLogAttributes = {}) { + var _a, _b; + this.addToPowertoolLogData({ + awsRegion: this.getEnvVarsService().getAwsRegion(), + environment: environment || ((_a = this.getCustomConfigService()) === null || _a === void 0 ? void 0 : _a.getCurrentEnvironment()) || this.getEnvVarsService().getCurrentEnvironment(), + sampleRateValue: this.getSampleRateValue(), + serviceName: serviceName || ((_b = this.getCustomConfigService()) === null || _b === void 0 ? void 0 : _b.getServiceName()) || this.getEnvVarsService().getServiceName() || Logger2.defaultServiceName + }, persistentLogAttributes); + } + shouldPrint(logLevel) { + if (this.logLevelThresholds[logLevel] >= this.logLevelThresholds[this.getLogLevel()]) { + return true; + } + return this.getLogsSampled(); + } + }; + exports.Logger = Logger2; + Logger2.defaultLogLevel = "INFO"; + Logger2.defaultServiceName = "service_undefined"; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/middleware/middy.js +var require_middy = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/middleware/middy.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.injectLambdaContext = void 0; + var Logger_1 = require_Logger(); + var injectLambdaContext = (target, options) => { + const loggers = target instanceof Array ? target : [target]; + const persistentAttributes = []; + const injectLambdaContextBefore = async (request) => { + loggers.forEach((logger2) => { + if (options && options.clearState === true) { + persistentAttributes.push({ ...logger2.getPersistentLogAttributes() }); + } + Logger_1.Logger.injectLambdaContextBefore(logger2, request.event, request.context, options); + }); + }; + const injectLambdaContextAfterOrOnError = async () => { + if (options && options.clearState === true) { + loggers.forEach((logger2, index) => { + Logger_1.Logger.injectLambdaContextAfterOrOnError(logger2, persistentAttributes[index], options); + }); + } + }; + return { + before: injectLambdaContextBefore, + after: injectLambdaContextAfterOrOnError, + onError: injectLambdaContextAfterOrOnError + }; + }; + exports.injectLambdaContext = injectLambdaContext; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/middleware/index.js +var require_middleware = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/middleware/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + __exportStar(require_middy(), exports); + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/index.js +var require_lib2 = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + __exportStar(require_helpers(), exports); + __exportStar(require_Logger(), exports); + __exportStar(require_middleware(), exports); + __exportStar(require_formatter(), exports); + } +}); + +// node_modules/tslib/tslib.js +var require_tslib = __commonJS({ + "node_modules/tslib/tslib.js"(exports, module2) { + var __extends; + var __assign; + var __rest; + var __decorate; + var __param; + var __metadata; + var __awaiter; + var __generator; + var __exportStar; + var __values; + var __read; + var __spread; + var __spreadArrays; + var __spreadArray; + var __await; + var __asyncGenerator; + var __asyncDelegator; + var __asyncValues; + var __makeTemplateObject; + var __importStar; + var __importDefault; + var __classPrivateFieldGet; + var __classPrivateFieldSet; + var __classPrivateFieldIn; + var __createBinding; + (function(factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function(exports2) { + factory(createExporter(root, createExporter(exports2))); + }); + } else if (typeof module2 === "object" && typeof module2.exports === "object") { + factory(createExporter(root, createExporter(module2.exports))); + } else { + factory(createExporter(root)); + } + function createExporter(exports2, previous) { + if (exports2 !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports2, "__esModule", { value: true }); + } else { + exports2.__esModule = true; + } + } + return function(id, v) { + return exports2[id] = previous ? previous(id, v) : v; + }; + } + })(function(exporter) { + var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) { + d.__proto__ = b; + } || function(d, b) { + for (var p in b) + if (Object.prototype.hasOwnProperty.call(b, p)) + d[p] = b[p]; + }; + __extends = function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + __rest = function(s, e) { + var t = {}; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + __decorate = function(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + __param = function(paramIndex, decorator) { + return function(target, key) { + decorator(target, key, paramIndex); + }; + }; + __metadata = function(metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") + return Reflect.metadata(metadataKey, metadataValue); + }; + __awaiter = function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + __generator = function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op) { + if (f) + throw new TypeError("Generator is already executing."); + while (_) + try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) + return t; + if (y = 0, t) + op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: + case 1: + t = op; + break; + case 4: + _.label++; + return { value: op[1], done: false }; + case 5: + _.label++; + y = op[1]; + op = [0]; + continue; + case 7: + op = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { + _ = 0; + continue; + } + if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { + _.label = op[1]; + break; + } + if (op[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op = body.call(thisArg, _); + } catch (e) { + op = [6, e]; + y = 0; + } finally { + f = t = 0; + } + if (op[0] & 5) + throw op[1]; + return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + __exportStar = function(m, o) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) + __createBinding(o, m, p); + }; + __createBinding = Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }; + __values = function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + __read = function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) + ar.push(r.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r && !r.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar; + }; + __spread = function() { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + __spreadArrays = function() { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) + s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + __spreadArray = function(to, from, pack) { + if (pack || arguments.length === 2) + for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) + ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + __await = function(v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + __asyncGenerator = function(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i; + function verb(n) { + if (g[n]) + i[n] = function(v) { + return new Promise(function(a, b) { + q.push([n, v, a, b]) > 1 || resume(n, v); + }); + }; + } + function resume(n, v) { + try { + step(g[n](v)); + } catch (e) { + settle(q[0][3], e); + } + } + function step(r) { + r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); + } + function fulfill(value) { + resume("next", value); + } + function reject(value) { + resume("throw", value); + } + function settle(f, v) { + if (f(v), q.shift(), q.length) + resume(q[0][0], q[0][1]); + } + }; + __asyncDelegator = function(o) { + var i, p; + return i = {}, verb("next"), verb("throw", function(e) { + throw e; + }), verb("return"), i[Symbol.iterator] = function() { + return this; + }, i; + function verb(n, f) { + i[n] = o[n] ? function(v) { + return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; + } : f; + } + }; + __asyncValues = function(o) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i); + function verb(n) { + i[n] = o[n] && function(v) { + return new Promise(function(resolve, reject) { + v = o[n](v), settle(resolve, reject, v.done, v.value); + }); + }; + } + function settle(resolve, reject, d, v) { + Promise.resolve(v).then(function(v2) { + resolve({ value: v2, done: d }); + }, reject); + } + }; + __makeTemplateObject = function(cooked, raw) { + if (Object.defineProperty) { + Object.defineProperty(cooked, "raw", { value: raw }); + } else { + cooked.raw = raw; + } + return cooked; + }; + var __setModuleDefault = Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; + }; + __importStar = function(mod) { + if (mod && mod.__esModule) + return mod; + var result = {}; + if (mod != null) { + for (var k in mod) + if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) + __createBinding(result, mod, k); + } + __setModuleDefault(result, mod); + return result; + }; + __importDefault = function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + __classPrivateFieldGet = function(receiver, state, kind, f) { + if (kind === "a" && !f) + throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) + throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + __classPrivateFieldSet = function(receiver, state, value, kind, f) { + if (kind === "m") + throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) + throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) + throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; + }; + __classPrivateFieldIn = function(state, receiver) { + if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") + throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + }; + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__spreadArrays", __spreadArrays); + exporter("__spreadArray", __spreadArray); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); + exporter("__classPrivateFieldGet", __classPrivateFieldGet); + exporter("__classPrivateFieldSet", __classPrivateFieldSet); + exporter("__classPrivateFieldIn", __classPrivateFieldIn); + }); + } +}); + +// node_modules/@aws-sdk/util-config-provider/dist-cjs/booleanSelector.js +var require_booleanSelector = __commonJS({ + "node_modules/@aws-sdk/util-config-provider/dist-cjs/booleanSelector.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.booleanSelector = exports.SelectorType = void 0; + var SelectorType; + (function(SelectorType2) { + SelectorType2["ENV"] = "env"; + SelectorType2["CONFIG"] = "shared config entry"; + })(SelectorType = exports.SelectorType || (exports.SelectorType = {})); + var booleanSelector = (obj, key, type) => { + if (!(key in obj)) + return void 0; + if (obj[key] === "true") + return true; + if (obj[key] === "false") + return false; + throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`); + }; + exports.booleanSelector = booleanSelector; + } +}); + +// node_modules/@aws-sdk/util-config-provider/dist-cjs/index.js +var require_dist_cjs = __commonJS({ + "node_modules/@aws-sdk/util-config-provider/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_booleanSelector(), exports); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +var require_NodeUseDualstackEndpointConfigOptions = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_DUALSTACK_ENDPOINT = exports.CONFIG_USE_DUALSTACK_ENDPOINT = exports.ENV_USE_DUALSTACK_ENDPOINT = void 0; + var util_config_provider_1 = require_dist_cjs(); + exports.ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; + exports.CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; + exports.DEFAULT_USE_DUALSTACK_ENDPOINT = false; + exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.ENV), + configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), + default: false + }; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +var require_NodeUseFipsEndpointConfigOptions = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_FIPS_ENDPOINT = exports.CONFIG_USE_FIPS_ENDPOINT = exports.ENV_USE_FIPS_ENDPOINT = void 0; + var util_config_provider_1 = require_dist_cjs(); + exports.ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; + exports.CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; + exports.DEFAULT_USE_FIPS_ENDPOINT = false; + exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.ENV), + configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), + default: false + }; + } +}); + +// node_modules/@aws-sdk/util-middleware/dist-cjs/normalizeProvider.js +var require_normalizeProvider = __commonJS({ + "node_modules/@aws-sdk/util-middleware/dist-cjs/normalizeProvider.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.normalizeProvider = void 0; + var normalizeProvider = (input) => { + if (typeof input === "function") + return input; + const promisified = Promise.resolve(input); + return () => promisified; + }; + exports.normalizeProvider = normalizeProvider; + } +}); + +// node_modules/@aws-sdk/util-middleware/dist-cjs/index.js +var require_dist_cjs2 = __commonJS({ + "node_modules/@aws-sdk/util-middleware/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_normalizeProvider(), exports); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +var require_resolveCustomEndpointsConfig = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveCustomEndpointsConfig = void 0; + var util_middleware_1 = require_dist_cjs2(); + var resolveCustomEndpointsConfig = (input) => { + var _a; + 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), + isCustomEndpoint: true, + useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint) + }; + }; + exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +var require_getEndpointFromRegion = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getEndpointFromRegion = void 0; + var getEndpointFromRegion = async (input) => { + var _a; + 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])$/); + if (!dnsHostRegex.test(region)) { + throw new Error("Invalid region in client config"); + } + const useDualstackEndpoint = await input.useDualstackEndpoint(); + const useFipsEndpoint = await input.useFipsEndpoint(); + const { hostname } = (_a = await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint })) !== null && _a !== void 0 ? _a : {}; + if (!hostname) { + throw new Error("Cannot resolve hostname from client config"); + } + return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`); + }; + exports.getEndpointFromRegion = getEndpointFromRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +var require_resolveEndpointsConfig = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveEndpointsConfig = void 0; + var util_middleware_1 = require_dist_cjs2(); + var getEndpointFromRegion_1 = require_getEndpointFromRegion(); + var resolveEndpointsConfig = (input) => { + var _a; + const useDualstackEndpoint = (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint); + const { endpoint, useFipsEndpoint, urlParser } = input; + return { + ...input, + tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, + endpoint: endpoint ? (0, util_middleware_1.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => (0, getEndpointFromRegion_1.getEndpointFromRegion)({ ...input, useDualstackEndpoint, useFipsEndpoint }), + isCustomEndpoint: !!endpoint, + useDualstackEndpoint + }; + }; + exports.resolveEndpointsConfig = resolveEndpointsConfig; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/index.js +var require_endpointsConfig = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_NodeUseDualstackEndpointConfigOptions(), exports); + tslib_1.__exportStar(require_NodeUseFipsEndpointConfigOptions(), exports); + tslib_1.__exportStar(require_resolveCustomEndpointsConfig(), exports); + tslib_1.__exportStar(require_resolveEndpointsConfig(), exports); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js +var require_config2 = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODE_REGION_CONFIG_FILE_OPTIONS = exports.NODE_REGION_CONFIG_OPTIONS = exports.REGION_INI_NAME = exports.REGION_ENV_NAME = void 0; + exports.REGION_ENV_NAME = "AWS_REGION"; + exports.REGION_INI_NAME = "region"; + exports.NODE_REGION_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.REGION_ENV_NAME], + configFileSelector: (profile) => profile[exports.REGION_INI_NAME], + default: () => { + throw new Error("Region is missing"); + } + }; + exports.NODE_REGION_CONFIG_FILE_OPTIONS = { + preferredFile: "credentials" + }; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +var require_isFipsRegion = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/isFipsRegion.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isFipsRegion = void 0; + var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); + exports.isFipsRegion = isFipsRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/getRealRegion.js +var require_getRealRegion = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/getRealRegion.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRealRegion = void 0; + var isFipsRegion_1 = require_isFipsRegion(); + var getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region; + exports.getRealRegion = getRealRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +var require_resolveRegionConfig = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveRegionConfig = void 0; + var getRealRegion_1 = require_getRealRegion(); + var isFipsRegion_1 = require_isFipsRegion(); + var resolveRegionConfig = (input) => { + const { region, useFipsEndpoint } = input; + if (!region) { + throw new Error("Region is missing"); + } + return { + ...input, + region: async () => { + if (typeof region === "string") { + return (0, getRealRegion_1.getRealRegion)(region); + } + const providedRegion = await region(); + return (0, getRealRegion_1.getRealRegion)(providedRegion); + }, + useFipsEndpoint: async () => { + const providedRegion = typeof region === "string" ? region : await region(); + if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) { + return true; + } + return typeof useFipsEndpoint === "boolean" ? Promise.resolve(useFipsEndpoint) : useFipsEndpoint(); + } + }; + }; + exports.resolveRegionConfig = resolveRegionConfig; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/index.js +var require_regionConfig = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_config2(), exports); + tslib_1.__exportStar(require_resolveRegionConfig(), exports); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/PartitionHash.js +var require_PartitionHash = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/PartitionHash.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/RegionHash.js +var require_RegionHash = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/RegionHash.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +var require_getHostnameFromVariants = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getHostnameFromVariants = void 0; + var getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { + var _a; + return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))) === null || _a === void 0 ? void 0 : _a.hostname; + }; + exports.getHostnameFromVariants = getHostnameFromVariants; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +var require_getResolvedHostname = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getResolvedHostname = void 0; + var getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace("{region}", resolvedRegion) : void 0; + exports.getResolvedHostname = getResolvedHostname; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +var require_getResolvedPartition = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getResolvedPartition = void 0; + var getResolvedPartition = (region, { partitionHash }) => { + var _a; + return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : "aws"; + }; + exports.getResolvedPartition = getResolvedPartition; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +var require_getResolvedSigningRegion = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getResolvedSigningRegion = void 0; + var getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { + if (signingRegion) { + return signingRegion; + } else if (useFipsEndpoint) { + const regionRegexJs = regionRegex.replace("\\\\", "\\").replace(/^\^/g, "\\.").replace(/\$$/g, "\\."); + const regionRegexmatchArray = hostname.match(regionRegexJs); + if (regionRegexmatchArray) { + return regionRegexmatchArray[0].slice(1, -1); + } + } + }; + exports.getResolvedSigningRegion = getResolvedSigningRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +var require_getRegionInfo = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getRegionInfo.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRegionInfo = void 0; + var getHostnameFromVariants_1 = require_getHostnameFromVariants(); + var getResolvedHostname_1 = require_getResolvedHostname(); + var getResolvedPartition_1 = require_getResolvedPartition(); + var getResolvedSigningRegion_1 = require_getResolvedSigningRegion(); + var getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash }) => { + var _a, _b, _c, _d, _e, _f; + const partition = (0, getResolvedPartition_1.getResolvedPartition)(region, { partitionHash }); + const resolvedRegion = region in regionHash ? region : (_b = (_a = partitionHash[partition]) === null || _a === void 0 ? void 0 : _a.endpoint) !== null && _b !== void 0 ? _b : region; + 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 }); + 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, + regionRegex: partitionHash[partition].regionRegex, + useFipsEndpoint + }); + return { + partition, + signingService, + hostname, + ...signingRegion && { signingRegion }, + ...((_f = regionHash[resolvedRegion]) === null || _f === void 0 ? void 0 : _f.signingService) && { + signingService: regionHash[resolvedRegion].signingService + } + }; + }; + exports.getRegionInfo = getRegionInfo; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/index.js +var require_regionInfo = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_PartitionHash(), exports); + tslib_1.__exportStar(require_RegionHash(), exports); + tslib_1.__exportStar(require_getRegionInfo(), exports); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/index.js +var require_dist_cjs3 = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_endpointsConfig(), exports); + tslib_1.__exportStar(require_regionConfig(), exports); + tslib_1.__exportStar(require_regionInfo(), exports); + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/httpHandler.js +var require_httpHandler = __commonJS({ + "node_modules/@aws-sdk/protocol-http/dist-cjs/httpHandler.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js +var require_httpRequest = __commonJS({ + "node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.HttpRequest = void 0; + var HttpRequest = class { + constructor(options) { + this.method = options.method || "GET"; + this.hostname = options.hostname || "localhost"; + this.port = options.port; + this.query = options.query || {}; + this.headers = options.headers || {}; + this.body = options.body; + this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:"; + this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/"; + } + static isInstance(request) { + if (!request) + return false; + const req = request; + 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({ + ...this, + headers: { ...this.headers } + }); + if (cloned.query) + cloned.query = cloneQuery(cloned.query); + return cloned; + } + }; + exports.HttpRequest = HttpRequest; + function cloneQuery(query) { + return Object.keys(query).reduce((carry, paramName) => { + const param = query[paramName]; + return { + ...carry, + [paramName]: Array.isArray(param) ? [...param] : param + }; + }, {}); + } + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/httpResponse.js +var require_httpResponse = __commonJS({ + "node_modules/@aws-sdk/protocol-http/dist-cjs/httpResponse.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.HttpResponse = void 0; + var HttpResponse = class { + constructor(options) { + this.statusCode = options.statusCode; + this.headers = options.headers || {}; + this.body = options.body; + } + static isInstance(response) { + if (!response) + return false; + const resp = response; + return typeof resp.statusCode === "number" && typeof resp.headers === "object"; + } + }; + exports.HttpResponse = HttpResponse; + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/isValidHostname.js +var require_isValidHostname = __commonJS({ + "node_modules/@aws-sdk/protocol-http/dist-cjs/isValidHostname.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isValidHostname = void 0; + function isValidHostname(hostname) { + const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/; + return hostPattern.test(hostname); + } + exports.isValidHostname = isValidHostname; + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/index.js +var require_dist_cjs4 = __commonJS({ + "node_modules/@aws-sdk/protocol-http/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_httpHandler(), exports); + tslib_1.__exportStar(require_httpRequest(), exports); + tslib_1.__exportStar(require_httpResponse(), exports); + tslib_1.__exportStar(require_isValidHostname(), exports); + } +}); + +// node_modules/@aws-sdk/middleware-content-length/dist-cjs/index.js +var require_dist_cjs5 = __commonJS({ + "node_modules/@aws-sdk/middleware-content-length/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getContentLengthPlugin = exports.contentLengthMiddlewareOptions = exports.contentLengthMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var CONTENT_LENGTH_HEADER = "content-length"; + function contentLengthMiddleware(bodyLengthChecker) { + return (next) => async (args) => { + const request = args.request; + if (protocol_http_1.HttpRequest.isInstance(request)) { + const { body, headers } = request; + if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) { + try { + const length = bodyLengthChecker(body); + request.headers = { + ...request.headers, + [CONTENT_LENGTH_HEADER]: String(length) + }; + } catch (error) { + } + } + } + return next({ + ...args, + request + }); + }; + } + exports.contentLengthMiddleware = contentLengthMiddleware; + exports.contentLengthMiddlewareOptions = { + step: "build", + tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"], + name: "contentLengthMiddleware", + override: true + }; + var getContentLengthPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), exports.contentLengthMiddlewareOptions); + } + }); + exports.getContentLengthPlugin = getContentLengthPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +var require_dist_cjs6 = __commonJS({ + "node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getHostHeaderPlugin = exports.hostHeaderMiddlewareOptions = exports.hostHeaderMiddleware = exports.resolveHostHeaderConfig = void 0; + var protocol_http_1 = require_dist_cjs4(); + function resolveHostHeaderConfig(input) { + return input; + } + exports.resolveHostHeaderConfig = resolveHostHeaderConfig; + var hostHeaderMiddleware = (options) => (next) => async (args) => { + if (!protocol_http_1.HttpRequest.isInstance(args.request)) + return next(args); + const { request } = args; + const { handlerProtocol = "" } = options.requestHandler.metadata || {}; + if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) { + delete request.headers["host"]; + request.headers[":authority"] = ""; + } else if (!request.headers["host"]) { + request.headers["host"] = request.hostname; + } + return next(args); + }; + exports.hostHeaderMiddleware = hostHeaderMiddleware; + exports.hostHeaderMiddlewareOptions = { + name: "hostHeaderMiddleware", + step: "build", + priority: "low", + tags: ["HOST"], + override: true + }; + var getHostHeaderPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.hostHeaderMiddleware)(options), exports.hostHeaderMiddlewareOptions); + } + }); + exports.getHostHeaderPlugin = getHostHeaderPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js +var require_loggerMiddleware = __commonJS({ + "node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getLoggerPlugin = exports.loggerMiddlewareOptions = exports.loggerMiddleware = void 0; + var loggerMiddleware = () => (next, context) => async (args) => { + const { clientName, commandName, inputFilterSensitiveLog, logger: logger2, outputFilterSensitiveLog } = context; + const response = await next(args); + if (!logger2) { + return response; + } + if (typeof logger2.info === "function") { + const { $metadata, ...outputWithoutMetadata } = response.output; + logger2.info({ + clientName, + commandName, + input: inputFilterSensitiveLog(args.input), + output: outputFilterSensitiveLog(outputWithoutMetadata), + metadata: $metadata + }); + } + return response; + }; + exports.loggerMiddleware = loggerMiddleware; + exports.loggerMiddlewareOptions = { + name: "loggerMiddleware", + tags: ["LOGGER"], + step: "initialize", + override: true + }; + var getLoggerPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.loggerMiddleware)(), exports.loggerMiddlewareOptions); + } + }); + exports.getLoggerPlugin = getLoggerPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +var require_dist_cjs7 = __commonJS({ + "node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_loggerMiddleware(), exports); + } +}); + +// node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +var require_dist_cjs8 = __commonJS({ + "node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRecursionDetectionPlugin = exports.addRecursionDetectionMiddlewareOptions = exports.recursionDetectionMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; + var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; + var ENV_TRACE_ID = "_X_AMZN_TRACE_ID"; + var recursionDetectionMiddleware = (options) => (next) => async (args) => { + const { request } = args; + if (!protocol_http_1.HttpRequest.isInstance(request) || options.runtime !== "node" || request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { + return next(args); + } + const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; + const traceId = process.env[ENV_TRACE_ID]; + const nonEmptyString = (str) => typeof str === "string" && str.length > 0; + if (nonEmptyString(functionName) && nonEmptyString(traceId)) { + request.headers[TRACE_ID_HEADER_NAME] = traceId; + } + return next({ + ...args, + request + }); + }; + exports.recursionDetectionMiddleware = recursionDetectionMiddleware; + exports.addRecursionDetectionMiddlewareOptions = { + step: "build", + tags: ["RECURSION_DETECTION"], + name: "recursionDetectionMiddleware", + override: true, + priority: "low" + }; + var getRecursionDetectionPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.recursionDetectionMiddleware)(options), exports.addRecursionDetectionMiddlewareOptions); + } + }); + exports.getRecursionDetectionPlugin = getRecursionDetectionPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/config.js +var require_config3 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/config.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DEFAULT_RETRY_MODE = exports.DEFAULT_MAX_ATTEMPTS = exports.RETRY_MODES = void 0; + var RETRY_MODES; + (function(RETRY_MODES2) { + RETRY_MODES2["STANDARD"] = "standard"; + RETRY_MODES2["ADAPTIVE"] = "adaptive"; + })(RETRY_MODES = exports.RETRY_MODES || (exports.RETRY_MODES = {})); + exports.DEFAULT_MAX_ATTEMPTS = 3; + exports.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; + } +}); + +// node_modules/@aws-sdk/service-error-classification/dist-cjs/constants.js +var require_constants = __commonJS({ + "node_modules/@aws-sdk/service-error-classification/dist-cjs/constants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODEJS_TIMEOUT_ERROR_CODES = exports.TRANSIENT_ERROR_STATUS_CODES = exports.TRANSIENT_ERROR_CODES = exports.THROTTLING_ERROR_CODES = exports.CLOCK_SKEW_ERROR_CODES = void 0; + exports.CLOCK_SKEW_ERROR_CODES = [ + "AuthFailure", + "InvalidSignatureException", + "RequestExpired", + "RequestInTheFuture", + "RequestTimeTooSkewed", + "SignatureDoesNotMatch" + ]; + exports.THROTTLING_ERROR_CODES = [ + "BandwidthLimitExceeded", + "EC2ThrottledException", + "LimitExceededException", + "PriorRequestNotComplete", + "ProvisionedThroughputExceededException", + "RequestLimitExceeded", + "RequestThrottled", + "RequestThrottledException", + "SlowDown", + "ThrottledException", + "Throttling", + "ThrottlingException", + "TooManyRequestsException", + "TransactionInProgressException" + ]; + exports.TRANSIENT_ERROR_CODES = ["AbortError", "TimeoutError", "RequestTimeout", "RequestTimeoutException"]; + exports.TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; + exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; + } +}); + +// node_modules/@aws-sdk/service-error-classification/dist-cjs/index.js +var require_dist_cjs9 = __commonJS({ + "node_modules/@aws-sdk/service-error-classification/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isTransientError = exports.isThrottlingError = exports.isClockSkewError = exports.isRetryableByTrait = void 0; + var constants_1 = require_constants(); + var isRetryableByTrait = (error) => error.$retryable !== void 0; + exports.isRetryableByTrait = isRetryableByTrait; + var isClockSkewError = (error) => constants_1.CLOCK_SKEW_ERROR_CODES.includes(error.name); + exports.isClockSkewError = isClockSkewError; + var isThrottlingError = (error) => { + var _a, _b; + return ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 429 || constants_1.THROTTLING_ERROR_CODES.includes(error.name) || ((_b = error.$retryable) === null || _b === void 0 ? void 0 : _b.throttling) == true; + }; + exports.isThrottlingError = isThrottlingError; + var isTransientError = (error) => { + var _a; + return constants_1.TRANSIENT_ERROR_CODES.includes(error.name) || constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes((error === null || error === void 0 ? void 0 : error.code) || "") || constants_1.TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0); + }; + exports.isTransientError = isTransientError; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/DefaultRateLimiter.js +var require_DefaultRateLimiter = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/DefaultRateLimiter.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DefaultRateLimiter = void 0; + var service_error_classification_1 = require_dist_cjs9(); + var DefaultRateLimiter = class { + constructor(options) { + var _a, _b, _c, _d, _e; + this.currentCapacity = 0; + this.enabled = false; + this.lastMaxRate = 0; + this.measuredTxRate = 0; + this.requestCount = 0; + this.lastTimestamp = 0; + this.timeWindow = 0; + this.beta = (_a = options === null || options === void 0 ? void 0 : options.beta) !== null && _a !== void 0 ? _a : 0.7; + this.minCapacity = (_b = options === null || options === void 0 ? void 0 : options.minCapacity) !== null && _b !== void 0 ? _b : 1; + this.minFillRate = (_c = options === null || options === void 0 ? void 0 : options.minFillRate) !== null && _c !== void 0 ? _c : 0.5; + this.scaleConstant = (_d = options === null || options === void 0 ? void 0 : options.scaleConstant) !== null && _d !== void 0 ? _d : 0.4; + this.smooth = (_e = options === null || options === void 0 ? void 0 : options.smooth) !== null && _e !== void 0 ? _e : 0.8; + const currentTimeInSeconds = this.getCurrentTimeInSeconds(); + this.lastThrottleTime = currentTimeInSeconds; + this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); + this.fillRate = this.minFillRate; + this.maxCapacity = this.minCapacity; + } + getCurrentTimeInSeconds() { + return Date.now() / 1e3; + } + async getSendToken() { + return this.acquireTokenBucket(1); + } + async acquireTokenBucket(amount) { + if (!this.enabled) { + return; + } + this.refillTokenBucket(); + if (amount > this.currentCapacity) { + const delay = (amount - this.currentCapacity) / this.fillRate * 1e3; + await new Promise((resolve) => setTimeout(resolve, delay)); + } + this.currentCapacity = this.currentCapacity - amount; + } + refillTokenBucket() { + const timestamp = this.getCurrentTimeInSeconds(); + if (!this.lastTimestamp) { + this.lastTimestamp = timestamp; + return; + } + const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; + this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount); + this.lastTimestamp = timestamp; + } + updateClientSendingRate(response) { + let calculatedRate; + this.updateMeasuredRate(); + if ((0, service_error_classification_1.isThrottlingError)(response)) { + const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); + this.lastMaxRate = rateToUse; + this.calculateTimeWindow(); + this.lastThrottleTime = this.getCurrentTimeInSeconds(); + calculatedRate = this.cubicThrottle(rateToUse); + this.enableTokenBucket(); + } else { + this.calculateTimeWindow(); + calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); + } + const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); + this.updateTokenBucketRate(newRate); + } + calculateTimeWindow() { + this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3)); + } + cubicThrottle(rateToUse) { + return this.getPrecise(rateToUse * this.beta); + } + cubicSuccess(timestamp) { + return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); + } + enableTokenBucket() { + this.enabled = true; + } + updateTokenBucketRate(newRate) { + this.refillTokenBucket(); + this.fillRate = Math.max(newRate, this.minFillRate); + this.maxCapacity = Math.max(newRate, this.minCapacity); + this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); + } + updateMeasuredRate() { + const t = this.getCurrentTimeInSeconds(); + const timeBucket = Math.floor(t * 2) / 2; + this.requestCount++; + if (timeBucket > this.lastTxRateBucket) { + const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); + this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); + this.requestCount = 0; + this.lastTxRateBucket = timeBucket; + } + } + getPrecise(num) { + return parseFloat(num.toFixed(8)); + } + }; + exports.DefaultRateLimiter = DefaultRateLimiter; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/rng.js +var require_rng = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/rng.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = rng; + var _crypto = _interopRequireDefault(require("crypto")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var rnds8Pool = new Uint8Array(256); + var poolPtr = rnds8Pool.length; + function rng() { + if (poolPtr > rnds8Pool.length - 16) { + _crypto.default.randomFillSync(rnds8Pool); + poolPtr = 0; + } + return rnds8Pool.slice(poolPtr, poolPtr += 16); + } + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/regex.js +var require_regex = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/regex.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _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; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/validate.js +var require_validate = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/validate.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _regex = _interopRequireDefault(require_regex()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function validate(uuid) { + return typeof uuid === "string" && _regex.default.test(uuid); + } + var _default = validate; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/stringify.js +var require_stringify = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/stringify.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var byteToHex = []; + for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 256).toString(16).substr(1)); + } + 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 (!(0, _validate.default)(uuid)) { + throw TypeError("Stringified UUID is invalid"); + } + return uuid; + } + var _default = stringify; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v1.js +var require_v1 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v1.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _rng = _interopRequireDefault(require_rng()); + var _stringify = _interopRequireDefault(require_stringify()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var _nodeId; + var _clockseq; + var _lastMSecs = 0; + var _lastNSecs = 0; + 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.default)(); + 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 || (0, _stringify.default)(b); + } + var _default = v1; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/parse.js +var require_parse = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/parse.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function parse(uuid) { + if (!(0, _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 _default = parse; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v35.js +var require_v35 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v35.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = _default; + exports.URL = exports.DNS = void 0; + var _stringify = _interopRequireDefault(require_stringify()); + var _parse = _interopRequireDefault(require_parse()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); + const bytes = []; + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + return bytes; + } + var DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; + exports.DNS = DNS; + var URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; + exports.URL = URL2; + function _default(name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === "string") { + value = stringToBytes(value); + } + if (typeof namespace === "string") { + namespace = (0, _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 | version; + 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 (0, _stringify.default)(bytes); + } + try { + generateUUID.name = name; + } catch (err) { + } + generateUUID.DNS = DNS; + generateUUID.URL = URL2; + return generateUUID; + } + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/md5.js +var require_md5 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/md5.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _crypto = _interopRequireDefault(require("crypto")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return _crypto.default.createHash("md5").update(bytes).digest(); + } + var _default = md5; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v3.js +var require_v3 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v3.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _v = _interopRequireDefault(require_v35()); + var _md = _interopRequireDefault(require_md5()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var v3 = (0, _v.default)("v3", 48, _md.default); + var _default = v3; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v4.js +var require_v4 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v4.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _rng = _interopRequireDefault(require_rng()); + var _stringify = _interopRequireDefault(require_stringify()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function v4(options, buf, offset) { + options = options || {}; + const rnds = options.random || (options.rng || _rng.default)(); + 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 (0, _stringify.default)(rnds); + } + var _default = v4; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/sha1.js +var require_sha1 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/sha1.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _crypto = _interopRequireDefault(require("crypto")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return _crypto.default.createHash("sha1").update(bytes).digest(); + } + var _default = sha1; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v5.js +var require_v5 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v5.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _v = _interopRequireDefault(require_v35()); + var _sha = _interopRequireDefault(require_sha1()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var v5 = (0, _v.default)("v5", 80, _sha.default); + var _default = v5; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/nil.js +var require_nil = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/nil.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _default = "00000000-0000-0000-0000-000000000000"; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/version.js +var require_version = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/version.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function version(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError("Invalid UUID"); + } + return parseInt(uuid.substr(14, 1), 16); + } + var _default = version; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/index.js +var require_dist = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "v1", { + enumerable: true, + get: function() { + return _v.default; + } + }); + Object.defineProperty(exports, "v3", { + enumerable: true, + get: function() { + return _v2.default; + } + }); + Object.defineProperty(exports, "v4", { + enumerable: true, + get: function() { + return _v3.default; + } + }); + Object.defineProperty(exports, "v5", { + enumerable: true, + get: function() { + return _v4.default; + } + }); + Object.defineProperty(exports, "NIL", { + enumerable: true, + get: function() { + return _nil.default; + } + }); + Object.defineProperty(exports, "version", { + enumerable: true, + get: function() { + return _version.default; + } + }); + Object.defineProperty(exports, "validate", { + enumerable: true, + get: function() { + return _validate.default; + } + }); + Object.defineProperty(exports, "stringify", { + enumerable: true, + get: function() { + return _stringify.default; + } + }); + Object.defineProperty(exports, "parse", { + enumerable: true, + get: function() { + return _parse.default; + } + }); + var _v = _interopRequireDefault(require_v1()); + var _v2 = _interopRequireDefault(require_v3()); + var _v3 = _interopRequireDefault(require_v4()); + var _v4 = _interopRequireDefault(require_v5()); + var _nil = _interopRequireDefault(require_nil()); + var _version = _interopRequireDefault(require_version()); + var _validate = _interopRequireDefault(require_validate()); + var _stringify = _interopRequireDefault(require_stringify()); + var _parse = _interopRequireDefault(require_parse()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/constants.js +var require_constants2 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/constants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.REQUEST_HEADER = exports.INVOCATION_ID_HEADER = exports.NO_RETRY_INCREMENT = exports.TIMEOUT_RETRY_COST = exports.RETRY_COST = exports.INITIAL_RETRY_TOKENS = exports.THROTTLING_RETRY_DELAY_BASE = exports.MAXIMUM_RETRY_DELAY = exports.DEFAULT_RETRY_DELAY_BASE = void 0; + exports.DEFAULT_RETRY_DELAY_BASE = 100; + exports.MAXIMUM_RETRY_DELAY = 20 * 1e3; + exports.THROTTLING_RETRY_DELAY_BASE = 500; + exports.INITIAL_RETRY_TOKENS = 500; + exports.RETRY_COST = 5; + exports.TIMEOUT_RETRY_COST = 10; + exports.NO_RETRY_INCREMENT = 1; + exports.INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; + exports.REQUEST_HEADER = "amz-sdk-request"; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/defaultRetryQuota.js +var require_defaultRetryQuota = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/defaultRetryQuota.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getDefaultRetryQuota = void 0; + var constants_1 = require_constants2(); + 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 : constants_1.NO_RETRY_INCREMENT; + const retryCost = (_b = options === null || options === void 0 ? void 0 : options.retryCost) !== null && _b !== void 0 ? _b : constants_1.RETRY_COST; + const timeoutRetryCost = (_c = options === null || options === void 0 ? void 0 : options.timeoutRetryCost) !== null && _c !== void 0 ? _c : constants_1.TIMEOUT_RETRY_COST; + let availableCapacity = initialRetryTokens; + const getCapacityAmount = (error) => error.name === "TimeoutError" ? timeoutRetryCost : retryCost; + const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity; + const retrieveRetryTokens = (error) => { + if (!hasRetryTokens(error)) { + throw new Error("No retry token available"); + } + const capacityAmount = getCapacityAmount(error); + availableCapacity -= capacityAmount; + return capacityAmount; + }; + const releaseRetryTokens = (capacityReleaseAmount) => { + availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : noRetryIncrement; + availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); + }; + return Object.freeze({ + hasRetryTokens, + retrieveRetryTokens, + releaseRetryTokens + }); + }; + exports.getDefaultRetryQuota = getDefaultRetryQuota; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/delayDecider.js +var require_delayDecider = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/delayDecider.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.defaultDelayDecider = void 0; + var constants_1 = require_constants2(); + var defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(constants_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); + exports.defaultDelayDecider = defaultDelayDecider; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/retryDecider.js +var require_retryDecider = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/retryDecider.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.defaultRetryDecider = void 0; + var service_error_classification_1 = require_dist_cjs9(); + 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); + }; + exports.defaultRetryDecider = defaultRetryDecider; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js +var require_StandardRetryStrategy = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.StandardRetryStrategy = void 0; + var protocol_http_1 = require_dist_cjs4(); + var service_error_classification_1 = require_dist_cjs9(); + var uuid_1 = require_dist(); + var config_1 = require_config3(); + var constants_1 = require_constants2(); + var defaultRetryQuota_1 = require_defaultRetryQuota(); + var delayDecider_1 = require_delayDecider(); + var retryDecider_1 = require_retryDecider(); + var StandardRetryStrategy = class { + constructor(maxAttemptsProvider, options) { + var _a, _b, _c; + this.maxAttemptsProvider = maxAttemptsProvider; + this.mode = config_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)(constants_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 = config_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 } = args; + if (protocol_http_1.HttpRequest.isInstance(request)) { + request.headers[constants_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); + } + while (true) { + try { + if (protocol_http_1.HttpRequest.isInstance(request)) { + request.headers[constants_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 = 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) ? constants_1.THROTTLING_RETRY_DELAY_BASE : constants_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; + } + } + } + }; + exports.StandardRetryStrategy = StandardRetryStrategy; + var getDelayFromRetryAfterHeader = (response) => { + if (!protocol_http_1.HttpResponse.isInstance(response)) + return; + const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); + if (!retryAfterHeaderName) + return; + const retryAfter = response.headers[retryAfterHeaderName]; + const retryAfterSeconds = Number(retryAfter); + if (!Number.isNaN(retryAfterSeconds)) + return retryAfterSeconds * 1e3; + const retryAfterDate = new Date(retryAfter); + return retryAfterDate.getTime() - Date.now(); + }; + 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}`); + }; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js +var require_AdaptiveRetryStrategy = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.AdaptiveRetryStrategy = void 0; + var config_1 = require_config3(); + var DefaultRateLimiter_1 = require_DefaultRateLimiter(); + var StandardRetryStrategy_1 = require_StandardRetryStrategy(); + var AdaptiveRetryStrategy = class 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 DefaultRateLimiter_1.DefaultRateLimiter(); + this.mode = config_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); + } + }); + } + }; + exports.AdaptiveRetryStrategy = AdaptiveRetryStrategy; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/configurations.js +var require_configurations = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/configurations.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODE_RETRY_MODE_CONFIG_OPTIONS = exports.CONFIG_RETRY_MODE = exports.ENV_RETRY_MODE = exports.resolveRetryConfig = exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = exports.CONFIG_MAX_ATTEMPTS = exports.ENV_MAX_ATTEMPTS = void 0; + var util_middleware_1 = require_dist_cjs2(); + var AdaptiveRetryStrategy_1 = require_AdaptiveRetryStrategy(); + var config_1 = require_config3(); + var StandardRetryStrategy_1 = require_StandardRetryStrategy(); + exports.ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; + exports.CONFIG_MAX_ATTEMPTS = "max_attempts"; + exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + const value = env[exports.ENV_MAX_ATTEMPTS]; + if (!value) + return void 0; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(`Environment variable ${exports.ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`); + } + return maxAttempt; + }, + configFileSelector: (profile) => { + const value = profile[exports.CONFIG_MAX_ATTEMPTS]; + if (!value) + return void 0; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(`Shared config file entry ${exports.CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`); + } + return maxAttempt; + }, + default: config_1.DEFAULT_MAX_ATTEMPTS + }; + var resolveRetryConfig = (input) => { + var _a; + const maxAttempts = (0, util_middleware_1.normalizeProvider)((_a = input.maxAttempts) !== null && _a !== void 0 ? _a : config_1.DEFAULT_MAX_ATTEMPTS); + return { + ...input, + maxAttempts, + retryStrategy: async () => { + if (input.retryStrategy) { + return input.retryStrategy; + } + const retryMode = await (0, util_middleware_1.normalizeProvider)(input.retryMode)(); + if (retryMode === config_1.RETRY_MODES.ADAPTIVE) { + return new AdaptiveRetryStrategy_1.AdaptiveRetryStrategy(maxAttempts); + } + return new StandardRetryStrategy_1.StandardRetryStrategy(maxAttempts); + } + }; + }; + exports.resolveRetryConfig = resolveRetryConfig; + exports.ENV_RETRY_MODE = "AWS_RETRY_MODE"; + exports.CONFIG_RETRY_MODE = "retry_mode"; + exports.NODE_RETRY_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_RETRY_MODE], + configFileSelector: (profile) => profile[exports.CONFIG_RETRY_MODE], + default: config_1.DEFAULT_RETRY_MODE + }; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js +var require_omitRetryHeadersMiddleware = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getOmitRetryHeadersPlugin = exports.omitRetryHeadersMiddlewareOptions = exports.omitRetryHeadersMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var constants_1 = require_constants2(); + var omitRetryHeadersMiddleware = () => (next) => async (args) => { + const { request } = args; + if (protocol_http_1.HttpRequest.isInstance(request)) { + delete request.headers[constants_1.INVOCATION_ID_HEADER]; + delete request.headers[constants_1.REQUEST_HEADER]; + } + return next(args); + }; + exports.omitRetryHeadersMiddleware = omitRetryHeadersMiddleware; + exports.omitRetryHeadersMiddlewareOptions = { + name: "omitRetryHeadersMiddleware", + tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"], + relation: "before", + toMiddleware: "awsAuthMiddleware", + override: true + }; + var getOmitRetryHeadersPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo((0, exports.omitRetryHeadersMiddleware)(), exports.omitRetryHeadersMiddlewareOptions); + } + }); + exports.getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js +var require_retryMiddleware = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRetryPlugin = exports.retryMiddlewareOptions = exports.retryMiddleware = void 0; + var retryMiddleware = (options) => (next, context) => async (args) => { + const retryStrategy = await options.retryStrategy(); + if (retryStrategy === null || retryStrategy === void 0 ? void 0 : retryStrategy.mode) + context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]]; + return retryStrategy.retry(next, args); + }; + exports.retryMiddleware = retryMiddleware; + exports.retryMiddlewareOptions = { + name: "retryMiddleware", + tags: ["RETRY"], + step: "finalizeRequest", + priority: "high", + override: true + }; + var getRetryPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.retryMiddleware)(options), exports.retryMiddlewareOptions); + } + }); + exports.getRetryPlugin = getRetryPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/types.js +var require_types = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/types.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/index.js +var require_dist_cjs10 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_AdaptiveRetryStrategy(), exports); + tslib_1.__exportStar(require_DefaultRateLimiter(), exports); + tslib_1.__exportStar(require_StandardRetryStrategy(), exports); + tslib_1.__exportStar(require_config3(), exports); + tslib_1.__exportStar(require_configurations(), exports); + tslib_1.__exportStar(require_delayDecider(), exports); + tslib_1.__exportStar(require_omitRetryHeadersMiddleware(), exports); + tslib_1.__exportStar(require_retryDecider(), exports); + tslib_1.__exportStar(require_retryMiddleware(), exports); + tslib_1.__exportStar(require_types(), exports); + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/ProviderError.js +var require_ProviderError = __commonJS({ + "node_modules/@aws-sdk/property-provider/dist-cjs/ProviderError.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ProviderError = void 0; + var ProviderError = class extends Error { + constructor(message, tryNextLink = true) { + super(message); + this.tryNextLink = tryNextLink; + this.name = "ProviderError"; + Object.setPrototypeOf(this, ProviderError.prototype); + } + static from(error, tryNextLink = true) { + return Object.assign(new this(error.message, tryNextLink), error); + } + }; + exports.ProviderError = ProviderError; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/CredentialsProviderError.js +var require_CredentialsProviderError = __commonJS({ + "node_modules/@aws-sdk/property-provider/dist-cjs/CredentialsProviderError.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CredentialsProviderError = void 0; + var ProviderError_1 = require_ProviderError(); + var CredentialsProviderError = class extends ProviderError_1.ProviderError { + constructor(message, tryNextLink = true) { + super(message, tryNextLink); + this.tryNextLink = tryNextLink; + this.name = "CredentialsProviderError"; + Object.setPrototypeOf(this, CredentialsProviderError.prototype); + } + }; + exports.CredentialsProviderError = CredentialsProviderError; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/TokenProviderError.js +var require_TokenProviderError = __commonJS({ + "node_modules/@aws-sdk/property-provider/dist-cjs/TokenProviderError.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.TokenProviderError = void 0; + var ProviderError_1 = require_ProviderError(); + var TokenProviderError = class extends ProviderError_1.ProviderError { + constructor(message, tryNextLink = true) { + super(message, tryNextLink); + this.tryNextLink = tryNextLink; + this.name = "TokenProviderError"; + Object.setPrototypeOf(this, TokenProviderError.prototype); + } + }; + exports.TokenProviderError = TokenProviderError; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/chain.js +var require_chain = __commonJS({ + "node_modules/@aws-sdk/property-provider/dist-cjs/chain.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.chain = void 0; + var ProviderError_1 = require_ProviderError(); + function chain(...providers) { + return () => { + let promise = Promise.reject(new ProviderError_1.ProviderError("No providers in chain")); + for (const provider of providers) { + promise = promise.catch((err) => { + if (err === null || err === void 0 ? void 0 : err.tryNextLink) { + return provider(); + } + throw err; + }); + } + return promise; + }; + } + exports.chain = chain; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/fromStatic.js +var require_fromStatic = __commonJS({ + "node_modules/@aws-sdk/property-provider/dist-cjs/fromStatic.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromStatic = void 0; + var fromStatic = (staticValue) => () => Promise.resolve(staticValue); + exports.fromStatic = fromStatic; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js +var require_memoize = __commonJS({ + "node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.memoize = void 0; + var memoize = (provider, isExpired, requiresRefresh) => { + let resolved; + let pending; + let hasResult; + let isConstant = false; + const coalesceProvider = async () => { + if (!pending) { + pending = provider(); + } + try { + resolved = await pending; + hasResult = true; + isConstant = false; + } finally { + pending = void 0; + } + return resolved; + }; + if (isExpired === void 0) { + return async (options) => { + if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { + resolved = await coalesceProvider(); + } + return resolved; + }; + } + return async (options) => { + if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { + resolved = await coalesceProvider(); + } + if (isConstant) { + return resolved; + } + if (requiresRefresh && !requiresRefresh(resolved)) { + isConstant = true; + return resolved; + } + if (isExpired(resolved)) { + await coalesceProvider(); + return resolved; + } + return resolved; + }; + }; + exports.memoize = memoize; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/index.js +var require_dist_cjs11 = __commonJS({ + "node_modules/@aws-sdk/property-provider/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_CredentialsProviderError(), exports); + tslib_1.__exportStar(require_ProviderError(), exports); + tslib_1.__exportStar(require_TokenProviderError(), exports); + tslib_1.__exportStar(require_chain(), exports); + tslib_1.__exportStar(require_fromStatic(), exports); + tslib_1.__exportStar(require_memoize(), exports); + } +}); + +// node_modules/@aws-sdk/util-hex-encoding/dist-cjs/index.js +var require_dist_cjs12 = __commonJS({ + "node_modules/@aws-sdk/util-hex-encoding/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.toHex = exports.fromHex = void 0; + var SHORT_TO_HEX = {}; + var HEX_TO_SHORT = {}; + for (let i = 0; i < 256; i++) { + let encodedByte = i.toString(16).toLowerCase(); + if (encodedByte.length === 1) { + encodedByte = `0${encodedByte}`; + } + SHORT_TO_HEX[i] = encodedByte; + HEX_TO_SHORT[encodedByte] = i; + } + function fromHex(encoded) { + if (encoded.length % 2 !== 0) { + throw new Error("Hex encoded strings must have an even number length"); + } + const out = new Uint8Array(encoded.length / 2); + for (let i = 0; i < encoded.length; i += 2) { + const encodedByte = encoded.slice(i, i + 2).toLowerCase(); + if (encodedByte in HEX_TO_SHORT) { + out[i / 2] = HEX_TO_SHORT[encodedByte]; + } else { + throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`); + } + } + return out; + } + exports.fromHex = fromHex; + function toHex(bytes) { + let out = ""; + for (let i = 0; i < bytes.byteLength; i++) { + out += SHORT_TO_HEX[bytes[i]]; + } + return out; + } + exports.toHex = toHex; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/constants.js +var require_constants3 = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/constants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.MAX_PRESIGNED_TTL = exports.KEY_TYPE_IDENTIFIER = exports.MAX_CACHE_SIZE = exports.UNSIGNED_PAYLOAD = exports.EVENT_ALGORITHM_IDENTIFIER = exports.ALGORITHM_IDENTIFIER_V4A = exports.ALGORITHM_IDENTIFIER = exports.UNSIGNABLE_PATTERNS = exports.SEC_HEADER_PATTERN = exports.PROXY_HEADER_PATTERN = exports.ALWAYS_UNSIGNABLE_HEADERS = exports.HOST_HEADER = exports.TOKEN_HEADER = exports.SHA256_HEADER = exports.SIGNATURE_HEADER = exports.GENERATED_HEADERS = exports.DATE_HEADER = exports.AMZ_DATE_HEADER = exports.AUTH_HEADER = exports.REGION_SET_PARAM = exports.TOKEN_QUERY_PARAM = exports.SIGNATURE_QUERY_PARAM = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = void 0; + exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; + exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; + exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; + exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; + exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires"; + exports.SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; + exports.TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; + exports.REGION_SET_PARAM = "X-Amz-Region-Set"; + exports.AUTH_HEADER = "authorization"; + exports.AMZ_DATE_HEADER = exports.AMZ_DATE_QUERY_PARAM.toLowerCase(); + exports.DATE_HEADER = "date"; + exports.GENERATED_HEADERS = [exports.AUTH_HEADER, exports.AMZ_DATE_HEADER, exports.DATE_HEADER]; + exports.SIGNATURE_HEADER = exports.SIGNATURE_QUERY_PARAM.toLowerCase(); + exports.SHA256_HEADER = "x-amz-content-sha256"; + exports.TOKEN_HEADER = exports.TOKEN_QUERY_PARAM.toLowerCase(); + exports.HOST_HEADER = "host"; + exports.ALWAYS_UNSIGNABLE_HEADERS = { + authorization: true, + "cache-control": true, + connection: true, + expect: true, + from: true, + "keep-alive": true, + "max-forwards": true, + pragma: true, + referer: true, + te: true, + trailer: true, + "transfer-encoding": true, + upgrade: true, + "user-agent": true, + "x-amzn-trace-id": true + }; + exports.PROXY_HEADER_PATTERN = /^proxy-/; + exports.SEC_HEADER_PATTERN = /^sec-/; + exports.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; + exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; + exports.ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; + exports.EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; + exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; + exports.MAX_CACHE_SIZE = 50; + exports.KEY_TYPE_IDENTIFIER = "aws4_request"; + exports.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/credentialDerivation.js +var require_credentialDerivation = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/credentialDerivation.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.clearCredentialCache = exports.getSigningKey = exports.createScope = void 0; + var util_hex_encoding_1 = require_dist_cjs12(); + var constants_1 = require_constants3(); + var signingKeyCache = {}; + var cacheQueue = []; + var createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${constants_1.KEY_TYPE_IDENTIFIER}`; + exports.createScope = createScope; + var getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { + const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); + const cacheKey = `${shortDate}:${region}:${service}:${(0, util_hex_encoding_1.toHex)(credsHash)}:${credentials.sessionToken}`; + if (cacheKey in signingKeyCache) { + return signingKeyCache[cacheKey]; + } + cacheQueue.push(cacheKey); + while (cacheQueue.length > constants_1.MAX_CACHE_SIZE) { + delete signingKeyCache[cacheQueue.shift()]; + } + let key = `AWS4${credentials.secretAccessKey}`; + for (const signable of [shortDate, region, service, constants_1.KEY_TYPE_IDENTIFIER]) { + key = await hmac(sha256Constructor, key, signable); + } + return signingKeyCache[cacheKey] = key; + }; + exports.getSigningKey = getSigningKey; + var clearCredentialCache = () => { + cacheQueue.length = 0; + Object.keys(signingKeyCache).forEach((cacheKey) => { + delete signingKeyCache[cacheKey]; + }); + }; + exports.clearCredentialCache = clearCredentialCache; + var hmac = (ctor, secret, data) => { + const hash = new ctor(secret); + hash.update(data); + return hash.digest(); + }; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalHeaders.js +var require_getCanonicalHeaders = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalHeaders.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getCanonicalHeaders = void 0; + var constants_1 = require_constants3(); + var getCanonicalHeaders = ({ 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 (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) { + continue; + } + } + canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " "); + } + return canonical; + }; + exports.getCanonicalHeaders = getCanonicalHeaders; + } +}); + +// node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri.js +var require_escape_uri = __commonJS({ + "node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.escapeUri = void 0; + var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); + exports.escapeUri = escapeUri; + var hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`; + } +}); + +// node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri-path.js +var require_escape_uri_path = __commonJS({ + "node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri-path.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.escapeUriPath = void 0; + var escape_uri_1 = require_escape_uri(); + var escapeUriPath = (uri) => uri.split("/").map(escape_uri_1.escapeUri).join("/"); + exports.escapeUriPath = escapeUriPath; + } +}); + +// node_modules/@aws-sdk/util-uri-escape/dist-cjs/index.js +var require_dist_cjs13 = __commonJS({ + "node_modules/@aws-sdk/util-uri-escape/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_escape_uri(), exports); + tslib_1.__exportStar(require_escape_uri_path(), exports); + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalQuery.js +var require_getCanonicalQuery = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalQuery.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getCanonicalQuery = void 0; + var util_uri_escape_1 = require_dist_cjs13(); + var constants_1 = require_constants3(); + var getCanonicalQuery = ({ query = {} }) => { + const keys = []; + const serialized = {}; + for (const key of Object.keys(query).sort()) { + if (key.toLowerCase() === constants_1.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)}`; + } else if (Array.isArray(value)) { + serialized[key] = value.slice(0).sort().reduce((encoded, value2) => encoded.concat([`${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value2)}`]), []).join("&"); + } + } + return keys.map((key) => serialized[key]).filter((serialized2) => serialized2).join("&"); + }; + exports.getCanonicalQuery = getCanonicalQuery; + } +}); + +// node_modules/@aws-sdk/is-array-buffer/dist-cjs/index.js +var require_dist_cjs14 = __commonJS({ + "node_modules/@aws-sdk/is-array-buffer/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isArrayBuffer = void 0; + var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]"; + exports.isArrayBuffer = isArrayBuffer; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/getPayloadHash.js +var require_getPayloadHash = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/getPayloadHash.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getPayloadHash = void 0; + var is_array_buffer_1 = require_dist_cjs14(); + var util_hex_encoding_1 = require_dist_cjs12(); + var constants_1 = require_constants3(); + var getPayloadHash = async ({ headers, body }, hashConstructor) => { + for (const headerName of Object.keys(headers)) { + if (headerName.toLowerCase() === constants_1.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)) { + const hashCtor = new hashConstructor(); + hashCtor.update(body); + return (0, util_hex_encoding_1.toHex)(await hashCtor.digest()); + } + return constants_1.UNSIGNED_PAYLOAD; + }; + exports.getPayloadHash = getPayloadHash; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/headerUtil.js +var require_headerUtil = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/headerUtil.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.deleteHeader = exports.getHeaderValue = exports.hasHeader = void 0; + var hasHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return true; + } + } + return false; + }; + exports.hasHeader = hasHeader; + var getHeaderValue = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return headers[headerName]; + } + } + return void 0; + }; + exports.getHeaderValue = getHeaderValue; + var deleteHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + delete headers[headerName]; + } + } + }; + exports.deleteHeader = deleteHeader; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/cloneRequest.js +var require_cloneRequest = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/cloneRequest.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.cloneQuery = exports.cloneRequest = void 0; + var cloneRequest = ({ headers, query, ...rest }) => ({ + ...rest, + headers: { ...headers }, + query: query ? (0, exports.cloneQuery)(query) : void 0 + }); + exports.cloneRequest = cloneRequest; + var cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { + const param = query[paramName]; + return { + ...carry, + [paramName]: Array.isArray(param) ? [...param] : param + }; + }, {}); + exports.cloneQuery = cloneQuery; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/moveHeadersToQuery.js +var require_moveHeadersToQuery = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/moveHeadersToQuery.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.moveHeadersToQuery = void 0; + var cloneRequest_1 = require_cloneRequest(); + var moveHeadersToQuery = (request, options = {}) => { + var _a; + const { headers, query = {} } = typeof request.clone === "function" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); + 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))) { + query[name] = headers[name]; + delete headers[name]; + } + } + return { + ...request, + headers, + query + }; + }; + exports.moveHeadersToQuery = moveHeadersToQuery; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js +var require_prepareRequest = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.prepareRequest = void 0; + var cloneRequest_1 = require_cloneRequest(); + var constants_1 = require_constants3(); + var prepareRequest = (request) => { + request = typeof request.clone === "function" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); + for (const headerName of Object.keys(request.headers)) { + if (constants_1.GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { + delete request.headers[headerName]; + } + } + return request; + }; + exports.prepareRequest = prepareRequest; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/utilDate.js +var require_utilDate = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/utilDate.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.toDate = exports.iso8601 = void 0; + var iso8601 = (time) => (0, exports.toDate)(time).toISOString().replace(/\.\d{3}Z$/, "Z"); + exports.iso8601 = iso8601; + var toDate = (time) => { + if (typeof time === "number") { + return new Date(time * 1e3); + } + if (typeof time === "string") { + if (Number(time)) { + return new Date(Number(time) * 1e3); + } + return new Date(time); + } + return time; + }; + exports.toDate = toDate; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js +var require_SignatureV4 = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SignatureV4 = void 0; + var util_hex_encoding_1 = require_dist_cjs12(); + var util_middleware_1 = require_dist_cjs2(); + var constants_1 = require_constants3(); + 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.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); + } + async presign(originalRequest, options = {}) { + const { signingDate = 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 { 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"); + } + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + const request = (0, moveHeadersToQuery_1.moveHeadersToQuery)((0, prepareRequest_1.prepareRequest)(originalRequest), { unhoistableHeaders }); + if (credentials.sessionToken) { + request.query[constants_1.TOKEN_QUERY_PARAM] = credentials.sessionToken; + } + request.query[constants_1.ALGORITHM_QUERY_PARAM] = constants_1.ALGORITHM_IDENTIFIER; + request.query[constants_1.CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`; + request.query[constants_1.AMZ_DATE_QUERY_PARAM] = longDate; + request.query[constants_1.EXPIRES_QUERY_PARAM] = expiresIn.toString(10); + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); + request.query[constants_1.SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); + request.query[constants_1.SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, await (0, getPayloadHash_1.getPayloadHash)(originalRequest, this.sha256))); + return request; + } + async sign(toSign, options) { + if (typeof toSign === "string") { + return this.signString(toSign, options); + } else if (toSign.headers && toSign.payload) { + return this.signEvent(toSign, options); + } else { + return this.signRequest(toSign, options); + } + } + async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) { + const region = signingRegion !== null && signingRegion !== void 0 ? 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 hash = new this.sha256(); + hash.update(headers); + const hashedHeaders = (0, util_hex_encoding_1.toHex)(await hash.digest()); + const stringToSign = [ + constants_1.EVENT_ALGORITHM_IDENTIFIER, + longDate, + scope, + priorSignature, + hashedHeaders, + hashedPayload + ].join("\n"); + return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); + } + async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) { + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const { shortDate } = formatDate(signingDate); + const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); + hash.update(stringToSign); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + async signRequest(requestToSign, { signingDate = 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 request = (0, prepareRequest_1.prepareRequest)(requestToSign); + const { longDate, shortDate } = formatDate(signingDate); + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + request.headers[constants_1.AMZ_DATE_HEADER] = longDate; + if (credentials.sessionToken) { + request.headers[constants_1.TOKEN_HEADER] = credentials.sessionToken; + } + const payloadHash = await (0, getPayloadHash_1.getPayloadHash)(request, this.sha256); + if (!(0, headerUtil_1.hasHeader)(constants_1.SHA256_HEADER, request.headers) && this.applyChecksum) { + request.headers[constants_1.SHA256_HEADER] = payloadHash; + } + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); + const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash)); + request.headers[constants_1.AUTH_HEADER] = `${constants_1.ALGORITHM_IDENTIFIER} Credential=${credentials.accessKeyId}/${scope}, SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, Signature=${signature}`; + return request; + } + createCanonicalRequest(request, canonicalHeaders, payloadHash) { + const sortedHeaders = Object.keys(canonicalHeaders).sort(); + return `${request.method} +${this.getCanonicalPath(request)} +${(0, getCanonicalQuery_1.getCanonicalQuery)(request)} +${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join("\n")} + +${sortedHeaders.join(";")} +${payloadHash}`; + } + async createStringToSign(longDate, credentialScope, canonicalRequest) { + const hash = new this.sha256(); + hash.update(canonicalRequest); + const hashedRequest = await hash.digest(); + return `${constants_1.ALGORITHM_IDENTIFIER} +${longDate} +${credentialScope} +${(0, util_hex_encoding_1.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) + continue; + if (pathSegment === ".") + continue; + if (pathSegment === "..") { + normalizedPathSegments.pop(); + } else { + 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 doubleEncoded = encodeURIComponent(normalizedPath); + return doubleEncoded.replace(/%2F/g, "/"); + } + return path; + } + async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { + const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); + const hash = new this.sha256(await keyPromise); + hash.update(stringToSign); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + getSigningKey(credentials, region, shortDate, service) { + return (0, credentialDerivation_1.getSigningKey)(this.sha256, credentials, shortDate, region, service || this.service); + } + validateResolvedCredentials(credentials) { + if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") { + throw new Error("Resolved credential object is not valid"); + } + } + }; + exports.SignatureV4 = SignatureV4; + var formatDate = (now) => { + const longDate = (0, utilDate_1.iso8601)(now).replace(/[\-:]/g, ""); + return { + longDate, + shortDate: longDate.slice(0, 8) + }; + }; + var getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(";"); + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/index.js +var require_dist_cjs15 = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.prepareRequest = exports.moveHeadersToQuery = exports.getPayloadHash = exports.getCanonicalQuery = exports.getCanonicalHeaders = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_SignatureV4(), exports); + var getCanonicalHeaders_1 = require_getCanonicalHeaders(); + Object.defineProperty(exports, "getCanonicalHeaders", { enumerable: true, get: function() { + return getCanonicalHeaders_1.getCanonicalHeaders; + } }); + var getCanonicalQuery_1 = require_getCanonicalQuery(); + Object.defineProperty(exports, "getCanonicalQuery", { enumerable: true, get: function() { + return getCanonicalQuery_1.getCanonicalQuery; + } }); + var getPayloadHash_1 = require_getPayloadHash(); + Object.defineProperty(exports, "getPayloadHash", { enumerable: true, get: function() { + return getPayloadHash_1.getPayloadHash; + } }); + var moveHeadersToQuery_1 = require_moveHeadersToQuery(); + Object.defineProperty(exports, "moveHeadersToQuery", { enumerable: true, get: function() { + return moveHeadersToQuery_1.moveHeadersToQuery; + } }); + var prepareRequest_1 = require_prepareRequest(); + Object.defineProperty(exports, "prepareRequest", { enumerable: true, get: function() { + return prepareRequest_1.prepareRequest; + } }); + tslib_1.__exportStar(require_credentialDerivation(), exports); + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/configurations.js +var require_configurations2 = __commonJS({ + "node_modules/@aws-sdk/middleware-signing/dist-cjs/configurations.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveSigV4AuthConfig = exports.resolveAwsAuthConfig = void 0; + var property_provider_1 = require_dist_cjs11(); + var signature_v4_1 = require_dist_cjs15(); + var util_middleware_1 = require_dist_cjs2(); + var CREDENTIAL_EXPIRE_WINDOW = 3e5; + var resolveAwsAuthConfig = (input) => { + const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); + const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; + let signer; + if (input.signer) { + signer = (0, util_middleware_1.normalizeProvider)(input.signer); + } else if (input.regionInfoProvider) { + signer = () => (0, util_middleware_1.normalizeProvider)(input.region)().then(async (region) => [ + await input.regionInfoProvider(region, { + useFipsEndpoint: await input.useFipsEndpoint(), + useDualstackEndpoint: await input.useDualstackEndpoint() + }) || {}, + region + ]).then(([regionInfo, region]) => { + const { signingRegion, signingService } = regionInfo; + input.signingRegion = input.signingRegion || signingRegion || region; + input.signingName = input.signingName || signingService || input.serviceId; + const params = { + ...input, + credentials: normalizedCreds, + region: input.signingRegion, + service: input.signingName, + sha256, + uriEscapePath: signingEscapePath + }; + const SignerCtor = input.signerConstructor || signature_v4_1.SignatureV4; + return new SignerCtor(params); + }); + } else { + signer = async (authScheme) => { + if (!authScheme) { + throw new Error("Unexpected empty auth scheme config"); + } + const signingRegion = authScheme.signingScope; + const signingService = authScheme.signingName; + input.signingRegion = input.signingRegion || signingRegion; + input.signingName = input.signingName || signingService || input.serviceId; + const params = { + ...input, + credentials: normalizedCreds, + region: input.signingRegion, + service: input.signingName, + sha256, + uriEscapePath: signingEscapePath + }; + const SignerCtor = input.signerConstructor || signature_v4_1.SignatureV4; + return new SignerCtor(params); + }; + } + return { + ...input, + systemClockOffset, + signingEscapePath, + credentials: normalizedCreds, + signer + }; + }; + exports.resolveAwsAuthConfig = resolveAwsAuthConfig; + var resolveSigV4AuthConfig = (input) => { + const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); + const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; + let signer; + if (input.signer) { + signer = (0, util_middleware_1.normalizeProvider)(input.signer); + } else { + signer = (0, util_middleware_1.normalizeProvider)(new signature_v4_1.SignatureV4({ + credentials: normalizedCreds, + region: input.region, + service: input.signingName, + sha256, + uriEscapePath: signingEscapePath + })); + } + return { + ...input, + systemClockOffset, + signingEscapePath, + credentials: normalizedCreds, + signer + }; + }; + exports.resolveSigV4AuthConfig = resolveSigV4AuthConfig; + var normalizeCredentialProvider = (credentials) => { + if (typeof credentials === "function") { + return (0, property_provider_1.memoize)(credentials, (credentials2) => credentials2.expiration !== void 0 && credentials2.expiration.getTime() - Date.now() < CREDENTIAL_EXPIRE_WINDOW, (credentials2) => credentials2.expiration !== void 0); + } + return (0, util_middleware_1.normalizeProvider)(credentials); + }; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js +var require_getSkewCorrectedDate = __commonJS({ + "node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSkewCorrectedDate = void 0; + var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); + exports.getSkewCorrectedDate = getSkewCorrectedDate; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js +var require_isClockSkewed = __commonJS({ + "node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isClockSkewed = void 0; + var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); + var isClockSkewed = (clockTime, systemClockOffset) => Math.abs((0, getSkewCorrectedDate_1.getSkewCorrectedDate)(systemClockOffset).getTime() - clockTime) >= 3e5; + exports.isClockSkewed = isClockSkewed; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js +var require_getUpdatedSystemClockOffset = __commonJS({ + "node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getUpdatedSystemClockOffset = void 0; + var isClockSkewed_1 = require_isClockSkewed(); + var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => { + const clockTimeInMs = Date.parse(clockTime); + if ((0, isClockSkewed_1.isClockSkewed)(clockTimeInMs, currentSystemClockOffset)) { + return clockTimeInMs - Date.now(); + } + return currentSystemClockOffset; + }; + exports.getUpdatedSystemClockOffset = getUpdatedSystemClockOffset; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js +var require_middleware2 = __commonJS({ + "node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin = exports.awsAuthMiddlewareOptions = exports.awsAuthMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); + var getUpdatedSystemClockOffset_1 = require_getUpdatedSystemClockOffset(); + var awsAuthMiddleware = (options) => (next, context) => async function(args) { + var _a, _b, _c; + if (!protocol_http_1.HttpRequest.isInstance(args.request)) + return next(args); + const authScheme = (_c = (_b = (_a = context.endpointV2) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.authSchemes) === null || _c === void 0 ? void 0 : _c[0]; + const signer = await options.signer(authScheme); + const output = await next({ + ...args, + request: await signer.sign(args.request, { + signingDate: (0, getSkewCorrectedDate_1.getSkewCorrectedDate)(options.systemClockOffset), + signingRegion: context["signing_region"], + signingService: context["signing_service"] + }) + }).catch((error) => { + var _a2; + const serverTime = (_a2 = error.ServerTime) !== null && _a2 !== void 0 ? _a2 : getDateHeader(error.$response); + if (serverTime) { + options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(serverTime, options.systemClockOffset); + } + throw error; + }); + const dateHeader = getDateHeader(output.response); + if (dateHeader) { + options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(dateHeader, options.systemClockOffset); + } + return output; + }; + exports.awsAuthMiddleware = awsAuthMiddleware; + var getDateHeader = (response) => { + var _a, _b, _c; + return protocol_http_1.HttpResponse.isInstance(response) ? (_b = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.date) !== null && _b !== void 0 ? _b : (_c = response.headers) === null || _c === void 0 ? void 0 : _c.Date : void 0; + }; + exports.awsAuthMiddlewareOptions = { + name: "awsAuthMiddleware", + tags: ["SIGNATURE", "AWSAUTH"], + relation: "after", + toMiddleware: "retryMiddleware", + override: true + }; + var getAwsAuthPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo((0, exports.awsAuthMiddleware)(options), exports.awsAuthMiddlewareOptions); + } + }); + exports.getAwsAuthPlugin = getAwsAuthPlugin; + exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +var require_dist_cjs16 = __commonJS({ + "node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_configurations2(), exports); + tslib_1.__exportStar(require_middleware2(), exports); + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js +var require_configurations3 = __commonJS({ + "node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveUserAgentConfig = void 0; + function resolveUserAgentConfig(input) { + return { + ...input, + customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent + }; + } + exports.resolveUserAgentConfig = resolveUserAgentConfig; + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js +var require_constants4 = __commonJS({ + "node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.UA_ESCAPE_REGEX = exports.SPACE = exports.X_AMZ_USER_AGENT = exports.USER_AGENT = void 0; + exports.USER_AGENT = "user-agent"; + exports.X_AMZ_USER_AGENT = "x-amz-user-agent"; + exports.SPACE = " "; + exports.UA_ESCAPE_REGEX = /[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g; + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js +var require_user_agent_middleware = __commonJS({ + "node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getUserAgentPlugin = exports.getUserAgentMiddlewareOptions = exports.userAgentMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var constants_1 = require_constants4(); + var userAgentMiddleware = (options) => (next, context) => async (args) => { + var _a, _b; + const { request } = args; + if (!protocol_http_1.HttpRequest.isInstance(request)) + return next(args); + const { headers } = request; + const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; + const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); + const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; + const sdkUserAgentValue = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(constants_1.SPACE); + const normalUAValue = [ + ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), + ...customUserAgent + ].join(constants_1.SPACE); + if (options.runtime !== "browser") { + if (normalUAValue) { + headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] ? `${headers[constants_1.USER_AGENT]} ${normalUAValue}` : normalUAValue; + } + headers[constants_1.USER_AGENT] = sdkUserAgentValue; + } else { + headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; + } + return next({ + ...args, + request + }); + }; + exports.userAgentMiddleware = userAgentMiddleware; + var escapeUserAgent = ([name, version]) => { + const prefixSeparatorIndex = name.indexOf("/"); + const prefix = name.substring(0, prefixSeparatorIndex); + let uaName = name.substring(prefixSeparatorIndex + 1); + if (prefix === "api") { + uaName = uaName.toLowerCase(); + } + return [prefix, uaName, version].filter((item) => item && item.length > 0).map((item) => item === null || item === void 0 ? void 0 : item.replace(constants_1.UA_ESCAPE_REGEX, "_")).join("/"); + }; + exports.getUserAgentMiddlewareOptions = { + name: "getUserAgentMiddleware", + step: "build", + priority: "low", + tags: ["SET_USER_AGENT", "USER_AGENT"], + override: true + }; + var getUserAgentPlugin = (config) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.userAgentMiddleware)(config), exports.getUserAgentMiddlewareOptions); + } + }); + exports.getUserAgentPlugin = getUserAgentPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +var require_dist_cjs17 = __commonJS({ + "node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_configurations3(), exports); + tslib_1.__exportStar(require_user_agent_middleware(), exports); + } +}); + +// node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js +var require_MiddlewareStack = __commonJS({ + "node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.constructStack = void 0; + var constructStack = () => { + let absoluteEntries = []; + let relativeEntries = []; + 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) => { + let isRemoved = false; + const filterCb = (entry) => { + if (entry.name && entry.name === toRemove) { + isRemoved = true; + entriesNameSet.delete(toRemove); + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }; + const removeByReference = (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + if (entry.middleware === toRemove) { + isRemoved = true; + if (entry.name) + entriesNameSet.delete(entry.name); + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }; + const cloneTo = (toStack) => { + absoluteEntries.forEach((entry) => { + toStack.add(entry.middleware, { ...entry }); + }); + relativeEntries.forEach((entry) => { + toStack.addRelativeTo(entry.middleware, { ...entry }); + }); + return toStack; + }; + const expandRelativeMiddlewareList = (from) => { + const expandedMiddlewareList = []; + from.before.forEach((entry) => { + if (entry.before.length === 0 && entry.after.length === 0) { + expandedMiddlewareList.push(entry); + } else { + expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); + } + }); + expandedMiddlewareList.push(from); + from.after.reverse().forEach((entry) => { + if (entry.before.length === 0 && entry.after.length === 0) { + expandedMiddlewareList.push(entry); + } else { + expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); + } + }); + return expandedMiddlewareList; + }; + const getMiddlewareList = (debug = false) => { + const normalizedAbsoluteEntries = []; + const normalizedRelativeEntries = []; + const normalizedEntriesNameMap = {}; + absoluteEntries.forEach((entry) => { + const normalizedEntry = { + ...entry, + before: [], + after: [] + }; + if (normalizedEntry.name) + normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; + normalizedAbsoluteEntries.push(normalizedEntry); + }); + relativeEntries.forEach((entry) => { + const normalizedEntry = { + ...entry, + before: [], + after: [] + }; + if (normalizedEntry.name) + normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; + normalizedRelativeEntries.push(normalizedEntry); + }); + normalizedRelativeEntries.forEach((entry) => { + if (entry.toMiddleware) { + const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware]; + if (toMiddleware === void 0) { + if (debug) { + return; + } + throw new Error(`${entry.toMiddleware} is not found when adding ${entry.name || "anonymous"} middleware ${entry.relation} ${entry.toMiddleware}`); + } + if (entry.relation === "after") { + toMiddleware.after.push(entry); + } + if (entry.relation === "before") { + toMiddleware.before.push(entry); + } + } + }); + const mainChain = sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce((wholeList, expendedMiddlewareList) => { + wholeList.push(...expendedMiddlewareList); + return wholeList; + }, []); + return mainChain; + }; + const stack = { + add: (middleware, options = {}) => { + const { name, override } = options; + const entry = { + step: "initialize", + priority: "normal", + middleware, + ...options + }; + if (name) { + if (entriesNameSet.has(name)) { + if (!override) + throw new Error(`Duplicate middleware name '${name}'`); + const toOverrideIndex = absoluteEntries.findIndex((entry2) => entry2.name === name); + const toOverride = absoluteEntries[toOverrideIndex]; + if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) { + throw new Error(`"${name}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be overridden by same-name middleware with ${entry.priority} priority in ${entry.step} step.`); + } + absoluteEntries.splice(toOverrideIndex, 1); + } + entriesNameSet.add(name); + } + absoluteEntries.push(entry); + }, + addRelativeTo: (middleware, options) => { + const { name, override } = options; + const entry = { + middleware, + ...options + }; + if (name) { + if (entriesNameSet.has(name)) { + if (!override) + throw new Error(`Duplicate middleware name '${name}'`); + const toOverrideIndex = relativeEntries.findIndex((entry2) => entry2.name === name); + const toOverride = relativeEntries[toOverrideIndex]; + if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) { + throw new Error(`"${name}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden by same-name middleware ${entry.relation} "${entry.toMiddleware}" middleware.`); + } + relativeEntries.splice(toOverrideIndex, 1); + } + entriesNameSet.add(name); + } + relativeEntries.push(entry); + }, + clone: () => cloneTo((0, exports.constructStack)()), + use: (plugin) => { + plugin.applyToStack(stack); + }, + remove: (toRemove) => { + if (typeof toRemove === "string") + return removeByName(toRemove); + else + return removeByReference(toRemove); + }, + removeByTag: (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + const { tags, name } = entry; + if (tags && tags.includes(toRemove)) { + if (name) + entriesNameSet.delete(name); + isRemoved = true; + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }, + concat: (from) => { + const cloned = cloneTo((0, exports.constructStack)()); + cloned.use(from); + return cloned; + }, + applyToStack: cloneTo, + identify: () => { + return getMiddlewareList(true).map((mw) => { + return mw.name + ": " + (mw.tags || []).join(","); + }); + }, + resolve: (handler2, context) => { + for (const middleware of getMiddlewareList().map((entry) => entry.middleware).reverse()) { + handler2 = middleware(handler2, context); + } + return handler2; + } + }; + return stack; + }; + exports.constructStack = constructStack; + var stepWeights = { + initialize: 5, + serialize: 4, + build: 3, + finalizeRequest: 2, + deserialize: 1 + }; + var priorityWeights = { + high: 3, + normal: 2, + low: 1 + }; + } +}); + +// node_modules/@aws-sdk/middleware-stack/dist-cjs/index.js +var require_dist_cjs18 = __commonJS({ + "node_modules/@aws-sdk/middleware-stack/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_MiddlewareStack(), exports); + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/client.js +var require_client = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/client.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Client = void 0; + var middleware_stack_1 = require_dist_cjs18(); + var Client = class { + constructor(config) { + this.middlewareStack = (0, middleware_stack_1.constructStack)(); + this.config = config; + } + send(command, optionsOrCb, cb) { + const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0; + const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb; + const handler2 = command.resolveMiddleware(this.middlewareStack, this.config, options); + if (callback) { + handler2(command).then((result) => callback(null, result.output), (err) => callback(err)).catch(() => { + }); + } else { + return handler2(command).then((result) => result.output); + } + } + destroy() { + if (this.config.requestHandler.destroy) + this.config.requestHandler.destroy(); + } + }; + exports.Client = Client; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/command.js +var require_command = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/command.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Command = void 0; + var middleware_stack_1 = require_dist_cjs18(); + var Command = class { + constructor() { + this.middlewareStack = (0, middleware_stack_1.constructStack)(); + } + }; + exports.Command = Command; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/constants.js +var require_constants5 = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/constants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SENSITIVE_STRING = void 0; + exports.SENSITIVE_STRING = "***SensitiveInformation***"; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/parse-utils.js +var require_parse_utils = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/parse-utils.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.logger = exports.strictParseByte = exports.strictParseShort = exports.strictParseInt32 = exports.strictParseInt = exports.strictParseLong = exports.limitedParseFloat32 = exports.limitedParseFloat = exports.handleFloat = exports.limitedParseDouble = exports.strictParseFloat32 = exports.strictParseFloat = exports.strictParseDouble = exports.expectUnion = exports.expectString = exports.expectObject = exports.expectNonNull = exports.expectByte = exports.expectShort = exports.expectInt32 = exports.expectInt = exports.expectLong = exports.expectFloat32 = exports.expectNumber = exports.expectBoolean = exports.parseBoolean = void 0; + var parseBoolean = (value) => { + switch (value) { + case "true": + return true; + case "false": + return false; + default: + throw new Error(`Unable to parse boolean value "${value}"`); + } + }; + exports.parseBoolean = parseBoolean; + var expectBoolean = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "number") { + if (value === 0 || value === 1) { + exports.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + } + if (value === 0) { + return false; + } + if (value === 1) { + return true; + } + } + if (typeof value === "string") { + const lower = value.toLowerCase(); + if (lower === "false" || lower === "true") { + exports.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + } + if (lower === "false") { + return false; + } + if (lower === "true") { + return true; + } + } + if (typeof value === "boolean") { + return value; + } + throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`); + }; + exports.expectBoolean = expectBoolean; + var expectNumber = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "string") { + const parsed = parseFloat(value); + if (!Number.isNaN(parsed)) { + if (String(parsed) !== String(value)) { + exports.logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`)); + } + return parsed; + } + } + if (typeof value === "number") { + return value; + } + throw new TypeError(`Expected number, got ${typeof value}: ${value}`); + }; + exports.expectNumber = expectNumber; + var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); + var expectFloat32 = (value) => { + const expected = (0, exports.expectNumber)(value); + if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { + if (Math.abs(expected) > MAX_FLOAT) { + throw new TypeError(`Expected 32-bit float, got ${value}`); + } + } + return expected; + }; + exports.expectFloat32 = expectFloat32; + var expectLong = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (Number.isInteger(value) && !Number.isNaN(value)) { + return value; + } + throw new TypeError(`Expected integer, got ${typeof value}: ${value}`); + }; + exports.expectLong = expectLong; + exports.expectInt = exports.expectLong; + var expectInt32 = (value) => expectSizedInt(value, 32); + exports.expectInt32 = expectInt32; + var expectShort = (value) => expectSizedInt(value, 16); + exports.expectShort = expectShort; + var expectByte = (value) => expectSizedInt(value, 8); + exports.expectByte = expectByte; + var expectSizedInt = (value, size) => { + const expected = (0, exports.expectLong)(value); + if (expected !== void 0 && castInt(expected, size) !== expected) { + throw new TypeError(`Expected ${size}-bit integer, got ${value}`); + } + return expected; + }; + var castInt = (value, size) => { + switch (size) { + case 32: + return Int32Array.of(value)[0]; + case 16: + return Int16Array.of(value)[0]; + case 8: + return Int8Array.of(value)[0]; + } + }; + var expectNonNull = (value, location) => { + if (value === null || value === void 0) { + if (location) { + throw new TypeError(`Expected a non-null value for ${location}`); + } + throw new TypeError("Expected a non-null value"); + } + return value; + }; + exports.expectNonNull = expectNonNull; + var expectObject = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "object" && !Array.isArray(value)) { + return value; + } + const receivedType = Array.isArray(value) ? "array" : typeof value; + throw new TypeError(`Expected object, got ${receivedType}: ${value}`); + }; + exports.expectObject = expectObject; + var expectString = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "string") { + return value; + } + if (["boolean", "number", "bigint"].includes(typeof value)) { + exports.logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`)); + return String(value); + } + throw new TypeError(`Expected string, got ${typeof value}: ${value}`); + }; + exports.expectString = expectString; + var expectUnion = (value) => { + if (value === null || value === void 0) { + return void 0; + } + const asObject = (0, exports.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.`); + } + if (setKeys.length > 1) { + throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); + } + return asObject; + }; + exports.expectUnion = expectUnion; + var strictParseDouble = (value) => { + if (typeof value == "string") { + return (0, exports.expectNumber)(parseNumber(value)); + } + return (0, exports.expectNumber)(value); + }; + exports.strictParseDouble = strictParseDouble; + exports.strictParseFloat = exports.strictParseDouble; + var strictParseFloat32 = (value) => { + if (typeof value == "string") { + return (0, exports.expectFloat32)(parseNumber(value)); + } + return (0, exports.expectFloat32)(value); + }; + exports.strictParseFloat32 = strictParseFloat32; + var NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g; + var parseNumber = (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) => { + if (typeof value == "string") { + return parseFloatString(value); + } + return (0, exports.expectNumber)(value); + }; + exports.limitedParseDouble = limitedParseDouble; + exports.handleFloat = exports.limitedParseDouble; + exports.limitedParseFloat = exports.limitedParseDouble; + var limitedParseFloat32 = (value) => { + if (typeof value == "string") { + return parseFloatString(value); + } + return (0, exports.expectFloat32)(value); + }; + exports.limitedParseFloat32 = limitedParseFloat32; + var parseFloatString = (value) => { + switch (value) { + case "NaN": + return NaN; + case "Infinity": + return Infinity; + case "-Infinity": + return -Infinity; + default: + throw new Error(`Unable to parse float value: ${value}`); + } + }; + var strictParseLong = (value) => { + if (typeof value === "string") { + return (0, exports.expectLong)(parseNumber(value)); + } + return (0, exports.expectLong)(value); + }; + exports.strictParseLong = strictParseLong; + exports.strictParseInt = exports.strictParseLong; + var strictParseInt32 = (value) => { + if (typeof value === "string") { + return (0, exports.expectInt32)(parseNumber(value)); + } + return (0, exports.expectInt32)(value); + }; + exports.strictParseInt32 = strictParseInt32; + var strictParseShort = (value) => { + if (typeof value === "string") { + return (0, exports.expectShort)(parseNumber(value)); + } + return (0, exports.expectShort)(value); + }; + exports.strictParseShort = strictParseShort; + var strictParseByte = (value) => { + if (typeof value === "string") { + return (0, exports.expectByte)(parseNumber(value)); + } + return (0, exports.expectByte)(value); + }; + exports.strictParseByte = strictParseByte; + var stackTraceWarning = (message) => { + return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n"); + }; + exports.logger = { + warn: console.warn + }; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/date-utils.js +var require_date_utils = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/date-utils.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.parseEpochTimestamp = exports.parseRfc7231DateTime = exports.parseRfc3339DateTime = exports.dateToUtcString = void 0; + var parse_utils_1 = require_parse_utils(); + var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; + var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; + function dateToUtcString(date) { + const year = date.getUTCFullYear(); + const month = date.getUTCMonth(); + const dayOfWeek = date.getUTCDay(); + const dayOfMonthInt = date.getUTCDate(); + const hoursInt = date.getUTCHours(); + const minutesInt = date.getUTCMinutes(); + const secondsInt = date.getUTCSeconds(); + const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`; + const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`; + const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`; + const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; + return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; + } + exports.dateToUtcString = dateToUtcString; + var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/); + var parseRfc3339DateTime = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== "string") { + throw new TypeError("RFC-3339 date-times must be expressed as strings"); + } + const match = RFC3339.exec(value); + if (!match) { + 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 month = parseDateValue(monthStr, "month", 1, 12); + const day = parseDateValue(dayStr, "day", 1, 31); + return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); + }; + exports.parseRfc3339DateTime = parseRfc3339DateTime; + var 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) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== "string") { + throw new TypeError("RFC-7231 date-times must be expressed as strings"); + } + 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 }); + } + 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 + })); + } + 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 }); + } + throw new TypeError("Invalid RFC-7231 date-time value"); + }; + exports.parseRfc7231DateTime = parseRfc7231DateTime; + var parseEpochTimestamp = (value) => { + if (value === null || value === void 0) { + return void 0; + } + let valueAsDouble; + if (typeof value === "number") { + valueAsDouble = value; + } else if (typeof value === "string") { + valueAsDouble = (0, parse_utils_1.strictParseDouble)(value); + } else { + throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation"); + } + if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { + throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics"); + } + return new Date(Math.round(valueAsDouble * 1e3)); + }; + exports.parseEpochTimestamp = parseEpochTimestamp; + var buildDate = (year, month, day, time) => { + 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) => { + const thisYear = new Date().getUTCFullYear(); + const valueInThisCentury = Math.floor(thisYear / 100) * 100 + (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(value)); + if (valueInThisCentury < thisYear) { + return valueInThisCentury + 100; + } + return valueInThisCentury; + }; + var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3; + var adjustRfc850Year = (input) => { + if (input.getTime() - 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 input; + }; + var parseMonthByShortName = (value) => { + const monthIdx = MONTHS.indexOf(value); + if (monthIdx < 0) { + throw new TypeError(`Invalid month: ${value}`); + } + return monthIdx + 1; + }; + var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; + var validateDayOfMonth = (year, month, day) => { + let maxDays = DAYS_IN_MONTH[month]; + if (month === 1 && isLeapYear(year)) { + maxDays = 29; + } + if (day > maxDays) { + throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`); + } + }; + var isLeapYear = (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)); + if (dateVal < lower || dateVal > upper) { + throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`); + } + return dateVal; + }; + var parseMilliseconds = (value) => { + if (value === null || value === void 0) { + return 0; + } + return (0, parse_utils_1.strictParseFloat32)("0." + value) * 1e3; + }; + var stripLeadingZeroes = (value) => { + let idx = 0; + while (idx < value.length - 1 && value.charAt(idx) === "0") { + idx++; + } + if (idx === 0) { + return value; + } + return value.slice(idx); + }; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/exceptions.js +var require_exceptions = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/exceptions.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.decorateServiceException = exports.ServiceException = void 0; + var ServiceException = class extends Error { + constructor(options) { + super(options.message); + Object.setPrototypeOf(this, ServiceException.prototype); + this.name = options.name; + this.$fault = options.$fault; + this.$metadata = options.$metadata; + } + }; + exports.ServiceException = ServiceException; + var decorateServiceException = (exception, additions = {}) => { + Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => { + if (exception[k] == void 0 || exception[k] === "") { + exception[k] = v; + } + }); + const message = exception.message || exception.Message || "UnknownError"; + exception.message = message; + delete exception.Message; + return exception; + }; + exports.decorateServiceException = decorateServiceException; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js +var require_default_error_handler = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.throwDefaultError = void 0; + var exceptions_1 = require_exceptions(); + var throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => { + const $metadata = deserializeMetadata(output); + const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0; + const response = new exceptionCtor({ + name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", + $fault: "client", + $metadata + }); + throw (0, exceptions_1.decorateServiceException)(response, parsedBody); + }; + exports.throwDefaultError = throwDefaultError; + var deserializeMetadata = (output) => { + var _a; + return { + httpStatusCode: output.statusCode, + requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"] + }; + }; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/defaults-mode.js +var require_defaults_mode = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/defaults-mode.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.loadConfigsForDefaultMode = void 0; + var loadConfigsForDefaultMode = (mode) => { + switch (mode) { + 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 {}; + } + }; + exports.loadConfigsForDefaultMode = loadConfigsForDefaultMode; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js +var require_emitWarningIfUnsupportedVersion = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.emitWarningIfUnsupportedVersion = void 0; + var warningEmitted = false; + var emitWarningIfUnsupportedVersion = (version) => { + if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 14) { + warningEmitted = true; + process.emitWarning(`The AWS SDK for JavaScript (v3) will +no longer support Node.js ${version} on November 1, 2022. + +To continue receiving updates to AWS services, bug fixes, and security +updates please upgrade to Node.js 14.x or later. + +For details, please refer our blog post: https://a.co/48dbdYz`, `NodeDeprecationWarning`); + } + }; + exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/extended-encode-uri-component.js +var require_extended_encode_uri_component = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/extended-encode-uri-component.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.extendedEncodeURIComponent = void 0; + function extendedEncodeURIComponent(str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function(c) { + return "%" + c.charCodeAt(0).toString(16).toUpperCase(); + }); + } + exports.extendedEncodeURIComponent = extendedEncodeURIComponent; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/get-array-if-single-item.js +var require_get_array_if_single_item = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/get-array-if-single-item.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getArrayIfSingleItem = void 0; + var getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; + exports.getArrayIfSingleItem = getArrayIfSingleItem; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/get-value-from-text-node.js +var require_get_value_from_text_node = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/get-value-from-text-node.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getValueFromTextNode = void 0; + var getValueFromTextNode = (obj) => { + const textNodeName = "#text"; + for (const key in obj) { + if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) { + obj[key] = obj[key][textNodeName]; + } else if (typeof obj[key] === "object" && obj[key] !== null) { + obj[key] = (0, exports.getValueFromTextNode)(obj[key]); + } + } + return obj; + }; + exports.getValueFromTextNode = getValueFromTextNode; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/lazy-json.js +var require_lazy_json = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/lazy-json.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.LazyJsonString = exports.StringWrapper = void 0; + var StringWrapper = function() { + const Class = Object.getPrototypeOf(this).constructor; + const Constructor = Function.bind.apply(String, [null, ...arguments]); + const instance = new Constructor(); + Object.setPrototypeOf(instance, Class.prototype); + return instance; + }; + exports.StringWrapper = StringWrapper; + exports.StringWrapper.prototype = Object.create(String.prototype, { + constructor: { + value: exports.StringWrapper, + enumerable: false, + writable: true, + configurable: true + } + }); + Object.setPrototypeOf(exports.StringWrapper, String); + var LazyJsonString = class extends exports.StringWrapper { + deserializeJSON() { + return JSON.parse(super.toString()); + } + toJSON() { + return super.toString(); + } + static fromObject(object) { + if (object instanceof LazyJsonString) { + return object; + } else if (object instanceof String || typeof object === "string") { + return new LazyJsonString(object); + } + return new LazyJsonString(JSON.stringify(object)); + } + }; + exports.LazyJsonString = LazyJsonString; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/object-mapping.js +var require_object_mapping = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/object-mapping.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.convertMap = exports.map = void 0; + function map(arg0, arg1, arg2) { + let target; + let filter; + let instructions; + if (typeof arg1 === "undefined" && typeof arg2 === "undefined") { + target = {}; + instructions = arg0; + } else { + target = arg0; + if (typeof arg1 === "function") { + filter = arg1; + instructions = arg2; + return mapWithFilter(target, filter, instructions); + } else { + instructions = arg1; + } + } + for (const key of Object.keys(instructions)) { + if (!Array.isArray(instructions[key])) { + target[key] = instructions[key]; + continue; + } + let [filter2, value] = instructions[key]; + if (typeof value === "function") { + let _value; + const defaultFilterPassed = filter2 === void 0 && (_value = value()) != null; + const customFilterPassed = typeof filter2 === "function" && !!filter2(void 0) || typeof filter2 !== "function" && !!filter2; + if (defaultFilterPassed) { + target[key] = _value; + } else if (customFilterPassed) { + target[key] = value(); + } + } else { + const defaultFilterPassed = filter2 === void 0 && value != null; + const customFilterPassed = typeof filter2 === "function" && !!filter2(value) || typeof filter2 !== "function" && !!filter2; + if (defaultFilterPassed || customFilterPassed) { + target[key] = value; + } + } + } + return target; + } + exports.map = map; + var convertMap = (target) => { + const output = {}; + for (const [k, v] of Object.entries(target || {})) { + output[k] = [, v]; + } + return output; + }; + exports.convertMap = convertMap; + 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; + }, {})); + }; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/resolve-path.js +var require_resolve_path = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/resolve-path.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolvedPath = void 0; + var extended_encode_uri_component_1 = require_extended_encode_uri_component(); + var resolvedPath = (resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { + 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)); + } else { + throw new Error("No value provided for input HTTP label: " + memberName + "."); + } + return resolvedPath2; + }; + exports.resolvedPath = resolvedPath; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/ser-utils.js +var require_ser_utils = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/ser-utils.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.serializeFloat = void 0; + var serializeFloat = (value) => { + if (value !== value) { + return "NaN"; + } + switch (value) { + case Infinity: + return "Infinity"; + case -Infinity: + return "-Infinity"; + default: + return value; + } + }; + exports.serializeFloat = serializeFloat; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/split-every.js +var require_split_every = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/split-every.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.splitEvery = void 0; + function splitEvery(value, delimiter, numDelimiters) { + if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { + throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); + } + const segments = value.split(delimiter); + if (numDelimiters === 1) { + return segments; + } + const compoundSegments = []; + let currentSegment = ""; + for (let i = 0; i < segments.length; i++) { + if (currentSegment === "") { + currentSegment = segments[i]; + } else { + currentSegment += delimiter + segments[i]; + } + if ((i + 1) % numDelimiters === 0) { + compoundSegments.push(currentSegment); + currentSegment = ""; + } + } + if (currentSegment !== "") { + compoundSegments.push(currentSegment); + } + return compoundSegments; + } + exports.splitEvery = splitEvery; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/index.js +var require_dist_cjs19 = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_client(), exports); + tslib_1.__exportStar(require_command(), exports); + tslib_1.__exportStar(require_constants5(), exports); + tslib_1.__exportStar(require_date_utils(), exports); + tslib_1.__exportStar(require_default_error_handler(), exports); + tslib_1.__exportStar(require_defaults_mode(), exports); + tslib_1.__exportStar(require_emitWarningIfUnsupportedVersion(), exports); + tslib_1.__exportStar(require_exceptions(), exports); + tslib_1.__exportStar(require_extended_encode_uri_component(), exports); + tslib_1.__exportStar(require_get_array_if_single_item(), exports); + tslib_1.__exportStar(require_get_value_from_text_node(), exports); + tslib_1.__exportStar(require_lazy_json(), exports); + tslib_1.__exportStar(require_object_mapping(), exports); + tslib_1.__exportStar(require_parse_utils(), exports); + tslib_1.__exportStar(require_resolve_path(), exports); + tslib_1.__exportStar(require_ser_utils(), exports); + tslib_1.__exportStar(require_split_every(), exports); + } +}); + +// node_modules/@aws-sdk/client-codedeploy/package.json +var require_package = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/package.json"(exports, module2) { + module2.exports = { + name: "@aws-sdk/client-codedeploy", + description: "AWS SDK for JavaScript Codedeploy Client for Node.js, Browser and React Native", + version: "3.186.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" + }, + main: "./dist-cjs/index.js", + types: "./dist-types/index.d.ts", + module: "./dist-es/index.js", + sideEffects: false, + dependencies: { + "@aws-crypto/sha256-browser": "2.0.0", + "@aws-crypto/sha256-js": "2.0.0", + "@aws-sdk/client-sts": "3.186.0", + "@aws-sdk/config-resolver": "3.186.0", + "@aws-sdk/credential-provider-node": "3.186.0", + "@aws-sdk/fetch-http-handler": "3.186.0", + "@aws-sdk/hash-node": "3.186.0", + "@aws-sdk/invalid-dependency": "3.186.0", + "@aws-sdk/middleware-content-length": "3.186.0", + "@aws-sdk/middleware-host-header": "3.186.0", + "@aws-sdk/middleware-logger": "3.186.0", + "@aws-sdk/middleware-recursion-detection": "3.186.0", + "@aws-sdk/middleware-retry": "3.186.0", + "@aws-sdk/middleware-serde": "3.186.0", + "@aws-sdk/middleware-signing": "3.186.0", + "@aws-sdk/middleware-stack": "3.186.0", + "@aws-sdk/middleware-user-agent": "3.186.0", + "@aws-sdk/node-config-provider": "3.186.0", + "@aws-sdk/node-http-handler": "3.186.0", + "@aws-sdk/protocol-http": "3.186.0", + "@aws-sdk/smithy-client": "3.186.0", + "@aws-sdk/types": "3.186.0", + "@aws-sdk/url-parser": "3.186.0", + "@aws-sdk/util-base64-browser": "3.186.0", + "@aws-sdk/util-base64-node": "3.186.0", + "@aws-sdk/util-body-length-browser": "3.186.0", + "@aws-sdk/util-body-length-node": "3.186.0", + "@aws-sdk/util-defaults-mode-browser": "3.186.0", + "@aws-sdk/util-defaults-mode-node": "3.186.0", + "@aws-sdk/util-user-agent-browser": "3.186.0", + "@aws-sdk/util-user-agent-node": "3.186.0", + "@aws-sdk/util-utf8-browser": "3.186.0", + "@aws-sdk/util-utf8-node": "3.186.0", + "@aws-sdk/util-waiter": "3.186.0", + tslib: "^2.3.1" + }, + devDependencies: { + "@aws-sdk/service-client-documentation-generator": "3.186.0", + "@tsconfig/recommended": "1.0.1", + "@types/node": "^12.7.5", + concurrently: "7.0.0", + "downlevel-dts": "0.10.1", + rimraf: "3.0.2", + typedoc: "0.19.2", + typescript: "~4.6.2" + }, + overrides: { + typedoc: { + typescript: "~4.6.2" + } + }, + engines: { + node: ">=12.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-codedeploy", + repository: { + type: "git", + url: "https://github.com/aws/aws-sdk-js-v3.git", + directory: "clients/client-codedeploy" + } + }; + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js +var require_deserializerMiddleware = __commonJS({ + "node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.deserializerMiddleware = void 0; + var deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { + const { response } = await next(args); + try { + const parsed = await deserializer(response, options); + return { + response, + output: parsed + }; + } catch (error) { + Object.defineProperty(error, "$response", { + value: response + }); + throw error; + } + }; + exports.deserializerMiddleware = deserializerMiddleware; + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/serializerMiddleware.js +var require_serializerMiddleware = __commonJS({ + "node_modules/@aws-sdk/middleware-serde/dist-cjs/serializerMiddleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.serializerMiddleware = void 0; + var serializerMiddleware = (options, serializer) => (next, context) => async (args) => { + 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 request = await serializer(args.input, { ...options, endpoint }); + return next({ + ...args, + request + }); + }; + exports.serializerMiddleware = serializerMiddleware; + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/serdePlugin.js +var require_serdePlugin = __commonJS({ + "node_modules/@aws-sdk/middleware-serde/dist-cjs/serdePlugin.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSerdePlugin = exports.serializerMiddlewareOption = exports.deserializerMiddlewareOption = void 0; + var deserializerMiddleware_1 = require_deserializerMiddleware(); + var serializerMiddleware_1 = require_serializerMiddleware(); + exports.deserializerMiddlewareOption = { + name: "deserializerMiddleware", + step: "deserialize", + tags: ["DESERIALIZER"], + override: true + }; + exports.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), exports.deserializerMiddlewareOption); + commandStack.add((0, serializerMiddleware_1.serializerMiddleware)(config, serializer), exports.serializerMiddlewareOption); + } + }; + } + exports.getSerdePlugin = getSerdePlugin; + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/index.js +var require_dist_cjs20 = __commonJS({ + "node_modules/@aws-sdk/middleware-serde/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_deserializerMiddleware(), exports); + tslib_1.__exportStar(require_serdePlugin(), exports); + tslib_1.__exportStar(require_serializerMiddleware(), exports); + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +var require_STSServiceException = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.STSServiceException = void 0; + var smithy_client_1 = require_dist_cjs19(); + var STSServiceException = class extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, STSServiceException.prototype); + } + }; + exports.STSServiceException = STSServiceException; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js +var require_models_0 = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetSessionTokenResponseFilterSensitiveLog = exports.GetSessionTokenRequestFilterSensitiveLog = exports.GetFederationTokenResponseFilterSensitiveLog = exports.FederatedUserFilterSensitiveLog = exports.GetFederationTokenRequestFilterSensitiveLog = exports.GetCallerIdentityResponseFilterSensitiveLog = exports.GetCallerIdentityRequestFilterSensitiveLog = exports.GetAccessKeyInfoResponseFilterSensitiveLog = exports.GetAccessKeyInfoRequestFilterSensitiveLog = exports.DecodeAuthorizationMessageResponseFilterSensitiveLog = exports.DecodeAuthorizationMessageRequestFilterSensitiveLog = exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = exports.AssumeRoleResponseFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.AssumeRoleRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.PolicyDescriptorTypeFilterSensitiveLog = exports.AssumedRoleUserFilterSensitiveLog = exports.InvalidAuthorizationMessageException = exports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = void 0; + var STSServiceException_1 = require_STSServiceException(); + var ExpiredTokenException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "ExpiredTokenException", + $fault: "client", + ...opts + }); + this.name = "ExpiredTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ExpiredTokenException.prototype); + } + }; + exports.ExpiredTokenException = ExpiredTokenException; + var MalformedPolicyDocumentException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "MalformedPolicyDocumentException", + $fault: "client", + ...opts + }); + this.name = "MalformedPolicyDocumentException"; + this.$fault = "client"; + Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); + } + }; + exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; + var PackedPolicyTooLargeException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "PackedPolicyTooLargeException", + $fault: "client", + ...opts + }); + this.name = "PackedPolicyTooLargeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); + } + }; + exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; + var RegionDisabledException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "RegionDisabledException", + $fault: "client", + ...opts + }); + this.name = "RegionDisabledException"; + this.$fault = "client"; + Object.setPrototypeOf(this, RegionDisabledException.prototype); + } + }; + exports.RegionDisabledException = RegionDisabledException; + var IDPRejectedClaimException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "IDPRejectedClaimException", + $fault: "client", + ...opts + }); + this.name = "IDPRejectedClaimException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); + } + }; + exports.IDPRejectedClaimException = IDPRejectedClaimException; + var InvalidIdentityTokenException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "InvalidIdentityTokenException", + $fault: "client", + ...opts + }); + this.name = "InvalidIdentityTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); + } + }; + exports.InvalidIdentityTokenException = InvalidIdentityTokenException; + var IDPCommunicationErrorException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "IDPCommunicationErrorException", + $fault: "client", + ...opts + }); + this.name = "IDPCommunicationErrorException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); + } + }; + exports.IDPCommunicationErrorException = IDPCommunicationErrorException; + var InvalidAuthorizationMessageException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "InvalidAuthorizationMessageException", + $fault: "client", + ...opts + }); + this.name = "InvalidAuthorizationMessageException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); + } + }; + exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; + var AssumedRoleUserFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AssumedRoleUserFilterSensitiveLog = AssumedRoleUserFilterSensitiveLog; + var PolicyDescriptorTypeFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.PolicyDescriptorTypeFilterSensitiveLog = PolicyDescriptorTypeFilterSensitiveLog; + var TagFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TagFilterSensitiveLog = TagFilterSensitiveLog; + var AssumeRoleRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AssumeRoleRequestFilterSensitiveLog = AssumeRoleRequestFilterSensitiveLog; + var CredentialsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog; + var AssumeRoleResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog; + var AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = AssumeRoleWithSAMLRequestFilterSensitiveLog; + var AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = AssumeRoleWithSAMLResponseFilterSensitiveLog; + var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog; + var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog; + var DecodeAuthorizationMessageRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DecodeAuthorizationMessageRequestFilterSensitiveLog = DecodeAuthorizationMessageRequestFilterSensitiveLog; + var DecodeAuthorizationMessageResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DecodeAuthorizationMessageResponseFilterSensitiveLog = DecodeAuthorizationMessageResponseFilterSensitiveLog; + var GetAccessKeyInfoRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetAccessKeyInfoRequestFilterSensitiveLog = GetAccessKeyInfoRequestFilterSensitiveLog; + var GetAccessKeyInfoResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetAccessKeyInfoResponseFilterSensitiveLog = GetAccessKeyInfoResponseFilterSensitiveLog; + var GetCallerIdentityRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetCallerIdentityRequestFilterSensitiveLog = GetCallerIdentityRequestFilterSensitiveLog; + var GetCallerIdentityResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetCallerIdentityResponseFilterSensitiveLog = GetCallerIdentityResponseFilterSensitiveLog; + var GetFederationTokenRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetFederationTokenRequestFilterSensitiveLog = GetFederationTokenRequestFilterSensitiveLog; + var FederatedUserFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.FederatedUserFilterSensitiveLog = FederatedUserFilterSensitiveLog; + var GetFederationTokenResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog; + var GetSessionTokenRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetSessionTokenRequestFilterSensitiveLog = GetSessionTokenRequestFilterSensitiveLog; + var GetSessionTokenResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetSessionTokenResponseFilterSensitiveLog = GetSessionTokenResponseFilterSensitiveLog; + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/entities.json +var require_entities = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/entities.json"(exports, module2) { + module2.exports = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", ac: "\u223E", acd: "\u223F", acE: "\u223E\u0333", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", Acy: "\u0410", acy: "\u0430", AElig: "\xC6", aelig: "\xE6", af: "\u2061", Afr: "\u{1D504}", afr: "\u{1D51E}", Agrave: "\xC0", agrave: "\xE0", alefsym: "\u2135", aleph: "\u2135", Alpha: "\u0391", alpha: "\u03B1", Amacr: "\u0100", amacr: "\u0101", amalg: "\u2A3F", amp: "&", AMP: "&", andand: "\u2A55", And: "\u2A53", and: "\u2227", andd: "\u2A5C", andslope: "\u2A58", andv: "\u2A5A", ang: "\u2220", ange: "\u29A4", angle: "\u2220", angmsdaa: "\u29A8", angmsdab: "\u29A9", angmsdac: "\u29AA", angmsdad: "\u29AB", angmsdae: "\u29AC", angmsdaf: "\u29AD", angmsdag: "\u29AE", angmsdah: "\u29AF", angmsd: "\u2221", angrt: "\u221F", angrtvb: "\u22BE", angrtvbd: "\u299D", angsph: "\u2222", angst: "\xC5", angzarr: "\u237C", Aogon: "\u0104", aogon: "\u0105", Aopf: "\u{1D538}", aopf: "\u{1D552}", apacir: "\u2A6F", ap: "\u2248", apE: "\u2A70", ape: "\u224A", apid: "\u224B", apos: "'", ApplyFunction: "\u2061", approx: "\u2248", approxeq: "\u224A", Aring: "\xC5", aring: "\xE5", Ascr: "\u{1D49C}", ascr: "\u{1D4B6}", Assign: "\u2254", ast: "*", asymp: "\u2248", asympeq: "\u224D", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", awconint: "\u2233", awint: "\u2A11", backcong: "\u224C", backepsilon: "\u03F6", backprime: "\u2035", backsim: "\u223D", backsimeq: "\u22CD", Backslash: "\u2216", Barv: "\u2AE7", barvee: "\u22BD", barwed: "\u2305", Barwed: "\u2306", barwedge: "\u2305", bbrk: "\u23B5", bbrktbrk: "\u23B6", bcong: "\u224C", Bcy: "\u0411", bcy: "\u0431", bdquo: "\u201E", becaus: "\u2235", because: "\u2235", Because: "\u2235", bemptyv: "\u29B0", bepsi: "\u03F6", bernou: "\u212C", Bernoullis: "\u212C", Beta: "\u0392", beta: "\u03B2", beth: "\u2136", between: "\u226C", Bfr: "\u{1D505}", bfr: "\u{1D51F}", bigcap: "\u22C2", bigcirc: "\u25EF", bigcup: "\u22C3", bigodot: "\u2A00", bigoplus: "\u2A01", bigotimes: "\u2A02", bigsqcup: "\u2A06", bigstar: "\u2605", bigtriangledown: "\u25BD", bigtriangleup: "\u25B3", biguplus: "\u2A04", bigvee: "\u22C1", bigwedge: "\u22C0", bkarow: "\u290D", blacklozenge: "\u29EB", blacksquare: "\u25AA", blacktriangle: "\u25B4", blacktriangledown: "\u25BE", blacktriangleleft: "\u25C2", blacktriangleright: "\u25B8", blank: "\u2423", blk12: "\u2592", blk14: "\u2591", blk34: "\u2593", block: "\u2588", bne: "=\u20E5", bnequiv: "\u2261\u20E5", bNot: "\u2AED", bnot: "\u2310", Bopf: "\u{1D539}", bopf: "\u{1D553}", bot: "\u22A5", bottom: "\u22A5", bowtie: "\u22C8", boxbox: "\u29C9", boxdl: "\u2510", boxdL: "\u2555", boxDl: "\u2556", boxDL: "\u2557", boxdr: "\u250C", boxdR: "\u2552", boxDr: "\u2553", boxDR: "\u2554", boxh: "\u2500", boxH: "\u2550", boxhd: "\u252C", boxHd: "\u2564", boxhD: "\u2565", boxHD: "\u2566", boxhu: "\u2534", boxHu: "\u2567", boxhU: "\u2568", boxHU: "\u2569", boxminus: "\u229F", boxplus: "\u229E", boxtimes: "\u22A0", boxul: "\u2518", boxuL: "\u255B", boxUl: "\u255C", boxUL: "\u255D", boxur: "\u2514", boxuR: "\u2558", boxUr: "\u2559", boxUR: "\u255A", boxv: "\u2502", boxV: "\u2551", boxvh: "\u253C", boxvH: "\u256A", boxVh: "\u256B", boxVH: "\u256C", boxvl: "\u2524", boxvL: "\u2561", boxVl: "\u2562", boxVL: "\u2563", boxvr: "\u251C", boxvR: "\u255E", boxVr: "\u255F", boxVR: "\u2560", bprime: "\u2035", breve: "\u02D8", Breve: "\u02D8", brvbar: "\xA6", bscr: "\u{1D4B7}", Bscr: "\u212C", bsemi: "\u204F", bsim: "\u223D", bsime: "\u22CD", bsolb: "\u29C5", bsol: "\\", bsolhsub: "\u27C8", bull: "\u2022", bullet: "\u2022", bump: "\u224E", bumpE: "\u2AAE", bumpe: "\u224F", Bumpeq: "\u224E", bumpeq: "\u224F", Cacute: "\u0106", cacute: "\u0107", capand: "\u2A44", capbrcup: "\u2A49", capcap: "\u2A4B", cap: "\u2229", Cap: "\u22D2", capcup: "\u2A47", capdot: "\u2A40", CapitalDifferentialD: "\u2145", caps: "\u2229\uFE00", caret: "\u2041", caron: "\u02C7", Cayleys: "\u212D", ccaps: "\u2A4D", Ccaron: "\u010C", ccaron: "\u010D", Ccedil: "\xC7", ccedil: "\xE7", Ccirc: "\u0108", ccirc: "\u0109", Cconint: "\u2230", ccups: "\u2A4C", ccupssm: "\u2A50", Cdot: "\u010A", cdot: "\u010B", cedil: "\xB8", Cedilla: "\xB8", cemptyv: "\u29B2", cent: "\xA2", centerdot: "\xB7", CenterDot: "\xB7", cfr: "\u{1D520}", Cfr: "\u212D", CHcy: "\u0427", chcy: "\u0447", check: "\u2713", checkmark: "\u2713", Chi: "\u03A7", chi: "\u03C7", circ: "\u02C6", circeq: "\u2257", circlearrowleft: "\u21BA", circlearrowright: "\u21BB", circledast: "\u229B", circledcirc: "\u229A", circleddash: "\u229D", CircleDot: "\u2299", circledR: "\xAE", circledS: "\u24C8", CircleMinus: "\u2296", CirclePlus: "\u2295", CircleTimes: "\u2297", cir: "\u25CB", cirE: "\u29C3", cire: "\u2257", cirfnint: "\u2A10", cirmid: "\u2AEF", cirscir: "\u29C2", ClockwiseContourIntegral: "\u2232", CloseCurlyDoubleQuote: "\u201D", CloseCurlyQuote: "\u2019", clubs: "\u2663", clubsuit: "\u2663", colon: ":", Colon: "\u2237", Colone: "\u2A74", colone: "\u2254", coloneq: "\u2254", comma: ",", commat: "@", comp: "\u2201", compfn: "\u2218", complement: "\u2201", complexes: "\u2102", cong: "\u2245", congdot: "\u2A6D", Congruent: "\u2261", conint: "\u222E", Conint: "\u222F", ContourIntegral: "\u222E", copf: "\u{1D554}", Copf: "\u2102", coprod: "\u2210", Coproduct: "\u2210", copy: "\xA9", COPY: "\xA9", copysr: "\u2117", CounterClockwiseContourIntegral: "\u2233", crarr: "\u21B5", cross: "\u2717", Cross: "\u2A2F", Cscr: "\u{1D49E}", cscr: "\u{1D4B8}", csub: "\u2ACF", csube: "\u2AD1", csup: "\u2AD0", csupe: "\u2AD2", ctdot: "\u22EF", cudarrl: "\u2938", cudarrr: "\u2935", cuepr: "\u22DE", cuesc: "\u22DF", cularr: "\u21B6", cularrp: "\u293D", cupbrcap: "\u2A48", cupcap: "\u2A46", CupCap: "\u224D", cup: "\u222A", Cup: "\u22D3", cupcup: "\u2A4A", cupdot: "\u228D", cupor: "\u2A45", cups: "\u222A\uFE00", curarr: "\u21B7", curarrm: "\u293C", curlyeqprec: "\u22DE", curlyeqsucc: "\u22DF", curlyvee: "\u22CE", curlywedge: "\u22CF", curren: "\xA4", curvearrowleft: "\u21B6", curvearrowright: "\u21B7", cuvee: "\u22CE", cuwed: "\u22CF", cwconint: "\u2232", cwint: "\u2231", cylcty: "\u232D", dagger: "\u2020", Dagger: "\u2021", daleth: "\u2138", darr: "\u2193", Darr: "\u21A1", dArr: "\u21D3", dash: "\u2010", Dashv: "\u2AE4", dashv: "\u22A3", dbkarow: "\u290F", dblac: "\u02DD", Dcaron: "\u010E", dcaron: "\u010F", Dcy: "\u0414", dcy: "\u0434", ddagger: "\u2021", ddarr: "\u21CA", DD: "\u2145", dd: "\u2146", DDotrahd: "\u2911", ddotseq: "\u2A77", deg: "\xB0", Del: "\u2207", Delta: "\u0394", delta: "\u03B4", demptyv: "\u29B1", dfisht: "\u297F", Dfr: "\u{1D507}", dfr: "\u{1D521}", dHar: "\u2965", dharl: "\u21C3", dharr: "\u21C2", DiacriticalAcute: "\xB4", DiacriticalDot: "\u02D9", DiacriticalDoubleAcute: "\u02DD", DiacriticalGrave: "`", DiacriticalTilde: "\u02DC", diam: "\u22C4", diamond: "\u22C4", Diamond: "\u22C4", diamondsuit: "\u2666", diams: "\u2666", die: "\xA8", DifferentialD: "\u2146", digamma: "\u03DD", disin: "\u22F2", div: "\xF7", divide: "\xF7", divideontimes: "\u22C7", divonx: "\u22C7", DJcy: "\u0402", djcy: "\u0452", dlcorn: "\u231E", dlcrop: "\u230D", dollar: "$", Dopf: "\u{1D53B}", dopf: "\u{1D555}", Dot: "\xA8", dot: "\u02D9", DotDot: "\u20DC", doteq: "\u2250", doteqdot: "\u2251", DotEqual: "\u2250", dotminus: "\u2238", dotplus: "\u2214", dotsquare: "\u22A1", doublebarwedge: "\u2306", DoubleContourIntegral: "\u222F", DoubleDot: "\xA8", DoubleDownArrow: "\u21D3", DoubleLeftArrow: "\u21D0", DoubleLeftRightArrow: "\u21D4", DoubleLeftTee: "\u2AE4", DoubleLongLeftArrow: "\u27F8", DoubleLongLeftRightArrow: "\u27FA", DoubleLongRightArrow: "\u27F9", DoubleRightArrow: "\u21D2", DoubleRightTee: "\u22A8", DoubleUpArrow: "\u21D1", DoubleUpDownArrow: "\u21D5", DoubleVerticalBar: "\u2225", DownArrowBar: "\u2913", downarrow: "\u2193", DownArrow: "\u2193", Downarrow: "\u21D3", DownArrowUpArrow: "\u21F5", DownBreve: "\u0311", downdownarrows: "\u21CA", downharpoonleft: "\u21C3", downharpoonright: "\u21C2", DownLeftRightVector: "\u2950", DownLeftTeeVector: "\u295E", DownLeftVectorBar: "\u2956", DownLeftVector: "\u21BD", DownRightTeeVector: "\u295F", DownRightVectorBar: "\u2957", DownRightVector: "\u21C1", DownTeeArrow: "\u21A7", DownTee: "\u22A4", drbkarow: "\u2910", drcorn: "\u231F", drcrop: "\u230C", Dscr: "\u{1D49F}", dscr: "\u{1D4B9}", DScy: "\u0405", dscy: "\u0455", dsol: "\u29F6", Dstrok: "\u0110", dstrok: "\u0111", dtdot: "\u22F1", dtri: "\u25BF", dtrif: "\u25BE", duarr: "\u21F5", duhar: "\u296F", dwangle: "\u29A6", DZcy: "\u040F", dzcy: "\u045F", dzigrarr: "\u27FF", Eacute: "\xC9", eacute: "\xE9", easter: "\u2A6E", Ecaron: "\u011A", ecaron: "\u011B", Ecirc: "\xCA", ecirc: "\xEA", ecir: "\u2256", ecolon: "\u2255", Ecy: "\u042D", ecy: "\u044D", eDDot: "\u2A77", Edot: "\u0116", edot: "\u0117", eDot: "\u2251", ee: "\u2147", efDot: "\u2252", Efr: "\u{1D508}", efr: "\u{1D522}", eg: "\u2A9A", Egrave: "\xC8", egrave: "\xE8", egs: "\u2A96", egsdot: "\u2A98", el: "\u2A99", Element: "\u2208", elinters: "\u23E7", ell: "\u2113", els: "\u2A95", elsdot: "\u2A97", Emacr: "\u0112", emacr: "\u0113", empty: "\u2205", emptyset: "\u2205", EmptySmallSquare: "\u25FB", emptyv: "\u2205", EmptyVerySmallSquare: "\u25AB", emsp13: "\u2004", emsp14: "\u2005", emsp: "\u2003", ENG: "\u014A", eng: "\u014B", ensp: "\u2002", Eogon: "\u0118", eogon: "\u0119", Eopf: "\u{1D53C}", eopf: "\u{1D556}", epar: "\u22D5", eparsl: "\u29E3", eplus: "\u2A71", epsi: "\u03B5", Epsilon: "\u0395", epsilon: "\u03B5", epsiv: "\u03F5", eqcirc: "\u2256", eqcolon: "\u2255", eqsim: "\u2242", eqslantgtr: "\u2A96", eqslantless: "\u2A95", Equal: "\u2A75", equals: "=", EqualTilde: "\u2242", equest: "\u225F", Equilibrium: "\u21CC", equiv: "\u2261", equivDD: "\u2A78", eqvparsl: "\u29E5", erarr: "\u2971", erDot: "\u2253", escr: "\u212F", Escr: "\u2130", esdot: "\u2250", Esim: "\u2A73", esim: "\u2242", Eta: "\u0397", eta: "\u03B7", ETH: "\xD0", eth: "\xF0", Euml: "\xCB", euml: "\xEB", euro: "\u20AC", excl: "!", exist: "\u2203", Exists: "\u2203", expectation: "\u2130", exponentiale: "\u2147", ExponentialE: "\u2147", fallingdotseq: "\u2252", Fcy: "\u0424", fcy: "\u0444", female: "\u2640", ffilig: "\uFB03", fflig: "\uFB00", ffllig: "\uFB04", Ffr: "\u{1D509}", ffr: "\u{1D523}", filig: "\uFB01", FilledSmallSquare: "\u25FC", FilledVerySmallSquare: "\u25AA", fjlig: "fj", flat: "\u266D", fllig: "\uFB02", fltns: "\u25B1", fnof: "\u0192", Fopf: "\u{1D53D}", fopf: "\u{1D557}", forall: "\u2200", ForAll: "\u2200", fork: "\u22D4", forkv: "\u2AD9", Fouriertrf: "\u2131", fpartint: "\u2A0D", frac12: "\xBD", frac13: "\u2153", frac14: "\xBC", frac15: "\u2155", frac16: "\u2159", frac18: "\u215B", frac23: "\u2154", frac25: "\u2156", frac34: "\xBE", frac35: "\u2157", frac38: "\u215C", frac45: "\u2158", frac56: "\u215A", frac58: "\u215D", frac78: "\u215E", frasl: "\u2044", frown: "\u2322", fscr: "\u{1D4BB}", Fscr: "\u2131", gacute: "\u01F5", Gamma: "\u0393", gamma: "\u03B3", Gammad: "\u03DC", gammad: "\u03DD", gap: "\u2A86", Gbreve: "\u011E", gbreve: "\u011F", Gcedil: "\u0122", Gcirc: "\u011C", gcirc: "\u011D", Gcy: "\u0413", gcy: "\u0433", Gdot: "\u0120", gdot: "\u0121", ge: "\u2265", gE: "\u2267", gEl: "\u2A8C", gel: "\u22DB", geq: "\u2265", geqq: "\u2267", geqslant: "\u2A7E", gescc: "\u2AA9", ges: "\u2A7E", gesdot: "\u2A80", gesdoto: "\u2A82", gesdotol: "\u2A84", gesl: "\u22DB\uFE00", gesles: "\u2A94", Gfr: "\u{1D50A}", gfr: "\u{1D524}", gg: "\u226B", Gg: "\u22D9", ggg: "\u22D9", gimel: "\u2137", GJcy: "\u0403", gjcy: "\u0453", gla: "\u2AA5", gl: "\u2277", glE: "\u2A92", glj: "\u2AA4", gnap: "\u2A8A", gnapprox: "\u2A8A", gne: "\u2A88", gnE: "\u2269", gneq: "\u2A88", gneqq: "\u2269", gnsim: "\u22E7", Gopf: "\u{1D53E}", gopf: "\u{1D558}", grave: "`", GreaterEqual: "\u2265", GreaterEqualLess: "\u22DB", GreaterFullEqual: "\u2267", GreaterGreater: "\u2AA2", GreaterLess: "\u2277", GreaterSlantEqual: "\u2A7E", GreaterTilde: "\u2273", Gscr: "\u{1D4A2}", gscr: "\u210A", gsim: "\u2273", gsime: "\u2A8E", gsiml: "\u2A90", gtcc: "\u2AA7", gtcir: "\u2A7A", gt: ">", GT: ">", Gt: "\u226B", gtdot: "\u22D7", gtlPar: "\u2995", gtquest: "\u2A7C", gtrapprox: "\u2A86", gtrarr: "\u2978", gtrdot: "\u22D7", gtreqless: "\u22DB", gtreqqless: "\u2A8C", gtrless: "\u2277", gtrsim: "\u2273", gvertneqq: "\u2269\uFE00", gvnE: "\u2269\uFE00", Hacek: "\u02C7", hairsp: "\u200A", half: "\xBD", hamilt: "\u210B", HARDcy: "\u042A", hardcy: "\u044A", harrcir: "\u2948", harr: "\u2194", hArr: "\u21D4", harrw: "\u21AD", Hat: "^", hbar: "\u210F", Hcirc: "\u0124", hcirc: "\u0125", hearts: "\u2665", heartsuit: "\u2665", hellip: "\u2026", hercon: "\u22B9", hfr: "\u{1D525}", Hfr: "\u210C", HilbertSpace: "\u210B", hksearow: "\u2925", hkswarow: "\u2926", hoarr: "\u21FF", homtht: "\u223B", hookleftarrow: "\u21A9", hookrightarrow: "\u21AA", hopf: "\u{1D559}", Hopf: "\u210D", horbar: "\u2015", HorizontalLine: "\u2500", hscr: "\u{1D4BD}", Hscr: "\u210B", hslash: "\u210F", Hstrok: "\u0126", hstrok: "\u0127", HumpDownHump: "\u224E", HumpEqual: "\u224F", hybull: "\u2043", hyphen: "\u2010", Iacute: "\xCD", iacute: "\xED", ic: "\u2063", Icirc: "\xCE", icirc: "\xEE", Icy: "\u0418", icy: "\u0438", Idot: "\u0130", IEcy: "\u0415", iecy: "\u0435", iexcl: "\xA1", iff: "\u21D4", ifr: "\u{1D526}", Ifr: "\u2111", Igrave: "\xCC", igrave: "\xEC", ii: "\u2148", iiiint: "\u2A0C", iiint: "\u222D", iinfin: "\u29DC", iiota: "\u2129", IJlig: "\u0132", ijlig: "\u0133", Imacr: "\u012A", imacr: "\u012B", image: "\u2111", ImaginaryI: "\u2148", imagline: "\u2110", imagpart: "\u2111", imath: "\u0131", Im: "\u2111", imof: "\u22B7", imped: "\u01B5", Implies: "\u21D2", incare: "\u2105", in: "\u2208", infin: "\u221E", infintie: "\u29DD", inodot: "\u0131", intcal: "\u22BA", int: "\u222B", Int: "\u222C", integers: "\u2124", Integral: "\u222B", intercal: "\u22BA", Intersection: "\u22C2", intlarhk: "\u2A17", intprod: "\u2A3C", InvisibleComma: "\u2063", InvisibleTimes: "\u2062", IOcy: "\u0401", iocy: "\u0451", Iogon: "\u012E", iogon: "\u012F", Iopf: "\u{1D540}", iopf: "\u{1D55A}", Iota: "\u0399", iota: "\u03B9", iprod: "\u2A3C", iquest: "\xBF", iscr: "\u{1D4BE}", Iscr: "\u2110", isin: "\u2208", isindot: "\u22F5", isinE: "\u22F9", isins: "\u22F4", isinsv: "\u22F3", isinv: "\u2208", it: "\u2062", Itilde: "\u0128", itilde: "\u0129", Iukcy: "\u0406", iukcy: "\u0456", Iuml: "\xCF", iuml: "\xEF", Jcirc: "\u0134", jcirc: "\u0135", Jcy: "\u0419", jcy: "\u0439", Jfr: "\u{1D50D}", jfr: "\u{1D527}", jmath: "\u0237", Jopf: "\u{1D541}", jopf: "\u{1D55B}", Jscr: "\u{1D4A5}", jscr: "\u{1D4BF}", Jsercy: "\u0408", jsercy: "\u0458", Jukcy: "\u0404", jukcy: "\u0454", Kappa: "\u039A", kappa: "\u03BA", kappav: "\u03F0", Kcedil: "\u0136", kcedil: "\u0137", Kcy: "\u041A", kcy: "\u043A", Kfr: "\u{1D50E}", kfr: "\u{1D528}", kgreen: "\u0138", KHcy: "\u0425", khcy: "\u0445", KJcy: "\u040C", kjcy: "\u045C", Kopf: "\u{1D542}", kopf: "\u{1D55C}", Kscr: "\u{1D4A6}", kscr: "\u{1D4C0}", lAarr: "\u21DA", Lacute: "\u0139", lacute: "\u013A", laemptyv: "\u29B4", lagran: "\u2112", Lambda: "\u039B", lambda: "\u03BB", lang: "\u27E8", Lang: "\u27EA", langd: "\u2991", langle: "\u27E8", lap: "\u2A85", Laplacetrf: "\u2112", laquo: "\xAB", larrb: "\u21E4", larrbfs: "\u291F", larr: "\u2190", Larr: "\u219E", lArr: "\u21D0", larrfs: "\u291D", larrhk: "\u21A9", larrlp: "\u21AB", larrpl: "\u2939", larrsim: "\u2973", larrtl: "\u21A2", latail: "\u2919", lAtail: "\u291B", lat: "\u2AAB", late: "\u2AAD", lates: "\u2AAD\uFE00", lbarr: "\u290C", lBarr: "\u290E", lbbrk: "\u2772", lbrace: "{", lbrack: "[", lbrke: "\u298B", lbrksld: "\u298F", lbrkslu: "\u298D", Lcaron: "\u013D", lcaron: "\u013E", Lcedil: "\u013B", lcedil: "\u013C", lceil: "\u2308", lcub: "{", Lcy: "\u041B", lcy: "\u043B", ldca: "\u2936", ldquo: "\u201C", ldquor: "\u201E", ldrdhar: "\u2967", ldrushar: "\u294B", ldsh: "\u21B2", le: "\u2264", lE: "\u2266", LeftAngleBracket: "\u27E8", LeftArrowBar: "\u21E4", leftarrow: "\u2190", LeftArrow: "\u2190", Leftarrow: "\u21D0", LeftArrowRightArrow: "\u21C6", leftarrowtail: "\u21A2", LeftCeiling: "\u2308", LeftDoubleBracket: "\u27E6", LeftDownTeeVector: "\u2961", LeftDownVectorBar: "\u2959", LeftDownVector: "\u21C3", LeftFloor: "\u230A", leftharpoondown: "\u21BD", leftharpoonup: "\u21BC", leftleftarrows: "\u21C7", leftrightarrow: "\u2194", LeftRightArrow: "\u2194", Leftrightarrow: "\u21D4", leftrightarrows: "\u21C6", leftrightharpoons: "\u21CB", leftrightsquigarrow: "\u21AD", LeftRightVector: "\u294E", LeftTeeArrow: "\u21A4", LeftTee: "\u22A3", LeftTeeVector: "\u295A", leftthreetimes: "\u22CB", LeftTriangleBar: "\u29CF", LeftTriangle: "\u22B2", LeftTriangleEqual: "\u22B4", LeftUpDownVector: "\u2951", LeftUpTeeVector: "\u2960", LeftUpVectorBar: "\u2958", LeftUpVector: "\u21BF", LeftVectorBar: "\u2952", LeftVector: "\u21BC", lEg: "\u2A8B", leg: "\u22DA", leq: "\u2264", leqq: "\u2266", leqslant: "\u2A7D", lescc: "\u2AA8", les: "\u2A7D", lesdot: "\u2A7F", lesdoto: "\u2A81", lesdotor: "\u2A83", lesg: "\u22DA\uFE00", lesges: "\u2A93", lessapprox: "\u2A85", lessdot: "\u22D6", lesseqgtr: "\u22DA", lesseqqgtr: "\u2A8B", LessEqualGreater: "\u22DA", LessFullEqual: "\u2266", LessGreater: "\u2276", lessgtr: "\u2276", LessLess: "\u2AA1", lesssim: "\u2272", LessSlantEqual: "\u2A7D", LessTilde: "\u2272", lfisht: "\u297C", lfloor: "\u230A", Lfr: "\u{1D50F}", lfr: "\u{1D529}", lg: "\u2276", lgE: "\u2A91", lHar: "\u2962", lhard: "\u21BD", lharu: "\u21BC", lharul: "\u296A", lhblk: "\u2584", LJcy: "\u0409", ljcy: "\u0459", llarr: "\u21C7", ll: "\u226A", Ll: "\u22D8", llcorner: "\u231E", Lleftarrow: "\u21DA", llhard: "\u296B", lltri: "\u25FA", Lmidot: "\u013F", lmidot: "\u0140", lmoustache: "\u23B0", lmoust: "\u23B0", lnap: "\u2A89", lnapprox: "\u2A89", lne: "\u2A87", lnE: "\u2268", lneq: "\u2A87", lneqq: "\u2268", lnsim: "\u22E6", loang: "\u27EC", loarr: "\u21FD", lobrk: "\u27E6", longleftarrow: "\u27F5", LongLeftArrow: "\u27F5", Longleftarrow: "\u27F8", longleftrightarrow: "\u27F7", LongLeftRightArrow: "\u27F7", Longleftrightarrow: "\u27FA", longmapsto: "\u27FC", longrightarrow: "\u27F6", LongRightArrow: "\u27F6", Longrightarrow: "\u27F9", looparrowleft: "\u21AB", looparrowright: "\u21AC", lopar: "\u2985", Lopf: "\u{1D543}", lopf: "\u{1D55D}", loplus: "\u2A2D", lotimes: "\u2A34", lowast: "\u2217", lowbar: "_", LowerLeftArrow: "\u2199", LowerRightArrow: "\u2198", loz: "\u25CA", lozenge: "\u25CA", lozf: "\u29EB", lpar: "(", lparlt: "\u2993", lrarr: "\u21C6", lrcorner: "\u231F", lrhar: "\u21CB", lrhard: "\u296D", lrm: "\u200E", lrtri: "\u22BF", lsaquo: "\u2039", lscr: "\u{1D4C1}", Lscr: "\u2112", lsh: "\u21B0", Lsh: "\u21B0", lsim: "\u2272", lsime: "\u2A8D", lsimg: "\u2A8F", lsqb: "[", lsquo: "\u2018", lsquor: "\u201A", Lstrok: "\u0141", lstrok: "\u0142", ltcc: "\u2AA6", ltcir: "\u2A79", lt: "<", LT: "<", Lt: "\u226A", ltdot: "\u22D6", lthree: "\u22CB", ltimes: "\u22C9", ltlarr: "\u2976", ltquest: "\u2A7B", ltri: "\u25C3", ltrie: "\u22B4", ltrif: "\u25C2", ltrPar: "\u2996", lurdshar: "\u294A", luruhar: "\u2966", lvertneqq: "\u2268\uFE00", lvnE: "\u2268\uFE00", macr: "\xAF", male: "\u2642", malt: "\u2720", maltese: "\u2720", Map: "\u2905", map: "\u21A6", mapsto: "\u21A6", mapstodown: "\u21A7", mapstoleft: "\u21A4", mapstoup: "\u21A5", marker: "\u25AE", mcomma: "\u2A29", Mcy: "\u041C", mcy: "\u043C", mdash: "\u2014", mDDot: "\u223A", measuredangle: "\u2221", MediumSpace: "\u205F", Mellintrf: "\u2133", Mfr: "\u{1D510}", mfr: "\u{1D52A}", mho: "\u2127", micro: "\xB5", midast: "*", midcir: "\u2AF0", mid: "\u2223", middot: "\xB7", minusb: "\u229F", minus: "\u2212", minusd: "\u2238", minusdu: "\u2A2A", MinusPlus: "\u2213", mlcp: "\u2ADB", mldr: "\u2026", mnplus: "\u2213", models: "\u22A7", Mopf: "\u{1D544}", mopf: "\u{1D55E}", mp: "\u2213", mscr: "\u{1D4C2}", Mscr: "\u2133", mstpos: "\u223E", Mu: "\u039C", mu: "\u03BC", multimap: "\u22B8", mumap: "\u22B8", nabla: "\u2207", Nacute: "\u0143", nacute: "\u0144", nang: "\u2220\u20D2", nap: "\u2249", napE: "\u2A70\u0338", napid: "\u224B\u0338", napos: "\u0149", napprox: "\u2249", natural: "\u266E", naturals: "\u2115", natur: "\u266E", nbsp: "\xA0", nbump: "\u224E\u0338", nbumpe: "\u224F\u0338", ncap: "\u2A43", Ncaron: "\u0147", ncaron: "\u0148", Ncedil: "\u0145", ncedil: "\u0146", ncong: "\u2247", ncongdot: "\u2A6D\u0338", ncup: "\u2A42", Ncy: "\u041D", ncy: "\u043D", ndash: "\u2013", nearhk: "\u2924", nearr: "\u2197", neArr: "\u21D7", nearrow: "\u2197", ne: "\u2260", nedot: "\u2250\u0338", NegativeMediumSpace: "\u200B", NegativeThickSpace: "\u200B", NegativeThinSpace: "\u200B", NegativeVeryThinSpace: "\u200B", nequiv: "\u2262", nesear: "\u2928", nesim: "\u2242\u0338", NestedGreaterGreater: "\u226B", NestedLessLess: "\u226A", NewLine: "\n", nexist: "\u2204", nexists: "\u2204", Nfr: "\u{1D511}", nfr: "\u{1D52B}", ngE: "\u2267\u0338", nge: "\u2271", ngeq: "\u2271", ngeqq: "\u2267\u0338", ngeqslant: "\u2A7E\u0338", nges: "\u2A7E\u0338", nGg: "\u22D9\u0338", ngsim: "\u2275", nGt: "\u226B\u20D2", ngt: "\u226F", ngtr: "\u226F", nGtv: "\u226B\u0338", nharr: "\u21AE", nhArr: "\u21CE", nhpar: "\u2AF2", ni: "\u220B", nis: "\u22FC", nisd: "\u22FA", niv: "\u220B", NJcy: "\u040A", njcy: "\u045A", nlarr: "\u219A", nlArr: "\u21CD", nldr: "\u2025", nlE: "\u2266\u0338", nle: "\u2270", nleftarrow: "\u219A", nLeftarrow: "\u21CD", nleftrightarrow: "\u21AE", nLeftrightarrow: "\u21CE", nleq: "\u2270", nleqq: "\u2266\u0338", nleqslant: "\u2A7D\u0338", nles: "\u2A7D\u0338", nless: "\u226E", nLl: "\u22D8\u0338", nlsim: "\u2274", nLt: "\u226A\u20D2", nlt: "\u226E", nltri: "\u22EA", nltrie: "\u22EC", nLtv: "\u226A\u0338", nmid: "\u2224", NoBreak: "\u2060", NonBreakingSpace: "\xA0", nopf: "\u{1D55F}", Nopf: "\u2115", Not: "\u2AEC", not: "\xAC", NotCongruent: "\u2262", NotCupCap: "\u226D", NotDoubleVerticalBar: "\u2226", NotElement: "\u2209", NotEqual: "\u2260", NotEqualTilde: "\u2242\u0338", NotExists: "\u2204", NotGreater: "\u226F", NotGreaterEqual: "\u2271", NotGreaterFullEqual: "\u2267\u0338", NotGreaterGreater: "\u226B\u0338", NotGreaterLess: "\u2279", NotGreaterSlantEqual: "\u2A7E\u0338", NotGreaterTilde: "\u2275", NotHumpDownHump: "\u224E\u0338", NotHumpEqual: "\u224F\u0338", notin: "\u2209", notindot: "\u22F5\u0338", notinE: "\u22F9\u0338", notinva: "\u2209", notinvb: "\u22F7", notinvc: "\u22F6", NotLeftTriangleBar: "\u29CF\u0338", NotLeftTriangle: "\u22EA", NotLeftTriangleEqual: "\u22EC", NotLess: "\u226E", NotLessEqual: "\u2270", NotLessGreater: "\u2278", NotLessLess: "\u226A\u0338", NotLessSlantEqual: "\u2A7D\u0338", NotLessTilde: "\u2274", NotNestedGreaterGreater: "\u2AA2\u0338", NotNestedLessLess: "\u2AA1\u0338", notni: "\u220C", notniva: "\u220C", notnivb: "\u22FE", notnivc: "\u22FD", NotPrecedes: "\u2280", NotPrecedesEqual: "\u2AAF\u0338", NotPrecedesSlantEqual: "\u22E0", NotReverseElement: "\u220C", NotRightTriangleBar: "\u29D0\u0338", NotRightTriangle: "\u22EB", NotRightTriangleEqual: "\u22ED", NotSquareSubset: "\u228F\u0338", NotSquareSubsetEqual: "\u22E2", NotSquareSuperset: "\u2290\u0338", NotSquareSupersetEqual: "\u22E3", NotSubset: "\u2282\u20D2", NotSubsetEqual: "\u2288", NotSucceeds: "\u2281", NotSucceedsEqual: "\u2AB0\u0338", NotSucceedsSlantEqual: "\u22E1", NotSucceedsTilde: "\u227F\u0338", NotSuperset: "\u2283\u20D2", NotSupersetEqual: "\u2289", NotTilde: "\u2241", NotTildeEqual: "\u2244", NotTildeFullEqual: "\u2247", NotTildeTilde: "\u2249", NotVerticalBar: "\u2224", nparallel: "\u2226", npar: "\u2226", nparsl: "\u2AFD\u20E5", npart: "\u2202\u0338", npolint: "\u2A14", npr: "\u2280", nprcue: "\u22E0", nprec: "\u2280", npreceq: "\u2AAF\u0338", npre: "\u2AAF\u0338", nrarrc: "\u2933\u0338", nrarr: "\u219B", nrArr: "\u21CF", nrarrw: "\u219D\u0338", nrightarrow: "\u219B", nRightarrow: "\u21CF", nrtri: "\u22EB", nrtrie: "\u22ED", nsc: "\u2281", nsccue: "\u22E1", nsce: "\u2AB0\u0338", Nscr: "\u{1D4A9}", nscr: "\u{1D4C3}", nshortmid: "\u2224", nshortparallel: "\u2226", nsim: "\u2241", nsime: "\u2244", nsimeq: "\u2244", nsmid: "\u2224", nspar: "\u2226", nsqsube: "\u22E2", nsqsupe: "\u22E3", nsub: "\u2284", nsubE: "\u2AC5\u0338", nsube: "\u2288", nsubset: "\u2282\u20D2", nsubseteq: "\u2288", nsubseteqq: "\u2AC5\u0338", nsucc: "\u2281", nsucceq: "\u2AB0\u0338", nsup: "\u2285", nsupE: "\u2AC6\u0338", nsupe: "\u2289", nsupset: "\u2283\u20D2", nsupseteq: "\u2289", nsupseteqq: "\u2AC6\u0338", ntgl: "\u2279", Ntilde: "\xD1", ntilde: "\xF1", ntlg: "\u2278", ntriangleleft: "\u22EA", ntrianglelefteq: "\u22EC", ntriangleright: "\u22EB", ntrianglerighteq: "\u22ED", Nu: "\u039D", nu: "\u03BD", num: "#", numero: "\u2116", numsp: "\u2007", nvap: "\u224D\u20D2", nvdash: "\u22AC", nvDash: "\u22AD", nVdash: "\u22AE", nVDash: "\u22AF", nvge: "\u2265\u20D2", nvgt: ">\u20D2", nvHarr: "\u2904", nvinfin: "\u29DE", nvlArr: "\u2902", nvle: "\u2264\u20D2", nvlt: "<\u20D2", nvltrie: "\u22B4\u20D2", nvrArr: "\u2903", nvrtrie: "\u22B5\u20D2", nvsim: "\u223C\u20D2", nwarhk: "\u2923", nwarr: "\u2196", nwArr: "\u21D6", nwarrow: "\u2196", nwnear: "\u2927", Oacute: "\xD3", oacute: "\xF3", oast: "\u229B", Ocirc: "\xD4", ocirc: "\xF4", ocir: "\u229A", Ocy: "\u041E", ocy: "\u043E", odash: "\u229D", Odblac: "\u0150", odblac: "\u0151", odiv: "\u2A38", odot: "\u2299", odsold: "\u29BC", OElig: "\u0152", oelig: "\u0153", ofcir: "\u29BF", Ofr: "\u{1D512}", ofr: "\u{1D52C}", ogon: "\u02DB", Ograve: "\xD2", ograve: "\xF2", ogt: "\u29C1", ohbar: "\u29B5", ohm: "\u03A9", oint: "\u222E", olarr: "\u21BA", olcir: "\u29BE", olcross: "\u29BB", oline: "\u203E", olt: "\u29C0", Omacr: "\u014C", omacr: "\u014D", Omega: "\u03A9", omega: "\u03C9", Omicron: "\u039F", omicron: "\u03BF", omid: "\u29B6", ominus: "\u2296", Oopf: "\u{1D546}", oopf: "\u{1D560}", opar: "\u29B7", OpenCurlyDoubleQuote: "\u201C", OpenCurlyQuote: "\u2018", operp: "\u29B9", oplus: "\u2295", orarr: "\u21BB", Or: "\u2A54", or: "\u2228", ord: "\u2A5D", order: "\u2134", orderof: "\u2134", ordf: "\xAA", ordm: "\xBA", origof: "\u22B6", oror: "\u2A56", orslope: "\u2A57", orv: "\u2A5B", oS: "\u24C8", Oscr: "\u{1D4AA}", oscr: "\u2134", Oslash: "\xD8", oslash: "\xF8", osol: "\u2298", Otilde: "\xD5", otilde: "\xF5", otimesas: "\u2A36", Otimes: "\u2A37", otimes: "\u2297", Ouml: "\xD6", ouml: "\xF6", ovbar: "\u233D", OverBar: "\u203E", OverBrace: "\u23DE", OverBracket: "\u23B4", OverParenthesis: "\u23DC", para: "\xB6", parallel: "\u2225", par: "\u2225", parsim: "\u2AF3", parsl: "\u2AFD", part: "\u2202", PartialD: "\u2202", Pcy: "\u041F", pcy: "\u043F", percnt: "%", period: ".", permil: "\u2030", perp: "\u22A5", pertenk: "\u2031", Pfr: "\u{1D513}", pfr: "\u{1D52D}", Phi: "\u03A6", phi: "\u03C6", phiv: "\u03D5", phmmat: "\u2133", phone: "\u260E", Pi: "\u03A0", pi: "\u03C0", pitchfork: "\u22D4", piv: "\u03D6", planck: "\u210F", planckh: "\u210E", plankv: "\u210F", plusacir: "\u2A23", plusb: "\u229E", pluscir: "\u2A22", plus: "+", plusdo: "\u2214", plusdu: "\u2A25", pluse: "\u2A72", PlusMinus: "\xB1", plusmn: "\xB1", plussim: "\u2A26", plustwo: "\u2A27", pm: "\xB1", Poincareplane: "\u210C", pointint: "\u2A15", popf: "\u{1D561}", Popf: "\u2119", pound: "\xA3", prap: "\u2AB7", Pr: "\u2ABB", pr: "\u227A", prcue: "\u227C", precapprox: "\u2AB7", prec: "\u227A", preccurlyeq: "\u227C", Precedes: "\u227A", PrecedesEqual: "\u2AAF", PrecedesSlantEqual: "\u227C", PrecedesTilde: "\u227E", preceq: "\u2AAF", precnapprox: "\u2AB9", precneqq: "\u2AB5", precnsim: "\u22E8", pre: "\u2AAF", prE: "\u2AB3", precsim: "\u227E", prime: "\u2032", Prime: "\u2033", primes: "\u2119", prnap: "\u2AB9", prnE: "\u2AB5", prnsim: "\u22E8", prod: "\u220F", Product: "\u220F", profalar: "\u232E", profline: "\u2312", profsurf: "\u2313", prop: "\u221D", Proportional: "\u221D", Proportion: "\u2237", propto: "\u221D", prsim: "\u227E", prurel: "\u22B0", Pscr: "\u{1D4AB}", pscr: "\u{1D4C5}", Psi: "\u03A8", psi: "\u03C8", puncsp: "\u2008", Qfr: "\u{1D514}", qfr: "\u{1D52E}", qint: "\u2A0C", qopf: "\u{1D562}", Qopf: "\u211A", qprime: "\u2057", Qscr: "\u{1D4AC}", qscr: "\u{1D4C6}", quaternions: "\u210D", quatint: "\u2A16", quest: "?", questeq: "\u225F", quot: '"', QUOT: '"', rAarr: "\u21DB", race: "\u223D\u0331", Racute: "\u0154", racute: "\u0155", radic: "\u221A", raemptyv: "\u29B3", rang: "\u27E9", Rang: "\u27EB", rangd: "\u2992", range: "\u29A5", rangle: "\u27E9", raquo: "\xBB", rarrap: "\u2975", rarrb: "\u21E5", rarrbfs: "\u2920", rarrc: "\u2933", rarr: "\u2192", Rarr: "\u21A0", rArr: "\u21D2", rarrfs: "\u291E", rarrhk: "\u21AA", rarrlp: "\u21AC", rarrpl: "\u2945", rarrsim: "\u2974", Rarrtl: "\u2916", rarrtl: "\u21A3", rarrw: "\u219D", ratail: "\u291A", rAtail: "\u291C", ratio: "\u2236", rationals: "\u211A", rbarr: "\u290D", rBarr: "\u290F", RBarr: "\u2910", rbbrk: "\u2773", rbrace: "}", rbrack: "]", rbrke: "\u298C", rbrksld: "\u298E", rbrkslu: "\u2990", Rcaron: "\u0158", rcaron: "\u0159", Rcedil: "\u0156", rcedil: "\u0157", rceil: "\u2309", rcub: "}", Rcy: "\u0420", rcy: "\u0440", rdca: "\u2937", rdldhar: "\u2969", rdquo: "\u201D", rdquor: "\u201D", rdsh: "\u21B3", real: "\u211C", realine: "\u211B", realpart: "\u211C", reals: "\u211D", Re: "\u211C", rect: "\u25AD", reg: "\xAE", REG: "\xAE", ReverseElement: "\u220B", ReverseEquilibrium: "\u21CB", ReverseUpEquilibrium: "\u296F", rfisht: "\u297D", rfloor: "\u230B", rfr: "\u{1D52F}", Rfr: "\u211C", rHar: "\u2964", rhard: "\u21C1", rharu: "\u21C0", rharul: "\u296C", Rho: "\u03A1", rho: "\u03C1", rhov: "\u03F1", RightAngleBracket: "\u27E9", RightArrowBar: "\u21E5", rightarrow: "\u2192", RightArrow: "\u2192", Rightarrow: "\u21D2", RightArrowLeftArrow: "\u21C4", rightarrowtail: "\u21A3", RightCeiling: "\u2309", RightDoubleBracket: "\u27E7", RightDownTeeVector: "\u295D", RightDownVectorBar: "\u2955", RightDownVector: "\u21C2", RightFloor: "\u230B", rightharpoondown: "\u21C1", rightharpoonup: "\u21C0", rightleftarrows: "\u21C4", rightleftharpoons: "\u21CC", rightrightarrows: "\u21C9", rightsquigarrow: "\u219D", RightTeeArrow: "\u21A6", RightTee: "\u22A2", RightTeeVector: "\u295B", rightthreetimes: "\u22CC", RightTriangleBar: "\u29D0", RightTriangle: "\u22B3", RightTriangleEqual: "\u22B5", RightUpDownVector: "\u294F", RightUpTeeVector: "\u295C", RightUpVectorBar: "\u2954", RightUpVector: "\u21BE", RightVectorBar: "\u2953", RightVector: "\u21C0", ring: "\u02DA", risingdotseq: "\u2253", rlarr: "\u21C4", rlhar: "\u21CC", rlm: "\u200F", rmoustache: "\u23B1", rmoust: "\u23B1", rnmid: "\u2AEE", roang: "\u27ED", roarr: "\u21FE", robrk: "\u27E7", ropar: "\u2986", ropf: "\u{1D563}", Ropf: "\u211D", roplus: "\u2A2E", rotimes: "\u2A35", RoundImplies: "\u2970", rpar: ")", rpargt: "\u2994", rppolint: "\u2A12", rrarr: "\u21C9", Rrightarrow: "\u21DB", rsaquo: "\u203A", rscr: "\u{1D4C7}", Rscr: "\u211B", rsh: "\u21B1", Rsh: "\u21B1", rsqb: "]", rsquo: "\u2019", rsquor: "\u2019", rthree: "\u22CC", rtimes: "\u22CA", rtri: "\u25B9", rtrie: "\u22B5", rtrif: "\u25B8", rtriltri: "\u29CE", RuleDelayed: "\u29F4", ruluhar: "\u2968", rx: "\u211E", Sacute: "\u015A", sacute: "\u015B", sbquo: "\u201A", scap: "\u2AB8", Scaron: "\u0160", scaron: "\u0161", Sc: "\u2ABC", sc: "\u227B", sccue: "\u227D", sce: "\u2AB0", scE: "\u2AB4", Scedil: "\u015E", scedil: "\u015F", Scirc: "\u015C", scirc: "\u015D", scnap: "\u2ABA", scnE: "\u2AB6", scnsim: "\u22E9", scpolint: "\u2A13", scsim: "\u227F", Scy: "\u0421", scy: "\u0441", sdotb: "\u22A1", sdot: "\u22C5", sdote: "\u2A66", searhk: "\u2925", searr: "\u2198", seArr: "\u21D8", searrow: "\u2198", sect: "\xA7", semi: ";", seswar: "\u2929", setminus: "\u2216", setmn: "\u2216", sext: "\u2736", Sfr: "\u{1D516}", sfr: "\u{1D530}", sfrown: "\u2322", sharp: "\u266F", SHCHcy: "\u0429", shchcy: "\u0449", SHcy: "\u0428", shcy: "\u0448", ShortDownArrow: "\u2193", ShortLeftArrow: "\u2190", shortmid: "\u2223", shortparallel: "\u2225", ShortRightArrow: "\u2192", ShortUpArrow: "\u2191", shy: "\xAD", Sigma: "\u03A3", sigma: "\u03C3", sigmaf: "\u03C2", sigmav: "\u03C2", sim: "\u223C", simdot: "\u2A6A", sime: "\u2243", simeq: "\u2243", simg: "\u2A9E", simgE: "\u2AA0", siml: "\u2A9D", simlE: "\u2A9F", simne: "\u2246", simplus: "\u2A24", simrarr: "\u2972", slarr: "\u2190", SmallCircle: "\u2218", smallsetminus: "\u2216", smashp: "\u2A33", smeparsl: "\u29E4", smid: "\u2223", smile: "\u2323", smt: "\u2AAA", smte: "\u2AAC", smtes: "\u2AAC\uFE00", SOFTcy: "\u042C", softcy: "\u044C", solbar: "\u233F", solb: "\u29C4", sol: "/", Sopf: "\u{1D54A}", sopf: "\u{1D564}", spades: "\u2660", spadesuit: "\u2660", spar: "\u2225", sqcap: "\u2293", sqcaps: "\u2293\uFE00", sqcup: "\u2294", sqcups: "\u2294\uFE00", Sqrt: "\u221A", sqsub: "\u228F", sqsube: "\u2291", sqsubset: "\u228F", sqsubseteq: "\u2291", sqsup: "\u2290", sqsupe: "\u2292", sqsupset: "\u2290", sqsupseteq: "\u2292", square: "\u25A1", Square: "\u25A1", SquareIntersection: "\u2293", SquareSubset: "\u228F", SquareSubsetEqual: "\u2291", SquareSuperset: "\u2290", SquareSupersetEqual: "\u2292", SquareUnion: "\u2294", squarf: "\u25AA", squ: "\u25A1", squf: "\u25AA", srarr: "\u2192", Sscr: "\u{1D4AE}", sscr: "\u{1D4C8}", ssetmn: "\u2216", ssmile: "\u2323", sstarf: "\u22C6", Star: "\u22C6", star: "\u2606", starf: "\u2605", straightepsilon: "\u03F5", straightphi: "\u03D5", strns: "\xAF", sub: "\u2282", Sub: "\u22D0", subdot: "\u2ABD", subE: "\u2AC5", sube: "\u2286", subedot: "\u2AC3", submult: "\u2AC1", subnE: "\u2ACB", subne: "\u228A", subplus: "\u2ABF", subrarr: "\u2979", subset: "\u2282", Subset: "\u22D0", subseteq: "\u2286", subseteqq: "\u2AC5", SubsetEqual: "\u2286", subsetneq: "\u228A", subsetneqq: "\u2ACB", subsim: "\u2AC7", subsub: "\u2AD5", subsup: "\u2AD3", succapprox: "\u2AB8", succ: "\u227B", succcurlyeq: "\u227D", Succeeds: "\u227B", SucceedsEqual: "\u2AB0", SucceedsSlantEqual: "\u227D", SucceedsTilde: "\u227F", succeq: "\u2AB0", succnapprox: "\u2ABA", succneqq: "\u2AB6", succnsim: "\u22E9", succsim: "\u227F", SuchThat: "\u220B", sum: "\u2211", Sum: "\u2211", sung: "\u266A", sup1: "\xB9", sup2: "\xB2", sup3: "\xB3", sup: "\u2283", Sup: "\u22D1", supdot: "\u2ABE", supdsub: "\u2AD8", supE: "\u2AC6", supe: "\u2287", supedot: "\u2AC4", Superset: "\u2283", SupersetEqual: "\u2287", suphsol: "\u27C9", suphsub: "\u2AD7", suplarr: "\u297B", supmult: "\u2AC2", supnE: "\u2ACC", supne: "\u228B", supplus: "\u2AC0", supset: "\u2283", Supset: "\u22D1", supseteq: "\u2287", supseteqq: "\u2AC6", supsetneq: "\u228B", supsetneqq: "\u2ACC", supsim: "\u2AC8", supsub: "\u2AD4", supsup: "\u2AD6", swarhk: "\u2926", swarr: "\u2199", swArr: "\u21D9", swarrow: "\u2199", swnwar: "\u292A", szlig: "\xDF", Tab: " ", target: "\u2316", Tau: "\u03A4", tau: "\u03C4", tbrk: "\u23B4", Tcaron: "\u0164", tcaron: "\u0165", Tcedil: "\u0162", tcedil: "\u0163", Tcy: "\u0422", tcy: "\u0442", tdot: "\u20DB", telrec: "\u2315", Tfr: "\u{1D517}", tfr: "\u{1D531}", there4: "\u2234", therefore: "\u2234", Therefore: "\u2234", Theta: "\u0398", theta: "\u03B8", thetasym: "\u03D1", thetav: "\u03D1", thickapprox: "\u2248", thicksim: "\u223C", ThickSpace: "\u205F\u200A", ThinSpace: "\u2009", thinsp: "\u2009", thkap: "\u2248", thksim: "\u223C", THORN: "\xDE", thorn: "\xFE", tilde: "\u02DC", Tilde: "\u223C", TildeEqual: "\u2243", TildeFullEqual: "\u2245", TildeTilde: "\u2248", timesbar: "\u2A31", timesb: "\u22A0", times: "\xD7", timesd: "\u2A30", tint: "\u222D", toea: "\u2928", topbot: "\u2336", topcir: "\u2AF1", top: "\u22A4", Topf: "\u{1D54B}", topf: "\u{1D565}", topfork: "\u2ADA", tosa: "\u2929", tprime: "\u2034", trade: "\u2122", TRADE: "\u2122", triangle: "\u25B5", triangledown: "\u25BF", triangleleft: "\u25C3", trianglelefteq: "\u22B4", triangleq: "\u225C", triangleright: "\u25B9", trianglerighteq: "\u22B5", tridot: "\u25EC", trie: "\u225C", triminus: "\u2A3A", TripleDot: "\u20DB", triplus: "\u2A39", trisb: "\u29CD", tritime: "\u2A3B", trpezium: "\u23E2", Tscr: "\u{1D4AF}", tscr: "\u{1D4C9}", TScy: "\u0426", tscy: "\u0446", TSHcy: "\u040B", tshcy: "\u045B", Tstrok: "\u0166", tstrok: "\u0167", twixt: "\u226C", twoheadleftarrow: "\u219E", twoheadrightarrow: "\u21A0", Uacute: "\xDA", uacute: "\xFA", uarr: "\u2191", Uarr: "\u219F", uArr: "\u21D1", Uarrocir: "\u2949", Ubrcy: "\u040E", ubrcy: "\u045E", Ubreve: "\u016C", ubreve: "\u016D", Ucirc: "\xDB", ucirc: "\xFB", Ucy: "\u0423", ucy: "\u0443", udarr: "\u21C5", Udblac: "\u0170", udblac: "\u0171", udhar: "\u296E", ufisht: "\u297E", Ufr: "\u{1D518}", ufr: "\u{1D532}", Ugrave: "\xD9", ugrave: "\xF9", uHar: "\u2963", uharl: "\u21BF", uharr: "\u21BE", uhblk: "\u2580", ulcorn: "\u231C", ulcorner: "\u231C", ulcrop: "\u230F", ultri: "\u25F8", Umacr: "\u016A", umacr: "\u016B", uml: "\xA8", UnderBar: "_", UnderBrace: "\u23DF", UnderBracket: "\u23B5", UnderParenthesis: "\u23DD", Union: "\u22C3", UnionPlus: "\u228E", Uogon: "\u0172", uogon: "\u0173", Uopf: "\u{1D54C}", uopf: "\u{1D566}", UpArrowBar: "\u2912", uparrow: "\u2191", UpArrow: "\u2191", Uparrow: "\u21D1", UpArrowDownArrow: "\u21C5", updownarrow: "\u2195", UpDownArrow: "\u2195", Updownarrow: "\u21D5", UpEquilibrium: "\u296E", upharpoonleft: "\u21BF", upharpoonright: "\u21BE", uplus: "\u228E", UpperLeftArrow: "\u2196", UpperRightArrow: "\u2197", upsi: "\u03C5", Upsi: "\u03D2", upsih: "\u03D2", Upsilon: "\u03A5", upsilon: "\u03C5", UpTeeArrow: "\u21A5", UpTee: "\u22A5", upuparrows: "\u21C8", urcorn: "\u231D", urcorner: "\u231D", urcrop: "\u230E", Uring: "\u016E", uring: "\u016F", urtri: "\u25F9", Uscr: "\u{1D4B0}", uscr: "\u{1D4CA}", utdot: "\u22F0", Utilde: "\u0168", utilde: "\u0169", utri: "\u25B5", utrif: "\u25B4", uuarr: "\u21C8", Uuml: "\xDC", uuml: "\xFC", uwangle: "\u29A7", vangrt: "\u299C", varepsilon: "\u03F5", varkappa: "\u03F0", varnothing: "\u2205", varphi: "\u03D5", varpi: "\u03D6", varpropto: "\u221D", varr: "\u2195", vArr: "\u21D5", varrho: "\u03F1", varsigma: "\u03C2", varsubsetneq: "\u228A\uFE00", varsubsetneqq: "\u2ACB\uFE00", varsupsetneq: "\u228B\uFE00", varsupsetneqq: "\u2ACC\uFE00", vartheta: "\u03D1", vartriangleleft: "\u22B2", vartriangleright: "\u22B3", vBar: "\u2AE8", Vbar: "\u2AEB", vBarv: "\u2AE9", Vcy: "\u0412", vcy: "\u0432", vdash: "\u22A2", vDash: "\u22A8", Vdash: "\u22A9", VDash: "\u22AB", Vdashl: "\u2AE6", veebar: "\u22BB", vee: "\u2228", Vee: "\u22C1", veeeq: "\u225A", vellip: "\u22EE", verbar: "|", Verbar: "\u2016", vert: "|", Vert: "\u2016", VerticalBar: "\u2223", VerticalLine: "|", VerticalSeparator: "\u2758", VerticalTilde: "\u2240", VeryThinSpace: "\u200A", Vfr: "\u{1D519}", vfr: "\u{1D533}", vltri: "\u22B2", vnsub: "\u2282\u20D2", vnsup: "\u2283\u20D2", Vopf: "\u{1D54D}", vopf: "\u{1D567}", vprop: "\u221D", vrtri: "\u22B3", Vscr: "\u{1D4B1}", vscr: "\u{1D4CB}", vsubnE: "\u2ACB\uFE00", vsubne: "\u228A\uFE00", vsupnE: "\u2ACC\uFE00", vsupne: "\u228B\uFE00", Vvdash: "\u22AA", vzigzag: "\u299A", Wcirc: "\u0174", wcirc: "\u0175", wedbar: "\u2A5F", wedge: "\u2227", Wedge: "\u22C0", wedgeq: "\u2259", weierp: "\u2118", Wfr: "\u{1D51A}", wfr: "\u{1D534}", Wopf: "\u{1D54E}", wopf: "\u{1D568}", wp: "\u2118", wr: "\u2240", wreath: "\u2240", Wscr: "\u{1D4B2}", wscr: "\u{1D4CC}", xcap: "\u22C2", xcirc: "\u25EF", xcup: "\u22C3", xdtri: "\u25BD", Xfr: "\u{1D51B}", xfr: "\u{1D535}", xharr: "\u27F7", xhArr: "\u27FA", Xi: "\u039E", xi: "\u03BE", xlarr: "\u27F5", xlArr: "\u27F8", xmap: "\u27FC", xnis: "\u22FB", xodot: "\u2A00", Xopf: "\u{1D54F}", xopf: "\u{1D569}", xoplus: "\u2A01", xotime: "\u2A02", xrarr: "\u27F6", xrArr: "\u27F9", Xscr: "\u{1D4B3}", xscr: "\u{1D4CD}", xsqcup: "\u2A06", xuplus: "\u2A04", xutri: "\u25B3", xvee: "\u22C1", xwedge: "\u22C0", Yacute: "\xDD", yacute: "\xFD", YAcy: "\u042F", yacy: "\u044F", Ycirc: "\u0176", ycirc: "\u0177", Ycy: "\u042B", ycy: "\u044B", yen: "\xA5", Yfr: "\u{1D51C}", yfr: "\u{1D536}", YIcy: "\u0407", yicy: "\u0457", Yopf: "\u{1D550}", yopf: "\u{1D56A}", Yscr: "\u{1D4B4}", yscr: "\u{1D4CE}", YUcy: "\u042E", yucy: "\u044E", yuml: "\xFF", Yuml: "\u0178", Zacute: "\u0179", zacute: "\u017A", Zcaron: "\u017D", zcaron: "\u017E", Zcy: "\u0417", zcy: "\u0437", Zdot: "\u017B", zdot: "\u017C", zeetrf: "\u2128", ZeroWidthSpace: "\u200B", Zeta: "\u0396", zeta: "\u03B6", zfr: "\u{1D537}", Zfr: "\u2128", ZHcy: "\u0416", zhcy: "\u0436", zigrarr: "\u21DD", zopf: "\u{1D56B}", Zopf: "\u2124", Zscr: "\u{1D4B5}", zscr: "\u{1D4CF}", zwj: "\u200D", zwnj: "\u200C" }; + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/legacy.json +var require_legacy = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/legacy.json"(exports, module2) { + module2.exports = { Aacute: "\xC1", aacute: "\xE1", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", AElig: "\xC6", aelig: "\xE6", Agrave: "\xC0", agrave: "\xE0", amp: "&", AMP: "&", Aring: "\xC5", aring: "\xE5", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", brvbar: "\xA6", Ccedil: "\xC7", ccedil: "\xE7", cedil: "\xB8", cent: "\xA2", copy: "\xA9", COPY: "\xA9", curren: "\xA4", deg: "\xB0", divide: "\xF7", Eacute: "\xC9", eacute: "\xE9", Ecirc: "\xCA", ecirc: "\xEA", Egrave: "\xC8", egrave: "\xE8", ETH: "\xD0", eth: "\xF0", Euml: "\xCB", euml: "\xEB", frac12: "\xBD", frac14: "\xBC", frac34: "\xBE", gt: ">", GT: ">", Iacute: "\xCD", iacute: "\xED", Icirc: "\xCE", icirc: "\xEE", iexcl: "\xA1", Igrave: "\xCC", igrave: "\xEC", iquest: "\xBF", Iuml: "\xCF", iuml: "\xEF", laquo: "\xAB", lt: "<", LT: "<", macr: "\xAF", micro: "\xB5", middot: "\xB7", nbsp: "\xA0", not: "\xAC", Ntilde: "\xD1", ntilde: "\xF1", Oacute: "\xD3", oacute: "\xF3", Ocirc: "\xD4", ocirc: "\xF4", Ograve: "\xD2", ograve: "\xF2", ordf: "\xAA", ordm: "\xBA", Oslash: "\xD8", oslash: "\xF8", Otilde: "\xD5", otilde: "\xF5", Ouml: "\xD6", ouml: "\xF6", para: "\xB6", plusmn: "\xB1", pound: "\xA3", quot: '"', QUOT: '"', raquo: "\xBB", reg: "\xAE", REG: "\xAE", sect: "\xA7", shy: "\xAD", sup1: "\xB9", sup2: "\xB2", sup3: "\xB3", szlig: "\xDF", THORN: "\xDE", thorn: "\xFE", times: "\xD7", Uacute: "\xDA", uacute: "\xFA", Ucirc: "\xDB", ucirc: "\xFB", Ugrave: "\xD9", ugrave: "\xF9", uml: "\xA8", Uuml: "\xDC", uuml: "\xFC", Yacute: "\xDD", yacute: "\xFD", yen: "\xA5", yuml: "\xFF" }; + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/xml.json +var require_xml = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/xml.json"(exports, module2) { + module2.exports = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' }; + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/decode.json +var require_decode = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/decode.json"(exports, module2) { + module2.exports = { "0": 65533, "128": 8364, "130": 8218, "131": 402, "132": 8222, "133": 8230, "134": 8224, "135": 8225, "136": 710, "137": 8240, "138": 352, "139": 8249, "140": 338, "142": 381, "145": 8216, "146": 8217, "147": 8220, "148": 8221, "149": 8226, "150": 8211, "151": 8212, "152": 732, "153": 8482, "154": 353, "155": 8250, "156": 339, "158": 382, "159": 376 }; + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/decode_codepoint.js +var require_decode_codepoint = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/decode_codepoint.js"(exports) { + "use strict"; + var __importDefault = exports && exports.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + var decode_json_1 = __importDefault(require_decode()); + var fromCodePoint = String.fromCodePoint || function(codePoint) { + var output = ""; + if (codePoint > 65535) { + codePoint -= 65536; + output += String.fromCharCode(codePoint >>> 10 & 1023 | 55296); + codePoint = 56320 | codePoint & 1023; + } + output += String.fromCharCode(codePoint); + return output; + }; + function decodeCodePoint(codePoint) { + if (codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111) { + return "\uFFFD"; + } + if (codePoint in decode_json_1.default) { + codePoint = decode_json_1.default[codePoint]; + } + return fromCodePoint(codePoint); + } + exports.default = decodeCodePoint; + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/decode.js +var require_decode2 = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/decode.js"(exports) { + "use strict"; + var __importDefault = exports && exports.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.decodeHTML = exports.decodeHTMLStrict = exports.decodeXML = void 0; + var entities_json_1 = __importDefault(require_entities()); + var legacy_json_1 = __importDefault(require_legacy()); + var xml_json_1 = __importDefault(require_xml()); + var decode_codepoint_1 = __importDefault(require_decode_codepoint()); + var strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g; + exports.decodeXML = getStrictDecoder(xml_json_1.default); + exports.decodeHTMLStrict = getStrictDecoder(entities_json_1.default); + function getStrictDecoder(map) { + var replace = getReplacer(map); + return function(str) { + return String(str).replace(strictEntityRe, replace); + }; + } + var sorter = function(a, b) { + return a < b ? 1 : -1; + }; + exports.decodeHTML = function() { + var legacy = Object.keys(legacy_json_1.default).sort(sorter); + var keys = Object.keys(entities_json_1.default).sort(sorter); + for (var i = 0, j = 0; i < keys.length; i++) { + if (legacy[j] === keys[i]) { + keys[i] += ";?"; + j++; + } else { + keys[i] += ";"; + } + } + var re = new RegExp("&(?:" + keys.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g"); + var replace = getReplacer(entities_json_1.default); + function replacer(str) { + if (str.substr(-1) !== ";") + str += ";"; + return replace(str); + } + return function(str) { + return String(str).replace(re, replacer); + }; + }(); + function getReplacer(map) { + return function replace(str) { + if (str.charAt(1) === "#") { + var secondChar = str.charAt(2); + if (secondChar === "X" || secondChar === "x") { + return decode_codepoint_1.default(parseInt(str.substr(3), 16)); + } + return decode_codepoint_1.default(parseInt(str.substr(2), 10)); + } + return map[str.slice(1, -1)] || str; + }; + } + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/encode.js +var require_encode = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/encode.js"(exports) { + "use strict"; + var __importDefault = exports && exports.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = void 0; + var xml_json_1 = __importDefault(require_xml()); + var inverseXML = getInverseObj(xml_json_1.default); + var xmlReplacer = getInverseReplacer(inverseXML); + exports.encodeXML = getASCIIEncoder(inverseXML); + var entities_json_1 = __importDefault(require_entities()); + var inverseHTML = getInverseObj(entities_json_1.default); + var htmlReplacer = getInverseReplacer(inverseHTML); + exports.encodeHTML = getInverse(inverseHTML, htmlReplacer); + exports.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML); + function getInverseObj(obj) { + return Object.keys(obj).sort().reduce(function(inverse, name) { + inverse[obj[name]] = "&" + name + ";"; + return inverse; + }, {}); + } + function getInverseReplacer(inverse) { + var single = []; + var multiple = []; + for (var _i = 0, _a = Object.keys(inverse); _i < _a.length; _i++) { + var k = _a[_i]; + if (k.length === 1) { + single.push("\\" + k); + } else { + multiple.push(k); + } + } + single.sort(); + for (var start = 0; start < single.length - 1; start++) { + var end = start; + while (end < single.length - 1 && single[end].charCodeAt(1) + 1 === single[end + 1].charCodeAt(1)) { + end += 1; + } + var count = 1 + end - start; + if (count < 3) + continue; + single.splice(start, count, single[start] + "-" + single[end]); + } + multiple.unshift("[" + single.join("") + "]"); + return new RegExp(multiple.join("|"), "g"); + } + var reNonASCII = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g; + var getCodePoint = String.prototype.codePointAt != null ? function(str) { + return str.codePointAt(0); + } : function(c) { + return (c.charCodeAt(0) - 55296) * 1024 + c.charCodeAt(1) - 56320 + 65536; + }; + function singleCharReplacer(c) { + return "&#x" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)).toString(16).toUpperCase() + ";"; + } + function getInverse(inverse, re) { + return function(data) { + return data.replace(re, function(name) { + return inverse[name]; + }).replace(reNonASCII, singleCharReplacer); + }; + } + var reEscapeChars = new RegExp(xmlReplacer.source + "|" + reNonASCII.source, "g"); + function escape(data) { + return data.replace(reEscapeChars, singleCharReplacer); + } + exports.escape = escape; + function escapeUTF8(data) { + return data.replace(xmlReplacer, singleCharReplacer); + } + exports.escapeUTF8 = escapeUTF8; + function getASCIIEncoder(obj) { + return function(data) { + return data.replace(reEscapeChars, function(c) { + return obj[c] || singleCharReplacer(c); + }); + }; + } + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/index.js +var require_lib3 = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.encodeHTML5 = exports.encodeHTML4 = exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = void 0; + var decode_1 = require_decode2(); + var encode_1 = require_encode(); + function decode(data, level) { + return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(data); + } + exports.decode = decode; + function decodeStrict(data, level) { + return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data); + } + exports.decodeStrict = decodeStrict; + function encode(data, level) { + return (!level || level <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(data); + } + exports.encode = encode; + var encode_2 = require_encode(); + Object.defineProperty(exports, "encodeXML", { enumerable: true, get: function() { + return encode_2.encodeXML; + } }); + Object.defineProperty(exports, "encodeHTML", { enumerable: true, get: function() { + return encode_2.encodeHTML; + } }); + Object.defineProperty(exports, "encodeNonAsciiHTML", { enumerable: true, get: function() { + return encode_2.encodeNonAsciiHTML; + } }); + Object.defineProperty(exports, "escape", { enumerable: true, get: function() { + return encode_2.escape; + } }); + Object.defineProperty(exports, "escapeUTF8", { enumerable: true, get: function() { + return encode_2.escapeUTF8; + } }); + Object.defineProperty(exports, "encodeHTML4", { enumerable: true, get: function() { + return encode_2.encodeHTML; + } }); + Object.defineProperty(exports, "encodeHTML5", { enumerable: true, get: function() { + return encode_2.encodeHTML; + } }); + var decode_2 = require_decode2(); + Object.defineProperty(exports, "decodeXML", { enumerable: true, get: function() { + return decode_2.decodeXML; + } }); + Object.defineProperty(exports, "decodeHTML", { enumerable: true, get: function() { + return decode_2.decodeHTML; + } }); + Object.defineProperty(exports, "decodeHTMLStrict", { enumerable: true, get: function() { + return decode_2.decodeHTMLStrict; + } }); + Object.defineProperty(exports, "decodeHTML4", { enumerable: true, get: function() { + return decode_2.decodeHTML; + } }); + Object.defineProperty(exports, "decodeHTML5", { enumerable: true, get: function() { + return decode_2.decodeHTML; + } }); + Object.defineProperty(exports, "decodeHTML4Strict", { enumerable: true, get: function() { + return decode_2.decodeHTMLStrict; + } }); + Object.defineProperty(exports, "decodeHTML5Strict", { enumerable: true, get: function() { + return decode_2.decodeHTMLStrict; + } }); + Object.defineProperty(exports, "decodeXMLStrict", { enumerable: true, get: function() { + return decode_2.decodeXML; + } }); + } +}); + +// node_modules/fast-xml-parser/src/util.js +var require_util = __commonJS({ + "node_modules/fast-xml-parser/src/util.js"(exports) { + "use strict"; + var nameStartChar = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"; + var nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040"; + var nameRegexp = "[" + nameStartChar + "][" + nameChar + "]*"; + var regexName = new RegExp("^" + nameRegexp + "$"); + var getAllMatches = function(string, regex) { + const matches = []; + let match = regex.exec(string); + while (match) { + const allmatches = []; + const len = match.length; + for (let index = 0; index < len; index++) { + allmatches.push(match[index]); + } + matches.push(allmatches); + match = regex.exec(string); + } + return matches; + }; + var isName = function(string) { + const match = regexName.exec(string); + return !(match === null || typeof match === "undefined"); + }; + exports.isExist = function(v) { + return typeof v !== "undefined"; + }; + exports.isEmptyObject = function(obj) { + return Object.keys(obj).length === 0; + }; + exports.merge = function(target, a, arrayMode) { + if (a) { + const keys = Object.keys(a); + const len = keys.length; + for (let i = 0; i < len; i++) { + if (arrayMode === "strict") { + target[keys[i]] = [a[keys[i]]]; + } else { + target[keys[i]] = a[keys[i]]; + } + } + } + }; + exports.getValue = function(v) { + if (exports.isExist(v)) { + return v; + } else { + return ""; + } + }; + exports.buildOptions = function(options, defaultOptions, props) { + var newOptions = {}; + if (!options) { + return defaultOptions; + } + for (let i = 0; i < props.length; i++) { + if (options[props[i]] !== void 0) { + newOptions[props[i]] = options[props[i]]; + } else { + newOptions[props[i]] = defaultOptions[props[i]]; + } + } + return newOptions; + }; + exports.isTagNameInArrayMode = function(tagName, arrayMode, parentTagName) { + if (arrayMode === false) { + return false; + } else if (arrayMode instanceof RegExp) { + return arrayMode.test(tagName); + } else if (typeof arrayMode === "function") { + return !!arrayMode(tagName, parentTagName); + } + return arrayMode === "strict"; + }; + exports.isName = isName; + exports.getAllMatches = getAllMatches; + exports.nameRegexp = nameRegexp; + } +}); + +// node_modules/fast-xml-parser/src/node2json.js +var require_node2json = __commonJS({ + "node_modules/fast-xml-parser/src/node2json.js"(exports) { + "use strict"; + var util = require_util(); + var convertToJson = function(node, options, parentTagName) { + const jObj = {}; + if ((!node.child || util.isEmptyObject(node.child)) && (!node.attrsMap || util.isEmptyObject(node.attrsMap))) { + return util.isExist(node.val) ? node.val : ""; + } + if (util.isExist(node.val) && !(typeof node.val === "string" && (node.val === "" || node.val === options.cdataPositionChar))) { + const asArray = util.isTagNameInArrayMode(node.tagname, options.arrayMode, parentTagName); + jObj[options.textNodeName] = asArray ? [node.val] : node.val; + } + util.merge(jObj, node.attrsMap, options.arrayMode); + const keys = Object.keys(node.child); + for (let index = 0; index < keys.length; index++) { + const tagName = keys[index]; + if (node.child[tagName] && node.child[tagName].length > 1) { + jObj[tagName] = []; + for (let tag in node.child[tagName]) { + if (node.child[tagName].hasOwnProperty(tag)) { + jObj[tagName].push(convertToJson(node.child[tagName][tag], options, tagName)); + } + } + } else { + const result = convertToJson(node.child[tagName][0], options, tagName); + const asArray = options.arrayMode === true && typeof result === "object" || util.isTagNameInArrayMode(tagName, options.arrayMode, parentTagName); + jObj[tagName] = asArray ? [result] : result; + } + } + return jObj; + }; + exports.convertToJson = convertToJson; + } +}); + +// node_modules/fast-xml-parser/src/xmlNode.js +var require_xmlNode = __commonJS({ + "node_modules/fast-xml-parser/src/xmlNode.js"(exports, module2) { + "use strict"; + module2.exports = function(tagname, parent, val) { + this.tagname = tagname; + this.parent = parent; + this.child = {}; + this.attrsMap = {}; + this.val = val; + this.addChild = function(child) { + if (Array.isArray(this.child[child.tagname])) { + this.child[child.tagname].push(child); + } else { + this.child[child.tagname] = [child]; + } + }; + }; + } +}); + +// node_modules/fast-xml-parser/src/xmlstr2xmlnode.js +var require_xmlstr2xmlnode = __commonJS({ + "node_modules/fast-xml-parser/src/xmlstr2xmlnode.js"(exports) { + "use strict"; + var util = require_util(); + var buildOptions = require_util().buildOptions; + var xmlNode = require_xmlNode(); + var regx = "<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g, util.nameRegexp); + if (!Number.parseInt && window.parseInt) { + Number.parseInt = window.parseInt; + } + if (!Number.parseFloat && window.parseFloat) { + Number.parseFloat = window.parseFloat; + } + var defaultOptions = { + attributeNamePrefix: "@_", + attrNodeName: false, + textNodeName: "#text", + ignoreAttributes: true, + ignoreNameSpace: false, + allowBooleanAttributes: false, + parseNodeValue: true, + parseAttributeValue: false, + arrayMode: false, + trimValues: true, + cdataTagName: false, + cdataPositionChar: "\\c", + tagValueProcessor: function(a, tagName) { + return a; + }, + attrValueProcessor: function(a, attrName) { + return a; + }, + stopNodes: [] + }; + exports.defaultOptions = defaultOptions; + var props = [ + "attributeNamePrefix", + "attrNodeName", + "textNodeName", + "ignoreAttributes", + "ignoreNameSpace", + "allowBooleanAttributes", + "parseNodeValue", + "parseAttributeValue", + "arrayMode", + "trimValues", + "cdataTagName", + "cdataPositionChar", + "tagValueProcessor", + "attrValueProcessor", + "parseTrueNumberOnly", + "stopNodes" + ]; + exports.props = props; + function processTagValue(tagName, val, options) { + if (val) { + if (options.trimValues) { + val = val.trim(); + } + val = options.tagValueProcessor(val, tagName); + val = parseValue(val, options.parseNodeValue, options.parseTrueNumberOnly); + } + return val; + } + function resolveNameSpace(tagname, options) { + if (options.ignoreNameSpace) { + const tags = tagname.split(":"); + const prefix = tagname.charAt(0) === "/" ? "/" : ""; + if (tags[0] === "xmlns") { + return ""; + } + if (tags.length === 2) { + tagname = prefix + tags[1]; + } + } + return tagname; + } + function parseValue(val, shouldParse, parseTrueNumberOnly) { + if (shouldParse && typeof val === "string") { + let parsed; + if (val.trim() === "" || isNaN(val)) { + parsed = val === "true" ? true : val === "false" ? false : val; + } else { + if (val.indexOf("0x") !== -1) { + parsed = Number.parseInt(val, 16); + } else if (val.indexOf(".") !== -1) { + parsed = Number.parseFloat(val); + val = val.replace(/\.?0+$/, ""); + } else { + parsed = Number.parseInt(val, 10); + } + if (parseTrueNumberOnly) { + parsed = String(parsed) === val ? parsed : val; + } + } + return parsed; + } else { + if (util.isExist(val)) { + return val; + } else { + return ""; + } + } + } + var attrsRegx = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`, "g"); + function buildAttributesMap(attrStr, options) { + if (!options.ignoreAttributes && typeof attrStr === "string") { + attrStr = attrStr.replace(/\r?\n/g, " "); + const matches = util.getAllMatches(attrStr, attrsRegx); + const len = matches.length; + const attrs = {}; + for (let i = 0; i < len; i++) { + const attrName = resolveNameSpace(matches[i][1], options); + if (attrName.length) { + if (matches[i][4] !== void 0) { + if (options.trimValues) { + matches[i][4] = matches[i][4].trim(); + } + matches[i][4] = options.attrValueProcessor(matches[i][4], attrName); + attrs[options.attributeNamePrefix + attrName] = parseValue( + matches[i][4], + options.parseAttributeValue, + options.parseTrueNumberOnly + ); + } else if (options.allowBooleanAttributes) { + attrs[options.attributeNamePrefix + attrName] = true; + } + } + } + if (!Object.keys(attrs).length) { + return; + } + if (options.attrNodeName) { + const attrCollection = {}; + attrCollection[options.attrNodeName] = attrs; + return attrCollection; + } + return attrs; + } + } + var getTraversalObj = function(xmlData, options) { + xmlData = xmlData.replace(/\r\n?/g, "\n"); + options = buildOptions(options, defaultOptions, props); + const xmlObj = new xmlNode("!xml"); + let currentNode = xmlObj; + let textData = ""; + for (let i = 0; i < xmlData.length; i++) { + const ch = xmlData[i]; + if (ch === "<") { + if (xmlData[i + 1] === "/") { + const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed."); + let tagName = xmlData.substring(i + 2, closeIndex).trim(); + if (options.ignoreNameSpace) { + const colonIndex = tagName.indexOf(":"); + if (colonIndex !== -1) { + tagName = tagName.substr(colonIndex + 1); + } + } + if (currentNode) { + if (currentNode.val) { + currentNode.val = util.getValue(currentNode.val) + "" + processTagValue(tagName, textData, options); + } else { + currentNode.val = processTagValue(tagName, textData, options); + } + } + if (options.stopNodes.length && options.stopNodes.includes(currentNode.tagname)) { + currentNode.child = []; + if (currentNode.attrsMap == void 0) { + currentNode.attrsMap = {}; + } + currentNode.val = xmlData.substr(currentNode.startIndex + 1, i - currentNode.startIndex - 1); + } + currentNode = currentNode.parent; + textData = ""; + i = closeIndex; + } else if (xmlData[i + 1] === "?") { + i = findClosingIndex(xmlData, "?>", i, "Pi Tag is not closed."); + } else if (xmlData.substr(i + 1, 3) === "!--") { + i = findClosingIndex(xmlData, "-->", i, "Comment is not closed."); + } else if (xmlData.substr(i + 1, 2) === "!D") { + const closeIndex = findClosingIndex(xmlData, ">", i, "DOCTYPE is not closed."); + const tagExp = xmlData.substring(i, closeIndex); + if (tagExp.indexOf("[") >= 0) { + i = xmlData.indexOf("]>", i) + 1; + } else { + i = closeIndex; + } + } else if (xmlData.substr(i + 1, 2) === "![") { + const closeIndex = findClosingIndex(xmlData, "]]>", i, "CDATA is not closed.") - 2; + const tagExp = xmlData.substring(i + 9, closeIndex); + if (textData) { + currentNode.val = util.getValue(currentNode.val) + "" + processTagValue(currentNode.tagname, textData, options); + textData = ""; + } + if (options.cdataTagName) { + const childNode = new xmlNode(options.cdataTagName, currentNode, tagExp); + currentNode.addChild(childNode); + currentNode.val = util.getValue(currentNode.val) + options.cdataPositionChar; + if (tagExp) { + childNode.val = tagExp; + } + } else { + currentNode.val = (currentNode.val || "") + (tagExp || ""); + } + i = closeIndex + 2; + } else { + const result = closingIndexForOpeningTag(xmlData, i + 1); + let tagExp = result.data; + const closeIndex = result.index; + const separatorIndex = tagExp.indexOf(" "); + let tagName = tagExp; + let shouldBuildAttributesMap = true; + if (separatorIndex !== -1) { + tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, ""); + tagExp = tagExp.substr(separatorIndex + 1); + } + if (options.ignoreNameSpace) { + const colonIndex = tagName.indexOf(":"); + if (colonIndex !== -1) { + tagName = tagName.substr(colonIndex + 1); + shouldBuildAttributesMap = tagName !== result.data.substr(colonIndex + 1); + } + } + if (currentNode && textData) { + if (currentNode.tagname !== "!xml") { + currentNode.val = util.getValue(currentNode.val) + "" + processTagValue(currentNode.tagname, textData, options); + } + } + if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) { + if (tagName[tagName.length - 1] === "/") { + tagName = tagName.substr(0, tagName.length - 1); + tagExp = tagName; + } else { + tagExp = tagExp.substr(0, tagExp.length - 1); + } + const childNode = new xmlNode(tagName, currentNode, ""); + if (tagName !== tagExp) { + childNode.attrsMap = buildAttributesMap(tagExp, options); + } + currentNode.addChild(childNode); + } else { + const childNode = new xmlNode(tagName, currentNode); + if (options.stopNodes.length && options.stopNodes.includes(childNode.tagname)) { + childNode.startIndex = closeIndex; + } + if (tagName !== tagExp && shouldBuildAttributesMap) { + childNode.attrsMap = buildAttributesMap(tagExp, options); + } + currentNode.addChild(childNode); + currentNode = childNode; + } + textData = ""; + i = closeIndex; + } + } else { + textData += xmlData[i]; + } + } + return xmlObj; + }; + function closingIndexForOpeningTag(data, i) { + let attrBoundary; + let tagExp = ""; + for (let index = i; index < data.length; index++) { + let ch = data[index]; + if (attrBoundary) { + if (ch === attrBoundary) + attrBoundary = ""; + } else if (ch === '"' || ch === "'") { + attrBoundary = ch; + } else if (ch === ">") { + return { + data: tagExp, + index + }; + } else if (ch === " ") { + ch = " "; + } + tagExp += ch; + } + } + function findClosingIndex(xmlData, str, i, errMsg) { + const closingIndex = xmlData.indexOf(str, i); + if (closingIndex === -1) { + throw new Error(errMsg); + } else { + return closingIndex + str.length - 1; + } + } + exports.getTraversalObj = getTraversalObj; + } +}); + +// node_modules/fast-xml-parser/src/validator.js +var require_validator = __commonJS({ + "node_modules/fast-xml-parser/src/validator.js"(exports) { + "use strict"; + var util = require_util(); + var defaultOptions = { + allowBooleanAttributes: false + }; + var props = ["allowBooleanAttributes"]; + exports.validate = function(xmlData, options) { + options = util.buildOptions(options, defaultOptions, props); + const tags = []; + let tagFound = false; + let reachedRoot = false; + if (xmlData[0] === "\uFEFF") { + xmlData = xmlData.substr(1); + } + for (let i = 0; i < xmlData.length; i++) { + if (xmlData[i] === "<" && xmlData[i + 1] === "?") { + i += 2; + i = readPI(xmlData, i); + if (i.err) + return i; + } else if (xmlData[i] === "<") { + i++; + if (xmlData[i] === "!") { + i = readCommentAndCDATA(xmlData, i); + continue; + } else { + let closingTag = false; + if (xmlData[i] === "/") { + closingTag = true; + i++; + } + let tagName = ""; + for (; i < xmlData.length && xmlData[i] !== ">" && xmlData[i] !== " " && xmlData[i] !== " " && xmlData[i] !== "\n" && xmlData[i] !== "\r"; i++) { + tagName += xmlData[i]; + } + tagName = tagName.trim(); + if (tagName[tagName.length - 1] === "/") { + tagName = tagName.substring(0, tagName.length - 1); + i--; + } + if (!validateTagName(tagName)) { + let msg; + if (tagName.trim().length === 0) { + msg = "There is an unnecessary space between tag name and backward slash ' 0) { + return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, i)); + } else { + const otg = tags.pop(); + if (tagName !== otg) { + return getErrorObject("InvalidTag", "Closing tag '" + otg + "' is expected inplace of '" + tagName + "'.", getLineNumberForPosition(xmlData, i)); + } + if (tags.length == 0) { + reachedRoot = true; + } + } + } else { + const isValid = validateAttributeString(attrStr, options); + if (isValid !== true) { + return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line)); + } + if (reachedRoot === true) { + return getErrorObject("InvalidXml", "Multiple possible root nodes found.", getLineNumberForPosition(xmlData, i)); + } else { + tags.push(tagName); + } + tagFound = true; + } + for (i++; i < xmlData.length; i++) { + if (xmlData[i] === "<") { + if (xmlData[i + 1] === "!") { + i++; + i = readCommentAndCDATA(xmlData, i); + continue; + } else if (xmlData[i + 1] === "?") { + i = readPI(xmlData, ++i); + if (i.err) + return i; + } else { + break; + } + } else if (xmlData[i] === "&") { + const afterAmp = validateAmpersand(xmlData, i); + if (afterAmp == -1) + return getErrorObject("InvalidChar", "char '&' is not expected.", getLineNumberForPosition(xmlData, i)); + i = afterAmp; + } + } + if (xmlData[i] === "<") { + i--; + } + } + } else { + if (xmlData[i] === " " || xmlData[i] === " " || xmlData[i] === "\n" || xmlData[i] === "\r") { + continue; + } + return getErrorObject("InvalidChar", "char '" + xmlData[i] + "' is not expected.", getLineNumberForPosition(xmlData, i)); + } + } + if (!tagFound) { + return getErrorObject("InvalidXml", "Start tag expected.", 1); + } else if (tags.length > 0) { + return getErrorObject("InvalidXml", "Invalid '" + JSON.stringify(tags, null, 4).replace(/\r?\n/g, "") + "' found.", 1); + } + return true; + }; + function readPI(xmlData, i) { + var start = i; + for (; i < xmlData.length; i++) { + if (xmlData[i] == "?" || xmlData[i] == " ") { + var tagname = xmlData.substr(start, i - start); + if (i > 5 && tagname === "xml") { + return getErrorObject("InvalidXml", "XML declaration allowed only at the start of the document.", getLineNumberForPosition(xmlData, i)); + } else if (xmlData[i] == "?" && xmlData[i + 1] == ">") { + i++; + break; + } else { + continue; + } + } + } + return i; + } + function readCommentAndCDATA(xmlData, i) { + if (xmlData.length > i + 5 && xmlData[i + 1] === "-" && xmlData[i + 2] === "-") { + for (i += 3; i < xmlData.length; i++) { + if (xmlData[i] === "-" && xmlData[i + 1] === "-" && xmlData[i + 2] === ">") { + i += 2; + break; + } + } + } else if (xmlData.length > i + 8 && xmlData[i + 1] === "D" && xmlData[i + 2] === "O" && xmlData[i + 3] === "C" && xmlData[i + 4] === "T" && xmlData[i + 5] === "Y" && xmlData[i + 6] === "P" && xmlData[i + 7] === "E") { + let angleBracketsCount = 1; + for (i += 8; i < xmlData.length; i++) { + if (xmlData[i] === "<") { + angleBracketsCount++; + } else if (xmlData[i] === ">") { + angleBracketsCount--; + if (angleBracketsCount === 0) { + break; + } + } + } + } else if (xmlData.length > i + 9 && xmlData[i + 1] === "[" && xmlData[i + 2] === "C" && xmlData[i + 3] === "D" && xmlData[i + 4] === "A" && xmlData[i + 5] === "T" && xmlData[i + 6] === "A" && xmlData[i + 7] === "[") { + for (i += 8; i < xmlData.length; i++) { + if (xmlData[i] === "]" && xmlData[i + 1] === "]" && xmlData[i + 2] === ">") { + i += 2; + break; + } + } + } + return i; + } + var doubleQuote = '"'; + var singleQuote = "'"; + function readAttributeStr(xmlData, i) { + let attrStr = ""; + let startChar = ""; + let tagClosed = false; + for (; i < xmlData.length; i++) { + if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) { + if (startChar === "") { + startChar = xmlData[i]; + } else if (startChar !== xmlData[i]) { + continue; + } else { + startChar = ""; + } + } else if (xmlData[i] === ">") { + if (startChar === "") { + tagClosed = true; + break; + } + } + attrStr += xmlData[i]; + } + if (startChar !== "") { + return false; + } + return { + value: attrStr, + index: i, + tagClosed + }; + } + var validAttrStrRegxp = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g"); + function validateAttributeString(attrStr, options) { + const matches = util.getAllMatches(attrStr, validAttrStrRegxp); + const attrNames = {}; + for (let i = 0; i < matches.length; i++) { + if (matches[i][1].length === 0) { + return getErrorObject("InvalidAttr", "Attribute '" + matches[i][2] + "' has no space in starting.", getPositionFromMatch(attrStr, matches[i][0])); + } else if (matches[i][3] === void 0 && !options.allowBooleanAttributes) { + return getErrorObject("InvalidAttr", "boolean attribute '" + matches[i][2] + "' is not allowed.", getPositionFromMatch(attrStr, matches[i][0])); + } + const attrName = matches[i][2]; + if (!validateAttrName(attrName)) { + return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is an invalid name.", getPositionFromMatch(attrStr, matches[i][0])); + } + if (!attrNames.hasOwnProperty(attrName)) { + attrNames[attrName] = 1; + } else { + return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is repeated.", getPositionFromMatch(attrStr, matches[i][0])); + } + } + return true; + } + function validateNumberAmpersand(xmlData, i) { + let re = /\d/; + if (xmlData[i] === "x") { + i++; + re = /[\da-fA-F]/; + } + for (; i < xmlData.length; i++) { + if (xmlData[i] === ";") + return i; + if (!xmlData[i].match(re)) + break; + } + return -1; + } + function validateAmpersand(xmlData, i) { + i++; + if (xmlData[i] === ";") + return -1; + if (xmlData[i] === "#") { + i++; + return validateNumberAmpersand(xmlData, i); + } + let count = 0; + for (; i < xmlData.length; i++, count++) { + if (xmlData[i].match(/\w/) && count < 20) + continue; + if (xmlData[i] === ";") + break; + return -1; + } + return i; + } + function getErrorObject(code, message, lineNumber) { + return { + err: { + code, + msg: message, + line: lineNumber + } + }; + } + function validateAttrName(attrName) { + return util.isName(attrName); + } + function validateTagName(tagname) { + return util.isName(tagname); + } + function getLineNumberForPosition(xmlData, index) { + var lines = xmlData.substring(0, index).split(/\r?\n/); + return lines.length; + } + function getPositionFromMatch(attrStr, match) { + return attrStr.indexOf(match) + match.length; + } + } +}); + +// node_modules/fast-xml-parser/src/nimndata.js +var require_nimndata = __commonJS({ + "node_modules/fast-xml-parser/src/nimndata.js"(exports) { + "use strict"; + var char = function(a) { + return String.fromCharCode(a); + }; + var chars = { + nilChar: char(176), + missingChar: char(201), + nilPremitive: char(175), + missingPremitive: char(200), + emptyChar: char(178), + emptyValue: char(177), + boundryChar: char(179), + objStart: char(198), + arrStart: char(204), + arrayEnd: char(185) + }; + var charsArr = [ + chars.nilChar, + chars.nilPremitive, + chars.missingChar, + chars.missingPremitive, + chars.boundryChar, + chars.emptyChar, + chars.emptyValue, + chars.arrayEnd, + chars.objStart, + chars.arrStart + ]; + var _e = function(node, e_schema, options) { + if (typeof e_schema === "string") { + if (node && node[0] && node[0].val !== void 0) { + return getValue(node[0].val, e_schema); + } else { + return getValue(node, e_schema); + } + } else { + const hasValidData = hasData(node); + if (hasValidData === true) { + let str = ""; + if (Array.isArray(e_schema)) { + str += chars.arrStart; + const itemSchema = e_schema[0]; + const arr_len = node.length; + if (typeof itemSchema === "string") { + for (let arr_i = 0; arr_i < arr_len; arr_i++) { + const r = getValue(node[arr_i].val, itemSchema); + str = processValue(str, r); + } + } else { + for (let arr_i = 0; arr_i < arr_len; arr_i++) { + const r = _e(node[arr_i], itemSchema, options); + str = processValue(str, r); + } + } + str += chars.arrayEnd; + } else { + str += chars.objStart; + const keys = Object.keys(e_schema); + if (Array.isArray(node)) { + node = node[0]; + } + for (let i in keys) { + const key = keys[i]; + let r; + if (!options.ignoreAttributes && node.attrsMap && node.attrsMap[key]) { + r = _e(node.attrsMap[key], e_schema[key], options); + } else if (key === options.textNodeName) { + r = _e(node.val, e_schema[key], options); + } else { + r = _e(node.child[key], e_schema[key], options); + } + str = processValue(str, r); + } + } + return str; + } else { + return hasValidData; + } + } + }; + var getValue = function(a) { + switch (a) { + case void 0: + return chars.missingPremitive; + case null: + return chars.nilPremitive; + case "": + return chars.emptyValue; + default: + return a; + } + }; + var processValue = function(str, r) { + if (!isAppChar(r[0]) && !isAppChar(str[str.length - 1])) { + str += chars.boundryChar; + } + return str + r; + }; + var isAppChar = function(ch) { + return charsArr.indexOf(ch) !== -1; + }; + function hasData(jObj) { + if (jObj === void 0) { + return chars.missingChar; + } else if (jObj === null) { + return chars.nilChar; + } else if (jObj.child && Object.keys(jObj.child).length === 0 && (!jObj.attrsMap || Object.keys(jObj.attrsMap).length === 0)) { + return chars.emptyChar; + } else { + return true; + } + } + var x2j = require_xmlstr2xmlnode(); + var buildOptions = require_util().buildOptions; + var convert2nimn = function(node, e_schema, options) { + options = buildOptions(options, x2j.defaultOptions, x2j.props); + return _e(node, e_schema, options); + }; + exports.convert2nimn = convert2nimn; + } +}); + +// node_modules/fast-xml-parser/src/node2json_str.js +var require_node2json_str = __commonJS({ + "node_modules/fast-xml-parser/src/node2json_str.js"(exports) { + "use strict"; + var util = require_util(); + var buildOptions = require_util().buildOptions; + var x2j = require_xmlstr2xmlnode(); + var convertToJsonString = function(node, options) { + options = buildOptions(options, x2j.defaultOptions, x2j.props); + options.indentBy = options.indentBy || ""; + return _cToJsonStr(node, options, 0); + }; + var _cToJsonStr = function(node, options, level) { + let jObj = "{"; + const keys = Object.keys(node.child); + for (let index = 0; index < keys.length; index++) { + var tagname = keys[index]; + if (node.child[tagname] && node.child[tagname].length > 1) { + jObj += '"' + tagname + '" : [ '; + for (var tag in node.child[tagname]) { + jObj += _cToJsonStr(node.child[tagname][tag], options) + " , "; + } + jObj = jObj.substr(0, jObj.length - 1) + " ] "; + } else { + jObj += '"' + tagname + '" : ' + _cToJsonStr(node.child[tagname][0], options) + " ,"; + } + } + util.merge(jObj, node.attrsMap); + if (util.isEmptyObject(jObj)) { + return util.isExist(node.val) ? node.val : ""; + } else { + if (util.isExist(node.val)) { + if (!(typeof node.val === "string" && (node.val === "" || node.val === options.cdataPositionChar))) { + jObj += '"' + options.textNodeName + '" : ' + stringval(node.val); + } + } + } + if (jObj[jObj.length - 1] === ",") { + jObj = jObj.substr(0, jObj.length - 2); + } + return jObj + "}"; + }; + function stringval(v) { + if (v === true || v === false || !isNaN(v)) { + return v; + } else { + return '"' + v + '"'; + } + } + exports.convertToJsonString = convertToJsonString; + } +}); + +// node_modules/fast-xml-parser/src/json2xml.js +var require_json2xml = __commonJS({ + "node_modules/fast-xml-parser/src/json2xml.js"(exports, module2) { + "use strict"; + var buildOptions = require_util().buildOptions; + var defaultOptions = { + attributeNamePrefix: "@_", + attrNodeName: false, + textNodeName: "#text", + ignoreAttributes: true, + cdataTagName: false, + cdataPositionChar: "\\c", + format: false, + indentBy: " ", + supressEmptyNode: false, + tagValueProcessor: function(a) { + return a; + }, + attrValueProcessor: function(a) { + return a; + } + }; + var props = [ + "attributeNamePrefix", + "attrNodeName", + "textNodeName", + "ignoreAttributes", + "cdataTagName", + "cdataPositionChar", + "format", + "indentBy", + "supressEmptyNode", + "tagValueProcessor", + "attrValueProcessor" + ]; + function Parser(options) { + this.options = buildOptions(options, defaultOptions, props); + if (this.options.ignoreAttributes || this.options.attrNodeName) { + this.isAttribute = function() { + return false; + }; + } else { + this.attrPrefixLen = this.options.attributeNamePrefix.length; + this.isAttribute = isAttribute; + } + if (this.options.cdataTagName) { + this.isCDATA = isCDATA; + } else { + this.isCDATA = function() { + return false; + }; + } + this.replaceCDATAstr = replaceCDATAstr; + this.replaceCDATAarr = replaceCDATAarr; + if (this.options.format) { + this.indentate = indentate; + this.tagEndChar = ">\n"; + this.newLine = "\n"; + } else { + this.indentate = function() { + return ""; + }; + this.tagEndChar = ">"; + this.newLine = ""; + } + if (this.options.supressEmptyNode) { + this.buildTextNode = buildEmptyTextNode; + this.buildObjNode = buildEmptyObjNode; + } else { + this.buildTextNode = buildTextValNode; + this.buildObjNode = buildObjectNode; + } + this.buildTextValNode = buildTextValNode; + this.buildObjectNode = buildObjectNode; + } + Parser.prototype.parse = function(jObj) { + return this.j2x(jObj, 0).val; + }; + Parser.prototype.j2x = function(jObj, level) { + let attrStr = ""; + let val = ""; + const keys = Object.keys(jObj); + const len = keys.length; + for (let i = 0; i < len; i++) { + const key = keys[i]; + if (typeof jObj[key] === "undefined") { + } else if (jObj[key] === null) { + val += this.indentate(level) + "<" + key + "/" + this.tagEndChar; + } else if (jObj[key] instanceof Date) { + val += this.buildTextNode(jObj[key], key, "", level); + } else if (typeof jObj[key] !== "object") { + const attr = this.isAttribute(key); + if (attr) { + attrStr += " " + attr + '="' + this.options.attrValueProcessor("" + jObj[key]) + '"'; + } else if (this.isCDATA(key)) { + if (jObj[this.options.textNodeName]) { + val += this.replaceCDATAstr(jObj[this.options.textNodeName], jObj[key]); + } else { + val += this.replaceCDATAstr("", jObj[key]); + } + } else { + if (key === this.options.textNodeName) { + if (jObj[this.options.cdataTagName]) { + } else { + val += this.options.tagValueProcessor("" + jObj[key]); + } + } else { + val += this.buildTextNode(jObj[key], key, "", level); + } + } + } else if (Array.isArray(jObj[key])) { + if (this.isCDATA(key)) { + val += this.indentate(level); + if (jObj[this.options.textNodeName]) { + val += this.replaceCDATAarr(jObj[this.options.textNodeName], jObj[key]); + } else { + val += this.replaceCDATAarr("", jObj[key]); + } + } else { + const arrLen = jObj[key].length; + for (let j = 0; j < arrLen; j++) { + const item = jObj[key][j]; + if (typeof item === "undefined") { + } else if (item === null) { + val += this.indentate(level) + "<" + key + "/" + this.tagEndChar; + } else if (typeof item === "object") { + const result = this.j2x(item, level + 1); + val += this.buildObjNode(result.val, key, result.attrStr, level); + } else { + val += this.buildTextNode(item, key, "", level); + } + } + } + } else { + if (this.options.attrNodeName && key === this.options.attrNodeName) { + const Ks = Object.keys(jObj[key]); + const L = Ks.length; + for (let j = 0; j < L; j++) { + attrStr += " " + Ks[j] + '="' + this.options.attrValueProcessor("" + jObj[key][Ks[j]]) + '"'; + } + } else { + const result = this.j2x(jObj[key], level + 1); + val += this.buildObjNode(result.val, key, result.attrStr, level); + } + } + } + return { attrStr, val }; + }; + function replaceCDATAstr(str, cdata) { + str = this.options.tagValueProcessor("" + str); + if (this.options.cdataPositionChar === "" || str === "") { + return str + ""); + } + return str + this.newLine; + } + } + function buildObjectNode(val, key, attrStr, level) { + if (attrStr && !val.includes("<")) { + return this.indentate(level) + "<" + key + attrStr + ">" + val + "" + this.options.tagValueProcessor(val) + " { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryAssumeRoleRequest(input, context), + Action: "AssumeRole", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryAssumeRoleCommand = serializeAws_queryAssumeRoleCommand; + var serializeAws_queryAssumeRoleWithSAMLCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryAssumeRoleWithSAMLRequest(input, context), + Action: "AssumeRoleWithSAML", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryAssumeRoleWithSAMLCommand = serializeAws_queryAssumeRoleWithSAMLCommand; + var serializeAws_queryAssumeRoleWithWebIdentityCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryAssumeRoleWithWebIdentityRequest(input, context), + Action: "AssumeRoleWithWebIdentity", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryAssumeRoleWithWebIdentityCommand = serializeAws_queryAssumeRoleWithWebIdentityCommand; + var serializeAws_queryDecodeAuthorizationMessageCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryDecodeAuthorizationMessageRequest(input, context), + Action: "DecodeAuthorizationMessage", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryDecodeAuthorizationMessageCommand = serializeAws_queryDecodeAuthorizationMessageCommand; + var serializeAws_queryGetAccessKeyInfoCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetAccessKeyInfoRequest(input, context), + Action: "GetAccessKeyInfo", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryGetAccessKeyInfoCommand = serializeAws_queryGetAccessKeyInfoCommand; + var serializeAws_queryGetCallerIdentityCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetCallerIdentityRequest(input, context), + Action: "GetCallerIdentity", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryGetCallerIdentityCommand = serializeAws_queryGetCallerIdentityCommand; + var serializeAws_queryGetFederationTokenCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetFederationTokenRequest(input, context), + Action: "GetFederationToken", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryGetFederationTokenCommand = serializeAws_queryGetFederationTokenCommand; + var serializeAws_queryGetSessionTokenCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetSessionTokenRequest(input, context), + Action: "GetSessionToken", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryGetSessionTokenCommand = serializeAws_queryGetSessionTokenCommand; + var deserializeAws_queryAssumeRoleCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryAssumeRoleCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryAssumeRoleResponse(data.AssumeRoleResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryAssumeRoleCommand = deserializeAws_queryAssumeRoleCommand; + var deserializeAws_queryAssumeRoleCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ExpiredTokenException": + case "com.amazonaws.sts#ExpiredTokenException": + throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); + case "MalformedPolicyDocument": + case "com.amazonaws.sts#MalformedPolicyDocumentException": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case "PackedPolicyTooLarge": + case "com.amazonaws.sts#PackedPolicyTooLargeException": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case "RegionDisabledException": + case "com.amazonaws.sts#RegionDisabledException": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryAssumeRoleWithSAMLCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryAssumeRoleWithSAMLCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryAssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryAssumeRoleWithSAMLCommand = deserializeAws_queryAssumeRoleWithSAMLCommand; + var deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ExpiredTokenException": + case "com.amazonaws.sts#ExpiredTokenException": + throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); + case "IDPRejectedClaim": + case "com.amazonaws.sts#IDPRejectedClaimException": + throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); + case "InvalidIdentityToken": + case "com.amazonaws.sts#InvalidIdentityTokenException": + throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); + case "MalformedPolicyDocument": + case "com.amazonaws.sts#MalformedPolicyDocumentException": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case "PackedPolicyTooLarge": + case "com.amazonaws.sts#PackedPolicyTooLargeException": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case "RegionDisabledException": + case "com.amazonaws.sts#RegionDisabledException": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryAssumeRoleWithWebIdentityCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryAssumeRoleWithWebIdentityCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryAssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryAssumeRoleWithWebIdentityCommand = deserializeAws_queryAssumeRoleWithWebIdentityCommand; + var deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ExpiredTokenException": + case "com.amazonaws.sts#ExpiredTokenException": + throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); + case "IDPCommunicationError": + case "com.amazonaws.sts#IDPCommunicationErrorException": + throw await deserializeAws_queryIDPCommunicationErrorExceptionResponse(parsedOutput, context); + case "IDPRejectedClaim": + case "com.amazonaws.sts#IDPRejectedClaimException": + throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); + case "InvalidIdentityToken": + case "com.amazonaws.sts#InvalidIdentityTokenException": + throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); + case "MalformedPolicyDocument": + case "com.amazonaws.sts#MalformedPolicyDocumentException": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case "PackedPolicyTooLarge": + case "com.amazonaws.sts#PackedPolicyTooLargeException": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case "RegionDisabledException": + case "com.amazonaws.sts#RegionDisabledException": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryDecodeAuthorizationMessageCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryDecodeAuthorizationMessageCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryDecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryDecodeAuthorizationMessageCommand = deserializeAws_queryDecodeAuthorizationMessageCommand; + var deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidAuthorizationMessageException": + case "com.amazonaws.sts#InvalidAuthorizationMessageException": + throw await deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryGetAccessKeyInfoCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetAccessKeyInfoCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryGetAccessKeyInfoCommand = deserializeAws_queryGetAccessKeyInfoCommand; + var deserializeAws_queryGetAccessKeyInfoCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + }; + var deserializeAws_queryGetCallerIdentityCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetCallerIdentityCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetCallerIdentityResponse(data.GetCallerIdentityResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryGetCallerIdentityCommand = deserializeAws_queryGetCallerIdentityCommand; + var deserializeAws_queryGetCallerIdentityCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + }; + var deserializeAws_queryGetFederationTokenCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetFederationTokenCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetFederationTokenResponse(data.GetFederationTokenResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryGetFederationTokenCommand = deserializeAws_queryGetFederationTokenCommand; + var deserializeAws_queryGetFederationTokenCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "MalformedPolicyDocument": + case "com.amazonaws.sts#MalformedPolicyDocumentException": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case "PackedPolicyTooLarge": + case "com.amazonaws.sts#PackedPolicyTooLargeException": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case "RegionDisabledException": + case "com.amazonaws.sts#RegionDisabledException": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryGetSessionTokenCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetSessionTokenCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetSessionTokenResponse(data.GetSessionTokenResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryGetSessionTokenCommand = deserializeAws_queryGetSessionTokenCommand; + var deserializeAws_queryGetSessionTokenCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "RegionDisabledException": + case "com.amazonaws.sts#RegionDisabledException": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryExpiredTokenExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryExpiredTokenException(body.Error, context); + const exception = new models_0_1.ExpiredTokenException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryIDPCommunicationErrorExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryIDPCommunicationErrorException(body.Error, context); + const exception = new models_0_1.IDPCommunicationErrorException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryIDPRejectedClaimExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryIDPRejectedClaimException(body.Error, context); + const exception = new models_0_1.IDPRejectedClaimException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryInvalidAuthorizationMessageExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryInvalidAuthorizationMessageException(body.Error, context); + const exception = new models_0_1.InvalidAuthorizationMessageException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryInvalidIdentityTokenExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryInvalidIdentityTokenException(body.Error, context); + const exception = new models_0_1.InvalidIdentityTokenException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryMalformedPolicyDocumentExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryMalformedPolicyDocumentException(body.Error, context); + const exception = new models_0_1.MalformedPolicyDocumentException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryPackedPolicyTooLargeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryPackedPolicyTooLargeException(body.Error, context); + const exception = new models_0_1.PackedPolicyTooLargeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryRegionDisabledExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryRegionDisabledException(body.Error, context); + const exception = new models_0_1.RegionDisabledException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var serializeAws_queryAssumeRoleRequest = (input, context) => { + const entries = {}; + if (input.RoleArn != null) { + entries["RoleArn"] = input.RoleArn; + } + if (input.RoleSessionName != null) { + entries["RoleSessionName"] = input.RoleSessionName; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input.Policy != null) { + entries["Policy"] = input.Policy; + } + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + if (input.Tags != null) { + const memberEntries = serializeAws_querytagListType(input.Tags, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Tags.${key}`; + entries[loc] = value; + }); + } + if (input.TransitiveTagKeys != null) { + const memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `TransitiveTagKeys.${key}`; + entries[loc] = value; + }); + } + if (input.ExternalId != null) { + entries["ExternalId"] = input.ExternalId; + } + if (input.SerialNumber != null) { + entries["SerialNumber"] = input.SerialNumber; + } + if (input.TokenCode != null) { + entries["TokenCode"] = input.TokenCode; + } + if (input.SourceIdentity != null) { + entries["SourceIdentity"] = input.SourceIdentity; + } + return entries; + }; + var serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => { + const entries = {}; + if (input.RoleArn != null) { + entries["RoleArn"] = input.RoleArn; + } + if (input.PrincipalArn != null) { + entries["PrincipalArn"] = input.PrincipalArn; + } + if (input.SAMLAssertion != null) { + entries["SAMLAssertion"] = input.SAMLAssertion; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input.Policy != null) { + entries["Policy"] = input.Policy; + } + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + return entries; + }; + var serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => { + const entries = {}; + if (input.RoleArn != null) { + entries["RoleArn"] = input.RoleArn; + } + if (input.RoleSessionName != null) { + entries["RoleSessionName"] = input.RoleSessionName; + } + if (input.WebIdentityToken != null) { + entries["WebIdentityToken"] = input.WebIdentityToken; + } + if (input.ProviderId != null) { + entries["ProviderId"] = input.ProviderId; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input.Policy != null) { + entries["Policy"] = input.Policy; + } + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + return entries; + }; + var serializeAws_queryDecodeAuthorizationMessageRequest = (input, context) => { + const entries = {}; + if (input.EncodedMessage != null) { + entries["EncodedMessage"] = input.EncodedMessage; + } + return entries; + }; + var serializeAws_queryGetAccessKeyInfoRequest = (input, context) => { + const entries = {}; + if (input.AccessKeyId != null) { + entries["AccessKeyId"] = input.AccessKeyId; + } + return entries; + }; + var serializeAws_queryGetCallerIdentityRequest = (input, context) => { + const entries = {}; + return entries; + }; + var serializeAws_queryGetFederationTokenRequest = (input, context) => { + const entries = {}; + if (input.Name != null) { + entries["Name"] = input.Name; + } + if (input.Policy != null) { + entries["Policy"] = input.Policy; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + if (input.Tags != null) { + const memberEntries = serializeAws_querytagListType(input.Tags, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Tags.${key}`; + entries[loc] = value; + }); + } + return entries; + }; + var serializeAws_queryGetSessionTokenRequest = (input, context) => { + const entries = {}; + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + if (input.SerialNumber != null) { + entries["SerialNumber"] = input.SerialNumber; + } + if (input.TokenCode != null) { + entries["TokenCode"] = input.TokenCode; + } + return entries; + }; + var serializeAws_querypolicyDescriptorListType = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = serializeAws_queryPolicyDescriptorType(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[`member.${counter}.${key}`] = value; + }); + counter++; + } + return entries; + }; + var serializeAws_queryPolicyDescriptorType = (input, context) => { + const entries = {}; + if (input.arn != null) { + entries["arn"] = input.arn; + } + return entries; + }; + var serializeAws_queryTag = (input, context) => { + const entries = {}; + if (input.Key != null) { + entries["Key"] = input.Key; + } + if (input.Value != null) { + entries["Value"] = input.Value; + } + return entries; + }; + var serializeAws_querytagKeyListType = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[`member.${counter}`] = entry; + counter++; + } + return entries; + }; + var serializeAws_querytagListType = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = serializeAws_queryTag(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[`member.${counter}.${key}`] = value; + }); + counter++; + } + return entries; + }; + var deserializeAws_queryAssumedRoleUser = (output, context) => { + const contents = { + AssumedRoleId: void 0, + Arn: void 0 + }; + if (output["AssumedRoleId"] !== void 0) { + contents.AssumedRoleId = (0, smithy_client_1.expectString)(output["AssumedRoleId"]); + } + if (output["Arn"] !== void 0) { + contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); + } + return contents; + }; + var deserializeAws_queryAssumeRoleResponse = (output, context) => { + const contents = { + Credentials: void 0, + AssumedRoleUser: void 0, + PackedPolicySize: void 0, + SourceIdentity: void 0 + }; + if (output["Credentials"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); + } + if (output["AssumedRoleUser"] !== void 0) { + contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); + } + if (output["PackedPolicySize"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + } + if (output["SourceIdentity"] !== void 0) { + contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); + } + return contents; + }; + var deserializeAws_queryAssumeRoleWithSAMLResponse = (output, context) => { + const contents = { + Credentials: void 0, + AssumedRoleUser: void 0, + PackedPolicySize: void 0, + Subject: void 0, + SubjectType: void 0, + Issuer: void 0, + Audience: void 0, + NameQualifier: void 0, + SourceIdentity: void 0 + }; + if (output["Credentials"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); + } + if (output["AssumedRoleUser"] !== void 0) { + contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); + } + if (output["PackedPolicySize"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + } + if (output["Subject"] !== void 0) { + contents.Subject = (0, smithy_client_1.expectString)(output["Subject"]); + } + if (output["SubjectType"] !== void 0) { + contents.SubjectType = (0, smithy_client_1.expectString)(output["SubjectType"]); + } + if (output["Issuer"] !== void 0) { + contents.Issuer = (0, smithy_client_1.expectString)(output["Issuer"]); + } + if (output["Audience"] !== void 0) { + contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]); + } + if (output["NameQualifier"] !== void 0) { + contents.NameQualifier = (0, smithy_client_1.expectString)(output["NameQualifier"]); + } + if (output["SourceIdentity"] !== void 0) { + contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); + } + return contents; + }; + var deserializeAws_queryAssumeRoleWithWebIdentityResponse = (output, context) => { + const contents = { + Credentials: void 0, + SubjectFromWebIdentityToken: void 0, + AssumedRoleUser: void 0, + PackedPolicySize: void 0, + Provider: void 0, + Audience: void 0, + SourceIdentity: void 0 + }; + if (output["Credentials"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); + } + if (output["SubjectFromWebIdentityToken"] !== void 0) { + contents.SubjectFromWebIdentityToken = (0, smithy_client_1.expectString)(output["SubjectFromWebIdentityToken"]); + } + if (output["AssumedRoleUser"] !== void 0) { + contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); + } + if (output["PackedPolicySize"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + } + if (output["Provider"] !== void 0) { + contents.Provider = (0, smithy_client_1.expectString)(output["Provider"]); + } + if (output["Audience"] !== void 0) { + contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]); + } + if (output["SourceIdentity"] !== void 0) { + contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); + } + return contents; + }; + var deserializeAws_queryCredentials = (output, context) => { + const contents = { + AccessKeyId: void 0, + SecretAccessKey: void 0, + SessionToken: void 0, + Expiration: void 0 + }; + if (output["AccessKeyId"] !== void 0) { + contents.AccessKeyId = (0, smithy_client_1.expectString)(output["AccessKeyId"]); + } + if (output["SecretAccessKey"] !== void 0) { + contents.SecretAccessKey = (0, smithy_client_1.expectString)(output["SecretAccessKey"]); + } + if (output["SessionToken"] !== void 0) { + contents.SessionToken = (0, smithy_client_1.expectString)(output["SessionToken"]); + } + if (output["Expiration"] !== void 0) { + contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["Expiration"])); + } + return contents; + }; + var deserializeAws_queryDecodeAuthorizationMessageResponse = (output, context) => { + const contents = { + DecodedMessage: void 0 + }; + if (output["DecodedMessage"] !== void 0) { + contents.DecodedMessage = (0, smithy_client_1.expectString)(output["DecodedMessage"]); + } + return contents; + }; + var deserializeAws_queryExpiredTokenException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var deserializeAws_queryFederatedUser = (output, context) => { + const contents = { + FederatedUserId: void 0, + Arn: void 0 + }; + if (output["FederatedUserId"] !== void 0) { + contents.FederatedUserId = (0, smithy_client_1.expectString)(output["FederatedUserId"]); + } + if (output["Arn"] !== void 0) { + contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); + } + return contents; + }; + var deserializeAws_queryGetAccessKeyInfoResponse = (output, context) => { + const contents = { + Account: void 0 + }; + if (output["Account"] !== void 0) { + contents.Account = (0, smithy_client_1.expectString)(output["Account"]); + } + return contents; + }; + var deserializeAws_queryGetCallerIdentityResponse = (output, context) => { + const contents = { + UserId: void 0, + Account: void 0, + Arn: void 0 + }; + if (output["UserId"] !== void 0) { + contents.UserId = (0, smithy_client_1.expectString)(output["UserId"]); + } + if (output["Account"] !== void 0) { + contents.Account = (0, smithy_client_1.expectString)(output["Account"]); + } + if (output["Arn"] !== void 0) { + contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); + } + return contents; + }; + var deserializeAws_queryGetFederationTokenResponse = (output, context) => { + const contents = { + Credentials: void 0, + FederatedUser: void 0, + PackedPolicySize: void 0 + }; + if (output["Credentials"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); + } + if (output["FederatedUser"] !== void 0) { + contents.FederatedUser = deserializeAws_queryFederatedUser(output["FederatedUser"], context); + } + if (output["PackedPolicySize"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + } + return contents; + }; + var deserializeAws_queryGetSessionTokenResponse = (output, context) => { + const contents = { + Credentials: void 0 + }; + if (output["Credentials"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); + } + return contents; + }; + var deserializeAws_queryIDPCommunicationErrorException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var deserializeAws_queryIDPRejectedClaimException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var deserializeAws_queryInvalidAuthorizationMessageException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var deserializeAws_queryInvalidIdentityTokenException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var deserializeAws_queryMalformedPolicyDocumentException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var deserializeAws_queryPackedPolicyTooLargeException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var deserializeAws_queryRegionDisabledException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + 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"] + }; + }; + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const contents = { + protocol, + hostname, + port, + method: "POST", + path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, + headers + }; + if (resolvedHostname !== void 0) { + contents.hostname = resolvedHostname; + } + if (body !== void 0) { + contents.body = body; + } + return new protocol_http_1.HttpRequest(contents); + }; + var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + const parsedObj = (0, fast_xml_parser_1.parse)(encoded, { + attributeNamePrefix: "", + ignoreAttributes: false, + parseNodeValue: false, + trimValues: false, + tagValueProcessor: (val) => val.trim() === "" && val.includes("\n") ? "" : (0, entities_1.decodeHTML)(val) + }); + const textNodeName = "#text"; + const key = Object.keys(parsedObj)[0]; + const parsedObjToReturn = parsedObj[key]; + if (parsedObjToReturn[textNodeName]) { + parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; + delete parsedObjToReturn[textNodeName]; + } + return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn); + } + return {}; + }); + var parseErrorBody = async (errorBody, context) => { + var _a; + const value = await parseBody(errorBody, context); + if (value.Error) { + value.Error.message = (_a = value.Error.message) !== null && _a !== void 0 ? _a : value.Error.Message; + } + return value; + }; + var buildFormUrlencodedString = (formEntries) => Object.entries(formEntries).map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value)).join("&"); + var loadQueryErrorCode = (output, data) => { + if (data.Error.Code !== void 0) { + return data.Error.Code; + } + if (output.statusCode == 404) { + return "NotFound"; + } + }; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +var require_AssumeRoleCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.AssumeRoleCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var middleware_signing_1 = require_dist_cjs16(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var AssumeRoleCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "AssumeRoleCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryAssumeRoleCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryAssumeRoleCommand)(output, context); + } + }; + exports.AssumeRoleCommand = AssumeRoleCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +var require_AssumeRoleWithSAMLCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.AssumeRoleWithSAMLCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var AssumeRoleWithSAMLCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "AssumeRoleWithSAMLCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryAssumeRoleWithSAMLCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithSAMLCommand)(output, context); + } + }; + exports.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +var require_AssumeRoleWithWebIdentityCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.AssumeRoleWithWebIdentityCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var AssumeRoleWithWebIdentityCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "AssumeRoleWithWebIdentityCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryAssumeRoleWithWebIdentityCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(output, context); + } + }; + exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +var require_DecodeAuthorizationMessageCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DecodeAuthorizationMessageCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var middleware_signing_1 = require_dist_cjs16(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var DecodeAuthorizationMessageCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "DecodeAuthorizationMessageCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryDecodeAuthorizationMessageCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryDecodeAuthorizationMessageCommand)(output, context); + } + }; + exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js +var require_GetAccessKeyInfoCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetAccessKeyInfoCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var middleware_signing_1 = require_dist_cjs16(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var GetAccessKeyInfoCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "GetAccessKeyInfoCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetAccessKeyInfoRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetAccessKeyInfoResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetAccessKeyInfoCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetAccessKeyInfoCommand)(output, context); + } + }; + exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js +var require_GetCallerIdentityCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetCallerIdentityCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var middleware_signing_1 = require_dist_cjs16(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var GetCallerIdentityCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "GetCallerIdentityCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetCallerIdentityRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetCallerIdentityResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetCallerIdentityCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetCallerIdentityCommand)(output, context); + } + }; + exports.GetCallerIdentityCommand = GetCallerIdentityCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js +var require_GetFederationTokenCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetFederationTokenCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var middleware_signing_1 = require_dist_cjs16(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var GetFederationTokenCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "GetFederationTokenCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetFederationTokenRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetFederationTokenCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetFederationTokenCommand)(output, context); + } + }; + exports.GetFederationTokenCommand = GetFederationTokenCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js +var require_GetSessionTokenCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetSessionTokenCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var middleware_signing_1 = require_dist_cjs16(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var GetSessionTokenCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "GetSessionTokenCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetSessionTokenRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetSessionTokenCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetSessionTokenCommand)(output, context); + } + }; + exports.GetSessionTokenCommand = GetSessionTokenCommand; + } +}); + +// node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js +var require_dist_cjs21 = __commonJS({ + "node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveStsAuthConfig = void 0; + var middleware_signing_1 = require_dist_cjs16(); + var resolveStsAuthConfig = (input, { stsClientCtor }) => (0, middleware_signing_1.resolveAwsAuthConfig)({ + ...input, + stsClientCtor + }); + exports.resolveStsAuthConfig = resolveStsAuthConfig; + } +}); + +// node_modules/@aws-sdk/client-sts/package.json +var require_package2 = __commonJS({ + "node_modules/@aws-sdk/client-sts/package.json"(exports, module2) { + module2.exports = { + name: "@aws-sdk/client-sts", + description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native", + version: "3.186.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", + test: "yarn test:unit", + "test:unit": "jest" + }, + main: "./dist-cjs/index.js", + types: "./dist-types/index.d.ts", + module: "./dist-es/index.js", + sideEffects: false, + dependencies: { + "@aws-crypto/sha256-browser": "2.0.0", + "@aws-crypto/sha256-js": "2.0.0", + "@aws-sdk/config-resolver": "3.186.0", + "@aws-sdk/credential-provider-node": "3.186.0", + "@aws-sdk/fetch-http-handler": "3.186.0", + "@aws-sdk/hash-node": "3.186.0", + "@aws-sdk/invalid-dependency": "3.186.0", + "@aws-sdk/middleware-content-length": "3.186.0", + "@aws-sdk/middleware-host-header": "3.186.0", + "@aws-sdk/middleware-logger": "3.186.0", + "@aws-sdk/middleware-recursion-detection": "3.186.0", + "@aws-sdk/middleware-retry": "3.186.0", + "@aws-sdk/middleware-sdk-sts": "3.186.0", + "@aws-sdk/middleware-serde": "3.186.0", + "@aws-sdk/middleware-signing": "3.186.0", + "@aws-sdk/middleware-stack": "3.186.0", + "@aws-sdk/middleware-user-agent": "3.186.0", + "@aws-sdk/node-config-provider": "3.186.0", + "@aws-sdk/node-http-handler": "3.186.0", + "@aws-sdk/protocol-http": "3.186.0", + "@aws-sdk/smithy-client": "3.186.0", + "@aws-sdk/types": "3.186.0", + "@aws-sdk/url-parser": "3.186.0", + "@aws-sdk/util-base64-browser": "3.186.0", + "@aws-sdk/util-base64-node": "3.186.0", + "@aws-sdk/util-body-length-browser": "3.186.0", + "@aws-sdk/util-body-length-node": "3.186.0", + "@aws-sdk/util-defaults-mode-browser": "3.186.0", + "@aws-sdk/util-defaults-mode-node": "3.186.0", + "@aws-sdk/util-user-agent-browser": "3.186.0", + "@aws-sdk/util-user-agent-node": "3.186.0", + "@aws-sdk/util-utf8-browser": "3.186.0", + "@aws-sdk/util-utf8-node": "3.186.0", + entities: "2.2.0", + "fast-xml-parser": "3.19.0", + tslib: "^2.3.1" + }, + devDependencies: { + "@aws-sdk/service-client-documentation-generator": "3.186.0", + "@tsconfig/recommended": "1.0.1", + "@types/node": "^12.7.5", + concurrently: "7.0.0", + "downlevel-dts": "0.10.1", + rimraf: "3.0.2", + typedoc: "0.19.2", + typescript: "~4.6.2" + }, + overrides: { + typedoc: { + typescript: "~4.6.2" + } + }, + engines: { + node: ">=12.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" + } + }; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js +var require_defaultStsRoleAssumers = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; + var AssumeRoleCommand_1 = require_AssumeRoleCommand(); + var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); + var ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; + var decorateDefaultRegion = (region) => { + if (typeof region !== "function") { + return region === void 0 ? ASSUME_ROLE_DEFAULT_REGION : region; + } + return async () => { + try { + return await region(); + } catch (e) { + return ASSUME_ROLE_DEFAULT_REGION; + } + }; + }; + var getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { + let stsClient; + let closureSourceCreds; + return async (sourceCreds, params) => { + closureSourceCreds = sourceCreds; + if (!stsClient) { + const { logger: logger2, region, requestHandler } = stsOptions; + stsClient = new stsClientCtor({ + logger: logger2, + credentialDefaultProvider: () => async () => closureSourceCreds, + region: decorateDefaultRegion(region || stsOptions.region), + ...requestHandler ? { requestHandler } : {} + }); + } + const { Credentials } = await stsClient.send(new AssumeRoleCommand_1.AssumeRoleCommand(params)); + if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`); + } + return { + accessKeyId: Credentials.AccessKeyId, + secretAccessKey: Credentials.SecretAccessKey, + sessionToken: Credentials.SessionToken, + expiration: Credentials.Expiration + }; + }; + }; + exports.getDefaultRoleAssumer = getDefaultRoleAssumer; + var getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { + let stsClient; + return async (params) => { + if (!stsClient) { + const { logger: logger2, region, requestHandler } = stsOptions; + stsClient = new stsClientCtor({ + logger: logger2, + region: decorateDefaultRegion(region || stsOptions.region), + ...requestHandler ? { requestHandler } : {} + }); + } + const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(params)); + if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`); + } + return { + accessKeyId: Credentials.AccessKeyId, + secretAccessKey: Credentials.SecretAccessKey, + sessionToken: Credentials.SessionToken, + expiration: Credentials.Expiration + }; + }; + }; + exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; + var decorateDefaultCredentialProvider = (provider) => (input) => provider({ + roleAssumer: (0, exports.getDefaultRoleAssumer)(input, input.stsClientCtor), + roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor), + ...input + }); + exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js +var require_fromEnv = __commonJS({ + "node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromEnv = exports.ENV_EXPIRATION = exports.ENV_SESSION = exports.ENV_SECRET = exports.ENV_KEY = void 0; + var property_provider_1 = require_dist_cjs11(); + exports.ENV_KEY = "AWS_ACCESS_KEY_ID"; + exports.ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; + exports.ENV_SESSION = "AWS_SESSION_TOKEN"; + exports.ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION"; + var fromEnv = () => async () => { + const accessKeyId = process.env[exports.ENV_KEY]; + const secretAccessKey = process.env[exports.ENV_SECRET]; + const sessionToken = process.env[exports.ENV_SESSION]; + const expiry = process.env[exports.ENV_EXPIRATION]; + if (accessKeyId && secretAccessKey) { + return { + accessKeyId, + secretAccessKey, + ...sessionToken && { sessionToken }, + ...expiry && { expiration: new Date(expiry) } + }; + } + throw new property_provider_1.CredentialsProviderError("Unable to find environment variable credentials."); + }; + exports.fromEnv = fromEnv; + } +}); + +// node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +var require_dist_cjs22 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromEnv(), exports); + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getHomeDir.js +var require_getHomeDir = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getHomeDir.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getHomeDir = void 0; + var os_1 = require("os"); + var path_1 = require("path"); + var getHomeDir = () => { + const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env; + if (HOME) + return HOME; + if (USERPROFILE) + return USERPROFILE; + if (HOMEPATH) + return `${HOMEDRIVE}${HOMEPATH}`; + return (0, os_1.homedir)(); + }; + exports.getHomeDir = getHomeDir; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileName.js +var require_getProfileName = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileName.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getProfileName = exports.DEFAULT_PROFILE = exports.ENV_PROFILE = void 0; + exports.ENV_PROFILE = "AWS_PROFILE"; + exports.DEFAULT_PROFILE = "default"; + var getProfileName = (init) => init.profile || process.env[exports.ENV_PROFILE] || exports.DEFAULT_PROFILE; + exports.getProfileName = getProfileName; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +var require_getSSOTokenFilepath = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSSOTokenFilepath = void 0; + var crypto_1 = require("crypto"); + var path_1 = require("path"); + var getHomeDir_1 = require_getHomeDir(); + var getSSOTokenFilepath = (ssoStartUrl) => { + const hasher = (0, crypto_1.createHash)("sha1"); + const cacheName = hasher.update(ssoStartUrl).digest("hex"); + return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`); + }; + exports.getSSOTokenFilepath = getSSOTokenFilepath; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +var require_getSSOTokenFromFile = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSSOTokenFromFile = void 0; + var fs_1 = require("fs"); + var getSSOTokenFilepath_1 = require_getSSOTokenFilepath(); + var { readFile } = fs_1.promises; + var getSSOTokenFromFile = async (ssoStartUrl) => { + const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(ssoStartUrl); + const ssoTokenText = await readFile(ssoTokenFilepath, "utf8"); + return JSON.parse(ssoTokenText); + }; + exports.getSSOTokenFromFile = getSSOTokenFromFile; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +var require_getConfigFilepath = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getConfigFilepath.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getConfigFilepath = exports.ENV_CONFIG_PATH = void 0; + var path_1 = require("path"); + var getHomeDir_1 = require_getHomeDir(); + exports.ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; + var getConfigFilepath = () => process.env[exports.ENV_CONFIG_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "config"); + exports.getConfigFilepath = getConfigFilepath; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +var require_getCredentialsFilepath = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getCredentialsFilepath = exports.ENV_CREDENTIALS_PATH = void 0; + var path_1 = require("path"); + var getHomeDir_1 = require_getHomeDir(); + exports.ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; + var getCredentialsFilepath = () => process.env[exports.ENV_CREDENTIALS_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "credentials"); + exports.getCredentialsFilepath = getCredentialsFilepath; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileData.js +var require_getProfileData = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileData.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getProfileData = void 0; + var profileKeyRegex = /^profile\s(["'])?([^\1]+)\1$/; + var getProfileData = (data) => Object.entries(data).filter(([key]) => profileKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [profileKeyRegex.exec(key)[2]]: value }), { + ...data.default && { default: data.default } + }); + exports.getProfileData = getProfileData; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseIni.js +var require_parseIni = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseIni.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.parseIni = void 0; + var profileNameBlockList = ["__proto__", "profile __proto__"]; + var parseIni = (iniData) => { + const map = {}; + let currentSection; + for (let line of iniData.split(/\r?\n/)) { + line = line.split(/(^|\s)[;#]/)[0].trim(); + const isSection = line[0] === "[" && line[line.length - 1] === "]"; + if (isSection) { + currentSection = line.substring(1, line.length - 1); + if (profileNameBlockList.includes(currentSection)) { + throw new Error(`Found invalid profile name "${currentSection}"`); + } + } else if (currentSection) { + const indexOfEqualsSign = line.indexOf("="); + const start = 0; + const end = line.length - 1; + const isAssignment = indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; + if (isAssignment) { + const [name, value] = [ + line.substring(0, indexOfEqualsSign).trim(), + line.substring(indexOfEqualsSign + 1).trim() + ]; + map[currentSection] = map[currentSection] || {}; + map[currentSection][name] = value; + } + } + } + return map; + }; + exports.parseIni = parseIni; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/slurpFile.js +var require_slurpFile = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/slurpFile.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.slurpFile = void 0; + var fs_1 = require("fs"); + var { readFile } = fs_1.promises; + var filePromisesHash = {}; + var slurpFile = (path) => { + if (!filePromisesHash[path]) { + filePromisesHash[path] = readFile(path, "utf8"); + } + return filePromisesHash[path]; + }; + exports.slurpFile = slurpFile; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +var require_loadSharedConfigFiles = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.loadSharedConfigFiles = void 0; + var getConfigFilepath_1 = require_getConfigFilepath(); + var getCredentialsFilepath_1 = require_getCredentialsFilepath(); + var getProfileData_1 = require_getProfileData(); + var parseIni_1 = require_parseIni(); + var slurpFile_1 = require_slurpFile(); + var swallowError = () => ({}); + var loadSharedConfigFiles = async (init = {}) => { + const { filepath = (0, getCredentialsFilepath_1.getCredentialsFilepath)(), configFilepath = (0, getConfigFilepath_1.getConfigFilepath)() } = init; + const parsedFiles = await Promise.all([ + (0, slurpFile_1.slurpFile)(configFilepath).then(parseIni_1.parseIni).then(getProfileData_1.getProfileData).catch(swallowError), + (0, slurpFile_1.slurpFile)(filepath).then(parseIni_1.parseIni).catch(swallowError) + ]); + return { + configFile: parsedFiles[0], + credentialsFile: parsedFiles[1] + }; + }; + exports.loadSharedConfigFiles = loadSharedConfigFiles; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +var require_getSsoSessionData = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSsoSessionData.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSsoSessionData = void 0; + var ssoSessionKeyRegex = /^sso-session\s(["'])?([^\1]+)\1$/; + var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => ssoSessionKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [ssoSessionKeyRegex.exec(key)[2]]: value }), {}); + exports.getSsoSessionData = getSsoSessionData; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +var require_loadSsoSessionData = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.loadSsoSessionData = void 0; + var getConfigFilepath_1 = require_getConfigFilepath(); + var getSsoSessionData_1 = require_getSsoSessionData(); + var parseIni_1 = require_parseIni(); + var slurpFile_1 = require_slurpFile(); + var swallowError = () => ({}); + var loadSsoSessionData = async (init = {}) => { + var _a; + return (0, slurpFile_1.slurpFile)((_a = init.configFilepath) !== null && _a !== void 0 ? _a : (0, getConfigFilepath_1.getConfigFilepath)()).then(parseIni_1.parseIni).then(getSsoSessionData_1.getSsoSessionData).catch(swallowError); + }; + exports.loadSsoSessionData = loadSsoSessionData; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +var require_parseKnownFiles = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseKnownFiles.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.parseKnownFiles = void 0; + var loadSharedConfigFiles_1 = require_loadSharedConfigFiles(); + var parseKnownFiles = async (init) => { + const parsedFiles = await (0, loadSharedConfigFiles_1.loadSharedConfigFiles)(init); + return { + ...parsedFiles.configFile, + ...parsedFiles.credentialsFile + }; + }; + exports.parseKnownFiles = parseKnownFiles; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/types.js +var require_types2 = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/types.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/index.js +var require_dist_cjs23 = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_getHomeDir(), exports); + tslib_1.__exportStar(require_getProfileName(), exports); + tslib_1.__exportStar(require_getSSOTokenFilepath(), exports); + tslib_1.__exportStar(require_getSSOTokenFromFile(), exports); + tslib_1.__exportStar(require_loadSharedConfigFiles(), exports); + tslib_1.__exportStar(require_loadSsoSessionData(), exports); + tslib_1.__exportStar(require_parseKnownFiles(), exports); + tslib_1.__exportStar(require_types2(), exports); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +var require_httpRequest2 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.httpRequest = void 0; + var property_provider_1 = require_dist_cjs11(); + var buffer_1 = require("buffer"); + var http_1 = require("http"); + function httpRequest(options) { + return new Promise((resolve, reject) => { + var _a; + const req = (0, http_1.request)({ + method: "GET", + ...options, + hostname: (_a = options.hostname) === null || _a === void 0 ? 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)); + req.destroy(); + }); + req.on("timeout", () => { + reject(new property_provider_1.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 })); + req.destroy(); + } + const chunks = []; + res.on("data", (chunk) => { + chunks.push(chunk); + }); + res.on("end", () => { + resolve(buffer_1.Buffer.concat(chunks)); + req.destroy(); + }); + }); + req.end(); + }); + } + exports.httpRequest = httpRequest; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +var require_ImdsCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromImdsCredentials = exports.isImdsCredentials = void 0; + var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string"; + exports.isImdsCredentials = isImdsCredentials; + var fromImdsCredentials = (creds) => ({ + accessKeyId: creds.AccessKeyId, + secretAccessKey: creds.SecretAccessKey, + sessionToken: creds.Token, + expiration: new Date(creds.Expiration) + }); + exports.fromImdsCredentials = fromImdsCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +var require_RemoteProviderInit = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.providerConfigFromInit = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_TIMEOUT = void 0; + exports.DEFAULT_TIMEOUT = 1e3; + exports.DEFAULT_MAX_RETRIES = 0; + var providerConfigFromInit = ({ maxRetries = exports.DEFAULT_MAX_RETRIES, timeout = exports.DEFAULT_TIMEOUT }) => ({ maxRetries, timeout }); + exports.providerConfigFromInit = providerConfigFromInit; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/retry.js +var require_retry = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/retry.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.retry = void 0; + var retry = (toRetry, maxRetries) => { + let promise = toRetry(); + for (let i = 0; i < maxRetries; i++) { + promise = promise.catch(toRetry); + } + return promise; + }; + exports.retry = retry; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromContainerMetadata.js +var require_fromContainerMetadata = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromContainerMetadata.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromContainerMetadata = exports.ENV_CMDS_AUTH_TOKEN = exports.ENV_CMDS_RELATIVE_URI = exports.ENV_CMDS_FULL_URI = void 0; + var property_provider_1 = require_dist_cjs11(); + var url_1 = require("url"); + var httpRequest_1 = require_httpRequest2(); + var ImdsCredentials_1 = require_ImdsCredentials(); + var RemoteProviderInit_1 = require_RemoteProviderInit(); + var retry_1 = require_retry(); + exports.ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; + exports.ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; + exports.ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; + var fromContainerMetadata = (init = {}) => { + const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); + return () => (0, retry_1.retry)(async () => { + 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."); + } + return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); + }, maxRetries); + }; + exports.fromContainerMetadata = fromContainerMetadata; + var requestFromEcsImds = async (timeout, options) => { + if (process.env[exports.ENV_CMDS_AUTH_TOKEN]) { + options.headers = { + ...options.headers, + Authorization: process.env[exports.ENV_CMDS_AUTH_TOKEN] + }; + } + const buffer = await (0, httpRequest_1.httpRequest)({ + ...options, + timeout + }); + return buffer.toString(); + }; + var CMDS_IP = "169.254.170.2"; + var GREENGRASS_HOSTS = { + localhost: true, + "127.0.0.1": true + }; + var GREENGRASS_PROTOCOLS = { + "http:": true, + "https:": true + }; + var getCmdsUri = async () => { + if (process.env[exports.ENV_CMDS_RELATIVE_URI]) { + return { + hostname: CMDS_IP, + path: process.env[exports.ENV_CMDS_RELATIVE_URI] + }; + } + if (process.env[exports.ENV_CMDS_FULL_URI]) { + const parsed = (0, url_1.parse)(process.env[exports.ENV_CMDS_FULL_URI]); + if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { + throw new property_provider_1.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, false); + } + if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { + throw new property_provider_1.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, false); + } + return { + ...parsed, + port: parsed.port ? parseInt(parsed.port, 10) : void 0 + }; + } + throw new property_provider_1.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${exports.ENV_CMDS_RELATIVE_URI} or ${exports.ENV_CMDS_FULL_URI} environment variable is set`, false); + }; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromEnv.js +var require_fromEnv2 = __commonJS({ + "node_modules/@aws-sdk/node-config-provider/dist-cjs/fromEnv.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromEnv = void 0; + var property_provider_1 = require_dist_cjs11(); + var fromEnv = (envVarSelector) => async () => { + try { + const config = envVarSelector(process.env); + if (config === void 0) { + throw new Error(); + } + return config; + } catch (e) { + throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config from environment variables with getter: ${envVarSelector}`); + } + }; + exports.fromEnv = fromEnv; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromSharedConfigFiles.js +var require_fromSharedConfigFiles = __commonJS({ + "node_modules/@aws-sdk/node-config-provider/dist-cjs/fromSharedConfigFiles.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromSharedConfigFiles = void 0; + var property_provider_1 = require_dist_cjs11(); + 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 }; + try { + const configValue = configSelector(mergedProfile); + if (configValue === void 0) { + throw new Error(); + } + return configValue; + } catch (e) { + throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config for profile ${profile} in SDK configuration files with getter: ${configSelector}`); + } + }; + exports.fromSharedConfigFiles = fromSharedConfigFiles; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js +var require_fromStatic2 = __commonJS({ + "node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromStatic = void 0; + var property_provider_1 = require_dist_cjs11(); + var isFunction = (func) => typeof func === "function"; + var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, property_provider_1.fromStatic)(defaultValue); + exports.fromStatic = fromStatic; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/configLoader.js +var require_configLoader = __commonJS({ + "node_modules/@aws-sdk/node-config-provider/dist-cjs/configLoader.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.loadConfig = void 0; + var property_provider_1 = require_dist_cjs11(); + var fromEnv_1 = require_fromEnv2(); + var fromSharedConfigFiles_1 = require_fromSharedConfigFiles(); + var fromStatic_1 = require_fromStatic2(); + var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromEnv_1.fromEnv)(environmentVariableSelector), (0, fromSharedConfigFiles_1.fromSharedConfigFiles)(configFileSelector, configuration), (0, fromStatic_1.fromStatic)(defaultValue))); + exports.loadConfig = loadConfig; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/index.js +var require_dist_cjs24 = __commonJS({ + "node_modules/@aws-sdk/node-config-provider/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_configLoader(), exports); + } +}); + +// node_modules/@aws-sdk/querystring-parser/dist-cjs/index.js +var require_dist_cjs25 = __commonJS({ + "node_modules/@aws-sdk/querystring-parser/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.parseQueryString = void 0; + function parseQueryString(querystring) { + const query = {}; + querystring = querystring.replace(/^\?/, ""); + if (querystring) { + for (const pair of querystring.split("&")) { + let [key, value = null] = pair.split("="); + key = decodeURIComponent(key); + if (value) { + value = decodeURIComponent(value); + } + if (!(key in query)) { + query[key] = value; + } else if (Array.isArray(query[key])) { + query[key].push(value); + } else { + query[key] = [query[key], value]; + } + } + } + return query; + } + exports.parseQueryString = parseQueryString; + } +}); + +// node_modules/@aws-sdk/url-parser/dist-cjs/index.js +var require_dist_cjs26 = __commonJS({ + "node_modules/@aws-sdk/url-parser/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.parseUrl = void 0; + var querystring_parser_1 = require_dist_cjs25(); + var parseUrl = (url) => { + if (typeof url === "string") { + return (0, exports.parseUrl)(new URL(url)); + } + const { hostname, pathname, port, protocol, search } = url; + let query; + if (search) { + query = (0, querystring_parser_1.parseQueryString)(search); + } + return { + hostname, + port: port ? parseInt(port) : void 0, + protocol, + path: pathname, + query + }; + }; + exports.parseUrl = parseUrl; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/Endpoint.js +var require_Endpoint = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/Endpoint.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Endpoint = void 0; + var Endpoint; + (function(Endpoint2) { + Endpoint2["IPv4"] = "http://169.254.169.254"; + Endpoint2["IPv6"] = "http://[fd00:ec2::254]"; + })(Endpoint = exports.Endpoint || (exports.Endpoint = {})); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +var require_EndpointConfigOptions = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ENDPOINT_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_NAME = exports.ENV_ENDPOINT_NAME = void 0; + exports.ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; + exports.CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; + exports.ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_NAME], + configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_NAME], + default: void 0 + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointMode.js +var require_EndpointMode = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointMode.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.EndpointMode = void 0; + var EndpointMode; + (function(EndpointMode2) { + EndpointMode2["IPv4"] = "IPv4"; + EndpointMode2["IPv6"] = "IPv6"; + })(EndpointMode = exports.EndpointMode || (exports.EndpointMode = {})); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +var require_EndpointModeConfigOptions = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ENDPOINT_MODE_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_MODE_NAME = exports.ENV_ENDPOINT_MODE_NAME = void 0; + var EndpointMode_1 = require_EndpointMode(); + exports.ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; + exports.CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; + exports.ENDPOINT_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_MODE_NAME], + configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_MODE_NAME], + default: EndpointMode_1.EndpointMode.IPv4 + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +var require_getInstanceMetadataEndpoint = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getInstanceMetadataEndpoint = void 0; + var node_config_provider_1 = require_dist_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()); + exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; + var getFromEndpointConfig = async () => (0, node_config_provider_1.loadConfig)(EndpointConfigOptions_1.ENDPOINT_CONFIG_OPTIONS)(); + var getFromEndpointModeConfig = async () => { + const endpointMode = await (0, node_config_provider_1.loadConfig)(EndpointModeConfigOptions_1.ENDPOINT_MODE_CONFIG_OPTIONS)(); + switch (endpointMode) { + case EndpointMode_1.EndpointMode.IPv4: + return Endpoint_1.Endpoint.IPv4; + case EndpointMode_1.EndpointMode.IPv6: + return Endpoint_1.Endpoint.IPv6; + default: + throw new Error(`Unsupported endpoint mode: ${endpointMode}. Select from ${Object.values(EndpointMode_1.EndpointMode)}`); + } + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +var require_getExtendedInstanceMetadataCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getExtendedInstanceMetadataCredentials = void 0; + 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, logger2) => { + var _a; + 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); + logger2.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; + return { + ...credentials, + ...originalExpiration ? { originalExpiration } : {}, + expiration: newExpiration + }; + }; + exports.getExtendedInstanceMetadataCredentials = getExtendedInstanceMetadataCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +var require_staticStabilityProvider = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.staticStabilityProvider = void 0; + var getExtendedInstanceMetadataCredentials_1 = require_getExtendedInstanceMetadataCredentials(); + var staticStabilityProvider = (provider, options = {}) => { + const logger2 = (options === null || options === void 0 ? 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, logger2); + } + } catch (e) { + if (pastCredentials) { + logger2.warn("Credential renew failed: ", e); + credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(pastCredentials, logger2); + } else { + throw e; + } + } + pastCredentials = credentials; + return credentials; + }; + }; + exports.staticStabilityProvider = staticStabilityProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +var require_fromInstanceMetadata = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromInstanceMetadata.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromInstanceMetadata = void 0; + var property_provider_1 = require_dist_cjs11(); + var httpRequest_1 = require_httpRequest2(); + var ImdsCredentials_1 = require_ImdsCredentials(); + var RemoteProviderInit_1 = require_RemoteProviderInit(); + var retry_1 = require_retry(); + var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); + var staticStabilityProvider_1 = require_staticStabilityProvider(); + var IMDS_PATH = "/latest/meta-data/iam/security-credentials/"; + var IMDS_TOKEN_PATH = "/latest/api/token"; + var fromInstanceMetadata = (init = {}) => (0, staticStabilityProvider_1.staticStabilityProvider)(getInstanceImdsProvider(init), { logger: init.logger }); + exports.fromInstanceMetadata = fromInstanceMetadata; + var getInstanceImdsProvider = (init) => { + let disableFetchToken = false; + const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); + const getCredentials = async (maxRetries2, options) => { + const profile = (await (0, retry_1.retry)(async () => { + let profile2; + try { + profile2 = await getProfile(options); + } catch (err) { + if (err.statusCode === 401) { + disableFetchToken = false; + } + throw err; + } + return profile2; + }, maxRetries2)).trim(); + return (0, retry_1.retry)(async () => { + let creds; + try { + creds = await getCredentialsFromProfile(profile, options); + } catch (err) { + if (err.statusCode === 401) { + disableFetchToken = false; + } + throw err; + } + return creds; + }, maxRetries2); + }; + return async () => { + const endpoint = await (0, getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint)(); + if (disableFetchToken) { + 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) { + throw Object.assign(error, { + message: "EC2 Metadata token request returned error" + }); + } else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) { + disableFetchToken = true; + } + return getCredentials(maxRetries, { ...endpoint, timeout }); + } + return getCredentials(maxRetries, { + ...endpoint, + headers: { + "x-aws-ec2-metadata-token": token + }, + timeout + }); + } + }; + }; + var getMetadataToken = async (options) => (0, httpRequest_1.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."); + } + return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/types.js +var require_types3 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/types.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/index.js +var require_dist_cjs27 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getInstanceMetadataEndpoint = exports.httpRequest = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromContainerMetadata(), exports); + tslib_1.__exportStar(require_fromInstanceMetadata(), exports); + tslib_1.__exportStar(require_RemoteProviderInit(), exports); + tslib_1.__exportStar(require_types3(), exports); + var httpRequest_1 = require_httpRequest2(); + Object.defineProperty(exports, "httpRequest", { enumerable: true, get: function() { + return httpRequest_1.httpRequest; + } }); + var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); + Object.defineProperty(exports, "getInstanceMetadataEndpoint", { enumerable: true, get: function() { + return getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint; + } }); + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js +var require_resolveCredentialSource = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveCredentialSource = void 0; + var credential_provider_env_1 = require_dist_cjs22(); + var credential_provider_imds_1 = require_dist_cjs27(); + var property_provider_1 = require_dist_cjs11(); + var resolveCredentialSource = (credentialSource, profileName) => { + const sourceProvidersMap = { + EcsContainer: credential_provider_imds_1.fromContainerMetadata, + Ec2InstanceMetadata: credential_provider_imds_1.fromInstanceMetadata, + Environment: credential_provider_env_1.fromEnv + }; + if (credentialSource in sourceProvidersMap) { + return sourceProvidersMap[credentialSource](); + } else { + throw new property_provider_1.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`); + } + }; + exports.resolveCredentialSource = resolveCredentialSource; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js +var require_resolveAssumeRoleCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveAssumeRoleCredentials = exports.isAssumeRoleProfile = void 0; + var property_provider_1 = require_dist_cjs11(); + var shared_ini_file_loader_1 = require_dist_cjs23(); + var resolveCredentialSource_1 = require_resolveCredentialSource(); + var resolveProfileData_1 = require_resolveProfileData(); + var isAssumeRoleProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg) || isAssumeRoleWithProviderProfile(arg)); + exports.isAssumeRoleProfile = isAssumeRoleProfile; + var isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; + var isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; + var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => { + const data = profiles[profileName]; + if (!options.roleAssumer) { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires a role to be assumed, but no role assumption callback was provided.`, false); + } + const { source_profile } = data; + if (source_profile && source_profile in visitedProfiles) { + throw new property_provider_1.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0, shared_ini_file_loader_1.getProfileName)(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), false); + } + const sourceCredsProvider = source_profile ? (0, resolveProfileData_1.resolveProfileData)(source_profile, profiles, options, { + ...visitedProfiles, + [source_profile]: true + }) : (0, resolveCredentialSource_1.resolveCredentialSource)(data.credential_source, profileName)(); + const params = { + RoleArn: data.role_arn, + RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`, + ExternalId: data.external_id + }; + const { mfa_serial } = data; + if (mfa_serial) { + if (!options.mfaCodeProvider) { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, false); + } + params.SerialNumber = mfa_serial; + params.TokenCode = await options.mfaCodeProvider(mfa_serial); + } + const sourceCreds = await sourceCredsProvider; + return options.roleAssumer(sourceCreds, params); + }; + exports.resolveAssumeRoleCredentials = resolveAssumeRoleCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js +var require_isSsoProfile = __commonJS({ + "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isSsoProfile = void 0; + var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"); + exports.isSsoProfile = isSsoProfile; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js +var require_SSOServiceException = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SSOServiceException = void 0; + var smithy_client_1 = require_dist_cjs19(); + var SSOServiceException = class extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, SSOServiceException.prototype); + } + }; + exports.SSOServiceException = SSOServiceException; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js +var require_models_02 = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.LogoutRequestFilterSensitiveLog = exports.ListAccountsResponseFilterSensitiveLog = exports.ListAccountsRequestFilterSensitiveLog = exports.ListAccountRolesResponseFilterSensitiveLog = exports.RoleInfoFilterSensitiveLog = exports.ListAccountRolesRequestFilterSensitiveLog = exports.GetRoleCredentialsResponseFilterSensitiveLog = exports.RoleCredentialsFilterSensitiveLog = exports.GetRoleCredentialsRequestFilterSensitiveLog = exports.AccountInfoFilterSensitiveLog = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = void 0; + var smithy_client_1 = require_dist_cjs19(); + var SSOServiceException_1 = require_SSOServiceException(); + var InvalidRequestException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: "InvalidRequestException", + $fault: "client", + ...opts + }); + this.name = "InvalidRequestException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidRequestException.prototype); + } + }; + exports.InvalidRequestException = InvalidRequestException; + var ResourceNotFoundException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: "ResourceNotFoundException", + $fault: "client", + ...opts + }); + this.name = "ResourceNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceNotFoundException.prototype); + } + }; + exports.ResourceNotFoundException = ResourceNotFoundException; + var TooManyRequestsException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: "TooManyRequestsException", + $fault: "client", + ...opts + }); + this.name = "TooManyRequestsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TooManyRequestsException.prototype); + } + }; + exports.TooManyRequestsException = TooManyRequestsException; + var UnauthorizedException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: "UnauthorizedException", + $fault: "client", + ...opts + }); + this.name = "UnauthorizedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, UnauthorizedException.prototype); + } + }; + exports.UnauthorizedException = UnauthorizedException; + var AccountInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AccountInfoFilterSensitiveLog = AccountInfoFilterSensitiveLog; + var GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog; + var RoleCredentialsFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }, + ...obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING } + }); + exports.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog; + var GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.roleCredentials && { roleCredentials: (0, exports.RoleCredentialsFilterSensitiveLog)(obj.roleCredentials) } + }); + exports.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog; + var ListAccountRolesRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog; + var RoleInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RoleInfoFilterSensitiveLog = RoleInfoFilterSensitiveLog; + var ListAccountRolesResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListAccountRolesResponseFilterSensitiveLog = ListAccountRolesResponseFilterSensitiveLog; + var ListAccountsRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog; + var ListAccountsResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListAccountsResponseFilterSensitiveLog = ListAccountsResponseFilterSensitiveLog; + var LogoutRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js +var require_Aws_restJson1 = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.deserializeAws_restJson1LogoutCommand = exports.deserializeAws_restJson1ListAccountsCommand = exports.deserializeAws_restJson1ListAccountRolesCommand = exports.deserializeAws_restJson1GetRoleCredentialsCommand = exports.serializeAws_restJson1LogoutCommand = exports.serializeAws_restJson1ListAccountsCommand = exports.serializeAws_restJson1ListAccountRolesCommand = exports.serializeAws_restJson1GetRoleCredentialsCommand = void 0; + var protocol_http_1 = require_dist_cjs4(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_02(); + var SSOServiceException_1 = require_SSOServiceException(); + var serializeAws_restJson1GetRoleCredentialsCommand = async (input, context) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + "x-amz-sso_bearer_token": input.accessToken + }); + const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/federation/credentials`; + const query = map({ + role_name: [, input.roleName], + account_id: [, input.accountId] + }); + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body + }); + }; + exports.serializeAws_restJson1GetRoleCredentialsCommand = serializeAws_restJson1GetRoleCredentialsCommand; + var serializeAws_restJson1ListAccountRolesCommand = async (input, context) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + "x-amz-sso_bearer_token": input.accessToken + }); + const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/assignment/roles`; + const query = map({ + next_token: [, input.nextToken], + max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], + account_id: [, input.accountId] + }); + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body + }); + }; + exports.serializeAws_restJson1ListAccountRolesCommand = serializeAws_restJson1ListAccountRolesCommand; + var serializeAws_restJson1ListAccountsCommand = async (input, context) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + "x-amz-sso_bearer_token": input.accessToken + }); + const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/assignment/accounts`; + const query = map({ + next_token: [, input.nextToken], + max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()] + }); + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body + }); + }; + exports.serializeAws_restJson1ListAccountsCommand = serializeAws_restJson1ListAccountsCommand; + var serializeAws_restJson1LogoutCommand = async (input, context) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + "x-amz-sso_bearer_token": input.accessToken + }); + const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/logout`; + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body + }); + }; + exports.serializeAws_restJson1LogoutCommand = serializeAws_restJson1LogoutCommand; + var deserializeAws_restJson1GetRoleCredentialsCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1GetRoleCredentialsCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); + if (data.roleCredentials != null) { + contents.roleCredentials = deserializeAws_restJson1RoleCredentials(data.roleCredentials, context); + } + return contents; + }; + exports.deserializeAws_restJson1GetRoleCredentialsCommand = deserializeAws_restJson1GetRoleCredentialsCommand; + var deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidRequestException": + case "com.amazonaws.sso#InvalidRequestException": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.sso#ResourceNotFoundException": + throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.sso#TooManyRequestsException": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case "UnauthorizedException": + case "com.amazonaws.sso#UnauthorizedException": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var deserializeAws_restJson1ListAccountRolesCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1ListAccountRolesCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); + if (data.nextToken != null) { + contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); + } + if (data.roleList != null) { + contents.roleList = deserializeAws_restJson1RoleListType(data.roleList, context); + } + return contents; + }; + exports.deserializeAws_restJson1ListAccountRolesCommand = deserializeAws_restJson1ListAccountRolesCommand; + var deserializeAws_restJson1ListAccountRolesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidRequestException": + case "com.amazonaws.sso#InvalidRequestException": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.sso#ResourceNotFoundException": + throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.sso#TooManyRequestsException": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case "UnauthorizedException": + case "com.amazonaws.sso#UnauthorizedException": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var deserializeAws_restJson1ListAccountsCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1ListAccountsCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); + if (data.accountList != null) { + contents.accountList = deserializeAws_restJson1AccountListType(data.accountList, context); + } + if (data.nextToken != null) { + contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); + } + return contents; + }; + exports.deserializeAws_restJson1ListAccountsCommand = deserializeAws_restJson1ListAccountsCommand; + var deserializeAws_restJson1ListAccountsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidRequestException": + case "com.amazonaws.sso#InvalidRequestException": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.sso#ResourceNotFoundException": + throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.sso#TooManyRequestsException": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case "UnauthorizedException": + case "com.amazonaws.sso#UnauthorizedException": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var deserializeAws_restJson1LogoutCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1LogoutCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + await collectBody(output.body, context); + return contents; + }; + exports.deserializeAws_restJson1LogoutCommand = deserializeAws_restJson1LogoutCommand; + var deserializeAws_restJson1LogoutCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidRequestException": + case "com.amazonaws.sso#InvalidRequestException": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.sso#TooManyRequestsException": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case "UnauthorizedException": + case "com.amazonaws.sso#UnauthorizedException": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var map = smithy_client_1.map; + var deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.InvalidRequestException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.ResourceNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.TooManyRequestsException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.UnauthorizedException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1AccountInfo = (output, context) => { + return { + accountId: (0, smithy_client_1.expectString)(output.accountId), + accountName: (0, smithy_client_1.expectString)(output.accountName), + emailAddress: (0, smithy_client_1.expectString)(output.emailAddress) + }; + }; + var deserializeAws_restJson1AccountListType = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_restJson1AccountInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_restJson1RoleCredentials = (output, context) => { + return { + accessKeyId: (0, smithy_client_1.expectString)(output.accessKeyId), + expiration: (0, smithy_client_1.expectLong)(output.expiration), + secretAccessKey: (0, smithy_client_1.expectString)(output.secretAccessKey), + sessionToken: (0, smithy_client_1.expectString)(output.sessionToken) + }; + }; + var deserializeAws_restJson1RoleInfo = (output, context) => { + return { + accountId: (0, smithy_client_1.expectString)(output.accountId), + roleName: (0, smithy_client_1.expectString)(output.roleName) + }; + }; + var deserializeAws_restJson1RoleListType = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_restJson1RoleInfo(entry, context); + }); + return retVal; + }; + 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"] + }; + }; + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + var isSerializableHeaderValue = (value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); + var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + return JSON.parse(encoded); + } + return {}; + }); + var parseErrorBody = async (errorBody, context) => { + var _a; + const value = await parseBody(errorBody, context); + value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message; + return value; + }; + var loadRestJsonErrorCode = (output, data) => { + const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); + const sanitizeErrorCode = (rawValue) => { + let cleanValue = rawValue; + if (typeof cleanValue === "number") { + cleanValue = cleanValue.toString(); + } + if (cleanValue.indexOf(",") >= 0) { + cleanValue = cleanValue.split(",")[0]; + } + if (cleanValue.indexOf(":") >= 0) { + cleanValue = cleanValue.split(":")[0]; + } + if (cleanValue.indexOf("#") >= 0) { + cleanValue = cleanValue.split("#")[1]; + } + return cleanValue; + }; + const headerKey = findKey(output.headers, "x-amzn-errortype"); + if (headerKey !== void 0) { + return sanitizeErrorCode(output.headers[headerKey]); + } + if (data.code !== void 0) { + return sanitizeErrorCode(data.code); + } + if (data["__type"] !== void 0) { + return sanitizeErrorCode(data["__type"]); + } + }; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js +var require_GetRoleCredentialsCommand = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetRoleCredentialsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_02(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var GetRoleCredentialsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "SSOClient"; + const commandName = "GetRoleCredentialsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1GetRoleCredentialsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1GetRoleCredentialsCommand)(output, context); + } + }; + exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js +var require_ListAccountRolesCommand = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListAccountRolesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_02(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var ListAccountRolesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "SSOClient"; + const commandName = "ListAccountRolesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListAccountRolesResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountRolesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountRolesCommand)(output, context); + } + }; + exports.ListAccountRolesCommand = ListAccountRolesCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js +var require_ListAccountsCommand = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListAccountsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_02(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var ListAccountsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "SSOClient"; + const commandName = "ListAccountsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListAccountsResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountsCommand)(output, context); + } + }; + exports.ListAccountsCommand = ListAccountsCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js +var require_LogoutCommand = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.LogoutCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_02(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var LogoutCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "SSOClient"; + const commandName = "LogoutCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1LogoutCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1LogoutCommand)(output, context); + } + }; + exports.LogoutCommand = LogoutCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/package.json +var require_package3 = __commonJS({ + "node_modules/@aws-sdk/client-sso/package.json"(exports, module2) { + module2.exports = { + name: "@aws-sdk/client-sso", + description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native", + version: "3.186.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" + }, + main: "./dist-cjs/index.js", + types: "./dist-types/index.d.ts", + module: "./dist-es/index.js", + sideEffects: false, + dependencies: { + "@aws-crypto/sha256-browser": "2.0.0", + "@aws-crypto/sha256-js": "2.0.0", + "@aws-sdk/config-resolver": "3.186.0", + "@aws-sdk/fetch-http-handler": "3.186.0", + "@aws-sdk/hash-node": "3.186.0", + "@aws-sdk/invalid-dependency": "3.186.0", + "@aws-sdk/middleware-content-length": "3.186.0", + "@aws-sdk/middleware-host-header": "3.186.0", + "@aws-sdk/middleware-logger": "3.186.0", + "@aws-sdk/middleware-recursion-detection": "3.186.0", + "@aws-sdk/middleware-retry": "3.186.0", + "@aws-sdk/middleware-serde": "3.186.0", + "@aws-sdk/middleware-stack": "3.186.0", + "@aws-sdk/middleware-user-agent": "3.186.0", + "@aws-sdk/node-config-provider": "3.186.0", + "@aws-sdk/node-http-handler": "3.186.0", + "@aws-sdk/protocol-http": "3.186.0", + "@aws-sdk/smithy-client": "3.186.0", + "@aws-sdk/types": "3.186.0", + "@aws-sdk/url-parser": "3.186.0", + "@aws-sdk/util-base64-browser": "3.186.0", + "@aws-sdk/util-base64-node": "3.186.0", + "@aws-sdk/util-body-length-browser": "3.186.0", + "@aws-sdk/util-body-length-node": "3.186.0", + "@aws-sdk/util-defaults-mode-browser": "3.186.0", + "@aws-sdk/util-defaults-mode-node": "3.186.0", + "@aws-sdk/util-user-agent-browser": "3.186.0", + "@aws-sdk/util-user-agent-node": "3.186.0", + "@aws-sdk/util-utf8-browser": "3.186.0", + "@aws-sdk/util-utf8-node": "3.186.0", + tslib: "^2.3.1" + }, + devDependencies: { + "@aws-sdk/service-client-documentation-generator": "3.186.0", + "@tsconfig/recommended": "1.0.1", + "@types/node": "^12.7.5", + concurrently: "7.0.0", + "downlevel-dts": "0.10.1", + rimraf: "3.0.2", + typedoc: "0.19.2", + typescript: "~4.6.2" + }, + overrides: { + typedoc: { + typescript: "~4.6.2" + } + }, + engines: { + node: ">=12.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" + } + }; + } +}); + +// node_modules/@aws-sdk/util-buffer-from/dist-cjs/index.js +var require_dist_cjs28 = __commonJS({ + "node_modules/@aws-sdk/util-buffer-from/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromString = exports.fromArrayBuffer = void 0; + var is_array_buffer_1 = require_dist_cjs14(); + var buffer_1 = require("buffer"); + var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { + if (!(0, is_array_buffer_1.isArrayBuffer)(input)) { + throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`); + } + return buffer_1.Buffer.from(input, offset, length); + }; + exports.fromArrayBuffer = fromArrayBuffer; + var fromString = (input, encoding) => { + if (typeof input !== "string") { + throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`); + } + return encoding ? buffer_1.Buffer.from(input, encoding) : buffer_1.Buffer.from(input); + }; + exports.fromString = fromString; + } +}); + +// node_modules/@aws-sdk/hash-node/dist-cjs/index.js +var require_dist_cjs29 = __commonJS({ + "node_modules/@aws-sdk/hash-node/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Hash = void 0; + var util_buffer_from_1 = require_dist_cjs28(); + var buffer_1 = require("buffer"); + var crypto_1 = require("crypto"); + var Hash = class { + constructor(algorithmIdentifier, secret) { + this.hash = secret ? (0, crypto_1.createHmac)(algorithmIdentifier, castSourceData(secret)) : (0, crypto_1.createHash)(algorithmIdentifier); + } + update(toHash, encoding) { + this.hash.update(castSourceData(toHash, encoding)); + } + digest() { + return Promise.resolve(this.hash.digest()); + } + }; + exports.Hash = Hash; + function castSourceData(toCast, encoding) { + if (buffer_1.Buffer.isBuffer(toCast)) { + return toCast; + } + if (typeof toCast === "string") { + return (0, util_buffer_from_1.fromString)(toCast, encoding); + } + if (ArrayBuffer.isView(toCast)) { + return (0, util_buffer_from_1.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength); + } + return (0, util_buffer_from_1.fromArrayBuffer)(toCast); + } + } +}); + +// node_modules/@aws-sdk/querystring-builder/dist-cjs/index.js +var require_dist_cjs30 = __commonJS({ + "node_modules/@aws-sdk/querystring-builder/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.buildQueryString = void 0; + var util_uri_escape_1 = require_dist_cjs13(); + 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); + 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])}`); + } + } else { + let qsEntry = key; + if (value || typeof value === "string") { + qsEntry += `=${(0, util_uri_escape_1.escapeUri)(value)}`; + } + parts.push(qsEntry); + } + } + return parts.join("&"); + } + exports.buildQueryString = buildQueryString; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/constants.js +var require_constants6 = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/constants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODEJS_TIMEOUT_ERROR_CODES = void 0; + exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/get-transformed-headers.js +var require_get_transformed_headers = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/get-transformed-headers.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getTransformedHeaders = void 0; + var getTransformedHeaders = (headers) => { + const transformedHeaders = {}; + for (const name of Object.keys(headers)) { + const headerValues = headers[name]; + transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues; + } + return transformedHeaders; + }; + exports.getTransformedHeaders = getTransformedHeaders; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/set-connection-timeout.js +var require_set_connection_timeout = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/set-connection-timeout.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.setConnectionTimeout = void 0; + var setConnectionTimeout = (request, reject, timeoutInMs = 0) => { + if (!timeoutInMs) { + return; + } + request.on("socket", (socket) => { + if (socket.connecting) { + const timeoutId = setTimeout(() => { + request.destroy(); + reject(Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), { + name: "TimeoutError" + })); + }, timeoutInMs); + socket.on("connect", () => { + clearTimeout(timeoutId); + }); + } + }); + }; + exports.setConnectionTimeout = setConnectionTimeout; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-timeout.js +var require_set_socket_timeout = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-timeout.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.setSocketTimeout = void 0; + var setSocketTimeout = (request, reject, timeoutInMs = 0) => { + request.setTimeout(timeoutInMs, () => { + request.destroy(); + reject(Object.assign(new Error(`Connection timed out after ${timeoutInMs} ms`), { name: "TimeoutError" })); + }); + }; + exports.setSocketTimeout = setSocketTimeout; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js +var require_write_request_body = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.writeRequestBody = void 0; + var stream_1 = require("stream"); + function writeRequestBody(httpRequest, request) { + const expect = request.headers["Expect"] || request.headers["expect"]; + if (expect === "100-continue") { + httpRequest.on("continue", () => { + writeBody(httpRequest, request.body); + }); + } else { + writeBody(httpRequest, request.body); + } + } + exports.writeRequestBody = writeRequestBody; + function writeBody(httpRequest, body) { + if (body instanceof stream_1.Readable) { + body.pipe(httpRequest); + } else if (body) { + httpRequest.end(Buffer.from(body)); + } else { + httpRequest.end(); + } + } + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js +var require_node_http_handler = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NodeHttpHandler = void 0; + var protocol_http_1 = require_dist_cjs4(); + var querystring_builder_1 = require_dist_cjs30(); + var http_1 = require("http"); + var https_1 = require("https"); + var constants_1 = require_constants6(); + var get_transformed_headers_1 = require_get_transformed_headers(); + var set_connection_timeout_1 = require_set_connection_timeout(); + var set_socket_timeout_1 = require_set_socket_timeout(); + var write_request_body_1 = require_write_request_body(); + var NodeHttpHandler = class { + constructor(options) { + this.metadata = { handlerProtocol: "http/1.1" }; + this.configProvider = new Promise((resolve, reject) => { + if (typeof options === "function") { + options().then((_options) => { + resolve(this.resolveDefaultConfig(_options)); + }).catch(reject); + } else { + resolve(this.resolveDefaultConfig(options)); + } + }); + } + resolveDefaultConfig(options) { + const { connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {}; + const keepAlive = true; + const maxSockets = 50; + return { + connectionTimeout, + socketTimeout, + httpAgent: httpAgent || new http_1.Agent({ keepAlive, maxSockets }), + httpsAgent: httpsAgent || new https_1.Agent({ keepAlive, maxSockets }) + }; + } + destroy() { + var _a, _b, _c, _d; + (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.httpAgent) === null || _b === void 0 ? void 0 : _b.destroy(); + (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.httpsAgent) === null || _d === void 0 ? void 0 : _d.destroy(); + } + async handle(request, { abortSignal } = {}) { + if (!this.config) { + this.config = await this.configProvider; + } + return new Promise((resolve, 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) { + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + reject(abortError); + return; + } + const isSSL = request.protocol === "https:"; + const queryString = (0, querystring_builder_1.buildQueryString)(request.query || {}); + const nodeHttpsOptions = { + headers: request.headers, + host: request.hostname, + method: request.method, + path: queryString ? `${request.path}?${queryString}` : request.path, + port: request.port, + agent: isSSL ? this.config.httpsAgent : this.config.httpAgent + }; + const requestFunc = isSSL ? https_1.request : http_1.request; + const req = requestFunc(nodeHttpsOptions, (res) => { + const httpResponse = new protocol_http_1.HttpResponse({ + statusCode: res.statusCode || -1, + headers: (0, get_transformed_headers_1.getTransformedHeaders)(res.headers), + body: res + }); + resolve({ response: httpResponse }); + }); + req.on("error", (err) => { + if (constants_1.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.socketTimeout); + if (abortSignal) { + abortSignal.onabort = () => { + req.abort(); + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + reject(abortError); + }; + } + (0, write_request_body_1.writeRequestBody)(req, request); + }); + } + }; + exports.NodeHttpHandler = NodeHttpHandler; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js +var require_node_http2_handler = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NodeHttp2Handler = void 0; + var protocol_http_1 = require_dist_cjs4(); + var querystring_builder_1 = require_dist_cjs30(); + var http2_1 = require("http2"); + var get_transformed_headers_1 = require_get_transformed_headers(); + var write_request_body_1 = require_write_request_body(); + var NodeHttp2Handler = class { + constructor(options) { + this.metadata = { handlerProtocol: "h2" }; + this.configProvider = new Promise((resolve, reject) => { + if (typeof options === "function") { + options().then((opts) => { + resolve(opts || {}); + }).catch(reject); + } else { + resolve(options || {}); + } + }); + this.sessionCache = /* @__PURE__ */ new Map(); + } + destroy() { + for (const sessions of this.sessionCache.values()) { + sessions.forEach((session) => this.destroySession(session)); + } + this.sessionCache.clear(); + } + async handle(request, { abortSignal } = {}) { + if (!this.config) { + this.config = await this.configProvider; + } + const { requestTimeout, disableConcurrentStreams } = this.config; + return new Promise((resolve, rejectOriginal) => { + let fulfilled = false; + if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { + fulfilled = true; + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + rejectOriginal(abortError); + return; + } + const { hostname, method, port, protocol, path, query } = request; + const authority = `${protocol}//${hostname}${port ? `:${port}` : ""}`; + const session = this.getSession(authority, disableConcurrentStreams || false); + const reject = (err) => { + if (disableConcurrentStreams) { + this.destroySession(session); + } + fulfilled = true; + rejectOriginal(err); + }; + const queryString = (0, querystring_builder_1.buildQueryString)(query || {}); + const req = session.request({ + ...request.headers, + [http2_1.constants.HTTP2_HEADER_PATH]: queryString ? `${path}?${queryString}` : path, + [http2_1.constants.HTTP2_HEADER_METHOD]: method + }); + session.ref(); + req.on("response", (headers) => { + const httpResponse = new protocol_http_1.HttpResponse({ + statusCode: headers[":status"] || -1, + headers: (0, get_transformed_headers_1.getTransformedHeaders)(headers), + body: req + }); + fulfilled = true; + resolve({ response: httpResponse }); + if (disableConcurrentStreams) { + session.close(); + this.deleteSessionFromCache(authority, session); + } + }); + if (requestTimeout) { + req.setTimeout(requestTimeout, () => { + req.close(); + const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`); + timeoutError.name = "TimeoutError"; + reject(timeoutError); + }); + } + if (abortSignal) { + abortSignal.onabort = () => { + req.close(); + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + reject(abortError); + }; + } + req.on("frameError", (type, code, id) => { + reject(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`)); + }); + req.on("error", reject); + req.on("aborted", () => { + reject(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`)); + }); + req.on("close", () => { + session.unref(); + if (disableConcurrentStreams) { + session.destroy(); + } + if (!fulfilled) { + reject(new Error("Unexpected error: http2 request did not get a response")); + } + }); + (0, write_request_body_1.writeRequestBody)(req, request); + }); + } + getSession(authority, disableConcurrentStreams) { + var _a; + const sessionCache = this.sessionCache; + const existingSessions = sessionCache.get(authority) || []; + if (existingSessions.length > 0 && !disableConcurrentStreams) + return existingSessions[0]; + const newSession = (0, http2_1.connect)(authority); + newSession.unref(); + const destroySessionCb = () => { + this.destroySession(newSession); + this.deleteSessionFromCache(authority, newSession); + }; + newSession.on("goaway", destroySessionCb); + newSession.on("error", destroySessionCb); + newSession.on("frameError", destroySessionCb); + newSession.on("close", () => this.deleteSessionFromCache(authority, newSession)); + if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.sessionTimeout) { + newSession.setTimeout(this.config.sessionTimeout, destroySessionCb); + } + existingSessions.push(newSession); + sessionCache.set(authority, existingSessions); + return newSession; + } + destroySession(session) { + if (!session.destroyed) { + session.destroy(); + } + } + deleteSessionFromCache(authority, session) { + const existingSessions = this.sessionCache.get(authority) || []; + if (!existingSessions.includes(session)) { + return; + } + this.sessionCache.set(authority, existingSessions.filter((s) => s !== session)); + } + }; + exports.NodeHttp2Handler = NodeHttp2Handler; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/collector.js +var require_collector = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/collector.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Collector = void 0; + var stream_1 = require("stream"); + var Collector = class extends stream_1.Writable { + constructor() { + super(...arguments); + this.bufferedBytes = []; + } + _write(chunk, encoding, callback) { + this.bufferedBytes.push(chunk); + callback(); + } + }; + exports.Collector = Collector; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/index.js +var require_stream_collector = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.streamCollector = void 0; + var collector_1 = require_collector(); + var streamCollector = (stream) => new Promise((resolve, reject) => { + const collector = new collector_1.Collector(); + stream.pipe(collector); + stream.on("error", (err) => { + collector.end(); + reject(err); + }); + collector.on("error", reject); + collector.on("finish", function() { + const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes)); + resolve(bytes); + }); + }); + exports.streamCollector = streamCollector; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/index.js +var require_dist_cjs31 = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_node_http_handler(), exports); + tslib_1.__exportStar(require_node_http2_handler(), exports); + tslib_1.__exportStar(require_stream_collector(), exports); + } +}); + +// node_modules/@aws-sdk/util-base64-node/dist-cjs/index.js +var require_dist_cjs32 = __commonJS({ + "node_modules/@aws-sdk/util-base64-node/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.toBase64 = exports.fromBase64 = void 0; + var util_buffer_from_1 = require_dist_cjs28(); + var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; + function fromBase64(input) { + if (input.length * 3 % 4 !== 0) { + throw new TypeError(`Incorrect padding on base64 string.`); + } + if (!BASE64_REGEX.exec(input)) { + throw new TypeError(`Invalid base64 string.`); + } + const buffer = (0, util_buffer_from_1.fromString)(input, "base64"); + return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); + } + exports.fromBase64 = fromBase64; + function toBase64(input) { + return (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64"); + } + exports.toBase64 = toBase64; + } +}); + +// node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js +var require_calculateBodyLength = __commonJS({ + "node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.calculateBodyLength = void 0; + var fs_1 = require("fs"); + var calculateBodyLength = (body) => { + if (!body) { + return 0; + } + if (typeof body === "string") { + return Buffer.from(body).length; + } else if (typeof body.byteLength === "number") { + return body.byteLength; + } else if (typeof body.size === "number") { + return body.size; + } else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) { + return (0, fs_1.lstatSync)(body.path).size; + } else if (typeof body.fd === "number") { + return (0, fs_1.fstatSync)(body.fd).size; + } + throw new Error(`Body Length computation failed for ${body}`); + }; + exports.calculateBodyLength = calculateBodyLength; + } +}); + +// node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js +var require_dist_cjs33 = __commonJS({ + "node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_calculateBodyLength(), exports); + } +}); + +// node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js +var require_is_crt_available = __commonJS({ + "node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js"(exports, module2) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isCrtAvailable = void 0; + var isCrtAvailable = () => { + try { + if (typeof require === "function" && typeof module2 !== "undefined" && module2.require && require("aws-crt")) { + return ["md/crt-avail"]; + } + return null; + } catch (e) { + return null; + } + }; + exports.isCrtAvailable = isCrtAvailable; + } +}); + +// node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +var require_dist_cjs34 = __commonJS({ + "node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.defaultUserAgent = exports.UA_APP_ID_INI_NAME = exports.UA_APP_ID_ENV_NAME = void 0; + var node_config_provider_1 = require_dist_cjs24(); + var os_1 = require("os"); + var process_1 = require("process"); + var is_crt_available_1 = require_is_crt_available(); + exports.UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; + exports.UA_APP_ID_INI_NAME = "sdk-ua-app-id"; + var defaultUserAgent = ({ serviceId, clientVersion }) => { + const sections = [ + ["aws-sdk-js", clientVersion], + [`os/${(0, os_1.platform)()}`, (0, os_1.release)()], + ["lang/js"], + ["md/nodejs", `${process_1.versions.node}`] + ]; + const crtAvailable = (0, is_crt_available_1.isCrtAvailable)(); + if (crtAvailable) { + sections.push(crtAvailable); + } + if (serviceId) { + sections.push([`api/${serviceId}`, clientVersion]); + } + if (process_1.env.AWS_EXECUTION_ENV) { + sections.push([`exec-env/${process_1.env.AWS_EXECUTION_ENV}`]); + } + const appIdPromise = (0, node_config_provider_1.loadConfig)({ + environmentVariableSelector: (env) => env[exports.UA_APP_ID_ENV_NAME], + configFileSelector: (profile) => profile[exports.UA_APP_ID_INI_NAME], + default: void 0 + })(); + let resolvedUserAgent = void 0; + return async () => { + if (!resolvedUserAgent) { + const appId = await appIdPromise; + resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections]; + } + return resolvedUserAgent; + }; + }; + exports.defaultUserAgent = defaultUserAgent; + } +}); + +// node_modules/@aws-sdk/util-utf8-node/dist-cjs/index.js +var require_dist_cjs35 = __commonJS({ + "node_modules/@aws-sdk/util-utf8-node/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.toUtf8 = exports.fromUtf8 = void 0; + var util_buffer_from_1 = require_dist_cjs28(); + var fromUtf8 = (input) => { + const buf = (0, util_buffer_from_1.fromString)(input, "utf8"); + return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); + }; + exports.fromUtf8 = fromUtf8; + var toUtf8 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8"); + exports.toUtf8 = toUtf8; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/endpoints.js +var require_endpoints = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/endpoints.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.defaultRegionInfoProvider = void 0; + var config_resolver_1 = require_dist_cjs3(); + var regionHash = { + "ap-east-1": { + variants: [ + { + hostname: "portal.sso.ap-east-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "ap-east-1" + }, + "ap-northeast-1": { + variants: [ + { + hostname: "portal.sso.ap-northeast-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "ap-northeast-1" + }, + "ap-northeast-2": { + variants: [ + { + hostname: "portal.sso.ap-northeast-2.amazonaws.com", + tags: [] + } + ], + signingRegion: "ap-northeast-2" + }, + "ap-northeast-3": { + variants: [ + { + hostname: "portal.sso.ap-northeast-3.amazonaws.com", + tags: [] + } + ], + signingRegion: "ap-northeast-3" + }, + "ap-south-1": { + variants: [ + { + hostname: "portal.sso.ap-south-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "ap-south-1" + }, + "ap-southeast-1": { + variants: [ + { + hostname: "portal.sso.ap-southeast-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "ap-southeast-1" + }, + "ap-southeast-2": { + variants: [ + { + hostname: "portal.sso.ap-southeast-2.amazonaws.com", + tags: [] + } + ], + signingRegion: "ap-southeast-2" + }, + "ca-central-1": { + variants: [ + { + hostname: "portal.sso.ca-central-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "ca-central-1" + }, + "eu-central-1": { + variants: [ + { + hostname: "portal.sso.eu-central-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "eu-central-1" + }, + "eu-north-1": { + variants: [ + { + hostname: "portal.sso.eu-north-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "eu-north-1" + }, + "eu-south-1": { + variants: [ + { + hostname: "portal.sso.eu-south-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "eu-south-1" + }, + "eu-west-1": { + variants: [ + { + hostname: "portal.sso.eu-west-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "eu-west-1" + }, + "eu-west-2": { + variants: [ + { + hostname: "portal.sso.eu-west-2.amazonaws.com", + tags: [] + } + ], + signingRegion: "eu-west-2" + }, + "eu-west-3": { + variants: [ + { + hostname: "portal.sso.eu-west-3.amazonaws.com", + tags: [] + } + ], + signingRegion: "eu-west-3" + }, + "me-south-1": { + variants: [ + { + hostname: "portal.sso.me-south-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "me-south-1" + }, + "sa-east-1": { + variants: [ + { + hostname: "portal.sso.sa-east-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "sa-east-1" + }, + "us-east-1": { + variants: [ + { + hostname: "portal.sso.us-east-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "us-east-1" + }, + "us-east-2": { + variants: [ + { + hostname: "portal.sso.us-east-2.amazonaws.com", + tags: [] + } + ], + signingRegion: "us-east-2" + }, + "us-gov-east-1": { + variants: [ + { + hostname: "portal.sso.us-gov-east-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "us-gov-east-1" + }, + "us-gov-west-1": { + variants: [ + { + hostname: "portal.sso.us-gov-west-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "us-gov-west-1" + }, + "us-west-2": { + variants: [ + { + hostname: "portal.sso.us-west-2.amazonaws.com", + tags: [] + } + ], + signingRegion: "us-west-2" + } + }; + var partitionHash = { + aws: { + regions: [ + "af-south-1", + "ap-east-1", + "ap-northeast-1", + "ap-northeast-2", + "ap-northeast-3", + "ap-south-1", + "ap-southeast-1", + "ap-southeast-2", + "ap-southeast-3", + "ca-central-1", + "eu-central-1", + "eu-north-1", + "eu-south-1", + "eu-west-1", + "eu-west-2", + "eu-west-3", + "me-central-1", + "me-south-1", + "sa-east-1", + "us-east-1", + "us-east-2", + "us-west-1", + "us-west-2" + ], + regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.amazonaws.com", + tags: [] + }, + { + hostname: "portal.sso-fips.{region}.amazonaws.com", + tags: ["fips"] + }, + { + hostname: "portal.sso-fips.{region}.api.aws", + tags: ["dualstack", "fips"] + }, + { + hostname: "portal.sso.{region}.api.aws", + tags: ["dualstack"] + } + ] + }, + "aws-cn": { + regions: ["cn-north-1", "cn-northwest-1"], + regionRegex: "^cn\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.amazonaws.com.cn", + tags: [] + }, + { + hostname: "portal.sso-fips.{region}.amazonaws.com.cn", + tags: ["fips"] + }, + { + hostname: "portal.sso-fips.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack", "fips"] + }, + { + hostname: "portal.sso.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack"] + } + ] + }, + "aws-iso": { + regions: ["us-iso-east-1", "us-iso-west-1"], + regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.c2s.ic.gov", + tags: [] + }, + { + hostname: "portal.sso-fips.{region}.c2s.ic.gov", + tags: ["fips"] + } + ] + }, + "aws-iso-b": { + regions: ["us-isob-east-1"], + regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.sc2s.sgov.gov", + tags: [] + }, + { + hostname: "portal.sso-fips.{region}.sc2s.sgov.gov", + tags: ["fips"] + } + ] + }, + "aws-us-gov": { + regions: ["us-gov-east-1", "us-gov-west-1"], + regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.amazonaws.com", + tags: [] + }, + { + hostname: "portal.sso-fips.{region}.amazonaws.com", + tags: ["fips"] + }, + { + hostname: "portal.sso-fips.{region}.api.aws", + tags: ["dualstack", "fips"] + }, + { + hostname: "portal.sso.{region}.api.aws", + tags: ["dualstack"] + } + ] + } + }; + var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { + ...options, + signingService: "awsssoportal", + regionHash, + partitionHash + }); + exports.defaultRegionInfoProvider = defaultRegionInfoProvider; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRuntimeConfig = void 0; + var url_parser_1 = require_dist_cjs26(); + var endpoints_1 = require_endpoints(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return { + apiVersion: "2019-06-10", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "SSO", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl + }; + }; + exports.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/constants.js +var require_constants7 = __commonJS({ + "node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/constants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.IMDS_REGION_PATH = exports.DEFAULTS_MODE_OPTIONS = exports.ENV_IMDS_DISABLED = exports.AWS_DEFAULT_REGION_ENV = exports.AWS_REGION_ENV = exports.AWS_EXECUTION_ENV = void 0; + exports.AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; + exports.AWS_REGION_ENV = "AWS_REGION"; + exports.AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION"; + exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; + exports.DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"]; + exports.IMDS_REGION_PATH = "/latest/meta-data/placement/region"; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js +var require_defaultsModeConfig = __commonJS({ + "node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = void 0; + var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE"; + var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode"; + exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + return env[AWS_DEFAULTS_MODE_ENV]; + }, + configFileSelector: (profile) => { + return profile[AWS_DEFAULTS_MODE_CONFIG]; + }, + default: "legacy" + }; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js +var require_resolveDefaultsModeConfig = __commonJS({ + "node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveDefaultsModeConfig = void 0; + var config_resolver_1 = require_dist_cjs3(); + var credential_provider_imds_1 = require_dist_cjs27(); + var node_config_provider_1 = require_dist_cjs24(); + var property_provider_1 = require_dist_cjs11(); + 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 () => { + const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; + switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) { + case "auto": + return resolveNodeDefaultsModeAuto(region); + case "in-region": + case "cross-region": + case "mobile": + case "standard": + case "legacy": + return Promise.resolve(mode === null || mode === void 0 ? 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}`); + } + }); + exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig; + var resolveNodeDefaultsModeAuto = async (clientRegion) => { + if (clientRegion) { + const resolvedRegion = typeof clientRegion === "function" ? await clientRegion() : clientRegion; + const inferredRegion = await inferPhysicalRegion(); + if (!inferredRegion) { + return "standard"; + } + if (resolvedRegion === inferredRegion) { + return "in-region"; + } else { + return "cross-region"; + } + } + 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]; + } + if (!process.env[constants_1.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(); + } catch (e) { + } + } + }; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/index.js +var require_dist_cjs36 = __commonJS({ + "node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_resolveDefaultsModeConfig(), exports); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +var require_runtimeConfig = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRuntimeConfig = void 0; + var tslib_1 = require_tslib(); + var package_json_1 = tslib_1.__importDefault(require_package3()); + var config_resolver_1 = require_dist_cjs3(); + var hash_node_1 = require_dist_cjs29(); + var middleware_retry_1 = require_dist_cjs10(); + var node_config_provider_1 = require_dist_cjs24(); + var node_http_handler_1 = require_dist_cjs31(); + var util_base64_node_1 = require_dist_cjs32(); + var util_body_length_node_1 = require_dist_cjs33(); + var util_user_agent_node_1 = require_dist_cjs34(); + var util_utf8_node_1 = require_dist_cjs35(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared(); + var smithy_client_1 = require_dist_cjs19(); + var util_defaults_mode_node_1 = require_dist_cjs36(); + var smithy_client_2 = require_dist_cjs19(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; + (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); + const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE + }), + sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : hash_node_1.Hash.bind(null, "sha256"), + streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.fromUtf8, + utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.toUtf8 + }; + }; + exports.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js +var require_SSOClient = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SSOClient = void 0; + var config_resolver_1 = require_dist_cjs3(); + var middleware_content_length_1 = require_dist_cjs5(); + var middleware_host_header_1 = require_dist_cjs6(); + var middleware_logger_1 = require_dist_cjs7(); + var middleware_recursion_detection_1 = require_dist_cjs8(); + var middleware_retry_1 = require_dist_cjs10(); + var middleware_user_agent_1 = require_dist_cjs17(); + var smithy_client_1 = require_dist_cjs19(); + var runtimeConfig_1 = require_runtimeConfig(); + var SSOClient = class extends smithy_client_1.Client { + constructor(configuration) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); + const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); + const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); + const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); + const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); + const _config_5 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_4); + super(_config_5); + this.config = _config_5; + this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + } + destroy() { + super.destroy(); + } + }; + exports.SSOClient = SSOClient; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js +var require_SSO = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SSO = void 0; + var GetRoleCredentialsCommand_1 = require_GetRoleCredentialsCommand(); + var ListAccountRolesCommand_1 = require_ListAccountRolesCommand(); + var ListAccountsCommand_1 = require_ListAccountsCommand(); + var LogoutCommand_1 = require_LogoutCommand(); + var SSOClient_1 = require_SSOClient(); + var SSO = class extends SSOClient_1.SSOClient { + getRoleCredentials(args, optionsOrCb, cb) { + const command = new GetRoleCredentialsCommand_1.GetRoleCredentialsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listAccountRoles(args, optionsOrCb, cb) { + const command = new ListAccountRolesCommand_1.ListAccountRolesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listAccounts(args, optionsOrCb, cb) { + const command = new ListAccountsCommand_1.ListAccountsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + logout(args, optionsOrCb, cb) { + const command = new LogoutCommand_1.LogoutCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + }; + exports.SSO = SSO; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js +var require_commands = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_GetRoleCredentialsCommand(), exports); + tslib_1.__exportStar(require_ListAccountRolesCommand(), exports); + tslib_1.__exportStar(require_ListAccountsCommand(), exports); + tslib_1.__exportStar(require_LogoutCommand(), exports); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js +var require_models = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_models_02(), exports); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js +var require_Interfaces = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js +var require_ListAccountRolesPaginator = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListAccountRoles = void 0; + var ListAccountRolesCommand_1 = require_ListAccountRolesCommand(); + var SSO_1 = require_SSO(); + var SSOClient_1 = require_SSOClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listAccountRoles(input, ...args); + }; + async function* paginateListAccountRoles(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof SSO_1.SSO) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof SSOClient_1.SSOClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected SSO | SSOClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListAccountRoles = paginateListAccountRoles; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js +var require_ListAccountsPaginator = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListAccounts = void 0; + var ListAccountsCommand_1 = require_ListAccountsCommand(); + var SSO_1 = require_SSO(); + var SSOClient_1 = require_SSOClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listAccounts(input, ...args); + }; + async function* paginateListAccounts(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof SSO_1.SSO) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof SSOClient_1.SSOClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected SSO | SSOClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListAccounts = paginateListAccounts; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js +var require_pagination = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_Interfaces(), exports); + tslib_1.__exportStar(require_ListAccountRolesPaginator(), exports); + tslib_1.__exportStar(require_ListAccountsPaginator(), exports); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/index.js +var require_dist_cjs37 = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SSOServiceException = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_SSO(), exports); + tslib_1.__exportStar(require_SSOClient(), exports); + tslib_1.__exportStar(require_commands(), exports); + tslib_1.__exportStar(require_models(), exports); + tslib_1.__exportStar(require_pagination(), exports); + var SSOServiceException_1 = require_SSOServiceException(); + Object.defineProperty(exports, "SSOServiceException", { enumerable: true, get: function() { + return SSOServiceException_1.SSOServiceException; + } }); + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js +var require_resolveSSOCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveSSOCredentials = void 0; + var client_sso_1 = require_dist_cjs37(); + var property_provider_1 = require_dist_cjs11(); + var shared_ini_file_loader_1 = require_dist_cjs23(); + var EXPIRE_WINDOW_MS = 15 * 60 * 1e3; + var SHOULD_FAIL_CREDENTIAL_CHAIN = false; + var resolveSSOCredentials = async ({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }) => { + let token; + const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`; + try { + token = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoStartUrl); + } catch (e) { + throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); + } + if (new Date(token.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) { + throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); + } + const { accessToken } = token; + const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion }); + let ssoResp; + try { + ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({ + accountId: ssoAccountId, + roleName: ssoRoleName, + accessToken + })); + } catch (e) { + throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN); + } + const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp; + if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { + throw new property_provider_1.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN); + } + return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) }; + }; + exports.resolveSSOCredentials = resolveSSOCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js +var require_validateSsoProfile = __commonJS({ + "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.validateSsoProfile = void 0; + var property_provider_1 = require_dist_cjs11(); + var validateSsoProfile = (profile) => { + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile; + if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) { + throw new property_provider_1.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")} +Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, false); + } + return profile; + }; + exports.validateSsoProfile = validateSsoProfile; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js +var require_fromSSO = __commonJS({ + "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromSSO = void 0; + var property_provider_1 = require_dist_cjs11(); + var shared_ini_file_loader_1 = require_dist_cjs23(); + var isSsoProfile_1 = require_isSsoProfile(); + var resolveSSOCredentials_1 = require_resolveSSOCredentials(); + var validateSsoProfile_1 = require_validateSsoProfile(); + var fromSSO = (init = {}) => async () => { + const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient } = init; + if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName) { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + const profileName = (0, shared_ini_file_loader_1.getProfileName)(init); + const profile = profiles[profileName]; + if (!(0, isSsoProfile_1.isSsoProfile)(profile)) { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`); + } + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, validateSsoProfile_1.validateSsoProfile)(profile); + return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ + ssoStartUrl: sso_start_url, + ssoAccountId: sso_account_id, + ssoRegion: sso_region, + ssoRoleName: sso_role_name, + ssoClient + }); + } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { + throw new property_provider_1.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"'); + } else { + return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }); + } + }; + exports.fromSSO = fromSSO; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js +var require_types4 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +var require_dist_cjs38 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromSSO(), exports); + tslib_1.__exportStar(require_isSsoProfile(), exports); + tslib_1.__exportStar(require_types4(), exports); + tslib_1.__exportStar(require_validateSsoProfile(), exports); + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js +var require_resolveSsoCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveSsoCredentials = exports.isSsoProfile = void 0; + var credential_provider_sso_1 = require_dist_cjs38(); + var credential_provider_sso_2 = require_dist_cjs38(); + Object.defineProperty(exports, "isSsoProfile", { enumerable: true, get: function() { + return credential_provider_sso_2.isSsoProfile; + } }); + var resolveSsoCredentials = (data) => { + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data); + return (0, credential_provider_sso_1.fromSSO)({ + ssoStartUrl: sso_start_url, + ssoAccountId: sso_account_id, + ssoRegion: sso_region, + ssoRoleName: sso_role_name + })(); + }; + exports.resolveSsoCredentials = resolveSsoCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js +var require_resolveStaticCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveStaticCredentials = exports.isStaticCredsProfile = void 0; + var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1; + exports.isStaticCredsProfile = isStaticCredsProfile; + var resolveStaticCredentials = (profile) => Promise.resolve({ + accessKeyId: profile.aws_access_key_id, + secretAccessKey: profile.aws_secret_access_key, + sessionToken: profile.aws_session_token + }); + exports.resolveStaticCredentials = resolveStaticCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +var require_fromWebToken = __commonJS({ + "node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromWebToken = void 0; + var property_provider_1 = require_dist_cjs11(); + var fromWebToken = (init) => () => { + const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity } = init; + if (!roleAssumerWithWebIdentity) { + throw new property_provider_1.CredentialsProviderError(`Role Arn '${roleArn}' needs to be assumed with web identity, but no role assumption callback was provided.`, false); + } + return roleAssumerWithWebIdentity({ + RoleArn: roleArn, + RoleSessionName: roleSessionName !== null && roleSessionName !== void 0 ? roleSessionName : `aws-sdk-js-session-${Date.now()}`, + WebIdentityToken: webIdentityToken, + ProviderId: providerId, + PolicyArns: policyArns, + Policy: policy, + DurationSeconds: durationSeconds + }); + }; + exports.fromWebToken = fromWebToken; + } +}); + +// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +var require_fromTokenFile = __commonJS({ + "node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromTokenFile = void 0; + var property_provider_1 = require_dist_cjs11(); + var fs_1 = require("fs"); + var fromWebToken_1 = require_fromWebToken(); + var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE"; + var ENV_ROLE_ARN = "AWS_ROLE_ARN"; + var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME"; + var fromTokenFile = (init = {}) => async () => { + return resolveTokenFile(init); + }; + exports.fromTokenFile = fromTokenFile; + var resolveTokenFile = (init) => { + var _a, _b, _c; + const webIdentityTokenFile = (_a = init === null || init === void 0 ? void 0 : init.webIdentityTokenFile) !== null && _a !== void 0 ? _a : process.env[ENV_TOKEN_FILE]; + const roleArn = (_b = init === null || init === void 0 ? void 0 : init.roleArn) !== null && _b !== void 0 ? _b : process.env[ENV_ROLE_ARN]; + const roleSessionName = (_c = init === null || init === void 0 ? void 0 : init.roleSessionName) !== null && _c !== void 0 ? _c : process.env[ENV_ROLE_SESSION_NAME]; + if (!webIdentityTokenFile || !roleArn) { + throw new property_provider_1.CredentialsProviderError("Web identity configuration not specified"); + } + return (0, fromWebToken_1.fromWebToken)({ + ...init, + webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }), + roleArn, + roleSessionName + })(); + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +var require_dist_cjs39 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromTokenFile(), exports); + tslib_1.__exportStar(require_fromWebToken(), exports); + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js +var require_resolveWebIdentityCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveWebIdentityCredentials = exports.isWebIdentityProfile = void 0; + var credential_provider_web_identity_1 = require_dist_cjs39(); + var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1; + exports.isWebIdentityProfile = isWebIdentityProfile; + var resolveWebIdentityCredentials = async (profile, options) => (0, credential_provider_web_identity_1.fromTokenFile)({ + webIdentityTokenFile: profile.web_identity_token_file, + roleArn: profile.role_arn, + roleSessionName: profile.role_session_name, + roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity + })(); + exports.resolveWebIdentityCredentials = resolveWebIdentityCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js +var require_resolveProfileData = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveProfileData = void 0; + var property_provider_1 = require_dist_cjs11(); + var resolveAssumeRoleCredentials_1 = require_resolveAssumeRoleCredentials(); + var resolveSsoCredentials_1 = require_resolveSsoCredentials(); + var resolveStaticCredentials_1 = require_resolveStaticCredentials(); + var resolveWebIdentityCredentials_1 = require_resolveWebIdentityCredentials(); + var resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}) => { + const data = profiles[profileName]; + if (Object.keys(visitedProfiles).length > 0 && (0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { + return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); + } + if ((0, resolveAssumeRoleCredentials_1.isAssumeRoleProfile)(data)) { + return (0, resolveAssumeRoleCredentials_1.resolveAssumeRoleCredentials)(profileName, profiles, options, visitedProfiles); + } + if ((0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { + return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); + } + if ((0, resolveWebIdentityCredentials_1.isWebIdentityProfile)(data)) { + return (0, resolveWebIdentityCredentials_1.resolveWebIdentityCredentials)(data, options); + } + if ((0, resolveSsoCredentials_1.isSsoProfile)(data)) { + return (0, resolveSsoCredentials_1.resolveSsoCredentials)(data); + } + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`); + }; + exports.resolveProfileData = resolveProfileData; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js +var require_fromIni = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromIni = void 0; + var shared_ini_file_loader_1 = require_dist_cjs23(); + var resolveProfileData_1 = require_resolveProfileData(); + var fromIni = (init = {}) => async () => { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + return (0, resolveProfileData_1.resolveProfileData)((0, shared_ini_file_loader_1.getProfileName)(init), profiles, init); + }; + exports.fromIni = fromIni; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +var require_dist_cjs40 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromIni(), exports); + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js +var require_getValidatedProcessCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getValidatedProcessCredentials = void 0; + var getValidatedProcessCredentials = (profileName, data) => { + if (data.Version !== 1) { + throw Error(`Profile ${profileName} credential_process did not return Version 1.`); + } + if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) { + throw Error(`Profile ${profileName} credential_process returned invalid credentials.`); + } + if (data.Expiration) { + const currentTime = new Date(); + const expireTime = new Date(data.Expiration); + if (expireTime < currentTime) { + throw Error(`Profile ${profileName} credential_process returned expired credentials.`); + } + } + return { + accessKeyId: data.AccessKeyId, + secretAccessKey: data.SecretAccessKey, + ...data.SessionToken && { sessionToken: data.SessionToken }, + ...data.Expiration && { expiration: new Date(data.Expiration) } + }; + }; + exports.getValidatedProcessCredentials = getValidatedProcessCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js +var require_resolveProcessCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveProcessCredentials = void 0; + var property_provider_1 = require_dist_cjs11(); + var child_process_1 = require("child_process"); + var util_1 = require("util"); + var getValidatedProcessCredentials_1 = require_getValidatedProcessCredentials(); + var resolveProcessCredentials = async (profileName, profiles) => { + const profile = profiles[profileName]; + if (profiles[profileName]) { + const credentialProcess = profile["credential_process"]; + if (credentialProcess !== void 0) { + const execPromise = (0, util_1.promisify)(child_process_1.exec); + try { + const { stdout } = await execPromise(credentialProcess); + let data; + try { + data = JSON.parse(stdout.trim()); + } catch (_a) { + throw Error(`Profile ${profileName} credential_process returned invalid JSON.`); + } + return (0, getValidatedProcessCredentials_1.getValidatedProcessCredentials)(profileName, data); + } catch (error) { + throw new property_provider_1.CredentialsProviderError(error.message); + } + } else { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`); + } + } else { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`); + } + }; + exports.resolveProcessCredentials = resolveProcessCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js +var require_fromProcess = __commonJS({ + "node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromProcess = void 0; + var shared_ini_file_loader_1 = require_dist_cjs23(); + var resolveProcessCredentials_1 = require_resolveProcessCredentials(); + var fromProcess = (init = {}) => async () => { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + return (0, resolveProcessCredentials_1.resolveProcessCredentials)((0, shared_ini_file_loader_1.getProfileName)(init), profiles); + }; + exports.fromProcess = fromProcess; + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +var require_dist_cjs41 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromProcess(), exports); + } +}); + +// node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js +var require_remoteProvider = __commonJS({ + "node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.remoteProvider = exports.ENV_IMDS_DISABLED = void 0; + var credential_provider_imds_1 = require_dist_cjs27(); + var property_provider_1 = require_dist_cjs11(); + exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; + var remoteProvider = (init) => { + if (process.env[credential_provider_imds_1.ENV_CMDS_RELATIVE_URI] || process.env[credential_provider_imds_1.ENV_CMDS_FULL_URI]) { + return (0, credential_provider_imds_1.fromContainerMetadata)(init); + } + if (process.env[exports.ENV_IMDS_DISABLED]) { + return async () => { + throw new property_provider_1.CredentialsProviderError("EC2 Instance Metadata Service access disabled"); + }; + } + return (0, credential_provider_imds_1.fromInstanceMetadata)(init); + }; + exports.remoteProvider = remoteProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js +var require_defaultProvider = __commonJS({ + "node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.defaultProvider = void 0; + var credential_provider_env_1 = require_dist_cjs22(); + var credential_provider_ini_1 = require_dist_cjs40(); + var credential_provider_process_1 = require_dist_cjs41(); + var credential_provider_sso_1 = require_dist_cjs38(); + var credential_provider_web_identity_1 = require_dist_cjs39(); + var property_provider_1 = require_dist_cjs11(); + var shared_ini_file_loader_1 = require_dist_cjs23(); + var remoteProvider_1 = require_remoteProvider(); + var defaultProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)(...init.profile || process.env[shared_ini_file_loader_1.ENV_PROFILE] ? [] : [(0, credential_provider_env_1.fromEnv)()], (0, credential_provider_sso_1.fromSSO)(init), (0, credential_provider_ini_1.fromIni)(init), (0, credential_provider_process_1.fromProcess)(init), (0, credential_provider_web_identity_1.fromTokenFile)(init), (0, remoteProvider_1.remoteProvider)(init), async () => { + throw new property_provider_1.CredentialsProviderError("Could not load credentials from any providers", false); + }), (credentials) => credentials.expiration !== void 0 && credentials.expiration.getTime() - Date.now() < 3e5, (credentials) => credentials.expiration !== void 0); + exports.defaultProvider = defaultProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +var require_dist_cjs42 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_defaultProvider(), exports); + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/endpoints.js +var require_endpoints2 = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/endpoints.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.defaultRegionInfoProvider = void 0; + var config_resolver_1 = require_dist_cjs3(); + var regionHash = { + "aws-global": { + variants: [ + { + hostname: "sts.amazonaws.com", + tags: [] + } + ], + signingRegion: "us-east-1" + }, + "us-east-1": { + variants: [ + { + hostname: "sts-fips.us-east-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-east-2": { + variants: [ + { + hostname: "sts-fips.us-east-2.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-gov-east-1": { + variants: [ + { + hostname: "sts.us-gov-east-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-gov-west-1": { + variants: [ + { + hostname: "sts.us-gov-west-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-west-1": { + variants: [ + { + hostname: "sts-fips.us-west-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-west-2": { + variants: [ + { + hostname: "sts-fips.us-west-2.amazonaws.com", + tags: ["fips"] + } + ] + } + }; + var partitionHash = { + aws: { + regions: [ + "af-south-1", + "ap-east-1", + "ap-northeast-1", + "ap-northeast-2", + "ap-northeast-3", + "ap-south-1", + "ap-southeast-1", + "ap-southeast-2", + "ap-southeast-3", + "aws-global", + "ca-central-1", + "eu-central-1", + "eu-north-1", + "eu-south-1", + "eu-west-1", + "eu-west-2", + "eu-west-3", + "me-central-1", + "me-south-1", + "sa-east-1", + "us-east-1", + "us-east-1-fips", + "us-east-2", + "us-east-2-fips", + "us-west-1", + "us-west-1-fips", + "us-west-2", + "us-west-2-fips" + ], + regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "sts.{region}.amazonaws.com", + tags: [] + }, + { + hostname: "sts-fips.{region}.amazonaws.com", + tags: ["fips"] + }, + { + hostname: "sts-fips.{region}.api.aws", + tags: ["dualstack", "fips"] + }, + { + hostname: "sts.{region}.api.aws", + tags: ["dualstack"] + } + ] + }, + "aws-cn": { + regions: ["cn-north-1", "cn-northwest-1"], + regionRegex: "^cn\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "sts.{region}.amazonaws.com.cn", + tags: [] + }, + { + hostname: "sts-fips.{region}.amazonaws.com.cn", + tags: ["fips"] + }, + { + hostname: "sts-fips.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack", "fips"] + }, + { + hostname: "sts.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack"] + } + ] + }, + "aws-iso": { + regions: ["us-iso-east-1", "us-iso-west-1"], + regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "sts.{region}.c2s.ic.gov", + tags: [] + }, + { + hostname: "sts-fips.{region}.c2s.ic.gov", + tags: ["fips"] + } + ] + }, + "aws-iso-b": { + regions: ["us-isob-east-1"], + regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "sts.{region}.sc2s.sgov.gov", + tags: [] + }, + { + hostname: "sts-fips.{region}.sc2s.sgov.gov", + tags: ["fips"] + } + ] + }, + "aws-us-gov": { + regions: ["us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"], + regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "sts.{region}.amazonaws.com", + tags: [] + }, + { + hostname: "sts.{region}.amazonaws.com", + tags: ["fips"] + }, + { + hostname: "sts-fips.{region}.api.aws", + tags: ["dualstack", "fips"] + }, + { + hostname: "sts.{region}.api.aws", + tags: ["dualstack"] + } + ] + } + }; + var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { + ...options, + signingService: "sts", + regionHash, + partitionHash + }); + exports.defaultRegionInfoProvider = defaultRegionInfoProvider; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared2 = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRuntimeConfig = void 0; + var url_parser_1 = require_dist_cjs26(); + var endpoints_1 = require_endpoints2(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return { + apiVersion: "2011-06-15", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "STS", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl + }; + }; + exports.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +var require_runtimeConfig2 = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRuntimeConfig = void 0; + var tslib_1 = require_tslib(); + var package_json_1 = tslib_1.__importDefault(require_package2()); + var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers(); + var config_resolver_1 = require_dist_cjs3(); + var credential_provider_node_1 = require_dist_cjs42(); + var hash_node_1 = require_dist_cjs29(); + var middleware_retry_1 = require_dist_cjs10(); + var node_config_provider_1 = require_dist_cjs24(); + var node_http_handler_1 = require_dist_cjs31(); + var util_base64_node_1 = require_dist_cjs32(); + var util_body_length_node_1 = require_dist_cjs33(); + var util_user_agent_node_1 = require_dist_cjs34(); + var util_utf8_node_1 = require_dist_cjs35(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared2(); + var smithy_client_1 = require_dist_cjs19(); + var util_defaults_mode_node_1 = require_dist_cjs36(); + var smithy_client_2 = require_dist_cjs19(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; + (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); + const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), + defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE + }), + sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), + streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, + utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8 + }; + }; + exports.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +var require_STSClient = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.STSClient = void 0; + var config_resolver_1 = require_dist_cjs3(); + var middleware_content_length_1 = require_dist_cjs5(); + var middleware_host_header_1 = require_dist_cjs6(); + var middleware_logger_1 = require_dist_cjs7(); + var middleware_recursion_detection_1 = require_dist_cjs8(); + var middleware_retry_1 = require_dist_cjs10(); + var middleware_sdk_sts_1 = require_dist_cjs21(); + var middleware_user_agent_1 = require_dist_cjs17(); + var smithy_client_1 = require_dist_cjs19(); + var runtimeConfig_1 = require_runtimeConfig2(); + var STSClient = class extends smithy_client_1.Client { + constructor(configuration) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); + const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); + const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); + const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); + const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); + const _config_5 = (0, middleware_sdk_sts_1.resolveStsAuthConfig)(_config_4, { stsClientCtor: STSClient }); + const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); + super(_config_6); + this.config = _config_6; + this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + } + destroy() { + super.destroy(); + } + }; + exports.STSClient = STSClient; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/STS.js +var require_STS = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/STS.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.STS = void 0; + var AssumeRoleCommand_1 = require_AssumeRoleCommand(); + var AssumeRoleWithSAMLCommand_1 = require_AssumeRoleWithSAMLCommand(); + var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); + var DecodeAuthorizationMessageCommand_1 = require_DecodeAuthorizationMessageCommand(); + var GetAccessKeyInfoCommand_1 = require_GetAccessKeyInfoCommand(); + var GetCallerIdentityCommand_1 = require_GetCallerIdentityCommand(); + var GetFederationTokenCommand_1 = require_GetFederationTokenCommand(); + var GetSessionTokenCommand_1 = require_GetSessionTokenCommand(); + var STSClient_1 = require_STSClient(); + var STS = class extends STSClient_1.STSClient { + assumeRole(args, optionsOrCb, cb) { + const command = new AssumeRoleCommand_1.AssumeRoleCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + assumeRoleWithSAML(args, optionsOrCb, cb) { + const command = new AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + assumeRoleWithWebIdentity(args, optionsOrCb, cb) { + const command = new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + decodeAuthorizationMessage(args, optionsOrCb, cb) { + const command = new DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getAccessKeyInfo(args, optionsOrCb, cb) { + const command = new GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getCallerIdentity(args, optionsOrCb, cb) { + const command = new GetCallerIdentityCommand_1.GetCallerIdentityCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getFederationToken(args, optionsOrCb, cb) { + const command = new GetFederationTokenCommand_1.GetFederationTokenCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getSessionToken(args, optionsOrCb, cb) { + const command = new GetSessionTokenCommand_1.GetSessionTokenCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + }; + exports.STS = STS; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js +var require_commands2 = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_AssumeRoleCommand(), exports); + tslib_1.__exportStar(require_AssumeRoleWithSAMLCommand(), exports); + tslib_1.__exportStar(require_AssumeRoleWithWebIdentityCommand(), exports); + tslib_1.__exportStar(require_DecodeAuthorizationMessageCommand(), exports); + tslib_1.__exportStar(require_GetAccessKeyInfoCommand(), exports); + tslib_1.__exportStar(require_GetCallerIdentityCommand(), exports); + tslib_1.__exportStar(require_GetFederationTokenCommand(), exports); + tslib_1.__exportStar(require_GetSessionTokenCommand(), exports); + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js +var require_defaultRoleAssumers = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; + var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers(); + var STSClient_1 = require_STSClient(); + var getCustomizableStsClientCtor = (baseCtor, customizations) => { + if (!customizations) + return baseCtor; + else + return class CustomizableSTSClient extends baseCtor { + constructor(config) { + super(config); + for (const customization of customizations) { + this.middlewareStack.use(customization); + } + } + }; + }; + var getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumer)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); + exports.getDefaultRoleAssumer = getDefaultRoleAssumer; + var getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); + exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; + var decorateDefaultCredentialProvider = (provider) => (input) => provider({ + roleAssumer: (0, exports.getDefaultRoleAssumer)(input), + roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input), + ...input + }); + exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js +var require_models2 = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_models_0(), exports); + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/index.js +var require_dist_cjs43 = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.STSServiceException = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_STS(), exports); + tslib_1.__exportStar(require_STSClient(), exports); + tslib_1.__exportStar(require_commands2(), exports); + tslib_1.__exportStar(require_defaultRoleAssumers(), exports); + tslib_1.__exportStar(require_models2(), exports); + var STSServiceException_1 = require_STSServiceException(); + Object.defineProperty(exports, "STSServiceException", { enumerable: true, get: function() { + return STSServiceException_1.STSServiceException; + } }); + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoints.js +var require_endpoints3 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoints.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.defaultRegionInfoProvider = void 0; + var config_resolver_1 = require_dist_cjs3(); + var regionHash = { + "us-east-1": { + variants: [ + { + hostname: "codedeploy-fips.us-east-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-east-2": { + variants: [ + { + hostname: "codedeploy-fips.us-east-2.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-gov-east-1": { + variants: [ + { + hostname: "codedeploy-fips.us-gov-east-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-gov-west-1": { + variants: [ + { + hostname: "codedeploy-fips.us-gov-west-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-west-1": { + variants: [ + { + hostname: "codedeploy-fips.us-west-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-west-2": { + variants: [ + { + hostname: "codedeploy-fips.us-west-2.amazonaws.com", + tags: ["fips"] + } + ] + } + }; + var partitionHash = { + aws: { + regions: [ + "af-south-1", + "ap-east-1", + "ap-northeast-1", + "ap-northeast-2", + "ap-northeast-3", + "ap-south-1", + "ap-southeast-1", + "ap-southeast-2", + "ap-southeast-3", + "ca-central-1", + "eu-central-1", + "eu-north-1", + "eu-south-1", + "eu-west-1", + "eu-west-2", + "eu-west-3", + "me-central-1", + "me-south-1", + "sa-east-1", + "us-east-1", + "us-east-1-fips", + "us-east-2", + "us-east-2-fips", + "us-west-1", + "us-west-1-fips", + "us-west-2", + "us-west-2-fips" + ], + regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "codedeploy.{region}.amazonaws.com", + tags: [] + }, + { + hostname: "codedeploy-fips.{region}.amazonaws.com", + tags: ["fips"] + }, + { + hostname: "codedeploy-fips.{region}.api.aws", + tags: ["dualstack", "fips"] + }, + { + hostname: "codedeploy.{region}.api.aws", + tags: ["dualstack"] + } + ] + }, + "aws-cn": { + regions: ["cn-north-1", "cn-northwest-1"], + regionRegex: "^cn\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "codedeploy.{region}.amazonaws.com.cn", + tags: [] + }, + { + hostname: "codedeploy-fips.{region}.amazonaws.com.cn", + tags: ["fips"] + }, + { + hostname: "codedeploy-fips.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack", "fips"] + }, + { + hostname: "codedeploy.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack"] + } + ] + }, + "aws-iso": { + regions: ["us-iso-east-1", "us-iso-west-1"], + regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "codedeploy.{region}.c2s.ic.gov", + tags: [] + }, + { + hostname: "codedeploy-fips.{region}.c2s.ic.gov", + tags: ["fips"] + } + ] + }, + "aws-iso-b": { + regions: ["us-isob-east-1"], + regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "codedeploy.{region}.sc2s.sgov.gov", + tags: [] + }, + { + hostname: "codedeploy-fips.{region}.sc2s.sgov.gov", + tags: ["fips"] + } + ] + }, + "aws-us-gov": { + regions: ["us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"], + regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "codedeploy.{region}.amazonaws.com", + tags: [] + }, + { + hostname: "codedeploy-fips.{region}.amazonaws.com", + tags: ["fips"] + }, + { + hostname: "codedeploy-fips.{region}.api.aws", + tags: ["dualstack", "fips"] + }, + { + hostname: "codedeploy.{region}.api.aws", + tags: ["dualstack"] + } + ] + } + }; + var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { + ...options, + signingService: "codedeploy", + regionHash, + partitionHash + }); + exports.defaultRegionInfoProvider = defaultRegionInfoProvider; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared3 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.shared.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRuntimeConfig = void 0; + var url_parser_1 = require_dist_cjs26(); + var endpoints_1 = require_endpoints3(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return { + apiVersion: "2014-10-06", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "CodeDeploy", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl + }; + }; + exports.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.js +var require_runtimeConfig3 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRuntimeConfig = void 0; + var tslib_1 = require_tslib(); + var package_json_1 = tslib_1.__importDefault(require_package()); + var client_sts_1 = require_dist_cjs43(); + var config_resolver_1 = require_dist_cjs3(); + var credential_provider_node_1 = require_dist_cjs42(); + var hash_node_1 = require_dist_cjs29(); + var middleware_retry_1 = require_dist_cjs10(); + var node_config_provider_1 = require_dist_cjs24(); + var node_http_handler_1 = require_dist_cjs31(); + var util_base64_node_1 = require_dist_cjs32(); + var util_body_length_node_1 = require_dist_cjs33(); + var util_user_agent_node_1 = require_dist_cjs34(); + var util_utf8_node_1 = require_dist_cjs35(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared3(); + var smithy_client_1 = require_dist_cjs19(); + var util_defaults_mode_node_1 = require_dist_cjs36(); + var smithy_client_2 = require_dist_cjs19(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; + (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); + const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), + defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE + }), + sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), + streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, + utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8 + }; + }; + exports.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/CodeDeployClient.js +var require_CodeDeployClient = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/CodeDeployClient.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CodeDeployClient = void 0; + var config_resolver_1 = require_dist_cjs3(); + var middleware_content_length_1 = require_dist_cjs5(); + var middleware_host_header_1 = require_dist_cjs6(); + var middleware_logger_1 = require_dist_cjs7(); + var middleware_recursion_detection_1 = require_dist_cjs8(); + var middleware_retry_1 = require_dist_cjs10(); + var middleware_signing_1 = require_dist_cjs16(); + var middleware_user_agent_1 = require_dist_cjs17(); + var smithy_client_1 = require_dist_cjs19(); + var runtimeConfig_1 = require_runtimeConfig3(); + var CodeDeployClient = class extends smithy_client_1.Client { + constructor(configuration) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); + const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); + const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); + const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); + const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); + const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4); + const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); + super(_config_6); + this.config = _config_6; + this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + } + destroy() { + super.destroy(); + } + }; + exports.CodeDeployClient = CodeDeployClient; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/CodeDeployServiceException.js +var require_CodeDeployServiceException = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/CodeDeployServiceException.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CodeDeployServiceException = void 0; + var smithy_client_1 = require_dist_cjs19(); + var CodeDeployServiceException = class extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, CodeDeployServiceException.prototype); + } + }; + exports.CodeDeployServiceException = CodeDeployServiceException; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/models_0.js +var require_models_03 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/models_0.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.TargetLabel = exports.DeploymentTargetType = exports.TargetStatus = exports.FileExistsBehavior = exports.ErrorCode = exports.DeploymentCreator = exports.InvalidDeploymentIdException = exports.InvalidComputePlatformException = exports.InstanceIdRequiredException = exports.DeploymentIdRequiredException = exports.DeploymentDoesNotExistException = exports.InstanceStatus = exports.LifecycleEventStatus = exports.LifecycleErrorCode = exports._InstanceType = exports.InvalidDeploymentGroupNameException = exports.DeploymentGroupNameRequiredException = exports.DeploymentConfigDoesNotExistException = exports.TriggerEventType = exports.OutdatedInstancesStrategy = exports.TagFilterType = exports.DeploymentStatus = exports.EC2TagFilterType = exports.DeploymentType = exports.DeploymentOption = exports.InstanceAction = exports.GreenFleetProvisioningAction = exports.DeploymentReadyAction = exports.RevisionRequiredException = exports.InvalidRevisionException = exports.InvalidApplicationNameException = exports.BatchLimitExceededException = exports.BundleType = exports.RevisionLocationType = exports.AutoRollbackEvent = exports.ArnNotSupportedException = exports.ApplicationRevisionSortBy = exports.ApplicationNameRequiredException = exports.ApplicationLimitExceededException = exports.ComputePlatform = exports.ApplicationDoesNotExistException = exports.ApplicationAlreadyExistsException = exports.AlarmsLimitExceededException = exports.TagRequiredException = exports.TagLimitExceededException = exports.InvalidTagException = exports.InvalidInstanceNameException = exports.InstanceNotRegisteredException = exports.InstanceNameRequiredException = exports.InstanceLimitExceededException = void 0; + exports.LifecycleHookLimitExceededException = exports.InvalidTriggerConfigException = exports.InvalidTargetGroupPairException = exports.InvalidOnPremisesTagCombinationException = exports.InvalidInputException = exports.InvalidECSServiceException = exports.InvalidEC2TagException = exports.InvalidEC2TagCombinationException = exports.InvalidDeploymentStyleException = exports.InvalidBlueGreenDeploymentConfigurationException = exports.ECSServiceMappingLimitExceededException = exports.DeploymentGroupLimitExceededException = exports.DeploymentGroupAlreadyExistsException = exports.InvalidMinimumHealthyHostValueException = exports.DeploymentConfigNameRequiredException = exports.DeploymentConfigLimitExceededException = exports.DeploymentConfigAlreadyExistsException = exports.TrafficRoutingType = exports.MinimumHealthyHostsType = exports.ThrottlingException = exports.RevisionDoesNotExistException = exports.InvalidUpdateOutdatedInstancesOnlyValueException = exports.InvalidTrafficRoutingConfigurationException = exports.InvalidTargetInstancesException = exports.InvalidRoleException = exports.InvalidLoadBalancerInfoException = exports.InvalidIgnoreApplicationStopFailuresValueException = exports.InvalidGitHubAccountTokenException = exports.InvalidFileExistsBehaviorException = exports.InvalidDeploymentConfigNameException = exports.InvalidAutoScalingGroupException = exports.InvalidAutoRollbackConfigException = exports.InvalidAlarmConfigException = exports.DescriptionTooLongException = exports.DeploymentLimitExceededException = exports.DeploymentGroupDoesNotExistException = exports.InvalidTagsToAddException = exports.UnsupportedActionForDeploymentTypeException = exports.InvalidDeploymentWaitTypeException = exports.InvalidDeploymentStatusException = exports.DeploymentIsNotInReadyStateException = exports.DeploymentAlreadyCompletedException = exports.DeploymentWaitType = exports.BucketNameFilterRequiredException = exports.InvalidDeploymentTargetIdException = exports.InstanceDoesNotExistException = exports.DeploymentTargetListSizeExceededException = exports.DeploymentTargetIdRequiredException = exports.DeploymentTargetDoesNotExistException = exports.DeploymentNotStartedException = void 0; + exports.AutoScalingGroupFilterSensitiveLog = exports.AutoRollbackConfigurationFilterSensitiveLog = exports.AppSpecContentFilterSensitiveLog = exports.ApplicationInfoFilterSensitiveLog = exports.AlarmConfigurationFilterSensitiveLog = exports.AlarmFilterSensitiveLog = exports.AddTagsToOnPremisesInstancesInputFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.StopStatus = exports.MultipleIamArnsProvidedException = exports.InvalidIamUserArnException = exports.InvalidIamSessionArnException = exports.InstanceNameAlreadyRegisteredException = exports.IamUserArnRequiredException = exports.IamUserArnAlreadyRegisteredException = exports.IamSessionArnAlreadyRegisteredException = exports.IamArnRequiredException = exports.LifecycleEventAlreadyCompletedException = exports.InvalidLifecycleEventHookExecutionStatusException = exports.InvalidLifecycleEventHookExecutionIdException = exports.ResourceArnRequiredException = exports.InvalidArnException = exports.RegistrationStatus = exports.InvalidTagFilterException = exports.InvalidRegistrationStatusException = exports.TargetFilterName = exports.InvalidTimeRangeException = exports.InvalidExternalIdException = exports.InvalidTargetFilterNameException = exports.InvalidInstanceTypeException = exports.InvalidInstanceStatusException = exports.InvalidDeploymentInstanceTypeException = exports.SortOrder = exports.ListStateFilterAction = exports.InvalidSortOrderException = exports.InvalidSortByException = exports.InvalidNextTokenException = exports.InvalidKeyPrefixFilterException = exports.InvalidDeployedStateFilterException = exports.InvalidBucketNameFilterException = exports.ResourceValidationException = exports.OperationNotSupportedException = exports.InvalidGitHubAccountTokenNameException = exports.GitHubAccountTokenNameRequiredException = exports.GitHubAccountTokenDoesNotExistException = exports.InvalidOperationException = exports.DeploymentConfigInUseException = exports.TriggerTargetsLimitExceededException = exports.TagSetListLimitExceededException = exports.RoleRequiredException = void 0; + exports.LambdaTargetFilterSensitiveLog = exports.LambdaFunctionInfoFilterSensitiveLog = exports.InstanceTargetFilterSensitiveLog = exports.ECSTargetFilterSensitiveLog = exports.ECSTaskSetFilterSensitiveLog = exports.CloudFormationTargetFilterSensitiveLog = exports.BatchGetDeploymentTargetsInputFilterSensitiveLog = exports.BatchGetDeploymentsOutputFilterSensitiveLog = exports.DeploymentInfoFilterSensitiveLog = exports.TargetInstancesFilterSensitiveLog = exports.RollbackInfoFilterSensitiveLog = exports.RelatedDeploymentsFilterSensitiveLog = exports.ErrorInformationFilterSensitiveLog = exports.DeploymentOverviewFilterSensitiveLog = exports.BatchGetDeploymentsInputFilterSensitiveLog = exports.BatchGetDeploymentInstancesOutputFilterSensitiveLog = exports.InstanceSummaryFilterSensitiveLog = exports.LifecycleEventFilterSensitiveLog = exports.DiagnosticsFilterSensitiveLog = exports.BatchGetDeploymentInstancesInputFilterSensitiveLog = exports.BatchGetDeploymentGroupsOutputFilterSensitiveLog = exports.DeploymentGroupInfoFilterSensitiveLog = exports.TriggerConfigFilterSensitiveLog = exports.OnPremisesTagSetFilterSensitiveLog = exports.TagFilterFilterSensitiveLog = exports.LoadBalancerInfoFilterSensitiveLog = exports.TargetGroupPairInfoFilterSensitiveLog = exports.TrafficRouteFilterSensitiveLog = exports.TargetGroupInfoFilterSensitiveLog = exports.ELBInfoFilterSensitiveLog = exports.LastDeploymentInfoFilterSensitiveLog = exports.ECSServiceFilterSensitiveLog = exports.EC2TagSetFilterSensitiveLog = exports.EC2TagFilterFilterSensitiveLog = exports.DeploymentStyleFilterSensitiveLog = exports.BlueGreenDeploymentConfigurationFilterSensitiveLog = exports.BlueInstanceTerminationOptionFilterSensitiveLog = exports.GreenFleetProvisioningOptionFilterSensitiveLog = exports.DeploymentReadyOptionFilterSensitiveLog = exports.BatchGetDeploymentGroupsInputFilterSensitiveLog = exports.BatchGetApplicationsOutputFilterSensitiveLog = exports.BatchGetApplicationsInputFilterSensitiveLog = exports.BatchGetApplicationRevisionsOutputFilterSensitiveLog = exports.RevisionInfoFilterSensitiveLog = exports.GenericRevisionInfoFilterSensitiveLog = exports.BatchGetApplicationRevisionsInputFilterSensitiveLog = exports.RevisionLocationFilterSensitiveLog = exports.RawStringFilterSensitiveLog = exports.S3LocationFilterSensitiveLog = exports.GitHubLocationFilterSensitiveLog = void 0; + exports.ListDeploymentConfigsOutputFilterSensitiveLog = exports.ListDeploymentConfigsInputFilterSensitiveLog = exports.ListApplicationsOutputFilterSensitiveLog = exports.ListApplicationsInputFilterSensitiveLog = exports.ListApplicationRevisionsOutputFilterSensitiveLog = exports.ListApplicationRevisionsInputFilterSensitiveLog = exports.GetOnPremisesInstanceOutputFilterSensitiveLog = exports.GetOnPremisesInstanceInputFilterSensitiveLog = exports.GetDeploymentTargetOutputFilterSensitiveLog = exports.GetDeploymentTargetInputFilterSensitiveLog = exports.GetDeploymentInstanceOutputFilterSensitiveLog = exports.GetDeploymentInstanceInputFilterSensitiveLog = exports.GetDeploymentGroupOutputFilterSensitiveLog = exports.GetDeploymentGroupInputFilterSensitiveLog = exports.GetDeploymentConfigOutputFilterSensitiveLog = exports.DeploymentConfigInfoFilterSensitiveLog = exports.GetDeploymentConfigInputFilterSensitiveLog = exports.GetDeploymentOutputFilterSensitiveLog = exports.GetDeploymentInputFilterSensitiveLog = exports.GetApplicationRevisionOutputFilterSensitiveLog = exports.GetApplicationRevisionInputFilterSensitiveLog = exports.GetApplicationOutputFilterSensitiveLog = exports.GetApplicationInputFilterSensitiveLog = exports.DeregisterOnPremisesInstanceInputFilterSensitiveLog = exports.DeleteResourcesByExternalIdOutputFilterSensitiveLog = exports.DeleteResourcesByExternalIdInputFilterSensitiveLog = exports.DeleteGitHubAccountTokenOutputFilterSensitiveLog = exports.DeleteGitHubAccountTokenInputFilterSensitiveLog = exports.DeleteDeploymentGroupOutputFilterSensitiveLog = exports.DeleteDeploymentGroupInputFilterSensitiveLog = exports.DeleteDeploymentConfigInputFilterSensitiveLog = exports.DeleteApplicationInputFilterSensitiveLog = exports.CreateDeploymentGroupOutputFilterSensitiveLog = exports.CreateDeploymentGroupInputFilterSensitiveLog = exports.CreateDeploymentConfigOutputFilterSensitiveLog = exports.CreateDeploymentConfigInputFilterSensitiveLog = exports.TrafficRoutingConfigFilterSensitiveLog = exports.TimeBasedLinearFilterSensitiveLog = exports.TimeBasedCanaryFilterSensitiveLog = exports.MinimumHealthyHostsFilterSensitiveLog = exports.CreateDeploymentOutputFilterSensitiveLog = exports.CreateDeploymentInputFilterSensitiveLog = exports.CreateApplicationOutputFilterSensitiveLog = exports.CreateApplicationInputFilterSensitiveLog = exports.ContinueDeploymentInputFilterSensitiveLog = exports.BatchGetOnPremisesInstancesOutputFilterSensitiveLog = exports.InstanceInfoFilterSensitiveLog = exports.BatchGetOnPremisesInstancesInputFilterSensitiveLog = exports.BatchGetDeploymentTargetsOutputFilterSensitiveLog = exports.DeploymentTargetFilterSensitiveLog = void 0; + exports.UpdateDeploymentGroupOutputFilterSensitiveLog = exports.UpdateDeploymentGroupInputFilterSensitiveLog = exports.UpdateApplicationInputFilterSensitiveLog = exports.UntagResourceOutputFilterSensitiveLog = exports.UntagResourceInputFilterSensitiveLog = exports.TagResourceOutputFilterSensitiveLog = exports.TagResourceInputFilterSensitiveLog = exports.StopDeploymentOutputFilterSensitiveLog = exports.StopDeploymentInputFilterSensitiveLog = exports.SkipWaitTimeForInstanceTerminationInputFilterSensitiveLog = exports.RemoveTagsFromOnPremisesInstancesInputFilterSensitiveLog = exports.RegisterOnPremisesInstanceInputFilterSensitiveLog = exports.RegisterApplicationRevisionInputFilterSensitiveLog = exports.PutLifecycleEventHookExecutionStatusOutputFilterSensitiveLog = exports.PutLifecycleEventHookExecutionStatusInputFilterSensitiveLog = exports.ListTagsForResourceOutputFilterSensitiveLog = exports.ListTagsForResourceInputFilterSensitiveLog = exports.ListOnPremisesInstancesOutputFilterSensitiveLog = exports.ListOnPremisesInstancesInputFilterSensitiveLog = exports.ListGitHubAccountTokenNamesOutputFilterSensitiveLog = exports.ListGitHubAccountTokenNamesInputFilterSensitiveLog = exports.ListDeploymentTargetsOutputFilterSensitiveLog = exports.ListDeploymentTargetsInputFilterSensitiveLog = exports.ListDeploymentsOutputFilterSensitiveLog = exports.ListDeploymentsInputFilterSensitiveLog = exports.TimeRangeFilterSensitiveLog = exports.ListDeploymentInstancesOutputFilterSensitiveLog = exports.ListDeploymentInstancesInputFilterSensitiveLog = exports.ListDeploymentGroupsOutputFilterSensitiveLog = exports.ListDeploymentGroupsInputFilterSensitiveLog = void 0; + var CodeDeployServiceException_1 = require_CodeDeployServiceException(); + var InstanceLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InstanceLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "InstanceLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InstanceLimitExceededException.prototype); + } + }; + exports.InstanceLimitExceededException = InstanceLimitExceededException; + var InstanceNameRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InstanceNameRequiredException", + $fault: "client", + ...opts + }); + this.name = "InstanceNameRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InstanceNameRequiredException.prototype); + } + }; + exports.InstanceNameRequiredException = InstanceNameRequiredException; + var InstanceNotRegisteredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InstanceNotRegisteredException", + $fault: "client", + ...opts + }); + this.name = "InstanceNotRegisteredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InstanceNotRegisteredException.prototype); + } + }; + exports.InstanceNotRegisteredException = InstanceNotRegisteredException; + var InvalidInstanceNameException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidInstanceNameException", + $fault: "client", + ...opts + }); + this.name = "InvalidInstanceNameException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidInstanceNameException.prototype); + } + }; + exports.InvalidInstanceNameException = InvalidInstanceNameException; + var InvalidTagException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTagException", + $fault: "client", + ...opts + }); + this.name = "InvalidTagException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTagException.prototype); + } + }; + exports.InvalidTagException = InvalidTagException; + var TagLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "TagLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "TagLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TagLimitExceededException.prototype); + } + }; + exports.TagLimitExceededException = TagLimitExceededException; + var TagRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "TagRequiredException", + $fault: "client", + ...opts + }); + this.name = "TagRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TagRequiredException.prototype); + } + }; + exports.TagRequiredException = TagRequiredException; + var AlarmsLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "AlarmsLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "AlarmsLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, AlarmsLimitExceededException.prototype); + } + }; + exports.AlarmsLimitExceededException = AlarmsLimitExceededException; + var ApplicationAlreadyExistsException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ApplicationAlreadyExistsException", + $fault: "client", + ...opts + }); + this.name = "ApplicationAlreadyExistsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ApplicationAlreadyExistsException.prototype); + } + }; + exports.ApplicationAlreadyExistsException = ApplicationAlreadyExistsException; + var ApplicationDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ApplicationDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "ApplicationDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ApplicationDoesNotExistException.prototype); + } + }; + exports.ApplicationDoesNotExistException = ApplicationDoesNotExistException; + var ComputePlatform; + (function(ComputePlatform2) { + ComputePlatform2["ECS"] = "ECS"; + ComputePlatform2["LAMBDA"] = "Lambda"; + ComputePlatform2["SERVER"] = "Server"; + })(ComputePlatform = exports.ComputePlatform || (exports.ComputePlatform = {})); + var ApplicationLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ApplicationLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "ApplicationLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ApplicationLimitExceededException.prototype); + } + }; + exports.ApplicationLimitExceededException = ApplicationLimitExceededException; + var ApplicationNameRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ApplicationNameRequiredException", + $fault: "client", + ...opts + }); + this.name = "ApplicationNameRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ApplicationNameRequiredException.prototype); + } + }; + exports.ApplicationNameRequiredException = ApplicationNameRequiredException; + var ApplicationRevisionSortBy; + (function(ApplicationRevisionSortBy2) { + ApplicationRevisionSortBy2["FirstUsedTime"] = "firstUsedTime"; + ApplicationRevisionSortBy2["LastUsedTime"] = "lastUsedTime"; + ApplicationRevisionSortBy2["RegisterTime"] = "registerTime"; + })(ApplicationRevisionSortBy = exports.ApplicationRevisionSortBy || (exports.ApplicationRevisionSortBy = {})); + var ArnNotSupportedException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ArnNotSupportedException", + $fault: "client", + ...opts + }); + this.name = "ArnNotSupportedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ArnNotSupportedException.prototype); + } + }; + exports.ArnNotSupportedException = ArnNotSupportedException; + var AutoRollbackEvent; + (function(AutoRollbackEvent2) { + AutoRollbackEvent2["DEPLOYMENT_FAILURE"] = "DEPLOYMENT_FAILURE"; + AutoRollbackEvent2["DEPLOYMENT_STOP_ON_ALARM"] = "DEPLOYMENT_STOP_ON_ALARM"; + AutoRollbackEvent2["DEPLOYMENT_STOP_ON_REQUEST"] = "DEPLOYMENT_STOP_ON_REQUEST"; + })(AutoRollbackEvent = exports.AutoRollbackEvent || (exports.AutoRollbackEvent = {})); + var RevisionLocationType; + (function(RevisionLocationType2) { + RevisionLocationType2["AppSpecContent"] = "AppSpecContent"; + RevisionLocationType2["GitHub"] = "GitHub"; + RevisionLocationType2["S3"] = "S3"; + RevisionLocationType2["String"] = "String"; + })(RevisionLocationType = exports.RevisionLocationType || (exports.RevisionLocationType = {})); + var BundleType; + (function(BundleType2) { + BundleType2["JSON"] = "JSON"; + BundleType2["Tar"] = "tar"; + BundleType2["TarGZip"] = "tgz"; + BundleType2["YAML"] = "YAML"; + BundleType2["Zip"] = "zip"; + })(BundleType = exports.BundleType || (exports.BundleType = {})); + var BatchLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "BatchLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "BatchLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, BatchLimitExceededException.prototype); + } + }; + exports.BatchLimitExceededException = BatchLimitExceededException; + var InvalidApplicationNameException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidApplicationNameException", + $fault: "client", + ...opts + }); + this.name = "InvalidApplicationNameException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidApplicationNameException.prototype); + } + }; + exports.InvalidApplicationNameException = InvalidApplicationNameException; + var InvalidRevisionException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidRevisionException", + $fault: "client", + ...opts + }); + this.name = "InvalidRevisionException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidRevisionException.prototype); + } + }; + exports.InvalidRevisionException = InvalidRevisionException; + var RevisionRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "RevisionRequiredException", + $fault: "client", + ...opts + }); + this.name = "RevisionRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, RevisionRequiredException.prototype); + } + }; + exports.RevisionRequiredException = RevisionRequiredException; + var DeploymentReadyAction; + (function(DeploymentReadyAction2) { + DeploymentReadyAction2["CONTINUE_DEPLOYMENT"] = "CONTINUE_DEPLOYMENT"; + DeploymentReadyAction2["STOP_DEPLOYMENT"] = "STOP_DEPLOYMENT"; + })(DeploymentReadyAction = exports.DeploymentReadyAction || (exports.DeploymentReadyAction = {})); + var GreenFleetProvisioningAction; + (function(GreenFleetProvisioningAction2) { + GreenFleetProvisioningAction2["COPY_AUTO_SCALING_GROUP"] = "COPY_AUTO_SCALING_GROUP"; + GreenFleetProvisioningAction2["DISCOVER_EXISTING"] = "DISCOVER_EXISTING"; + })(GreenFleetProvisioningAction = exports.GreenFleetProvisioningAction || (exports.GreenFleetProvisioningAction = {})); + var InstanceAction; + (function(InstanceAction2) { + InstanceAction2["KEEP_ALIVE"] = "KEEP_ALIVE"; + InstanceAction2["TERMINATE"] = "TERMINATE"; + })(InstanceAction = exports.InstanceAction || (exports.InstanceAction = {})); + var DeploymentOption; + (function(DeploymentOption2) { + DeploymentOption2["WITHOUT_TRAFFIC_CONTROL"] = "WITHOUT_TRAFFIC_CONTROL"; + DeploymentOption2["WITH_TRAFFIC_CONTROL"] = "WITH_TRAFFIC_CONTROL"; + })(DeploymentOption = exports.DeploymentOption || (exports.DeploymentOption = {})); + var DeploymentType; + (function(DeploymentType2) { + DeploymentType2["BLUE_GREEN"] = "BLUE_GREEN"; + DeploymentType2["IN_PLACE"] = "IN_PLACE"; + })(DeploymentType = exports.DeploymentType || (exports.DeploymentType = {})); + var EC2TagFilterType; + (function(EC2TagFilterType2) { + EC2TagFilterType2["KEY_AND_VALUE"] = "KEY_AND_VALUE"; + EC2TagFilterType2["KEY_ONLY"] = "KEY_ONLY"; + EC2TagFilterType2["VALUE_ONLY"] = "VALUE_ONLY"; + })(EC2TagFilterType = exports.EC2TagFilterType || (exports.EC2TagFilterType = {})); + var DeploymentStatus; + (function(DeploymentStatus2) { + DeploymentStatus2["BAKING"] = "Baking"; + DeploymentStatus2["CREATED"] = "Created"; + DeploymentStatus2["FAILED"] = "Failed"; + DeploymentStatus2["IN_PROGRESS"] = "InProgress"; + DeploymentStatus2["QUEUED"] = "Queued"; + DeploymentStatus2["READY"] = "Ready"; + DeploymentStatus2["STOPPED"] = "Stopped"; + DeploymentStatus2["SUCCEEDED"] = "Succeeded"; + })(DeploymentStatus = exports.DeploymentStatus || (exports.DeploymentStatus = {})); + var TagFilterType; + (function(TagFilterType2) { + TagFilterType2["KEY_AND_VALUE"] = "KEY_AND_VALUE"; + TagFilterType2["KEY_ONLY"] = "KEY_ONLY"; + TagFilterType2["VALUE_ONLY"] = "VALUE_ONLY"; + })(TagFilterType = exports.TagFilterType || (exports.TagFilterType = {})); + var OutdatedInstancesStrategy; + (function(OutdatedInstancesStrategy2) { + OutdatedInstancesStrategy2["Ignore"] = "IGNORE"; + OutdatedInstancesStrategy2["Update"] = "UPDATE"; + })(OutdatedInstancesStrategy = exports.OutdatedInstancesStrategy || (exports.OutdatedInstancesStrategy = {})); + var TriggerEventType; + (function(TriggerEventType2) { + TriggerEventType2["DEPLOYMENT_FAILURE"] = "DeploymentFailure"; + TriggerEventType2["DEPLOYMENT_READY"] = "DeploymentReady"; + TriggerEventType2["DEPLOYMENT_ROLLBACK"] = "DeploymentRollback"; + TriggerEventType2["DEPLOYMENT_START"] = "DeploymentStart"; + TriggerEventType2["DEPLOYMENT_STOP"] = "DeploymentStop"; + TriggerEventType2["DEPLOYMENT_SUCCESS"] = "DeploymentSuccess"; + TriggerEventType2["INSTANCE_FAILURE"] = "InstanceFailure"; + TriggerEventType2["INSTANCE_READY"] = "InstanceReady"; + TriggerEventType2["INSTANCE_START"] = "InstanceStart"; + TriggerEventType2["INSTANCE_SUCCESS"] = "InstanceSuccess"; + })(TriggerEventType = exports.TriggerEventType || (exports.TriggerEventType = {})); + var DeploymentConfigDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentConfigDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "DeploymentConfigDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentConfigDoesNotExistException.prototype); + } + }; + exports.DeploymentConfigDoesNotExistException = DeploymentConfigDoesNotExistException; + var DeploymentGroupNameRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentGroupNameRequiredException", + $fault: "client", + ...opts + }); + this.name = "DeploymentGroupNameRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentGroupNameRequiredException.prototype); + } + }; + exports.DeploymentGroupNameRequiredException = DeploymentGroupNameRequiredException; + var InvalidDeploymentGroupNameException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentGroupNameException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentGroupNameException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentGroupNameException.prototype); + } + }; + exports.InvalidDeploymentGroupNameException = InvalidDeploymentGroupNameException; + var _InstanceType; + (function(_InstanceType2) { + _InstanceType2["BLUE"] = "Blue"; + _InstanceType2["GREEN"] = "Green"; + })(_InstanceType = exports._InstanceType || (exports._InstanceType = {})); + var LifecycleErrorCode; + (function(LifecycleErrorCode2) { + LifecycleErrorCode2["SCRIPT_FAILED"] = "ScriptFailed"; + LifecycleErrorCode2["SCRIPT_MISSING"] = "ScriptMissing"; + LifecycleErrorCode2["SCRIPT_NOT_EXECUTABLE"] = "ScriptNotExecutable"; + LifecycleErrorCode2["SCRIPT_TIMED_OUT"] = "ScriptTimedOut"; + LifecycleErrorCode2["SUCCESS"] = "Success"; + LifecycleErrorCode2["UNKNOWN_ERROR"] = "UnknownError"; + })(LifecycleErrorCode = exports.LifecycleErrorCode || (exports.LifecycleErrorCode = {})); + var LifecycleEventStatus; + (function(LifecycleEventStatus2) { + LifecycleEventStatus2["FAILED"] = "Failed"; + LifecycleEventStatus2["IN_PROGRESS"] = "InProgress"; + LifecycleEventStatus2["PENDING"] = "Pending"; + LifecycleEventStatus2["SKIPPED"] = "Skipped"; + LifecycleEventStatus2["SUCCEEDED"] = "Succeeded"; + LifecycleEventStatus2["UNKNOWN"] = "Unknown"; + })(LifecycleEventStatus = exports.LifecycleEventStatus || (exports.LifecycleEventStatus = {})); + var InstanceStatus; + (function(InstanceStatus2) { + InstanceStatus2["FAILED"] = "Failed"; + InstanceStatus2["IN_PROGRESS"] = "InProgress"; + InstanceStatus2["PENDING"] = "Pending"; + InstanceStatus2["READY"] = "Ready"; + InstanceStatus2["SKIPPED"] = "Skipped"; + InstanceStatus2["SUCCEEDED"] = "Succeeded"; + InstanceStatus2["UNKNOWN"] = "Unknown"; + })(InstanceStatus = exports.InstanceStatus || (exports.InstanceStatus = {})); + var DeploymentDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "DeploymentDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentDoesNotExistException.prototype); + } + }; + exports.DeploymentDoesNotExistException = DeploymentDoesNotExistException; + var DeploymentIdRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentIdRequiredException", + $fault: "client", + ...opts + }); + this.name = "DeploymentIdRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentIdRequiredException.prototype); + } + }; + exports.DeploymentIdRequiredException = DeploymentIdRequiredException; + var InstanceIdRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InstanceIdRequiredException", + $fault: "client", + ...opts + }); + this.name = "InstanceIdRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InstanceIdRequiredException.prototype); + } + }; + exports.InstanceIdRequiredException = InstanceIdRequiredException; + var InvalidComputePlatformException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidComputePlatformException", + $fault: "client", + ...opts + }); + this.name = "InvalidComputePlatformException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidComputePlatformException.prototype); + } + }; + exports.InvalidComputePlatformException = InvalidComputePlatformException; + var InvalidDeploymentIdException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentIdException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentIdException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentIdException.prototype); + } + }; + exports.InvalidDeploymentIdException = InvalidDeploymentIdException; + var DeploymentCreator; + (function(DeploymentCreator2) { + DeploymentCreator2["Autoscaling"] = "autoscaling"; + DeploymentCreator2["CloudFormation"] = "CloudFormation"; + DeploymentCreator2["CloudFormationRollback"] = "CloudFormationRollback"; + DeploymentCreator2["CodeDeploy"] = "CodeDeploy"; + DeploymentCreator2["CodeDeployAutoUpdate"] = "CodeDeployAutoUpdate"; + DeploymentCreator2["CodeDeployRollback"] = "codeDeployRollback"; + DeploymentCreator2["User"] = "user"; + })(DeploymentCreator = exports.DeploymentCreator || (exports.DeploymentCreator = {})); + var ErrorCode; + (function(ErrorCode2) { + ErrorCode2["AGENT_ISSUE"] = "AGENT_ISSUE"; + ErrorCode2["ALARM_ACTIVE"] = "ALARM_ACTIVE"; + ErrorCode2["APPLICATION_MISSING"] = "APPLICATION_MISSING"; + ErrorCode2["AUTOSCALING_VALIDATION_ERROR"] = "AUTOSCALING_VALIDATION_ERROR"; + ErrorCode2["AUTO_SCALING_CONFIGURATION"] = "AUTO_SCALING_CONFIGURATION"; + ErrorCode2["AUTO_SCALING_IAM_ROLE_PERMISSIONS"] = "AUTO_SCALING_IAM_ROLE_PERMISSIONS"; + ErrorCode2["CLOUDFORMATION_STACK_FAILURE"] = "CLOUDFORMATION_STACK_FAILURE"; + ErrorCode2["CODEDEPLOY_RESOURCE_CANNOT_BE_FOUND"] = "CODEDEPLOY_RESOURCE_CANNOT_BE_FOUND"; + ErrorCode2["CUSTOMER_APPLICATION_UNHEALTHY"] = "CUSTOMER_APPLICATION_UNHEALTHY"; + ErrorCode2["DEPLOYMENT_GROUP_MISSING"] = "DEPLOYMENT_GROUP_MISSING"; + ErrorCode2["ECS_UPDATE_ERROR"] = "ECS_UPDATE_ERROR"; + ErrorCode2["ELASTIC_LOAD_BALANCING_INVALID"] = "ELASTIC_LOAD_BALANCING_INVALID"; + ErrorCode2["ELB_INVALID_INSTANCE"] = "ELB_INVALID_INSTANCE"; + ErrorCode2["HEALTH_CONSTRAINTS"] = "HEALTH_CONSTRAINTS"; + ErrorCode2["HEALTH_CONSTRAINTS_INVALID"] = "HEALTH_CONSTRAINTS_INVALID"; + ErrorCode2["HOOK_EXECUTION_FAILURE"] = "HOOK_EXECUTION_FAILURE"; + ErrorCode2["IAM_ROLE_MISSING"] = "IAM_ROLE_MISSING"; + ErrorCode2["IAM_ROLE_PERMISSIONS"] = "IAM_ROLE_PERMISSIONS"; + ErrorCode2["INTERNAL_ERROR"] = "INTERNAL_ERROR"; + ErrorCode2["INVALID_ECS_SERVICE"] = "INVALID_ECS_SERVICE"; + ErrorCode2["INVALID_LAMBDA_CONFIGURATION"] = "INVALID_LAMBDA_CONFIGURATION"; + ErrorCode2["INVALID_LAMBDA_FUNCTION"] = "INVALID_LAMBDA_FUNCTION"; + ErrorCode2["INVALID_REVISION"] = "INVALID_REVISION"; + ErrorCode2["MANUAL_STOP"] = "MANUAL_STOP"; + ErrorCode2["MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION"] = "MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION"; + ErrorCode2["MISSING_ELB_INFORMATION"] = "MISSING_ELB_INFORMATION"; + ErrorCode2["MISSING_GITHUB_TOKEN"] = "MISSING_GITHUB_TOKEN"; + ErrorCode2["NO_EC2_SUBSCRIPTION"] = "NO_EC2_SUBSCRIPTION"; + ErrorCode2["NO_INSTANCES"] = "NO_INSTANCES"; + ErrorCode2["OVER_MAX_INSTANCES"] = "OVER_MAX_INSTANCES"; + ErrorCode2["RESOURCE_LIMIT_EXCEEDED"] = "RESOURCE_LIMIT_EXCEEDED"; + ErrorCode2["REVISION_MISSING"] = "REVISION_MISSING"; + ErrorCode2["THROTTLED"] = "THROTTLED"; + ErrorCode2["TIMEOUT"] = "TIMEOUT"; + })(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {})); + var FileExistsBehavior; + (function(FileExistsBehavior2) { + FileExistsBehavior2["DISALLOW"] = "DISALLOW"; + FileExistsBehavior2["OVERWRITE"] = "OVERWRITE"; + FileExistsBehavior2["RETAIN"] = "RETAIN"; + })(FileExistsBehavior = exports.FileExistsBehavior || (exports.FileExistsBehavior = {})); + var TargetStatus; + (function(TargetStatus2) { + TargetStatus2["FAILED"] = "Failed"; + TargetStatus2["IN_PROGRESS"] = "InProgress"; + TargetStatus2["PENDING"] = "Pending"; + TargetStatus2["READY"] = "Ready"; + TargetStatus2["SKIPPED"] = "Skipped"; + TargetStatus2["SUCCEEDED"] = "Succeeded"; + TargetStatus2["UNKNOWN"] = "Unknown"; + })(TargetStatus = exports.TargetStatus || (exports.TargetStatus = {})); + var DeploymentTargetType; + (function(DeploymentTargetType2) { + DeploymentTargetType2["CLOUDFORMATION_TARGET"] = "CloudFormationTarget"; + DeploymentTargetType2["ECS_TARGET"] = "ECSTarget"; + DeploymentTargetType2["INSTANCE_TARGET"] = "InstanceTarget"; + DeploymentTargetType2["LAMBDA_TARGET"] = "LambdaTarget"; + })(DeploymentTargetType = exports.DeploymentTargetType || (exports.DeploymentTargetType = {})); + var TargetLabel; + (function(TargetLabel2) { + TargetLabel2["BLUE"] = "Blue"; + TargetLabel2["GREEN"] = "Green"; + })(TargetLabel = exports.TargetLabel || (exports.TargetLabel = {})); + var DeploymentNotStartedException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentNotStartedException", + $fault: "client", + ...opts + }); + this.name = "DeploymentNotStartedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentNotStartedException.prototype); + } + }; + exports.DeploymentNotStartedException = DeploymentNotStartedException; + var DeploymentTargetDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentTargetDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "DeploymentTargetDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentTargetDoesNotExistException.prototype); + } + }; + exports.DeploymentTargetDoesNotExistException = DeploymentTargetDoesNotExistException; + var DeploymentTargetIdRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentTargetIdRequiredException", + $fault: "client", + ...opts + }); + this.name = "DeploymentTargetIdRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentTargetIdRequiredException.prototype); + } + }; + exports.DeploymentTargetIdRequiredException = DeploymentTargetIdRequiredException; + var DeploymentTargetListSizeExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentTargetListSizeExceededException", + $fault: "client", + ...opts + }); + this.name = "DeploymentTargetListSizeExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentTargetListSizeExceededException.prototype); + } + }; + exports.DeploymentTargetListSizeExceededException = DeploymentTargetListSizeExceededException; + var InstanceDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InstanceDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "InstanceDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InstanceDoesNotExistException.prototype); + } + }; + exports.InstanceDoesNotExistException = InstanceDoesNotExistException; + var InvalidDeploymentTargetIdException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentTargetIdException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentTargetIdException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentTargetIdException.prototype); + } + }; + exports.InvalidDeploymentTargetIdException = InvalidDeploymentTargetIdException; + var BucketNameFilterRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "BucketNameFilterRequiredException", + $fault: "client", + ...opts + }); + this.name = "BucketNameFilterRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, BucketNameFilterRequiredException.prototype); + } + }; + exports.BucketNameFilterRequiredException = BucketNameFilterRequiredException; + var DeploymentWaitType; + (function(DeploymentWaitType2) { + DeploymentWaitType2["READY_WAIT"] = "READY_WAIT"; + DeploymentWaitType2["TERMINATION_WAIT"] = "TERMINATION_WAIT"; + })(DeploymentWaitType = exports.DeploymentWaitType || (exports.DeploymentWaitType = {})); + var DeploymentAlreadyCompletedException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentAlreadyCompletedException", + $fault: "client", + ...opts + }); + this.name = "DeploymentAlreadyCompletedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentAlreadyCompletedException.prototype); + } + }; + exports.DeploymentAlreadyCompletedException = DeploymentAlreadyCompletedException; + var DeploymentIsNotInReadyStateException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentIsNotInReadyStateException", + $fault: "client", + ...opts + }); + this.name = "DeploymentIsNotInReadyStateException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentIsNotInReadyStateException.prototype); + } + }; + exports.DeploymentIsNotInReadyStateException = DeploymentIsNotInReadyStateException; + var InvalidDeploymentStatusException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentStatusException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentStatusException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentStatusException.prototype); + } + }; + exports.InvalidDeploymentStatusException = InvalidDeploymentStatusException; + var InvalidDeploymentWaitTypeException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentWaitTypeException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentWaitTypeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentWaitTypeException.prototype); + } + }; + exports.InvalidDeploymentWaitTypeException = InvalidDeploymentWaitTypeException; + var UnsupportedActionForDeploymentTypeException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "UnsupportedActionForDeploymentTypeException", + $fault: "client", + ...opts + }); + this.name = "UnsupportedActionForDeploymentTypeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, UnsupportedActionForDeploymentTypeException.prototype); + } + }; + exports.UnsupportedActionForDeploymentTypeException = UnsupportedActionForDeploymentTypeException; + var InvalidTagsToAddException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTagsToAddException", + $fault: "client", + ...opts + }); + this.name = "InvalidTagsToAddException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTagsToAddException.prototype); + } + }; + exports.InvalidTagsToAddException = InvalidTagsToAddException; + var DeploymentGroupDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentGroupDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "DeploymentGroupDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentGroupDoesNotExistException.prototype); + } + }; + exports.DeploymentGroupDoesNotExistException = DeploymentGroupDoesNotExistException; + var DeploymentLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "DeploymentLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentLimitExceededException.prototype); + } + }; + exports.DeploymentLimitExceededException = DeploymentLimitExceededException; + var DescriptionTooLongException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DescriptionTooLongException", + $fault: "client", + ...opts + }); + this.name = "DescriptionTooLongException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DescriptionTooLongException.prototype); + } + }; + exports.DescriptionTooLongException = DescriptionTooLongException; + var InvalidAlarmConfigException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidAlarmConfigException", + $fault: "client", + ...opts + }); + this.name = "InvalidAlarmConfigException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAlarmConfigException.prototype); + } + }; + exports.InvalidAlarmConfigException = InvalidAlarmConfigException; + var InvalidAutoRollbackConfigException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidAutoRollbackConfigException", + $fault: "client", + ...opts + }); + this.name = "InvalidAutoRollbackConfigException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAutoRollbackConfigException.prototype); + } + }; + exports.InvalidAutoRollbackConfigException = InvalidAutoRollbackConfigException; + var InvalidAutoScalingGroupException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidAutoScalingGroupException", + $fault: "client", + ...opts + }); + this.name = "InvalidAutoScalingGroupException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAutoScalingGroupException.prototype); + } + }; + exports.InvalidAutoScalingGroupException = InvalidAutoScalingGroupException; + var InvalidDeploymentConfigNameException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentConfigNameException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentConfigNameException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentConfigNameException.prototype); + } + }; + exports.InvalidDeploymentConfigNameException = InvalidDeploymentConfigNameException; + var InvalidFileExistsBehaviorException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidFileExistsBehaviorException", + $fault: "client", + ...opts + }); + this.name = "InvalidFileExistsBehaviorException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidFileExistsBehaviorException.prototype); + } + }; + exports.InvalidFileExistsBehaviorException = InvalidFileExistsBehaviorException; + var InvalidGitHubAccountTokenException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidGitHubAccountTokenException", + $fault: "client", + ...opts + }); + this.name = "InvalidGitHubAccountTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidGitHubAccountTokenException.prototype); + } + }; + exports.InvalidGitHubAccountTokenException = InvalidGitHubAccountTokenException; + var InvalidIgnoreApplicationStopFailuresValueException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidIgnoreApplicationStopFailuresValueException", + $fault: "client", + ...opts + }); + this.name = "InvalidIgnoreApplicationStopFailuresValueException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidIgnoreApplicationStopFailuresValueException.prototype); + } + }; + exports.InvalidIgnoreApplicationStopFailuresValueException = InvalidIgnoreApplicationStopFailuresValueException; + var InvalidLoadBalancerInfoException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidLoadBalancerInfoException", + $fault: "client", + ...opts + }); + this.name = "InvalidLoadBalancerInfoException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidLoadBalancerInfoException.prototype); + } + }; + exports.InvalidLoadBalancerInfoException = InvalidLoadBalancerInfoException; + var InvalidRoleException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidRoleException", + $fault: "client", + ...opts + }); + this.name = "InvalidRoleException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidRoleException.prototype); + } + }; + exports.InvalidRoleException = InvalidRoleException; + var InvalidTargetInstancesException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTargetInstancesException", + $fault: "client", + ...opts + }); + this.name = "InvalidTargetInstancesException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTargetInstancesException.prototype); + } + }; + exports.InvalidTargetInstancesException = InvalidTargetInstancesException; + var InvalidTrafficRoutingConfigurationException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTrafficRoutingConfigurationException", + $fault: "client", + ...opts + }); + this.name = "InvalidTrafficRoutingConfigurationException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTrafficRoutingConfigurationException.prototype); + } + }; + exports.InvalidTrafficRoutingConfigurationException = InvalidTrafficRoutingConfigurationException; + var InvalidUpdateOutdatedInstancesOnlyValueException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidUpdateOutdatedInstancesOnlyValueException", + $fault: "client", + ...opts + }); + this.name = "InvalidUpdateOutdatedInstancesOnlyValueException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidUpdateOutdatedInstancesOnlyValueException.prototype); + } + }; + exports.InvalidUpdateOutdatedInstancesOnlyValueException = InvalidUpdateOutdatedInstancesOnlyValueException; + var RevisionDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "RevisionDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "RevisionDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, RevisionDoesNotExistException.prototype); + } + }; + exports.RevisionDoesNotExistException = RevisionDoesNotExistException; + var ThrottlingException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ThrottlingException", + $fault: "client", + ...opts + }); + this.name = "ThrottlingException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ThrottlingException.prototype); + } + }; + exports.ThrottlingException = ThrottlingException; + var MinimumHealthyHostsType; + (function(MinimumHealthyHostsType2) { + MinimumHealthyHostsType2["FLEET_PERCENT"] = "FLEET_PERCENT"; + MinimumHealthyHostsType2["HOST_COUNT"] = "HOST_COUNT"; + })(MinimumHealthyHostsType = exports.MinimumHealthyHostsType || (exports.MinimumHealthyHostsType = {})); + var TrafficRoutingType; + (function(TrafficRoutingType2) { + TrafficRoutingType2["AllAtOnce"] = "AllAtOnce"; + TrafficRoutingType2["TimeBasedCanary"] = "TimeBasedCanary"; + TrafficRoutingType2["TimeBasedLinear"] = "TimeBasedLinear"; + })(TrafficRoutingType = exports.TrafficRoutingType || (exports.TrafficRoutingType = {})); + var DeploymentConfigAlreadyExistsException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentConfigAlreadyExistsException", + $fault: "client", + ...opts + }); + this.name = "DeploymentConfigAlreadyExistsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentConfigAlreadyExistsException.prototype); + } + }; + exports.DeploymentConfigAlreadyExistsException = DeploymentConfigAlreadyExistsException; + var DeploymentConfigLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentConfigLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "DeploymentConfigLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentConfigLimitExceededException.prototype); + } + }; + exports.DeploymentConfigLimitExceededException = DeploymentConfigLimitExceededException; + var DeploymentConfigNameRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentConfigNameRequiredException", + $fault: "client", + ...opts + }); + this.name = "DeploymentConfigNameRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentConfigNameRequiredException.prototype); + } + }; + exports.DeploymentConfigNameRequiredException = DeploymentConfigNameRequiredException; + var InvalidMinimumHealthyHostValueException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidMinimumHealthyHostValueException", + $fault: "client", + ...opts + }); + this.name = "InvalidMinimumHealthyHostValueException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidMinimumHealthyHostValueException.prototype); + } + }; + exports.InvalidMinimumHealthyHostValueException = InvalidMinimumHealthyHostValueException; + var DeploymentGroupAlreadyExistsException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentGroupAlreadyExistsException", + $fault: "client", + ...opts + }); + this.name = "DeploymentGroupAlreadyExistsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentGroupAlreadyExistsException.prototype); + } + }; + exports.DeploymentGroupAlreadyExistsException = DeploymentGroupAlreadyExistsException; + var DeploymentGroupLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentGroupLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "DeploymentGroupLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentGroupLimitExceededException.prototype); + } + }; + exports.DeploymentGroupLimitExceededException = DeploymentGroupLimitExceededException; + var ECSServiceMappingLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ECSServiceMappingLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "ECSServiceMappingLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ECSServiceMappingLimitExceededException.prototype); + } + }; + exports.ECSServiceMappingLimitExceededException = ECSServiceMappingLimitExceededException; + var InvalidBlueGreenDeploymentConfigurationException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidBlueGreenDeploymentConfigurationException", + $fault: "client", + ...opts + }); + this.name = "InvalidBlueGreenDeploymentConfigurationException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidBlueGreenDeploymentConfigurationException.prototype); + } + }; + exports.InvalidBlueGreenDeploymentConfigurationException = InvalidBlueGreenDeploymentConfigurationException; + var InvalidDeploymentStyleException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentStyleException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentStyleException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentStyleException.prototype); + } + }; + exports.InvalidDeploymentStyleException = InvalidDeploymentStyleException; + var InvalidEC2TagCombinationException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidEC2TagCombinationException", + $fault: "client", + ...opts + }); + this.name = "InvalidEC2TagCombinationException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidEC2TagCombinationException.prototype); + } + }; + exports.InvalidEC2TagCombinationException = InvalidEC2TagCombinationException; + var InvalidEC2TagException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidEC2TagException", + $fault: "client", + ...opts + }); + this.name = "InvalidEC2TagException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidEC2TagException.prototype); + } + }; + exports.InvalidEC2TagException = InvalidEC2TagException; + var InvalidECSServiceException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidECSServiceException", + $fault: "client", + ...opts + }); + this.name = "InvalidECSServiceException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidECSServiceException.prototype); + } + }; + exports.InvalidECSServiceException = InvalidECSServiceException; + var InvalidInputException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidInputException", + $fault: "client", + ...opts + }); + this.name = "InvalidInputException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidInputException.prototype); + } + }; + exports.InvalidInputException = InvalidInputException; + var InvalidOnPremisesTagCombinationException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidOnPremisesTagCombinationException", + $fault: "client", + ...opts + }); + this.name = "InvalidOnPremisesTagCombinationException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidOnPremisesTagCombinationException.prototype); + } + }; + exports.InvalidOnPremisesTagCombinationException = InvalidOnPremisesTagCombinationException; + var InvalidTargetGroupPairException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTargetGroupPairException", + $fault: "client", + ...opts + }); + this.name = "InvalidTargetGroupPairException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTargetGroupPairException.prototype); + } + }; + exports.InvalidTargetGroupPairException = InvalidTargetGroupPairException; + var InvalidTriggerConfigException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTriggerConfigException", + $fault: "client", + ...opts + }); + this.name = "InvalidTriggerConfigException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTriggerConfigException.prototype); + } + }; + exports.InvalidTriggerConfigException = InvalidTriggerConfigException; + var LifecycleHookLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "LifecycleHookLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "LifecycleHookLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, LifecycleHookLimitExceededException.prototype); + } + }; + exports.LifecycleHookLimitExceededException = LifecycleHookLimitExceededException; + var RoleRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "RoleRequiredException", + $fault: "client", + ...opts + }); + this.name = "RoleRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, RoleRequiredException.prototype); + } + }; + exports.RoleRequiredException = RoleRequiredException; + var TagSetListLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "TagSetListLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "TagSetListLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TagSetListLimitExceededException.prototype); + } + }; + exports.TagSetListLimitExceededException = TagSetListLimitExceededException; + var TriggerTargetsLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "TriggerTargetsLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "TriggerTargetsLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TriggerTargetsLimitExceededException.prototype); + } + }; + exports.TriggerTargetsLimitExceededException = TriggerTargetsLimitExceededException; + var DeploymentConfigInUseException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentConfigInUseException", + $fault: "client", + ...opts + }); + this.name = "DeploymentConfigInUseException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentConfigInUseException.prototype); + } + }; + exports.DeploymentConfigInUseException = DeploymentConfigInUseException; + var InvalidOperationException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidOperationException", + $fault: "client", + ...opts + }); + this.name = "InvalidOperationException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidOperationException.prototype); + } + }; + exports.InvalidOperationException = InvalidOperationException; + var GitHubAccountTokenDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "GitHubAccountTokenDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "GitHubAccountTokenDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, GitHubAccountTokenDoesNotExistException.prototype); + } + }; + exports.GitHubAccountTokenDoesNotExistException = GitHubAccountTokenDoesNotExistException; + var GitHubAccountTokenNameRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "GitHubAccountTokenNameRequiredException", + $fault: "client", + ...opts + }); + this.name = "GitHubAccountTokenNameRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, GitHubAccountTokenNameRequiredException.prototype); + } + }; + exports.GitHubAccountTokenNameRequiredException = GitHubAccountTokenNameRequiredException; + var InvalidGitHubAccountTokenNameException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidGitHubAccountTokenNameException", + $fault: "client", + ...opts + }); + this.name = "InvalidGitHubAccountTokenNameException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidGitHubAccountTokenNameException.prototype); + } + }; + exports.InvalidGitHubAccountTokenNameException = InvalidGitHubAccountTokenNameException; + var OperationNotSupportedException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "OperationNotSupportedException", + $fault: "client", + ...opts + }); + this.name = "OperationNotSupportedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, OperationNotSupportedException.prototype); + } + }; + exports.OperationNotSupportedException = OperationNotSupportedException; + var ResourceValidationException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ResourceValidationException", + $fault: "client", + ...opts + }); + this.name = "ResourceValidationException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceValidationException.prototype); + } + }; + exports.ResourceValidationException = ResourceValidationException; + var InvalidBucketNameFilterException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidBucketNameFilterException", + $fault: "client", + ...opts + }); + this.name = "InvalidBucketNameFilterException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidBucketNameFilterException.prototype); + } + }; + exports.InvalidBucketNameFilterException = InvalidBucketNameFilterException; + var InvalidDeployedStateFilterException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeployedStateFilterException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeployedStateFilterException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeployedStateFilterException.prototype); + } + }; + exports.InvalidDeployedStateFilterException = InvalidDeployedStateFilterException; + var InvalidKeyPrefixFilterException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidKeyPrefixFilterException", + $fault: "client", + ...opts + }); + this.name = "InvalidKeyPrefixFilterException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidKeyPrefixFilterException.prototype); + } + }; + exports.InvalidKeyPrefixFilterException = InvalidKeyPrefixFilterException; + var InvalidNextTokenException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidNextTokenException", + $fault: "client", + ...opts + }); + this.name = "InvalidNextTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidNextTokenException.prototype); + } + }; + exports.InvalidNextTokenException = InvalidNextTokenException; + var InvalidSortByException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidSortByException", + $fault: "client", + ...opts + }); + this.name = "InvalidSortByException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidSortByException.prototype); + } + }; + exports.InvalidSortByException = InvalidSortByException; + var InvalidSortOrderException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidSortOrderException", + $fault: "client", + ...opts + }); + this.name = "InvalidSortOrderException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidSortOrderException.prototype); + } + }; + exports.InvalidSortOrderException = InvalidSortOrderException; + var ListStateFilterAction; + (function(ListStateFilterAction2) { + ListStateFilterAction2["Exclude"] = "exclude"; + ListStateFilterAction2["Ignore"] = "ignore"; + ListStateFilterAction2["Include"] = "include"; + })(ListStateFilterAction = exports.ListStateFilterAction || (exports.ListStateFilterAction = {})); + var SortOrder; + (function(SortOrder2) { + SortOrder2["Ascending"] = "ascending"; + SortOrder2["Descending"] = "descending"; + })(SortOrder = exports.SortOrder || (exports.SortOrder = {})); + var InvalidDeploymentInstanceTypeException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentInstanceTypeException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentInstanceTypeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentInstanceTypeException.prototype); + } + }; + exports.InvalidDeploymentInstanceTypeException = InvalidDeploymentInstanceTypeException; + var InvalidInstanceStatusException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidInstanceStatusException", + $fault: "client", + ...opts + }); + this.name = "InvalidInstanceStatusException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidInstanceStatusException.prototype); + } + }; + exports.InvalidInstanceStatusException = InvalidInstanceStatusException; + var InvalidInstanceTypeException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidInstanceTypeException", + $fault: "client", + ...opts + }); + this.name = "InvalidInstanceTypeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidInstanceTypeException.prototype); + } + }; + exports.InvalidInstanceTypeException = InvalidInstanceTypeException; + var InvalidTargetFilterNameException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTargetFilterNameException", + $fault: "client", + ...opts + }); + this.name = "InvalidTargetFilterNameException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTargetFilterNameException.prototype); + } + }; + exports.InvalidTargetFilterNameException = InvalidTargetFilterNameException; + var InvalidExternalIdException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidExternalIdException", + $fault: "client", + ...opts + }); + this.name = "InvalidExternalIdException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidExternalIdException.prototype); + } + }; + exports.InvalidExternalIdException = InvalidExternalIdException; + var InvalidTimeRangeException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTimeRangeException", + $fault: "client", + ...opts + }); + this.name = "InvalidTimeRangeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTimeRangeException.prototype); + } + }; + exports.InvalidTimeRangeException = InvalidTimeRangeException; + var TargetFilterName; + (function(TargetFilterName2) { + TargetFilterName2["SERVER_INSTANCE_LABEL"] = "ServerInstanceLabel"; + TargetFilterName2["TARGET_STATUS"] = "TargetStatus"; + })(TargetFilterName = exports.TargetFilterName || (exports.TargetFilterName = {})); + var InvalidRegistrationStatusException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidRegistrationStatusException", + $fault: "client", + ...opts + }); + this.name = "InvalidRegistrationStatusException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidRegistrationStatusException.prototype); + } + }; + exports.InvalidRegistrationStatusException = InvalidRegistrationStatusException; + var InvalidTagFilterException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTagFilterException", + $fault: "client", + ...opts + }); + this.name = "InvalidTagFilterException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTagFilterException.prototype); + } + }; + exports.InvalidTagFilterException = InvalidTagFilterException; + var RegistrationStatus; + (function(RegistrationStatus2) { + RegistrationStatus2["Deregistered"] = "Deregistered"; + RegistrationStatus2["Registered"] = "Registered"; + })(RegistrationStatus = exports.RegistrationStatus || (exports.RegistrationStatus = {})); + var InvalidArnException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidArnException", + $fault: "client", + ...opts + }); + this.name = "InvalidArnException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidArnException.prototype); + } + }; + exports.InvalidArnException = InvalidArnException; + var ResourceArnRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ResourceArnRequiredException", + $fault: "client", + ...opts + }); + this.name = "ResourceArnRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceArnRequiredException.prototype); + } + }; + exports.ResourceArnRequiredException = ResourceArnRequiredException; + var InvalidLifecycleEventHookExecutionIdException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidLifecycleEventHookExecutionIdException", + $fault: "client", + ...opts + }); + this.name = "InvalidLifecycleEventHookExecutionIdException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidLifecycleEventHookExecutionIdException.prototype); + } + }; + exports.InvalidLifecycleEventHookExecutionIdException = InvalidLifecycleEventHookExecutionIdException; + var InvalidLifecycleEventHookExecutionStatusException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidLifecycleEventHookExecutionStatusException", + $fault: "client", + ...opts + }); + this.name = "InvalidLifecycleEventHookExecutionStatusException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidLifecycleEventHookExecutionStatusException.prototype); + } + }; + exports.InvalidLifecycleEventHookExecutionStatusException = InvalidLifecycleEventHookExecutionStatusException; + var LifecycleEventAlreadyCompletedException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "LifecycleEventAlreadyCompletedException", + $fault: "client", + ...opts + }); + this.name = "LifecycleEventAlreadyCompletedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, LifecycleEventAlreadyCompletedException.prototype); + } + }; + exports.LifecycleEventAlreadyCompletedException = LifecycleEventAlreadyCompletedException; + var IamArnRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "IamArnRequiredException", + $fault: "client", + ...opts + }); + this.name = "IamArnRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IamArnRequiredException.prototype); + } + }; + exports.IamArnRequiredException = IamArnRequiredException; + var IamSessionArnAlreadyRegisteredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "IamSessionArnAlreadyRegisteredException", + $fault: "client", + ...opts + }); + this.name = "IamSessionArnAlreadyRegisteredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IamSessionArnAlreadyRegisteredException.prototype); + } + }; + exports.IamSessionArnAlreadyRegisteredException = IamSessionArnAlreadyRegisteredException; + var IamUserArnAlreadyRegisteredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "IamUserArnAlreadyRegisteredException", + $fault: "client", + ...opts + }); + this.name = "IamUserArnAlreadyRegisteredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IamUserArnAlreadyRegisteredException.prototype); + } + }; + exports.IamUserArnAlreadyRegisteredException = IamUserArnAlreadyRegisteredException; + var IamUserArnRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "IamUserArnRequiredException", + $fault: "client", + ...opts + }); + this.name = "IamUserArnRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IamUserArnRequiredException.prototype); + } + }; + exports.IamUserArnRequiredException = IamUserArnRequiredException; + var InstanceNameAlreadyRegisteredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InstanceNameAlreadyRegisteredException", + $fault: "client", + ...opts + }); + this.name = "InstanceNameAlreadyRegisteredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InstanceNameAlreadyRegisteredException.prototype); + } + }; + exports.InstanceNameAlreadyRegisteredException = InstanceNameAlreadyRegisteredException; + var InvalidIamSessionArnException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidIamSessionArnException", + $fault: "client", + ...opts + }); + this.name = "InvalidIamSessionArnException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidIamSessionArnException.prototype); + } + }; + exports.InvalidIamSessionArnException = InvalidIamSessionArnException; + var InvalidIamUserArnException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidIamUserArnException", + $fault: "client", + ...opts + }); + this.name = "InvalidIamUserArnException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidIamUserArnException.prototype); + } + }; + exports.InvalidIamUserArnException = InvalidIamUserArnException; + var MultipleIamArnsProvidedException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "MultipleIamArnsProvidedException", + $fault: "client", + ...opts + }); + this.name = "MultipleIamArnsProvidedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, MultipleIamArnsProvidedException.prototype); + } + }; + exports.MultipleIamArnsProvidedException = MultipleIamArnsProvidedException; + var StopStatus; + (function(StopStatus2) { + StopStatus2["PENDING"] = "Pending"; + StopStatus2["SUCCEEDED"] = "Succeeded"; + })(StopStatus = exports.StopStatus || (exports.StopStatus = {})); + var TagFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TagFilterSensitiveLog = TagFilterSensitiveLog; + var AddTagsToOnPremisesInstancesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AddTagsToOnPremisesInstancesInputFilterSensitiveLog = AddTagsToOnPremisesInstancesInputFilterSensitiveLog; + var AlarmFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AlarmFilterSensitiveLog = AlarmFilterSensitiveLog; + var AlarmConfigurationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AlarmConfigurationFilterSensitiveLog = AlarmConfigurationFilterSensitiveLog; + var ApplicationInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ApplicationInfoFilterSensitiveLog = ApplicationInfoFilterSensitiveLog; + var AppSpecContentFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AppSpecContentFilterSensitiveLog = AppSpecContentFilterSensitiveLog; + var AutoRollbackConfigurationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AutoRollbackConfigurationFilterSensitiveLog = AutoRollbackConfigurationFilterSensitiveLog; + var AutoScalingGroupFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AutoScalingGroupFilterSensitiveLog = AutoScalingGroupFilterSensitiveLog; + var GitHubLocationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GitHubLocationFilterSensitiveLog = GitHubLocationFilterSensitiveLog; + var S3LocationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.S3LocationFilterSensitiveLog = S3LocationFilterSensitiveLog; + var RawStringFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RawStringFilterSensitiveLog = RawStringFilterSensitiveLog; + var RevisionLocationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RevisionLocationFilterSensitiveLog = RevisionLocationFilterSensitiveLog; + var BatchGetApplicationRevisionsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetApplicationRevisionsInputFilterSensitiveLog = BatchGetApplicationRevisionsInputFilterSensitiveLog; + var GenericRevisionInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GenericRevisionInfoFilterSensitiveLog = GenericRevisionInfoFilterSensitiveLog; + var RevisionInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RevisionInfoFilterSensitiveLog = RevisionInfoFilterSensitiveLog; + var BatchGetApplicationRevisionsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetApplicationRevisionsOutputFilterSensitiveLog = BatchGetApplicationRevisionsOutputFilterSensitiveLog; + var BatchGetApplicationsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetApplicationsInputFilterSensitiveLog = BatchGetApplicationsInputFilterSensitiveLog; + var BatchGetApplicationsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetApplicationsOutputFilterSensitiveLog = BatchGetApplicationsOutputFilterSensitiveLog; + var BatchGetDeploymentGroupsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentGroupsInputFilterSensitiveLog = BatchGetDeploymentGroupsInputFilterSensitiveLog; + var DeploymentReadyOptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeploymentReadyOptionFilterSensitiveLog = DeploymentReadyOptionFilterSensitiveLog; + var GreenFleetProvisioningOptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GreenFleetProvisioningOptionFilterSensitiveLog = GreenFleetProvisioningOptionFilterSensitiveLog; + var BlueInstanceTerminationOptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BlueInstanceTerminationOptionFilterSensitiveLog = BlueInstanceTerminationOptionFilterSensitiveLog; + var BlueGreenDeploymentConfigurationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BlueGreenDeploymentConfigurationFilterSensitiveLog = BlueGreenDeploymentConfigurationFilterSensitiveLog; + var DeploymentStyleFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeploymentStyleFilterSensitiveLog = DeploymentStyleFilterSensitiveLog; + var EC2TagFilterFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.EC2TagFilterFilterSensitiveLog = EC2TagFilterFilterSensitiveLog; + var EC2TagSetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.EC2TagSetFilterSensitiveLog = EC2TagSetFilterSensitiveLog; + var ECSServiceFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ECSServiceFilterSensitiveLog = ECSServiceFilterSensitiveLog; + var LastDeploymentInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.LastDeploymentInfoFilterSensitiveLog = LastDeploymentInfoFilterSensitiveLog; + var ELBInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ELBInfoFilterSensitiveLog = ELBInfoFilterSensitiveLog; + var TargetGroupInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TargetGroupInfoFilterSensitiveLog = TargetGroupInfoFilterSensitiveLog; + var TrafficRouteFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TrafficRouteFilterSensitiveLog = TrafficRouteFilterSensitiveLog; + var TargetGroupPairInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TargetGroupPairInfoFilterSensitiveLog = TargetGroupPairInfoFilterSensitiveLog; + var LoadBalancerInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.LoadBalancerInfoFilterSensitiveLog = LoadBalancerInfoFilterSensitiveLog; + var TagFilterFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TagFilterFilterSensitiveLog = TagFilterFilterSensitiveLog; + var OnPremisesTagSetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.OnPremisesTagSetFilterSensitiveLog = OnPremisesTagSetFilterSensitiveLog; + var TriggerConfigFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TriggerConfigFilterSensitiveLog = TriggerConfigFilterSensitiveLog; + var DeploymentGroupInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeploymentGroupInfoFilterSensitiveLog = DeploymentGroupInfoFilterSensitiveLog; + var BatchGetDeploymentGroupsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentGroupsOutputFilterSensitiveLog = BatchGetDeploymentGroupsOutputFilterSensitiveLog; + var BatchGetDeploymentInstancesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentInstancesInputFilterSensitiveLog = BatchGetDeploymentInstancesInputFilterSensitiveLog; + var DiagnosticsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DiagnosticsFilterSensitiveLog = DiagnosticsFilterSensitiveLog; + var LifecycleEventFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.LifecycleEventFilterSensitiveLog = LifecycleEventFilterSensitiveLog; + var InstanceSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.InstanceSummaryFilterSensitiveLog = InstanceSummaryFilterSensitiveLog; + var BatchGetDeploymentInstancesOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentInstancesOutputFilterSensitiveLog = BatchGetDeploymentInstancesOutputFilterSensitiveLog; + var BatchGetDeploymentsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentsInputFilterSensitiveLog = BatchGetDeploymentsInputFilterSensitiveLog; + var DeploymentOverviewFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeploymentOverviewFilterSensitiveLog = DeploymentOverviewFilterSensitiveLog; + var ErrorInformationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ErrorInformationFilterSensitiveLog = ErrorInformationFilterSensitiveLog; + var RelatedDeploymentsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RelatedDeploymentsFilterSensitiveLog = RelatedDeploymentsFilterSensitiveLog; + var RollbackInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RollbackInfoFilterSensitiveLog = RollbackInfoFilterSensitiveLog; + var TargetInstancesFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TargetInstancesFilterSensitiveLog = TargetInstancesFilterSensitiveLog; + var DeploymentInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeploymentInfoFilterSensitiveLog = DeploymentInfoFilterSensitiveLog; + var BatchGetDeploymentsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentsOutputFilterSensitiveLog = BatchGetDeploymentsOutputFilterSensitiveLog; + var BatchGetDeploymentTargetsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentTargetsInputFilterSensitiveLog = BatchGetDeploymentTargetsInputFilterSensitiveLog; + var CloudFormationTargetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CloudFormationTargetFilterSensitiveLog = CloudFormationTargetFilterSensitiveLog; + var ECSTaskSetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ECSTaskSetFilterSensitiveLog = ECSTaskSetFilterSensitiveLog; + var ECSTargetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ECSTargetFilterSensitiveLog = ECSTargetFilterSensitiveLog; + var InstanceTargetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.InstanceTargetFilterSensitiveLog = InstanceTargetFilterSensitiveLog; + var LambdaFunctionInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.LambdaFunctionInfoFilterSensitiveLog = LambdaFunctionInfoFilterSensitiveLog; + var LambdaTargetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.LambdaTargetFilterSensitiveLog = LambdaTargetFilterSensitiveLog; + var DeploymentTargetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeploymentTargetFilterSensitiveLog = DeploymentTargetFilterSensitiveLog; + var BatchGetDeploymentTargetsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentTargetsOutputFilterSensitiveLog = BatchGetDeploymentTargetsOutputFilterSensitiveLog; + var BatchGetOnPremisesInstancesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetOnPremisesInstancesInputFilterSensitiveLog = BatchGetOnPremisesInstancesInputFilterSensitiveLog; + var InstanceInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.InstanceInfoFilterSensitiveLog = InstanceInfoFilterSensitiveLog; + var BatchGetOnPremisesInstancesOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetOnPremisesInstancesOutputFilterSensitiveLog = BatchGetOnPremisesInstancesOutputFilterSensitiveLog; + var ContinueDeploymentInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ContinueDeploymentInputFilterSensitiveLog = ContinueDeploymentInputFilterSensitiveLog; + var CreateApplicationInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateApplicationInputFilterSensitiveLog = CreateApplicationInputFilterSensitiveLog; + var CreateApplicationOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateApplicationOutputFilterSensitiveLog = CreateApplicationOutputFilterSensitiveLog; + var CreateDeploymentInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateDeploymentInputFilterSensitiveLog = CreateDeploymentInputFilterSensitiveLog; + var CreateDeploymentOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateDeploymentOutputFilterSensitiveLog = CreateDeploymentOutputFilterSensitiveLog; + var MinimumHealthyHostsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.MinimumHealthyHostsFilterSensitiveLog = MinimumHealthyHostsFilterSensitiveLog; + var TimeBasedCanaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TimeBasedCanaryFilterSensitiveLog = TimeBasedCanaryFilterSensitiveLog; + var TimeBasedLinearFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TimeBasedLinearFilterSensitiveLog = TimeBasedLinearFilterSensitiveLog; + var TrafficRoutingConfigFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TrafficRoutingConfigFilterSensitiveLog = TrafficRoutingConfigFilterSensitiveLog; + var CreateDeploymentConfigInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateDeploymentConfigInputFilterSensitiveLog = CreateDeploymentConfigInputFilterSensitiveLog; + var CreateDeploymentConfigOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateDeploymentConfigOutputFilterSensitiveLog = CreateDeploymentConfigOutputFilterSensitiveLog; + var CreateDeploymentGroupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateDeploymentGroupInputFilterSensitiveLog = CreateDeploymentGroupInputFilterSensitiveLog; + var CreateDeploymentGroupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateDeploymentGroupOutputFilterSensitiveLog = CreateDeploymentGroupOutputFilterSensitiveLog; + var DeleteApplicationInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteApplicationInputFilterSensitiveLog = DeleteApplicationInputFilterSensitiveLog; + var DeleteDeploymentConfigInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteDeploymentConfigInputFilterSensitiveLog = DeleteDeploymentConfigInputFilterSensitiveLog; + var DeleteDeploymentGroupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteDeploymentGroupInputFilterSensitiveLog = DeleteDeploymentGroupInputFilterSensitiveLog; + var DeleteDeploymentGroupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteDeploymentGroupOutputFilterSensitiveLog = DeleteDeploymentGroupOutputFilterSensitiveLog; + var DeleteGitHubAccountTokenInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteGitHubAccountTokenInputFilterSensitiveLog = DeleteGitHubAccountTokenInputFilterSensitiveLog; + var DeleteGitHubAccountTokenOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteGitHubAccountTokenOutputFilterSensitiveLog = DeleteGitHubAccountTokenOutputFilterSensitiveLog; + var DeleteResourcesByExternalIdInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteResourcesByExternalIdInputFilterSensitiveLog = DeleteResourcesByExternalIdInputFilterSensitiveLog; + var DeleteResourcesByExternalIdOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteResourcesByExternalIdOutputFilterSensitiveLog = DeleteResourcesByExternalIdOutputFilterSensitiveLog; + var DeregisterOnPremisesInstanceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeregisterOnPremisesInstanceInputFilterSensitiveLog = DeregisterOnPremisesInstanceInputFilterSensitiveLog; + var GetApplicationInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetApplicationInputFilterSensitiveLog = GetApplicationInputFilterSensitiveLog; + var GetApplicationOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetApplicationOutputFilterSensitiveLog = GetApplicationOutputFilterSensitiveLog; + var GetApplicationRevisionInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetApplicationRevisionInputFilterSensitiveLog = GetApplicationRevisionInputFilterSensitiveLog; + var GetApplicationRevisionOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetApplicationRevisionOutputFilterSensitiveLog = GetApplicationRevisionOutputFilterSensitiveLog; + var GetDeploymentInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentInputFilterSensitiveLog = GetDeploymentInputFilterSensitiveLog; + var GetDeploymentOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentOutputFilterSensitiveLog = GetDeploymentOutputFilterSensitiveLog; + var GetDeploymentConfigInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentConfigInputFilterSensitiveLog = GetDeploymentConfigInputFilterSensitiveLog; + var DeploymentConfigInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeploymentConfigInfoFilterSensitiveLog = DeploymentConfigInfoFilterSensitiveLog; + var GetDeploymentConfigOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentConfigOutputFilterSensitiveLog = GetDeploymentConfigOutputFilterSensitiveLog; + var GetDeploymentGroupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentGroupInputFilterSensitiveLog = GetDeploymentGroupInputFilterSensitiveLog; + var GetDeploymentGroupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentGroupOutputFilterSensitiveLog = GetDeploymentGroupOutputFilterSensitiveLog; + var GetDeploymentInstanceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentInstanceInputFilterSensitiveLog = GetDeploymentInstanceInputFilterSensitiveLog; + var GetDeploymentInstanceOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentInstanceOutputFilterSensitiveLog = GetDeploymentInstanceOutputFilterSensitiveLog; + var GetDeploymentTargetInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentTargetInputFilterSensitiveLog = GetDeploymentTargetInputFilterSensitiveLog; + var GetDeploymentTargetOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentTargetOutputFilterSensitiveLog = GetDeploymentTargetOutputFilterSensitiveLog; + var GetOnPremisesInstanceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetOnPremisesInstanceInputFilterSensitiveLog = GetOnPremisesInstanceInputFilterSensitiveLog; + var GetOnPremisesInstanceOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetOnPremisesInstanceOutputFilterSensitiveLog = GetOnPremisesInstanceOutputFilterSensitiveLog; + var ListApplicationRevisionsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListApplicationRevisionsInputFilterSensitiveLog = ListApplicationRevisionsInputFilterSensitiveLog; + var ListApplicationRevisionsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListApplicationRevisionsOutputFilterSensitiveLog = ListApplicationRevisionsOutputFilterSensitiveLog; + var ListApplicationsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListApplicationsInputFilterSensitiveLog = ListApplicationsInputFilterSensitiveLog; + var ListApplicationsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListApplicationsOutputFilterSensitiveLog = ListApplicationsOutputFilterSensitiveLog; + var ListDeploymentConfigsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentConfigsInputFilterSensitiveLog = ListDeploymentConfigsInputFilterSensitiveLog; + var ListDeploymentConfigsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentConfigsOutputFilterSensitiveLog = ListDeploymentConfigsOutputFilterSensitiveLog; + var ListDeploymentGroupsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentGroupsInputFilterSensitiveLog = ListDeploymentGroupsInputFilterSensitiveLog; + var ListDeploymentGroupsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentGroupsOutputFilterSensitiveLog = ListDeploymentGroupsOutputFilterSensitiveLog; + var ListDeploymentInstancesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentInstancesInputFilterSensitiveLog = ListDeploymentInstancesInputFilterSensitiveLog; + var ListDeploymentInstancesOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentInstancesOutputFilterSensitiveLog = ListDeploymentInstancesOutputFilterSensitiveLog; + var TimeRangeFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TimeRangeFilterSensitiveLog = TimeRangeFilterSensitiveLog; + var ListDeploymentsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentsInputFilterSensitiveLog = ListDeploymentsInputFilterSensitiveLog; + var ListDeploymentsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentsOutputFilterSensitiveLog = ListDeploymentsOutputFilterSensitiveLog; + var ListDeploymentTargetsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentTargetsInputFilterSensitiveLog = ListDeploymentTargetsInputFilterSensitiveLog; + var ListDeploymentTargetsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentTargetsOutputFilterSensitiveLog = ListDeploymentTargetsOutputFilterSensitiveLog; + var ListGitHubAccountTokenNamesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListGitHubAccountTokenNamesInputFilterSensitiveLog = ListGitHubAccountTokenNamesInputFilterSensitiveLog; + var ListGitHubAccountTokenNamesOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListGitHubAccountTokenNamesOutputFilterSensitiveLog = ListGitHubAccountTokenNamesOutputFilterSensitiveLog; + var ListOnPremisesInstancesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListOnPremisesInstancesInputFilterSensitiveLog = ListOnPremisesInstancesInputFilterSensitiveLog; + var ListOnPremisesInstancesOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListOnPremisesInstancesOutputFilterSensitiveLog = ListOnPremisesInstancesOutputFilterSensitiveLog; + var ListTagsForResourceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListTagsForResourceInputFilterSensitiveLog = ListTagsForResourceInputFilterSensitiveLog; + var ListTagsForResourceOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListTagsForResourceOutputFilterSensitiveLog = ListTagsForResourceOutputFilterSensitiveLog; + var PutLifecycleEventHookExecutionStatusInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.PutLifecycleEventHookExecutionStatusInputFilterSensitiveLog = PutLifecycleEventHookExecutionStatusInputFilterSensitiveLog; + var PutLifecycleEventHookExecutionStatusOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.PutLifecycleEventHookExecutionStatusOutputFilterSensitiveLog = PutLifecycleEventHookExecutionStatusOutputFilterSensitiveLog; + var RegisterApplicationRevisionInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RegisterApplicationRevisionInputFilterSensitiveLog = RegisterApplicationRevisionInputFilterSensitiveLog; + var RegisterOnPremisesInstanceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RegisterOnPremisesInstanceInputFilterSensitiveLog = RegisterOnPremisesInstanceInputFilterSensitiveLog; + var RemoveTagsFromOnPremisesInstancesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RemoveTagsFromOnPremisesInstancesInputFilterSensitiveLog = RemoveTagsFromOnPremisesInstancesInputFilterSensitiveLog; + var SkipWaitTimeForInstanceTerminationInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.SkipWaitTimeForInstanceTerminationInputFilterSensitiveLog = SkipWaitTimeForInstanceTerminationInputFilterSensitiveLog; + var StopDeploymentInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.StopDeploymentInputFilterSensitiveLog = StopDeploymentInputFilterSensitiveLog; + var StopDeploymentOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.StopDeploymentOutputFilterSensitiveLog = StopDeploymentOutputFilterSensitiveLog; + var TagResourceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TagResourceInputFilterSensitiveLog = TagResourceInputFilterSensitiveLog; + var TagResourceOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TagResourceOutputFilterSensitiveLog = TagResourceOutputFilterSensitiveLog; + var UntagResourceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.UntagResourceInputFilterSensitiveLog = UntagResourceInputFilterSensitiveLog; + var UntagResourceOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.UntagResourceOutputFilterSensitiveLog = UntagResourceOutputFilterSensitiveLog; + var UpdateApplicationInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.UpdateApplicationInputFilterSensitiveLog = UpdateApplicationInputFilterSensitiveLog; + var UpdateDeploymentGroupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.UpdateDeploymentGroupInputFilterSensitiveLog = UpdateDeploymentGroupInputFilterSensitiveLog; + var UpdateDeploymentGroupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.UpdateDeploymentGroupOutputFilterSensitiveLog = UpdateDeploymentGroupOutputFilterSensitiveLog; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/protocols/Aws_json1_1.js +var require_Aws_json1_1 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/protocols/Aws_json1_1.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.deserializeAws_json1_1BatchGetApplicationsCommand = exports.deserializeAws_json1_1BatchGetApplicationRevisionsCommand = exports.deserializeAws_json1_1AddTagsToOnPremisesInstancesCommand = exports.serializeAws_json1_1UpdateDeploymentGroupCommand = exports.serializeAws_json1_1UpdateApplicationCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopDeploymentCommand = exports.serializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand = exports.serializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand = exports.serializeAws_json1_1RegisterOnPremisesInstanceCommand = exports.serializeAws_json1_1RegisterApplicationRevisionCommand = exports.serializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListOnPremisesInstancesCommand = exports.serializeAws_json1_1ListGitHubAccountTokenNamesCommand = exports.serializeAws_json1_1ListDeploymentTargetsCommand = exports.serializeAws_json1_1ListDeploymentsCommand = exports.serializeAws_json1_1ListDeploymentInstancesCommand = exports.serializeAws_json1_1ListDeploymentGroupsCommand = exports.serializeAws_json1_1ListDeploymentConfigsCommand = exports.serializeAws_json1_1ListApplicationsCommand = exports.serializeAws_json1_1ListApplicationRevisionsCommand = exports.serializeAws_json1_1GetOnPremisesInstanceCommand = exports.serializeAws_json1_1GetDeploymentTargetCommand = exports.serializeAws_json1_1GetDeploymentInstanceCommand = exports.serializeAws_json1_1GetDeploymentGroupCommand = exports.serializeAws_json1_1GetDeploymentConfigCommand = exports.serializeAws_json1_1GetDeploymentCommand = exports.serializeAws_json1_1GetApplicationRevisionCommand = exports.serializeAws_json1_1GetApplicationCommand = exports.serializeAws_json1_1DeregisterOnPremisesInstanceCommand = exports.serializeAws_json1_1DeleteResourcesByExternalIdCommand = exports.serializeAws_json1_1DeleteGitHubAccountTokenCommand = exports.serializeAws_json1_1DeleteDeploymentGroupCommand = exports.serializeAws_json1_1DeleteDeploymentConfigCommand = exports.serializeAws_json1_1DeleteApplicationCommand = exports.serializeAws_json1_1CreateDeploymentGroupCommand = exports.serializeAws_json1_1CreateDeploymentConfigCommand = exports.serializeAws_json1_1CreateDeploymentCommand = exports.serializeAws_json1_1CreateApplicationCommand = exports.serializeAws_json1_1ContinueDeploymentCommand = exports.serializeAws_json1_1BatchGetOnPremisesInstancesCommand = exports.serializeAws_json1_1BatchGetDeploymentTargetsCommand = exports.serializeAws_json1_1BatchGetDeploymentsCommand = exports.serializeAws_json1_1BatchGetDeploymentInstancesCommand = exports.serializeAws_json1_1BatchGetDeploymentGroupsCommand = exports.serializeAws_json1_1BatchGetApplicationsCommand = exports.serializeAws_json1_1BatchGetApplicationRevisionsCommand = exports.serializeAws_json1_1AddTagsToOnPremisesInstancesCommand = void 0; + exports.deserializeAws_json1_1UpdateDeploymentGroupCommand = exports.deserializeAws_json1_1UpdateApplicationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopDeploymentCommand = exports.deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand = exports.deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand = exports.deserializeAws_json1_1RegisterOnPremisesInstanceCommand = exports.deserializeAws_json1_1RegisterApplicationRevisionCommand = exports.deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListOnPremisesInstancesCommand = exports.deserializeAws_json1_1ListGitHubAccountTokenNamesCommand = exports.deserializeAws_json1_1ListDeploymentTargetsCommand = exports.deserializeAws_json1_1ListDeploymentsCommand = exports.deserializeAws_json1_1ListDeploymentInstancesCommand = exports.deserializeAws_json1_1ListDeploymentGroupsCommand = exports.deserializeAws_json1_1ListDeploymentConfigsCommand = exports.deserializeAws_json1_1ListApplicationsCommand = exports.deserializeAws_json1_1ListApplicationRevisionsCommand = exports.deserializeAws_json1_1GetOnPremisesInstanceCommand = exports.deserializeAws_json1_1GetDeploymentTargetCommand = exports.deserializeAws_json1_1GetDeploymentInstanceCommand = exports.deserializeAws_json1_1GetDeploymentGroupCommand = exports.deserializeAws_json1_1GetDeploymentConfigCommand = exports.deserializeAws_json1_1GetDeploymentCommand = exports.deserializeAws_json1_1GetApplicationRevisionCommand = exports.deserializeAws_json1_1GetApplicationCommand = exports.deserializeAws_json1_1DeregisterOnPremisesInstanceCommand = exports.deserializeAws_json1_1DeleteResourcesByExternalIdCommand = exports.deserializeAws_json1_1DeleteGitHubAccountTokenCommand = exports.deserializeAws_json1_1DeleteDeploymentGroupCommand = exports.deserializeAws_json1_1DeleteDeploymentConfigCommand = exports.deserializeAws_json1_1DeleteApplicationCommand = exports.deserializeAws_json1_1CreateDeploymentGroupCommand = exports.deserializeAws_json1_1CreateDeploymentConfigCommand = exports.deserializeAws_json1_1CreateDeploymentCommand = exports.deserializeAws_json1_1CreateApplicationCommand = exports.deserializeAws_json1_1ContinueDeploymentCommand = exports.deserializeAws_json1_1BatchGetOnPremisesInstancesCommand = exports.deserializeAws_json1_1BatchGetDeploymentTargetsCommand = exports.deserializeAws_json1_1BatchGetDeploymentsCommand = exports.deserializeAws_json1_1BatchGetDeploymentInstancesCommand = exports.deserializeAws_json1_1BatchGetDeploymentGroupsCommand = void 0; + var protocol_http_1 = require_dist_cjs4(); + var smithy_client_1 = require_dist_cjs19(); + var CodeDeployServiceException_1 = require_CodeDeployServiceException(); + var models_0_1 = require_models_03(); + var serializeAws_json1_1AddTagsToOnPremisesInstancesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.AddTagsToOnPremisesInstances" + }; + let body; + body = JSON.stringify(serializeAws_json1_1AddTagsToOnPremisesInstancesInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1AddTagsToOnPremisesInstancesCommand = serializeAws_json1_1AddTagsToOnPremisesInstancesCommand; + var serializeAws_json1_1BatchGetApplicationRevisionsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.BatchGetApplicationRevisions" + }; + let body; + body = JSON.stringify(serializeAws_json1_1BatchGetApplicationRevisionsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1BatchGetApplicationRevisionsCommand = serializeAws_json1_1BatchGetApplicationRevisionsCommand; + var serializeAws_json1_1BatchGetApplicationsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.BatchGetApplications" + }; + let body; + body = JSON.stringify(serializeAws_json1_1BatchGetApplicationsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1BatchGetApplicationsCommand = serializeAws_json1_1BatchGetApplicationsCommand; + var serializeAws_json1_1BatchGetDeploymentGroupsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.BatchGetDeploymentGroups" + }; + let body; + body = JSON.stringify(serializeAws_json1_1BatchGetDeploymentGroupsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1BatchGetDeploymentGroupsCommand = serializeAws_json1_1BatchGetDeploymentGroupsCommand; + var serializeAws_json1_1BatchGetDeploymentInstancesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.BatchGetDeploymentInstances" + }; + let body; + body = JSON.stringify(serializeAws_json1_1BatchGetDeploymentInstancesInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1BatchGetDeploymentInstancesCommand = serializeAws_json1_1BatchGetDeploymentInstancesCommand; + var serializeAws_json1_1BatchGetDeploymentsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.BatchGetDeployments" + }; + let body; + body = JSON.stringify(serializeAws_json1_1BatchGetDeploymentsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1BatchGetDeploymentsCommand = serializeAws_json1_1BatchGetDeploymentsCommand; + var serializeAws_json1_1BatchGetDeploymentTargetsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.BatchGetDeploymentTargets" + }; + let body; + body = JSON.stringify(serializeAws_json1_1BatchGetDeploymentTargetsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1BatchGetDeploymentTargetsCommand = serializeAws_json1_1BatchGetDeploymentTargetsCommand; + var serializeAws_json1_1BatchGetOnPremisesInstancesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.BatchGetOnPremisesInstances" + }; + let body; + body = JSON.stringify(serializeAws_json1_1BatchGetOnPremisesInstancesInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1BatchGetOnPremisesInstancesCommand = serializeAws_json1_1BatchGetOnPremisesInstancesCommand; + var serializeAws_json1_1ContinueDeploymentCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ContinueDeployment" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ContinueDeploymentInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ContinueDeploymentCommand = serializeAws_json1_1ContinueDeploymentCommand; + var serializeAws_json1_1CreateApplicationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.CreateApplication" + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateApplicationInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1CreateApplicationCommand = serializeAws_json1_1CreateApplicationCommand; + var serializeAws_json1_1CreateDeploymentCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.CreateDeployment" + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateDeploymentInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1CreateDeploymentCommand = serializeAws_json1_1CreateDeploymentCommand; + var serializeAws_json1_1CreateDeploymentConfigCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.CreateDeploymentConfig" + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateDeploymentConfigInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1CreateDeploymentConfigCommand = serializeAws_json1_1CreateDeploymentConfigCommand; + var serializeAws_json1_1CreateDeploymentGroupCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.CreateDeploymentGroup" + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateDeploymentGroupInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1CreateDeploymentGroupCommand = serializeAws_json1_1CreateDeploymentGroupCommand; + var serializeAws_json1_1DeleteApplicationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.DeleteApplication" + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteApplicationInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1DeleteApplicationCommand = serializeAws_json1_1DeleteApplicationCommand; + var serializeAws_json1_1DeleteDeploymentConfigCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.DeleteDeploymentConfig" + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteDeploymentConfigInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1DeleteDeploymentConfigCommand = serializeAws_json1_1DeleteDeploymentConfigCommand; + var serializeAws_json1_1DeleteDeploymentGroupCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.DeleteDeploymentGroup" + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteDeploymentGroupInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1DeleteDeploymentGroupCommand = serializeAws_json1_1DeleteDeploymentGroupCommand; + var serializeAws_json1_1DeleteGitHubAccountTokenCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.DeleteGitHubAccountToken" + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteGitHubAccountTokenInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1DeleteGitHubAccountTokenCommand = serializeAws_json1_1DeleteGitHubAccountTokenCommand; + var serializeAws_json1_1DeleteResourcesByExternalIdCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.DeleteResourcesByExternalId" + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteResourcesByExternalIdInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1DeleteResourcesByExternalIdCommand = serializeAws_json1_1DeleteResourcesByExternalIdCommand; + var serializeAws_json1_1DeregisterOnPremisesInstanceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.DeregisterOnPremisesInstance" + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeregisterOnPremisesInstanceInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1DeregisterOnPremisesInstanceCommand = serializeAws_json1_1DeregisterOnPremisesInstanceCommand; + var serializeAws_json1_1GetApplicationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetApplication" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetApplicationInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetApplicationCommand = serializeAws_json1_1GetApplicationCommand; + var serializeAws_json1_1GetApplicationRevisionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetApplicationRevision" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetApplicationRevisionInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetApplicationRevisionCommand = serializeAws_json1_1GetApplicationRevisionCommand; + var serializeAws_json1_1GetDeploymentCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetDeployment" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetDeploymentInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetDeploymentCommand = serializeAws_json1_1GetDeploymentCommand; + var serializeAws_json1_1GetDeploymentConfigCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetDeploymentConfig" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetDeploymentConfigInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetDeploymentConfigCommand = serializeAws_json1_1GetDeploymentConfigCommand; + var serializeAws_json1_1GetDeploymentGroupCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetDeploymentGroup" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetDeploymentGroupInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetDeploymentGroupCommand = serializeAws_json1_1GetDeploymentGroupCommand; + var serializeAws_json1_1GetDeploymentInstanceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetDeploymentInstance" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetDeploymentInstanceInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetDeploymentInstanceCommand = serializeAws_json1_1GetDeploymentInstanceCommand; + var serializeAws_json1_1GetDeploymentTargetCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetDeploymentTarget" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetDeploymentTargetInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetDeploymentTargetCommand = serializeAws_json1_1GetDeploymentTargetCommand; + var serializeAws_json1_1GetOnPremisesInstanceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetOnPremisesInstance" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetOnPremisesInstanceInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetOnPremisesInstanceCommand = serializeAws_json1_1GetOnPremisesInstanceCommand; + var serializeAws_json1_1ListApplicationRevisionsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListApplicationRevisions" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListApplicationRevisionsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListApplicationRevisionsCommand = serializeAws_json1_1ListApplicationRevisionsCommand; + var serializeAws_json1_1ListApplicationsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListApplications" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListApplicationsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListApplicationsCommand = serializeAws_json1_1ListApplicationsCommand; + var serializeAws_json1_1ListDeploymentConfigsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListDeploymentConfigs" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListDeploymentConfigsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListDeploymentConfigsCommand = serializeAws_json1_1ListDeploymentConfigsCommand; + var serializeAws_json1_1ListDeploymentGroupsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListDeploymentGroups" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListDeploymentGroupsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListDeploymentGroupsCommand = serializeAws_json1_1ListDeploymentGroupsCommand; + var serializeAws_json1_1ListDeploymentInstancesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListDeploymentInstances" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListDeploymentInstancesInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListDeploymentInstancesCommand = serializeAws_json1_1ListDeploymentInstancesCommand; + var serializeAws_json1_1ListDeploymentsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListDeployments" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListDeploymentsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListDeploymentsCommand = serializeAws_json1_1ListDeploymentsCommand; + var serializeAws_json1_1ListDeploymentTargetsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListDeploymentTargets" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListDeploymentTargetsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListDeploymentTargetsCommand = serializeAws_json1_1ListDeploymentTargetsCommand; + var serializeAws_json1_1ListGitHubAccountTokenNamesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListGitHubAccountTokenNames" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListGitHubAccountTokenNamesInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListGitHubAccountTokenNamesCommand = serializeAws_json1_1ListGitHubAccountTokenNamesCommand; + var serializeAws_json1_1ListOnPremisesInstancesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListOnPremisesInstances" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListOnPremisesInstancesInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListOnPremisesInstancesCommand = serializeAws_json1_1ListOnPremisesInstancesCommand; + var serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListTagsForResource" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListTagsForResourceInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand; + var serializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.PutLifecycleEventHookExecutionStatus" + }; + let body; + body = JSON.stringify(serializeAws_json1_1PutLifecycleEventHookExecutionStatusInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand = serializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand; + var serializeAws_json1_1RegisterApplicationRevisionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.RegisterApplicationRevision" + }; + let body; + body = JSON.stringify(serializeAws_json1_1RegisterApplicationRevisionInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1RegisterApplicationRevisionCommand = serializeAws_json1_1RegisterApplicationRevisionCommand; + var serializeAws_json1_1RegisterOnPremisesInstanceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.RegisterOnPremisesInstance" + }; + let body; + body = JSON.stringify(serializeAws_json1_1RegisterOnPremisesInstanceInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1RegisterOnPremisesInstanceCommand = serializeAws_json1_1RegisterOnPremisesInstanceCommand; + var serializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.RemoveTagsFromOnPremisesInstances" + }; + let body; + body = JSON.stringify(serializeAws_json1_1RemoveTagsFromOnPremisesInstancesInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand = serializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand; + var serializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.SkipWaitTimeForInstanceTermination" + }; + let body; + body = JSON.stringify(serializeAws_json1_1SkipWaitTimeForInstanceTerminationInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand = serializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand; + var serializeAws_json1_1StopDeploymentCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.StopDeployment" + }; + let body; + body = JSON.stringify(serializeAws_json1_1StopDeploymentInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1StopDeploymentCommand = serializeAws_json1_1StopDeploymentCommand; + var serializeAws_json1_1TagResourceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.TagResource" + }; + let body; + body = JSON.stringify(serializeAws_json1_1TagResourceInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1TagResourceCommand = serializeAws_json1_1TagResourceCommand; + var serializeAws_json1_1UntagResourceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.UntagResource" + }; + let body; + body = JSON.stringify(serializeAws_json1_1UntagResourceInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1UntagResourceCommand = serializeAws_json1_1UntagResourceCommand; + var serializeAws_json1_1UpdateApplicationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.UpdateApplication" + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateApplicationInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1UpdateApplicationCommand = serializeAws_json1_1UpdateApplicationCommand; + var serializeAws_json1_1UpdateDeploymentGroupCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.UpdateDeploymentGroup" + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateDeploymentGroupInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1UpdateDeploymentGroupCommand = serializeAws_json1_1UpdateDeploymentGroupCommand; + var deserializeAws_json1_1AddTagsToOnPremisesInstancesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1AddTagsToOnPremisesInstancesCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1AddTagsToOnPremisesInstancesCommand = deserializeAws_json1_1AddTagsToOnPremisesInstancesCommand; + var deserializeAws_json1_1AddTagsToOnPremisesInstancesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InstanceLimitExceededException": + case "com.amazonaws.codedeploy#InstanceLimitExceededException": + throw await deserializeAws_json1_1InstanceLimitExceededExceptionResponse(parsedOutput, context); + case "InstanceNameRequiredException": + case "com.amazonaws.codedeploy#InstanceNameRequiredException": + throw await deserializeAws_json1_1InstanceNameRequiredExceptionResponse(parsedOutput, context); + case "InstanceNotRegisteredException": + case "com.amazonaws.codedeploy#InstanceNotRegisteredException": + throw await deserializeAws_json1_1InstanceNotRegisteredExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + case "InvalidTagException": + case "com.amazonaws.codedeploy#InvalidTagException": + throw await deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context); + case "TagLimitExceededException": + case "com.amazonaws.codedeploy#TagLimitExceededException": + throw await deserializeAws_json1_1TagLimitExceededExceptionResponse(parsedOutput, context); + case "TagRequiredException": + case "com.amazonaws.codedeploy#TagRequiredException": + throw await deserializeAws_json1_1TagRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1BatchGetApplicationRevisionsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1BatchGetApplicationRevisionsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1BatchGetApplicationRevisionsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1BatchGetApplicationRevisionsCommand = deserializeAws_json1_1BatchGetApplicationRevisionsCommand; + var deserializeAws_json1_1BatchGetApplicationRevisionsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "BatchLimitExceededException": + case "com.amazonaws.codedeploy#BatchLimitExceededException": + throw await deserializeAws_json1_1BatchLimitExceededExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidRevisionException": + case "com.amazonaws.codedeploy#InvalidRevisionException": + throw await deserializeAws_json1_1InvalidRevisionExceptionResponse(parsedOutput, context); + case "RevisionRequiredException": + case "com.amazonaws.codedeploy#RevisionRequiredException": + throw await deserializeAws_json1_1RevisionRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1BatchGetApplicationsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1BatchGetApplicationsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1BatchGetApplicationsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1BatchGetApplicationsCommand = deserializeAws_json1_1BatchGetApplicationsCommand; + var deserializeAws_json1_1BatchGetApplicationsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "BatchLimitExceededException": + case "com.amazonaws.codedeploy#BatchLimitExceededException": + throw await deserializeAws_json1_1BatchLimitExceededExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1BatchGetDeploymentGroupsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1BatchGetDeploymentGroupsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1BatchGetDeploymentGroupsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1BatchGetDeploymentGroupsCommand = deserializeAws_json1_1BatchGetDeploymentGroupsCommand; + var deserializeAws_json1_1BatchGetDeploymentGroupsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "BatchLimitExceededException": + case "com.amazonaws.codedeploy#BatchLimitExceededException": + throw await deserializeAws_json1_1BatchLimitExceededExceptionResponse(parsedOutput, context); + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException": + throw await deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentGroupNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException": + throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1BatchGetDeploymentInstancesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1BatchGetDeploymentInstancesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1BatchGetDeploymentInstancesOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1BatchGetDeploymentInstancesCommand = deserializeAws_json1_1BatchGetDeploymentInstancesCommand; + var deserializeAws_json1_1BatchGetDeploymentInstancesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BatchLimitExceededException": + case "com.amazonaws.codedeploy#BatchLimitExceededException": + throw await deserializeAws_json1_1BatchLimitExceededExceptionResponse(parsedOutput, context); + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "InstanceIdRequiredException": + case "com.amazonaws.codedeploy#InstanceIdRequiredException": + throw await deserializeAws_json1_1InstanceIdRequiredExceptionResponse(parsedOutput, context); + case "InvalidComputePlatformException": + case "com.amazonaws.codedeploy#InvalidComputePlatformException": + throw await deserializeAws_json1_1InvalidComputePlatformExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1BatchGetDeploymentsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1BatchGetDeploymentsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1BatchGetDeploymentsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1BatchGetDeploymentsCommand = deserializeAws_json1_1BatchGetDeploymentsCommand; + var deserializeAws_json1_1BatchGetDeploymentsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BatchLimitExceededException": + case "com.amazonaws.codedeploy#BatchLimitExceededException": + throw await deserializeAws_json1_1BatchLimitExceededExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1BatchGetDeploymentTargetsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1BatchGetDeploymentTargetsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1BatchGetDeploymentTargetsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1BatchGetDeploymentTargetsCommand = deserializeAws_json1_1BatchGetDeploymentTargetsCommand; + var deserializeAws_json1_1BatchGetDeploymentTargetsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "DeploymentNotStartedException": + case "com.amazonaws.codedeploy#DeploymentNotStartedException": + throw await deserializeAws_json1_1DeploymentNotStartedExceptionResponse(parsedOutput, context); + case "DeploymentTargetDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentTargetDoesNotExistException": + throw await deserializeAws_json1_1DeploymentTargetDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentTargetIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentTargetIdRequiredException": + throw await deserializeAws_json1_1DeploymentTargetIdRequiredExceptionResponse(parsedOutput, context); + case "DeploymentTargetListSizeExceededException": + case "com.amazonaws.codedeploy#DeploymentTargetListSizeExceededException": + throw await deserializeAws_json1_1DeploymentTargetListSizeExceededExceptionResponse(parsedOutput, context); + case "InstanceDoesNotExistException": + case "com.amazonaws.codedeploy#InstanceDoesNotExistException": + throw await deserializeAws_json1_1InstanceDoesNotExistExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidDeploymentTargetIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentTargetIdException": + throw await deserializeAws_json1_1InvalidDeploymentTargetIdExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1BatchGetOnPremisesInstancesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1BatchGetOnPremisesInstancesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1BatchGetOnPremisesInstancesOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1BatchGetOnPremisesInstancesCommand = deserializeAws_json1_1BatchGetOnPremisesInstancesCommand; + var deserializeAws_json1_1BatchGetOnPremisesInstancesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BatchLimitExceededException": + case "com.amazonaws.codedeploy#BatchLimitExceededException": + throw await deserializeAws_json1_1BatchLimitExceededExceptionResponse(parsedOutput, context); + case "InstanceNameRequiredException": + case "com.amazonaws.codedeploy#InstanceNameRequiredException": + throw await deserializeAws_json1_1InstanceNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ContinueDeploymentCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ContinueDeploymentCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ContinueDeploymentCommand = deserializeAws_json1_1ContinueDeploymentCommand; + var deserializeAws_json1_1ContinueDeploymentCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentAlreadyCompletedException": + case "com.amazonaws.codedeploy#DeploymentAlreadyCompletedException": + throw await deserializeAws_json1_1DeploymentAlreadyCompletedExceptionResponse(parsedOutput, context); + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "DeploymentIsNotInReadyStateException": + case "com.amazonaws.codedeploy#DeploymentIsNotInReadyStateException": + throw await deserializeAws_json1_1DeploymentIsNotInReadyStateExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidDeploymentStatusException": + case "com.amazonaws.codedeploy#InvalidDeploymentStatusException": + throw await deserializeAws_json1_1InvalidDeploymentStatusExceptionResponse(parsedOutput, context); + case "InvalidDeploymentWaitTypeException": + case "com.amazonaws.codedeploy#InvalidDeploymentWaitTypeException": + throw await deserializeAws_json1_1InvalidDeploymentWaitTypeExceptionResponse(parsedOutput, context); + case "UnsupportedActionForDeploymentTypeException": + case "com.amazonaws.codedeploy#UnsupportedActionForDeploymentTypeException": + throw await deserializeAws_json1_1UnsupportedActionForDeploymentTypeExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1CreateApplicationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateApplicationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateApplicationOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1CreateApplicationCommand = deserializeAws_json1_1CreateApplicationCommand; + var deserializeAws_json1_1CreateApplicationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationAlreadyExistsException": + case "com.amazonaws.codedeploy#ApplicationAlreadyExistsException": + throw await deserializeAws_json1_1ApplicationAlreadyExistsExceptionResponse(parsedOutput, context); + case "ApplicationLimitExceededException": + case "com.amazonaws.codedeploy#ApplicationLimitExceededException": + throw await deserializeAws_json1_1ApplicationLimitExceededExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidComputePlatformException": + case "com.amazonaws.codedeploy#InvalidComputePlatformException": + throw await deserializeAws_json1_1InvalidComputePlatformExceptionResponse(parsedOutput, context); + case "InvalidTagsToAddException": + case "com.amazonaws.codedeploy#InvalidTagsToAddException": + throw await deserializeAws_json1_1InvalidTagsToAddExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1CreateDeploymentCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateDeploymentCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateDeploymentOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1CreateDeploymentCommand = deserializeAws_json1_1CreateDeploymentCommand; + var deserializeAws_json1_1CreateDeploymentCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AlarmsLimitExceededException": + case "com.amazonaws.codedeploy#AlarmsLimitExceededException": + throw await deserializeAws_json1_1AlarmsLimitExceededExceptionResponse(parsedOutput, context); + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException": + throw await deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException": + throw await deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse(parsedOutput, context); + case "DeploymentLimitExceededException": + case "com.amazonaws.codedeploy#DeploymentLimitExceededException": + throw await deserializeAws_json1_1DeploymentLimitExceededExceptionResponse(parsedOutput, context); + case "DescriptionTooLongException": + case "com.amazonaws.codedeploy#DescriptionTooLongException": + throw await deserializeAws_json1_1DescriptionTooLongExceptionResponse(parsedOutput, context); + case "InvalidAlarmConfigException": + case "com.amazonaws.codedeploy#InvalidAlarmConfigException": + throw await deserializeAws_json1_1InvalidAlarmConfigExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidAutoRollbackConfigException": + case "com.amazonaws.codedeploy#InvalidAutoRollbackConfigException": + throw await deserializeAws_json1_1InvalidAutoRollbackConfigExceptionResponse(parsedOutput, context); + case "InvalidAutoScalingGroupException": + case "com.amazonaws.codedeploy#InvalidAutoScalingGroupException": + throw await deserializeAws_json1_1InvalidAutoScalingGroupExceptionResponse(parsedOutput, context); + case "InvalidDeploymentConfigNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException": + throw await deserializeAws_json1_1InvalidDeploymentConfigNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentGroupNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException": + throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context); + case "InvalidFileExistsBehaviorException": + case "com.amazonaws.codedeploy#InvalidFileExistsBehaviorException": + throw await deserializeAws_json1_1InvalidFileExistsBehaviorExceptionResponse(parsedOutput, context); + case "InvalidGitHubAccountTokenException": + case "com.amazonaws.codedeploy#InvalidGitHubAccountTokenException": + throw await deserializeAws_json1_1InvalidGitHubAccountTokenExceptionResponse(parsedOutput, context); + case "InvalidIgnoreApplicationStopFailuresValueException": + case "com.amazonaws.codedeploy#InvalidIgnoreApplicationStopFailuresValueException": + throw await deserializeAws_json1_1InvalidIgnoreApplicationStopFailuresValueExceptionResponse(parsedOutput, context); + case "InvalidLoadBalancerInfoException": + case "com.amazonaws.codedeploy#InvalidLoadBalancerInfoException": + throw await deserializeAws_json1_1InvalidLoadBalancerInfoExceptionResponse(parsedOutput, context); + case "InvalidRevisionException": + case "com.amazonaws.codedeploy#InvalidRevisionException": + throw await deserializeAws_json1_1InvalidRevisionExceptionResponse(parsedOutput, context); + case "InvalidRoleException": + case "com.amazonaws.codedeploy#InvalidRoleException": + throw await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context); + case "InvalidTargetInstancesException": + case "com.amazonaws.codedeploy#InvalidTargetInstancesException": + throw await deserializeAws_json1_1InvalidTargetInstancesExceptionResponse(parsedOutput, context); + case "InvalidTrafficRoutingConfigurationException": + case "com.amazonaws.codedeploy#InvalidTrafficRoutingConfigurationException": + throw await deserializeAws_json1_1InvalidTrafficRoutingConfigurationExceptionResponse(parsedOutput, context); + case "InvalidUpdateOutdatedInstancesOnlyValueException": + case "com.amazonaws.codedeploy#InvalidUpdateOutdatedInstancesOnlyValueException": + throw await deserializeAws_json1_1InvalidUpdateOutdatedInstancesOnlyValueExceptionResponse(parsedOutput, context); + case "RevisionDoesNotExistException": + case "com.amazonaws.codedeploy#RevisionDoesNotExistException": + throw await deserializeAws_json1_1RevisionDoesNotExistExceptionResponse(parsedOutput, context); + case "RevisionRequiredException": + case "com.amazonaws.codedeploy#RevisionRequiredException": + throw await deserializeAws_json1_1RevisionRequiredExceptionResponse(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.codedeploy#ThrottlingException": + throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1CreateDeploymentConfigCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateDeploymentConfigCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateDeploymentConfigOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1CreateDeploymentConfigCommand = deserializeAws_json1_1CreateDeploymentConfigCommand; + var deserializeAws_json1_1CreateDeploymentConfigCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentConfigAlreadyExistsException": + case "com.amazonaws.codedeploy#DeploymentConfigAlreadyExistsException": + throw await deserializeAws_json1_1DeploymentConfigAlreadyExistsExceptionResponse(parsedOutput, context); + case "DeploymentConfigLimitExceededException": + case "com.amazonaws.codedeploy#DeploymentConfigLimitExceededException": + throw await deserializeAws_json1_1DeploymentConfigLimitExceededExceptionResponse(parsedOutput, context); + case "DeploymentConfigNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentConfigNameRequiredException": + throw await deserializeAws_json1_1DeploymentConfigNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidComputePlatformException": + case "com.amazonaws.codedeploy#InvalidComputePlatformException": + throw await deserializeAws_json1_1InvalidComputePlatformExceptionResponse(parsedOutput, context); + case "InvalidDeploymentConfigNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException": + throw await deserializeAws_json1_1InvalidDeploymentConfigNameExceptionResponse(parsedOutput, context); + case "InvalidMinimumHealthyHostValueException": + case "com.amazonaws.codedeploy#InvalidMinimumHealthyHostValueException": + throw await deserializeAws_json1_1InvalidMinimumHealthyHostValueExceptionResponse(parsedOutput, context); + case "InvalidTrafficRoutingConfigurationException": + case "com.amazonaws.codedeploy#InvalidTrafficRoutingConfigurationException": + throw await deserializeAws_json1_1InvalidTrafficRoutingConfigurationExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1CreateDeploymentGroupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateDeploymentGroupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateDeploymentGroupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1CreateDeploymentGroupCommand = deserializeAws_json1_1CreateDeploymentGroupCommand; + var deserializeAws_json1_1CreateDeploymentGroupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AlarmsLimitExceededException": + case "com.amazonaws.codedeploy#AlarmsLimitExceededException": + throw await deserializeAws_json1_1AlarmsLimitExceededExceptionResponse(parsedOutput, context); + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupAlreadyExistsException": + case "com.amazonaws.codedeploy#DeploymentGroupAlreadyExistsException": + throw await deserializeAws_json1_1DeploymentGroupAlreadyExistsExceptionResponse(parsedOutput, context); + case "DeploymentGroupLimitExceededException": + case "com.amazonaws.codedeploy#DeploymentGroupLimitExceededException": + throw await deserializeAws_json1_1DeploymentGroupLimitExceededExceptionResponse(parsedOutput, context); + case "DeploymentGroupNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException": + throw await deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse(parsedOutput, context); + case "ECSServiceMappingLimitExceededException": + case "com.amazonaws.codedeploy#ECSServiceMappingLimitExceededException": + throw await deserializeAws_json1_1ECSServiceMappingLimitExceededExceptionResponse(parsedOutput, context); + case "InvalidAlarmConfigException": + case "com.amazonaws.codedeploy#InvalidAlarmConfigException": + throw await deserializeAws_json1_1InvalidAlarmConfigExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidAutoRollbackConfigException": + case "com.amazonaws.codedeploy#InvalidAutoRollbackConfigException": + throw await deserializeAws_json1_1InvalidAutoRollbackConfigExceptionResponse(parsedOutput, context); + case "InvalidAutoScalingGroupException": + case "com.amazonaws.codedeploy#InvalidAutoScalingGroupException": + throw await deserializeAws_json1_1InvalidAutoScalingGroupExceptionResponse(parsedOutput, context); + case "InvalidBlueGreenDeploymentConfigurationException": + case "com.amazonaws.codedeploy#InvalidBlueGreenDeploymentConfigurationException": + throw await deserializeAws_json1_1InvalidBlueGreenDeploymentConfigurationExceptionResponse(parsedOutput, context); + case "InvalidDeploymentConfigNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException": + throw await deserializeAws_json1_1InvalidDeploymentConfigNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentGroupNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException": + throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentStyleException": + case "com.amazonaws.codedeploy#InvalidDeploymentStyleException": + throw await deserializeAws_json1_1InvalidDeploymentStyleExceptionResponse(parsedOutput, context); + case "InvalidEC2TagCombinationException": + case "com.amazonaws.codedeploy#InvalidEC2TagCombinationException": + throw await deserializeAws_json1_1InvalidEC2TagCombinationExceptionResponse(parsedOutput, context); + case "InvalidEC2TagException": + case "com.amazonaws.codedeploy#InvalidEC2TagException": + throw await deserializeAws_json1_1InvalidEC2TagExceptionResponse(parsedOutput, context); + case "InvalidECSServiceException": + case "com.amazonaws.codedeploy#InvalidECSServiceException": + throw await deserializeAws_json1_1InvalidECSServiceExceptionResponse(parsedOutput, context); + case "InvalidInputException": + case "com.amazonaws.codedeploy#InvalidInputException": + throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context); + case "InvalidLoadBalancerInfoException": + case "com.amazonaws.codedeploy#InvalidLoadBalancerInfoException": + throw await deserializeAws_json1_1InvalidLoadBalancerInfoExceptionResponse(parsedOutput, context); + case "InvalidOnPremisesTagCombinationException": + case "com.amazonaws.codedeploy#InvalidOnPremisesTagCombinationException": + throw await deserializeAws_json1_1InvalidOnPremisesTagCombinationExceptionResponse(parsedOutput, context); + case "InvalidRoleException": + case "com.amazonaws.codedeploy#InvalidRoleException": + throw await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context); + case "InvalidTagException": + case "com.amazonaws.codedeploy#InvalidTagException": + throw await deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context); + case "InvalidTagsToAddException": + case "com.amazonaws.codedeploy#InvalidTagsToAddException": + throw await deserializeAws_json1_1InvalidTagsToAddExceptionResponse(parsedOutput, context); + case "InvalidTargetGroupPairException": + case "com.amazonaws.codedeploy#InvalidTargetGroupPairException": + throw await deserializeAws_json1_1InvalidTargetGroupPairExceptionResponse(parsedOutput, context); + case "InvalidTrafficRoutingConfigurationException": + case "com.amazonaws.codedeploy#InvalidTrafficRoutingConfigurationException": + throw await deserializeAws_json1_1InvalidTrafficRoutingConfigurationExceptionResponse(parsedOutput, context); + case "InvalidTriggerConfigException": + case "com.amazonaws.codedeploy#InvalidTriggerConfigException": + throw await deserializeAws_json1_1InvalidTriggerConfigExceptionResponse(parsedOutput, context); + case "LifecycleHookLimitExceededException": + case "com.amazonaws.codedeploy#LifecycleHookLimitExceededException": + throw await deserializeAws_json1_1LifecycleHookLimitExceededExceptionResponse(parsedOutput, context); + case "RoleRequiredException": + case "com.amazonaws.codedeploy#RoleRequiredException": + throw await deserializeAws_json1_1RoleRequiredExceptionResponse(parsedOutput, context); + case "TagSetListLimitExceededException": + case "com.amazonaws.codedeploy#TagSetListLimitExceededException": + throw await deserializeAws_json1_1TagSetListLimitExceededExceptionResponse(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.codedeploy#ThrottlingException": + throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context); + case "TriggerTargetsLimitExceededException": + case "com.amazonaws.codedeploy#TriggerTargetsLimitExceededException": + throw await deserializeAws_json1_1TriggerTargetsLimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1DeleteApplicationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteApplicationCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1DeleteApplicationCommand = deserializeAws_json1_1DeleteApplicationCommand; + var deserializeAws_json1_1DeleteApplicationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidRoleException": + case "com.amazonaws.codedeploy#InvalidRoleException": + throw await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1DeleteDeploymentConfigCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteDeploymentConfigCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1DeleteDeploymentConfigCommand = deserializeAws_json1_1DeleteDeploymentConfigCommand; + var deserializeAws_json1_1DeleteDeploymentConfigCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentConfigInUseException": + case "com.amazonaws.codedeploy#DeploymentConfigInUseException": + throw await deserializeAws_json1_1DeploymentConfigInUseExceptionResponse(parsedOutput, context); + case "DeploymentConfigNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentConfigNameRequiredException": + throw await deserializeAws_json1_1DeploymentConfigNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidDeploymentConfigNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException": + throw await deserializeAws_json1_1InvalidDeploymentConfigNameExceptionResponse(parsedOutput, context); + case "InvalidOperationException": + case "com.amazonaws.codedeploy#InvalidOperationException": + throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1DeleteDeploymentGroupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteDeploymentGroupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeleteDeploymentGroupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1DeleteDeploymentGroupCommand = deserializeAws_json1_1DeleteDeploymentGroupCommand; + var deserializeAws_json1_1DeleteDeploymentGroupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "DeploymentGroupNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException": + throw await deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentGroupNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException": + throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context); + case "InvalidRoleException": + case "com.amazonaws.codedeploy#InvalidRoleException": + throw await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1DeleteGitHubAccountTokenCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteGitHubAccountTokenCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeleteGitHubAccountTokenOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1DeleteGitHubAccountTokenCommand = deserializeAws_json1_1DeleteGitHubAccountTokenCommand; + var deserializeAws_json1_1DeleteGitHubAccountTokenCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "GitHubAccountTokenDoesNotExistException": + case "com.amazonaws.codedeploy#GitHubAccountTokenDoesNotExistException": + throw await deserializeAws_json1_1GitHubAccountTokenDoesNotExistExceptionResponse(parsedOutput, context); + case "GitHubAccountTokenNameRequiredException": + case "com.amazonaws.codedeploy#GitHubAccountTokenNameRequiredException": + throw await deserializeAws_json1_1GitHubAccountTokenNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidGitHubAccountTokenNameException": + case "com.amazonaws.codedeploy#InvalidGitHubAccountTokenNameException": + throw await deserializeAws_json1_1InvalidGitHubAccountTokenNameExceptionResponse(parsedOutput, context); + case "OperationNotSupportedException": + case "com.amazonaws.codedeploy#OperationNotSupportedException": + throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context); + case "ResourceValidationException": + case "com.amazonaws.codedeploy#ResourceValidationException": + throw await deserializeAws_json1_1ResourceValidationExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1DeleteResourcesByExternalIdCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteResourcesByExternalIdCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeleteResourcesByExternalIdOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1DeleteResourcesByExternalIdCommand = deserializeAws_json1_1DeleteResourcesByExternalIdCommand; + var deserializeAws_json1_1DeleteResourcesByExternalIdCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + }; + var deserializeAws_json1_1DeregisterOnPremisesInstanceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeregisterOnPremisesInstanceCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1DeregisterOnPremisesInstanceCommand = deserializeAws_json1_1DeregisterOnPremisesInstanceCommand; + var deserializeAws_json1_1DeregisterOnPremisesInstanceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InstanceNameRequiredException": + case "com.amazonaws.codedeploy#InstanceNameRequiredException": + throw await deserializeAws_json1_1InstanceNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetApplicationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetApplicationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetApplicationOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetApplicationCommand = deserializeAws_json1_1GetApplicationCommand; + var deserializeAws_json1_1GetApplicationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetApplicationRevisionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetApplicationRevisionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetApplicationRevisionOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetApplicationRevisionCommand = deserializeAws_json1_1GetApplicationRevisionCommand; + var deserializeAws_json1_1GetApplicationRevisionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidRevisionException": + case "com.amazonaws.codedeploy#InvalidRevisionException": + throw await deserializeAws_json1_1InvalidRevisionExceptionResponse(parsedOutput, context); + case "RevisionDoesNotExistException": + case "com.amazonaws.codedeploy#RevisionDoesNotExistException": + throw await deserializeAws_json1_1RevisionDoesNotExistExceptionResponse(parsedOutput, context); + case "RevisionRequiredException": + case "com.amazonaws.codedeploy#RevisionRequiredException": + throw await deserializeAws_json1_1RevisionRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetDeploymentCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetDeploymentCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetDeploymentOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetDeploymentCommand = deserializeAws_json1_1GetDeploymentCommand; + var deserializeAws_json1_1GetDeploymentCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetDeploymentConfigCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetDeploymentConfigCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetDeploymentConfigOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetDeploymentConfigCommand = deserializeAws_json1_1GetDeploymentConfigCommand; + var deserializeAws_json1_1GetDeploymentConfigCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentConfigNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentConfigNameRequiredException": + throw await deserializeAws_json1_1DeploymentConfigNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidComputePlatformException": + case "com.amazonaws.codedeploy#InvalidComputePlatformException": + throw await deserializeAws_json1_1InvalidComputePlatformExceptionResponse(parsedOutput, context); + case "InvalidDeploymentConfigNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException": + throw await deserializeAws_json1_1InvalidDeploymentConfigNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetDeploymentGroupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetDeploymentGroupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetDeploymentGroupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetDeploymentGroupCommand = deserializeAws_json1_1GetDeploymentGroupCommand; + var deserializeAws_json1_1GetDeploymentGroupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException": + throw await deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException": + throw await deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentGroupNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException": + throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetDeploymentInstanceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetDeploymentInstanceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetDeploymentInstanceOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetDeploymentInstanceCommand = deserializeAws_json1_1GetDeploymentInstanceCommand; + var deserializeAws_json1_1GetDeploymentInstanceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "InstanceDoesNotExistException": + case "com.amazonaws.codedeploy#InstanceDoesNotExistException": + throw await deserializeAws_json1_1InstanceDoesNotExistExceptionResponse(parsedOutput, context); + case "InstanceIdRequiredException": + case "com.amazonaws.codedeploy#InstanceIdRequiredException": + throw await deserializeAws_json1_1InstanceIdRequiredExceptionResponse(parsedOutput, context); + case "InvalidComputePlatformException": + case "com.amazonaws.codedeploy#InvalidComputePlatformException": + throw await deserializeAws_json1_1InvalidComputePlatformExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetDeploymentTargetCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetDeploymentTargetCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetDeploymentTargetOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetDeploymentTargetCommand = deserializeAws_json1_1GetDeploymentTargetCommand; + var deserializeAws_json1_1GetDeploymentTargetCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "DeploymentNotStartedException": + case "com.amazonaws.codedeploy#DeploymentNotStartedException": + throw await deserializeAws_json1_1DeploymentNotStartedExceptionResponse(parsedOutput, context); + case "DeploymentTargetDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentTargetDoesNotExistException": + throw await deserializeAws_json1_1DeploymentTargetDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentTargetIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentTargetIdRequiredException": + throw await deserializeAws_json1_1DeploymentTargetIdRequiredExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidDeploymentTargetIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentTargetIdException": + throw await deserializeAws_json1_1InvalidDeploymentTargetIdExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetOnPremisesInstanceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetOnPremisesInstanceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetOnPremisesInstanceOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetOnPremisesInstanceCommand = deserializeAws_json1_1GetOnPremisesInstanceCommand; + var deserializeAws_json1_1GetOnPremisesInstanceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InstanceNameRequiredException": + case "com.amazonaws.codedeploy#InstanceNameRequiredException": + throw await deserializeAws_json1_1InstanceNameRequiredExceptionResponse(parsedOutput, context); + case "InstanceNotRegisteredException": + case "com.amazonaws.codedeploy#InstanceNotRegisteredException": + throw await deserializeAws_json1_1InstanceNotRegisteredExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListApplicationRevisionsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListApplicationRevisionsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListApplicationRevisionsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListApplicationRevisionsCommand = deserializeAws_json1_1ListApplicationRevisionsCommand; + var deserializeAws_json1_1ListApplicationRevisionsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "BucketNameFilterRequiredException": + case "com.amazonaws.codedeploy#BucketNameFilterRequiredException": + throw await deserializeAws_json1_1BucketNameFilterRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidBucketNameFilterException": + case "com.amazonaws.codedeploy#InvalidBucketNameFilterException": + throw await deserializeAws_json1_1InvalidBucketNameFilterExceptionResponse(parsedOutput, context); + case "InvalidDeployedStateFilterException": + case "com.amazonaws.codedeploy#InvalidDeployedStateFilterException": + throw await deserializeAws_json1_1InvalidDeployedStateFilterExceptionResponse(parsedOutput, context); + case "InvalidKeyPrefixFilterException": + case "com.amazonaws.codedeploy#InvalidKeyPrefixFilterException": + throw await deserializeAws_json1_1InvalidKeyPrefixFilterExceptionResponse(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + case "InvalidSortByException": + case "com.amazonaws.codedeploy#InvalidSortByException": + throw await deserializeAws_json1_1InvalidSortByExceptionResponse(parsedOutput, context); + case "InvalidSortOrderException": + case "com.amazonaws.codedeploy#InvalidSortOrderException": + throw await deserializeAws_json1_1InvalidSortOrderExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListApplicationsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListApplicationsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListApplicationsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListApplicationsCommand = deserializeAws_json1_1ListApplicationsCommand; + var deserializeAws_json1_1ListApplicationsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListDeploymentConfigsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListDeploymentConfigsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListDeploymentConfigsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListDeploymentConfigsCommand = deserializeAws_json1_1ListDeploymentConfigsCommand; + var deserializeAws_json1_1ListDeploymentConfigsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListDeploymentGroupsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListDeploymentGroupsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListDeploymentGroupsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListDeploymentGroupsCommand = deserializeAws_json1_1ListDeploymentGroupsCommand; + var deserializeAws_json1_1ListDeploymentGroupsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListDeploymentInstancesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListDeploymentInstancesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListDeploymentInstancesOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListDeploymentInstancesCommand = deserializeAws_json1_1ListDeploymentInstancesCommand; + var deserializeAws_json1_1ListDeploymentInstancesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "DeploymentNotStartedException": + case "com.amazonaws.codedeploy#DeploymentNotStartedException": + throw await deserializeAws_json1_1DeploymentNotStartedExceptionResponse(parsedOutput, context); + case "InvalidComputePlatformException": + case "com.amazonaws.codedeploy#InvalidComputePlatformException": + throw await deserializeAws_json1_1InvalidComputePlatformExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidDeploymentInstanceTypeException": + case "com.amazonaws.codedeploy#InvalidDeploymentInstanceTypeException": + throw await deserializeAws_json1_1InvalidDeploymentInstanceTypeExceptionResponse(parsedOutput, context); + case "InvalidInstanceStatusException": + case "com.amazonaws.codedeploy#InvalidInstanceStatusException": + throw await deserializeAws_json1_1InvalidInstanceStatusExceptionResponse(parsedOutput, context); + case "InvalidInstanceTypeException": + case "com.amazonaws.codedeploy#InvalidInstanceTypeException": + throw await deserializeAws_json1_1InvalidInstanceTypeExceptionResponse(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + case "InvalidTargetFilterNameException": + case "com.amazonaws.codedeploy#InvalidTargetFilterNameException": + throw await deserializeAws_json1_1InvalidTargetFilterNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListDeploymentsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListDeploymentsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListDeploymentsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListDeploymentsCommand = deserializeAws_json1_1ListDeploymentsCommand; + var deserializeAws_json1_1ListDeploymentsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "DeploymentGroupDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException": + throw await deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException": + throw await deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentGroupNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException": + throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentStatusException": + case "com.amazonaws.codedeploy#InvalidDeploymentStatusException": + throw await deserializeAws_json1_1InvalidDeploymentStatusExceptionResponse(parsedOutput, context); + case "InvalidExternalIdException": + case "com.amazonaws.codedeploy#InvalidExternalIdException": + throw await deserializeAws_json1_1InvalidExternalIdExceptionResponse(parsedOutput, context); + case "InvalidInputException": + case "com.amazonaws.codedeploy#InvalidInputException": + throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + case "InvalidTimeRangeException": + case "com.amazonaws.codedeploy#InvalidTimeRangeException": + throw await deserializeAws_json1_1InvalidTimeRangeExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListDeploymentTargetsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListDeploymentTargetsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListDeploymentTargetsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListDeploymentTargetsCommand = deserializeAws_json1_1ListDeploymentTargetsCommand; + var deserializeAws_json1_1ListDeploymentTargetsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "DeploymentNotStartedException": + case "com.amazonaws.codedeploy#DeploymentNotStartedException": + throw await deserializeAws_json1_1DeploymentNotStartedExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidDeploymentInstanceTypeException": + case "com.amazonaws.codedeploy#InvalidDeploymentInstanceTypeException": + throw await deserializeAws_json1_1InvalidDeploymentInstanceTypeExceptionResponse(parsedOutput, context); + case "InvalidInstanceStatusException": + case "com.amazonaws.codedeploy#InvalidInstanceStatusException": + throw await deserializeAws_json1_1InvalidInstanceStatusExceptionResponse(parsedOutput, context); + case "InvalidInstanceTypeException": + case "com.amazonaws.codedeploy#InvalidInstanceTypeException": + throw await deserializeAws_json1_1InvalidInstanceTypeExceptionResponse(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListGitHubAccountTokenNamesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListGitHubAccountTokenNamesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListGitHubAccountTokenNamesOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListGitHubAccountTokenNamesCommand = deserializeAws_json1_1ListGitHubAccountTokenNamesCommand; + var deserializeAws_json1_1ListGitHubAccountTokenNamesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + case "OperationNotSupportedException": + case "com.amazonaws.codedeploy#OperationNotSupportedException": + throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context); + case "ResourceValidationException": + case "com.amazonaws.codedeploy#ResourceValidationException": + throw await deserializeAws_json1_1ResourceValidationExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListOnPremisesInstancesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListOnPremisesInstancesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListOnPremisesInstancesOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListOnPremisesInstancesCommand = deserializeAws_json1_1ListOnPremisesInstancesCommand; + var deserializeAws_json1_1ListOnPremisesInstancesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + case "InvalidRegistrationStatusException": + case "com.amazonaws.codedeploy#InvalidRegistrationStatusException": + throw await deserializeAws_json1_1InvalidRegistrationStatusExceptionResponse(parsedOutput, context); + case "InvalidTagFilterException": + case "com.amazonaws.codedeploy#InvalidTagFilterException": + throw await deserializeAws_json1_1InvalidTagFilterExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListTagsForResourceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListTagsForResourceOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_1ListTagsForResourceCommand; + var deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ArnNotSupportedException": + case "com.amazonaws.codedeploy#ArnNotSupportedException": + throw await deserializeAws_json1_1ArnNotSupportedExceptionResponse(parsedOutput, context); + case "InvalidArnException": + case "com.amazonaws.codedeploy#InvalidArnException": + throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context); + case "ResourceArnRequiredException": + case "com.amazonaws.codedeploy#ResourceArnRequiredException": + throw await deserializeAws_json1_1ResourceArnRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1PutLifecycleEventHookExecutionStatusOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand = deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand; + var deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidLifecycleEventHookExecutionIdException": + case "com.amazonaws.codedeploy#InvalidLifecycleEventHookExecutionIdException": + throw await deserializeAws_json1_1InvalidLifecycleEventHookExecutionIdExceptionResponse(parsedOutput, context); + case "InvalidLifecycleEventHookExecutionStatusException": + case "com.amazonaws.codedeploy#InvalidLifecycleEventHookExecutionStatusException": + throw await deserializeAws_json1_1InvalidLifecycleEventHookExecutionStatusExceptionResponse(parsedOutput, context); + case "LifecycleEventAlreadyCompletedException": + case "com.amazonaws.codedeploy#LifecycleEventAlreadyCompletedException": + throw await deserializeAws_json1_1LifecycleEventAlreadyCompletedExceptionResponse(parsedOutput, context); + case "UnsupportedActionForDeploymentTypeException": + case "com.amazonaws.codedeploy#UnsupportedActionForDeploymentTypeException": + throw await deserializeAws_json1_1UnsupportedActionForDeploymentTypeExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1RegisterApplicationRevisionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1RegisterApplicationRevisionCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1RegisterApplicationRevisionCommand = deserializeAws_json1_1RegisterApplicationRevisionCommand; + var deserializeAws_json1_1RegisterApplicationRevisionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "DescriptionTooLongException": + case "com.amazonaws.codedeploy#DescriptionTooLongException": + throw await deserializeAws_json1_1DescriptionTooLongExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidRevisionException": + case "com.amazonaws.codedeploy#InvalidRevisionException": + throw await deserializeAws_json1_1InvalidRevisionExceptionResponse(parsedOutput, context); + case "RevisionRequiredException": + case "com.amazonaws.codedeploy#RevisionRequiredException": + throw await deserializeAws_json1_1RevisionRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1RegisterOnPremisesInstanceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1RegisterOnPremisesInstanceCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1RegisterOnPremisesInstanceCommand = deserializeAws_json1_1RegisterOnPremisesInstanceCommand; + var deserializeAws_json1_1RegisterOnPremisesInstanceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "IamArnRequiredException": + case "com.amazonaws.codedeploy#IamArnRequiredException": + throw await deserializeAws_json1_1IamArnRequiredExceptionResponse(parsedOutput, context); + case "IamSessionArnAlreadyRegisteredException": + case "com.amazonaws.codedeploy#IamSessionArnAlreadyRegisteredException": + throw await deserializeAws_json1_1IamSessionArnAlreadyRegisteredExceptionResponse(parsedOutput, context); + case "IamUserArnAlreadyRegisteredException": + case "com.amazonaws.codedeploy#IamUserArnAlreadyRegisteredException": + throw await deserializeAws_json1_1IamUserArnAlreadyRegisteredExceptionResponse(parsedOutput, context); + case "IamUserArnRequiredException": + case "com.amazonaws.codedeploy#IamUserArnRequiredException": + throw await deserializeAws_json1_1IamUserArnRequiredExceptionResponse(parsedOutput, context); + case "InstanceNameAlreadyRegisteredException": + case "com.amazonaws.codedeploy#InstanceNameAlreadyRegisteredException": + throw await deserializeAws_json1_1InstanceNameAlreadyRegisteredExceptionResponse(parsedOutput, context); + case "InstanceNameRequiredException": + case "com.amazonaws.codedeploy#InstanceNameRequiredException": + throw await deserializeAws_json1_1InstanceNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidIamSessionArnException": + case "com.amazonaws.codedeploy#InvalidIamSessionArnException": + throw await deserializeAws_json1_1InvalidIamSessionArnExceptionResponse(parsedOutput, context); + case "InvalidIamUserArnException": + case "com.amazonaws.codedeploy#InvalidIamUserArnException": + throw await deserializeAws_json1_1InvalidIamUserArnExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + case "MultipleIamArnsProvidedException": + case "com.amazonaws.codedeploy#MultipleIamArnsProvidedException": + throw await deserializeAws_json1_1MultipleIamArnsProvidedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand = deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand; + var deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InstanceLimitExceededException": + case "com.amazonaws.codedeploy#InstanceLimitExceededException": + throw await deserializeAws_json1_1InstanceLimitExceededExceptionResponse(parsedOutput, context); + case "InstanceNameRequiredException": + case "com.amazonaws.codedeploy#InstanceNameRequiredException": + throw await deserializeAws_json1_1InstanceNameRequiredExceptionResponse(parsedOutput, context); + case "InstanceNotRegisteredException": + case "com.amazonaws.codedeploy#InstanceNotRegisteredException": + throw await deserializeAws_json1_1InstanceNotRegisteredExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + case "InvalidTagException": + case "com.amazonaws.codedeploy#InvalidTagException": + throw await deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context); + case "TagLimitExceededException": + case "com.amazonaws.codedeploy#TagLimitExceededException": + throw await deserializeAws_json1_1TagLimitExceededExceptionResponse(parsedOutput, context); + case "TagRequiredException": + case "com.amazonaws.codedeploy#TagRequiredException": + throw await deserializeAws_json1_1TagRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand = deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand; + var deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentAlreadyCompletedException": + case "com.amazonaws.codedeploy#DeploymentAlreadyCompletedException": + throw await deserializeAws_json1_1DeploymentAlreadyCompletedExceptionResponse(parsedOutput, context); + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "DeploymentNotStartedException": + case "com.amazonaws.codedeploy#DeploymentNotStartedException": + throw await deserializeAws_json1_1DeploymentNotStartedExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "UnsupportedActionForDeploymentTypeException": + case "com.amazonaws.codedeploy#UnsupportedActionForDeploymentTypeException": + throw await deserializeAws_json1_1UnsupportedActionForDeploymentTypeExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1StopDeploymentCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1StopDeploymentCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1StopDeploymentOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1StopDeploymentCommand = deserializeAws_json1_1StopDeploymentCommand; + var deserializeAws_json1_1StopDeploymentCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentAlreadyCompletedException": + case "com.amazonaws.codedeploy#DeploymentAlreadyCompletedException": + throw await deserializeAws_json1_1DeploymentAlreadyCompletedExceptionResponse(parsedOutput, context); + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException": + throw await deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "UnsupportedActionForDeploymentTypeException": + case "com.amazonaws.codedeploy#UnsupportedActionForDeploymentTypeException": + throw await deserializeAws_json1_1UnsupportedActionForDeploymentTypeExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1TagResourceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1TagResourceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1TagResourceOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagResourceCommand; + var deserializeAws_json1_1TagResourceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ArnNotSupportedException": + case "com.amazonaws.codedeploy#ArnNotSupportedException": + throw await deserializeAws_json1_1ArnNotSupportedExceptionResponse(parsedOutput, context); + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException": + throw await deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse(parsedOutput, context); + case "InvalidArnException": + case "com.amazonaws.codedeploy#InvalidArnException": + throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context); + case "InvalidTagsToAddException": + case "com.amazonaws.codedeploy#InvalidTagsToAddException": + throw await deserializeAws_json1_1InvalidTagsToAddExceptionResponse(parsedOutput, context); + case "ResourceArnRequiredException": + case "com.amazonaws.codedeploy#ResourceArnRequiredException": + throw await deserializeAws_json1_1ResourceArnRequiredExceptionResponse(parsedOutput, context); + case "TagRequiredException": + case "com.amazonaws.codedeploy#TagRequiredException": + throw await deserializeAws_json1_1TagRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1UntagResourceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UntagResourceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UntagResourceOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1UntagResourceCommand; + var deserializeAws_json1_1UntagResourceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ArnNotSupportedException": + case "com.amazonaws.codedeploy#ArnNotSupportedException": + throw await deserializeAws_json1_1ArnNotSupportedExceptionResponse(parsedOutput, context); + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException": + throw await deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse(parsedOutput, context); + case "InvalidArnException": + case "com.amazonaws.codedeploy#InvalidArnException": + throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context); + case "InvalidTagsToAddException": + case "com.amazonaws.codedeploy#InvalidTagsToAddException": + throw await deserializeAws_json1_1InvalidTagsToAddExceptionResponse(parsedOutput, context); + case "ResourceArnRequiredException": + case "com.amazonaws.codedeploy#ResourceArnRequiredException": + throw await deserializeAws_json1_1ResourceArnRequiredExceptionResponse(parsedOutput, context); + case "TagRequiredException": + case "com.amazonaws.codedeploy#TagRequiredException": + throw await deserializeAws_json1_1TagRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1UpdateApplicationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateApplicationCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1UpdateApplicationCommand = deserializeAws_json1_1UpdateApplicationCommand; + var deserializeAws_json1_1UpdateApplicationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationAlreadyExistsException": + case "com.amazonaws.codedeploy#ApplicationAlreadyExistsException": + throw await deserializeAws_json1_1ApplicationAlreadyExistsExceptionResponse(parsedOutput, context); + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1UpdateDeploymentGroupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateDeploymentGroupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdateDeploymentGroupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1UpdateDeploymentGroupCommand = deserializeAws_json1_1UpdateDeploymentGroupCommand; + var deserializeAws_json1_1UpdateDeploymentGroupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AlarmsLimitExceededException": + case "com.amazonaws.codedeploy#AlarmsLimitExceededException": + throw await deserializeAws_json1_1AlarmsLimitExceededExceptionResponse(parsedOutput, context); + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupAlreadyExistsException": + case "com.amazonaws.codedeploy#DeploymentGroupAlreadyExistsException": + throw await deserializeAws_json1_1DeploymentGroupAlreadyExistsExceptionResponse(parsedOutput, context); + case "DeploymentGroupDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException": + throw await deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException": + throw await deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse(parsedOutput, context); + case "ECSServiceMappingLimitExceededException": + case "com.amazonaws.codedeploy#ECSServiceMappingLimitExceededException": + throw await deserializeAws_json1_1ECSServiceMappingLimitExceededExceptionResponse(parsedOutput, context); + case "InvalidAlarmConfigException": + case "com.amazonaws.codedeploy#InvalidAlarmConfigException": + throw await deserializeAws_json1_1InvalidAlarmConfigExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidAutoRollbackConfigException": + case "com.amazonaws.codedeploy#InvalidAutoRollbackConfigException": + throw await deserializeAws_json1_1InvalidAutoRollbackConfigExceptionResponse(parsedOutput, context); + case "InvalidAutoScalingGroupException": + case "com.amazonaws.codedeploy#InvalidAutoScalingGroupException": + throw await deserializeAws_json1_1InvalidAutoScalingGroupExceptionResponse(parsedOutput, context); + case "InvalidBlueGreenDeploymentConfigurationException": + case "com.amazonaws.codedeploy#InvalidBlueGreenDeploymentConfigurationException": + throw await deserializeAws_json1_1InvalidBlueGreenDeploymentConfigurationExceptionResponse(parsedOutput, context); + case "InvalidDeploymentConfigNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException": + throw await deserializeAws_json1_1InvalidDeploymentConfigNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentGroupNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException": + throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentStyleException": + case "com.amazonaws.codedeploy#InvalidDeploymentStyleException": + throw await deserializeAws_json1_1InvalidDeploymentStyleExceptionResponse(parsedOutput, context); + case "InvalidEC2TagCombinationException": + case "com.amazonaws.codedeploy#InvalidEC2TagCombinationException": + throw await deserializeAws_json1_1InvalidEC2TagCombinationExceptionResponse(parsedOutput, context); + case "InvalidEC2TagException": + case "com.amazonaws.codedeploy#InvalidEC2TagException": + throw await deserializeAws_json1_1InvalidEC2TagExceptionResponse(parsedOutput, context); + case "InvalidECSServiceException": + case "com.amazonaws.codedeploy#InvalidECSServiceException": + throw await deserializeAws_json1_1InvalidECSServiceExceptionResponse(parsedOutput, context); + case "InvalidInputException": + case "com.amazonaws.codedeploy#InvalidInputException": + throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context); + case "InvalidLoadBalancerInfoException": + case "com.amazonaws.codedeploy#InvalidLoadBalancerInfoException": + throw await deserializeAws_json1_1InvalidLoadBalancerInfoExceptionResponse(parsedOutput, context); + case "InvalidOnPremisesTagCombinationException": + case "com.amazonaws.codedeploy#InvalidOnPremisesTagCombinationException": + throw await deserializeAws_json1_1InvalidOnPremisesTagCombinationExceptionResponse(parsedOutput, context); + case "InvalidRoleException": + case "com.amazonaws.codedeploy#InvalidRoleException": + throw await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context); + case "InvalidTagException": + case "com.amazonaws.codedeploy#InvalidTagException": + throw await deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context); + case "InvalidTargetGroupPairException": + case "com.amazonaws.codedeploy#InvalidTargetGroupPairException": + throw await deserializeAws_json1_1InvalidTargetGroupPairExceptionResponse(parsedOutput, context); + case "InvalidTrafficRoutingConfigurationException": + case "com.amazonaws.codedeploy#InvalidTrafficRoutingConfigurationException": + throw await deserializeAws_json1_1InvalidTrafficRoutingConfigurationExceptionResponse(parsedOutput, context); + case "InvalidTriggerConfigException": + case "com.amazonaws.codedeploy#InvalidTriggerConfigException": + throw await deserializeAws_json1_1InvalidTriggerConfigExceptionResponse(parsedOutput, context); + case "LifecycleHookLimitExceededException": + case "com.amazonaws.codedeploy#LifecycleHookLimitExceededException": + throw await deserializeAws_json1_1LifecycleHookLimitExceededExceptionResponse(parsedOutput, context); + case "TagSetListLimitExceededException": + case "com.amazonaws.codedeploy#TagSetListLimitExceededException": + throw await deserializeAws_json1_1TagSetListLimitExceededExceptionResponse(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.codedeploy#ThrottlingException": + throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context); + case "TriggerTargetsLimitExceededException": + case "com.amazonaws.codedeploy#TriggerTargetsLimitExceededException": + throw await deserializeAws_json1_1TriggerTargetsLimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1AlarmsLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1AlarmsLimitExceededException(body, context); + const exception = new models_0_1.AlarmsLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ApplicationAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ApplicationAlreadyExistsException(body, context); + const exception = new models_0_1.ApplicationAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ApplicationDoesNotExistException(body, context); + const exception = new models_0_1.ApplicationDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ApplicationLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ApplicationLimitExceededException(body, context); + const exception = new models_0_1.ApplicationLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ApplicationNameRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ApplicationNameRequiredException(body, context); + const exception = new models_0_1.ApplicationNameRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ArnNotSupportedExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ArnNotSupportedException(body, context); + const exception = new models_0_1.ArnNotSupportedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1BatchLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1BatchLimitExceededException(body, context); + const exception = new models_0_1.BatchLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1BucketNameFilterRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1BucketNameFilterRequiredException(body, context); + const exception = new models_0_1.BucketNameFilterRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentAlreadyCompletedExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentAlreadyCompletedException(body, context); + const exception = new models_0_1.DeploymentAlreadyCompletedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentConfigAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentConfigAlreadyExistsException(body, context); + const exception = new models_0_1.DeploymentConfigAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentConfigDoesNotExistException(body, context); + const exception = new models_0_1.DeploymentConfigDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentConfigInUseExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentConfigInUseException(body, context); + const exception = new models_0_1.DeploymentConfigInUseException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentConfigLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentConfigLimitExceededException(body, context); + const exception = new models_0_1.DeploymentConfigLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentConfigNameRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentConfigNameRequiredException(body, context); + const exception = new models_0_1.DeploymentConfigNameRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentDoesNotExistException(body, context); + const exception = new models_0_1.DeploymentDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentGroupAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentGroupAlreadyExistsException(body, context); + const exception = new models_0_1.DeploymentGroupAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentGroupDoesNotExistException(body, context); + const exception = new models_0_1.DeploymentGroupDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentGroupLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentGroupLimitExceededException(body, context); + const exception = new models_0_1.DeploymentGroupLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentGroupNameRequiredException(body, context); + const exception = new models_0_1.DeploymentGroupNameRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentIdRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentIdRequiredException(body, context); + const exception = new models_0_1.DeploymentIdRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentIsNotInReadyStateExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentIsNotInReadyStateException(body, context); + const exception = new models_0_1.DeploymentIsNotInReadyStateException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentLimitExceededException(body, context); + const exception = new models_0_1.DeploymentLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentNotStartedExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentNotStartedException(body, context); + const exception = new models_0_1.DeploymentNotStartedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentTargetDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentTargetDoesNotExistException(body, context); + const exception = new models_0_1.DeploymentTargetDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentTargetIdRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentTargetIdRequiredException(body, context); + const exception = new models_0_1.DeploymentTargetIdRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentTargetListSizeExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentTargetListSizeExceededException(body, context); + const exception = new models_0_1.DeploymentTargetListSizeExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DescriptionTooLongExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DescriptionTooLongException(body, context); + const exception = new models_0_1.DescriptionTooLongException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ECSServiceMappingLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ECSServiceMappingLimitExceededException(body, context); + const exception = new models_0_1.ECSServiceMappingLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1GitHubAccountTokenDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1GitHubAccountTokenDoesNotExistException(body, context); + const exception = new models_0_1.GitHubAccountTokenDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1GitHubAccountTokenNameRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1GitHubAccountTokenNameRequiredException(body, context); + const exception = new models_0_1.GitHubAccountTokenNameRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1IamArnRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1IamArnRequiredException(body, context); + const exception = new models_0_1.IamArnRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1IamSessionArnAlreadyRegisteredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1IamSessionArnAlreadyRegisteredException(body, context); + const exception = new models_0_1.IamSessionArnAlreadyRegisteredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1IamUserArnAlreadyRegisteredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1IamUserArnAlreadyRegisteredException(body, context); + const exception = new models_0_1.IamUserArnAlreadyRegisteredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1IamUserArnRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1IamUserArnRequiredException(body, context); + const exception = new models_0_1.IamUserArnRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InstanceDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InstanceDoesNotExistException(body, context); + const exception = new models_0_1.InstanceDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InstanceIdRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InstanceIdRequiredException(body, context); + const exception = new models_0_1.InstanceIdRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InstanceLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InstanceLimitExceededException(body, context); + const exception = new models_0_1.InstanceLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InstanceNameAlreadyRegisteredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InstanceNameAlreadyRegisteredException(body, context); + const exception = new models_0_1.InstanceNameAlreadyRegisteredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InstanceNameRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InstanceNameRequiredException(body, context); + const exception = new models_0_1.InstanceNameRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InstanceNotRegisteredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InstanceNotRegisteredException(body, context); + const exception = new models_0_1.InstanceNotRegisteredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidAlarmConfigExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidAlarmConfigException(body, context); + const exception = new models_0_1.InvalidAlarmConfigException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidApplicationNameExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidApplicationNameException(body, context); + const exception = new models_0_1.InvalidApplicationNameException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidArnExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidArnException(body, context); + const exception = new models_0_1.InvalidArnException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidAutoRollbackConfigExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidAutoRollbackConfigException(body, context); + const exception = new models_0_1.InvalidAutoRollbackConfigException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidAutoScalingGroupExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidAutoScalingGroupException(body, context); + const exception = new models_0_1.InvalidAutoScalingGroupException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidBlueGreenDeploymentConfigurationExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidBlueGreenDeploymentConfigurationException(body, context); + const exception = new models_0_1.InvalidBlueGreenDeploymentConfigurationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidBucketNameFilterExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidBucketNameFilterException(body, context); + const exception = new models_0_1.InvalidBucketNameFilterException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidComputePlatformExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidComputePlatformException(body, context); + const exception = new models_0_1.InvalidComputePlatformException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeployedStateFilterExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeployedStateFilterException(body, context); + const exception = new models_0_1.InvalidDeployedStateFilterException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentConfigNameExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentConfigNameException(body, context); + const exception = new models_0_1.InvalidDeploymentConfigNameException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentGroupNameException(body, context); + const exception = new models_0_1.InvalidDeploymentGroupNameException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentIdExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentIdException(body, context); + const exception = new models_0_1.InvalidDeploymentIdException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentInstanceTypeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentInstanceTypeException(body, context); + const exception = new models_0_1.InvalidDeploymentInstanceTypeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentStatusExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentStatusException(body, context); + const exception = new models_0_1.InvalidDeploymentStatusException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentStyleExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentStyleException(body, context); + const exception = new models_0_1.InvalidDeploymentStyleException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentTargetIdExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentTargetIdException(body, context); + const exception = new models_0_1.InvalidDeploymentTargetIdException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentWaitTypeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentWaitTypeException(body, context); + const exception = new models_0_1.InvalidDeploymentWaitTypeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidEC2TagCombinationExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidEC2TagCombinationException(body, context); + const exception = new models_0_1.InvalidEC2TagCombinationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidEC2TagExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidEC2TagException(body, context); + const exception = new models_0_1.InvalidEC2TagException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidECSServiceExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidECSServiceException(body, context); + const exception = new models_0_1.InvalidECSServiceException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidExternalIdExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidExternalIdException(body, context); + const exception = new models_0_1.InvalidExternalIdException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidFileExistsBehaviorExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidFileExistsBehaviorException(body, context); + const exception = new models_0_1.InvalidFileExistsBehaviorException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidGitHubAccountTokenExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidGitHubAccountTokenException(body, context); + const exception = new models_0_1.InvalidGitHubAccountTokenException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidGitHubAccountTokenNameExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidGitHubAccountTokenNameException(body, context); + const exception = new models_0_1.InvalidGitHubAccountTokenNameException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidIamSessionArnExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidIamSessionArnException(body, context); + const exception = new models_0_1.InvalidIamSessionArnException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidIamUserArnExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidIamUserArnException(body, context); + const exception = new models_0_1.InvalidIamUserArnException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidIgnoreApplicationStopFailuresValueExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidIgnoreApplicationStopFailuresValueException(body, context); + const exception = new models_0_1.InvalidIgnoreApplicationStopFailuresValueException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidInputExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidInputException(body, context); + const exception = new models_0_1.InvalidInputException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidInstanceNameExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidInstanceNameException(body, context); + const exception = new models_0_1.InvalidInstanceNameException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidInstanceStatusExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidInstanceStatusException(body, context); + const exception = new models_0_1.InvalidInstanceStatusException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidInstanceTypeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidInstanceTypeException(body, context); + const exception = new models_0_1.InvalidInstanceTypeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidKeyPrefixFilterExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidKeyPrefixFilterException(body, context); + const exception = new models_0_1.InvalidKeyPrefixFilterException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidLifecycleEventHookExecutionIdExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidLifecycleEventHookExecutionIdException(body, context); + const exception = new models_0_1.InvalidLifecycleEventHookExecutionIdException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidLifecycleEventHookExecutionStatusExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidLifecycleEventHookExecutionStatusException(body, context); + const exception = new models_0_1.InvalidLifecycleEventHookExecutionStatusException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidLoadBalancerInfoExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidLoadBalancerInfoException(body, context); + const exception = new models_0_1.InvalidLoadBalancerInfoException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidMinimumHealthyHostValueExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidMinimumHealthyHostValueException(body, context); + const exception = new models_0_1.InvalidMinimumHealthyHostValueException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context); + const exception = new models_0_1.InvalidNextTokenException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidOnPremisesTagCombinationExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidOnPremisesTagCombinationException(body, context); + const exception = new models_0_1.InvalidOnPremisesTagCombinationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidOperationExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidOperationException(body, context); + const exception = new models_0_1.InvalidOperationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidRegistrationStatusExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidRegistrationStatusException(body, context); + const exception = new models_0_1.InvalidRegistrationStatusException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidRevisionExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidRevisionException(body, context); + const exception = new models_0_1.InvalidRevisionException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidRoleExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidRoleException(body, context); + const exception = new models_0_1.InvalidRoleException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidSortByExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidSortByException(body, context); + const exception = new models_0_1.InvalidSortByException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidSortOrderExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidSortOrderException(body, context); + const exception = new models_0_1.InvalidSortOrderException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTagExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTagException(body, context); + const exception = new models_0_1.InvalidTagException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTagFilterExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTagFilterException(body, context); + const exception = new models_0_1.InvalidTagFilterException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTagsToAddExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTagsToAddException(body, context); + const exception = new models_0_1.InvalidTagsToAddException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTargetFilterNameExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTargetFilterNameException(body, context); + const exception = new models_0_1.InvalidTargetFilterNameException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTargetGroupPairExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTargetGroupPairException(body, context); + const exception = new models_0_1.InvalidTargetGroupPairException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTargetInstancesExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTargetInstancesException(body, context); + const exception = new models_0_1.InvalidTargetInstancesException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTimeRangeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTimeRangeException(body, context); + const exception = new models_0_1.InvalidTimeRangeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTrafficRoutingConfigurationExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTrafficRoutingConfigurationException(body, context); + const exception = new models_0_1.InvalidTrafficRoutingConfigurationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTriggerConfigExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTriggerConfigException(body, context); + const exception = new models_0_1.InvalidTriggerConfigException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidUpdateOutdatedInstancesOnlyValueExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidUpdateOutdatedInstancesOnlyValueException(body, context); + const exception = new models_0_1.InvalidUpdateOutdatedInstancesOnlyValueException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1LifecycleEventAlreadyCompletedExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1LifecycleEventAlreadyCompletedException(body, context); + const exception = new models_0_1.LifecycleEventAlreadyCompletedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1LifecycleHookLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1LifecycleHookLimitExceededException(body, context); + const exception = new models_0_1.LifecycleHookLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1MultipleIamArnsProvidedExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1MultipleIamArnsProvidedException(body, context); + const exception = new models_0_1.MultipleIamArnsProvidedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1OperationNotSupportedExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1OperationNotSupportedException(body, context); + const exception = new models_0_1.OperationNotSupportedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ResourceArnRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ResourceArnRequiredException(body, context); + const exception = new models_0_1.ResourceArnRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ResourceValidationExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ResourceValidationException(body, context); + const exception = new models_0_1.ResourceValidationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1RevisionDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1RevisionDoesNotExistException(body, context); + const exception = new models_0_1.RevisionDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1RevisionRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1RevisionRequiredException(body, context); + const exception = new models_0_1.RevisionRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1RoleRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1RoleRequiredException(body, context); + const exception = new models_0_1.RoleRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1TagLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1TagLimitExceededException(body, context); + const exception = new models_0_1.TagLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1TagRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1TagRequiredException(body, context); + const exception = new models_0_1.TagRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1TagSetListLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1TagSetListLimitExceededException(body, context); + const exception = new models_0_1.TagSetListLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ThrottlingException(body, context); + const exception = new models_0_1.ThrottlingException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1TriggerTargetsLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1TriggerTargetsLimitExceededException(body, context); + const exception = new models_0_1.TriggerTargetsLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1UnsupportedActionForDeploymentTypeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1UnsupportedActionForDeploymentTypeException(body, context); + const exception = new models_0_1.UnsupportedActionForDeploymentTypeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var serializeAws_json1_1AddTagsToOnPremisesInstancesInput = (input, context) => { + return { + ...input.instanceNames != null && { + instanceNames: serializeAws_json1_1InstanceNameList(input.instanceNames, context) + }, + ...input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) } + }; + }; + var serializeAws_json1_1Alarm = (input, context) => { + return { + ...input.name != null && { name: input.name } + }; + }; + var serializeAws_json1_1AlarmConfiguration = (input, context) => { + return { + ...input.alarms != null && { alarms: serializeAws_json1_1AlarmList(input.alarms, context) }, + ...input.enabled != null && { enabled: input.enabled }, + ...input.ignorePollAlarmFailure != null && { ignorePollAlarmFailure: input.ignorePollAlarmFailure } + }; + }; + var serializeAws_json1_1AlarmList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1Alarm(entry, context); + }); + }; + var serializeAws_json1_1ApplicationsList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1AppSpecContent = (input, context) => { + return { + ...input.content != null && { content: input.content }, + ...input.sha256 != null && { sha256: input.sha256 } + }; + }; + var serializeAws_json1_1AutoRollbackConfiguration = (input, context) => { + return { + ...input.enabled != null && { enabled: input.enabled }, + ...input.events != null && { events: serializeAws_json1_1AutoRollbackEventsList(input.events, context) } + }; + }; + var serializeAws_json1_1AutoRollbackEventsList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1AutoScalingGroupNameList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1BatchGetApplicationRevisionsInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.revisions != null && { revisions: serializeAws_json1_1RevisionLocationList(input.revisions, context) } + }; + }; + var serializeAws_json1_1BatchGetApplicationsInput = (input, context) => { + return { + ...input.applicationNames != null && { + applicationNames: serializeAws_json1_1ApplicationsList(input.applicationNames, context) + } + }; + }; + var serializeAws_json1_1BatchGetDeploymentGroupsInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.deploymentGroupNames != null && { + deploymentGroupNames: serializeAws_json1_1DeploymentGroupsList(input.deploymentGroupNames, context) + } + }; + }; + var serializeAws_json1_1BatchGetDeploymentInstancesInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.instanceIds != null && { instanceIds: serializeAws_json1_1InstancesList(input.instanceIds, context) } + }; + }; + var serializeAws_json1_1BatchGetDeploymentsInput = (input, context) => { + return { + ...input.deploymentIds != null && { + deploymentIds: serializeAws_json1_1DeploymentsList(input.deploymentIds, context) + } + }; + }; + var serializeAws_json1_1BatchGetDeploymentTargetsInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.targetIds != null && { targetIds: serializeAws_json1_1TargetIdList(input.targetIds, context) } + }; + }; + var serializeAws_json1_1BatchGetOnPremisesInstancesInput = (input, context) => { + return { + ...input.instanceNames != null && { + instanceNames: serializeAws_json1_1InstanceNameList(input.instanceNames, context) + } + }; + }; + var serializeAws_json1_1BlueGreenDeploymentConfiguration = (input, context) => { + return { + ...input.deploymentReadyOption != null && { + deploymentReadyOption: serializeAws_json1_1DeploymentReadyOption(input.deploymentReadyOption, context) + }, + ...input.greenFleetProvisioningOption != null && { + greenFleetProvisioningOption: serializeAws_json1_1GreenFleetProvisioningOption(input.greenFleetProvisioningOption, context) + }, + ...input.terminateBlueInstancesOnDeploymentSuccess != null && { + terminateBlueInstancesOnDeploymentSuccess: serializeAws_json1_1BlueInstanceTerminationOption(input.terminateBlueInstancesOnDeploymentSuccess, context) + } + }; + }; + var serializeAws_json1_1BlueInstanceTerminationOption = (input, context) => { + return { + ...input.action != null && { action: input.action }, + ...input.terminationWaitTimeInMinutes != null && { + terminationWaitTimeInMinutes: input.terminationWaitTimeInMinutes + } + }; + }; + var serializeAws_json1_1ContinueDeploymentInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.deploymentWaitType != null && { deploymentWaitType: input.deploymentWaitType } + }; + }; + var serializeAws_json1_1CreateApplicationInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.computePlatform != null && { computePlatform: input.computePlatform }, + ...input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) } + }; + }; + var serializeAws_json1_1CreateDeploymentConfigInput = (input, context) => { + return { + ...input.computePlatform != null && { computePlatform: input.computePlatform }, + ...input.deploymentConfigName != null && { deploymentConfigName: input.deploymentConfigName }, + ...input.minimumHealthyHosts != null && { + minimumHealthyHosts: serializeAws_json1_1MinimumHealthyHosts(input.minimumHealthyHosts, context) + }, + ...input.trafficRoutingConfig != null && { + trafficRoutingConfig: serializeAws_json1_1TrafficRoutingConfig(input.trafficRoutingConfig, context) + } + }; + }; + var serializeAws_json1_1CreateDeploymentGroupInput = (input, context) => { + return { + ...input.alarmConfiguration != null && { + alarmConfiguration: serializeAws_json1_1AlarmConfiguration(input.alarmConfiguration, context) + }, + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.autoRollbackConfiguration != null && { + autoRollbackConfiguration: serializeAws_json1_1AutoRollbackConfiguration(input.autoRollbackConfiguration, context) + }, + ...input.autoScalingGroups != null && { + autoScalingGroups: serializeAws_json1_1AutoScalingGroupNameList(input.autoScalingGroups, context) + }, + ...input.blueGreenDeploymentConfiguration != null && { + blueGreenDeploymentConfiguration: serializeAws_json1_1BlueGreenDeploymentConfiguration(input.blueGreenDeploymentConfiguration, context) + }, + ...input.deploymentConfigName != null && { deploymentConfigName: input.deploymentConfigName }, + ...input.deploymentGroupName != null && { deploymentGroupName: input.deploymentGroupName }, + ...input.deploymentStyle != null && { + deploymentStyle: serializeAws_json1_1DeploymentStyle(input.deploymentStyle, context) + }, + ...input.ec2TagFilters != null && { + ec2TagFilters: serializeAws_json1_1EC2TagFilterList(input.ec2TagFilters, context) + }, + ...input.ec2TagSet != null && { ec2TagSet: serializeAws_json1_1EC2TagSet(input.ec2TagSet, context) }, + ...input.ecsServices != null && { ecsServices: serializeAws_json1_1ECSServiceList(input.ecsServices, context) }, + ...input.loadBalancerInfo != null && { + loadBalancerInfo: serializeAws_json1_1LoadBalancerInfo(input.loadBalancerInfo, context) + }, + ...input.onPremisesInstanceTagFilters != null && { + onPremisesInstanceTagFilters: serializeAws_json1_1TagFilterList(input.onPremisesInstanceTagFilters, context) + }, + ...input.onPremisesTagSet != null && { + onPremisesTagSet: serializeAws_json1_1OnPremisesTagSet(input.onPremisesTagSet, context) + }, + ...input.outdatedInstancesStrategy != null && { outdatedInstancesStrategy: input.outdatedInstancesStrategy }, + ...input.serviceRoleArn != null && { serviceRoleArn: input.serviceRoleArn }, + ...input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }, + ...input.triggerConfigurations != null && { + triggerConfigurations: serializeAws_json1_1TriggerConfigList(input.triggerConfigurations, context) + } + }; + }; + var serializeAws_json1_1CreateDeploymentInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.autoRollbackConfiguration != null && { + autoRollbackConfiguration: serializeAws_json1_1AutoRollbackConfiguration(input.autoRollbackConfiguration, context) + }, + ...input.deploymentConfigName != null && { deploymentConfigName: input.deploymentConfigName }, + ...input.deploymentGroupName != null && { deploymentGroupName: input.deploymentGroupName }, + ...input.description != null && { description: input.description }, + ...input.fileExistsBehavior != null && { fileExistsBehavior: input.fileExistsBehavior }, + ...input.ignoreApplicationStopFailures != null && { + ignoreApplicationStopFailures: input.ignoreApplicationStopFailures + }, + ...input.overrideAlarmConfiguration != null && { + overrideAlarmConfiguration: serializeAws_json1_1AlarmConfiguration(input.overrideAlarmConfiguration, context) + }, + ...input.revision != null && { revision: serializeAws_json1_1RevisionLocation(input.revision, context) }, + ...input.targetInstances != null && { + targetInstances: serializeAws_json1_1TargetInstances(input.targetInstances, context) + }, + ...input.updateOutdatedInstancesOnly != null && { + updateOutdatedInstancesOnly: input.updateOutdatedInstancesOnly + } + }; + }; + var serializeAws_json1_1DeleteApplicationInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName } + }; + }; + var serializeAws_json1_1DeleteDeploymentConfigInput = (input, context) => { + return { + ...input.deploymentConfigName != null && { deploymentConfigName: input.deploymentConfigName } + }; + }; + var serializeAws_json1_1DeleteDeploymentGroupInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.deploymentGroupName != null && { deploymentGroupName: input.deploymentGroupName } + }; + }; + var serializeAws_json1_1DeleteGitHubAccountTokenInput = (input, context) => { + return { + ...input.tokenName != null && { tokenName: input.tokenName } + }; + }; + var serializeAws_json1_1DeleteResourcesByExternalIdInput = (input, context) => { + return { + ...input.externalId != null && { externalId: input.externalId } + }; + }; + var serializeAws_json1_1DeploymentGroupsList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1DeploymentReadyOption = (input, context) => { + return { + ...input.actionOnTimeout != null && { actionOnTimeout: input.actionOnTimeout }, + ...input.waitTimeInMinutes != null && { waitTimeInMinutes: input.waitTimeInMinutes } + }; + }; + var serializeAws_json1_1DeploymentsList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1DeploymentStatusList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1DeploymentStyle = (input, context) => { + return { + ...input.deploymentOption != null && { deploymentOption: input.deploymentOption }, + ...input.deploymentType != null && { deploymentType: input.deploymentType } + }; + }; + var serializeAws_json1_1DeregisterOnPremisesInstanceInput = (input, context) => { + return { + ...input.instanceName != null && { instanceName: input.instanceName } + }; + }; + var serializeAws_json1_1EC2TagFilter = (input, context) => { + return { + ...input.Key != null && { Key: input.Key }, + ...input.Type != null && { Type: input.Type }, + ...input.Value != null && { Value: input.Value } + }; + }; + var serializeAws_json1_1EC2TagFilterList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1EC2TagFilter(entry, context); + }); + }; + var serializeAws_json1_1EC2TagSet = (input, context) => { + return { + ...input.ec2TagSetList != null && { + ec2TagSetList: serializeAws_json1_1EC2TagSetList(input.ec2TagSetList, context) + } + }; + }; + var serializeAws_json1_1EC2TagSetList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1EC2TagFilterList(entry, context); + }); + }; + var serializeAws_json1_1ECSService = (input, context) => { + return { + ...input.clusterName != null && { clusterName: input.clusterName }, + ...input.serviceName != null && { serviceName: input.serviceName } + }; + }; + var serializeAws_json1_1ECSServiceList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1ECSService(entry, context); + }); + }; + var serializeAws_json1_1ELBInfo = (input, context) => { + return { + ...input.name != null && { name: input.name } + }; + }; + var serializeAws_json1_1ELBInfoList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1ELBInfo(entry, context); + }); + }; + var serializeAws_json1_1FilterValueList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1GetApplicationInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName } + }; + }; + var serializeAws_json1_1GetApplicationRevisionInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.revision != null && { revision: serializeAws_json1_1RevisionLocation(input.revision, context) } + }; + }; + var serializeAws_json1_1GetDeploymentConfigInput = (input, context) => { + return { + ...input.deploymentConfigName != null && { deploymentConfigName: input.deploymentConfigName } + }; + }; + var serializeAws_json1_1GetDeploymentGroupInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.deploymentGroupName != null && { deploymentGroupName: input.deploymentGroupName } + }; + }; + var serializeAws_json1_1GetDeploymentInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId } + }; + }; + var serializeAws_json1_1GetDeploymentInstanceInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.instanceId != null && { instanceId: input.instanceId } + }; + }; + var serializeAws_json1_1GetDeploymentTargetInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.targetId != null && { targetId: input.targetId } + }; + }; + var serializeAws_json1_1GetOnPremisesInstanceInput = (input, context) => { + return { + ...input.instanceName != null && { instanceName: input.instanceName } + }; + }; + var serializeAws_json1_1GitHubLocation = (input, context) => { + return { + ...input.commitId != null && { commitId: input.commitId }, + ...input.repository != null && { repository: input.repository } + }; + }; + var serializeAws_json1_1GreenFleetProvisioningOption = (input, context) => { + return { + ...input.action != null && { action: input.action } + }; + }; + var serializeAws_json1_1InstanceNameList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1InstancesList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1InstanceStatusList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1InstanceTypeList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1ListApplicationRevisionsInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.deployed != null && { deployed: input.deployed }, + ...input.nextToken != null && { nextToken: input.nextToken }, + ...input.s3Bucket != null && { s3Bucket: input.s3Bucket }, + ...input.s3KeyPrefix != null && { s3KeyPrefix: input.s3KeyPrefix }, + ...input.sortBy != null && { sortBy: input.sortBy }, + ...input.sortOrder != null && { sortOrder: input.sortOrder } + }; + }; + var serializeAws_json1_1ListApplicationsInput = (input, context) => { + return { + ...input.nextToken != null && { nextToken: input.nextToken } + }; + }; + var serializeAws_json1_1ListDeploymentConfigsInput = (input, context) => { + return { + ...input.nextToken != null && { nextToken: input.nextToken } + }; + }; + var serializeAws_json1_1ListDeploymentGroupsInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.nextToken != null && { nextToken: input.nextToken } + }; + }; + var serializeAws_json1_1ListDeploymentInstancesInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.instanceStatusFilter != null && { + instanceStatusFilter: serializeAws_json1_1InstanceStatusList(input.instanceStatusFilter, context) + }, + ...input.instanceTypeFilter != null && { + instanceTypeFilter: serializeAws_json1_1InstanceTypeList(input.instanceTypeFilter, context) + }, + ...input.nextToken != null && { nextToken: input.nextToken } + }; + }; + var serializeAws_json1_1ListDeploymentsInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.createTimeRange != null && { + createTimeRange: serializeAws_json1_1TimeRange(input.createTimeRange, context) + }, + ...input.deploymentGroupName != null && { deploymentGroupName: input.deploymentGroupName }, + ...input.externalId != null && { externalId: input.externalId }, + ...input.includeOnlyStatuses != null && { + includeOnlyStatuses: serializeAws_json1_1DeploymentStatusList(input.includeOnlyStatuses, context) + }, + ...input.nextToken != null && { nextToken: input.nextToken } + }; + }; + var serializeAws_json1_1ListDeploymentTargetsInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.nextToken != null && { nextToken: input.nextToken }, + ...input.targetFilters != null && { + targetFilters: serializeAws_json1_1TargetFilters(input.targetFilters, context) + } + }; + }; + var serializeAws_json1_1ListenerArnList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1ListGitHubAccountTokenNamesInput = (input, context) => { + return { + ...input.nextToken != null && { nextToken: input.nextToken } + }; + }; + var serializeAws_json1_1ListOnPremisesInstancesInput = (input, context) => { + return { + ...input.nextToken != null && { nextToken: input.nextToken }, + ...input.registrationStatus != null && { registrationStatus: input.registrationStatus }, + ...input.tagFilters != null && { tagFilters: serializeAws_json1_1TagFilterList(input.tagFilters, context) } + }; + }; + var serializeAws_json1_1ListTagsForResourceInput = (input, context) => { + return { + ...input.NextToken != null && { NextToken: input.NextToken }, + ...input.ResourceArn != null && { ResourceArn: input.ResourceArn } + }; + }; + var serializeAws_json1_1LoadBalancerInfo = (input, context) => { + return { + ...input.elbInfoList != null && { elbInfoList: serializeAws_json1_1ELBInfoList(input.elbInfoList, context) }, + ...input.targetGroupInfoList != null && { + targetGroupInfoList: serializeAws_json1_1TargetGroupInfoList(input.targetGroupInfoList, context) + }, + ...input.targetGroupPairInfoList != null && { + targetGroupPairInfoList: serializeAws_json1_1TargetGroupPairInfoList(input.targetGroupPairInfoList, context) + } + }; + }; + var serializeAws_json1_1MinimumHealthyHosts = (input, context) => { + return { + ...input.type != null && { type: input.type }, + ...input.value != null && { value: input.value } + }; + }; + var serializeAws_json1_1OnPremisesTagSet = (input, context) => { + return { + ...input.onPremisesTagSetList != null && { + onPremisesTagSetList: serializeAws_json1_1OnPremisesTagSetList(input.onPremisesTagSetList, context) + } + }; + }; + var serializeAws_json1_1OnPremisesTagSetList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1TagFilterList(entry, context); + }); + }; + var serializeAws_json1_1PutLifecycleEventHookExecutionStatusInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.lifecycleEventHookExecutionId != null && { + lifecycleEventHookExecutionId: input.lifecycleEventHookExecutionId + }, + ...input.status != null && { status: input.status } + }; + }; + var serializeAws_json1_1RawString = (input, context) => { + return { + ...input.content != null && { content: input.content }, + ...input.sha256 != null && { sha256: input.sha256 } + }; + }; + var serializeAws_json1_1RegisterApplicationRevisionInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.description != null && { description: input.description }, + ...input.revision != null && { revision: serializeAws_json1_1RevisionLocation(input.revision, context) } + }; + }; + var serializeAws_json1_1RegisterOnPremisesInstanceInput = (input, context) => { + return { + ...input.iamSessionArn != null && { iamSessionArn: input.iamSessionArn }, + ...input.iamUserArn != null && { iamUserArn: input.iamUserArn }, + ...input.instanceName != null && { instanceName: input.instanceName } + }; + }; + var serializeAws_json1_1RemoveTagsFromOnPremisesInstancesInput = (input, context) => { + return { + ...input.instanceNames != null && { + instanceNames: serializeAws_json1_1InstanceNameList(input.instanceNames, context) + }, + ...input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) } + }; + }; + var serializeAws_json1_1RevisionLocation = (input, context) => { + return { + ...input.appSpecContent != null && { + appSpecContent: serializeAws_json1_1AppSpecContent(input.appSpecContent, context) + }, + ...input.gitHubLocation != null && { + gitHubLocation: serializeAws_json1_1GitHubLocation(input.gitHubLocation, context) + }, + ...input.revisionType != null && { revisionType: input.revisionType }, + ...input.s3Location != null && { s3Location: serializeAws_json1_1S3Location(input.s3Location, context) }, + ...input.string != null && { string: serializeAws_json1_1RawString(input.string, context) } + }; + }; + var serializeAws_json1_1RevisionLocationList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1RevisionLocation(entry, context); + }); + }; + var serializeAws_json1_1S3Location = (input, context) => { + return { + ...input.bucket != null && { bucket: input.bucket }, + ...input.bundleType != null && { bundleType: input.bundleType }, + ...input.eTag != null && { eTag: input.eTag }, + ...input.key != null && { key: input.key }, + ...input.version != null && { version: input.version } + }; + }; + var serializeAws_json1_1SkipWaitTimeForInstanceTerminationInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId } + }; + }; + var serializeAws_json1_1StopDeploymentInput = (input, context) => { + return { + ...input.autoRollbackEnabled != null && { autoRollbackEnabled: input.autoRollbackEnabled }, + ...input.deploymentId != null && { deploymentId: input.deploymentId } + }; + }; + var serializeAws_json1_1Tag = (input, context) => { + return { + ...input.Key != null && { Key: input.Key }, + ...input.Value != null && { Value: input.Value } + }; + }; + var serializeAws_json1_1TagFilter = (input, context) => { + return { + ...input.Key != null && { Key: input.Key }, + ...input.Type != null && { Type: input.Type }, + ...input.Value != null && { Value: input.Value } + }; + }; + var serializeAws_json1_1TagFilterList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1TagFilter(entry, context); + }); + }; + var serializeAws_json1_1TagKeyList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1TagList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1Tag(entry, context); + }); + }; + var serializeAws_json1_1TagResourceInput = (input, context) => { + return { + ...input.ResourceArn != null && { ResourceArn: input.ResourceArn }, + ...input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) } + }; + }; + var serializeAws_json1_1TargetFilters = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_1FilterValueList(value, context) + }; + }, {}); + }; + var serializeAws_json1_1TargetGroupInfo = (input, context) => { + return { + ...input.name != null && { name: input.name } + }; + }; + var serializeAws_json1_1TargetGroupInfoList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1TargetGroupInfo(entry, context); + }); + }; + var serializeAws_json1_1TargetGroupPairInfo = (input, context) => { + return { + ...input.prodTrafficRoute != null && { + prodTrafficRoute: serializeAws_json1_1TrafficRoute(input.prodTrafficRoute, context) + }, + ...input.targetGroups != null && { + targetGroups: serializeAws_json1_1TargetGroupInfoList(input.targetGroups, context) + }, + ...input.testTrafficRoute != null && { + testTrafficRoute: serializeAws_json1_1TrafficRoute(input.testTrafficRoute, context) + } + }; + }; + var serializeAws_json1_1TargetGroupPairInfoList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1TargetGroupPairInfo(entry, context); + }); + }; + var serializeAws_json1_1TargetIdList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1TargetInstances = (input, context) => { + return { + ...input.autoScalingGroups != null && { + autoScalingGroups: serializeAws_json1_1AutoScalingGroupNameList(input.autoScalingGroups, context) + }, + ...input.ec2TagSet != null && { ec2TagSet: serializeAws_json1_1EC2TagSet(input.ec2TagSet, context) }, + ...input.tagFilters != null && { tagFilters: serializeAws_json1_1EC2TagFilterList(input.tagFilters, context) } + }; + }; + var serializeAws_json1_1TimeBasedCanary = (input, context) => { + return { + ...input.canaryInterval != null && { canaryInterval: input.canaryInterval }, + ...input.canaryPercentage != null && { canaryPercentage: input.canaryPercentage } + }; + }; + var serializeAws_json1_1TimeBasedLinear = (input, context) => { + return { + ...input.linearInterval != null && { linearInterval: input.linearInterval }, + ...input.linearPercentage != null && { linearPercentage: input.linearPercentage } + }; + }; + var serializeAws_json1_1TimeRange = (input, context) => { + return { + ...input.end != null && { end: Math.round(input.end.getTime() / 1e3) }, + ...input.start != null && { start: Math.round(input.start.getTime() / 1e3) } + }; + }; + var serializeAws_json1_1TrafficRoute = (input, context) => { + return { + ...input.listenerArns != null && { + listenerArns: serializeAws_json1_1ListenerArnList(input.listenerArns, context) + } + }; + }; + var serializeAws_json1_1TrafficRoutingConfig = (input, context) => { + return { + ...input.timeBasedCanary != null && { + timeBasedCanary: serializeAws_json1_1TimeBasedCanary(input.timeBasedCanary, context) + }, + ...input.timeBasedLinear != null && { + timeBasedLinear: serializeAws_json1_1TimeBasedLinear(input.timeBasedLinear, context) + }, + ...input.type != null && { type: input.type } + }; + }; + var serializeAws_json1_1TriggerConfig = (input, context) => { + return { + ...input.triggerEvents != null && { + triggerEvents: serializeAws_json1_1TriggerEventTypeList(input.triggerEvents, context) + }, + ...input.triggerName != null && { triggerName: input.triggerName }, + ...input.triggerTargetArn != null && { triggerTargetArn: input.triggerTargetArn } + }; + }; + var serializeAws_json1_1TriggerConfigList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1TriggerConfig(entry, context); + }); + }; + var serializeAws_json1_1TriggerEventTypeList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1UntagResourceInput = (input, context) => { + return { + ...input.ResourceArn != null && { ResourceArn: input.ResourceArn }, + ...input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) } + }; + }; + var serializeAws_json1_1UpdateApplicationInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.newApplicationName != null && { newApplicationName: input.newApplicationName } + }; + }; + var serializeAws_json1_1UpdateDeploymentGroupInput = (input, context) => { + return { + ...input.alarmConfiguration != null && { + alarmConfiguration: serializeAws_json1_1AlarmConfiguration(input.alarmConfiguration, context) + }, + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.autoRollbackConfiguration != null && { + autoRollbackConfiguration: serializeAws_json1_1AutoRollbackConfiguration(input.autoRollbackConfiguration, context) + }, + ...input.autoScalingGroups != null && { + autoScalingGroups: serializeAws_json1_1AutoScalingGroupNameList(input.autoScalingGroups, context) + }, + ...input.blueGreenDeploymentConfiguration != null && { + blueGreenDeploymentConfiguration: serializeAws_json1_1BlueGreenDeploymentConfiguration(input.blueGreenDeploymentConfiguration, context) + }, + ...input.currentDeploymentGroupName != null && { currentDeploymentGroupName: input.currentDeploymentGroupName }, + ...input.deploymentConfigName != null && { deploymentConfigName: input.deploymentConfigName }, + ...input.deploymentStyle != null && { + deploymentStyle: serializeAws_json1_1DeploymentStyle(input.deploymentStyle, context) + }, + ...input.ec2TagFilters != null && { + ec2TagFilters: serializeAws_json1_1EC2TagFilterList(input.ec2TagFilters, context) + }, + ...input.ec2TagSet != null && { ec2TagSet: serializeAws_json1_1EC2TagSet(input.ec2TagSet, context) }, + ...input.ecsServices != null && { ecsServices: serializeAws_json1_1ECSServiceList(input.ecsServices, context) }, + ...input.loadBalancerInfo != null && { + loadBalancerInfo: serializeAws_json1_1LoadBalancerInfo(input.loadBalancerInfo, context) + }, + ...input.newDeploymentGroupName != null && { newDeploymentGroupName: input.newDeploymentGroupName }, + ...input.onPremisesInstanceTagFilters != null && { + onPremisesInstanceTagFilters: serializeAws_json1_1TagFilterList(input.onPremisesInstanceTagFilters, context) + }, + ...input.onPremisesTagSet != null && { + onPremisesTagSet: serializeAws_json1_1OnPremisesTagSet(input.onPremisesTagSet, context) + }, + ...input.outdatedInstancesStrategy != null && { outdatedInstancesStrategy: input.outdatedInstancesStrategy }, + ...input.serviceRoleArn != null && { serviceRoleArn: input.serviceRoleArn }, + ...input.triggerConfigurations != null && { + triggerConfigurations: serializeAws_json1_1TriggerConfigList(input.triggerConfigurations, context) + } + }; + }; + var deserializeAws_json1_1Alarm = (output, context) => { + return { + name: (0, smithy_client_1.expectString)(output.name) + }; + }; + var deserializeAws_json1_1AlarmConfiguration = (output, context) => { + return { + alarms: output.alarms != null ? deserializeAws_json1_1AlarmList(output.alarms, context) : void 0, + enabled: (0, smithy_client_1.expectBoolean)(output.enabled), + ignorePollAlarmFailure: (0, smithy_client_1.expectBoolean)(output.ignorePollAlarmFailure) + }; + }; + var deserializeAws_json1_1AlarmList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1Alarm(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1AlarmsLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ApplicationAlreadyExistsException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ApplicationDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ApplicationInfo = (output, context) => { + return { + applicationId: (0, smithy_client_1.expectString)(output.applicationId), + applicationName: (0, smithy_client_1.expectString)(output.applicationName), + computePlatform: (0, smithy_client_1.expectString)(output.computePlatform), + createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : void 0, + gitHubAccountName: (0, smithy_client_1.expectString)(output.gitHubAccountName), + linkedToGitHub: (0, smithy_client_1.expectBoolean)(output.linkedToGitHub) + }; + }; + var deserializeAws_json1_1ApplicationLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ApplicationNameRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ApplicationsInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ApplicationInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1ApplicationsList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1AppSpecContent = (output, context) => { + return { + content: (0, smithy_client_1.expectString)(output.content), + sha256: (0, smithy_client_1.expectString)(output.sha256) + }; + }; + var deserializeAws_json1_1ArnNotSupportedException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1AutoRollbackConfiguration = (output, context) => { + return { + enabled: (0, smithy_client_1.expectBoolean)(output.enabled), + events: output.events != null ? deserializeAws_json1_1AutoRollbackEventsList(output.events, context) : void 0 + }; + }; + var deserializeAws_json1_1AutoRollbackEventsList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1AutoScalingGroup = (output, context) => { + return { + hook: (0, smithy_client_1.expectString)(output.hook), + name: (0, smithy_client_1.expectString)(output.name) + }; + }; + var deserializeAws_json1_1AutoScalingGroupList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1AutoScalingGroup(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1AutoScalingGroupNameList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1BatchGetApplicationRevisionsOutput = (output, context) => { + return { + applicationName: (0, smithy_client_1.expectString)(output.applicationName), + errorMessage: (0, smithy_client_1.expectString)(output.errorMessage), + revisions: output.revisions != null ? deserializeAws_json1_1RevisionInfoList(output.revisions, context) : void 0 + }; + }; + var deserializeAws_json1_1BatchGetApplicationsOutput = (output, context) => { + return { + applicationsInfo: output.applicationsInfo != null ? deserializeAws_json1_1ApplicationsInfoList(output.applicationsInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1BatchGetDeploymentGroupsOutput = (output, context) => { + return { + deploymentGroupsInfo: output.deploymentGroupsInfo != null ? deserializeAws_json1_1DeploymentGroupInfoList(output.deploymentGroupsInfo, context) : void 0, + errorMessage: (0, smithy_client_1.expectString)(output.errorMessage) + }; + }; + var deserializeAws_json1_1BatchGetDeploymentInstancesOutput = (output, context) => { + return { + errorMessage: (0, smithy_client_1.expectString)(output.errorMessage), + instancesSummary: output.instancesSummary != null ? deserializeAws_json1_1InstanceSummaryList(output.instancesSummary, context) : void 0 + }; + }; + var deserializeAws_json1_1BatchGetDeploymentsOutput = (output, context) => { + return { + deploymentsInfo: output.deploymentsInfo != null ? deserializeAws_json1_1DeploymentsInfoList(output.deploymentsInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1BatchGetDeploymentTargetsOutput = (output, context) => { + return { + deploymentTargets: output.deploymentTargets != null ? deserializeAws_json1_1DeploymentTargetList(output.deploymentTargets, context) : void 0 + }; + }; + var deserializeAws_json1_1BatchGetOnPremisesInstancesOutput = (output, context) => { + return { + instanceInfos: output.instanceInfos != null ? deserializeAws_json1_1InstanceInfoList(output.instanceInfos, context) : void 0 + }; + }; + var deserializeAws_json1_1BatchLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1BlueGreenDeploymentConfiguration = (output, context) => { + return { + deploymentReadyOption: output.deploymentReadyOption != null ? deserializeAws_json1_1DeploymentReadyOption(output.deploymentReadyOption, context) : void 0, + greenFleetProvisioningOption: output.greenFleetProvisioningOption != null ? deserializeAws_json1_1GreenFleetProvisioningOption(output.greenFleetProvisioningOption, context) : void 0, + terminateBlueInstancesOnDeploymentSuccess: output.terminateBlueInstancesOnDeploymentSuccess != null ? deserializeAws_json1_1BlueInstanceTerminationOption(output.terminateBlueInstancesOnDeploymentSuccess, context) : void 0 + }; + }; + var deserializeAws_json1_1BlueInstanceTerminationOption = (output, context) => { + return { + action: (0, smithy_client_1.expectString)(output.action), + terminationWaitTimeInMinutes: (0, smithy_client_1.expectInt32)(output.terminationWaitTimeInMinutes) + }; + }; + var deserializeAws_json1_1BucketNameFilterRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1CloudFormationTarget = (output, context) => { + return { + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId), + lastUpdatedAt: output.lastUpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt))) : void 0, + lifecycleEvents: output.lifecycleEvents != null ? deserializeAws_json1_1LifecycleEventList(output.lifecycleEvents, context) : void 0, + resourceType: (0, smithy_client_1.expectString)(output.resourceType), + status: (0, smithy_client_1.expectString)(output.status), + targetId: (0, smithy_client_1.expectString)(output.targetId), + targetVersionWeight: (0, smithy_client_1.limitedParseDouble)(output.targetVersionWeight) + }; + }; + var deserializeAws_json1_1CreateApplicationOutput = (output, context) => { + return { + applicationId: (0, smithy_client_1.expectString)(output.applicationId) + }; + }; + var deserializeAws_json1_1CreateDeploymentConfigOutput = (output, context) => { + return { + deploymentConfigId: (0, smithy_client_1.expectString)(output.deploymentConfigId) + }; + }; + var deserializeAws_json1_1CreateDeploymentGroupOutput = (output, context) => { + return { + deploymentGroupId: (0, smithy_client_1.expectString)(output.deploymentGroupId) + }; + }; + var deserializeAws_json1_1CreateDeploymentOutput = (output, context) => { + return { + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId) + }; + }; + var deserializeAws_json1_1DeleteDeploymentGroupOutput = (output, context) => { + return { + hooksNotCleanedUp: output.hooksNotCleanedUp != null ? deserializeAws_json1_1AutoScalingGroupList(output.hooksNotCleanedUp, context) : void 0 + }; + }; + var deserializeAws_json1_1DeleteGitHubAccountTokenOutput = (output, context) => { + return { + tokenName: (0, smithy_client_1.expectString)(output.tokenName) + }; + }; + var deserializeAws_json1_1DeleteResourcesByExternalIdOutput = (output, context) => { + return {}; + }; + var deserializeAws_json1_1DeploymentAlreadyCompletedException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentConfigAlreadyExistsException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentConfigDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentConfigInfo = (output, context) => { + return { + computePlatform: (0, smithy_client_1.expectString)(output.computePlatform), + createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : void 0, + deploymentConfigId: (0, smithy_client_1.expectString)(output.deploymentConfigId), + deploymentConfigName: (0, smithy_client_1.expectString)(output.deploymentConfigName), + minimumHealthyHosts: output.minimumHealthyHosts != null ? deserializeAws_json1_1MinimumHealthyHosts(output.minimumHealthyHosts, context) : void 0, + trafficRoutingConfig: output.trafficRoutingConfig != null ? deserializeAws_json1_1TrafficRoutingConfig(output.trafficRoutingConfig, context) : void 0 + }; + }; + var deserializeAws_json1_1DeploymentConfigInUseException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentConfigLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentConfigNameRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentConfigsList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1DeploymentDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentGroupAlreadyExistsException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentGroupDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentGroupInfo = (output, context) => { + return { + alarmConfiguration: output.alarmConfiguration != null ? deserializeAws_json1_1AlarmConfiguration(output.alarmConfiguration, context) : void 0, + applicationName: (0, smithy_client_1.expectString)(output.applicationName), + autoRollbackConfiguration: output.autoRollbackConfiguration != null ? deserializeAws_json1_1AutoRollbackConfiguration(output.autoRollbackConfiguration, context) : void 0, + autoScalingGroups: output.autoScalingGroups != null ? deserializeAws_json1_1AutoScalingGroupList(output.autoScalingGroups, context) : void 0, + blueGreenDeploymentConfiguration: output.blueGreenDeploymentConfiguration != null ? deserializeAws_json1_1BlueGreenDeploymentConfiguration(output.blueGreenDeploymentConfiguration, context) : void 0, + computePlatform: (0, smithy_client_1.expectString)(output.computePlatform), + deploymentConfigName: (0, smithy_client_1.expectString)(output.deploymentConfigName), + deploymentGroupId: (0, smithy_client_1.expectString)(output.deploymentGroupId), + deploymentGroupName: (0, smithy_client_1.expectString)(output.deploymentGroupName), + deploymentStyle: output.deploymentStyle != null ? deserializeAws_json1_1DeploymentStyle(output.deploymentStyle, context) : void 0, + ec2TagFilters: output.ec2TagFilters != null ? deserializeAws_json1_1EC2TagFilterList(output.ec2TagFilters, context) : void 0, + ec2TagSet: output.ec2TagSet != null ? deserializeAws_json1_1EC2TagSet(output.ec2TagSet, context) : void 0, + ecsServices: output.ecsServices != null ? deserializeAws_json1_1ECSServiceList(output.ecsServices, context) : void 0, + lastAttemptedDeployment: output.lastAttemptedDeployment != null ? deserializeAws_json1_1LastDeploymentInfo(output.lastAttemptedDeployment, context) : void 0, + lastSuccessfulDeployment: output.lastSuccessfulDeployment != null ? deserializeAws_json1_1LastDeploymentInfo(output.lastSuccessfulDeployment, context) : void 0, + loadBalancerInfo: output.loadBalancerInfo != null ? deserializeAws_json1_1LoadBalancerInfo(output.loadBalancerInfo, context) : void 0, + onPremisesInstanceTagFilters: output.onPremisesInstanceTagFilters != null ? deserializeAws_json1_1TagFilterList(output.onPremisesInstanceTagFilters, context) : void 0, + onPremisesTagSet: output.onPremisesTagSet != null ? deserializeAws_json1_1OnPremisesTagSet(output.onPremisesTagSet, context) : void 0, + outdatedInstancesStrategy: (0, smithy_client_1.expectString)(output.outdatedInstancesStrategy), + serviceRoleArn: (0, smithy_client_1.expectString)(output.serviceRoleArn), + targetRevision: output.targetRevision != null ? deserializeAws_json1_1RevisionLocation(output.targetRevision, context) : void 0, + triggerConfigurations: output.triggerConfigurations != null ? deserializeAws_json1_1TriggerConfigList(output.triggerConfigurations, context) : void 0 + }; + }; + var deserializeAws_json1_1DeploymentGroupInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1DeploymentGroupInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1DeploymentGroupLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentGroupNameRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentGroupsList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1DeploymentIdRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentInfo = (output, context) => { + return { + additionalDeploymentStatusInfo: (0, smithy_client_1.expectString)(output.additionalDeploymentStatusInfo), + applicationName: (0, smithy_client_1.expectString)(output.applicationName), + autoRollbackConfiguration: output.autoRollbackConfiguration != null ? deserializeAws_json1_1AutoRollbackConfiguration(output.autoRollbackConfiguration, context) : void 0, + blueGreenDeploymentConfiguration: output.blueGreenDeploymentConfiguration != null ? deserializeAws_json1_1BlueGreenDeploymentConfiguration(output.blueGreenDeploymentConfiguration, context) : void 0, + completeTime: output.completeTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completeTime))) : void 0, + computePlatform: (0, smithy_client_1.expectString)(output.computePlatform), + createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : void 0, + creator: (0, smithy_client_1.expectString)(output.creator), + deploymentConfigName: (0, smithy_client_1.expectString)(output.deploymentConfigName), + deploymentGroupName: (0, smithy_client_1.expectString)(output.deploymentGroupName), + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId), + deploymentOverview: output.deploymentOverview != null ? deserializeAws_json1_1DeploymentOverview(output.deploymentOverview, context) : void 0, + deploymentStatusMessages: output.deploymentStatusMessages != null ? deserializeAws_json1_1DeploymentStatusMessageList(output.deploymentStatusMessages, context) : void 0, + deploymentStyle: output.deploymentStyle != null ? deserializeAws_json1_1DeploymentStyle(output.deploymentStyle, context) : void 0, + description: (0, smithy_client_1.expectString)(output.description), + errorInformation: output.errorInformation != null ? deserializeAws_json1_1ErrorInformation(output.errorInformation, context) : void 0, + externalId: (0, smithy_client_1.expectString)(output.externalId), + fileExistsBehavior: (0, smithy_client_1.expectString)(output.fileExistsBehavior), + ignoreApplicationStopFailures: (0, smithy_client_1.expectBoolean)(output.ignoreApplicationStopFailures), + instanceTerminationWaitTimeStarted: (0, smithy_client_1.expectBoolean)(output.instanceTerminationWaitTimeStarted), + loadBalancerInfo: output.loadBalancerInfo != null ? deserializeAws_json1_1LoadBalancerInfo(output.loadBalancerInfo, context) : void 0, + overrideAlarmConfiguration: output.overrideAlarmConfiguration != null ? deserializeAws_json1_1AlarmConfiguration(output.overrideAlarmConfiguration, context) : void 0, + previousRevision: output.previousRevision != null ? deserializeAws_json1_1RevisionLocation(output.previousRevision, context) : void 0, + relatedDeployments: output.relatedDeployments != null ? deserializeAws_json1_1RelatedDeployments(output.relatedDeployments, context) : void 0, + revision: output.revision != null ? deserializeAws_json1_1RevisionLocation(output.revision, context) : void 0, + rollbackInfo: output.rollbackInfo != null ? deserializeAws_json1_1RollbackInfo(output.rollbackInfo, context) : void 0, + startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : void 0, + status: (0, smithy_client_1.expectString)(output.status), + targetInstances: output.targetInstances != null ? deserializeAws_json1_1TargetInstances(output.targetInstances, context) : void 0, + updateOutdatedInstancesOnly: (0, smithy_client_1.expectBoolean)(output.updateOutdatedInstancesOnly) + }; + }; + var deserializeAws_json1_1DeploymentIsNotInReadyStateException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentNotStartedException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentOverview = (output, context) => { + return { + Failed: (0, smithy_client_1.expectLong)(output.Failed), + InProgress: (0, smithy_client_1.expectLong)(output.InProgress), + Pending: (0, smithy_client_1.expectLong)(output.Pending), + Ready: (0, smithy_client_1.expectLong)(output.Ready), + Skipped: (0, smithy_client_1.expectLong)(output.Skipped), + Succeeded: (0, smithy_client_1.expectLong)(output.Succeeded) + }; + }; + var deserializeAws_json1_1DeploymentReadyOption = (output, context) => { + return { + actionOnTimeout: (0, smithy_client_1.expectString)(output.actionOnTimeout), + waitTimeInMinutes: (0, smithy_client_1.expectInt32)(output.waitTimeInMinutes) + }; + }; + var deserializeAws_json1_1DeploymentsInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1DeploymentInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1DeploymentsList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1DeploymentStatusMessageList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1DeploymentStyle = (output, context) => { + return { + deploymentOption: (0, smithy_client_1.expectString)(output.deploymentOption), + deploymentType: (0, smithy_client_1.expectString)(output.deploymentType) + }; + }; + var deserializeAws_json1_1DeploymentTarget = (output, context) => { + return { + cloudFormationTarget: output.cloudFormationTarget != null ? deserializeAws_json1_1CloudFormationTarget(output.cloudFormationTarget, context) : void 0, + deploymentTargetType: (0, smithy_client_1.expectString)(output.deploymentTargetType), + ecsTarget: output.ecsTarget != null ? deserializeAws_json1_1ECSTarget(output.ecsTarget, context) : void 0, + instanceTarget: output.instanceTarget != null ? deserializeAws_json1_1InstanceTarget(output.instanceTarget, context) : void 0, + lambdaTarget: output.lambdaTarget != null ? deserializeAws_json1_1LambdaTarget(output.lambdaTarget, context) : void 0 + }; + }; + var deserializeAws_json1_1DeploymentTargetDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentTargetIdRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentTargetList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1DeploymentTarget(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1DeploymentTargetListSizeExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DescriptionTooLongException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1Diagnostics = (output, context) => { + return { + errorCode: (0, smithy_client_1.expectString)(output.errorCode), + logTail: (0, smithy_client_1.expectString)(output.logTail), + message: (0, smithy_client_1.expectString)(output.message), + scriptName: (0, smithy_client_1.expectString)(output.scriptName) + }; + }; + var deserializeAws_json1_1EC2TagFilter = (output, context) => { + return { + Key: (0, smithy_client_1.expectString)(output.Key), + Type: (0, smithy_client_1.expectString)(output.Type), + Value: (0, smithy_client_1.expectString)(output.Value) + }; + }; + var deserializeAws_json1_1EC2TagFilterList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1EC2TagFilter(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1EC2TagSet = (output, context) => { + return { + ec2TagSetList: output.ec2TagSetList != null ? deserializeAws_json1_1EC2TagSetList(output.ec2TagSetList, context) : void 0 + }; + }; + var deserializeAws_json1_1EC2TagSetList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1EC2TagFilterList(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1ECSService = (output, context) => { + return { + clusterName: (0, smithy_client_1.expectString)(output.clusterName), + serviceName: (0, smithy_client_1.expectString)(output.serviceName) + }; + }; + var deserializeAws_json1_1ECSServiceList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ECSService(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1ECSServiceMappingLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ECSTarget = (output, context) => { + return { + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId), + lastUpdatedAt: output.lastUpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt))) : void 0, + lifecycleEvents: output.lifecycleEvents != null ? deserializeAws_json1_1LifecycleEventList(output.lifecycleEvents, context) : void 0, + status: (0, smithy_client_1.expectString)(output.status), + targetArn: (0, smithy_client_1.expectString)(output.targetArn), + targetId: (0, smithy_client_1.expectString)(output.targetId), + taskSetsInfo: output.taskSetsInfo != null ? deserializeAws_json1_1ECSTaskSetList(output.taskSetsInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1ECSTaskSet = (output, context) => { + return { + desiredCount: (0, smithy_client_1.expectLong)(output.desiredCount), + identifer: (0, smithy_client_1.expectString)(output.identifer), + pendingCount: (0, smithy_client_1.expectLong)(output.pendingCount), + runningCount: (0, smithy_client_1.expectLong)(output.runningCount), + status: (0, smithy_client_1.expectString)(output.status), + targetGroup: output.targetGroup != null ? deserializeAws_json1_1TargetGroupInfo(output.targetGroup, context) : void 0, + taskSetLabel: (0, smithy_client_1.expectString)(output.taskSetLabel), + trafficWeight: (0, smithy_client_1.limitedParseDouble)(output.trafficWeight) + }; + }; + var deserializeAws_json1_1ECSTaskSetList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ECSTaskSet(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1ELBInfo = (output, context) => { + return { + name: (0, smithy_client_1.expectString)(output.name) + }; + }; + var deserializeAws_json1_1ELBInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ELBInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1ErrorInformation = (output, context) => { + return { + code: (0, smithy_client_1.expectString)(output.code), + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1GenericRevisionInfo = (output, context) => { + return { + deploymentGroups: output.deploymentGroups != null ? deserializeAws_json1_1DeploymentGroupsList(output.deploymentGroups, context) : void 0, + description: (0, smithy_client_1.expectString)(output.description), + firstUsedTime: output.firstUsedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.firstUsedTime))) : void 0, + lastUsedTime: output.lastUsedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUsedTime))) : void 0, + registerTime: output.registerTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.registerTime))) : void 0 + }; + }; + var deserializeAws_json1_1GetApplicationOutput = (output, context) => { + return { + application: output.application != null ? deserializeAws_json1_1ApplicationInfo(output.application, context) : void 0 + }; + }; + var deserializeAws_json1_1GetApplicationRevisionOutput = (output, context) => { + return { + applicationName: (0, smithy_client_1.expectString)(output.applicationName), + revision: output.revision != null ? deserializeAws_json1_1RevisionLocation(output.revision, context) : void 0, + revisionInfo: output.revisionInfo != null ? deserializeAws_json1_1GenericRevisionInfo(output.revisionInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1GetDeploymentConfigOutput = (output, context) => { + return { + deploymentConfigInfo: output.deploymentConfigInfo != null ? deserializeAws_json1_1DeploymentConfigInfo(output.deploymentConfigInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1GetDeploymentGroupOutput = (output, context) => { + return { + deploymentGroupInfo: output.deploymentGroupInfo != null ? deserializeAws_json1_1DeploymentGroupInfo(output.deploymentGroupInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1GetDeploymentInstanceOutput = (output, context) => { + return { + instanceSummary: output.instanceSummary != null ? deserializeAws_json1_1InstanceSummary(output.instanceSummary, context) : void 0 + }; + }; + var deserializeAws_json1_1GetDeploymentOutput = (output, context) => { + return { + deploymentInfo: output.deploymentInfo != null ? deserializeAws_json1_1DeploymentInfo(output.deploymentInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1GetDeploymentTargetOutput = (output, context) => { + return { + deploymentTarget: output.deploymentTarget != null ? deserializeAws_json1_1DeploymentTarget(output.deploymentTarget, context) : void 0 + }; + }; + var deserializeAws_json1_1GetOnPremisesInstanceOutput = (output, context) => { + return { + instanceInfo: output.instanceInfo != null ? deserializeAws_json1_1InstanceInfo(output.instanceInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1GitHubAccountTokenDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1GitHubAccountTokenNameList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1GitHubAccountTokenNameRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1GitHubLocation = (output, context) => { + return { + commitId: (0, smithy_client_1.expectString)(output.commitId), + repository: (0, smithy_client_1.expectString)(output.repository) + }; + }; + var deserializeAws_json1_1GreenFleetProvisioningOption = (output, context) => { + return { + action: (0, smithy_client_1.expectString)(output.action) + }; + }; + var deserializeAws_json1_1IamArnRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1IamSessionArnAlreadyRegisteredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1IamUserArnAlreadyRegisteredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1IamUserArnRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InstanceDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InstanceIdRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InstanceInfo = (output, context) => { + return { + deregisterTime: output.deregisterTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.deregisterTime))) : void 0, + iamSessionArn: (0, smithy_client_1.expectString)(output.iamSessionArn), + iamUserArn: (0, smithy_client_1.expectString)(output.iamUserArn), + instanceArn: (0, smithy_client_1.expectString)(output.instanceArn), + instanceName: (0, smithy_client_1.expectString)(output.instanceName), + registerTime: output.registerTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.registerTime))) : void 0, + tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : void 0 + }; + }; + var deserializeAws_json1_1InstanceInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1InstanceInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1InstanceLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InstanceNameAlreadyRegisteredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InstanceNameList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1InstanceNameRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InstanceNotRegisteredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InstancesList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1InstanceSummary = (output, context) => { + return { + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId), + instanceId: (0, smithy_client_1.expectString)(output.instanceId), + instanceType: (0, smithy_client_1.expectString)(output.instanceType), + lastUpdatedAt: output.lastUpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt))) : void 0, + lifecycleEvents: output.lifecycleEvents != null ? deserializeAws_json1_1LifecycleEventList(output.lifecycleEvents, context) : void 0, + status: (0, smithy_client_1.expectString)(output.status) + }; + }; + var deserializeAws_json1_1InstanceSummaryList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1InstanceSummary(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1InstanceTarget = (output, context) => { + return { + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId), + instanceLabel: (0, smithy_client_1.expectString)(output.instanceLabel), + lastUpdatedAt: output.lastUpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt))) : void 0, + lifecycleEvents: output.lifecycleEvents != null ? deserializeAws_json1_1LifecycleEventList(output.lifecycleEvents, context) : void 0, + status: (0, smithy_client_1.expectString)(output.status), + targetArn: (0, smithy_client_1.expectString)(output.targetArn), + targetId: (0, smithy_client_1.expectString)(output.targetId) + }; + }; + var deserializeAws_json1_1InvalidAlarmConfigException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidApplicationNameException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidArnException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidAutoRollbackConfigException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidAutoScalingGroupException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidBlueGreenDeploymentConfigurationException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidBucketNameFilterException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidComputePlatformException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeployedStateFilterException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentConfigNameException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentGroupNameException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentIdException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentInstanceTypeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentStatusException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentStyleException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentTargetIdException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentWaitTypeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidEC2TagCombinationException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidEC2TagException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidECSServiceException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidExternalIdException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidFileExistsBehaviorException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidGitHubAccountTokenException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidGitHubAccountTokenNameException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidIamSessionArnException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidIamUserArnException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidIgnoreApplicationStopFailuresValueException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidInputException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidInstanceNameException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidInstanceStatusException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidInstanceTypeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidKeyPrefixFilterException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidLifecycleEventHookExecutionIdException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidLifecycleEventHookExecutionStatusException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidLoadBalancerInfoException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidMinimumHealthyHostValueException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidNextTokenException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidOnPremisesTagCombinationException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidOperationException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidRegistrationStatusException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidRevisionException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidRoleException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidSortByException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidSortOrderException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTagException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTagFilterException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTagsToAddException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTargetFilterNameException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTargetGroupPairException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTargetInstancesException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTimeRangeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTrafficRoutingConfigurationException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTriggerConfigException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidUpdateOutdatedInstancesOnlyValueException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1LambdaFunctionInfo = (output, context) => { + return { + currentVersion: (0, smithy_client_1.expectString)(output.currentVersion), + functionAlias: (0, smithy_client_1.expectString)(output.functionAlias), + functionName: (0, smithy_client_1.expectString)(output.functionName), + targetVersion: (0, smithy_client_1.expectString)(output.targetVersion), + targetVersionWeight: (0, smithy_client_1.limitedParseDouble)(output.targetVersionWeight) + }; + }; + var deserializeAws_json1_1LambdaTarget = (output, context) => { + return { + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId), + lambdaFunctionInfo: output.lambdaFunctionInfo != null ? deserializeAws_json1_1LambdaFunctionInfo(output.lambdaFunctionInfo, context) : void 0, + lastUpdatedAt: output.lastUpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt))) : void 0, + lifecycleEvents: output.lifecycleEvents != null ? deserializeAws_json1_1LifecycleEventList(output.lifecycleEvents, context) : void 0, + status: (0, smithy_client_1.expectString)(output.status), + targetArn: (0, smithy_client_1.expectString)(output.targetArn), + targetId: (0, smithy_client_1.expectString)(output.targetId) + }; + }; + var deserializeAws_json1_1LastDeploymentInfo = (output, context) => { + return { + createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : void 0, + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId), + endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : void 0, + status: (0, smithy_client_1.expectString)(output.status) + }; + }; + var deserializeAws_json1_1LifecycleEvent = (output, context) => { + return { + diagnostics: output.diagnostics != null ? deserializeAws_json1_1Diagnostics(output.diagnostics, context) : void 0, + endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : void 0, + lifecycleEventName: (0, smithy_client_1.expectString)(output.lifecycleEventName), + startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : void 0, + status: (0, smithy_client_1.expectString)(output.status) + }; + }; + var deserializeAws_json1_1LifecycleEventAlreadyCompletedException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1LifecycleEventList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1LifecycleEvent(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1LifecycleHookLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ListApplicationRevisionsOutput = (output, context) => { + return { + nextToken: (0, smithy_client_1.expectString)(output.nextToken), + revisions: output.revisions != null ? deserializeAws_json1_1RevisionLocationList(output.revisions, context) : void 0 + }; + }; + var deserializeAws_json1_1ListApplicationsOutput = (output, context) => { + return { + applications: output.applications != null ? deserializeAws_json1_1ApplicationsList(output.applications, context) : void 0, + nextToken: (0, smithy_client_1.expectString)(output.nextToken) + }; + }; + var deserializeAws_json1_1ListDeploymentConfigsOutput = (output, context) => { + return { + deploymentConfigsList: output.deploymentConfigsList != null ? deserializeAws_json1_1DeploymentConfigsList(output.deploymentConfigsList, context) : void 0, + nextToken: (0, smithy_client_1.expectString)(output.nextToken) + }; + }; + var deserializeAws_json1_1ListDeploymentGroupsOutput = (output, context) => { + return { + applicationName: (0, smithy_client_1.expectString)(output.applicationName), + deploymentGroups: output.deploymentGroups != null ? deserializeAws_json1_1DeploymentGroupsList(output.deploymentGroups, context) : void 0, + nextToken: (0, smithy_client_1.expectString)(output.nextToken) + }; + }; + var deserializeAws_json1_1ListDeploymentInstancesOutput = (output, context) => { + return { + instancesList: output.instancesList != null ? deserializeAws_json1_1InstancesList(output.instancesList, context) : void 0, + nextToken: (0, smithy_client_1.expectString)(output.nextToken) + }; + }; + var deserializeAws_json1_1ListDeploymentsOutput = (output, context) => { + return { + deployments: output.deployments != null ? deserializeAws_json1_1DeploymentsList(output.deployments, context) : void 0, + nextToken: (0, smithy_client_1.expectString)(output.nextToken) + }; + }; + var deserializeAws_json1_1ListDeploymentTargetsOutput = (output, context) => { + return { + nextToken: (0, smithy_client_1.expectString)(output.nextToken), + targetIds: output.targetIds != null ? deserializeAws_json1_1TargetIdList(output.targetIds, context) : void 0 + }; + }; + var deserializeAws_json1_1ListenerArnList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1ListGitHubAccountTokenNamesOutput = (output, context) => { + return { + nextToken: (0, smithy_client_1.expectString)(output.nextToken), + tokenNameList: output.tokenNameList != null ? deserializeAws_json1_1GitHubAccountTokenNameList(output.tokenNameList, context) : void 0 + }; + }; + var deserializeAws_json1_1ListOnPremisesInstancesOutput = (output, context) => { + return { + instanceNames: output.instanceNames != null ? deserializeAws_json1_1InstanceNameList(output.instanceNames, context) : void 0, + nextToken: (0, smithy_client_1.expectString)(output.nextToken) + }; + }; + var deserializeAws_json1_1ListTagsForResourceOutput = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : void 0 + }; + }; + var deserializeAws_json1_1LoadBalancerInfo = (output, context) => { + return { + elbInfoList: output.elbInfoList != null ? deserializeAws_json1_1ELBInfoList(output.elbInfoList, context) : void 0, + targetGroupInfoList: output.targetGroupInfoList != null ? deserializeAws_json1_1TargetGroupInfoList(output.targetGroupInfoList, context) : void 0, + targetGroupPairInfoList: output.targetGroupPairInfoList != null ? deserializeAws_json1_1TargetGroupPairInfoList(output.targetGroupPairInfoList, context) : void 0 + }; + }; + var deserializeAws_json1_1MinimumHealthyHosts = (output, context) => { + return { + type: (0, smithy_client_1.expectString)(output.type), + value: (0, smithy_client_1.expectInt32)(output.value) + }; + }; + var deserializeAws_json1_1MultipleIamArnsProvidedException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1OnPremisesTagSet = (output, context) => { + return { + onPremisesTagSetList: output.onPremisesTagSetList != null ? deserializeAws_json1_1OnPremisesTagSetList(output.onPremisesTagSetList, context) : void 0 + }; + }; + var deserializeAws_json1_1OnPremisesTagSetList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1TagFilterList(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1OperationNotSupportedException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1PutLifecycleEventHookExecutionStatusOutput = (output, context) => { + return { + lifecycleEventHookExecutionId: (0, smithy_client_1.expectString)(output.lifecycleEventHookExecutionId) + }; + }; + var deserializeAws_json1_1RawString = (output, context) => { + return { + content: (0, smithy_client_1.expectString)(output.content), + sha256: (0, smithy_client_1.expectString)(output.sha256) + }; + }; + var deserializeAws_json1_1RelatedDeployments = (output, context) => { + return { + autoUpdateOutdatedInstancesDeploymentIds: output.autoUpdateOutdatedInstancesDeploymentIds != null ? deserializeAws_json1_1DeploymentsList(output.autoUpdateOutdatedInstancesDeploymentIds, context) : void 0, + autoUpdateOutdatedInstancesRootDeploymentId: (0, smithy_client_1.expectString)(output.autoUpdateOutdatedInstancesRootDeploymentId) + }; + }; + var deserializeAws_json1_1ResourceArnRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ResourceValidationException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1RevisionDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1RevisionInfo = (output, context) => { + return { + genericRevisionInfo: output.genericRevisionInfo != null ? deserializeAws_json1_1GenericRevisionInfo(output.genericRevisionInfo, context) : void 0, + revisionLocation: output.revisionLocation != null ? deserializeAws_json1_1RevisionLocation(output.revisionLocation, context) : void 0 + }; + }; + var deserializeAws_json1_1RevisionInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1RevisionInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1RevisionLocation = (output, context) => { + return { + appSpecContent: output.appSpecContent != null ? deserializeAws_json1_1AppSpecContent(output.appSpecContent, context) : void 0, + gitHubLocation: output.gitHubLocation != null ? deserializeAws_json1_1GitHubLocation(output.gitHubLocation, context) : void 0, + revisionType: (0, smithy_client_1.expectString)(output.revisionType), + s3Location: output.s3Location != null ? deserializeAws_json1_1S3Location(output.s3Location, context) : void 0, + string: output.string != null ? deserializeAws_json1_1RawString(output.string, context) : void 0 + }; + }; + var deserializeAws_json1_1RevisionLocationList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1RevisionLocation(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1RevisionRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1RoleRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1RollbackInfo = (output, context) => { + return { + rollbackDeploymentId: (0, smithy_client_1.expectString)(output.rollbackDeploymentId), + rollbackMessage: (0, smithy_client_1.expectString)(output.rollbackMessage), + rollbackTriggeringDeploymentId: (0, smithy_client_1.expectString)(output.rollbackTriggeringDeploymentId) + }; + }; + var deserializeAws_json1_1S3Location = (output, context) => { + return { + bucket: (0, smithy_client_1.expectString)(output.bucket), + bundleType: (0, smithy_client_1.expectString)(output.bundleType), + eTag: (0, smithy_client_1.expectString)(output.eTag), + key: (0, smithy_client_1.expectString)(output.key), + version: (0, smithy_client_1.expectString)(output.version) + }; + }; + var deserializeAws_json1_1StopDeploymentOutput = (output, context) => { + return { + status: (0, smithy_client_1.expectString)(output.status), + statusMessage: (0, smithy_client_1.expectString)(output.statusMessage) + }; + }; + var deserializeAws_json1_1Tag = (output, context) => { + return { + Key: (0, smithy_client_1.expectString)(output.Key), + Value: (0, smithy_client_1.expectString)(output.Value) + }; + }; + var deserializeAws_json1_1TagFilter = (output, context) => { + return { + Key: (0, smithy_client_1.expectString)(output.Key), + Type: (0, smithy_client_1.expectString)(output.Type), + Value: (0, smithy_client_1.expectString)(output.Value) + }; + }; + var deserializeAws_json1_1TagFilterList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1TagFilter(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1TagLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1TagList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1Tag(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1TagRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1TagResourceOutput = (output, context) => { + return {}; + }; + var deserializeAws_json1_1TagSetListLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1TargetGroupInfo = (output, context) => { + return { + name: (0, smithy_client_1.expectString)(output.name) + }; + }; + var deserializeAws_json1_1TargetGroupInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1TargetGroupInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1TargetGroupPairInfo = (output, context) => { + return { + prodTrafficRoute: output.prodTrafficRoute != null ? deserializeAws_json1_1TrafficRoute(output.prodTrafficRoute, context) : void 0, + targetGroups: output.targetGroups != null ? deserializeAws_json1_1TargetGroupInfoList(output.targetGroups, context) : void 0, + testTrafficRoute: output.testTrafficRoute != null ? deserializeAws_json1_1TrafficRoute(output.testTrafficRoute, context) : void 0 + }; + }; + var deserializeAws_json1_1TargetGroupPairInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1TargetGroupPairInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1TargetIdList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1TargetInstances = (output, context) => { + return { + autoScalingGroups: output.autoScalingGroups != null ? deserializeAws_json1_1AutoScalingGroupNameList(output.autoScalingGroups, context) : void 0, + ec2TagSet: output.ec2TagSet != null ? deserializeAws_json1_1EC2TagSet(output.ec2TagSet, context) : void 0, + tagFilters: output.tagFilters != null ? deserializeAws_json1_1EC2TagFilterList(output.tagFilters, context) : void 0 + }; + }; + var deserializeAws_json1_1ThrottlingException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1TimeBasedCanary = (output, context) => { + return { + canaryInterval: (0, smithy_client_1.expectInt32)(output.canaryInterval), + canaryPercentage: (0, smithy_client_1.expectInt32)(output.canaryPercentage) + }; + }; + var deserializeAws_json1_1TimeBasedLinear = (output, context) => { + return { + linearInterval: (0, smithy_client_1.expectInt32)(output.linearInterval), + linearPercentage: (0, smithy_client_1.expectInt32)(output.linearPercentage) + }; + }; + var deserializeAws_json1_1TrafficRoute = (output, context) => { + return { + listenerArns: output.listenerArns != null ? deserializeAws_json1_1ListenerArnList(output.listenerArns, context) : void 0 + }; + }; + var deserializeAws_json1_1TrafficRoutingConfig = (output, context) => { + return { + timeBasedCanary: output.timeBasedCanary != null ? deserializeAws_json1_1TimeBasedCanary(output.timeBasedCanary, context) : void 0, + timeBasedLinear: output.timeBasedLinear != null ? deserializeAws_json1_1TimeBasedLinear(output.timeBasedLinear, context) : void 0, + type: (0, smithy_client_1.expectString)(output.type) + }; + }; + var deserializeAws_json1_1TriggerConfig = (output, context) => { + return { + triggerEvents: output.triggerEvents != null ? deserializeAws_json1_1TriggerEventTypeList(output.triggerEvents, context) : void 0, + triggerName: (0, smithy_client_1.expectString)(output.triggerName), + triggerTargetArn: (0, smithy_client_1.expectString)(output.triggerTargetArn) + }; + }; + var deserializeAws_json1_1TriggerConfigList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1TriggerConfig(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1TriggerEventTypeList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1TriggerTargetsLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1UnsupportedActionForDeploymentTypeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1UntagResourceOutput = (output, context) => { + return {}; + }; + var deserializeAws_json1_1UpdateDeploymentGroupOutput = (output, context) => { + return { + hooksNotCleanedUp: output.hooksNotCleanedUp != null ? deserializeAws_json1_1AutoScalingGroupList(output.hooksNotCleanedUp, context) : void 0 + }; + }; + 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"] + }; + }; + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const contents = { + protocol, + hostname, + port, + method: "POST", + path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, + headers + }; + if (resolvedHostname !== void 0) { + contents.hostname = resolvedHostname; + } + if (body !== void 0) { + contents.body = body; + } + return new protocol_http_1.HttpRequest(contents); + }; + var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + return JSON.parse(encoded); + } + return {}; + }); + var parseErrorBody = async (errorBody, context) => { + var _a; + const value = await parseBody(errorBody, context); + value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message; + return value; + }; + var loadRestJsonErrorCode = (output, data) => { + const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); + const sanitizeErrorCode = (rawValue) => { + let cleanValue = rawValue; + if (typeof cleanValue === "number") { + cleanValue = cleanValue.toString(); + } + if (cleanValue.indexOf(",") >= 0) { + cleanValue = cleanValue.split(",")[0]; + } + if (cleanValue.indexOf(":") >= 0) { + cleanValue = cleanValue.split(":")[0]; + } + if (cleanValue.indexOf("#") >= 0) { + cleanValue = cleanValue.split("#")[1]; + } + return cleanValue; + }; + const headerKey = findKey(output.headers, "x-amzn-errortype"); + if (headerKey !== void 0) { + return sanitizeErrorCode(output.headers[headerKey]); + } + if (data.code !== void 0) { + return sanitizeErrorCode(data.code); + } + if (data["__type"] !== void 0) { + return sanitizeErrorCode(data["__type"]); + } + }; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/AddTagsToOnPremisesInstancesCommand.js +var require_AddTagsToOnPremisesInstancesCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/AddTagsToOnPremisesInstancesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.AddTagsToOnPremisesInstancesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var AddTagsToOnPremisesInstancesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "AddTagsToOnPremisesInstancesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AddTagsToOnPremisesInstancesInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1AddTagsToOnPremisesInstancesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1AddTagsToOnPremisesInstancesCommand)(output, context); + } + }; + exports.AddTagsToOnPremisesInstancesCommand = AddTagsToOnPremisesInstancesCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetApplicationRevisionsCommand.js +var require_BatchGetApplicationRevisionsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetApplicationRevisionsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.BatchGetApplicationRevisionsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var BatchGetApplicationRevisionsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "BatchGetApplicationRevisionsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetApplicationRevisionsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetApplicationRevisionsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1BatchGetApplicationRevisionsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1BatchGetApplicationRevisionsCommand)(output, context); + } + }; + exports.BatchGetApplicationRevisionsCommand = BatchGetApplicationRevisionsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetApplicationsCommand.js +var require_BatchGetApplicationsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetApplicationsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.BatchGetApplicationsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var BatchGetApplicationsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "BatchGetApplicationsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetApplicationsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetApplicationsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1BatchGetApplicationsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1BatchGetApplicationsCommand)(output, context); + } + }; + exports.BatchGetApplicationsCommand = BatchGetApplicationsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentGroupsCommand.js +var require_BatchGetDeploymentGroupsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentGroupsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.BatchGetDeploymentGroupsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var BatchGetDeploymentGroupsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "BatchGetDeploymentGroupsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetDeploymentGroupsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetDeploymentGroupsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1BatchGetDeploymentGroupsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1BatchGetDeploymentGroupsCommand)(output, context); + } + }; + exports.BatchGetDeploymentGroupsCommand = BatchGetDeploymentGroupsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentInstancesCommand.js +var require_BatchGetDeploymentInstancesCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentInstancesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.BatchGetDeploymentInstancesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var BatchGetDeploymentInstancesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "BatchGetDeploymentInstancesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetDeploymentInstancesInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetDeploymentInstancesOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1BatchGetDeploymentInstancesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1BatchGetDeploymentInstancesCommand)(output, context); + } + }; + exports.BatchGetDeploymentInstancesCommand = BatchGetDeploymentInstancesCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentsCommand.js +var require_BatchGetDeploymentsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.BatchGetDeploymentsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var BatchGetDeploymentsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "BatchGetDeploymentsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetDeploymentsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetDeploymentsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1BatchGetDeploymentsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1BatchGetDeploymentsCommand)(output, context); + } + }; + exports.BatchGetDeploymentsCommand = BatchGetDeploymentsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentTargetsCommand.js +var require_BatchGetDeploymentTargetsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentTargetsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.BatchGetDeploymentTargetsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var BatchGetDeploymentTargetsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "BatchGetDeploymentTargetsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetDeploymentTargetsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetDeploymentTargetsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1BatchGetDeploymentTargetsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1BatchGetDeploymentTargetsCommand)(output, context); + } + }; + exports.BatchGetDeploymentTargetsCommand = BatchGetDeploymentTargetsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetOnPremisesInstancesCommand.js +var require_BatchGetOnPremisesInstancesCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetOnPremisesInstancesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.BatchGetOnPremisesInstancesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var BatchGetOnPremisesInstancesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "BatchGetOnPremisesInstancesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetOnPremisesInstancesInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetOnPremisesInstancesOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1BatchGetOnPremisesInstancesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1BatchGetOnPremisesInstancesCommand)(output, context); + } + }; + exports.BatchGetOnPremisesInstancesCommand = BatchGetOnPremisesInstancesCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ContinueDeploymentCommand.js +var require_ContinueDeploymentCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ContinueDeploymentCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ContinueDeploymentCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ContinueDeploymentCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ContinueDeploymentCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ContinueDeploymentInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ContinueDeploymentCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ContinueDeploymentCommand)(output, context); + } + }; + exports.ContinueDeploymentCommand = ContinueDeploymentCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateApplicationCommand.js +var require_CreateApplicationCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateApplicationCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CreateApplicationCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var CreateApplicationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "CreateApplicationCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateApplicationInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateApplicationOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateApplicationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateApplicationCommand)(output, context); + } + }; + exports.CreateApplicationCommand = CreateApplicationCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentCommand.js +var require_CreateDeploymentCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CreateDeploymentCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var CreateDeploymentCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "CreateDeploymentCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateDeploymentInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateDeploymentOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateDeploymentCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateDeploymentCommand)(output, context); + } + }; + exports.CreateDeploymentCommand = CreateDeploymentCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentConfigCommand.js +var require_CreateDeploymentConfigCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentConfigCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CreateDeploymentConfigCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var CreateDeploymentConfigCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "CreateDeploymentConfigCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateDeploymentConfigInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateDeploymentConfigOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateDeploymentConfigCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateDeploymentConfigCommand)(output, context); + } + }; + exports.CreateDeploymentConfigCommand = CreateDeploymentConfigCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentGroupCommand.js +var require_CreateDeploymentGroupCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentGroupCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CreateDeploymentGroupCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var CreateDeploymentGroupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "CreateDeploymentGroupCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateDeploymentGroupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateDeploymentGroupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateDeploymentGroupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateDeploymentGroupCommand)(output, context); + } + }; + exports.CreateDeploymentGroupCommand = CreateDeploymentGroupCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteApplicationCommand.js +var require_DeleteApplicationCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteApplicationCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DeleteApplicationCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var DeleteApplicationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "DeleteApplicationCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteApplicationInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteApplicationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteApplicationCommand)(output, context); + } + }; + exports.DeleteApplicationCommand = DeleteApplicationCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteDeploymentConfigCommand.js +var require_DeleteDeploymentConfigCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteDeploymentConfigCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DeleteDeploymentConfigCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var DeleteDeploymentConfigCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "DeleteDeploymentConfigCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteDeploymentConfigInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteDeploymentConfigCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteDeploymentConfigCommand)(output, context); + } + }; + exports.DeleteDeploymentConfigCommand = DeleteDeploymentConfigCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteDeploymentGroupCommand.js +var require_DeleteDeploymentGroupCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteDeploymentGroupCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DeleteDeploymentGroupCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var DeleteDeploymentGroupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "DeleteDeploymentGroupCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteDeploymentGroupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteDeploymentGroupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteDeploymentGroupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteDeploymentGroupCommand)(output, context); + } + }; + exports.DeleteDeploymentGroupCommand = DeleteDeploymentGroupCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteGitHubAccountTokenCommand.js +var require_DeleteGitHubAccountTokenCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteGitHubAccountTokenCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DeleteGitHubAccountTokenCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var DeleteGitHubAccountTokenCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "DeleteGitHubAccountTokenCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteGitHubAccountTokenInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteGitHubAccountTokenOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteGitHubAccountTokenCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteGitHubAccountTokenCommand)(output, context); + } + }; + exports.DeleteGitHubAccountTokenCommand = DeleteGitHubAccountTokenCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteResourcesByExternalIdCommand.js +var require_DeleteResourcesByExternalIdCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteResourcesByExternalIdCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DeleteResourcesByExternalIdCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var DeleteResourcesByExternalIdCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "DeleteResourcesByExternalIdCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteResourcesByExternalIdInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteResourcesByExternalIdOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteResourcesByExternalIdCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteResourcesByExternalIdCommand)(output, context); + } + }; + exports.DeleteResourcesByExternalIdCommand = DeleteResourcesByExternalIdCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeregisterOnPremisesInstanceCommand.js +var require_DeregisterOnPremisesInstanceCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeregisterOnPremisesInstanceCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DeregisterOnPremisesInstanceCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var DeregisterOnPremisesInstanceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "DeregisterOnPremisesInstanceCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeregisterOnPremisesInstanceInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeregisterOnPremisesInstanceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeregisterOnPremisesInstanceCommand)(output, context); + } + }; + exports.DeregisterOnPremisesInstanceCommand = DeregisterOnPremisesInstanceCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetApplicationCommand.js +var require_GetApplicationCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetApplicationCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetApplicationCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetApplicationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetApplicationCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetApplicationInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetApplicationOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetApplicationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetApplicationCommand)(output, context); + } + }; + exports.GetApplicationCommand = GetApplicationCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetApplicationRevisionCommand.js +var require_GetApplicationRevisionCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetApplicationRevisionCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetApplicationRevisionCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetApplicationRevisionCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetApplicationRevisionCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetApplicationRevisionInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetApplicationRevisionOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetApplicationRevisionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetApplicationRevisionCommand)(output, context); + } + }; + exports.GetApplicationRevisionCommand = GetApplicationRevisionCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentCommand.js +var require_GetDeploymentCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetDeploymentCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetDeploymentCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetDeploymentCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetDeploymentInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetDeploymentOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetDeploymentCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetDeploymentCommand)(output, context); + } + }; + exports.GetDeploymentCommand = GetDeploymentCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentConfigCommand.js +var require_GetDeploymentConfigCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentConfigCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetDeploymentConfigCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetDeploymentConfigCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetDeploymentConfigCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetDeploymentConfigInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetDeploymentConfigOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetDeploymentConfigCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetDeploymentConfigCommand)(output, context); + } + }; + exports.GetDeploymentConfigCommand = GetDeploymentConfigCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentGroupCommand.js +var require_GetDeploymentGroupCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentGroupCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetDeploymentGroupCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetDeploymentGroupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetDeploymentGroupCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetDeploymentGroupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetDeploymentGroupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetDeploymentGroupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetDeploymentGroupCommand)(output, context); + } + }; + exports.GetDeploymentGroupCommand = GetDeploymentGroupCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentInstanceCommand.js +var require_GetDeploymentInstanceCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentInstanceCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetDeploymentInstanceCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetDeploymentInstanceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetDeploymentInstanceCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetDeploymentInstanceInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetDeploymentInstanceOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetDeploymentInstanceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetDeploymentInstanceCommand)(output, context); + } + }; + exports.GetDeploymentInstanceCommand = GetDeploymentInstanceCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentTargetCommand.js +var require_GetDeploymentTargetCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentTargetCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetDeploymentTargetCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetDeploymentTargetCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetDeploymentTargetCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetDeploymentTargetInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetDeploymentTargetOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetDeploymentTargetCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetDeploymentTargetCommand)(output, context); + } + }; + exports.GetDeploymentTargetCommand = GetDeploymentTargetCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetOnPremisesInstanceCommand.js +var require_GetOnPremisesInstanceCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetOnPremisesInstanceCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetOnPremisesInstanceCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetOnPremisesInstanceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetOnPremisesInstanceCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetOnPremisesInstanceInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetOnPremisesInstanceOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetOnPremisesInstanceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetOnPremisesInstanceCommand)(output, context); + } + }; + exports.GetOnPremisesInstanceCommand = GetOnPremisesInstanceCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListApplicationRevisionsCommand.js +var require_ListApplicationRevisionsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListApplicationRevisionsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListApplicationRevisionsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListApplicationRevisionsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListApplicationRevisionsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListApplicationRevisionsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListApplicationRevisionsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListApplicationRevisionsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListApplicationRevisionsCommand)(output, context); + } + }; + exports.ListApplicationRevisionsCommand = ListApplicationRevisionsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListApplicationsCommand.js +var require_ListApplicationsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListApplicationsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListApplicationsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListApplicationsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListApplicationsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListApplicationsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListApplicationsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListApplicationsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListApplicationsCommand)(output, context); + } + }; + exports.ListApplicationsCommand = ListApplicationsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentConfigsCommand.js +var require_ListDeploymentConfigsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentConfigsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListDeploymentConfigsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListDeploymentConfigsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListDeploymentConfigsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListDeploymentConfigsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListDeploymentConfigsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListDeploymentConfigsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListDeploymentConfigsCommand)(output, context); + } + }; + exports.ListDeploymentConfigsCommand = ListDeploymentConfigsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentGroupsCommand.js +var require_ListDeploymentGroupsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentGroupsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListDeploymentGroupsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListDeploymentGroupsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListDeploymentGroupsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListDeploymentGroupsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListDeploymentGroupsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListDeploymentGroupsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListDeploymentGroupsCommand)(output, context); + } + }; + exports.ListDeploymentGroupsCommand = ListDeploymentGroupsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentInstancesCommand.js +var require_ListDeploymentInstancesCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentInstancesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListDeploymentInstancesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListDeploymentInstancesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListDeploymentInstancesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListDeploymentInstancesInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListDeploymentInstancesOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListDeploymentInstancesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListDeploymentInstancesCommand)(output, context); + } + }; + exports.ListDeploymentInstancesCommand = ListDeploymentInstancesCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentsCommand.js +var require_ListDeploymentsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListDeploymentsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListDeploymentsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListDeploymentsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListDeploymentsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListDeploymentsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListDeploymentsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListDeploymentsCommand)(output, context); + } + }; + exports.ListDeploymentsCommand = ListDeploymentsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentTargetsCommand.js +var require_ListDeploymentTargetsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentTargetsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListDeploymentTargetsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListDeploymentTargetsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListDeploymentTargetsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListDeploymentTargetsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListDeploymentTargetsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListDeploymentTargetsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListDeploymentTargetsCommand)(output, context); + } + }; + exports.ListDeploymentTargetsCommand = ListDeploymentTargetsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListGitHubAccountTokenNamesCommand.js +var require_ListGitHubAccountTokenNamesCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListGitHubAccountTokenNamesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListGitHubAccountTokenNamesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListGitHubAccountTokenNamesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListGitHubAccountTokenNamesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListGitHubAccountTokenNamesInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListGitHubAccountTokenNamesOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListGitHubAccountTokenNamesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListGitHubAccountTokenNamesCommand)(output, context); + } + }; + exports.ListGitHubAccountTokenNamesCommand = ListGitHubAccountTokenNamesCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListOnPremisesInstancesCommand.js +var require_ListOnPremisesInstancesCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListOnPremisesInstancesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListOnPremisesInstancesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListOnPremisesInstancesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListOnPremisesInstancesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListOnPremisesInstancesInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListOnPremisesInstancesOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListOnPremisesInstancesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListOnPremisesInstancesCommand)(output, context); + } + }; + exports.ListOnPremisesInstancesCommand = ListOnPremisesInstancesCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListTagsForResourceCommand.js +var require_ListTagsForResourceCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListTagsForResourceCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListTagsForResourceCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListTagsForResourceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListTagsForResourceCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListTagsForResourceInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListTagsForResourceOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListTagsForResourceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListTagsForResourceCommand)(output, context); + } + }; + exports.ListTagsForResourceCommand = ListTagsForResourceCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/PutLifecycleEventHookExecutionStatusCommand.js +var require_PutLifecycleEventHookExecutionStatusCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/PutLifecycleEventHookExecutionStatusCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.PutLifecycleEventHookExecutionStatusCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var PutLifecycleEventHookExecutionStatusCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "PutLifecycleEventHookExecutionStatusCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.PutLifecycleEventHookExecutionStatusInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.PutLifecycleEventHookExecutionStatusOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand)(output, context); + } + }; + exports.PutLifecycleEventHookExecutionStatusCommand = PutLifecycleEventHookExecutionStatusCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RegisterApplicationRevisionCommand.js +var require_RegisterApplicationRevisionCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RegisterApplicationRevisionCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.RegisterApplicationRevisionCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var RegisterApplicationRevisionCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "RegisterApplicationRevisionCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.RegisterApplicationRevisionInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1RegisterApplicationRevisionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1RegisterApplicationRevisionCommand)(output, context); + } + }; + exports.RegisterApplicationRevisionCommand = RegisterApplicationRevisionCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RegisterOnPremisesInstanceCommand.js +var require_RegisterOnPremisesInstanceCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RegisterOnPremisesInstanceCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.RegisterOnPremisesInstanceCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var RegisterOnPremisesInstanceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "RegisterOnPremisesInstanceCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.RegisterOnPremisesInstanceInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1RegisterOnPremisesInstanceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1RegisterOnPremisesInstanceCommand)(output, context); + } + }; + exports.RegisterOnPremisesInstanceCommand = RegisterOnPremisesInstanceCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RemoveTagsFromOnPremisesInstancesCommand.js +var require_RemoveTagsFromOnPremisesInstancesCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RemoveTagsFromOnPremisesInstancesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.RemoveTagsFromOnPremisesInstancesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var RemoveTagsFromOnPremisesInstancesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "RemoveTagsFromOnPremisesInstancesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.RemoveTagsFromOnPremisesInstancesInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand)(output, context); + } + }; + exports.RemoveTagsFromOnPremisesInstancesCommand = RemoveTagsFromOnPremisesInstancesCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/SkipWaitTimeForInstanceTerminationCommand.js +var require_SkipWaitTimeForInstanceTerminationCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/SkipWaitTimeForInstanceTerminationCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SkipWaitTimeForInstanceTerminationCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var SkipWaitTimeForInstanceTerminationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "SkipWaitTimeForInstanceTerminationCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.SkipWaitTimeForInstanceTerminationInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand)(output, context); + } + }; + exports.SkipWaitTimeForInstanceTerminationCommand = SkipWaitTimeForInstanceTerminationCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/StopDeploymentCommand.js +var require_StopDeploymentCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/StopDeploymentCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.StopDeploymentCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var StopDeploymentCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "StopDeploymentCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.StopDeploymentInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.StopDeploymentOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1StopDeploymentCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1StopDeploymentCommand)(output, context); + } + }; + exports.StopDeploymentCommand = StopDeploymentCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/TagResourceCommand.js +var require_TagResourceCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/TagResourceCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.TagResourceCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var TagResourceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "TagResourceCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.TagResourceInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.TagResourceOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1TagResourceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1TagResourceCommand)(output, context); + } + }; + exports.TagResourceCommand = TagResourceCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UntagResourceCommand.js +var require_UntagResourceCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UntagResourceCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.UntagResourceCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var UntagResourceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "UntagResourceCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UntagResourceInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UntagResourceOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UntagResourceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UntagResourceCommand)(output, context); + } + }; + exports.UntagResourceCommand = UntagResourceCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UpdateApplicationCommand.js +var require_UpdateApplicationCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UpdateApplicationCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.UpdateApplicationCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var UpdateApplicationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "UpdateApplicationCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateApplicationInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateApplicationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateApplicationCommand)(output, context); + } + }; + exports.UpdateApplicationCommand = UpdateApplicationCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UpdateDeploymentGroupCommand.js +var require_UpdateDeploymentGroupCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UpdateDeploymentGroupCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.UpdateDeploymentGroupCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var UpdateDeploymentGroupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "UpdateDeploymentGroupCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateDeploymentGroupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateDeploymentGroupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateDeploymentGroupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateDeploymentGroupCommand)(output, context); + } + }; + exports.UpdateDeploymentGroupCommand = UpdateDeploymentGroupCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/CodeDeploy.js +var require_CodeDeploy = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/CodeDeploy.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CodeDeploy = void 0; + var CodeDeployClient_1 = require_CodeDeployClient(); + var AddTagsToOnPremisesInstancesCommand_1 = require_AddTagsToOnPremisesInstancesCommand(); + var BatchGetApplicationRevisionsCommand_1 = require_BatchGetApplicationRevisionsCommand(); + var BatchGetApplicationsCommand_1 = require_BatchGetApplicationsCommand(); + var BatchGetDeploymentGroupsCommand_1 = require_BatchGetDeploymentGroupsCommand(); + var BatchGetDeploymentInstancesCommand_1 = require_BatchGetDeploymentInstancesCommand(); + var BatchGetDeploymentsCommand_1 = require_BatchGetDeploymentsCommand(); + var BatchGetDeploymentTargetsCommand_1 = require_BatchGetDeploymentTargetsCommand(); + var BatchGetOnPremisesInstancesCommand_1 = require_BatchGetOnPremisesInstancesCommand(); + var ContinueDeploymentCommand_1 = require_ContinueDeploymentCommand(); + var CreateApplicationCommand_1 = require_CreateApplicationCommand(); + var CreateDeploymentCommand_1 = require_CreateDeploymentCommand(); + var CreateDeploymentConfigCommand_1 = require_CreateDeploymentConfigCommand(); + var CreateDeploymentGroupCommand_1 = require_CreateDeploymentGroupCommand(); + var DeleteApplicationCommand_1 = require_DeleteApplicationCommand(); + var DeleteDeploymentConfigCommand_1 = require_DeleteDeploymentConfigCommand(); + var DeleteDeploymentGroupCommand_1 = require_DeleteDeploymentGroupCommand(); + var DeleteGitHubAccountTokenCommand_1 = require_DeleteGitHubAccountTokenCommand(); + var DeleteResourcesByExternalIdCommand_1 = require_DeleteResourcesByExternalIdCommand(); + var DeregisterOnPremisesInstanceCommand_1 = require_DeregisterOnPremisesInstanceCommand(); + var GetApplicationCommand_1 = require_GetApplicationCommand(); + var GetApplicationRevisionCommand_1 = require_GetApplicationRevisionCommand(); + var GetDeploymentCommand_1 = require_GetDeploymentCommand(); + var GetDeploymentConfigCommand_1 = require_GetDeploymentConfigCommand(); + var GetDeploymentGroupCommand_1 = require_GetDeploymentGroupCommand(); + var GetDeploymentInstanceCommand_1 = require_GetDeploymentInstanceCommand(); + var GetDeploymentTargetCommand_1 = require_GetDeploymentTargetCommand(); + var GetOnPremisesInstanceCommand_1 = require_GetOnPremisesInstanceCommand(); + var ListApplicationRevisionsCommand_1 = require_ListApplicationRevisionsCommand(); + var ListApplicationsCommand_1 = require_ListApplicationsCommand(); + var ListDeploymentConfigsCommand_1 = require_ListDeploymentConfigsCommand(); + var ListDeploymentGroupsCommand_1 = require_ListDeploymentGroupsCommand(); + var ListDeploymentInstancesCommand_1 = require_ListDeploymentInstancesCommand(); + var ListDeploymentsCommand_1 = require_ListDeploymentsCommand(); + var ListDeploymentTargetsCommand_1 = require_ListDeploymentTargetsCommand(); + var ListGitHubAccountTokenNamesCommand_1 = require_ListGitHubAccountTokenNamesCommand(); + var ListOnPremisesInstancesCommand_1 = require_ListOnPremisesInstancesCommand(); + var ListTagsForResourceCommand_1 = require_ListTagsForResourceCommand(); + var PutLifecycleEventHookExecutionStatusCommand_1 = require_PutLifecycleEventHookExecutionStatusCommand(); + var RegisterApplicationRevisionCommand_1 = require_RegisterApplicationRevisionCommand(); + var RegisterOnPremisesInstanceCommand_1 = require_RegisterOnPremisesInstanceCommand(); + var RemoveTagsFromOnPremisesInstancesCommand_1 = require_RemoveTagsFromOnPremisesInstancesCommand(); + var SkipWaitTimeForInstanceTerminationCommand_1 = require_SkipWaitTimeForInstanceTerminationCommand(); + var StopDeploymentCommand_1 = require_StopDeploymentCommand(); + var TagResourceCommand_1 = require_TagResourceCommand(); + var UntagResourceCommand_1 = require_UntagResourceCommand(); + var UpdateApplicationCommand_1 = require_UpdateApplicationCommand(); + var UpdateDeploymentGroupCommand_1 = require_UpdateDeploymentGroupCommand(); + var CodeDeploy2 = class extends CodeDeployClient_1.CodeDeployClient { + addTagsToOnPremisesInstances(args, optionsOrCb, cb) { + const command = new AddTagsToOnPremisesInstancesCommand_1.AddTagsToOnPremisesInstancesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetApplicationRevisions(args, optionsOrCb, cb) { + const command = new BatchGetApplicationRevisionsCommand_1.BatchGetApplicationRevisionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetApplications(args, optionsOrCb, cb) { + const command = new BatchGetApplicationsCommand_1.BatchGetApplicationsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetDeploymentGroups(args, optionsOrCb, cb) { + const command = new BatchGetDeploymentGroupsCommand_1.BatchGetDeploymentGroupsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetDeploymentInstances(args, optionsOrCb, cb) { + const command = new BatchGetDeploymentInstancesCommand_1.BatchGetDeploymentInstancesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetDeployments(args, optionsOrCb, cb) { + const command = new BatchGetDeploymentsCommand_1.BatchGetDeploymentsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetDeploymentTargets(args, optionsOrCb, cb) { + const command = new BatchGetDeploymentTargetsCommand_1.BatchGetDeploymentTargetsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetOnPremisesInstances(args, optionsOrCb, cb) { + const command = new BatchGetOnPremisesInstancesCommand_1.BatchGetOnPremisesInstancesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + continueDeployment(args, optionsOrCb, cb) { + const command = new ContinueDeploymentCommand_1.ContinueDeploymentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + createApplication(args, optionsOrCb, cb) { + const command = new CreateApplicationCommand_1.CreateApplicationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + createDeployment(args, optionsOrCb, cb) { + const command = new CreateDeploymentCommand_1.CreateDeploymentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + createDeploymentConfig(args, optionsOrCb, cb) { + const command = new CreateDeploymentConfigCommand_1.CreateDeploymentConfigCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + createDeploymentGroup(args, optionsOrCb, cb) { + const command = new CreateDeploymentGroupCommand_1.CreateDeploymentGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteApplication(args, optionsOrCb, cb) { + const command = new DeleteApplicationCommand_1.DeleteApplicationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteDeploymentConfig(args, optionsOrCb, cb) { + const command = new DeleteDeploymentConfigCommand_1.DeleteDeploymentConfigCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteDeploymentGroup(args, optionsOrCb, cb) { + const command = new DeleteDeploymentGroupCommand_1.DeleteDeploymentGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteGitHubAccountToken(args, optionsOrCb, cb) { + const command = new DeleteGitHubAccountTokenCommand_1.DeleteGitHubAccountTokenCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteResourcesByExternalId(args, optionsOrCb, cb) { + const command = new DeleteResourcesByExternalIdCommand_1.DeleteResourcesByExternalIdCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deregisterOnPremisesInstance(args, optionsOrCb, cb) { + const command = new DeregisterOnPremisesInstanceCommand_1.DeregisterOnPremisesInstanceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getApplication(args, optionsOrCb, cb) { + const command = new GetApplicationCommand_1.GetApplicationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getApplicationRevision(args, optionsOrCb, cb) { + const command = new GetApplicationRevisionCommand_1.GetApplicationRevisionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getDeployment(args, optionsOrCb, cb) { + const command = new GetDeploymentCommand_1.GetDeploymentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getDeploymentConfig(args, optionsOrCb, cb) { + const command = new GetDeploymentConfigCommand_1.GetDeploymentConfigCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getDeploymentGroup(args, optionsOrCb, cb) { + const command = new GetDeploymentGroupCommand_1.GetDeploymentGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getDeploymentInstance(args, optionsOrCb, cb) { + const command = new GetDeploymentInstanceCommand_1.GetDeploymentInstanceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getDeploymentTarget(args, optionsOrCb, cb) { + const command = new GetDeploymentTargetCommand_1.GetDeploymentTargetCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getOnPremisesInstance(args, optionsOrCb, cb) { + const command = new GetOnPremisesInstanceCommand_1.GetOnPremisesInstanceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listApplicationRevisions(args, optionsOrCb, cb) { + const command = new ListApplicationRevisionsCommand_1.ListApplicationRevisionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listApplications(args, optionsOrCb, cb) { + const command = new ListApplicationsCommand_1.ListApplicationsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listDeploymentConfigs(args, optionsOrCb, cb) { + const command = new ListDeploymentConfigsCommand_1.ListDeploymentConfigsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listDeploymentGroups(args, optionsOrCb, cb) { + const command = new ListDeploymentGroupsCommand_1.ListDeploymentGroupsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listDeploymentInstances(args, optionsOrCb, cb) { + const command = new ListDeploymentInstancesCommand_1.ListDeploymentInstancesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listDeployments(args, optionsOrCb, cb) { + const command = new ListDeploymentsCommand_1.ListDeploymentsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listDeploymentTargets(args, optionsOrCb, cb) { + const command = new ListDeploymentTargetsCommand_1.ListDeploymentTargetsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listGitHubAccountTokenNames(args, optionsOrCb, cb) { + const command = new ListGitHubAccountTokenNamesCommand_1.ListGitHubAccountTokenNamesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listOnPremisesInstances(args, optionsOrCb, cb) { + const command = new ListOnPremisesInstancesCommand_1.ListOnPremisesInstancesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listTagsForResource(args, optionsOrCb, cb) { + const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + putLifecycleEventHookExecutionStatus(args, optionsOrCb, cb) { + const command = new PutLifecycleEventHookExecutionStatusCommand_1.PutLifecycleEventHookExecutionStatusCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + registerApplicationRevision(args, optionsOrCb, cb) { + const command = new RegisterApplicationRevisionCommand_1.RegisterApplicationRevisionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + registerOnPremisesInstance(args, optionsOrCb, cb) { + const command = new RegisterOnPremisesInstanceCommand_1.RegisterOnPremisesInstanceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + removeTagsFromOnPremisesInstances(args, optionsOrCb, cb) { + const command = new RemoveTagsFromOnPremisesInstancesCommand_1.RemoveTagsFromOnPremisesInstancesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + skipWaitTimeForInstanceTermination(args, optionsOrCb, cb) { + const command = new SkipWaitTimeForInstanceTerminationCommand_1.SkipWaitTimeForInstanceTerminationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + stopDeployment(args, optionsOrCb, cb) { + const command = new StopDeploymentCommand_1.StopDeploymentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + tagResource(args, optionsOrCb, cb) { + const command = new TagResourceCommand_1.TagResourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + untagResource(args, optionsOrCb, cb) { + const command = new UntagResourceCommand_1.UntagResourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateApplication(args, optionsOrCb, cb) { + const command = new UpdateApplicationCommand_1.UpdateApplicationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateDeploymentGroup(args, optionsOrCb, cb) { + const command = new UpdateDeploymentGroupCommand_1.UpdateDeploymentGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + }; + exports.CodeDeploy = CodeDeploy2; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/index.js +var require_commands3 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_AddTagsToOnPremisesInstancesCommand(), exports); + tslib_1.__exportStar(require_BatchGetApplicationRevisionsCommand(), exports); + tslib_1.__exportStar(require_BatchGetApplicationsCommand(), exports); + tslib_1.__exportStar(require_BatchGetDeploymentGroupsCommand(), exports); + tslib_1.__exportStar(require_BatchGetDeploymentInstancesCommand(), exports); + tslib_1.__exportStar(require_BatchGetDeploymentTargetsCommand(), exports); + tslib_1.__exportStar(require_BatchGetDeploymentsCommand(), exports); + tslib_1.__exportStar(require_BatchGetOnPremisesInstancesCommand(), exports); + tslib_1.__exportStar(require_ContinueDeploymentCommand(), exports); + tslib_1.__exportStar(require_CreateApplicationCommand(), exports); + tslib_1.__exportStar(require_CreateDeploymentCommand(), exports); + tslib_1.__exportStar(require_CreateDeploymentConfigCommand(), exports); + tslib_1.__exportStar(require_CreateDeploymentGroupCommand(), exports); + tslib_1.__exportStar(require_DeleteApplicationCommand(), exports); + tslib_1.__exportStar(require_DeleteDeploymentConfigCommand(), exports); + tslib_1.__exportStar(require_DeleteDeploymentGroupCommand(), exports); + tslib_1.__exportStar(require_DeleteGitHubAccountTokenCommand(), exports); + tslib_1.__exportStar(require_DeleteResourcesByExternalIdCommand(), exports); + tslib_1.__exportStar(require_DeregisterOnPremisesInstanceCommand(), exports); + tslib_1.__exportStar(require_GetApplicationCommand(), exports); + tslib_1.__exportStar(require_GetApplicationRevisionCommand(), exports); + tslib_1.__exportStar(require_GetDeploymentCommand(), exports); + tslib_1.__exportStar(require_GetDeploymentConfigCommand(), exports); + tslib_1.__exportStar(require_GetDeploymentGroupCommand(), exports); + tslib_1.__exportStar(require_GetDeploymentInstanceCommand(), exports); + tslib_1.__exportStar(require_GetDeploymentTargetCommand(), exports); + tslib_1.__exportStar(require_GetOnPremisesInstanceCommand(), exports); + tslib_1.__exportStar(require_ListApplicationRevisionsCommand(), exports); + tslib_1.__exportStar(require_ListApplicationsCommand(), exports); + tslib_1.__exportStar(require_ListDeploymentConfigsCommand(), exports); + tslib_1.__exportStar(require_ListDeploymentGroupsCommand(), exports); + tslib_1.__exportStar(require_ListDeploymentInstancesCommand(), exports); + tslib_1.__exportStar(require_ListDeploymentTargetsCommand(), exports); + tslib_1.__exportStar(require_ListDeploymentsCommand(), exports); + tslib_1.__exportStar(require_ListGitHubAccountTokenNamesCommand(), exports); + tslib_1.__exportStar(require_ListOnPremisesInstancesCommand(), exports); + tslib_1.__exportStar(require_ListTagsForResourceCommand(), exports); + tslib_1.__exportStar(require_PutLifecycleEventHookExecutionStatusCommand(), exports); + tslib_1.__exportStar(require_RegisterApplicationRevisionCommand(), exports); + tslib_1.__exportStar(require_RegisterOnPremisesInstanceCommand(), exports); + tslib_1.__exportStar(require_RemoveTagsFromOnPremisesInstancesCommand(), exports); + tslib_1.__exportStar(require_SkipWaitTimeForInstanceTerminationCommand(), exports); + tslib_1.__exportStar(require_StopDeploymentCommand(), exports); + tslib_1.__exportStar(require_TagResourceCommand(), exports); + tslib_1.__exportStar(require_UntagResourceCommand(), exports); + tslib_1.__exportStar(require_UpdateApplicationCommand(), exports); + tslib_1.__exportStar(require_UpdateDeploymentGroupCommand(), exports); + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/index.js +var require_models3 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_models_03(), exports); + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/Interfaces.js +var require_Interfaces2 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/Interfaces.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListApplicationRevisionsPaginator.js +var require_ListApplicationRevisionsPaginator = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListApplicationRevisionsPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListApplicationRevisions = void 0; + var CodeDeploy_1 = require_CodeDeploy(); + var CodeDeployClient_1 = require_CodeDeployClient(); + var ListApplicationRevisionsCommand_1 = require_ListApplicationRevisionsCommand(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListApplicationRevisionsCommand_1.ListApplicationRevisionsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listApplicationRevisions(input, ...args); + }; + async function* paginateListApplicationRevisions(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + if (config.client instanceof CodeDeploy_1.CodeDeploy) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof CodeDeployClient_1.CodeDeployClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListApplicationRevisions = paginateListApplicationRevisions; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListApplicationsPaginator.js +var require_ListApplicationsPaginator = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListApplicationsPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListApplications = void 0; + var CodeDeploy_1 = require_CodeDeploy(); + var CodeDeployClient_1 = require_CodeDeployClient(); + var ListApplicationsCommand_1 = require_ListApplicationsCommand(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListApplicationsCommand_1.ListApplicationsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listApplications(input, ...args); + }; + async function* paginateListApplications(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + if (config.client instanceof CodeDeploy_1.CodeDeploy) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof CodeDeployClient_1.CodeDeployClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListApplications = paginateListApplications; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentConfigsPaginator.js +var require_ListDeploymentConfigsPaginator = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentConfigsPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListDeploymentConfigs = void 0; + var CodeDeploy_1 = require_CodeDeploy(); + var CodeDeployClient_1 = require_CodeDeployClient(); + var ListDeploymentConfigsCommand_1 = require_ListDeploymentConfigsCommand(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListDeploymentConfigsCommand_1.ListDeploymentConfigsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listDeploymentConfigs(input, ...args); + }; + async function* paginateListDeploymentConfigs(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + if (config.client instanceof CodeDeploy_1.CodeDeploy) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof CodeDeployClient_1.CodeDeployClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListDeploymentConfigs = paginateListDeploymentConfigs; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentGroupsPaginator.js +var require_ListDeploymentGroupsPaginator = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentGroupsPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListDeploymentGroups = void 0; + var CodeDeploy_1 = require_CodeDeploy(); + var CodeDeployClient_1 = require_CodeDeployClient(); + var ListDeploymentGroupsCommand_1 = require_ListDeploymentGroupsCommand(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListDeploymentGroupsCommand_1.ListDeploymentGroupsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listDeploymentGroups(input, ...args); + }; + async function* paginateListDeploymentGroups(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + if (config.client instanceof CodeDeploy_1.CodeDeploy) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof CodeDeployClient_1.CodeDeployClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListDeploymentGroups = paginateListDeploymentGroups; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentInstancesPaginator.js +var require_ListDeploymentInstancesPaginator = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentInstancesPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListDeploymentInstances = void 0; + var CodeDeploy_1 = require_CodeDeploy(); + var CodeDeployClient_1 = require_CodeDeployClient(); + var ListDeploymentInstancesCommand_1 = require_ListDeploymentInstancesCommand(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListDeploymentInstancesCommand_1.ListDeploymentInstancesCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listDeploymentInstances(input, ...args); + }; + async function* paginateListDeploymentInstances(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + if (config.client instanceof CodeDeploy_1.CodeDeploy) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof CodeDeployClient_1.CodeDeployClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListDeploymentInstances = paginateListDeploymentInstances; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentsPaginator.js +var require_ListDeploymentsPaginator = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentsPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListDeployments = void 0; + var CodeDeploy_1 = require_CodeDeploy(); + var CodeDeployClient_1 = require_CodeDeployClient(); + var ListDeploymentsCommand_1 = require_ListDeploymentsCommand(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListDeploymentsCommand_1.ListDeploymentsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listDeployments(input, ...args); + }; + async function* paginateListDeployments(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + if (config.client instanceof CodeDeploy_1.CodeDeploy) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof CodeDeployClient_1.CodeDeployClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListDeployments = paginateListDeployments; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/index.js +var require_pagination2 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_Interfaces2(), exports); + tslib_1.__exportStar(require_ListApplicationRevisionsPaginator(), exports); + tslib_1.__exportStar(require_ListApplicationsPaginator(), exports); + tslib_1.__exportStar(require_ListDeploymentConfigsPaginator(), exports); + tslib_1.__exportStar(require_ListDeploymentGroupsPaginator(), exports); + tslib_1.__exportStar(require_ListDeploymentInstancesPaginator(), exports); + tslib_1.__exportStar(require_ListDeploymentsPaginator(), exports); + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/sleep.js +var require_sleep = __commonJS({ + "node_modules/@aws-sdk/util-waiter/dist-cjs/utils/sleep.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.sleep = void 0; + var sleep = (seconds) => { + return new Promise((resolve) => setTimeout(resolve, seconds * 1e3)); + }; + exports.sleep = sleep; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/waiter.js +var require_waiter = __commonJS({ + "node_modules/@aws-sdk/util-waiter/dist-cjs/waiter.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.checkExceptions = exports.WaiterState = exports.waiterServiceDefaults = void 0; + exports.waiterServiceDefaults = { + minDelay: 2, + maxDelay: 120 + }; + var WaiterState; + (function(WaiterState2) { + WaiterState2["ABORTED"] = "ABORTED"; + WaiterState2["FAILURE"] = "FAILURE"; + WaiterState2["SUCCESS"] = "SUCCESS"; + WaiterState2["RETRY"] = "RETRY"; + WaiterState2["TIMEOUT"] = "TIMEOUT"; + })(WaiterState = exports.WaiterState || (exports.WaiterState = {})); + var checkExceptions = (result) => { + if (result.state === WaiterState.ABORTED) { + const abortError = new Error(`${JSON.stringify({ + ...result, + reason: "Request was aborted" + })}`); + abortError.name = "AbortError"; + throw abortError; + } else if (result.state === WaiterState.TIMEOUT) { + const timeoutError = new Error(`${JSON.stringify({ + ...result, + reason: "Waiter has timed out" + })}`); + timeoutError.name = "TimeoutError"; + throw timeoutError; + } else if (result.state !== WaiterState.SUCCESS) { + throw new Error(`${JSON.stringify({ result })}`); + } + return result; + }; + exports.checkExceptions = checkExceptions; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/poller.js +var require_poller = __commonJS({ + "node_modules/@aws-sdk/util-waiter/dist-cjs/poller.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.runPolling = void 0; + var sleep_1 = require_sleep(); + var waiter_1 = require_waiter(); + var exponentialBackoffWithJitter = (minDelay, maxDelay, attemptCeiling, attempt) => { + if (attempt > attemptCeiling) + return maxDelay; + const delay = minDelay * 2 ** (attempt - 1); + return randomInRange(minDelay, delay); + }; + var randomInRange = (min, max) => min + Math.random() * (max - min); + var runPolling = async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => { + var _a; + const { state, reason } = await acceptorChecks(client, input); + if (state !== waiter_1.WaiterState.RETRY) { + return { state, reason }; + } + let currentAttempt = 1; + const waitUntil = Date.now() + maxWaitTime * 1e3; + const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1; + while (true) { + if (((_a = abortController === null || abortController === void 0 ? void 0 : abortController.signal) === null || _a === void 0 ? void 0 : _a.aborted) || (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted)) { + return { state: waiter_1.WaiterState.ABORTED }; + } + const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt); + if (Date.now() + delay * 1e3 > waitUntil) { + return { state: waiter_1.WaiterState.TIMEOUT }; + } + await (0, sleep_1.sleep)(delay); + const { state: state2, reason: reason2 } = await acceptorChecks(client, input); + if (state2 !== waiter_1.WaiterState.RETRY) { + return { state: state2, reason: reason2 }; + } + currentAttempt += 1; + } + }; + exports.runPolling = runPolling; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/validate.js +var require_validate2 = __commonJS({ + "node_modules/@aws-sdk/util-waiter/dist-cjs/utils/validate.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.validateWaiterOptions = void 0; + var validateWaiterOptions = (options) => { + if (options.maxWaitTime < 1) { + throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`); + } else if (options.minDelay < 1) { + throw new Error(`WaiterConfiguration.minDelay must be greater than 0`); + } else if (options.maxDelay < 1) { + throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`); + } else if (options.maxWaitTime <= options.minDelay) { + throw new Error(`WaiterConfiguration.maxWaitTime [${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); + } else if (options.maxDelay < options.minDelay) { + throw new Error(`WaiterConfiguration.maxDelay [${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); + } + }; + exports.validateWaiterOptions = validateWaiterOptions; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/index.js +var require_utils = __commonJS({ + "node_modules/@aws-sdk/util-waiter/dist-cjs/utils/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_sleep(), exports); + tslib_1.__exportStar(require_validate2(), exports); + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/createWaiter.js +var require_createWaiter = __commonJS({ + "node_modules/@aws-sdk/util-waiter/dist-cjs/createWaiter.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.createWaiter = void 0; + var poller_1 = require_poller(); + var utils_1 = require_utils(); + var waiter_1 = require_waiter(); + var abortTimeout = async (abortSignal) => { + return new Promise((resolve) => { + abortSignal.onabort = () => resolve({ state: waiter_1.WaiterState.ABORTED }); + }); + }; + var createWaiter = async (options, input, acceptorChecks) => { + const params = { + ...waiter_1.waiterServiceDefaults, + ...options + }; + (0, utils_1.validateWaiterOptions)(params); + const exitConditions = [(0, poller_1.runPolling)(params, input, acceptorChecks)]; + if (options.abortController) { + exitConditions.push(abortTimeout(options.abortController.signal)); + } + if (options.abortSignal) { + exitConditions.push(abortTimeout(options.abortSignal)); + } + return Promise.race(exitConditions); + }; + exports.createWaiter = createWaiter; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/index.js +var require_dist_cjs44 = __commonJS({ + "node_modules/@aws-sdk/util-waiter/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_createWaiter(), exports); + tslib_1.__exportStar(require_waiter(), exports); + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/waiters/waitForDeploymentSuccessful.js +var require_waitForDeploymentSuccessful = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/waiters/waitForDeploymentSuccessful.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.waitUntilDeploymentSuccessful = exports.waitForDeploymentSuccessful = void 0; + var util_waiter_1 = require_dist_cjs44(); + var GetDeploymentCommand_1 = require_GetDeploymentCommand(); + var checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new GetDeploymentCommand_1.GetDeploymentCommand(input)); + reason = result; + try { + const returnComparator = () => { + return result.deploymentInfo.status; + }; + if (returnComparator() === "Succeeded") { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } + } catch (e) { + } + try { + const returnComparator = () => { + return result.deploymentInfo.status; + }; + if (returnComparator() === "Failed") { + return { state: util_waiter_1.WaiterState.FAILURE, reason }; + } + } catch (e) { + } + try { + const returnComparator = () => { + return result.deploymentInfo.status; + }; + if (returnComparator() === "Stopped") { + return { state: util_waiter_1.WaiterState.FAILURE, reason }; + } + } catch (e) { + } + } catch (exception) { + reason = exception; + } + return { state: util_waiter_1.WaiterState.RETRY, reason }; + }; + var waitForDeploymentSuccessful = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + }; + exports.waitForDeploymentSuccessful = waitForDeploymentSuccessful; + var waitUntilDeploymentSuccessful = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); + }; + exports.waitUntilDeploymentSuccessful = waitUntilDeploymentSuccessful; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/waiters/index.js +var require_waiters = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/waiters/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_waitForDeploymentSuccessful(), exports); + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +var require_dist_cjs45 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CodeDeployServiceException = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_CodeDeploy(), exports); + tslib_1.__exportStar(require_CodeDeployClient(), exports); + tslib_1.__exportStar(require_commands3(), exports); + tslib_1.__exportStar(require_models3(), exports); + tslib_1.__exportStar(require_pagination2(), exports); + tslib_1.__exportStar(require_waiters(), exports); + var CodeDeployServiceException_1 = require_CodeDeployServiceException(); + Object.defineProperty(exports, "CodeDeployServiceException", { enumerable: true, get: function() { + return CodeDeployServiceException_1.CodeDeployServiceException; + } }); + } +}); + +// packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/lib/on-event.ts +var on_event_exports = {}; +__export(on_event_exports, { + handler: () => handler +}); +module.exports = __toCommonJS(on_event_exports); +var import_logger = __toESM(require_lib2()); +var import_client_codedeploy = __toESM(require_dist_cjs45()); +var logger = new import_logger.Logger({ serviceName: "ecsDeploymentProviderOnEvent" }); +var codedeployClient = new import_client_codedeploy.CodeDeploy({}); +async function handler(event) { + var _a; + logger.appendKeys({ + stackEvent: event.RequestType + }); + switch (event.RequestType) { + case "Create": + case "Update": { + const props = event.ResourceProperties; + const resp = await codedeployClient.createDeployment({ + applicationName: props.applicationName, + deploymentConfigName: props.deploymentConfigName, + deploymentGroupName: props.deploymentGroupName, + autoRollbackConfiguration: { + enabled: props.autoRollbackConfigurationEnabled === "true", + events: (_a = props.autoRollbackConfigurationEvents) == null ? void 0 : _a.split(",") + }, + description: props.description, + revision: { + revisionType: "AppSpecContent", + appSpecContent: { + content: props.revisionAppSpecContent + } + } + }); + if (!resp.deploymentId) { + throw new Error("No deploymentId received from call to CreateDeployment"); + } + logger.appendKeys({ + deploymentId: resp.deploymentId + }); + logger.info("Created new deployment"); + return { + PhysicalResourceId: resp.deploymentId, + Data: { + deploymentId: resp.deploymentId + } + }; + } + case "Delete": + logger.appendKeys({ + deploymentId: event.PhysicalResourceId + }); + try { + const resp = await codedeployClient.stopDeployment({ + deploymentId: event.PhysicalResourceId, + autoRollbackEnabled: true + }); + logger.info(`Stopped deployment: ${resp.status} ${resp.statusMessage}`); + } catch (e) { + logger.warn("Ignoring error", e); + } + return {}; + default: + logger.error("Unknown stack event"); + throw new Error(`Unknown request type: ${event.RequestType}`); + } +} +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + handler +}); diff --git a/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/cfn-response.js b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/cfn-response.js new file mode 100644 index 0000000000000..6319e06391def --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/cfn-response.js @@ -0,0 +1,83 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Retry = exports.safeHandler = exports.includeStackTraces = exports.submitResponse = exports.MISSING_PHYSICAL_ID_MARKER = exports.CREATE_FAILED_PHYSICAL_ID_MARKER = void 0; +/* eslint-disable max-len */ +/* eslint-disable no-console */ +const url = require("url"); +const outbound_1 = require("./outbound"); +const util_1 = require("./util"); +exports.CREATE_FAILED_PHYSICAL_ID_MARKER = 'AWSCDK::CustomResourceProviderFramework::CREATE_FAILED'; +exports.MISSING_PHYSICAL_ID_MARKER = 'AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID'; +async function submitResponse(status, event, options = {}) { + const json = { + Status: status, + Reason: options.reason || status, + StackId: event.StackId, + RequestId: event.RequestId, + PhysicalResourceId: event.PhysicalResourceId || exports.MISSING_PHYSICAL_ID_MARKER, + LogicalResourceId: event.LogicalResourceId, + NoEcho: options.noEcho, + Data: event.Data, + }; + util_1.log('submit response to cloudformation', json); + const responseBody = JSON.stringify(json); + const parsedUrl = url.parse(event.ResponseURL); + await outbound_1.httpRequest({ + hostname: parsedUrl.hostname, + path: parsedUrl.path, + method: 'PUT', + headers: { + 'content-type': '', + 'content-length': responseBody.length, + }, + }, responseBody); +} +exports.submitResponse = submitResponse; +exports.includeStackTraces = true; // for unit tests +function safeHandler(block) { + return async (event) => { + // ignore DELETE event when the physical resource ID is the marker that + // indicates that this DELETE is a subsequent DELETE to a failed CREATE + // operation. + if (event.RequestType === 'Delete' && event.PhysicalResourceId === exports.CREATE_FAILED_PHYSICAL_ID_MARKER) { + util_1.log('ignoring DELETE event caused by a failed CREATE event'); + await submitResponse('SUCCESS', event); + return; + } + try { + await block(event); + } + catch (e) { + // tell waiter state machine to retry + if (e instanceof Retry) { + util_1.log('retry requested by handler'); + throw e; + } + if (!event.PhysicalResourceId) { + // special case: if CREATE fails, which usually implies, we usually don't + // have a physical resource id. in this case, the subsequent DELETE + // operation does not have any meaning, and will likely fail as well. to + // address this, we use a marker so the provider framework can simply + // ignore the subsequent DELETE. + if (event.RequestType === 'Create') { + util_1.log('CREATE failed, responding with a marker physical resource id so that the subsequent DELETE will be ignored'); + event.PhysicalResourceId = exports.CREATE_FAILED_PHYSICAL_ID_MARKER; + } + else { + // otherwise, if PhysicalResourceId is not specified, something is + // terribly wrong because all other events should have an ID. + util_1.log(`ERROR: Malformed event. "PhysicalResourceId" is required: ${JSON.stringify({ ...event, ResponseURL: '...' })}`); + } + } + // this is an actual error, fail the activity altogether and exist. + await submitResponse('FAILED', event, { + reason: exports.includeStackTraces ? e.stack : e.message, + }); + } + }; +} +exports.safeHandler = safeHandler; +class Retry extends Error { +} +exports.Retry = Retry; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2ZuLXJlc3BvbnNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiY2ZuLXJlc3BvbnNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDRCQUE0QjtBQUM1QiwrQkFBK0I7QUFDL0IsMkJBQTJCO0FBQzNCLHlDQUF5QztBQUN6QyxpQ0FBNkI7QUFFaEIsUUFBQSxnQ0FBZ0MsR0FBRyx3REFBd0QsQ0FBQztBQUM1RixRQUFBLDBCQUEwQixHQUFHLDhEQUE4RCxDQUFDO0FBZ0JsRyxLQUFLLFVBQVUsY0FBYyxDQUFDLE1BQTRCLEVBQUUsS0FBaUMsRUFBRSxVQUF5QyxFQUFHO0lBQ2hKLE1BQU0sSUFBSSxHQUFtRDtRQUMzRCxNQUFNLEVBQUUsTUFBTTtRQUNkLE1BQU0sRUFBRSxPQUFPLENBQUMsTUFBTSxJQUFJLE1BQU07UUFDaEMsT0FBTyxFQUFFLEtBQUssQ0FBQyxPQUFPO1FBQ3RCLFNBQVMsRUFBRSxLQUFLLENBQUMsU0FBUztRQUMxQixrQkFBa0IsRUFBRSxLQUFLLENBQUMsa0JBQWtCLElBQUksa0NBQTBCO1FBQzFFLGlCQUFpQixFQUFFLEtBQUssQ0FBQyxpQkFBaUI7UUFDMUMsTUFBTSxFQUFFLE9BQU8sQ0FBQyxNQUFNO1FBQ3RCLElBQUksRUFBRSxLQUFLLENBQUMsSUFBSTtLQUNqQixDQUFDO0lBRUYsVUFBRyxDQUFDLG1DQUFtQyxFQUFFLElBQUksQ0FBQyxDQUFDO0lBRS9DLE1BQU0sWUFBWSxHQUFHLElBQUksQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLENBQUM7SUFFMUMsTUFBTSxTQUFTLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsV0FBVyxDQUFDLENBQUM7SUFDL0MsTUFBTSxzQkFBVyxDQUFDO1FBQ2hCLFFBQVEsRUFBRSxTQUFTLENBQUMsUUFBUTtRQUM1QixJQUFJLEVBQUUsU0FBUyxDQUFDLElBQUk7UUFDcEIsTUFBTSxFQUFFLEtBQUs7UUFDYixPQUFPLEVBQUU7WUFDUCxjQUFjLEVBQUUsRUFBRTtZQUNsQixnQkFBZ0IsRUFBRSxZQUFZLENBQUMsTUFBTTtTQUN0QztLQUNGLEVBQUUsWUFBWSxDQUFDLENBQUM7QUFDbkIsQ0FBQztBQTFCRCx3Q0EwQkM7QUFFVSxRQUFBLGtCQUFrQixHQUFHLElBQUksQ0FBQyxDQUFDLGlCQUFpQjtBQUV2RCxTQUFnQixXQUFXLENBQUMsS0FBb0M7SUFDOUQsT0FBTyxLQUFLLEVBQUUsS0FBVSxFQUFFLEVBQUU7UUFFMUIsdUVBQXVFO1FBQ3ZFLHVFQUF1RTtRQUN2RSxhQUFhO1FBQ2IsSUFBSSxLQUFLLENBQUMsV0FBVyxLQUFLLFFBQVEsSUFBSSxLQUFLLENBQUMsa0JBQWtCLEtBQUssd0NBQWdDLEVBQUU7WUFDbkcsVUFBRyxDQUFDLHVEQUF1RCxDQUFDLENBQUM7WUFDN0QsTUFBTSxjQUFjLENBQUMsU0FBUyxFQUFFLEtBQUssQ0FBQyxDQUFDO1lBQ3ZDLE9BQU87U0FDUjtRQUVELElBQUk7WUFDRixNQUFNLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQztTQUNwQjtRQUFDLE9BQU8sQ0FBQyxFQUFFO1lBQ1YscUNBQXFDO1lBQ3JDLElBQUksQ0FBQyxZQUFZLEtBQUssRUFBRTtnQkFDdEIsVUFBRyxDQUFDLDRCQUE0QixDQUFDLENBQUM7Z0JBQ2xDLE1BQU0sQ0FBQyxDQUFDO2FBQ1Q7WUFFRCxJQUFJLENBQUMsS0FBSyxDQUFDLGtCQUFrQixFQUFFO2dCQUM3Qix5RUFBeUU7Z0JBQ3pFLG1FQUFtRTtnQkFDbkUsd0VBQXdFO2dCQUN4RSxxRUFBcUU7Z0JBQ3JFLGdDQUFnQztnQkFDaEMsSUFBSSxLQUFLLENBQUMsV0FBVyxLQUFLLFFBQVEsRUFBRTtvQkFDbEMsVUFBRyxDQUFDLDRHQUE0RyxDQUFDLENBQUM7b0JBQ2xILEtBQUssQ0FBQyxrQkFBa0IsR0FBRyx3Q0FBZ0MsQ0FBQztpQkFDN0Q7cUJBQU07b0JBQ0wsa0VBQWtFO29CQUNsRSw2REFBNkQ7b0JBQzdELFVBQUcsQ0FBQyw2REFBNkQsSUFBSSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEdBQUcsS0FBSyxFQUFFLFdBQVcsRUFBRSxLQUFLLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQztpQkFDdEg7YUFDRjtZQUVELG1FQUFtRTtZQUNuRSxNQUFNLGNBQWMsQ0FBQyxRQUFRLEVBQUUsS0FBSyxFQUFFO2dCQUNwQyxNQUFNLEVBQUUsMEJBQWtCLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxPQUFPO2FBQ2pELENBQUMsQ0FBQztTQUNKO0lBQ0gsQ0FBQyxDQUFDO0FBQ0osQ0FBQztBQTNDRCxrQ0EyQ0M7QUFFRCxNQUFhLEtBQU0sU0FBUSxLQUFLO0NBQUk7QUFBcEMsc0JBQW9DIiwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgbWF4LWxlbiAqL1xuLyogZXNsaW50LWRpc2FibGUgbm8tY29uc29sZSAqL1xuaW1wb3J0ICogYXMgdXJsIGZyb20gJ3VybCc7XG5pbXBvcnQgeyBodHRwUmVxdWVzdCB9IGZyb20gJy4vb3V0Ym91bmQnO1xuaW1wb3J0IHsgbG9nIH0gZnJvbSAnLi91dGlsJztcblxuZXhwb3J0IGNvbnN0IENSRUFURV9GQUlMRURfUEhZU0lDQUxfSURfTUFSS0VSID0gJ0FXU0NESzo6Q3VzdG9tUmVzb3VyY2VQcm92aWRlckZyYW1ld29yazo6Q1JFQVRFX0ZBSUxFRCc7XG5leHBvcnQgY29uc3QgTUlTU0lOR19QSFlTSUNBTF9JRF9NQVJLRVIgPSAnQVdTQ0RLOjpDdXN0b21SZXNvdXJjZVByb3ZpZGVyRnJhbWV3b3JrOjpNSVNTSU5HX1BIWVNJQ0FMX0lEJztcblxuZXhwb3J0IGludGVyZmFjZSBDbG91ZEZvcm1hdGlvblJlc3BvbnNlT3B0aW9ucyB7XG4gIHJlYWRvbmx5IHJlYXNvbj86IHN0cmluZztcbiAgcmVhZG9ubHkgbm9FY2hvPzogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBDbG91ZEZvcm1hdGlvbkV2ZW50Q29udGV4dCB7XG4gIFN0YWNrSWQ6IHN0cmluZztcbiAgUmVxdWVzdElkOiBzdHJpbmc7XG4gIFBoeXNpY2FsUmVzb3VyY2VJZD86IHN0cmluZztcbiAgTG9naWNhbFJlc291cmNlSWQ6IHN0cmluZztcbiAgUmVzcG9uc2VVUkw6IHN0cmluZztcbiAgRGF0YT86IGFueVxufVxuXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gc3VibWl0UmVzcG9uc2Uoc3RhdHVzOiAnU1VDQ0VTUycgfCAnRkFJTEVEJywgZXZlbnQ6IENsb3VkRm9ybWF0aW9uRXZlbnRDb250ZXh0LCBvcHRpb25zOiBDbG91ZEZvcm1hdGlvblJlc3BvbnNlT3B0aW9ucyA9IHsgfSkge1xuICBjb25zdCBqc29uOiBBV1NMYW1iZGEuQ2xvdWRGb3JtYXRpb25DdXN0b21SZXNvdXJjZVJlc3BvbnNlID0ge1xuICAgIFN0YXR1czogc3RhdHVzLFxuICAgIFJlYXNvbjogb3B0aW9ucy5yZWFzb24gfHwgc3RhdHVzLFxuICAgIFN0YWNrSWQ6IGV2ZW50LlN0YWNrSWQsXG4gICAgUmVxdWVzdElkOiBldmVudC5SZXF1ZXN0SWQsXG4gICAgUGh5c2ljYWxSZXNvdXJjZUlkOiBldmVudC5QaHlzaWNhbFJlc291cmNlSWQgfHwgTUlTU0lOR19QSFlTSUNBTF9JRF9NQVJLRVIsXG4gICAgTG9naWNhbFJlc291cmNlSWQ6IGV2ZW50LkxvZ2ljYWxSZXNvdXJjZUlkLFxuICAgIE5vRWNobzogb3B0aW9ucy5ub0VjaG8sXG4gICAgRGF0YTogZXZlbnQuRGF0YSxcbiAgfTtcblxuICBsb2coJ3N1Ym1pdCByZXNwb25zZSB0byBjbG91ZGZvcm1hdGlvbicsIGpzb24pO1xuXG4gIGNvbnN0IHJlc3BvbnNlQm9keSA9IEpTT04uc3RyaW5naWZ5KGpzb24pO1xuXG4gIGNvbnN0IHBhcnNlZFVybCA9IHVybC5wYXJzZShldmVudC5SZXNwb25zZVVSTCk7XG4gIGF3YWl0IGh0dHBSZXF1ZXN0KHtcbiAgICBob3N0bmFtZTogcGFyc2VkVXJsLmhvc3RuYW1lLFxuICAgIHBhdGg6IHBhcnNlZFVybC5wYXRoLFxuICAgIG1ldGhvZDogJ1BVVCcsXG4gICAgaGVhZGVyczoge1xuICAgICAgJ2NvbnRlbnQtdHlwZSc6ICcnLFxuICAgICAgJ2NvbnRlbnQtbGVuZ3RoJzogcmVzcG9uc2VCb2R5Lmxlbmd0aCxcbiAgICB9LFxuICB9LCByZXNwb25zZUJvZHkpO1xufVxuXG5leHBvcnQgbGV0IGluY2x1ZGVTdGFja1RyYWNlcyA9IHRydWU7IC8vIGZvciB1bml0IHRlc3RzXG5cbmV4cG9ydCBmdW5jdGlvbiBzYWZlSGFuZGxlcihibG9jazogKGV2ZW50OiBhbnkpID0+IFByb21pc2U8dm9pZD4pIHtcbiAgcmV0dXJuIGFzeW5jIChldmVudDogYW55KSA9PiB7XG5cbiAgICAvLyBpZ25vcmUgREVMRVRFIGV2ZW50IHdoZW4gdGhlIHBoeXNpY2FsIHJlc291cmNlIElEIGlzIHRoZSBtYXJrZXIgdGhhdFxuICAgIC8vIGluZGljYXRlcyB0aGF0IHRoaXMgREVMRVRFIGlzIGEgc3Vic2VxdWVudCBERUxFVEUgdG8gYSBmYWlsZWQgQ1JFQVRFXG4gICAgLy8gb3BlcmF0aW9uLlxuICAgIGlmIChldmVudC5SZXF1ZXN0VHlwZSA9PT0gJ0RlbGV0ZScgJiYgZXZlbnQuUGh5c2ljYWxSZXNvdXJjZUlkID09PSBDUkVBVEVfRkFJTEVEX1BIWVNJQ0FMX0lEX01BUktFUikge1xuICAgICAgbG9nKCdpZ25vcmluZyBERUxFVEUgZXZlbnQgY2F1c2VkIGJ5IGEgZmFpbGVkIENSRUFURSBldmVudCcpO1xuICAgICAgYXdhaXQgc3VibWl0UmVzcG9uc2UoJ1NVQ0NFU1MnLCBldmVudCk7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgdHJ5IHtcbiAgICAgIGF3YWl0IGJsb2NrKGV2ZW50KTtcbiAgICB9IGNhdGNoIChlKSB7XG4gICAgICAvLyB0ZWxsIHdhaXRlciBzdGF0ZSBtYWNoaW5lIHRvIHJldHJ5XG4gICAgICBpZiAoZSBpbnN0YW5jZW9mIFJldHJ5KSB7XG4gICAgICAgIGxvZygncmV0cnkgcmVxdWVzdGVkIGJ5IGhhbmRsZXInKTtcbiAgICAgICAgdGhyb3cgZTtcbiAgICAgIH1cblxuICAgICAgaWYgKCFldmVudC5QaHlzaWNhbFJlc291cmNlSWQpIHtcbiAgICAgICAgLy8gc3BlY2lhbCBjYXNlOiBpZiBDUkVBVEUgZmFpbHMsIHdoaWNoIHVzdWFsbHkgaW1wbGllcywgd2UgdXN1YWxseSBkb24ndFxuICAgICAgICAvLyBoYXZlIGEgcGh5c2ljYWwgcmVzb3VyY2UgaWQuIGluIHRoaXMgY2FzZSwgdGhlIHN1YnNlcXVlbnQgREVMRVRFXG4gICAgICAgIC8vIG9wZXJhdGlvbiBkb2VzIG5vdCBoYXZlIGFueSBtZWFuaW5nLCBhbmQgd2lsbCBsaWtlbHkgZmFpbCBhcyB3ZWxsLiB0b1xuICAgICAgICAvLyBhZGRyZXNzIHRoaXMsIHdlIHVzZSBhIG1hcmtlciBzbyB0aGUgcHJvdmlkZXIgZnJhbWV3b3JrIGNhbiBzaW1wbHlcbiAgICAgICAgLy8gaWdub3JlIHRoZSBzdWJzZXF1ZW50IERFTEVURS5cbiAgICAgICAgaWYgKGV2ZW50LlJlcXVlc3RUeXBlID09PSAnQ3JlYXRlJykge1xuICAgICAgICAgIGxvZygnQ1JFQVRFIGZhaWxlZCwgcmVzcG9uZGluZyB3aXRoIGEgbWFya2VyIHBoeXNpY2FsIHJlc291cmNlIGlkIHNvIHRoYXQgdGhlIHN1YnNlcXVlbnQgREVMRVRFIHdpbGwgYmUgaWdub3JlZCcpO1xuICAgICAgICAgIGV2ZW50LlBoeXNpY2FsUmVzb3VyY2VJZCA9IENSRUFURV9GQUlMRURfUEhZU0lDQUxfSURfTUFSS0VSO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIC8vIG90aGVyd2lzZSwgaWYgUGh5c2ljYWxSZXNvdXJjZUlkIGlzIG5vdCBzcGVjaWZpZWQsIHNvbWV0aGluZyBpc1xuICAgICAgICAgIC8vIHRlcnJpYmx5IHdyb25nIGJlY2F1c2UgYWxsIG90aGVyIGV2ZW50cyBzaG91bGQgaGF2ZSBhbiBJRC5cbiAgICAgICAgICBsb2coYEVSUk9SOiBNYWxmb3JtZWQgZXZlbnQuIFwiUGh5c2ljYWxSZXNvdXJjZUlkXCIgaXMgcmVxdWlyZWQ6ICR7SlNPTi5zdHJpbmdpZnkoeyAuLi5ldmVudCwgUmVzcG9uc2VVUkw6ICcuLi4nIH0pfWApO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIC8vIHRoaXMgaXMgYW4gYWN0dWFsIGVycm9yLCBmYWlsIHRoZSBhY3Rpdml0eSBhbHRvZ2V0aGVyIGFuZCBleGlzdC5cbiAgICAgIGF3YWl0IHN1Ym1pdFJlc3BvbnNlKCdGQUlMRUQnLCBldmVudCwge1xuICAgICAgICByZWFzb246IGluY2x1ZGVTdGFja1RyYWNlcyA/IGUuc3RhY2sgOiBlLm1lc3NhZ2UsXG4gICAgICB9KTtcbiAgICB9XG4gIH07XG59XG5cbmV4cG9ydCBjbGFzcyBSZXRyeSBleHRlbmRzIEVycm9yIHsgfVxuIl19 \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/consts.js b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/consts.js new file mode 100644 index 0000000000000..31faa077ae313 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/consts.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FRAMEWORK_ON_TIMEOUT_HANDLER_NAME = exports.FRAMEWORK_IS_COMPLETE_HANDLER_NAME = exports.FRAMEWORK_ON_EVENT_HANDLER_NAME = exports.WAITER_STATE_MACHINE_ARN_ENV = exports.USER_IS_COMPLETE_FUNCTION_ARN_ENV = exports.USER_ON_EVENT_FUNCTION_ARN_ENV = void 0; +exports.USER_ON_EVENT_FUNCTION_ARN_ENV = 'USER_ON_EVENT_FUNCTION_ARN'; +exports.USER_IS_COMPLETE_FUNCTION_ARN_ENV = 'USER_IS_COMPLETE_FUNCTION_ARN'; +exports.WAITER_STATE_MACHINE_ARN_ENV = 'WAITER_STATE_MACHINE_ARN'; +exports.FRAMEWORK_ON_EVENT_HANDLER_NAME = 'onEvent'; +exports.FRAMEWORK_IS_COMPLETE_HANDLER_NAME = 'isComplete'; +exports.FRAMEWORK_ON_TIMEOUT_HANDLER_NAME = 'onTimeout'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiY29uc3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFhLFFBQUEsOEJBQThCLEdBQUcsNEJBQTRCLENBQUM7QUFDOUQsUUFBQSxpQ0FBaUMsR0FBRywrQkFBK0IsQ0FBQztBQUNwRSxRQUFBLDRCQUE0QixHQUFHLDBCQUEwQixDQUFDO0FBRTFELFFBQUEsK0JBQStCLEdBQUcsU0FBUyxDQUFDO0FBQzVDLFFBQUEsa0NBQWtDLEdBQUcsWUFBWSxDQUFDO0FBQ2xELFFBQUEsaUNBQWlDLEdBQUcsV0FBVyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IFVTRVJfT05fRVZFTlRfRlVOQ1RJT05fQVJOX0VOViA9ICdVU0VSX09OX0VWRU5UX0ZVTkNUSU9OX0FSTic7XG5leHBvcnQgY29uc3QgVVNFUl9JU19DT01QTEVURV9GVU5DVElPTl9BUk5fRU5WID0gJ1VTRVJfSVNfQ09NUExFVEVfRlVOQ1RJT05fQVJOJztcbmV4cG9ydCBjb25zdCBXQUlURVJfU1RBVEVfTUFDSElORV9BUk5fRU5WID0gJ1dBSVRFUl9TVEFURV9NQUNISU5FX0FSTic7XG5cbmV4cG9ydCBjb25zdCBGUkFNRVdPUktfT05fRVZFTlRfSEFORExFUl9OQU1FID0gJ29uRXZlbnQnO1xuZXhwb3J0IGNvbnN0IEZSQU1FV09SS19JU19DT01QTEVURV9IQU5ETEVSX05BTUUgPSAnaXNDb21wbGV0ZSc7XG5leHBvcnQgY29uc3QgRlJBTUVXT1JLX09OX1RJTUVPVVRfSEFORExFUl9OQU1FID0gJ29uVGltZW91dCc7XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/framework.js b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/framework.js new file mode 100644 index 0000000000000..3f8a03e88aae0 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/framework.js @@ -0,0 +1,168 @@ +"use strict"; +const cfnResponse = require("./cfn-response"); +const consts = require("./consts"); +const outbound_1 = require("./outbound"); +const util_1 = require("./util"); +/** + * The main runtime entrypoint of the async custom resource lambda function. + * + * Any lifecycle event changes to the custom resources will invoke this handler, which will, in turn, + * interact with the user-defined `onEvent` and `isComplete` handlers. + * + * This function will always succeed. If an error occurs + * + * @param cfnRequest The cloudformation custom resource event. + */ +async function onEvent(cfnRequest) { + const sanitizedRequest = { ...cfnRequest, ResponseURL: '...' }; + util_1.log('onEventHandler', sanitizedRequest); + cfnRequest.ResourceProperties = cfnRequest.ResourceProperties || {}; + const onEventResult = await invokeUserFunction(consts.USER_ON_EVENT_FUNCTION_ARN_ENV, sanitizedRequest, cfnRequest.ResponseURL); + util_1.log('onEvent returned:', onEventResult); + // merge the request and the result from onEvent to form the complete resource event + // this also performs validation. + const resourceEvent = createResponseEvent(cfnRequest, onEventResult); + util_1.log('event:', onEventResult); + // determine if this is an async provider based on whether we have an isComplete handler defined. + // if it is not defined, then we are basically ready to return a positive response. + if (!process.env[consts.USER_IS_COMPLETE_FUNCTION_ARN_ENV]) { + return cfnResponse.submitResponse('SUCCESS', resourceEvent, { noEcho: resourceEvent.NoEcho }); + } + // ok, we are not complete, so kick off the waiter workflow + const waiter = { + stateMachineArn: util_1.getEnv(consts.WAITER_STATE_MACHINE_ARN_ENV), + name: resourceEvent.RequestId, + input: JSON.stringify(resourceEvent), + }; + util_1.log('starting waiter', waiter); + // kick off waiter state machine + await outbound_1.startExecution(waiter); +} +// invoked a few times until `complete` is true or until it times out. +async function isComplete(event) { + const sanitizedRequest = { ...event, ResponseURL: '...' }; + util_1.log('isComplete', sanitizedRequest); + const isCompleteResult = await invokeUserFunction(consts.USER_IS_COMPLETE_FUNCTION_ARN_ENV, sanitizedRequest, event.ResponseURL); + util_1.log('user isComplete returned:', isCompleteResult); + // if we are not complete, return false, and don't send a response back. + if (!isCompleteResult.IsComplete) { + if (isCompleteResult.Data && Object.keys(isCompleteResult.Data).length > 0) { + throw new Error('"Data" is not allowed if "IsComplete" is "False"'); + } + // This must be the full event, it will be deserialized in `onTimeout` to send the response to CloudFormation + throw new cfnResponse.Retry(JSON.stringify(event)); + } + const response = { + ...event, + ...isCompleteResult, + Data: { + ...event.Data, + ...isCompleteResult.Data, + }, + }; + await cfnResponse.submitResponse('SUCCESS', response, { noEcho: event.NoEcho }); +} +// invoked when completion retries are exhaused. +async function onTimeout(timeoutEvent) { + util_1.log('timeoutHandler', timeoutEvent); + const isCompleteRequest = JSON.parse(JSON.parse(timeoutEvent.Cause).errorMessage); + await cfnResponse.submitResponse('FAILED', isCompleteRequest, { + reason: 'Operation timed out', + }); +} +async function invokeUserFunction(functionArnEnv, sanitizedPayload, responseUrl) { + const functionArn = util_1.getEnv(functionArnEnv); + util_1.log(`executing user function ${functionArn} with payload`, sanitizedPayload); + // transient errors such as timeouts, throttling errors (429), and other + // errors that aren't caused by a bad request (500 series) are retried + // automatically by the JavaScript SDK. + const resp = await outbound_1.invokeFunction({ + FunctionName: functionArn, + // Cannot strip 'ResponseURL' here as this would be a breaking change even though the downstream CR doesn't need it + Payload: JSON.stringify({ ...sanitizedPayload, ResponseURL: responseUrl }), + }); + util_1.log('user function response:', resp, typeof (resp)); + const jsonPayload = parseJsonPayload(resp.Payload); + if (resp.FunctionError) { + util_1.log('user function threw an error:', resp.FunctionError); + const errorMessage = jsonPayload.errorMessage || 'error'; + // parse function name from arn + // arn:${Partition}:lambda:${Region}:${Account}:function:${FunctionName} + const arn = functionArn.split(':'); + const functionName = arn[arn.length - 1]; + // append a reference to the log group. + const message = [ + errorMessage, + '', + `Logs: /aws/lambda/${functionName}`, + '', + ].join('\n'); + const e = new Error(message); + // the output that goes to CFN is what's in `stack`, not the error message. + // if we have a remote trace, construct a nice message with log group information + if (jsonPayload.trace) { + // skip first trace line because it's the message + e.stack = [message, ...jsonPayload.trace.slice(1)].join('\n'); + } + throw e; + } + return jsonPayload; +} +function parseJsonPayload(payload) { + if (!payload) { + return {}; + } + const text = payload.toString(); + try { + return JSON.parse(text); + } + catch (e) { + throw new Error(`return values from user-handlers must be JSON objects. got: "${text}"`); + } +} +function createResponseEvent(cfnRequest, onEventResult) { + // + // validate that onEventResult always includes a PhysicalResourceId + onEventResult = onEventResult || {}; + // if physical ID is not returned, we have some defaults for you based + // on the request type. + const physicalResourceId = onEventResult.PhysicalResourceId || defaultPhysicalResourceId(cfnRequest); + // if we are in DELETE and physical ID was changed, it's an error. + if (cfnRequest.RequestType === 'Delete' && physicalResourceId !== cfnRequest.PhysicalResourceId) { + throw new Error(`DELETE: cannot change the physical resource ID from "${cfnRequest.PhysicalResourceId}" to "${onEventResult.PhysicalResourceId}" during deletion`); + } + // if we are in UPDATE and physical ID was changed, it's a replacement (just log) + if (cfnRequest.RequestType === 'Update' && physicalResourceId !== cfnRequest.PhysicalResourceId) { + util_1.log(`UPDATE: changing physical resource ID from "${cfnRequest.PhysicalResourceId}" to "${onEventResult.PhysicalResourceId}"`); + } + // merge request event and result event (result prevails). + return { + ...cfnRequest, + ...onEventResult, + PhysicalResourceId: physicalResourceId, + }; +} +/** + * Calculates the default physical resource ID based in case user handler did + * not return a PhysicalResourceId. + * + * For "CREATE", it uses the RequestId. + * For "UPDATE" and "DELETE" and returns the current PhysicalResourceId (the one provided in `event`). + */ +function defaultPhysicalResourceId(req) { + switch (req.RequestType) { + case 'Create': + return req.RequestId; + case 'Update': + case 'Delete': + return req.PhysicalResourceId; + default: + throw new Error(`Invalid "RequestType" in request "${JSON.stringify(req)}"`); + } +} +module.exports = { + [consts.FRAMEWORK_ON_EVENT_HANDLER_NAME]: cfnResponse.safeHandler(onEvent), + [consts.FRAMEWORK_IS_COMPLETE_HANDLER_NAME]: cfnResponse.safeHandler(isComplete), + [consts.FRAMEWORK_ON_TIMEOUT_HANDLER_NAME]: onTimeout, +}; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJhbWV3b3JrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZnJhbWV3b3JrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFHQSw4Q0FBOEM7QUFDOUMsbUNBQW1DO0FBQ25DLHlDQUE0RDtBQUM1RCxpQ0FBcUM7QUFTckM7Ozs7Ozs7OztHQVNHO0FBQ0gsS0FBSyxVQUFVLE9BQU8sQ0FBQyxVQUF1RDtJQUM1RSxNQUFNLGdCQUFnQixHQUFHLEVBQUUsR0FBRyxVQUFVLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBVyxDQUFDO0lBQ3hFLFVBQUcsQ0FBQyxnQkFBZ0IsRUFBRSxnQkFBZ0IsQ0FBQyxDQUFDO0lBRXhDLFVBQVUsQ0FBQyxrQkFBa0IsR0FBRyxVQUFVLENBQUMsa0JBQWtCLElBQUksRUFBRyxDQUFDO0lBRXJFLE1BQU0sYUFBYSxHQUFHLE1BQU0sa0JBQWtCLENBQUMsTUFBTSxDQUFDLDhCQUE4QixFQUFFLGdCQUFnQixFQUFFLFVBQVUsQ0FBQyxXQUFXLENBQW9CLENBQUM7SUFDbkosVUFBRyxDQUFDLG1CQUFtQixFQUFFLGFBQWEsQ0FBQyxDQUFDO0lBRXhDLG9GQUFvRjtJQUNwRixpQ0FBaUM7SUFDakMsTUFBTSxhQUFhLEdBQUcsbUJBQW1CLENBQUMsVUFBVSxFQUFFLGFBQWEsQ0FBQyxDQUFDO0lBQ3JFLFVBQUcsQ0FBQyxRQUFRLEVBQUUsYUFBYSxDQUFDLENBQUM7SUFFN0IsaUdBQWlHO0lBQ2pHLG1GQUFtRjtJQUNuRixJQUFJLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxNQUFNLENBQUMsaUNBQWlDLENBQUMsRUFBRTtRQUMxRCxPQUFPLFdBQVcsQ0FBQyxjQUFjLENBQUMsU0FBUyxFQUFFLGFBQWEsRUFBRSxFQUFFLE1BQU0sRUFBRSxhQUFhLENBQUMsTUFBTSxFQUFFLENBQUMsQ0FBQztLQUMvRjtJQUVELDJEQUEyRDtJQUMzRCxNQUFNLE1BQU0sR0FBRztRQUNiLGVBQWUsRUFBRSxhQUFNLENBQUMsTUFBTSxDQUFDLDRCQUE0QixDQUFDO1FBQzVELElBQUksRUFBRSxhQUFhLENBQUMsU0FBUztRQUM3QixLQUFLLEVBQUUsSUFBSSxDQUFDLFNBQVMsQ0FBQyxhQUFhLENBQUM7S0FDckMsQ0FBQztJQUVGLFVBQUcsQ0FBQyxpQkFBaUIsRUFBRSxNQUFNLENBQUMsQ0FBQztJQUUvQixnQ0FBZ0M7SUFDaEMsTUFBTSx5QkFBYyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0FBQy9CLENBQUM7QUFFRCxzRUFBc0U7QUFDdEUsS0FBSyxVQUFVLFVBQVUsQ0FBQyxLQUFrRDtJQUMxRSxNQUFNLGdCQUFnQixHQUFHLEVBQUUsR0FBRyxLQUFLLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBVyxDQUFDO0lBQ25FLFVBQUcsQ0FBQyxZQUFZLEVBQUUsZ0JBQWdCLENBQUMsQ0FBQztJQUVwQyxNQUFNLGdCQUFnQixHQUFHLE1BQU0sa0JBQWtCLENBQUMsTUFBTSxDQUFDLGlDQUFpQyxFQUFFLGdCQUFnQixFQUFFLEtBQUssQ0FBQyxXQUFXLENBQXVCLENBQUM7SUFDdkosVUFBRyxDQUFDLDJCQUEyQixFQUFFLGdCQUFnQixDQUFDLENBQUM7SUFFbkQsd0VBQXdFO0lBQ3hFLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxVQUFVLEVBQUU7UUFDaEMsSUFBSSxnQkFBZ0IsQ0FBQyxJQUFJLElBQUksTUFBTSxDQUFDLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxJQUFJLENBQUMsQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFO1lBQzFFLE1BQU0sSUFBSSxLQUFLLENBQUMsa0RBQWtELENBQUMsQ0FBQztTQUNyRTtRQUVELDZHQUE2RztRQUM3RyxNQUFNLElBQUksV0FBVyxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUM7S0FDcEQ7SUFFRCxNQUFNLFFBQVEsR0FBRztRQUNmLEdBQUcsS0FBSztRQUNSLEdBQUcsZ0JBQWdCO1FBQ25CLElBQUksRUFBRTtZQUNKLEdBQUcsS0FBSyxDQUFDLElBQUk7WUFDYixHQUFHLGdCQUFnQixDQUFDLElBQUk7U0FDekI7S0FDRixDQUFDO0lBRUYsTUFBTSxXQUFXLENBQUMsY0FBYyxDQUFDLFNBQVMsRUFBRSxRQUFRLEVBQUUsRUFBRSxNQUFNLEVBQUUsS0FBSyxDQUFDLE1BQU0sRUFBRSxDQUFDLENBQUM7QUFDbEYsQ0FBQztBQUVELGdEQUFnRDtBQUNoRCxLQUFLLFVBQVUsU0FBUyxDQUFDLFlBQWlCO0lBQ3hDLFVBQUcsQ0FBQyxnQkFBZ0IsRUFBRSxZQUFZLENBQUMsQ0FBQztJQUVwQyxNQUFNLGlCQUFpQixHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxZQUFZLENBQUMsS0FBSyxDQUFDLENBQUMsWUFBWSxDQUFnRCxDQUFDO0lBQ2pJLE1BQU0sV0FBVyxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsaUJBQWlCLEVBQUU7UUFDNUQsTUFBTSxFQUFFLHFCQUFxQjtLQUM5QixDQUFDLENBQUM7QUFDTCxDQUFDO0FBRUQsS0FBSyxVQUFVLGtCQUFrQixDQUFtQyxjQUFzQixFQUFFLGdCQUFtQixFQUFFLFdBQW1CO0lBQ2xJLE1BQU0sV0FBVyxHQUFHLGFBQU0sQ0FBQyxjQUFjLENBQUMsQ0FBQztJQUMzQyxVQUFHLENBQUMsMkJBQTJCLFdBQVcsZUFBZSxFQUFFLGdCQUFnQixDQUFDLENBQUM7SUFFN0Usd0VBQXdFO0lBQ3hFLHNFQUFzRTtJQUN0RSx1Q0FBdUM7SUFDdkMsTUFBTSxJQUFJLEdBQUcsTUFBTSx5QkFBYyxDQUFDO1FBQ2hDLFlBQVksRUFBRSxXQUFXO1FBRXpCLG1IQUFtSDtRQUNuSCxPQUFPLEVBQUUsSUFBSSxDQUFDLFNBQVMsQ0FBQyxFQUFFLEdBQUcsZ0JBQWdCLEVBQUUsV0FBVyxFQUFFLFdBQVcsRUFBRSxDQUFDO0tBQzNFLENBQUMsQ0FBQztJQUVILFVBQUcsQ0FBQyx5QkFBeUIsRUFBRSxJQUFJLEVBQUUsT0FBTSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7SUFFbkQsTUFBTSxXQUFXLEdBQUcsZ0JBQWdCLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQ25ELElBQUksSUFBSSxDQUFDLGFBQWEsRUFBRTtRQUN0QixVQUFHLENBQUMsK0JBQStCLEVBQUUsSUFBSSxDQUFDLGFBQWEsQ0FBQyxDQUFDO1FBRXpELE1BQU0sWUFBWSxHQUFHLFdBQVcsQ0FBQyxZQUFZLElBQUksT0FBTyxDQUFDO1FBRXpELCtCQUErQjtRQUMvQix3RUFBd0U7UUFDeEUsTUFBTSxHQUFHLEdBQUcsV0FBVyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUNuQyxNQUFNLFlBQVksR0FBRyxHQUFHLENBQUMsR0FBRyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztRQUV6Qyx1Q0FBdUM7UUFDdkMsTUFBTSxPQUFPLEdBQUc7WUFDZCxZQUFZO1lBQ1osRUFBRTtZQUNGLHFCQUFxQixZQUFZLEVBQUU7WUFDbkMsRUFBRTtTQUNILENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1FBRWIsTUFBTSxDQUFDLEdBQUcsSUFBSSxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7UUFFN0IsMkVBQTJFO1FBQzNFLGlGQUFpRjtRQUNqRixJQUFJLFdBQVcsQ0FBQyxLQUFLLEVBQUU7WUFDckIsaURBQWlEO1lBQ2pELENBQUMsQ0FBQyxLQUFLLEdBQUcsQ0FBQyxPQUFPLEVBQUUsR0FBRyxXQUFXLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztTQUMvRDtRQUVELE1BQU0sQ0FBQyxDQUFDO0tBQ1Q7SUFFRCxPQUFPLFdBQVcsQ0FBQztBQUNyQixDQUFDO0FBRUQsU0FBUyxnQkFBZ0IsQ0FBQyxPQUFZO0lBQ3BDLElBQUksQ0FBQyxPQUFPLEVBQUU7UUFBRSxPQUFPLEVBQUcsQ0FBQztLQUFFO0lBQzdCLE1BQU0sSUFBSSxHQUFHLE9BQU8sQ0FBQyxRQUFRLEVBQUUsQ0FBQztJQUNoQyxJQUFJO1FBQ0YsT0FBTyxJQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDO0tBQ3pCO0lBQUMsT0FBTyxDQUFDLEVBQUU7UUFDVixNQUFNLElBQUksS0FBSyxDQUFDLGdFQUFnRSxJQUFJLEdBQUcsQ0FBQyxDQUFDO0tBQzFGO0FBQ0gsQ0FBQztBQUVELFNBQVMsbUJBQW1CLENBQUMsVUFBdUQsRUFBRSxhQUE4QjtJQUNsSCxFQUFFO0lBQ0YsbUVBQW1FO0lBRW5FLGFBQWEsR0FBRyxhQUFhLElBQUksRUFBRyxDQUFDO0lBRXJDLHNFQUFzRTtJQUN0RSx1QkFBdUI7SUFDdkIsTUFBTSxrQkFBa0IsR0FBRyxhQUFhLENBQUMsa0JBQWtCLElBQUkseUJBQXlCLENBQUMsVUFBVSxDQUFDLENBQUM7SUFFckcsa0VBQWtFO0lBQ2xFLElBQUksVUFBVSxDQUFDLFdBQVcsS0FBSyxRQUFRLElBQUksa0JBQWtCLEtBQUssVUFBVSxDQUFDLGtCQUFrQixFQUFFO1FBQy9GLE1BQU0sSUFBSSxLQUFLLENBQUMsd0RBQXdELFVBQVUsQ0FBQyxrQkFBa0IsU0FBUyxhQUFhLENBQUMsa0JBQWtCLG1CQUFtQixDQUFDLENBQUM7S0FDcEs7SUFFRCxpRkFBaUY7SUFDakYsSUFBSSxVQUFVLENBQUMsV0FBVyxLQUFLLFFBQVEsSUFBSSxrQkFBa0IsS0FBSyxVQUFVLENBQUMsa0JBQWtCLEVBQUU7UUFDL0YsVUFBRyxDQUFDLCtDQUErQyxVQUFVLENBQUMsa0JBQWtCLFNBQVMsYUFBYSxDQUFDLGtCQUFrQixHQUFHLENBQUMsQ0FBQztLQUMvSDtJQUVELDBEQUEwRDtJQUMxRCxPQUFPO1FBQ0wsR0FBRyxVQUFVO1FBQ2IsR0FBRyxhQUFhO1FBQ2hCLGtCQUFrQixFQUFFLGtCQUFrQjtLQUN2QyxDQUFDO0FBQ0osQ0FBQztBQUVEOzs7Ozs7R0FNRztBQUNILFNBQVMseUJBQXlCLENBQUMsR0FBZ0Q7SUFDakYsUUFBUSxHQUFHLENBQUMsV0FBVyxFQUFFO1FBQ3ZCLEtBQUssUUFBUTtZQUNYLE9BQU8sR0FBRyxDQUFDLFNBQVMsQ0FBQztRQUV2QixLQUFLLFFBQVEsQ0FBQztRQUNkLEtBQUssUUFBUTtZQUNYLE9BQU8sR0FBRyxDQUFDLGtCQUFrQixDQUFDO1FBRWhDO1lBQ0UsTUFBTSxJQUFJLEtBQUssQ0FBQyxxQ0FBcUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUM7S0FDaEY7QUFDSCxDQUFDO0FBcE1ELGlCQUFTO0lBQ1AsQ0FBQyxNQUFNLENBQUMsK0JBQStCLENBQUMsRUFBRSxXQUFXLENBQUMsV0FBVyxDQUFDLE9BQU8sQ0FBQztJQUMxRSxDQUFDLE1BQU0sQ0FBQyxrQ0FBa0MsQ0FBQyxFQUFFLFdBQVcsQ0FBQyxXQUFXLENBQUMsVUFBVSxDQUFDO0lBQ2hGLENBQUMsTUFBTSxDQUFDLGlDQUFpQyxDQUFDLEVBQUUsU0FBUztDQUN0RCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgbWF4LWxlbiAqL1xuLyogZXNsaW50LWRpc2FibGUgbm8tY29uc29sZSAqL1xuaW1wb3J0IHsgSXNDb21wbGV0ZVJlc3BvbnNlLCBPbkV2ZW50UmVzcG9uc2UgfSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgKiBhcyBjZm5SZXNwb25zZSBmcm9tICcuL2Nmbi1yZXNwb25zZSc7XG5pbXBvcnQgKiBhcyBjb25zdHMgZnJvbSAnLi9jb25zdHMnO1xuaW1wb3J0IHsgaW52b2tlRnVuY3Rpb24sIHN0YXJ0RXhlY3V0aW9uIH0gZnJvbSAnLi9vdXRib3VuZCc7XG5pbXBvcnQgeyBnZXRFbnYsIGxvZyB9IGZyb20gJy4vdXRpbCc7XG5cbi8vIHVzZSBjb25zdHMgZm9yIGhhbmRsZXIgbmFtZXMgdG8gY29tcGlsZXItZW5mb3JjZSB0aGUgY291cGxpbmcgd2l0aCBjb25zdHJ1Y3Rpb24gY29kZS5cbmV4cG9ydCA9IHtcbiAgW2NvbnN0cy5GUkFNRVdPUktfT05fRVZFTlRfSEFORExFUl9OQU1FXTogY2ZuUmVzcG9uc2Uuc2FmZUhhbmRsZXIob25FdmVudCksXG4gIFtjb25zdHMuRlJBTUVXT1JLX0lTX0NPTVBMRVRFX0hBTkRMRVJfTkFNRV06IGNmblJlc3BvbnNlLnNhZmVIYW5kbGVyKGlzQ29tcGxldGUpLFxuICBbY29uc3RzLkZSQU1FV09SS19PTl9USU1FT1VUX0hBTkRMRVJfTkFNRV06IG9uVGltZW91dCxcbn07XG5cbi8qKlxuICogVGhlIG1haW4gcnVudGltZSBlbnRyeXBvaW50IG9mIHRoZSBhc3luYyBjdXN0b20gcmVzb3VyY2UgbGFtYmRhIGZ1bmN0aW9uLlxuICpcbiAqIEFueSBsaWZlY3ljbGUgZXZlbnQgY2hhbmdlcyB0byB0aGUgY3VzdG9tIHJlc291cmNlcyB3aWxsIGludm9rZSB0aGlzIGhhbmRsZXIsIHdoaWNoIHdpbGwsIGluIHR1cm4sXG4gKiBpbnRlcmFjdCB3aXRoIHRoZSB1c2VyLWRlZmluZWQgYG9uRXZlbnRgIGFuZCBgaXNDb21wbGV0ZWAgaGFuZGxlcnMuXG4gKlxuICogVGhpcyBmdW5jdGlvbiB3aWxsIGFsd2F5cyBzdWNjZWVkLiBJZiBhbiBlcnJvciBvY2N1cnNcbiAqXG4gKiBAcGFyYW0gY2ZuUmVxdWVzdCBUaGUgY2xvdWRmb3JtYXRpb24gY3VzdG9tIHJlc291cmNlIGV2ZW50LlxuICovXG5hc3luYyBmdW5jdGlvbiBvbkV2ZW50KGNmblJlcXVlc3Q6IEFXU0xhbWJkYS5DbG91ZEZvcm1hdGlvbkN1c3RvbVJlc291cmNlRXZlbnQpIHtcbiAgY29uc3Qgc2FuaXRpemVkUmVxdWVzdCA9IHsgLi4uY2ZuUmVxdWVzdCwgUmVzcG9uc2VVUkw6ICcuLi4nIH0gYXMgY29uc3Q7XG4gIGxvZygnb25FdmVudEhhbmRsZXInLCBzYW5pdGl6ZWRSZXF1ZXN0KTtcblxuICBjZm5SZXF1ZXN0LlJlc291cmNlUHJvcGVydGllcyA9IGNmblJlcXVlc3QuUmVzb3VyY2VQcm9wZXJ0aWVzIHx8IHsgfTtcblxuICBjb25zdCBvbkV2ZW50UmVzdWx0ID0gYXdhaXQgaW52b2tlVXNlckZ1bmN0aW9uKGNvbnN0cy5VU0VSX09OX0VWRU5UX0ZVTkNUSU9OX0FSTl9FTlYsIHNhbml0aXplZFJlcXVlc3QsIGNmblJlcXVlc3QuUmVzcG9uc2VVUkwpIGFzIE9uRXZlbnRSZXNwb25zZTtcbiAgbG9nKCdvbkV2ZW50IHJldHVybmVkOicsIG9uRXZlbnRSZXN1bHQpO1xuXG4gIC8vIG1lcmdlIHRoZSByZXF1ZXN0IGFuZCB0aGUgcmVzdWx0IGZyb20gb25FdmVudCB0byBmb3JtIHRoZSBjb21wbGV0ZSByZXNvdXJjZSBldmVudFxuICAvLyB0aGlzIGFsc28gcGVyZm9ybXMgdmFsaWRhdGlvbi5cbiAgY29uc3QgcmVzb3VyY2VFdmVudCA9IGNyZWF0ZVJlc3BvbnNlRXZlbnQoY2ZuUmVxdWVzdCwgb25FdmVudFJlc3VsdCk7XG4gIGxvZygnZXZlbnQ6Jywgb25FdmVudFJlc3VsdCk7XG5cbiAgLy8gZGV0ZXJtaW5lIGlmIHRoaXMgaXMgYW4gYXN5bmMgcHJvdmlkZXIgYmFzZWQgb24gd2hldGhlciB3ZSBoYXZlIGFuIGlzQ29tcGxldGUgaGFuZGxlciBkZWZpbmVkLlxuICAvLyBpZiBpdCBpcyBub3QgZGVmaW5lZCwgdGhlbiB3ZSBhcmUgYmFzaWNhbGx5IHJlYWR5IHRvIHJldHVybiBhIHBvc2l0aXZlIHJlc3BvbnNlLlxuICBpZiAoIXByb2Nlc3MuZW52W2NvbnN0cy5VU0VSX0lTX0NPTVBMRVRFX0ZVTkNUSU9OX0FSTl9FTlZdKSB7XG4gICAgcmV0dXJuIGNmblJlc3BvbnNlLnN1Ym1pdFJlc3BvbnNlKCdTVUNDRVNTJywgcmVzb3VyY2VFdmVudCwgeyBub0VjaG86IHJlc291cmNlRXZlbnQuTm9FY2hvIH0pO1xuICB9XG5cbiAgLy8gb2ssIHdlIGFyZSBub3QgY29tcGxldGUsIHNvIGtpY2sgb2ZmIHRoZSB3YWl0ZXIgd29ya2Zsb3dcbiAgY29uc3Qgd2FpdGVyID0ge1xuICAgIHN0YXRlTWFjaGluZUFybjogZ2V0RW52KGNvbnN0cy5XQUlURVJfU1RBVEVfTUFDSElORV9BUk5fRU5WKSxcbiAgICBuYW1lOiByZXNvdXJjZUV2ZW50LlJlcXVlc3RJZCxcbiAgICBpbnB1dDogSlNPTi5zdHJpbmdpZnkocmVzb3VyY2VFdmVudCksXG4gIH07XG5cbiAgbG9nKCdzdGFydGluZyB3YWl0ZXInLCB3YWl0ZXIpO1xuXG4gIC8vIGtpY2sgb2ZmIHdhaXRlciBzdGF0ZSBtYWNoaW5lXG4gIGF3YWl0IHN0YXJ0RXhlY3V0aW9uKHdhaXRlcik7XG59XG5cbi8vIGludm9rZWQgYSBmZXcgdGltZXMgdW50aWwgYGNvbXBsZXRlYCBpcyB0cnVlIG9yIHVudGlsIGl0IHRpbWVzIG91dC5cbmFzeW5jIGZ1bmN0aW9uIGlzQ29tcGxldGUoZXZlbnQ6IEFXU0NES0FzeW5jQ3VzdG9tUmVzb3VyY2UuSXNDb21wbGV0ZVJlcXVlc3QpIHtcbiAgY29uc3Qgc2FuaXRpemVkUmVxdWVzdCA9IHsgLi4uZXZlbnQsIFJlc3BvbnNlVVJMOiAnLi4uJyB9IGFzIGNvbnN0O1xuICBsb2coJ2lzQ29tcGxldGUnLCBzYW5pdGl6ZWRSZXF1ZXN0KTtcblxuICBjb25zdCBpc0NvbXBsZXRlUmVzdWx0ID0gYXdhaXQgaW52b2tlVXNlckZ1bmN0aW9uKGNvbnN0cy5VU0VSX0lTX0NPTVBMRVRFX0ZVTkNUSU9OX0FSTl9FTlYsIHNhbml0aXplZFJlcXVlc3QsIGV2ZW50LlJlc3BvbnNlVVJMKSBhcyBJc0NvbXBsZXRlUmVzcG9uc2U7XG4gIGxvZygndXNlciBpc0NvbXBsZXRlIHJldHVybmVkOicsIGlzQ29tcGxldGVSZXN1bHQpO1xuXG4gIC8vIGlmIHdlIGFyZSBub3QgY29tcGxldGUsIHJldHVybiBmYWxzZSwgYW5kIGRvbid0IHNlbmQgYSByZXNwb25zZSBiYWNrLlxuICBpZiAoIWlzQ29tcGxldGVSZXN1bHQuSXNDb21wbGV0ZSkge1xuICAgIGlmIChpc0NvbXBsZXRlUmVzdWx0LkRhdGEgJiYgT2JqZWN0LmtleXMoaXNDb21wbGV0ZVJlc3VsdC5EYXRhKS5sZW5ndGggPiAwKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoJ1wiRGF0YVwiIGlzIG5vdCBhbGxvd2VkIGlmIFwiSXNDb21wbGV0ZVwiIGlzIFwiRmFsc2VcIicpO1xuICAgIH1cblxuICAgIC8vIFRoaXMgbXVzdCBiZSB0aGUgZnVsbCBldmVudCwgaXQgd2lsbCBiZSBkZXNlcmlhbGl6ZWQgaW4gYG9uVGltZW91dGAgdG8gc2VuZCB0aGUgcmVzcG9uc2UgdG8gQ2xvdWRGb3JtYXRpb25cbiAgICB0aHJvdyBuZXcgY2ZuUmVzcG9uc2UuUmV0cnkoSlNPTi5zdHJpbmdpZnkoZXZlbnQpKTtcbiAgfVxuXG4gIGNvbnN0IHJlc3BvbnNlID0ge1xuICAgIC4uLmV2ZW50LFxuICAgIC4uLmlzQ29tcGxldGVSZXN1bHQsXG4gICAgRGF0YToge1xuICAgICAgLi4uZXZlbnQuRGF0YSxcbiAgICAgIC4uLmlzQ29tcGxldGVSZXN1bHQuRGF0YSxcbiAgICB9LFxuICB9O1xuXG4gIGF3YWl0IGNmblJlc3BvbnNlLnN1Ym1pdFJlc3BvbnNlKCdTVUNDRVNTJywgcmVzcG9uc2UsIHsgbm9FY2hvOiBldmVudC5Ob0VjaG8gfSk7XG59XG5cbi8vIGludm9rZWQgd2hlbiBjb21wbGV0aW9uIHJldHJpZXMgYXJlIGV4aGF1c2VkLlxuYXN5bmMgZnVuY3Rpb24gb25UaW1lb3V0KHRpbWVvdXRFdmVudDogYW55KSB7XG4gIGxvZygndGltZW91dEhhbmRsZXInLCB0aW1lb3V0RXZlbnQpO1xuXG4gIGNvbnN0IGlzQ29tcGxldGVSZXF1ZXN0ID0gSlNPTi5wYXJzZShKU09OLnBhcnNlKHRpbWVvdXRFdmVudC5DYXVzZSkuZXJyb3JNZXNzYWdlKSBhcyBBV1NDREtBc3luY0N1c3RvbVJlc291cmNlLklzQ29tcGxldGVSZXF1ZXN0O1xuICBhd2FpdCBjZm5SZXNwb25zZS5zdWJtaXRSZXNwb25zZSgnRkFJTEVEJywgaXNDb21wbGV0ZVJlcXVlc3QsIHtcbiAgICByZWFzb246ICdPcGVyYXRpb24gdGltZWQgb3V0JyxcbiAgfSk7XG59XG5cbmFzeW5jIGZ1bmN0aW9uIGludm9rZVVzZXJGdW5jdGlvbjxBIGV4dGVuZHMgeyBSZXNwb25zZVVSTDogJy4uLicgfT4oZnVuY3Rpb25Bcm5FbnY6IHN0cmluZywgc2FuaXRpemVkUGF5bG9hZDogQSwgcmVzcG9uc2VVcmw6IHN0cmluZykge1xuICBjb25zdCBmdW5jdGlvbkFybiA9IGdldEVudihmdW5jdGlvbkFybkVudik7XG4gIGxvZyhgZXhlY3V0aW5nIHVzZXIgZnVuY3Rpb24gJHtmdW5jdGlvbkFybn0gd2l0aCBwYXlsb2FkYCwgc2FuaXRpemVkUGF5bG9hZCk7XG5cbiAgLy8gdHJhbnNpZW50IGVycm9ycyBzdWNoIGFzIHRpbWVvdXRzLCB0aHJvdHRsaW5nIGVycm9ycyAoNDI5KSwgYW5kIG90aGVyXG4gIC8vIGVycm9ycyB0aGF0IGFyZW4ndCBjYXVzZWQgYnkgYSBiYWQgcmVxdWVzdCAoNTAwIHNlcmllcykgYXJlIHJldHJpZWRcbiAgLy8gYXV0b21hdGljYWxseSBieSB0aGUgSmF2YVNjcmlwdCBTREsuXG4gIGNvbnN0IHJlc3AgPSBhd2FpdCBpbnZva2VGdW5jdGlvbih7XG4gICAgRnVuY3Rpb25OYW1lOiBmdW5jdGlvbkFybixcblxuICAgIC8vIENhbm5vdCBzdHJpcCAnUmVzcG9uc2VVUkwnIGhlcmUgYXMgdGhpcyB3b3VsZCBiZSBhIGJyZWFraW5nIGNoYW5nZSBldmVuIHRob3VnaCB0aGUgZG93bnN0cmVhbSBDUiBkb2Vzbid0IG5lZWQgaXRcbiAgICBQYXlsb2FkOiBKU09OLnN0cmluZ2lmeSh7IC4uLnNhbml0aXplZFBheWxvYWQsIFJlc3BvbnNlVVJMOiByZXNwb25zZVVybCB9KSxcbiAgfSk7XG5cbiAgbG9nKCd1c2VyIGZ1bmN0aW9uIHJlc3BvbnNlOicsIHJlc3AsIHR5cGVvZihyZXNwKSk7XG5cbiAgY29uc3QganNvblBheWxvYWQgPSBwYXJzZUpzb25QYXlsb2FkKHJlc3AuUGF5bG9hZCk7XG4gIGlmIChyZXNwLkZ1bmN0aW9uRXJyb3IpIHtcbiAgICBsb2coJ3VzZXIgZnVuY3Rpb24gdGhyZXcgYW4gZXJyb3I6JywgcmVzcC5GdW5jdGlvbkVycm9yKTtcblxuICAgIGNvbnN0IGVycm9yTWVzc2FnZSA9IGpzb25QYXlsb2FkLmVycm9yTWVzc2FnZSB8fCAnZXJyb3InO1xuXG4gICAgLy8gcGFyc2UgZnVuY3Rpb24gbmFtZSBmcm9tIGFyblxuICAgIC8vIGFybjoke1BhcnRpdGlvbn06bGFtYmRhOiR7UmVnaW9ufToke0FjY291bnR9OmZ1bmN0aW9uOiR7RnVuY3Rpb25OYW1lfVxuICAgIGNvbnN0IGFybiA9IGZ1bmN0aW9uQXJuLnNwbGl0KCc6Jyk7XG4gICAgY29uc3QgZnVuY3Rpb25OYW1lID0gYXJuW2Fybi5sZW5ndGggLSAxXTtcblxuICAgIC8vIGFwcGVuZCBhIHJlZmVyZW5jZSB0byB0aGUgbG9nIGdyb3VwLlxuICAgIGNvbnN0IG1lc3NhZ2UgPSBbXG4gICAgICBlcnJvck1lc3NhZ2UsXG4gICAgICAnJyxcbiAgICAgIGBMb2dzOiAvYXdzL2xhbWJkYS8ke2Z1bmN0aW9uTmFtZX1gLCAvLyBjbG91ZHdhdGNoIGxvZyBncm91cFxuICAgICAgJycsXG4gICAgXS5qb2luKCdcXG4nKTtcblxuICAgIGNvbnN0IGUgPSBuZXcgRXJyb3IobWVzc2FnZSk7XG5cbiAgICAvLyB0aGUgb3V0cHV0IHRoYXQgZ29lcyB0byBDRk4gaXMgd2hhdCdzIGluIGBzdGFja2AsIG5vdCB0aGUgZXJyb3IgbWVzc2FnZS5cbiAgICAvLyBpZiB3ZSBoYXZlIGEgcmVtb3RlIHRyYWNlLCBjb25zdHJ1Y3QgYSBuaWNlIG1lc3NhZ2Ugd2l0aCBsb2cgZ3JvdXAgaW5mb3JtYXRpb25cbiAgICBpZiAoanNvblBheWxvYWQudHJhY2UpIHtcbiAgICAgIC8vIHNraXAgZmlyc3QgdHJhY2UgbGluZSBiZWNhdXNlIGl0J3MgdGhlIG1lc3NhZ2VcbiAgICAgIGUuc3RhY2sgPSBbbWVzc2FnZSwgLi4uanNvblBheWxvYWQudHJhY2Uuc2xpY2UoMSldLmpvaW4oJ1xcbicpO1xuICAgIH1cblxuICAgIHRocm93IGU7XG4gIH1cblxuICByZXR1cm4ganNvblBheWxvYWQ7XG59XG5cbmZ1bmN0aW9uIHBhcnNlSnNvblBheWxvYWQocGF5bG9hZDogYW55KTogYW55IHtcbiAgaWYgKCFwYXlsb2FkKSB7IHJldHVybiB7IH07IH1cbiAgY29uc3QgdGV4dCA9IHBheWxvYWQudG9TdHJpbmcoKTtcbiAgdHJ5IHtcbiAgICByZXR1cm4gSlNPTi5wYXJzZSh0ZXh0KTtcbiAgfSBjYXRjaCAoZSkge1xuICAgIHRocm93IG5ldyBFcnJvcihgcmV0dXJuIHZhbHVlcyBmcm9tIHVzZXItaGFuZGxlcnMgbXVzdCBiZSBKU09OIG9iamVjdHMuIGdvdDogXCIke3RleHR9XCJgKTtcbiAgfVxufVxuXG5mdW5jdGlvbiBjcmVhdGVSZXNwb25zZUV2ZW50KGNmblJlcXVlc3Q6IEFXU0xhbWJkYS5DbG91ZEZvcm1hdGlvbkN1c3RvbVJlc291cmNlRXZlbnQsIG9uRXZlbnRSZXN1bHQ6IE9uRXZlbnRSZXNwb25zZSk6IEFXU0NES0FzeW5jQ3VzdG9tUmVzb3VyY2UuSXNDb21wbGV0ZVJlcXVlc3Qge1xuICAvL1xuICAvLyB2YWxpZGF0ZSB0aGF0IG9uRXZlbnRSZXN1bHQgYWx3YXlzIGluY2x1ZGVzIGEgUGh5c2ljYWxSZXNvdXJjZUlkXG5cbiAgb25FdmVudFJlc3VsdCA9IG9uRXZlbnRSZXN1bHQgfHwgeyB9O1xuXG4gIC8vIGlmIHBoeXNpY2FsIElEIGlzIG5vdCByZXR1cm5lZCwgd2UgaGF2ZSBzb21lIGRlZmF1bHRzIGZvciB5b3UgYmFzZWRcbiAgLy8gb24gdGhlIHJlcXVlc3QgdHlwZS5cbiAgY29uc3QgcGh5c2ljYWxSZXNvdXJjZUlkID0gb25FdmVudFJlc3VsdC5QaHlzaWNhbFJlc291cmNlSWQgfHwgZGVmYXVsdFBoeXNpY2FsUmVzb3VyY2VJZChjZm5SZXF1ZXN0KTtcblxuICAvLyBpZiB3ZSBhcmUgaW4gREVMRVRFIGFuZCBwaHlzaWNhbCBJRCB3YXMgY2hhbmdlZCwgaXQncyBhbiBlcnJvci5cbiAgaWYgKGNmblJlcXVlc3QuUmVxdWVzdFR5cGUgPT09ICdEZWxldGUnICYmIHBoeXNpY2FsUmVzb3VyY2VJZCAhPT0gY2ZuUmVxdWVzdC5QaHlzaWNhbFJlc291cmNlSWQpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoYERFTEVURTogY2Fubm90IGNoYW5nZSB0aGUgcGh5c2ljYWwgcmVzb3VyY2UgSUQgZnJvbSBcIiR7Y2ZuUmVxdWVzdC5QaHlzaWNhbFJlc291cmNlSWR9XCIgdG8gXCIke29uRXZlbnRSZXN1bHQuUGh5c2ljYWxSZXNvdXJjZUlkfVwiIGR1cmluZyBkZWxldGlvbmApO1xuICB9XG5cbiAgLy8gaWYgd2UgYXJlIGluIFVQREFURSBhbmQgcGh5c2ljYWwgSUQgd2FzIGNoYW5nZWQsIGl0J3MgYSByZXBsYWNlbWVudCAoanVzdCBsb2cpXG4gIGlmIChjZm5SZXF1ZXN0LlJlcXVlc3RUeXBlID09PSAnVXBkYXRlJyAmJiBwaHlzaWNhbFJlc291cmNlSWQgIT09IGNmblJlcXVlc3QuUGh5c2ljYWxSZXNvdXJjZUlkKSB7XG4gICAgbG9nKGBVUERBVEU6IGNoYW5naW5nIHBoeXNpY2FsIHJlc291cmNlIElEIGZyb20gXCIke2NmblJlcXVlc3QuUGh5c2ljYWxSZXNvdXJjZUlkfVwiIHRvIFwiJHtvbkV2ZW50UmVzdWx0LlBoeXNpY2FsUmVzb3VyY2VJZH1cImApO1xuICB9XG5cbiAgLy8gbWVyZ2UgcmVxdWVzdCBldmVudCBhbmQgcmVzdWx0IGV2ZW50IChyZXN1bHQgcHJldmFpbHMpLlxuICByZXR1cm4ge1xuICAgIC4uLmNmblJlcXVlc3QsXG4gICAgLi4ub25FdmVudFJlc3VsdCxcbiAgICBQaHlzaWNhbFJlc291cmNlSWQ6IHBoeXNpY2FsUmVzb3VyY2VJZCxcbiAgfTtcbn1cblxuLyoqXG4gKiBDYWxjdWxhdGVzIHRoZSBkZWZhdWx0IHBoeXNpY2FsIHJlc291cmNlIElEIGJhc2VkIGluIGNhc2UgdXNlciBoYW5kbGVyIGRpZFxuICogbm90IHJldHVybiBhIFBoeXNpY2FsUmVzb3VyY2VJZC5cbiAqXG4gKiBGb3IgXCJDUkVBVEVcIiwgaXQgdXNlcyB0aGUgUmVxdWVzdElkLlxuICogRm9yIFwiVVBEQVRFXCIgYW5kIFwiREVMRVRFXCIgYW5kIHJldHVybnMgdGhlIGN1cnJlbnQgUGh5c2ljYWxSZXNvdXJjZUlkICh0aGUgb25lIHByb3ZpZGVkIGluIGBldmVudGApLlxuICovXG5mdW5jdGlvbiBkZWZhdWx0UGh5c2ljYWxSZXNvdXJjZUlkKHJlcTogQVdTTGFtYmRhLkNsb3VkRm9ybWF0aW9uQ3VzdG9tUmVzb3VyY2VFdmVudCk6IHN0cmluZyB7XG4gIHN3aXRjaCAocmVxLlJlcXVlc3RUeXBlKSB7XG4gICAgY2FzZSAnQ3JlYXRlJzpcbiAgICAgIHJldHVybiByZXEuUmVxdWVzdElkO1xuXG4gICAgY2FzZSAnVXBkYXRlJzpcbiAgICBjYXNlICdEZWxldGUnOlxuICAgICAgcmV0dXJuIHJlcS5QaHlzaWNhbFJlc291cmNlSWQ7XG5cbiAgICBkZWZhdWx0OlxuICAgICAgdGhyb3cgbmV3IEVycm9yKGBJbnZhbGlkIFwiUmVxdWVzdFR5cGVcIiBpbiByZXF1ZXN0IFwiJHtKU09OLnN0cmluZ2lmeShyZXEpfVwiYCk7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/outbound.js b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/outbound.js new file mode 100644 index 0000000000000..70203dcc42f3f --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/outbound.js @@ -0,0 +1,45 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.httpRequest = exports.invokeFunction = exports.startExecution = void 0; +/* istanbul ignore file */ +const https = require("https"); +// eslint-disable-next-line import/no-extraneous-dependencies +const AWS = require("aws-sdk"); +const FRAMEWORK_HANDLER_TIMEOUT = 900000; // 15 minutes +// In order to honor the overall maximum timeout set for the target process, +// the default 2 minutes from AWS SDK has to be overriden: +// https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Config.html#httpOptions-property +const awsSdkConfig = { + httpOptions: { timeout: FRAMEWORK_HANDLER_TIMEOUT }, +}; +async function defaultHttpRequest(options, responseBody) { + return new Promise((resolve, reject) => { + try { + const request = https.request(options, resolve); + request.on('error', reject); + request.write(responseBody); + request.end(); + } + catch (e) { + reject(e); + } + }); +} +let sfn; +let lambda; +async function defaultStartExecution(req) { + if (!sfn) { + sfn = new AWS.StepFunctions(awsSdkConfig); + } + return sfn.startExecution(req).promise(); +} +async function defaultInvokeFunction(req) { + if (!lambda) { + lambda = new AWS.Lambda(awsSdkConfig); + } + return lambda.invoke(req).promise(); +} +exports.startExecution = defaultStartExecution; +exports.invokeFunction = defaultInvokeFunction; +exports.httpRequest = defaultHttpRequest; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0Ym91bmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJvdXRib3VuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwwQkFBMEI7QUFDMUIsK0JBQStCO0FBQy9CLDZEQUE2RDtBQUM3RCwrQkFBK0I7QUFJL0IsTUFBTSx5QkFBeUIsR0FBRyxNQUFNLENBQUMsQ0FBQyxhQUFhO0FBRXZELDRFQUE0RTtBQUM1RSwwREFBMEQ7QUFDMUQsMkZBQTJGO0FBQzNGLE1BQU0sWUFBWSxHQUF5QjtJQUN6QyxXQUFXLEVBQUUsRUFBRSxPQUFPLEVBQUUseUJBQXlCLEVBQUU7Q0FDcEQsQ0FBQztBQUVGLEtBQUssVUFBVSxrQkFBa0IsQ0FBQyxPQUE2QixFQUFFLFlBQW9CO0lBQ25GLE9BQU8sSUFBSSxPQUFPLENBQUMsQ0FBQyxPQUFPLEVBQUUsTUFBTSxFQUFFLEVBQUU7UUFDckMsSUFBSTtZQUNGLE1BQU0sT0FBTyxHQUFHLEtBQUssQ0FBQyxPQUFPLENBQUMsT0FBTyxFQUFFLE9BQU8sQ0FBQyxDQUFDO1lBQ2hELE9BQU8sQ0FBQyxFQUFFLENBQUMsT0FBTyxFQUFFLE1BQU0sQ0FBQyxDQUFDO1lBQzVCLE9BQU8sQ0FBQyxLQUFLLENBQUMsWUFBWSxDQUFDLENBQUM7WUFDNUIsT0FBTyxDQUFDLEdBQUcsRUFBRSxDQUFDO1NBQ2Y7UUFBQyxPQUFPLENBQUMsRUFBRTtZQUNWLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQztTQUNYO0lBQ0gsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDO0FBRUQsSUFBSSxHQUFzQixDQUFDO0FBQzNCLElBQUksTUFBa0IsQ0FBQztBQUV2QixLQUFLLFVBQVUscUJBQXFCLENBQUMsR0FBMEM7SUFDN0UsSUFBSSxDQUFDLEdBQUcsRUFBRTtRQUNSLEdBQUcsR0FBRyxJQUFJLEdBQUcsQ0FBQyxhQUFhLENBQUMsWUFBWSxDQUFDLENBQUM7S0FDM0M7SUFFRCxPQUFPLEdBQUcsQ0FBQyxjQUFjLENBQUMsR0FBRyxDQUFDLENBQUMsT0FBTyxFQUFFLENBQUM7QUFDM0MsQ0FBQztBQUVELEtBQUssVUFBVSxxQkFBcUIsQ0FBQyxHQUFpQztJQUNwRSxJQUFJLENBQUMsTUFBTSxFQUFFO1FBQ1gsTUFBTSxHQUFHLElBQUksR0FBRyxDQUFDLE1BQU0sQ0FBQyxZQUFZLENBQUMsQ0FBQztLQUN2QztJQUVELE9BQU8sTUFBTSxDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQyxPQUFPLEVBQUUsQ0FBQztBQUN0QyxDQUFDO0FBRVUsUUFBQSxjQUFjLEdBQUcscUJBQXFCLENBQUM7QUFDdkMsUUFBQSxjQUFjLEdBQUcscUJBQXFCLENBQUM7QUFDdkMsUUFBQSxXQUFXLEdBQUcsa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBpc3RhbmJ1bCBpZ25vcmUgZmlsZSAqL1xuaW1wb3J0ICogYXMgaHR0cHMgZnJvbSAnaHR0cHMnO1xuLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIGltcG9ydC9uby1leHRyYW5lb3VzLWRlcGVuZGVuY2llc1xuaW1wb3J0ICogYXMgQVdTIGZyb20gJ2F3cy1zZGsnO1xuLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIGltcG9ydC9uby1leHRyYW5lb3VzLWRlcGVuZGVuY2llc1xuaW1wb3J0IHR5cGUgeyBDb25maWd1cmF0aW9uT3B0aW9ucyB9IGZyb20gJ2F3cy1zZGsvbGliL2NvbmZpZy1iYXNlJztcblxuY29uc3QgRlJBTUVXT1JLX0hBTkRMRVJfVElNRU9VVCA9IDkwMDAwMDsgLy8gMTUgbWludXRlc1xuXG4vLyBJbiBvcmRlciB0byBob25vciB0aGUgb3ZlcmFsbCBtYXhpbXVtIHRpbWVvdXQgc2V0IGZvciB0aGUgdGFyZ2V0IHByb2Nlc3MsXG4vLyB0aGUgZGVmYXVsdCAyIG1pbnV0ZXMgZnJvbSBBV1MgU0RLIGhhcyB0byBiZSBvdmVycmlkZW46XG4vLyBodHRwczovL2RvY3MuYXdzLmFtYXpvbi5jb20vQVdTSmF2YVNjcmlwdFNESy9sYXRlc3QvQVdTL0NvbmZpZy5odG1sI2h0dHBPcHRpb25zLXByb3BlcnR5XG5jb25zdCBhd3NTZGtDb25maWc6IENvbmZpZ3VyYXRpb25PcHRpb25zID0ge1xuICBodHRwT3B0aW9uczogeyB0aW1lb3V0OiBGUkFNRVdPUktfSEFORExFUl9USU1FT1VUIH0sXG59O1xuXG5hc3luYyBmdW5jdGlvbiBkZWZhdWx0SHR0cFJlcXVlc3Qob3B0aW9uczogaHR0cHMuUmVxdWVzdE9wdGlvbnMsIHJlc3BvbnNlQm9keTogc3RyaW5nKSB7XG4gIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XG4gICAgdHJ5IHtcbiAgICAgIGNvbnN0IHJlcXVlc3QgPSBodHRwcy5yZXF1ZXN0KG9wdGlvbnMsIHJlc29sdmUpO1xuICAgICAgcmVxdWVzdC5vbignZXJyb3InLCByZWplY3QpO1xuICAgICAgcmVxdWVzdC53cml0ZShyZXNwb25zZUJvZHkpO1xuICAgICAgcmVxdWVzdC5lbmQoKTtcbiAgICB9IGNhdGNoIChlKSB7XG4gICAgICByZWplY3QoZSk7XG4gICAgfVxuICB9KTtcbn1cblxubGV0IHNmbjogQVdTLlN0ZXBGdW5jdGlvbnM7XG5sZXQgbGFtYmRhOiBBV1MuTGFtYmRhO1xuXG5hc3luYyBmdW5jdGlvbiBkZWZhdWx0U3RhcnRFeGVjdXRpb24ocmVxOiBBV1MuU3RlcEZ1bmN0aW9ucy5TdGFydEV4ZWN1dGlvbklucHV0KTogUHJvbWlzZTxBV1MuU3RlcEZ1bmN0aW9ucy5TdGFydEV4ZWN1dGlvbk91dHB1dD4ge1xuICBpZiAoIXNmbikge1xuICAgIHNmbiA9IG5ldyBBV1MuU3RlcEZ1bmN0aW9ucyhhd3NTZGtDb25maWcpO1xuICB9XG5cbiAgcmV0dXJuIHNmbi5zdGFydEV4ZWN1dGlvbihyZXEpLnByb21pc2UoKTtcbn1cblxuYXN5bmMgZnVuY3Rpb24gZGVmYXVsdEludm9rZUZ1bmN0aW9uKHJlcTogQVdTLkxhbWJkYS5JbnZvY2F0aW9uUmVxdWVzdCk6IFByb21pc2U8QVdTLkxhbWJkYS5JbnZvY2F0aW9uUmVzcG9uc2U+IHtcbiAgaWYgKCFsYW1iZGEpIHtcbiAgICBsYW1iZGEgPSBuZXcgQVdTLkxhbWJkYShhd3NTZGtDb25maWcpO1xuICB9XG5cbiAgcmV0dXJuIGxhbWJkYS5pbnZva2UocmVxKS5wcm9taXNlKCk7XG59XG5cbmV4cG9ydCBsZXQgc3RhcnRFeGVjdXRpb24gPSBkZWZhdWx0U3RhcnRFeGVjdXRpb247XG5leHBvcnQgbGV0IGludm9rZUZ1bmN0aW9uID0gZGVmYXVsdEludm9rZUZ1bmN0aW9uO1xuZXhwb3J0IGxldCBodHRwUmVxdWVzdCA9IGRlZmF1bHRIdHRwUmVxdWVzdDtcbiJdfQ== \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/util.js b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/util.js new file mode 100644 index 0000000000000..ee4c6e9c9ddeb --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671/util.js @@ -0,0 +1,17 @@ +"use strict"; +/* eslint-disable no-console */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.log = exports.getEnv = void 0; +function getEnv(name) { + const value = process.env[name]; + if (!value) { + throw new Error(`The environment variable "${name}" is not defined`); + } + return value; +} +exports.getEnv = getEnv; +function log(title, ...args) { + console.log('[provider-framework]', title, ...args.map(x => typeof (x) === 'object' ? JSON.stringify(x, undefined, 2) : x)); +} +exports.log = log; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLCtCQUErQjs7O0FBRS9CLFNBQWdCLE1BQU0sQ0FBQyxJQUFZO0lBQ2pDLE1BQU0sS0FBSyxHQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDaEMsSUFBSSxDQUFDLEtBQUssRUFBRTtRQUNWLE1BQU0sSUFBSSxLQUFLLENBQUMsNkJBQTZCLElBQUksa0JBQWtCLENBQUMsQ0FBQztLQUN0RTtJQUNELE9BQU8sS0FBSyxDQUFDO0FBQ2YsQ0FBQztBQU5ELHdCQU1DO0FBRUQsU0FBZ0IsR0FBRyxDQUFDLEtBQVUsRUFBRSxHQUFHLElBQVc7SUFDNUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxzQkFBc0IsRUFBRSxLQUFLLEVBQUUsR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsT0FBTSxDQUFDLENBQUMsQ0FBQyxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxDQUFDLEVBQUUsU0FBUyxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO0FBQzdILENBQUM7QUFGRCxrQkFFQyIsInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLWNvbnNvbGUgKi9cblxuZXhwb3J0IGZ1bmN0aW9uIGdldEVudihuYW1lOiBzdHJpbmcpOiBzdHJpbmcge1xuICBjb25zdCB2YWx1ZSA9IHByb2Nlc3MuZW52W25hbWVdO1xuICBpZiAoIXZhbHVlKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKGBUaGUgZW52aXJvbm1lbnQgdmFyaWFibGUgXCIke25hbWV9XCIgaXMgbm90IGRlZmluZWRgKTtcbiAgfVxuICByZXR1cm4gdmFsdWU7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBsb2codGl0bGU6IGFueSwgLi4uYXJnczogYW55W10pIHtcbiAgY29uc29sZS5sb2coJ1twcm92aWRlci1mcmFtZXdvcmtdJywgdGl0bGUsIC4uLmFyZ3MubWFwKHggPT4gdHlwZW9mKHgpID09PSAnb2JqZWN0JyA/IEpTT04uc3RyaW5naWZ5KHgsIHVuZGVmaW5lZCwgMikgOiB4KSk7XG59XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.6ac1448e726779b45302ae5560690a6ce8925b2bcd7f3da633ee6abc605b5bac/index.js b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.6ac1448e726779b45302ae5560690a6ce8925b2bcd7f3da633ee6abc605b5bac/index.js new file mode 100644 index 0000000000000..babee5d17cda1 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/asset.6ac1448e726779b45302ae5560690a6ce8925b2bcd7f3da633ee6abc605b5bac/index.js @@ -0,0 +1,27208 @@ +"use strict"; +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __commonJS = (cb, mod) => function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; +}; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// node_modules/@aws-lambda-powertools/logger/lib/helpers.js +var require_helpers = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/helpers.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.createLogger = void 0; + var _1 = require_lib2(); + var createLogger = (options = {}) => new _1.Logger(options); + exports.createLogger = createLogger; + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/utils/lambda/LambdaInterface.js +var require_LambdaInterface = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/utils/lambda/LambdaInterface.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/utils/lambda/index.js +var require_lambda = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/utils/lambda/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + __exportStar(require_LambdaInterface(), exports); + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/Utility.js +var require_Utility = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/Utility.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Utility = void 0; + var Utility = class { + constructor() { + this.coldStart = true; + } + getColdStart() { + if (this.coldStart) { + this.coldStart = false; + return true; + } + return false; + } + isColdStart() { + return this.getColdStart(); + } + }; + exports.Utility = Utility; + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/samples/resources/contexts/hello-world.js +var require_hello_world = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/samples/resources/contexts/hello-world.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.helloworldContext = void 0; + var helloworldContext = { + callbackWaitsForEmptyEventLoop: true, + functionVersion: "$LATEST", + functionName: "foo-bar-function", + memoryLimitInMB: "128", + logGroupName: "/aws/lambda/foo-bar-function-123456abcdef", + logStreamName: "2021/03/09/[$LATEST]abcdef123456abcdef123456abcdef123456", + invokedFunctionArn: "arn:aws:lambda:eu-west-1:123456789012:function:Example", + awsRequestId: "c6af9ac6-7b61-11e6-9a41-93e8deadbeef", + getRemainingTimeInMillis: () => 1234, + done: () => console.log("Done!"), + fail: () => console.log("Failed!"), + succeed: () => console.log("Succeeded!") + }; + exports.helloworldContext = helloworldContext; + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/samples/resources/contexts/index.js +var require_contexts = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/samples/resources/contexts/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + __exportStar(require_hello_world(), exports); + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/samples/resources/events/custom/index.js +var require_custom = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/samples/resources/events/custom/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CustomEvent = void 0; + exports.CustomEvent = { + key1: "value1", + key2: "value2", + key3: "value3" + }; + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/samples/resources/events/index.js +var require_events = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/samples/resources/events/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Custom = void 0; + exports.Custom = require_custom(); + } +}); + +// node_modules/@aws-lambda-powertools/commons/lib/index.js +var require_lib = __commonJS({ + "node_modules/@aws-lambda-powertools/commons/lib/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Events = exports.ContextExamples = void 0; + __exportStar(require_lambda(), exports); + __exportStar(require_Utility(), exports); + exports.ContextExamples = require_contexts(); + exports.Events = require_events(); + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/formatter/LogFormatter.js +var require_LogFormatter = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/formatter/LogFormatter.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.LogFormatter = void 0; + var LogFormatter = class { + formatError(error) { + return { + name: error.name, + location: this.getCodeLocation(error.stack), + message: error.message, + stack: error.stack + }; + } + formatTimestamp(now) { + return now.toISOString(); + } + getCodeLocation(stack) { + if (!stack) { + return ""; + } + const stackLines = stack.split("\n"); + const regex = /\((.*):(\d+):(\d+)\)\\?$/; + let i; + for (i = 0; i < stackLines.length; i++) { + const match = regex.exec(stackLines[i]); + if (Array.isArray(match)) { + return `${match[1]}:${Number(match[2])}`; + } + } + return ""; + } + }; + exports.LogFormatter = LogFormatter; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/formatter/LogFormatterInterface.js +var require_LogFormatterInterface = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/formatter/LogFormatterInterface.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/formatter/PowertoolLogFormatter.js +var require_PowertoolLogFormatter = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/formatter/PowertoolLogFormatter.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.PowertoolLogFormatter = void 0; + var _1 = require_formatter(); + var PowertoolLogFormatter = class extends _1.LogFormatter { + formatAttributes(attributes) { + var _a, _b, _c, _d, _e; + return { + cold_start: (_a = attributes.lambdaContext) === null || _a === void 0 ? void 0 : _a.coldStart, + function_arn: (_b = attributes.lambdaContext) === null || _b === void 0 ? void 0 : _b.invokedFunctionArn, + function_memory_size: (_c = attributes.lambdaContext) === null || _c === void 0 ? void 0 : _c.memoryLimitInMB, + function_name: (_d = attributes.lambdaContext) === null || _d === void 0 ? void 0 : _d.functionName, + function_request_id: (_e = attributes.lambdaContext) === null || _e === void 0 ? void 0 : _e.awsRequestId, + level: attributes.logLevel, + message: attributes.message, + sampling_rate: attributes.sampleRateValue, + service: attributes.serviceName, + timestamp: this.formatTimestamp(attributes.timestamp), + xray_trace_id: attributes.xRayTraceId + }; + } + }; + exports.PowertoolLogFormatter = PowertoolLogFormatter; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/formatter/index.js +var require_formatter = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/formatter/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + __exportStar(require_LogFormatter(), exports); + __exportStar(require_LogFormatterInterface(), exports); + __exportStar(require_PowertoolLogFormatter(), exports); + } +}); + +// node_modules/lodash.pickby/index.js +var require_lodash = __commonJS({ + "node_modules/lodash.pickby/index.js"(exports, module2) { + var LARGE_ARRAY_SIZE = 200; + var FUNC_ERROR_TEXT = "Expected a function"; + var HASH_UNDEFINED = "__lodash_hash_undefined__"; + var UNORDERED_COMPARE_FLAG = 1; + var PARTIAL_COMPARE_FLAG = 2; + var INFINITY = 1 / 0; + var MAX_SAFE_INTEGER = 9007199254740991; + var argsTag = "[object Arguments]"; + var arrayTag = "[object Array]"; + var boolTag = "[object Boolean]"; + var dateTag = "[object Date]"; + var errorTag = "[object Error]"; + var funcTag = "[object Function]"; + var genTag = "[object GeneratorFunction]"; + var mapTag = "[object Map]"; + var numberTag = "[object Number]"; + var objectTag = "[object Object]"; + var promiseTag = "[object Promise]"; + var regexpTag = "[object RegExp]"; + var setTag = "[object Set]"; + var stringTag = "[object String]"; + var symbolTag = "[object Symbol]"; + var weakMapTag = "[object WeakMap]"; + var arrayBufferTag = "[object ArrayBuffer]"; + var dataViewTag = "[object DataView]"; + var float32Tag = "[object Float32Array]"; + var float64Tag = "[object Float64Array]"; + var int8Tag = "[object Int8Array]"; + var int16Tag = "[object Int16Array]"; + var int32Tag = "[object Int32Array]"; + var uint8Tag = "[object Uint8Array]"; + var uint8ClampedTag = "[object Uint8ClampedArray]"; + var uint16Tag = "[object Uint16Array]"; + var uint32Tag = "[object Uint32Array]"; + var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; + var reIsPlainProp = /^\w*$/; + var reLeadingDot = /^\./; + var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; + var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + var reEscapeChar = /\\(\\)?/g; + var reIsHostCtor = /^\[object .+?Constructor\]$/; + var reIsUint = /^(?:0|[1-9]\d*)$/; + var typedArrayTags = {}; + typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; + typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; + var freeGlobal = typeof global == "object" && global && global.Object === Object && global; + var freeSelf = typeof self == "object" && self && self.Object === Object && self; + var root = freeGlobal || freeSelf || Function("return this")(); + var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; + var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2; + var moduleExports = freeModule && freeModule.exports === freeExports; + var freeProcess = moduleExports && freeGlobal.process; + var nodeUtil = function() { + try { + return freeProcess && freeProcess.binding("util"); + } catch (e) { + } + }(); + var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; + function arrayPush(array, values) { + var index = -1, length = values.length, offset = array.length; + while (++index < length) { + array[offset + index] = values[index]; + } + return array; + } + function arraySome(array, predicate) { + var index = -1, length = array ? array.length : 0; + while (++index < length) { + if (predicate(array[index], index, array)) { + return true; + } + } + return false; + } + function baseProperty(key) { + return function(object) { + return object == null ? void 0 : object[key]; + }; + } + function baseTimes(n, iteratee) { + var index = -1, result = Array(n); + while (++index < n) { + result[index] = iteratee(index); + } + return result; + } + function baseUnary(func) { + return function(value) { + return func(value); + }; + } + function getValue(object, key) { + return object == null ? void 0 : object[key]; + } + function isHostObject(value) { + var result = false; + if (value != null && typeof value.toString != "function") { + try { + result = !!(value + ""); + } catch (e) { + } + } + return result; + } + function mapToArray(map) { + var index = -1, result = Array(map.size); + map.forEach(function(value, key) { + result[++index] = [key, value]; + }); + return result; + } + function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; + } + function setToArray(set) { + var index = -1, result = Array(set.size); + set.forEach(function(value) { + result[++index] = value; + }); + return result; + } + var arrayProto = Array.prototype; + var funcProto = Function.prototype; + var objectProto = Object.prototype; + var coreJsData = root["__core-js_shared__"]; + var maskSrcKey = function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); + return uid ? "Symbol(src)_1." + uid : ""; + }(); + var funcToString = funcProto.toString; + var hasOwnProperty = objectProto.hasOwnProperty; + var objectToString = objectProto.toString; + var reIsNative = RegExp( + "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" + ); + var Symbol2 = root.Symbol; + var Uint8Array2 = root.Uint8Array; + var getPrototype = overArg(Object.getPrototypeOf, Object); + var propertyIsEnumerable = objectProto.propertyIsEnumerable; + var splice = arrayProto.splice; + var nativeGetSymbols = Object.getOwnPropertySymbols; + var nativeKeys = overArg(Object.keys, Object); + var DataView = getNative(root, "DataView"); + var Map2 = getNative(root, "Map"); + var Promise2 = getNative(root, "Promise"); + var Set2 = getNative(root, "Set"); + var WeakMap = getNative(root, "WeakMap"); + var nativeCreate = getNative(Object, "create"); + var dataViewCtorString = toSource(DataView); + var mapCtorString = toSource(Map2); + var promiseCtorString = toSource(Promise2); + var setCtorString = toSource(Set2); + var weakMapCtorString = toSource(WeakMap); + var symbolProto = Symbol2 ? Symbol2.prototype : void 0; + var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0; + var symbolToString = symbolProto ? symbolProto.toString : void 0; + function Hash(entries) { + var index = -1, length = entries ? entries.length : 0; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + } + function hashDelete(key) { + return this.has(key) && delete this.__data__[key]; + } + function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? void 0 : result; + } + return hasOwnProperty.call(data, key) ? data[key] : void 0; + } + function hashHas(key) { + var data = this.__data__; + return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key); + } + function hashSet(key, value) { + var data = this.__data__; + data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value; + return this; + } + Hash.prototype.clear = hashClear; + Hash.prototype["delete"] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; + function ListCache(entries) { + var index = -1, length = entries ? entries.length : 0; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function listCacheClear() { + this.__data__ = []; + } + function listCacheDelete(key) { + var data = this.__data__, index = assocIndexOf(data, key); + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + return true; + } + function listCacheGet(key) { + var data = this.__data__, index = assocIndexOf(data, key); + return index < 0 ? void 0 : data[index][1]; + } + function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; + } + function listCacheSet(key, value) { + var data = this.__data__, index = assocIndexOf(data, key); + if (index < 0) { + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; + } + ListCache.prototype.clear = listCacheClear; + ListCache.prototype["delete"] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; + function MapCache(entries) { + var index = -1, length = entries ? entries.length : 0; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function mapCacheClear() { + this.__data__ = { + "hash": new Hash(), + "map": new (Map2 || ListCache)(), + "string": new Hash() + }; + } + function mapCacheDelete(key) { + return getMapData(this, key)["delete"](key); + } + function mapCacheGet(key) { + return getMapData(this, key).get(key); + } + function mapCacheHas(key) { + return getMapData(this, key).has(key); + } + function mapCacheSet(key, value) { + getMapData(this, key).set(key, value); + return this; + } + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype["delete"] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; + function SetCache(values) { + var index = -1, length = values ? values.length : 0; + this.__data__ = new MapCache(); + while (++index < length) { + this.add(values[index]); + } + } + function setCacheAdd(value) { + this.__data__.set(value, HASH_UNDEFINED); + return this; + } + function setCacheHas(value) { + return this.__data__.has(value); + } + SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; + SetCache.prototype.has = setCacheHas; + function Stack(entries) { + this.__data__ = new ListCache(entries); + } + function stackClear() { + this.__data__ = new ListCache(); + } + function stackDelete(key) { + return this.__data__["delete"](key); + } + function stackGet(key) { + return this.__data__.get(key); + } + function stackHas(key) { + return this.__data__.has(key); + } + function stackSet(key, value) { + var cache = this.__data__; + if (cache instanceof ListCache) { + var pairs = cache.__data__; + if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) { + pairs.push([key, value]); + return this; + } + cache = this.__data__ = new MapCache(pairs); + } + cache.set(key, value); + return this; + } + Stack.prototype.clear = stackClear; + Stack.prototype["delete"] = stackDelete; + Stack.prototype.get = stackGet; + Stack.prototype.has = stackHas; + Stack.prototype.set = stackSet; + function arrayLikeKeys(value, inherited) { + var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : []; + var length = result.length, skipIndexes = !!length; + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isIndex(key, length)))) { + result.push(key); + } + } + return result; + } + function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; + } + function baseGet(object, path) { + path = isKey(path, object) ? [path] : castPath(path); + var index = 0, length = path.length; + while (object != null && index < length) { + object = object[toKey(path[index++])]; + } + return index && index == length ? object : void 0; + } + function baseGetAllKeys(object, keysFunc, symbolsFunc) { + var result = keysFunc(object); + return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); + } + function baseGetTag(value) { + return objectToString.call(value); + } + function baseHasIn(object, key) { + return object != null && key in Object(object); + } + function baseIsEqual(value, other, customizer, bitmask, stack) { + if (value === other) { + return true; + } + if (value == null || other == null || !isObject(value) && !isObjectLike(other)) { + return value !== value && other !== other; + } + return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack); + } + function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) { + var objIsArr = isArray(object), othIsArr = isArray(other), objTag = arrayTag, othTag = arrayTag; + if (!objIsArr) { + objTag = getTag(object); + objTag = objTag == argsTag ? objectTag : objTag; + } + if (!othIsArr) { + othTag = getTag(other); + othTag = othTag == argsTag ? objectTag : othTag; + } + var objIsObj = objTag == objectTag && !isHostObject(object), othIsObj = othTag == objectTag && !isHostObject(other), isSameTag = objTag == othTag; + if (isSameTag && !objIsObj) { + stack || (stack = new Stack()); + return objIsArr || isTypedArray(object) ? equalArrays(object, other, equalFunc, customizer, bitmask, stack) : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack); + } + if (!(bitmask & PARTIAL_COMPARE_FLAG)) { + var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__"); + if (objIsWrapped || othIsWrapped) { + var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; + stack || (stack = new Stack()); + return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack); + } + } + if (!isSameTag) { + return false; + } + stack || (stack = new Stack()); + return equalObjects(object, other, equalFunc, customizer, bitmask, stack); + } + function baseIsMatch(object, source, matchData, customizer) { + var index = matchData.length, length = index, noCustomizer = !customizer; + if (object == null) { + return !length; + } + object = Object(object); + while (index--) { + var data = matchData[index]; + if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) { + return false; + } + } + while (++index < length) { + data = matchData[index]; + var key = data[0], objValue = object[key], srcValue = data[1]; + if (noCustomizer && data[2]) { + if (objValue === void 0 && !(key in object)) { + return false; + } + } else { + var stack = new Stack(); + if (customizer) { + var result = customizer(objValue, srcValue, key, object, source, stack); + } + if (!(result === void 0 ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack) : result)) { + return false; + } + } + } + return true; + } + function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); + } + function baseIsTypedArray(value) { + return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objectToString.call(value)]; + } + function baseIteratee(value) { + if (typeof value == "function") { + return value; + } + if (value == null) { + return identity; + } + if (typeof value == "object") { + return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value); + } + return property(value); + } + function baseKeys(object) { + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != "constructor") { + result.push(key); + } + } + return result; + } + function baseKeysIn(object) { + if (!isObject(object)) { + return nativeKeysIn(object); + } + var isProto = isPrototype(object), result = []; + for (var key in object) { + if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) { + result.push(key); + } + } + return result; + } + function baseMatches(source) { + var matchData = getMatchData(source); + if (matchData.length == 1 && matchData[0][2]) { + return matchesStrictComparable(matchData[0][0], matchData[0][1]); + } + return function(object) { + return object === source || baseIsMatch(object, source, matchData); + }; + } + function baseMatchesProperty(path, srcValue) { + if (isKey(path) && isStrictComparable(srcValue)) { + return matchesStrictComparable(toKey(path), srcValue); + } + return function(object) { + var objValue = get(object, path); + return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, void 0, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG); + }; + } + function basePickBy(object, props, predicate) { + var index = -1, length = props.length, result = {}; + while (++index < length) { + var key = props[index], value = object[key]; + if (predicate(value, key)) { + result[key] = value; + } + } + return result; + } + function basePropertyDeep(path) { + return function(object) { + return baseGet(object, path); + }; + } + function baseToString(value) { + if (typeof value == "string") { + return value; + } + if (isSymbol(value)) { + return symbolToString ? symbolToString.call(value) : ""; + } + var result = value + ""; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; + } + function castPath(value) { + return isArray(value) ? value : stringToPath(value); + } + function equalArrays(array, other, equalFunc, customizer, bitmask, stack) { + var isPartial = bitmask & PARTIAL_COMPARE_FLAG, arrLength = array.length, othLength = other.length; + if (arrLength != othLength && !(isPartial && othLength > arrLength)) { + return false; + } + var stacked = stack.get(array); + if (stacked && stack.get(other)) { + return stacked == other; + } + var index = -1, result = true, seen = bitmask & UNORDERED_COMPARE_FLAG ? new SetCache() : void 0; + stack.set(array, other); + stack.set(other, array); + while (++index < arrLength) { + var arrValue = array[index], othValue = other[index]; + if (customizer) { + var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack); + } + if (compared !== void 0) { + if (compared) { + continue; + } + result = false; + break; + } + if (seen) { + if (!arraySome(other, function(othValue2, othIndex) { + if (!seen.has(othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, customizer, bitmask, stack))) { + return seen.add(othIndex); + } + })) { + result = false; + break; + } + } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) { + result = false; + break; + } + } + stack["delete"](array); + stack["delete"](other); + return result; + } + function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) { + switch (tag) { + case dataViewTag: + if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) { + return false; + } + object = object.buffer; + other = other.buffer; + case arrayBufferTag: + if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) { + return false; + } + return true; + case boolTag: + case dateTag: + case numberTag: + return eq(+object, +other); + case errorTag: + return object.name == other.name && object.message == other.message; + case regexpTag: + case stringTag: + return object == other + ""; + case mapTag: + var convert = mapToArray; + case setTag: + var isPartial = bitmask & PARTIAL_COMPARE_FLAG; + convert || (convert = setToArray); + if (object.size != other.size && !isPartial) { + return false; + } + var stacked = stack.get(object); + if (stacked) { + return stacked == other; + } + bitmask |= UNORDERED_COMPARE_FLAG; + stack.set(object, other); + var result = equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack); + stack["delete"](object); + return result; + case symbolTag: + if (symbolValueOf) { + return symbolValueOf.call(object) == symbolValueOf.call(other); + } + } + return false; + } + function equalObjects(object, other, equalFunc, customizer, bitmask, stack) { + var isPartial = bitmask & PARTIAL_COMPARE_FLAG, objProps = keys(object), objLength = objProps.length, othProps = keys(other), othLength = othProps.length; + if (objLength != othLength && !isPartial) { + return false; + } + var index = objLength; + while (index--) { + var key = objProps[index]; + if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { + return false; + } + } + var stacked = stack.get(object); + if (stacked && stack.get(other)) { + return stacked == other; + } + var result = true; + stack.set(object, other); + stack.set(other, object); + var skipCtor = isPartial; + while (++index < objLength) { + key = objProps[index]; + var objValue = object[key], othValue = other[key]; + if (customizer) { + var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); + } + if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack) : compared)) { + result = false; + break; + } + skipCtor || (skipCtor = key == "constructor"); + } + if (result && !skipCtor) { + var objCtor = object.constructor, othCtor = other.constructor; + if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) { + result = false; + } + } + stack["delete"](object); + stack["delete"](other); + return result; + } + function getAllKeysIn(object) { + return baseGetAllKeys(object, keysIn, getSymbolsIn); + } + function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; + } + function getMatchData(object) { + var result = keys(object), length = result.length; + while (length--) { + var key = result[length], value = object[key]; + result[length] = [key, value, isStrictComparable(value)]; + } + return result; + } + function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : void 0; + } + var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray; + var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { + var result = []; + while (object) { + arrayPush(result, getSymbols(object)); + object = getPrototype(object); + } + return result; + }; + var getTag = baseGetTag; + if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) { + getTag = function(value) { + var result = objectToString.call(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : void 0; + if (ctorString) { + switch (ctorString) { + case dataViewCtorString: + return dataViewTag; + case mapCtorString: + return mapTag; + case promiseCtorString: + return promiseTag; + case setCtorString: + return setTag; + case weakMapCtorString: + return weakMapTag; + } + } + return result; + }; + } + function hasPath(object, path, hasFunc) { + path = isKey(path, object) ? [path] : castPath(path); + var result, index = -1, length = path.length; + while (++index < length) { + var key = toKey(path[index]); + if (!(result = object != null && hasFunc(object, key))) { + break; + } + object = object[key]; + } + if (result) { + return result; + } + var length = object ? object.length : 0; + return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); + } + function isIndex(value, length) { + length = length == null ? MAX_SAFE_INTEGER : length; + return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); + } + function isKey(value, object) { + if (isArray(value)) { + return false; + } + var type = typeof value; + if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) { + return true; + } + return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object); + } + function isKeyable(value) { + var type = typeof value; + return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; + } + function isMasked(func) { + return !!maskSrcKey && maskSrcKey in func; + } + function isPrototype(value) { + var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; + return value === proto; + } + function isStrictComparable(value) { + return value === value && !isObject(value); + } + function matchesStrictComparable(key, srcValue) { + return function(object) { + if (object == null) { + return false; + } + return object[key] === srcValue && (srcValue !== void 0 || key in Object(object)); + }; + } + function nativeKeysIn(object) { + var result = []; + if (object != null) { + for (var key in Object(object)) { + result.push(key); + } + } + return result; + } + var stringToPath = memoize(function(string) { + string = toString(string); + var result = []; + if (reLeadingDot.test(string)) { + result.push(""); + } + string.replace(rePropName, function(match, number, quote, string2) { + result.push(quote ? string2.replace(reEscapeChar, "$1") : number || match); + }); + return result; + }); + function toKey(value) { + if (typeof value == "string" || isSymbol(value)) { + return value; + } + var result = value + ""; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; + } + function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) { + } + try { + return func + ""; + } catch (e) { + } + } + return ""; + } + function memoize(func, resolver) { + if (typeof func != "function" || resolver && typeof resolver != "function") { + throw new TypeError(FUNC_ERROR_TEXT); + } + var memoized = function() { + var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; + if (cache.has(key)) { + return cache.get(key); + } + var result = func.apply(this, args); + memoized.cache = cache.set(key, result); + return result; + }; + memoized.cache = new (memoize.Cache || MapCache)(); + return memoized; + } + memoize.Cache = MapCache; + function eq(value, other) { + return value === other || value !== value && other !== other; + } + function isArguments(value) { + return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag); + } + var isArray = Array.isArray; + function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); + } + function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); + } + function isFunction(value) { + var tag = isObject(value) ? objectToString.call(value) : ""; + return tag == funcTag || tag == genTag; + } + function isLength(value) { + return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; + } + function isObject(value) { + var type = typeof value; + return !!value && (type == "object" || type == "function"); + } + function isObjectLike(value) { + return !!value && typeof value == "object"; + } + function isSymbol(value) { + return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag; + } + var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; + function toString(value) { + return value == null ? "" : baseToString(value); + } + function get(object, path, defaultValue) { + var result = object == null ? void 0 : baseGet(object, path); + return result === void 0 ? defaultValue : result; + } + function hasIn(object, path) { + return object != null && hasPath(object, path, baseHasIn); + } + function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); + } + function keysIn(object) { + return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); + } + function pickBy(object, predicate) { + return object == null ? {} : basePickBy(object, getAllKeysIn(object), baseIteratee(predicate)); + } + function identity(value) { + return value; + } + function property(path) { + return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); + } + function stubArray() { + return []; + } + module2.exports = pickBy; + } +}); + +// node_modules/lodash.merge/index.js +var require_lodash2 = __commonJS({ + "node_modules/lodash.merge/index.js"(exports, module2) { + var LARGE_ARRAY_SIZE = 200; + var HASH_UNDEFINED = "__lodash_hash_undefined__"; + var HOT_COUNT = 800; + var HOT_SPAN = 16; + var MAX_SAFE_INTEGER = 9007199254740991; + var argsTag = "[object Arguments]"; + var arrayTag = "[object Array]"; + var asyncTag = "[object AsyncFunction]"; + var boolTag = "[object Boolean]"; + var dateTag = "[object Date]"; + var errorTag = "[object Error]"; + var funcTag = "[object Function]"; + var genTag = "[object GeneratorFunction]"; + var mapTag = "[object Map]"; + var numberTag = "[object Number]"; + var nullTag = "[object Null]"; + var objectTag = "[object Object]"; + var proxyTag = "[object Proxy]"; + var regexpTag = "[object RegExp]"; + var setTag = "[object Set]"; + var stringTag = "[object String]"; + var undefinedTag = "[object Undefined]"; + var weakMapTag = "[object WeakMap]"; + var arrayBufferTag = "[object ArrayBuffer]"; + var dataViewTag = "[object DataView]"; + var float32Tag = "[object Float32Array]"; + var float64Tag = "[object Float64Array]"; + var int8Tag = "[object Int8Array]"; + var int16Tag = "[object Int16Array]"; + var int32Tag = "[object Int32Array]"; + var uint8Tag = "[object Uint8Array]"; + var uint8ClampedTag = "[object Uint8ClampedArray]"; + var uint16Tag = "[object Uint16Array]"; + var uint32Tag = "[object Uint32Array]"; + var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + var reIsHostCtor = /^\[object .+?Constructor\]$/; + var reIsUint = /^(?:0|[1-9]\d*)$/; + var typedArrayTags = {}; + typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; + typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; + var freeGlobal = typeof global == "object" && global && global.Object === Object && global; + var freeSelf = typeof self == "object" && self && self.Object === Object && self; + var root = freeGlobal || freeSelf || Function("return this")(); + var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; + var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2; + var moduleExports = freeModule && freeModule.exports === freeExports; + var freeProcess = moduleExports && freeGlobal.process; + var nodeUtil = function() { + try { + var types = freeModule && freeModule.require && freeModule.require("util").types; + if (types) { + return types; + } + return freeProcess && freeProcess.binding && freeProcess.binding("util"); + } catch (e) { + } + }(); + var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; + function apply(func, thisArg, args) { + switch (args.length) { + case 0: + return func.call(thisArg); + case 1: + return func.call(thisArg, args[0]); + case 2: + return func.call(thisArg, args[0], args[1]); + case 3: + return func.call(thisArg, args[0], args[1], args[2]); + } + return func.apply(thisArg, args); + } + function baseTimes(n, iteratee) { + var index = -1, result = Array(n); + while (++index < n) { + result[index] = iteratee(index); + } + return result; + } + function baseUnary(func) { + return function(value) { + return func(value); + }; + } + function getValue(object, key) { + return object == null ? void 0 : object[key]; + } + function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; + } + var arrayProto = Array.prototype; + var funcProto = Function.prototype; + var objectProto = Object.prototype; + var coreJsData = root["__core-js_shared__"]; + var funcToString = funcProto.toString; + var hasOwnProperty = objectProto.hasOwnProperty; + var maskSrcKey = function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); + return uid ? "Symbol(src)_1." + uid : ""; + }(); + var nativeObjectToString = objectProto.toString; + var objectCtorString = funcToString.call(Object); + var reIsNative = RegExp( + "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" + ); + var Buffer2 = moduleExports ? root.Buffer : void 0; + var Symbol2 = root.Symbol; + var Uint8Array2 = root.Uint8Array; + var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0; + var getPrototype = overArg(Object.getPrototypeOf, Object); + var objectCreate = Object.create; + var propertyIsEnumerable = objectProto.propertyIsEnumerable; + var splice = arrayProto.splice; + var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0; + var defineProperty = function() { + try { + var func = getNative(Object, "defineProperty"); + func({}, "", {}); + return func; + } catch (e) { + } + }(); + var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0; + var nativeMax = Math.max; + var nativeNow = Date.now; + var Map2 = getNative(root, "Map"); + var nativeCreate = getNative(Object, "create"); + var baseCreate = function() { + function object() { + } + return function(proto) { + if (!isObject(proto)) { + return {}; + } + if (objectCreate) { + return objectCreate(proto); + } + object.prototype = proto; + var result = new object(); + object.prototype = void 0; + return result; + }; + }(); + function Hash(entries) { + var index = -1, length = entries == null ? 0 : entries.length; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; + } + function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; + } + function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? void 0 : result; + } + return hasOwnProperty.call(data, key) ? data[key] : void 0; + } + function hashHas(key) { + var data = this.__data__; + return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key); + } + function hashSet(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value; + return this; + } + Hash.prototype.clear = hashClear; + Hash.prototype["delete"] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; + function ListCache(entries) { + var index = -1, length = entries == null ? 0 : entries.length; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function listCacheClear() { + this.__data__ = []; + this.size = 0; + } + function listCacheDelete(key) { + var data = this.__data__, index = assocIndexOf(data, key); + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; + } + function listCacheGet(key) { + var data = this.__data__, index = assocIndexOf(data, key); + return index < 0 ? void 0 : data[index][1]; + } + function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; + } + function listCacheSet(key, value) { + var data = this.__data__, index = assocIndexOf(data, key); + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; + } + ListCache.prototype.clear = listCacheClear; + ListCache.prototype["delete"] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; + function MapCache(entries) { + var index = -1, length = entries == null ? 0 : entries.length; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function mapCacheClear() { + this.size = 0; + this.__data__ = { + "hash": new Hash(), + "map": new (Map2 || ListCache)(), + "string": new Hash() + }; + } + function mapCacheDelete(key) { + var result = getMapData(this, key)["delete"](key); + this.size -= result ? 1 : 0; + return result; + } + function mapCacheGet(key) { + return getMapData(this, key).get(key); + } + function mapCacheHas(key) { + return getMapData(this, key).has(key); + } + function mapCacheSet(key, value) { + var data = getMapData(this, key), size = data.size; + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; + } + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype["delete"] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; + function Stack(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; + } + function stackClear() { + this.__data__ = new ListCache(); + this.size = 0; + } + function stackDelete(key) { + var data = this.__data__, result = data["delete"](key); + this.size = data.size; + return result; + } + function stackGet(key) { + return this.__data__.get(key); + } + function stackHas(key) { + return this.__data__.has(key); + } + function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); + } + data.set(key, value); + this.size = data.size; + return this; + } + Stack.prototype.clear = stackClear; + Stack.prototype["delete"] = stackDelete; + Stack.prototype.get = stackGet; + Stack.prototype.has = stackHas; + Stack.prototype.set = stackSet; + function arrayLikeKeys(value, inherited) { + var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) { + result.push(key); + } + } + return result; + } + function assignMergeValue(object, key, value) { + if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) { + baseAssignValue(object, key, value); + } + } + function assignValue(object, key, value) { + var objValue = object[key]; + if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) { + baseAssignValue(object, key, value); + } + } + function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; + } + function baseAssignValue(object, key, value) { + if (key == "__proto__" && defineProperty) { + defineProperty(object, key, { + "configurable": true, + "enumerable": true, + "value": value, + "writable": true + }); + } else { + object[key] = value; + } + } + var baseFor = createBaseFor(); + function baseGetTag(value) { + if (value == null) { + return value === void 0 ? undefinedTag : nullTag; + } + return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); + } + function baseIsArguments(value) { + return isObjectLike(value) && baseGetTag(value) == argsTag; + } + function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); + } + function baseIsTypedArray(value) { + return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; + } + function baseKeysIn(object) { + if (!isObject(object)) { + return nativeKeysIn(object); + } + var isProto = isPrototype(object), result = []; + for (var key in object) { + if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) { + result.push(key); + } + } + return result; + } + function baseMerge(object, source, srcIndex, customizer, stack) { + if (object === source) { + return; + } + baseFor(source, function(srcValue, key) { + stack || (stack = new Stack()); + if (isObject(srcValue)) { + baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); + } else { + var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0; + if (newValue === void 0) { + newValue = srcValue; + } + assignMergeValue(object, key, newValue); + } + }, keysIn); + } + function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { + var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue); + if (stacked) { + assignMergeValue(object, key, stacked); + return; + } + var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0; + var isCommon = newValue === void 0; + if (isCommon) { + var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue); + newValue = srcValue; + if (isArr || isBuff || isTyped) { + if (isArray(objValue)) { + newValue = objValue; + } else if (isArrayLikeObject(objValue)) { + newValue = copyArray(objValue); + } else if (isBuff) { + isCommon = false; + newValue = cloneBuffer(srcValue, true); + } else if (isTyped) { + isCommon = false; + newValue = cloneTypedArray(srcValue, true); + } else { + newValue = []; + } + } else if (isPlainObject(srcValue) || isArguments(srcValue)) { + newValue = objValue; + if (isArguments(objValue)) { + newValue = toPlainObject(objValue); + } else if (!isObject(objValue) || isFunction(objValue)) { + newValue = initCloneObject(srcValue); + } + } else { + isCommon = false; + } + } + if (isCommon) { + stack.set(srcValue, newValue); + mergeFunc(newValue, srcValue, srcIndex, customizer, stack); + stack["delete"](srcValue); + } + assignMergeValue(object, key, newValue); + } + function baseRest(func, start) { + return setToString(overRest(func, start, identity), func + ""); + } + var baseSetToString = !defineProperty ? identity : function(func, string) { + return defineProperty(func, "toString", { + "configurable": true, + "enumerable": false, + "value": constant(string), + "writable": true + }); + }; + function cloneBuffer(buffer, isDeep) { + if (isDeep) { + return buffer.slice(); + } + var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); + buffer.copy(result); + return result; + } + function cloneArrayBuffer(arrayBuffer) { + var result = new arrayBuffer.constructor(arrayBuffer.byteLength); + new Uint8Array2(result).set(new Uint8Array2(arrayBuffer)); + return result; + } + function cloneTypedArray(typedArray, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; + return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); + } + function copyArray(source, array) { + var index = -1, length = source.length; + array || (array = Array(length)); + while (++index < length) { + array[index] = source[index]; + } + return array; + } + function copyObject(source, props, object, customizer) { + var isNew = !object; + object || (object = {}); + var index = -1, length = props.length; + while (++index < length) { + var key = props[index]; + var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0; + if (newValue === void 0) { + newValue = source[key]; + } + if (isNew) { + baseAssignValue(object, key, newValue); + } else { + assignValue(object, key, newValue); + } + } + return object; + } + function createAssigner(assigner) { + return baseRest(function(object, sources) { + var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0; + customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0; + if (guard && isIterateeCall(sources[0], sources[1], guard)) { + customizer = length < 3 ? void 0 : customizer; + length = 1; + } + object = Object(object); + while (++index < length) { + var source = sources[index]; + if (source) { + assigner(object, source, index, customizer); + } + } + return object; + }); + } + function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; + while (length--) { + var key = props[fromRight ? length : ++index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; + } + function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; + } + function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : void 0; + } + function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; + try { + value[symToStringTag] = void 0; + var unmasked = true; + } catch (e) { + } + var result = nativeObjectToString.call(value); + if (unmasked) { + if (isOwn) { + value[symToStringTag] = tag; + } else { + delete value[symToStringTag]; + } + } + return result; + } + function initCloneObject(object) { + return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {}; + } + function isIndex(value, length) { + var type = typeof value; + length = length == null ? MAX_SAFE_INTEGER : length; + return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); + } + function isIterateeCall(value, index, object) { + if (!isObject(object)) { + return false; + } + var type = typeof index; + if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) { + return eq(object[index], value); + } + return false; + } + function isKeyable(value) { + var type = typeof value; + return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; + } + function isMasked(func) { + return !!maskSrcKey && maskSrcKey in func; + } + function isPrototype(value) { + var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; + return value === proto; + } + function nativeKeysIn(object) { + var result = []; + if (object != null) { + for (var key in Object(object)) { + result.push(key); + } + } + return result; + } + function objectToString(value) { + return nativeObjectToString.call(value); + } + function overRest(func, start, transform) { + start = nativeMax(start === void 0 ? func.length - 1 : start, 0); + return function() { + var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); + while (++index < length) { + array[index] = args[start + index]; + } + index = -1; + var otherArgs = Array(start + 1); + while (++index < start) { + otherArgs[index] = args[index]; + } + otherArgs[start] = transform(array); + return apply(func, this, otherArgs); + }; + } + function safeGet(object, key) { + if (key === "constructor" && typeof object[key] === "function") { + return; + } + if (key == "__proto__") { + return; + } + return object[key]; + } + var setToString = shortOut(baseSetToString); + function shortOut(func) { + var count = 0, lastCalled = 0; + return function() { + var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); + lastCalled = stamp; + if (remaining > 0) { + if (++count >= HOT_COUNT) { + return arguments[0]; + } + } else { + count = 0; + } + return func.apply(void 0, arguments); + }; + } + function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) { + } + try { + return func + ""; + } catch (e) { + } + } + return ""; + } + function eq(value, other) { + return value === other || value !== value && other !== other; + } + var isArguments = baseIsArguments(function() { + return arguments; + }()) ? baseIsArguments : function(value) { + return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); + }; + var isArray = Array.isArray; + function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); + } + function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); + } + var isBuffer = nativeIsBuffer || stubFalse; + function isFunction(value) { + if (!isObject(value)) { + return false; + } + var tag = baseGetTag(value); + return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; + } + function isLength(value) { + return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; + } + function isObject(value) { + var type = typeof value; + return value != null && (type == "object" || type == "function"); + } + function isObjectLike(value) { + return value != null && typeof value == "object"; + } + function isPlainObject(value) { + if (!isObjectLike(value) || baseGetTag(value) != objectTag) { + return false; + } + var proto = getPrototype(value); + if (proto === null) { + return true; + } + var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor; + return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; + } + var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; + function toPlainObject(value) { + return copyObject(value, keysIn(value)); + } + function keysIn(object) { + return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); + } + var merge = createAssigner(function(object, source, srcIndex) { + baseMerge(object, source, srcIndex); + }); + function constant(value) { + return function() { + return value; + }; + } + function identity(value) { + return value; + } + function stubFalse() { + return false; + } + module2.exports = merge; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/log/LogItem.js +var require_LogItem = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/log/LogItem.js"(exports) { + "use strict"; + var __importDefault = exports && exports.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.LogItem = void 0; + var lodash_pickby_1 = __importDefault(require_lodash()); + var lodash_merge_1 = __importDefault(require_lodash2()); + var LogItem = class { + constructor(params) { + this.attributes = {}; + this.addAttributes(params.baseAttributes); + this.addAttributes(params.persistentAttributes); + } + addAttributes(attributes) { + this.attributes = (0, lodash_merge_1.default)(this.attributes, attributes); + return this; + } + getAttributes() { + return this.attributes; + } + prepareForPrint() { + this.setAttributes(this.removeEmptyKeys(this.getAttributes())); + } + removeEmptyKeys(attributes) { + return (0, lodash_pickby_1.default)(attributes, (value) => value !== void 0 && value !== "" && value !== null); + } + setAttributes(attributes) { + this.attributes = attributes; + } + }; + exports.LogItem = LogItem; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/log/LogItemInterface.js +var require_LogItemInterface = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/log/LogItemInterface.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/log/index.js +var require_log = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/log/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + __exportStar(require_LogItem(), exports); + __exportStar(require_LogItemInterface(), exports); + } +}); + +// node_modules/lodash.clonedeep/index.js +var require_lodash3 = __commonJS({ + "node_modules/lodash.clonedeep/index.js"(exports, module2) { + var LARGE_ARRAY_SIZE = 200; + var HASH_UNDEFINED = "__lodash_hash_undefined__"; + var MAX_SAFE_INTEGER = 9007199254740991; + var argsTag = "[object Arguments]"; + var arrayTag = "[object Array]"; + var boolTag = "[object Boolean]"; + var dateTag = "[object Date]"; + var errorTag = "[object Error]"; + var funcTag = "[object Function]"; + var genTag = "[object GeneratorFunction]"; + var mapTag = "[object Map]"; + var numberTag = "[object Number]"; + var objectTag = "[object Object]"; + var promiseTag = "[object Promise]"; + var regexpTag = "[object RegExp]"; + var setTag = "[object Set]"; + var stringTag = "[object String]"; + var symbolTag = "[object Symbol]"; + var weakMapTag = "[object WeakMap]"; + var arrayBufferTag = "[object ArrayBuffer]"; + var dataViewTag = "[object DataView]"; + var float32Tag = "[object Float32Array]"; + var float64Tag = "[object Float64Array]"; + var int8Tag = "[object Int8Array]"; + var int16Tag = "[object Int16Array]"; + var int32Tag = "[object Int32Array]"; + var uint8Tag = "[object Uint8Array]"; + var uint8ClampedTag = "[object Uint8ClampedArray]"; + var uint16Tag = "[object Uint16Array]"; + var uint32Tag = "[object Uint32Array]"; + var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + var reFlags = /\w*$/; + var reIsHostCtor = /^\[object .+?Constructor\]$/; + var reIsUint = /^(?:0|[1-9]\d*)$/; + var cloneableTags = {}; + cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; + cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; + var freeGlobal = typeof global == "object" && global && global.Object === Object && global; + var freeSelf = typeof self == "object" && self && self.Object === Object && self; + var root = freeGlobal || freeSelf || Function("return this")(); + var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; + var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2; + var moduleExports = freeModule && freeModule.exports === freeExports; + function addMapEntry(map, pair) { + map.set(pair[0], pair[1]); + return map; + } + function addSetEntry(set, value) { + set.add(value); + return set; + } + function arrayEach(array, iteratee) { + var index = -1, length = array ? array.length : 0; + while (++index < length) { + if (iteratee(array[index], index, array) === false) { + break; + } + } + return array; + } + function arrayPush(array, values) { + var index = -1, length = values.length, offset = array.length; + while (++index < length) { + array[offset + index] = values[index]; + } + return array; + } + function arrayReduce(array, iteratee, accumulator, initAccum) { + var index = -1, length = array ? array.length : 0; + if (initAccum && length) { + accumulator = array[++index]; + } + while (++index < length) { + accumulator = iteratee(accumulator, array[index], index, array); + } + return accumulator; + } + function baseTimes(n, iteratee) { + var index = -1, result = Array(n); + while (++index < n) { + result[index] = iteratee(index); + } + return result; + } + function getValue(object, key) { + return object == null ? void 0 : object[key]; + } + function isHostObject(value) { + var result = false; + if (value != null && typeof value.toString != "function") { + try { + result = !!(value + ""); + } catch (e) { + } + } + return result; + } + function mapToArray(map) { + var index = -1, result = Array(map.size); + map.forEach(function(value, key) { + result[++index] = [key, value]; + }); + return result; + } + function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; + } + function setToArray(set) { + var index = -1, result = Array(set.size); + set.forEach(function(value) { + result[++index] = value; + }); + return result; + } + var arrayProto = Array.prototype; + var funcProto = Function.prototype; + var objectProto = Object.prototype; + var coreJsData = root["__core-js_shared__"]; + var maskSrcKey = function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); + return uid ? "Symbol(src)_1." + uid : ""; + }(); + var funcToString = funcProto.toString; + var hasOwnProperty = objectProto.hasOwnProperty; + var objectToString = objectProto.toString; + var reIsNative = RegExp( + "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" + ); + var Buffer2 = moduleExports ? root.Buffer : void 0; + var Symbol2 = root.Symbol; + var Uint8Array2 = root.Uint8Array; + var getPrototype = overArg(Object.getPrototypeOf, Object); + var objectCreate = Object.create; + var propertyIsEnumerable = objectProto.propertyIsEnumerable; + var splice = arrayProto.splice; + var nativeGetSymbols = Object.getOwnPropertySymbols; + var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0; + var nativeKeys = overArg(Object.keys, Object); + var DataView = getNative(root, "DataView"); + var Map2 = getNative(root, "Map"); + var Promise2 = getNative(root, "Promise"); + var Set2 = getNative(root, "Set"); + var WeakMap = getNative(root, "WeakMap"); + var nativeCreate = getNative(Object, "create"); + var dataViewCtorString = toSource(DataView); + var mapCtorString = toSource(Map2); + var promiseCtorString = toSource(Promise2); + var setCtorString = toSource(Set2); + var weakMapCtorString = toSource(WeakMap); + var symbolProto = Symbol2 ? Symbol2.prototype : void 0; + var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0; + function Hash(entries) { + var index = -1, length = entries ? entries.length : 0; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + } + function hashDelete(key) { + return this.has(key) && delete this.__data__[key]; + } + function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? void 0 : result; + } + return hasOwnProperty.call(data, key) ? data[key] : void 0; + } + function hashHas(key) { + var data = this.__data__; + return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key); + } + function hashSet(key, value) { + var data = this.__data__; + data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value; + return this; + } + Hash.prototype.clear = hashClear; + Hash.prototype["delete"] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; + function ListCache(entries) { + var index = -1, length = entries ? entries.length : 0; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function listCacheClear() { + this.__data__ = []; + } + function listCacheDelete(key) { + var data = this.__data__, index = assocIndexOf(data, key); + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + return true; + } + function listCacheGet(key) { + var data = this.__data__, index = assocIndexOf(data, key); + return index < 0 ? void 0 : data[index][1]; + } + function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; + } + function listCacheSet(key, value) { + var data = this.__data__, index = assocIndexOf(data, key); + if (index < 0) { + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; + } + ListCache.prototype.clear = listCacheClear; + ListCache.prototype["delete"] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; + function MapCache(entries) { + var index = -1, length = entries ? entries.length : 0; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + function mapCacheClear() { + this.__data__ = { + "hash": new Hash(), + "map": new (Map2 || ListCache)(), + "string": new Hash() + }; + } + function mapCacheDelete(key) { + return getMapData(this, key)["delete"](key); + } + function mapCacheGet(key) { + return getMapData(this, key).get(key); + } + function mapCacheHas(key) { + return getMapData(this, key).has(key); + } + function mapCacheSet(key, value) { + getMapData(this, key).set(key, value); + return this; + } + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype["delete"] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; + function Stack(entries) { + this.__data__ = new ListCache(entries); + } + function stackClear() { + this.__data__ = new ListCache(); + } + function stackDelete(key) { + return this.__data__["delete"](key); + } + function stackGet(key) { + return this.__data__.get(key); + } + function stackHas(key) { + return this.__data__.has(key); + } + function stackSet(key, value) { + var cache = this.__data__; + if (cache instanceof ListCache) { + var pairs = cache.__data__; + if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) { + pairs.push([key, value]); + return this; + } + cache = this.__data__ = new MapCache(pairs); + } + cache.set(key, value); + return this; + } + Stack.prototype.clear = stackClear; + Stack.prototype["delete"] = stackDelete; + Stack.prototype.get = stackGet; + Stack.prototype.has = stackHas; + Stack.prototype.set = stackSet; + function arrayLikeKeys(value, inherited) { + var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : []; + var length = result.length, skipIndexes = !!length; + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isIndex(key, length)))) { + result.push(key); + } + } + return result; + } + function assignValue(object, key, value) { + var objValue = object[key]; + if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) { + object[key] = value; + } + } + function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; + } + function baseAssign(object, source) { + return object && copyObject(source, keys(source), object); + } + function baseClone(value, isDeep, isFull, customizer, key, object, stack) { + var result; + if (customizer) { + result = object ? customizer(value, key, object, stack) : customizer(value); + } + if (result !== void 0) { + return result; + } + if (!isObject(value)) { + return value; + } + var isArr = isArray(value); + if (isArr) { + result = initCloneArray(value); + if (!isDeep) { + return copyArray(value, result); + } + } else { + var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; + if (isBuffer(value)) { + return cloneBuffer(value, isDeep); + } + if (tag == objectTag || tag == argsTag || isFunc && !object) { + if (isHostObject(value)) { + return object ? value : {}; + } + result = initCloneObject(isFunc ? {} : value); + if (!isDeep) { + return copySymbols(value, baseAssign(result, value)); + } + } else { + if (!cloneableTags[tag]) { + return object ? value : {}; + } + result = initCloneByTag(value, tag, baseClone, isDeep); + } + } + stack || (stack = new Stack()); + var stacked = stack.get(value); + if (stacked) { + return stacked; + } + stack.set(value, result); + if (!isArr) { + var props = isFull ? getAllKeys(value) : keys(value); + } + arrayEach(props || value, function(subValue, key2) { + if (props) { + key2 = subValue; + subValue = value[key2]; + } + assignValue(result, key2, baseClone(subValue, isDeep, isFull, customizer, key2, value, stack)); + }); + return result; + } + function baseCreate(proto) { + return isObject(proto) ? objectCreate(proto) : {}; + } + function baseGetAllKeys(object, keysFunc, symbolsFunc) { + var result = keysFunc(object); + return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); + } + function baseGetTag(value) { + return objectToString.call(value); + } + function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); + } + function baseKeys(object) { + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != "constructor") { + result.push(key); + } + } + return result; + } + function cloneBuffer(buffer, isDeep) { + if (isDeep) { + return buffer.slice(); + } + var result = new buffer.constructor(buffer.length); + buffer.copy(result); + return result; + } + function cloneArrayBuffer(arrayBuffer) { + var result = new arrayBuffer.constructor(arrayBuffer.byteLength); + new Uint8Array2(result).set(new Uint8Array2(arrayBuffer)); + return result; + } + function cloneDataView(dataView, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; + return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); + } + function cloneMap(map, isDeep, cloneFunc) { + var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map); + return arrayReduce(array, addMapEntry, new map.constructor()); + } + function cloneRegExp(regexp) { + var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); + result.lastIndex = regexp.lastIndex; + return result; + } + function cloneSet(set, isDeep, cloneFunc) { + var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set); + return arrayReduce(array, addSetEntry, new set.constructor()); + } + function cloneSymbol(symbol) { + return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; + } + function cloneTypedArray(typedArray, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; + return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); + } + function copyArray(source, array) { + var index = -1, length = source.length; + array || (array = Array(length)); + while (++index < length) { + array[index] = source[index]; + } + return array; + } + function copyObject(source, props, object, customizer) { + object || (object = {}); + var index = -1, length = props.length; + while (++index < length) { + var key = props[index]; + var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0; + assignValue(object, key, newValue === void 0 ? source[key] : newValue); + } + return object; + } + function copySymbols(source, object) { + return copyObject(source, getSymbols(source), object); + } + function getAllKeys(object) { + return baseGetAllKeys(object, keys, getSymbols); + } + function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; + } + function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : void 0; + } + var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray; + var getTag = baseGetTag; + if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) { + getTag = function(value) { + var result = objectToString.call(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : void 0; + if (ctorString) { + switch (ctorString) { + case dataViewCtorString: + return dataViewTag; + case mapCtorString: + return mapTag; + case promiseCtorString: + return promiseTag; + case setCtorString: + return setTag; + case weakMapCtorString: + return weakMapTag; + } + } + return result; + }; + } + function initCloneArray(array) { + var length = array.length, result = array.constructor(length); + if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) { + result.index = array.index; + result.input = array.input; + } + return result; + } + function initCloneObject(object) { + return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {}; + } + function initCloneByTag(object, tag, cloneFunc, isDeep) { + var Ctor = object.constructor; + switch (tag) { + case arrayBufferTag: + return cloneArrayBuffer(object); + case boolTag: + case dateTag: + return new Ctor(+object); + case dataViewTag: + return cloneDataView(object, isDeep); + case float32Tag: + case float64Tag: + case int8Tag: + case int16Tag: + case int32Tag: + case uint8Tag: + case uint8ClampedTag: + case uint16Tag: + case uint32Tag: + return cloneTypedArray(object, isDeep); + case mapTag: + return cloneMap(object, isDeep, cloneFunc); + case numberTag: + case stringTag: + return new Ctor(object); + case regexpTag: + return cloneRegExp(object); + case setTag: + return cloneSet(object, isDeep, cloneFunc); + case symbolTag: + return cloneSymbol(object); + } + } + function isIndex(value, length) { + length = length == null ? MAX_SAFE_INTEGER : length; + return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); + } + function isKeyable(value) { + var type = typeof value; + return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; + } + function isMasked(func) { + return !!maskSrcKey && maskSrcKey in func; + } + function isPrototype(value) { + var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; + return value === proto; + } + function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) { + } + try { + return func + ""; + } catch (e) { + } + } + return ""; + } + function cloneDeep(value) { + return baseClone(value, true, true); + } + function eq(value, other) { + return value === other || value !== value && other !== other; + } + function isArguments(value) { + return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag); + } + var isArray = Array.isArray; + function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); + } + function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); + } + var isBuffer = nativeIsBuffer || stubFalse; + function isFunction(value) { + var tag = isObject(value) ? objectToString.call(value) : ""; + return tag == funcTag || tag == genTag; + } + function isLength(value) { + return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; + } + function isObject(value) { + var type = typeof value; + return !!value && (type == "object" || type == "function"); + } + function isObjectLike(value) { + return !!value && typeof value == "object"; + } + function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); + } + function stubArray() { + return []; + } + function stubFalse() { + return false; + } + module2.exports = cloneDeep; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/config/ConfigService.js +var require_ConfigService = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/config/ConfigService.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ConfigService = void 0; + var ConfigService = class { + constructor() { + this.currentEnvironmentVariable = "ENVIRONMENT"; + this.logEventVariable = "POWERTOOLS_LOGGER_LOG_EVENT"; + this.logLevelVariable = "LOG_LEVEL"; + this.sampleRateValueVariable = "POWERTOOLS_LOGGER_SAMPLE_RATE"; + this.serviceNameVariable = "POWERTOOLS_SERVICE_NAME"; + } + isValueTrue(value) { + return value.toLowerCase() === "true" || value === "1"; + } + }; + exports.ConfigService = ConfigService; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/config/ConfigServiceInterface.js +var require_ConfigServiceInterface = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/config/ConfigServiceInterface.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/config/EnvironmentVariablesService.js +var require_EnvironmentVariablesService = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/config/EnvironmentVariablesService.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.EnvironmentVariablesService = void 0; + var _1 = require_config(); + var EnvironmentVariablesService = class extends _1.ConfigService { + constructor() { + super(...arguments); + this.awsRegionVariable = "AWS_REGION"; + this.functionNameVariable = "AWS_LAMBDA_FUNCTION_NAME"; + this.functionVersionVariable = "AWS_LAMBDA_FUNCTION_VERSION"; + this.memoryLimitInMBVariable = "AWS_LAMBDA_FUNCTION_MEMORY_SIZE"; + this.xRayTraceIdVariable = "_X_AMZN_TRACE_ID"; + } + get(name) { + var _a; + return ((_a = process.env[name]) === null || _a === void 0 ? void 0 : _a.trim()) || ""; + } + getAwsRegion() { + return this.get(this.awsRegionVariable); + } + getCurrentEnvironment() { + return this.get(this.currentEnvironmentVariable); + } + getFunctionMemory() { + const value = this.get(this.memoryLimitInMBVariable); + return Number(value); + } + getFunctionName() { + return this.get(this.functionNameVariable); + } + getFunctionVersion() { + return this.get(this.functionVersionVariable); + } + getLogEvent() { + return this.isValueTrue(this.get(this.logEventVariable)); + } + getLogLevel() { + return this.get(this.logLevelVariable); + } + getSampleRateValue() { + const value = this.get(this.sampleRateValueVariable); + return value && value.length > 0 ? Number(value) : void 0; + } + getServiceName() { + return this.get(this.serviceNameVariable); + } + getXrayTraceId() { + return this.get(this.xRayTraceIdVariable); + } + }; + exports.EnvironmentVariablesService = EnvironmentVariablesService; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/config/index.js +var require_config = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/config/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + __exportStar(require_ConfigService(), exports); + __exportStar(require_ConfigServiceInterface(), exports); + __exportStar(require_EnvironmentVariablesService(), exports); + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/Logger.js +var require_Logger = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/Logger.js"(exports) { + "use strict"; + var __importDefault = exports && exports.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Logger = void 0; + var console_1 = require("console"); + var commons_1 = require_lib(); + var formatter_1 = require_formatter(); + var log_1 = require_log(); + var lodash_clonedeep_1 = __importDefault(require_lodash3()); + var lodash_merge_1 = __importDefault(require_lodash2()); + var config_1 = require_config(); + var Logger2 = class extends commons_1.Utility { + constructor(options = {}) { + super(); + this.console = new console_1.Console({ stdout: process.stdout, stderr: process.stderr }); + this.logEvent = false; + this.logLevelThresholds = { + DEBUG: 8, + INFO: 12, + WARN: 16, + ERROR: 20 + }; + this.logsSampled = false; + this.persistentLogAttributes = {}; + this.powertoolLogData = {}; + this.setOptions(options); + } + addContext(context) { + const lambdaContext = { + invokedFunctionArn: context.invokedFunctionArn, + coldStart: this.getColdStart(), + awsRequestId: context.awsRequestId, + memoryLimitInMB: Number(context.memoryLimitInMB), + functionName: context.functionName, + functionVersion: context.functionVersion + }; + this.addToPowertoolLogData({ + lambdaContext + }); + } + addPersistentLogAttributes(attributes) { + (0, lodash_merge_1.default)(this.persistentLogAttributes, attributes); + } + appendKeys(attributes) { + this.addPersistentLogAttributes(attributes); + } + createChild(options = {}) { + return (0, lodash_clonedeep_1.default)(this).setOptions(options); + } + debug(input, ...extraInput) { + this.processLogItem("DEBUG", input, extraInput); + } + error(input, ...extraInput) { + this.processLogItem("ERROR", input, extraInput); + } + getLogEvent() { + return this.logEvent; + } + getLogsSampled() { + return this.logsSampled; + } + getPersistentLogAttributes() { + return this.persistentLogAttributes; + } + info(input, ...extraInput) { + this.processLogItem("INFO", input, extraInput); + } + injectLambdaContext(options) { + return (target, _propertyKey, descriptor) => { + const originalMethod = descriptor.value; + const loggerRef = this; + descriptor.value = function(event, context, callback) { + let initialPersistentAttributes = {}; + if (options && options.clearState === true) { + initialPersistentAttributes = { ...loggerRef.getPersistentLogAttributes() }; + } + Logger2.injectLambdaContextBefore(loggerRef, event, context, options); + let result; + try { + result = originalMethod.apply(this, [event, context, callback]); + } catch (error) { + throw error; + } finally { + Logger2.injectLambdaContextAfterOrOnError(loggerRef, initialPersistentAttributes, options); + } + return result; + }; + }; + } + static injectLambdaContextAfterOrOnError(logger2, initialPersistentAttributes, options) { + if (options && options.clearState === true) { + logger2.setPersistentLogAttributes(initialPersistentAttributes); + } + } + static injectLambdaContextBefore(logger2, event, context, options) { + logger2.addContext(context); + let shouldLogEvent = void 0; + if (options && options.hasOwnProperty("logEvent")) { + shouldLogEvent = options.logEvent; + } + logger2.logEventIfEnabled(event, shouldLogEvent); + } + logEventIfEnabled(event, overwriteValue) { + if (!this.shouldLogEvent(overwriteValue)) { + return; + } + this.info("Lambda invocation event", { event }); + } + refreshSampleRateCalculation() { + this.setLogsSampled(); + } + removeKeys(keys) { + this.removePersistentLogAttributes(keys); + } + removePersistentLogAttributes(keys) { + keys.forEach((key) => { + if (this.persistentLogAttributes && key in this.persistentLogAttributes) { + delete this.persistentLogAttributes[key]; + } + }); + } + setPersistentLogAttributes(attributes) { + this.persistentLogAttributes = attributes; + } + setSampleRateValue(sampleRateValue) { + var _a; + this.powertoolLogData.sampleRateValue = sampleRateValue || ((_a = this.getCustomConfigService()) === null || _a === void 0 ? void 0 : _a.getSampleRateValue()) || this.getEnvVarsService().getSampleRateValue(); + } + shouldLogEvent(overwriteValue) { + if (typeof overwriteValue === "boolean") { + return overwriteValue; + } + return this.getLogEvent(); + } + warn(input, ...extraInput) { + this.processLogItem("WARN", input, extraInput); + } + addToPowertoolLogData(...attributesArray) { + attributesArray.forEach((attributes) => { + (0, lodash_merge_1.default)(this.powertoolLogData, attributes); + }); + } + createAndPopulateLogItem(logLevel, input, extraInput) { + const unformattedBaseAttributes = (0, lodash_merge_1.default)({ + logLevel, + timestamp: new Date(), + message: typeof input === "string" ? input : input.message, + xRayTraceId: this.getXrayTraceId() + }, this.getPowertoolLogData()); + const logItem = new log_1.LogItem({ + baseAttributes: this.getLogFormatter().formatAttributes(unformattedBaseAttributes), + persistentAttributes: this.getPersistentLogAttributes() + }); + if (typeof input !== "string") { + logItem.addAttributes(input); + } + extraInput.forEach((item) => { + const attributes = item instanceof Error ? { error: item } : typeof item === "string" ? { extra: item } : item; + logItem.addAttributes(attributes); + }); + return logItem; + } + getCustomConfigService() { + return this.customConfigService; + } + getEnvVarsService() { + return this.envVarsService; + } + getLogFormatter() { + return this.logFormatter; + } + getLogLevel() { + return this.logLevel; + } + getPowertoolLogData() { + return this.powertoolLogData; + } + getSampleRateValue() { + if (!this.powertoolLogData.sampleRateValue) { + this.setSampleRateValue(); + } + return this.powertoolLogData.sampleRateValue; + } + getXrayTraceId() { + const xRayTraceId = this.getEnvVarsService().getXrayTraceId(); + return xRayTraceId.length > 0 ? xRayTraceId.split(";")[0].replace("Root=", "") : xRayTraceId; + } + isValidLogLevel(logLevel) { + return typeof logLevel === "string" && logLevel.toUpperCase() in this.logLevelThresholds; + } + printLog(logLevel, log) { + log.prepareForPrint(); + const consoleMethod = logLevel.toLowerCase(); + this.console[consoleMethod](JSON.stringify(log.getAttributes(), this.removeCircularDependencies())); + } + processLogItem(logLevel, input, extraInput) { + if (!this.shouldPrint(logLevel)) { + return; + } + this.printLog(logLevel, this.createAndPopulateLogItem(logLevel, input, extraInput)); + } + removeCircularDependencies() { + const references = /* @__PURE__ */ new WeakSet(); + return (key, value) => { + let item = value; + if (item instanceof Error) { + item = this.getLogFormatter().formatError(item); + } + if (typeof item === "object" && value !== null) { + if (references.has(item)) { + return; + } + references.add(item); + } + return item; + }; + } + setCustomConfigService(customConfigService) { + this.customConfigService = customConfigService ? customConfigService : void 0; + } + setEnvVarsService() { + this.envVarsService = new config_1.EnvironmentVariablesService(); + } + setLogEvent() { + if (this.getEnvVarsService().getLogEvent()) { + this.logEvent = true; + } + } + setLogFormatter(logFormatter) { + this.logFormatter = logFormatter || new formatter_1.PowertoolLogFormatter(); + } + setLogLevel(logLevel) { + var _a; + if (this.isValidLogLevel(logLevel)) { + this.logLevel = logLevel.toUpperCase(); + return; + } + const customConfigValue = (_a = this.getCustomConfigService()) === null || _a === void 0 ? void 0 : _a.getLogLevel(); + if (this.isValidLogLevel(customConfigValue)) { + this.logLevel = customConfigValue.toUpperCase(); + return; + } + const envVarsValue = this.getEnvVarsService().getLogLevel(); + if (this.isValidLogLevel(envVarsValue)) { + this.logLevel = envVarsValue.toUpperCase(); + return; + } + this.logLevel = Logger2.defaultLogLevel; + } + setLogsSampled() { + const sampleRateValue = this.getSampleRateValue(); + this.logsSampled = sampleRateValue !== void 0 && (sampleRateValue === 1 || Math.random() < sampleRateValue); + } + setOptions(options) { + const { logLevel, serviceName, sampleRateValue, logFormatter, customConfigService, persistentLogAttributes, environment } = options; + this.setEnvVarsService(); + this.setCustomConfigService(customConfigService); + this.setLogLevel(logLevel); + this.setSampleRateValue(sampleRateValue); + this.setLogsSampled(); + this.setLogFormatter(logFormatter); + this.setPowertoolLogData(serviceName, environment); + this.setLogEvent(); + this.addPersistentLogAttributes(persistentLogAttributes); + return this; + } + setPowertoolLogData(serviceName, environment, persistentLogAttributes = {}) { + var _a, _b; + this.addToPowertoolLogData({ + awsRegion: this.getEnvVarsService().getAwsRegion(), + environment: environment || ((_a = this.getCustomConfigService()) === null || _a === void 0 ? void 0 : _a.getCurrentEnvironment()) || this.getEnvVarsService().getCurrentEnvironment(), + sampleRateValue: this.getSampleRateValue(), + serviceName: serviceName || ((_b = this.getCustomConfigService()) === null || _b === void 0 ? void 0 : _b.getServiceName()) || this.getEnvVarsService().getServiceName() || Logger2.defaultServiceName + }, persistentLogAttributes); + } + shouldPrint(logLevel) { + if (this.logLevelThresholds[logLevel] >= this.logLevelThresholds[this.getLogLevel()]) { + return true; + } + return this.getLogsSampled(); + } + }; + exports.Logger = Logger2; + Logger2.defaultLogLevel = "INFO"; + Logger2.defaultServiceName = "service_undefined"; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/middleware/middy.js +var require_middy = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/middleware/middy.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.injectLambdaContext = void 0; + var Logger_1 = require_Logger(); + var injectLambdaContext = (target, options) => { + const loggers = target instanceof Array ? target : [target]; + const persistentAttributes = []; + const injectLambdaContextBefore = async (request) => { + loggers.forEach((logger2) => { + if (options && options.clearState === true) { + persistentAttributes.push({ ...logger2.getPersistentLogAttributes() }); + } + Logger_1.Logger.injectLambdaContextBefore(logger2, request.event, request.context, options); + }); + }; + const injectLambdaContextAfterOrOnError = async () => { + if (options && options.clearState === true) { + loggers.forEach((logger2, index) => { + Logger_1.Logger.injectLambdaContextAfterOrOnError(logger2, persistentAttributes[index], options); + }); + } + }; + return { + before: injectLambdaContextBefore, + after: injectLambdaContextAfterOrOnError, + onError: injectLambdaContextAfterOrOnError + }; + }; + exports.injectLambdaContext = injectLambdaContext; + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/middleware/index.js +var require_middleware = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/middleware/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + __exportStar(require_middy(), exports); + } +}); + +// node_modules/@aws-lambda-powertools/logger/lib/index.js +var require_lib2 = __commonJS({ + "node_modules/@aws-lambda-powertools/logger/lib/index.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) + __createBinding(exports2, m, p); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + __exportStar(require_helpers(), exports); + __exportStar(require_Logger(), exports); + __exportStar(require_middleware(), exports); + __exportStar(require_formatter(), exports); + } +}); + +// node_modules/tslib/tslib.js +var require_tslib = __commonJS({ + "node_modules/tslib/tslib.js"(exports, module2) { + var __extends; + var __assign; + var __rest; + var __decorate; + var __param; + var __metadata; + var __awaiter; + var __generator; + var __exportStar; + var __values; + var __read; + var __spread; + var __spreadArrays; + var __spreadArray; + var __await; + var __asyncGenerator; + var __asyncDelegator; + var __asyncValues; + var __makeTemplateObject; + var __importStar; + var __importDefault; + var __classPrivateFieldGet; + var __classPrivateFieldSet; + var __classPrivateFieldIn; + var __createBinding; + (function(factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function(exports2) { + factory(createExporter(root, createExporter(exports2))); + }); + } else if (typeof module2 === "object" && typeof module2.exports === "object") { + factory(createExporter(root, createExporter(module2.exports))); + } else { + factory(createExporter(root)); + } + function createExporter(exports2, previous) { + if (exports2 !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports2, "__esModule", { value: true }); + } else { + exports2.__esModule = true; + } + } + return function(id, v) { + return exports2[id] = previous ? previous(id, v) : v; + }; + } + })(function(exporter) { + var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) { + d.__proto__ = b; + } || function(d, b) { + for (var p in b) + if (Object.prototype.hasOwnProperty.call(b, p)) + d[p] = b[p]; + }; + __extends = function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + __rest = function(s, e) { + var t = {}; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + __decorate = function(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + __param = function(paramIndex, decorator) { + return function(target, key) { + decorator(target, key, paramIndex); + }; + }; + __metadata = function(metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") + return Reflect.metadata(metadataKey, metadataValue); + }; + __awaiter = function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + __generator = function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op) { + if (f) + throw new TypeError("Generator is already executing."); + while (_) + try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) + return t; + if (y = 0, t) + op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: + case 1: + t = op; + break; + case 4: + _.label++; + return { value: op[1], done: false }; + case 5: + _.label++; + y = op[1]; + op = [0]; + continue; + case 7: + op = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { + _ = 0; + continue; + } + if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { + _.label = op[1]; + break; + } + if (op[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op = body.call(thisArg, _); + } catch (e) { + op = [6, e]; + y = 0; + } finally { + f = t = 0; + } + if (op[0] & 5) + throw op[1]; + return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + __exportStar = function(m, o) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) + __createBinding(o, m, p); + }; + __createBinding = Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }; + __values = function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + __read = function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) + ar.push(r.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r && !r.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar; + }; + __spread = function() { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + __spreadArrays = function() { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) + s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + __spreadArray = function(to, from, pack) { + if (pack || arguments.length === 2) + for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) + ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + __await = function(v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + __asyncGenerator = function(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i; + function verb(n) { + if (g[n]) + i[n] = function(v) { + return new Promise(function(a, b) { + q.push([n, v, a, b]) > 1 || resume(n, v); + }); + }; + } + function resume(n, v) { + try { + step(g[n](v)); + } catch (e) { + settle(q[0][3], e); + } + } + function step(r) { + r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); + } + function fulfill(value) { + resume("next", value); + } + function reject(value) { + resume("throw", value); + } + function settle(f, v) { + if (f(v), q.shift(), q.length) + resume(q[0][0], q[0][1]); + } + }; + __asyncDelegator = function(o) { + var i, p; + return i = {}, verb("next"), verb("throw", function(e) { + throw e; + }), verb("return"), i[Symbol.iterator] = function() { + return this; + }, i; + function verb(n, f) { + i[n] = o[n] ? function(v) { + return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; + } : f; + } + }; + __asyncValues = function(o) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i); + function verb(n) { + i[n] = o[n] && function(v) { + return new Promise(function(resolve, reject) { + v = o[n](v), settle(resolve, reject, v.done, v.value); + }); + }; + } + function settle(resolve, reject, d, v) { + Promise.resolve(v).then(function(v2) { + resolve({ value: v2, done: d }); + }, reject); + } + }; + __makeTemplateObject = function(cooked, raw) { + if (Object.defineProperty) { + Object.defineProperty(cooked, "raw", { value: raw }); + } else { + cooked.raw = raw; + } + return cooked; + }; + var __setModuleDefault = Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; + }; + __importStar = function(mod) { + if (mod && mod.__esModule) + return mod; + var result = {}; + if (mod != null) { + for (var k in mod) + if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) + __createBinding(result, mod, k); + } + __setModuleDefault(result, mod); + return result; + }; + __importDefault = function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + __classPrivateFieldGet = function(receiver, state, kind, f) { + if (kind === "a" && !f) + throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) + throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + __classPrivateFieldSet = function(receiver, state, value, kind, f) { + if (kind === "m") + throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) + throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) + throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; + }; + __classPrivateFieldIn = function(state, receiver) { + if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") + throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + }; + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__spreadArrays", __spreadArrays); + exporter("__spreadArray", __spreadArray); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); + exporter("__classPrivateFieldGet", __classPrivateFieldGet); + exporter("__classPrivateFieldSet", __classPrivateFieldSet); + exporter("__classPrivateFieldIn", __classPrivateFieldIn); + }); + } +}); + +// node_modules/@aws-sdk/util-config-provider/dist-cjs/booleanSelector.js +var require_booleanSelector = __commonJS({ + "node_modules/@aws-sdk/util-config-provider/dist-cjs/booleanSelector.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.booleanSelector = exports.SelectorType = void 0; + var SelectorType; + (function(SelectorType2) { + SelectorType2["ENV"] = "env"; + SelectorType2["CONFIG"] = "shared config entry"; + })(SelectorType = exports.SelectorType || (exports.SelectorType = {})); + var booleanSelector = (obj, key, type) => { + if (!(key in obj)) + return void 0; + if (obj[key] === "true") + return true; + if (obj[key] === "false") + return false; + throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`); + }; + exports.booleanSelector = booleanSelector; + } +}); + +// node_modules/@aws-sdk/util-config-provider/dist-cjs/index.js +var require_dist_cjs = __commonJS({ + "node_modules/@aws-sdk/util-config-provider/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_booleanSelector(), exports); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +var require_NodeUseDualstackEndpointConfigOptions = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_DUALSTACK_ENDPOINT = exports.CONFIG_USE_DUALSTACK_ENDPOINT = exports.ENV_USE_DUALSTACK_ENDPOINT = void 0; + var util_config_provider_1 = require_dist_cjs(); + exports.ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; + exports.CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; + exports.DEFAULT_USE_DUALSTACK_ENDPOINT = false; + exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.ENV), + configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), + default: false + }; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +var require_NodeUseFipsEndpointConfigOptions = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_FIPS_ENDPOINT = exports.CONFIG_USE_FIPS_ENDPOINT = exports.ENV_USE_FIPS_ENDPOINT = void 0; + var util_config_provider_1 = require_dist_cjs(); + exports.ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; + exports.CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; + exports.DEFAULT_USE_FIPS_ENDPOINT = false; + exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.ENV), + configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), + default: false + }; + } +}); + +// node_modules/@aws-sdk/util-middleware/dist-cjs/normalizeProvider.js +var require_normalizeProvider = __commonJS({ + "node_modules/@aws-sdk/util-middleware/dist-cjs/normalizeProvider.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.normalizeProvider = void 0; + var normalizeProvider = (input) => { + if (typeof input === "function") + return input; + const promisified = Promise.resolve(input); + return () => promisified; + }; + exports.normalizeProvider = normalizeProvider; + } +}); + +// node_modules/@aws-sdk/util-middleware/dist-cjs/index.js +var require_dist_cjs2 = __commonJS({ + "node_modules/@aws-sdk/util-middleware/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_normalizeProvider(), exports); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +var require_resolveCustomEndpointsConfig = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveCustomEndpointsConfig = void 0; + var util_middleware_1 = require_dist_cjs2(); + var resolveCustomEndpointsConfig = (input) => { + var _a; + 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), + isCustomEndpoint: true, + useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint) + }; + }; + exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +var require_getEndpointFromRegion = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getEndpointFromRegion = void 0; + var getEndpointFromRegion = async (input) => { + var _a; + 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])$/); + if (!dnsHostRegex.test(region)) { + throw new Error("Invalid region in client config"); + } + const useDualstackEndpoint = await input.useDualstackEndpoint(); + const useFipsEndpoint = await input.useFipsEndpoint(); + const { hostname } = (_a = await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint })) !== null && _a !== void 0 ? _a : {}; + if (!hostname) { + throw new Error("Cannot resolve hostname from client config"); + } + return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`); + }; + exports.getEndpointFromRegion = getEndpointFromRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +var require_resolveEndpointsConfig = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveEndpointsConfig = void 0; + var util_middleware_1 = require_dist_cjs2(); + var getEndpointFromRegion_1 = require_getEndpointFromRegion(); + var resolveEndpointsConfig = (input) => { + var _a; + const useDualstackEndpoint = (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint); + const { endpoint, useFipsEndpoint, urlParser } = input; + return { + ...input, + tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, + endpoint: endpoint ? (0, util_middleware_1.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => (0, getEndpointFromRegion_1.getEndpointFromRegion)({ ...input, useDualstackEndpoint, useFipsEndpoint }), + isCustomEndpoint: !!endpoint, + useDualstackEndpoint + }; + }; + exports.resolveEndpointsConfig = resolveEndpointsConfig; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/index.js +var require_endpointsConfig = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_NodeUseDualstackEndpointConfigOptions(), exports); + tslib_1.__exportStar(require_NodeUseFipsEndpointConfigOptions(), exports); + tslib_1.__exportStar(require_resolveCustomEndpointsConfig(), exports); + tslib_1.__exportStar(require_resolveEndpointsConfig(), exports); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js +var require_config2 = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODE_REGION_CONFIG_FILE_OPTIONS = exports.NODE_REGION_CONFIG_OPTIONS = exports.REGION_INI_NAME = exports.REGION_ENV_NAME = void 0; + exports.REGION_ENV_NAME = "AWS_REGION"; + exports.REGION_INI_NAME = "region"; + exports.NODE_REGION_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.REGION_ENV_NAME], + configFileSelector: (profile) => profile[exports.REGION_INI_NAME], + default: () => { + throw new Error("Region is missing"); + } + }; + exports.NODE_REGION_CONFIG_FILE_OPTIONS = { + preferredFile: "credentials" + }; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +var require_isFipsRegion = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/isFipsRegion.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isFipsRegion = void 0; + var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); + exports.isFipsRegion = isFipsRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/getRealRegion.js +var require_getRealRegion = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/getRealRegion.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRealRegion = void 0; + var isFipsRegion_1 = require_isFipsRegion(); + var getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region; + exports.getRealRegion = getRealRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +var require_resolveRegionConfig = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveRegionConfig = void 0; + var getRealRegion_1 = require_getRealRegion(); + var isFipsRegion_1 = require_isFipsRegion(); + var resolveRegionConfig = (input) => { + const { region, useFipsEndpoint } = input; + if (!region) { + throw new Error("Region is missing"); + } + return { + ...input, + region: async () => { + if (typeof region === "string") { + return (0, getRealRegion_1.getRealRegion)(region); + } + const providedRegion = await region(); + return (0, getRealRegion_1.getRealRegion)(providedRegion); + }, + useFipsEndpoint: async () => { + const providedRegion = typeof region === "string" ? region : await region(); + if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) { + return true; + } + return typeof useFipsEndpoint === "boolean" ? Promise.resolve(useFipsEndpoint) : useFipsEndpoint(); + } + }; + }; + exports.resolveRegionConfig = resolveRegionConfig; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/index.js +var require_regionConfig = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_config2(), exports); + tslib_1.__exportStar(require_resolveRegionConfig(), exports); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/PartitionHash.js +var require_PartitionHash = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/PartitionHash.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/RegionHash.js +var require_RegionHash = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/RegionHash.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +var require_getHostnameFromVariants = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getHostnameFromVariants = void 0; + var getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { + var _a; + return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))) === null || _a === void 0 ? void 0 : _a.hostname; + }; + exports.getHostnameFromVariants = getHostnameFromVariants; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +var require_getResolvedHostname = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getResolvedHostname = void 0; + var getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace("{region}", resolvedRegion) : void 0; + exports.getResolvedHostname = getResolvedHostname; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +var require_getResolvedPartition = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getResolvedPartition = void 0; + var getResolvedPartition = (region, { partitionHash }) => { + var _a; + return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : "aws"; + }; + exports.getResolvedPartition = getResolvedPartition; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +var require_getResolvedSigningRegion = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getResolvedSigningRegion = void 0; + var getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { + if (signingRegion) { + return signingRegion; + } else if (useFipsEndpoint) { + const regionRegexJs = regionRegex.replace("\\\\", "\\").replace(/^\^/g, "\\.").replace(/\$$/g, "\\."); + const regionRegexmatchArray = hostname.match(regionRegexJs); + if (regionRegexmatchArray) { + return regionRegexmatchArray[0].slice(1, -1); + } + } + }; + exports.getResolvedSigningRegion = getResolvedSigningRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +var require_getRegionInfo = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getRegionInfo.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRegionInfo = void 0; + var getHostnameFromVariants_1 = require_getHostnameFromVariants(); + var getResolvedHostname_1 = require_getResolvedHostname(); + var getResolvedPartition_1 = require_getResolvedPartition(); + var getResolvedSigningRegion_1 = require_getResolvedSigningRegion(); + var getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash }) => { + var _a, _b, _c, _d, _e, _f; + const partition = (0, getResolvedPartition_1.getResolvedPartition)(region, { partitionHash }); + const resolvedRegion = region in regionHash ? region : (_b = (_a = partitionHash[partition]) === null || _a === void 0 ? void 0 : _a.endpoint) !== null && _b !== void 0 ? _b : region; + 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 }); + 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, + regionRegex: partitionHash[partition].regionRegex, + useFipsEndpoint + }); + return { + partition, + signingService, + hostname, + ...signingRegion && { signingRegion }, + ...((_f = regionHash[resolvedRegion]) === null || _f === void 0 ? void 0 : _f.signingService) && { + signingService: regionHash[resolvedRegion].signingService + } + }; + }; + exports.getRegionInfo = getRegionInfo; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/index.js +var require_regionInfo = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_PartitionHash(), exports); + tslib_1.__exportStar(require_RegionHash(), exports); + tslib_1.__exportStar(require_getRegionInfo(), exports); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/index.js +var require_dist_cjs3 = __commonJS({ + "node_modules/@aws-sdk/config-resolver/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_endpointsConfig(), exports); + tslib_1.__exportStar(require_regionConfig(), exports); + tslib_1.__exportStar(require_regionInfo(), exports); + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/httpHandler.js +var require_httpHandler = __commonJS({ + "node_modules/@aws-sdk/protocol-http/dist-cjs/httpHandler.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js +var require_httpRequest = __commonJS({ + "node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.HttpRequest = void 0; + var HttpRequest = class { + constructor(options) { + this.method = options.method || "GET"; + this.hostname = options.hostname || "localhost"; + this.port = options.port; + this.query = options.query || {}; + this.headers = options.headers || {}; + this.body = options.body; + this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:"; + this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/"; + } + static isInstance(request) { + if (!request) + return false; + const req = request; + 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({ + ...this, + headers: { ...this.headers } + }); + if (cloned.query) + cloned.query = cloneQuery(cloned.query); + return cloned; + } + }; + exports.HttpRequest = HttpRequest; + function cloneQuery(query) { + return Object.keys(query).reduce((carry, paramName) => { + const param = query[paramName]; + return { + ...carry, + [paramName]: Array.isArray(param) ? [...param] : param + }; + }, {}); + } + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/httpResponse.js +var require_httpResponse = __commonJS({ + "node_modules/@aws-sdk/protocol-http/dist-cjs/httpResponse.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.HttpResponse = void 0; + var HttpResponse = class { + constructor(options) { + this.statusCode = options.statusCode; + this.headers = options.headers || {}; + this.body = options.body; + } + static isInstance(response) { + if (!response) + return false; + const resp = response; + return typeof resp.statusCode === "number" && typeof resp.headers === "object"; + } + }; + exports.HttpResponse = HttpResponse; + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/isValidHostname.js +var require_isValidHostname = __commonJS({ + "node_modules/@aws-sdk/protocol-http/dist-cjs/isValidHostname.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isValidHostname = void 0; + function isValidHostname(hostname) { + const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/; + return hostPattern.test(hostname); + } + exports.isValidHostname = isValidHostname; + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/index.js +var require_dist_cjs4 = __commonJS({ + "node_modules/@aws-sdk/protocol-http/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_httpHandler(), exports); + tslib_1.__exportStar(require_httpRequest(), exports); + tslib_1.__exportStar(require_httpResponse(), exports); + tslib_1.__exportStar(require_isValidHostname(), exports); + } +}); + +// node_modules/@aws-sdk/middleware-content-length/dist-cjs/index.js +var require_dist_cjs5 = __commonJS({ + "node_modules/@aws-sdk/middleware-content-length/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getContentLengthPlugin = exports.contentLengthMiddlewareOptions = exports.contentLengthMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var CONTENT_LENGTH_HEADER = "content-length"; + function contentLengthMiddleware(bodyLengthChecker) { + return (next) => async (args) => { + const request = args.request; + if (protocol_http_1.HttpRequest.isInstance(request)) { + const { body, headers } = request; + if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) { + try { + const length = bodyLengthChecker(body); + request.headers = { + ...request.headers, + [CONTENT_LENGTH_HEADER]: String(length) + }; + } catch (error) { + } + } + } + return next({ + ...args, + request + }); + }; + } + exports.contentLengthMiddleware = contentLengthMiddleware; + exports.contentLengthMiddlewareOptions = { + step: "build", + tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"], + name: "contentLengthMiddleware", + override: true + }; + var getContentLengthPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), exports.contentLengthMiddlewareOptions); + } + }); + exports.getContentLengthPlugin = getContentLengthPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +var require_dist_cjs6 = __commonJS({ + "node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getHostHeaderPlugin = exports.hostHeaderMiddlewareOptions = exports.hostHeaderMiddleware = exports.resolveHostHeaderConfig = void 0; + var protocol_http_1 = require_dist_cjs4(); + function resolveHostHeaderConfig(input) { + return input; + } + exports.resolveHostHeaderConfig = resolveHostHeaderConfig; + var hostHeaderMiddleware = (options) => (next) => async (args) => { + if (!protocol_http_1.HttpRequest.isInstance(args.request)) + return next(args); + const { request } = args; + const { handlerProtocol = "" } = options.requestHandler.metadata || {}; + if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) { + delete request.headers["host"]; + request.headers[":authority"] = ""; + } else if (!request.headers["host"]) { + request.headers["host"] = request.hostname; + } + return next(args); + }; + exports.hostHeaderMiddleware = hostHeaderMiddleware; + exports.hostHeaderMiddlewareOptions = { + name: "hostHeaderMiddleware", + step: "build", + priority: "low", + tags: ["HOST"], + override: true + }; + var getHostHeaderPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.hostHeaderMiddleware)(options), exports.hostHeaderMiddlewareOptions); + } + }); + exports.getHostHeaderPlugin = getHostHeaderPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js +var require_loggerMiddleware = __commonJS({ + "node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getLoggerPlugin = exports.loggerMiddlewareOptions = exports.loggerMiddleware = void 0; + var loggerMiddleware = () => (next, context) => async (args) => { + const { clientName, commandName, inputFilterSensitiveLog, logger: logger2, outputFilterSensitiveLog } = context; + const response = await next(args); + if (!logger2) { + return response; + } + if (typeof logger2.info === "function") { + const { $metadata, ...outputWithoutMetadata } = response.output; + logger2.info({ + clientName, + commandName, + input: inputFilterSensitiveLog(args.input), + output: outputFilterSensitiveLog(outputWithoutMetadata), + metadata: $metadata + }); + } + return response; + }; + exports.loggerMiddleware = loggerMiddleware; + exports.loggerMiddlewareOptions = { + name: "loggerMiddleware", + tags: ["LOGGER"], + step: "initialize", + override: true + }; + var getLoggerPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.loggerMiddleware)(), exports.loggerMiddlewareOptions); + } + }); + exports.getLoggerPlugin = getLoggerPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +var require_dist_cjs7 = __commonJS({ + "node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_loggerMiddleware(), exports); + } +}); + +// node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +var require_dist_cjs8 = __commonJS({ + "node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRecursionDetectionPlugin = exports.addRecursionDetectionMiddlewareOptions = exports.recursionDetectionMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; + var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; + var ENV_TRACE_ID = "_X_AMZN_TRACE_ID"; + var recursionDetectionMiddleware = (options) => (next) => async (args) => { + const { request } = args; + if (!protocol_http_1.HttpRequest.isInstance(request) || options.runtime !== "node" || request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { + return next(args); + } + const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; + const traceId = process.env[ENV_TRACE_ID]; + const nonEmptyString = (str) => typeof str === "string" && str.length > 0; + if (nonEmptyString(functionName) && nonEmptyString(traceId)) { + request.headers[TRACE_ID_HEADER_NAME] = traceId; + } + return next({ + ...args, + request + }); + }; + exports.recursionDetectionMiddleware = recursionDetectionMiddleware; + exports.addRecursionDetectionMiddlewareOptions = { + step: "build", + tags: ["RECURSION_DETECTION"], + name: "recursionDetectionMiddleware", + override: true, + priority: "low" + }; + var getRecursionDetectionPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.recursionDetectionMiddleware)(options), exports.addRecursionDetectionMiddlewareOptions); + } + }); + exports.getRecursionDetectionPlugin = getRecursionDetectionPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/config.js +var require_config3 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/config.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DEFAULT_RETRY_MODE = exports.DEFAULT_MAX_ATTEMPTS = exports.RETRY_MODES = void 0; + var RETRY_MODES; + (function(RETRY_MODES2) { + RETRY_MODES2["STANDARD"] = "standard"; + RETRY_MODES2["ADAPTIVE"] = "adaptive"; + })(RETRY_MODES = exports.RETRY_MODES || (exports.RETRY_MODES = {})); + exports.DEFAULT_MAX_ATTEMPTS = 3; + exports.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; + } +}); + +// node_modules/@aws-sdk/service-error-classification/dist-cjs/constants.js +var require_constants = __commonJS({ + "node_modules/@aws-sdk/service-error-classification/dist-cjs/constants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODEJS_TIMEOUT_ERROR_CODES = exports.TRANSIENT_ERROR_STATUS_CODES = exports.TRANSIENT_ERROR_CODES = exports.THROTTLING_ERROR_CODES = exports.CLOCK_SKEW_ERROR_CODES = void 0; + exports.CLOCK_SKEW_ERROR_CODES = [ + "AuthFailure", + "InvalidSignatureException", + "RequestExpired", + "RequestInTheFuture", + "RequestTimeTooSkewed", + "SignatureDoesNotMatch" + ]; + exports.THROTTLING_ERROR_CODES = [ + "BandwidthLimitExceeded", + "EC2ThrottledException", + "LimitExceededException", + "PriorRequestNotComplete", + "ProvisionedThroughputExceededException", + "RequestLimitExceeded", + "RequestThrottled", + "RequestThrottledException", + "SlowDown", + "ThrottledException", + "Throttling", + "ThrottlingException", + "TooManyRequestsException", + "TransactionInProgressException" + ]; + exports.TRANSIENT_ERROR_CODES = ["AbortError", "TimeoutError", "RequestTimeout", "RequestTimeoutException"]; + exports.TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; + exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; + } +}); + +// node_modules/@aws-sdk/service-error-classification/dist-cjs/index.js +var require_dist_cjs9 = __commonJS({ + "node_modules/@aws-sdk/service-error-classification/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isTransientError = exports.isThrottlingError = exports.isClockSkewError = exports.isRetryableByTrait = void 0; + var constants_1 = require_constants(); + var isRetryableByTrait = (error) => error.$retryable !== void 0; + exports.isRetryableByTrait = isRetryableByTrait; + var isClockSkewError = (error) => constants_1.CLOCK_SKEW_ERROR_CODES.includes(error.name); + exports.isClockSkewError = isClockSkewError; + var isThrottlingError = (error) => { + var _a, _b; + return ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 429 || constants_1.THROTTLING_ERROR_CODES.includes(error.name) || ((_b = error.$retryable) === null || _b === void 0 ? void 0 : _b.throttling) == true; + }; + exports.isThrottlingError = isThrottlingError; + var isTransientError = (error) => { + var _a; + return constants_1.TRANSIENT_ERROR_CODES.includes(error.name) || constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes((error === null || error === void 0 ? void 0 : error.code) || "") || constants_1.TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0); + }; + exports.isTransientError = isTransientError; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/DefaultRateLimiter.js +var require_DefaultRateLimiter = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/DefaultRateLimiter.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DefaultRateLimiter = void 0; + var service_error_classification_1 = require_dist_cjs9(); + var DefaultRateLimiter = class { + constructor(options) { + var _a, _b, _c, _d, _e; + this.currentCapacity = 0; + this.enabled = false; + this.lastMaxRate = 0; + this.measuredTxRate = 0; + this.requestCount = 0; + this.lastTimestamp = 0; + this.timeWindow = 0; + this.beta = (_a = options === null || options === void 0 ? void 0 : options.beta) !== null && _a !== void 0 ? _a : 0.7; + this.minCapacity = (_b = options === null || options === void 0 ? void 0 : options.minCapacity) !== null && _b !== void 0 ? _b : 1; + this.minFillRate = (_c = options === null || options === void 0 ? void 0 : options.minFillRate) !== null && _c !== void 0 ? _c : 0.5; + this.scaleConstant = (_d = options === null || options === void 0 ? void 0 : options.scaleConstant) !== null && _d !== void 0 ? _d : 0.4; + this.smooth = (_e = options === null || options === void 0 ? void 0 : options.smooth) !== null && _e !== void 0 ? _e : 0.8; + const currentTimeInSeconds = this.getCurrentTimeInSeconds(); + this.lastThrottleTime = currentTimeInSeconds; + this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); + this.fillRate = this.minFillRate; + this.maxCapacity = this.minCapacity; + } + getCurrentTimeInSeconds() { + return Date.now() / 1e3; + } + async getSendToken() { + return this.acquireTokenBucket(1); + } + async acquireTokenBucket(amount) { + if (!this.enabled) { + return; + } + this.refillTokenBucket(); + if (amount > this.currentCapacity) { + const delay = (amount - this.currentCapacity) / this.fillRate * 1e3; + await new Promise((resolve) => setTimeout(resolve, delay)); + } + this.currentCapacity = this.currentCapacity - amount; + } + refillTokenBucket() { + const timestamp = this.getCurrentTimeInSeconds(); + if (!this.lastTimestamp) { + this.lastTimestamp = timestamp; + return; + } + const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; + this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount); + this.lastTimestamp = timestamp; + } + updateClientSendingRate(response) { + let calculatedRate; + this.updateMeasuredRate(); + if ((0, service_error_classification_1.isThrottlingError)(response)) { + const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); + this.lastMaxRate = rateToUse; + this.calculateTimeWindow(); + this.lastThrottleTime = this.getCurrentTimeInSeconds(); + calculatedRate = this.cubicThrottle(rateToUse); + this.enableTokenBucket(); + } else { + this.calculateTimeWindow(); + calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); + } + const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); + this.updateTokenBucketRate(newRate); + } + calculateTimeWindow() { + this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3)); + } + cubicThrottle(rateToUse) { + return this.getPrecise(rateToUse * this.beta); + } + cubicSuccess(timestamp) { + return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); + } + enableTokenBucket() { + this.enabled = true; + } + updateTokenBucketRate(newRate) { + this.refillTokenBucket(); + this.fillRate = Math.max(newRate, this.minFillRate); + this.maxCapacity = Math.max(newRate, this.minCapacity); + this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); + } + updateMeasuredRate() { + const t = this.getCurrentTimeInSeconds(); + const timeBucket = Math.floor(t * 2) / 2; + this.requestCount++; + if (timeBucket > this.lastTxRateBucket) { + const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); + this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); + this.requestCount = 0; + this.lastTxRateBucket = timeBucket; + } + } + getPrecise(num) { + return parseFloat(num.toFixed(8)); + } + }; + exports.DefaultRateLimiter = DefaultRateLimiter; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/rng.js +var require_rng = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/rng.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = rng; + var _crypto = _interopRequireDefault(require("crypto")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var rnds8Pool = new Uint8Array(256); + var poolPtr = rnds8Pool.length; + function rng() { + if (poolPtr > rnds8Pool.length - 16) { + _crypto.default.randomFillSync(rnds8Pool); + poolPtr = 0; + } + return rnds8Pool.slice(poolPtr, poolPtr += 16); + } + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/regex.js +var require_regex = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/regex.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _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; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/validate.js +var require_validate = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/validate.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _regex = _interopRequireDefault(require_regex()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function validate(uuid) { + return typeof uuid === "string" && _regex.default.test(uuid); + } + var _default = validate; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/stringify.js +var require_stringify = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/stringify.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var byteToHex = []; + for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 256).toString(16).substr(1)); + } + 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 (!(0, _validate.default)(uuid)) { + throw TypeError("Stringified UUID is invalid"); + } + return uuid; + } + var _default = stringify; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v1.js +var require_v1 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v1.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _rng = _interopRequireDefault(require_rng()); + var _stringify = _interopRequireDefault(require_stringify()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var _nodeId; + var _clockseq; + var _lastMSecs = 0; + var _lastNSecs = 0; + 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.default)(); + 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 || (0, _stringify.default)(b); + } + var _default = v1; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/parse.js +var require_parse = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/parse.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function parse(uuid) { + if (!(0, _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 _default = parse; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v35.js +var require_v35 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v35.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = _default; + exports.URL = exports.DNS = void 0; + var _stringify = _interopRequireDefault(require_stringify()); + var _parse = _interopRequireDefault(require_parse()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); + const bytes = []; + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + return bytes; + } + var DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; + exports.DNS = DNS; + var URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; + exports.URL = URL2; + function _default(name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === "string") { + value = stringToBytes(value); + } + if (typeof namespace === "string") { + namespace = (0, _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 | version; + 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 (0, _stringify.default)(bytes); + } + try { + generateUUID.name = name; + } catch (err) { + } + generateUUID.DNS = DNS; + generateUUID.URL = URL2; + return generateUUID; + } + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/md5.js +var require_md5 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/md5.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _crypto = _interopRequireDefault(require("crypto")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return _crypto.default.createHash("md5").update(bytes).digest(); + } + var _default = md5; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v3.js +var require_v3 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v3.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _v = _interopRequireDefault(require_v35()); + var _md = _interopRequireDefault(require_md5()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var v3 = (0, _v.default)("v3", 48, _md.default); + var _default = v3; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v4.js +var require_v4 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v4.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _rng = _interopRequireDefault(require_rng()); + var _stringify = _interopRequireDefault(require_stringify()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function v4(options, buf, offset) { + options = options || {}; + const rnds = options.random || (options.rng || _rng.default)(); + 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 (0, _stringify.default)(rnds); + } + var _default = v4; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/sha1.js +var require_sha1 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/sha1.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _crypto = _interopRequireDefault(require("crypto")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return _crypto.default.createHash("sha1").update(bytes).digest(); + } + var _default = sha1; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v5.js +var require_v5 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/v5.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _v = _interopRequireDefault(require_v35()); + var _sha = _interopRequireDefault(require_sha1()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var v5 = (0, _v.default)("v5", 80, _sha.default); + var _default = v5; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/nil.js +var require_nil = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/nil.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _default = "00000000-0000-0000-0000-000000000000"; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/version.js +var require_version = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/version.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function version(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError("Invalid UUID"); + } + return parseInt(uuid.substr(14, 1), 16); + } + var _default = version; + exports.default = _default; + } +}); + +// node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/index.js +var require_dist = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/node_modules/uuid/dist/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + Object.defineProperty(exports, "v1", { + enumerable: true, + get: function() { + return _v.default; + } + }); + Object.defineProperty(exports, "v3", { + enumerable: true, + get: function() { + return _v2.default; + } + }); + Object.defineProperty(exports, "v4", { + enumerable: true, + get: function() { + return _v3.default; + } + }); + Object.defineProperty(exports, "v5", { + enumerable: true, + get: function() { + return _v4.default; + } + }); + Object.defineProperty(exports, "NIL", { + enumerable: true, + get: function() { + return _nil.default; + } + }); + Object.defineProperty(exports, "version", { + enumerable: true, + get: function() { + return _version.default; + } + }); + Object.defineProperty(exports, "validate", { + enumerable: true, + get: function() { + return _validate.default; + } + }); + Object.defineProperty(exports, "stringify", { + enumerable: true, + get: function() { + return _stringify.default; + } + }); + Object.defineProperty(exports, "parse", { + enumerable: true, + get: function() { + return _parse.default; + } + }); + var _v = _interopRequireDefault(require_v1()); + var _v2 = _interopRequireDefault(require_v3()); + var _v3 = _interopRequireDefault(require_v4()); + var _v4 = _interopRequireDefault(require_v5()); + var _nil = _interopRequireDefault(require_nil()); + var _version = _interopRequireDefault(require_version()); + var _validate = _interopRequireDefault(require_validate()); + var _stringify = _interopRequireDefault(require_stringify()); + var _parse = _interopRequireDefault(require_parse()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/constants.js +var require_constants2 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/constants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.REQUEST_HEADER = exports.INVOCATION_ID_HEADER = exports.NO_RETRY_INCREMENT = exports.TIMEOUT_RETRY_COST = exports.RETRY_COST = exports.INITIAL_RETRY_TOKENS = exports.THROTTLING_RETRY_DELAY_BASE = exports.MAXIMUM_RETRY_DELAY = exports.DEFAULT_RETRY_DELAY_BASE = void 0; + exports.DEFAULT_RETRY_DELAY_BASE = 100; + exports.MAXIMUM_RETRY_DELAY = 20 * 1e3; + exports.THROTTLING_RETRY_DELAY_BASE = 500; + exports.INITIAL_RETRY_TOKENS = 500; + exports.RETRY_COST = 5; + exports.TIMEOUT_RETRY_COST = 10; + exports.NO_RETRY_INCREMENT = 1; + exports.INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; + exports.REQUEST_HEADER = "amz-sdk-request"; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/defaultRetryQuota.js +var require_defaultRetryQuota = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/defaultRetryQuota.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getDefaultRetryQuota = void 0; + var constants_1 = require_constants2(); + 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 : constants_1.NO_RETRY_INCREMENT; + const retryCost = (_b = options === null || options === void 0 ? void 0 : options.retryCost) !== null && _b !== void 0 ? _b : constants_1.RETRY_COST; + const timeoutRetryCost = (_c = options === null || options === void 0 ? void 0 : options.timeoutRetryCost) !== null && _c !== void 0 ? _c : constants_1.TIMEOUT_RETRY_COST; + let availableCapacity = initialRetryTokens; + const getCapacityAmount = (error) => error.name === "TimeoutError" ? timeoutRetryCost : retryCost; + const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity; + const retrieveRetryTokens = (error) => { + if (!hasRetryTokens(error)) { + throw new Error("No retry token available"); + } + const capacityAmount = getCapacityAmount(error); + availableCapacity -= capacityAmount; + return capacityAmount; + }; + const releaseRetryTokens = (capacityReleaseAmount) => { + availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : noRetryIncrement; + availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); + }; + return Object.freeze({ + hasRetryTokens, + retrieveRetryTokens, + releaseRetryTokens + }); + }; + exports.getDefaultRetryQuota = getDefaultRetryQuota; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/delayDecider.js +var require_delayDecider = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/delayDecider.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.defaultDelayDecider = void 0; + var constants_1 = require_constants2(); + var defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(constants_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); + exports.defaultDelayDecider = defaultDelayDecider; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/retryDecider.js +var require_retryDecider = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/retryDecider.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.defaultRetryDecider = void 0; + var service_error_classification_1 = require_dist_cjs9(); + 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); + }; + exports.defaultRetryDecider = defaultRetryDecider; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js +var require_StandardRetryStrategy = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.StandardRetryStrategy = void 0; + var protocol_http_1 = require_dist_cjs4(); + var service_error_classification_1 = require_dist_cjs9(); + var uuid_1 = require_dist(); + var config_1 = require_config3(); + var constants_1 = require_constants2(); + var defaultRetryQuota_1 = require_defaultRetryQuota(); + var delayDecider_1 = require_delayDecider(); + var retryDecider_1 = require_retryDecider(); + var StandardRetryStrategy = class { + constructor(maxAttemptsProvider, options) { + var _a, _b, _c; + this.maxAttemptsProvider = maxAttemptsProvider; + this.mode = config_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)(constants_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 = config_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 } = args; + if (protocol_http_1.HttpRequest.isInstance(request)) { + request.headers[constants_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); + } + while (true) { + try { + if (protocol_http_1.HttpRequest.isInstance(request)) { + request.headers[constants_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 = 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) ? constants_1.THROTTLING_RETRY_DELAY_BASE : constants_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; + } + } + } + }; + exports.StandardRetryStrategy = StandardRetryStrategy; + var getDelayFromRetryAfterHeader = (response) => { + if (!protocol_http_1.HttpResponse.isInstance(response)) + return; + const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); + if (!retryAfterHeaderName) + return; + const retryAfter = response.headers[retryAfterHeaderName]; + const retryAfterSeconds = Number(retryAfter); + if (!Number.isNaN(retryAfterSeconds)) + return retryAfterSeconds * 1e3; + const retryAfterDate = new Date(retryAfter); + return retryAfterDate.getTime() - Date.now(); + }; + 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}`); + }; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js +var require_AdaptiveRetryStrategy = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.AdaptiveRetryStrategy = void 0; + var config_1 = require_config3(); + var DefaultRateLimiter_1 = require_DefaultRateLimiter(); + var StandardRetryStrategy_1 = require_StandardRetryStrategy(); + var AdaptiveRetryStrategy = class 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 DefaultRateLimiter_1.DefaultRateLimiter(); + this.mode = config_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); + } + }); + } + }; + exports.AdaptiveRetryStrategy = AdaptiveRetryStrategy; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/configurations.js +var require_configurations = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/configurations.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODE_RETRY_MODE_CONFIG_OPTIONS = exports.CONFIG_RETRY_MODE = exports.ENV_RETRY_MODE = exports.resolveRetryConfig = exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = exports.CONFIG_MAX_ATTEMPTS = exports.ENV_MAX_ATTEMPTS = void 0; + var util_middleware_1 = require_dist_cjs2(); + var AdaptiveRetryStrategy_1 = require_AdaptiveRetryStrategy(); + var config_1 = require_config3(); + var StandardRetryStrategy_1 = require_StandardRetryStrategy(); + exports.ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; + exports.CONFIG_MAX_ATTEMPTS = "max_attempts"; + exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + const value = env[exports.ENV_MAX_ATTEMPTS]; + if (!value) + return void 0; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(`Environment variable ${exports.ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`); + } + return maxAttempt; + }, + configFileSelector: (profile) => { + const value = profile[exports.CONFIG_MAX_ATTEMPTS]; + if (!value) + return void 0; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(`Shared config file entry ${exports.CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`); + } + return maxAttempt; + }, + default: config_1.DEFAULT_MAX_ATTEMPTS + }; + var resolveRetryConfig = (input) => { + var _a; + const maxAttempts = (0, util_middleware_1.normalizeProvider)((_a = input.maxAttempts) !== null && _a !== void 0 ? _a : config_1.DEFAULT_MAX_ATTEMPTS); + return { + ...input, + maxAttempts, + retryStrategy: async () => { + if (input.retryStrategy) { + return input.retryStrategy; + } + const retryMode = await (0, util_middleware_1.normalizeProvider)(input.retryMode)(); + if (retryMode === config_1.RETRY_MODES.ADAPTIVE) { + return new AdaptiveRetryStrategy_1.AdaptiveRetryStrategy(maxAttempts); + } + return new StandardRetryStrategy_1.StandardRetryStrategy(maxAttempts); + } + }; + }; + exports.resolveRetryConfig = resolveRetryConfig; + exports.ENV_RETRY_MODE = "AWS_RETRY_MODE"; + exports.CONFIG_RETRY_MODE = "retry_mode"; + exports.NODE_RETRY_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_RETRY_MODE], + configFileSelector: (profile) => profile[exports.CONFIG_RETRY_MODE], + default: config_1.DEFAULT_RETRY_MODE + }; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js +var require_omitRetryHeadersMiddleware = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getOmitRetryHeadersPlugin = exports.omitRetryHeadersMiddlewareOptions = exports.omitRetryHeadersMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var constants_1 = require_constants2(); + var omitRetryHeadersMiddleware = () => (next) => async (args) => { + const { request } = args; + if (protocol_http_1.HttpRequest.isInstance(request)) { + delete request.headers[constants_1.INVOCATION_ID_HEADER]; + delete request.headers[constants_1.REQUEST_HEADER]; + } + return next(args); + }; + exports.omitRetryHeadersMiddleware = omitRetryHeadersMiddleware; + exports.omitRetryHeadersMiddlewareOptions = { + name: "omitRetryHeadersMiddleware", + tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"], + relation: "before", + toMiddleware: "awsAuthMiddleware", + override: true + }; + var getOmitRetryHeadersPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo((0, exports.omitRetryHeadersMiddleware)(), exports.omitRetryHeadersMiddlewareOptions); + } + }); + exports.getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js +var require_retryMiddleware = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRetryPlugin = exports.retryMiddlewareOptions = exports.retryMiddleware = void 0; + var retryMiddleware = (options) => (next, context) => async (args) => { + const retryStrategy = await options.retryStrategy(); + if (retryStrategy === null || retryStrategy === void 0 ? void 0 : retryStrategy.mode) + context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]]; + return retryStrategy.retry(next, args); + }; + exports.retryMiddleware = retryMiddleware; + exports.retryMiddlewareOptions = { + name: "retryMiddleware", + tags: ["RETRY"], + step: "finalizeRequest", + priority: "high", + override: true + }; + var getRetryPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.retryMiddleware)(options), exports.retryMiddlewareOptions); + } + }); + exports.getRetryPlugin = getRetryPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/types.js +var require_types = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/types.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/index.js +var require_dist_cjs10 = __commonJS({ + "node_modules/@aws-sdk/middleware-retry/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_AdaptiveRetryStrategy(), exports); + tslib_1.__exportStar(require_DefaultRateLimiter(), exports); + tslib_1.__exportStar(require_StandardRetryStrategy(), exports); + tslib_1.__exportStar(require_config3(), exports); + tslib_1.__exportStar(require_configurations(), exports); + tslib_1.__exportStar(require_delayDecider(), exports); + tslib_1.__exportStar(require_omitRetryHeadersMiddleware(), exports); + tslib_1.__exportStar(require_retryDecider(), exports); + tslib_1.__exportStar(require_retryMiddleware(), exports); + tslib_1.__exportStar(require_types(), exports); + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/ProviderError.js +var require_ProviderError = __commonJS({ + "node_modules/@aws-sdk/property-provider/dist-cjs/ProviderError.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ProviderError = void 0; + var ProviderError = class extends Error { + constructor(message, tryNextLink = true) { + super(message); + this.tryNextLink = tryNextLink; + this.name = "ProviderError"; + Object.setPrototypeOf(this, ProviderError.prototype); + } + static from(error, tryNextLink = true) { + return Object.assign(new this(error.message, tryNextLink), error); + } + }; + exports.ProviderError = ProviderError; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/CredentialsProviderError.js +var require_CredentialsProviderError = __commonJS({ + "node_modules/@aws-sdk/property-provider/dist-cjs/CredentialsProviderError.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CredentialsProviderError = void 0; + var ProviderError_1 = require_ProviderError(); + var CredentialsProviderError = class extends ProviderError_1.ProviderError { + constructor(message, tryNextLink = true) { + super(message, tryNextLink); + this.tryNextLink = tryNextLink; + this.name = "CredentialsProviderError"; + Object.setPrototypeOf(this, CredentialsProviderError.prototype); + } + }; + exports.CredentialsProviderError = CredentialsProviderError; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/TokenProviderError.js +var require_TokenProviderError = __commonJS({ + "node_modules/@aws-sdk/property-provider/dist-cjs/TokenProviderError.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.TokenProviderError = void 0; + var ProviderError_1 = require_ProviderError(); + var TokenProviderError = class extends ProviderError_1.ProviderError { + constructor(message, tryNextLink = true) { + super(message, tryNextLink); + this.tryNextLink = tryNextLink; + this.name = "TokenProviderError"; + Object.setPrototypeOf(this, TokenProviderError.prototype); + } + }; + exports.TokenProviderError = TokenProviderError; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/chain.js +var require_chain = __commonJS({ + "node_modules/@aws-sdk/property-provider/dist-cjs/chain.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.chain = void 0; + var ProviderError_1 = require_ProviderError(); + function chain(...providers) { + return () => { + let promise = Promise.reject(new ProviderError_1.ProviderError("No providers in chain")); + for (const provider of providers) { + promise = promise.catch((err) => { + if (err === null || err === void 0 ? void 0 : err.tryNextLink) { + return provider(); + } + throw err; + }); + } + return promise; + }; + } + exports.chain = chain; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/fromStatic.js +var require_fromStatic = __commonJS({ + "node_modules/@aws-sdk/property-provider/dist-cjs/fromStatic.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromStatic = void 0; + var fromStatic = (staticValue) => () => Promise.resolve(staticValue); + exports.fromStatic = fromStatic; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js +var require_memoize = __commonJS({ + "node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.memoize = void 0; + var memoize = (provider, isExpired, requiresRefresh) => { + let resolved; + let pending; + let hasResult; + let isConstant = false; + const coalesceProvider = async () => { + if (!pending) { + pending = provider(); + } + try { + resolved = await pending; + hasResult = true; + isConstant = false; + } finally { + pending = void 0; + } + return resolved; + }; + if (isExpired === void 0) { + return async (options) => { + if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { + resolved = await coalesceProvider(); + } + return resolved; + }; + } + return async (options) => { + if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { + resolved = await coalesceProvider(); + } + if (isConstant) { + return resolved; + } + if (requiresRefresh && !requiresRefresh(resolved)) { + isConstant = true; + return resolved; + } + if (isExpired(resolved)) { + await coalesceProvider(); + return resolved; + } + return resolved; + }; + }; + exports.memoize = memoize; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/index.js +var require_dist_cjs11 = __commonJS({ + "node_modules/@aws-sdk/property-provider/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_CredentialsProviderError(), exports); + tslib_1.__exportStar(require_ProviderError(), exports); + tslib_1.__exportStar(require_TokenProviderError(), exports); + tslib_1.__exportStar(require_chain(), exports); + tslib_1.__exportStar(require_fromStatic(), exports); + tslib_1.__exportStar(require_memoize(), exports); + } +}); + +// node_modules/@aws-sdk/util-hex-encoding/dist-cjs/index.js +var require_dist_cjs12 = __commonJS({ + "node_modules/@aws-sdk/util-hex-encoding/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.toHex = exports.fromHex = void 0; + var SHORT_TO_HEX = {}; + var HEX_TO_SHORT = {}; + for (let i = 0; i < 256; i++) { + let encodedByte = i.toString(16).toLowerCase(); + if (encodedByte.length === 1) { + encodedByte = `0${encodedByte}`; + } + SHORT_TO_HEX[i] = encodedByte; + HEX_TO_SHORT[encodedByte] = i; + } + function fromHex(encoded) { + if (encoded.length % 2 !== 0) { + throw new Error("Hex encoded strings must have an even number length"); + } + const out = new Uint8Array(encoded.length / 2); + for (let i = 0; i < encoded.length; i += 2) { + const encodedByte = encoded.slice(i, i + 2).toLowerCase(); + if (encodedByte in HEX_TO_SHORT) { + out[i / 2] = HEX_TO_SHORT[encodedByte]; + } else { + throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`); + } + } + return out; + } + exports.fromHex = fromHex; + function toHex(bytes) { + let out = ""; + for (let i = 0; i < bytes.byteLength; i++) { + out += SHORT_TO_HEX[bytes[i]]; + } + return out; + } + exports.toHex = toHex; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/constants.js +var require_constants3 = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/constants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.MAX_PRESIGNED_TTL = exports.KEY_TYPE_IDENTIFIER = exports.MAX_CACHE_SIZE = exports.UNSIGNED_PAYLOAD = exports.EVENT_ALGORITHM_IDENTIFIER = exports.ALGORITHM_IDENTIFIER_V4A = exports.ALGORITHM_IDENTIFIER = exports.UNSIGNABLE_PATTERNS = exports.SEC_HEADER_PATTERN = exports.PROXY_HEADER_PATTERN = exports.ALWAYS_UNSIGNABLE_HEADERS = exports.HOST_HEADER = exports.TOKEN_HEADER = exports.SHA256_HEADER = exports.SIGNATURE_HEADER = exports.GENERATED_HEADERS = exports.DATE_HEADER = exports.AMZ_DATE_HEADER = exports.AUTH_HEADER = exports.REGION_SET_PARAM = exports.TOKEN_QUERY_PARAM = exports.SIGNATURE_QUERY_PARAM = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = void 0; + exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; + exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; + exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; + exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; + exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires"; + exports.SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; + exports.TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; + exports.REGION_SET_PARAM = "X-Amz-Region-Set"; + exports.AUTH_HEADER = "authorization"; + exports.AMZ_DATE_HEADER = exports.AMZ_DATE_QUERY_PARAM.toLowerCase(); + exports.DATE_HEADER = "date"; + exports.GENERATED_HEADERS = [exports.AUTH_HEADER, exports.AMZ_DATE_HEADER, exports.DATE_HEADER]; + exports.SIGNATURE_HEADER = exports.SIGNATURE_QUERY_PARAM.toLowerCase(); + exports.SHA256_HEADER = "x-amz-content-sha256"; + exports.TOKEN_HEADER = exports.TOKEN_QUERY_PARAM.toLowerCase(); + exports.HOST_HEADER = "host"; + exports.ALWAYS_UNSIGNABLE_HEADERS = { + authorization: true, + "cache-control": true, + connection: true, + expect: true, + from: true, + "keep-alive": true, + "max-forwards": true, + pragma: true, + referer: true, + te: true, + trailer: true, + "transfer-encoding": true, + upgrade: true, + "user-agent": true, + "x-amzn-trace-id": true + }; + exports.PROXY_HEADER_PATTERN = /^proxy-/; + exports.SEC_HEADER_PATTERN = /^sec-/; + exports.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; + exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; + exports.ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; + exports.EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; + exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; + exports.MAX_CACHE_SIZE = 50; + exports.KEY_TYPE_IDENTIFIER = "aws4_request"; + exports.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/credentialDerivation.js +var require_credentialDerivation = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/credentialDerivation.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.clearCredentialCache = exports.getSigningKey = exports.createScope = void 0; + var util_hex_encoding_1 = require_dist_cjs12(); + var constants_1 = require_constants3(); + var signingKeyCache = {}; + var cacheQueue = []; + var createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${constants_1.KEY_TYPE_IDENTIFIER}`; + exports.createScope = createScope; + var getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { + const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); + const cacheKey = `${shortDate}:${region}:${service}:${(0, util_hex_encoding_1.toHex)(credsHash)}:${credentials.sessionToken}`; + if (cacheKey in signingKeyCache) { + return signingKeyCache[cacheKey]; + } + cacheQueue.push(cacheKey); + while (cacheQueue.length > constants_1.MAX_CACHE_SIZE) { + delete signingKeyCache[cacheQueue.shift()]; + } + let key = `AWS4${credentials.secretAccessKey}`; + for (const signable of [shortDate, region, service, constants_1.KEY_TYPE_IDENTIFIER]) { + key = await hmac(sha256Constructor, key, signable); + } + return signingKeyCache[cacheKey] = key; + }; + exports.getSigningKey = getSigningKey; + var clearCredentialCache = () => { + cacheQueue.length = 0; + Object.keys(signingKeyCache).forEach((cacheKey) => { + delete signingKeyCache[cacheKey]; + }); + }; + exports.clearCredentialCache = clearCredentialCache; + var hmac = (ctor, secret, data) => { + const hash = new ctor(secret); + hash.update(data); + return hash.digest(); + }; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalHeaders.js +var require_getCanonicalHeaders = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalHeaders.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getCanonicalHeaders = void 0; + var constants_1 = require_constants3(); + var getCanonicalHeaders = ({ 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 (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) { + continue; + } + } + canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " "); + } + return canonical; + }; + exports.getCanonicalHeaders = getCanonicalHeaders; + } +}); + +// node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri.js +var require_escape_uri = __commonJS({ + "node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.escapeUri = void 0; + var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); + exports.escapeUri = escapeUri; + var hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`; + } +}); + +// node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri-path.js +var require_escape_uri_path = __commonJS({ + "node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri-path.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.escapeUriPath = void 0; + var escape_uri_1 = require_escape_uri(); + var escapeUriPath = (uri) => uri.split("/").map(escape_uri_1.escapeUri).join("/"); + exports.escapeUriPath = escapeUriPath; + } +}); + +// node_modules/@aws-sdk/util-uri-escape/dist-cjs/index.js +var require_dist_cjs13 = __commonJS({ + "node_modules/@aws-sdk/util-uri-escape/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_escape_uri(), exports); + tslib_1.__exportStar(require_escape_uri_path(), exports); + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalQuery.js +var require_getCanonicalQuery = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalQuery.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getCanonicalQuery = void 0; + var util_uri_escape_1 = require_dist_cjs13(); + var constants_1 = require_constants3(); + var getCanonicalQuery = ({ query = {} }) => { + const keys = []; + const serialized = {}; + for (const key of Object.keys(query).sort()) { + if (key.toLowerCase() === constants_1.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)}`; + } else if (Array.isArray(value)) { + serialized[key] = value.slice(0).sort().reduce((encoded, value2) => encoded.concat([`${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value2)}`]), []).join("&"); + } + } + return keys.map((key) => serialized[key]).filter((serialized2) => serialized2).join("&"); + }; + exports.getCanonicalQuery = getCanonicalQuery; + } +}); + +// node_modules/@aws-sdk/is-array-buffer/dist-cjs/index.js +var require_dist_cjs14 = __commonJS({ + "node_modules/@aws-sdk/is-array-buffer/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isArrayBuffer = void 0; + var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]"; + exports.isArrayBuffer = isArrayBuffer; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/getPayloadHash.js +var require_getPayloadHash = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/getPayloadHash.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getPayloadHash = void 0; + var is_array_buffer_1 = require_dist_cjs14(); + var util_hex_encoding_1 = require_dist_cjs12(); + var constants_1 = require_constants3(); + var getPayloadHash = async ({ headers, body }, hashConstructor) => { + for (const headerName of Object.keys(headers)) { + if (headerName.toLowerCase() === constants_1.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)) { + const hashCtor = new hashConstructor(); + hashCtor.update(body); + return (0, util_hex_encoding_1.toHex)(await hashCtor.digest()); + } + return constants_1.UNSIGNED_PAYLOAD; + }; + exports.getPayloadHash = getPayloadHash; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/headerUtil.js +var require_headerUtil = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/headerUtil.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.deleteHeader = exports.getHeaderValue = exports.hasHeader = void 0; + var hasHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return true; + } + } + return false; + }; + exports.hasHeader = hasHeader; + var getHeaderValue = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return headers[headerName]; + } + } + return void 0; + }; + exports.getHeaderValue = getHeaderValue; + var deleteHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + delete headers[headerName]; + } + } + }; + exports.deleteHeader = deleteHeader; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/cloneRequest.js +var require_cloneRequest = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/cloneRequest.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.cloneQuery = exports.cloneRequest = void 0; + var cloneRequest = ({ headers, query, ...rest }) => ({ + ...rest, + headers: { ...headers }, + query: query ? (0, exports.cloneQuery)(query) : void 0 + }); + exports.cloneRequest = cloneRequest; + var cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { + const param = query[paramName]; + return { + ...carry, + [paramName]: Array.isArray(param) ? [...param] : param + }; + }, {}); + exports.cloneQuery = cloneQuery; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/moveHeadersToQuery.js +var require_moveHeadersToQuery = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/moveHeadersToQuery.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.moveHeadersToQuery = void 0; + var cloneRequest_1 = require_cloneRequest(); + var moveHeadersToQuery = (request, options = {}) => { + var _a; + const { headers, query = {} } = typeof request.clone === "function" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); + 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))) { + query[name] = headers[name]; + delete headers[name]; + } + } + return { + ...request, + headers, + query + }; + }; + exports.moveHeadersToQuery = moveHeadersToQuery; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js +var require_prepareRequest = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.prepareRequest = void 0; + var cloneRequest_1 = require_cloneRequest(); + var constants_1 = require_constants3(); + var prepareRequest = (request) => { + request = typeof request.clone === "function" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); + for (const headerName of Object.keys(request.headers)) { + if (constants_1.GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { + delete request.headers[headerName]; + } + } + return request; + }; + exports.prepareRequest = prepareRequest; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/utilDate.js +var require_utilDate = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/utilDate.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.toDate = exports.iso8601 = void 0; + var iso8601 = (time) => (0, exports.toDate)(time).toISOString().replace(/\.\d{3}Z$/, "Z"); + exports.iso8601 = iso8601; + var toDate = (time) => { + if (typeof time === "number") { + return new Date(time * 1e3); + } + if (typeof time === "string") { + if (Number(time)) { + return new Date(Number(time) * 1e3); + } + return new Date(time); + } + return time; + }; + exports.toDate = toDate; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js +var require_SignatureV4 = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SignatureV4 = void 0; + var util_hex_encoding_1 = require_dist_cjs12(); + var util_middleware_1 = require_dist_cjs2(); + var constants_1 = require_constants3(); + 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.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); + } + async presign(originalRequest, options = {}) { + const { signingDate = 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 { 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"); + } + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + const request = (0, moveHeadersToQuery_1.moveHeadersToQuery)((0, prepareRequest_1.prepareRequest)(originalRequest), { unhoistableHeaders }); + if (credentials.sessionToken) { + request.query[constants_1.TOKEN_QUERY_PARAM] = credentials.sessionToken; + } + request.query[constants_1.ALGORITHM_QUERY_PARAM] = constants_1.ALGORITHM_IDENTIFIER; + request.query[constants_1.CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`; + request.query[constants_1.AMZ_DATE_QUERY_PARAM] = longDate; + request.query[constants_1.EXPIRES_QUERY_PARAM] = expiresIn.toString(10); + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); + request.query[constants_1.SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); + request.query[constants_1.SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, await (0, getPayloadHash_1.getPayloadHash)(originalRequest, this.sha256))); + return request; + } + async sign(toSign, options) { + if (typeof toSign === "string") { + return this.signString(toSign, options); + } else if (toSign.headers && toSign.payload) { + return this.signEvent(toSign, options); + } else { + return this.signRequest(toSign, options); + } + } + async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) { + const region = signingRegion !== null && signingRegion !== void 0 ? 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 hash = new this.sha256(); + hash.update(headers); + const hashedHeaders = (0, util_hex_encoding_1.toHex)(await hash.digest()); + const stringToSign = [ + constants_1.EVENT_ALGORITHM_IDENTIFIER, + longDate, + scope, + priorSignature, + hashedHeaders, + hashedPayload + ].join("\n"); + return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); + } + async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) { + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const { shortDate } = formatDate(signingDate); + const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); + hash.update(stringToSign); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + async signRequest(requestToSign, { signingDate = 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 request = (0, prepareRequest_1.prepareRequest)(requestToSign); + const { longDate, shortDate } = formatDate(signingDate); + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + request.headers[constants_1.AMZ_DATE_HEADER] = longDate; + if (credentials.sessionToken) { + request.headers[constants_1.TOKEN_HEADER] = credentials.sessionToken; + } + const payloadHash = await (0, getPayloadHash_1.getPayloadHash)(request, this.sha256); + if (!(0, headerUtil_1.hasHeader)(constants_1.SHA256_HEADER, request.headers) && this.applyChecksum) { + request.headers[constants_1.SHA256_HEADER] = payloadHash; + } + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); + const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash)); + request.headers[constants_1.AUTH_HEADER] = `${constants_1.ALGORITHM_IDENTIFIER} Credential=${credentials.accessKeyId}/${scope}, SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, Signature=${signature}`; + return request; + } + createCanonicalRequest(request, canonicalHeaders, payloadHash) { + const sortedHeaders = Object.keys(canonicalHeaders).sort(); + return `${request.method} +${this.getCanonicalPath(request)} +${(0, getCanonicalQuery_1.getCanonicalQuery)(request)} +${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join("\n")} + +${sortedHeaders.join(";")} +${payloadHash}`; + } + async createStringToSign(longDate, credentialScope, canonicalRequest) { + const hash = new this.sha256(); + hash.update(canonicalRequest); + const hashedRequest = await hash.digest(); + return `${constants_1.ALGORITHM_IDENTIFIER} +${longDate} +${credentialScope} +${(0, util_hex_encoding_1.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) + continue; + if (pathSegment === ".") + continue; + if (pathSegment === "..") { + normalizedPathSegments.pop(); + } else { + 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 doubleEncoded = encodeURIComponent(normalizedPath); + return doubleEncoded.replace(/%2F/g, "/"); + } + return path; + } + async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { + const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); + const hash = new this.sha256(await keyPromise); + hash.update(stringToSign); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + getSigningKey(credentials, region, shortDate, service) { + return (0, credentialDerivation_1.getSigningKey)(this.sha256, credentials, shortDate, region, service || this.service); + } + validateResolvedCredentials(credentials) { + if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") { + throw new Error("Resolved credential object is not valid"); + } + } + }; + exports.SignatureV4 = SignatureV4; + var formatDate = (now) => { + const longDate = (0, utilDate_1.iso8601)(now).replace(/[\-:]/g, ""); + return { + longDate, + shortDate: longDate.slice(0, 8) + }; + }; + var getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(";"); + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/index.js +var require_dist_cjs15 = __commonJS({ + "node_modules/@aws-sdk/signature-v4/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.prepareRequest = exports.moveHeadersToQuery = exports.getPayloadHash = exports.getCanonicalQuery = exports.getCanonicalHeaders = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_SignatureV4(), exports); + var getCanonicalHeaders_1 = require_getCanonicalHeaders(); + Object.defineProperty(exports, "getCanonicalHeaders", { enumerable: true, get: function() { + return getCanonicalHeaders_1.getCanonicalHeaders; + } }); + var getCanonicalQuery_1 = require_getCanonicalQuery(); + Object.defineProperty(exports, "getCanonicalQuery", { enumerable: true, get: function() { + return getCanonicalQuery_1.getCanonicalQuery; + } }); + var getPayloadHash_1 = require_getPayloadHash(); + Object.defineProperty(exports, "getPayloadHash", { enumerable: true, get: function() { + return getPayloadHash_1.getPayloadHash; + } }); + var moveHeadersToQuery_1 = require_moveHeadersToQuery(); + Object.defineProperty(exports, "moveHeadersToQuery", { enumerable: true, get: function() { + return moveHeadersToQuery_1.moveHeadersToQuery; + } }); + var prepareRequest_1 = require_prepareRequest(); + Object.defineProperty(exports, "prepareRequest", { enumerable: true, get: function() { + return prepareRequest_1.prepareRequest; + } }); + tslib_1.__exportStar(require_credentialDerivation(), exports); + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/configurations.js +var require_configurations2 = __commonJS({ + "node_modules/@aws-sdk/middleware-signing/dist-cjs/configurations.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveSigV4AuthConfig = exports.resolveAwsAuthConfig = void 0; + var property_provider_1 = require_dist_cjs11(); + var signature_v4_1 = require_dist_cjs15(); + var util_middleware_1 = require_dist_cjs2(); + var CREDENTIAL_EXPIRE_WINDOW = 3e5; + var resolveAwsAuthConfig = (input) => { + const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); + const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; + let signer; + if (input.signer) { + signer = (0, util_middleware_1.normalizeProvider)(input.signer); + } else if (input.regionInfoProvider) { + signer = () => (0, util_middleware_1.normalizeProvider)(input.region)().then(async (region) => [ + await input.regionInfoProvider(region, { + useFipsEndpoint: await input.useFipsEndpoint(), + useDualstackEndpoint: await input.useDualstackEndpoint() + }) || {}, + region + ]).then(([regionInfo, region]) => { + const { signingRegion, signingService } = regionInfo; + input.signingRegion = input.signingRegion || signingRegion || region; + input.signingName = input.signingName || signingService || input.serviceId; + const params = { + ...input, + credentials: normalizedCreds, + region: input.signingRegion, + service: input.signingName, + sha256, + uriEscapePath: signingEscapePath + }; + const SignerCtor = input.signerConstructor || signature_v4_1.SignatureV4; + return new SignerCtor(params); + }); + } else { + signer = async (authScheme) => { + if (!authScheme) { + throw new Error("Unexpected empty auth scheme config"); + } + const signingRegion = authScheme.signingScope; + const signingService = authScheme.signingName; + input.signingRegion = input.signingRegion || signingRegion; + input.signingName = input.signingName || signingService || input.serviceId; + const params = { + ...input, + credentials: normalizedCreds, + region: input.signingRegion, + service: input.signingName, + sha256, + uriEscapePath: signingEscapePath + }; + const SignerCtor = input.signerConstructor || signature_v4_1.SignatureV4; + return new SignerCtor(params); + }; + } + return { + ...input, + systemClockOffset, + signingEscapePath, + credentials: normalizedCreds, + signer + }; + }; + exports.resolveAwsAuthConfig = resolveAwsAuthConfig; + var resolveSigV4AuthConfig = (input) => { + const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); + const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; + let signer; + if (input.signer) { + signer = (0, util_middleware_1.normalizeProvider)(input.signer); + } else { + signer = (0, util_middleware_1.normalizeProvider)(new signature_v4_1.SignatureV4({ + credentials: normalizedCreds, + region: input.region, + service: input.signingName, + sha256, + uriEscapePath: signingEscapePath + })); + } + return { + ...input, + systemClockOffset, + signingEscapePath, + credentials: normalizedCreds, + signer + }; + }; + exports.resolveSigV4AuthConfig = resolveSigV4AuthConfig; + var normalizeCredentialProvider = (credentials) => { + if (typeof credentials === "function") { + return (0, property_provider_1.memoize)(credentials, (credentials2) => credentials2.expiration !== void 0 && credentials2.expiration.getTime() - Date.now() < CREDENTIAL_EXPIRE_WINDOW, (credentials2) => credentials2.expiration !== void 0); + } + return (0, util_middleware_1.normalizeProvider)(credentials); + }; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js +var require_getSkewCorrectedDate = __commonJS({ + "node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSkewCorrectedDate = void 0; + var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); + exports.getSkewCorrectedDate = getSkewCorrectedDate; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js +var require_isClockSkewed = __commonJS({ + "node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isClockSkewed = void 0; + var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); + var isClockSkewed = (clockTime, systemClockOffset) => Math.abs((0, getSkewCorrectedDate_1.getSkewCorrectedDate)(systemClockOffset).getTime() - clockTime) >= 3e5; + exports.isClockSkewed = isClockSkewed; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js +var require_getUpdatedSystemClockOffset = __commonJS({ + "node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getUpdatedSystemClockOffset = void 0; + var isClockSkewed_1 = require_isClockSkewed(); + var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => { + const clockTimeInMs = Date.parse(clockTime); + if ((0, isClockSkewed_1.isClockSkewed)(clockTimeInMs, currentSystemClockOffset)) { + return clockTimeInMs - Date.now(); + } + return currentSystemClockOffset; + }; + exports.getUpdatedSystemClockOffset = getUpdatedSystemClockOffset; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js +var require_middleware2 = __commonJS({ + "node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin = exports.awsAuthMiddlewareOptions = exports.awsAuthMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); + var getUpdatedSystemClockOffset_1 = require_getUpdatedSystemClockOffset(); + var awsAuthMiddleware = (options) => (next, context) => async function(args) { + var _a, _b, _c; + if (!protocol_http_1.HttpRequest.isInstance(args.request)) + return next(args); + const authScheme = (_c = (_b = (_a = context.endpointV2) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.authSchemes) === null || _c === void 0 ? void 0 : _c[0]; + const signer = await options.signer(authScheme); + const output = await next({ + ...args, + request: await signer.sign(args.request, { + signingDate: (0, getSkewCorrectedDate_1.getSkewCorrectedDate)(options.systemClockOffset), + signingRegion: context["signing_region"], + signingService: context["signing_service"] + }) + }).catch((error) => { + var _a2; + const serverTime = (_a2 = error.ServerTime) !== null && _a2 !== void 0 ? _a2 : getDateHeader(error.$response); + if (serverTime) { + options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(serverTime, options.systemClockOffset); + } + throw error; + }); + const dateHeader = getDateHeader(output.response); + if (dateHeader) { + options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(dateHeader, options.systemClockOffset); + } + return output; + }; + exports.awsAuthMiddleware = awsAuthMiddleware; + var getDateHeader = (response) => { + var _a, _b, _c; + return protocol_http_1.HttpResponse.isInstance(response) ? (_b = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.date) !== null && _b !== void 0 ? _b : (_c = response.headers) === null || _c === void 0 ? void 0 : _c.Date : void 0; + }; + exports.awsAuthMiddlewareOptions = { + name: "awsAuthMiddleware", + tags: ["SIGNATURE", "AWSAUTH"], + relation: "after", + toMiddleware: "retryMiddleware", + override: true + }; + var getAwsAuthPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo((0, exports.awsAuthMiddleware)(options), exports.awsAuthMiddlewareOptions); + } + }); + exports.getAwsAuthPlugin = getAwsAuthPlugin; + exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +var require_dist_cjs16 = __commonJS({ + "node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_configurations2(), exports); + tslib_1.__exportStar(require_middleware2(), exports); + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js +var require_configurations3 = __commonJS({ + "node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveUserAgentConfig = void 0; + function resolveUserAgentConfig(input) { + return { + ...input, + customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent + }; + } + exports.resolveUserAgentConfig = resolveUserAgentConfig; + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js +var require_constants4 = __commonJS({ + "node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.UA_ESCAPE_REGEX = exports.SPACE = exports.X_AMZ_USER_AGENT = exports.USER_AGENT = void 0; + exports.USER_AGENT = "user-agent"; + exports.X_AMZ_USER_AGENT = "x-amz-user-agent"; + exports.SPACE = " "; + exports.UA_ESCAPE_REGEX = /[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g; + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js +var require_user_agent_middleware = __commonJS({ + "node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getUserAgentPlugin = exports.getUserAgentMiddlewareOptions = exports.userAgentMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var constants_1 = require_constants4(); + var userAgentMiddleware = (options) => (next, context) => async (args) => { + var _a, _b; + const { request } = args; + if (!protocol_http_1.HttpRequest.isInstance(request)) + return next(args); + const { headers } = request; + const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; + const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); + const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; + const sdkUserAgentValue = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(constants_1.SPACE); + const normalUAValue = [ + ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), + ...customUserAgent + ].join(constants_1.SPACE); + if (options.runtime !== "browser") { + if (normalUAValue) { + headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] ? `${headers[constants_1.USER_AGENT]} ${normalUAValue}` : normalUAValue; + } + headers[constants_1.USER_AGENT] = sdkUserAgentValue; + } else { + headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; + } + return next({ + ...args, + request + }); + }; + exports.userAgentMiddleware = userAgentMiddleware; + var escapeUserAgent = ([name, version]) => { + const prefixSeparatorIndex = name.indexOf("/"); + const prefix = name.substring(0, prefixSeparatorIndex); + let uaName = name.substring(prefixSeparatorIndex + 1); + if (prefix === "api") { + uaName = uaName.toLowerCase(); + } + return [prefix, uaName, version].filter((item) => item && item.length > 0).map((item) => item === null || item === void 0 ? void 0 : item.replace(constants_1.UA_ESCAPE_REGEX, "_")).join("/"); + }; + exports.getUserAgentMiddlewareOptions = { + name: "getUserAgentMiddleware", + step: "build", + priority: "low", + tags: ["SET_USER_AGENT", "USER_AGENT"], + override: true + }; + var getUserAgentPlugin = (config) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.userAgentMiddleware)(config), exports.getUserAgentMiddlewareOptions); + } + }); + exports.getUserAgentPlugin = getUserAgentPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +var require_dist_cjs17 = __commonJS({ + "node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_configurations3(), exports); + tslib_1.__exportStar(require_user_agent_middleware(), exports); + } +}); + +// node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js +var require_MiddlewareStack = __commonJS({ + "node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.constructStack = void 0; + var constructStack = () => { + let absoluteEntries = []; + let relativeEntries = []; + 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) => { + let isRemoved = false; + const filterCb = (entry) => { + if (entry.name && entry.name === toRemove) { + isRemoved = true; + entriesNameSet.delete(toRemove); + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }; + const removeByReference = (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + if (entry.middleware === toRemove) { + isRemoved = true; + if (entry.name) + entriesNameSet.delete(entry.name); + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }; + const cloneTo = (toStack) => { + absoluteEntries.forEach((entry) => { + toStack.add(entry.middleware, { ...entry }); + }); + relativeEntries.forEach((entry) => { + toStack.addRelativeTo(entry.middleware, { ...entry }); + }); + return toStack; + }; + const expandRelativeMiddlewareList = (from) => { + const expandedMiddlewareList = []; + from.before.forEach((entry) => { + if (entry.before.length === 0 && entry.after.length === 0) { + expandedMiddlewareList.push(entry); + } else { + expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); + } + }); + expandedMiddlewareList.push(from); + from.after.reverse().forEach((entry) => { + if (entry.before.length === 0 && entry.after.length === 0) { + expandedMiddlewareList.push(entry); + } else { + expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); + } + }); + return expandedMiddlewareList; + }; + const getMiddlewareList = (debug = false) => { + const normalizedAbsoluteEntries = []; + const normalizedRelativeEntries = []; + const normalizedEntriesNameMap = {}; + absoluteEntries.forEach((entry) => { + const normalizedEntry = { + ...entry, + before: [], + after: [] + }; + if (normalizedEntry.name) + normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; + normalizedAbsoluteEntries.push(normalizedEntry); + }); + relativeEntries.forEach((entry) => { + const normalizedEntry = { + ...entry, + before: [], + after: [] + }; + if (normalizedEntry.name) + normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; + normalizedRelativeEntries.push(normalizedEntry); + }); + normalizedRelativeEntries.forEach((entry) => { + if (entry.toMiddleware) { + const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware]; + if (toMiddleware === void 0) { + if (debug) { + return; + } + throw new Error(`${entry.toMiddleware} is not found when adding ${entry.name || "anonymous"} middleware ${entry.relation} ${entry.toMiddleware}`); + } + if (entry.relation === "after") { + toMiddleware.after.push(entry); + } + if (entry.relation === "before") { + toMiddleware.before.push(entry); + } + } + }); + const mainChain = sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce((wholeList, expendedMiddlewareList) => { + wholeList.push(...expendedMiddlewareList); + return wholeList; + }, []); + return mainChain; + }; + const stack = { + add: (middleware, options = {}) => { + const { name, override } = options; + const entry = { + step: "initialize", + priority: "normal", + middleware, + ...options + }; + if (name) { + if (entriesNameSet.has(name)) { + if (!override) + throw new Error(`Duplicate middleware name '${name}'`); + const toOverrideIndex = absoluteEntries.findIndex((entry2) => entry2.name === name); + const toOverride = absoluteEntries[toOverrideIndex]; + if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) { + throw new Error(`"${name}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be overridden by same-name middleware with ${entry.priority} priority in ${entry.step} step.`); + } + absoluteEntries.splice(toOverrideIndex, 1); + } + entriesNameSet.add(name); + } + absoluteEntries.push(entry); + }, + addRelativeTo: (middleware, options) => { + const { name, override } = options; + const entry = { + middleware, + ...options + }; + if (name) { + if (entriesNameSet.has(name)) { + if (!override) + throw new Error(`Duplicate middleware name '${name}'`); + const toOverrideIndex = relativeEntries.findIndex((entry2) => entry2.name === name); + const toOverride = relativeEntries[toOverrideIndex]; + if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) { + throw new Error(`"${name}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden by same-name middleware ${entry.relation} "${entry.toMiddleware}" middleware.`); + } + relativeEntries.splice(toOverrideIndex, 1); + } + entriesNameSet.add(name); + } + relativeEntries.push(entry); + }, + clone: () => cloneTo((0, exports.constructStack)()), + use: (plugin) => { + plugin.applyToStack(stack); + }, + remove: (toRemove) => { + if (typeof toRemove === "string") + return removeByName(toRemove); + else + return removeByReference(toRemove); + }, + removeByTag: (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + const { tags, name } = entry; + if (tags && tags.includes(toRemove)) { + if (name) + entriesNameSet.delete(name); + isRemoved = true; + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }, + concat: (from) => { + const cloned = cloneTo((0, exports.constructStack)()); + cloned.use(from); + return cloned; + }, + applyToStack: cloneTo, + identify: () => { + return getMiddlewareList(true).map((mw) => { + return mw.name + ": " + (mw.tags || []).join(","); + }); + }, + resolve: (handler2, context) => { + for (const middleware of getMiddlewareList().map((entry) => entry.middleware).reverse()) { + handler2 = middleware(handler2, context); + } + return handler2; + } + }; + return stack; + }; + exports.constructStack = constructStack; + var stepWeights = { + initialize: 5, + serialize: 4, + build: 3, + finalizeRequest: 2, + deserialize: 1 + }; + var priorityWeights = { + high: 3, + normal: 2, + low: 1 + }; + } +}); + +// node_modules/@aws-sdk/middleware-stack/dist-cjs/index.js +var require_dist_cjs18 = __commonJS({ + "node_modules/@aws-sdk/middleware-stack/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_MiddlewareStack(), exports); + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/client.js +var require_client = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/client.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Client = void 0; + var middleware_stack_1 = require_dist_cjs18(); + var Client = class { + constructor(config) { + this.middlewareStack = (0, middleware_stack_1.constructStack)(); + this.config = config; + } + send(command, optionsOrCb, cb) { + const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0; + const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb; + const handler2 = command.resolveMiddleware(this.middlewareStack, this.config, options); + if (callback) { + handler2(command).then((result) => callback(null, result.output), (err) => callback(err)).catch(() => { + }); + } else { + return handler2(command).then((result) => result.output); + } + } + destroy() { + if (this.config.requestHandler.destroy) + this.config.requestHandler.destroy(); + } + }; + exports.Client = Client; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/command.js +var require_command = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/command.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Command = void 0; + var middleware_stack_1 = require_dist_cjs18(); + var Command = class { + constructor() { + this.middlewareStack = (0, middleware_stack_1.constructStack)(); + } + }; + exports.Command = Command; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/constants.js +var require_constants5 = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/constants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SENSITIVE_STRING = void 0; + exports.SENSITIVE_STRING = "***SensitiveInformation***"; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/parse-utils.js +var require_parse_utils = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/parse-utils.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.logger = exports.strictParseByte = exports.strictParseShort = exports.strictParseInt32 = exports.strictParseInt = exports.strictParseLong = exports.limitedParseFloat32 = exports.limitedParseFloat = exports.handleFloat = exports.limitedParseDouble = exports.strictParseFloat32 = exports.strictParseFloat = exports.strictParseDouble = exports.expectUnion = exports.expectString = exports.expectObject = exports.expectNonNull = exports.expectByte = exports.expectShort = exports.expectInt32 = exports.expectInt = exports.expectLong = exports.expectFloat32 = exports.expectNumber = exports.expectBoolean = exports.parseBoolean = void 0; + var parseBoolean = (value) => { + switch (value) { + case "true": + return true; + case "false": + return false; + default: + throw new Error(`Unable to parse boolean value "${value}"`); + } + }; + exports.parseBoolean = parseBoolean; + var expectBoolean = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "number") { + if (value === 0 || value === 1) { + exports.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + } + if (value === 0) { + return false; + } + if (value === 1) { + return true; + } + } + if (typeof value === "string") { + const lower = value.toLowerCase(); + if (lower === "false" || lower === "true") { + exports.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + } + if (lower === "false") { + return false; + } + if (lower === "true") { + return true; + } + } + if (typeof value === "boolean") { + return value; + } + throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`); + }; + exports.expectBoolean = expectBoolean; + var expectNumber = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "string") { + const parsed = parseFloat(value); + if (!Number.isNaN(parsed)) { + if (String(parsed) !== String(value)) { + exports.logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`)); + } + return parsed; + } + } + if (typeof value === "number") { + return value; + } + throw new TypeError(`Expected number, got ${typeof value}: ${value}`); + }; + exports.expectNumber = expectNumber; + var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); + var expectFloat32 = (value) => { + const expected = (0, exports.expectNumber)(value); + if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { + if (Math.abs(expected) > MAX_FLOAT) { + throw new TypeError(`Expected 32-bit float, got ${value}`); + } + } + return expected; + }; + exports.expectFloat32 = expectFloat32; + var expectLong = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (Number.isInteger(value) && !Number.isNaN(value)) { + return value; + } + throw new TypeError(`Expected integer, got ${typeof value}: ${value}`); + }; + exports.expectLong = expectLong; + exports.expectInt = exports.expectLong; + var expectInt32 = (value) => expectSizedInt(value, 32); + exports.expectInt32 = expectInt32; + var expectShort = (value) => expectSizedInt(value, 16); + exports.expectShort = expectShort; + var expectByte = (value) => expectSizedInt(value, 8); + exports.expectByte = expectByte; + var expectSizedInt = (value, size) => { + const expected = (0, exports.expectLong)(value); + if (expected !== void 0 && castInt(expected, size) !== expected) { + throw new TypeError(`Expected ${size}-bit integer, got ${value}`); + } + return expected; + }; + var castInt = (value, size) => { + switch (size) { + case 32: + return Int32Array.of(value)[0]; + case 16: + return Int16Array.of(value)[0]; + case 8: + return Int8Array.of(value)[0]; + } + }; + var expectNonNull = (value, location) => { + if (value === null || value === void 0) { + if (location) { + throw new TypeError(`Expected a non-null value for ${location}`); + } + throw new TypeError("Expected a non-null value"); + } + return value; + }; + exports.expectNonNull = expectNonNull; + var expectObject = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "object" && !Array.isArray(value)) { + return value; + } + const receivedType = Array.isArray(value) ? "array" : typeof value; + throw new TypeError(`Expected object, got ${receivedType}: ${value}`); + }; + exports.expectObject = expectObject; + var expectString = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "string") { + return value; + } + if (["boolean", "number", "bigint"].includes(typeof value)) { + exports.logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`)); + return String(value); + } + throw new TypeError(`Expected string, got ${typeof value}: ${value}`); + }; + exports.expectString = expectString; + var expectUnion = (value) => { + if (value === null || value === void 0) { + return void 0; + } + const asObject = (0, exports.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.`); + } + if (setKeys.length > 1) { + throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); + } + return asObject; + }; + exports.expectUnion = expectUnion; + var strictParseDouble = (value) => { + if (typeof value == "string") { + return (0, exports.expectNumber)(parseNumber(value)); + } + return (0, exports.expectNumber)(value); + }; + exports.strictParseDouble = strictParseDouble; + exports.strictParseFloat = exports.strictParseDouble; + var strictParseFloat32 = (value) => { + if (typeof value == "string") { + return (0, exports.expectFloat32)(parseNumber(value)); + } + return (0, exports.expectFloat32)(value); + }; + exports.strictParseFloat32 = strictParseFloat32; + var NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g; + var parseNumber = (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) => { + if (typeof value == "string") { + return parseFloatString(value); + } + return (0, exports.expectNumber)(value); + }; + exports.limitedParseDouble = limitedParseDouble; + exports.handleFloat = exports.limitedParseDouble; + exports.limitedParseFloat = exports.limitedParseDouble; + var limitedParseFloat32 = (value) => { + if (typeof value == "string") { + return parseFloatString(value); + } + return (0, exports.expectFloat32)(value); + }; + exports.limitedParseFloat32 = limitedParseFloat32; + var parseFloatString = (value) => { + switch (value) { + case "NaN": + return NaN; + case "Infinity": + return Infinity; + case "-Infinity": + return -Infinity; + default: + throw new Error(`Unable to parse float value: ${value}`); + } + }; + var strictParseLong = (value) => { + if (typeof value === "string") { + return (0, exports.expectLong)(parseNumber(value)); + } + return (0, exports.expectLong)(value); + }; + exports.strictParseLong = strictParseLong; + exports.strictParseInt = exports.strictParseLong; + var strictParseInt32 = (value) => { + if (typeof value === "string") { + return (0, exports.expectInt32)(parseNumber(value)); + } + return (0, exports.expectInt32)(value); + }; + exports.strictParseInt32 = strictParseInt32; + var strictParseShort = (value) => { + if (typeof value === "string") { + return (0, exports.expectShort)(parseNumber(value)); + } + return (0, exports.expectShort)(value); + }; + exports.strictParseShort = strictParseShort; + var strictParseByte = (value) => { + if (typeof value === "string") { + return (0, exports.expectByte)(parseNumber(value)); + } + return (0, exports.expectByte)(value); + }; + exports.strictParseByte = strictParseByte; + var stackTraceWarning = (message) => { + return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n"); + }; + exports.logger = { + warn: console.warn + }; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/date-utils.js +var require_date_utils = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/date-utils.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.parseEpochTimestamp = exports.parseRfc7231DateTime = exports.parseRfc3339DateTime = exports.dateToUtcString = void 0; + var parse_utils_1 = require_parse_utils(); + var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; + var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; + function dateToUtcString(date) { + const year = date.getUTCFullYear(); + const month = date.getUTCMonth(); + const dayOfWeek = date.getUTCDay(); + const dayOfMonthInt = date.getUTCDate(); + const hoursInt = date.getUTCHours(); + const minutesInt = date.getUTCMinutes(); + const secondsInt = date.getUTCSeconds(); + const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`; + const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`; + const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`; + const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; + return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; + } + exports.dateToUtcString = dateToUtcString; + var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/); + var parseRfc3339DateTime = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== "string") { + throw new TypeError("RFC-3339 date-times must be expressed as strings"); + } + const match = RFC3339.exec(value); + if (!match) { + 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 month = parseDateValue(monthStr, "month", 1, 12); + const day = parseDateValue(dayStr, "day", 1, 31); + return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); + }; + exports.parseRfc3339DateTime = parseRfc3339DateTime; + var 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) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== "string") { + throw new TypeError("RFC-7231 date-times must be expressed as strings"); + } + 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 }); + } + 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 + })); + } + 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 }); + } + throw new TypeError("Invalid RFC-7231 date-time value"); + }; + exports.parseRfc7231DateTime = parseRfc7231DateTime; + var parseEpochTimestamp = (value) => { + if (value === null || value === void 0) { + return void 0; + } + let valueAsDouble; + if (typeof value === "number") { + valueAsDouble = value; + } else if (typeof value === "string") { + valueAsDouble = (0, parse_utils_1.strictParseDouble)(value); + } else { + throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation"); + } + if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { + throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics"); + } + return new Date(Math.round(valueAsDouble * 1e3)); + }; + exports.parseEpochTimestamp = parseEpochTimestamp; + var buildDate = (year, month, day, time) => { + 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) => { + const thisYear = new Date().getUTCFullYear(); + const valueInThisCentury = Math.floor(thisYear / 100) * 100 + (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(value)); + if (valueInThisCentury < thisYear) { + return valueInThisCentury + 100; + } + return valueInThisCentury; + }; + var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3; + var adjustRfc850Year = (input) => { + if (input.getTime() - 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 input; + }; + var parseMonthByShortName = (value) => { + const monthIdx = MONTHS.indexOf(value); + if (monthIdx < 0) { + throw new TypeError(`Invalid month: ${value}`); + } + return monthIdx + 1; + }; + var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; + var validateDayOfMonth = (year, month, day) => { + let maxDays = DAYS_IN_MONTH[month]; + if (month === 1 && isLeapYear(year)) { + maxDays = 29; + } + if (day > maxDays) { + throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`); + } + }; + var isLeapYear = (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)); + if (dateVal < lower || dateVal > upper) { + throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`); + } + return dateVal; + }; + var parseMilliseconds = (value) => { + if (value === null || value === void 0) { + return 0; + } + return (0, parse_utils_1.strictParseFloat32)("0." + value) * 1e3; + }; + var stripLeadingZeroes = (value) => { + let idx = 0; + while (idx < value.length - 1 && value.charAt(idx) === "0") { + idx++; + } + if (idx === 0) { + return value; + } + return value.slice(idx); + }; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/exceptions.js +var require_exceptions = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/exceptions.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.decorateServiceException = exports.ServiceException = void 0; + var ServiceException = class extends Error { + constructor(options) { + super(options.message); + Object.setPrototypeOf(this, ServiceException.prototype); + this.name = options.name; + this.$fault = options.$fault; + this.$metadata = options.$metadata; + } + }; + exports.ServiceException = ServiceException; + var decorateServiceException = (exception, additions = {}) => { + Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => { + if (exception[k] == void 0 || exception[k] === "") { + exception[k] = v; + } + }); + const message = exception.message || exception.Message || "UnknownError"; + exception.message = message; + delete exception.Message; + return exception; + }; + exports.decorateServiceException = decorateServiceException; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js +var require_default_error_handler = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.throwDefaultError = void 0; + var exceptions_1 = require_exceptions(); + var throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => { + const $metadata = deserializeMetadata(output); + const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0; + const response = new exceptionCtor({ + name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", + $fault: "client", + $metadata + }); + throw (0, exceptions_1.decorateServiceException)(response, parsedBody); + }; + exports.throwDefaultError = throwDefaultError; + var deserializeMetadata = (output) => { + var _a; + return { + httpStatusCode: output.statusCode, + requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"] + }; + }; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/defaults-mode.js +var require_defaults_mode = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/defaults-mode.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.loadConfigsForDefaultMode = void 0; + var loadConfigsForDefaultMode = (mode) => { + switch (mode) { + 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 {}; + } + }; + exports.loadConfigsForDefaultMode = loadConfigsForDefaultMode; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js +var require_emitWarningIfUnsupportedVersion = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.emitWarningIfUnsupportedVersion = void 0; + var warningEmitted = false; + var emitWarningIfUnsupportedVersion = (version) => { + if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 14) { + warningEmitted = true; + process.emitWarning(`The AWS SDK for JavaScript (v3) will +no longer support Node.js ${version} on November 1, 2022. + +To continue receiving updates to AWS services, bug fixes, and security +updates please upgrade to Node.js 14.x or later. + +For details, please refer our blog post: https://a.co/48dbdYz`, `NodeDeprecationWarning`); + } + }; + exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/extended-encode-uri-component.js +var require_extended_encode_uri_component = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/extended-encode-uri-component.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.extendedEncodeURIComponent = void 0; + function extendedEncodeURIComponent(str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function(c) { + return "%" + c.charCodeAt(0).toString(16).toUpperCase(); + }); + } + exports.extendedEncodeURIComponent = extendedEncodeURIComponent; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/get-array-if-single-item.js +var require_get_array_if_single_item = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/get-array-if-single-item.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getArrayIfSingleItem = void 0; + var getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; + exports.getArrayIfSingleItem = getArrayIfSingleItem; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/get-value-from-text-node.js +var require_get_value_from_text_node = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/get-value-from-text-node.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getValueFromTextNode = void 0; + var getValueFromTextNode = (obj) => { + const textNodeName = "#text"; + for (const key in obj) { + if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) { + obj[key] = obj[key][textNodeName]; + } else if (typeof obj[key] === "object" && obj[key] !== null) { + obj[key] = (0, exports.getValueFromTextNode)(obj[key]); + } + } + return obj; + }; + exports.getValueFromTextNode = getValueFromTextNode; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/lazy-json.js +var require_lazy_json = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/lazy-json.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.LazyJsonString = exports.StringWrapper = void 0; + var StringWrapper = function() { + const Class = Object.getPrototypeOf(this).constructor; + const Constructor = Function.bind.apply(String, [null, ...arguments]); + const instance = new Constructor(); + Object.setPrototypeOf(instance, Class.prototype); + return instance; + }; + exports.StringWrapper = StringWrapper; + exports.StringWrapper.prototype = Object.create(String.prototype, { + constructor: { + value: exports.StringWrapper, + enumerable: false, + writable: true, + configurable: true + } + }); + Object.setPrototypeOf(exports.StringWrapper, String); + var LazyJsonString = class extends exports.StringWrapper { + deserializeJSON() { + return JSON.parse(super.toString()); + } + toJSON() { + return super.toString(); + } + static fromObject(object) { + if (object instanceof LazyJsonString) { + return object; + } else if (object instanceof String || typeof object === "string") { + return new LazyJsonString(object); + } + return new LazyJsonString(JSON.stringify(object)); + } + }; + exports.LazyJsonString = LazyJsonString; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/object-mapping.js +var require_object_mapping = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/object-mapping.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.convertMap = exports.map = void 0; + function map(arg0, arg1, arg2) { + let target; + let filter; + let instructions; + if (typeof arg1 === "undefined" && typeof arg2 === "undefined") { + target = {}; + instructions = arg0; + } else { + target = arg0; + if (typeof arg1 === "function") { + filter = arg1; + instructions = arg2; + return mapWithFilter(target, filter, instructions); + } else { + instructions = arg1; + } + } + for (const key of Object.keys(instructions)) { + if (!Array.isArray(instructions[key])) { + target[key] = instructions[key]; + continue; + } + let [filter2, value] = instructions[key]; + if (typeof value === "function") { + let _value; + const defaultFilterPassed = filter2 === void 0 && (_value = value()) != null; + const customFilterPassed = typeof filter2 === "function" && !!filter2(void 0) || typeof filter2 !== "function" && !!filter2; + if (defaultFilterPassed) { + target[key] = _value; + } else if (customFilterPassed) { + target[key] = value(); + } + } else { + const defaultFilterPassed = filter2 === void 0 && value != null; + const customFilterPassed = typeof filter2 === "function" && !!filter2(value) || typeof filter2 !== "function" && !!filter2; + if (defaultFilterPassed || customFilterPassed) { + target[key] = value; + } + } + } + return target; + } + exports.map = map; + var convertMap = (target) => { + const output = {}; + for (const [k, v] of Object.entries(target || {})) { + output[k] = [, v]; + } + return output; + }; + exports.convertMap = convertMap; + 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; + }, {})); + }; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/resolve-path.js +var require_resolve_path = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/resolve-path.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolvedPath = void 0; + var extended_encode_uri_component_1 = require_extended_encode_uri_component(); + var resolvedPath = (resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { + 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)); + } else { + throw new Error("No value provided for input HTTP label: " + memberName + "."); + } + return resolvedPath2; + }; + exports.resolvedPath = resolvedPath; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/ser-utils.js +var require_ser_utils = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/ser-utils.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.serializeFloat = void 0; + var serializeFloat = (value) => { + if (value !== value) { + return "NaN"; + } + switch (value) { + case Infinity: + return "Infinity"; + case -Infinity: + return "-Infinity"; + default: + return value; + } + }; + exports.serializeFloat = serializeFloat; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/split-every.js +var require_split_every = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/split-every.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.splitEvery = void 0; + function splitEvery(value, delimiter, numDelimiters) { + if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { + throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); + } + const segments = value.split(delimiter); + if (numDelimiters === 1) { + return segments; + } + const compoundSegments = []; + let currentSegment = ""; + for (let i = 0; i < segments.length; i++) { + if (currentSegment === "") { + currentSegment = segments[i]; + } else { + currentSegment += delimiter + segments[i]; + } + if ((i + 1) % numDelimiters === 0) { + compoundSegments.push(currentSegment); + currentSegment = ""; + } + } + if (currentSegment !== "") { + compoundSegments.push(currentSegment); + } + return compoundSegments; + } + exports.splitEvery = splitEvery; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/index.js +var require_dist_cjs19 = __commonJS({ + "node_modules/@aws-sdk/smithy-client/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_client(), exports); + tslib_1.__exportStar(require_command(), exports); + tslib_1.__exportStar(require_constants5(), exports); + tslib_1.__exportStar(require_date_utils(), exports); + tslib_1.__exportStar(require_default_error_handler(), exports); + tslib_1.__exportStar(require_defaults_mode(), exports); + tslib_1.__exportStar(require_emitWarningIfUnsupportedVersion(), exports); + tslib_1.__exportStar(require_exceptions(), exports); + tslib_1.__exportStar(require_extended_encode_uri_component(), exports); + tslib_1.__exportStar(require_get_array_if_single_item(), exports); + tslib_1.__exportStar(require_get_value_from_text_node(), exports); + tslib_1.__exportStar(require_lazy_json(), exports); + tslib_1.__exportStar(require_object_mapping(), exports); + tslib_1.__exportStar(require_parse_utils(), exports); + tslib_1.__exportStar(require_resolve_path(), exports); + tslib_1.__exportStar(require_ser_utils(), exports); + tslib_1.__exportStar(require_split_every(), exports); + } +}); + +// node_modules/@aws-sdk/client-codedeploy/package.json +var require_package = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/package.json"(exports, module2) { + module2.exports = { + name: "@aws-sdk/client-codedeploy", + description: "AWS SDK for JavaScript Codedeploy Client for Node.js, Browser and React Native", + version: "3.186.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" + }, + main: "./dist-cjs/index.js", + types: "./dist-types/index.d.ts", + module: "./dist-es/index.js", + sideEffects: false, + dependencies: { + "@aws-crypto/sha256-browser": "2.0.0", + "@aws-crypto/sha256-js": "2.0.0", + "@aws-sdk/client-sts": "3.186.0", + "@aws-sdk/config-resolver": "3.186.0", + "@aws-sdk/credential-provider-node": "3.186.0", + "@aws-sdk/fetch-http-handler": "3.186.0", + "@aws-sdk/hash-node": "3.186.0", + "@aws-sdk/invalid-dependency": "3.186.0", + "@aws-sdk/middleware-content-length": "3.186.0", + "@aws-sdk/middleware-host-header": "3.186.0", + "@aws-sdk/middleware-logger": "3.186.0", + "@aws-sdk/middleware-recursion-detection": "3.186.0", + "@aws-sdk/middleware-retry": "3.186.0", + "@aws-sdk/middleware-serde": "3.186.0", + "@aws-sdk/middleware-signing": "3.186.0", + "@aws-sdk/middleware-stack": "3.186.0", + "@aws-sdk/middleware-user-agent": "3.186.0", + "@aws-sdk/node-config-provider": "3.186.0", + "@aws-sdk/node-http-handler": "3.186.0", + "@aws-sdk/protocol-http": "3.186.0", + "@aws-sdk/smithy-client": "3.186.0", + "@aws-sdk/types": "3.186.0", + "@aws-sdk/url-parser": "3.186.0", + "@aws-sdk/util-base64-browser": "3.186.0", + "@aws-sdk/util-base64-node": "3.186.0", + "@aws-sdk/util-body-length-browser": "3.186.0", + "@aws-sdk/util-body-length-node": "3.186.0", + "@aws-sdk/util-defaults-mode-browser": "3.186.0", + "@aws-sdk/util-defaults-mode-node": "3.186.0", + "@aws-sdk/util-user-agent-browser": "3.186.0", + "@aws-sdk/util-user-agent-node": "3.186.0", + "@aws-sdk/util-utf8-browser": "3.186.0", + "@aws-sdk/util-utf8-node": "3.186.0", + "@aws-sdk/util-waiter": "3.186.0", + tslib: "^2.3.1" + }, + devDependencies: { + "@aws-sdk/service-client-documentation-generator": "3.186.0", + "@tsconfig/recommended": "1.0.1", + "@types/node": "^12.7.5", + concurrently: "7.0.0", + "downlevel-dts": "0.10.1", + rimraf: "3.0.2", + typedoc: "0.19.2", + typescript: "~4.6.2" + }, + overrides: { + typedoc: { + typescript: "~4.6.2" + } + }, + engines: { + node: ">=12.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-codedeploy", + repository: { + type: "git", + url: "https://github.com/aws/aws-sdk-js-v3.git", + directory: "clients/client-codedeploy" + } + }; + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js +var require_deserializerMiddleware = __commonJS({ + "node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.deserializerMiddleware = void 0; + var deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { + const { response } = await next(args); + try { + const parsed = await deserializer(response, options); + return { + response, + output: parsed + }; + } catch (error) { + Object.defineProperty(error, "$response", { + value: response + }); + throw error; + } + }; + exports.deserializerMiddleware = deserializerMiddleware; + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/serializerMiddleware.js +var require_serializerMiddleware = __commonJS({ + "node_modules/@aws-sdk/middleware-serde/dist-cjs/serializerMiddleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.serializerMiddleware = void 0; + var serializerMiddleware = (options, serializer) => (next, context) => async (args) => { + 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 request = await serializer(args.input, { ...options, endpoint }); + return next({ + ...args, + request + }); + }; + exports.serializerMiddleware = serializerMiddleware; + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/serdePlugin.js +var require_serdePlugin = __commonJS({ + "node_modules/@aws-sdk/middleware-serde/dist-cjs/serdePlugin.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSerdePlugin = exports.serializerMiddlewareOption = exports.deserializerMiddlewareOption = void 0; + var deserializerMiddleware_1 = require_deserializerMiddleware(); + var serializerMiddleware_1 = require_serializerMiddleware(); + exports.deserializerMiddlewareOption = { + name: "deserializerMiddleware", + step: "deserialize", + tags: ["DESERIALIZER"], + override: true + }; + exports.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), exports.deserializerMiddlewareOption); + commandStack.add((0, serializerMiddleware_1.serializerMiddleware)(config, serializer), exports.serializerMiddlewareOption); + } + }; + } + exports.getSerdePlugin = getSerdePlugin; + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/index.js +var require_dist_cjs20 = __commonJS({ + "node_modules/@aws-sdk/middleware-serde/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_deserializerMiddleware(), exports); + tslib_1.__exportStar(require_serdePlugin(), exports); + tslib_1.__exportStar(require_serializerMiddleware(), exports); + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +var require_STSServiceException = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.STSServiceException = void 0; + var smithy_client_1 = require_dist_cjs19(); + var STSServiceException = class extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, STSServiceException.prototype); + } + }; + exports.STSServiceException = STSServiceException; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js +var require_models_0 = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetSessionTokenResponseFilterSensitiveLog = exports.GetSessionTokenRequestFilterSensitiveLog = exports.GetFederationTokenResponseFilterSensitiveLog = exports.FederatedUserFilterSensitiveLog = exports.GetFederationTokenRequestFilterSensitiveLog = exports.GetCallerIdentityResponseFilterSensitiveLog = exports.GetCallerIdentityRequestFilterSensitiveLog = exports.GetAccessKeyInfoResponseFilterSensitiveLog = exports.GetAccessKeyInfoRequestFilterSensitiveLog = exports.DecodeAuthorizationMessageResponseFilterSensitiveLog = exports.DecodeAuthorizationMessageRequestFilterSensitiveLog = exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = exports.AssumeRoleResponseFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.AssumeRoleRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.PolicyDescriptorTypeFilterSensitiveLog = exports.AssumedRoleUserFilterSensitiveLog = exports.InvalidAuthorizationMessageException = exports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = void 0; + var STSServiceException_1 = require_STSServiceException(); + var ExpiredTokenException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "ExpiredTokenException", + $fault: "client", + ...opts + }); + this.name = "ExpiredTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ExpiredTokenException.prototype); + } + }; + exports.ExpiredTokenException = ExpiredTokenException; + var MalformedPolicyDocumentException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "MalformedPolicyDocumentException", + $fault: "client", + ...opts + }); + this.name = "MalformedPolicyDocumentException"; + this.$fault = "client"; + Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); + } + }; + exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; + var PackedPolicyTooLargeException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "PackedPolicyTooLargeException", + $fault: "client", + ...opts + }); + this.name = "PackedPolicyTooLargeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); + } + }; + exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; + var RegionDisabledException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "RegionDisabledException", + $fault: "client", + ...opts + }); + this.name = "RegionDisabledException"; + this.$fault = "client"; + Object.setPrototypeOf(this, RegionDisabledException.prototype); + } + }; + exports.RegionDisabledException = RegionDisabledException; + var IDPRejectedClaimException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "IDPRejectedClaimException", + $fault: "client", + ...opts + }); + this.name = "IDPRejectedClaimException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); + } + }; + exports.IDPRejectedClaimException = IDPRejectedClaimException; + var InvalidIdentityTokenException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "InvalidIdentityTokenException", + $fault: "client", + ...opts + }); + this.name = "InvalidIdentityTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); + } + }; + exports.InvalidIdentityTokenException = InvalidIdentityTokenException; + var IDPCommunicationErrorException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "IDPCommunicationErrorException", + $fault: "client", + ...opts + }); + this.name = "IDPCommunicationErrorException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); + } + }; + exports.IDPCommunicationErrorException = IDPCommunicationErrorException; + var InvalidAuthorizationMessageException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "InvalidAuthorizationMessageException", + $fault: "client", + ...opts + }); + this.name = "InvalidAuthorizationMessageException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); + } + }; + exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; + var AssumedRoleUserFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AssumedRoleUserFilterSensitiveLog = AssumedRoleUserFilterSensitiveLog; + var PolicyDescriptorTypeFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.PolicyDescriptorTypeFilterSensitiveLog = PolicyDescriptorTypeFilterSensitiveLog; + var TagFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TagFilterSensitiveLog = TagFilterSensitiveLog; + var AssumeRoleRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AssumeRoleRequestFilterSensitiveLog = AssumeRoleRequestFilterSensitiveLog; + var CredentialsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog; + var AssumeRoleResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog; + var AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = AssumeRoleWithSAMLRequestFilterSensitiveLog; + var AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = AssumeRoleWithSAMLResponseFilterSensitiveLog; + var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog; + var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog; + var DecodeAuthorizationMessageRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DecodeAuthorizationMessageRequestFilterSensitiveLog = DecodeAuthorizationMessageRequestFilterSensitiveLog; + var DecodeAuthorizationMessageResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DecodeAuthorizationMessageResponseFilterSensitiveLog = DecodeAuthorizationMessageResponseFilterSensitiveLog; + var GetAccessKeyInfoRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetAccessKeyInfoRequestFilterSensitiveLog = GetAccessKeyInfoRequestFilterSensitiveLog; + var GetAccessKeyInfoResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetAccessKeyInfoResponseFilterSensitiveLog = GetAccessKeyInfoResponseFilterSensitiveLog; + var GetCallerIdentityRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetCallerIdentityRequestFilterSensitiveLog = GetCallerIdentityRequestFilterSensitiveLog; + var GetCallerIdentityResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetCallerIdentityResponseFilterSensitiveLog = GetCallerIdentityResponseFilterSensitiveLog; + var GetFederationTokenRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetFederationTokenRequestFilterSensitiveLog = GetFederationTokenRequestFilterSensitiveLog; + var FederatedUserFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.FederatedUserFilterSensitiveLog = FederatedUserFilterSensitiveLog; + var GetFederationTokenResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog; + var GetSessionTokenRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetSessionTokenRequestFilterSensitiveLog = GetSessionTokenRequestFilterSensitiveLog; + var GetSessionTokenResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetSessionTokenResponseFilterSensitiveLog = GetSessionTokenResponseFilterSensitiveLog; + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/entities.json +var require_entities = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/entities.json"(exports, module2) { + module2.exports = { Aacute: "\xC1", aacute: "\xE1", Abreve: "\u0102", abreve: "\u0103", ac: "\u223E", acd: "\u223F", acE: "\u223E\u0333", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", Acy: "\u0410", acy: "\u0430", AElig: "\xC6", aelig: "\xE6", af: "\u2061", Afr: "\u{1D504}", afr: "\u{1D51E}", Agrave: "\xC0", agrave: "\xE0", alefsym: "\u2135", aleph: "\u2135", Alpha: "\u0391", alpha: "\u03B1", Amacr: "\u0100", amacr: "\u0101", amalg: "\u2A3F", amp: "&", AMP: "&", andand: "\u2A55", And: "\u2A53", and: "\u2227", andd: "\u2A5C", andslope: "\u2A58", andv: "\u2A5A", ang: "\u2220", ange: "\u29A4", angle: "\u2220", angmsdaa: "\u29A8", angmsdab: "\u29A9", angmsdac: "\u29AA", angmsdad: "\u29AB", angmsdae: "\u29AC", angmsdaf: "\u29AD", angmsdag: "\u29AE", angmsdah: "\u29AF", angmsd: "\u2221", angrt: "\u221F", angrtvb: "\u22BE", angrtvbd: "\u299D", angsph: "\u2222", angst: "\xC5", angzarr: "\u237C", Aogon: "\u0104", aogon: "\u0105", Aopf: "\u{1D538}", aopf: "\u{1D552}", apacir: "\u2A6F", ap: "\u2248", apE: "\u2A70", ape: "\u224A", apid: "\u224B", apos: "'", ApplyFunction: "\u2061", approx: "\u2248", approxeq: "\u224A", Aring: "\xC5", aring: "\xE5", Ascr: "\u{1D49C}", ascr: "\u{1D4B6}", Assign: "\u2254", ast: "*", asymp: "\u2248", asympeq: "\u224D", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", awconint: "\u2233", awint: "\u2A11", backcong: "\u224C", backepsilon: "\u03F6", backprime: "\u2035", backsim: "\u223D", backsimeq: "\u22CD", Backslash: "\u2216", Barv: "\u2AE7", barvee: "\u22BD", barwed: "\u2305", Barwed: "\u2306", barwedge: "\u2305", bbrk: "\u23B5", bbrktbrk: "\u23B6", bcong: "\u224C", Bcy: "\u0411", bcy: "\u0431", bdquo: "\u201E", becaus: "\u2235", because: "\u2235", Because: "\u2235", bemptyv: "\u29B0", bepsi: "\u03F6", bernou: "\u212C", Bernoullis: "\u212C", Beta: "\u0392", beta: "\u03B2", beth: "\u2136", between: "\u226C", Bfr: "\u{1D505}", bfr: "\u{1D51F}", bigcap: "\u22C2", bigcirc: "\u25EF", bigcup: "\u22C3", bigodot: "\u2A00", bigoplus: "\u2A01", bigotimes: "\u2A02", bigsqcup: "\u2A06", bigstar: "\u2605", bigtriangledown: "\u25BD", bigtriangleup: "\u25B3", biguplus: "\u2A04", bigvee: "\u22C1", bigwedge: "\u22C0", bkarow: "\u290D", blacklozenge: "\u29EB", blacksquare: "\u25AA", blacktriangle: "\u25B4", blacktriangledown: "\u25BE", blacktriangleleft: "\u25C2", blacktriangleright: "\u25B8", blank: "\u2423", blk12: "\u2592", blk14: "\u2591", blk34: "\u2593", block: "\u2588", bne: "=\u20E5", bnequiv: "\u2261\u20E5", bNot: "\u2AED", bnot: "\u2310", Bopf: "\u{1D539}", bopf: "\u{1D553}", bot: "\u22A5", bottom: "\u22A5", bowtie: "\u22C8", boxbox: "\u29C9", boxdl: "\u2510", boxdL: "\u2555", boxDl: "\u2556", boxDL: "\u2557", boxdr: "\u250C", boxdR: "\u2552", boxDr: "\u2553", boxDR: "\u2554", boxh: "\u2500", boxH: "\u2550", boxhd: "\u252C", boxHd: "\u2564", boxhD: "\u2565", boxHD: "\u2566", boxhu: "\u2534", boxHu: "\u2567", boxhU: "\u2568", boxHU: "\u2569", boxminus: "\u229F", boxplus: "\u229E", boxtimes: "\u22A0", boxul: "\u2518", boxuL: "\u255B", boxUl: "\u255C", boxUL: "\u255D", boxur: "\u2514", boxuR: "\u2558", boxUr: "\u2559", boxUR: "\u255A", boxv: "\u2502", boxV: "\u2551", boxvh: "\u253C", boxvH: "\u256A", boxVh: "\u256B", boxVH: "\u256C", boxvl: "\u2524", boxvL: "\u2561", boxVl: "\u2562", boxVL: "\u2563", boxvr: "\u251C", boxvR: "\u255E", boxVr: "\u255F", boxVR: "\u2560", bprime: "\u2035", breve: "\u02D8", Breve: "\u02D8", brvbar: "\xA6", bscr: "\u{1D4B7}", Bscr: "\u212C", bsemi: "\u204F", bsim: "\u223D", bsime: "\u22CD", bsolb: "\u29C5", bsol: "\\", bsolhsub: "\u27C8", bull: "\u2022", bullet: "\u2022", bump: "\u224E", bumpE: "\u2AAE", bumpe: "\u224F", Bumpeq: "\u224E", bumpeq: "\u224F", Cacute: "\u0106", cacute: "\u0107", capand: "\u2A44", capbrcup: "\u2A49", capcap: "\u2A4B", cap: "\u2229", Cap: "\u22D2", capcup: "\u2A47", capdot: "\u2A40", CapitalDifferentialD: "\u2145", caps: "\u2229\uFE00", caret: "\u2041", caron: "\u02C7", Cayleys: "\u212D", ccaps: "\u2A4D", Ccaron: "\u010C", ccaron: "\u010D", Ccedil: "\xC7", ccedil: "\xE7", Ccirc: "\u0108", ccirc: "\u0109", Cconint: "\u2230", ccups: "\u2A4C", ccupssm: "\u2A50", Cdot: "\u010A", cdot: "\u010B", cedil: "\xB8", Cedilla: "\xB8", cemptyv: "\u29B2", cent: "\xA2", centerdot: "\xB7", CenterDot: "\xB7", cfr: "\u{1D520}", Cfr: "\u212D", CHcy: "\u0427", chcy: "\u0447", check: "\u2713", checkmark: "\u2713", Chi: "\u03A7", chi: "\u03C7", circ: "\u02C6", circeq: "\u2257", circlearrowleft: "\u21BA", circlearrowright: "\u21BB", circledast: "\u229B", circledcirc: "\u229A", circleddash: "\u229D", CircleDot: "\u2299", circledR: "\xAE", circledS: "\u24C8", CircleMinus: "\u2296", CirclePlus: "\u2295", CircleTimes: "\u2297", cir: "\u25CB", cirE: "\u29C3", cire: "\u2257", cirfnint: "\u2A10", cirmid: "\u2AEF", cirscir: "\u29C2", ClockwiseContourIntegral: "\u2232", CloseCurlyDoubleQuote: "\u201D", CloseCurlyQuote: "\u2019", clubs: "\u2663", clubsuit: "\u2663", colon: ":", Colon: "\u2237", Colone: "\u2A74", colone: "\u2254", coloneq: "\u2254", comma: ",", commat: "@", comp: "\u2201", compfn: "\u2218", complement: "\u2201", complexes: "\u2102", cong: "\u2245", congdot: "\u2A6D", Congruent: "\u2261", conint: "\u222E", Conint: "\u222F", ContourIntegral: "\u222E", copf: "\u{1D554}", Copf: "\u2102", coprod: "\u2210", Coproduct: "\u2210", copy: "\xA9", COPY: "\xA9", copysr: "\u2117", CounterClockwiseContourIntegral: "\u2233", crarr: "\u21B5", cross: "\u2717", Cross: "\u2A2F", Cscr: "\u{1D49E}", cscr: "\u{1D4B8}", csub: "\u2ACF", csube: "\u2AD1", csup: "\u2AD0", csupe: "\u2AD2", ctdot: "\u22EF", cudarrl: "\u2938", cudarrr: "\u2935", cuepr: "\u22DE", cuesc: "\u22DF", cularr: "\u21B6", cularrp: "\u293D", cupbrcap: "\u2A48", cupcap: "\u2A46", CupCap: "\u224D", cup: "\u222A", Cup: "\u22D3", cupcup: "\u2A4A", cupdot: "\u228D", cupor: "\u2A45", cups: "\u222A\uFE00", curarr: "\u21B7", curarrm: "\u293C", curlyeqprec: "\u22DE", curlyeqsucc: "\u22DF", curlyvee: "\u22CE", curlywedge: "\u22CF", curren: "\xA4", curvearrowleft: "\u21B6", curvearrowright: "\u21B7", cuvee: "\u22CE", cuwed: "\u22CF", cwconint: "\u2232", cwint: "\u2231", cylcty: "\u232D", dagger: "\u2020", Dagger: "\u2021", daleth: "\u2138", darr: "\u2193", Darr: "\u21A1", dArr: "\u21D3", dash: "\u2010", Dashv: "\u2AE4", dashv: "\u22A3", dbkarow: "\u290F", dblac: "\u02DD", Dcaron: "\u010E", dcaron: "\u010F", Dcy: "\u0414", dcy: "\u0434", ddagger: "\u2021", ddarr: "\u21CA", DD: "\u2145", dd: "\u2146", DDotrahd: "\u2911", ddotseq: "\u2A77", deg: "\xB0", Del: "\u2207", Delta: "\u0394", delta: "\u03B4", demptyv: "\u29B1", dfisht: "\u297F", Dfr: "\u{1D507}", dfr: "\u{1D521}", dHar: "\u2965", dharl: "\u21C3", dharr: "\u21C2", DiacriticalAcute: "\xB4", DiacriticalDot: "\u02D9", DiacriticalDoubleAcute: "\u02DD", DiacriticalGrave: "`", DiacriticalTilde: "\u02DC", diam: "\u22C4", diamond: "\u22C4", Diamond: "\u22C4", diamondsuit: "\u2666", diams: "\u2666", die: "\xA8", DifferentialD: "\u2146", digamma: "\u03DD", disin: "\u22F2", div: "\xF7", divide: "\xF7", divideontimes: "\u22C7", divonx: "\u22C7", DJcy: "\u0402", djcy: "\u0452", dlcorn: "\u231E", dlcrop: "\u230D", dollar: "$", Dopf: "\u{1D53B}", dopf: "\u{1D555}", Dot: "\xA8", dot: "\u02D9", DotDot: "\u20DC", doteq: "\u2250", doteqdot: "\u2251", DotEqual: "\u2250", dotminus: "\u2238", dotplus: "\u2214", dotsquare: "\u22A1", doublebarwedge: "\u2306", DoubleContourIntegral: "\u222F", DoubleDot: "\xA8", DoubleDownArrow: "\u21D3", DoubleLeftArrow: "\u21D0", DoubleLeftRightArrow: "\u21D4", DoubleLeftTee: "\u2AE4", DoubleLongLeftArrow: "\u27F8", DoubleLongLeftRightArrow: "\u27FA", DoubleLongRightArrow: "\u27F9", DoubleRightArrow: "\u21D2", DoubleRightTee: "\u22A8", DoubleUpArrow: "\u21D1", DoubleUpDownArrow: "\u21D5", DoubleVerticalBar: "\u2225", DownArrowBar: "\u2913", downarrow: "\u2193", DownArrow: "\u2193", Downarrow: "\u21D3", DownArrowUpArrow: "\u21F5", DownBreve: "\u0311", downdownarrows: "\u21CA", downharpoonleft: "\u21C3", downharpoonright: "\u21C2", DownLeftRightVector: "\u2950", DownLeftTeeVector: "\u295E", DownLeftVectorBar: "\u2956", DownLeftVector: "\u21BD", DownRightTeeVector: "\u295F", DownRightVectorBar: "\u2957", DownRightVector: "\u21C1", DownTeeArrow: "\u21A7", DownTee: "\u22A4", drbkarow: "\u2910", drcorn: "\u231F", drcrop: "\u230C", Dscr: "\u{1D49F}", dscr: "\u{1D4B9}", DScy: "\u0405", dscy: "\u0455", dsol: "\u29F6", Dstrok: "\u0110", dstrok: "\u0111", dtdot: "\u22F1", dtri: "\u25BF", dtrif: "\u25BE", duarr: "\u21F5", duhar: "\u296F", dwangle: "\u29A6", DZcy: "\u040F", dzcy: "\u045F", dzigrarr: "\u27FF", Eacute: "\xC9", eacute: "\xE9", easter: "\u2A6E", Ecaron: "\u011A", ecaron: "\u011B", Ecirc: "\xCA", ecirc: "\xEA", ecir: "\u2256", ecolon: "\u2255", Ecy: "\u042D", ecy: "\u044D", eDDot: "\u2A77", Edot: "\u0116", edot: "\u0117", eDot: "\u2251", ee: "\u2147", efDot: "\u2252", Efr: "\u{1D508}", efr: "\u{1D522}", eg: "\u2A9A", Egrave: "\xC8", egrave: "\xE8", egs: "\u2A96", egsdot: "\u2A98", el: "\u2A99", Element: "\u2208", elinters: "\u23E7", ell: "\u2113", els: "\u2A95", elsdot: "\u2A97", Emacr: "\u0112", emacr: "\u0113", empty: "\u2205", emptyset: "\u2205", EmptySmallSquare: "\u25FB", emptyv: "\u2205", EmptyVerySmallSquare: "\u25AB", emsp13: "\u2004", emsp14: "\u2005", emsp: "\u2003", ENG: "\u014A", eng: "\u014B", ensp: "\u2002", Eogon: "\u0118", eogon: "\u0119", Eopf: "\u{1D53C}", eopf: "\u{1D556}", epar: "\u22D5", eparsl: "\u29E3", eplus: "\u2A71", epsi: "\u03B5", Epsilon: "\u0395", epsilon: "\u03B5", epsiv: "\u03F5", eqcirc: "\u2256", eqcolon: "\u2255", eqsim: "\u2242", eqslantgtr: "\u2A96", eqslantless: "\u2A95", Equal: "\u2A75", equals: "=", EqualTilde: "\u2242", equest: "\u225F", Equilibrium: "\u21CC", equiv: "\u2261", equivDD: "\u2A78", eqvparsl: "\u29E5", erarr: "\u2971", erDot: "\u2253", escr: "\u212F", Escr: "\u2130", esdot: "\u2250", Esim: "\u2A73", esim: "\u2242", Eta: "\u0397", eta: "\u03B7", ETH: "\xD0", eth: "\xF0", Euml: "\xCB", euml: "\xEB", euro: "\u20AC", excl: "!", exist: "\u2203", Exists: "\u2203", expectation: "\u2130", exponentiale: "\u2147", ExponentialE: "\u2147", fallingdotseq: "\u2252", Fcy: "\u0424", fcy: "\u0444", female: "\u2640", ffilig: "\uFB03", fflig: "\uFB00", ffllig: "\uFB04", Ffr: "\u{1D509}", ffr: "\u{1D523}", filig: "\uFB01", FilledSmallSquare: "\u25FC", FilledVerySmallSquare: "\u25AA", fjlig: "fj", flat: "\u266D", fllig: "\uFB02", fltns: "\u25B1", fnof: "\u0192", Fopf: "\u{1D53D}", fopf: "\u{1D557}", forall: "\u2200", ForAll: "\u2200", fork: "\u22D4", forkv: "\u2AD9", Fouriertrf: "\u2131", fpartint: "\u2A0D", frac12: "\xBD", frac13: "\u2153", frac14: "\xBC", frac15: "\u2155", frac16: "\u2159", frac18: "\u215B", frac23: "\u2154", frac25: "\u2156", frac34: "\xBE", frac35: "\u2157", frac38: "\u215C", frac45: "\u2158", frac56: "\u215A", frac58: "\u215D", frac78: "\u215E", frasl: "\u2044", frown: "\u2322", fscr: "\u{1D4BB}", Fscr: "\u2131", gacute: "\u01F5", Gamma: "\u0393", gamma: "\u03B3", Gammad: "\u03DC", gammad: "\u03DD", gap: "\u2A86", Gbreve: "\u011E", gbreve: "\u011F", Gcedil: "\u0122", Gcirc: "\u011C", gcirc: "\u011D", Gcy: "\u0413", gcy: "\u0433", Gdot: "\u0120", gdot: "\u0121", ge: "\u2265", gE: "\u2267", gEl: "\u2A8C", gel: "\u22DB", geq: "\u2265", geqq: "\u2267", geqslant: "\u2A7E", gescc: "\u2AA9", ges: "\u2A7E", gesdot: "\u2A80", gesdoto: "\u2A82", gesdotol: "\u2A84", gesl: "\u22DB\uFE00", gesles: "\u2A94", Gfr: "\u{1D50A}", gfr: "\u{1D524}", gg: "\u226B", Gg: "\u22D9", ggg: "\u22D9", gimel: "\u2137", GJcy: "\u0403", gjcy: "\u0453", gla: "\u2AA5", gl: "\u2277", glE: "\u2A92", glj: "\u2AA4", gnap: "\u2A8A", gnapprox: "\u2A8A", gne: "\u2A88", gnE: "\u2269", gneq: "\u2A88", gneqq: "\u2269", gnsim: "\u22E7", Gopf: "\u{1D53E}", gopf: "\u{1D558}", grave: "`", GreaterEqual: "\u2265", GreaterEqualLess: "\u22DB", GreaterFullEqual: "\u2267", GreaterGreater: "\u2AA2", GreaterLess: "\u2277", GreaterSlantEqual: "\u2A7E", GreaterTilde: "\u2273", Gscr: "\u{1D4A2}", gscr: "\u210A", gsim: "\u2273", gsime: "\u2A8E", gsiml: "\u2A90", gtcc: "\u2AA7", gtcir: "\u2A7A", gt: ">", GT: ">", Gt: "\u226B", gtdot: "\u22D7", gtlPar: "\u2995", gtquest: "\u2A7C", gtrapprox: "\u2A86", gtrarr: "\u2978", gtrdot: "\u22D7", gtreqless: "\u22DB", gtreqqless: "\u2A8C", gtrless: "\u2277", gtrsim: "\u2273", gvertneqq: "\u2269\uFE00", gvnE: "\u2269\uFE00", Hacek: "\u02C7", hairsp: "\u200A", half: "\xBD", hamilt: "\u210B", HARDcy: "\u042A", hardcy: "\u044A", harrcir: "\u2948", harr: "\u2194", hArr: "\u21D4", harrw: "\u21AD", Hat: "^", hbar: "\u210F", Hcirc: "\u0124", hcirc: "\u0125", hearts: "\u2665", heartsuit: "\u2665", hellip: "\u2026", hercon: "\u22B9", hfr: "\u{1D525}", Hfr: "\u210C", HilbertSpace: "\u210B", hksearow: "\u2925", hkswarow: "\u2926", hoarr: "\u21FF", homtht: "\u223B", hookleftarrow: "\u21A9", hookrightarrow: "\u21AA", hopf: "\u{1D559}", Hopf: "\u210D", horbar: "\u2015", HorizontalLine: "\u2500", hscr: "\u{1D4BD}", Hscr: "\u210B", hslash: "\u210F", Hstrok: "\u0126", hstrok: "\u0127", HumpDownHump: "\u224E", HumpEqual: "\u224F", hybull: "\u2043", hyphen: "\u2010", Iacute: "\xCD", iacute: "\xED", ic: "\u2063", Icirc: "\xCE", icirc: "\xEE", Icy: "\u0418", icy: "\u0438", Idot: "\u0130", IEcy: "\u0415", iecy: "\u0435", iexcl: "\xA1", iff: "\u21D4", ifr: "\u{1D526}", Ifr: "\u2111", Igrave: "\xCC", igrave: "\xEC", ii: "\u2148", iiiint: "\u2A0C", iiint: "\u222D", iinfin: "\u29DC", iiota: "\u2129", IJlig: "\u0132", ijlig: "\u0133", Imacr: "\u012A", imacr: "\u012B", image: "\u2111", ImaginaryI: "\u2148", imagline: "\u2110", imagpart: "\u2111", imath: "\u0131", Im: "\u2111", imof: "\u22B7", imped: "\u01B5", Implies: "\u21D2", incare: "\u2105", in: "\u2208", infin: "\u221E", infintie: "\u29DD", inodot: "\u0131", intcal: "\u22BA", int: "\u222B", Int: "\u222C", integers: "\u2124", Integral: "\u222B", intercal: "\u22BA", Intersection: "\u22C2", intlarhk: "\u2A17", intprod: "\u2A3C", InvisibleComma: "\u2063", InvisibleTimes: "\u2062", IOcy: "\u0401", iocy: "\u0451", Iogon: "\u012E", iogon: "\u012F", Iopf: "\u{1D540}", iopf: "\u{1D55A}", Iota: "\u0399", iota: "\u03B9", iprod: "\u2A3C", iquest: "\xBF", iscr: "\u{1D4BE}", Iscr: "\u2110", isin: "\u2208", isindot: "\u22F5", isinE: "\u22F9", isins: "\u22F4", isinsv: "\u22F3", isinv: "\u2208", it: "\u2062", Itilde: "\u0128", itilde: "\u0129", Iukcy: "\u0406", iukcy: "\u0456", Iuml: "\xCF", iuml: "\xEF", Jcirc: "\u0134", jcirc: "\u0135", Jcy: "\u0419", jcy: "\u0439", Jfr: "\u{1D50D}", jfr: "\u{1D527}", jmath: "\u0237", Jopf: "\u{1D541}", jopf: "\u{1D55B}", Jscr: "\u{1D4A5}", jscr: "\u{1D4BF}", Jsercy: "\u0408", jsercy: "\u0458", Jukcy: "\u0404", jukcy: "\u0454", Kappa: "\u039A", kappa: "\u03BA", kappav: "\u03F0", Kcedil: "\u0136", kcedil: "\u0137", Kcy: "\u041A", kcy: "\u043A", Kfr: "\u{1D50E}", kfr: "\u{1D528}", kgreen: "\u0138", KHcy: "\u0425", khcy: "\u0445", KJcy: "\u040C", kjcy: "\u045C", Kopf: "\u{1D542}", kopf: "\u{1D55C}", Kscr: "\u{1D4A6}", kscr: "\u{1D4C0}", lAarr: "\u21DA", Lacute: "\u0139", lacute: "\u013A", laemptyv: "\u29B4", lagran: "\u2112", Lambda: "\u039B", lambda: "\u03BB", lang: "\u27E8", Lang: "\u27EA", langd: "\u2991", langle: "\u27E8", lap: "\u2A85", Laplacetrf: "\u2112", laquo: "\xAB", larrb: "\u21E4", larrbfs: "\u291F", larr: "\u2190", Larr: "\u219E", lArr: "\u21D0", larrfs: "\u291D", larrhk: "\u21A9", larrlp: "\u21AB", larrpl: "\u2939", larrsim: "\u2973", larrtl: "\u21A2", latail: "\u2919", lAtail: "\u291B", lat: "\u2AAB", late: "\u2AAD", lates: "\u2AAD\uFE00", lbarr: "\u290C", lBarr: "\u290E", lbbrk: "\u2772", lbrace: "{", lbrack: "[", lbrke: "\u298B", lbrksld: "\u298F", lbrkslu: "\u298D", Lcaron: "\u013D", lcaron: "\u013E", Lcedil: "\u013B", lcedil: "\u013C", lceil: "\u2308", lcub: "{", Lcy: "\u041B", lcy: "\u043B", ldca: "\u2936", ldquo: "\u201C", ldquor: "\u201E", ldrdhar: "\u2967", ldrushar: "\u294B", ldsh: "\u21B2", le: "\u2264", lE: "\u2266", LeftAngleBracket: "\u27E8", LeftArrowBar: "\u21E4", leftarrow: "\u2190", LeftArrow: "\u2190", Leftarrow: "\u21D0", LeftArrowRightArrow: "\u21C6", leftarrowtail: "\u21A2", LeftCeiling: "\u2308", LeftDoubleBracket: "\u27E6", LeftDownTeeVector: "\u2961", LeftDownVectorBar: "\u2959", LeftDownVector: "\u21C3", LeftFloor: "\u230A", leftharpoondown: "\u21BD", leftharpoonup: "\u21BC", leftleftarrows: "\u21C7", leftrightarrow: "\u2194", LeftRightArrow: "\u2194", Leftrightarrow: "\u21D4", leftrightarrows: "\u21C6", leftrightharpoons: "\u21CB", leftrightsquigarrow: "\u21AD", LeftRightVector: "\u294E", LeftTeeArrow: "\u21A4", LeftTee: "\u22A3", LeftTeeVector: "\u295A", leftthreetimes: "\u22CB", LeftTriangleBar: "\u29CF", LeftTriangle: "\u22B2", LeftTriangleEqual: "\u22B4", LeftUpDownVector: "\u2951", LeftUpTeeVector: "\u2960", LeftUpVectorBar: "\u2958", LeftUpVector: "\u21BF", LeftVectorBar: "\u2952", LeftVector: "\u21BC", lEg: "\u2A8B", leg: "\u22DA", leq: "\u2264", leqq: "\u2266", leqslant: "\u2A7D", lescc: "\u2AA8", les: "\u2A7D", lesdot: "\u2A7F", lesdoto: "\u2A81", lesdotor: "\u2A83", lesg: "\u22DA\uFE00", lesges: "\u2A93", lessapprox: "\u2A85", lessdot: "\u22D6", lesseqgtr: "\u22DA", lesseqqgtr: "\u2A8B", LessEqualGreater: "\u22DA", LessFullEqual: "\u2266", LessGreater: "\u2276", lessgtr: "\u2276", LessLess: "\u2AA1", lesssim: "\u2272", LessSlantEqual: "\u2A7D", LessTilde: "\u2272", lfisht: "\u297C", lfloor: "\u230A", Lfr: "\u{1D50F}", lfr: "\u{1D529}", lg: "\u2276", lgE: "\u2A91", lHar: "\u2962", lhard: "\u21BD", lharu: "\u21BC", lharul: "\u296A", lhblk: "\u2584", LJcy: "\u0409", ljcy: "\u0459", llarr: "\u21C7", ll: "\u226A", Ll: "\u22D8", llcorner: "\u231E", Lleftarrow: "\u21DA", llhard: "\u296B", lltri: "\u25FA", Lmidot: "\u013F", lmidot: "\u0140", lmoustache: "\u23B0", lmoust: "\u23B0", lnap: "\u2A89", lnapprox: "\u2A89", lne: "\u2A87", lnE: "\u2268", lneq: "\u2A87", lneqq: "\u2268", lnsim: "\u22E6", loang: "\u27EC", loarr: "\u21FD", lobrk: "\u27E6", longleftarrow: "\u27F5", LongLeftArrow: "\u27F5", Longleftarrow: "\u27F8", longleftrightarrow: "\u27F7", LongLeftRightArrow: "\u27F7", Longleftrightarrow: "\u27FA", longmapsto: "\u27FC", longrightarrow: "\u27F6", LongRightArrow: "\u27F6", Longrightarrow: "\u27F9", looparrowleft: "\u21AB", looparrowright: "\u21AC", lopar: "\u2985", Lopf: "\u{1D543}", lopf: "\u{1D55D}", loplus: "\u2A2D", lotimes: "\u2A34", lowast: "\u2217", lowbar: "_", LowerLeftArrow: "\u2199", LowerRightArrow: "\u2198", loz: "\u25CA", lozenge: "\u25CA", lozf: "\u29EB", lpar: "(", lparlt: "\u2993", lrarr: "\u21C6", lrcorner: "\u231F", lrhar: "\u21CB", lrhard: "\u296D", lrm: "\u200E", lrtri: "\u22BF", lsaquo: "\u2039", lscr: "\u{1D4C1}", Lscr: "\u2112", lsh: "\u21B0", Lsh: "\u21B0", lsim: "\u2272", lsime: "\u2A8D", lsimg: "\u2A8F", lsqb: "[", lsquo: "\u2018", lsquor: "\u201A", Lstrok: "\u0141", lstrok: "\u0142", ltcc: "\u2AA6", ltcir: "\u2A79", lt: "<", LT: "<", Lt: "\u226A", ltdot: "\u22D6", lthree: "\u22CB", ltimes: "\u22C9", ltlarr: "\u2976", ltquest: "\u2A7B", ltri: "\u25C3", ltrie: "\u22B4", ltrif: "\u25C2", ltrPar: "\u2996", lurdshar: "\u294A", luruhar: "\u2966", lvertneqq: "\u2268\uFE00", lvnE: "\u2268\uFE00", macr: "\xAF", male: "\u2642", malt: "\u2720", maltese: "\u2720", Map: "\u2905", map: "\u21A6", mapsto: "\u21A6", mapstodown: "\u21A7", mapstoleft: "\u21A4", mapstoup: "\u21A5", marker: "\u25AE", mcomma: "\u2A29", Mcy: "\u041C", mcy: "\u043C", mdash: "\u2014", mDDot: "\u223A", measuredangle: "\u2221", MediumSpace: "\u205F", Mellintrf: "\u2133", Mfr: "\u{1D510}", mfr: "\u{1D52A}", mho: "\u2127", micro: "\xB5", midast: "*", midcir: "\u2AF0", mid: "\u2223", middot: "\xB7", minusb: "\u229F", minus: "\u2212", minusd: "\u2238", minusdu: "\u2A2A", MinusPlus: "\u2213", mlcp: "\u2ADB", mldr: "\u2026", mnplus: "\u2213", models: "\u22A7", Mopf: "\u{1D544}", mopf: "\u{1D55E}", mp: "\u2213", mscr: "\u{1D4C2}", Mscr: "\u2133", mstpos: "\u223E", Mu: "\u039C", mu: "\u03BC", multimap: "\u22B8", mumap: "\u22B8", nabla: "\u2207", Nacute: "\u0143", nacute: "\u0144", nang: "\u2220\u20D2", nap: "\u2249", napE: "\u2A70\u0338", napid: "\u224B\u0338", napos: "\u0149", napprox: "\u2249", natural: "\u266E", naturals: "\u2115", natur: "\u266E", nbsp: "\xA0", nbump: "\u224E\u0338", nbumpe: "\u224F\u0338", ncap: "\u2A43", Ncaron: "\u0147", ncaron: "\u0148", Ncedil: "\u0145", ncedil: "\u0146", ncong: "\u2247", ncongdot: "\u2A6D\u0338", ncup: "\u2A42", Ncy: "\u041D", ncy: "\u043D", ndash: "\u2013", nearhk: "\u2924", nearr: "\u2197", neArr: "\u21D7", nearrow: "\u2197", ne: "\u2260", nedot: "\u2250\u0338", NegativeMediumSpace: "\u200B", NegativeThickSpace: "\u200B", NegativeThinSpace: "\u200B", NegativeVeryThinSpace: "\u200B", nequiv: "\u2262", nesear: "\u2928", nesim: "\u2242\u0338", NestedGreaterGreater: "\u226B", NestedLessLess: "\u226A", NewLine: "\n", nexist: "\u2204", nexists: "\u2204", Nfr: "\u{1D511}", nfr: "\u{1D52B}", ngE: "\u2267\u0338", nge: "\u2271", ngeq: "\u2271", ngeqq: "\u2267\u0338", ngeqslant: "\u2A7E\u0338", nges: "\u2A7E\u0338", nGg: "\u22D9\u0338", ngsim: "\u2275", nGt: "\u226B\u20D2", ngt: "\u226F", ngtr: "\u226F", nGtv: "\u226B\u0338", nharr: "\u21AE", nhArr: "\u21CE", nhpar: "\u2AF2", ni: "\u220B", nis: "\u22FC", nisd: "\u22FA", niv: "\u220B", NJcy: "\u040A", njcy: "\u045A", nlarr: "\u219A", nlArr: "\u21CD", nldr: "\u2025", nlE: "\u2266\u0338", nle: "\u2270", nleftarrow: "\u219A", nLeftarrow: "\u21CD", nleftrightarrow: "\u21AE", nLeftrightarrow: "\u21CE", nleq: "\u2270", nleqq: "\u2266\u0338", nleqslant: "\u2A7D\u0338", nles: "\u2A7D\u0338", nless: "\u226E", nLl: "\u22D8\u0338", nlsim: "\u2274", nLt: "\u226A\u20D2", nlt: "\u226E", nltri: "\u22EA", nltrie: "\u22EC", nLtv: "\u226A\u0338", nmid: "\u2224", NoBreak: "\u2060", NonBreakingSpace: "\xA0", nopf: "\u{1D55F}", Nopf: "\u2115", Not: "\u2AEC", not: "\xAC", NotCongruent: "\u2262", NotCupCap: "\u226D", NotDoubleVerticalBar: "\u2226", NotElement: "\u2209", NotEqual: "\u2260", NotEqualTilde: "\u2242\u0338", NotExists: "\u2204", NotGreater: "\u226F", NotGreaterEqual: "\u2271", NotGreaterFullEqual: "\u2267\u0338", NotGreaterGreater: "\u226B\u0338", NotGreaterLess: "\u2279", NotGreaterSlantEqual: "\u2A7E\u0338", NotGreaterTilde: "\u2275", NotHumpDownHump: "\u224E\u0338", NotHumpEqual: "\u224F\u0338", notin: "\u2209", notindot: "\u22F5\u0338", notinE: "\u22F9\u0338", notinva: "\u2209", notinvb: "\u22F7", notinvc: "\u22F6", NotLeftTriangleBar: "\u29CF\u0338", NotLeftTriangle: "\u22EA", NotLeftTriangleEqual: "\u22EC", NotLess: "\u226E", NotLessEqual: "\u2270", NotLessGreater: "\u2278", NotLessLess: "\u226A\u0338", NotLessSlantEqual: "\u2A7D\u0338", NotLessTilde: "\u2274", NotNestedGreaterGreater: "\u2AA2\u0338", NotNestedLessLess: "\u2AA1\u0338", notni: "\u220C", notniva: "\u220C", notnivb: "\u22FE", notnivc: "\u22FD", NotPrecedes: "\u2280", NotPrecedesEqual: "\u2AAF\u0338", NotPrecedesSlantEqual: "\u22E0", NotReverseElement: "\u220C", NotRightTriangleBar: "\u29D0\u0338", NotRightTriangle: "\u22EB", NotRightTriangleEqual: "\u22ED", NotSquareSubset: "\u228F\u0338", NotSquareSubsetEqual: "\u22E2", NotSquareSuperset: "\u2290\u0338", NotSquareSupersetEqual: "\u22E3", NotSubset: "\u2282\u20D2", NotSubsetEqual: "\u2288", NotSucceeds: "\u2281", NotSucceedsEqual: "\u2AB0\u0338", NotSucceedsSlantEqual: "\u22E1", NotSucceedsTilde: "\u227F\u0338", NotSuperset: "\u2283\u20D2", NotSupersetEqual: "\u2289", NotTilde: "\u2241", NotTildeEqual: "\u2244", NotTildeFullEqual: "\u2247", NotTildeTilde: "\u2249", NotVerticalBar: "\u2224", nparallel: "\u2226", npar: "\u2226", nparsl: "\u2AFD\u20E5", npart: "\u2202\u0338", npolint: "\u2A14", npr: "\u2280", nprcue: "\u22E0", nprec: "\u2280", npreceq: "\u2AAF\u0338", npre: "\u2AAF\u0338", nrarrc: "\u2933\u0338", nrarr: "\u219B", nrArr: "\u21CF", nrarrw: "\u219D\u0338", nrightarrow: "\u219B", nRightarrow: "\u21CF", nrtri: "\u22EB", nrtrie: "\u22ED", nsc: "\u2281", nsccue: "\u22E1", nsce: "\u2AB0\u0338", Nscr: "\u{1D4A9}", nscr: "\u{1D4C3}", nshortmid: "\u2224", nshortparallel: "\u2226", nsim: "\u2241", nsime: "\u2244", nsimeq: "\u2244", nsmid: "\u2224", nspar: "\u2226", nsqsube: "\u22E2", nsqsupe: "\u22E3", nsub: "\u2284", nsubE: "\u2AC5\u0338", nsube: "\u2288", nsubset: "\u2282\u20D2", nsubseteq: "\u2288", nsubseteqq: "\u2AC5\u0338", nsucc: "\u2281", nsucceq: "\u2AB0\u0338", nsup: "\u2285", nsupE: "\u2AC6\u0338", nsupe: "\u2289", nsupset: "\u2283\u20D2", nsupseteq: "\u2289", nsupseteqq: "\u2AC6\u0338", ntgl: "\u2279", Ntilde: "\xD1", ntilde: "\xF1", ntlg: "\u2278", ntriangleleft: "\u22EA", ntrianglelefteq: "\u22EC", ntriangleright: "\u22EB", ntrianglerighteq: "\u22ED", Nu: "\u039D", nu: "\u03BD", num: "#", numero: "\u2116", numsp: "\u2007", nvap: "\u224D\u20D2", nvdash: "\u22AC", nvDash: "\u22AD", nVdash: "\u22AE", nVDash: "\u22AF", nvge: "\u2265\u20D2", nvgt: ">\u20D2", nvHarr: "\u2904", nvinfin: "\u29DE", nvlArr: "\u2902", nvle: "\u2264\u20D2", nvlt: "<\u20D2", nvltrie: "\u22B4\u20D2", nvrArr: "\u2903", nvrtrie: "\u22B5\u20D2", nvsim: "\u223C\u20D2", nwarhk: "\u2923", nwarr: "\u2196", nwArr: "\u21D6", nwarrow: "\u2196", nwnear: "\u2927", Oacute: "\xD3", oacute: "\xF3", oast: "\u229B", Ocirc: "\xD4", ocirc: "\xF4", ocir: "\u229A", Ocy: "\u041E", ocy: "\u043E", odash: "\u229D", Odblac: "\u0150", odblac: "\u0151", odiv: "\u2A38", odot: "\u2299", odsold: "\u29BC", OElig: "\u0152", oelig: "\u0153", ofcir: "\u29BF", Ofr: "\u{1D512}", ofr: "\u{1D52C}", ogon: "\u02DB", Ograve: "\xD2", ograve: "\xF2", ogt: "\u29C1", ohbar: "\u29B5", ohm: "\u03A9", oint: "\u222E", olarr: "\u21BA", olcir: "\u29BE", olcross: "\u29BB", oline: "\u203E", olt: "\u29C0", Omacr: "\u014C", omacr: "\u014D", Omega: "\u03A9", omega: "\u03C9", Omicron: "\u039F", omicron: "\u03BF", omid: "\u29B6", ominus: "\u2296", Oopf: "\u{1D546}", oopf: "\u{1D560}", opar: "\u29B7", OpenCurlyDoubleQuote: "\u201C", OpenCurlyQuote: "\u2018", operp: "\u29B9", oplus: "\u2295", orarr: "\u21BB", Or: "\u2A54", or: "\u2228", ord: "\u2A5D", order: "\u2134", orderof: "\u2134", ordf: "\xAA", ordm: "\xBA", origof: "\u22B6", oror: "\u2A56", orslope: "\u2A57", orv: "\u2A5B", oS: "\u24C8", Oscr: "\u{1D4AA}", oscr: "\u2134", Oslash: "\xD8", oslash: "\xF8", osol: "\u2298", Otilde: "\xD5", otilde: "\xF5", otimesas: "\u2A36", Otimes: "\u2A37", otimes: "\u2297", Ouml: "\xD6", ouml: "\xF6", ovbar: "\u233D", OverBar: "\u203E", OverBrace: "\u23DE", OverBracket: "\u23B4", OverParenthesis: "\u23DC", para: "\xB6", parallel: "\u2225", par: "\u2225", parsim: "\u2AF3", parsl: "\u2AFD", part: "\u2202", PartialD: "\u2202", Pcy: "\u041F", pcy: "\u043F", percnt: "%", period: ".", permil: "\u2030", perp: "\u22A5", pertenk: "\u2031", Pfr: "\u{1D513}", pfr: "\u{1D52D}", Phi: "\u03A6", phi: "\u03C6", phiv: "\u03D5", phmmat: "\u2133", phone: "\u260E", Pi: "\u03A0", pi: "\u03C0", pitchfork: "\u22D4", piv: "\u03D6", planck: "\u210F", planckh: "\u210E", plankv: "\u210F", plusacir: "\u2A23", plusb: "\u229E", pluscir: "\u2A22", plus: "+", plusdo: "\u2214", plusdu: "\u2A25", pluse: "\u2A72", PlusMinus: "\xB1", plusmn: "\xB1", plussim: "\u2A26", plustwo: "\u2A27", pm: "\xB1", Poincareplane: "\u210C", pointint: "\u2A15", popf: "\u{1D561}", Popf: "\u2119", pound: "\xA3", prap: "\u2AB7", Pr: "\u2ABB", pr: "\u227A", prcue: "\u227C", precapprox: "\u2AB7", prec: "\u227A", preccurlyeq: "\u227C", Precedes: "\u227A", PrecedesEqual: "\u2AAF", PrecedesSlantEqual: "\u227C", PrecedesTilde: "\u227E", preceq: "\u2AAF", precnapprox: "\u2AB9", precneqq: "\u2AB5", precnsim: "\u22E8", pre: "\u2AAF", prE: "\u2AB3", precsim: "\u227E", prime: "\u2032", Prime: "\u2033", primes: "\u2119", prnap: "\u2AB9", prnE: "\u2AB5", prnsim: "\u22E8", prod: "\u220F", Product: "\u220F", profalar: "\u232E", profline: "\u2312", profsurf: "\u2313", prop: "\u221D", Proportional: "\u221D", Proportion: "\u2237", propto: "\u221D", prsim: "\u227E", prurel: "\u22B0", Pscr: "\u{1D4AB}", pscr: "\u{1D4C5}", Psi: "\u03A8", psi: "\u03C8", puncsp: "\u2008", Qfr: "\u{1D514}", qfr: "\u{1D52E}", qint: "\u2A0C", qopf: "\u{1D562}", Qopf: "\u211A", qprime: "\u2057", Qscr: "\u{1D4AC}", qscr: "\u{1D4C6}", quaternions: "\u210D", quatint: "\u2A16", quest: "?", questeq: "\u225F", quot: '"', QUOT: '"', rAarr: "\u21DB", race: "\u223D\u0331", Racute: "\u0154", racute: "\u0155", radic: "\u221A", raemptyv: "\u29B3", rang: "\u27E9", Rang: "\u27EB", rangd: "\u2992", range: "\u29A5", rangle: "\u27E9", raquo: "\xBB", rarrap: "\u2975", rarrb: "\u21E5", rarrbfs: "\u2920", rarrc: "\u2933", rarr: "\u2192", Rarr: "\u21A0", rArr: "\u21D2", rarrfs: "\u291E", rarrhk: "\u21AA", rarrlp: "\u21AC", rarrpl: "\u2945", rarrsim: "\u2974", Rarrtl: "\u2916", rarrtl: "\u21A3", rarrw: "\u219D", ratail: "\u291A", rAtail: "\u291C", ratio: "\u2236", rationals: "\u211A", rbarr: "\u290D", rBarr: "\u290F", RBarr: "\u2910", rbbrk: "\u2773", rbrace: "}", rbrack: "]", rbrke: "\u298C", rbrksld: "\u298E", rbrkslu: "\u2990", Rcaron: "\u0158", rcaron: "\u0159", Rcedil: "\u0156", rcedil: "\u0157", rceil: "\u2309", rcub: "}", Rcy: "\u0420", rcy: "\u0440", rdca: "\u2937", rdldhar: "\u2969", rdquo: "\u201D", rdquor: "\u201D", rdsh: "\u21B3", real: "\u211C", realine: "\u211B", realpart: "\u211C", reals: "\u211D", Re: "\u211C", rect: "\u25AD", reg: "\xAE", REG: "\xAE", ReverseElement: "\u220B", ReverseEquilibrium: "\u21CB", ReverseUpEquilibrium: "\u296F", rfisht: "\u297D", rfloor: "\u230B", rfr: "\u{1D52F}", Rfr: "\u211C", rHar: "\u2964", rhard: "\u21C1", rharu: "\u21C0", rharul: "\u296C", Rho: "\u03A1", rho: "\u03C1", rhov: "\u03F1", RightAngleBracket: "\u27E9", RightArrowBar: "\u21E5", rightarrow: "\u2192", RightArrow: "\u2192", Rightarrow: "\u21D2", RightArrowLeftArrow: "\u21C4", rightarrowtail: "\u21A3", RightCeiling: "\u2309", RightDoubleBracket: "\u27E7", RightDownTeeVector: "\u295D", RightDownVectorBar: "\u2955", RightDownVector: "\u21C2", RightFloor: "\u230B", rightharpoondown: "\u21C1", rightharpoonup: "\u21C0", rightleftarrows: "\u21C4", rightleftharpoons: "\u21CC", rightrightarrows: "\u21C9", rightsquigarrow: "\u219D", RightTeeArrow: "\u21A6", RightTee: "\u22A2", RightTeeVector: "\u295B", rightthreetimes: "\u22CC", RightTriangleBar: "\u29D0", RightTriangle: "\u22B3", RightTriangleEqual: "\u22B5", RightUpDownVector: "\u294F", RightUpTeeVector: "\u295C", RightUpVectorBar: "\u2954", RightUpVector: "\u21BE", RightVectorBar: "\u2953", RightVector: "\u21C0", ring: "\u02DA", risingdotseq: "\u2253", rlarr: "\u21C4", rlhar: "\u21CC", rlm: "\u200F", rmoustache: "\u23B1", rmoust: "\u23B1", rnmid: "\u2AEE", roang: "\u27ED", roarr: "\u21FE", robrk: "\u27E7", ropar: "\u2986", ropf: "\u{1D563}", Ropf: "\u211D", roplus: "\u2A2E", rotimes: "\u2A35", RoundImplies: "\u2970", rpar: ")", rpargt: "\u2994", rppolint: "\u2A12", rrarr: "\u21C9", Rrightarrow: "\u21DB", rsaquo: "\u203A", rscr: "\u{1D4C7}", Rscr: "\u211B", rsh: "\u21B1", Rsh: "\u21B1", rsqb: "]", rsquo: "\u2019", rsquor: "\u2019", rthree: "\u22CC", rtimes: "\u22CA", rtri: "\u25B9", rtrie: "\u22B5", rtrif: "\u25B8", rtriltri: "\u29CE", RuleDelayed: "\u29F4", ruluhar: "\u2968", rx: "\u211E", Sacute: "\u015A", sacute: "\u015B", sbquo: "\u201A", scap: "\u2AB8", Scaron: "\u0160", scaron: "\u0161", Sc: "\u2ABC", sc: "\u227B", sccue: "\u227D", sce: "\u2AB0", scE: "\u2AB4", Scedil: "\u015E", scedil: "\u015F", Scirc: "\u015C", scirc: "\u015D", scnap: "\u2ABA", scnE: "\u2AB6", scnsim: "\u22E9", scpolint: "\u2A13", scsim: "\u227F", Scy: "\u0421", scy: "\u0441", sdotb: "\u22A1", sdot: "\u22C5", sdote: "\u2A66", searhk: "\u2925", searr: "\u2198", seArr: "\u21D8", searrow: "\u2198", sect: "\xA7", semi: ";", seswar: "\u2929", setminus: "\u2216", setmn: "\u2216", sext: "\u2736", Sfr: "\u{1D516}", sfr: "\u{1D530}", sfrown: "\u2322", sharp: "\u266F", SHCHcy: "\u0429", shchcy: "\u0449", SHcy: "\u0428", shcy: "\u0448", ShortDownArrow: "\u2193", ShortLeftArrow: "\u2190", shortmid: "\u2223", shortparallel: "\u2225", ShortRightArrow: "\u2192", ShortUpArrow: "\u2191", shy: "\xAD", Sigma: "\u03A3", sigma: "\u03C3", sigmaf: "\u03C2", sigmav: "\u03C2", sim: "\u223C", simdot: "\u2A6A", sime: "\u2243", simeq: "\u2243", simg: "\u2A9E", simgE: "\u2AA0", siml: "\u2A9D", simlE: "\u2A9F", simne: "\u2246", simplus: "\u2A24", simrarr: "\u2972", slarr: "\u2190", SmallCircle: "\u2218", smallsetminus: "\u2216", smashp: "\u2A33", smeparsl: "\u29E4", smid: "\u2223", smile: "\u2323", smt: "\u2AAA", smte: "\u2AAC", smtes: "\u2AAC\uFE00", SOFTcy: "\u042C", softcy: "\u044C", solbar: "\u233F", solb: "\u29C4", sol: "/", Sopf: "\u{1D54A}", sopf: "\u{1D564}", spades: "\u2660", spadesuit: "\u2660", spar: "\u2225", sqcap: "\u2293", sqcaps: "\u2293\uFE00", sqcup: "\u2294", sqcups: "\u2294\uFE00", Sqrt: "\u221A", sqsub: "\u228F", sqsube: "\u2291", sqsubset: "\u228F", sqsubseteq: "\u2291", sqsup: "\u2290", sqsupe: "\u2292", sqsupset: "\u2290", sqsupseteq: "\u2292", square: "\u25A1", Square: "\u25A1", SquareIntersection: "\u2293", SquareSubset: "\u228F", SquareSubsetEqual: "\u2291", SquareSuperset: "\u2290", SquareSupersetEqual: "\u2292", SquareUnion: "\u2294", squarf: "\u25AA", squ: "\u25A1", squf: "\u25AA", srarr: "\u2192", Sscr: "\u{1D4AE}", sscr: "\u{1D4C8}", ssetmn: "\u2216", ssmile: "\u2323", sstarf: "\u22C6", Star: "\u22C6", star: "\u2606", starf: "\u2605", straightepsilon: "\u03F5", straightphi: "\u03D5", strns: "\xAF", sub: "\u2282", Sub: "\u22D0", subdot: "\u2ABD", subE: "\u2AC5", sube: "\u2286", subedot: "\u2AC3", submult: "\u2AC1", subnE: "\u2ACB", subne: "\u228A", subplus: "\u2ABF", subrarr: "\u2979", subset: "\u2282", Subset: "\u22D0", subseteq: "\u2286", subseteqq: "\u2AC5", SubsetEqual: "\u2286", subsetneq: "\u228A", subsetneqq: "\u2ACB", subsim: "\u2AC7", subsub: "\u2AD5", subsup: "\u2AD3", succapprox: "\u2AB8", succ: "\u227B", succcurlyeq: "\u227D", Succeeds: "\u227B", SucceedsEqual: "\u2AB0", SucceedsSlantEqual: "\u227D", SucceedsTilde: "\u227F", succeq: "\u2AB0", succnapprox: "\u2ABA", succneqq: "\u2AB6", succnsim: "\u22E9", succsim: "\u227F", SuchThat: "\u220B", sum: "\u2211", Sum: "\u2211", sung: "\u266A", sup1: "\xB9", sup2: "\xB2", sup3: "\xB3", sup: "\u2283", Sup: "\u22D1", supdot: "\u2ABE", supdsub: "\u2AD8", supE: "\u2AC6", supe: "\u2287", supedot: "\u2AC4", Superset: "\u2283", SupersetEqual: "\u2287", suphsol: "\u27C9", suphsub: "\u2AD7", suplarr: "\u297B", supmult: "\u2AC2", supnE: "\u2ACC", supne: "\u228B", supplus: "\u2AC0", supset: "\u2283", Supset: "\u22D1", supseteq: "\u2287", supseteqq: "\u2AC6", supsetneq: "\u228B", supsetneqq: "\u2ACC", supsim: "\u2AC8", supsub: "\u2AD4", supsup: "\u2AD6", swarhk: "\u2926", swarr: "\u2199", swArr: "\u21D9", swarrow: "\u2199", swnwar: "\u292A", szlig: "\xDF", Tab: " ", target: "\u2316", Tau: "\u03A4", tau: "\u03C4", tbrk: "\u23B4", Tcaron: "\u0164", tcaron: "\u0165", Tcedil: "\u0162", tcedil: "\u0163", Tcy: "\u0422", tcy: "\u0442", tdot: "\u20DB", telrec: "\u2315", Tfr: "\u{1D517}", tfr: "\u{1D531}", there4: "\u2234", therefore: "\u2234", Therefore: "\u2234", Theta: "\u0398", theta: "\u03B8", thetasym: "\u03D1", thetav: "\u03D1", thickapprox: "\u2248", thicksim: "\u223C", ThickSpace: "\u205F\u200A", ThinSpace: "\u2009", thinsp: "\u2009", thkap: "\u2248", thksim: "\u223C", THORN: "\xDE", thorn: "\xFE", tilde: "\u02DC", Tilde: "\u223C", TildeEqual: "\u2243", TildeFullEqual: "\u2245", TildeTilde: "\u2248", timesbar: "\u2A31", timesb: "\u22A0", times: "\xD7", timesd: "\u2A30", tint: "\u222D", toea: "\u2928", topbot: "\u2336", topcir: "\u2AF1", top: "\u22A4", Topf: "\u{1D54B}", topf: "\u{1D565}", topfork: "\u2ADA", tosa: "\u2929", tprime: "\u2034", trade: "\u2122", TRADE: "\u2122", triangle: "\u25B5", triangledown: "\u25BF", triangleleft: "\u25C3", trianglelefteq: "\u22B4", triangleq: "\u225C", triangleright: "\u25B9", trianglerighteq: "\u22B5", tridot: "\u25EC", trie: "\u225C", triminus: "\u2A3A", TripleDot: "\u20DB", triplus: "\u2A39", trisb: "\u29CD", tritime: "\u2A3B", trpezium: "\u23E2", Tscr: "\u{1D4AF}", tscr: "\u{1D4C9}", TScy: "\u0426", tscy: "\u0446", TSHcy: "\u040B", tshcy: "\u045B", Tstrok: "\u0166", tstrok: "\u0167", twixt: "\u226C", twoheadleftarrow: "\u219E", twoheadrightarrow: "\u21A0", Uacute: "\xDA", uacute: "\xFA", uarr: "\u2191", Uarr: "\u219F", uArr: "\u21D1", Uarrocir: "\u2949", Ubrcy: "\u040E", ubrcy: "\u045E", Ubreve: "\u016C", ubreve: "\u016D", Ucirc: "\xDB", ucirc: "\xFB", Ucy: "\u0423", ucy: "\u0443", udarr: "\u21C5", Udblac: "\u0170", udblac: "\u0171", udhar: "\u296E", ufisht: "\u297E", Ufr: "\u{1D518}", ufr: "\u{1D532}", Ugrave: "\xD9", ugrave: "\xF9", uHar: "\u2963", uharl: "\u21BF", uharr: "\u21BE", uhblk: "\u2580", ulcorn: "\u231C", ulcorner: "\u231C", ulcrop: "\u230F", ultri: "\u25F8", Umacr: "\u016A", umacr: "\u016B", uml: "\xA8", UnderBar: "_", UnderBrace: "\u23DF", UnderBracket: "\u23B5", UnderParenthesis: "\u23DD", Union: "\u22C3", UnionPlus: "\u228E", Uogon: "\u0172", uogon: "\u0173", Uopf: "\u{1D54C}", uopf: "\u{1D566}", UpArrowBar: "\u2912", uparrow: "\u2191", UpArrow: "\u2191", Uparrow: "\u21D1", UpArrowDownArrow: "\u21C5", updownarrow: "\u2195", UpDownArrow: "\u2195", Updownarrow: "\u21D5", UpEquilibrium: "\u296E", upharpoonleft: "\u21BF", upharpoonright: "\u21BE", uplus: "\u228E", UpperLeftArrow: "\u2196", UpperRightArrow: "\u2197", upsi: "\u03C5", Upsi: "\u03D2", upsih: "\u03D2", Upsilon: "\u03A5", upsilon: "\u03C5", UpTeeArrow: "\u21A5", UpTee: "\u22A5", upuparrows: "\u21C8", urcorn: "\u231D", urcorner: "\u231D", urcrop: "\u230E", Uring: "\u016E", uring: "\u016F", urtri: "\u25F9", Uscr: "\u{1D4B0}", uscr: "\u{1D4CA}", utdot: "\u22F0", Utilde: "\u0168", utilde: "\u0169", utri: "\u25B5", utrif: "\u25B4", uuarr: "\u21C8", Uuml: "\xDC", uuml: "\xFC", uwangle: "\u29A7", vangrt: "\u299C", varepsilon: "\u03F5", varkappa: "\u03F0", varnothing: "\u2205", varphi: "\u03D5", varpi: "\u03D6", varpropto: "\u221D", varr: "\u2195", vArr: "\u21D5", varrho: "\u03F1", varsigma: "\u03C2", varsubsetneq: "\u228A\uFE00", varsubsetneqq: "\u2ACB\uFE00", varsupsetneq: "\u228B\uFE00", varsupsetneqq: "\u2ACC\uFE00", vartheta: "\u03D1", vartriangleleft: "\u22B2", vartriangleright: "\u22B3", vBar: "\u2AE8", Vbar: "\u2AEB", vBarv: "\u2AE9", Vcy: "\u0412", vcy: "\u0432", vdash: "\u22A2", vDash: "\u22A8", Vdash: "\u22A9", VDash: "\u22AB", Vdashl: "\u2AE6", veebar: "\u22BB", vee: "\u2228", Vee: "\u22C1", veeeq: "\u225A", vellip: "\u22EE", verbar: "|", Verbar: "\u2016", vert: "|", Vert: "\u2016", VerticalBar: "\u2223", VerticalLine: "|", VerticalSeparator: "\u2758", VerticalTilde: "\u2240", VeryThinSpace: "\u200A", Vfr: "\u{1D519}", vfr: "\u{1D533}", vltri: "\u22B2", vnsub: "\u2282\u20D2", vnsup: "\u2283\u20D2", Vopf: "\u{1D54D}", vopf: "\u{1D567}", vprop: "\u221D", vrtri: "\u22B3", Vscr: "\u{1D4B1}", vscr: "\u{1D4CB}", vsubnE: "\u2ACB\uFE00", vsubne: "\u228A\uFE00", vsupnE: "\u2ACC\uFE00", vsupne: "\u228B\uFE00", Vvdash: "\u22AA", vzigzag: "\u299A", Wcirc: "\u0174", wcirc: "\u0175", wedbar: "\u2A5F", wedge: "\u2227", Wedge: "\u22C0", wedgeq: "\u2259", weierp: "\u2118", Wfr: "\u{1D51A}", wfr: "\u{1D534}", Wopf: "\u{1D54E}", wopf: "\u{1D568}", wp: "\u2118", wr: "\u2240", wreath: "\u2240", Wscr: "\u{1D4B2}", wscr: "\u{1D4CC}", xcap: "\u22C2", xcirc: "\u25EF", xcup: "\u22C3", xdtri: "\u25BD", Xfr: "\u{1D51B}", xfr: "\u{1D535}", xharr: "\u27F7", xhArr: "\u27FA", Xi: "\u039E", xi: "\u03BE", xlarr: "\u27F5", xlArr: "\u27F8", xmap: "\u27FC", xnis: "\u22FB", xodot: "\u2A00", Xopf: "\u{1D54F}", xopf: "\u{1D569}", xoplus: "\u2A01", xotime: "\u2A02", xrarr: "\u27F6", xrArr: "\u27F9", Xscr: "\u{1D4B3}", xscr: "\u{1D4CD}", xsqcup: "\u2A06", xuplus: "\u2A04", xutri: "\u25B3", xvee: "\u22C1", xwedge: "\u22C0", Yacute: "\xDD", yacute: "\xFD", YAcy: "\u042F", yacy: "\u044F", Ycirc: "\u0176", ycirc: "\u0177", Ycy: "\u042B", ycy: "\u044B", yen: "\xA5", Yfr: "\u{1D51C}", yfr: "\u{1D536}", YIcy: "\u0407", yicy: "\u0457", Yopf: "\u{1D550}", yopf: "\u{1D56A}", Yscr: "\u{1D4B4}", yscr: "\u{1D4CE}", YUcy: "\u042E", yucy: "\u044E", yuml: "\xFF", Yuml: "\u0178", Zacute: "\u0179", zacute: "\u017A", Zcaron: "\u017D", zcaron: "\u017E", Zcy: "\u0417", zcy: "\u0437", Zdot: "\u017B", zdot: "\u017C", zeetrf: "\u2128", ZeroWidthSpace: "\u200B", Zeta: "\u0396", zeta: "\u03B6", zfr: "\u{1D537}", Zfr: "\u2128", ZHcy: "\u0416", zhcy: "\u0436", zigrarr: "\u21DD", zopf: "\u{1D56B}", Zopf: "\u2124", Zscr: "\u{1D4B5}", zscr: "\u{1D4CF}", zwj: "\u200D", zwnj: "\u200C" }; + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/legacy.json +var require_legacy = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/legacy.json"(exports, module2) { + module2.exports = { Aacute: "\xC1", aacute: "\xE1", Acirc: "\xC2", acirc: "\xE2", acute: "\xB4", AElig: "\xC6", aelig: "\xE6", Agrave: "\xC0", agrave: "\xE0", amp: "&", AMP: "&", Aring: "\xC5", aring: "\xE5", Atilde: "\xC3", atilde: "\xE3", Auml: "\xC4", auml: "\xE4", brvbar: "\xA6", Ccedil: "\xC7", ccedil: "\xE7", cedil: "\xB8", cent: "\xA2", copy: "\xA9", COPY: "\xA9", curren: "\xA4", deg: "\xB0", divide: "\xF7", Eacute: "\xC9", eacute: "\xE9", Ecirc: "\xCA", ecirc: "\xEA", Egrave: "\xC8", egrave: "\xE8", ETH: "\xD0", eth: "\xF0", Euml: "\xCB", euml: "\xEB", frac12: "\xBD", frac14: "\xBC", frac34: "\xBE", gt: ">", GT: ">", Iacute: "\xCD", iacute: "\xED", Icirc: "\xCE", icirc: "\xEE", iexcl: "\xA1", Igrave: "\xCC", igrave: "\xEC", iquest: "\xBF", Iuml: "\xCF", iuml: "\xEF", laquo: "\xAB", lt: "<", LT: "<", macr: "\xAF", micro: "\xB5", middot: "\xB7", nbsp: "\xA0", not: "\xAC", Ntilde: "\xD1", ntilde: "\xF1", Oacute: "\xD3", oacute: "\xF3", Ocirc: "\xD4", ocirc: "\xF4", Ograve: "\xD2", ograve: "\xF2", ordf: "\xAA", ordm: "\xBA", Oslash: "\xD8", oslash: "\xF8", Otilde: "\xD5", otilde: "\xF5", Ouml: "\xD6", ouml: "\xF6", para: "\xB6", plusmn: "\xB1", pound: "\xA3", quot: '"', QUOT: '"', raquo: "\xBB", reg: "\xAE", REG: "\xAE", sect: "\xA7", shy: "\xAD", sup1: "\xB9", sup2: "\xB2", sup3: "\xB3", szlig: "\xDF", THORN: "\xDE", thorn: "\xFE", times: "\xD7", Uacute: "\xDA", uacute: "\xFA", Ucirc: "\xDB", ucirc: "\xFB", Ugrave: "\xD9", ugrave: "\xF9", uml: "\xA8", Uuml: "\xDC", uuml: "\xFC", Yacute: "\xDD", yacute: "\xFD", yen: "\xA5", yuml: "\xFF" }; + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/xml.json +var require_xml = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/xml.json"(exports, module2) { + module2.exports = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' }; + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/decode.json +var require_decode = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/maps/decode.json"(exports, module2) { + module2.exports = { "0": 65533, "128": 8364, "130": 8218, "131": 402, "132": 8222, "133": 8230, "134": 8224, "135": 8225, "136": 710, "137": 8240, "138": 352, "139": 8249, "140": 338, "142": 381, "145": 8216, "146": 8217, "147": 8220, "148": 8221, "149": 8226, "150": 8211, "151": 8212, "152": 732, "153": 8482, "154": 353, "155": 8250, "156": 339, "158": 382, "159": 376 }; + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/decode_codepoint.js +var require_decode_codepoint = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/decode_codepoint.js"(exports) { + "use strict"; + var __importDefault = exports && exports.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + var decode_json_1 = __importDefault(require_decode()); + var fromCodePoint = String.fromCodePoint || function(codePoint) { + var output = ""; + if (codePoint > 65535) { + codePoint -= 65536; + output += String.fromCharCode(codePoint >>> 10 & 1023 | 55296); + codePoint = 56320 | codePoint & 1023; + } + output += String.fromCharCode(codePoint); + return output; + }; + function decodeCodePoint(codePoint) { + if (codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111) { + return "\uFFFD"; + } + if (codePoint in decode_json_1.default) { + codePoint = decode_json_1.default[codePoint]; + } + return fromCodePoint(codePoint); + } + exports.default = decodeCodePoint; + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/decode.js +var require_decode2 = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/decode.js"(exports) { + "use strict"; + var __importDefault = exports && exports.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.decodeHTML = exports.decodeHTMLStrict = exports.decodeXML = void 0; + var entities_json_1 = __importDefault(require_entities()); + var legacy_json_1 = __importDefault(require_legacy()); + var xml_json_1 = __importDefault(require_xml()); + var decode_codepoint_1 = __importDefault(require_decode_codepoint()); + var strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g; + exports.decodeXML = getStrictDecoder(xml_json_1.default); + exports.decodeHTMLStrict = getStrictDecoder(entities_json_1.default); + function getStrictDecoder(map) { + var replace = getReplacer(map); + return function(str) { + return String(str).replace(strictEntityRe, replace); + }; + } + var sorter = function(a, b) { + return a < b ? 1 : -1; + }; + exports.decodeHTML = function() { + var legacy = Object.keys(legacy_json_1.default).sort(sorter); + var keys = Object.keys(entities_json_1.default).sort(sorter); + for (var i = 0, j = 0; i < keys.length; i++) { + if (legacy[j] === keys[i]) { + keys[i] += ";?"; + j++; + } else { + keys[i] += ";"; + } + } + var re = new RegExp("&(?:" + keys.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g"); + var replace = getReplacer(entities_json_1.default); + function replacer(str) { + if (str.substr(-1) !== ";") + str += ";"; + return replace(str); + } + return function(str) { + return String(str).replace(re, replacer); + }; + }(); + function getReplacer(map) { + return function replace(str) { + if (str.charAt(1) === "#") { + var secondChar = str.charAt(2); + if (secondChar === "X" || secondChar === "x") { + return decode_codepoint_1.default(parseInt(str.substr(3), 16)); + } + return decode_codepoint_1.default(parseInt(str.substr(2), 10)); + } + return map[str.slice(1, -1)] || str; + }; + } + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/encode.js +var require_encode = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/encode.js"(exports) { + "use strict"; + var __importDefault = exports && exports.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = void 0; + var xml_json_1 = __importDefault(require_xml()); + var inverseXML = getInverseObj(xml_json_1.default); + var xmlReplacer = getInverseReplacer(inverseXML); + exports.encodeXML = getASCIIEncoder(inverseXML); + var entities_json_1 = __importDefault(require_entities()); + var inverseHTML = getInverseObj(entities_json_1.default); + var htmlReplacer = getInverseReplacer(inverseHTML); + exports.encodeHTML = getInverse(inverseHTML, htmlReplacer); + exports.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML); + function getInverseObj(obj) { + return Object.keys(obj).sort().reduce(function(inverse, name) { + inverse[obj[name]] = "&" + name + ";"; + return inverse; + }, {}); + } + function getInverseReplacer(inverse) { + var single = []; + var multiple = []; + for (var _i = 0, _a = Object.keys(inverse); _i < _a.length; _i++) { + var k = _a[_i]; + if (k.length === 1) { + single.push("\\" + k); + } else { + multiple.push(k); + } + } + single.sort(); + for (var start = 0; start < single.length - 1; start++) { + var end = start; + while (end < single.length - 1 && single[end].charCodeAt(1) + 1 === single[end + 1].charCodeAt(1)) { + end += 1; + } + var count = 1 + end - start; + if (count < 3) + continue; + single.splice(start, count, single[start] + "-" + single[end]); + } + multiple.unshift("[" + single.join("") + "]"); + return new RegExp(multiple.join("|"), "g"); + } + var reNonASCII = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g; + var getCodePoint = String.prototype.codePointAt != null ? function(str) { + return str.codePointAt(0); + } : function(c) { + return (c.charCodeAt(0) - 55296) * 1024 + c.charCodeAt(1) - 56320 + 65536; + }; + function singleCharReplacer(c) { + return "&#x" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)).toString(16).toUpperCase() + ";"; + } + function getInverse(inverse, re) { + return function(data) { + return data.replace(re, function(name) { + return inverse[name]; + }).replace(reNonASCII, singleCharReplacer); + }; + } + var reEscapeChars = new RegExp(xmlReplacer.source + "|" + reNonASCII.source, "g"); + function escape(data) { + return data.replace(reEscapeChars, singleCharReplacer); + } + exports.escape = escape; + function escapeUTF8(data) { + return data.replace(xmlReplacer, singleCharReplacer); + } + exports.escapeUTF8 = escapeUTF8; + function getASCIIEncoder(obj) { + return function(data) { + return data.replace(reEscapeChars, function(c) { + return obj[c] || singleCharReplacer(c); + }); + }; + } + } +}); + +// node_modules/@aws-sdk/client-sts/node_modules/entities/lib/index.js +var require_lib3 = __commonJS({ + "node_modules/@aws-sdk/client-sts/node_modules/entities/lib/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.encodeHTML5 = exports.encodeHTML4 = exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = void 0; + var decode_1 = require_decode2(); + var encode_1 = require_encode(); + function decode(data, level) { + return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(data); + } + exports.decode = decode; + function decodeStrict(data, level) { + return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data); + } + exports.decodeStrict = decodeStrict; + function encode(data, level) { + return (!level || level <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(data); + } + exports.encode = encode; + var encode_2 = require_encode(); + Object.defineProperty(exports, "encodeXML", { enumerable: true, get: function() { + return encode_2.encodeXML; + } }); + Object.defineProperty(exports, "encodeHTML", { enumerable: true, get: function() { + return encode_2.encodeHTML; + } }); + Object.defineProperty(exports, "encodeNonAsciiHTML", { enumerable: true, get: function() { + return encode_2.encodeNonAsciiHTML; + } }); + Object.defineProperty(exports, "escape", { enumerable: true, get: function() { + return encode_2.escape; + } }); + Object.defineProperty(exports, "escapeUTF8", { enumerable: true, get: function() { + return encode_2.escapeUTF8; + } }); + Object.defineProperty(exports, "encodeHTML4", { enumerable: true, get: function() { + return encode_2.encodeHTML; + } }); + Object.defineProperty(exports, "encodeHTML5", { enumerable: true, get: function() { + return encode_2.encodeHTML; + } }); + var decode_2 = require_decode2(); + Object.defineProperty(exports, "decodeXML", { enumerable: true, get: function() { + return decode_2.decodeXML; + } }); + Object.defineProperty(exports, "decodeHTML", { enumerable: true, get: function() { + return decode_2.decodeHTML; + } }); + Object.defineProperty(exports, "decodeHTMLStrict", { enumerable: true, get: function() { + return decode_2.decodeHTMLStrict; + } }); + Object.defineProperty(exports, "decodeHTML4", { enumerable: true, get: function() { + return decode_2.decodeHTML; + } }); + Object.defineProperty(exports, "decodeHTML5", { enumerable: true, get: function() { + return decode_2.decodeHTML; + } }); + Object.defineProperty(exports, "decodeHTML4Strict", { enumerable: true, get: function() { + return decode_2.decodeHTMLStrict; + } }); + Object.defineProperty(exports, "decodeHTML5Strict", { enumerable: true, get: function() { + return decode_2.decodeHTMLStrict; + } }); + Object.defineProperty(exports, "decodeXMLStrict", { enumerable: true, get: function() { + return decode_2.decodeXML; + } }); + } +}); + +// node_modules/fast-xml-parser/src/util.js +var require_util = __commonJS({ + "node_modules/fast-xml-parser/src/util.js"(exports) { + "use strict"; + var nameStartChar = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"; + var nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040"; + var nameRegexp = "[" + nameStartChar + "][" + nameChar + "]*"; + var regexName = new RegExp("^" + nameRegexp + "$"); + var getAllMatches = function(string, regex) { + const matches = []; + let match = regex.exec(string); + while (match) { + const allmatches = []; + const len = match.length; + for (let index = 0; index < len; index++) { + allmatches.push(match[index]); + } + matches.push(allmatches); + match = regex.exec(string); + } + return matches; + }; + var isName = function(string) { + const match = regexName.exec(string); + return !(match === null || typeof match === "undefined"); + }; + exports.isExist = function(v) { + return typeof v !== "undefined"; + }; + exports.isEmptyObject = function(obj) { + return Object.keys(obj).length === 0; + }; + exports.merge = function(target, a, arrayMode) { + if (a) { + const keys = Object.keys(a); + const len = keys.length; + for (let i = 0; i < len; i++) { + if (arrayMode === "strict") { + target[keys[i]] = [a[keys[i]]]; + } else { + target[keys[i]] = a[keys[i]]; + } + } + } + }; + exports.getValue = function(v) { + if (exports.isExist(v)) { + return v; + } else { + return ""; + } + }; + exports.buildOptions = function(options, defaultOptions, props) { + var newOptions = {}; + if (!options) { + return defaultOptions; + } + for (let i = 0; i < props.length; i++) { + if (options[props[i]] !== void 0) { + newOptions[props[i]] = options[props[i]]; + } else { + newOptions[props[i]] = defaultOptions[props[i]]; + } + } + return newOptions; + }; + exports.isTagNameInArrayMode = function(tagName, arrayMode, parentTagName) { + if (arrayMode === false) { + return false; + } else if (arrayMode instanceof RegExp) { + return arrayMode.test(tagName); + } else if (typeof arrayMode === "function") { + return !!arrayMode(tagName, parentTagName); + } + return arrayMode === "strict"; + }; + exports.isName = isName; + exports.getAllMatches = getAllMatches; + exports.nameRegexp = nameRegexp; + } +}); + +// node_modules/fast-xml-parser/src/node2json.js +var require_node2json = __commonJS({ + "node_modules/fast-xml-parser/src/node2json.js"(exports) { + "use strict"; + var util = require_util(); + var convertToJson = function(node, options, parentTagName) { + const jObj = {}; + if ((!node.child || util.isEmptyObject(node.child)) && (!node.attrsMap || util.isEmptyObject(node.attrsMap))) { + return util.isExist(node.val) ? node.val : ""; + } + if (util.isExist(node.val) && !(typeof node.val === "string" && (node.val === "" || node.val === options.cdataPositionChar))) { + const asArray = util.isTagNameInArrayMode(node.tagname, options.arrayMode, parentTagName); + jObj[options.textNodeName] = asArray ? [node.val] : node.val; + } + util.merge(jObj, node.attrsMap, options.arrayMode); + const keys = Object.keys(node.child); + for (let index = 0; index < keys.length; index++) { + const tagName = keys[index]; + if (node.child[tagName] && node.child[tagName].length > 1) { + jObj[tagName] = []; + for (let tag in node.child[tagName]) { + if (node.child[tagName].hasOwnProperty(tag)) { + jObj[tagName].push(convertToJson(node.child[tagName][tag], options, tagName)); + } + } + } else { + const result = convertToJson(node.child[tagName][0], options, tagName); + const asArray = options.arrayMode === true && typeof result === "object" || util.isTagNameInArrayMode(tagName, options.arrayMode, parentTagName); + jObj[tagName] = asArray ? [result] : result; + } + } + return jObj; + }; + exports.convertToJson = convertToJson; + } +}); + +// node_modules/fast-xml-parser/src/xmlNode.js +var require_xmlNode = __commonJS({ + "node_modules/fast-xml-parser/src/xmlNode.js"(exports, module2) { + "use strict"; + module2.exports = function(tagname, parent, val) { + this.tagname = tagname; + this.parent = parent; + this.child = {}; + this.attrsMap = {}; + this.val = val; + this.addChild = function(child) { + if (Array.isArray(this.child[child.tagname])) { + this.child[child.tagname].push(child); + } else { + this.child[child.tagname] = [child]; + } + }; + }; + } +}); + +// node_modules/fast-xml-parser/src/xmlstr2xmlnode.js +var require_xmlstr2xmlnode = __commonJS({ + "node_modules/fast-xml-parser/src/xmlstr2xmlnode.js"(exports) { + "use strict"; + var util = require_util(); + var buildOptions = require_util().buildOptions; + var xmlNode = require_xmlNode(); + var regx = "<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g, util.nameRegexp); + if (!Number.parseInt && window.parseInt) { + Number.parseInt = window.parseInt; + } + if (!Number.parseFloat && window.parseFloat) { + Number.parseFloat = window.parseFloat; + } + var defaultOptions = { + attributeNamePrefix: "@_", + attrNodeName: false, + textNodeName: "#text", + ignoreAttributes: true, + ignoreNameSpace: false, + allowBooleanAttributes: false, + parseNodeValue: true, + parseAttributeValue: false, + arrayMode: false, + trimValues: true, + cdataTagName: false, + cdataPositionChar: "\\c", + tagValueProcessor: function(a, tagName) { + return a; + }, + attrValueProcessor: function(a, attrName) { + return a; + }, + stopNodes: [] + }; + exports.defaultOptions = defaultOptions; + var props = [ + "attributeNamePrefix", + "attrNodeName", + "textNodeName", + "ignoreAttributes", + "ignoreNameSpace", + "allowBooleanAttributes", + "parseNodeValue", + "parseAttributeValue", + "arrayMode", + "trimValues", + "cdataTagName", + "cdataPositionChar", + "tagValueProcessor", + "attrValueProcessor", + "parseTrueNumberOnly", + "stopNodes" + ]; + exports.props = props; + function processTagValue(tagName, val, options) { + if (val) { + if (options.trimValues) { + val = val.trim(); + } + val = options.tagValueProcessor(val, tagName); + val = parseValue(val, options.parseNodeValue, options.parseTrueNumberOnly); + } + return val; + } + function resolveNameSpace(tagname, options) { + if (options.ignoreNameSpace) { + const tags = tagname.split(":"); + const prefix = tagname.charAt(0) === "/" ? "/" : ""; + if (tags[0] === "xmlns") { + return ""; + } + if (tags.length === 2) { + tagname = prefix + tags[1]; + } + } + return tagname; + } + function parseValue(val, shouldParse, parseTrueNumberOnly) { + if (shouldParse && typeof val === "string") { + let parsed; + if (val.trim() === "" || isNaN(val)) { + parsed = val === "true" ? true : val === "false" ? false : val; + } else { + if (val.indexOf("0x") !== -1) { + parsed = Number.parseInt(val, 16); + } else if (val.indexOf(".") !== -1) { + parsed = Number.parseFloat(val); + val = val.replace(/\.?0+$/, ""); + } else { + parsed = Number.parseInt(val, 10); + } + if (parseTrueNumberOnly) { + parsed = String(parsed) === val ? parsed : val; + } + } + return parsed; + } else { + if (util.isExist(val)) { + return val; + } else { + return ""; + } + } + } + var attrsRegx = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`, "g"); + function buildAttributesMap(attrStr, options) { + if (!options.ignoreAttributes && typeof attrStr === "string") { + attrStr = attrStr.replace(/\r?\n/g, " "); + const matches = util.getAllMatches(attrStr, attrsRegx); + const len = matches.length; + const attrs = {}; + for (let i = 0; i < len; i++) { + const attrName = resolveNameSpace(matches[i][1], options); + if (attrName.length) { + if (matches[i][4] !== void 0) { + if (options.trimValues) { + matches[i][4] = matches[i][4].trim(); + } + matches[i][4] = options.attrValueProcessor(matches[i][4], attrName); + attrs[options.attributeNamePrefix + attrName] = parseValue( + matches[i][4], + options.parseAttributeValue, + options.parseTrueNumberOnly + ); + } else if (options.allowBooleanAttributes) { + attrs[options.attributeNamePrefix + attrName] = true; + } + } + } + if (!Object.keys(attrs).length) { + return; + } + if (options.attrNodeName) { + const attrCollection = {}; + attrCollection[options.attrNodeName] = attrs; + return attrCollection; + } + return attrs; + } + } + var getTraversalObj = function(xmlData, options) { + xmlData = xmlData.replace(/\r\n?/g, "\n"); + options = buildOptions(options, defaultOptions, props); + const xmlObj = new xmlNode("!xml"); + let currentNode = xmlObj; + let textData = ""; + for (let i = 0; i < xmlData.length; i++) { + const ch = xmlData[i]; + if (ch === "<") { + if (xmlData[i + 1] === "/") { + const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed."); + let tagName = xmlData.substring(i + 2, closeIndex).trim(); + if (options.ignoreNameSpace) { + const colonIndex = tagName.indexOf(":"); + if (colonIndex !== -1) { + tagName = tagName.substr(colonIndex + 1); + } + } + if (currentNode) { + if (currentNode.val) { + currentNode.val = util.getValue(currentNode.val) + "" + processTagValue(tagName, textData, options); + } else { + currentNode.val = processTagValue(tagName, textData, options); + } + } + if (options.stopNodes.length && options.stopNodes.includes(currentNode.tagname)) { + currentNode.child = []; + if (currentNode.attrsMap == void 0) { + currentNode.attrsMap = {}; + } + currentNode.val = xmlData.substr(currentNode.startIndex + 1, i - currentNode.startIndex - 1); + } + currentNode = currentNode.parent; + textData = ""; + i = closeIndex; + } else if (xmlData[i + 1] === "?") { + i = findClosingIndex(xmlData, "?>", i, "Pi Tag is not closed."); + } else if (xmlData.substr(i + 1, 3) === "!--") { + i = findClosingIndex(xmlData, "-->", i, "Comment is not closed."); + } else if (xmlData.substr(i + 1, 2) === "!D") { + const closeIndex = findClosingIndex(xmlData, ">", i, "DOCTYPE is not closed."); + const tagExp = xmlData.substring(i, closeIndex); + if (tagExp.indexOf("[") >= 0) { + i = xmlData.indexOf("]>", i) + 1; + } else { + i = closeIndex; + } + } else if (xmlData.substr(i + 1, 2) === "![") { + const closeIndex = findClosingIndex(xmlData, "]]>", i, "CDATA is not closed.") - 2; + const tagExp = xmlData.substring(i + 9, closeIndex); + if (textData) { + currentNode.val = util.getValue(currentNode.val) + "" + processTagValue(currentNode.tagname, textData, options); + textData = ""; + } + if (options.cdataTagName) { + const childNode = new xmlNode(options.cdataTagName, currentNode, tagExp); + currentNode.addChild(childNode); + currentNode.val = util.getValue(currentNode.val) + options.cdataPositionChar; + if (tagExp) { + childNode.val = tagExp; + } + } else { + currentNode.val = (currentNode.val || "") + (tagExp || ""); + } + i = closeIndex + 2; + } else { + const result = closingIndexForOpeningTag(xmlData, i + 1); + let tagExp = result.data; + const closeIndex = result.index; + const separatorIndex = tagExp.indexOf(" "); + let tagName = tagExp; + let shouldBuildAttributesMap = true; + if (separatorIndex !== -1) { + tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, ""); + tagExp = tagExp.substr(separatorIndex + 1); + } + if (options.ignoreNameSpace) { + const colonIndex = tagName.indexOf(":"); + if (colonIndex !== -1) { + tagName = tagName.substr(colonIndex + 1); + shouldBuildAttributesMap = tagName !== result.data.substr(colonIndex + 1); + } + } + if (currentNode && textData) { + if (currentNode.tagname !== "!xml") { + currentNode.val = util.getValue(currentNode.val) + "" + processTagValue(currentNode.tagname, textData, options); + } + } + if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) { + if (tagName[tagName.length - 1] === "/") { + tagName = tagName.substr(0, tagName.length - 1); + tagExp = tagName; + } else { + tagExp = tagExp.substr(0, tagExp.length - 1); + } + const childNode = new xmlNode(tagName, currentNode, ""); + if (tagName !== tagExp) { + childNode.attrsMap = buildAttributesMap(tagExp, options); + } + currentNode.addChild(childNode); + } else { + const childNode = new xmlNode(tagName, currentNode); + if (options.stopNodes.length && options.stopNodes.includes(childNode.tagname)) { + childNode.startIndex = closeIndex; + } + if (tagName !== tagExp && shouldBuildAttributesMap) { + childNode.attrsMap = buildAttributesMap(tagExp, options); + } + currentNode.addChild(childNode); + currentNode = childNode; + } + textData = ""; + i = closeIndex; + } + } else { + textData += xmlData[i]; + } + } + return xmlObj; + }; + function closingIndexForOpeningTag(data, i) { + let attrBoundary; + let tagExp = ""; + for (let index = i; index < data.length; index++) { + let ch = data[index]; + if (attrBoundary) { + if (ch === attrBoundary) + attrBoundary = ""; + } else if (ch === '"' || ch === "'") { + attrBoundary = ch; + } else if (ch === ">") { + return { + data: tagExp, + index + }; + } else if (ch === " ") { + ch = " "; + } + tagExp += ch; + } + } + function findClosingIndex(xmlData, str, i, errMsg) { + const closingIndex = xmlData.indexOf(str, i); + if (closingIndex === -1) { + throw new Error(errMsg); + } else { + return closingIndex + str.length - 1; + } + } + exports.getTraversalObj = getTraversalObj; + } +}); + +// node_modules/fast-xml-parser/src/validator.js +var require_validator = __commonJS({ + "node_modules/fast-xml-parser/src/validator.js"(exports) { + "use strict"; + var util = require_util(); + var defaultOptions = { + allowBooleanAttributes: false + }; + var props = ["allowBooleanAttributes"]; + exports.validate = function(xmlData, options) { + options = util.buildOptions(options, defaultOptions, props); + const tags = []; + let tagFound = false; + let reachedRoot = false; + if (xmlData[0] === "\uFEFF") { + xmlData = xmlData.substr(1); + } + for (let i = 0; i < xmlData.length; i++) { + if (xmlData[i] === "<" && xmlData[i + 1] === "?") { + i += 2; + i = readPI(xmlData, i); + if (i.err) + return i; + } else if (xmlData[i] === "<") { + i++; + if (xmlData[i] === "!") { + i = readCommentAndCDATA(xmlData, i); + continue; + } else { + let closingTag = false; + if (xmlData[i] === "/") { + closingTag = true; + i++; + } + let tagName = ""; + for (; i < xmlData.length && xmlData[i] !== ">" && xmlData[i] !== " " && xmlData[i] !== " " && xmlData[i] !== "\n" && xmlData[i] !== "\r"; i++) { + tagName += xmlData[i]; + } + tagName = tagName.trim(); + if (tagName[tagName.length - 1] === "/") { + tagName = tagName.substring(0, tagName.length - 1); + i--; + } + if (!validateTagName(tagName)) { + let msg; + if (tagName.trim().length === 0) { + msg = "There is an unnecessary space between tag name and backward slash ' 0) { + return getErrorObject("InvalidTag", "Closing tag '" + tagName + "' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, i)); + } else { + const otg = tags.pop(); + if (tagName !== otg) { + return getErrorObject("InvalidTag", "Closing tag '" + otg + "' is expected inplace of '" + tagName + "'.", getLineNumberForPosition(xmlData, i)); + } + if (tags.length == 0) { + reachedRoot = true; + } + } + } else { + const isValid = validateAttributeString(attrStr, options); + if (isValid !== true) { + return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line)); + } + if (reachedRoot === true) { + return getErrorObject("InvalidXml", "Multiple possible root nodes found.", getLineNumberForPosition(xmlData, i)); + } else { + tags.push(tagName); + } + tagFound = true; + } + for (i++; i < xmlData.length; i++) { + if (xmlData[i] === "<") { + if (xmlData[i + 1] === "!") { + i++; + i = readCommentAndCDATA(xmlData, i); + continue; + } else if (xmlData[i + 1] === "?") { + i = readPI(xmlData, ++i); + if (i.err) + return i; + } else { + break; + } + } else if (xmlData[i] === "&") { + const afterAmp = validateAmpersand(xmlData, i); + if (afterAmp == -1) + return getErrorObject("InvalidChar", "char '&' is not expected.", getLineNumberForPosition(xmlData, i)); + i = afterAmp; + } + } + if (xmlData[i] === "<") { + i--; + } + } + } else { + if (xmlData[i] === " " || xmlData[i] === " " || xmlData[i] === "\n" || xmlData[i] === "\r") { + continue; + } + return getErrorObject("InvalidChar", "char '" + xmlData[i] + "' is not expected.", getLineNumberForPosition(xmlData, i)); + } + } + if (!tagFound) { + return getErrorObject("InvalidXml", "Start tag expected.", 1); + } else if (tags.length > 0) { + return getErrorObject("InvalidXml", "Invalid '" + JSON.stringify(tags, null, 4).replace(/\r?\n/g, "") + "' found.", 1); + } + return true; + }; + function readPI(xmlData, i) { + var start = i; + for (; i < xmlData.length; i++) { + if (xmlData[i] == "?" || xmlData[i] == " ") { + var tagname = xmlData.substr(start, i - start); + if (i > 5 && tagname === "xml") { + return getErrorObject("InvalidXml", "XML declaration allowed only at the start of the document.", getLineNumberForPosition(xmlData, i)); + } else if (xmlData[i] == "?" && xmlData[i + 1] == ">") { + i++; + break; + } else { + continue; + } + } + } + return i; + } + function readCommentAndCDATA(xmlData, i) { + if (xmlData.length > i + 5 && xmlData[i + 1] === "-" && xmlData[i + 2] === "-") { + for (i += 3; i < xmlData.length; i++) { + if (xmlData[i] === "-" && xmlData[i + 1] === "-" && xmlData[i + 2] === ">") { + i += 2; + break; + } + } + } else if (xmlData.length > i + 8 && xmlData[i + 1] === "D" && xmlData[i + 2] === "O" && xmlData[i + 3] === "C" && xmlData[i + 4] === "T" && xmlData[i + 5] === "Y" && xmlData[i + 6] === "P" && xmlData[i + 7] === "E") { + let angleBracketsCount = 1; + for (i += 8; i < xmlData.length; i++) { + if (xmlData[i] === "<") { + angleBracketsCount++; + } else if (xmlData[i] === ">") { + angleBracketsCount--; + if (angleBracketsCount === 0) { + break; + } + } + } + } else if (xmlData.length > i + 9 && xmlData[i + 1] === "[" && xmlData[i + 2] === "C" && xmlData[i + 3] === "D" && xmlData[i + 4] === "A" && xmlData[i + 5] === "T" && xmlData[i + 6] === "A" && xmlData[i + 7] === "[") { + for (i += 8; i < xmlData.length; i++) { + if (xmlData[i] === "]" && xmlData[i + 1] === "]" && xmlData[i + 2] === ">") { + i += 2; + break; + } + } + } + return i; + } + var doubleQuote = '"'; + var singleQuote = "'"; + function readAttributeStr(xmlData, i) { + let attrStr = ""; + let startChar = ""; + let tagClosed = false; + for (; i < xmlData.length; i++) { + if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) { + if (startChar === "") { + startChar = xmlData[i]; + } else if (startChar !== xmlData[i]) { + continue; + } else { + startChar = ""; + } + } else if (xmlData[i] === ">") { + if (startChar === "") { + tagClosed = true; + break; + } + } + attrStr += xmlData[i]; + } + if (startChar !== "") { + return false; + } + return { + value: attrStr, + index: i, + tagClosed + }; + } + var validAttrStrRegxp = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g"); + function validateAttributeString(attrStr, options) { + const matches = util.getAllMatches(attrStr, validAttrStrRegxp); + const attrNames = {}; + for (let i = 0; i < matches.length; i++) { + if (matches[i][1].length === 0) { + return getErrorObject("InvalidAttr", "Attribute '" + matches[i][2] + "' has no space in starting.", getPositionFromMatch(attrStr, matches[i][0])); + } else if (matches[i][3] === void 0 && !options.allowBooleanAttributes) { + return getErrorObject("InvalidAttr", "boolean attribute '" + matches[i][2] + "' is not allowed.", getPositionFromMatch(attrStr, matches[i][0])); + } + const attrName = matches[i][2]; + if (!validateAttrName(attrName)) { + return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is an invalid name.", getPositionFromMatch(attrStr, matches[i][0])); + } + if (!attrNames.hasOwnProperty(attrName)) { + attrNames[attrName] = 1; + } else { + return getErrorObject("InvalidAttr", "Attribute '" + attrName + "' is repeated.", getPositionFromMatch(attrStr, matches[i][0])); + } + } + return true; + } + function validateNumberAmpersand(xmlData, i) { + let re = /\d/; + if (xmlData[i] === "x") { + i++; + re = /[\da-fA-F]/; + } + for (; i < xmlData.length; i++) { + if (xmlData[i] === ";") + return i; + if (!xmlData[i].match(re)) + break; + } + return -1; + } + function validateAmpersand(xmlData, i) { + i++; + if (xmlData[i] === ";") + return -1; + if (xmlData[i] === "#") { + i++; + return validateNumberAmpersand(xmlData, i); + } + let count = 0; + for (; i < xmlData.length; i++, count++) { + if (xmlData[i].match(/\w/) && count < 20) + continue; + if (xmlData[i] === ";") + break; + return -1; + } + return i; + } + function getErrorObject(code, message, lineNumber) { + return { + err: { + code, + msg: message, + line: lineNumber + } + }; + } + function validateAttrName(attrName) { + return util.isName(attrName); + } + function validateTagName(tagname) { + return util.isName(tagname); + } + function getLineNumberForPosition(xmlData, index) { + var lines = xmlData.substring(0, index).split(/\r?\n/); + return lines.length; + } + function getPositionFromMatch(attrStr, match) { + return attrStr.indexOf(match) + match.length; + } + } +}); + +// node_modules/fast-xml-parser/src/nimndata.js +var require_nimndata = __commonJS({ + "node_modules/fast-xml-parser/src/nimndata.js"(exports) { + "use strict"; + var char = function(a) { + return String.fromCharCode(a); + }; + var chars = { + nilChar: char(176), + missingChar: char(201), + nilPremitive: char(175), + missingPremitive: char(200), + emptyChar: char(178), + emptyValue: char(177), + boundryChar: char(179), + objStart: char(198), + arrStart: char(204), + arrayEnd: char(185) + }; + var charsArr = [ + chars.nilChar, + chars.nilPremitive, + chars.missingChar, + chars.missingPremitive, + chars.boundryChar, + chars.emptyChar, + chars.emptyValue, + chars.arrayEnd, + chars.objStart, + chars.arrStart + ]; + var _e = function(node, e_schema, options) { + if (typeof e_schema === "string") { + if (node && node[0] && node[0].val !== void 0) { + return getValue(node[0].val, e_schema); + } else { + return getValue(node, e_schema); + } + } else { + const hasValidData = hasData(node); + if (hasValidData === true) { + let str = ""; + if (Array.isArray(e_schema)) { + str += chars.arrStart; + const itemSchema = e_schema[0]; + const arr_len = node.length; + if (typeof itemSchema === "string") { + for (let arr_i = 0; arr_i < arr_len; arr_i++) { + const r = getValue(node[arr_i].val, itemSchema); + str = processValue(str, r); + } + } else { + for (let arr_i = 0; arr_i < arr_len; arr_i++) { + const r = _e(node[arr_i], itemSchema, options); + str = processValue(str, r); + } + } + str += chars.arrayEnd; + } else { + str += chars.objStart; + const keys = Object.keys(e_schema); + if (Array.isArray(node)) { + node = node[0]; + } + for (let i in keys) { + const key = keys[i]; + let r; + if (!options.ignoreAttributes && node.attrsMap && node.attrsMap[key]) { + r = _e(node.attrsMap[key], e_schema[key], options); + } else if (key === options.textNodeName) { + r = _e(node.val, e_schema[key], options); + } else { + r = _e(node.child[key], e_schema[key], options); + } + str = processValue(str, r); + } + } + return str; + } else { + return hasValidData; + } + } + }; + var getValue = function(a) { + switch (a) { + case void 0: + return chars.missingPremitive; + case null: + return chars.nilPremitive; + case "": + return chars.emptyValue; + default: + return a; + } + }; + var processValue = function(str, r) { + if (!isAppChar(r[0]) && !isAppChar(str[str.length - 1])) { + str += chars.boundryChar; + } + return str + r; + }; + var isAppChar = function(ch) { + return charsArr.indexOf(ch) !== -1; + }; + function hasData(jObj) { + if (jObj === void 0) { + return chars.missingChar; + } else if (jObj === null) { + return chars.nilChar; + } else if (jObj.child && Object.keys(jObj.child).length === 0 && (!jObj.attrsMap || Object.keys(jObj.attrsMap).length === 0)) { + return chars.emptyChar; + } else { + return true; + } + } + var x2j = require_xmlstr2xmlnode(); + var buildOptions = require_util().buildOptions; + var convert2nimn = function(node, e_schema, options) { + options = buildOptions(options, x2j.defaultOptions, x2j.props); + return _e(node, e_schema, options); + }; + exports.convert2nimn = convert2nimn; + } +}); + +// node_modules/fast-xml-parser/src/node2json_str.js +var require_node2json_str = __commonJS({ + "node_modules/fast-xml-parser/src/node2json_str.js"(exports) { + "use strict"; + var util = require_util(); + var buildOptions = require_util().buildOptions; + var x2j = require_xmlstr2xmlnode(); + var convertToJsonString = function(node, options) { + options = buildOptions(options, x2j.defaultOptions, x2j.props); + options.indentBy = options.indentBy || ""; + return _cToJsonStr(node, options, 0); + }; + var _cToJsonStr = function(node, options, level) { + let jObj = "{"; + const keys = Object.keys(node.child); + for (let index = 0; index < keys.length; index++) { + var tagname = keys[index]; + if (node.child[tagname] && node.child[tagname].length > 1) { + jObj += '"' + tagname + '" : [ '; + for (var tag in node.child[tagname]) { + jObj += _cToJsonStr(node.child[tagname][tag], options) + " , "; + } + jObj = jObj.substr(0, jObj.length - 1) + " ] "; + } else { + jObj += '"' + tagname + '" : ' + _cToJsonStr(node.child[tagname][0], options) + " ,"; + } + } + util.merge(jObj, node.attrsMap); + if (util.isEmptyObject(jObj)) { + return util.isExist(node.val) ? node.val : ""; + } else { + if (util.isExist(node.val)) { + if (!(typeof node.val === "string" && (node.val === "" || node.val === options.cdataPositionChar))) { + jObj += '"' + options.textNodeName + '" : ' + stringval(node.val); + } + } + } + if (jObj[jObj.length - 1] === ",") { + jObj = jObj.substr(0, jObj.length - 2); + } + return jObj + "}"; + }; + function stringval(v) { + if (v === true || v === false || !isNaN(v)) { + return v; + } else { + return '"' + v + '"'; + } + } + exports.convertToJsonString = convertToJsonString; + } +}); + +// node_modules/fast-xml-parser/src/json2xml.js +var require_json2xml = __commonJS({ + "node_modules/fast-xml-parser/src/json2xml.js"(exports, module2) { + "use strict"; + var buildOptions = require_util().buildOptions; + var defaultOptions = { + attributeNamePrefix: "@_", + attrNodeName: false, + textNodeName: "#text", + ignoreAttributes: true, + cdataTagName: false, + cdataPositionChar: "\\c", + format: false, + indentBy: " ", + supressEmptyNode: false, + tagValueProcessor: function(a) { + return a; + }, + attrValueProcessor: function(a) { + return a; + } + }; + var props = [ + "attributeNamePrefix", + "attrNodeName", + "textNodeName", + "ignoreAttributes", + "cdataTagName", + "cdataPositionChar", + "format", + "indentBy", + "supressEmptyNode", + "tagValueProcessor", + "attrValueProcessor" + ]; + function Parser(options) { + this.options = buildOptions(options, defaultOptions, props); + if (this.options.ignoreAttributes || this.options.attrNodeName) { + this.isAttribute = function() { + return false; + }; + } else { + this.attrPrefixLen = this.options.attributeNamePrefix.length; + this.isAttribute = isAttribute; + } + if (this.options.cdataTagName) { + this.isCDATA = isCDATA; + } else { + this.isCDATA = function() { + return false; + }; + } + this.replaceCDATAstr = replaceCDATAstr; + this.replaceCDATAarr = replaceCDATAarr; + if (this.options.format) { + this.indentate = indentate; + this.tagEndChar = ">\n"; + this.newLine = "\n"; + } else { + this.indentate = function() { + return ""; + }; + this.tagEndChar = ">"; + this.newLine = ""; + } + if (this.options.supressEmptyNode) { + this.buildTextNode = buildEmptyTextNode; + this.buildObjNode = buildEmptyObjNode; + } else { + this.buildTextNode = buildTextValNode; + this.buildObjNode = buildObjectNode; + } + this.buildTextValNode = buildTextValNode; + this.buildObjectNode = buildObjectNode; + } + Parser.prototype.parse = function(jObj) { + return this.j2x(jObj, 0).val; + }; + Parser.prototype.j2x = function(jObj, level) { + let attrStr = ""; + let val = ""; + const keys = Object.keys(jObj); + const len = keys.length; + for (let i = 0; i < len; i++) { + const key = keys[i]; + if (typeof jObj[key] === "undefined") { + } else if (jObj[key] === null) { + val += this.indentate(level) + "<" + key + "/" + this.tagEndChar; + } else if (jObj[key] instanceof Date) { + val += this.buildTextNode(jObj[key], key, "", level); + } else if (typeof jObj[key] !== "object") { + const attr = this.isAttribute(key); + if (attr) { + attrStr += " " + attr + '="' + this.options.attrValueProcessor("" + jObj[key]) + '"'; + } else if (this.isCDATA(key)) { + if (jObj[this.options.textNodeName]) { + val += this.replaceCDATAstr(jObj[this.options.textNodeName], jObj[key]); + } else { + val += this.replaceCDATAstr("", jObj[key]); + } + } else { + if (key === this.options.textNodeName) { + if (jObj[this.options.cdataTagName]) { + } else { + val += this.options.tagValueProcessor("" + jObj[key]); + } + } else { + val += this.buildTextNode(jObj[key], key, "", level); + } + } + } else if (Array.isArray(jObj[key])) { + if (this.isCDATA(key)) { + val += this.indentate(level); + if (jObj[this.options.textNodeName]) { + val += this.replaceCDATAarr(jObj[this.options.textNodeName], jObj[key]); + } else { + val += this.replaceCDATAarr("", jObj[key]); + } + } else { + const arrLen = jObj[key].length; + for (let j = 0; j < arrLen; j++) { + const item = jObj[key][j]; + if (typeof item === "undefined") { + } else if (item === null) { + val += this.indentate(level) + "<" + key + "/" + this.tagEndChar; + } else if (typeof item === "object") { + const result = this.j2x(item, level + 1); + val += this.buildObjNode(result.val, key, result.attrStr, level); + } else { + val += this.buildTextNode(item, key, "", level); + } + } + } + } else { + if (this.options.attrNodeName && key === this.options.attrNodeName) { + const Ks = Object.keys(jObj[key]); + const L = Ks.length; + for (let j = 0; j < L; j++) { + attrStr += " " + Ks[j] + '="' + this.options.attrValueProcessor("" + jObj[key][Ks[j]]) + '"'; + } + } else { + const result = this.j2x(jObj[key], level + 1); + val += this.buildObjNode(result.val, key, result.attrStr, level); + } + } + } + return { attrStr, val }; + }; + function replaceCDATAstr(str, cdata) { + str = this.options.tagValueProcessor("" + str); + if (this.options.cdataPositionChar === "" || str === "") { + return str + ""); + } + return str + this.newLine; + } + } + function buildObjectNode(val, key, attrStr, level) { + if (attrStr && !val.includes("<")) { + return this.indentate(level) + "<" + key + attrStr + ">" + val + "" + this.options.tagValueProcessor(val) + " { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryAssumeRoleRequest(input, context), + Action: "AssumeRole", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryAssumeRoleCommand = serializeAws_queryAssumeRoleCommand; + var serializeAws_queryAssumeRoleWithSAMLCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryAssumeRoleWithSAMLRequest(input, context), + Action: "AssumeRoleWithSAML", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryAssumeRoleWithSAMLCommand = serializeAws_queryAssumeRoleWithSAMLCommand; + var serializeAws_queryAssumeRoleWithWebIdentityCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryAssumeRoleWithWebIdentityRequest(input, context), + Action: "AssumeRoleWithWebIdentity", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryAssumeRoleWithWebIdentityCommand = serializeAws_queryAssumeRoleWithWebIdentityCommand; + var serializeAws_queryDecodeAuthorizationMessageCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryDecodeAuthorizationMessageRequest(input, context), + Action: "DecodeAuthorizationMessage", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryDecodeAuthorizationMessageCommand = serializeAws_queryDecodeAuthorizationMessageCommand; + var serializeAws_queryGetAccessKeyInfoCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetAccessKeyInfoRequest(input, context), + Action: "GetAccessKeyInfo", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryGetAccessKeyInfoCommand = serializeAws_queryGetAccessKeyInfoCommand; + var serializeAws_queryGetCallerIdentityCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetCallerIdentityRequest(input, context), + Action: "GetCallerIdentity", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryGetCallerIdentityCommand = serializeAws_queryGetCallerIdentityCommand; + var serializeAws_queryGetFederationTokenCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetFederationTokenRequest(input, context), + Action: "GetFederationToken", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryGetFederationTokenCommand = serializeAws_queryGetFederationTokenCommand; + var serializeAws_queryGetSessionTokenCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetSessionTokenRequest(input, context), + Action: "GetSessionToken", + Version: "2011-06-15" + }); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_queryGetSessionTokenCommand = serializeAws_queryGetSessionTokenCommand; + var deserializeAws_queryAssumeRoleCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryAssumeRoleCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryAssumeRoleResponse(data.AssumeRoleResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryAssumeRoleCommand = deserializeAws_queryAssumeRoleCommand; + var deserializeAws_queryAssumeRoleCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ExpiredTokenException": + case "com.amazonaws.sts#ExpiredTokenException": + throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); + case "MalformedPolicyDocument": + case "com.amazonaws.sts#MalformedPolicyDocumentException": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case "PackedPolicyTooLarge": + case "com.amazonaws.sts#PackedPolicyTooLargeException": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case "RegionDisabledException": + case "com.amazonaws.sts#RegionDisabledException": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryAssumeRoleWithSAMLCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryAssumeRoleWithSAMLCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryAssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryAssumeRoleWithSAMLCommand = deserializeAws_queryAssumeRoleWithSAMLCommand; + var deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ExpiredTokenException": + case "com.amazonaws.sts#ExpiredTokenException": + throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); + case "IDPRejectedClaim": + case "com.amazonaws.sts#IDPRejectedClaimException": + throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); + case "InvalidIdentityToken": + case "com.amazonaws.sts#InvalidIdentityTokenException": + throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); + case "MalformedPolicyDocument": + case "com.amazonaws.sts#MalformedPolicyDocumentException": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case "PackedPolicyTooLarge": + case "com.amazonaws.sts#PackedPolicyTooLargeException": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case "RegionDisabledException": + case "com.amazonaws.sts#RegionDisabledException": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryAssumeRoleWithWebIdentityCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryAssumeRoleWithWebIdentityCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryAssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryAssumeRoleWithWebIdentityCommand = deserializeAws_queryAssumeRoleWithWebIdentityCommand; + var deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ExpiredTokenException": + case "com.amazonaws.sts#ExpiredTokenException": + throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); + case "IDPCommunicationError": + case "com.amazonaws.sts#IDPCommunicationErrorException": + throw await deserializeAws_queryIDPCommunicationErrorExceptionResponse(parsedOutput, context); + case "IDPRejectedClaim": + case "com.amazonaws.sts#IDPRejectedClaimException": + throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); + case "InvalidIdentityToken": + case "com.amazonaws.sts#InvalidIdentityTokenException": + throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); + case "MalformedPolicyDocument": + case "com.amazonaws.sts#MalformedPolicyDocumentException": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case "PackedPolicyTooLarge": + case "com.amazonaws.sts#PackedPolicyTooLargeException": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case "RegionDisabledException": + case "com.amazonaws.sts#RegionDisabledException": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryDecodeAuthorizationMessageCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryDecodeAuthorizationMessageCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryDecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryDecodeAuthorizationMessageCommand = deserializeAws_queryDecodeAuthorizationMessageCommand; + var deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidAuthorizationMessageException": + case "com.amazonaws.sts#InvalidAuthorizationMessageException": + throw await deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryGetAccessKeyInfoCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetAccessKeyInfoCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryGetAccessKeyInfoCommand = deserializeAws_queryGetAccessKeyInfoCommand; + var deserializeAws_queryGetAccessKeyInfoCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + }; + var deserializeAws_queryGetCallerIdentityCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetCallerIdentityCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetCallerIdentityResponse(data.GetCallerIdentityResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryGetCallerIdentityCommand = deserializeAws_queryGetCallerIdentityCommand; + var deserializeAws_queryGetCallerIdentityCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + }; + var deserializeAws_queryGetFederationTokenCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetFederationTokenCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetFederationTokenResponse(data.GetFederationTokenResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryGetFederationTokenCommand = deserializeAws_queryGetFederationTokenCommand; + var deserializeAws_queryGetFederationTokenCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "MalformedPolicyDocument": + case "com.amazonaws.sts#MalformedPolicyDocumentException": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case "PackedPolicyTooLarge": + case "com.amazonaws.sts#PackedPolicyTooLargeException": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case "RegionDisabledException": + case "com.amazonaws.sts#RegionDisabledException": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryGetSessionTokenCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetSessionTokenCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetSessionTokenResponse(data.GetSessionTokenResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_queryGetSessionTokenCommand = deserializeAws_queryGetSessionTokenCommand; + var deserializeAws_queryGetSessionTokenCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "RegionDisabledException": + case "com.amazonaws.sts#RegionDisabledException": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryExpiredTokenExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryExpiredTokenException(body.Error, context); + const exception = new models_0_1.ExpiredTokenException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryIDPCommunicationErrorExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryIDPCommunicationErrorException(body.Error, context); + const exception = new models_0_1.IDPCommunicationErrorException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryIDPRejectedClaimExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryIDPRejectedClaimException(body.Error, context); + const exception = new models_0_1.IDPRejectedClaimException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryInvalidAuthorizationMessageExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryInvalidAuthorizationMessageException(body.Error, context); + const exception = new models_0_1.InvalidAuthorizationMessageException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryInvalidIdentityTokenExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryInvalidIdentityTokenException(body.Error, context); + const exception = new models_0_1.InvalidIdentityTokenException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryMalformedPolicyDocumentExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryMalformedPolicyDocumentException(body.Error, context); + const exception = new models_0_1.MalformedPolicyDocumentException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryPackedPolicyTooLargeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryPackedPolicyTooLargeException(body.Error, context); + const exception = new models_0_1.PackedPolicyTooLargeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryRegionDisabledExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryRegionDisabledException(body.Error, context); + const exception = new models_0_1.RegionDisabledException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var serializeAws_queryAssumeRoleRequest = (input, context) => { + const entries = {}; + if (input.RoleArn != null) { + entries["RoleArn"] = input.RoleArn; + } + if (input.RoleSessionName != null) { + entries["RoleSessionName"] = input.RoleSessionName; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input.Policy != null) { + entries["Policy"] = input.Policy; + } + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + if (input.Tags != null) { + const memberEntries = serializeAws_querytagListType(input.Tags, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Tags.${key}`; + entries[loc] = value; + }); + } + if (input.TransitiveTagKeys != null) { + const memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `TransitiveTagKeys.${key}`; + entries[loc] = value; + }); + } + if (input.ExternalId != null) { + entries["ExternalId"] = input.ExternalId; + } + if (input.SerialNumber != null) { + entries["SerialNumber"] = input.SerialNumber; + } + if (input.TokenCode != null) { + entries["TokenCode"] = input.TokenCode; + } + if (input.SourceIdentity != null) { + entries["SourceIdentity"] = input.SourceIdentity; + } + return entries; + }; + var serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => { + const entries = {}; + if (input.RoleArn != null) { + entries["RoleArn"] = input.RoleArn; + } + if (input.PrincipalArn != null) { + entries["PrincipalArn"] = input.PrincipalArn; + } + if (input.SAMLAssertion != null) { + entries["SAMLAssertion"] = input.SAMLAssertion; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input.Policy != null) { + entries["Policy"] = input.Policy; + } + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + return entries; + }; + var serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => { + const entries = {}; + if (input.RoleArn != null) { + entries["RoleArn"] = input.RoleArn; + } + if (input.RoleSessionName != null) { + entries["RoleSessionName"] = input.RoleSessionName; + } + if (input.WebIdentityToken != null) { + entries["WebIdentityToken"] = input.WebIdentityToken; + } + if (input.ProviderId != null) { + entries["ProviderId"] = input.ProviderId; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input.Policy != null) { + entries["Policy"] = input.Policy; + } + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + return entries; + }; + var serializeAws_queryDecodeAuthorizationMessageRequest = (input, context) => { + const entries = {}; + if (input.EncodedMessage != null) { + entries["EncodedMessage"] = input.EncodedMessage; + } + return entries; + }; + var serializeAws_queryGetAccessKeyInfoRequest = (input, context) => { + const entries = {}; + if (input.AccessKeyId != null) { + entries["AccessKeyId"] = input.AccessKeyId; + } + return entries; + }; + var serializeAws_queryGetCallerIdentityRequest = (input, context) => { + const entries = {}; + return entries; + }; + var serializeAws_queryGetFederationTokenRequest = (input, context) => { + const entries = {}; + if (input.Name != null) { + entries["Name"] = input.Name; + } + if (input.Policy != null) { + entries["Policy"] = input.Policy; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + if (input.Tags != null) { + const memberEntries = serializeAws_querytagListType(input.Tags, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Tags.${key}`; + entries[loc] = value; + }); + } + return entries; + }; + var serializeAws_queryGetSessionTokenRequest = (input, context) => { + const entries = {}; + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + if (input.SerialNumber != null) { + entries["SerialNumber"] = input.SerialNumber; + } + if (input.TokenCode != null) { + entries["TokenCode"] = input.TokenCode; + } + return entries; + }; + var serializeAws_querypolicyDescriptorListType = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = serializeAws_queryPolicyDescriptorType(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[`member.${counter}.${key}`] = value; + }); + counter++; + } + return entries; + }; + var serializeAws_queryPolicyDescriptorType = (input, context) => { + const entries = {}; + if (input.arn != null) { + entries["arn"] = input.arn; + } + return entries; + }; + var serializeAws_queryTag = (input, context) => { + const entries = {}; + if (input.Key != null) { + entries["Key"] = input.Key; + } + if (input.Value != null) { + entries["Value"] = input.Value; + } + return entries; + }; + var serializeAws_querytagKeyListType = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[`member.${counter}`] = entry; + counter++; + } + return entries; + }; + var serializeAws_querytagListType = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = serializeAws_queryTag(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[`member.${counter}.${key}`] = value; + }); + counter++; + } + return entries; + }; + var deserializeAws_queryAssumedRoleUser = (output, context) => { + const contents = { + AssumedRoleId: void 0, + Arn: void 0 + }; + if (output["AssumedRoleId"] !== void 0) { + contents.AssumedRoleId = (0, smithy_client_1.expectString)(output["AssumedRoleId"]); + } + if (output["Arn"] !== void 0) { + contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); + } + return contents; + }; + var deserializeAws_queryAssumeRoleResponse = (output, context) => { + const contents = { + Credentials: void 0, + AssumedRoleUser: void 0, + PackedPolicySize: void 0, + SourceIdentity: void 0 + }; + if (output["Credentials"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); + } + if (output["AssumedRoleUser"] !== void 0) { + contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); + } + if (output["PackedPolicySize"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + } + if (output["SourceIdentity"] !== void 0) { + contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); + } + return contents; + }; + var deserializeAws_queryAssumeRoleWithSAMLResponse = (output, context) => { + const contents = { + Credentials: void 0, + AssumedRoleUser: void 0, + PackedPolicySize: void 0, + Subject: void 0, + SubjectType: void 0, + Issuer: void 0, + Audience: void 0, + NameQualifier: void 0, + SourceIdentity: void 0 + }; + if (output["Credentials"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); + } + if (output["AssumedRoleUser"] !== void 0) { + contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); + } + if (output["PackedPolicySize"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + } + if (output["Subject"] !== void 0) { + contents.Subject = (0, smithy_client_1.expectString)(output["Subject"]); + } + if (output["SubjectType"] !== void 0) { + contents.SubjectType = (0, smithy_client_1.expectString)(output["SubjectType"]); + } + if (output["Issuer"] !== void 0) { + contents.Issuer = (0, smithy_client_1.expectString)(output["Issuer"]); + } + if (output["Audience"] !== void 0) { + contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]); + } + if (output["NameQualifier"] !== void 0) { + contents.NameQualifier = (0, smithy_client_1.expectString)(output["NameQualifier"]); + } + if (output["SourceIdentity"] !== void 0) { + contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); + } + return contents; + }; + var deserializeAws_queryAssumeRoleWithWebIdentityResponse = (output, context) => { + const contents = { + Credentials: void 0, + SubjectFromWebIdentityToken: void 0, + AssumedRoleUser: void 0, + PackedPolicySize: void 0, + Provider: void 0, + Audience: void 0, + SourceIdentity: void 0 + }; + if (output["Credentials"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); + } + if (output["SubjectFromWebIdentityToken"] !== void 0) { + contents.SubjectFromWebIdentityToken = (0, smithy_client_1.expectString)(output["SubjectFromWebIdentityToken"]); + } + if (output["AssumedRoleUser"] !== void 0) { + contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); + } + if (output["PackedPolicySize"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + } + if (output["Provider"] !== void 0) { + contents.Provider = (0, smithy_client_1.expectString)(output["Provider"]); + } + if (output["Audience"] !== void 0) { + contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]); + } + if (output["SourceIdentity"] !== void 0) { + contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); + } + return contents; + }; + var deserializeAws_queryCredentials = (output, context) => { + const contents = { + AccessKeyId: void 0, + SecretAccessKey: void 0, + SessionToken: void 0, + Expiration: void 0 + }; + if (output["AccessKeyId"] !== void 0) { + contents.AccessKeyId = (0, smithy_client_1.expectString)(output["AccessKeyId"]); + } + if (output["SecretAccessKey"] !== void 0) { + contents.SecretAccessKey = (0, smithy_client_1.expectString)(output["SecretAccessKey"]); + } + if (output["SessionToken"] !== void 0) { + contents.SessionToken = (0, smithy_client_1.expectString)(output["SessionToken"]); + } + if (output["Expiration"] !== void 0) { + contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["Expiration"])); + } + return contents; + }; + var deserializeAws_queryDecodeAuthorizationMessageResponse = (output, context) => { + const contents = { + DecodedMessage: void 0 + }; + if (output["DecodedMessage"] !== void 0) { + contents.DecodedMessage = (0, smithy_client_1.expectString)(output["DecodedMessage"]); + } + return contents; + }; + var deserializeAws_queryExpiredTokenException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var deserializeAws_queryFederatedUser = (output, context) => { + const contents = { + FederatedUserId: void 0, + Arn: void 0 + }; + if (output["FederatedUserId"] !== void 0) { + contents.FederatedUserId = (0, smithy_client_1.expectString)(output["FederatedUserId"]); + } + if (output["Arn"] !== void 0) { + contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); + } + return contents; + }; + var deserializeAws_queryGetAccessKeyInfoResponse = (output, context) => { + const contents = { + Account: void 0 + }; + if (output["Account"] !== void 0) { + contents.Account = (0, smithy_client_1.expectString)(output["Account"]); + } + return contents; + }; + var deserializeAws_queryGetCallerIdentityResponse = (output, context) => { + const contents = { + UserId: void 0, + Account: void 0, + Arn: void 0 + }; + if (output["UserId"] !== void 0) { + contents.UserId = (0, smithy_client_1.expectString)(output["UserId"]); + } + if (output["Account"] !== void 0) { + contents.Account = (0, smithy_client_1.expectString)(output["Account"]); + } + if (output["Arn"] !== void 0) { + contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); + } + return contents; + }; + var deserializeAws_queryGetFederationTokenResponse = (output, context) => { + const contents = { + Credentials: void 0, + FederatedUser: void 0, + PackedPolicySize: void 0 + }; + if (output["Credentials"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); + } + if (output["FederatedUser"] !== void 0) { + contents.FederatedUser = deserializeAws_queryFederatedUser(output["FederatedUser"], context); + } + if (output["PackedPolicySize"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + } + return contents; + }; + var deserializeAws_queryGetSessionTokenResponse = (output, context) => { + const contents = { + Credentials: void 0 + }; + if (output["Credentials"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); + } + return contents; + }; + var deserializeAws_queryIDPCommunicationErrorException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var deserializeAws_queryIDPRejectedClaimException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var deserializeAws_queryInvalidAuthorizationMessageException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var deserializeAws_queryInvalidIdentityTokenException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var deserializeAws_queryMalformedPolicyDocumentException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var deserializeAws_queryPackedPolicyTooLargeException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var deserializeAws_queryRegionDisabledException = (output, context) => { + const contents = { + message: void 0 + }; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + 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"] + }; + }; + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const contents = { + protocol, + hostname, + port, + method: "POST", + path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, + headers + }; + if (resolvedHostname !== void 0) { + contents.hostname = resolvedHostname; + } + if (body !== void 0) { + contents.body = body; + } + return new protocol_http_1.HttpRequest(contents); + }; + var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + const parsedObj = (0, fast_xml_parser_1.parse)(encoded, { + attributeNamePrefix: "", + ignoreAttributes: false, + parseNodeValue: false, + trimValues: false, + tagValueProcessor: (val) => val.trim() === "" && val.includes("\n") ? "" : (0, entities_1.decodeHTML)(val) + }); + const textNodeName = "#text"; + const key = Object.keys(parsedObj)[0]; + const parsedObjToReturn = parsedObj[key]; + if (parsedObjToReturn[textNodeName]) { + parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; + delete parsedObjToReturn[textNodeName]; + } + return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn); + } + return {}; + }); + var parseErrorBody = async (errorBody, context) => { + var _a; + const value = await parseBody(errorBody, context); + if (value.Error) { + value.Error.message = (_a = value.Error.message) !== null && _a !== void 0 ? _a : value.Error.Message; + } + return value; + }; + var buildFormUrlencodedString = (formEntries) => Object.entries(formEntries).map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value)).join("&"); + var loadQueryErrorCode = (output, data) => { + if (data.Error.Code !== void 0) { + return data.Error.Code; + } + if (output.statusCode == 404) { + return "NotFound"; + } + }; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +var require_AssumeRoleCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.AssumeRoleCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var middleware_signing_1 = require_dist_cjs16(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var AssumeRoleCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "AssumeRoleCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryAssumeRoleCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryAssumeRoleCommand)(output, context); + } + }; + exports.AssumeRoleCommand = AssumeRoleCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +var require_AssumeRoleWithSAMLCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.AssumeRoleWithSAMLCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var AssumeRoleWithSAMLCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "AssumeRoleWithSAMLCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryAssumeRoleWithSAMLCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithSAMLCommand)(output, context); + } + }; + exports.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +var require_AssumeRoleWithWebIdentityCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.AssumeRoleWithWebIdentityCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var AssumeRoleWithWebIdentityCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "AssumeRoleWithWebIdentityCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryAssumeRoleWithWebIdentityCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(output, context); + } + }; + exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +var require_DecodeAuthorizationMessageCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DecodeAuthorizationMessageCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var middleware_signing_1 = require_dist_cjs16(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var DecodeAuthorizationMessageCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "DecodeAuthorizationMessageCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryDecodeAuthorizationMessageCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryDecodeAuthorizationMessageCommand)(output, context); + } + }; + exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js +var require_GetAccessKeyInfoCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetAccessKeyInfoCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var middleware_signing_1 = require_dist_cjs16(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var GetAccessKeyInfoCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "GetAccessKeyInfoCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetAccessKeyInfoRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetAccessKeyInfoResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetAccessKeyInfoCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetAccessKeyInfoCommand)(output, context); + } + }; + exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js +var require_GetCallerIdentityCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetCallerIdentityCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var middleware_signing_1 = require_dist_cjs16(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var GetCallerIdentityCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "GetCallerIdentityCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetCallerIdentityRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetCallerIdentityResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetCallerIdentityCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetCallerIdentityCommand)(output, context); + } + }; + exports.GetCallerIdentityCommand = GetCallerIdentityCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js +var require_GetFederationTokenCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetFederationTokenCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var middleware_signing_1 = require_dist_cjs16(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var GetFederationTokenCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "GetFederationTokenCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetFederationTokenRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetFederationTokenCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetFederationTokenCommand)(output, context); + } + }; + exports.GetFederationTokenCommand = GetFederationTokenCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js +var require_GetSessionTokenCommand = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetSessionTokenCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var middleware_signing_1 = require_dist_cjs16(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var GetSessionTokenCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "STSClient"; + const commandName = "GetSessionTokenCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetSessionTokenRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetSessionTokenCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetSessionTokenCommand)(output, context); + } + }; + exports.GetSessionTokenCommand = GetSessionTokenCommand; + } +}); + +// node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js +var require_dist_cjs21 = __commonJS({ + "node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveStsAuthConfig = void 0; + var middleware_signing_1 = require_dist_cjs16(); + var resolveStsAuthConfig = (input, { stsClientCtor }) => (0, middleware_signing_1.resolveAwsAuthConfig)({ + ...input, + stsClientCtor + }); + exports.resolveStsAuthConfig = resolveStsAuthConfig; + } +}); + +// node_modules/@aws-sdk/client-sts/package.json +var require_package2 = __commonJS({ + "node_modules/@aws-sdk/client-sts/package.json"(exports, module2) { + module2.exports = { + name: "@aws-sdk/client-sts", + description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native", + version: "3.186.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", + test: "yarn test:unit", + "test:unit": "jest" + }, + main: "./dist-cjs/index.js", + types: "./dist-types/index.d.ts", + module: "./dist-es/index.js", + sideEffects: false, + dependencies: { + "@aws-crypto/sha256-browser": "2.0.0", + "@aws-crypto/sha256-js": "2.0.0", + "@aws-sdk/config-resolver": "3.186.0", + "@aws-sdk/credential-provider-node": "3.186.0", + "@aws-sdk/fetch-http-handler": "3.186.0", + "@aws-sdk/hash-node": "3.186.0", + "@aws-sdk/invalid-dependency": "3.186.0", + "@aws-sdk/middleware-content-length": "3.186.0", + "@aws-sdk/middleware-host-header": "3.186.0", + "@aws-sdk/middleware-logger": "3.186.0", + "@aws-sdk/middleware-recursion-detection": "3.186.0", + "@aws-sdk/middleware-retry": "3.186.0", + "@aws-sdk/middleware-sdk-sts": "3.186.0", + "@aws-sdk/middleware-serde": "3.186.0", + "@aws-sdk/middleware-signing": "3.186.0", + "@aws-sdk/middleware-stack": "3.186.0", + "@aws-sdk/middleware-user-agent": "3.186.0", + "@aws-sdk/node-config-provider": "3.186.0", + "@aws-sdk/node-http-handler": "3.186.0", + "@aws-sdk/protocol-http": "3.186.0", + "@aws-sdk/smithy-client": "3.186.0", + "@aws-sdk/types": "3.186.0", + "@aws-sdk/url-parser": "3.186.0", + "@aws-sdk/util-base64-browser": "3.186.0", + "@aws-sdk/util-base64-node": "3.186.0", + "@aws-sdk/util-body-length-browser": "3.186.0", + "@aws-sdk/util-body-length-node": "3.186.0", + "@aws-sdk/util-defaults-mode-browser": "3.186.0", + "@aws-sdk/util-defaults-mode-node": "3.186.0", + "@aws-sdk/util-user-agent-browser": "3.186.0", + "@aws-sdk/util-user-agent-node": "3.186.0", + "@aws-sdk/util-utf8-browser": "3.186.0", + "@aws-sdk/util-utf8-node": "3.186.0", + entities: "2.2.0", + "fast-xml-parser": "3.19.0", + tslib: "^2.3.1" + }, + devDependencies: { + "@aws-sdk/service-client-documentation-generator": "3.186.0", + "@tsconfig/recommended": "1.0.1", + "@types/node": "^12.7.5", + concurrently: "7.0.0", + "downlevel-dts": "0.10.1", + rimraf: "3.0.2", + typedoc: "0.19.2", + typescript: "~4.6.2" + }, + overrides: { + typedoc: { + typescript: "~4.6.2" + } + }, + engines: { + node: ">=12.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" + } + }; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js +var require_defaultStsRoleAssumers = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; + var AssumeRoleCommand_1 = require_AssumeRoleCommand(); + var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); + var ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; + var decorateDefaultRegion = (region) => { + if (typeof region !== "function") { + return region === void 0 ? ASSUME_ROLE_DEFAULT_REGION : region; + } + return async () => { + try { + return await region(); + } catch (e) { + return ASSUME_ROLE_DEFAULT_REGION; + } + }; + }; + var getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { + let stsClient; + let closureSourceCreds; + return async (sourceCreds, params) => { + closureSourceCreds = sourceCreds; + if (!stsClient) { + const { logger: logger2, region, requestHandler } = stsOptions; + stsClient = new stsClientCtor({ + logger: logger2, + credentialDefaultProvider: () => async () => closureSourceCreds, + region: decorateDefaultRegion(region || stsOptions.region), + ...requestHandler ? { requestHandler } : {} + }); + } + const { Credentials } = await stsClient.send(new AssumeRoleCommand_1.AssumeRoleCommand(params)); + if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`); + } + return { + accessKeyId: Credentials.AccessKeyId, + secretAccessKey: Credentials.SecretAccessKey, + sessionToken: Credentials.SessionToken, + expiration: Credentials.Expiration + }; + }; + }; + exports.getDefaultRoleAssumer = getDefaultRoleAssumer; + var getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { + let stsClient; + return async (params) => { + if (!stsClient) { + const { logger: logger2, region, requestHandler } = stsOptions; + stsClient = new stsClientCtor({ + logger: logger2, + region: decorateDefaultRegion(region || stsOptions.region), + ...requestHandler ? { requestHandler } : {} + }); + } + const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(params)); + if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`); + } + return { + accessKeyId: Credentials.AccessKeyId, + secretAccessKey: Credentials.SecretAccessKey, + sessionToken: Credentials.SessionToken, + expiration: Credentials.Expiration + }; + }; + }; + exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; + var decorateDefaultCredentialProvider = (provider) => (input) => provider({ + roleAssumer: (0, exports.getDefaultRoleAssumer)(input, input.stsClientCtor), + roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor), + ...input + }); + exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js +var require_fromEnv = __commonJS({ + "node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromEnv = exports.ENV_EXPIRATION = exports.ENV_SESSION = exports.ENV_SECRET = exports.ENV_KEY = void 0; + var property_provider_1 = require_dist_cjs11(); + exports.ENV_KEY = "AWS_ACCESS_KEY_ID"; + exports.ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; + exports.ENV_SESSION = "AWS_SESSION_TOKEN"; + exports.ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION"; + var fromEnv = () => async () => { + const accessKeyId = process.env[exports.ENV_KEY]; + const secretAccessKey = process.env[exports.ENV_SECRET]; + const sessionToken = process.env[exports.ENV_SESSION]; + const expiry = process.env[exports.ENV_EXPIRATION]; + if (accessKeyId && secretAccessKey) { + return { + accessKeyId, + secretAccessKey, + ...sessionToken && { sessionToken }, + ...expiry && { expiration: new Date(expiry) } + }; + } + throw new property_provider_1.CredentialsProviderError("Unable to find environment variable credentials."); + }; + exports.fromEnv = fromEnv; + } +}); + +// node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +var require_dist_cjs22 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromEnv(), exports); + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getHomeDir.js +var require_getHomeDir = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getHomeDir.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getHomeDir = void 0; + var os_1 = require("os"); + var path_1 = require("path"); + var getHomeDir = () => { + const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env; + if (HOME) + return HOME; + if (USERPROFILE) + return USERPROFILE; + if (HOMEPATH) + return `${HOMEDRIVE}${HOMEPATH}`; + return (0, os_1.homedir)(); + }; + exports.getHomeDir = getHomeDir; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileName.js +var require_getProfileName = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileName.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getProfileName = exports.DEFAULT_PROFILE = exports.ENV_PROFILE = void 0; + exports.ENV_PROFILE = "AWS_PROFILE"; + exports.DEFAULT_PROFILE = "default"; + var getProfileName = (init) => init.profile || process.env[exports.ENV_PROFILE] || exports.DEFAULT_PROFILE; + exports.getProfileName = getProfileName; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +var require_getSSOTokenFilepath = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSSOTokenFilepath = void 0; + var crypto_1 = require("crypto"); + var path_1 = require("path"); + var getHomeDir_1 = require_getHomeDir(); + var getSSOTokenFilepath = (ssoStartUrl) => { + const hasher = (0, crypto_1.createHash)("sha1"); + const cacheName = hasher.update(ssoStartUrl).digest("hex"); + return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`); + }; + exports.getSSOTokenFilepath = getSSOTokenFilepath; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +var require_getSSOTokenFromFile = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSSOTokenFromFile = void 0; + var fs_1 = require("fs"); + var getSSOTokenFilepath_1 = require_getSSOTokenFilepath(); + var { readFile } = fs_1.promises; + var getSSOTokenFromFile = async (ssoStartUrl) => { + const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(ssoStartUrl); + const ssoTokenText = await readFile(ssoTokenFilepath, "utf8"); + return JSON.parse(ssoTokenText); + }; + exports.getSSOTokenFromFile = getSSOTokenFromFile; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +var require_getConfigFilepath = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getConfigFilepath.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getConfigFilepath = exports.ENV_CONFIG_PATH = void 0; + var path_1 = require("path"); + var getHomeDir_1 = require_getHomeDir(); + exports.ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; + var getConfigFilepath = () => process.env[exports.ENV_CONFIG_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "config"); + exports.getConfigFilepath = getConfigFilepath; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +var require_getCredentialsFilepath = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getCredentialsFilepath = exports.ENV_CREDENTIALS_PATH = void 0; + var path_1 = require("path"); + var getHomeDir_1 = require_getHomeDir(); + exports.ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; + var getCredentialsFilepath = () => process.env[exports.ENV_CREDENTIALS_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "credentials"); + exports.getCredentialsFilepath = getCredentialsFilepath; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileData.js +var require_getProfileData = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileData.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getProfileData = void 0; + var profileKeyRegex = /^profile\s(["'])?([^\1]+)\1$/; + var getProfileData = (data) => Object.entries(data).filter(([key]) => profileKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [profileKeyRegex.exec(key)[2]]: value }), { + ...data.default && { default: data.default } + }); + exports.getProfileData = getProfileData; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseIni.js +var require_parseIni = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseIni.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.parseIni = void 0; + var profileNameBlockList = ["__proto__", "profile __proto__"]; + var parseIni = (iniData) => { + const map = {}; + let currentSection; + for (let line of iniData.split(/\r?\n/)) { + line = line.split(/(^|\s)[;#]/)[0].trim(); + const isSection = line[0] === "[" && line[line.length - 1] === "]"; + if (isSection) { + currentSection = line.substring(1, line.length - 1); + if (profileNameBlockList.includes(currentSection)) { + throw new Error(`Found invalid profile name "${currentSection}"`); + } + } else if (currentSection) { + const indexOfEqualsSign = line.indexOf("="); + const start = 0; + const end = line.length - 1; + const isAssignment = indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; + if (isAssignment) { + const [name, value] = [ + line.substring(0, indexOfEqualsSign).trim(), + line.substring(indexOfEqualsSign + 1).trim() + ]; + map[currentSection] = map[currentSection] || {}; + map[currentSection][name] = value; + } + } + } + return map; + }; + exports.parseIni = parseIni; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/slurpFile.js +var require_slurpFile = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/slurpFile.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.slurpFile = void 0; + var fs_1 = require("fs"); + var { readFile } = fs_1.promises; + var filePromisesHash = {}; + var slurpFile = (path) => { + if (!filePromisesHash[path]) { + filePromisesHash[path] = readFile(path, "utf8"); + } + return filePromisesHash[path]; + }; + exports.slurpFile = slurpFile; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +var require_loadSharedConfigFiles = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.loadSharedConfigFiles = void 0; + var getConfigFilepath_1 = require_getConfigFilepath(); + var getCredentialsFilepath_1 = require_getCredentialsFilepath(); + var getProfileData_1 = require_getProfileData(); + var parseIni_1 = require_parseIni(); + var slurpFile_1 = require_slurpFile(); + var swallowError = () => ({}); + var loadSharedConfigFiles = async (init = {}) => { + const { filepath = (0, getCredentialsFilepath_1.getCredentialsFilepath)(), configFilepath = (0, getConfigFilepath_1.getConfigFilepath)() } = init; + const parsedFiles = await Promise.all([ + (0, slurpFile_1.slurpFile)(configFilepath).then(parseIni_1.parseIni).then(getProfileData_1.getProfileData).catch(swallowError), + (0, slurpFile_1.slurpFile)(filepath).then(parseIni_1.parseIni).catch(swallowError) + ]); + return { + configFile: parsedFiles[0], + credentialsFile: parsedFiles[1] + }; + }; + exports.loadSharedConfigFiles = loadSharedConfigFiles; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +var require_getSsoSessionData = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSsoSessionData.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSsoSessionData = void 0; + var ssoSessionKeyRegex = /^sso-session\s(["'])?([^\1]+)\1$/; + var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => ssoSessionKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [ssoSessionKeyRegex.exec(key)[2]]: value }), {}); + exports.getSsoSessionData = getSsoSessionData; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +var require_loadSsoSessionData = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.loadSsoSessionData = void 0; + var getConfigFilepath_1 = require_getConfigFilepath(); + var getSsoSessionData_1 = require_getSsoSessionData(); + var parseIni_1 = require_parseIni(); + var slurpFile_1 = require_slurpFile(); + var swallowError = () => ({}); + var loadSsoSessionData = async (init = {}) => { + var _a; + return (0, slurpFile_1.slurpFile)((_a = init.configFilepath) !== null && _a !== void 0 ? _a : (0, getConfigFilepath_1.getConfigFilepath)()).then(parseIni_1.parseIni).then(getSsoSessionData_1.getSsoSessionData).catch(swallowError); + }; + exports.loadSsoSessionData = loadSsoSessionData; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +var require_parseKnownFiles = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseKnownFiles.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.parseKnownFiles = void 0; + var loadSharedConfigFiles_1 = require_loadSharedConfigFiles(); + var parseKnownFiles = async (init) => { + const parsedFiles = await (0, loadSharedConfigFiles_1.loadSharedConfigFiles)(init); + return { + ...parsedFiles.configFile, + ...parsedFiles.credentialsFile + }; + }; + exports.parseKnownFiles = parseKnownFiles; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/types.js +var require_types2 = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/types.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/index.js +var require_dist_cjs23 = __commonJS({ + "node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_getHomeDir(), exports); + tslib_1.__exportStar(require_getProfileName(), exports); + tslib_1.__exportStar(require_getSSOTokenFilepath(), exports); + tslib_1.__exportStar(require_getSSOTokenFromFile(), exports); + tslib_1.__exportStar(require_loadSharedConfigFiles(), exports); + tslib_1.__exportStar(require_loadSsoSessionData(), exports); + tslib_1.__exportStar(require_parseKnownFiles(), exports); + tslib_1.__exportStar(require_types2(), exports); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +var require_httpRequest2 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.httpRequest = void 0; + var property_provider_1 = require_dist_cjs11(); + var buffer_1 = require("buffer"); + var http_1 = require("http"); + function httpRequest(options) { + return new Promise((resolve, reject) => { + var _a; + const req = (0, http_1.request)({ + method: "GET", + ...options, + hostname: (_a = options.hostname) === null || _a === void 0 ? 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)); + req.destroy(); + }); + req.on("timeout", () => { + reject(new property_provider_1.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 })); + req.destroy(); + } + const chunks = []; + res.on("data", (chunk) => { + chunks.push(chunk); + }); + res.on("end", () => { + resolve(buffer_1.Buffer.concat(chunks)); + req.destroy(); + }); + }); + req.end(); + }); + } + exports.httpRequest = httpRequest; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +var require_ImdsCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromImdsCredentials = exports.isImdsCredentials = void 0; + var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string"; + exports.isImdsCredentials = isImdsCredentials; + var fromImdsCredentials = (creds) => ({ + accessKeyId: creds.AccessKeyId, + secretAccessKey: creds.SecretAccessKey, + sessionToken: creds.Token, + expiration: new Date(creds.Expiration) + }); + exports.fromImdsCredentials = fromImdsCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +var require_RemoteProviderInit = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.providerConfigFromInit = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_TIMEOUT = void 0; + exports.DEFAULT_TIMEOUT = 1e3; + exports.DEFAULT_MAX_RETRIES = 0; + var providerConfigFromInit = ({ maxRetries = exports.DEFAULT_MAX_RETRIES, timeout = exports.DEFAULT_TIMEOUT }) => ({ maxRetries, timeout }); + exports.providerConfigFromInit = providerConfigFromInit; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/retry.js +var require_retry = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/retry.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.retry = void 0; + var retry = (toRetry, maxRetries) => { + let promise = toRetry(); + for (let i = 0; i < maxRetries; i++) { + promise = promise.catch(toRetry); + } + return promise; + }; + exports.retry = retry; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromContainerMetadata.js +var require_fromContainerMetadata = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromContainerMetadata.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromContainerMetadata = exports.ENV_CMDS_AUTH_TOKEN = exports.ENV_CMDS_RELATIVE_URI = exports.ENV_CMDS_FULL_URI = void 0; + var property_provider_1 = require_dist_cjs11(); + var url_1 = require("url"); + var httpRequest_1 = require_httpRequest2(); + var ImdsCredentials_1 = require_ImdsCredentials(); + var RemoteProviderInit_1 = require_RemoteProviderInit(); + var retry_1 = require_retry(); + exports.ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; + exports.ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; + exports.ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; + var fromContainerMetadata = (init = {}) => { + const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); + return () => (0, retry_1.retry)(async () => { + 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."); + } + return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); + }, maxRetries); + }; + exports.fromContainerMetadata = fromContainerMetadata; + var requestFromEcsImds = async (timeout, options) => { + if (process.env[exports.ENV_CMDS_AUTH_TOKEN]) { + options.headers = { + ...options.headers, + Authorization: process.env[exports.ENV_CMDS_AUTH_TOKEN] + }; + } + const buffer = await (0, httpRequest_1.httpRequest)({ + ...options, + timeout + }); + return buffer.toString(); + }; + var CMDS_IP = "169.254.170.2"; + var GREENGRASS_HOSTS = { + localhost: true, + "127.0.0.1": true + }; + var GREENGRASS_PROTOCOLS = { + "http:": true, + "https:": true + }; + var getCmdsUri = async () => { + if (process.env[exports.ENV_CMDS_RELATIVE_URI]) { + return { + hostname: CMDS_IP, + path: process.env[exports.ENV_CMDS_RELATIVE_URI] + }; + } + if (process.env[exports.ENV_CMDS_FULL_URI]) { + const parsed = (0, url_1.parse)(process.env[exports.ENV_CMDS_FULL_URI]); + if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { + throw new property_provider_1.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, false); + } + if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { + throw new property_provider_1.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, false); + } + return { + ...parsed, + port: parsed.port ? parseInt(parsed.port, 10) : void 0 + }; + } + throw new property_provider_1.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${exports.ENV_CMDS_RELATIVE_URI} or ${exports.ENV_CMDS_FULL_URI} environment variable is set`, false); + }; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromEnv.js +var require_fromEnv2 = __commonJS({ + "node_modules/@aws-sdk/node-config-provider/dist-cjs/fromEnv.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromEnv = void 0; + var property_provider_1 = require_dist_cjs11(); + var fromEnv = (envVarSelector) => async () => { + try { + const config = envVarSelector(process.env); + if (config === void 0) { + throw new Error(); + } + return config; + } catch (e) { + throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config from environment variables with getter: ${envVarSelector}`); + } + }; + exports.fromEnv = fromEnv; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromSharedConfigFiles.js +var require_fromSharedConfigFiles = __commonJS({ + "node_modules/@aws-sdk/node-config-provider/dist-cjs/fromSharedConfigFiles.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromSharedConfigFiles = void 0; + var property_provider_1 = require_dist_cjs11(); + 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 }; + try { + const configValue = configSelector(mergedProfile); + if (configValue === void 0) { + throw new Error(); + } + return configValue; + } catch (e) { + throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config for profile ${profile} in SDK configuration files with getter: ${configSelector}`); + } + }; + exports.fromSharedConfigFiles = fromSharedConfigFiles; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js +var require_fromStatic2 = __commonJS({ + "node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromStatic = void 0; + var property_provider_1 = require_dist_cjs11(); + var isFunction = (func) => typeof func === "function"; + var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, property_provider_1.fromStatic)(defaultValue); + exports.fromStatic = fromStatic; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/configLoader.js +var require_configLoader = __commonJS({ + "node_modules/@aws-sdk/node-config-provider/dist-cjs/configLoader.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.loadConfig = void 0; + var property_provider_1 = require_dist_cjs11(); + var fromEnv_1 = require_fromEnv2(); + var fromSharedConfigFiles_1 = require_fromSharedConfigFiles(); + var fromStatic_1 = require_fromStatic2(); + var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromEnv_1.fromEnv)(environmentVariableSelector), (0, fromSharedConfigFiles_1.fromSharedConfigFiles)(configFileSelector, configuration), (0, fromStatic_1.fromStatic)(defaultValue))); + exports.loadConfig = loadConfig; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/index.js +var require_dist_cjs24 = __commonJS({ + "node_modules/@aws-sdk/node-config-provider/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_configLoader(), exports); + } +}); + +// node_modules/@aws-sdk/querystring-parser/dist-cjs/index.js +var require_dist_cjs25 = __commonJS({ + "node_modules/@aws-sdk/querystring-parser/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.parseQueryString = void 0; + function parseQueryString(querystring) { + const query = {}; + querystring = querystring.replace(/^\?/, ""); + if (querystring) { + for (const pair of querystring.split("&")) { + let [key, value = null] = pair.split("="); + key = decodeURIComponent(key); + if (value) { + value = decodeURIComponent(value); + } + if (!(key in query)) { + query[key] = value; + } else if (Array.isArray(query[key])) { + query[key].push(value); + } else { + query[key] = [query[key], value]; + } + } + } + return query; + } + exports.parseQueryString = parseQueryString; + } +}); + +// node_modules/@aws-sdk/url-parser/dist-cjs/index.js +var require_dist_cjs26 = __commonJS({ + "node_modules/@aws-sdk/url-parser/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.parseUrl = void 0; + var querystring_parser_1 = require_dist_cjs25(); + var parseUrl = (url) => { + if (typeof url === "string") { + return (0, exports.parseUrl)(new URL(url)); + } + const { hostname, pathname, port, protocol, search } = url; + let query; + if (search) { + query = (0, querystring_parser_1.parseQueryString)(search); + } + return { + hostname, + port: port ? parseInt(port) : void 0, + protocol, + path: pathname, + query + }; + }; + exports.parseUrl = parseUrl; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/Endpoint.js +var require_Endpoint = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/Endpoint.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Endpoint = void 0; + var Endpoint; + (function(Endpoint2) { + Endpoint2["IPv4"] = "http://169.254.169.254"; + Endpoint2["IPv6"] = "http://[fd00:ec2::254]"; + })(Endpoint = exports.Endpoint || (exports.Endpoint = {})); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +var require_EndpointConfigOptions = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ENDPOINT_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_NAME = exports.ENV_ENDPOINT_NAME = void 0; + exports.ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; + exports.CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; + exports.ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_NAME], + configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_NAME], + default: void 0 + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointMode.js +var require_EndpointMode = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointMode.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.EndpointMode = void 0; + var EndpointMode; + (function(EndpointMode2) { + EndpointMode2["IPv4"] = "IPv4"; + EndpointMode2["IPv6"] = "IPv6"; + })(EndpointMode = exports.EndpointMode || (exports.EndpointMode = {})); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +var require_EndpointModeConfigOptions = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ENDPOINT_MODE_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_MODE_NAME = exports.ENV_ENDPOINT_MODE_NAME = void 0; + var EndpointMode_1 = require_EndpointMode(); + exports.ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; + exports.CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; + exports.ENDPOINT_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_MODE_NAME], + configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_MODE_NAME], + default: EndpointMode_1.EndpointMode.IPv4 + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +var require_getInstanceMetadataEndpoint = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getInstanceMetadataEndpoint = void 0; + var node_config_provider_1 = require_dist_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()); + exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; + var getFromEndpointConfig = async () => (0, node_config_provider_1.loadConfig)(EndpointConfigOptions_1.ENDPOINT_CONFIG_OPTIONS)(); + var getFromEndpointModeConfig = async () => { + const endpointMode = await (0, node_config_provider_1.loadConfig)(EndpointModeConfigOptions_1.ENDPOINT_MODE_CONFIG_OPTIONS)(); + switch (endpointMode) { + case EndpointMode_1.EndpointMode.IPv4: + return Endpoint_1.Endpoint.IPv4; + case EndpointMode_1.EndpointMode.IPv6: + return Endpoint_1.Endpoint.IPv6; + default: + throw new Error(`Unsupported endpoint mode: ${endpointMode}. Select from ${Object.values(EndpointMode_1.EndpointMode)}`); + } + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +var require_getExtendedInstanceMetadataCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getExtendedInstanceMetadataCredentials = void 0; + 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, logger2) => { + var _a; + 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); + logger2.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; + return { + ...credentials, + ...originalExpiration ? { originalExpiration } : {}, + expiration: newExpiration + }; + }; + exports.getExtendedInstanceMetadataCredentials = getExtendedInstanceMetadataCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +var require_staticStabilityProvider = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.staticStabilityProvider = void 0; + var getExtendedInstanceMetadataCredentials_1 = require_getExtendedInstanceMetadataCredentials(); + var staticStabilityProvider = (provider, options = {}) => { + const logger2 = (options === null || options === void 0 ? 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, logger2); + } + } catch (e) { + if (pastCredentials) { + logger2.warn("Credential renew failed: ", e); + credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(pastCredentials, logger2); + } else { + throw e; + } + } + pastCredentials = credentials; + return credentials; + }; + }; + exports.staticStabilityProvider = staticStabilityProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +var require_fromInstanceMetadata = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromInstanceMetadata.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromInstanceMetadata = void 0; + var property_provider_1 = require_dist_cjs11(); + var httpRequest_1 = require_httpRequest2(); + var ImdsCredentials_1 = require_ImdsCredentials(); + var RemoteProviderInit_1 = require_RemoteProviderInit(); + var retry_1 = require_retry(); + var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); + var staticStabilityProvider_1 = require_staticStabilityProvider(); + var IMDS_PATH = "/latest/meta-data/iam/security-credentials/"; + var IMDS_TOKEN_PATH = "/latest/api/token"; + var fromInstanceMetadata = (init = {}) => (0, staticStabilityProvider_1.staticStabilityProvider)(getInstanceImdsProvider(init), { logger: init.logger }); + exports.fromInstanceMetadata = fromInstanceMetadata; + var getInstanceImdsProvider = (init) => { + let disableFetchToken = false; + const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); + const getCredentials = async (maxRetries2, options) => { + const profile = (await (0, retry_1.retry)(async () => { + let profile2; + try { + profile2 = await getProfile(options); + } catch (err) { + if (err.statusCode === 401) { + disableFetchToken = false; + } + throw err; + } + return profile2; + }, maxRetries2)).trim(); + return (0, retry_1.retry)(async () => { + let creds; + try { + creds = await getCredentialsFromProfile(profile, options); + } catch (err) { + if (err.statusCode === 401) { + disableFetchToken = false; + } + throw err; + } + return creds; + }, maxRetries2); + }; + return async () => { + const endpoint = await (0, getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint)(); + if (disableFetchToken) { + 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) { + throw Object.assign(error, { + message: "EC2 Metadata token request returned error" + }); + } else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) { + disableFetchToken = true; + } + return getCredentials(maxRetries, { ...endpoint, timeout }); + } + return getCredentials(maxRetries, { + ...endpoint, + headers: { + "x-aws-ec2-metadata-token": token + }, + timeout + }); + } + }; + }; + var getMetadataToken = async (options) => (0, httpRequest_1.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."); + } + return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/types.js +var require_types3 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/types.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/index.js +var require_dist_cjs27 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-imds/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getInstanceMetadataEndpoint = exports.httpRequest = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromContainerMetadata(), exports); + tslib_1.__exportStar(require_fromInstanceMetadata(), exports); + tslib_1.__exportStar(require_RemoteProviderInit(), exports); + tslib_1.__exportStar(require_types3(), exports); + var httpRequest_1 = require_httpRequest2(); + Object.defineProperty(exports, "httpRequest", { enumerable: true, get: function() { + return httpRequest_1.httpRequest; + } }); + var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); + Object.defineProperty(exports, "getInstanceMetadataEndpoint", { enumerable: true, get: function() { + return getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint; + } }); + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js +var require_resolveCredentialSource = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveCredentialSource = void 0; + var credential_provider_env_1 = require_dist_cjs22(); + var credential_provider_imds_1 = require_dist_cjs27(); + var property_provider_1 = require_dist_cjs11(); + var resolveCredentialSource = (credentialSource, profileName) => { + const sourceProvidersMap = { + EcsContainer: credential_provider_imds_1.fromContainerMetadata, + Ec2InstanceMetadata: credential_provider_imds_1.fromInstanceMetadata, + Environment: credential_provider_env_1.fromEnv + }; + if (credentialSource in sourceProvidersMap) { + return sourceProvidersMap[credentialSource](); + } else { + throw new property_provider_1.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`); + } + }; + exports.resolveCredentialSource = resolveCredentialSource; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js +var require_resolveAssumeRoleCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveAssumeRoleCredentials = exports.isAssumeRoleProfile = void 0; + var property_provider_1 = require_dist_cjs11(); + var shared_ini_file_loader_1 = require_dist_cjs23(); + var resolveCredentialSource_1 = require_resolveCredentialSource(); + var resolveProfileData_1 = require_resolveProfileData(); + var isAssumeRoleProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg) || isAssumeRoleWithProviderProfile(arg)); + exports.isAssumeRoleProfile = isAssumeRoleProfile; + var isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; + var isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; + var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => { + const data = profiles[profileName]; + if (!options.roleAssumer) { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires a role to be assumed, but no role assumption callback was provided.`, false); + } + const { source_profile } = data; + if (source_profile && source_profile in visitedProfiles) { + throw new property_provider_1.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0, shared_ini_file_loader_1.getProfileName)(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), false); + } + const sourceCredsProvider = source_profile ? (0, resolveProfileData_1.resolveProfileData)(source_profile, profiles, options, { + ...visitedProfiles, + [source_profile]: true + }) : (0, resolveCredentialSource_1.resolveCredentialSource)(data.credential_source, profileName)(); + const params = { + RoleArn: data.role_arn, + RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`, + ExternalId: data.external_id + }; + const { mfa_serial } = data; + if (mfa_serial) { + if (!options.mfaCodeProvider) { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, false); + } + params.SerialNumber = mfa_serial; + params.TokenCode = await options.mfaCodeProvider(mfa_serial); + } + const sourceCreds = await sourceCredsProvider; + return options.roleAssumer(sourceCreds, params); + }; + exports.resolveAssumeRoleCredentials = resolveAssumeRoleCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js +var require_isSsoProfile = __commonJS({ + "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isSsoProfile = void 0; + var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"); + exports.isSsoProfile = isSsoProfile; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js +var require_SSOServiceException = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SSOServiceException = void 0; + var smithy_client_1 = require_dist_cjs19(); + var SSOServiceException = class extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, SSOServiceException.prototype); + } + }; + exports.SSOServiceException = SSOServiceException; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js +var require_models_02 = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.LogoutRequestFilterSensitiveLog = exports.ListAccountsResponseFilterSensitiveLog = exports.ListAccountsRequestFilterSensitiveLog = exports.ListAccountRolesResponseFilterSensitiveLog = exports.RoleInfoFilterSensitiveLog = exports.ListAccountRolesRequestFilterSensitiveLog = exports.GetRoleCredentialsResponseFilterSensitiveLog = exports.RoleCredentialsFilterSensitiveLog = exports.GetRoleCredentialsRequestFilterSensitiveLog = exports.AccountInfoFilterSensitiveLog = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = void 0; + var smithy_client_1 = require_dist_cjs19(); + var SSOServiceException_1 = require_SSOServiceException(); + var InvalidRequestException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: "InvalidRequestException", + $fault: "client", + ...opts + }); + this.name = "InvalidRequestException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidRequestException.prototype); + } + }; + exports.InvalidRequestException = InvalidRequestException; + var ResourceNotFoundException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: "ResourceNotFoundException", + $fault: "client", + ...opts + }); + this.name = "ResourceNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceNotFoundException.prototype); + } + }; + exports.ResourceNotFoundException = ResourceNotFoundException; + var TooManyRequestsException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: "TooManyRequestsException", + $fault: "client", + ...opts + }); + this.name = "TooManyRequestsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TooManyRequestsException.prototype); + } + }; + exports.TooManyRequestsException = TooManyRequestsException; + var UnauthorizedException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: "UnauthorizedException", + $fault: "client", + ...opts + }); + this.name = "UnauthorizedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, UnauthorizedException.prototype); + } + }; + exports.UnauthorizedException = UnauthorizedException; + var AccountInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AccountInfoFilterSensitiveLog = AccountInfoFilterSensitiveLog; + var GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog; + var RoleCredentialsFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }, + ...obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING } + }); + exports.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog; + var GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.roleCredentials && { roleCredentials: (0, exports.RoleCredentialsFilterSensitiveLog)(obj.roleCredentials) } + }); + exports.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog; + var ListAccountRolesRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog; + var RoleInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RoleInfoFilterSensitiveLog = RoleInfoFilterSensitiveLog; + var ListAccountRolesResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListAccountRolesResponseFilterSensitiveLog = ListAccountRolesResponseFilterSensitiveLog; + var ListAccountsRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog; + var ListAccountsResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListAccountsResponseFilterSensitiveLog = ListAccountsResponseFilterSensitiveLog; + var LogoutRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js +var require_Aws_restJson1 = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.deserializeAws_restJson1LogoutCommand = exports.deserializeAws_restJson1ListAccountsCommand = exports.deserializeAws_restJson1ListAccountRolesCommand = exports.deserializeAws_restJson1GetRoleCredentialsCommand = exports.serializeAws_restJson1LogoutCommand = exports.serializeAws_restJson1ListAccountsCommand = exports.serializeAws_restJson1ListAccountRolesCommand = exports.serializeAws_restJson1GetRoleCredentialsCommand = void 0; + var protocol_http_1 = require_dist_cjs4(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_02(); + var SSOServiceException_1 = require_SSOServiceException(); + var serializeAws_restJson1GetRoleCredentialsCommand = async (input, context) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + "x-amz-sso_bearer_token": input.accessToken + }); + const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/federation/credentials`; + const query = map({ + role_name: [, input.roleName], + account_id: [, input.accountId] + }); + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body + }); + }; + exports.serializeAws_restJson1GetRoleCredentialsCommand = serializeAws_restJson1GetRoleCredentialsCommand; + var serializeAws_restJson1ListAccountRolesCommand = async (input, context) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + "x-amz-sso_bearer_token": input.accessToken + }); + const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/assignment/roles`; + const query = map({ + next_token: [, input.nextToken], + max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], + account_id: [, input.accountId] + }); + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body + }); + }; + exports.serializeAws_restJson1ListAccountRolesCommand = serializeAws_restJson1ListAccountRolesCommand; + var serializeAws_restJson1ListAccountsCommand = async (input, context) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + "x-amz-sso_bearer_token": input.accessToken + }); + const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/assignment/accounts`; + const query = map({ + next_token: [, input.nextToken], + max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()] + }); + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body + }); + }; + exports.serializeAws_restJson1ListAccountsCommand = serializeAws_restJson1ListAccountsCommand; + var serializeAws_restJson1LogoutCommand = async (input, context) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + "x-amz-sso_bearer_token": input.accessToken + }); + const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/logout`; + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body + }); + }; + exports.serializeAws_restJson1LogoutCommand = serializeAws_restJson1LogoutCommand; + var deserializeAws_restJson1GetRoleCredentialsCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1GetRoleCredentialsCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); + if (data.roleCredentials != null) { + contents.roleCredentials = deserializeAws_restJson1RoleCredentials(data.roleCredentials, context); + } + return contents; + }; + exports.deserializeAws_restJson1GetRoleCredentialsCommand = deserializeAws_restJson1GetRoleCredentialsCommand; + var deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidRequestException": + case "com.amazonaws.sso#InvalidRequestException": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.sso#ResourceNotFoundException": + throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.sso#TooManyRequestsException": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case "UnauthorizedException": + case "com.amazonaws.sso#UnauthorizedException": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var deserializeAws_restJson1ListAccountRolesCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1ListAccountRolesCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); + if (data.nextToken != null) { + contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); + } + if (data.roleList != null) { + contents.roleList = deserializeAws_restJson1RoleListType(data.roleList, context); + } + return contents; + }; + exports.deserializeAws_restJson1ListAccountRolesCommand = deserializeAws_restJson1ListAccountRolesCommand; + var deserializeAws_restJson1ListAccountRolesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidRequestException": + case "com.amazonaws.sso#InvalidRequestException": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.sso#ResourceNotFoundException": + throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.sso#TooManyRequestsException": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case "UnauthorizedException": + case "com.amazonaws.sso#UnauthorizedException": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var deserializeAws_restJson1ListAccountsCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1ListAccountsCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); + if (data.accountList != null) { + contents.accountList = deserializeAws_restJson1AccountListType(data.accountList, context); + } + if (data.nextToken != null) { + contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); + } + return contents; + }; + exports.deserializeAws_restJson1ListAccountsCommand = deserializeAws_restJson1ListAccountsCommand; + var deserializeAws_restJson1ListAccountsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidRequestException": + case "com.amazonaws.sso#InvalidRequestException": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.sso#ResourceNotFoundException": + throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.sso#TooManyRequestsException": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case "UnauthorizedException": + case "com.amazonaws.sso#UnauthorizedException": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var deserializeAws_restJson1LogoutCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1LogoutCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + await collectBody(output.body, context); + return contents; + }; + exports.deserializeAws_restJson1LogoutCommand = deserializeAws_restJson1LogoutCommand; + var deserializeAws_restJson1LogoutCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidRequestException": + case "com.amazonaws.sso#InvalidRequestException": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.sso#TooManyRequestsException": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case "UnauthorizedException": + case "com.amazonaws.sso#UnauthorizedException": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var map = smithy_client_1.map; + var deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.InvalidRequestException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.ResourceNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.TooManyRequestsException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.UnauthorizedException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1AccountInfo = (output, context) => { + return { + accountId: (0, smithy_client_1.expectString)(output.accountId), + accountName: (0, smithy_client_1.expectString)(output.accountName), + emailAddress: (0, smithy_client_1.expectString)(output.emailAddress) + }; + }; + var deserializeAws_restJson1AccountListType = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_restJson1AccountInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_restJson1RoleCredentials = (output, context) => { + return { + accessKeyId: (0, smithy_client_1.expectString)(output.accessKeyId), + expiration: (0, smithy_client_1.expectLong)(output.expiration), + secretAccessKey: (0, smithy_client_1.expectString)(output.secretAccessKey), + sessionToken: (0, smithy_client_1.expectString)(output.sessionToken) + }; + }; + var deserializeAws_restJson1RoleInfo = (output, context) => { + return { + accountId: (0, smithy_client_1.expectString)(output.accountId), + roleName: (0, smithy_client_1.expectString)(output.roleName) + }; + }; + var deserializeAws_restJson1RoleListType = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_restJson1RoleInfo(entry, context); + }); + return retVal; + }; + 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"] + }; + }; + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + var isSerializableHeaderValue = (value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); + var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + return JSON.parse(encoded); + } + return {}; + }); + var parseErrorBody = async (errorBody, context) => { + var _a; + const value = await parseBody(errorBody, context); + value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message; + return value; + }; + var loadRestJsonErrorCode = (output, data) => { + const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); + const sanitizeErrorCode = (rawValue) => { + let cleanValue = rawValue; + if (typeof cleanValue === "number") { + cleanValue = cleanValue.toString(); + } + if (cleanValue.indexOf(",") >= 0) { + cleanValue = cleanValue.split(",")[0]; + } + if (cleanValue.indexOf(":") >= 0) { + cleanValue = cleanValue.split(":")[0]; + } + if (cleanValue.indexOf("#") >= 0) { + cleanValue = cleanValue.split("#")[1]; + } + return cleanValue; + }; + const headerKey = findKey(output.headers, "x-amzn-errortype"); + if (headerKey !== void 0) { + return sanitizeErrorCode(output.headers[headerKey]); + } + if (data.code !== void 0) { + return sanitizeErrorCode(data.code); + } + if (data["__type"] !== void 0) { + return sanitizeErrorCode(data["__type"]); + } + }; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js +var require_GetRoleCredentialsCommand = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetRoleCredentialsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_02(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var GetRoleCredentialsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "SSOClient"; + const commandName = "GetRoleCredentialsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1GetRoleCredentialsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1GetRoleCredentialsCommand)(output, context); + } + }; + exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js +var require_ListAccountRolesCommand = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListAccountRolesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_02(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var ListAccountRolesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "SSOClient"; + const commandName = "ListAccountRolesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListAccountRolesResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountRolesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountRolesCommand)(output, context); + } + }; + exports.ListAccountRolesCommand = ListAccountRolesCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js +var require_ListAccountsCommand = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListAccountsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_02(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var ListAccountsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "SSOClient"; + const commandName = "ListAccountsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListAccountsResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountsCommand)(output, context); + } + }; + exports.ListAccountsCommand = ListAccountsCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js +var require_LogoutCommand = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.LogoutCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_02(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var LogoutCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "SSOClient"; + const commandName = "LogoutCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1LogoutCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1LogoutCommand)(output, context); + } + }; + exports.LogoutCommand = LogoutCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/package.json +var require_package3 = __commonJS({ + "node_modules/@aws-sdk/client-sso/package.json"(exports, module2) { + module2.exports = { + name: "@aws-sdk/client-sso", + description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native", + version: "3.186.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" + }, + main: "./dist-cjs/index.js", + types: "./dist-types/index.d.ts", + module: "./dist-es/index.js", + sideEffects: false, + dependencies: { + "@aws-crypto/sha256-browser": "2.0.0", + "@aws-crypto/sha256-js": "2.0.0", + "@aws-sdk/config-resolver": "3.186.0", + "@aws-sdk/fetch-http-handler": "3.186.0", + "@aws-sdk/hash-node": "3.186.0", + "@aws-sdk/invalid-dependency": "3.186.0", + "@aws-sdk/middleware-content-length": "3.186.0", + "@aws-sdk/middleware-host-header": "3.186.0", + "@aws-sdk/middleware-logger": "3.186.0", + "@aws-sdk/middleware-recursion-detection": "3.186.0", + "@aws-sdk/middleware-retry": "3.186.0", + "@aws-sdk/middleware-serde": "3.186.0", + "@aws-sdk/middleware-stack": "3.186.0", + "@aws-sdk/middleware-user-agent": "3.186.0", + "@aws-sdk/node-config-provider": "3.186.0", + "@aws-sdk/node-http-handler": "3.186.0", + "@aws-sdk/protocol-http": "3.186.0", + "@aws-sdk/smithy-client": "3.186.0", + "@aws-sdk/types": "3.186.0", + "@aws-sdk/url-parser": "3.186.0", + "@aws-sdk/util-base64-browser": "3.186.0", + "@aws-sdk/util-base64-node": "3.186.0", + "@aws-sdk/util-body-length-browser": "3.186.0", + "@aws-sdk/util-body-length-node": "3.186.0", + "@aws-sdk/util-defaults-mode-browser": "3.186.0", + "@aws-sdk/util-defaults-mode-node": "3.186.0", + "@aws-sdk/util-user-agent-browser": "3.186.0", + "@aws-sdk/util-user-agent-node": "3.186.0", + "@aws-sdk/util-utf8-browser": "3.186.0", + "@aws-sdk/util-utf8-node": "3.186.0", + tslib: "^2.3.1" + }, + devDependencies: { + "@aws-sdk/service-client-documentation-generator": "3.186.0", + "@tsconfig/recommended": "1.0.1", + "@types/node": "^12.7.5", + concurrently: "7.0.0", + "downlevel-dts": "0.10.1", + rimraf: "3.0.2", + typedoc: "0.19.2", + typescript: "~4.6.2" + }, + overrides: { + typedoc: { + typescript: "~4.6.2" + } + }, + engines: { + node: ">=12.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" + } + }; + } +}); + +// node_modules/@aws-sdk/util-buffer-from/dist-cjs/index.js +var require_dist_cjs28 = __commonJS({ + "node_modules/@aws-sdk/util-buffer-from/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromString = exports.fromArrayBuffer = void 0; + var is_array_buffer_1 = require_dist_cjs14(); + var buffer_1 = require("buffer"); + var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { + if (!(0, is_array_buffer_1.isArrayBuffer)(input)) { + throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`); + } + return buffer_1.Buffer.from(input, offset, length); + }; + exports.fromArrayBuffer = fromArrayBuffer; + var fromString = (input, encoding) => { + if (typeof input !== "string") { + throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`); + } + return encoding ? buffer_1.Buffer.from(input, encoding) : buffer_1.Buffer.from(input); + }; + exports.fromString = fromString; + } +}); + +// node_modules/@aws-sdk/hash-node/dist-cjs/index.js +var require_dist_cjs29 = __commonJS({ + "node_modules/@aws-sdk/hash-node/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Hash = void 0; + var util_buffer_from_1 = require_dist_cjs28(); + var buffer_1 = require("buffer"); + var crypto_1 = require("crypto"); + var Hash = class { + constructor(algorithmIdentifier, secret) { + this.hash = secret ? (0, crypto_1.createHmac)(algorithmIdentifier, castSourceData(secret)) : (0, crypto_1.createHash)(algorithmIdentifier); + } + update(toHash, encoding) { + this.hash.update(castSourceData(toHash, encoding)); + } + digest() { + return Promise.resolve(this.hash.digest()); + } + }; + exports.Hash = Hash; + function castSourceData(toCast, encoding) { + if (buffer_1.Buffer.isBuffer(toCast)) { + return toCast; + } + if (typeof toCast === "string") { + return (0, util_buffer_from_1.fromString)(toCast, encoding); + } + if (ArrayBuffer.isView(toCast)) { + return (0, util_buffer_from_1.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength); + } + return (0, util_buffer_from_1.fromArrayBuffer)(toCast); + } + } +}); + +// node_modules/@aws-sdk/querystring-builder/dist-cjs/index.js +var require_dist_cjs30 = __commonJS({ + "node_modules/@aws-sdk/querystring-builder/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.buildQueryString = void 0; + var util_uri_escape_1 = require_dist_cjs13(); + 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); + 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])}`); + } + } else { + let qsEntry = key; + if (value || typeof value === "string") { + qsEntry += `=${(0, util_uri_escape_1.escapeUri)(value)}`; + } + parts.push(qsEntry); + } + } + return parts.join("&"); + } + exports.buildQueryString = buildQueryString; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/constants.js +var require_constants6 = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/constants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODEJS_TIMEOUT_ERROR_CODES = void 0; + exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/get-transformed-headers.js +var require_get_transformed_headers = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/get-transformed-headers.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getTransformedHeaders = void 0; + var getTransformedHeaders = (headers) => { + const transformedHeaders = {}; + for (const name of Object.keys(headers)) { + const headerValues = headers[name]; + transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues; + } + return transformedHeaders; + }; + exports.getTransformedHeaders = getTransformedHeaders; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/set-connection-timeout.js +var require_set_connection_timeout = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/set-connection-timeout.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.setConnectionTimeout = void 0; + var setConnectionTimeout = (request, reject, timeoutInMs = 0) => { + if (!timeoutInMs) { + return; + } + request.on("socket", (socket) => { + if (socket.connecting) { + const timeoutId = setTimeout(() => { + request.destroy(); + reject(Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), { + name: "TimeoutError" + })); + }, timeoutInMs); + socket.on("connect", () => { + clearTimeout(timeoutId); + }); + } + }); + }; + exports.setConnectionTimeout = setConnectionTimeout; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-timeout.js +var require_set_socket_timeout = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-timeout.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.setSocketTimeout = void 0; + var setSocketTimeout = (request, reject, timeoutInMs = 0) => { + request.setTimeout(timeoutInMs, () => { + request.destroy(); + reject(Object.assign(new Error(`Connection timed out after ${timeoutInMs} ms`), { name: "TimeoutError" })); + }); + }; + exports.setSocketTimeout = setSocketTimeout; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js +var require_write_request_body = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.writeRequestBody = void 0; + var stream_1 = require("stream"); + function writeRequestBody(httpRequest, request) { + const expect = request.headers["Expect"] || request.headers["expect"]; + if (expect === "100-continue") { + httpRequest.on("continue", () => { + writeBody(httpRequest, request.body); + }); + } else { + writeBody(httpRequest, request.body); + } + } + exports.writeRequestBody = writeRequestBody; + function writeBody(httpRequest, body) { + if (body instanceof stream_1.Readable) { + body.pipe(httpRequest); + } else if (body) { + httpRequest.end(Buffer.from(body)); + } else { + httpRequest.end(); + } + } + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js +var require_node_http_handler = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NodeHttpHandler = void 0; + var protocol_http_1 = require_dist_cjs4(); + var querystring_builder_1 = require_dist_cjs30(); + var http_1 = require("http"); + var https_1 = require("https"); + var constants_1 = require_constants6(); + var get_transformed_headers_1 = require_get_transformed_headers(); + var set_connection_timeout_1 = require_set_connection_timeout(); + var set_socket_timeout_1 = require_set_socket_timeout(); + var write_request_body_1 = require_write_request_body(); + var NodeHttpHandler = class { + constructor(options) { + this.metadata = { handlerProtocol: "http/1.1" }; + this.configProvider = new Promise((resolve, reject) => { + if (typeof options === "function") { + options().then((_options) => { + resolve(this.resolveDefaultConfig(_options)); + }).catch(reject); + } else { + resolve(this.resolveDefaultConfig(options)); + } + }); + } + resolveDefaultConfig(options) { + const { connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {}; + const keepAlive = true; + const maxSockets = 50; + return { + connectionTimeout, + socketTimeout, + httpAgent: httpAgent || new http_1.Agent({ keepAlive, maxSockets }), + httpsAgent: httpsAgent || new https_1.Agent({ keepAlive, maxSockets }) + }; + } + destroy() { + var _a, _b, _c, _d; + (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.httpAgent) === null || _b === void 0 ? void 0 : _b.destroy(); + (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.httpsAgent) === null || _d === void 0 ? void 0 : _d.destroy(); + } + async handle(request, { abortSignal } = {}) { + if (!this.config) { + this.config = await this.configProvider; + } + return new Promise((resolve, 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) { + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + reject(abortError); + return; + } + const isSSL = request.protocol === "https:"; + const queryString = (0, querystring_builder_1.buildQueryString)(request.query || {}); + const nodeHttpsOptions = { + headers: request.headers, + host: request.hostname, + method: request.method, + path: queryString ? `${request.path}?${queryString}` : request.path, + port: request.port, + agent: isSSL ? this.config.httpsAgent : this.config.httpAgent + }; + const requestFunc = isSSL ? https_1.request : http_1.request; + const req = requestFunc(nodeHttpsOptions, (res) => { + const httpResponse = new protocol_http_1.HttpResponse({ + statusCode: res.statusCode || -1, + headers: (0, get_transformed_headers_1.getTransformedHeaders)(res.headers), + body: res + }); + resolve({ response: httpResponse }); + }); + req.on("error", (err) => { + if (constants_1.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.socketTimeout); + if (abortSignal) { + abortSignal.onabort = () => { + req.abort(); + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + reject(abortError); + }; + } + (0, write_request_body_1.writeRequestBody)(req, request); + }); + } + }; + exports.NodeHttpHandler = NodeHttpHandler; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js +var require_node_http2_handler = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NodeHttp2Handler = void 0; + var protocol_http_1 = require_dist_cjs4(); + var querystring_builder_1 = require_dist_cjs30(); + var http2_1 = require("http2"); + var get_transformed_headers_1 = require_get_transformed_headers(); + var write_request_body_1 = require_write_request_body(); + var NodeHttp2Handler = class { + constructor(options) { + this.metadata = { handlerProtocol: "h2" }; + this.configProvider = new Promise((resolve, reject) => { + if (typeof options === "function") { + options().then((opts) => { + resolve(opts || {}); + }).catch(reject); + } else { + resolve(options || {}); + } + }); + this.sessionCache = /* @__PURE__ */ new Map(); + } + destroy() { + for (const sessions of this.sessionCache.values()) { + sessions.forEach((session) => this.destroySession(session)); + } + this.sessionCache.clear(); + } + async handle(request, { abortSignal } = {}) { + if (!this.config) { + this.config = await this.configProvider; + } + const { requestTimeout, disableConcurrentStreams } = this.config; + return new Promise((resolve, rejectOriginal) => { + let fulfilled = false; + if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { + fulfilled = true; + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + rejectOriginal(abortError); + return; + } + const { hostname, method, port, protocol, path, query } = request; + const authority = `${protocol}//${hostname}${port ? `:${port}` : ""}`; + const session = this.getSession(authority, disableConcurrentStreams || false); + const reject = (err) => { + if (disableConcurrentStreams) { + this.destroySession(session); + } + fulfilled = true; + rejectOriginal(err); + }; + const queryString = (0, querystring_builder_1.buildQueryString)(query || {}); + const req = session.request({ + ...request.headers, + [http2_1.constants.HTTP2_HEADER_PATH]: queryString ? `${path}?${queryString}` : path, + [http2_1.constants.HTTP2_HEADER_METHOD]: method + }); + session.ref(); + req.on("response", (headers) => { + const httpResponse = new protocol_http_1.HttpResponse({ + statusCode: headers[":status"] || -1, + headers: (0, get_transformed_headers_1.getTransformedHeaders)(headers), + body: req + }); + fulfilled = true; + resolve({ response: httpResponse }); + if (disableConcurrentStreams) { + session.close(); + this.deleteSessionFromCache(authority, session); + } + }); + if (requestTimeout) { + req.setTimeout(requestTimeout, () => { + req.close(); + const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`); + timeoutError.name = "TimeoutError"; + reject(timeoutError); + }); + } + if (abortSignal) { + abortSignal.onabort = () => { + req.close(); + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + reject(abortError); + }; + } + req.on("frameError", (type, code, id) => { + reject(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`)); + }); + req.on("error", reject); + req.on("aborted", () => { + reject(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`)); + }); + req.on("close", () => { + session.unref(); + if (disableConcurrentStreams) { + session.destroy(); + } + if (!fulfilled) { + reject(new Error("Unexpected error: http2 request did not get a response")); + } + }); + (0, write_request_body_1.writeRequestBody)(req, request); + }); + } + getSession(authority, disableConcurrentStreams) { + var _a; + const sessionCache = this.sessionCache; + const existingSessions = sessionCache.get(authority) || []; + if (existingSessions.length > 0 && !disableConcurrentStreams) + return existingSessions[0]; + const newSession = (0, http2_1.connect)(authority); + newSession.unref(); + const destroySessionCb = () => { + this.destroySession(newSession); + this.deleteSessionFromCache(authority, newSession); + }; + newSession.on("goaway", destroySessionCb); + newSession.on("error", destroySessionCb); + newSession.on("frameError", destroySessionCb); + newSession.on("close", () => this.deleteSessionFromCache(authority, newSession)); + if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.sessionTimeout) { + newSession.setTimeout(this.config.sessionTimeout, destroySessionCb); + } + existingSessions.push(newSession); + sessionCache.set(authority, existingSessions); + return newSession; + } + destroySession(session) { + if (!session.destroyed) { + session.destroy(); + } + } + deleteSessionFromCache(authority, session) { + const existingSessions = this.sessionCache.get(authority) || []; + if (!existingSessions.includes(session)) { + return; + } + this.sessionCache.set(authority, existingSessions.filter((s) => s !== session)); + } + }; + exports.NodeHttp2Handler = NodeHttp2Handler; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/collector.js +var require_collector = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/collector.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Collector = void 0; + var stream_1 = require("stream"); + var Collector = class extends stream_1.Writable { + constructor() { + super(...arguments); + this.bufferedBytes = []; + } + _write(chunk, encoding, callback) { + this.bufferedBytes.push(chunk); + callback(); + } + }; + exports.Collector = Collector; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/index.js +var require_stream_collector = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.streamCollector = void 0; + var collector_1 = require_collector(); + var streamCollector = (stream) => new Promise((resolve, reject) => { + const collector = new collector_1.Collector(); + stream.pipe(collector); + stream.on("error", (err) => { + collector.end(); + reject(err); + }); + collector.on("error", reject); + collector.on("finish", function() { + const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes)); + resolve(bytes); + }); + }); + exports.streamCollector = streamCollector; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/index.js +var require_dist_cjs31 = __commonJS({ + "node_modules/@aws-sdk/node-http-handler/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_node_http_handler(), exports); + tslib_1.__exportStar(require_node_http2_handler(), exports); + tslib_1.__exportStar(require_stream_collector(), exports); + } +}); + +// node_modules/@aws-sdk/util-base64-node/dist-cjs/index.js +var require_dist_cjs32 = __commonJS({ + "node_modules/@aws-sdk/util-base64-node/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.toBase64 = exports.fromBase64 = void 0; + var util_buffer_from_1 = require_dist_cjs28(); + var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; + function fromBase64(input) { + if (input.length * 3 % 4 !== 0) { + throw new TypeError(`Incorrect padding on base64 string.`); + } + if (!BASE64_REGEX.exec(input)) { + throw new TypeError(`Invalid base64 string.`); + } + const buffer = (0, util_buffer_from_1.fromString)(input, "base64"); + return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); + } + exports.fromBase64 = fromBase64; + function toBase64(input) { + return (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64"); + } + exports.toBase64 = toBase64; + } +}); + +// node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js +var require_calculateBodyLength = __commonJS({ + "node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.calculateBodyLength = void 0; + var fs_1 = require("fs"); + var calculateBodyLength = (body) => { + if (!body) { + return 0; + } + if (typeof body === "string") { + return Buffer.from(body).length; + } else if (typeof body.byteLength === "number") { + return body.byteLength; + } else if (typeof body.size === "number") { + return body.size; + } else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) { + return (0, fs_1.lstatSync)(body.path).size; + } else if (typeof body.fd === "number") { + return (0, fs_1.fstatSync)(body.fd).size; + } + throw new Error(`Body Length computation failed for ${body}`); + }; + exports.calculateBodyLength = calculateBodyLength; + } +}); + +// node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js +var require_dist_cjs33 = __commonJS({ + "node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_calculateBodyLength(), exports); + } +}); + +// node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js +var require_is_crt_available = __commonJS({ + "node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js"(exports, module2) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.isCrtAvailable = void 0; + var isCrtAvailable = () => { + try { + if (typeof require === "function" && typeof module2 !== "undefined" && module2.require && require("aws-crt")) { + return ["md/crt-avail"]; + } + return null; + } catch (e) { + return null; + } + }; + exports.isCrtAvailable = isCrtAvailable; + } +}); + +// node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +var require_dist_cjs34 = __commonJS({ + "node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.defaultUserAgent = exports.UA_APP_ID_INI_NAME = exports.UA_APP_ID_ENV_NAME = void 0; + var node_config_provider_1 = require_dist_cjs24(); + var os_1 = require("os"); + var process_1 = require("process"); + var is_crt_available_1 = require_is_crt_available(); + exports.UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; + exports.UA_APP_ID_INI_NAME = "sdk-ua-app-id"; + var defaultUserAgent = ({ serviceId, clientVersion }) => { + const sections = [ + ["aws-sdk-js", clientVersion], + [`os/${(0, os_1.platform)()}`, (0, os_1.release)()], + ["lang/js"], + ["md/nodejs", `${process_1.versions.node}`] + ]; + const crtAvailable = (0, is_crt_available_1.isCrtAvailable)(); + if (crtAvailable) { + sections.push(crtAvailable); + } + if (serviceId) { + sections.push([`api/${serviceId}`, clientVersion]); + } + if (process_1.env.AWS_EXECUTION_ENV) { + sections.push([`exec-env/${process_1.env.AWS_EXECUTION_ENV}`]); + } + const appIdPromise = (0, node_config_provider_1.loadConfig)({ + environmentVariableSelector: (env) => env[exports.UA_APP_ID_ENV_NAME], + configFileSelector: (profile) => profile[exports.UA_APP_ID_INI_NAME], + default: void 0 + })(); + let resolvedUserAgent = void 0; + return async () => { + if (!resolvedUserAgent) { + const appId = await appIdPromise; + resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections]; + } + return resolvedUserAgent; + }; + }; + exports.defaultUserAgent = defaultUserAgent; + } +}); + +// node_modules/@aws-sdk/util-utf8-node/dist-cjs/index.js +var require_dist_cjs35 = __commonJS({ + "node_modules/@aws-sdk/util-utf8-node/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.toUtf8 = exports.fromUtf8 = void 0; + var util_buffer_from_1 = require_dist_cjs28(); + var fromUtf8 = (input) => { + const buf = (0, util_buffer_from_1.fromString)(input, "utf8"); + return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); + }; + exports.fromUtf8 = fromUtf8; + var toUtf8 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8"); + exports.toUtf8 = toUtf8; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/endpoints.js +var require_endpoints = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/endpoints.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.defaultRegionInfoProvider = void 0; + var config_resolver_1 = require_dist_cjs3(); + var regionHash = { + "ap-east-1": { + variants: [ + { + hostname: "portal.sso.ap-east-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "ap-east-1" + }, + "ap-northeast-1": { + variants: [ + { + hostname: "portal.sso.ap-northeast-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "ap-northeast-1" + }, + "ap-northeast-2": { + variants: [ + { + hostname: "portal.sso.ap-northeast-2.amazonaws.com", + tags: [] + } + ], + signingRegion: "ap-northeast-2" + }, + "ap-northeast-3": { + variants: [ + { + hostname: "portal.sso.ap-northeast-3.amazonaws.com", + tags: [] + } + ], + signingRegion: "ap-northeast-3" + }, + "ap-south-1": { + variants: [ + { + hostname: "portal.sso.ap-south-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "ap-south-1" + }, + "ap-southeast-1": { + variants: [ + { + hostname: "portal.sso.ap-southeast-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "ap-southeast-1" + }, + "ap-southeast-2": { + variants: [ + { + hostname: "portal.sso.ap-southeast-2.amazonaws.com", + tags: [] + } + ], + signingRegion: "ap-southeast-2" + }, + "ca-central-1": { + variants: [ + { + hostname: "portal.sso.ca-central-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "ca-central-1" + }, + "eu-central-1": { + variants: [ + { + hostname: "portal.sso.eu-central-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "eu-central-1" + }, + "eu-north-1": { + variants: [ + { + hostname: "portal.sso.eu-north-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "eu-north-1" + }, + "eu-south-1": { + variants: [ + { + hostname: "portal.sso.eu-south-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "eu-south-1" + }, + "eu-west-1": { + variants: [ + { + hostname: "portal.sso.eu-west-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "eu-west-1" + }, + "eu-west-2": { + variants: [ + { + hostname: "portal.sso.eu-west-2.amazonaws.com", + tags: [] + } + ], + signingRegion: "eu-west-2" + }, + "eu-west-3": { + variants: [ + { + hostname: "portal.sso.eu-west-3.amazonaws.com", + tags: [] + } + ], + signingRegion: "eu-west-3" + }, + "me-south-1": { + variants: [ + { + hostname: "portal.sso.me-south-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "me-south-1" + }, + "sa-east-1": { + variants: [ + { + hostname: "portal.sso.sa-east-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "sa-east-1" + }, + "us-east-1": { + variants: [ + { + hostname: "portal.sso.us-east-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "us-east-1" + }, + "us-east-2": { + variants: [ + { + hostname: "portal.sso.us-east-2.amazonaws.com", + tags: [] + } + ], + signingRegion: "us-east-2" + }, + "us-gov-east-1": { + variants: [ + { + hostname: "portal.sso.us-gov-east-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "us-gov-east-1" + }, + "us-gov-west-1": { + variants: [ + { + hostname: "portal.sso.us-gov-west-1.amazonaws.com", + tags: [] + } + ], + signingRegion: "us-gov-west-1" + }, + "us-west-2": { + variants: [ + { + hostname: "portal.sso.us-west-2.amazonaws.com", + tags: [] + } + ], + signingRegion: "us-west-2" + } + }; + var partitionHash = { + aws: { + regions: [ + "af-south-1", + "ap-east-1", + "ap-northeast-1", + "ap-northeast-2", + "ap-northeast-3", + "ap-south-1", + "ap-southeast-1", + "ap-southeast-2", + "ap-southeast-3", + "ca-central-1", + "eu-central-1", + "eu-north-1", + "eu-south-1", + "eu-west-1", + "eu-west-2", + "eu-west-3", + "me-central-1", + "me-south-1", + "sa-east-1", + "us-east-1", + "us-east-2", + "us-west-1", + "us-west-2" + ], + regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.amazonaws.com", + tags: [] + }, + { + hostname: "portal.sso-fips.{region}.amazonaws.com", + tags: ["fips"] + }, + { + hostname: "portal.sso-fips.{region}.api.aws", + tags: ["dualstack", "fips"] + }, + { + hostname: "portal.sso.{region}.api.aws", + tags: ["dualstack"] + } + ] + }, + "aws-cn": { + regions: ["cn-north-1", "cn-northwest-1"], + regionRegex: "^cn\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.amazonaws.com.cn", + tags: [] + }, + { + hostname: "portal.sso-fips.{region}.amazonaws.com.cn", + tags: ["fips"] + }, + { + hostname: "portal.sso-fips.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack", "fips"] + }, + { + hostname: "portal.sso.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack"] + } + ] + }, + "aws-iso": { + regions: ["us-iso-east-1", "us-iso-west-1"], + regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.c2s.ic.gov", + tags: [] + }, + { + hostname: "portal.sso-fips.{region}.c2s.ic.gov", + tags: ["fips"] + } + ] + }, + "aws-iso-b": { + regions: ["us-isob-east-1"], + regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.sc2s.sgov.gov", + tags: [] + }, + { + hostname: "portal.sso-fips.{region}.sc2s.sgov.gov", + tags: ["fips"] + } + ] + }, + "aws-us-gov": { + regions: ["us-gov-east-1", "us-gov-west-1"], + regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.amazonaws.com", + tags: [] + }, + { + hostname: "portal.sso-fips.{region}.amazonaws.com", + tags: ["fips"] + }, + { + hostname: "portal.sso-fips.{region}.api.aws", + tags: ["dualstack", "fips"] + }, + { + hostname: "portal.sso.{region}.api.aws", + tags: ["dualstack"] + } + ] + } + }; + var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { + ...options, + signingService: "awsssoportal", + regionHash, + partitionHash + }); + exports.defaultRegionInfoProvider = defaultRegionInfoProvider; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRuntimeConfig = void 0; + var url_parser_1 = require_dist_cjs26(); + var endpoints_1 = require_endpoints(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return { + apiVersion: "2019-06-10", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "SSO", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl + }; + }; + exports.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/constants.js +var require_constants7 = __commonJS({ + "node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/constants.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.IMDS_REGION_PATH = exports.DEFAULTS_MODE_OPTIONS = exports.ENV_IMDS_DISABLED = exports.AWS_DEFAULT_REGION_ENV = exports.AWS_REGION_ENV = exports.AWS_EXECUTION_ENV = void 0; + exports.AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; + exports.AWS_REGION_ENV = "AWS_REGION"; + exports.AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION"; + exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; + exports.DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"]; + exports.IMDS_REGION_PATH = "/latest/meta-data/placement/region"; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js +var require_defaultsModeConfig = __commonJS({ + "node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = void 0; + var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE"; + var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode"; + exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + return env[AWS_DEFAULTS_MODE_ENV]; + }, + configFileSelector: (profile) => { + return profile[AWS_DEFAULTS_MODE_CONFIG]; + }, + default: "legacy" + }; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js +var require_resolveDefaultsModeConfig = __commonJS({ + "node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveDefaultsModeConfig = void 0; + var config_resolver_1 = require_dist_cjs3(); + var credential_provider_imds_1 = require_dist_cjs27(); + var node_config_provider_1 = require_dist_cjs24(); + var property_provider_1 = require_dist_cjs11(); + 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 () => { + const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; + switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) { + case "auto": + return resolveNodeDefaultsModeAuto(region); + case "in-region": + case "cross-region": + case "mobile": + case "standard": + case "legacy": + return Promise.resolve(mode === null || mode === void 0 ? 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}`); + } + }); + exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig; + var resolveNodeDefaultsModeAuto = async (clientRegion) => { + if (clientRegion) { + const resolvedRegion = typeof clientRegion === "function" ? await clientRegion() : clientRegion; + const inferredRegion = await inferPhysicalRegion(); + if (!inferredRegion) { + return "standard"; + } + if (resolvedRegion === inferredRegion) { + return "in-region"; + } else { + return "cross-region"; + } + } + 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]; + } + if (!process.env[constants_1.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(); + } catch (e) { + } + } + }; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/index.js +var require_dist_cjs36 = __commonJS({ + "node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_resolveDefaultsModeConfig(), exports); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +var require_runtimeConfig = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRuntimeConfig = void 0; + var tslib_1 = require_tslib(); + var package_json_1 = tslib_1.__importDefault(require_package3()); + var config_resolver_1 = require_dist_cjs3(); + var hash_node_1 = require_dist_cjs29(); + var middleware_retry_1 = require_dist_cjs10(); + var node_config_provider_1 = require_dist_cjs24(); + var node_http_handler_1 = require_dist_cjs31(); + var util_base64_node_1 = require_dist_cjs32(); + var util_body_length_node_1 = require_dist_cjs33(); + var util_user_agent_node_1 = require_dist_cjs34(); + var util_utf8_node_1 = require_dist_cjs35(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared(); + var smithy_client_1 = require_dist_cjs19(); + var util_defaults_mode_node_1 = require_dist_cjs36(); + var smithy_client_2 = require_dist_cjs19(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; + (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); + const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE + }), + sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : hash_node_1.Hash.bind(null, "sha256"), + streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.fromUtf8, + utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.toUtf8 + }; + }; + exports.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js +var require_SSOClient = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SSOClient = void 0; + var config_resolver_1 = require_dist_cjs3(); + var middleware_content_length_1 = require_dist_cjs5(); + var middleware_host_header_1 = require_dist_cjs6(); + var middleware_logger_1 = require_dist_cjs7(); + var middleware_recursion_detection_1 = require_dist_cjs8(); + var middleware_retry_1 = require_dist_cjs10(); + var middleware_user_agent_1 = require_dist_cjs17(); + var smithy_client_1 = require_dist_cjs19(); + var runtimeConfig_1 = require_runtimeConfig(); + var SSOClient = class extends smithy_client_1.Client { + constructor(configuration) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); + const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); + const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); + const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); + const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); + const _config_5 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_4); + super(_config_5); + this.config = _config_5; + this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + } + destroy() { + super.destroy(); + } + }; + exports.SSOClient = SSOClient; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js +var require_SSO = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SSO = void 0; + var GetRoleCredentialsCommand_1 = require_GetRoleCredentialsCommand(); + var ListAccountRolesCommand_1 = require_ListAccountRolesCommand(); + var ListAccountsCommand_1 = require_ListAccountsCommand(); + var LogoutCommand_1 = require_LogoutCommand(); + var SSOClient_1 = require_SSOClient(); + var SSO = class extends SSOClient_1.SSOClient { + getRoleCredentials(args, optionsOrCb, cb) { + const command = new GetRoleCredentialsCommand_1.GetRoleCredentialsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listAccountRoles(args, optionsOrCb, cb) { + const command = new ListAccountRolesCommand_1.ListAccountRolesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listAccounts(args, optionsOrCb, cb) { + const command = new ListAccountsCommand_1.ListAccountsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + logout(args, optionsOrCb, cb) { + const command = new LogoutCommand_1.LogoutCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + }; + exports.SSO = SSO; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js +var require_commands = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_GetRoleCredentialsCommand(), exports); + tslib_1.__exportStar(require_ListAccountRolesCommand(), exports); + tslib_1.__exportStar(require_ListAccountsCommand(), exports); + tslib_1.__exportStar(require_LogoutCommand(), exports); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js +var require_models = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_models_02(), exports); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js +var require_Interfaces = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js +var require_ListAccountRolesPaginator = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListAccountRoles = void 0; + var ListAccountRolesCommand_1 = require_ListAccountRolesCommand(); + var SSO_1 = require_SSO(); + var SSOClient_1 = require_SSOClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listAccountRoles(input, ...args); + }; + async function* paginateListAccountRoles(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof SSO_1.SSO) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof SSOClient_1.SSOClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected SSO | SSOClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListAccountRoles = paginateListAccountRoles; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js +var require_ListAccountsPaginator = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListAccounts = void 0; + var ListAccountsCommand_1 = require_ListAccountsCommand(); + var SSO_1 = require_SSO(); + var SSOClient_1 = require_SSOClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listAccounts(input, ...args); + }; + async function* paginateListAccounts(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof SSO_1.SSO) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof SSOClient_1.SSOClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected SSO | SSOClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListAccounts = paginateListAccounts; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js +var require_pagination = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_Interfaces(), exports); + tslib_1.__exportStar(require_ListAccountRolesPaginator(), exports); + tslib_1.__exportStar(require_ListAccountsPaginator(), exports); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/index.js +var require_dist_cjs37 = __commonJS({ + "node_modules/@aws-sdk/client-sso/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SSOServiceException = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_SSO(), exports); + tslib_1.__exportStar(require_SSOClient(), exports); + tslib_1.__exportStar(require_commands(), exports); + tslib_1.__exportStar(require_models(), exports); + tslib_1.__exportStar(require_pagination(), exports); + var SSOServiceException_1 = require_SSOServiceException(); + Object.defineProperty(exports, "SSOServiceException", { enumerable: true, get: function() { + return SSOServiceException_1.SSOServiceException; + } }); + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js +var require_resolveSSOCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveSSOCredentials = void 0; + var client_sso_1 = require_dist_cjs37(); + var property_provider_1 = require_dist_cjs11(); + var shared_ini_file_loader_1 = require_dist_cjs23(); + var EXPIRE_WINDOW_MS = 15 * 60 * 1e3; + var SHOULD_FAIL_CREDENTIAL_CHAIN = false; + var resolveSSOCredentials = async ({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }) => { + let token; + const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`; + try { + token = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoStartUrl); + } catch (e) { + throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); + } + if (new Date(token.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) { + throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); + } + const { accessToken } = token; + const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion }); + let ssoResp; + try { + ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({ + accountId: ssoAccountId, + roleName: ssoRoleName, + accessToken + })); + } catch (e) { + throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN); + } + const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp; + if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { + throw new property_provider_1.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN); + } + return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) }; + }; + exports.resolveSSOCredentials = resolveSSOCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js +var require_validateSsoProfile = __commonJS({ + "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.validateSsoProfile = void 0; + var property_provider_1 = require_dist_cjs11(); + var validateSsoProfile = (profile) => { + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile; + if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) { + throw new property_provider_1.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")} +Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, false); + } + return profile; + }; + exports.validateSsoProfile = validateSsoProfile; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js +var require_fromSSO = __commonJS({ + "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromSSO = void 0; + var property_provider_1 = require_dist_cjs11(); + var shared_ini_file_loader_1 = require_dist_cjs23(); + var isSsoProfile_1 = require_isSsoProfile(); + var resolveSSOCredentials_1 = require_resolveSSOCredentials(); + var validateSsoProfile_1 = require_validateSsoProfile(); + var fromSSO = (init = {}) => async () => { + const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient } = init; + if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName) { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + const profileName = (0, shared_ini_file_loader_1.getProfileName)(init); + const profile = profiles[profileName]; + if (!(0, isSsoProfile_1.isSsoProfile)(profile)) { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`); + } + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, validateSsoProfile_1.validateSsoProfile)(profile); + return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ + ssoStartUrl: sso_start_url, + ssoAccountId: sso_account_id, + ssoRegion: sso_region, + ssoRoleName: sso_role_name, + ssoClient + }); + } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { + throw new property_provider_1.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"'); + } else { + return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }); + } + }; + exports.fromSSO = fromSSO; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js +var require_types4 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +var require_dist_cjs38 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromSSO(), exports); + tslib_1.__exportStar(require_isSsoProfile(), exports); + tslib_1.__exportStar(require_types4(), exports); + tslib_1.__exportStar(require_validateSsoProfile(), exports); + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js +var require_resolveSsoCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveSsoCredentials = exports.isSsoProfile = void 0; + var credential_provider_sso_1 = require_dist_cjs38(); + var credential_provider_sso_2 = require_dist_cjs38(); + Object.defineProperty(exports, "isSsoProfile", { enumerable: true, get: function() { + return credential_provider_sso_2.isSsoProfile; + } }); + var resolveSsoCredentials = (data) => { + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data); + return (0, credential_provider_sso_1.fromSSO)({ + ssoStartUrl: sso_start_url, + ssoAccountId: sso_account_id, + ssoRegion: sso_region, + ssoRoleName: sso_role_name + })(); + }; + exports.resolveSsoCredentials = resolveSsoCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js +var require_resolveStaticCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveStaticCredentials = exports.isStaticCredsProfile = void 0; + var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1; + exports.isStaticCredsProfile = isStaticCredsProfile; + var resolveStaticCredentials = (profile) => Promise.resolve({ + accessKeyId: profile.aws_access_key_id, + secretAccessKey: profile.aws_secret_access_key, + sessionToken: profile.aws_session_token + }); + exports.resolveStaticCredentials = resolveStaticCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +var require_fromWebToken = __commonJS({ + "node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromWebToken = void 0; + var property_provider_1 = require_dist_cjs11(); + var fromWebToken = (init) => () => { + const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity } = init; + if (!roleAssumerWithWebIdentity) { + throw new property_provider_1.CredentialsProviderError(`Role Arn '${roleArn}' needs to be assumed with web identity, but no role assumption callback was provided.`, false); + } + return roleAssumerWithWebIdentity({ + RoleArn: roleArn, + RoleSessionName: roleSessionName !== null && roleSessionName !== void 0 ? roleSessionName : `aws-sdk-js-session-${Date.now()}`, + WebIdentityToken: webIdentityToken, + ProviderId: providerId, + PolicyArns: policyArns, + Policy: policy, + DurationSeconds: durationSeconds + }); + }; + exports.fromWebToken = fromWebToken; + } +}); + +// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +var require_fromTokenFile = __commonJS({ + "node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromTokenFile = void 0; + var property_provider_1 = require_dist_cjs11(); + var fs_1 = require("fs"); + var fromWebToken_1 = require_fromWebToken(); + var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE"; + var ENV_ROLE_ARN = "AWS_ROLE_ARN"; + var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME"; + var fromTokenFile = (init = {}) => async () => { + return resolveTokenFile(init); + }; + exports.fromTokenFile = fromTokenFile; + var resolveTokenFile = (init) => { + var _a, _b, _c; + const webIdentityTokenFile = (_a = init === null || init === void 0 ? void 0 : init.webIdentityTokenFile) !== null && _a !== void 0 ? _a : process.env[ENV_TOKEN_FILE]; + const roleArn = (_b = init === null || init === void 0 ? void 0 : init.roleArn) !== null && _b !== void 0 ? _b : process.env[ENV_ROLE_ARN]; + const roleSessionName = (_c = init === null || init === void 0 ? void 0 : init.roleSessionName) !== null && _c !== void 0 ? _c : process.env[ENV_ROLE_SESSION_NAME]; + if (!webIdentityTokenFile || !roleArn) { + throw new property_provider_1.CredentialsProviderError("Web identity configuration not specified"); + } + return (0, fromWebToken_1.fromWebToken)({ + ...init, + webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }), + roleArn, + roleSessionName + })(); + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +var require_dist_cjs39 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromTokenFile(), exports); + tslib_1.__exportStar(require_fromWebToken(), exports); + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js +var require_resolveWebIdentityCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveWebIdentityCredentials = exports.isWebIdentityProfile = void 0; + var credential_provider_web_identity_1 = require_dist_cjs39(); + var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1; + exports.isWebIdentityProfile = isWebIdentityProfile; + var resolveWebIdentityCredentials = async (profile, options) => (0, credential_provider_web_identity_1.fromTokenFile)({ + webIdentityTokenFile: profile.web_identity_token_file, + roleArn: profile.role_arn, + roleSessionName: profile.role_session_name, + roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity + })(); + exports.resolveWebIdentityCredentials = resolveWebIdentityCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js +var require_resolveProfileData = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveProfileData = void 0; + var property_provider_1 = require_dist_cjs11(); + var resolveAssumeRoleCredentials_1 = require_resolveAssumeRoleCredentials(); + var resolveSsoCredentials_1 = require_resolveSsoCredentials(); + var resolveStaticCredentials_1 = require_resolveStaticCredentials(); + var resolveWebIdentityCredentials_1 = require_resolveWebIdentityCredentials(); + var resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}) => { + const data = profiles[profileName]; + if (Object.keys(visitedProfiles).length > 0 && (0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { + return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); + } + if ((0, resolveAssumeRoleCredentials_1.isAssumeRoleProfile)(data)) { + return (0, resolveAssumeRoleCredentials_1.resolveAssumeRoleCredentials)(profileName, profiles, options, visitedProfiles); + } + if ((0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { + return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); + } + if ((0, resolveWebIdentityCredentials_1.isWebIdentityProfile)(data)) { + return (0, resolveWebIdentityCredentials_1.resolveWebIdentityCredentials)(data, options); + } + if ((0, resolveSsoCredentials_1.isSsoProfile)(data)) { + return (0, resolveSsoCredentials_1.resolveSsoCredentials)(data); + } + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`); + }; + exports.resolveProfileData = resolveProfileData; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js +var require_fromIni = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromIni = void 0; + var shared_ini_file_loader_1 = require_dist_cjs23(); + var resolveProfileData_1 = require_resolveProfileData(); + var fromIni = (init = {}) => async () => { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + return (0, resolveProfileData_1.resolveProfileData)((0, shared_ini_file_loader_1.getProfileName)(init), profiles, init); + }; + exports.fromIni = fromIni; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +var require_dist_cjs40 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromIni(), exports); + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js +var require_getValidatedProcessCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getValidatedProcessCredentials = void 0; + var getValidatedProcessCredentials = (profileName, data) => { + if (data.Version !== 1) { + throw Error(`Profile ${profileName} credential_process did not return Version 1.`); + } + if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) { + throw Error(`Profile ${profileName} credential_process returned invalid credentials.`); + } + if (data.Expiration) { + const currentTime = new Date(); + const expireTime = new Date(data.Expiration); + if (expireTime < currentTime) { + throw Error(`Profile ${profileName} credential_process returned expired credentials.`); + } + } + return { + accessKeyId: data.AccessKeyId, + secretAccessKey: data.SecretAccessKey, + ...data.SessionToken && { sessionToken: data.SessionToken }, + ...data.Expiration && { expiration: new Date(data.Expiration) } + }; + }; + exports.getValidatedProcessCredentials = getValidatedProcessCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js +var require_resolveProcessCredentials = __commonJS({ + "node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveProcessCredentials = void 0; + var property_provider_1 = require_dist_cjs11(); + var child_process_1 = require("child_process"); + var util_1 = require("util"); + var getValidatedProcessCredentials_1 = require_getValidatedProcessCredentials(); + var resolveProcessCredentials = async (profileName, profiles) => { + const profile = profiles[profileName]; + if (profiles[profileName]) { + const credentialProcess = profile["credential_process"]; + if (credentialProcess !== void 0) { + const execPromise = (0, util_1.promisify)(child_process_1.exec); + try { + const { stdout } = await execPromise(credentialProcess); + let data; + try { + data = JSON.parse(stdout.trim()); + } catch (_a) { + throw Error(`Profile ${profileName} credential_process returned invalid JSON.`); + } + return (0, getValidatedProcessCredentials_1.getValidatedProcessCredentials)(profileName, data); + } catch (error) { + throw new property_provider_1.CredentialsProviderError(error.message); + } + } else { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`); + } + } else { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`); + } + }; + exports.resolveProcessCredentials = resolveProcessCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js +var require_fromProcess = __commonJS({ + "node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromProcess = void 0; + var shared_ini_file_loader_1 = require_dist_cjs23(); + var resolveProcessCredentials_1 = require_resolveProcessCredentials(); + var fromProcess = (init = {}) => async () => { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + return (0, resolveProcessCredentials_1.resolveProcessCredentials)((0, shared_ini_file_loader_1.getProfileName)(init), profiles); + }; + exports.fromProcess = fromProcess; + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +var require_dist_cjs41 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromProcess(), exports); + } +}); + +// node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js +var require_remoteProvider = __commonJS({ + "node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.remoteProvider = exports.ENV_IMDS_DISABLED = void 0; + var credential_provider_imds_1 = require_dist_cjs27(); + var property_provider_1 = require_dist_cjs11(); + exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; + var remoteProvider = (init) => { + if (process.env[credential_provider_imds_1.ENV_CMDS_RELATIVE_URI] || process.env[credential_provider_imds_1.ENV_CMDS_FULL_URI]) { + return (0, credential_provider_imds_1.fromContainerMetadata)(init); + } + if (process.env[exports.ENV_IMDS_DISABLED]) { + return async () => { + throw new property_provider_1.CredentialsProviderError("EC2 Instance Metadata Service access disabled"); + }; + } + return (0, credential_provider_imds_1.fromInstanceMetadata)(init); + }; + exports.remoteProvider = remoteProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js +var require_defaultProvider = __commonJS({ + "node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.defaultProvider = void 0; + var credential_provider_env_1 = require_dist_cjs22(); + var credential_provider_ini_1 = require_dist_cjs40(); + var credential_provider_process_1 = require_dist_cjs41(); + var credential_provider_sso_1 = require_dist_cjs38(); + var credential_provider_web_identity_1 = require_dist_cjs39(); + var property_provider_1 = require_dist_cjs11(); + var shared_ini_file_loader_1 = require_dist_cjs23(); + var remoteProvider_1 = require_remoteProvider(); + var defaultProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)(...init.profile || process.env[shared_ini_file_loader_1.ENV_PROFILE] ? [] : [(0, credential_provider_env_1.fromEnv)()], (0, credential_provider_sso_1.fromSSO)(init), (0, credential_provider_ini_1.fromIni)(init), (0, credential_provider_process_1.fromProcess)(init), (0, credential_provider_web_identity_1.fromTokenFile)(init), (0, remoteProvider_1.remoteProvider)(init), async () => { + throw new property_provider_1.CredentialsProviderError("Could not load credentials from any providers", false); + }), (credentials) => credentials.expiration !== void 0 && credentials.expiration.getTime() - Date.now() < 3e5, (credentials) => credentials.expiration !== void 0); + exports.defaultProvider = defaultProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +var require_dist_cjs42 = __commonJS({ + "node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_defaultProvider(), exports); + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/endpoints.js +var require_endpoints2 = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/endpoints.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.defaultRegionInfoProvider = void 0; + var config_resolver_1 = require_dist_cjs3(); + var regionHash = { + "aws-global": { + variants: [ + { + hostname: "sts.amazonaws.com", + tags: [] + } + ], + signingRegion: "us-east-1" + }, + "us-east-1": { + variants: [ + { + hostname: "sts-fips.us-east-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-east-2": { + variants: [ + { + hostname: "sts-fips.us-east-2.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-gov-east-1": { + variants: [ + { + hostname: "sts.us-gov-east-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-gov-west-1": { + variants: [ + { + hostname: "sts.us-gov-west-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-west-1": { + variants: [ + { + hostname: "sts-fips.us-west-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-west-2": { + variants: [ + { + hostname: "sts-fips.us-west-2.amazonaws.com", + tags: ["fips"] + } + ] + } + }; + var partitionHash = { + aws: { + regions: [ + "af-south-1", + "ap-east-1", + "ap-northeast-1", + "ap-northeast-2", + "ap-northeast-3", + "ap-south-1", + "ap-southeast-1", + "ap-southeast-2", + "ap-southeast-3", + "aws-global", + "ca-central-1", + "eu-central-1", + "eu-north-1", + "eu-south-1", + "eu-west-1", + "eu-west-2", + "eu-west-3", + "me-central-1", + "me-south-1", + "sa-east-1", + "us-east-1", + "us-east-1-fips", + "us-east-2", + "us-east-2-fips", + "us-west-1", + "us-west-1-fips", + "us-west-2", + "us-west-2-fips" + ], + regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "sts.{region}.amazonaws.com", + tags: [] + }, + { + hostname: "sts-fips.{region}.amazonaws.com", + tags: ["fips"] + }, + { + hostname: "sts-fips.{region}.api.aws", + tags: ["dualstack", "fips"] + }, + { + hostname: "sts.{region}.api.aws", + tags: ["dualstack"] + } + ] + }, + "aws-cn": { + regions: ["cn-north-1", "cn-northwest-1"], + regionRegex: "^cn\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "sts.{region}.amazonaws.com.cn", + tags: [] + }, + { + hostname: "sts-fips.{region}.amazonaws.com.cn", + tags: ["fips"] + }, + { + hostname: "sts-fips.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack", "fips"] + }, + { + hostname: "sts.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack"] + } + ] + }, + "aws-iso": { + regions: ["us-iso-east-1", "us-iso-west-1"], + regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "sts.{region}.c2s.ic.gov", + tags: [] + }, + { + hostname: "sts-fips.{region}.c2s.ic.gov", + tags: ["fips"] + } + ] + }, + "aws-iso-b": { + regions: ["us-isob-east-1"], + regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "sts.{region}.sc2s.sgov.gov", + tags: [] + }, + { + hostname: "sts-fips.{region}.sc2s.sgov.gov", + tags: ["fips"] + } + ] + }, + "aws-us-gov": { + regions: ["us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"], + regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "sts.{region}.amazonaws.com", + tags: [] + }, + { + hostname: "sts.{region}.amazonaws.com", + tags: ["fips"] + }, + { + hostname: "sts-fips.{region}.api.aws", + tags: ["dualstack", "fips"] + }, + { + hostname: "sts.{region}.api.aws", + tags: ["dualstack"] + } + ] + } + }; + var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { + ...options, + signingService: "sts", + regionHash, + partitionHash + }); + exports.defaultRegionInfoProvider = defaultRegionInfoProvider; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared2 = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRuntimeConfig = void 0; + var url_parser_1 = require_dist_cjs26(); + var endpoints_1 = require_endpoints2(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return { + apiVersion: "2011-06-15", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "STS", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl + }; + }; + exports.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +var require_runtimeConfig2 = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRuntimeConfig = void 0; + var tslib_1 = require_tslib(); + var package_json_1 = tslib_1.__importDefault(require_package2()); + var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers(); + var config_resolver_1 = require_dist_cjs3(); + var credential_provider_node_1 = require_dist_cjs42(); + var hash_node_1 = require_dist_cjs29(); + var middleware_retry_1 = require_dist_cjs10(); + var node_config_provider_1 = require_dist_cjs24(); + var node_http_handler_1 = require_dist_cjs31(); + var util_base64_node_1 = require_dist_cjs32(); + var util_body_length_node_1 = require_dist_cjs33(); + var util_user_agent_node_1 = require_dist_cjs34(); + var util_utf8_node_1 = require_dist_cjs35(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared2(); + var smithy_client_1 = require_dist_cjs19(); + var util_defaults_mode_node_1 = require_dist_cjs36(); + var smithy_client_2 = require_dist_cjs19(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; + (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); + const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), + defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE + }), + sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), + streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, + utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8 + }; + }; + exports.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +var require_STSClient = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.STSClient = void 0; + var config_resolver_1 = require_dist_cjs3(); + var middleware_content_length_1 = require_dist_cjs5(); + var middleware_host_header_1 = require_dist_cjs6(); + var middleware_logger_1 = require_dist_cjs7(); + var middleware_recursion_detection_1 = require_dist_cjs8(); + var middleware_retry_1 = require_dist_cjs10(); + var middleware_sdk_sts_1 = require_dist_cjs21(); + var middleware_user_agent_1 = require_dist_cjs17(); + var smithy_client_1 = require_dist_cjs19(); + var runtimeConfig_1 = require_runtimeConfig2(); + var STSClient = class extends smithy_client_1.Client { + constructor(configuration) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); + const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); + const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); + const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); + const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); + const _config_5 = (0, middleware_sdk_sts_1.resolveStsAuthConfig)(_config_4, { stsClientCtor: STSClient }); + const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); + super(_config_6); + this.config = _config_6; + this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + } + destroy() { + super.destroy(); + } + }; + exports.STSClient = STSClient; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/STS.js +var require_STS = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/STS.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.STS = void 0; + var AssumeRoleCommand_1 = require_AssumeRoleCommand(); + var AssumeRoleWithSAMLCommand_1 = require_AssumeRoleWithSAMLCommand(); + var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); + var DecodeAuthorizationMessageCommand_1 = require_DecodeAuthorizationMessageCommand(); + var GetAccessKeyInfoCommand_1 = require_GetAccessKeyInfoCommand(); + var GetCallerIdentityCommand_1 = require_GetCallerIdentityCommand(); + var GetFederationTokenCommand_1 = require_GetFederationTokenCommand(); + var GetSessionTokenCommand_1 = require_GetSessionTokenCommand(); + var STSClient_1 = require_STSClient(); + var STS = class extends STSClient_1.STSClient { + assumeRole(args, optionsOrCb, cb) { + const command = new AssumeRoleCommand_1.AssumeRoleCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + assumeRoleWithSAML(args, optionsOrCb, cb) { + const command = new AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + assumeRoleWithWebIdentity(args, optionsOrCb, cb) { + const command = new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + decodeAuthorizationMessage(args, optionsOrCb, cb) { + const command = new DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getAccessKeyInfo(args, optionsOrCb, cb) { + const command = new GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getCallerIdentity(args, optionsOrCb, cb) { + const command = new GetCallerIdentityCommand_1.GetCallerIdentityCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getFederationToken(args, optionsOrCb, cb) { + const command = new GetFederationTokenCommand_1.GetFederationTokenCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getSessionToken(args, optionsOrCb, cb) { + const command = new GetSessionTokenCommand_1.GetSessionTokenCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + }; + exports.STS = STS; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js +var require_commands2 = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_AssumeRoleCommand(), exports); + tslib_1.__exportStar(require_AssumeRoleWithSAMLCommand(), exports); + tslib_1.__exportStar(require_AssumeRoleWithWebIdentityCommand(), exports); + tslib_1.__exportStar(require_DecodeAuthorizationMessageCommand(), exports); + tslib_1.__exportStar(require_GetAccessKeyInfoCommand(), exports); + tslib_1.__exportStar(require_GetCallerIdentityCommand(), exports); + tslib_1.__exportStar(require_GetFederationTokenCommand(), exports); + tslib_1.__exportStar(require_GetSessionTokenCommand(), exports); + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js +var require_defaultRoleAssumers = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; + var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers(); + var STSClient_1 = require_STSClient(); + var getCustomizableStsClientCtor = (baseCtor, customizations) => { + if (!customizations) + return baseCtor; + else + return class CustomizableSTSClient extends baseCtor { + constructor(config) { + super(config); + for (const customization of customizations) { + this.middlewareStack.use(customization); + } + } + }; + }; + var getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumer)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); + exports.getDefaultRoleAssumer = getDefaultRoleAssumer; + var getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); + exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; + var decorateDefaultCredentialProvider = (provider) => (input) => provider({ + roleAssumer: (0, exports.getDefaultRoleAssumer)(input), + roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input), + ...input + }); + exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js +var require_models2 = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_models_0(), exports); + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/index.js +var require_dist_cjs43 = __commonJS({ + "node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.STSServiceException = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_STS(), exports); + tslib_1.__exportStar(require_STSClient(), exports); + tslib_1.__exportStar(require_commands2(), exports); + tslib_1.__exportStar(require_defaultRoleAssumers(), exports); + tslib_1.__exportStar(require_models2(), exports); + var STSServiceException_1 = require_STSServiceException(); + Object.defineProperty(exports, "STSServiceException", { enumerable: true, get: function() { + return STSServiceException_1.STSServiceException; + } }); + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoints.js +var require_endpoints3 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoints.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.defaultRegionInfoProvider = void 0; + var config_resolver_1 = require_dist_cjs3(); + var regionHash = { + "us-east-1": { + variants: [ + { + hostname: "codedeploy-fips.us-east-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-east-2": { + variants: [ + { + hostname: "codedeploy-fips.us-east-2.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-gov-east-1": { + variants: [ + { + hostname: "codedeploy-fips.us-gov-east-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-gov-west-1": { + variants: [ + { + hostname: "codedeploy-fips.us-gov-west-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-west-1": { + variants: [ + { + hostname: "codedeploy-fips.us-west-1.amazonaws.com", + tags: ["fips"] + } + ] + }, + "us-west-2": { + variants: [ + { + hostname: "codedeploy-fips.us-west-2.amazonaws.com", + tags: ["fips"] + } + ] + } + }; + var partitionHash = { + aws: { + regions: [ + "af-south-1", + "ap-east-1", + "ap-northeast-1", + "ap-northeast-2", + "ap-northeast-3", + "ap-south-1", + "ap-southeast-1", + "ap-southeast-2", + "ap-southeast-3", + "ca-central-1", + "eu-central-1", + "eu-north-1", + "eu-south-1", + "eu-west-1", + "eu-west-2", + "eu-west-3", + "me-central-1", + "me-south-1", + "sa-east-1", + "us-east-1", + "us-east-1-fips", + "us-east-2", + "us-east-2-fips", + "us-west-1", + "us-west-1-fips", + "us-west-2", + "us-west-2-fips" + ], + regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "codedeploy.{region}.amazonaws.com", + tags: [] + }, + { + hostname: "codedeploy-fips.{region}.amazonaws.com", + tags: ["fips"] + }, + { + hostname: "codedeploy-fips.{region}.api.aws", + tags: ["dualstack", "fips"] + }, + { + hostname: "codedeploy.{region}.api.aws", + tags: ["dualstack"] + } + ] + }, + "aws-cn": { + regions: ["cn-north-1", "cn-northwest-1"], + regionRegex: "^cn\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "codedeploy.{region}.amazonaws.com.cn", + tags: [] + }, + { + hostname: "codedeploy-fips.{region}.amazonaws.com.cn", + tags: ["fips"] + }, + { + hostname: "codedeploy-fips.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack", "fips"] + }, + { + hostname: "codedeploy.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack"] + } + ] + }, + "aws-iso": { + regions: ["us-iso-east-1", "us-iso-west-1"], + regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "codedeploy.{region}.c2s.ic.gov", + tags: [] + }, + { + hostname: "codedeploy-fips.{region}.c2s.ic.gov", + tags: ["fips"] + } + ] + }, + "aws-iso-b": { + regions: ["us-isob-east-1"], + regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "codedeploy.{region}.sc2s.sgov.gov", + tags: [] + }, + { + hostname: "codedeploy-fips.{region}.sc2s.sgov.gov", + tags: ["fips"] + } + ] + }, + "aws-us-gov": { + regions: ["us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"], + regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "codedeploy.{region}.amazonaws.com", + tags: [] + }, + { + hostname: "codedeploy-fips.{region}.amazonaws.com", + tags: ["fips"] + }, + { + hostname: "codedeploy-fips.{region}.api.aws", + tags: ["dualstack", "fips"] + }, + { + hostname: "codedeploy.{region}.api.aws", + tags: ["dualstack"] + } + ] + } + }; + var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { + ...options, + signingService: "codedeploy", + regionHash, + partitionHash + }); + exports.defaultRegionInfoProvider = defaultRegionInfoProvider; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared3 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.shared.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRuntimeConfig = void 0; + var url_parser_1 = require_dist_cjs26(); + var endpoints_1 = require_endpoints3(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return { + apiVersion: "2014-10-06", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "CodeDeploy", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl + }; + }; + exports.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.js +var require_runtimeConfig3 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRuntimeConfig = void 0; + var tslib_1 = require_tslib(); + var package_json_1 = tslib_1.__importDefault(require_package()); + var client_sts_1 = require_dist_cjs43(); + var config_resolver_1 = require_dist_cjs3(); + var credential_provider_node_1 = require_dist_cjs42(); + var hash_node_1 = require_dist_cjs29(); + var middleware_retry_1 = require_dist_cjs10(); + var node_config_provider_1 = require_dist_cjs24(); + var node_http_handler_1 = require_dist_cjs31(); + var util_base64_node_1 = require_dist_cjs32(); + var util_body_length_node_1 = require_dist_cjs33(); + var util_user_agent_node_1 = require_dist_cjs34(); + var util_utf8_node_1 = require_dist_cjs35(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared3(); + var smithy_client_1 = require_dist_cjs19(); + var util_defaults_mode_node_1 = require_dist_cjs36(); + var smithy_client_2 = require_dist_cjs19(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; + (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); + const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), + defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE + }), + sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), + streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, + utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8 + }; + }; + exports.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/CodeDeployClient.js +var require_CodeDeployClient = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/CodeDeployClient.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CodeDeployClient = void 0; + var config_resolver_1 = require_dist_cjs3(); + var middleware_content_length_1 = require_dist_cjs5(); + var middleware_host_header_1 = require_dist_cjs6(); + var middleware_logger_1 = require_dist_cjs7(); + var middleware_recursion_detection_1 = require_dist_cjs8(); + var middleware_retry_1 = require_dist_cjs10(); + var middleware_signing_1 = require_dist_cjs16(); + var middleware_user_agent_1 = require_dist_cjs17(); + var smithy_client_1 = require_dist_cjs19(); + var runtimeConfig_1 = require_runtimeConfig3(); + var CodeDeployClient = class extends smithy_client_1.Client { + constructor(configuration) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); + const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); + const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); + const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); + const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); + const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4); + const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); + super(_config_6); + this.config = _config_6; + this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + } + destroy() { + super.destroy(); + } + }; + exports.CodeDeployClient = CodeDeployClient; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/CodeDeployServiceException.js +var require_CodeDeployServiceException = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/CodeDeployServiceException.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CodeDeployServiceException = void 0; + var smithy_client_1 = require_dist_cjs19(); + var CodeDeployServiceException = class extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, CodeDeployServiceException.prototype); + } + }; + exports.CodeDeployServiceException = CodeDeployServiceException; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/models_0.js +var require_models_03 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/models_0.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.TargetLabel = exports.DeploymentTargetType = exports.TargetStatus = exports.FileExistsBehavior = exports.ErrorCode = exports.DeploymentCreator = exports.InvalidDeploymentIdException = exports.InvalidComputePlatformException = exports.InstanceIdRequiredException = exports.DeploymentIdRequiredException = exports.DeploymentDoesNotExistException = exports.InstanceStatus = exports.LifecycleEventStatus = exports.LifecycleErrorCode = exports._InstanceType = exports.InvalidDeploymentGroupNameException = exports.DeploymentGroupNameRequiredException = exports.DeploymentConfigDoesNotExistException = exports.TriggerEventType = exports.OutdatedInstancesStrategy = exports.TagFilterType = exports.DeploymentStatus = exports.EC2TagFilterType = exports.DeploymentType = exports.DeploymentOption = exports.InstanceAction = exports.GreenFleetProvisioningAction = exports.DeploymentReadyAction = exports.RevisionRequiredException = exports.InvalidRevisionException = exports.InvalidApplicationNameException = exports.BatchLimitExceededException = exports.BundleType = exports.RevisionLocationType = exports.AutoRollbackEvent = exports.ArnNotSupportedException = exports.ApplicationRevisionSortBy = exports.ApplicationNameRequiredException = exports.ApplicationLimitExceededException = exports.ComputePlatform = exports.ApplicationDoesNotExistException = exports.ApplicationAlreadyExistsException = exports.AlarmsLimitExceededException = exports.TagRequiredException = exports.TagLimitExceededException = exports.InvalidTagException = exports.InvalidInstanceNameException = exports.InstanceNotRegisteredException = exports.InstanceNameRequiredException = exports.InstanceLimitExceededException = void 0; + exports.LifecycleHookLimitExceededException = exports.InvalidTriggerConfigException = exports.InvalidTargetGroupPairException = exports.InvalidOnPremisesTagCombinationException = exports.InvalidInputException = exports.InvalidECSServiceException = exports.InvalidEC2TagException = exports.InvalidEC2TagCombinationException = exports.InvalidDeploymentStyleException = exports.InvalidBlueGreenDeploymentConfigurationException = exports.ECSServiceMappingLimitExceededException = exports.DeploymentGroupLimitExceededException = exports.DeploymentGroupAlreadyExistsException = exports.InvalidMinimumHealthyHostValueException = exports.DeploymentConfigNameRequiredException = exports.DeploymentConfigLimitExceededException = exports.DeploymentConfigAlreadyExistsException = exports.TrafficRoutingType = exports.MinimumHealthyHostsType = exports.ThrottlingException = exports.RevisionDoesNotExistException = exports.InvalidUpdateOutdatedInstancesOnlyValueException = exports.InvalidTrafficRoutingConfigurationException = exports.InvalidTargetInstancesException = exports.InvalidRoleException = exports.InvalidLoadBalancerInfoException = exports.InvalidIgnoreApplicationStopFailuresValueException = exports.InvalidGitHubAccountTokenException = exports.InvalidFileExistsBehaviorException = exports.InvalidDeploymentConfigNameException = exports.InvalidAutoScalingGroupException = exports.InvalidAutoRollbackConfigException = exports.InvalidAlarmConfigException = exports.DescriptionTooLongException = exports.DeploymentLimitExceededException = exports.DeploymentGroupDoesNotExistException = exports.InvalidTagsToAddException = exports.UnsupportedActionForDeploymentTypeException = exports.InvalidDeploymentWaitTypeException = exports.InvalidDeploymentStatusException = exports.DeploymentIsNotInReadyStateException = exports.DeploymentAlreadyCompletedException = exports.DeploymentWaitType = exports.BucketNameFilterRequiredException = exports.InvalidDeploymentTargetIdException = exports.InstanceDoesNotExistException = exports.DeploymentTargetListSizeExceededException = exports.DeploymentTargetIdRequiredException = exports.DeploymentTargetDoesNotExistException = exports.DeploymentNotStartedException = void 0; + exports.AutoScalingGroupFilterSensitiveLog = exports.AutoRollbackConfigurationFilterSensitiveLog = exports.AppSpecContentFilterSensitiveLog = exports.ApplicationInfoFilterSensitiveLog = exports.AlarmConfigurationFilterSensitiveLog = exports.AlarmFilterSensitiveLog = exports.AddTagsToOnPremisesInstancesInputFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.StopStatus = exports.MultipleIamArnsProvidedException = exports.InvalidIamUserArnException = exports.InvalidIamSessionArnException = exports.InstanceNameAlreadyRegisteredException = exports.IamUserArnRequiredException = exports.IamUserArnAlreadyRegisteredException = exports.IamSessionArnAlreadyRegisteredException = exports.IamArnRequiredException = exports.LifecycleEventAlreadyCompletedException = exports.InvalidLifecycleEventHookExecutionStatusException = exports.InvalidLifecycleEventHookExecutionIdException = exports.ResourceArnRequiredException = exports.InvalidArnException = exports.RegistrationStatus = exports.InvalidTagFilterException = exports.InvalidRegistrationStatusException = exports.TargetFilterName = exports.InvalidTimeRangeException = exports.InvalidExternalIdException = exports.InvalidTargetFilterNameException = exports.InvalidInstanceTypeException = exports.InvalidInstanceStatusException = exports.InvalidDeploymentInstanceTypeException = exports.SortOrder = exports.ListStateFilterAction = exports.InvalidSortOrderException = exports.InvalidSortByException = exports.InvalidNextTokenException = exports.InvalidKeyPrefixFilterException = exports.InvalidDeployedStateFilterException = exports.InvalidBucketNameFilterException = exports.ResourceValidationException = exports.OperationNotSupportedException = exports.InvalidGitHubAccountTokenNameException = exports.GitHubAccountTokenNameRequiredException = exports.GitHubAccountTokenDoesNotExistException = exports.InvalidOperationException = exports.DeploymentConfigInUseException = exports.TriggerTargetsLimitExceededException = exports.TagSetListLimitExceededException = exports.RoleRequiredException = void 0; + exports.LambdaTargetFilterSensitiveLog = exports.LambdaFunctionInfoFilterSensitiveLog = exports.InstanceTargetFilterSensitiveLog = exports.ECSTargetFilterSensitiveLog = exports.ECSTaskSetFilterSensitiveLog = exports.CloudFormationTargetFilterSensitiveLog = exports.BatchGetDeploymentTargetsInputFilterSensitiveLog = exports.BatchGetDeploymentsOutputFilterSensitiveLog = exports.DeploymentInfoFilterSensitiveLog = exports.TargetInstancesFilterSensitiveLog = exports.RollbackInfoFilterSensitiveLog = exports.RelatedDeploymentsFilterSensitiveLog = exports.ErrorInformationFilterSensitiveLog = exports.DeploymentOverviewFilterSensitiveLog = exports.BatchGetDeploymentsInputFilterSensitiveLog = exports.BatchGetDeploymentInstancesOutputFilterSensitiveLog = exports.InstanceSummaryFilterSensitiveLog = exports.LifecycleEventFilterSensitiveLog = exports.DiagnosticsFilterSensitiveLog = exports.BatchGetDeploymentInstancesInputFilterSensitiveLog = exports.BatchGetDeploymentGroupsOutputFilterSensitiveLog = exports.DeploymentGroupInfoFilterSensitiveLog = exports.TriggerConfigFilterSensitiveLog = exports.OnPremisesTagSetFilterSensitiveLog = exports.TagFilterFilterSensitiveLog = exports.LoadBalancerInfoFilterSensitiveLog = exports.TargetGroupPairInfoFilterSensitiveLog = exports.TrafficRouteFilterSensitiveLog = exports.TargetGroupInfoFilterSensitiveLog = exports.ELBInfoFilterSensitiveLog = exports.LastDeploymentInfoFilterSensitiveLog = exports.ECSServiceFilterSensitiveLog = exports.EC2TagSetFilterSensitiveLog = exports.EC2TagFilterFilterSensitiveLog = exports.DeploymentStyleFilterSensitiveLog = exports.BlueGreenDeploymentConfigurationFilterSensitiveLog = exports.BlueInstanceTerminationOptionFilterSensitiveLog = exports.GreenFleetProvisioningOptionFilterSensitiveLog = exports.DeploymentReadyOptionFilterSensitiveLog = exports.BatchGetDeploymentGroupsInputFilterSensitiveLog = exports.BatchGetApplicationsOutputFilterSensitiveLog = exports.BatchGetApplicationsInputFilterSensitiveLog = exports.BatchGetApplicationRevisionsOutputFilterSensitiveLog = exports.RevisionInfoFilterSensitiveLog = exports.GenericRevisionInfoFilterSensitiveLog = exports.BatchGetApplicationRevisionsInputFilterSensitiveLog = exports.RevisionLocationFilterSensitiveLog = exports.RawStringFilterSensitiveLog = exports.S3LocationFilterSensitiveLog = exports.GitHubLocationFilterSensitiveLog = void 0; + exports.ListDeploymentConfigsOutputFilterSensitiveLog = exports.ListDeploymentConfigsInputFilterSensitiveLog = exports.ListApplicationsOutputFilterSensitiveLog = exports.ListApplicationsInputFilterSensitiveLog = exports.ListApplicationRevisionsOutputFilterSensitiveLog = exports.ListApplicationRevisionsInputFilterSensitiveLog = exports.GetOnPremisesInstanceOutputFilterSensitiveLog = exports.GetOnPremisesInstanceInputFilterSensitiveLog = exports.GetDeploymentTargetOutputFilterSensitiveLog = exports.GetDeploymentTargetInputFilterSensitiveLog = exports.GetDeploymentInstanceOutputFilterSensitiveLog = exports.GetDeploymentInstanceInputFilterSensitiveLog = exports.GetDeploymentGroupOutputFilterSensitiveLog = exports.GetDeploymentGroupInputFilterSensitiveLog = exports.GetDeploymentConfigOutputFilterSensitiveLog = exports.DeploymentConfigInfoFilterSensitiveLog = exports.GetDeploymentConfigInputFilterSensitiveLog = exports.GetDeploymentOutputFilterSensitiveLog = exports.GetDeploymentInputFilterSensitiveLog = exports.GetApplicationRevisionOutputFilterSensitiveLog = exports.GetApplicationRevisionInputFilterSensitiveLog = exports.GetApplicationOutputFilterSensitiveLog = exports.GetApplicationInputFilterSensitiveLog = exports.DeregisterOnPremisesInstanceInputFilterSensitiveLog = exports.DeleteResourcesByExternalIdOutputFilterSensitiveLog = exports.DeleteResourcesByExternalIdInputFilterSensitiveLog = exports.DeleteGitHubAccountTokenOutputFilterSensitiveLog = exports.DeleteGitHubAccountTokenInputFilterSensitiveLog = exports.DeleteDeploymentGroupOutputFilterSensitiveLog = exports.DeleteDeploymentGroupInputFilterSensitiveLog = exports.DeleteDeploymentConfigInputFilterSensitiveLog = exports.DeleteApplicationInputFilterSensitiveLog = exports.CreateDeploymentGroupOutputFilterSensitiveLog = exports.CreateDeploymentGroupInputFilterSensitiveLog = exports.CreateDeploymentConfigOutputFilterSensitiveLog = exports.CreateDeploymentConfigInputFilterSensitiveLog = exports.TrafficRoutingConfigFilterSensitiveLog = exports.TimeBasedLinearFilterSensitiveLog = exports.TimeBasedCanaryFilterSensitiveLog = exports.MinimumHealthyHostsFilterSensitiveLog = exports.CreateDeploymentOutputFilterSensitiveLog = exports.CreateDeploymentInputFilterSensitiveLog = exports.CreateApplicationOutputFilterSensitiveLog = exports.CreateApplicationInputFilterSensitiveLog = exports.ContinueDeploymentInputFilterSensitiveLog = exports.BatchGetOnPremisesInstancesOutputFilterSensitiveLog = exports.InstanceInfoFilterSensitiveLog = exports.BatchGetOnPremisesInstancesInputFilterSensitiveLog = exports.BatchGetDeploymentTargetsOutputFilterSensitiveLog = exports.DeploymentTargetFilterSensitiveLog = void 0; + exports.UpdateDeploymentGroupOutputFilterSensitiveLog = exports.UpdateDeploymentGroupInputFilterSensitiveLog = exports.UpdateApplicationInputFilterSensitiveLog = exports.UntagResourceOutputFilterSensitiveLog = exports.UntagResourceInputFilterSensitiveLog = exports.TagResourceOutputFilterSensitiveLog = exports.TagResourceInputFilterSensitiveLog = exports.StopDeploymentOutputFilterSensitiveLog = exports.StopDeploymentInputFilterSensitiveLog = exports.SkipWaitTimeForInstanceTerminationInputFilterSensitiveLog = exports.RemoveTagsFromOnPremisesInstancesInputFilterSensitiveLog = exports.RegisterOnPremisesInstanceInputFilterSensitiveLog = exports.RegisterApplicationRevisionInputFilterSensitiveLog = exports.PutLifecycleEventHookExecutionStatusOutputFilterSensitiveLog = exports.PutLifecycleEventHookExecutionStatusInputFilterSensitiveLog = exports.ListTagsForResourceOutputFilterSensitiveLog = exports.ListTagsForResourceInputFilterSensitiveLog = exports.ListOnPremisesInstancesOutputFilterSensitiveLog = exports.ListOnPremisesInstancesInputFilterSensitiveLog = exports.ListGitHubAccountTokenNamesOutputFilterSensitiveLog = exports.ListGitHubAccountTokenNamesInputFilterSensitiveLog = exports.ListDeploymentTargetsOutputFilterSensitiveLog = exports.ListDeploymentTargetsInputFilterSensitiveLog = exports.ListDeploymentsOutputFilterSensitiveLog = exports.ListDeploymentsInputFilterSensitiveLog = exports.TimeRangeFilterSensitiveLog = exports.ListDeploymentInstancesOutputFilterSensitiveLog = exports.ListDeploymentInstancesInputFilterSensitiveLog = exports.ListDeploymentGroupsOutputFilterSensitiveLog = exports.ListDeploymentGroupsInputFilterSensitiveLog = void 0; + var CodeDeployServiceException_1 = require_CodeDeployServiceException(); + var InstanceLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InstanceLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "InstanceLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InstanceLimitExceededException.prototype); + } + }; + exports.InstanceLimitExceededException = InstanceLimitExceededException; + var InstanceNameRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InstanceNameRequiredException", + $fault: "client", + ...opts + }); + this.name = "InstanceNameRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InstanceNameRequiredException.prototype); + } + }; + exports.InstanceNameRequiredException = InstanceNameRequiredException; + var InstanceNotRegisteredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InstanceNotRegisteredException", + $fault: "client", + ...opts + }); + this.name = "InstanceNotRegisteredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InstanceNotRegisteredException.prototype); + } + }; + exports.InstanceNotRegisteredException = InstanceNotRegisteredException; + var InvalidInstanceNameException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidInstanceNameException", + $fault: "client", + ...opts + }); + this.name = "InvalidInstanceNameException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidInstanceNameException.prototype); + } + }; + exports.InvalidInstanceNameException = InvalidInstanceNameException; + var InvalidTagException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTagException", + $fault: "client", + ...opts + }); + this.name = "InvalidTagException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTagException.prototype); + } + }; + exports.InvalidTagException = InvalidTagException; + var TagLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "TagLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "TagLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TagLimitExceededException.prototype); + } + }; + exports.TagLimitExceededException = TagLimitExceededException; + var TagRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "TagRequiredException", + $fault: "client", + ...opts + }); + this.name = "TagRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TagRequiredException.prototype); + } + }; + exports.TagRequiredException = TagRequiredException; + var AlarmsLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "AlarmsLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "AlarmsLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, AlarmsLimitExceededException.prototype); + } + }; + exports.AlarmsLimitExceededException = AlarmsLimitExceededException; + var ApplicationAlreadyExistsException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ApplicationAlreadyExistsException", + $fault: "client", + ...opts + }); + this.name = "ApplicationAlreadyExistsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ApplicationAlreadyExistsException.prototype); + } + }; + exports.ApplicationAlreadyExistsException = ApplicationAlreadyExistsException; + var ApplicationDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ApplicationDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "ApplicationDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ApplicationDoesNotExistException.prototype); + } + }; + exports.ApplicationDoesNotExistException = ApplicationDoesNotExistException; + var ComputePlatform; + (function(ComputePlatform2) { + ComputePlatform2["ECS"] = "ECS"; + ComputePlatform2["LAMBDA"] = "Lambda"; + ComputePlatform2["SERVER"] = "Server"; + })(ComputePlatform = exports.ComputePlatform || (exports.ComputePlatform = {})); + var ApplicationLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ApplicationLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "ApplicationLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ApplicationLimitExceededException.prototype); + } + }; + exports.ApplicationLimitExceededException = ApplicationLimitExceededException; + var ApplicationNameRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ApplicationNameRequiredException", + $fault: "client", + ...opts + }); + this.name = "ApplicationNameRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ApplicationNameRequiredException.prototype); + } + }; + exports.ApplicationNameRequiredException = ApplicationNameRequiredException; + var ApplicationRevisionSortBy; + (function(ApplicationRevisionSortBy2) { + ApplicationRevisionSortBy2["FirstUsedTime"] = "firstUsedTime"; + ApplicationRevisionSortBy2["LastUsedTime"] = "lastUsedTime"; + ApplicationRevisionSortBy2["RegisterTime"] = "registerTime"; + })(ApplicationRevisionSortBy = exports.ApplicationRevisionSortBy || (exports.ApplicationRevisionSortBy = {})); + var ArnNotSupportedException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ArnNotSupportedException", + $fault: "client", + ...opts + }); + this.name = "ArnNotSupportedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ArnNotSupportedException.prototype); + } + }; + exports.ArnNotSupportedException = ArnNotSupportedException; + var AutoRollbackEvent; + (function(AutoRollbackEvent2) { + AutoRollbackEvent2["DEPLOYMENT_FAILURE"] = "DEPLOYMENT_FAILURE"; + AutoRollbackEvent2["DEPLOYMENT_STOP_ON_ALARM"] = "DEPLOYMENT_STOP_ON_ALARM"; + AutoRollbackEvent2["DEPLOYMENT_STOP_ON_REQUEST"] = "DEPLOYMENT_STOP_ON_REQUEST"; + })(AutoRollbackEvent = exports.AutoRollbackEvent || (exports.AutoRollbackEvent = {})); + var RevisionLocationType; + (function(RevisionLocationType2) { + RevisionLocationType2["AppSpecContent"] = "AppSpecContent"; + RevisionLocationType2["GitHub"] = "GitHub"; + RevisionLocationType2["S3"] = "S3"; + RevisionLocationType2["String"] = "String"; + })(RevisionLocationType = exports.RevisionLocationType || (exports.RevisionLocationType = {})); + var BundleType; + (function(BundleType2) { + BundleType2["JSON"] = "JSON"; + BundleType2["Tar"] = "tar"; + BundleType2["TarGZip"] = "tgz"; + BundleType2["YAML"] = "YAML"; + BundleType2["Zip"] = "zip"; + })(BundleType = exports.BundleType || (exports.BundleType = {})); + var BatchLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "BatchLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "BatchLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, BatchLimitExceededException.prototype); + } + }; + exports.BatchLimitExceededException = BatchLimitExceededException; + var InvalidApplicationNameException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidApplicationNameException", + $fault: "client", + ...opts + }); + this.name = "InvalidApplicationNameException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidApplicationNameException.prototype); + } + }; + exports.InvalidApplicationNameException = InvalidApplicationNameException; + var InvalidRevisionException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidRevisionException", + $fault: "client", + ...opts + }); + this.name = "InvalidRevisionException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidRevisionException.prototype); + } + }; + exports.InvalidRevisionException = InvalidRevisionException; + var RevisionRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "RevisionRequiredException", + $fault: "client", + ...opts + }); + this.name = "RevisionRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, RevisionRequiredException.prototype); + } + }; + exports.RevisionRequiredException = RevisionRequiredException; + var DeploymentReadyAction; + (function(DeploymentReadyAction2) { + DeploymentReadyAction2["CONTINUE_DEPLOYMENT"] = "CONTINUE_DEPLOYMENT"; + DeploymentReadyAction2["STOP_DEPLOYMENT"] = "STOP_DEPLOYMENT"; + })(DeploymentReadyAction = exports.DeploymentReadyAction || (exports.DeploymentReadyAction = {})); + var GreenFleetProvisioningAction; + (function(GreenFleetProvisioningAction2) { + GreenFleetProvisioningAction2["COPY_AUTO_SCALING_GROUP"] = "COPY_AUTO_SCALING_GROUP"; + GreenFleetProvisioningAction2["DISCOVER_EXISTING"] = "DISCOVER_EXISTING"; + })(GreenFleetProvisioningAction = exports.GreenFleetProvisioningAction || (exports.GreenFleetProvisioningAction = {})); + var InstanceAction; + (function(InstanceAction2) { + InstanceAction2["KEEP_ALIVE"] = "KEEP_ALIVE"; + InstanceAction2["TERMINATE"] = "TERMINATE"; + })(InstanceAction = exports.InstanceAction || (exports.InstanceAction = {})); + var DeploymentOption; + (function(DeploymentOption2) { + DeploymentOption2["WITHOUT_TRAFFIC_CONTROL"] = "WITHOUT_TRAFFIC_CONTROL"; + DeploymentOption2["WITH_TRAFFIC_CONTROL"] = "WITH_TRAFFIC_CONTROL"; + })(DeploymentOption = exports.DeploymentOption || (exports.DeploymentOption = {})); + var DeploymentType; + (function(DeploymentType2) { + DeploymentType2["BLUE_GREEN"] = "BLUE_GREEN"; + DeploymentType2["IN_PLACE"] = "IN_PLACE"; + })(DeploymentType = exports.DeploymentType || (exports.DeploymentType = {})); + var EC2TagFilterType; + (function(EC2TagFilterType2) { + EC2TagFilterType2["KEY_AND_VALUE"] = "KEY_AND_VALUE"; + EC2TagFilterType2["KEY_ONLY"] = "KEY_ONLY"; + EC2TagFilterType2["VALUE_ONLY"] = "VALUE_ONLY"; + })(EC2TagFilterType = exports.EC2TagFilterType || (exports.EC2TagFilterType = {})); + var DeploymentStatus2; + (function(DeploymentStatus3) { + DeploymentStatus3["BAKING"] = "Baking"; + DeploymentStatus3["CREATED"] = "Created"; + DeploymentStatus3["FAILED"] = "Failed"; + DeploymentStatus3["IN_PROGRESS"] = "InProgress"; + DeploymentStatus3["QUEUED"] = "Queued"; + DeploymentStatus3["READY"] = "Ready"; + DeploymentStatus3["STOPPED"] = "Stopped"; + DeploymentStatus3["SUCCEEDED"] = "Succeeded"; + })(DeploymentStatus2 = exports.DeploymentStatus || (exports.DeploymentStatus = {})); + var TagFilterType; + (function(TagFilterType2) { + TagFilterType2["KEY_AND_VALUE"] = "KEY_AND_VALUE"; + TagFilterType2["KEY_ONLY"] = "KEY_ONLY"; + TagFilterType2["VALUE_ONLY"] = "VALUE_ONLY"; + })(TagFilterType = exports.TagFilterType || (exports.TagFilterType = {})); + var OutdatedInstancesStrategy; + (function(OutdatedInstancesStrategy2) { + OutdatedInstancesStrategy2["Ignore"] = "IGNORE"; + OutdatedInstancesStrategy2["Update"] = "UPDATE"; + })(OutdatedInstancesStrategy = exports.OutdatedInstancesStrategy || (exports.OutdatedInstancesStrategy = {})); + var TriggerEventType; + (function(TriggerEventType2) { + TriggerEventType2["DEPLOYMENT_FAILURE"] = "DeploymentFailure"; + TriggerEventType2["DEPLOYMENT_READY"] = "DeploymentReady"; + TriggerEventType2["DEPLOYMENT_ROLLBACK"] = "DeploymentRollback"; + TriggerEventType2["DEPLOYMENT_START"] = "DeploymentStart"; + TriggerEventType2["DEPLOYMENT_STOP"] = "DeploymentStop"; + TriggerEventType2["DEPLOYMENT_SUCCESS"] = "DeploymentSuccess"; + TriggerEventType2["INSTANCE_FAILURE"] = "InstanceFailure"; + TriggerEventType2["INSTANCE_READY"] = "InstanceReady"; + TriggerEventType2["INSTANCE_START"] = "InstanceStart"; + TriggerEventType2["INSTANCE_SUCCESS"] = "InstanceSuccess"; + })(TriggerEventType = exports.TriggerEventType || (exports.TriggerEventType = {})); + var DeploymentConfigDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentConfigDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "DeploymentConfigDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentConfigDoesNotExistException.prototype); + } + }; + exports.DeploymentConfigDoesNotExistException = DeploymentConfigDoesNotExistException; + var DeploymentGroupNameRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentGroupNameRequiredException", + $fault: "client", + ...opts + }); + this.name = "DeploymentGroupNameRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentGroupNameRequiredException.prototype); + } + }; + exports.DeploymentGroupNameRequiredException = DeploymentGroupNameRequiredException; + var InvalidDeploymentGroupNameException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentGroupNameException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentGroupNameException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentGroupNameException.prototype); + } + }; + exports.InvalidDeploymentGroupNameException = InvalidDeploymentGroupNameException; + var _InstanceType; + (function(_InstanceType2) { + _InstanceType2["BLUE"] = "Blue"; + _InstanceType2["GREEN"] = "Green"; + })(_InstanceType = exports._InstanceType || (exports._InstanceType = {})); + var LifecycleErrorCode; + (function(LifecycleErrorCode2) { + LifecycleErrorCode2["SCRIPT_FAILED"] = "ScriptFailed"; + LifecycleErrorCode2["SCRIPT_MISSING"] = "ScriptMissing"; + LifecycleErrorCode2["SCRIPT_NOT_EXECUTABLE"] = "ScriptNotExecutable"; + LifecycleErrorCode2["SCRIPT_TIMED_OUT"] = "ScriptTimedOut"; + LifecycleErrorCode2["SUCCESS"] = "Success"; + LifecycleErrorCode2["UNKNOWN_ERROR"] = "UnknownError"; + })(LifecycleErrorCode = exports.LifecycleErrorCode || (exports.LifecycleErrorCode = {})); + var LifecycleEventStatus; + (function(LifecycleEventStatus2) { + LifecycleEventStatus2["FAILED"] = "Failed"; + LifecycleEventStatus2["IN_PROGRESS"] = "InProgress"; + LifecycleEventStatus2["PENDING"] = "Pending"; + LifecycleEventStatus2["SKIPPED"] = "Skipped"; + LifecycleEventStatus2["SUCCEEDED"] = "Succeeded"; + LifecycleEventStatus2["UNKNOWN"] = "Unknown"; + })(LifecycleEventStatus = exports.LifecycleEventStatus || (exports.LifecycleEventStatus = {})); + var InstanceStatus; + (function(InstanceStatus2) { + InstanceStatus2["FAILED"] = "Failed"; + InstanceStatus2["IN_PROGRESS"] = "InProgress"; + InstanceStatus2["PENDING"] = "Pending"; + InstanceStatus2["READY"] = "Ready"; + InstanceStatus2["SKIPPED"] = "Skipped"; + InstanceStatus2["SUCCEEDED"] = "Succeeded"; + InstanceStatus2["UNKNOWN"] = "Unknown"; + })(InstanceStatus = exports.InstanceStatus || (exports.InstanceStatus = {})); + var DeploymentDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "DeploymentDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentDoesNotExistException.prototype); + } + }; + exports.DeploymentDoesNotExistException = DeploymentDoesNotExistException; + var DeploymentIdRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentIdRequiredException", + $fault: "client", + ...opts + }); + this.name = "DeploymentIdRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentIdRequiredException.prototype); + } + }; + exports.DeploymentIdRequiredException = DeploymentIdRequiredException; + var InstanceIdRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InstanceIdRequiredException", + $fault: "client", + ...opts + }); + this.name = "InstanceIdRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InstanceIdRequiredException.prototype); + } + }; + exports.InstanceIdRequiredException = InstanceIdRequiredException; + var InvalidComputePlatformException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidComputePlatformException", + $fault: "client", + ...opts + }); + this.name = "InvalidComputePlatformException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidComputePlatformException.prototype); + } + }; + exports.InvalidComputePlatformException = InvalidComputePlatformException; + var InvalidDeploymentIdException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentIdException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentIdException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentIdException.prototype); + } + }; + exports.InvalidDeploymentIdException = InvalidDeploymentIdException; + var DeploymentCreator; + (function(DeploymentCreator2) { + DeploymentCreator2["Autoscaling"] = "autoscaling"; + DeploymentCreator2["CloudFormation"] = "CloudFormation"; + DeploymentCreator2["CloudFormationRollback"] = "CloudFormationRollback"; + DeploymentCreator2["CodeDeploy"] = "CodeDeploy"; + DeploymentCreator2["CodeDeployAutoUpdate"] = "CodeDeployAutoUpdate"; + DeploymentCreator2["CodeDeployRollback"] = "codeDeployRollback"; + DeploymentCreator2["User"] = "user"; + })(DeploymentCreator = exports.DeploymentCreator || (exports.DeploymentCreator = {})); + var ErrorCode; + (function(ErrorCode2) { + ErrorCode2["AGENT_ISSUE"] = "AGENT_ISSUE"; + ErrorCode2["ALARM_ACTIVE"] = "ALARM_ACTIVE"; + ErrorCode2["APPLICATION_MISSING"] = "APPLICATION_MISSING"; + ErrorCode2["AUTOSCALING_VALIDATION_ERROR"] = "AUTOSCALING_VALIDATION_ERROR"; + ErrorCode2["AUTO_SCALING_CONFIGURATION"] = "AUTO_SCALING_CONFIGURATION"; + ErrorCode2["AUTO_SCALING_IAM_ROLE_PERMISSIONS"] = "AUTO_SCALING_IAM_ROLE_PERMISSIONS"; + ErrorCode2["CLOUDFORMATION_STACK_FAILURE"] = "CLOUDFORMATION_STACK_FAILURE"; + ErrorCode2["CODEDEPLOY_RESOURCE_CANNOT_BE_FOUND"] = "CODEDEPLOY_RESOURCE_CANNOT_BE_FOUND"; + ErrorCode2["CUSTOMER_APPLICATION_UNHEALTHY"] = "CUSTOMER_APPLICATION_UNHEALTHY"; + ErrorCode2["DEPLOYMENT_GROUP_MISSING"] = "DEPLOYMENT_GROUP_MISSING"; + ErrorCode2["ECS_UPDATE_ERROR"] = "ECS_UPDATE_ERROR"; + ErrorCode2["ELASTIC_LOAD_BALANCING_INVALID"] = "ELASTIC_LOAD_BALANCING_INVALID"; + ErrorCode2["ELB_INVALID_INSTANCE"] = "ELB_INVALID_INSTANCE"; + ErrorCode2["HEALTH_CONSTRAINTS"] = "HEALTH_CONSTRAINTS"; + ErrorCode2["HEALTH_CONSTRAINTS_INVALID"] = "HEALTH_CONSTRAINTS_INVALID"; + ErrorCode2["HOOK_EXECUTION_FAILURE"] = "HOOK_EXECUTION_FAILURE"; + ErrorCode2["IAM_ROLE_MISSING"] = "IAM_ROLE_MISSING"; + ErrorCode2["IAM_ROLE_PERMISSIONS"] = "IAM_ROLE_PERMISSIONS"; + ErrorCode2["INTERNAL_ERROR"] = "INTERNAL_ERROR"; + ErrorCode2["INVALID_ECS_SERVICE"] = "INVALID_ECS_SERVICE"; + ErrorCode2["INVALID_LAMBDA_CONFIGURATION"] = "INVALID_LAMBDA_CONFIGURATION"; + ErrorCode2["INVALID_LAMBDA_FUNCTION"] = "INVALID_LAMBDA_FUNCTION"; + ErrorCode2["INVALID_REVISION"] = "INVALID_REVISION"; + ErrorCode2["MANUAL_STOP"] = "MANUAL_STOP"; + ErrorCode2["MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION"] = "MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION"; + ErrorCode2["MISSING_ELB_INFORMATION"] = "MISSING_ELB_INFORMATION"; + ErrorCode2["MISSING_GITHUB_TOKEN"] = "MISSING_GITHUB_TOKEN"; + ErrorCode2["NO_EC2_SUBSCRIPTION"] = "NO_EC2_SUBSCRIPTION"; + ErrorCode2["NO_INSTANCES"] = "NO_INSTANCES"; + ErrorCode2["OVER_MAX_INSTANCES"] = "OVER_MAX_INSTANCES"; + ErrorCode2["RESOURCE_LIMIT_EXCEEDED"] = "RESOURCE_LIMIT_EXCEEDED"; + ErrorCode2["REVISION_MISSING"] = "REVISION_MISSING"; + ErrorCode2["THROTTLED"] = "THROTTLED"; + ErrorCode2["TIMEOUT"] = "TIMEOUT"; + })(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {})); + var FileExistsBehavior; + (function(FileExistsBehavior2) { + FileExistsBehavior2["DISALLOW"] = "DISALLOW"; + FileExistsBehavior2["OVERWRITE"] = "OVERWRITE"; + FileExistsBehavior2["RETAIN"] = "RETAIN"; + })(FileExistsBehavior = exports.FileExistsBehavior || (exports.FileExistsBehavior = {})); + var TargetStatus; + (function(TargetStatus2) { + TargetStatus2["FAILED"] = "Failed"; + TargetStatus2["IN_PROGRESS"] = "InProgress"; + TargetStatus2["PENDING"] = "Pending"; + TargetStatus2["READY"] = "Ready"; + TargetStatus2["SKIPPED"] = "Skipped"; + TargetStatus2["SUCCEEDED"] = "Succeeded"; + TargetStatus2["UNKNOWN"] = "Unknown"; + })(TargetStatus = exports.TargetStatus || (exports.TargetStatus = {})); + var DeploymentTargetType; + (function(DeploymentTargetType2) { + DeploymentTargetType2["CLOUDFORMATION_TARGET"] = "CloudFormationTarget"; + DeploymentTargetType2["ECS_TARGET"] = "ECSTarget"; + DeploymentTargetType2["INSTANCE_TARGET"] = "InstanceTarget"; + DeploymentTargetType2["LAMBDA_TARGET"] = "LambdaTarget"; + })(DeploymentTargetType = exports.DeploymentTargetType || (exports.DeploymentTargetType = {})); + var TargetLabel; + (function(TargetLabel2) { + TargetLabel2["BLUE"] = "Blue"; + TargetLabel2["GREEN"] = "Green"; + })(TargetLabel = exports.TargetLabel || (exports.TargetLabel = {})); + var DeploymentNotStartedException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentNotStartedException", + $fault: "client", + ...opts + }); + this.name = "DeploymentNotStartedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentNotStartedException.prototype); + } + }; + exports.DeploymentNotStartedException = DeploymentNotStartedException; + var DeploymentTargetDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentTargetDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "DeploymentTargetDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentTargetDoesNotExistException.prototype); + } + }; + exports.DeploymentTargetDoesNotExistException = DeploymentTargetDoesNotExistException; + var DeploymentTargetIdRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentTargetIdRequiredException", + $fault: "client", + ...opts + }); + this.name = "DeploymentTargetIdRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentTargetIdRequiredException.prototype); + } + }; + exports.DeploymentTargetIdRequiredException = DeploymentTargetIdRequiredException; + var DeploymentTargetListSizeExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentTargetListSizeExceededException", + $fault: "client", + ...opts + }); + this.name = "DeploymentTargetListSizeExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentTargetListSizeExceededException.prototype); + } + }; + exports.DeploymentTargetListSizeExceededException = DeploymentTargetListSizeExceededException; + var InstanceDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InstanceDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "InstanceDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InstanceDoesNotExistException.prototype); + } + }; + exports.InstanceDoesNotExistException = InstanceDoesNotExistException; + var InvalidDeploymentTargetIdException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentTargetIdException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentTargetIdException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentTargetIdException.prototype); + } + }; + exports.InvalidDeploymentTargetIdException = InvalidDeploymentTargetIdException; + var BucketNameFilterRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "BucketNameFilterRequiredException", + $fault: "client", + ...opts + }); + this.name = "BucketNameFilterRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, BucketNameFilterRequiredException.prototype); + } + }; + exports.BucketNameFilterRequiredException = BucketNameFilterRequiredException; + var DeploymentWaitType; + (function(DeploymentWaitType2) { + DeploymentWaitType2["READY_WAIT"] = "READY_WAIT"; + DeploymentWaitType2["TERMINATION_WAIT"] = "TERMINATION_WAIT"; + })(DeploymentWaitType = exports.DeploymentWaitType || (exports.DeploymentWaitType = {})); + var DeploymentAlreadyCompletedException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentAlreadyCompletedException", + $fault: "client", + ...opts + }); + this.name = "DeploymentAlreadyCompletedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentAlreadyCompletedException.prototype); + } + }; + exports.DeploymentAlreadyCompletedException = DeploymentAlreadyCompletedException; + var DeploymentIsNotInReadyStateException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentIsNotInReadyStateException", + $fault: "client", + ...opts + }); + this.name = "DeploymentIsNotInReadyStateException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentIsNotInReadyStateException.prototype); + } + }; + exports.DeploymentIsNotInReadyStateException = DeploymentIsNotInReadyStateException; + var InvalidDeploymentStatusException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentStatusException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentStatusException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentStatusException.prototype); + } + }; + exports.InvalidDeploymentStatusException = InvalidDeploymentStatusException; + var InvalidDeploymentWaitTypeException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentWaitTypeException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentWaitTypeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentWaitTypeException.prototype); + } + }; + exports.InvalidDeploymentWaitTypeException = InvalidDeploymentWaitTypeException; + var UnsupportedActionForDeploymentTypeException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "UnsupportedActionForDeploymentTypeException", + $fault: "client", + ...opts + }); + this.name = "UnsupportedActionForDeploymentTypeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, UnsupportedActionForDeploymentTypeException.prototype); + } + }; + exports.UnsupportedActionForDeploymentTypeException = UnsupportedActionForDeploymentTypeException; + var InvalidTagsToAddException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTagsToAddException", + $fault: "client", + ...opts + }); + this.name = "InvalidTagsToAddException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTagsToAddException.prototype); + } + }; + exports.InvalidTagsToAddException = InvalidTagsToAddException; + var DeploymentGroupDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentGroupDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "DeploymentGroupDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentGroupDoesNotExistException.prototype); + } + }; + exports.DeploymentGroupDoesNotExistException = DeploymentGroupDoesNotExistException; + var DeploymentLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "DeploymentLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentLimitExceededException.prototype); + } + }; + exports.DeploymentLimitExceededException = DeploymentLimitExceededException; + var DescriptionTooLongException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DescriptionTooLongException", + $fault: "client", + ...opts + }); + this.name = "DescriptionTooLongException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DescriptionTooLongException.prototype); + } + }; + exports.DescriptionTooLongException = DescriptionTooLongException; + var InvalidAlarmConfigException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidAlarmConfigException", + $fault: "client", + ...opts + }); + this.name = "InvalidAlarmConfigException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAlarmConfigException.prototype); + } + }; + exports.InvalidAlarmConfigException = InvalidAlarmConfigException; + var InvalidAutoRollbackConfigException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidAutoRollbackConfigException", + $fault: "client", + ...opts + }); + this.name = "InvalidAutoRollbackConfigException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAutoRollbackConfigException.prototype); + } + }; + exports.InvalidAutoRollbackConfigException = InvalidAutoRollbackConfigException; + var InvalidAutoScalingGroupException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidAutoScalingGroupException", + $fault: "client", + ...opts + }); + this.name = "InvalidAutoScalingGroupException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAutoScalingGroupException.prototype); + } + }; + exports.InvalidAutoScalingGroupException = InvalidAutoScalingGroupException; + var InvalidDeploymentConfigNameException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentConfigNameException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentConfigNameException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentConfigNameException.prototype); + } + }; + exports.InvalidDeploymentConfigNameException = InvalidDeploymentConfigNameException; + var InvalidFileExistsBehaviorException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidFileExistsBehaviorException", + $fault: "client", + ...opts + }); + this.name = "InvalidFileExistsBehaviorException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidFileExistsBehaviorException.prototype); + } + }; + exports.InvalidFileExistsBehaviorException = InvalidFileExistsBehaviorException; + var InvalidGitHubAccountTokenException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidGitHubAccountTokenException", + $fault: "client", + ...opts + }); + this.name = "InvalidGitHubAccountTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidGitHubAccountTokenException.prototype); + } + }; + exports.InvalidGitHubAccountTokenException = InvalidGitHubAccountTokenException; + var InvalidIgnoreApplicationStopFailuresValueException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidIgnoreApplicationStopFailuresValueException", + $fault: "client", + ...opts + }); + this.name = "InvalidIgnoreApplicationStopFailuresValueException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidIgnoreApplicationStopFailuresValueException.prototype); + } + }; + exports.InvalidIgnoreApplicationStopFailuresValueException = InvalidIgnoreApplicationStopFailuresValueException; + var InvalidLoadBalancerInfoException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidLoadBalancerInfoException", + $fault: "client", + ...opts + }); + this.name = "InvalidLoadBalancerInfoException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidLoadBalancerInfoException.prototype); + } + }; + exports.InvalidLoadBalancerInfoException = InvalidLoadBalancerInfoException; + var InvalidRoleException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidRoleException", + $fault: "client", + ...opts + }); + this.name = "InvalidRoleException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidRoleException.prototype); + } + }; + exports.InvalidRoleException = InvalidRoleException; + var InvalidTargetInstancesException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTargetInstancesException", + $fault: "client", + ...opts + }); + this.name = "InvalidTargetInstancesException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTargetInstancesException.prototype); + } + }; + exports.InvalidTargetInstancesException = InvalidTargetInstancesException; + var InvalidTrafficRoutingConfigurationException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTrafficRoutingConfigurationException", + $fault: "client", + ...opts + }); + this.name = "InvalidTrafficRoutingConfigurationException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTrafficRoutingConfigurationException.prototype); + } + }; + exports.InvalidTrafficRoutingConfigurationException = InvalidTrafficRoutingConfigurationException; + var InvalidUpdateOutdatedInstancesOnlyValueException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidUpdateOutdatedInstancesOnlyValueException", + $fault: "client", + ...opts + }); + this.name = "InvalidUpdateOutdatedInstancesOnlyValueException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidUpdateOutdatedInstancesOnlyValueException.prototype); + } + }; + exports.InvalidUpdateOutdatedInstancesOnlyValueException = InvalidUpdateOutdatedInstancesOnlyValueException; + var RevisionDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "RevisionDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "RevisionDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, RevisionDoesNotExistException.prototype); + } + }; + exports.RevisionDoesNotExistException = RevisionDoesNotExistException; + var ThrottlingException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ThrottlingException", + $fault: "client", + ...opts + }); + this.name = "ThrottlingException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ThrottlingException.prototype); + } + }; + exports.ThrottlingException = ThrottlingException; + var MinimumHealthyHostsType; + (function(MinimumHealthyHostsType2) { + MinimumHealthyHostsType2["FLEET_PERCENT"] = "FLEET_PERCENT"; + MinimumHealthyHostsType2["HOST_COUNT"] = "HOST_COUNT"; + })(MinimumHealthyHostsType = exports.MinimumHealthyHostsType || (exports.MinimumHealthyHostsType = {})); + var TrafficRoutingType; + (function(TrafficRoutingType2) { + TrafficRoutingType2["AllAtOnce"] = "AllAtOnce"; + TrafficRoutingType2["TimeBasedCanary"] = "TimeBasedCanary"; + TrafficRoutingType2["TimeBasedLinear"] = "TimeBasedLinear"; + })(TrafficRoutingType = exports.TrafficRoutingType || (exports.TrafficRoutingType = {})); + var DeploymentConfigAlreadyExistsException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentConfigAlreadyExistsException", + $fault: "client", + ...opts + }); + this.name = "DeploymentConfigAlreadyExistsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentConfigAlreadyExistsException.prototype); + } + }; + exports.DeploymentConfigAlreadyExistsException = DeploymentConfigAlreadyExistsException; + var DeploymentConfigLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentConfigLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "DeploymentConfigLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentConfigLimitExceededException.prototype); + } + }; + exports.DeploymentConfigLimitExceededException = DeploymentConfigLimitExceededException; + var DeploymentConfigNameRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentConfigNameRequiredException", + $fault: "client", + ...opts + }); + this.name = "DeploymentConfigNameRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentConfigNameRequiredException.prototype); + } + }; + exports.DeploymentConfigNameRequiredException = DeploymentConfigNameRequiredException; + var InvalidMinimumHealthyHostValueException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidMinimumHealthyHostValueException", + $fault: "client", + ...opts + }); + this.name = "InvalidMinimumHealthyHostValueException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidMinimumHealthyHostValueException.prototype); + } + }; + exports.InvalidMinimumHealthyHostValueException = InvalidMinimumHealthyHostValueException; + var DeploymentGroupAlreadyExistsException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentGroupAlreadyExistsException", + $fault: "client", + ...opts + }); + this.name = "DeploymentGroupAlreadyExistsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentGroupAlreadyExistsException.prototype); + } + }; + exports.DeploymentGroupAlreadyExistsException = DeploymentGroupAlreadyExistsException; + var DeploymentGroupLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentGroupLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "DeploymentGroupLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentGroupLimitExceededException.prototype); + } + }; + exports.DeploymentGroupLimitExceededException = DeploymentGroupLimitExceededException; + var ECSServiceMappingLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ECSServiceMappingLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "ECSServiceMappingLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ECSServiceMappingLimitExceededException.prototype); + } + }; + exports.ECSServiceMappingLimitExceededException = ECSServiceMappingLimitExceededException; + var InvalidBlueGreenDeploymentConfigurationException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidBlueGreenDeploymentConfigurationException", + $fault: "client", + ...opts + }); + this.name = "InvalidBlueGreenDeploymentConfigurationException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidBlueGreenDeploymentConfigurationException.prototype); + } + }; + exports.InvalidBlueGreenDeploymentConfigurationException = InvalidBlueGreenDeploymentConfigurationException; + var InvalidDeploymentStyleException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentStyleException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentStyleException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentStyleException.prototype); + } + }; + exports.InvalidDeploymentStyleException = InvalidDeploymentStyleException; + var InvalidEC2TagCombinationException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidEC2TagCombinationException", + $fault: "client", + ...opts + }); + this.name = "InvalidEC2TagCombinationException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidEC2TagCombinationException.prototype); + } + }; + exports.InvalidEC2TagCombinationException = InvalidEC2TagCombinationException; + var InvalidEC2TagException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidEC2TagException", + $fault: "client", + ...opts + }); + this.name = "InvalidEC2TagException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidEC2TagException.prototype); + } + }; + exports.InvalidEC2TagException = InvalidEC2TagException; + var InvalidECSServiceException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidECSServiceException", + $fault: "client", + ...opts + }); + this.name = "InvalidECSServiceException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidECSServiceException.prototype); + } + }; + exports.InvalidECSServiceException = InvalidECSServiceException; + var InvalidInputException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidInputException", + $fault: "client", + ...opts + }); + this.name = "InvalidInputException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidInputException.prototype); + } + }; + exports.InvalidInputException = InvalidInputException; + var InvalidOnPremisesTagCombinationException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidOnPremisesTagCombinationException", + $fault: "client", + ...opts + }); + this.name = "InvalidOnPremisesTagCombinationException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidOnPremisesTagCombinationException.prototype); + } + }; + exports.InvalidOnPremisesTagCombinationException = InvalidOnPremisesTagCombinationException; + var InvalidTargetGroupPairException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTargetGroupPairException", + $fault: "client", + ...opts + }); + this.name = "InvalidTargetGroupPairException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTargetGroupPairException.prototype); + } + }; + exports.InvalidTargetGroupPairException = InvalidTargetGroupPairException; + var InvalidTriggerConfigException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTriggerConfigException", + $fault: "client", + ...opts + }); + this.name = "InvalidTriggerConfigException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTriggerConfigException.prototype); + } + }; + exports.InvalidTriggerConfigException = InvalidTriggerConfigException; + var LifecycleHookLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "LifecycleHookLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "LifecycleHookLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, LifecycleHookLimitExceededException.prototype); + } + }; + exports.LifecycleHookLimitExceededException = LifecycleHookLimitExceededException; + var RoleRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "RoleRequiredException", + $fault: "client", + ...opts + }); + this.name = "RoleRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, RoleRequiredException.prototype); + } + }; + exports.RoleRequiredException = RoleRequiredException; + var TagSetListLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "TagSetListLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "TagSetListLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TagSetListLimitExceededException.prototype); + } + }; + exports.TagSetListLimitExceededException = TagSetListLimitExceededException; + var TriggerTargetsLimitExceededException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "TriggerTargetsLimitExceededException", + $fault: "client", + ...opts + }); + this.name = "TriggerTargetsLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TriggerTargetsLimitExceededException.prototype); + } + }; + exports.TriggerTargetsLimitExceededException = TriggerTargetsLimitExceededException; + var DeploymentConfigInUseException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "DeploymentConfigInUseException", + $fault: "client", + ...opts + }); + this.name = "DeploymentConfigInUseException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DeploymentConfigInUseException.prototype); + } + }; + exports.DeploymentConfigInUseException = DeploymentConfigInUseException; + var InvalidOperationException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidOperationException", + $fault: "client", + ...opts + }); + this.name = "InvalidOperationException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidOperationException.prototype); + } + }; + exports.InvalidOperationException = InvalidOperationException; + var GitHubAccountTokenDoesNotExistException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "GitHubAccountTokenDoesNotExistException", + $fault: "client", + ...opts + }); + this.name = "GitHubAccountTokenDoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, GitHubAccountTokenDoesNotExistException.prototype); + } + }; + exports.GitHubAccountTokenDoesNotExistException = GitHubAccountTokenDoesNotExistException; + var GitHubAccountTokenNameRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "GitHubAccountTokenNameRequiredException", + $fault: "client", + ...opts + }); + this.name = "GitHubAccountTokenNameRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, GitHubAccountTokenNameRequiredException.prototype); + } + }; + exports.GitHubAccountTokenNameRequiredException = GitHubAccountTokenNameRequiredException; + var InvalidGitHubAccountTokenNameException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidGitHubAccountTokenNameException", + $fault: "client", + ...opts + }); + this.name = "InvalidGitHubAccountTokenNameException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidGitHubAccountTokenNameException.prototype); + } + }; + exports.InvalidGitHubAccountTokenNameException = InvalidGitHubAccountTokenNameException; + var OperationNotSupportedException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "OperationNotSupportedException", + $fault: "client", + ...opts + }); + this.name = "OperationNotSupportedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, OperationNotSupportedException.prototype); + } + }; + exports.OperationNotSupportedException = OperationNotSupportedException; + var ResourceValidationException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ResourceValidationException", + $fault: "client", + ...opts + }); + this.name = "ResourceValidationException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceValidationException.prototype); + } + }; + exports.ResourceValidationException = ResourceValidationException; + var InvalidBucketNameFilterException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidBucketNameFilterException", + $fault: "client", + ...opts + }); + this.name = "InvalidBucketNameFilterException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidBucketNameFilterException.prototype); + } + }; + exports.InvalidBucketNameFilterException = InvalidBucketNameFilterException; + var InvalidDeployedStateFilterException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeployedStateFilterException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeployedStateFilterException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeployedStateFilterException.prototype); + } + }; + exports.InvalidDeployedStateFilterException = InvalidDeployedStateFilterException; + var InvalidKeyPrefixFilterException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidKeyPrefixFilterException", + $fault: "client", + ...opts + }); + this.name = "InvalidKeyPrefixFilterException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidKeyPrefixFilterException.prototype); + } + }; + exports.InvalidKeyPrefixFilterException = InvalidKeyPrefixFilterException; + var InvalidNextTokenException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidNextTokenException", + $fault: "client", + ...opts + }); + this.name = "InvalidNextTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidNextTokenException.prototype); + } + }; + exports.InvalidNextTokenException = InvalidNextTokenException; + var InvalidSortByException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidSortByException", + $fault: "client", + ...opts + }); + this.name = "InvalidSortByException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidSortByException.prototype); + } + }; + exports.InvalidSortByException = InvalidSortByException; + var InvalidSortOrderException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidSortOrderException", + $fault: "client", + ...opts + }); + this.name = "InvalidSortOrderException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidSortOrderException.prototype); + } + }; + exports.InvalidSortOrderException = InvalidSortOrderException; + var ListStateFilterAction; + (function(ListStateFilterAction2) { + ListStateFilterAction2["Exclude"] = "exclude"; + ListStateFilterAction2["Ignore"] = "ignore"; + ListStateFilterAction2["Include"] = "include"; + })(ListStateFilterAction = exports.ListStateFilterAction || (exports.ListStateFilterAction = {})); + var SortOrder; + (function(SortOrder2) { + SortOrder2["Ascending"] = "ascending"; + SortOrder2["Descending"] = "descending"; + })(SortOrder = exports.SortOrder || (exports.SortOrder = {})); + var InvalidDeploymentInstanceTypeException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidDeploymentInstanceTypeException", + $fault: "client", + ...opts + }); + this.name = "InvalidDeploymentInstanceTypeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeploymentInstanceTypeException.prototype); + } + }; + exports.InvalidDeploymentInstanceTypeException = InvalidDeploymentInstanceTypeException; + var InvalidInstanceStatusException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidInstanceStatusException", + $fault: "client", + ...opts + }); + this.name = "InvalidInstanceStatusException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidInstanceStatusException.prototype); + } + }; + exports.InvalidInstanceStatusException = InvalidInstanceStatusException; + var InvalidInstanceTypeException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidInstanceTypeException", + $fault: "client", + ...opts + }); + this.name = "InvalidInstanceTypeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidInstanceTypeException.prototype); + } + }; + exports.InvalidInstanceTypeException = InvalidInstanceTypeException; + var InvalidTargetFilterNameException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTargetFilterNameException", + $fault: "client", + ...opts + }); + this.name = "InvalidTargetFilterNameException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTargetFilterNameException.prototype); + } + }; + exports.InvalidTargetFilterNameException = InvalidTargetFilterNameException; + var InvalidExternalIdException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidExternalIdException", + $fault: "client", + ...opts + }); + this.name = "InvalidExternalIdException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidExternalIdException.prototype); + } + }; + exports.InvalidExternalIdException = InvalidExternalIdException; + var InvalidTimeRangeException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTimeRangeException", + $fault: "client", + ...opts + }); + this.name = "InvalidTimeRangeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTimeRangeException.prototype); + } + }; + exports.InvalidTimeRangeException = InvalidTimeRangeException; + var TargetFilterName; + (function(TargetFilterName2) { + TargetFilterName2["SERVER_INSTANCE_LABEL"] = "ServerInstanceLabel"; + TargetFilterName2["TARGET_STATUS"] = "TargetStatus"; + })(TargetFilterName = exports.TargetFilterName || (exports.TargetFilterName = {})); + var InvalidRegistrationStatusException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidRegistrationStatusException", + $fault: "client", + ...opts + }); + this.name = "InvalidRegistrationStatusException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidRegistrationStatusException.prototype); + } + }; + exports.InvalidRegistrationStatusException = InvalidRegistrationStatusException; + var InvalidTagFilterException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidTagFilterException", + $fault: "client", + ...opts + }); + this.name = "InvalidTagFilterException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTagFilterException.prototype); + } + }; + exports.InvalidTagFilterException = InvalidTagFilterException; + var RegistrationStatus; + (function(RegistrationStatus2) { + RegistrationStatus2["Deregistered"] = "Deregistered"; + RegistrationStatus2["Registered"] = "Registered"; + })(RegistrationStatus = exports.RegistrationStatus || (exports.RegistrationStatus = {})); + var InvalidArnException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidArnException", + $fault: "client", + ...opts + }); + this.name = "InvalidArnException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidArnException.prototype); + } + }; + exports.InvalidArnException = InvalidArnException; + var ResourceArnRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "ResourceArnRequiredException", + $fault: "client", + ...opts + }); + this.name = "ResourceArnRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceArnRequiredException.prototype); + } + }; + exports.ResourceArnRequiredException = ResourceArnRequiredException; + var InvalidLifecycleEventHookExecutionIdException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidLifecycleEventHookExecutionIdException", + $fault: "client", + ...opts + }); + this.name = "InvalidLifecycleEventHookExecutionIdException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidLifecycleEventHookExecutionIdException.prototype); + } + }; + exports.InvalidLifecycleEventHookExecutionIdException = InvalidLifecycleEventHookExecutionIdException; + var InvalidLifecycleEventHookExecutionStatusException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidLifecycleEventHookExecutionStatusException", + $fault: "client", + ...opts + }); + this.name = "InvalidLifecycleEventHookExecutionStatusException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidLifecycleEventHookExecutionStatusException.prototype); + } + }; + exports.InvalidLifecycleEventHookExecutionStatusException = InvalidLifecycleEventHookExecutionStatusException; + var LifecycleEventAlreadyCompletedException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "LifecycleEventAlreadyCompletedException", + $fault: "client", + ...opts + }); + this.name = "LifecycleEventAlreadyCompletedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, LifecycleEventAlreadyCompletedException.prototype); + } + }; + exports.LifecycleEventAlreadyCompletedException = LifecycleEventAlreadyCompletedException; + var IamArnRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "IamArnRequiredException", + $fault: "client", + ...opts + }); + this.name = "IamArnRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IamArnRequiredException.prototype); + } + }; + exports.IamArnRequiredException = IamArnRequiredException; + var IamSessionArnAlreadyRegisteredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "IamSessionArnAlreadyRegisteredException", + $fault: "client", + ...opts + }); + this.name = "IamSessionArnAlreadyRegisteredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IamSessionArnAlreadyRegisteredException.prototype); + } + }; + exports.IamSessionArnAlreadyRegisteredException = IamSessionArnAlreadyRegisteredException; + var IamUserArnAlreadyRegisteredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "IamUserArnAlreadyRegisteredException", + $fault: "client", + ...opts + }); + this.name = "IamUserArnAlreadyRegisteredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IamUserArnAlreadyRegisteredException.prototype); + } + }; + exports.IamUserArnAlreadyRegisteredException = IamUserArnAlreadyRegisteredException; + var IamUserArnRequiredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "IamUserArnRequiredException", + $fault: "client", + ...opts + }); + this.name = "IamUserArnRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IamUserArnRequiredException.prototype); + } + }; + exports.IamUserArnRequiredException = IamUserArnRequiredException; + var InstanceNameAlreadyRegisteredException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InstanceNameAlreadyRegisteredException", + $fault: "client", + ...opts + }); + this.name = "InstanceNameAlreadyRegisteredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InstanceNameAlreadyRegisteredException.prototype); + } + }; + exports.InstanceNameAlreadyRegisteredException = InstanceNameAlreadyRegisteredException; + var InvalidIamSessionArnException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidIamSessionArnException", + $fault: "client", + ...opts + }); + this.name = "InvalidIamSessionArnException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidIamSessionArnException.prototype); + } + }; + exports.InvalidIamSessionArnException = InvalidIamSessionArnException; + var InvalidIamUserArnException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "InvalidIamUserArnException", + $fault: "client", + ...opts + }); + this.name = "InvalidIamUserArnException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidIamUserArnException.prototype); + } + }; + exports.InvalidIamUserArnException = InvalidIamUserArnException; + var MultipleIamArnsProvidedException = class extends CodeDeployServiceException_1.CodeDeployServiceException { + constructor(opts) { + super({ + name: "MultipleIamArnsProvidedException", + $fault: "client", + ...opts + }); + this.name = "MultipleIamArnsProvidedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, MultipleIamArnsProvidedException.prototype); + } + }; + exports.MultipleIamArnsProvidedException = MultipleIamArnsProvidedException; + var StopStatus; + (function(StopStatus2) { + StopStatus2["PENDING"] = "Pending"; + StopStatus2["SUCCEEDED"] = "Succeeded"; + })(StopStatus = exports.StopStatus || (exports.StopStatus = {})); + var TagFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TagFilterSensitiveLog = TagFilterSensitiveLog; + var AddTagsToOnPremisesInstancesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AddTagsToOnPremisesInstancesInputFilterSensitiveLog = AddTagsToOnPremisesInstancesInputFilterSensitiveLog; + var AlarmFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AlarmFilterSensitiveLog = AlarmFilterSensitiveLog; + var AlarmConfigurationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AlarmConfigurationFilterSensitiveLog = AlarmConfigurationFilterSensitiveLog; + var ApplicationInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ApplicationInfoFilterSensitiveLog = ApplicationInfoFilterSensitiveLog; + var AppSpecContentFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AppSpecContentFilterSensitiveLog = AppSpecContentFilterSensitiveLog; + var AutoRollbackConfigurationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AutoRollbackConfigurationFilterSensitiveLog = AutoRollbackConfigurationFilterSensitiveLog; + var AutoScalingGroupFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.AutoScalingGroupFilterSensitiveLog = AutoScalingGroupFilterSensitiveLog; + var GitHubLocationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GitHubLocationFilterSensitiveLog = GitHubLocationFilterSensitiveLog; + var S3LocationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.S3LocationFilterSensitiveLog = S3LocationFilterSensitiveLog; + var RawStringFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RawStringFilterSensitiveLog = RawStringFilterSensitiveLog; + var RevisionLocationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RevisionLocationFilterSensitiveLog = RevisionLocationFilterSensitiveLog; + var BatchGetApplicationRevisionsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetApplicationRevisionsInputFilterSensitiveLog = BatchGetApplicationRevisionsInputFilterSensitiveLog; + var GenericRevisionInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GenericRevisionInfoFilterSensitiveLog = GenericRevisionInfoFilterSensitiveLog; + var RevisionInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RevisionInfoFilterSensitiveLog = RevisionInfoFilterSensitiveLog; + var BatchGetApplicationRevisionsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetApplicationRevisionsOutputFilterSensitiveLog = BatchGetApplicationRevisionsOutputFilterSensitiveLog; + var BatchGetApplicationsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetApplicationsInputFilterSensitiveLog = BatchGetApplicationsInputFilterSensitiveLog; + var BatchGetApplicationsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetApplicationsOutputFilterSensitiveLog = BatchGetApplicationsOutputFilterSensitiveLog; + var BatchGetDeploymentGroupsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentGroupsInputFilterSensitiveLog = BatchGetDeploymentGroupsInputFilterSensitiveLog; + var DeploymentReadyOptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeploymentReadyOptionFilterSensitiveLog = DeploymentReadyOptionFilterSensitiveLog; + var GreenFleetProvisioningOptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GreenFleetProvisioningOptionFilterSensitiveLog = GreenFleetProvisioningOptionFilterSensitiveLog; + var BlueInstanceTerminationOptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BlueInstanceTerminationOptionFilterSensitiveLog = BlueInstanceTerminationOptionFilterSensitiveLog; + var BlueGreenDeploymentConfigurationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BlueGreenDeploymentConfigurationFilterSensitiveLog = BlueGreenDeploymentConfigurationFilterSensitiveLog; + var DeploymentStyleFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeploymentStyleFilterSensitiveLog = DeploymentStyleFilterSensitiveLog; + var EC2TagFilterFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.EC2TagFilterFilterSensitiveLog = EC2TagFilterFilterSensitiveLog; + var EC2TagSetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.EC2TagSetFilterSensitiveLog = EC2TagSetFilterSensitiveLog; + var ECSServiceFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ECSServiceFilterSensitiveLog = ECSServiceFilterSensitiveLog; + var LastDeploymentInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.LastDeploymentInfoFilterSensitiveLog = LastDeploymentInfoFilterSensitiveLog; + var ELBInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ELBInfoFilterSensitiveLog = ELBInfoFilterSensitiveLog; + var TargetGroupInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TargetGroupInfoFilterSensitiveLog = TargetGroupInfoFilterSensitiveLog; + var TrafficRouteFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TrafficRouteFilterSensitiveLog = TrafficRouteFilterSensitiveLog; + var TargetGroupPairInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TargetGroupPairInfoFilterSensitiveLog = TargetGroupPairInfoFilterSensitiveLog; + var LoadBalancerInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.LoadBalancerInfoFilterSensitiveLog = LoadBalancerInfoFilterSensitiveLog; + var TagFilterFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TagFilterFilterSensitiveLog = TagFilterFilterSensitiveLog; + var OnPremisesTagSetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.OnPremisesTagSetFilterSensitiveLog = OnPremisesTagSetFilterSensitiveLog; + var TriggerConfigFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TriggerConfigFilterSensitiveLog = TriggerConfigFilterSensitiveLog; + var DeploymentGroupInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeploymentGroupInfoFilterSensitiveLog = DeploymentGroupInfoFilterSensitiveLog; + var BatchGetDeploymentGroupsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentGroupsOutputFilterSensitiveLog = BatchGetDeploymentGroupsOutputFilterSensitiveLog; + var BatchGetDeploymentInstancesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentInstancesInputFilterSensitiveLog = BatchGetDeploymentInstancesInputFilterSensitiveLog; + var DiagnosticsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DiagnosticsFilterSensitiveLog = DiagnosticsFilterSensitiveLog; + var LifecycleEventFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.LifecycleEventFilterSensitiveLog = LifecycleEventFilterSensitiveLog; + var InstanceSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.InstanceSummaryFilterSensitiveLog = InstanceSummaryFilterSensitiveLog; + var BatchGetDeploymentInstancesOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentInstancesOutputFilterSensitiveLog = BatchGetDeploymentInstancesOutputFilterSensitiveLog; + var BatchGetDeploymentsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentsInputFilterSensitiveLog = BatchGetDeploymentsInputFilterSensitiveLog; + var DeploymentOverviewFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeploymentOverviewFilterSensitiveLog = DeploymentOverviewFilterSensitiveLog; + var ErrorInformationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ErrorInformationFilterSensitiveLog = ErrorInformationFilterSensitiveLog; + var RelatedDeploymentsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RelatedDeploymentsFilterSensitiveLog = RelatedDeploymentsFilterSensitiveLog; + var RollbackInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RollbackInfoFilterSensitiveLog = RollbackInfoFilterSensitiveLog; + var TargetInstancesFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TargetInstancesFilterSensitiveLog = TargetInstancesFilterSensitiveLog; + var DeploymentInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeploymentInfoFilterSensitiveLog = DeploymentInfoFilterSensitiveLog; + var BatchGetDeploymentsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentsOutputFilterSensitiveLog = BatchGetDeploymentsOutputFilterSensitiveLog; + var BatchGetDeploymentTargetsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentTargetsInputFilterSensitiveLog = BatchGetDeploymentTargetsInputFilterSensitiveLog; + var CloudFormationTargetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CloudFormationTargetFilterSensitiveLog = CloudFormationTargetFilterSensitiveLog; + var ECSTaskSetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ECSTaskSetFilterSensitiveLog = ECSTaskSetFilterSensitiveLog; + var ECSTargetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ECSTargetFilterSensitiveLog = ECSTargetFilterSensitiveLog; + var InstanceTargetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.InstanceTargetFilterSensitiveLog = InstanceTargetFilterSensitiveLog; + var LambdaFunctionInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.LambdaFunctionInfoFilterSensitiveLog = LambdaFunctionInfoFilterSensitiveLog; + var LambdaTargetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.LambdaTargetFilterSensitiveLog = LambdaTargetFilterSensitiveLog; + var DeploymentTargetFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeploymentTargetFilterSensitiveLog = DeploymentTargetFilterSensitiveLog; + var BatchGetDeploymentTargetsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetDeploymentTargetsOutputFilterSensitiveLog = BatchGetDeploymentTargetsOutputFilterSensitiveLog; + var BatchGetOnPremisesInstancesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetOnPremisesInstancesInputFilterSensitiveLog = BatchGetOnPremisesInstancesInputFilterSensitiveLog; + var InstanceInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.InstanceInfoFilterSensitiveLog = InstanceInfoFilterSensitiveLog; + var BatchGetOnPremisesInstancesOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.BatchGetOnPremisesInstancesOutputFilterSensitiveLog = BatchGetOnPremisesInstancesOutputFilterSensitiveLog; + var ContinueDeploymentInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ContinueDeploymentInputFilterSensitiveLog = ContinueDeploymentInputFilterSensitiveLog; + var CreateApplicationInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateApplicationInputFilterSensitiveLog = CreateApplicationInputFilterSensitiveLog; + var CreateApplicationOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateApplicationOutputFilterSensitiveLog = CreateApplicationOutputFilterSensitiveLog; + var CreateDeploymentInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateDeploymentInputFilterSensitiveLog = CreateDeploymentInputFilterSensitiveLog; + var CreateDeploymentOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateDeploymentOutputFilterSensitiveLog = CreateDeploymentOutputFilterSensitiveLog; + var MinimumHealthyHostsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.MinimumHealthyHostsFilterSensitiveLog = MinimumHealthyHostsFilterSensitiveLog; + var TimeBasedCanaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TimeBasedCanaryFilterSensitiveLog = TimeBasedCanaryFilterSensitiveLog; + var TimeBasedLinearFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TimeBasedLinearFilterSensitiveLog = TimeBasedLinearFilterSensitiveLog; + var TrafficRoutingConfigFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TrafficRoutingConfigFilterSensitiveLog = TrafficRoutingConfigFilterSensitiveLog; + var CreateDeploymentConfigInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateDeploymentConfigInputFilterSensitiveLog = CreateDeploymentConfigInputFilterSensitiveLog; + var CreateDeploymentConfigOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateDeploymentConfigOutputFilterSensitiveLog = CreateDeploymentConfigOutputFilterSensitiveLog; + var CreateDeploymentGroupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateDeploymentGroupInputFilterSensitiveLog = CreateDeploymentGroupInputFilterSensitiveLog; + var CreateDeploymentGroupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.CreateDeploymentGroupOutputFilterSensitiveLog = CreateDeploymentGroupOutputFilterSensitiveLog; + var DeleteApplicationInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteApplicationInputFilterSensitiveLog = DeleteApplicationInputFilterSensitiveLog; + var DeleteDeploymentConfigInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteDeploymentConfigInputFilterSensitiveLog = DeleteDeploymentConfigInputFilterSensitiveLog; + var DeleteDeploymentGroupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteDeploymentGroupInputFilterSensitiveLog = DeleteDeploymentGroupInputFilterSensitiveLog; + var DeleteDeploymentGroupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteDeploymentGroupOutputFilterSensitiveLog = DeleteDeploymentGroupOutputFilterSensitiveLog; + var DeleteGitHubAccountTokenInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteGitHubAccountTokenInputFilterSensitiveLog = DeleteGitHubAccountTokenInputFilterSensitiveLog; + var DeleteGitHubAccountTokenOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteGitHubAccountTokenOutputFilterSensitiveLog = DeleteGitHubAccountTokenOutputFilterSensitiveLog; + var DeleteResourcesByExternalIdInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteResourcesByExternalIdInputFilterSensitiveLog = DeleteResourcesByExternalIdInputFilterSensitiveLog; + var DeleteResourcesByExternalIdOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeleteResourcesByExternalIdOutputFilterSensitiveLog = DeleteResourcesByExternalIdOutputFilterSensitiveLog; + var DeregisterOnPremisesInstanceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeregisterOnPremisesInstanceInputFilterSensitiveLog = DeregisterOnPremisesInstanceInputFilterSensitiveLog; + var GetApplicationInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetApplicationInputFilterSensitiveLog = GetApplicationInputFilterSensitiveLog; + var GetApplicationOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetApplicationOutputFilterSensitiveLog = GetApplicationOutputFilterSensitiveLog; + var GetApplicationRevisionInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetApplicationRevisionInputFilterSensitiveLog = GetApplicationRevisionInputFilterSensitiveLog; + var GetApplicationRevisionOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetApplicationRevisionOutputFilterSensitiveLog = GetApplicationRevisionOutputFilterSensitiveLog; + var GetDeploymentInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentInputFilterSensitiveLog = GetDeploymentInputFilterSensitiveLog; + var GetDeploymentOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentOutputFilterSensitiveLog = GetDeploymentOutputFilterSensitiveLog; + var GetDeploymentConfigInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentConfigInputFilterSensitiveLog = GetDeploymentConfigInputFilterSensitiveLog; + var DeploymentConfigInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.DeploymentConfigInfoFilterSensitiveLog = DeploymentConfigInfoFilterSensitiveLog; + var GetDeploymentConfigOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentConfigOutputFilterSensitiveLog = GetDeploymentConfigOutputFilterSensitiveLog; + var GetDeploymentGroupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentGroupInputFilterSensitiveLog = GetDeploymentGroupInputFilterSensitiveLog; + var GetDeploymentGroupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentGroupOutputFilterSensitiveLog = GetDeploymentGroupOutputFilterSensitiveLog; + var GetDeploymentInstanceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentInstanceInputFilterSensitiveLog = GetDeploymentInstanceInputFilterSensitiveLog; + var GetDeploymentInstanceOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentInstanceOutputFilterSensitiveLog = GetDeploymentInstanceOutputFilterSensitiveLog; + var GetDeploymentTargetInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentTargetInputFilterSensitiveLog = GetDeploymentTargetInputFilterSensitiveLog; + var GetDeploymentTargetOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetDeploymentTargetOutputFilterSensitiveLog = GetDeploymentTargetOutputFilterSensitiveLog; + var GetOnPremisesInstanceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetOnPremisesInstanceInputFilterSensitiveLog = GetOnPremisesInstanceInputFilterSensitiveLog; + var GetOnPremisesInstanceOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.GetOnPremisesInstanceOutputFilterSensitiveLog = GetOnPremisesInstanceOutputFilterSensitiveLog; + var ListApplicationRevisionsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListApplicationRevisionsInputFilterSensitiveLog = ListApplicationRevisionsInputFilterSensitiveLog; + var ListApplicationRevisionsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListApplicationRevisionsOutputFilterSensitiveLog = ListApplicationRevisionsOutputFilterSensitiveLog; + var ListApplicationsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListApplicationsInputFilterSensitiveLog = ListApplicationsInputFilterSensitiveLog; + var ListApplicationsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListApplicationsOutputFilterSensitiveLog = ListApplicationsOutputFilterSensitiveLog; + var ListDeploymentConfigsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentConfigsInputFilterSensitiveLog = ListDeploymentConfigsInputFilterSensitiveLog; + var ListDeploymentConfigsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentConfigsOutputFilterSensitiveLog = ListDeploymentConfigsOutputFilterSensitiveLog; + var ListDeploymentGroupsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentGroupsInputFilterSensitiveLog = ListDeploymentGroupsInputFilterSensitiveLog; + var ListDeploymentGroupsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentGroupsOutputFilterSensitiveLog = ListDeploymentGroupsOutputFilterSensitiveLog; + var ListDeploymentInstancesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentInstancesInputFilterSensitiveLog = ListDeploymentInstancesInputFilterSensitiveLog; + var ListDeploymentInstancesOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentInstancesOutputFilterSensitiveLog = ListDeploymentInstancesOutputFilterSensitiveLog; + var TimeRangeFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TimeRangeFilterSensitiveLog = TimeRangeFilterSensitiveLog; + var ListDeploymentsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentsInputFilterSensitiveLog = ListDeploymentsInputFilterSensitiveLog; + var ListDeploymentsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentsOutputFilterSensitiveLog = ListDeploymentsOutputFilterSensitiveLog; + var ListDeploymentTargetsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentTargetsInputFilterSensitiveLog = ListDeploymentTargetsInputFilterSensitiveLog; + var ListDeploymentTargetsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListDeploymentTargetsOutputFilterSensitiveLog = ListDeploymentTargetsOutputFilterSensitiveLog; + var ListGitHubAccountTokenNamesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListGitHubAccountTokenNamesInputFilterSensitiveLog = ListGitHubAccountTokenNamesInputFilterSensitiveLog; + var ListGitHubAccountTokenNamesOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListGitHubAccountTokenNamesOutputFilterSensitiveLog = ListGitHubAccountTokenNamesOutputFilterSensitiveLog; + var ListOnPremisesInstancesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListOnPremisesInstancesInputFilterSensitiveLog = ListOnPremisesInstancesInputFilterSensitiveLog; + var ListOnPremisesInstancesOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListOnPremisesInstancesOutputFilterSensitiveLog = ListOnPremisesInstancesOutputFilterSensitiveLog; + var ListTagsForResourceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListTagsForResourceInputFilterSensitiveLog = ListTagsForResourceInputFilterSensitiveLog; + var ListTagsForResourceOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.ListTagsForResourceOutputFilterSensitiveLog = ListTagsForResourceOutputFilterSensitiveLog; + var PutLifecycleEventHookExecutionStatusInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.PutLifecycleEventHookExecutionStatusInputFilterSensitiveLog = PutLifecycleEventHookExecutionStatusInputFilterSensitiveLog; + var PutLifecycleEventHookExecutionStatusOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.PutLifecycleEventHookExecutionStatusOutputFilterSensitiveLog = PutLifecycleEventHookExecutionStatusOutputFilterSensitiveLog; + var RegisterApplicationRevisionInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RegisterApplicationRevisionInputFilterSensitiveLog = RegisterApplicationRevisionInputFilterSensitiveLog; + var RegisterOnPremisesInstanceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RegisterOnPremisesInstanceInputFilterSensitiveLog = RegisterOnPremisesInstanceInputFilterSensitiveLog; + var RemoveTagsFromOnPremisesInstancesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.RemoveTagsFromOnPremisesInstancesInputFilterSensitiveLog = RemoveTagsFromOnPremisesInstancesInputFilterSensitiveLog; + var SkipWaitTimeForInstanceTerminationInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.SkipWaitTimeForInstanceTerminationInputFilterSensitiveLog = SkipWaitTimeForInstanceTerminationInputFilterSensitiveLog; + var StopDeploymentInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.StopDeploymentInputFilterSensitiveLog = StopDeploymentInputFilterSensitiveLog; + var StopDeploymentOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.StopDeploymentOutputFilterSensitiveLog = StopDeploymentOutputFilterSensitiveLog; + var TagResourceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TagResourceInputFilterSensitiveLog = TagResourceInputFilterSensitiveLog; + var TagResourceOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.TagResourceOutputFilterSensitiveLog = TagResourceOutputFilterSensitiveLog; + var UntagResourceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.UntagResourceInputFilterSensitiveLog = UntagResourceInputFilterSensitiveLog; + var UntagResourceOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.UntagResourceOutputFilterSensitiveLog = UntagResourceOutputFilterSensitiveLog; + var UpdateApplicationInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.UpdateApplicationInputFilterSensitiveLog = UpdateApplicationInputFilterSensitiveLog; + var UpdateDeploymentGroupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.UpdateDeploymentGroupInputFilterSensitiveLog = UpdateDeploymentGroupInputFilterSensitiveLog; + var UpdateDeploymentGroupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports.UpdateDeploymentGroupOutputFilterSensitiveLog = UpdateDeploymentGroupOutputFilterSensitiveLog; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/protocols/Aws_json1_1.js +var require_Aws_json1_1 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/protocols/Aws_json1_1.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.deserializeAws_json1_1BatchGetApplicationsCommand = exports.deserializeAws_json1_1BatchGetApplicationRevisionsCommand = exports.deserializeAws_json1_1AddTagsToOnPremisesInstancesCommand = exports.serializeAws_json1_1UpdateDeploymentGroupCommand = exports.serializeAws_json1_1UpdateApplicationCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopDeploymentCommand = exports.serializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand = exports.serializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand = exports.serializeAws_json1_1RegisterOnPremisesInstanceCommand = exports.serializeAws_json1_1RegisterApplicationRevisionCommand = exports.serializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListOnPremisesInstancesCommand = exports.serializeAws_json1_1ListGitHubAccountTokenNamesCommand = exports.serializeAws_json1_1ListDeploymentTargetsCommand = exports.serializeAws_json1_1ListDeploymentsCommand = exports.serializeAws_json1_1ListDeploymentInstancesCommand = exports.serializeAws_json1_1ListDeploymentGroupsCommand = exports.serializeAws_json1_1ListDeploymentConfigsCommand = exports.serializeAws_json1_1ListApplicationsCommand = exports.serializeAws_json1_1ListApplicationRevisionsCommand = exports.serializeAws_json1_1GetOnPremisesInstanceCommand = exports.serializeAws_json1_1GetDeploymentTargetCommand = exports.serializeAws_json1_1GetDeploymentInstanceCommand = exports.serializeAws_json1_1GetDeploymentGroupCommand = exports.serializeAws_json1_1GetDeploymentConfigCommand = exports.serializeAws_json1_1GetDeploymentCommand = exports.serializeAws_json1_1GetApplicationRevisionCommand = exports.serializeAws_json1_1GetApplicationCommand = exports.serializeAws_json1_1DeregisterOnPremisesInstanceCommand = exports.serializeAws_json1_1DeleteResourcesByExternalIdCommand = exports.serializeAws_json1_1DeleteGitHubAccountTokenCommand = exports.serializeAws_json1_1DeleteDeploymentGroupCommand = exports.serializeAws_json1_1DeleteDeploymentConfigCommand = exports.serializeAws_json1_1DeleteApplicationCommand = exports.serializeAws_json1_1CreateDeploymentGroupCommand = exports.serializeAws_json1_1CreateDeploymentConfigCommand = exports.serializeAws_json1_1CreateDeploymentCommand = exports.serializeAws_json1_1CreateApplicationCommand = exports.serializeAws_json1_1ContinueDeploymentCommand = exports.serializeAws_json1_1BatchGetOnPremisesInstancesCommand = exports.serializeAws_json1_1BatchGetDeploymentTargetsCommand = exports.serializeAws_json1_1BatchGetDeploymentsCommand = exports.serializeAws_json1_1BatchGetDeploymentInstancesCommand = exports.serializeAws_json1_1BatchGetDeploymentGroupsCommand = exports.serializeAws_json1_1BatchGetApplicationsCommand = exports.serializeAws_json1_1BatchGetApplicationRevisionsCommand = exports.serializeAws_json1_1AddTagsToOnPremisesInstancesCommand = void 0; + exports.deserializeAws_json1_1UpdateDeploymentGroupCommand = exports.deserializeAws_json1_1UpdateApplicationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopDeploymentCommand = exports.deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand = exports.deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand = exports.deserializeAws_json1_1RegisterOnPremisesInstanceCommand = exports.deserializeAws_json1_1RegisterApplicationRevisionCommand = exports.deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListOnPremisesInstancesCommand = exports.deserializeAws_json1_1ListGitHubAccountTokenNamesCommand = exports.deserializeAws_json1_1ListDeploymentTargetsCommand = exports.deserializeAws_json1_1ListDeploymentsCommand = exports.deserializeAws_json1_1ListDeploymentInstancesCommand = exports.deserializeAws_json1_1ListDeploymentGroupsCommand = exports.deserializeAws_json1_1ListDeploymentConfigsCommand = exports.deserializeAws_json1_1ListApplicationsCommand = exports.deserializeAws_json1_1ListApplicationRevisionsCommand = exports.deserializeAws_json1_1GetOnPremisesInstanceCommand = exports.deserializeAws_json1_1GetDeploymentTargetCommand = exports.deserializeAws_json1_1GetDeploymentInstanceCommand = exports.deserializeAws_json1_1GetDeploymentGroupCommand = exports.deserializeAws_json1_1GetDeploymentConfigCommand = exports.deserializeAws_json1_1GetDeploymentCommand = exports.deserializeAws_json1_1GetApplicationRevisionCommand = exports.deserializeAws_json1_1GetApplicationCommand = exports.deserializeAws_json1_1DeregisterOnPremisesInstanceCommand = exports.deserializeAws_json1_1DeleteResourcesByExternalIdCommand = exports.deserializeAws_json1_1DeleteGitHubAccountTokenCommand = exports.deserializeAws_json1_1DeleteDeploymentGroupCommand = exports.deserializeAws_json1_1DeleteDeploymentConfigCommand = exports.deserializeAws_json1_1DeleteApplicationCommand = exports.deserializeAws_json1_1CreateDeploymentGroupCommand = exports.deserializeAws_json1_1CreateDeploymentConfigCommand = exports.deserializeAws_json1_1CreateDeploymentCommand = exports.deserializeAws_json1_1CreateApplicationCommand = exports.deserializeAws_json1_1ContinueDeploymentCommand = exports.deserializeAws_json1_1BatchGetOnPremisesInstancesCommand = exports.deserializeAws_json1_1BatchGetDeploymentTargetsCommand = exports.deserializeAws_json1_1BatchGetDeploymentsCommand = exports.deserializeAws_json1_1BatchGetDeploymentInstancesCommand = exports.deserializeAws_json1_1BatchGetDeploymentGroupsCommand = void 0; + var protocol_http_1 = require_dist_cjs4(); + var smithy_client_1 = require_dist_cjs19(); + var CodeDeployServiceException_1 = require_CodeDeployServiceException(); + var models_0_1 = require_models_03(); + var serializeAws_json1_1AddTagsToOnPremisesInstancesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.AddTagsToOnPremisesInstances" + }; + let body; + body = JSON.stringify(serializeAws_json1_1AddTagsToOnPremisesInstancesInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1AddTagsToOnPremisesInstancesCommand = serializeAws_json1_1AddTagsToOnPremisesInstancesCommand; + var serializeAws_json1_1BatchGetApplicationRevisionsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.BatchGetApplicationRevisions" + }; + let body; + body = JSON.stringify(serializeAws_json1_1BatchGetApplicationRevisionsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1BatchGetApplicationRevisionsCommand = serializeAws_json1_1BatchGetApplicationRevisionsCommand; + var serializeAws_json1_1BatchGetApplicationsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.BatchGetApplications" + }; + let body; + body = JSON.stringify(serializeAws_json1_1BatchGetApplicationsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1BatchGetApplicationsCommand = serializeAws_json1_1BatchGetApplicationsCommand; + var serializeAws_json1_1BatchGetDeploymentGroupsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.BatchGetDeploymentGroups" + }; + let body; + body = JSON.stringify(serializeAws_json1_1BatchGetDeploymentGroupsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1BatchGetDeploymentGroupsCommand = serializeAws_json1_1BatchGetDeploymentGroupsCommand; + var serializeAws_json1_1BatchGetDeploymentInstancesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.BatchGetDeploymentInstances" + }; + let body; + body = JSON.stringify(serializeAws_json1_1BatchGetDeploymentInstancesInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1BatchGetDeploymentInstancesCommand = serializeAws_json1_1BatchGetDeploymentInstancesCommand; + var serializeAws_json1_1BatchGetDeploymentsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.BatchGetDeployments" + }; + let body; + body = JSON.stringify(serializeAws_json1_1BatchGetDeploymentsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1BatchGetDeploymentsCommand = serializeAws_json1_1BatchGetDeploymentsCommand; + var serializeAws_json1_1BatchGetDeploymentTargetsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.BatchGetDeploymentTargets" + }; + let body; + body = JSON.stringify(serializeAws_json1_1BatchGetDeploymentTargetsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1BatchGetDeploymentTargetsCommand = serializeAws_json1_1BatchGetDeploymentTargetsCommand; + var serializeAws_json1_1BatchGetOnPremisesInstancesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.BatchGetOnPremisesInstances" + }; + let body; + body = JSON.stringify(serializeAws_json1_1BatchGetOnPremisesInstancesInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1BatchGetOnPremisesInstancesCommand = serializeAws_json1_1BatchGetOnPremisesInstancesCommand; + var serializeAws_json1_1ContinueDeploymentCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ContinueDeployment" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ContinueDeploymentInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ContinueDeploymentCommand = serializeAws_json1_1ContinueDeploymentCommand; + var serializeAws_json1_1CreateApplicationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.CreateApplication" + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateApplicationInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1CreateApplicationCommand = serializeAws_json1_1CreateApplicationCommand; + var serializeAws_json1_1CreateDeploymentCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.CreateDeployment" + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateDeploymentInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1CreateDeploymentCommand = serializeAws_json1_1CreateDeploymentCommand; + var serializeAws_json1_1CreateDeploymentConfigCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.CreateDeploymentConfig" + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateDeploymentConfigInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1CreateDeploymentConfigCommand = serializeAws_json1_1CreateDeploymentConfigCommand; + var serializeAws_json1_1CreateDeploymentGroupCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.CreateDeploymentGroup" + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateDeploymentGroupInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1CreateDeploymentGroupCommand = serializeAws_json1_1CreateDeploymentGroupCommand; + var serializeAws_json1_1DeleteApplicationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.DeleteApplication" + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteApplicationInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1DeleteApplicationCommand = serializeAws_json1_1DeleteApplicationCommand; + var serializeAws_json1_1DeleteDeploymentConfigCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.DeleteDeploymentConfig" + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteDeploymentConfigInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1DeleteDeploymentConfigCommand = serializeAws_json1_1DeleteDeploymentConfigCommand; + var serializeAws_json1_1DeleteDeploymentGroupCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.DeleteDeploymentGroup" + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteDeploymentGroupInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1DeleteDeploymentGroupCommand = serializeAws_json1_1DeleteDeploymentGroupCommand; + var serializeAws_json1_1DeleteGitHubAccountTokenCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.DeleteGitHubAccountToken" + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteGitHubAccountTokenInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1DeleteGitHubAccountTokenCommand = serializeAws_json1_1DeleteGitHubAccountTokenCommand; + var serializeAws_json1_1DeleteResourcesByExternalIdCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.DeleteResourcesByExternalId" + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteResourcesByExternalIdInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1DeleteResourcesByExternalIdCommand = serializeAws_json1_1DeleteResourcesByExternalIdCommand; + var serializeAws_json1_1DeregisterOnPremisesInstanceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.DeregisterOnPremisesInstance" + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeregisterOnPremisesInstanceInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1DeregisterOnPremisesInstanceCommand = serializeAws_json1_1DeregisterOnPremisesInstanceCommand; + var serializeAws_json1_1GetApplicationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetApplication" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetApplicationInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetApplicationCommand = serializeAws_json1_1GetApplicationCommand; + var serializeAws_json1_1GetApplicationRevisionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetApplicationRevision" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetApplicationRevisionInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetApplicationRevisionCommand = serializeAws_json1_1GetApplicationRevisionCommand; + var serializeAws_json1_1GetDeploymentCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetDeployment" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetDeploymentInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetDeploymentCommand = serializeAws_json1_1GetDeploymentCommand; + var serializeAws_json1_1GetDeploymentConfigCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetDeploymentConfig" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetDeploymentConfigInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetDeploymentConfigCommand = serializeAws_json1_1GetDeploymentConfigCommand; + var serializeAws_json1_1GetDeploymentGroupCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetDeploymentGroup" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetDeploymentGroupInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetDeploymentGroupCommand = serializeAws_json1_1GetDeploymentGroupCommand; + var serializeAws_json1_1GetDeploymentInstanceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetDeploymentInstance" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetDeploymentInstanceInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetDeploymentInstanceCommand = serializeAws_json1_1GetDeploymentInstanceCommand; + var serializeAws_json1_1GetDeploymentTargetCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetDeploymentTarget" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetDeploymentTargetInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetDeploymentTargetCommand = serializeAws_json1_1GetDeploymentTargetCommand; + var serializeAws_json1_1GetOnPremisesInstanceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.GetOnPremisesInstance" + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetOnPremisesInstanceInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1GetOnPremisesInstanceCommand = serializeAws_json1_1GetOnPremisesInstanceCommand; + var serializeAws_json1_1ListApplicationRevisionsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListApplicationRevisions" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListApplicationRevisionsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListApplicationRevisionsCommand = serializeAws_json1_1ListApplicationRevisionsCommand; + var serializeAws_json1_1ListApplicationsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListApplications" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListApplicationsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListApplicationsCommand = serializeAws_json1_1ListApplicationsCommand; + var serializeAws_json1_1ListDeploymentConfigsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListDeploymentConfigs" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListDeploymentConfigsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListDeploymentConfigsCommand = serializeAws_json1_1ListDeploymentConfigsCommand; + var serializeAws_json1_1ListDeploymentGroupsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListDeploymentGroups" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListDeploymentGroupsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListDeploymentGroupsCommand = serializeAws_json1_1ListDeploymentGroupsCommand; + var serializeAws_json1_1ListDeploymentInstancesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListDeploymentInstances" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListDeploymentInstancesInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListDeploymentInstancesCommand = serializeAws_json1_1ListDeploymentInstancesCommand; + var serializeAws_json1_1ListDeploymentsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListDeployments" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListDeploymentsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListDeploymentsCommand = serializeAws_json1_1ListDeploymentsCommand; + var serializeAws_json1_1ListDeploymentTargetsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListDeploymentTargets" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListDeploymentTargetsInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListDeploymentTargetsCommand = serializeAws_json1_1ListDeploymentTargetsCommand; + var serializeAws_json1_1ListGitHubAccountTokenNamesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListGitHubAccountTokenNames" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListGitHubAccountTokenNamesInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListGitHubAccountTokenNamesCommand = serializeAws_json1_1ListGitHubAccountTokenNamesCommand; + var serializeAws_json1_1ListOnPremisesInstancesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListOnPremisesInstances" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListOnPremisesInstancesInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListOnPremisesInstancesCommand = serializeAws_json1_1ListOnPremisesInstancesCommand; + var serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.ListTagsForResource" + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListTagsForResourceInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand; + var serializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.PutLifecycleEventHookExecutionStatus" + }; + let body; + body = JSON.stringify(serializeAws_json1_1PutLifecycleEventHookExecutionStatusInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand = serializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand; + var serializeAws_json1_1RegisterApplicationRevisionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.RegisterApplicationRevision" + }; + let body; + body = JSON.stringify(serializeAws_json1_1RegisterApplicationRevisionInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1RegisterApplicationRevisionCommand = serializeAws_json1_1RegisterApplicationRevisionCommand; + var serializeAws_json1_1RegisterOnPremisesInstanceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.RegisterOnPremisesInstance" + }; + let body; + body = JSON.stringify(serializeAws_json1_1RegisterOnPremisesInstanceInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1RegisterOnPremisesInstanceCommand = serializeAws_json1_1RegisterOnPremisesInstanceCommand; + var serializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.RemoveTagsFromOnPremisesInstances" + }; + let body; + body = JSON.stringify(serializeAws_json1_1RemoveTagsFromOnPremisesInstancesInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand = serializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand; + var serializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.SkipWaitTimeForInstanceTermination" + }; + let body; + body = JSON.stringify(serializeAws_json1_1SkipWaitTimeForInstanceTerminationInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand = serializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand; + var serializeAws_json1_1StopDeploymentCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.StopDeployment" + }; + let body; + body = JSON.stringify(serializeAws_json1_1StopDeploymentInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1StopDeploymentCommand = serializeAws_json1_1StopDeploymentCommand; + var serializeAws_json1_1TagResourceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.TagResource" + }; + let body; + body = JSON.stringify(serializeAws_json1_1TagResourceInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1TagResourceCommand = serializeAws_json1_1TagResourceCommand; + var serializeAws_json1_1UntagResourceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.UntagResource" + }; + let body; + body = JSON.stringify(serializeAws_json1_1UntagResourceInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1UntagResourceCommand = serializeAws_json1_1UntagResourceCommand; + var serializeAws_json1_1UpdateApplicationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.UpdateApplication" + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateApplicationInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1UpdateApplicationCommand = serializeAws_json1_1UpdateApplicationCommand; + var serializeAws_json1_1UpdateDeploymentGroupCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "CodeDeploy_20141006.UpdateDeploymentGroup" + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateDeploymentGroupInput(input, context)); + return buildHttpRpcRequest(context, headers, "/", void 0, body); + }; + exports.serializeAws_json1_1UpdateDeploymentGroupCommand = serializeAws_json1_1UpdateDeploymentGroupCommand; + var deserializeAws_json1_1AddTagsToOnPremisesInstancesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1AddTagsToOnPremisesInstancesCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1AddTagsToOnPremisesInstancesCommand = deserializeAws_json1_1AddTagsToOnPremisesInstancesCommand; + var deserializeAws_json1_1AddTagsToOnPremisesInstancesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InstanceLimitExceededException": + case "com.amazonaws.codedeploy#InstanceLimitExceededException": + throw await deserializeAws_json1_1InstanceLimitExceededExceptionResponse(parsedOutput, context); + case "InstanceNameRequiredException": + case "com.amazonaws.codedeploy#InstanceNameRequiredException": + throw await deserializeAws_json1_1InstanceNameRequiredExceptionResponse(parsedOutput, context); + case "InstanceNotRegisteredException": + case "com.amazonaws.codedeploy#InstanceNotRegisteredException": + throw await deserializeAws_json1_1InstanceNotRegisteredExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + case "InvalidTagException": + case "com.amazonaws.codedeploy#InvalidTagException": + throw await deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context); + case "TagLimitExceededException": + case "com.amazonaws.codedeploy#TagLimitExceededException": + throw await deserializeAws_json1_1TagLimitExceededExceptionResponse(parsedOutput, context); + case "TagRequiredException": + case "com.amazonaws.codedeploy#TagRequiredException": + throw await deserializeAws_json1_1TagRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1BatchGetApplicationRevisionsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1BatchGetApplicationRevisionsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1BatchGetApplicationRevisionsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1BatchGetApplicationRevisionsCommand = deserializeAws_json1_1BatchGetApplicationRevisionsCommand; + var deserializeAws_json1_1BatchGetApplicationRevisionsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "BatchLimitExceededException": + case "com.amazonaws.codedeploy#BatchLimitExceededException": + throw await deserializeAws_json1_1BatchLimitExceededExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidRevisionException": + case "com.amazonaws.codedeploy#InvalidRevisionException": + throw await deserializeAws_json1_1InvalidRevisionExceptionResponse(parsedOutput, context); + case "RevisionRequiredException": + case "com.amazonaws.codedeploy#RevisionRequiredException": + throw await deserializeAws_json1_1RevisionRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1BatchGetApplicationsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1BatchGetApplicationsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1BatchGetApplicationsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1BatchGetApplicationsCommand = deserializeAws_json1_1BatchGetApplicationsCommand; + var deserializeAws_json1_1BatchGetApplicationsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "BatchLimitExceededException": + case "com.amazonaws.codedeploy#BatchLimitExceededException": + throw await deserializeAws_json1_1BatchLimitExceededExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1BatchGetDeploymentGroupsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1BatchGetDeploymentGroupsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1BatchGetDeploymentGroupsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1BatchGetDeploymentGroupsCommand = deserializeAws_json1_1BatchGetDeploymentGroupsCommand; + var deserializeAws_json1_1BatchGetDeploymentGroupsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "BatchLimitExceededException": + case "com.amazonaws.codedeploy#BatchLimitExceededException": + throw await deserializeAws_json1_1BatchLimitExceededExceptionResponse(parsedOutput, context); + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException": + throw await deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentGroupNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException": + throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1BatchGetDeploymentInstancesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1BatchGetDeploymentInstancesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1BatchGetDeploymentInstancesOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1BatchGetDeploymentInstancesCommand = deserializeAws_json1_1BatchGetDeploymentInstancesCommand; + var deserializeAws_json1_1BatchGetDeploymentInstancesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BatchLimitExceededException": + case "com.amazonaws.codedeploy#BatchLimitExceededException": + throw await deserializeAws_json1_1BatchLimitExceededExceptionResponse(parsedOutput, context); + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "InstanceIdRequiredException": + case "com.amazonaws.codedeploy#InstanceIdRequiredException": + throw await deserializeAws_json1_1InstanceIdRequiredExceptionResponse(parsedOutput, context); + case "InvalidComputePlatformException": + case "com.amazonaws.codedeploy#InvalidComputePlatformException": + throw await deserializeAws_json1_1InvalidComputePlatformExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1BatchGetDeploymentsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1BatchGetDeploymentsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1BatchGetDeploymentsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1BatchGetDeploymentsCommand = deserializeAws_json1_1BatchGetDeploymentsCommand; + var deserializeAws_json1_1BatchGetDeploymentsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BatchLimitExceededException": + case "com.amazonaws.codedeploy#BatchLimitExceededException": + throw await deserializeAws_json1_1BatchLimitExceededExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1BatchGetDeploymentTargetsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1BatchGetDeploymentTargetsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1BatchGetDeploymentTargetsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1BatchGetDeploymentTargetsCommand = deserializeAws_json1_1BatchGetDeploymentTargetsCommand; + var deserializeAws_json1_1BatchGetDeploymentTargetsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "DeploymentNotStartedException": + case "com.amazonaws.codedeploy#DeploymentNotStartedException": + throw await deserializeAws_json1_1DeploymentNotStartedExceptionResponse(parsedOutput, context); + case "DeploymentTargetDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentTargetDoesNotExistException": + throw await deserializeAws_json1_1DeploymentTargetDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentTargetIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentTargetIdRequiredException": + throw await deserializeAws_json1_1DeploymentTargetIdRequiredExceptionResponse(parsedOutput, context); + case "DeploymentTargetListSizeExceededException": + case "com.amazonaws.codedeploy#DeploymentTargetListSizeExceededException": + throw await deserializeAws_json1_1DeploymentTargetListSizeExceededExceptionResponse(parsedOutput, context); + case "InstanceDoesNotExistException": + case "com.amazonaws.codedeploy#InstanceDoesNotExistException": + throw await deserializeAws_json1_1InstanceDoesNotExistExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidDeploymentTargetIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentTargetIdException": + throw await deserializeAws_json1_1InvalidDeploymentTargetIdExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1BatchGetOnPremisesInstancesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1BatchGetOnPremisesInstancesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1BatchGetOnPremisesInstancesOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1BatchGetOnPremisesInstancesCommand = deserializeAws_json1_1BatchGetOnPremisesInstancesCommand; + var deserializeAws_json1_1BatchGetOnPremisesInstancesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BatchLimitExceededException": + case "com.amazonaws.codedeploy#BatchLimitExceededException": + throw await deserializeAws_json1_1BatchLimitExceededExceptionResponse(parsedOutput, context); + case "InstanceNameRequiredException": + case "com.amazonaws.codedeploy#InstanceNameRequiredException": + throw await deserializeAws_json1_1InstanceNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ContinueDeploymentCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ContinueDeploymentCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ContinueDeploymentCommand = deserializeAws_json1_1ContinueDeploymentCommand; + var deserializeAws_json1_1ContinueDeploymentCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentAlreadyCompletedException": + case "com.amazonaws.codedeploy#DeploymentAlreadyCompletedException": + throw await deserializeAws_json1_1DeploymentAlreadyCompletedExceptionResponse(parsedOutput, context); + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "DeploymentIsNotInReadyStateException": + case "com.amazonaws.codedeploy#DeploymentIsNotInReadyStateException": + throw await deserializeAws_json1_1DeploymentIsNotInReadyStateExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidDeploymentStatusException": + case "com.amazonaws.codedeploy#InvalidDeploymentStatusException": + throw await deserializeAws_json1_1InvalidDeploymentStatusExceptionResponse(parsedOutput, context); + case "InvalidDeploymentWaitTypeException": + case "com.amazonaws.codedeploy#InvalidDeploymentWaitTypeException": + throw await deserializeAws_json1_1InvalidDeploymentWaitTypeExceptionResponse(parsedOutput, context); + case "UnsupportedActionForDeploymentTypeException": + case "com.amazonaws.codedeploy#UnsupportedActionForDeploymentTypeException": + throw await deserializeAws_json1_1UnsupportedActionForDeploymentTypeExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1CreateApplicationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateApplicationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateApplicationOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1CreateApplicationCommand = deserializeAws_json1_1CreateApplicationCommand; + var deserializeAws_json1_1CreateApplicationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationAlreadyExistsException": + case "com.amazonaws.codedeploy#ApplicationAlreadyExistsException": + throw await deserializeAws_json1_1ApplicationAlreadyExistsExceptionResponse(parsedOutput, context); + case "ApplicationLimitExceededException": + case "com.amazonaws.codedeploy#ApplicationLimitExceededException": + throw await deserializeAws_json1_1ApplicationLimitExceededExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidComputePlatformException": + case "com.amazonaws.codedeploy#InvalidComputePlatformException": + throw await deserializeAws_json1_1InvalidComputePlatformExceptionResponse(parsedOutput, context); + case "InvalidTagsToAddException": + case "com.amazonaws.codedeploy#InvalidTagsToAddException": + throw await deserializeAws_json1_1InvalidTagsToAddExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1CreateDeploymentCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateDeploymentCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateDeploymentOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1CreateDeploymentCommand = deserializeAws_json1_1CreateDeploymentCommand; + var deserializeAws_json1_1CreateDeploymentCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AlarmsLimitExceededException": + case "com.amazonaws.codedeploy#AlarmsLimitExceededException": + throw await deserializeAws_json1_1AlarmsLimitExceededExceptionResponse(parsedOutput, context); + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException": + throw await deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException": + throw await deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse(parsedOutput, context); + case "DeploymentLimitExceededException": + case "com.amazonaws.codedeploy#DeploymentLimitExceededException": + throw await deserializeAws_json1_1DeploymentLimitExceededExceptionResponse(parsedOutput, context); + case "DescriptionTooLongException": + case "com.amazonaws.codedeploy#DescriptionTooLongException": + throw await deserializeAws_json1_1DescriptionTooLongExceptionResponse(parsedOutput, context); + case "InvalidAlarmConfigException": + case "com.amazonaws.codedeploy#InvalidAlarmConfigException": + throw await deserializeAws_json1_1InvalidAlarmConfigExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidAutoRollbackConfigException": + case "com.amazonaws.codedeploy#InvalidAutoRollbackConfigException": + throw await deserializeAws_json1_1InvalidAutoRollbackConfigExceptionResponse(parsedOutput, context); + case "InvalidAutoScalingGroupException": + case "com.amazonaws.codedeploy#InvalidAutoScalingGroupException": + throw await deserializeAws_json1_1InvalidAutoScalingGroupExceptionResponse(parsedOutput, context); + case "InvalidDeploymentConfigNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException": + throw await deserializeAws_json1_1InvalidDeploymentConfigNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentGroupNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException": + throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context); + case "InvalidFileExistsBehaviorException": + case "com.amazonaws.codedeploy#InvalidFileExistsBehaviorException": + throw await deserializeAws_json1_1InvalidFileExistsBehaviorExceptionResponse(parsedOutput, context); + case "InvalidGitHubAccountTokenException": + case "com.amazonaws.codedeploy#InvalidGitHubAccountTokenException": + throw await deserializeAws_json1_1InvalidGitHubAccountTokenExceptionResponse(parsedOutput, context); + case "InvalidIgnoreApplicationStopFailuresValueException": + case "com.amazonaws.codedeploy#InvalidIgnoreApplicationStopFailuresValueException": + throw await deserializeAws_json1_1InvalidIgnoreApplicationStopFailuresValueExceptionResponse(parsedOutput, context); + case "InvalidLoadBalancerInfoException": + case "com.amazonaws.codedeploy#InvalidLoadBalancerInfoException": + throw await deserializeAws_json1_1InvalidLoadBalancerInfoExceptionResponse(parsedOutput, context); + case "InvalidRevisionException": + case "com.amazonaws.codedeploy#InvalidRevisionException": + throw await deserializeAws_json1_1InvalidRevisionExceptionResponse(parsedOutput, context); + case "InvalidRoleException": + case "com.amazonaws.codedeploy#InvalidRoleException": + throw await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context); + case "InvalidTargetInstancesException": + case "com.amazonaws.codedeploy#InvalidTargetInstancesException": + throw await deserializeAws_json1_1InvalidTargetInstancesExceptionResponse(parsedOutput, context); + case "InvalidTrafficRoutingConfigurationException": + case "com.amazonaws.codedeploy#InvalidTrafficRoutingConfigurationException": + throw await deserializeAws_json1_1InvalidTrafficRoutingConfigurationExceptionResponse(parsedOutput, context); + case "InvalidUpdateOutdatedInstancesOnlyValueException": + case "com.amazonaws.codedeploy#InvalidUpdateOutdatedInstancesOnlyValueException": + throw await deserializeAws_json1_1InvalidUpdateOutdatedInstancesOnlyValueExceptionResponse(parsedOutput, context); + case "RevisionDoesNotExistException": + case "com.amazonaws.codedeploy#RevisionDoesNotExistException": + throw await deserializeAws_json1_1RevisionDoesNotExistExceptionResponse(parsedOutput, context); + case "RevisionRequiredException": + case "com.amazonaws.codedeploy#RevisionRequiredException": + throw await deserializeAws_json1_1RevisionRequiredExceptionResponse(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.codedeploy#ThrottlingException": + throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1CreateDeploymentConfigCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateDeploymentConfigCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateDeploymentConfigOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1CreateDeploymentConfigCommand = deserializeAws_json1_1CreateDeploymentConfigCommand; + var deserializeAws_json1_1CreateDeploymentConfigCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentConfigAlreadyExistsException": + case "com.amazonaws.codedeploy#DeploymentConfigAlreadyExistsException": + throw await deserializeAws_json1_1DeploymentConfigAlreadyExistsExceptionResponse(parsedOutput, context); + case "DeploymentConfigLimitExceededException": + case "com.amazonaws.codedeploy#DeploymentConfigLimitExceededException": + throw await deserializeAws_json1_1DeploymentConfigLimitExceededExceptionResponse(parsedOutput, context); + case "DeploymentConfigNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentConfigNameRequiredException": + throw await deserializeAws_json1_1DeploymentConfigNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidComputePlatformException": + case "com.amazonaws.codedeploy#InvalidComputePlatformException": + throw await deserializeAws_json1_1InvalidComputePlatformExceptionResponse(parsedOutput, context); + case "InvalidDeploymentConfigNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException": + throw await deserializeAws_json1_1InvalidDeploymentConfigNameExceptionResponse(parsedOutput, context); + case "InvalidMinimumHealthyHostValueException": + case "com.amazonaws.codedeploy#InvalidMinimumHealthyHostValueException": + throw await deserializeAws_json1_1InvalidMinimumHealthyHostValueExceptionResponse(parsedOutput, context); + case "InvalidTrafficRoutingConfigurationException": + case "com.amazonaws.codedeploy#InvalidTrafficRoutingConfigurationException": + throw await deserializeAws_json1_1InvalidTrafficRoutingConfigurationExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1CreateDeploymentGroupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateDeploymentGroupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateDeploymentGroupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1CreateDeploymentGroupCommand = deserializeAws_json1_1CreateDeploymentGroupCommand; + var deserializeAws_json1_1CreateDeploymentGroupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AlarmsLimitExceededException": + case "com.amazonaws.codedeploy#AlarmsLimitExceededException": + throw await deserializeAws_json1_1AlarmsLimitExceededExceptionResponse(parsedOutput, context); + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupAlreadyExistsException": + case "com.amazonaws.codedeploy#DeploymentGroupAlreadyExistsException": + throw await deserializeAws_json1_1DeploymentGroupAlreadyExistsExceptionResponse(parsedOutput, context); + case "DeploymentGroupLimitExceededException": + case "com.amazonaws.codedeploy#DeploymentGroupLimitExceededException": + throw await deserializeAws_json1_1DeploymentGroupLimitExceededExceptionResponse(parsedOutput, context); + case "DeploymentGroupNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException": + throw await deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse(parsedOutput, context); + case "ECSServiceMappingLimitExceededException": + case "com.amazonaws.codedeploy#ECSServiceMappingLimitExceededException": + throw await deserializeAws_json1_1ECSServiceMappingLimitExceededExceptionResponse(parsedOutput, context); + case "InvalidAlarmConfigException": + case "com.amazonaws.codedeploy#InvalidAlarmConfigException": + throw await deserializeAws_json1_1InvalidAlarmConfigExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidAutoRollbackConfigException": + case "com.amazonaws.codedeploy#InvalidAutoRollbackConfigException": + throw await deserializeAws_json1_1InvalidAutoRollbackConfigExceptionResponse(parsedOutput, context); + case "InvalidAutoScalingGroupException": + case "com.amazonaws.codedeploy#InvalidAutoScalingGroupException": + throw await deserializeAws_json1_1InvalidAutoScalingGroupExceptionResponse(parsedOutput, context); + case "InvalidBlueGreenDeploymentConfigurationException": + case "com.amazonaws.codedeploy#InvalidBlueGreenDeploymentConfigurationException": + throw await deserializeAws_json1_1InvalidBlueGreenDeploymentConfigurationExceptionResponse(parsedOutput, context); + case "InvalidDeploymentConfigNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException": + throw await deserializeAws_json1_1InvalidDeploymentConfigNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentGroupNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException": + throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentStyleException": + case "com.amazonaws.codedeploy#InvalidDeploymentStyleException": + throw await deserializeAws_json1_1InvalidDeploymentStyleExceptionResponse(parsedOutput, context); + case "InvalidEC2TagCombinationException": + case "com.amazonaws.codedeploy#InvalidEC2TagCombinationException": + throw await deserializeAws_json1_1InvalidEC2TagCombinationExceptionResponse(parsedOutput, context); + case "InvalidEC2TagException": + case "com.amazonaws.codedeploy#InvalidEC2TagException": + throw await deserializeAws_json1_1InvalidEC2TagExceptionResponse(parsedOutput, context); + case "InvalidECSServiceException": + case "com.amazonaws.codedeploy#InvalidECSServiceException": + throw await deserializeAws_json1_1InvalidECSServiceExceptionResponse(parsedOutput, context); + case "InvalidInputException": + case "com.amazonaws.codedeploy#InvalidInputException": + throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context); + case "InvalidLoadBalancerInfoException": + case "com.amazonaws.codedeploy#InvalidLoadBalancerInfoException": + throw await deserializeAws_json1_1InvalidLoadBalancerInfoExceptionResponse(parsedOutput, context); + case "InvalidOnPremisesTagCombinationException": + case "com.amazonaws.codedeploy#InvalidOnPremisesTagCombinationException": + throw await deserializeAws_json1_1InvalidOnPremisesTagCombinationExceptionResponse(parsedOutput, context); + case "InvalidRoleException": + case "com.amazonaws.codedeploy#InvalidRoleException": + throw await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context); + case "InvalidTagException": + case "com.amazonaws.codedeploy#InvalidTagException": + throw await deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context); + case "InvalidTagsToAddException": + case "com.amazonaws.codedeploy#InvalidTagsToAddException": + throw await deserializeAws_json1_1InvalidTagsToAddExceptionResponse(parsedOutput, context); + case "InvalidTargetGroupPairException": + case "com.amazonaws.codedeploy#InvalidTargetGroupPairException": + throw await deserializeAws_json1_1InvalidTargetGroupPairExceptionResponse(parsedOutput, context); + case "InvalidTrafficRoutingConfigurationException": + case "com.amazonaws.codedeploy#InvalidTrafficRoutingConfigurationException": + throw await deserializeAws_json1_1InvalidTrafficRoutingConfigurationExceptionResponse(parsedOutput, context); + case "InvalidTriggerConfigException": + case "com.amazonaws.codedeploy#InvalidTriggerConfigException": + throw await deserializeAws_json1_1InvalidTriggerConfigExceptionResponse(parsedOutput, context); + case "LifecycleHookLimitExceededException": + case "com.amazonaws.codedeploy#LifecycleHookLimitExceededException": + throw await deserializeAws_json1_1LifecycleHookLimitExceededExceptionResponse(parsedOutput, context); + case "RoleRequiredException": + case "com.amazonaws.codedeploy#RoleRequiredException": + throw await deserializeAws_json1_1RoleRequiredExceptionResponse(parsedOutput, context); + case "TagSetListLimitExceededException": + case "com.amazonaws.codedeploy#TagSetListLimitExceededException": + throw await deserializeAws_json1_1TagSetListLimitExceededExceptionResponse(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.codedeploy#ThrottlingException": + throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context); + case "TriggerTargetsLimitExceededException": + case "com.amazonaws.codedeploy#TriggerTargetsLimitExceededException": + throw await deserializeAws_json1_1TriggerTargetsLimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1DeleteApplicationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteApplicationCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1DeleteApplicationCommand = deserializeAws_json1_1DeleteApplicationCommand; + var deserializeAws_json1_1DeleteApplicationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidRoleException": + case "com.amazonaws.codedeploy#InvalidRoleException": + throw await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1DeleteDeploymentConfigCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteDeploymentConfigCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1DeleteDeploymentConfigCommand = deserializeAws_json1_1DeleteDeploymentConfigCommand; + var deserializeAws_json1_1DeleteDeploymentConfigCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentConfigInUseException": + case "com.amazonaws.codedeploy#DeploymentConfigInUseException": + throw await deserializeAws_json1_1DeploymentConfigInUseExceptionResponse(parsedOutput, context); + case "DeploymentConfigNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentConfigNameRequiredException": + throw await deserializeAws_json1_1DeploymentConfigNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidDeploymentConfigNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException": + throw await deserializeAws_json1_1InvalidDeploymentConfigNameExceptionResponse(parsedOutput, context); + case "InvalidOperationException": + case "com.amazonaws.codedeploy#InvalidOperationException": + throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1DeleteDeploymentGroupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteDeploymentGroupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeleteDeploymentGroupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1DeleteDeploymentGroupCommand = deserializeAws_json1_1DeleteDeploymentGroupCommand; + var deserializeAws_json1_1DeleteDeploymentGroupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "DeploymentGroupNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException": + throw await deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentGroupNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException": + throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context); + case "InvalidRoleException": + case "com.amazonaws.codedeploy#InvalidRoleException": + throw await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1DeleteGitHubAccountTokenCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteGitHubAccountTokenCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeleteGitHubAccountTokenOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1DeleteGitHubAccountTokenCommand = deserializeAws_json1_1DeleteGitHubAccountTokenCommand; + var deserializeAws_json1_1DeleteGitHubAccountTokenCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "GitHubAccountTokenDoesNotExistException": + case "com.amazonaws.codedeploy#GitHubAccountTokenDoesNotExistException": + throw await deserializeAws_json1_1GitHubAccountTokenDoesNotExistExceptionResponse(parsedOutput, context); + case "GitHubAccountTokenNameRequiredException": + case "com.amazonaws.codedeploy#GitHubAccountTokenNameRequiredException": + throw await deserializeAws_json1_1GitHubAccountTokenNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidGitHubAccountTokenNameException": + case "com.amazonaws.codedeploy#InvalidGitHubAccountTokenNameException": + throw await deserializeAws_json1_1InvalidGitHubAccountTokenNameExceptionResponse(parsedOutput, context); + case "OperationNotSupportedException": + case "com.amazonaws.codedeploy#OperationNotSupportedException": + throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context); + case "ResourceValidationException": + case "com.amazonaws.codedeploy#ResourceValidationException": + throw await deserializeAws_json1_1ResourceValidationExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1DeleteResourcesByExternalIdCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteResourcesByExternalIdCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeleteResourcesByExternalIdOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1DeleteResourcesByExternalIdCommand = deserializeAws_json1_1DeleteResourcesByExternalIdCommand; + var deserializeAws_json1_1DeleteResourcesByExternalIdCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + }; + var deserializeAws_json1_1DeregisterOnPremisesInstanceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeregisterOnPremisesInstanceCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1DeregisterOnPremisesInstanceCommand = deserializeAws_json1_1DeregisterOnPremisesInstanceCommand; + var deserializeAws_json1_1DeregisterOnPremisesInstanceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InstanceNameRequiredException": + case "com.amazonaws.codedeploy#InstanceNameRequiredException": + throw await deserializeAws_json1_1InstanceNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetApplicationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetApplicationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetApplicationOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetApplicationCommand = deserializeAws_json1_1GetApplicationCommand; + var deserializeAws_json1_1GetApplicationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetApplicationRevisionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetApplicationRevisionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetApplicationRevisionOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetApplicationRevisionCommand = deserializeAws_json1_1GetApplicationRevisionCommand; + var deserializeAws_json1_1GetApplicationRevisionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidRevisionException": + case "com.amazonaws.codedeploy#InvalidRevisionException": + throw await deserializeAws_json1_1InvalidRevisionExceptionResponse(parsedOutput, context); + case "RevisionDoesNotExistException": + case "com.amazonaws.codedeploy#RevisionDoesNotExistException": + throw await deserializeAws_json1_1RevisionDoesNotExistExceptionResponse(parsedOutput, context); + case "RevisionRequiredException": + case "com.amazonaws.codedeploy#RevisionRequiredException": + throw await deserializeAws_json1_1RevisionRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetDeploymentCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetDeploymentCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetDeploymentOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetDeploymentCommand = deserializeAws_json1_1GetDeploymentCommand; + var deserializeAws_json1_1GetDeploymentCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetDeploymentConfigCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetDeploymentConfigCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetDeploymentConfigOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetDeploymentConfigCommand = deserializeAws_json1_1GetDeploymentConfigCommand; + var deserializeAws_json1_1GetDeploymentConfigCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentConfigNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentConfigNameRequiredException": + throw await deserializeAws_json1_1DeploymentConfigNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidComputePlatformException": + case "com.amazonaws.codedeploy#InvalidComputePlatformException": + throw await deserializeAws_json1_1InvalidComputePlatformExceptionResponse(parsedOutput, context); + case "InvalidDeploymentConfigNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException": + throw await deserializeAws_json1_1InvalidDeploymentConfigNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetDeploymentGroupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetDeploymentGroupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetDeploymentGroupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetDeploymentGroupCommand = deserializeAws_json1_1GetDeploymentGroupCommand; + var deserializeAws_json1_1GetDeploymentGroupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException": + throw await deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException": + throw await deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentGroupNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException": + throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetDeploymentInstanceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetDeploymentInstanceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetDeploymentInstanceOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetDeploymentInstanceCommand = deserializeAws_json1_1GetDeploymentInstanceCommand; + var deserializeAws_json1_1GetDeploymentInstanceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "InstanceDoesNotExistException": + case "com.amazonaws.codedeploy#InstanceDoesNotExistException": + throw await deserializeAws_json1_1InstanceDoesNotExistExceptionResponse(parsedOutput, context); + case "InstanceIdRequiredException": + case "com.amazonaws.codedeploy#InstanceIdRequiredException": + throw await deserializeAws_json1_1InstanceIdRequiredExceptionResponse(parsedOutput, context); + case "InvalidComputePlatformException": + case "com.amazonaws.codedeploy#InvalidComputePlatformException": + throw await deserializeAws_json1_1InvalidComputePlatformExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetDeploymentTargetCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetDeploymentTargetCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetDeploymentTargetOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetDeploymentTargetCommand = deserializeAws_json1_1GetDeploymentTargetCommand; + var deserializeAws_json1_1GetDeploymentTargetCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "DeploymentNotStartedException": + case "com.amazonaws.codedeploy#DeploymentNotStartedException": + throw await deserializeAws_json1_1DeploymentNotStartedExceptionResponse(parsedOutput, context); + case "DeploymentTargetDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentTargetDoesNotExistException": + throw await deserializeAws_json1_1DeploymentTargetDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentTargetIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentTargetIdRequiredException": + throw await deserializeAws_json1_1DeploymentTargetIdRequiredExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidDeploymentTargetIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentTargetIdException": + throw await deserializeAws_json1_1InvalidDeploymentTargetIdExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1GetOnPremisesInstanceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetOnPremisesInstanceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetOnPremisesInstanceOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1GetOnPremisesInstanceCommand = deserializeAws_json1_1GetOnPremisesInstanceCommand; + var deserializeAws_json1_1GetOnPremisesInstanceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InstanceNameRequiredException": + case "com.amazonaws.codedeploy#InstanceNameRequiredException": + throw await deserializeAws_json1_1InstanceNameRequiredExceptionResponse(parsedOutput, context); + case "InstanceNotRegisteredException": + case "com.amazonaws.codedeploy#InstanceNotRegisteredException": + throw await deserializeAws_json1_1InstanceNotRegisteredExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListApplicationRevisionsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListApplicationRevisionsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListApplicationRevisionsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListApplicationRevisionsCommand = deserializeAws_json1_1ListApplicationRevisionsCommand; + var deserializeAws_json1_1ListApplicationRevisionsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "BucketNameFilterRequiredException": + case "com.amazonaws.codedeploy#BucketNameFilterRequiredException": + throw await deserializeAws_json1_1BucketNameFilterRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidBucketNameFilterException": + case "com.amazonaws.codedeploy#InvalidBucketNameFilterException": + throw await deserializeAws_json1_1InvalidBucketNameFilterExceptionResponse(parsedOutput, context); + case "InvalidDeployedStateFilterException": + case "com.amazonaws.codedeploy#InvalidDeployedStateFilterException": + throw await deserializeAws_json1_1InvalidDeployedStateFilterExceptionResponse(parsedOutput, context); + case "InvalidKeyPrefixFilterException": + case "com.amazonaws.codedeploy#InvalidKeyPrefixFilterException": + throw await deserializeAws_json1_1InvalidKeyPrefixFilterExceptionResponse(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + case "InvalidSortByException": + case "com.amazonaws.codedeploy#InvalidSortByException": + throw await deserializeAws_json1_1InvalidSortByExceptionResponse(parsedOutput, context); + case "InvalidSortOrderException": + case "com.amazonaws.codedeploy#InvalidSortOrderException": + throw await deserializeAws_json1_1InvalidSortOrderExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListApplicationsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListApplicationsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListApplicationsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListApplicationsCommand = deserializeAws_json1_1ListApplicationsCommand; + var deserializeAws_json1_1ListApplicationsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListDeploymentConfigsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListDeploymentConfigsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListDeploymentConfigsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListDeploymentConfigsCommand = deserializeAws_json1_1ListDeploymentConfigsCommand; + var deserializeAws_json1_1ListDeploymentConfigsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListDeploymentGroupsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListDeploymentGroupsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListDeploymentGroupsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListDeploymentGroupsCommand = deserializeAws_json1_1ListDeploymentGroupsCommand; + var deserializeAws_json1_1ListDeploymentGroupsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListDeploymentInstancesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListDeploymentInstancesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListDeploymentInstancesOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListDeploymentInstancesCommand = deserializeAws_json1_1ListDeploymentInstancesCommand; + var deserializeAws_json1_1ListDeploymentInstancesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "DeploymentNotStartedException": + case "com.amazonaws.codedeploy#DeploymentNotStartedException": + throw await deserializeAws_json1_1DeploymentNotStartedExceptionResponse(parsedOutput, context); + case "InvalidComputePlatformException": + case "com.amazonaws.codedeploy#InvalidComputePlatformException": + throw await deserializeAws_json1_1InvalidComputePlatformExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidDeploymentInstanceTypeException": + case "com.amazonaws.codedeploy#InvalidDeploymentInstanceTypeException": + throw await deserializeAws_json1_1InvalidDeploymentInstanceTypeExceptionResponse(parsedOutput, context); + case "InvalidInstanceStatusException": + case "com.amazonaws.codedeploy#InvalidInstanceStatusException": + throw await deserializeAws_json1_1InvalidInstanceStatusExceptionResponse(parsedOutput, context); + case "InvalidInstanceTypeException": + case "com.amazonaws.codedeploy#InvalidInstanceTypeException": + throw await deserializeAws_json1_1InvalidInstanceTypeExceptionResponse(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + case "InvalidTargetFilterNameException": + case "com.amazonaws.codedeploy#InvalidTargetFilterNameException": + throw await deserializeAws_json1_1InvalidTargetFilterNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListDeploymentsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListDeploymentsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListDeploymentsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListDeploymentsCommand = deserializeAws_json1_1ListDeploymentsCommand; + var deserializeAws_json1_1ListDeploymentsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "DeploymentGroupDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException": + throw await deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException": + throw await deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentGroupNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException": + throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentStatusException": + case "com.amazonaws.codedeploy#InvalidDeploymentStatusException": + throw await deserializeAws_json1_1InvalidDeploymentStatusExceptionResponse(parsedOutput, context); + case "InvalidExternalIdException": + case "com.amazonaws.codedeploy#InvalidExternalIdException": + throw await deserializeAws_json1_1InvalidExternalIdExceptionResponse(parsedOutput, context); + case "InvalidInputException": + case "com.amazonaws.codedeploy#InvalidInputException": + throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + case "InvalidTimeRangeException": + case "com.amazonaws.codedeploy#InvalidTimeRangeException": + throw await deserializeAws_json1_1InvalidTimeRangeExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListDeploymentTargetsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListDeploymentTargetsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListDeploymentTargetsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListDeploymentTargetsCommand = deserializeAws_json1_1ListDeploymentTargetsCommand; + var deserializeAws_json1_1ListDeploymentTargetsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "DeploymentNotStartedException": + case "com.amazonaws.codedeploy#DeploymentNotStartedException": + throw await deserializeAws_json1_1DeploymentNotStartedExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidDeploymentInstanceTypeException": + case "com.amazonaws.codedeploy#InvalidDeploymentInstanceTypeException": + throw await deserializeAws_json1_1InvalidDeploymentInstanceTypeExceptionResponse(parsedOutput, context); + case "InvalidInstanceStatusException": + case "com.amazonaws.codedeploy#InvalidInstanceStatusException": + throw await deserializeAws_json1_1InvalidInstanceStatusExceptionResponse(parsedOutput, context); + case "InvalidInstanceTypeException": + case "com.amazonaws.codedeploy#InvalidInstanceTypeException": + throw await deserializeAws_json1_1InvalidInstanceTypeExceptionResponse(parsedOutput, context); + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListGitHubAccountTokenNamesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListGitHubAccountTokenNamesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListGitHubAccountTokenNamesOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListGitHubAccountTokenNamesCommand = deserializeAws_json1_1ListGitHubAccountTokenNamesCommand; + var deserializeAws_json1_1ListGitHubAccountTokenNamesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + case "OperationNotSupportedException": + case "com.amazonaws.codedeploy#OperationNotSupportedException": + throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context); + case "ResourceValidationException": + case "com.amazonaws.codedeploy#ResourceValidationException": + throw await deserializeAws_json1_1ResourceValidationExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListOnPremisesInstancesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListOnPremisesInstancesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListOnPremisesInstancesOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListOnPremisesInstancesCommand = deserializeAws_json1_1ListOnPremisesInstancesCommand; + var deserializeAws_json1_1ListOnPremisesInstancesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidNextTokenException": + case "com.amazonaws.codedeploy#InvalidNextTokenException": + throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context); + case "InvalidRegistrationStatusException": + case "com.amazonaws.codedeploy#InvalidRegistrationStatusException": + throw await deserializeAws_json1_1InvalidRegistrationStatusExceptionResponse(parsedOutput, context); + case "InvalidTagFilterException": + case "com.amazonaws.codedeploy#InvalidTagFilterException": + throw await deserializeAws_json1_1InvalidTagFilterExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListTagsForResourceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListTagsForResourceOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_1ListTagsForResourceCommand; + var deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ArnNotSupportedException": + case "com.amazonaws.codedeploy#ArnNotSupportedException": + throw await deserializeAws_json1_1ArnNotSupportedExceptionResponse(parsedOutput, context); + case "InvalidArnException": + case "com.amazonaws.codedeploy#InvalidArnException": + throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context); + case "ResourceArnRequiredException": + case "com.amazonaws.codedeploy#ResourceArnRequiredException": + throw await deserializeAws_json1_1ResourceArnRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1PutLifecycleEventHookExecutionStatusOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand = deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand; + var deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "InvalidLifecycleEventHookExecutionIdException": + case "com.amazonaws.codedeploy#InvalidLifecycleEventHookExecutionIdException": + throw await deserializeAws_json1_1InvalidLifecycleEventHookExecutionIdExceptionResponse(parsedOutput, context); + case "InvalidLifecycleEventHookExecutionStatusException": + case "com.amazonaws.codedeploy#InvalidLifecycleEventHookExecutionStatusException": + throw await deserializeAws_json1_1InvalidLifecycleEventHookExecutionStatusExceptionResponse(parsedOutput, context); + case "LifecycleEventAlreadyCompletedException": + case "com.amazonaws.codedeploy#LifecycleEventAlreadyCompletedException": + throw await deserializeAws_json1_1LifecycleEventAlreadyCompletedExceptionResponse(parsedOutput, context); + case "UnsupportedActionForDeploymentTypeException": + case "com.amazonaws.codedeploy#UnsupportedActionForDeploymentTypeException": + throw await deserializeAws_json1_1UnsupportedActionForDeploymentTypeExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1RegisterApplicationRevisionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1RegisterApplicationRevisionCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1RegisterApplicationRevisionCommand = deserializeAws_json1_1RegisterApplicationRevisionCommand; + var deserializeAws_json1_1RegisterApplicationRevisionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "DescriptionTooLongException": + case "com.amazonaws.codedeploy#DescriptionTooLongException": + throw await deserializeAws_json1_1DescriptionTooLongExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidRevisionException": + case "com.amazonaws.codedeploy#InvalidRevisionException": + throw await deserializeAws_json1_1InvalidRevisionExceptionResponse(parsedOutput, context); + case "RevisionRequiredException": + case "com.amazonaws.codedeploy#RevisionRequiredException": + throw await deserializeAws_json1_1RevisionRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1RegisterOnPremisesInstanceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1RegisterOnPremisesInstanceCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1RegisterOnPremisesInstanceCommand = deserializeAws_json1_1RegisterOnPremisesInstanceCommand; + var deserializeAws_json1_1RegisterOnPremisesInstanceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "IamArnRequiredException": + case "com.amazonaws.codedeploy#IamArnRequiredException": + throw await deserializeAws_json1_1IamArnRequiredExceptionResponse(parsedOutput, context); + case "IamSessionArnAlreadyRegisteredException": + case "com.amazonaws.codedeploy#IamSessionArnAlreadyRegisteredException": + throw await deserializeAws_json1_1IamSessionArnAlreadyRegisteredExceptionResponse(parsedOutput, context); + case "IamUserArnAlreadyRegisteredException": + case "com.amazonaws.codedeploy#IamUserArnAlreadyRegisteredException": + throw await deserializeAws_json1_1IamUserArnAlreadyRegisteredExceptionResponse(parsedOutput, context); + case "IamUserArnRequiredException": + case "com.amazonaws.codedeploy#IamUserArnRequiredException": + throw await deserializeAws_json1_1IamUserArnRequiredExceptionResponse(parsedOutput, context); + case "InstanceNameAlreadyRegisteredException": + case "com.amazonaws.codedeploy#InstanceNameAlreadyRegisteredException": + throw await deserializeAws_json1_1InstanceNameAlreadyRegisteredExceptionResponse(parsedOutput, context); + case "InstanceNameRequiredException": + case "com.amazonaws.codedeploy#InstanceNameRequiredException": + throw await deserializeAws_json1_1InstanceNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidIamSessionArnException": + case "com.amazonaws.codedeploy#InvalidIamSessionArnException": + throw await deserializeAws_json1_1InvalidIamSessionArnExceptionResponse(parsedOutput, context); + case "InvalidIamUserArnException": + case "com.amazonaws.codedeploy#InvalidIamUserArnException": + throw await deserializeAws_json1_1InvalidIamUserArnExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + case "MultipleIamArnsProvidedException": + case "com.amazonaws.codedeploy#MultipleIamArnsProvidedException": + throw await deserializeAws_json1_1MultipleIamArnsProvidedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand = deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand; + var deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InstanceLimitExceededException": + case "com.amazonaws.codedeploy#InstanceLimitExceededException": + throw await deserializeAws_json1_1InstanceLimitExceededExceptionResponse(parsedOutput, context); + case "InstanceNameRequiredException": + case "com.amazonaws.codedeploy#InstanceNameRequiredException": + throw await deserializeAws_json1_1InstanceNameRequiredExceptionResponse(parsedOutput, context); + case "InstanceNotRegisteredException": + case "com.amazonaws.codedeploy#InstanceNotRegisteredException": + throw await deserializeAws_json1_1InstanceNotRegisteredExceptionResponse(parsedOutput, context); + case "InvalidInstanceNameException": + case "com.amazonaws.codedeploy#InvalidInstanceNameException": + throw await deserializeAws_json1_1InvalidInstanceNameExceptionResponse(parsedOutput, context); + case "InvalidTagException": + case "com.amazonaws.codedeploy#InvalidTagException": + throw await deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context); + case "TagLimitExceededException": + case "com.amazonaws.codedeploy#TagLimitExceededException": + throw await deserializeAws_json1_1TagLimitExceededExceptionResponse(parsedOutput, context); + case "TagRequiredException": + case "com.amazonaws.codedeploy#TagRequiredException": + throw await deserializeAws_json1_1TagRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand = deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand; + var deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentAlreadyCompletedException": + case "com.amazonaws.codedeploy#DeploymentAlreadyCompletedException": + throw await deserializeAws_json1_1DeploymentAlreadyCompletedExceptionResponse(parsedOutput, context); + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "DeploymentNotStartedException": + case "com.amazonaws.codedeploy#DeploymentNotStartedException": + throw await deserializeAws_json1_1DeploymentNotStartedExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "UnsupportedActionForDeploymentTypeException": + case "com.amazonaws.codedeploy#UnsupportedActionForDeploymentTypeException": + throw await deserializeAws_json1_1UnsupportedActionForDeploymentTypeExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1StopDeploymentCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1StopDeploymentCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1StopDeploymentOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1StopDeploymentCommand = deserializeAws_json1_1StopDeploymentCommand; + var deserializeAws_json1_1StopDeploymentCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DeploymentAlreadyCompletedException": + case "com.amazonaws.codedeploy#DeploymentAlreadyCompletedException": + throw await deserializeAws_json1_1DeploymentAlreadyCompletedExceptionResponse(parsedOutput, context); + case "DeploymentDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentDoesNotExistException": + throw await deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException": + throw await deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentIdRequiredException": + case "com.amazonaws.codedeploy#DeploymentIdRequiredException": + throw await deserializeAws_json1_1DeploymentIdRequiredExceptionResponse(parsedOutput, context); + case "InvalidDeploymentIdException": + case "com.amazonaws.codedeploy#InvalidDeploymentIdException": + throw await deserializeAws_json1_1InvalidDeploymentIdExceptionResponse(parsedOutput, context); + case "UnsupportedActionForDeploymentTypeException": + case "com.amazonaws.codedeploy#UnsupportedActionForDeploymentTypeException": + throw await deserializeAws_json1_1UnsupportedActionForDeploymentTypeExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1TagResourceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1TagResourceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1TagResourceOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagResourceCommand; + var deserializeAws_json1_1TagResourceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ArnNotSupportedException": + case "com.amazonaws.codedeploy#ArnNotSupportedException": + throw await deserializeAws_json1_1ArnNotSupportedExceptionResponse(parsedOutput, context); + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException": + throw await deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse(parsedOutput, context); + case "InvalidArnException": + case "com.amazonaws.codedeploy#InvalidArnException": + throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context); + case "InvalidTagsToAddException": + case "com.amazonaws.codedeploy#InvalidTagsToAddException": + throw await deserializeAws_json1_1InvalidTagsToAddExceptionResponse(parsedOutput, context); + case "ResourceArnRequiredException": + case "com.amazonaws.codedeploy#ResourceArnRequiredException": + throw await deserializeAws_json1_1ResourceArnRequiredExceptionResponse(parsedOutput, context); + case "TagRequiredException": + case "com.amazonaws.codedeploy#TagRequiredException": + throw await deserializeAws_json1_1TagRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1UntagResourceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UntagResourceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UntagResourceOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1UntagResourceCommand; + var deserializeAws_json1_1UntagResourceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ArnNotSupportedException": + case "com.amazonaws.codedeploy#ArnNotSupportedException": + throw await deserializeAws_json1_1ArnNotSupportedExceptionResponse(parsedOutput, context); + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException": + throw await deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse(parsedOutput, context); + case "InvalidArnException": + case "com.amazonaws.codedeploy#InvalidArnException": + throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context); + case "InvalidTagsToAddException": + case "com.amazonaws.codedeploy#InvalidTagsToAddException": + throw await deserializeAws_json1_1InvalidTagsToAddExceptionResponse(parsedOutput, context); + case "ResourceArnRequiredException": + case "com.amazonaws.codedeploy#ResourceArnRequiredException": + throw await deserializeAws_json1_1ResourceArnRequiredExceptionResponse(parsedOutput, context); + case "TagRequiredException": + case "com.amazonaws.codedeploy#TagRequiredException": + throw await deserializeAws_json1_1TagRequiredExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1UpdateApplicationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateApplicationCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1UpdateApplicationCommand = deserializeAws_json1_1UpdateApplicationCommand; + var deserializeAws_json1_1UpdateApplicationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ApplicationAlreadyExistsException": + case "com.amazonaws.codedeploy#ApplicationAlreadyExistsException": + throw await deserializeAws_json1_1ApplicationAlreadyExistsExceptionResponse(parsedOutput, context); + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1UpdateDeploymentGroupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateDeploymentGroupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdateDeploymentGroupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports.deserializeAws_json1_1UpdateDeploymentGroupCommand = deserializeAws_json1_1UpdateDeploymentGroupCommand; + var deserializeAws_json1_1UpdateDeploymentGroupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseErrorBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AlarmsLimitExceededException": + case "com.amazonaws.codedeploy#AlarmsLimitExceededException": + throw await deserializeAws_json1_1AlarmsLimitExceededExceptionResponse(parsedOutput, context); + case "ApplicationDoesNotExistException": + case "com.amazonaws.codedeploy#ApplicationDoesNotExistException": + throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context); + case "ApplicationNameRequiredException": + case "com.amazonaws.codedeploy#ApplicationNameRequiredException": + throw await deserializeAws_json1_1ApplicationNameRequiredExceptionResponse(parsedOutput, context); + case "DeploymentConfigDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentConfigDoesNotExistException": + throw await deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupAlreadyExistsException": + case "com.amazonaws.codedeploy#DeploymentGroupAlreadyExistsException": + throw await deserializeAws_json1_1DeploymentGroupAlreadyExistsExceptionResponse(parsedOutput, context); + case "DeploymentGroupDoesNotExistException": + case "com.amazonaws.codedeploy#DeploymentGroupDoesNotExistException": + throw await deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse(parsedOutput, context); + case "DeploymentGroupNameRequiredException": + case "com.amazonaws.codedeploy#DeploymentGroupNameRequiredException": + throw await deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse(parsedOutput, context); + case "ECSServiceMappingLimitExceededException": + case "com.amazonaws.codedeploy#ECSServiceMappingLimitExceededException": + throw await deserializeAws_json1_1ECSServiceMappingLimitExceededExceptionResponse(parsedOutput, context); + case "InvalidAlarmConfigException": + case "com.amazonaws.codedeploy#InvalidAlarmConfigException": + throw await deserializeAws_json1_1InvalidAlarmConfigExceptionResponse(parsedOutput, context); + case "InvalidApplicationNameException": + case "com.amazonaws.codedeploy#InvalidApplicationNameException": + throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context); + case "InvalidAutoRollbackConfigException": + case "com.amazonaws.codedeploy#InvalidAutoRollbackConfigException": + throw await deserializeAws_json1_1InvalidAutoRollbackConfigExceptionResponse(parsedOutput, context); + case "InvalidAutoScalingGroupException": + case "com.amazonaws.codedeploy#InvalidAutoScalingGroupException": + throw await deserializeAws_json1_1InvalidAutoScalingGroupExceptionResponse(parsedOutput, context); + case "InvalidBlueGreenDeploymentConfigurationException": + case "com.amazonaws.codedeploy#InvalidBlueGreenDeploymentConfigurationException": + throw await deserializeAws_json1_1InvalidBlueGreenDeploymentConfigurationExceptionResponse(parsedOutput, context); + case "InvalidDeploymentConfigNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentConfigNameException": + throw await deserializeAws_json1_1InvalidDeploymentConfigNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentGroupNameException": + case "com.amazonaws.codedeploy#InvalidDeploymentGroupNameException": + throw await deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse(parsedOutput, context); + case "InvalidDeploymentStyleException": + case "com.amazonaws.codedeploy#InvalidDeploymentStyleException": + throw await deserializeAws_json1_1InvalidDeploymentStyleExceptionResponse(parsedOutput, context); + case "InvalidEC2TagCombinationException": + case "com.amazonaws.codedeploy#InvalidEC2TagCombinationException": + throw await deserializeAws_json1_1InvalidEC2TagCombinationExceptionResponse(parsedOutput, context); + case "InvalidEC2TagException": + case "com.amazonaws.codedeploy#InvalidEC2TagException": + throw await deserializeAws_json1_1InvalidEC2TagExceptionResponse(parsedOutput, context); + case "InvalidECSServiceException": + case "com.amazonaws.codedeploy#InvalidECSServiceException": + throw await deserializeAws_json1_1InvalidECSServiceExceptionResponse(parsedOutput, context); + case "InvalidInputException": + case "com.amazonaws.codedeploy#InvalidInputException": + throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context); + case "InvalidLoadBalancerInfoException": + case "com.amazonaws.codedeploy#InvalidLoadBalancerInfoException": + throw await deserializeAws_json1_1InvalidLoadBalancerInfoExceptionResponse(parsedOutput, context); + case "InvalidOnPremisesTagCombinationException": + case "com.amazonaws.codedeploy#InvalidOnPremisesTagCombinationException": + throw await deserializeAws_json1_1InvalidOnPremisesTagCombinationExceptionResponse(parsedOutput, context); + case "InvalidRoleException": + case "com.amazonaws.codedeploy#InvalidRoleException": + throw await deserializeAws_json1_1InvalidRoleExceptionResponse(parsedOutput, context); + case "InvalidTagException": + case "com.amazonaws.codedeploy#InvalidTagException": + throw await deserializeAws_json1_1InvalidTagExceptionResponse(parsedOutput, context); + case "InvalidTargetGroupPairException": + case "com.amazonaws.codedeploy#InvalidTargetGroupPairException": + throw await deserializeAws_json1_1InvalidTargetGroupPairExceptionResponse(parsedOutput, context); + case "InvalidTrafficRoutingConfigurationException": + case "com.amazonaws.codedeploy#InvalidTrafficRoutingConfigurationException": + throw await deserializeAws_json1_1InvalidTrafficRoutingConfigurationExceptionResponse(parsedOutput, context); + case "InvalidTriggerConfigException": + case "com.amazonaws.codedeploy#InvalidTriggerConfigException": + throw await deserializeAws_json1_1InvalidTriggerConfigExceptionResponse(parsedOutput, context); + case "LifecycleHookLimitExceededException": + case "com.amazonaws.codedeploy#LifecycleHookLimitExceededException": + throw await deserializeAws_json1_1LifecycleHookLimitExceededExceptionResponse(parsedOutput, context); + case "TagSetListLimitExceededException": + case "com.amazonaws.codedeploy#TagSetListLimitExceededException": + throw await deserializeAws_json1_1TagSetListLimitExceededExceptionResponse(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.codedeploy#ThrottlingException": + throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context); + case "TriggerTargetsLimitExceededException": + case "com.amazonaws.codedeploy#TriggerTargetsLimitExceededException": + throw await deserializeAws_json1_1TriggerTargetsLimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: CodeDeployServiceException_1.CodeDeployServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_1AlarmsLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1AlarmsLimitExceededException(body, context); + const exception = new models_0_1.AlarmsLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ApplicationAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ApplicationAlreadyExistsException(body, context); + const exception = new models_0_1.ApplicationAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ApplicationDoesNotExistException(body, context); + const exception = new models_0_1.ApplicationDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ApplicationLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ApplicationLimitExceededException(body, context); + const exception = new models_0_1.ApplicationLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ApplicationNameRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ApplicationNameRequiredException(body, context); + const exception = new models_0_1.ApplicationNameRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ArnNotSupportedExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ArnNotSupportedException(body, context); + const exception = new models_0_1.ArnNotSupportedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1BatchLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1BatchLimitExceededException(body, context); + const exception = new models_0_1.BatchLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1BucketNameFilterRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1BucketNameFilterRequiredException(body, context); + const exception = new models_0_1.BucketNameFilterRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentAlreadyCompletedExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentAlreadyCompletedException(body, context); + const exception = new models_0_1.DeploymentAlreadyCompletedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentConfigAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentConfigAlreadyExistsException(body, context); + const exception = new models_0_1.DeploymentConfigAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentConfigDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentConfigDoesNotExistException(body, context); + const exception = new models_0_1.DeploymentConfigDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentConfigInUseExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentConfigInUseException(body, context); + const exception = new models_0_1.DeploymentConfigInUseException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentConfigLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentConfigLimitExceededException(body, context); + const exception = new models_0_1.DeploymentConfigLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentConfigNameRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentConfigNameRequiredException(body, context); + const exception = new models_0_1.DeploymentConfigNameRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentDoesNotExistException(body, context); + const exception = new models_0_1.DeploymentDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentGroupAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentGroupAlreadyExistsException(body, context); + const exception = new models_0_1.DeploymentGroupAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentGroupDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentGroupDoesNotExistException(body, context); + const exception = new models_0_1.DeploymentGroupDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentGroupLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentGroupLimitExceededException(body, context); + const exception = new models_0_1.DeploymentGroupLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentGroupNameRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentGroupNameRequiredException(body, context); + const exception = new models_0_1.DeploymentGroupNameRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentIdRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentIdRequiredException(body, context); + const exception = new models_0_1.DeploymentIdRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentIsNotInReadyStateExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentIsNotInReadyStateException(body, context); + const exception = new models_0_1.DeploymentIsNotInReadyStateException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentLimitExceededException(body, context); + const exception = new models_0_1.DeploymentLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentNotStartedExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentNotStartedException(body, context); + const exception = new models_0_1.DeploymentNotStartedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentTargetDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentTargetDoesNotExistException(body, context); + const exception = new models_0_1.DeploymentTargetDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentTargetIdRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentTargetIdRequiredException(body, context); + const exception = new models_0_1.DeploymentTargetIdRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DeploymentTargetListSizeExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DeploymentTargetListSizeExceededException(body, context); + const exception = new models_0_1.DeploymentTargetListSizeExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1DescriptionTooLongExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DescriptionTooLongException(body, context); + const exception = new models_0_1.DescriptionTooLongException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ECSServiceMappingLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ECSServiceMappingLimitExceededException(body, context); + const exception = new models_0_1.ECSServiceMappingLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1GitHubAccountTokenDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1GitHubAccountTokenDoesNotExistException(body, context); + const exception = new models_0_1.GitHubAccountTokenDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1GitHubAccountTokenNameRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1GitHubAccountTokenNameRequiredException(body, context); + const exception = new models_0_1.GitHubAccountTokenNameRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1IamArnRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1IamArnRequiredException(body, context); + const exception = new models_0_1.IamArnRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1IamSessionArnAlreadyRegisteredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1IamSessionArnAlreadyRegisteredException(body, context); + const exception = new models_0_1.IamSessionArnAlreadyRegisteredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1IamUserArnAlreadyRegisteredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1IamUserArnAlreadyRegisteredException(body, context); + const exception = new models_0_1.IamUserArnAlreadyRegisteredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1IamUserArnRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1IamUserArnRequiredException(body, context); + const exception = new models_0_1.IamUserArnRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InstanceDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InstanceDoesNotExistException(body, context); + const exception = new models_0_1.InstanceDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InstanceIdRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InstanceIdRequiredException(body, context); + const exception = new models_0_1.InstanceIdRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InstanceLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InstanceLimitExceededException(body, context); + const exception = new models_0_1.InstanceLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InstanceNameAlreadyRegisteredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InstanceNameAlreadyRegisteredException(body, context); + const exception = new models_0_1.InstanceNameAlreadyRegisteredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InstanceNameRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InstanceNameRequiredException(body, context); + const exception = new models_0_1.InstanceNameRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InstanceNotRegisteredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InstanceNotRegisteredException(body, context); + const exception = new models_0_1.InstanceNotRegisteredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidAlarmConfigExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidAlarmConfigException(body, context); + const exception = new models_0_1.InvalidAlarmConfigException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidApplicationNameExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidApplicationNameException(body, context); + const exception = new models_0_1.InvalidApplicationNameException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidArnExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidArnException(body, context); + const exception = new models_0_1.InvalidArnException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidAutoRollbackConfigExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidAutoRollbackConfigException(body, context); + const exception = new models_0_1.InvalidAutoRollbackConfigException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidAutoScalingGroupExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidAutoScalingGroupException(body, context); + const exception = new models_0_1.InvalidAutoScalingGroupException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidBlueGreenDeploymentConfigurationExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidBlueGreenDeploymentConfigurationException(body, context); + const exception = new models_0_1.InvalidBlueGreenDeploymentConfigurationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidBucketNameFilterExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidBucketNameFilterException(body, context); + const exception = new models_0_1.InvalidBucketNameFilterException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidComputePlatformExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidComputePlatformException(body, context); + const exception = new models_0_1.InvalidComputePlatformException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeployedStateFilterExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeployedStateFilterException(body, context); + const exception = new models_0_1.InvalidDeployedStateFilterException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentConfigNameExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentConfigNameException(body, context); + const exception = new models_0_1.InvalidDeploymentConfigNameException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentGroupNameExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentGroupNameException(body, context); + const exception = new models_0_1.InvalidDeploymentGroupNameException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentIdExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentIdException(body, context); + const exception = new models_0_1.InvalidDeploymentIdException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentInstanceTypeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentInstanceTypeException(body, context); + const exception = new models_0_1.InvalidDeploymentInstanceTypeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentStatusExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentStatusException(body, context); + const exception = new models_0_1.InvalidDeploymentStatusException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentStyleExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentStyleException(body, context); + const exception = new models_0_1.InvalidDeploymentStyleException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentTargetIdExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentTargetIdException(body, context); + const exception = new models_0_1.InvalidDeploymentTargetIdException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidDeploymentWaitTypeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeploymentWaitTypeException(body, context); + const exception = new models_0_1.InvalidDeploymentWaitTypeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidEC2TagCombinationExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidEC2TagCombinationException(body, context); + const exception = new models_0_1.InvalidEC2TagCombinationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidEC2TagExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidEC2TagException(body, context); + const exception = new models_0_1.InvalidEC2TagException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidECSServiceExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidECSServiceException(body, context); + const exception = new models_0_1.InvalidECSServiceException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidExternalIdExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidExternalIdException(body, context); + const exception = new models_0_1.InvalidExternalIdException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidFileExistsBehaviorExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidFileExistsBehaviorException(body, context); + const exception = new models_0_1.InvalidFileExistsBehaviorException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidGitHubAccountTokenExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidGitHubAccountTokenException(body, context); + const exception = new models_0_1.InvalidGitHubAccountTokenException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidGitHubAccountTokenNameExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidGitHubAccountTokenNameException(body, context); + const exception = new models_0_1.InvalidGitHubAccountTokenNameException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidIamSessionArnExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidIamSessionArnException(body, context); + const exception = new models_0_1.InvalidIamSessionArnException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidIamUserArnExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidIamUserArnException(body, context); + const exception = new models_0_1.InvalidIamUserArnException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidIgnoreApplicationStopFailuresValueExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidIgnoreApplicationStopFailuresValueException(body, context); + const exception = new models_0_1.InvalidIgnoreApplicationStopFailuresValueException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidInputExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidInputException(body, context); + const exception = new models_0_1.InvalidInputException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidInstanceNameExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidInstanceNameException(body, context); + const exception = new models_0_1.InvalidInstanceNameException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidInstanceStatusExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidInstanceStatusException(body, context); + const exception = new models_0_1.InvalidInstanceStatusException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidInstanceTypeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidInstanceTypeException(body, context); + const exception = new models_0_1.InvalidInstanceTypeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidKeyPrefixFilterExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidKeyPrefixFilterException(body, context); + const exception = new models_0_1.InvalidKeyPrefixFilterException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidLifecycleEventHookExecutionIdExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidLifecycleEventHookExecutionIdException(body, context); + const exception = new models_0_1.InvalidLifecycleEventHookExecutionIdException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidLifecycleEventHookExecutionStatusExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidLifecycleEventHookExecutionStatusException(body, context); + const exception = new models_0_1.InvalidLifecycleEventHookExecutionStatusException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidLoadBalancerInfoExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidLoadBalancerInfoException(body, context); + const exception = new models_0_1.InvalidLoadBalancerInfoException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidMinimumHealthyHostValueExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidMinimumHealthyHostValueException(body, context); + const exception = new models_0_1.InvalidMinimumHealthyHostValueException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context); + const exception = new models_0_1.InvalidNextTokenException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidOnPremisesTagCombinationExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidOnPremisesTagCombinationException(body, context); + const exception = new models_0_1.InvalidOnPremisesTagCombinationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidOperationExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidOperationException(body, context); + const exception = new models_0_1.InvalidOperationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidRegistrationStatusExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidRegistrationStatusException(body, context); + const exception = new models_0_1.InvalidRegistrationStatusException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidRevisionExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidRevisionException(body, context); + const exception = new models_0_1.InvalidRevisionException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidRoleExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidRoleException(body, context); + const exception = new models_0_1.InvalidRoleException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidSortByExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidSortByException(body, context); + const exception = new models_0_1.InvalidSortByException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidSortOrderExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidSortOrderException(body, context); + const exception = new models_0_1.InvalidSortOrderException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTagExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTagException(body, context); + const exception = new models_0_1.InvalidTagException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTagFilterExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTagFilterException(body, context); + const exception = new models_0_1.InvalidTagFilterException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTagsToAddExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTagsToAddException(body, context); + const exception = new models_0_1.InvalidTagsToAddException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTargetFilterNameExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTargetFilterNameException(body, context); + const exception = new models_0_1.InvalidTargetFilterNameException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTargetGroupPairExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTargetGroupPairException(body, context); + const exception = new models_0_1.InvalidTargetGroupPairException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTargetInstancesExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTargetInstancesException(body, context); + const exception = new models_0_1.InvalidTargetInstancesException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTimeRangeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTimeRangeException(body, context); + const exception = new models_0_1.InvalidTimeRangeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTrafficRoutingConfigurationExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTrafficRoutingConfigurationException(body, context); + const exception = new models_0_1.InvalidTrafficRoutingConfigurationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidTriggerConfigExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTriggerConfigException(body, context); + const exception = new models_0_1.InvalidTriggerConfigException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1InvalidUpdateOutdatedInstancesOnlyValueExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidUpdateOutdatedInstancesOnlyValueException(body, context); + const exception = new models_0_1.InvalidUpdateOutdatedInstancesOnlyValueException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1LifecycleEventAlreadyCompletedExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1LifecycleEventAlreadyCompletedException(body, context); + const exception = new models_0_1.LifecycleEventAlreadyCompletedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1LifecycleHookLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1LifecycleHookLimitExceededException(body, context); + const exception = new models_0_1.LifecycleHookLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1MultipleIamArnsProvidedExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1MultipleIamArnsProvidedException(body, context); + const exception = new models_0_1.MultipleIamArnsProvidedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1OperationNotSupportedExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1OperationNotSupportedException(body, context); + const exception = new models_0_1.OperationNotSupportedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ResourceArnRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ResourceArnRequiredException(body, context); + const exception = new models_0_1.ResourceArnRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ResourceValidationExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ResourceValidationException(body, context); + const exception = new models_0_1.ResourceValidationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1RevisionDoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1RevisionDoesNotExistException(body, context); + const exception = new models_0_1.RevisionDoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1RevisionRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1RevisionRequiredException(body, context); + const exception = new models_0_1.RevisionRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1RoleRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1RoleRequiredException(body, context); + const exception = new models_0_1.RoleRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1TagLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1TagLimitExceededException(body, context); + const exception = new models_0_1.TagLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1TagRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1TagRequiredException(body, context); + const exception = new models_0_1.TagRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1TagSetListLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1TagSetListLimitExceededException(body, context); + const exception = new models_0_1.TagSetListLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ThrottlingException(body, context); + const exception = new models_0_1.ThrottlingException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1TriggerTargetsLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1TriggerTargetsLimitExceededException(body, context); + const exception = new models_0_1.TriggerTargetsLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_1UnsupportedActionForDeploymentTypeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1UnsupportedActionForDeploymentTypeException(body, context); + const exception = new models_0_1.UnsupportedActionForDeploymentTypeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var serializeAws_json1_1AddTagsToOnPremisesInstancesInput = (input, context) => { + return { + ...input.instanceNames != null && { + instanceNames: serializeAws_json1_1InstanceNameList(input.instanceNames, context) + }, + ...input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) } + }; + }; + var serializeAws_json1_1Alarm = (input, context) => { + return { + ...input.name != null && { name: input.name } + }; + }; + var serializeAws_json1_1AlarmConfiguration = (input, context) => { + return { + ...input.alarms != null && { alarms: serializeAws_json1_1AlarmList(input.alarms, context) }, + ...input.enabled != null && { enabled: input.enabled }, + ...input.ignorePollAlarmFailure != null && { ignorePollAlarmFailure: input.ignorePollAlarmFailure } + }; + }; + var serializeAws_json1_1AlarmList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1Alarm(entry, context); + }); + }; + var serializeAws_json1_1ApplicationsList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1AppSpecContent = (input, context) => { + return { + ...input.content != null && { content: input.content }, + ...input.sha256 != null && { sha256: input.sha256 } + }; + }; + var serializeAws_json1_1AutoRollbackConfiguration = (input, context) => { + return { + ...input.enabled != null && { enabled: input.enabled }, + ...input.events != null && { events: serializeAws_json1_1AutoRollbackEventsList(input.events, context) } + }; + }; + var serializeAws_json1_1AutoRollbackEventsList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1AutoScalingGroupNameList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1BatchGetApplicationRevisionsInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.revisions != null && { revisions: serializeAws_json1_1RevisionLocationList(input.revisions, context) } + }; + }; + var serializeAws_json1_1BatchGetApplicationsInput = (input, context) => { + return { + ...input.applicationNames != null && { + applicationNames: serializeAws_json1_1ApplicationsList(input.applicationNames, context) + } + }; + }; + var serializeAws_json1_1BatchGetDeploymentGroupsInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.deploymentGroupNames != null && { + deploymentGroupNames: serializeAws_json1_1DeploymentGroupsList(input.deploymentGroupNames, context) + } + }; + }; + var serializeAws_json1_1BatchGetDeploymentInstancesInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.instanceIds != null && { instanceIds: serializeAws_json1_1InstancesList(input.instanceIds, context) } + }; + }; + var serializeAws_json1_1BatchGetDeploymentsInput = (input, context) => { + return { + ...input.deploymentIds != null && { + deploymentIds: serializeAws_json1_1DeploymentsList(input.deploymentIds, context) + } + }; + }; + var serializeAws_json1_1BatchGetDeploymentTargetsInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.targetIds != null && { targetIds: serializeAws_json1_1TargetIdList(input.targetIds, context) } + }; + }; + var serializeAws_json1_1BatchGetOnPremisesInstancesInput = (input, context) => { + return { + ...input.instanceNames != null && { + instanceNames: serializeAws_json1_1InstanceNameList(input.instanceNames, context) + } + }; + }; + var serializeAws_json1_1BlueGreenDeploymentConfiguration = (input, context) => { + return { + ...input.deploymentReadyOption != null && { + deploymentReadyOption: serializeAws_json1_1DeploymentReadyOption(input.deploymentReadyOption, context) + }, + ...input.greenFleetProvisioningOption != null && { + greenFleetProvisioningOption: serializeAws_json1_1GreenFleetProvisioningOption(input.greenFleetProvisioningOption, context) + }, + ...input.terminateBlueInstancesOnDeploymentSuccess != null && { + terminateBlueInstancesOnDeploymentSuccess: serializeAws_json1_1BlueInstanceTerminationOption(input.terminateBlueInstancesOnDeploymentSuccess, context) + } + }; + }; + var serializeAws_json1_1BlueInstanceTerminationOption = (input, context) => { + return { + ...input.action != null && { action: input.action }, + ...input.terminationWaitTimeInMinutes != null && { + terminationWaitTimeInMinutes: input.terminationWaitTimeInMinutes + } + }; + }; + var serializeAws_json1_1ContinueDeploymentInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.deploymentWaitType != null && { deploymentWaitType: input.deploymentWaitType } + }; + }; + var serializeAws_json1_1CreateApplicationInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.computePlatform != null && { computePlatform: input.computePlatform }, + ...input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) } + }; + }; + var serializeAws_json1_1CreateDeploymentConfigInput = (input, context) => { + return { + ...input.computePlatform != null && { computePlatform: input.computePlatform }, + ...input.deploymentConfigName != null && { deploymentConfigName: input.deploymentConfigName }, + ...input.minimumHealthyHosts != null && { + minimumHealthyHosts: serializeAws_json1_1MinimumHealthyHosts(input.minimumHealthyHosts, context) + }, + ...input.trafficRoutingConfig != null && { + trafficRoutingConfig: serializeAws_json1_1TrafficRoutingConfig(input.trafficRoutingConfig, context) + } + }; + }; + var serializeAws_json1_1CreateDeploymentGroupInput = (input, context) => { + return { + ...input.alarmConfiguration != null && { + alarmConfiguration: serializeAws_json1_1AlarmConfiguration(input.alarmConfiguration, context) + }, + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.autoRollbackConfiguration != null && { + autoRollbackConfiguration: serializeAws_json1_1AutoRollbackConfiguration(input.autoRollbackConfiguration, context) + }, + ...input.autoScalingGroups != null && { + autoScalingGroups: serializeAws_json1_1AutoScalingGroupNameList(input.autoScalingGroups, context) + }, + ...input.blueGreenDeploymentConfiguration != null && { + blueGreenDeploymentConfiguration: serializeAws_json1_1BlueGreenDeploymentConfiguration(input.blueGreenDeploymentConfiguration, context) + }, + ...input.deploymentConfigName != null && { deploymentConfigName: input.deploymentConfigName }, + ...input.deploymentGroupName != null && { deploymentGroupName: input.deploymentGroupName }, + ...input.deploymentStyle != null && { + deploymentStyle: serializeAws_json1_1DeploymentStyle(input.deploymentStyle, context) + }, + ...input.ec2TagFilters != null && { + ec2TagFilters: serializeAws_json1_1EC2TagFilterList(input.ec2TagFilters, context) + }, + ...input.ec2TagSet != null && { ec2TagSet: serializeAws_json1_1EC2TagSet(input.ec2TagSet, context) }, + ...input.ecsServices != null && { ecsServices: serializeAws_json1_1ECSServiceList(input.ecsServices, context) }, + ...input.loadBalancerInfo != null && { + loadBalancerInfo: serializeAws_json1_1LoadBalancerInfo(input.loadBalancerInfo, context) + }, + ...input.onPremisesInstanceTagFilters != null && { + onPremisesInstanceTagFilters: serializeAws_json1_1TagFilterList(input.onPremisesInstanceTagFilters, context) + }, + ...input.onPremisesTagSet != null && { + onPremisesTagSet: serializeAws_json1_1OnPremisesTagSet(input.onPremisesTagSet, context) + }, + ...input.outdatedInstancesStrategy != null && { outdatedInstancesStrategy: input.outdatedInstancesStrategy }, + ...input.serviceRoleArn != null && { serviceRoleArn: input.serviceRoleArn }, + ...input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }, + ...input.triggerConfigurations != null && { + triggerConfigurations: serializeAws_json1_1TriggerConfigList(input.triggerConfigurations, context) + } + }; + }; + var serializeAws_json1_1CreateDeploymentInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.autoRollbackConfiguration != null && { + autoRollbackConfiguration: serializeAws_json1_1AutoRollbackConfiguration(input.autoRollbackConfiguration, context) + }, + ...input.deploymentConfigName != null && { deploymentConfigName: input.deploymentConfigName }, + ...input.deploymentGroupName != null && { deploymentGroupName: input.deploymentGroupName }, + ...input.description != null && { description: input.description }, + ...input.fileExistsBehavior != null && { fileExistsBehavior: input.fileExistsBehavior }, + ...input.ignoreApplicationStopFailures != null && { + ignoreApplicationStopFailures: input.ignoreApplicationStopFailures + }, + ...input.overrideAlarmConfiguration != null && { + overrideAlarmConfiguration: serializeAws_json1_1AlarmConfiguration(input.overrideAlarmConfiguration, context) + }, + ...input.revision != null && { revision: serializeAws_json1_1RevisionLocation(input.revision, context) }, + ...input.targetInstances != null && { + targetInstances: serializeAws_json1_1TargetInstances(input.targetInstances, context) + }, + ...input.updateOutdatedInstancesOnly != null && { + updateOutdatedInstancesOnly: input.updateOutdatedInstancesOnly + } + }; + }; + var serializeAws_json1_1DeleteApplicationInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName } + }; + }; + var serializeAws_json1_1DeleteDeploymentConfigInput = (input, context) => { + return { + ...input.deploymentConfigName != null && { deploymentConfigName: input.deploymentConfigName } + }; + }; + var serializeAws_json1_1DeleteDeploymentGroupInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.deploymentGroupName != null && { deploymentGroupName: input.deploymentGroupName } + }; + }; + var serializeAws_json1_1DeleteGitHubAccountTokenInput = (input, context) => { + return { + ...input.tokenName != null && { tokenName: input.tokenName } + }; + }; + var serializeAws_json1_1DeleteResourcesByExternalIdInput = (input, context) => { + return { + ...input.externalId != null && { externalId: input.externalId } + }; + }; + var serializeAws_json1_1DeploymentGroupsList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1DeploymentReadyOption = (input, context) => { + return { + ...input.actionOnTimeout != null && { actionOnTimeout: input.actionOnTimeout }, + ...input.waitTimeInMinutes != null && { waitTimeInMinutes: input.waitTimeInMinutes } + }; + }; + var serializeAws_json1_1DeploymentsList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1DeploymentStatusList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1DeploymentStyle = (input, context) => { + return { + ...input.deploymentOption != null && { deploymentOption: input.deploymentOption }, + ...input.deploymentType != null && { deploymentType: input.deploymentType } + }; + }; + var serializeAws_json1_1DeregisterOnPremisesInstanceInput = (input, context) => { + return { + ...input.instanceName != null && { instanceName: input.instanceName } + }; + }; + var serializeAws_json1_1EC2TagFilter = (input, context) => { + return { + ...input.Key != null && { Key: input.Key }, + ...input.Type != null && { Type: input.Type }, + ...input.Value != null && { Value: input.Value } + }; + }; + var serializeAws_json1_1EC2TagFilterList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1EC2TagFilter(entry, context); + }); + }; + var serializeAws_json1_1EC2TagSet = (input, context) => { + return { + ...input.ec2TagSetList != null && { + ec2TagSetList: serializeAws_json1_1EC2TagSetList(input.ec2TagSetList, context) + } + }; + }; + var serializeAws_json1_1EC2TagSetList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1EC2TagFilterList(entry, context); + }); + }; + var serializeAws_json1_1ECSService = (input, context) => { + return { + ...input.clusterName != null && { clusterName: input.clusterName }, + ...input.serviceName != null && { serviceName: input.serviceName } + }; + }; + var serializeAws_json1_1ECSServiceList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1ECSService(entry, context); + }); + }; + var serializeAws_json1_1ELBInfo = (input, context) => { + return { + ...input.name != null && { name: input.name } + }; + }; + var serializeAws_json1_1ELBInfoList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1ELBInfo(entry, context); + }); + }; + var serializeAws_json1_1FilterValueList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1GetApplicationInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName } + }; + }; + var serializeAws_json1_1GetApplicationRevisionInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.revision != null && { revision: serializeAws_json1_1RevisionLocation(input.revision, context) } + }; + }; + var serializeAws_json1_1GetDeploymentConfigInput = (input, context) => { + return { + ...input.deploymentConfigName != null && { deploymentConfigName: input.deploymentConfigName } + }; + }; + var serializeAws_json1_1GetDeploymentGroupInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.deploymentGroupName != null && { deploymentGroupName: input.deploymentGroupName } + }; + }; + var serializeAws_json1_1GetDeploymentInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId } + }; + }; + var serializeAws_json1_1GetDeploymentInstanceInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.instanceId != null && { instanceId: input.instanceId } + }; + }; + var serializeAws_json1_1GetDeploymentTargetInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.targetId != null && { targetId: input.targetId } + }; + }; + var serializeAws_json1_1GetOnPremisesInstanceInput = (input, context) => { + return { + ...input.instanceName != null && { instanceName: input.instanceName } + }; + }; + var serializeAws_json1_1GitHubLocation = (input, context) => { + return { + ...input.commitId != null && { commitId: input.commitId }, + ...input.repository != null && { repository: input.repository } + }; + }; + var serializeAws_json1_1GreenFleetProvisioningOption = (input, context) => { + return { + ...input.action != null && { action: input.action } + }; + }; + var serializeAws_json1_1InstanceNameList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1InstancesList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1InstanceStatusList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1InstanceTypeList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1ListApplicationRevisionsInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.deployed != null && { deployed: input.deployed }, + ...input.nextToken != null && { nextToken: input.nextToken }, + ...input.s3Bucket != null && { s3Bucket: input.s3Bucket }, + ...input.s3KeyPrefix != null && { s3KeyPrefix: input.s3KeyPrefix }, + ...input.sortBy != null && { sortBy: input.sortBy }, + ...input.sortOrder != null && { sortOrder: input.sortOrder } + }; + }; + var serializeAws_json1_1ListApplicationsInput = (input, context) => { + return { + ...input.nextToken != null && { nextToken: input.nextToken } + }; + }; + var serializeAws_json1_1ListDeploymentConfigsInput = (input, context) => { + return { + ...input.nextToken != null && { nextToken: input.nextToken } + }; + }; + var serializeAws_json1_1ListDeploymentGroupsInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.nextToken != null && { nextToken: input.nextToken } + }; + }; + var serializeAws_json1_1ListDeploymentInstancesInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.instanceStatusFilter != null && { + instanceStatusFilter: serializeAws_json1_1InstanceStatusList(input.instanceStatusFilter, context) + }, + ...input.instanceTypeFilter != null && { + instanceTypeFilter: serializeAws_json1_1InstanceTypeList(input.instanceTypeFilter, context) + }, + ...input.nextToken != null && { nextToken: input.nextToken } + }; + }; + var serializeAws_json1_1ListDeploymentsInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.createTimeRange != null && { + createTimeRange: serializeAws_json1_1TimeRange(input.createTimeRange, context) + }, + ...input.deploymentGroupName != null && { deploymentGroupName: input.deploymentGroupName }, + ...input.externalId != null && { externalId: input.externalId }, + ...input.includeOnlyStatuses != null && { + includeOnlyStatuses: serializeAws_json1_1DeploymentStatusList(input.includeOnlyStatuses, context) + }, + ...input.nextToken != null && { nextToken: input.nextToken } + }; + }; + var serializeAws_json1_1ListDeploymentTargetsInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.nextToken != null && { nextToken: input.nextToken }, + ...input.targetFilters != null && { + targetFilters: serializeAws_json1_1TargetFilters(input.targetFilters, context) + } + }; + }; + var serializeAws_json1_1ListenerArnList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1ListGitHubAccountTokenNamesInput = (input, context) => { + return { + ...input.nextToken != null && { nextToken: input.nextToken } + }; + }; + var serializeAws_json1_1ListOnPremisesInstancesInput = (input, context) => { + return { + ...input.nextToken != null && { nextToken: input.nextToken }, + ...input.registrationStatus != null && { registrationStatus: input.registrationStatus }, + ...input.tagFilters != null && { tagFilters: serializeAws_json1_1TagFilterList(input.tagFilters, context) } + }; + }; + var serializeAws_json1_1ListTagsForResourceInput = (input, context) => { + return { + ...input.NextToken != null && { NextToken: input.NextToken }, + ...input.ResourceArn != null && { ResourceArn: input.ResourceArn } + }; + }; + var serializeAws_json1_1LoadBalancerInfo = (input, context) => { + return { + ...input.elbInfoList != null && { elbInfoList: serializeAws_json1_1ELBInfoList(input.elbInfoList, context) }, + ...input.targetGroupInfoList != null && { + targetGroupInfoList: serializeAws_json1_1TargetGroupInfoList(input.targetGroupInfoList, context) + }, + ...input.targetGroupPairInfoList != null && { + targetGroupPairInfoList: serializeAws_json1_1TargetGroupPairInfoList(input.targetGroupPairInfoList, context) + } + }; + }; + var serializeAws_json1_1MinimumHealthyHosts = (input, context) => { + return { + ...input.type != null && { type: input.type }, + ...input.value != null && { value: input.value } + }; + }; + var serializeAws_json1_1OnPremisesTagSet = (input, context) => { + return { + ...input.onPremisesTagSetList != null && { + onPremisesTagSetList: serializeAws_json1_1OnPremisesTagSetList(input.onPremisesTagSetList, context) + } + }; + }; + var serializeAws_json1_1OnPremisesTagSetList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1TagFilterList(entry, context); + }); + }; + var serializeAws_json1_1PutLifecycleEventHookExecutionStatusInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId }, + ...input.lifecycleEventHookExecutionId != null && { + lifecycleEventHookExecutionId: input.lifecycleEventHookExecutionId + }, + ...input.status != null && { status: input.status } + }; + }; + var serializeAws_json1_1RawString = (input, context) => { + return { + ...input.content != null && { content: input.content }, + ...input.sha256 != null && { sha256: input.sha256 } + }; + }; + var serializeAws_json1_1RegisterApplicationRevisionInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.description != null && { description: input.description }, + ...input.revision != null && { revision: serializeAws_json1_1RevisionLocation(input.revision, context) } + }; + }; + var serializeAws_json1_1RegisterOnPremisesInstanceInput = (input, context) => { + return { + ...input.iamSessionArn != null && { iamSessionArn: input.iamSessionArn }, + ...input.iamUserArn != null && { iamUserArn: input.iamUserArn }, + ...input.instanceName != null && { instanceName: input.instanceName } + }; + }; + var serializeAws_json1_1RemoveTagsFromOnPremisesInstancesInput = (input, context) => { + return { + ...input.instanceNames != null && { + instanceNames: serializeAws_json1_1InstanceNameList(input.instanceNames, context) + }, + ...input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) } + }; + }; + var serializeAws_json1_1RevisionLocation = (input, context) => { + return { + ...input.appSpecContent != null && { + appSpecContent: serializeAws_json1_1AppSpecContent(input.appSpecContent, context) + }, + ...input.gitHubLocation != null && { + gitHubLocation: serializeAws_json1_1GitHubLocation(input.gitHubLocation, context) + }, + ...input.revisionType != null && { revisionType: input.revisionType }, + ...input.s3Location != null && { s3Location: serializeAws_json1_1S3Location(input.s3Location, context) }, + ...input.string != null && { string: serializeAws_json1_1RawString(input.string, context) } + }; + }; + var serializeAws_json1_1RevisionLocationList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1RevisionLocation(entry, context); + }); + }; + var serializeAws_json1_1S3Location = (input, context) => { + return { + ...input.bucket != null && { bucket: input.bucket }, + ...input.bundleType != null && { bundleType: input.bundleType }, + ...input.eTag != null && { eTag: input.eTag }, + ...input.key != null && { key: input.key }, + ...input.version != null && { version: input.version } + }; + }; + var serializeAws_json1_1SkipWaitTimeForInstanceTerminationInput = (input, context) => { + return { + ...input.deploymentId != null && { deploymentId: input.deploymentId } + }; + }; + var serializeAws_json1_1StopDeploymentInput = (input, context) => { + return { + ...input.autoRollbackEnabled != null && { autoRollbackEnabled: input.autoRollbackEnabled }, + ...input.deploymentId != null && { deploymentId: input.deploymentId } + }; + }; + var serializeAws_json1_1Tag = (input, context) => { + return { + ...input.Key != null && { Key: input.Key }, + ...input.Value != null && { Value: input.Value } + }; + }; + var serializeAws_json1_1TagFilter = (input, context) => { + return { + ...input.Key != null && { Key: input.Key }, + ...input.Type != null && { Type: input.Type }, + ...input.Value != null && { Value: input.Value } + }; + }; + var serializeAws_json1_1TagFilterList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1TagFilter(entry, context); + }); + }; + var serializeAws_json1_1TagKeyList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1TagList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1Tag(entry, context); + }); + }; + var serializeAws_json1_1TagResourceInput = (input, context) => { + return { + ...input.ResourceArn != null && { ResourceArn: input.ResourceArn }, + ...input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) } + }; + }; + var serializeAws_json1_1TargetFilters = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_1FilterValueList(value, context) + }; + }, {}); + }; + var serializeAws_json1_1TargetGroupInfo = (input, context) => { + return { + ...input.name != null && { name: input.name } + }; + }; + var serializeAws_json1_1TargetGroupInfoList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1TargetGroupInfo(entry, context); + }); + }; + var serializeAws_json1_1TargetGroupPairInfo = (input, context) => { + return { + ...input.prodTrafficRoute != null && { + prodTrafficRoute: serializeAws_json1_1TrafficRoute(input.prodTrafficRoute, context) + }, + ...input.targetGroups != null && { + targetGroups: serializeAws_json1_1TargetGroupInfoList(input.targetGroups, context) + }, + ...input.testTrafficRoute != null && { + testTrafficRoute: serializeAws_json1_1TrafficRoute(input.testTrafficRoute, context) + } + }; + }; + var serializeAws_json1_1TargetGroupPairInfoList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1TargetGroupPairInfo(entry, context); + }); + }; + var serializeAws_json1_1TargetIdList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1TargetInstances = (input, context) => { + return { + ...input.autoScalingGroups != null && { + autoScalingGroups: serializeAws_json1_1AutoScalingGroupNameList(input.autoScalingGroups, context) + }, + ...input.ec2TagSet != null && { ec2TagSet: serializeAws_json1_1EC2TagSet(input.ec2TagSet, context) }, + ...input.tagFilters != null && { tagFilters: serializeAws_json1_1EC2TagFilterList(input.tagFilters, context) } + }; + }; + var serializeAws_json1_1TimeBasedCanary = (input, context) => { + return { + ...input.canaryInterval != null && { canaryInterval: input.canaryInterval }, + ...input.canaryPercentage != null && { canaryPercentage: input.canaryPercentage } + }; + }; + var serializeAws_json1_1TimeBasedLinear = (input, context) => { + return { + ...input.linearInterval != null && { linearInterval: input.linearInterval }, + ...input.linearPercentage != null && { linearPercentage: input.linearPercentage } + }; + }; + var serializeAws_json1_1TimeRange = (input, context) => { + return { + ...input.end != null && { end: Math.round(input.end.getTime() / 1e3) }, + ...input.start != null && { start: Math.round(input.start.getTime() / 1e3) } + }; + }; + var serializeAws_json1_1TrafficRoute = (input, context) => { + return { + ...input.listenerArns != null && { + listenerArns: serializeAws_json1_1ListenerArnList(input.listenerArns, context) + } + }; + }; + var serializeAws_json1_1TrafficRoutingConfig = (input, context) => { + return { + ...input.timeBasedCanary != null && { + timeBasedCanary: serializeAws_json1_1TimeBasedCanary(input.timeBasedCanary, context) + }, + ...input.timeBasedLinear != null && { + timeBasedLinear: serializeAws_json1_1TimeBasedLinear(input.timeBasedLinear, context) + }, + ...input.type != null && { type: input.type } + }; + }; + var serializeAws_json1_1TriggerConfig = (input, context) => { + return { + ...input.triggerEvents != null && { + triggerEvents: serializeAws_json1_1TriggerEventTypeList(input.triggerEvents, context) + }, + ...input.triggerName != null && { triggerName: input.triggerName }, + ...input.triggerTargetArn != null && { triggerTargetArn: input.triggerTargetArn } + }; + }; + var serializeAws_json1_1TriggerConfigList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_1TriggerConfig(entry, context); + }); + }; + var serializeAws_json1_1TriggerEventTypeList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_1UntagResourceInput = (input, context) => { + return { + ...input.ResourceArn != null && { ResourceArn: input.ResourceArn }, + ...input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) } + }; + }; + var serializeAws_json1_1UpdateApplicationInput = (input, context) => { + return { + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.newApplicationName != null && { newApplicationName: input.newApplicationName } + }; + }; + var serializeAws_json1_1UpdateDeploymentGroupInput = (input, context) => { + return { + ...input.alarmConfiguration != null && { + alarmConfiguration: serializeAws_json1_1AlarmConfiguration(input.alarmConfiguration, context) + }, + ...input.applicationName != null && { applicationName: input.applicationName }, + ...input.autoRollbackConfiguration != null && { + autoRollbackConfiguration: serializeAws_json1_1AutoRollbackConfiguration(input.autoRollbackConfiguration, context) + }, + ...input.autoScalingGroups != null && { + autoScalingGroups: serializeAws_json1_1AutoScalingGroupNameList(input.autoScalingGroups, context) + }, + ...input.blueGreenDeploymentConfiguration != null && { + blueGreenDeploymentConfiguration: serializeAws_json1_1BlueGreenDeploymentConfiguration(input.blueGreenDeploymentConfiguration, context) + }, + ...input.currentDeploymentGroupName != null && { currentDeploymentGroupName: input.currentDeploymentGroupName }, + ...input.deploymentConfigName != null && { deploymentConfigName: input.deploymentConfigName }, + ...input.deploymentStyle != null && { + deploymentStyle: serializeAws_json1_1DeploymentStyle(input.deploymentStyle, context) + }, + ...input.ec2TagFilters != null && { + ec2TagFilters: serializeAws_json1_1EC2TagFilterList(input.ec2TagFilters, context) + }, + ...input.ec2TagSet != null && { ec2TagSet: serializeAws_json1_1EC2TagSet(input.ec2TagSet, context) }, + ...input.ecsServices != null && { ecsServices: serializeAws_json1_1ECSServiceList(input.ecsServices, context) }, + ...input.loadBalancerInfo != null && { + loadBalancerInfo: serializeAws_json1_1LoadBalancerInfo(input.loadBalancerInfo, context) + }, + ...input.newDeploymentGroupName != null && { newDeploymentGroupName: input.newDeploymentGroupName }, + ...input.onPremisesInstanceTagFilters != null && { + onPremisesInstanceTagFilters: serializeAws_json1_1TagFilterList(input.onPremisesInstanceTagFilters, context) + }, + ...input.onPremisesTagSet != null && { + onPremisesTagSet: serializeAws_json1_1OnPremisesTagSet(input.onPremisesTagSet, context) + }, + ...input.outdatedInstancesStrategy != null && { outdatedInstancesStrategy: input.outdatedInstancesStrategy }, + ...input.serviceRoleArn != null && { serviceRoleArn: input.serviceRoleArn }, + ...input.triggerConfigurations != null && { + triggerConfigurations: serializeAws_json1_1TriggerConfigList(input.triggerConfigurations, context) + } + }; + }; + var deserializeAws_json1_1Alarm = (output, context) => { + return { + name: (0, smithy_client_1.expectString)(output.name) + }; + }; + var deserializeAws_json1_1AlarmConfiguration = (output, context) => { + return { + alarms: output.alarms != null ? deserializeAws_json1_1AlarmList(output.alarms, context) : void 0, + enabled: (0, smithy_client_1.expectBoolean)(output.enabled), + ignorePollAlarmFailure: (0, smithy_client_1.expectBoolean)(output.ignorePollAlarmFailure) + }; + }; + var deserializeAws_json1_1AlarmList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1Alarm(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1AlarmsLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ApplicationAlreadyExistsException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ApplicationDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ApplicationInfo = (output, context) => { + return { + applicationId: (0, smithy_client_1.expectString)(output.applicationId), + applicationName: (0, smithy_client_1.expectString)(output.applicationName), + computePlatform: (0, smithy_client_1.expectString)(output.computePlatform), + createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : void 0, + gitHubAccountName: (0, smithy_client_1.expectString)(output.gitHubAccountName), + linkedToGitHub: (0, smithy_client_1.expectBoolean)(output.linkedToGitHub) + }; + }; + var deserializeAws_json1_1ApplicationLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ApplicationNameRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ApplicationsInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ApplicationInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1ApplicationsList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1AppSpecContent = (output, context) => { + return { + content: (0, smithy_client_1.expectString)(output.content), + sha256: (0, smithy_client_1.expectString)(output.sha256) + }; + }; + var deserializeAws_json1_1ArnNotSupportedException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1AutoRollbackConfiguration = (output, context) => { + return { + enabled: (0, smithy_client_1.expectBoolean)(output.enabled), + events: output.events != null ? deserializeAws_json1_1AutoRollbackEventsList(output.events, context) : void 0 + }; + }; + var deserializeAws_json1_1AutoRollbackEventsList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1AutoScalingGroup = (output, context) => { + return { + hook: (0, smithy_client_1.expectString)(output.hook), + name: (0, smithy_client_1.expectString)(output.name) + }; + }; + var deserializeAws_json1_1AutoScalingGroupList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1AutoScalingGroup(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1AutoScalingGroupNameList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1BatchGetApplicationRevisionsOutput = (output, context) => { + return { + applicationName: (0, smithy_client_1.expectString)(output.applicationName), + errorMessage: (0, smithy_client_1.expectString)(output.errorMessage), + revisions: output.revisions != null ? deserializeAws_json1_1RevisionInfoList(output.revisions, context) : void 0 + }; + }; + var deserializeAws_json1_1BatchGetApplicationsOutput = (output, context) => { + return { + applicationsInfo: output.applicationsInfo != null ? deserializeAws_json1_1ApplicationsInfoList(output.applicationsInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1BatchGetDeploymentGroupsOutput = (output, context) => { + return { + deploymentGroupsInfo: output.deploymentGroupsInfo != null ? deserializeAws_json1_1DeploymentGroupInfoList(output.deploymentGroupsInfo, context) : void 0, + errorMessage: (0, smithy_client_1.expectString)(output.errorMessage) + }; + }; + var deserializeAws_json1_1BatchGetDeploymentInstancesOutput = (output, context) => { + return { + errorMessage: (0, smithy_client_1.expectString)(output.errorMessage), + instancesSummary: output.instancesSummary != null ? deserializeAws_json1_1InstanceSummaryList(output.instancesSummary, context) : void 0 + }; + }; + var deserializeAws_json1_1BatchGetDeploymentsOutput = (output, context) => { + return { + deploymentsInfo: output.deploymentsInfo != null ? deserializeAws_json1_1DeploymentsInfoList(output.deploymentsInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1BatchGetDeploymentTargetsOutput = (output, context) => { + return { + deploymentTargets: output.deploymentTargets != null ? deserializeAws_json1_1DeploymentTargetList(output.deploymentTargets, context) : void 0 + }; + }; + var deserializeAws_json1_1BatchGetOnPremisesInstancesOutput = (output, context) => { + return { + instanceInfos: output.instanceInfos != null ? deserializeAws_json1_1InstanceInfoList(output.instanceInfos, context) : void 0 + }; + }; + var deserializeAws_json1_1BatchLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1BlueGreenDeploymentConfiguration = (output, context) => { + return { + deploymentReadyOption: output.deploymentReadyOption != null ? deserializeAws_json1_1DeploymentReadyOption(output.deploymentReadyOption, context) : void 0, + greenFleetProvisioningOption: output.greenFleetProvisioningOption != null ? deserializeAws_json1_1GreenFleetProvisioningOption(output.greenFleetProvisioningOption, context) : void 0, + terminateBlueInstancesOnDeploymentSuccess: output.terminateBlueInstancesOnDeploymentSuccess != null ? deserializeAws_json1_1BlueInstanceTerminationOption(output.terminateBlueInstancesOnDeploymentSuccess, context) : void 0 + }; + }; + var deserializeAws_json1_1BlueInstanceTerminationOption = (output, context) => { + return { + action: (0, smithy_client_1.expectString)(output.action), + terminationWaitTimeInMinutes: (0, smithy_client_1.expectInt32)(output.terminationWaitTimeInMinutes) + }; + }; + var deserializeAws_json1_1BucketNameFilterRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1CloudFormationTarget = (output, context) => { + return { + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId), + lastUpdatedAt: output.lastUpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt))) : void 0, + lifecycleEvents: output.lifecycleEvents != null ? deserializeAws_json1_1LifecycleEventList(output.lifecycleEvents, context) : void 0, + resourceType: (0, smithy_client_1.expectString)(output.resourceType), + status: (0, smithy_client_1.expectString)(output.status), + targetId: (0, smithy_client_1.expectString)(output.targetId), + targetVersionWeight: (0, smithy_client_1.limitedParseDouble)(output.targetVersionWeight) + }; + }; + var deserializeAws_json1_1CreateApplicationOutput = (output, context) => { + return { + applicationId: (0, smithy_client_1.expectString)(output.applicationId) + }; + }; + var deserializeAws_json1_1CreateDeploymentConfigOutput = (output, context) => { + return { + deploymentConfigId: (0, smithy_client_1.expectString)(output.deploymentConfigId) + }; + }; + var deserializeAws_json1_1CreateDeploymentGroupOutput = (output, context) => { + return { + deploymentGroupId: (0, smithy_client_1.expectString)(output.deploymentGroupId) + }; + }; + var deserializeAws_json1_1CreateDeploymentOutput = (output, context) => { + return { + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId) + }; + }; + var deserializeAws_json1_1DeleteDeploymentGroupOutput = (output, context) => { + return { + hooksNotCleanedUp: output.hooksNotCleanedUp != null ? deserializeAws_json1_1AutoScalingGroupList(output.hooksNotCleanedUp, context) : void 0 + }; + }; + var deserializeAws_json1_1DeleteGitHubAccountTokenOutput = (output, context) => { + return { + tokenName: (0, smithy_client_1.expectString)(output.tokenName) + }; + }; + var deserializeAws_json1_1DeleteResourcesByExternalIdOutput = (output, context) => { + return {}; + }; + var deserializeAws_json1_1DeploymentAlreadyCompletedException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentConfigAlreadyExistsException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentConfigDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentConfigInfo = (output, context) => { + return { + computePlatform: (0, smithy_client_1.expectString)(output.computePlatform), + createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : void 0, + deploymentConfigId: (0, smithy_client_1.expectString)(output.deploymentConfigId), + deploymentConfigName: (0, smithy_client_1.expectString)(output.deploymentConfigName), + minimumHealthyHosts: output.minimumHealthyHosts != null ? deserializeAws_json1_1MinimumHealthyHosts(output.minimumHealthyHosts, context) : void 0, + trafficRoutingConfig: output.trafficRoutingConfig != null ? deserializeAws_json1_1TrafficRoutingConfig(output.trafficRoutingConfig, context) : void 0 + }; + }; + var deserializeAws_json1_1DeploymentConfigInUseException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentConfigLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentConfigNameRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentConfigsList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1DeploymentDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentGroupAlreadyExistsException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentGroupDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentGroupInfo = (output, context) => { + return { + alarmConfiguration: output.alarmConfiguration != null ? deserializeAws_json1_1AlarmConfiguration(output.alarmConfiguration, context) : void 0, + applicationName: (0, smithy_client_1.expectString)(output.applicationName), + autoRollbackConfiguration: output.autoRollbackConfiguration != null ? deserializeAws_json1_1AutoRollbackConfiguration(output.autoRollbackConfiguration, context) : void 0, + autoScalingGroups: output.autoScalingGroups != null ? deserializeAws_json1_1AutoScalingGroupList(output.autoScalingGroups, context) : void 0, + blueGreenDeploymentConfiguration: output.blueGreenDeploymentConfiguration != null ? deserializeAws_json1_1BlueGreenDeploymentConfiguration(output.blueGreenDeploymentConfiguration, context) : void 0, + computePlatform: (0, smithy_client_1.expectString)(output.computePlatform), + deploymentConfigName: (0, smithy_client_1.expectString)(output.deploymentConfigName), + deploymentGroupId: (0, smithy_client_1.expectString)(output.deploymentGroupId), + deploymentGroupName: (0, smithy_client_1.expectString)(output.deploymentGroupName), + deploymentStyle: output.deploymentStyle != null ? deserializeAws_json1_1DeploymentStyle(output.deploymentStyle, context) : void 0, + ec2TagFilters: output.ec2TagFilters != null ? deserializeAws_json1_1EC2TagFilterList(output.ec2TagFilters, context) : void 0, + ec2TagSet: output.ec2TagSet != null ? deserializeAws_json1_1EC2TagSet(output.ec2TagSet, context) : void 0, + ecsServices: output.ecsServices != null ? deserializeAws_json1_1ECSServiceList(output.ecsServices, context) : void 0, + lastAttemptedDeployment: output.lastAttemptedDeployment != null ? deserializeAws_json1_1LastDeploymentInfo(output.lastAttemptedDeployment, context) : void 0, + lastSuccessfulDeployment: output.lastSuccessfulDeployment != null ? deserializeAws_json1_1LastDeploymentInfo(output.lastSuccessfulDeployment, context) : void 0, + loadBalancerInfo: output.loadBalancerInfo != null ? deserializeAws_json1_1LoadBalancerInfo(output.loadBalancerInfo, context) : void 0, + onPremisesInstanceTagFilters: output.onPremisesInstanceTagFilters != null ? deserializeAws_json1_1TagFilterList(output.onPremisesInstanceTagFilters, context) : void 0, + onPremisesTagSet: output.onPremisesTagSet != null ? deserializeAws_json1_1OnPremisesTagSet(output.onPremisesTagSet, context) : void 0, + outdatedInstancesStrategy: (0, smithy_client_1.expectString)(output.outdatedInstancesStrategy), + serviceRoleArn: (0, smithy_client_1.expectString)(output.serviceRoleArn), + targetRevision: output.targetRevision != null ? deserializeAws_json1_1RevisionLocation(output.targetRevision, context) : void 0, + triggerConfigurations: output.triggerConfigurations != null ? deserializeAws_json1_1TriggerConfigList(output.triggerConfigurations, context) : void 0 + }; + }; + var deserializeAws_json1_1DeploymentGroupInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1DeploymentGroupInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1DeploymentGroupLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentGroupNameRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentGroupsList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1DeploymentIdRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentInfo = (output, context) => { + return { + additionalDeploymentStatusInfo: (0, smithy_client_1.expectString)(output.additionalDeploymentStatusInfo), + applicationName: (0, smithy_client_1.expectString)(output.applicationName), + autoRollbackConfiguration: output.autoRollbackConfiguration != null ? deserializeAws_json1_1AutoRollbackConfiguration(output.autoRollbackConfiguration, context) : void 0, + blueGreenDeploymentConfiguration: output.blueGreenDeploymentConfiguration != null ? deserializeAws_json1_1BlueGreenDeploymentConfiguration(output.blueGreenDeploymentConfiguration, context) : void 0, + completeTime: output.completeTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completeTime))) : void 0, + computePlatform: (0, smithy_client_1.expectString)(output.computePlatform), + createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : void 0, + creator: (0, smithy_client_1.expectString)(output.creator), + deploymentConfigName: (0, smithy_client_1.expectString)(output.deploymentConfigName), + deploymentGroupName: (0, smithy_client_1.expectString)(output.deploymentGroupName), + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId), + deploymentOverview: output.deploymentOverview != null ? deserializeAws_json1_1DeploymentOverview(output.deploymentOverview, context) : void 0, + deploymentStatusMessages: output.deploymentStatusMessages != null ? deserializeAws_json1_1DeploymentStatusMessageList(output.deploymentStatusMessages, context) : void 0, + deploymentStyle: output.deploymentStyle != null ? deserializeAws_json1_1DeploymentStyle(output.deploymentStyle, context) : void 0, + description: (0, smithy_client_1.expectString)(output.description), + errorInformation: output.errorInformation != null ? deserializeAws_json1_1ErrorInformation(output.errorInformation, context) : void 0, + externalId: (0, smithy_client_1.expectString)(output.externalId), + fileExistsBehavior: (0, smithy_client_1.expectString)(output.fileExistsBehavior), + ignoreApplicationStopFailures: (0, smithy_client_1.expectBoolean)(output.ignoreApplicationStopFailures), + instanceTerminationWaitTimeStarted: (0, smithy_client_1.expectBoolean)(output.instanceTerminationWaitTimeStarted), + loadBalancerInfo: output.loadBalancerInfo != null ? deserializeAws_json1_1LoadBalancerInfo(output.loadBalancerInfo, context) : void 0, + overrideAlarmConfiguration: output.overrideAlarmConfiguration != null ? deserializeAws_json1_1AlarmConfiguration(output.overrideAlarmConfiguration, context) : void 0, + previousRevision: output.previousRevision != null ? deserializeAws_json1_1RevisionLocation(output.previousRevision, context) : void 0, + relatedDeployments: output.relatedDeployments != null ? deserializeAws_json1_1RelatedDeployments(output.relatedDeployments, context) : void 0, + revision: output.revision != null ? deserializeAws_json1_1RevisionLocation(output.revision, context) : void 0, + rollbackInfo: output.rollbackInfo != null ? deserializeAws_json1_1RollbackInfo(output.rollbackInfo, context) : void 0, + startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : void 0, + status: (0, smithy_client_1.expectString)(output.status), + targetInstances: output.targetInstances != null ? deserializeAws_json1_1TargetInstances(output.targetInstances, context) : void 0, + updateOutdatedInstancesOnly: (0, smithy_client_1.expectBoolean)(output.updateOutdatedInstancesOnly) + }; + }; + var deserializeAws_json1_1DeploymentIsNotInReadyStateException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentNotStartedException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentOverview = (output, context) => { + return { + Failed: (0, smithy_client_1.expectLong)(output.Failed), + InProgress: (0, smithy_client_1.expectLong)(output.InProgress), + Pending: (0, smithy_client_1.expectLong)(output.Pending), + Ready: (0, smithy_client_1.expectLong)(output.Ready), + Skipped: (0, smithy_client_1.expectLong)(output.Skipped), + Succeeded: (0, smithy_client_1.expectLong)(output.Succeeded) + }; + }; + var deserializeAws_json1_1DeploymentReadyOption = (output, context) => { + return { + actionOnTimeout: (0, smithy_client_1.expectString)(output.actionOnTimeout), + waitTimeInMinutes: (0, smithy_client_1.expectInt32)(output.waitTimeInMinutes) + }; + }; + var deserializeAws_json1_1DeploymentsInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1DeploymentInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1DeploymentsList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1DeploymentStatusMessageList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1DeploymentStyle = (output, context) => { + return { + deploymentOption: (0, smithy_client_1.expectString)(output.deploymentOption), + deploymentType: (0, smithy_client_1.expectString)(output.deploymentType) + }; + }; + var deserializeAws_json1_1DeploymentTarget = (output, context) => { + return { + cloudFormationTarget: output.cloudFormationTarget != null ? deserializeAws_json1_1CloudFormationTarget(output.cloudFormationTarget, context) : void 0, + deploymentTargetType: (0, smithy_client_1.expectString)(output.deploymentTargetType), + ecsTarget: output.ecsTarget != null ? deserializeAws_json1_1ECSTarget(output.ecsTarget, context) : void 0, + instanceTarget: output.instanceTarget != null ? deserializeAws_json1_1InstanceTarget(output.instanceTarget, context) : void 0, + lambdaTarget: output.lambdaTarget != null ? deserializeAws_json1_1LambdaTarget(output.lambdaTarget, context) : void 0 + }; + }; + var deserializeAws_json1_1DeploymentTargetDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentTargetIdRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DeploymentTargetList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1DeploymentTarget(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1DeploymentTargetListSizeExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1DescriptionTooLongException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1Diagnostics = (output, context) => { + return { + errorCode: (0, smithy_client_1.expectString)(output.errorCode), + logTail: (0, smithy_client_1.expectString)(output.logTail), + message: (0, smithy_client_1.expectString)(output.message), + scriptName: (0, smithy_client_1.expectString)(output.scriptName) + }; + }; + var deserializeAws_json1_1EC2TagFilter = (output, context) => { + return { + Key: (0, smithy_client_1.expectString)(output.Key), + Type: (0, smithy_client_1.expectString)(output.Type), + Value: (0, smithy_client_1.expectString)(output.Value) + }; + }; + var deserializeAws_json1_1EC2TagFilterList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1EC2TagFilter(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1EC2TagSet = (output, context) => { + return { + ec2TagSetList: output.ec2TagSetList != null ? deserializeAws_json1_1EC2TagSetList(output.ec2TagSetList, context) : void 0 + }; + }; + var deserializeAws_json1_1EC2TagSetList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1EC2TagFilterList(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1ECSService = (output, context) => { + return { + clusterName: (0, smithy_client_1.expectString)(output.clusterName), + serviceName: (0, smithy_client_1.expectString)(output.serviceName) + }; + }; + var deserializeAws_json1_1ECSServiceList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ECSService(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1ECSServiceMappingLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ECSTarget = (output, context) => { + return { + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId), + lastUpdatedAt: output.lastUpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt))) : void 0, + lifecycleEvents: output.lifecycleEvents != null ? deserializeAws_json1_1LifecycleEventList(output.lifecycleEvents, context) : void 0, + status: (0, smithy_client_1.expectString)(output.status), + targetArn: (0, smithy_client_1.expectString)(output.targetArn), + targetId: (0, smithy_client_1.expectString)(output.targetId), + taskSetsInfo: output.taskSetsInfo != null ? deserializeAws_json1_1ECSTaskSetList(output.taskSetsInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1ECSTaskSet = (output, context) => { + return { + desiredCount: (0, smithy_client_1.expectLong)(output.desiredCount), + identifer: (0, smithy_client_1.expectString)(output.identifer), + pendingCount: (0, smithy_client_1.expectLong)(output.pendingCount), + runningCount: (0, smithy_client_1.expectLong)(output.runningCount), + status: (0, smithy_client_1.expectString)(output.status), + targetGroup: output.targetGroup != null ? deserializeAws_json1_1TargetGroupInfo(output.targetGroup, context) : void 0, + taskSetLabel: (0, smithy_client_1.expectString)(output.taskSetLabel), + trafficWeight: (0, smithy_client_1.limitedParseDouble)(output.trafficWeight) + }; + }; + var deserializeAws_json1_1ECSTaskSetList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ECSTaskSet(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1ELBInfo = (output, context) => { + return { + name: (0, smithy_client_1.expectString)(output.name) + }; + }; + var deserializeAws_json1_1ELBInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ELBInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1ErrorInformation = (output, context) => { + return { + code: (0, smithy_client_1.expectString)(output.code), + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1GenericRevisionInfo = (output, context) => { + return { + deploymentGroups: output.deploymentGroups != null ? deserializeAws_json1_1DeploymentGroupsList(output.deploymentGroups, context) : void 0, + description: (0, smithy_client_1.expectString)(output.description), + firstUsedTime: output.firstUsedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.firstUsedTime))) : void 0, + lastUsedTime: output.lastUsedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUsedTime))) : void 0, + registerTime: output.registerTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.registerTime))) : void 0 + }; + }; + var deserializeAws_json1_1GetApplicationOutput = (output, context) => { + return { + application: output.application != null ? deserializeAws_json1_1ApplicationInfo(output.application, context) : void 0 + }; + }; + var deserializeAws_json1_1GetApplicationRevisionOutput = (output, context) => { + return { + applicationName: (0, smithy_client_1.expectString)(output.applicationName), + revision: output.revision != null ? deserializeAws_json1_1RevisionLocation(output.revision, context) : void 0, + revisionInfo: output.revisionInfo != null ? deserializeAws_json1_1GenericRevisionInfo(output.revisionInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1GetDeploymentConfigOutput = (output, context) => { + return { + deploymentConfigInfo: output.deploymentConfigInfo != null ? deserializeAws_json1_1DeploymentConfigInfo(output.deploymentConfigInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1GetDeploymentGroupOutput = (output, context) => { + return { + deploymentGroupInfo: output.deploymentGroupInfo != null ? deserializeAws_json1_1DeploymentGroupInfo(output.deploymentGroupInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1GetDeploymentInstanceOutput = (output, context) => { + return { + instanceSummary: output.instanceSummary != null ? deserializeAws_json1_1InstanceSummary(output.instanceSummary, context) : void 0 + }; + }; + var deserializeAws_json1_1GetDeploymentOutput = (output, context) => { + return { + deploymentInfo: output.deploymentInfo != null ? deserializeAws_json1_1DeploymentInfo(output.deploymentInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1GetDeploymentTargetOutput = (output, context) => { + return { + deploymentTarget: output.deploymentTarget != null ? deserializeAws_json1_1DeploymentTarget(output.deploymentTarget, context) : void 0 + }; + }; + var deserializeAws_json1_1GetOnPremisesInstanceOutput = (output, context) => { + return { + instanceInfo: output.instanceInfo != null ? deserializeAws_json1_1InstanceInfo(output.instanceInfo, context) : void 0 + }; + }; + var deserializeAws_json1_1GitHubAccountTokenDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1GitHubAccountTokenNameList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1GitHubAccountTokenNameRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1GitHubLocation = (output, context) => { + return { + commitId: (0, smithy_client_1.expectString)(output.commitId), + repository: (0, smithy_client_1.expectString)(output.repository) + }; + }; + var deserializeAws_json1_1GreenFleetProvisioningOption = (output, context) => { + return { + action: (0, smithy_client_1.expectString)(output.action) + }; + }; + var deserializeAws_json1_1IamArnRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1IamSessionArnAlreadyRegisteredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1IamUserArnAlreadyRegisteredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1IamUserArnRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InstanceDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InstanceIdRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InstanceInfo = (output, context) => { + return { + deregisterTime: output.deregisterTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.deregisterTime))) : void 0, + iamSessionArn: (0, smithy_client_1.expectString)(output.iamSessionArn), + iamUserArn: (0, smithy_client_1.expectString)(output.iamUserArn), + instanceArn: (0, smithy_client_1.expectString)(output.instanceArn), + instanceName: (0, smithy_client_1.expectString)(output.instanceName), + registerTime: output.registerTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.registerTime))) : void 0, + tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : void 0 + }; + }; + var deserializeAws_json1_1InstanceInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1InstanceInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1InstanceLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InstanceNameAlreadyRegisteredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InstanceNameList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1InstanceNameRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InstanceNotRegisteredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InstancesList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1InstanceSummary = (output, context) => { + return { + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId), + instanceId: (0, smithy_client_1.expectString)(output.instanceId), + instanceType: (0, smithy_client_1.expectString)(output.instanceType), + lastUpdatedAt: output.lastUpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt))) : void 0, + lifecycleEvents: output.lifecycleEvents != null ? deserializeAws_json1_1LifecycleEventList(output.lifecycleEvents, context) : void 0, + status: (0, smithy_client_1.expectString)(output.status) + }; + }; + var deserializeAws_json1_1InstanceSummaryList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1InstanceSummary(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1InstanceTarget = (output, context) => { + return { + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId), + instanceLabel: (0, smithy_client_1.expectString)(output.instanceLabel), + lastUpdatedAt: output.lastUpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt))) : void 0, + lifecycleEvents: output.lifecycleEvents != null ? deserializeAws_json1_1LifecycleEventList(output.lifecycleEvents, context) : void 0, + status: (0, smithy_client_1.expectString)(output.status), + targetArn: (0, smithy_client_1.expectString)(output.targetArn), + targetId: (0, smithy_client_1.expectString)(output.targetId) + }; + }; + var deserializeAws_json1_1InvalidAlarmConfigException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidApplicationNameException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidArnException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidAutoRollbackConfigException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidAutoScalingGroupException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidBlueGreenDeploymentConfigurationException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidBucketNameFilterException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidComputePlatformException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeployedStateFilterException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentConfigNameException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentGroupNameException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentIdException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentInstanceTypeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentStatusException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentStyleException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentTargetIdException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidDeploymentWaitTypeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidEC2TagCombinationException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidEC2TagException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidECSServiceException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidExternalIdException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidFileExistsBehaviorException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidGitHubAccountTokenException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidGitHubAccountTokenNameException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidIamSessionArnException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidIamUserArnException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidIgnoreApplicationStopFailuresValueException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidInputException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidInstanceNameException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidInstanceStatusException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidInstanceTypeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidKeyPrefixFilterException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidLifecycleEventHookExecutionIdException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidLifecycleEventHookExecutionStatusException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidLoadBalancerInfoException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidMinimumHealthyHostValueException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidNextTokenException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidOnPremisesTagCombinationException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidOperationException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidRegistrationStatusException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidRevisionException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidRoleException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidSortByException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidSortOrderException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTagException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTagFilterException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTagsToAddException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTargetFilterNameException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTargetGroupPairException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTargetInstancesException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTimeRangeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTrafficRoutingConfigurationException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidTriggerConfigException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1InvalidUpdateOutdatedInstancesOnlyValueException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1LambdaFunctionInfo = (output, context) => { + return { + currentVersion: (0, smithy_client_1.expectString)(output.currentVersion), + functionAlias: (0, smithy_client_1.expectString)(output.functionAlias), + functionName: (0, smithy_client_1.expectString)(output.functionName), + targetVersion: (0, smithy_client_1.expectString)(output.targetVersion), + targetVersionWeight: (0, smithy_client_1.limitedParseDouble)(output.targetVersionWeight) + }; + }; + var deserializeAws_json1_1LambdaTarget = (output, context) => { + return { + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId), + lambdaFunctionInfo: output.lambdaFunctionInfo != null ? deserializeAws_json1_1LambdaFunctionInfo(output.lambdaFunctionInfo, context) : void 0, + lastUpdatedAt: output.lastUpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt))) : void 0, + lifecycleEvents: output.lifecycleEvents != null ? deserializeAws_json1_1LifecycleEventList(output.lifecycleEvents, context) : void 0, + status: (0, smithy_client_1.expectString)(output.status), + targetArn: (0, smithy_client_1.expectString)(output.targetArn), + targetId: (0, smithy_client_1.expectString)(output.targetId) + }; + }; + var deserializeAws_json1_1LastDeploymentInfo = (output, context) => { + return { + createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : void 0, + deploymentId: (0, smithy_client_1.expectString)(output.deploymentId), + endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : void 0, + status: (0, smithy_client_1.expectString)(output.status) + }; + }; + var deserializeAws_json1_1LifecycleEvent = (output, context) => { + return { + diagnostics: output.diagnostics != null ? deserializeAws_json1_1Diagnostics(output.diagnostics, context) : void 0, + endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : void 0, + lifecycleEventName: (0, smithy_client_1.expectString)(output.lifecycleEventName), + startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : void 0, + status: (0, smithy_client_1.expectString)(output.status) + }; + }; + var deserializeAws_json1_1LifecycleEventAlreadyCompletedException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1LifecycleEventList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1LifecycleEvent(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1LifecycleHookLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ListApplicationRevisionsOutput = (output, context) => { + return { + nextToken: (0, smithy_client_1.expectString)(output.nextToken), + revisions: output.revisions != null ? deserializeAws_json1_1RevisionLocationList(output.revisions, context) : void 0 + }; + }; + var deserializeAws_json1_1ListApplicationsOutput = (output, context) => { + return { + applications: output.applications != null ? deserializeAws_json1_1ApplicationsList(output.applications, context) : void 0, + nextToken: (0, smithy_client_1.expectString)(output.nextToken) + }; + }; + var deserializeAws_json1_1ListDeploymentConfigsOutput = (output, context) => { + return { + deploymentConfigsList: output.deploymentConfigsList != null ? deserializeAws_json1_1DeploymentConfigsList(output.deploymentConfigsList, context) : void 0, + nextToken: (0, smithy_client_1.expectString)(output.nextToken) + }; + }; + var deserializeAws_json1_1ListDeploymentGroupsOutput = (output, context) => { + return { + applicationName: (0, smithy_client_1.expectString)(output.applicationName), + deploymentGroups: output.deploymentGroups != null ? deserializeAws_json1_1DeploymentGroupsList(output.deploymentGroups, context) : void 0, + nextToken: (0, smithy_client_1.expectString)(output.nextToken) + }; + }; + var deserializeAws_json1_1ListDeploymentInstancesOutput = (output, context) => { + return { + instancesList: output.instancesList != null ? deserializeAws_json1_1InstancesList(output.instancesList, context) : void 0, + nextToken: (0, smithy_client_1.expectString)(output.nextToken) + }; + }; + var deserializeAws_json1_1ListDeploymentsOutput = (output, context) => { + return { + deployments: output.deployments != null ? deserializeAws_json1_1DeploymentsList(output.deployments, context) : void 0, + nextToken: (0, smithy_client_1.expectString)(output.nextToken) + }; + }; + var deserializeAws_json1_1ListDeploymentTargetsOutput = (output, context) => { + return { + nextToken: (0, smithy_client_1.expectString)(output.nextToken), + targetIds: output.targetIds != null ? deserializeAws_json1_1TargetIdList(output.targetIds, context) : void 0 + }; + }; + var deserializeAws_json1_1ListenerArnList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1ListGitHubAccountTokenNamesOutput = (output, context) => { + return { + nextToken: (0, smithy_client_1.expectString)(output.nextToken), + tokenNameList: output.tokenNameList != null ? deserializeAws_json1_1GitHubAccountTokenNameList(output.tokenNameList, context) : void 0 + }; + }; + var deserializeAws_json1_1ListOnPremisesInstancesOutput = (output, context) => { + return { + instanceNames: output.instanceNames != null ? deserializeAws_json1_1InstanceNameList(output.instanceNames, context) : void 0, + nextToken: (0, smithy_client_1.expectString)(output.nextToken) + }; + }; + var deserializeAws_json1_1ListTagsForResourceOutput = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : void 0 + }; + }; + var deserializeAws_json1_1LoadBalancerInfo = (output, context) => { + return { + elbInfoList: output.elbInfoList != null ? deserializeAws_json1_1ELBInfoList(output.elbInfoList, context) : void 0, + targetGroupInfoList: output.targetGroupInfoList != null ? deserializeAws_json1_1TargetGroupInfoList(output.targetGroupInfoList, context) : void 0, + targetGroupPairInfoList: output.targetGroupPairInfoList != null ? deserializeAws_json1_1TargetGroupPairInfoList(output.targetGroupPairInfoList, context) : void 0 + }; + }; + var deserializeAws_json1_1MinimumHealthyHosts = (output, context) => { + return { + type: (0, smithy_client_1.expectString)(output.type), + value: (0, smithy_client_1.expectInt32)(output.value) + }; + }; + var deserializeAws_json1_1MultipleIamArnsProvidedException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1OnPremisesTagSet = (output, context) => { + return { + onPremisesTagSetList: output.onPremisesTagSetList != null ? deserializeAws_json1_1OnPremisesTagSetList(output.onPremisesTagSetList, context) : void 0 + }; + }; + var deserializeAws_json1_1OnPremisesTagSetList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1TagFilterList(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1OperationNotSupportedException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1PutLifecycleEventHookExecutionStatusOutput = (output, context) => { + return { + lifecycleEventHookExecutionId: (0, smithy_client_1.expectString)(output.lifecycleEventHookExecutionId) + }; + }; + var deserializeAws_json1_1RawString = (output, context) => { + return { + content: (0, smithy_client_1.expectString)(output.content), + sha256: (0, smithy_client_1.expectString)(output.sha256) + }; + }; + var deserializeAws_json1_1RelatedDeployments = (output, context) => { + return { + autoUpdateOutdatedInstancesDeploymentIds: output.autoUpdateOutdatedInstancesDeploymentIds != null ? deserializeAws_json1_1DeploymentsList(output.autoUpdateOutdatedInstancesDeploymentIds, context) : void 0, + autoUpdateOutdatedInstancesRootDeploymentId: (0, smithy_client_1.expectString)(output.autoUpdateOutdatedInstancesRootDeploymentId) + }; + }; + var deserializeAws_json1_1ResourceArnRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1ResourceValidationException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1RevisionDoesNotExistException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1RevisionInfo = (output, context) => { + return { + genericRevisionInfo: output.genericRevisionInfo != null ? deserializeAws_json1_1GenericRevisionInfo(output.genericRevisionInfo, context) : void 0, + revisionLocation: output.revisionLocation != null ? deserializeAws_json1_1RevisionLocation(output.revisionLocation, context) : void 0 + }; + }; + var deserializeAws_json1_1RevisionInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1RevisionInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1RevisionLocation = (output, context) => { + return { + appSpecContent: output.appSpecContent != null ? deserializeAws_json1_1AppSpecContent(output.appSpecContent, context) : void 0, + gitHubLocation: output.gitHubLocation != null ? deserializeAws_json1_1GitHubLocation(output.gitHubLocation, context) : void 0, + revisionType: (0, smithy_client_1.expectString)(output.revisionType), + s3Location: output.s3Location != null ? deserializeAws_json1_1S3Location(output.s3Location, context) : void 0, + string: output.string != null ? deserializeAws_json1_1RawString(output.string, context) : void 0 + }; + }; + var deserializeAws_json1_1RevisionLocationList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1RevisionLocation(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1RevisionRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1RoleRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1RollbackInfo = (output, context) => { + return { + rollbackDeploymentId: (0, smithy_client_1.expectString)(output.rollbackDeploymentId), + rollbackMessage: (0, smithy_client_1.expectString)(output.rollbackMessage), + rollbackTriggeringDeploymentId: (0, smithy_client_1.expectString)(output.rollbackTriggeringDeploymentId) + }; + }; + var deserializeAws_json1_1S3Location = (output, context) => { + return { + bucket: (0, smithy_client_1.expectString)(output.bucket), + bundleType: (0, smithy_client_1.expectString)(output.bundleType), + eTag: (0, smithy_client_1.expectString)(output.eTag), + key: (0, smithy_client_1.expectString)(output.key), + version: (0, smithy_client_1.expectString)(output.version) + }; + }; + var deserializeAws_json1_1StopDeploymentOutput = (output, context) => { + return { + status: (0, smithy_client_1.expectString)(output.status), + statusMessage: (0, smithy_client_1.expectString)(output.statusMessage) + }; + }; + var deserializeAws_json1_1Tag = (output, context) => { + return { + Key: (0, smithy_client_1.expectString)(output.Key), + Value: (0, smithy_client_1.expectString)(output.Value) + }; + }; + var deserializeAws_json1_1TagFilter = (output, context) => { + return { + Key: (0, smithy_client_1.expectString)(output.Key), + Type: (0, smithy_client_1.expectString)(output.Type), + Value: (0, smithy_client_1.expectString)(output.Value) + }; + }; + var deserializeAws_json1_1TagFilterList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1TagFilter(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1TagLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1TagList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1Tag(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1TagRequiredException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1TagResourceOutput = (output, context) => { + return {}; + }; + var deserializeAws_json1_1TagSetListLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1TargetGroupInfo = (output, context) => { + return { + name: (0, smithy_client_1.expectString)(output.name) + }; + }; + var deserializeAws_json1_1TargetGroupInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1TargetGroupInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1TargetGroupPairInfo = (output, context) => { + return { + prodTrafficRoute: output.prodTrafficRoute != null ? deserializeAws_json1_1TrafficRoute(output.prodTrafficRoute, context) : void 0, + targetGroups: output.targetGroups != null ? deserializeAws_json1_1TargetGroupInfoList(output.targetGroups, context) : void 0, + testTrafficRoute: output.testTrafficRoute != null ? deserializeAws_json1_1TrafficRoute(output.testTrafficRoute, context) : void 0 + }; + }; + var deserializeAws_json1_1TargetGroupPairInfoList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1TargetGroupPairInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1TargetIdList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1TargetInstances = (output, context) => { + return { + autoScalingGroups: output.autoScalingGroups != null ? deserializeAws_json1_1AutoScalingGroupNameList(output.autoScalingGroups, context) : void 0, + ec2TagSet: output.ec2TagSet != null ? deserializeAws_json1_1EC2TagSet(output.ec2TagSet, context) : void 0, + tagFilters: output.tagFilters != null ? deserializeAws_json1_1EC2TagFilterList(output.tagFilters, context) : void 0 + }; + }; + var deserializeAws_json1_1ThrottlingException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1TimeBasedCanary = (output, context) => { + return { + canaryInterval: (0, smithy_client_1.expectInt32)(output.canaryInterval), + canaryPercentage: (0, smithy_client_1.expectInt32)(output.canaryPercentage) + }; + }; + var deserializeAws_json1_1TimeBasedLinear = (output, context) => { + return { + linearInterval: (0, smithy_client_1.expectInt32)(output.linearInterval), + linearPercentage: (0, smithy_client_1.expectInt32)(output.linearPercentage) + }; + }; + var deserializeAws_json1_1TrafficRoute = (output, context) => { + return { + listenerArns: output.listenerArns != null ? deserializeAws_json1_1ListenerArnList(output.listenerArns, context) : void 0 + }; + }; + var deserializeAws_json1_1TrafficRoutingConfig = (output, context) => { + return { + timeBasedCanary: output.timeBasedCanary != null ? deserializeAws_json1_1TimeBasedCanary(output.timeBasedCanary, context) : void 0, + timeBasedLinear: output.timeBasedLinear != null ? deserializeAws_json1_1TimeBasedLinear(output.timeBasedLinear, context) : void 0, + type: (0, smithy_client_1.expectString)(output.type) + }; + }; + var deserializeAws_json1_1TriggerConfig = (output, context) => { + return { + triggerEvents: output.triggerEvents != null ? deserializeAws_json1_1TriggerEventTypeList(output.triggerEvents, context) : void 0, + triggerName: (0, smithy_client_1.expectString)(output.triggerName), + triggerTargetArn: (0, smithy_client_1.expectString)(output.triggerTargetArn) + }; + }; + var deserializeAws_json1_1TriggerConfigList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1TriggerConfig(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_1TriggerEventTypeList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_1TriggerTargetsLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1UnsupportedActionForDeploymentTypeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_1UntagResourceOutput = (output, context) => { + return {}; + }; + var deserializeAws_json1_1UpdateDeploymentGroupOutput = (output, context) => { + return { + hooksNotCleanedUp: output.hooksNotCleanedUp != null ? deserializeAws_json1_1AutoScalingGroupList(output.hooksNotCleanedUp, context) : void 0 + }; + }; + 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"] + }; + }; + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const contents = { + protocol, + hostname, + port, + method: "POST", + path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, + headers + }; + if (resolvedHostname !== void 0) { + contents.hostname = resolvedHostname; + } + if (body !== void 0) { + contents.body = body; + } + return new protocol_http_1.HttpRequest(contents); + }; + var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + return JSON.parse(encoded); + } + return {}; + }); + var parseErrorBody = async (errorBody, context) => { + var _a; + const value = await parseBody(errorBody, context); + value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message; + return value; + }; + var loadRestJsonErrorCode = (output, data) => { + const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); + const sanitizeErrorCode = (rawValue) => { + let cleanValue = rawValue; + if (typeof cleanValue === "number") { + cleanValue = cleanValue.toString(); + } + if (cleanValue.indexOf(",") >= 0) { + cleanValue = cleanValue.split(",")[0]; + } + if (cleanValue.indexOf(":") >= 0) { + cleanValue = cleanValue.split(":")[0]; + } + if (cleanValue.indexOf("#") >= 0) { + cleanValue = cleanValue.split("#")[1]; + } + return cleanValue; + }; + const headerKey = findKey(output.headers, "x-amzn-errortype"); + if (headerKey !== void 0) { + return sanitizeErrorCode(output.headers[headerKey]); + } + if (data.code !== void 0) { + return sanitizeErrorCode(data.code); + } + if (data["__type"] !== void 0) { + return sanitizeErrorCode(data["__type"]); + } + }; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/AddTagsToOnPremisesInstancesCommand.js +var require_AddTagsToOnPremisesInstancesCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/AddTagsToOnPremisesInstancesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.AddTagsToOnPremisesInstancesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var AddTagsToOnPremisesInstancesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "AddTagsToOnPremisesInstancesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AddTagsToOnPremisesInstancesInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1AddTagsToOnPremisesInstancesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1AddTagsToOnPremisesInstancesCommand)(output, context); + } + }; + exports.AddTagsToOnPremisesInstancesCommand = AddTagsToOnPremisesInstancesCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetApplicationRevisionsCommand.js +var require_BatchGetApplicationRevisionsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetApplicationRevisionsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.BatchGetApplicationRevisionsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var BatchGetApplicationRevisionsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "BatchGetApplicationRevisionsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetApplicationRevisionsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetApplicationRevisionsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1BatchGetApplicationRevisionsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1BatchGetApplicationRevisionsCommand)(output, context); + } + }; + exports.BatchGetApplicationRevisionsCommand = BatchGetApplicationRevisionsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetApplicationsCommand.js +var require_BatchGetApplicationsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetApplicationsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.BatchGetApplicationsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var BatchGetApplicationsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "BatchGetApplicationsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetApplicationsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetApplicationsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1BatchGetApplicationsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1BatchGetApplicationsCommand)(output, context); + } + }; + exports.BatchGetApplicationsCommand = BatchGetApplicationsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentGroupsCommand.js +var require_BatchGetDeploymentGroupsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentGroupsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.BatchGetDeploymentGroupsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var BatchGetDeploymentGroupsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "BatchGetDeploymentGroupsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetDeploymentGroupsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetDeploymentGroupsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1BatchGetDeploymentGroupsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1BatchGetDeploymentGroupsCommand)(output, context); + } + }; + exports.BatchGetDeploymentGroupsCommand = BatchGetDeploymentGroupsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentInstancesCommand.js +var require_BatchGetDeploymentInstancesCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentInstancesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.BatchGetDeploymentInstancesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var BatchGetDeploymentInstancesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "BatchGetDeploymentInstancesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetDeploymentInstancesInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetDeploymentInstancesOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1BatchGetDeploymentInstancesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1BatchGetDeploymentInstancesCommand)(output, context); + } + }; + exports.BatchGetDeploymentInstancesCommand = BatchGetDeploymentInstancesCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentsCommand.js +var require_BatchGetDeploymentsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.BatchGetDeploymentsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var BatchGetDeploymentsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "BatchGetDeploymentsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetDeploymentsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetDeploymentsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1BatchGetDeploymentsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1BatchGetDeploymentsCommand)(output, context); + } + }; + exports.BatchGetDeploymentsCommand = BatchGetDeploymentsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentTargetsCommand.js +var require_BatchGetDeploymentTargetsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentTargetsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.BatchGetDeploymentTargetsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var BatchGetDeploymentTargetsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "BatchGetDeploymentTargetsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetDeploymentTargetsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetDeploymentTargetsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1BatchGetDeploymentTargetsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1BatchGetDeploymentTargetsCommand)(output, context); + } + }; + exports.BatchGetDeploymentTargetsCommand = BatchGetDeploymentTargetsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetOnPremisesInstancesCommand.js +var require_BatchGetOnPremisesInstancesCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetOnPremisesInstancesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.BatchGetOnPremisesInstancesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var BatchGetOnPremisesInstancesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "BatchGetOnPremisesInstancesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetOnPremisesInstancesInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetOnPremisesInstancesOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1BatchGetOnPremisesInstancesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1BatchGetOnPremisesInstancesCommand)(output, context); + } + }; + exports.BatchGetOnPremisesInstancesCommand = BatchGetOnPremisesInstancesCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ContinueDeploymentCommand.js +var require_ContinueDeploymentCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ContinueDeploymentCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ContinueDeploymentCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ContinueDeploymentCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ContinueDeploymentCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ContinueDeploymentInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ContinueDeploymentCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ContinueDeploymentCommand)(output, context); + } + }; + exports.ContinueDeploymentCommand = ContinueDeploymentCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateApplicationCommand.js +var require_CreateApplicationCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateApplicationCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CreateApplicationCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var CreateApplicationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "CreateApplicationCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateApplicationInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateApplicationOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateApplicationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateApplicationCommand)(output, context); + } + }; + exports.CreateApplicationCommand = CreateApplicationCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentCommand.js +var require_CreateDeploymentCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CreateDeploymentCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var CreateDeploymentCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "CreateDeploymentCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateDeploymentInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateDeploymentOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateDeploymentCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateDeploymentCommand)(output, context); + } + }; + exports.CreateDeploymentCommand = CreateDeploymentCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentConfigCommand.js +var require_CreateDeploymentConfigCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentConfigCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CreateDeploymentConfigCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var CreateDeploymentConfigCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "CreateDeploymentConfigCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateDeploymentConfigInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateDeploymentConfigOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateDeploymentConfigCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateDeploymentConfigCommand)(output, context); + } + }; + exports.CreateDeploymentConfigCommand = CreateDeploymentConfigCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentGroupCommand.js +var require_CreateDeploymentGroupCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentGroupCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CreateDeploymentGroupCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var CreateDeploymentGroupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "CreateDeploymentGroupCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateDeploymentGroupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateDeploymentGroupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateDeploymentGroupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateDeploymentGroupCommand)(output, context); + } + }; + exports.CreateDeploymentGroupCommand = CreateDeploymentGroupCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteApplicationCommand.js +var require_DeleteApplicationCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteApplicationCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DeleteApplicationCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var DeleteApplicationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "DeleteApplicationCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteApplicationInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteApplicationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteApplicationCommand)(output, context); + } + }; + exports.DeleteApplicationCommand = DeleteApplicationCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteDeploymentConfigCommand.js +var require_DeleteDeploymentConfigCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteDeploymentConfigCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DeleteDeploymentConfigCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var DeleteDeploymentConfigCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "DeleteDeploymentConfigCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteDeploymentConfigInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteDeploymentConfigCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteDeploymentConfigCommand)(output, context); + } + }; + exports.DeleteDeploymentConfigCommand = DeleteDeploymentConfigCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteDeploymentGroupCommand.js +var require_DeleteDeploymentGroupCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteDeploymentGroupCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DeleteDeploymentGroupCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var DeleteDeploymentGroupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "DeleteDeploymentGroupCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteDeploymentGroupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteDeploymentGroupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteDeploymentGroupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteDeploymentGroupCommand)(output, context); + } + }; + exports.DeleteDeploymentGroupCommand = DeleteDeploymentGroupCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteGitHubAccountTokenCommand.js +var require_DeleteGitHubAccountTokenCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteGitHubAccountTokenCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DeleteGitHubAccountTokenCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var DeleteGitHubAccountTokenCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "DeleteGitHubAccountTokenCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteGitHubAccountTokenInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteGitHubAccountTokenOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteGitHubAccountTokenCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteGitHubAccountTokenCommand)(output, context); + } + }; + exports.DeleteGitHubAccountTokenCommand = DeleteGitHubAccountTokenCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteResourcesByExternalIdCommand.js +var require_DeleteResourcesByExternalIdCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteResourcesByExternalIdCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DeleteResourcesByExternalIdCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var DeleteResourcesByExternalIdCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "DeleteResourcesByExternalIdCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteResourcesByExternalIdInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteResourcesByExternalIdOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteResourcesByExternalIdCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteResourcesByExternalIdCommand)(output, context); + } + }; + exports.DeleteResourcesByExternalIdCommand = DeleteResourcesByExternalIdCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeregisterOnPremisesInstanceCommand.js +var require_DeregisterOnPremisesInstanceCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeregisterOnPremisesInstanceCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DeregisterOnPremisesInstanceCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var DeregisterOnPremisesInstanceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "DeregisterOnPremisesInstanceCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeregisterOnPremisesInstanceInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeregisterOnPremisesInstanceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeregisterOnPremisesInstanceCommand)(output, context); + } + }; + exports.DeregisterOnPremisesInstanceCommand = DeregisterOnPremisesInstanceCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetApplicationCommand.js +var require_GetApplicationCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetApplicationCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetApplicationCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetApplicationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetApplicationCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetApplicationInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetApplicationOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetApplicationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetApplicationCommand)(output, context); + } + }; + exports.GetApplicationCommand = GetApplicationCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetApplicationRevisionCommand.js +var require_GetApplicationRevisionCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetApplicationRevisionCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetApplicationRevisionCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetApplicationRevisionCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetApplicationRevisionCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetApplicationRevisionInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetApplicationRevisionOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetApplicationRevisionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetApplicationRevisionCommand)(output, context); + } + }; + exports.GetApplicationRevisionCommand = GetApplicationRevisionCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentCommand.js +var require_GetDeploymentCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetDeploymentCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetDeploymentCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetDeploymentCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetDeploymentInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetDeploymentOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetDeploymentCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetDeploymentCommand)(output, context); + } + }; + exports.GetDeploymentCommand = GetDeploymentCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentConfigCommand.js +var require_GetDeploymentConfigCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentConfigCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetDeploymentConfigCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetDeploymentConfigCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetDeploymentConfigCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetDeploymentConfigInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetDeploymentConfigOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetDeploymentConfigCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetDeploymentConfigCommand)(output, context); + } + }; + exports.GetDeploymentConfigCommand = GetDeploymentConfigCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentGroupCommand.js +var require_GetDeploymentGroupCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentGroupCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetDeploymentGroupCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetDeploymentGroupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetDeploymentGroupCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetDeploymentGroupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetDeploymentGroupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetDeploymentGroupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetDeploymentGroupCommand)(output, context); + } + }; + exports.GetDeploymentGroupCommand = GetDeploymentGroupCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentInstanceCommand.js +var require_GetDeploymentInstanceCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentInstanceCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetDeploymentInstanceCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetDeploymentInstanceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetDeploymentInstanceCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetDeploymentInstanceInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetDeploymentInstanceOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetDeploymentInstanceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetDeploymentInstanceCommand)(output, context); + } + }; + exports.GetDeploymentInstanceCommand = GetDeploymentInstanceCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentTargetCommand.js +var require_GetDeploymentTargetCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentTargetCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetDeploymentTargetCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetDeploymentTargetCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetDeploymentTargetCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetDeploymentTargetInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetDeploymentTargetOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetDeploymentTargetCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetDeploymentTargetCommand)(output, context); + } + }; + exports.GetDeploymentTargetCommand = GetDeploymentTargetCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetOnPremisesInstanceCommand.js +var require_GetOnPremisesInstanceCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetOnPremisesInstanceCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetOnPremisesInstanceCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var GetOnPremisesInstanceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "GetOnPremisesInstanceCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetOnPremisesInstanceInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetOnPremisesInstanceOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetOnPremisesInstanceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetOnPremisesInstanceCommand)(output, context); + } + }; + exports.GetOnPremisesInstanceCommand = GetOnPremisesInstanceCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListApplicationRevisionsCommand.js +var require_ListApplicationRevisionsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListApplicationRevisionsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListApplicationRevisionsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListApplicationRevisionsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListApplicationRevisionsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListApplicationRevisionsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListApplicationRevisionsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListApplicationRevisionsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListApplicationRevisionsCommand)(output, context); + } + }; + exports.ListApplicationRevisionsCommand = ListApplicationRevisionsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListApplicationsCommand.js +var require_ListApplicationsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListApplicationsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListApplicationsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListApplicationsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListApplicationsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListApplicationsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListApplicationsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListApplicationsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListApplicationsCommand)(output, context); + } + }; + exports.ListApplicationsCommand = ListApplicationsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentConfigsCommand.js +var require_ListDeploymentConfigsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentConfigsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListDeploymentConfigsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListDeploymentConfigsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListDeploymentConfigsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListDeploymentConfigsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListDeploymentConfigsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListDeploymentConfigsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListDeploymentConfigsCommand)(output, context); + } + }; + exports.ListDeploymentConfigsCommand = ListDeploymentConfigsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentGroupsCommand.js +var require_ListDeploymentGroupsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentGroupsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListDeploymentGroupsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListDeploymentGroupsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListDeploymentGroupsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListDeploymentGroupsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListDeploymentGroupsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListDeploymentGroupsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListDeploymentGroupsCommand)(output, context); + } + }; + exports.ListDeploymentGroupsCommand = ListDeploymentGroupsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentInstancesCommand.js +var require_ListDeploymentInstancesCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentInstancesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListDeploymentInstancesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListDeploymentInstancesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListDeploymentInstancesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListDeploymentInstancesInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListDeploymentInstancesOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListDeploymentInstancesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListDeploymentInstancesCommand)(output, context); + } + }; + exports.ListDeploymentInstancesCommand = ListDeploymentInstancesCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentsCommand.js +var require_ListDeploymentsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListDeploymentsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListDeploymentsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListDeploymentsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListDeploymentsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListDeploymentsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListDeploymentsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListDeploymentsCommand)(output, context); + } + }; + exports.ListDeploymentsCommand = ListDeploymentsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentTargetsCommand.js +var require_ListDeploymentTargetsCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentTargetsCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListDeploymentTargetsCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListDeploymentTargetsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListDeploymentTargetsCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListDeploymentTargetsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListDeploymentTargetsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListDeploymentTargetsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListDeploymentTargetsCommand)(output, context); + } + }; + exports.ListDeploymentTargetsCommand = ListDeploymentTargetsCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListGitHubAccountTokenNamesCommand.js +var require_ListGitHubAccountTokenNamesCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListGitHubAccountTokenNamesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListGitHubAccountTokenNamesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListGitHubAccountTokenNamesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListGitHubAccountTokenNamesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListGitHubAccountTokenNamesInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListGitHubAccountTokenNamesOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListGitHubAccountTokenNamesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListGitHubAccountTokenNamesCommand)(output, context); + } + }; + exports.ListGitHubAccountTokenNamesCommand = ListGitHubAccountTokenNamesCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListOnPremisesInstancesCommand.js +var require_ListOnPremisesInstancesCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListOnPremisesInstancesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListOnPremisesInstancesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListOnPremisesInstancesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListOnPremisesInstancesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListOnPremisesInstancesInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListOnPremisesInstancesOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListOnPremisesInstancesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListOnPremisesInstancesCommand)(output, context); + } + }; + exports.ListOnPremisesInstancesCommand = ListOnPremisesInstancesCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListTagsForResourceCommand.js +var require_ListTagsForResourceCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListTagsForResourceCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ListTagsForResourceCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var ListTagsForResourceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "ListTagsForResourceCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListTagsForResourceInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListTagsForResourceOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListTagsForResourceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListTagsForResourceCommand)(output, context); + } + }; + exports.ListTagsForResourceCommand = ListTagsForResourceCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/PutLifecycleEventHookExecutionStatusCommand.js +var require_PutLifecycleEventHookExecutionStatusCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/PutLifecycleEventHookExecutionStatusCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.PutLifecycleEventHookExecutionStatusCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var PutLifecycleEventHookExecutionStatusCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "PutLifecycleEventHookExecutionStatusCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.PutLifecycleEventHookExecutionStatusInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.PutLifecycleEventHookExecutionStatusOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand)(output, context); + } + }; + exports.PutLifecycleEventHookExecutionStatusCommand = PutLifecycleEventHookExecutionStatusCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RegisterApplicationRevisionCommand.js +var require_RegisterApplicationRevisionCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RegisterApplicationRevisionCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.RegisterApplicationRevisionCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var RegisterApplicationRevisionCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "RegisterApplicationRevisionCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.RegisterApplicationRevisionInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1RegisterApplicationRevisionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1RegisterApplicationRevisionCommand)(output, context); + } + }; + exports.RegisterApplicationRevisionCommand = RegisterApplicationRevisionCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RegisterOnPremisesInstanceCommand.js +var require_RegisterOnPremisesInstanceCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RegisterOnPremisesInstanceCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.RegisterOnPremisesInstanceCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var RegisterOnPremisesInstanceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "RegisterOnPremisesInstanceCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.RegisterOnPremisesInstanceInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1RegisterOnPremisesInstanceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1RegisterOnPremisesInstanceCommand)(output, context); + } + }; + exports.RegisterOnPremisesInstanceCommand = RegisterOnPremisesInstanceCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RemoveTagsFromOnPremisesInstancesCommand.js +var require_RemoveTagsFromOnPremisesInstancesCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RemoveTagsFromOnPremisesInstancesCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.RemoveTagsFromOnPremisesInstancesCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var RemoveTagsFromOnPremisesInstancesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "RemoveTagsFromOnPremisesInstancesCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.RemoveTagsFromOnPremisesInstancesInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand)(output, context); + } + }; + exports.RemoveTagsFromOnPremisesInstancesCommand = RemoveTagsFromOnPremisesInstancesCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/SkipWaitTimeForInstanceTerminationCommand.js +var require_SkipWaitTimeForInstanceTerminationCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/SkipWaitTimeForInstanceTerminationCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.SkipWaitTimeForInstanceTerminationCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var SkipWaitTimeForInstanceTerminationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "SkipWaitTimeForInstanceTerminationCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.SkipWaitTimeForInstanceTerminationInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand)(output, context); + } + }; + exports.SkipWaitTimeForInstanceTerminationCommand = SkipWaitTimeForInstanceTerminationCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/StopDeploymentCommand.js +var require_StopDeploymentCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/StopDeploymentCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.StopDeploymentCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var StopDeploymentCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "StopDeploymentCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.StopDeploymentInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.StopDeploymentOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1StopDeploymentCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1StopDeploymentCommand)(output, context); + } + }; + exports.StopDeploymentCommand = StopDeploymentCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/TagResourceCommand.js +var require_TagResourceCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/TagResourceCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.TagResourceCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var TagResourceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "TagResourceCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.TagResourceInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.TagResourceOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1TagResourceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1TagResourceCommand)(output, context); + } + }; + exports.TagResourceCommand = TagResourceCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UntagResourceCommand.js +var require_UntagResourceCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UntagResourceCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.UntagResourceCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var UntagResourceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "UntagResourceCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UntagResourceInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UntagResourceOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UntagResourceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UntagResourceCommand)(output, context); + } + }; + exports.UntagResourceCommand = UntagResourceCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UpdateApplicationCommand.js +var require_UpdateApplicationCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UpdateApplicationCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.UpdateApplicationCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var UpdateApplicationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "UpdateApplicationCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateApplicationInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateApplicationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateApplicationCommand)(output, context); + } + }; + exports.UpdateApplicationCommand = UpdateApplicationCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UpdateDeploymentGroupCommand.js +var require_UpdateDeploymentGroupCommand = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UpdateDeploymentGroupCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.UpdateDeploymentGroupCommand = void 0; + var middleware_serde_1 = require_dist_cjs20(); + var smithy_client_1 = require_dist_cjs19(); + var models_0_1 = require_models_03(); + var Aws_json1_1_1 = require_Aws_json1_1(); + var UpdateDeploymentGroupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger: logger2 } = configuration; + const clientName = "CodeDeployClient"; + const commandName = "UpdateDeploymentGroupCommand"; + const handlerExecutionContext = { + logger: logger2, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateDeploymentGroupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateDeploymentGroupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateDeploymentGroupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateDeploymentGroupCommand)(output, context); + } + }; + exports.UpdateDeploymentGroupCommand = UpdateDeploymentGroupCommand; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/CodeDeploy.js +var require_CodeDeploy = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/CodeDeploy.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CodeDeploy = void 0; + var CodeDeployClient_1 = require_CodeDeployClient(); + var AddTagsToOnPremisesInstancesCommand_1 = require_AddTagsToOnPremisesInstancesCommand(); + var BatchGetApplicationRevisionsCommand_1 = require_BatchGetApplicationRevisionsCommand(); + var BatchGetApplicationsCommand_1 = require_BatchGetApplicationsCommand(); + var BatchGetDeploymentGroupsCommand_1 = require_BatchGetDeploymentGroupsCommand(); + var BatchGetDeploymentInstancesCommand_1 = require_BatchGetDeploymentInstancesCommand(); + var BatchGetDeploymentsCommand_1 = require_BatchGetDeploymentsCommand(); + var BatchGetDeploymentTargetsCommand_1 = require_BatchGetDeploymentTargetsCommand(); + var BatchGetOnPremisesInstancesCommand_1 = require_BatchGetOnPremisesInstancesCommand(); + var ContinueDeploymentCommand_1 = require_ContinueDeploymentCommand(); + var CreateApplicationCommand_1 = require_CreateApplicationCommand(); + var CreateDeploymentCommand_1 = require_CreateDeploymentCommand(); + var CreateDeploymentConfigCommand_1 = require_CreateDeploymentConfigCommand(); + var CreateDeploymentGroupCommand_1 = require_CreateDeploymentGroupCommand(); + var DeleteApplicationCommand_1 = require_DeleteApplicationCommand(); + var DeleteDeploymentConfigCommand_1 = require_DeleteDeploymentConfigCommand(); + var DeleteDeploymentGroupCommand_1 = require_DeleteDeploymentGroupCommand(); + var DeleteGitHubAccountTokenCommand_1 = require_DeleteGitHubAccountTokenCommand(); + var DeleteResourcesByExternalIdCommand_1 = require_DeleteResourcesByExternalIdCommand(); + var DeregisterOnPremisesInstanceCommand_1 = require_DeregisterOnPremisesInstanceCommand(); + var GetApplicationCommand_1 = require_GetApplicationCommand(); + var GetApplicationRevisionCommand_1 = require_GetApplicationRevisionCommand(); + var GetDeploymentCommand_1 = require_GetDeploymentCommand(); + var GetDeploymentConfigCommand_1 = require_GetDeploymentConfigCommand(); + var GetDeploymentGroupCommand_1 = require_GetDeploymentGroupCommand(); + var GetDeploymentInstanceCommand_1 = require_GetDeploymentInstanceCommand(); + var GetDeploymentTargetCommand_1 = require_GetDeploymentTargetCommand(); + var GetOnPremisesInstanceCommand_1 = require_GetOnPremisesInstanceCommand(); + var ListApplicationRevisionsCommand_1 = require_ListApplicationRevisionsCommand(); + var ListApplicationsCommand_1 = require_ListApplicationsCommand(); + var ListDeploymentConfigsCommand_1 = require_ListDeploymentConfigsCommand(); + var ListDeploymentGroupsCommand_1 = require_ListDeploymentGroupsCommand(); + var ListDeploymentInstancesCommand_1 = require_ListDeploymentInstancesCommand(); + var ListDeploymentsCommand_1 = require_ListDeploymentsCommand(); + var ListDeploymentTargetsCommand_1 = require_ListDeploymentTargetsCommand(); + var ListGitHubAccountTokenNamesCommand_1 = require_ListGitHubAccountTokenNamesCommand(); + var ListOnPremisesInstancesCommand_1 = require_ListOnPremisesInstancesCommand(); + var ListTagsForResourceCommand_1 = require_ListTagsForResourceCommand(); + var PutLifecycleEventHookExecutionStatusCommand_1 = require_PutLifecycleEventHookExecutionStatusCommand(); + var RegisterApplicationRevisionCommand_1 = require_RegisterApplicationRevisionCommand(); + var RegisterOnPremisesInstanceCommand_1 = require_RegisterOnPremisesInstanceCommand(); + var RemoveTagsFromOnPremisesInstancesCommand_1 = require_RemoveTagsFromOnPremisesInstancesCommand(); + var SkipWaitTimeForInstanceTerminationCommand_1 = require_SkipWaitTimeForInstanceTerminationCommand(); + var StopDeploymentCommand_1 = require_StopDeploymentCommand(); + var TagResourceCommand_1 = require_TagResourceCommand(); + var UntagResourceCommand_1 = require_UntagResourceCommand(); + var UpdateApplicationCommand_1 = require_UpdateApplicationCommand(); + var UpdateDeploymentGroupCommand_1 = require_UpdateDeploymentGroupCommand(); + var CodeDeploy2 = class extends CodeDeployClient_1.CodeDeployClient { + addTagsToOnPremisesInstances(args, optionsOrCb, cb) { + const command = new AddTagsToOnPremisesInstancesCommand_1.AddTagsToOnPremisesInstancesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetApplicationRevisions(args, optionsOrCb, cb) { + const command = new BatchGetApplicationRevisionsCommand_1.BatchGetApplicationRevisionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetApplications(args, optionsOrCb, cb) { + const command = new BatchGetApplicationsCommand_1.BatchGetApplicationsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetDeploymentGroups(args, optionsOrCb, cb) { + const command = new BatchGetDeploymentGroupsCommand_1.BatchGetDeploymentGroupsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetDeploymentInstances(args, optionsOrCb, cb) { + const command = new BatchGetDeploymentInstancesCommand_1.BatchGetDeploymentInstancesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetDeployments(args, optionsOrCb, cb) { + const command = new BatchGetDeploymentsCommand_1.BatchGetDeploymentsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetDeploymentTargets(args, optionsOrCb, cb) { + const command = new BatchGetDeploymentTargetsCommand_1.BatchGetDeploymentTargetsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetOnPremisesInstances(args, optionsOrCb, cb) { + const command = new BatchGetOnPremisesInstancesCommand_1.BatchGetOnPremisesInstancesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + continueDeployment(args, optionsOrCb, cb) { + const command = new ContinueDeploymentCommand_1.ContinueDeploymentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + createApplication(args, optionsOrCb, cb) { + const command = new CreateApplicationCommand_1.CreateApplicationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + createDeployment(args, optionsOrCb, cb) { + const command = new CreateDeploymentCommand_1.CreateDeploymentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + createDeploymentConfig(args, optionsOrCb, cb) { + const command = new CreateDeploymentConfigCommand_1.CreateDeploymentConfigCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + createDeploymentGroup(args, optionsOrCb, cb) { + const command = new CreateDeploymentGroupCommand_1.CreateDeploymentGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteApplication(args, optionsOrCb, cb) { + const command = new DeleteApplicationCommand_1.DeleteApplicationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteDeploymentConfig(args, optionsOrCb, cb) { + const command = new DeleteDeploymentConfigCommand_1.DeleteDeploymentConfigCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteDeploymentGroup(args, optionsOrCb, cb) { + const command = new DeleteDeploymentGroupCommand_1.DeleteDeploymentGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteGitHubAccountToken(args, optionsOrCb, cb) { + const command = new DeleteGitHubAccountTokenCommand_1.DeleteGitHubAccountTokenCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteResourcesByExternalId(args, optionsOrCb, cb) { + const command = new DeleteResourcesByExternalIdCommand_1.DeleteResourcesByExternalIdCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deregisterOnPremisesInstance(args, optionsOrCb, cb) { + const command = new DeregisterOnPremisesInstanceCommand_1.DeregisterOnPremisesInstanceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getApplication(args, optionsOrCb, cb) { + const command = new GetApplicationCommand_1.GetApplicationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getApplicationRevision(args, optionsOrCb, cb) { + const command = new GetApplicationRevisionCommand_1.GetApplicationRevisionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getDeployment(args, optionsOrCb, cb) { + const command = new GetDeploymentCommand_1.GetDeploymentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getDeploymentConfig(args, optionsOrCb, cb) { + const command = new GetDeploymentConfigCommand_1.GetDeploymentConfigCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getDeploymentGroup(args, optionsOrCb, cb) { + const command = new GetDeploymentGroupCommand_1.GetDeploymentGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getDeploymentInstance(args, optionsOrCb, cb) { + const command = new GetDeploymentInstanceCommand_1.GetDeploymentInstanceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getDeploymentTarget(args, optionsOrCb, cb) { + const command = new GetDeploymentTargetCommand_1.GetDeploymentTargetCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getOnPremisesInstance(args, optionsOrCb, cb) { + const command = new GetOnPremisesInstanceCommand_1.GetOnPremisesInstanceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listApplicationRevisions(args, optionsOrCb, cb) { + const command = new ListApplicationRevisionsCommand_1.ListApplicationRevisionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listApplications(args, optionsOrCb, cb) { + const command = new ListApplicationsCommand_1.ListApplicationsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listDeploymentConfigs(args, optionsOrCb, cb) { + const command = new ListDeploymentConfigsCommand_1.ListDeploymentConfigsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listDeploymentGroups(args, optionsOrCb, cb) { + const command = new ListDeploymentGroupsCommand_1.ListDeploymentGroupsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listDeploymentInstances(args, optionsOrCb, cb) { + const command = new ListDeploymentInstancesCommand_1.ListDeploymentInstancesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listDeployments(args, optionsOrCb, cb) { + const command = new ListDeploymentsCommand_1.ListDeploymentsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listDeploymentTargets(args, optionsOrCb, cb) { + const command = new ListDeploymentTargetsCommand_1.ListDeploymentTargetsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listGitHubAccountTokenNames(args, optionsOrCb, cb) { + const command = new ListGitHubAccountTokenNamesCommand_1.ListGitHubAccountTokenNamesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listOnPremisesInstances(args, optionsOrCb, cb) { + const command = new ListOnPremisesInstancesCommand_1.ListOnPremisesInstancesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listTagsForResource(args, optionsOrCb, cb) { + const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + putLifecycleEventHookExecutionStatus(args, optionsOrCb, cb) { + const command = new PutLifecycleEventHookExecutionStatusCommand_1.PutLifecycleEventHookExecutionStatusCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + registerApplicationRevision(args, optionsOrCb, cb) { + const command = new RegisterApplicationRevisionCommand_1.RegisterApplicationRevisionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + registerOnPremisesInstance(args, optionsOrCb, cb) { + const command = new RegisterOnPremisesInstanceCommand_1.RegisterOnPremisesInstanceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + removeTagsFromOnPremisesInstances(args, optionsOrCb, cb) { + const command = new RemoveTagsFromOnPremisesInstancesCommand_1.RemoveTagsFromOnPremisesInstancesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + skipWaitTimeForInstanceTermination(args, optionsOrCb, cb) { + const command = new SkipWaitTimeForInstanceTerminationCommand_1.SkipWaitTimeForInstanceTerminationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + stopDeployment(args, optionsOrCb, cb) { + const command = new StopDeploymentCommand_1.StopDeploymentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + tagResource(args, optionsOrCb, cb) { + const command = new TagResourceCommand_1.TagResourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + untagResource(args, optionsOrCb, cb) { + const command = new UntagResourceCommand_1.UntagResourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateApplication(args, optionsOrCb, cb) { + const command = new UpdateApplicationCommand_1.UpdateApplicationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateDeploymentGroup(args, optionsOrCb, cb) { + const command = new UpdateDeploymentGroupCommand_1.UpdateDeploymentGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + }; + exports.CodeDeploy = CodeDeploy2; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/index.js +var require_commands3 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_AddTagsToOnPremisesInstancesCommand(), exports); + tslib_1.__exportStar(require_BatchGetApplicationRevisionsCommand(), exports); + tslib_1.__exportStar(require_BatchGetApplicationsCommand(), exports); + tslib_1.__exportStar(require_BatchGetDeploymentGroupsCommand(), exports); + tslib_1.__exportStar(require_BatchGetDeploymentInstancesCommand(), exports); + tslib_1.__exportStar(require_BatchGetDeploymentTargetsCommand(), exports); + tslib_1.__exportStar(require_BatchGetDeploymentsCommand(), exports); + tslib_1.__exportStar(require_BatchGetOnPremisesInstancesCommand(), exports); + tslib_1.__exportStar(require_ContinueDeploymentCommand(), exports); + tslib_1.__exportStar(require_CreateApplicationCommand(), exports); + tslib_1.__exportStar(require_CreateDeploymentCommand(), exports); + tslib_1.__exportStar(require_CreateDeploymentConfigCommand(), exports); + tslib_1.__exportStar(require_CreateDeploymentGroupCommand(), exports); + tslib_1.__exportStar(require_DeleteApplicationCommand(), exports); + tslib_1.__exportStar(require_DeleteDeploymentConfigCommand(), exports); + tslib_1.__exportStar(require_DeleteDeploymentGroupCommand(), exports); + tslib_1.__exportStar(require_DeleteGitHubAccountTokenCommand(), exports); + tslib_1.__exportStar(require_DeleteResourcesByExternalIdCommand(), exports); + tslib_1.__exportStar(require_DeregisterOnPremisesInstanceCommand(), exports); + tslib_1.__exportStar(require_GetApplicationCommand(), exports); + tslib_1.__exportStar(require_GetApplicationRevisionCommand(), exports); + tslib_1.__exportStar(require_GetDeploymentCommand(), exports); + tslib_1.__exportStar(require_GetDeploymentConfigCommand(), exports); + tslib_1.__exportStar(require_GetDeploymentGroupCommand(), exports); + tslib_1.__exportStar(require_GetDeploymentInstanceCommand(), exports); + tslib_1.__exportStar(require_GetDeploymentTargetCommand(), exports); + tslib_1.__exportStar(require_GetOnPremisesInstanceCommand(), exports); + tslib_1.__exportStar(require_ListApplicationRevisionsCommand(), exports); + tslib_1.__exportStar(require_ListApplicationsCommand(), exports); + tslib_1.__exportStar(require_ListDeploymentConfigsCommand(), exports); + tslib_1.__exportStar(require_ListDeploymentGroupsCommand(), exports); + tslib_1.__exportStar(require_ListDeploymentInstancesCommand(), exports); + tslib_1.__exportStar(require_ListDeploymentTargetsCommand(), exports); + tslib_1.__exportStar(require_ListDeploymentsCommand(), exports); + tslib_1.__exportStar(require_ListGitHubAccountTokenNamesCommand(), exports); + tslib_1.__exportStar(require_ListOnPremisesInstancesCommand(), exports); + tslib_1.__exportStar(require_ListTagsForResourceCommand(), exports); + tslib_1.__exportStar(require_PutLifecycleEventHookExecutionStatusCommand(), exports); + tslib_1.__exportStar(require_RegisterApplicationRevisionCommand(), exports); + tslib_1.__exportStar(require_RegisterOnPremisesInstanceCommand(), exports); + tslib_1.__exportStar(require_RemoveTagsFromOnPremisesInstancesCommand(), exports); + tslib_1.__exportStar(require_SkipWaitTimeForInstanceTerminationCommand(), exports); + tslib_1.__exportStar(require_StopDeploymentCommand(), exports); + tslib_1.__exportStar(require_TagResourceCommand(), exports); + tslib_1.__exportStar(require_UntagResourceCommand(), exports); + tslib_1.__exportStar(require_UpdateApplicationCommand(), exports); + tslib_1.__exportStar(require_UpdateDeploymentGroupCommand(), exports); + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/index.js +var require_models3 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_models_03(), exports); + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/Interfaces.js +var require_Interfaces2 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/Interfaces.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListApplicationRevisionsPaginator.js +var require_ListApplicationRevisionsPaginator = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListApplicationRevisionsPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListApplicationRevisions = void 0; + var CodeDeploy_1 = require_CodeDeploy(); + var CodeDeployClient_1 = require_CodeDeployClient(); + var ListApplicationRevisionsCommand_1 = require_ListApplicationRevisionsCommand(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListApplicationRevisionsCommand_1.ListApplicationRevisionsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listApplicationRevisions(input, ...args); + }; + async function* paginateListApplicationRevisions(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + if (config.client instanceof CodeDeploy_1.CodeDeploy) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof CodeDeployClient_1.CodeDeployClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListApplicationRevisions = paginateListApplicationRevisions; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListApplicationsPaginator.js +var require_ListApplicationsPaginator = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListApplicationsPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListApplications = void 0; + var CodeDeploy_1 = require_CodeDeploy(); + var CodeDeployClient_1 = require_CodeDeployClient(); + var ListApplicationsCommand_1 = require_ListApplicationsCommand(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListApplicationsCommand_1.ListApplicationsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listApplications(input, ...args); + }; + async function* paginateListApplications(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + if (config.client instanceof CodeDeploy_1.CodeDeploy) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof CodeDeployClient_1.CodeDeployClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListApplications = paginateListApplications; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentConfigsPaginator.js +var require_ListDeploymentConfigsPaginator = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentConfigsPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListDeploymentConfigs = void 0; + var CodeDeploy_1 = require_CodeDeploy(); + var CodeDeployClient_1 = require_CodeDeployClient(); + var ListDeploymentConfigsCommand_1 = require_ListDeploymentConfigsCommand(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListDeploymentConfigsCommand_1.ListDeploymentConfigsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listDeploymentConfigs(input, ...args); + }; + async function* paginateListDeploymentConfigs(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + if (config.client instanceof CodeDeploy_1.CodeDeploy) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof CodeDeployClient_1.CodeDeployClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListDeploymentConfigs = paginateListDeploymentConfigs; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentGroupsPaginator.js +var require_ListDeploymentGroupsPaginator = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentGroupsPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListDeploymentGroups = void 0; + var CodeDeploy_1 = require_CodeDeploy(); + var CodeDeployClient_1 = require_CodeDeployClient(); + var ListDeploymentGroupsCommand_1 = require_ListDeploymentGroupsCommand(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListDeploymentGroupsCommand_1.ListDeploymentGroupsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listDeploymentGroups(input, ...args); + }; + async function* paginateListDeploymentGroups(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + if (config.client instanceof CodeDeploy_1.CodeDeploy) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof CodeDeployClient_1.CodeDeployClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListDeploymentGroups = paginateListDeploymentGroups; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentInstancesPaginator.js +var require_ListDeploymentInstancesPaginator = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentInstancesPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListDeploymentInstances = void 0; + var CodeDeploy_1 = require_CodeDeploy(); + var CodeDeployClient_1 = require_CodeDeployClient(); + var ListDeploymentInstancesCommand_1 = require_ListDeploymentInstancesCommand(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListDeploymentInstancesCommand_1.ListDeploymentInstancesCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listDeploymentInstances(input, ...args); + }; + async function* paginateListDeploymentInstances(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + if (config.client instanceof CodeDeploy_1.CodeDeploy) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof CodeDeployClient_1.CodeDeployClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListDeploymentInstances = paginateListDeploymentInstances; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentsPaginator.js +var require_ListDeploymentsPaginator = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentsPaginator.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.paginateListDeployments = void 0; + var CodeDeploy_1 = require_CodeDeploy(); + var CodeDeployClient_1 = require_CodeDeployClient(); + var ListDeploymentsCommand_1 = require_ListDeploymentsCommand(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListDeploymentsCommand_1.ListDeploymentsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listDeployments(input, ...args); + }; + async function* paginateListDeployments(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + if (config.client instanceof CodeDeploy_1.CodeDeploy) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof CodeDeployClient_1.CodeDeployClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports.paginateListDeployments = paginateListDeployments; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/index.js +var require_pagination2 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_Interfaces2(), exports); + tslib_1.__exportStar(require_ListApplicationRevisionsPaginator(), exports); + tslib_1.__exportStar(require_ListApplicationsPaginator(), exports); + tslib_1.__exportStar(require_ListDeploymentConfigsPaginator(), exports); + tslib_1.__exportStar(require_ListDeploymentGroupsPaginator(), exports); + tslib_1.__exportStar(require_ListDeploymentInstancesPaginator(), exports); + tslib_1.__exportStar(require_ListDeploymentsPaginator(), exports); + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/sleep.js +var require_sleep = __commonJS({ + "node_modules/@aws-sdk/util-waiter/dist-cjs/utils/sleep.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.sleep = void 0; + var sleep = (seconds) => { + return new Promise((resolve) => setTimeout(resolve, seconds * 1e3)); + }; + exports.sleep = sleep; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/waiter.js +var require_waiter = __commonJS({ + "node_modules/@aws-sdk/util-waiter/dist-cjs/waiter.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.checkExceptions = exports.WaiterState = exports.waiterServiceDefaults = void 0; + exports.waiterServiceDefaults = { + minDelay: 2, + maxDelay: 120 + }; + var WaiterState; + (function(WaiterState2) { + WaiterState2["ABORTED"] = "ABORTED"; + WaiterState2["FAILURE"] = "FAILURE"; + WaiterState2["SUCCESS"] = "SUCCESS"; + WaiterState2["RETRY"] = "RETRY"; + WaiterState2["TIMEOUT"] = "TIMEOUT"; + })(WaiterState = exports.WaiterState || (exports.WaiterState = {})); + var checkExceptions = (result) => { + if (result.state === WaiterState.ABORTED) { + const abortError = new Error(`${JSON.stringify({ + ...result, + reason: "Request was aborted" + })}`); + abortError.name = "AbortError"; + throw abortError; + } else if (result.state === WaiterState.TIMEOUT) { + const timeoutError = new Error(`${JSON.stringify({ + ...result, + reason: "Waiter has timed out" + })}`); + timeoutError.name = "TimeoutError"; + throw timeoutError; + } else if (result.state !== WaiterState.SUCCESS) { + throw new Error(`${JSON.stringify({ result })}`); + } + return result; + }; + exports.checkExceptions = checkExceptions; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/poller.js +var require_poller = __commonJS({ + "node_modules/@aws-sdk/util-waiter/dist-cjs/poller.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.runPolling = void 0; + var sleep_1 = require_sleep(); + var waiter_1 = require_waiter(); + var exponentialBackoffWithJitter = (minDelay, maxDelay, attemptCeiling, attempt) => { + if (attempt > attemptCeiling) + return maxDelay; + const delay = minDelay * 2 ** (attempt - 1); + return randomInRange(minDelay, delay); + }; + var randomInRange = (min, max) => min + Math.random() * (max - min); + var runPolling = async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => { + var _a; + const { state, reason } = await acceptorChecks(client, input); + if (state !== waiter_1.WaiterState.RETRY) { + return { state, reason }; + } + let currentAttempt = 1; + const waitUntil = Date.now() + maxWaitTime * 1e3; + const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1; + while (true) { + if (((_a = abortController === null || abortController === void 0 ? void 0 : abortController.signal) === null || _a === void 0 ? void 0 : _a.aborted) || (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted)) { + return { state: waiter_1.WaiterState.ABORTED }; + } + const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt); + if (Date.now() + delay * 1e3 > waitUntil) { + return { state: waiter_1.WaiterState.TIMEOUT }; + } + await (0, sleep_1.sleep)(delay); + const { state: state2, reason: reason2 } = await acceptorChecks(client, input); + if (state2 !== waiter_1.WaiterState.RETRY) { + return { state: state2, reason: reason2 }; + } + currentAttempt += 1; + } + }; + exports.runPolling = runPolling; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/validate.js +var require_validate2 = __commonJS({ + "node_modules/@aws-sdk/util-waiter/dist-cjs/utils/validate.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.validateWaiterOptions = void 0; + var validateWaiterOptions = (options) => { + if (options.maxWaitTime < 1) { + throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`); + } else if (options.minDelay < 1) { + throw new Error(`WaiterConfiguration.minDelay must be greater than 0`); + } else if (options.maxDelay < 1) { + throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`); + } else if (options.maxWaitTime <= options.minDelay) { + throw new Error(`WaiterConfiguration.maxWaitTime [${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); + } else if (options.maxDelay < options.minDelay) { + throw new Error(`WaiterConfiguration.maxDelay [${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); + } + }; + exports.validateWaiterOptions = validateWaiterOptions; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/index.js +var require_utils = __commonJS({ + "node_modules/@aws-sdk/util-waiter/dist-cjs/utils/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_sleep(), exports); + tslib_1.__exportStar(require_validate2(), exports); + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/createWaiter.js +var require_createWaiter = __commonJS({ + "node_modules/@aws-sdk/util-waiter/dist-cjs/createWaiter.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.createWaiter = void 0; + var poller_1 = require_poller(); + var utils_1 = require_utils(); + var waiter_1 = require_waiter(); + var abortTimeout = async (abortSignal) => { + return new Promise((resolve) => { + abortSignal.onabort = () => resolve({ state: waiter_1.WaiterState.ABORTED }); + }); + }; + var createWaiter = async (options, input, acceptorChecks) => { + const params = { + ...waiter_1.waiterServiceDefaults, + ...options + }; + (0, utils_1.validateWaiterOptions)(params); + const exitConditions = [(0, poller_1.runPolling)(params, input, acceptorChecks)]; + if (options.abortController) { + exitConditions.push(abortTimeout(options.abortController.signal)); + } + if (options.abortSignal) { + exitConditions.push(abortTimeout(options.abortSignal)); + } + return Promise.race(exitConditions); + }; + exports.createWaiter = createWaiter; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/index.js +var require_dist_cjs44 = __commonJS({ + "node_modules/@aws-sdk/util-waiter/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_createWaiter(), exports); + tslib_1.__exportStar(require_waiter(), exports); + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/waiters/waitForDeploymentSuccessful.js +var require_waitForDeploymentSuccessful = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/waiters/waitForDeploymentSuccessful.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.waitUntilDeploymentSuccessful = exports.waitForDeploymentSuccessful = void 0; + var util_waiter_1 = require_dist_cjs44(); + var GetDeploymentCommand_1 = require_GetDeploymentCommand(); + var checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new GetDeploymentCommand_1.GetDeploymentCommand(input)); + reason = result; + try { + const returnComparator = () => { + return result.deploymentInfo.status; + }; + if (returnComparator() === "Succeeded") { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } + } catch (e) { + } + try { + const returnComparator = () => { + return result.deploymentInfo.status; + }; + if (returnComparator() === "Failed") { + return { state: util_waiter_1.WaiterState.FAILURE, reason }; + } + } catch (e) { + } + try { + const returnComparator = () => { + return result.deploymentInfo.status; + }; + if (returnComparator() === "Stopped") { + return { state: util_waiter_1.WaiterState.FAILURE, reason }; + } + } catch (e) { + } + } catch (exception) { + reason = exception; + } + return { state: util_waiter_1.WaiterState.RETRY, reason }; + }; + var waitForDeploymentSuccessful = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + }; + exports.waitForDeploymentSuccessful = waitForDeploymentSuccessful; + var waitUntilDeploymentSuccessful = async (params, input) => { + const serviceDefaults = { minDelay: 15, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); + }; + exports.waitUntilDeploymentSuccessful = waitUntilDeploymentSuccessful; + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/waiters/index.js +var require_waiters = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/waiters/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_waitForDeploymentSuccessful(), exports); + } +}); + +// node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +var require_dist_cjs45 = __commonJS({ + "node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CodeDeployServiceException = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_CodeDeploy(), exports); + tslib_1.__exportStar(require_CodeDeployClient(), exports); + tslib_1.__exportStar(require_commands3(), exports); + tslib_1.__exportStar(require_models3(), exports); + tslib_1.__exportStar(require_pagination2(), exports); + tslib_1.__exportStar(require_waiters(), exports); + var CodeDeployServiceException_1 = require_CodeDeployServiceException(); + Object.defineProperty(exports, "CodeDeployServiceException", { enumerable: true, get: function() { + return CodeDeployServiceException_1.CodeDeployServiceException; + } }); + } +}); + +// packages/@aws-cdk/aws-codedeploy/lambda-packages/ecs-deployment-provider/lib/is-complete.ts +var is_complete_exports = {}; +__export(is_complete_exports, { + handler: () => handler +}); +module.exports = __toCommonJS(is_complete_exports); +var import_logger = __toESM(require_lib2()); +var import_client_codedeploy = __toESM(require_dist_cjs45()); +var logger = new import_logger.Logger({ serviceName: "ecsDeploymentProviderIsComplete" }); +var codedeployClient = new import_client_codedeploy.CodeDeploy({}); +async function handler(event) { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p; + try { + const resp = await codedeployClient.getDeployment({ deploymentId: event.PhysicalResourceId }); + let rollbackResp = {}; + if ((_b = (_a = resp.deploymentInfo) == null ? void 0 : _a.rollbackInfo) == null ? void 0 : _b.rollbackDeploymentId) { + rollbackResp = await codedeployClient.getDeployment({ deploymentId: (_d = (_c = resp.deploymentInfo) == null ? void 0 : _c.rollbackInfo) == null ? void 0 : _d.rollbackDeploymentId }); + } + logger.appendKeys({ + stackEvent: event.RequestType, + deploymentId: event.PhysicalResourceId, + status: (_e = resp.deploymentInfo) == null ? void 0 : _e.status, + rollbackStatus: (_f = rollbackResp == null ? void 0 : rollbackResp.deploymentInfo) == null ? void 0 : _f.status + }); + logger.info("Checking deployment"); + switch (event.RequestType) { + case "Create": + case "Update": + switch ((_g = resp.deploymentInfo) == null ? void 0 : _g.status) { + case import_client_codedeploy.DeploymentStatus.SUCCEEDED: + logger.info("Deployment finished successfully", { complete: true }); + return { IsComplete: true }; + case import_client_codedeploy.DeploymentStatus.FAILED: + case import_client_codedeploy.DeploymentStatus.STOPPED: + if ((_h = rollbackResp.deploymentInfo) == null ? void 0 : _h.status) { + if (((_i = rollbackResp.deploymentInfo) == null ? void 0 : _i.status) == import_client_codedeploy.DeploymentStatus.SUCCEEDED || ((_j = rollbackResp.deploymentInfo) == null ? void 0 : _j.status) == import_client_codedeploy.DeploymentStatus.FAILED || ((_k = rollbackResp.deploymentInfo) == null ? void 0 : _k.status) == import_client_codedeploy.DeploymentStatus.STOPPED) { + const errInfo = resp.deploymentInfo.errorInformation; + const error = new Error(`Deployment ${resp.deploymentInfo.status}: [${errInfo == null ? void 0 : errInfo.code}] ${errInfo == null ? void 0 : errInfo.message}`); + logger.error("Deployment failed", { complete: true, error }); + throw error; + } + logger.info("Waiting for final status from a rollback", { complete: false }); + return { IsComplete: false }; + } else { + const errInfo = resp.deploymentInfo.errorInformation; + const error = new Error(`Deployment ${resp.deploymentInfo.status}: [${errInfo == null ? void 0 : errInfo.code}] ${errInfo == null ? void 0 : errInfo.message}`); + logger.error("No rollback to wait for", { complete: true, error }); + throw error; + } + default: + logger.info("Waiting for final status from deployment", { complete: false }); + return { IsComplete: false }; + } + case "Delete": + switch ((_l = resp.deploymentInfo) == null ? void 0 : _l.status) { + case import_client_codedeploy.DeploymentStatus.SUCCEEDED: + logger.info("Deployment finished successfully - nothing to delete", { complete: true }); + return { IsComplete: true }; + case import_client_codedeploy.DeploymentStatus.FAILED: + case import_client_codedeploy.DeploymentStatus.STOPPED: + if ((_m = rollbackResp.deploymentInfo) == null ? void 0 : _m.status) { + if (((_n = rollbackResp.deploymentInfo) == null ? void 0 : _n.status) == import_client_codedeploy.DeploymentStatus.SUCCEEDED || ((_o = rollbackResp.deploymentInfo) == null ? void 0 : _o.status) == import_client_codedeploy.DeploymentStatus.FAILED || ((_p = rollbackResp.deploymentInfo) == null ? void 0 : _p.status) == import_client_codedeploy.DeploymentStatus.STOPPED) { + logger.info("Rollback in final status", { complete: true }); + return { IsComplete: true }; + } + logger.info("Waiting for final status from a rollback", { complete: false }); + return { IsComplete: false }; + } + logger.info("No rollback to wait for", { complete: true }); + return { IsComplete: true }; + default: + logger.info("Waiting for final status from deployment", { complete: false }); + return { IsComplete: false }; + } + default: + logger.error("Unknown request type"); + throw new Error(`Unknown request type: ${event.RequestType}`); + } + } catch (e) { + logger.error("Unable to determine deployment status", e); + if (event.RequestType === "Delete") { + logger.warn("Ignoring error - nothing to do", { complete: true }); + return { IsComplete: true }; + } + throw e; + } +} +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + handler +}); diff --git a/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/aws-cdk-codedeploy-ecs-deployment.assets.json b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/aws-cdk-codedeploy-ecs-deployment.assets.json new file mode 100644 index 0000000000000..f0dcc495aa402 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/aws-cdk-codedeploy-ecs-deployment.assets.json @@ -0,0 +1,58 @@ +{ + "version": "21.0.0", + "files": { + "1441a653914635996087caa4fac8e0e31589bf1601556f25eef99b2411745ba7": { + "source": { + "path": "asset.1441a653914635996087caa4fac8e0e31589bf1601556f25eef99b2411745ba7", + "packaging": "zip" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "1441a653914635996087caa4fac8e0e31589bf1601556f25eef99b2411745ba7.zip", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + }, + "6ac1448e726779b45302ae5560690a6ce8925b2bcd7f3da633ee6abc605b5bac": { + "source": { + "path": "asset.6ac1448e726779b45302ae5560690a6ce8925b2bcd7f3da633ee6abc605b5bac", + "packaging": "zip" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "6ac1448e726779b45302ae5560690a6ce8925b2bcd7f3da633ee6abc605b5bac.zip", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + }, + "3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671": { + "source": { + "path": "asset.3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671", + "packaging": "zip" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671.zip", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + }, + "af72837e99663889115717a30c8744292a1d1bf17f9956fe827277105287fc7b": { + "source": { + "path": "aws-cdk-codedeploy-ecs-deployment.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "af72837e99663889115717a30c8744292a1d1bf17f9956fe827277105287fc7b.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/aws-codedeploy/test/ecs/deployment.integ.snapshot/aws-cdk-codedeploy-ecs-deployment.template.json b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/aws-cdk-codedeploy-ecs-deployment.template.json new file mode 100644 index 0000000000000..d55b98ef01c91 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/aws-cdk-codedeploy-ecs-deployment.template.json @@ -0,0 +1,2346 @@ +{ + "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-codedeploy-ecs-deployment/VPC" + } + ] + } + }, + "VPCPublicSubnet1SubnetB4246D30": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "VpcId": { + "Ref": "VPCB9E5F0B4" + }, + "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-codedeploy-ecs-deployment/VPC/PublicSubnet1" + } + ] + } + }, + "VPCPublicSubnet1RouteTableFEE4B781": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "VpcId": { + "Ref": "VPCB9E5F0B4" + }, + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1" + } + ] + } + }, + "VPCPublicSubnet1RouteTableAssociation0B0896DC": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" + }, + "SubnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + } + } + }, + "VPCPublicSubnet1DefaultRoute91CEF279": { + "Type": "AWS::EC2::Route", + "Properties": { + "RouteTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" + }, + "DestinationCidrBlock": "0.0.0.0/0", + "GatewayId": { + "Ref": "VPCIGWB7E252D3" + } + }, + "DependsOn": [ + "VPCVPCGW99B986DC" + ] + }, + "VPCPublicSubnet1EIP6AD938E8": { + "Type": "AWS::EC2::EIP", + "Properties": { + "Domain": "vpc", + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1" + } + ] + } + }, + "VPCPublicSubnet1NATGatewayE0556630": { + "Type": "AWS::EC2::NatGateway", + "Properties": { + "SubnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + }, + "AllocationId": { + "Fn::GetAtt": [ + "VPCPublicSubnet1EIP6AD938E8", + "AllocationId" + ] + }, + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1" + } + ] + }, + "DependsOn": [ + "VPCPublicSubnet1DefaultRoute91CEF279", + "VPCPublicSubnet1RouteTableAssociation0B0896DC" + ] + }, + "VPCPublicSubnet2Subnet74179F39": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "VpcId": { + "Ref": "VPCB9E5F0B4" + }, + "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-codedeploy-ecs-deployment/VPC/PublicSubnet2" + } + ] + } + }, + "VPCPublicSubnet2RouteTable6F1A15F1": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "VpcId": { + "Ref": "VPCB9E5F0B4" + }, + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2" + } + ] + } + }, + "VPCPublicSubnet2RouteTableAssociation5A808732": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" + }, + "SubnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + } + } + }, + "VPCPublicSubnet2DefaultRouteB7481BBA": { + "Type": "AWS::EC2::Route", + "Properties": { + "RouteTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" + }, + "DestinationCidrBlock": "0.0.0.0/0", + "GatewayId": { + "Ref": "VPCIGWB7E252D3" + } + }, + "DependsOn": [ + "VPCVPCGW99B986DC" + ] + }, + "VPCPublicSubnet2EIP4947BC00": { + "Type": "AWS::EC2::EIP", + "Properties": { + "Domain": "vpc", + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2" + } + ] + } + }, + "VPCPublicSubnet2NATGateway3C070193": { + "Type": "AWS::EC2::NatGateway", + "Properties": { + "SubnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + }, + "AllocationId": { + "Fn::GetAtt": [ + "VPCPublicSubnet2EIP4947BC00", + "AllocationId" + ] + }, + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2" + } + ] + }, + "DependsOn": [ + "VPCPublicSubnet2DefaultRouteB7481BBA", + "VPCPublicSubnet2RouteTableAssociation5A808732" + ] + }, + "VPCPrivateSubnet1Subnet8BCA10E0": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "VpcId": { + "Ref": "VPCB9E5F0B4" + }, + "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-codedeploy-ecs-deployment/VPC/PrivateSubnet1" + } + ] + } + }, + "VPCPrivateSubnet1RouteTableBE8A6027": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "VpcId": { + "Ref": "VPCB9E5F0B4" + }, + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet1" + } + ] + } + }, + "VPCPrivateSubnet1RouteTableAssociation347902D1": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" + }, + "SubnetId": { + "Ref": "VPCPrivateSubnet1Subnet8BCA10E0" + } + } + }, + "VPCPrivateSubnet1DefaultRouteAE1D6490": { + "Type": "AWS::EC2::Route", + "Properties": { + "RouteTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" + }, + "DestinationCidrBlock": "0.0.0.0/0", + "NatGatewayId": { + "Ref": "VPCPublicSubnet1NATGatewayE0556630" + } + } + }, + "VPCPrivateSubnet2SubnetCFCDAA7A": { + "Type": "AWS::EC2::Subnet", + "Properties": { + "VpcId": { + "Ref": "VPCB9E5F0B4" + }, + "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-codedeploy-ecs-deployment/VPC/PrivateSubnet2" + } + ] + } + }, + "VPCPrivateSubnet2RouteTable0A19E10E": { + "Type": "AWS::EC2::RouteTable", + "Properties": { + "VpcId": { + "Ref": "VPCB9E5F0B4" + }, + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet2" + } + ] + } + }, + "VPCPrivateSubnet2RouteTableAssociation0C73D413": { + "Type": "AWS::EC2::SubnetRouteTableAssociation", + "Properties": { + "RouteTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" + }, + "SubnetId": { + "Ref": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + } + }, + "VPCPrivateSubnet2DefaultRouteF4F5CFD2": { + "Type": "AWS::EC2::Route", + "Properties": { + "RouteTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" + }, + "DestinationCidrBlock": "0.0.0.0/0", + "NatGatewayId": { + "Ref": "VPCPublicSubnet2NATGateway3C070193" + } + } + }, + "VPCIGWB7E252D3": { + "Type": "AWS::EC2::InternetGateway", + "Properties": { + "Tags": [ + { + "Key": "Name", + "Value": "aws-cdk-codedeploy-ecs-deployment/VPC" + } + ] + } + }, + "VPCVPCGW99B986DC": { + "Type": "AWS::EC2::VPCGatewayAttachment", + "Properties": { + "VpcId": { + "Ref": "VPCB9E5F0B4" + }, + "InternetGatewayId": { + "Ref": "VPCIGWB7E252D3" + } + } + }, + "EcsCluster97242B84": { + "Type": "AWS::ECS::Cluster" + }, + "TaskDefTaskRole1EDB4A67": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "ecs-tasks.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "TaskDef54694570": { + "Type": "AWS::ECS::TaskDefinition", + "Properties": { + "ContainerDefinitions": [ + { + "Essential": true, + "Image": "public.ecr.aws/ecs-sample-image/amazon-ecs-sample:latest", + "Name": "Container", + "PortMappings": [ + { + "ContainerPort": 80, + "Protocol": "tcp" + } + ] + } + ], + "Cpu": "256", + "Family": "awscdkcodedeployecsdeploymentTaskDef1F26DB5D", + "Memory": "512", + "NetworkMode": "awsvpc", + "RequiresCompatibilities": [ + "FARGATE" + ], + "TaskRoleArn": { + "Fn::GetAtt": [ + "TaskDefTaskRole1EDB4A67", + "Arn" + ] + } + } + }, + "FargateServiceAC2B3B85": { + "Type": "AWS::ECS::Service", + "Properties": { + "Cluster": { + "Ref": "EcsCluster97242B84" + }, + "DeploymentConfiguration": { + "MaximumPercent": 200, + "MinimumHealthyPercent": 50 + }, + "DeploymentController": { + "Type": "CODE_DEPLOY" + }, + "EnableECSManagedTags": false, + "HealthCheckGracePeriodSeconds": 60, + "LaunchType": "FARGATE", + "LoadBalancers": [ + { + "ContainerName": "Container", + "ContainerPort": 80, + "TargetGroupArn": { + "Ref": "ServiceLBProdListenerBlueTGGroupB47699CD" + } + } + ], + "NetworkConfiguration": { + "AwsvpcConfiguration": { + "AssignPublicIp": "DISABLED", + "SecurityGroups": [ + { + "Fn::GetAtt": [ + "FargateServiceSecurityGroup0A0E79CB", + "GroupId" + ] + } + ], + "Subnets": [ + { + "Ref": "VPCPrivateSubnet1Subnet8BCA10E0" + }, + { + "Ref": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + ] + } + }, + "TaskDefinition": "awscdkcodedeployecsdeploymentTaskDef1F26DB5D" + }, + "DependsOn": [ + "GreenTG71A27F2F", + "ServiceLBProdListenerBlueTGGroupB47699CD", + "ServiceLBProdListener0E7627EE", + "ServiceLBTestListener3EA49939", + "TaskDef54694570", + "TaskDefTaskRole1EDB4A67" + ] + }, + "FargateServiceSecurityGroup0A0E79CB": { + "Type": "AWS::EC2::SecurityGroup", + "Properties": { + "GroupDescription": "aws-cdk-codedeploy-ecs-deployment/FargateService/SecurityGroup", + "SecurityGroupEgress": [ + { + "CidrIp": "0.0.0.0/0", + "Description": "Allow all outbound traffic by default", + "IpProtocol": "-1" + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + }, + "DependsOn": [ + "GreenTG71A27F2F", + "ServiceLBTestListener3EA49939", + "TaskDef54694570", + "TaskDefTaskRole1EDB4A67" + ] + }, + "FargateServiceSecurityGroupfromawscdkcodedeployecsdeploymentServiceLBSecurityGroup2743D26B80924AA2B4": { + "Type": "AWS::EC2::SecurityGroupIngress", + "Properties": { + "IpProtocol": "tcp", + "Description": "Load balancer to target", + "FromPort": 80, + "GroupId": { + "Fn::GetAtt": [ + "FargateServiceSecurityGroup0A0E79CB", + "GroupId" + ] + }, + "SourceSecurityGroupId": { + "Fn::GetAtt": [ + "ServiceLBSecurityGroup2EA7EDA1", + "GroupId" + ] + }, + "ToPort": 80 + }, + "DependsOn": [ + "GreenTG71A27F2F", + "ServiceLBTestListener3EA49939", + "TaskDef54694570", + "TaskDefTaskRole1EDB4A67" + ] + }, + "ServiceLBBDAD0B9B": { + "Type": "AWS::ElasticLoadBalancingV2::LoadBalancer", + "Properties": { + "LoadBalancerAttributes": [ + { + "Key": "deletion_protection.enabled", + "Value": "false" + } + ], + "Scheme": "internal", + "SecurityGroups": [ + { + "Fn::GetAtt": [ + "ServiceLBSecurityGroup2EA7EDA1", + "GroupId" + ] + } + ], + "Subnets": [ + { + "Ref": "VPCPrivateSubnet1Subnet8BCA10E0" + }, + { + "Ref": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + ], + "Type": "application" + } + }, + "ServiceLBSecurityGroup2EA7EDA1": { + "Type": "AWS::EC2::SecurityGroup", + "Properties": { + "GroupDescription": "Automatically created Security Group for ELB awscdkcodedeployecsdeploymentServiceLB8F9317EC", + "SecurityGroupIngress": [ + { + "CidrIp": "0.0.0.0/0", + "Description": "Allow from anyone on port 80", + "FromPort": 80, + "IpProtocol": "tcp", + "ToPort": 80 + }, + { + "CidrIp": "0.0.0.0/0", + "Description": "Allow from anyone on port 9002", + "FromPort": 9002, + "IpProtocol": "tcp", + "ToPort": 9002 + } + ], + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "ServiceLBSecurityGrouptoawscdkcodedeployecsdeploymentFargateServiceSecurityGroupF90DCF8D8040F23657": { + "Type": "AWS::EC2::SecurityGroupEgress", + "Properties": { + "GroupId": { + "Fn::GetAtt": [ + "ServiceLBSecurityGroup2EA7EDA1", + "GroupId" + ] + }, + "IpProtocol": "tcp", + "Description": "Load balancer to target", + "DestinationSecurityGroupId": { + "Fn::GetAtt": [ + "FargateServiceSecurityGroup0A0E79CB", + "GroupId" + ] + }, + "FromPort": 80, + "ToPort": 80 + } + }, + "ServiceLBProdListener0E7627EE": { + "Type": "AWS::ElasticLoadBalancingV2::Listener", + "Properties": { + "DefaultActions": [ + { + "TargetGroupArn": { + "Ref": "ServiceLBProdListenerBlueTGGroupB47699CD" + }, + "Type": "forward" + } + ], + "LoadBalancerArn": { + "Ref": "ServiceLBBDAD0B9B" + }, + "Port": 80, + "Protocol": "HTTP" + }, + "DependsOn": [ + "GreenTG71A27F2F" + ] + }, + "ServiceLBProdListenerBlueTGGroupB47699CD": { + "Type": "AWS::ElasticLoadBalancingV2::TargetGroup", + "Properties": { + "HealthCheckIntervalSeconds": 5, + "HealthCheckTimeoutSeconds": 4, + "HealthyThresholdCount": 2, + "Matcher": { + "HttpCode": "200" + }, + "Port": 80, + "Protocol": "HTTP", + "TargetGroupAttributes": [ + { + "Key": "deregistration_delay.timeout_seconds", + "Value": "30" + }, + { + "Key": "stickiness.enabled", + "Value": "false" + } + ], + "TargetType": "ip", + "UnhealthyThresholdCount": 3, + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + }, + "DependsOn": [ + "GreenTG71A27F2F" + ] + }, + "ServiceLBTestListener3EA49939": { + "Type": "AWS::ElasticLoadBalancingV2::Listener", + "Properties": { + "DefaultActions": [ + { + "TargetGroupArn": { + "Ref": "GreenTG71A27F2F" + }, + "Type": "forward" + } + ], + "LoadBalancerArn": { + "Ref": "ServiceLBBDAD0B9B" + }, + "Port": 9002, + "Protocol": "HTTP" + }, + "DependsOn": [ + "ServiceLBProdListenerBlueTGGroupB47699CD" + ] + }, + "GreenTG71A27F2F": { + "Type": "AWS::ElasticLoadBalancingV2::TargetGroup", + "Properties": { + "HealthCheckIntervalSeconds": 5, + "HealthCheckTimeoutSeconds": 4, + "HealthyThresholdCount": 2, + "Matcher": { + "HttpCode": "200" + }, + "Port": 80, + "Protocol": "HTTP", + "TargetGroupAttributes": [ + { + "Key": "deregistration_delay.timeout_seconds", + "Value": "30" + }, + { + "Key": "stickiness.enabled", + "Value": "false" + } + ], + "TargetType": "ip", + "UnhealthyThresholdCount": 3, + "VpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "BlueUnhealthyHosts48919A97": { + "Type": "AWS::CloudWatch::Alarm", + "Properties": { + "ComparisonOperator": "GreaterThanOrEqualToThreshold", + "EvaluationPeriods": 2, + "AlarmName": "aws-cdk-codedeploy-ecs-deployment-Unhealthy-Hosts-Blue", + "Dimensions": [ + { + "Name": "LoadBalancer", + "Value": { + "Fn::Join": [ + "", + [ + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBProdListener0E7627EE" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 2, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBProdListener0E7627EE" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBProdListener0E7627EE" + } + ] + } + ] + } + ] + ] + } + }, + { + "Name": "TargetGroup", + "Value": { + "Fn::GetAtt": [ + "ServiceLBProdListenerBlueTGGroupB47699CD", + "TargetGroupFullName" + ] + } + } + ], + "MetricName": "UnHealthyHostCount", + "Namespace": "AWS/ApplicationELB", + "Period": 300, + "Statistic": "Average", + "Threshold": 1 + } + }, + "Blue5xx7E9798A6": { + "Type": "AWS::CloudWatch::Alarm", + "Properties": { + "ComparisonOperator": "GreaterThanOrEqualToThreshold", + "EvaluationPeriods": 1, + "AlarmName": "aws-cdk-codedeploy-ecs-deployment-Http-500-Blue", + "Dimensions": [ + { + "Name": "LoadBalancer", + "Value": { + "Fn::Join": [ + "", + [ + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBProdListener0E7627EE" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 2, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBProdListener0E7627EE" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBProdListener0E7627EE" + } + ] + } + ] + } + ] + ] + } + }, + { + "Name": "TargetGroup", + "Value": { + "Fn::GetAtt": [ + "ServiceLBProdListenerBlueTGGroupB47699CD", + "TargetGroupFullName" + ] + } + } + ], + "MetricName": "HTTPCode_Target_5XX_Count", + "Namespace": "AWS/ApplicationELB", + "Period": 60, + "Statistic": "Sum", + "Threshold": 1 + } + }, + "GreenUnhealthyHosts8D9D09C1": { + "Type": "AWS::CloudWatch::Alarm", + "Properties": { + "ComparisonOperator": "GreaterThanOrEqualToThreshold", + "EvaluationPeriods": 2, + "AlarmName": "aws-cdk-codedeploy-ecs-deployment-Unhealthy-Hosts-Green", + "Dimensions": [ + { + "Name": "LoadBalancer", + "Value": { + "Fn::Join": [ + "", + [ + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBTestListener3EA49939" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 2, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBTestListener3EA49939" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBTestListener3EA49939" + } + ] + } + ] + } + ] + ] + } + }, + { + "Name": "TargetGroup", + "Value": { + "Fn::GetAtt": [ + "GreenTG71A27F2F", + "TargetGroupFullName" + ] + } + } + ], + "MetricName": "UnHealthyHostCount", + "Namespace": "AWS/ApplicationELB", + "Period": 300, + "Statistic": "Average", + "Threshold": 1 + } + }, + "Green5xx1A511A06": { + "Type": "AWS::CloudWatch::Alarm", + "Properties": { + "ComparisonOperator": "GreaterThanOrEqualToThreshold", + "EvaluationPeriods": 1, + "AlarmName": "aws-cdk-codedeploy-ecs-deployment-Http-500-Green", + "Dimensions": [ + { + "Name": "LoadBalancer", + "Value": { + "Fn::Join": [ + "", + [ + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBTestListener3EA49939" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 2, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBTestListener3EA49939" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBTestListener3EA49939" + } + ] + } + ] + } + ] + ] + } + }, + { + "Name": "TargetGroup", + "Value": { + "Fn::GetAtt": [ + "GreenTG71A27F2F", + "TargetGroupFullName" + ] + } + } + ], + "MetricName": "HTTPCode_Target_5XX_Count", + "Namespace": "AWS/ApplicationELB", + "Period": 60, + "Statistic": "Sum", + "Threshold": 1 + } + }, + "CanaryConfig039778DD": { + "Type": "AWS::CodeDeploy::DeploymentConfig", + "Properties": { + "ComputePlatform": "ECS", + "TrafficRoutingConfig": { + "TimeBasedCanary": { + "CanaryInterval": 1, + "CanaryPercentage": 20 + }, + "Type": "TimeBasedCanary" + } + } + }, + "AppF1B96344": { + "Type": "AWS::CodeDeploy::Application", + "Properties": { + "ApplicationName": "MyApp", + "ComputePlatform": "ECS" + } + }, + "DGServiceRoleD0230320": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": { + "Fn::FindInMap": [ + "ServiceprincipalMap", + { + "Ref": "AWS::Region" + }, + "codedeploy" + ] + } + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/AWSCodeDeployRoleForECS" + ] + ] + } + ] + }, + "DependsOn": [ + "CanaryConfig039778DD" + ] + }, + "DGEC40E9EF": { + "Type": "AWS::CodeDeploy::DeploymentGroup", + "Properties": { + "ApplicationName": { + "Ref": "AppF1B96344" + }, + "ServiceRoleArn": { + "Fn::GetAtt": [ + "DGServiceRoleD0230320", + "Arn" + ] + }, + "AlarmConfiguration": { + "Alarms": [ + { + "Name": { + "Ref": "BlueUnhealthyHosts48919A97" + } + }, + { + "Name": { + "Ref": "Blue5xx7E9798A6" + } + }, + { + "Name": { + "Ref": "GreenUnhealthyHosts8D9D09C1" + } + }, + { + "Name": { + "Ref": "Green5xx1A511A06" + } + } + ], + "Enabled": true + }, + "AutoRollbackConfiguration": { + "Enabled": true, + "Events": [ + "DEPLOYMENT_FAILURE", + "DEPLOYMENT_STOP_ON_REQUEST", + "DEPLOYMENT_STOP_ON_ALARM" + ] + }, + "BlueGreenDeploymentConfiguration": { + "DeploymentReadyOption": { + "ActionOnTimeout": "CONTINUE_DEPLOYMENT", + "WaitTimeInMinutes": 0 + }, + "TerminateBlueInstancesOnDeploymentSuccess": { + "Action": "TERMINATE", + "TerminationWaitTimeInMinutes": 1 + } + }, + "DeploymentConfigName": { + "Ref": "CanaryConfig039778DD" + }, + "DeploymentGroupName": "MyDG", + "DeploymentStyle": { + "DeploymentOption": "WITH_TRAFFIC_CONTROL", + "DeploymentType": "BLUE_GREEN" + }, + "ECSServices": [ + { + "ClusterName": { + "Ref": "EcsCluster97242B84" + }, + "ServiceName": { + "Fn::GetAtt": [ + "FargateServiceAC2B3B85", + "Name" + ] + } + } + ], + "LoadBalancerInfo": { + "TargetGroupPairInfoList": [ + { + "ProdTrafficRoute": { + "ListenerArns": [ + { + "Ref": "ServiceLBProdListener0E7627EE" + } + ] + }, + "TargetGroups": [ + { + "Name": { + "Fn::GetAtt": [ + "ServiceLBProdListenerBlueTGGroupB47699CD", + "TargetGroupName" + ] + } + }, + { + "Name": { + "Fn::GetAtt": [ + "GreenTG71A27F2F", + "TargetGroupName" + ] + } + } + ], + "TestTrafficRoute": { + "ListenerArns": [ + { + "Ref": "ServiceLBTestListener3EA49939" + } + ] + } + } + ] + } + }, + "DependsOn": [ + "CanaryConfig039778DD" + ] + }, + "DGDeploymentDeploymentProviderOnEventLambdaServiceRole60156287": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + }, + "DependsOn": [ + "CanaryConfig039778DD" + ] + }, + "DGDeploymentDeploymentProviderOnEventLambdaServiceRoleDefaultPolicyEF38149C": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "codedeploy:GetApplicationRevision", + "codedeploy:RegisterApplicationRevision" + ], + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":codedeploy:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":application:", + { + "Ref": "AppF1B96344" + } + ] + ] + } + }, + { + "Action": [ + "codedeploy:CreateDeployment", + "codedeploy:GetDeployment", + "codedeploy:StopDeployment" + ], + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":codedeploy:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":deploymentgroup:", + { + "Ref": "AppF1B96344" + }, + "/", + { + "Ref": "DGEC40E9EF" + } + ] + ] + } + }, + { + "Action": "codedeploy:GetDeploymentConfig", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":codedeploy:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":deploymentconfig:", + { + "Ref": "CanaryConfig039778DD" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DGDeploymentDeploymentProviderOnEventLambdaServiceRoleDefaultPolicyEF38149C", + "Roles": [ + { + "Ref": "DGDeploymentDeploymentProviderOnEventLambdaServiceRole60156287" + } + ] + }, + "DependsOn": [ + "CanaryConfig039778DD" + ] + }, + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "1441a653914635996087caa4fac8e0e31589bf1601556f25eef99b2411745ba7.zip" + }, + "Role": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaServiceRole60156287", + "Arn" + ] + }, + "Environment": { + "Variables": { + "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1" + } + }, + "FunctionName": { + "Fn::Join": [ + "", + [ + "EcsDeploymentProvider-", + { + "Ref": "AppF1B96344" + }, + "-", + { + "Ref": "DGEC40E9EF" + }, + "-onEvent" + ] + ] + }, + "Handler": "index.handler", + "Runtime": "nodejs16.x", + "Timeout": 60 + }, + "DependsOn": [ + "CanaryConfig039778DD", + "DGDeploymentDeploymentProviderOnEventLambdaServiceRoleDefaultPolicyEF38149C", + "DGDeploymentDeploymentProviderOnEventLambdaServiceRole60156287" + ] + }, + "DGDeploymentDeploymentProviderIsCompleteLambdaServiceRole1AC61641": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + }, + "DependsOn": [ + "CanaryConfig039778DD" + ] + }, + "DGDeploymentDeploymentProviderIsCompleteLambdaServiceRoleDefaultPolicyA5163F46": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "codedeploy:GetDeployment", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":codedeploy:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":deploymentgroup:", + { + "Ref": "AppF1B96344" + }, + "/", + { + "Ref": "DGEC40E9EF" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DGDeploymentDeploymentProviderIsCompleteLambdaServiceRoleDefaultPolicyA5163F46", + "Roles": [ + { + "Ref": "DGDeploymentDeploymentProviderIsCompleteLambdaServiceRole1AC61641" + } + ] + }, + "DependsOn": [ + "CanaryConfig039778DD" + ] + }, + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "6ac1448e726779b45302ae5560690a6ce8925b2bcd7f3da633ee6abc605b5bac.zip" + }, + "Role": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambdaServiceRole1AC61641", + "Arn" + ] + }, + "Environment": { + "Variables": { + "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1" + } + }, + "FunctionName": { + "Fn::Join": [ + "", + [ + "EcsDeploymentProvider-", + { + "Ref": "AppF1B96344" + }, + "-", + { + "Ref": "DGEC40E9EF" + }, + "-isComplete" + ] + ] + }, + "Handler": "index.handler", + "Runtime": "nodejs16.x", + "Timeout": 60 + }, + "DependsOn": [ + "CanaryConfig039778DD", + "DGDeploymentDeploymentProviderIsCompleteLambdaServiceRoleDefaultPolicyA5163F46", + "DGDeploymentDeploymentProviderIsCompleteLambdaServiceRole1AC61641" + ] + }, + "DGDeploymentDeploymentProviderframeworkonEventServiceRoleC4DB5791": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + }, + "DependsOn": [ + "CanaryConfig039778DD" + ] + }, + "DGDeploymentDeploymentProviderframeworkonEventServiceRoleDefaultPolicy1B65235C": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + }, + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + }, + ":*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + ":*" + ] + ] + } + ] + }, + { + "Action": "states:StartExecution", + "Effect": "Allow", + "Resource": { + "Ref": "DGDeploymentDeploymentProviderwaiterstatemachine566875DD" + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DGDeploymentDeploymentProviderframeworkonEventServiceRoleDefaultPolicy1B65235C", + "Roles": [ + { + "Ref": "DGDeploymentDeploymentProviderframeworkonEventServiceRoleC4DB5791" + } + ] + }, + "DependsOn": [ + "CanaryConfig039778DD" + ] + }, + "DGDeploymentDeploymentProviderframeworkonEvent3D5E95D0": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671.zip" + }, + "Role": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkonEventServiceRoleC4DB5791", + "Arn" + ] + }, + "Description": "AWS CDK resource provider framework - onEvent (aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider)", + "Environment": { + "Variables": { + "USER_ON_EVENT_FUNCTION_ARN": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + "USER_IS_COMPLETE_FUNCTION_ARN": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + }, + "WAITER_STATE_MACHINE_ARN": { + "Ref": "DGDeploymentDeploymentProviderwaiterstatemachine566875DD" + } + } + }, + "FunctionName": { + "Fn::Join": [ + "", + [ + "EcsDeploymentProvider-", + { + "Ref": "AppF1B96344" + }, + "-", + { + "Ref": "DGEC40E9EF" + }, + "-provider" + ] + ] + }, + "Handler": "framework.onEvent", + "Runtime": "nodejs14.x", + "Timeout": 900 + }, + "DependsOn": [ + "CanaryConfig039778DD", + "DGDeploymentDeploymentProviderframeworkonEventServiceRoleDefaultPolicy1B65235C", + "DGDeploymentDeploymentProviderframeworkonEventServiceRoleC4DB5791" + ] + }, + "DGDeploymentDeploymentProviderframeworkisCompleteServiceRole06E09942": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + }, + "DependsOn": [ + "CanaryConfig039778DD" + ] + }, + "DGDeploymentDeploymentProviderframeworkisCompleteServiceRoleDefaultPolicy03E372CD": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + }, + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + }, + ":*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DGDeploymentDeploymentProviderframeworkisCompleteServiceRoleDefaultPolicy03E372CD", + "Roles": [ + { + "Ref": "DGDeploymentDeploymentProviderframeworkisCompleteServiceRole06E09942" + } + ] + }, + "DependsOn": [ + "CanaryConfig039778DD" + ] + }, + "DGDeploymentDeploymentProviderframeworkisCompleteB0CC33B1": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671.zip" + }, + "Role": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkisCompleteServiceRole06E09942", + "Arn" + ] + }, + "Description": "AWS CDK resource provider framework - isComplete (aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider)", + "Environment": { + "Variables": { + "USER_ON_EVENT_FUNCTION_ARN": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + "USER_IS_COMPLETE_FUNCTION_ARN": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + } + } + }, + "Handler": "framework.isComplete", + "Runtime": "nodejs14.x", + "Timeout": 900 + }, + "DependsOn": [ + "CanaryConfig039778DD", + "DGDeploymentDeploymentProviderframeworkisCompleteServiceRoleDefaultPolicy03E372CD", + "DGDeploymentDeploymentProviderframeworkisCompleteServiceRole06E09942" + ] + }, + "DGDeploymentDeploymentProviderframeworkonTimeoutServiceRole2B298F04": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + }, + "DependsOn": [ + "CanaryConfig039778DD" + ] + }, + "DGDeploymentDeploymentProviderframeworkonTimeoutServiceRoleDefaultPolicy0229C11D": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + }, + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + }, + ":*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DGDeploymentDeploymentProviderframeworkonTimeoutServiceRoleDefaultPolicy0229C11D", + "Roles": [ + { + "Ref": "DGDeploymentDeploymentProviderframeworkonTimeoutServiceRole2B298F04" + } + ] + }, + "DependsOn": [ + "CanaryConfig039778DD" + ] + }, + "DGDeploymentDeploymentProviderframeworkonTimeout1C8F1544": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671.zip" + }, + "Role": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkonTimeoutServiceRole2B298F04", + "Arn" + ] + }, + "Description": "AWS CDK resource provider framework - onTimeout (aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider)", + "Environment": { + "Variables": { + "USER_ON_EVENT_FUNCTION_ARN": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + "USER_IS_COMPLETE_FUNCTION_ARN": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + } + } + }, + "Handler": "framework.onTimeout", + "Runtime": "nodejs14.x", + "Timeout": 900 + }, + "DependsOn": [ + "CanaryConfig039778DD", + "DGDeploymentDeploymentProviderframeworkonTimeoutServiceRoleDefaultPolicy0229C11D", + "DGDeploymentDeploymentProviderframeworkonTimeoutServiceRole2B298F04" + ] + }, + "DGDeploymentDeploymentProviderwaiterstatemachineRole56202F5B": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": { + "Fn::FindInMap": [ + "ServiceprincipalMap", + { + "Ref": "AWS::Region" + }, + "states" + ] + } + } + } + ], + "Version": "2012-10-17" + } + }, + "DependsOn": [ + "CanaryConfig039778DD" + ] + }, + "DGDeploymentDeploymentProviderwaiterstatemachineRoleDefaultPolicyDA934EB5": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkisCompleteB0CC33B1", + "Arn" + ] + }, + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkonTimeout1C8F1544", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkisCompleteB0CC33B1", + "Arn" + ] + }, + ":*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkonTimeout1C8F1544", + "Arn" + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DGDeploymentDeploymentProviderwaiterstatemachineRoleDefaultPolicyDA934EB5", + "Roles": [ + { + "Ref": "DGDeploymentDeploymentProviderwaiterstatemachineRole56202F5B" + } + ] + }, + "DependsOn": [ + "CanaryConfig039778DD" + ] + }, + "DGDeploymentDeploymentProviderwaiterstatemachine566875DD": { + "Type": "AWS::StepFunctions::StateMachine", + "Properties": { + "DefinitionString": { + "Fn::Join": [ + "", + [ + "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":15,\"MaxAttempts\":240,\"BackoffRate\":1}],\"Catch\":[{\"ErrorEquals\":[\"States.ALL\"],\"Next\":\"framework-onTimeout-task\"}],\"Type\":\"Task\",\"Resource\":\"", + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkisCompleteB0CC33B1", + "Arn" + ] + }, + "\"},\"framework-onTimeout-task\":{\"End\":true,\"Type\":\"Task\",\"Resource\":\"", + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkonTimeout1C8F1544", + "Arn" + ] + }, + "\"}}}" + ] + ] + }, + "RoleArn": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderwaiterstatemachineRole56202F5B", + "Arn" + ] + } + }, + "DependsOn": [ + "CanaryConfig039778DD", + "DGDeploymentDeploymentProviderwaiterstatemachineRoleDefaultPolicyDA934EB5", + "DGDeploymentDeploymentProviderwaiterstatemachineRole56202F5B" + ] + }, + "DGDeploymentDeploymentResource6D225FF6": { + "Type": "Custom::EcsDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkonEvent3D5E95D0", + "Arn" + ] + }, + "applicationName": { + "Ref": "AppF1B96344" + }, + "deploymentConfigName": { + "Ref": "CanaryConfig039778DD" + }, + "deploymentGroupName": { + "Ref": "DGEC40E9EF" + }, + "autoRollbackConfigurationEnabled": "true", + "autoRollbackConfigurationEvents": "DEPLOYMENT_STOP_ON_REQUEST", + "description": "test deployment", + "revisionAppSpecContent": { + "Fn::Join": [ + "", + [ + "{\"version\":\"0.0\",\"Resources\":[{\"TargetService\":{\"Type\":\"AWS::ECS::Service\",\"Properties\":{\"TaskDefinition\":\"", + { + "Ref": "TaskDef54694570" + }, + "\",\"LoadBalancerInfo\":{\"ContainerName\":\"Container\",\"ContainerPort\":80}}}}]}" + ] + ] + } + }, + "DependsOn": [ + "CanaryConfig039778DD" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + } + }, + "Outputs": { + "Subnet1Id": { + "Value": { + "Ref": "VPCPrivateSubnet1Subnet8BCA10E0" + } + }, + "Subnet2Id": { + "Value": { + "Ref": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + }, + "SecurityGroupId": { + "Value": { + "Fn::GetAtt": [ + "FargateServiceSecurityGroup0A0E79CB", + "GroupId" + ] + } + }, + "CodeDeployApplicationName": { + "Value": { + "Ref": "AppF1B96344" + } + }, + "CodeDeployDeploymentGroupName": { + "Value": { + "Ref": "DGEC40E9EF" + } + }, + "DeploymentId": { + "Value": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentResource6D225FF6", + "deploymentId" + ] + } + } + }, + "Mappings": { + "ServiceprincipalMap": { + "af-south-1": { + "codedeploy": "codedeploy.af-south-1.amazonaws.com", + "states": "states.af-south-1.amazonaws.com" + }, + "ap-east-1": { + "codedeploy": "codedeploy.ap-east-1.amazonaws.com", + "states": "states.ap-east-1.amazonaws.com" + }, + "ap-northeast-1": { + "codedeploy": "codedeploy.ap-northeast-1.amazonaws.com", + "states": "states.ap-northeast-1.amazonaws.com" + }, + "ap-northeast-2": { + "codedeploy": "codedeploy.ap-northeast-2.amazonaws.com", + "states": "states.ap-northeast-2.amazonaws.com" + }, + "ap-northeast-3": { + "codedeploy": "codedeploy.ap-northeast-3.amazonaws.com", + "states": "states.ap-northeast-3.amazonaws.com" + }, + "ap-south-1": { + "codedeploy": "codedeploy.ap-south-1.amazonaws.com", + "states": "states.ap-south-1.amazonaws.com" + }, + "ap-southeast-1": { + "codedeploy": "codedeploy.ap-southeast-1.amazonaws.com", + "states": "states.ap-southeast-1.amazonaws.com" + }, + "ap-southeast-2": { + "codedeploy": "codedeploy.ap-southeast-2.amazonaws.com", + "states": "states.ap-southeast-2.amazonaws.com" + }, + "ap-southeast-3": { + "codedeploy": "codedeploy.ap-southeast-3.amazonaws.com", + "states": "states.ap-southeast-3.amazonaws.com" + }, + "ca-central-1": { + "codedeploy": "codedeploy.ca-central-1.amazonaws.com", + "states": "states.ca-central-1.amazonaws.com" + }, + "cn-north-1": { + "codedeploy": "codedeploy.cn-north-1.amazonaws.com.cn", + "states": "states.cn-north-1.amazonaws.com" + }, + "cn-northwest-1": { + "codedeploy": "codedeploy.cn-northwest-1.amazonaws.com.cn", + "states": "states.cn-northwest-1.amazonaws.com" + }, + "eu-central-1": { + "codedeploy": "codedeploy.eu-central-1.amazonaws.com", + "states": "states.eu-central-1.amazonaws.com" + }, + "eu-north-1": { + "codedeploy": "codedeploy.eu-north-1.amazonaws.com", + "states": "states.eu-north-1.amazonaws.com" + }, + "eu-south-1": { + "codedeploy": "codedeploy.eu-south-1.amazonaws.com", + "states": "states.eu-south-1.amazonaws.com" + }, + "eu-south-2": { + "codedeploy": "codedeploy.eu-south-2.amazonaws.com", + "states": "states.eu-south-2.amazonaws.com" + }, + "eu-west-1": { + "codedeploy": "codedeploy.eu-west-1.amazonaws.com", + "states": "states.eu-west-1.amazonaws.com" + }, + "eu-west-2": { + "codedeploy": "codedeploy.eu-west-2.amazonaws.com", + "states": "states.eu-west-2.amazonaws.com" + }, + "eu-west-3": { + "codedeploy": "codedeploy.eu-west-3.amazonaws.com", + "states": "states.eu-west-3.amazonaws.com" + }, + "me-south-1": { + "codedeploy": "codedeploy.me-south-1.amazonaws.com", + "states": "states.me-south-1.amazonaws.com" + }, + "sa-east-1": { + "codedeploy": "codedeploy.sa-east-1.amazonaws.com", + "states": "states.sa-east-1.amazonaws.com" + }, + "us-east-1": { + "codedeploy": "codedeploy.us-east-1.amazonaws.com", + "states": "states.us-east-1.amazonaws.com" + }, + "us-east-2": { + "codedeploy": "codedeploy.us-east-2.amazonaws.com", + "states": "states.us-east-2.amazonaws.com" + }, + "us-gov-east-1": { + "codedeploy": "codedeploy.us-gov-east-1.amazonaws.com", + "states": "states.us-gov-east-1.amazonaws.com" + }, + "us-gov-west-1": { + "codedeploy": "codedeploy.us-gov-west-1.amazonaws.com", + "states": "states.us-gov-west-1.amazonaws.com" + }, + "us-iso-east-1": { + "codedeploy": "codedeploy.amazonaws.com", + "states": "states.amazonaws.com" + }, + "us-iso-west-1": { + "codedeploy": "codedeploy.amazonaws.com", + "states": "states.amazonaws.com" + }, + "us-isob-east-1": { + "codedeploy": "codedeploy.amazonaws.com", + "states": "states.amazonaws.com" + }, + "us-west-1": { + "codedeploy": "codedeploy.us-west-1.amazonaws.com", + "states": "states.us-west-1.amazonaws.com" + }, + "us-west-2": { + "codedeploy": "codedeploy.us-west-2.amazonaws.com", + "states": "states.us-west-2.amazonaws.com" + } + } + }, + "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/aws-codedeploy/test/ecs/deployment.integ.snapshot/cdk.out b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/cdk.out new file mode 100644 index 0000000000000..8ecc185e9dbee --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/cdk.out @@ -0,0 +1 @@ +{"version":"21.0.0"} \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/integ.json b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/integ.json new file mode 100644 index 0000000000000..0a4cb8d17d054 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/integ.json @@ -0,0 +1,12 @@ +{ + "version": "21.0.0", + "testCases": { + "EcsDeploymentGroupTest/DefaultTest": { + "stacks": [ + "aws-cdk-codedeploy-ecs-deployment" + ], + "assertionStack": "EcsDeploymentGroupTest/DefaultTest/DeployAssert", + "assertionStackName": "EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/manifest.json b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/manifest.json new file mode 100644 index 0000000000000..6740f82cfb1ee --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/manifest.json @@ -0,0 +1,525 @@ +{ + "version": "21.0.0", + "artifacts": { + "Tree": { + "type": "cdk:tree", + "properties": { + "file": "tree.json" + } + }, + "aws-cdk-codedeploy-ecs-deployment.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "aws-cdk-codedeploy-ecs-deployment.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "aws-cdk-codedeploy-ecs-deployment": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "aws-cdk-codedeploy-ecs-deployment.template.json", + "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}/af72837e99663889115717a30c8744292a1d1bf17f9956fe827277105287fc7b.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "aws-cdk-codedeploy-ecs-deployment.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-codedeploy-ecs-deployment.assets" + ], + "metadata": { + "/aws-cdk-codedeploy-ecs-deployment/VPC/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCB9E5F0B4" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1SubnetB4246D30" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1RouteTableFEE4B781" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1RouteTableAssociation0B0896DC" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1DefaultRoute91CEF279" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1/EIP": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1EIP6AD938E8" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1/NATGateway": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet1NATGatewayE0556630" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2Subnet74179F39" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2RouteTable6F1A15F1" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2RouteTableAssociation5A808732" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2DefaultRouteB7481BBA" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2/EIP": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2EIP4947BC00" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2/NATGateway": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPublicSubnet2NATGateway3C070193" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet1/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1Subnet8BCA10E0" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet1/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1RouteTableBE8A6027" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet1/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1RouteTableAssociation347902D1" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet1/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet1DefaultRouteAE1D6490" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet2/Subnet": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet2/RouteTable": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2RouteTable0A19E10E" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet2/RouteTableAssociation": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2RouteTableAssociation0C73D413" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet2/DefaultRoute": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCPrivateSubnet2DefaultRouteF4F5CFD2" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/IGW": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCIGWB7E252D3" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/VPC/VPCGW": [ + { + "type": "aws:cdk:logicalId", + "data": "VPCVPCGW99B986DC" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/EcsCluster/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "EcsCluster97242B84" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/TaskDef/TaskRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TaskDefTaskRole1EDB4A67" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/TaskDef/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "TaskDef54694570" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/FargateService/Service": [ + { + "type": "aws:cdk:logicalId", + "data": "FargateServiceAC2B3B85" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/FargateService/SecurityGroup/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "FargateServiceSecurityGroup0A0E79CB" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/FargateService/SecurityGroup/from awscdkcodedeployecsdeploymentServiceLBSecurityGroup2743D26B:80": [ + { + "type": "aws:cdk:logicalId", + "data": "FargateServiceSecurityGroupfromawscdkcodedeployecsdeploymentServiceLBSecurityGroup2743D26B80924AA2B4" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/ServiceLB/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "ServiceLBBDAD0B9B" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/ServiceLB/SecurityGroup/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "ServiceLBSecurityGroup2EA7EDA1" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/ServiceLB/SecurityGroup/to awscdkcodedeployecsdeploymentFargateServiceSecurityGroupF90DCF8D:80": [ + { + "type": "aws:cdk:logicalId", + "data": "ServiceLBSecurityGrouptoawscdkcodedeployecsdeploymentFargateServiceSecurityGroupF90DCF8D8040F23657" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/ServiceLB/ProdListener/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "ServiceLBProdListener0E7627EE" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/ServiceLB/ProdListener/BlueTGGroup/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "ServiceLBProdListenerBlueTGGroupB47699CD" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/ServiceLB/TestListener/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "ServiceLBTestListener3EA49939" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/GreenTG/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "GreenTG71A27F2F" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/BlueUnhealthyHosts/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "BlueUnhealthyHosts48919A97" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/Blue5xx/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "Blue5xx7E9798A6" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/GreenUnhealthyHosts/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "GreenUnhealthyHosts8D9D09C1" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/Green5xx/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "Green5xx1A511A06" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/CanaryConfig/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "CanaryConfig039778DD" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/App/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "AppF1B96344" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/ServiceRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGServiceRoleD0230320" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGEC40E9EF" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderOnEventLambda/ServiceRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderOnEventLambdaServiceRole60156287" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderOnEventLambda/ServiceRole/DefaultPolicy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderOnEventLambdaServiceRoleDefaultPolicyEF38149C" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderOnEventLambda/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderIsCompleteLambda/ServiceRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderIsCompleteLambdaServiceRole1AC61641" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderIsCompleteLambda/ServiceRole/DefaultPolicy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderIsCompleteLambdaServiceRoleDefaultPolicyA5163F46" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderIsCompleteLambda/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onEvent/ServiceRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderframeworkonEventServiceRoleC4DB5791" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderframeworkonEventServiceRoleDefaultPolicy1B65235C" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onEvent/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderframeworkonEvent3D5E95D0" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-isComplete/ServiceRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderframeworkisCompleteServiceRole06E09942" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-isComplete/ServiceRole/DefaultPolicy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderframeworkisCompleteServiceRoleDefaultPolicy03E372CD" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-isComplete/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderframeworkisCompleteB0CC33B1" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onTimeout/ServiceRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderframeworkonTimeoutServiceRole2B298F04" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onTimeout/ServiceRole/DefaultPolicy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderframeworkonTimeoutServiceRoleDefaultPolicy0229C11D" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onTimeout/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderframeworkonTimeout1C8F1544" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/waiter-state-machine/Role/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderwaiterstatemachineRole56202F5B" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/waiter-state-machine/Role/DefaultPolicy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderwaiterstatemachineRoleDefaultPolicyDA934EB5" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/waiter-state-machine/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentProviderwaiterstatemachine566875DD" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentResource/Default": [ + { + "type": "aws:cdk:logicalId", + "data": "DGDeploymentDeploymentResource6D225FF6" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/Subnet1Id": [ + { + "type": "aws:cdk:logicalId", + "data": "Subnet1Id" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/Subnet2Id": [ + { + "type": "aws:cdk:logicalId", + "data": "Subnet2Id" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/SecurityGroupId": [ + { + "type": "aws:cdk:logicalId", + "data": "SecurityGroupId" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/CodeDeployApplicationName": [ + { + "type": "aws:cdk:logicalId", + "data": "CodeDeployApplicationName" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/CodeDeployDeploymentGroupName": [ + { + "type": "aws:cdk:logicalId", + "data": "CodeDeployDeploymentGroupName" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/DeploymentId": [ + { + "type": "aws:cdk:logicalId", + "data": "DeploymentId" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/Service-principalMap": [ + { + "type": "aws:cdk:logicalId", + "data": "ServiceprincipalMap" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/aws-cdk-codedeploy-ecs-deployment/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "aws-cdk-codedeploy-ecs-deployment" + }, + "EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0.template.json", + "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": [ + "EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0.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": [ + "EcsDeploymentGroupTestDefaultTestDeployAssert60AABFA0.assets" + ], + "metadata": { + "/EcsDeploymentGroupTest/DefaultTest/DeployAssert/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/EcsDeploymentGroupTest/DefaultTest/DeployAssert/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "EcsDeploymentGroupTest/DefaultTest/DeployAssert" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/tree.json b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/tree.json new file mode 100644 index 0000000000000..1b31f0a8f4381 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.integ.snapshot/tree.json @@ -0,0 +1,3206 @@ +{ + "version": "tree-0.1", + "tree": { + "id": "App", + "path": "", + "children": { + "Tree": { + "id": "Tree", + "path": "Tree", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.1.95" + } + }, + "aws-cdk-codedeploy-ecs-deployment": { + "id": "aws-cdk-codedeploy-ecs-deployment", + "path": "aws-cdk-codedeploy-ecs-deployment", + "children": { + "VPC": { + "id": "VPC", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/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-codedeploy-ecs-deployment/VPC" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnVPC", + "version": "0.0.0" + } + }, + "PublicSubnet1": { + "id": "PublicSubnet1", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "vpcId": { + "Ref": "VPCB9E5F0B4" + }, + "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-codedeploy-ecs-deployment/VPC/PublicSubnet1" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "version": "0.0.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1/Acl", + "constructInfo": { + "fqn": "@aws-cdk/core.Resource", + "version": "0.0.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "vpcId": { + "Ref": "VPCB9E5F0B4" + }, + "tags": [ + { + "key": "Name", + "value": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "version": "0.0.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-codedeploy-ecs-deployment/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/aws-ec2.CfnSubnetRouteTableAssociation", + "version": "0.0.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "VPCPublicSubnet1RouteTableFEE4B781" + }, + "destinationCidrBlock": "0.0.0.0/0", + "gatewayId": { + "Ref": "VPCIGWB7E252D3" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "version": "0.0.0" + } + }, + "EIP": { + "id": "EIP", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1/EIP", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::EIP", + "aws:cdk:cloudformation:props": { + "domain": "vpc", + "tags": [ + { + "key": "Name", + "value": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnEIP", + "version": "0.0.0" + } + }, + "NATGateway": { + "id": "NATGateway", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1/NATGateway", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", + "aws:cdk:cloudformation:props": { + "subnetId": { + "Ref": "VPCPublicSubnet1SubnetB4246D30" + }, + "allocationId": { + "Fn::GetAtt": [ + "VPCPublicSubnet1EIP6AD938E8", + "AllocationId" + ] + }, + "tags": [ + { + "key": "Name", + "value": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet1" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnNatGateway", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.PublicSubnet", + "version": "0.0.0" + } + }, + "PublicSubnet2": { + "id": "PublicSubnet2", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "vpcId": { + "Ref": "VPCB9E5F0B4" + }, + "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-codedeploy-ecs-deployment/VPC/PublicSubnet2" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "version": "0.0.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2/Acl", + "constructInfo": { + "fqn": "@aws-cdk/core.Resource", + "version": "0.0.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "vpcId": { + "Ref": "VPCB9E5F0B4" + }, + "tags": [ + { + "key": "Name", + "value": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "version": "0.0.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-codedeploy-ecs-deployment/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/aws-ec2.CfnSubnetRouteTableAssociation", + "version": "0.0.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "VPCPublicSubnet2RouteTable6F1A15F1" + }, + "destinationCidrBlock": "0.0.0.0/0", + "gatewayId": { + "Ref": "VPCIGWB7E252D3" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "version": "0.0.0" + } + }, + "EIP": { + "id": "EIP", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2/EIP", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::EIP", + "aws:cdk:cloudformation:props": { + "domain": "vpc", + "tags": [ + { + "key": "Name", + "value": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnEIP", + "version": "0.0.0" + } + }, + "NATGateway": { + "id": "NATGateway", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2/NATGateway", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::NatGateway", + "aws:cdk:cloudformation:props": { + "subnetId": { + "Ref": "VPCPublicSubnet2Subnet74179F39" + }, + "allocationId": { + "Fn::GetAtt": [ + "VPCPublicSubnet2EIP4947BC00", + "AllocationId" + ] + }, + "tags": [ + { + "key": "Name", + "value": "aws-cdk-codedeploy-ecs-deployment/VPC/PublicSubnet2" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnNatGateway", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.PublicSubnet", + "version": "0.0.0" + } + }, + "PrivateSubnet1": { + "id": "PrivateSubnet1", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet1", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet1/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "vpcId": { + "Ref": "VPCB9E5F0B4" + }, + "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-codedeploy-ecs-deployment/VPC/PrivateSubnet1" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "version": "0.0.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet1/Acl", + "constructInfo": { + "fqn": "@aws-cdk/core.Resource", + "version": "0.0.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet1/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "vpcId": { + "Ref": "VPCB9E5F0B4" + }, + "tags": [ + { + "key": "Name", + "value": "aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet1" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "version": "0.0.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-codedeploy-ecs-deployment/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/aws-ec2.CfnSubnetRouteTableAssociation", + "version": "0.0.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet1/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "VPCPrivateSubnet1RouteTableBE8A6027" + }, + "destinationCidrBlock": "0.0.0.0/0", + "natGatewayId": { + "Ref": "VPCPublicSubnet1NATGatewayE0556630" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.PrivateSubnet", + "version": "0.0.0" + } + }, + "PrivateSubnet2": { + "id": "PrivateSubnet2", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet2", + "children": { + "Subnet": { + "id": "Subnet", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet2/Subnet", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Subnet", + "aws:cdk:cloudformation:props": { + "vpcId": { + "Ref": "VPCB9E5F0B4" + }, + "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-codedeploy-ecs-deployment/VPC/PrivateSubnet2" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnSubnet", + "version": "0.0.0" + } + }, + "Acl": { + "id": "Acl", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet2/Acl", + "constructInfo": { + "fqn": "@aws-cdk/core.Resource", + "version": "0.0.0" + } + }, + "RouteTable": { + "id": "RouteTable", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet2/RouteTable", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::RouteTable", + "aws:cdk:cloudformation:props": { + "vpcId": { + "Ref": "VPCB9E5F0B4" + }, + "tags": [ + { + "key": "Name", + "value": "aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet2" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnRouteTable", + "version": "0.0.0" + } + }, + "RouteTableAssociation": { + "id": "RouteTableAssociation", + "path": "aws-cdk-codedeploy-ecs-deployment/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/aws-ec2.CfnSubnetRouteTableAssociation", + "version": "0.0.0" + } + }, + "DefaultRoute": { + "id": "DefaultRoute", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/PrivateSubnet2/DefaultRoute", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::Route", + "aws:cdk:cloudformation:props": { + "routeTableId": { + "Ref": "VPCPrivateSubnet2RouteTable0A19E10E" + }, + "destinationCidrBlock": "0.0.0.0/0", + "natGatewayId": { + "Ref": "VPCPublicSubnet2NATGateway3C070193" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnRoute", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.PrivateSubnet", + "version": "0.0.0" + } + }, + "IGW": { + "id": "IGW", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/IGW", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::InternetGateway", + "aws:cdk:cloudformation:props": { + "tags": [ + { + "key": "Name", + "value": "aws-cdk-codedeploy-ecs-deployment/VPC" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnInternetGateway", + "version": "0.0.0" + } + }, + "VPCGW": { + "id": "VPCGW", + "path": "aws-cdk-codedeploy-ecs-deployment/VPC/VPCGW", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::VPCGatewayAttachment", + "aws:cdk:cloudformation:props": { + "vpcId": { + "Ref": "VPCB9E5F0B4" + }, + "internetGatewayId": { + "Ref": "VPCIGWB7E252D3" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnVPCGatewayAttachment", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.Vpc", + "version": "0.0.0" + } + }, + "EcsCluster": { + "id": "EcsCluster", + "path": "aws-cdk-codedeploy-ecs-deployment/EcsCluster", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/EcsCluster/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::ECS::Cluster", + "aws:cdk:cloudformation:props": {} + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ecs.CfnCluster", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ecs.Cluster", + "version": "0.0.0" + } + }, + "TaskDef": { + "id": "TaskDef", + "path": "aws-cdk-codedeploy-ecs-deployment/TaskDef", + "children": { + "TaskRole": { + "id": "TaskRole", + "path": "aws-cdk-codedeploy-ecs-deployment/TaskDef/TaskRole", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/TaskDef/TaskRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "ecs-tasks.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.CfnRole", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.Role", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/TaskDef/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::ECS::TaskDefinition", + "aws:cdk:cloudformation:props": { + "containerDefinitions": [ + { + "essential": true, + "image": "public.ecr.aws/ecs-sample-image/amazon-ecs-sample:latest", + "name": "Container", + "portMappings": [ + { + "containerPort": 80, + "protocol": "tcp" + } + ] + } + ], + "cpu": "256", + "family": "awscdkcodedeployecsdeploymentTaskDef1F26DB5D", + "memory": "512", + "networkMode": "awsvpc", + "requiresCompatibilities": [ + "FARGATE" + ], + "taskRoleArn": { + "Fn::GetAtt": [ + "TaskDefTaskRole1EDB4A67", + "Arn" + ] + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition", + "version": "0.0.0" + } + }, + "Container": { + "id": "Container", + "path": "aws-cdk-codedeploy-ecs-deployment/TaskDef/Container", + "constructInfo": { + "fqn": "@aws-cdk/aws-ecs.ContainerDefinition", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ecs.FargateTaskDefinition", + "version": "0.0.0" + } + }, + "FargateService": { + "id": "FargateService", + "path": "aws-cdk-codedeploy-ecs-deployment/FargateService", + "children": { + "Service": { + "id": "Service", + "path": "aws-cdk-codedeploy-ecs-deployment/FargateService/Service", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::ECS::Service", + "aws:cdk:cloudformation:props": { + "cluster": { + "Ref": "EcsCluster97242B84" + }, + "deploymentConfiguration": { + "maximumPercent": 200, + "minimumHealthyPercent": 50 + }, + "deploymentController": { + "type": "CODE_DEPLOY" + }, + "enableEcsManagedTags": false, + "healthCheckGracePeriodSeconds": 60, + "launchType": "FARGATE", + "loadBalancers": [ + { + "targetGroupArn": { + "Ref": "ServiceLBProdListenerBlueTGGroupB47699CD" + }, + "containerName": "Container", + "containerPort": 80 + } + ], + "networkConfiguration": { + "awsvpcConfiguration": { + "assignPublicIp": "DISABLED", + "subnets": [ + { + "Ref": "VPCPrivateSubnet1Subnet8BCA10E0" + }, + { + "Ref": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + ], + "securityGroups": [ + { + "Fn::GetAtt": [ + "FargateServiceSecurityGroup0A0E79CB", + "GroupId" + ] + } + ] + } + }, + "taskDefinition": "awscdkcodedeployecsdeploymentTaskDef1F26DB5D" + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ecs.CfnService", + "version": "0.0.0" + } + }, + "SecurityGroup": { + "id": "SecurityGroup", + "path": "aws-cdk-codedeploy-ecs-deployment/FargateService/SecurityGroup", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/FargateService/SecurityGroup/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroup", + "aws:cdk:cloudformation:props": { + "groupDescription": "aws-cdk-codedeploy-ecs-deployment/FargateService/SecurityGroup", + "securityGroupEgress": [ + { + "cidrIp": "0.0.0.0/0", + "description": "Allow all outbound traffic by default", + "ipProtocol": "-1" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnSecurityGroup", + "version": "0.0.0" + } + }, + "from awscdkcodedeployecsdeploymentServiceLBSecurityGroup2743D26B:80": { + "id": "from awscdkcodedeployecsdeploymentServiceLBSecurityGroup2743D26B:80", + "path": "aws-cdk-codedeploy-ecs-deployment/FargateService/SecurityGroup/from awscdkcodedeployecsdeploymentServiceLBSecurityGroup2743D26B:80", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroupIngress", + "aws:cdk:cloudformation:props": { + "ipProtocol": "tcp", + "description": "Load balancer to target", + "fromPort": 80, + "groupId": { + "Fn::GetAtt": [ + "FargateServiceSecurityGroup0A0E79CB", + "GroupId" + ] + }, + "sourceSecurityGroupId": { + "Fn::GetAtt": [ + "ServiceLBSecurityGroup2EA7EDA1", + "GroupId" + ] + }, + "toPort": 80 + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnSecurityGroupIngress", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.SecurityGroup", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ecs.FargateService", + "version": "0.0.0" + } + }, + "ServiceLB": { + "id": "ServiceLB", + "path": "aws-cdk-codedeploy-ecs-deployment/ServiceLB", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/ServiceLB/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::ElasticLoadBalancingV2::LoadBalancer", + "aws:cdk:cloudformation:props": { + "loadBalancerAttributes": [ + { + "key": "deletion_protection.enabled", + "value": "false" + } + ], + "scheme": "internal", + "securityGroups": [ + { + "Fn::GetAtt": [ + "ServiceLBSecurityGroup2EA7EDA1", + "GroupId" + ] + } + ], + "subnets": [ + { + "Ref": "VPCPrivateSubnet1Subnet8BCA10E0" + }, + { + "Ref": "VPCPrivateSubnet2SubnetCFCDAA7A" + } + ], + "type": "application" + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-elasticloadbalancingv2.CfnLoadBalancer", + "version": "0.0.0" + } + }, + "SecurityGroup": { + "id": "SecurityGroup", + "path": "aws-cdk-codedeploy-ecs-deployment/ServiceLB/SecurityGroup", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/ServiceLB/SecurityGroup/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroup", + "aws:cdk:cloudformation:props": { + "groupDescription": "Automatically created Security Group for ELB awscdkcodedeployecsdeploymentServiceLB8F9317EC", + "securityGroupIngress": [ + { + "cidrIp": "0.0.0.0/0", + "ipProtocol": "tcp", + "fromPort": 80, + "toPort": 80, + "description": "Allow from anyone on port 80" + }, + { + "cidrIp": "0.0.0.0/0", + "ipProtocol": "tcp", + "fromPort": 9002, + "toPort": 9002, + "description": "Allow from anyone on port 9002" + } + ], + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnSecurityGroup", + "version": "0.0.0" + } + }, + "to awscdkcodedeployecsdeploymentFargateServiceSecurityGroupF90DCF8D:80": { + "id": "to awscdkcodedeployecsdeploymentFargateServiceSecurityGroupF90DCF8D:80", + "path": "aws-cdk-codedeploy-ecs-deployment/ServiceLB/SecurityGroup/to awscdkcodedeployecsdeploymentFargateServiceSecurityGroupF90DCF8D:80", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::EC2::SecurityGroupEgress", + "aws:cdk:cloudformation:props": { + "groupId": { + "Fn::GetAtt": [ + "ServiceLBSecurityGroup2EA7EDA1", + "GroupId" + ] + }, + "ipProtocol": "tcp", + "description": "Load balancer to target", + "destinationSecurityGroupId": { + "Fn::GetAtt": [ + "FargateServiceSecurityGroup0A0E79CB", + "GroupId" + ] + }, + "fromPort": 80, + "toPort": 80 + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.CfnSecurityGroupEgress", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-ec2.SecurityGroup", + "version": "0.0.0" + } + }, + "ProdListener": { + "id": "ProdListener", + "path": "aws-cdk-codedeploy-ecs-deployment/ServiceLB/ProdListener", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/ServiceLB/ProdListener/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::ElasticLoadBalancingV2::Listener", + "aws:cdk:cloudformation:props": { + "defaultActions": [ + { + "type": "forward", + "targetGroupArn": { + "Ref": "ServiceLBProdListenerBlueTGGroupB47699CD" + } + } + ], + "loadBalancerArn": { + "Ref": "ServiceLBBDAD0B9B" + }, + "port": 80, + "protocol": "HTTP" + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-elasticloadbalancingv2.CfnListener", + "version": "0.0.0" + } + }, + "BlueTGGroup": { + "id": "BlueTGGroup", + "path": "aws-cdk-codedeploy-ecs-deployment/ServiceLB/ProdListener/BlueTGGroup", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/ServiceLB/ProdListener/BlueTGGroup/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::ElasticLoadBalancingV2::TargetGroup", + "aws:cdk:cloudformation:props": { + "healthCheckIntervalSeconds": 5, + "healthCheckTimeoutSeconds": 4, + "healthyThresholdCount": 2, + "matcher": { + "httpCode": "200" + }, + "port": 80, + "protocol": "HTTP", + "targetGroupAttributes": [ + { + "key": "deregistration_delay.timeout_seconds", + "value": "30" + }, + { + "key": "stickiness.enabled", + "value": "false" + } + ], + "targetType": "ip", + "unhealthyThresholdCount": 3, + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-elasticloadbalancingv2.CfnTargetGroup", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-elasticloadbalancingv2.ApplicationTargetGroup", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener", + "version": "0.0.0" + } + }, + "TestListener": { + "id": "TestListener", + "path": "aws-cdk-codedeploy-ecs-deployment/ServiceLB/TestListener", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/ServiceLB/TestListener/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::ElasticLoadBalancingV2::Listener", + "aws:cdk:cloudformation:props": { + "defaultActions": [ + { + "type": "forward", + "targetGroupArn": { + "Ref": "GreenTG71A27F2F" + } + } + ], + "loadBalancerArn": { + "Ref": "ServiceLBBDAD0B9B" + }, + "port": 9002, + "protocol": "HTTP" + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-elasticloadbalancingv2.CfnListener", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer", + "version": "0.0.0" + } + }, + "GreenTG": { + "id": "GreenTG", + "path": "aws-cdk-codedeploy-ecs-deployment/GreenTG", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/GreenTG/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::ElasticLoadBalancingV2::TargetGroup", + "aws:cdk:cloudformation:props": { + "healthCheckIntervalSeconds": 5, + "healthCheckTimeoutSeconds": 4, + "healthyThresholdCount": 2, + "matcher": { + "httpCode": "200" + }, + "port": 80, + "protocol": "HTTP", + "targetGroupAttributes": [ + { + "key": "deregistration_delay.timeout_seconds", + "value": "30" + }, + { + "key": "stickiness.enabled", + "value": "false" + } + ], + "targetType": "ip", + "unhealthyThresholdCount": 3, + "vpcId": { + "Ref": "VPCB9E5F0B4" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-elasticloadbalancingv2.CfnTargetGroup", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-elasticloadbalancingv2.ApplicationTargetGroup", + "version": "0.0.0" + } + }, + "BlueUnhealthyHosts": { + "id": "BlueUnhealthyHosts", + "path": "aws-cdk-codedeploy-ecs-deployment/BlueUnhealthyHosts", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/BlueUnhealthyHosts/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm", + "aws:cdk:cloudformation:props": { + "comparisonOperator": "GreaterThanOrEqualToThreshold", + "evaluationPeriods": 2, + "alarmName": "aws-cdk-codedeploy-ecs-deployment-Unhealthy-Hosts-Blue", + "dimensions": [ + { + "name": "LoadBalancer", + "value": { + "Fn::Join": [ + "", + [ + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBProdListener0E7627EE" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 2, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBProdListener0E7627EE" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBProdListener0E7627EE" + } + ] + } + ] + } + ] + ] + } + }, + { + "name": "TargetGroup", + "value": { + "Fn::GetAtt": [ + "ServiceLBProdListenerBlueTGGroupB47699CD", + "TargetGroupFullName" + ] + } + } + ], + "metricName": "UnHealthyHostCount", + "namespace": "AWS/ApplicationELB", + "period": 300, + "statistic": "Average", + "threshold": 1 + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-cloudwatch.CfnAlarm", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-cloudwatch.Alarm", + "version": "0.0.0" + } + }, + "Blue5xx": { + "id": "Blue5xx", + "path": "aws-cdk-codedeploy-ecs-deployment/Blue5xx", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/Blue5xx/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm", + "aws:cdk:cloudformation:props": { + "comparisonOperator": "GreaterThanOrEqualToThreshold", + "evaluationPeriods": 1, + "alarmName": "aws-cdk-codedeploy-ecs-deployment-Http-500-Blue", + "dimensions": [ + { + "name": "LoadBalancer", + "value": { + "Fn::Join": [ + "", + [ + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBProdListener0E7627EE" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 2, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBProdListener0E7627EE" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBProdListener0E7627EE" + } + ] + } + ] + } + ] + ] + } + }, + { + "name": "TargetGroup", + "value": { + "Fn::GetAtt": [ + "ServiceLBProdListenerBlueTGGroupB47699CD", + "TargetGroupFullName" + ] + } + } + ], + "metricName": "HTTPCode_Target_5XX_Count", + "namespace": "AWS/ApplicationELB", + "period": 60, + "statistic": "Sum", + "threshold": 1 + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-cloudwatch.CfnAlarm", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-cloudwatch.Alarm", + "version": "0.0.0" + } + }, + "GreenUnhealthyHosts": { + "id": "GreenUnhealthyHosts", + "path": "aws-cdk-codedeploy-ecs-deployment/GreenUnhealthyHosts", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/GreenUnhealthyHosts/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm", + "aws:cdk:cloudformation:props": { + "comparisonOperator": "GreaterThanOrEqualToThreshold", + "evaluationPeriods": 2, + "alarmName": "aws-cdk-codedeploy-ecs-deployment-Unhealthy-Hosts-Green", + "dimensions": [ + { + "name": "LoadBalancer", + "value": { + "Fn::Join": [ + "", + [ + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBTestListener3EA49939" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 2, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBTestListener3EA49939" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBTestListener3EA49939" + } + ] + } + ] + } + ] + ] + } + }, + { + "name": "TargetGroup", + "value": { + "Fn::GetAtt": [ + "GreenTG71A27F2F", + "TargetGroupFullName" + ] + } + } + ], + "metricName": "UnHealthyHostCount", + "namespace": "AWS/ApplicationELB", + "period": 300, + "statistic": "Average", + "threshold": 1 + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-cloudwatch.CfnAlarm", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-cloudwatch.Alarm", + "version": "0.0.0" + } + }, + "Green5xx": { + "id": "Green5xx", + "path": "aws-cdk-codedeploy-ecs-deployment/Green5xx", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/Green5xx/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::CloudWatch::Alarm", + "aws:cdk:cloudformation:props": { + "comparisonOperator": "GreaterThanOrEqualToThreshold", + "evaluationPeriods": 1, + "alarmName": "aws-cdk-codedeploy-ecs-deployment-Http-500-Green", + "dimensions": [ + { + "name": "LoadBalancer", + "value": { + "Fn::Join": [ + "", + [ + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBTestListener3EA49939" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 2, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBTestListener3EA49939" + } + ] + } + ] + }, + "/", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "/", + { + "Ref": "ServiceLBTestListener3EA49939" + } + ] + } + ] + } + ] + ] + } + }, + { + "name": "TargetGroup", + "value": { + "Fn::GetAtt": [ + "GreenTG71A27F2F", + "TargetGroupFullName" + ] + } + } + ], + "metricName": "HTTPCode_Target_5XX_Count", + "namespace": "AWS/ApplicationELB", + "period": 60, + "statistic": "Sum", + "threshold": 1 + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-cloudwatch.CfnAlarm", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-cloudwatch.Alarm", + "version": "0.0.0" + } + }, + "CanaryConfig": { + "id": "CanaryConfig", + "path": "aws-cdk-codedeploy-ecs-deployment/CanaryConfig", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/CanaryConfig/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::CodeDeploy::DeploymentConfig", + "aws:cdk:cloudformation:props": { + "computePlatform": "ECS", + "trafficRoutingConfig": { + "type": "TimeBasedCanary", + "timeBasedCanary": { + "canaryInterval": 1, + "canaryPercentage": 20 + } + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-codedeploy.CfnDeploymentConfig", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-codedeploy.EcsDeploymentConfig", + "version": "0.0.0" + } + }, + "App": { + "id": "App", + "path": "aws-cdk-codedeploy-ecs-deployment/App", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/App/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::CodeDeploy::Application", + "aws:cdk:cloudformation:props": { + "applicationName": "MyApp", + "computePlatform": "ECS" + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-codedeploy.CfnApplication", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-codedeploy.EcsApplication", + "version": "0.0.0" + } + }, + "DG": { + "id": "DG", + "path": "aws-cdk-codedeploy-ecs-deployment/DG", + "children": { + "ServiceRole": { + "id": "ServiceRole", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/ServiceRole", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/ServiceRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": { + "Fn::FindInMap": [ + "ServiceprincipalMap", + { + "Ref": "AWS::Region" + }, + "codedeploy" + ] + } + } + } + ], + "Version": "2012-10-17" + }, + "managedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/AWSCodeDeployRoleForECS" + ] + ] + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.CfnRole", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.Role", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::CodeDeploy::DeploymentGroup", + "aws:cdk:cloudformation:props": { + "applicationName": { + "Ref": "AppF1B96344" + }, + "serviceRoleArn": { + "Fn::GetAtt": [ + "DGServiceRoleD0230320", + "Arn" + ] + }, + "alarmConfiguration": { + "alarms": [ + { + "name": { + "Ref": "BlueUnhealthyHosts48919A97" + } + }, + { + "name": { + "Ref": "Blue5xx7E9798A6" + } + }, + { + "name": { + "Ref": "GreenUnhealthyHosts8D9D09C1" + } + }, + { + "name": { + "Ref": "Green5xx1A511A06" + } + } + ], + "enabled": true + }, + "autoRollbackConfiguration": { + "enabled": true, + "events": [ + "DEPLOYMENT_FAILURE", + "DEPLOYMENT_STOP_ON_REQUEST", + "DEPLOYMENT_STOP_ON_ALARM" + ] + }, + "blueGreenDeploymentConfiguration": { + "deploymentReadyOption": { + "actionOnTimeout": "CONTINUE_DEPLOYMENT", + "waitTimeInMinutes": 0 + }, + "terminateBlueInstancesOnDeploymentSuccess": { + "action": "TERMINATE", + "terminationWaitTimeInMinutes": 1 + } + }, + "deploymentConfigName": { + "Ref": "CanaryConfig039778DD" + }, + "deploymentGroupName": "MyDG", + "deploymentStyle": { + "deploymentType": "BLUE_GREEN", + "deploymentOption": "WITH_TRAFFIC_CONTROL" + }, + "ecsServices": [ + { + "clusterName": { + "Ref": "EcsCluster97242B84" + }, + "serviceName": { + "Fn::GetAtt": [ + "FargateServiceAC2B3B85", + "Name" + ] + } + } + ], + "loadBalancerInfo": { + "targetGroupPairInfoList": [ + { + "targetGroups": [ + { + "name": { + "Fn::GetAtt": [ + "ServiceLBProdListenerBlueTGGroupB47699CD", + "TargetGroupName" + ] + } + }, + { + "name": { + "Fn::GetAtt": [ + "GreenTG71A27F2F", + "TargetGroupName" + ] + } + } + ], + "prodTrafficRoute": { + "listenerArns": [ + { + "Ref": "ServiceLBProdListener0E7627EE" + } + ] + }, + "testTrafficRoute": { + "listenerArns": [ + { + "Ref": "ServiceLBTestListener3EA49939" + } + ] + } + } + ] + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-codedeploy.CfnDeploymentGroup", + "version": "0.0.0" + } + }, + "Deployment": { + "id": "Deployment", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment", + "children": { + "DeploymentProviderOnEventLambda": { + "id": "DeploymentProviderOnEventLambda", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderOnEventLambda", + "children": { + "ServiceRole": { + "id": "ServiceRole", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderOnEventLambda/ServiceRole", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderOnEventLambda/ServiceRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "managedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.CfnRole", + "version": "0.0.0" + } + }, + "DefaultPolicy": { + "id": "DefaultPolicy", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderOnEventLambda/ServiceRole/DefaultPolicy", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderOnEventLambda/ServiceRole/DefaultPolicy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Policy", + "aws:cdk:cloudformation:props": { + "policyDocument": { + "Statement": [ + { + "Action": [ + "codedeploy:GetApplicationRevision", + "codedeploy:RegisterApplicationRevision" + ], + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":codedeploy:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":application:", + { + "Ref": "AppF1B96344" + } + ] + ] + } + }, + { + "Action": [ + "codedeploy:CreateDeployment", + "codedeploy:GetDeployment", + "codedeploy:StopDeployment" + ], + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":codedeploy:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":deploymentgroup:", + { + "Ref": "AppF1B96344" + }, + "/", + { + "Ref": "DGEC40E9EF" + } + ] + ] + } + }, + { + "Action": "codedeploy:GetDeploymentConfig", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":codedeploy:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":deploymentconfig:", + { + "Ref": "CanaryConfig039778DD" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "policyName": "DGDeploymentDeploymentProviderOnEventLambdaServiceRoleDefaultPolicyEF38149C", + "roles": [ + { + "Ref": "DGDeploymentDeploymentProviderOnEventLambdaServiceRole60156287" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.CfnPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.Policy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.Role", + "version": "0.0.0" + } + }, + "Code": { + "id": "Code", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderOnEventLambda/Code", + "children": { + "Stage": { + "id": "Stage", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderOnEventLambda/Code/Stage", + "constructInfo": { + "fqn": "@aws-cdk/core.AssetStaging", + "version": "0.0.0" + } + }, + "AssetBucket": { + "id": "AssetBucket", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderOnEventLambda/Code/AssetBucket", + "constructInfo": { + "fqn": "@aws-cdk/aws-s3.BucketBase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-s3-assets.Asset", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderOnEventLambda/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::Lambda::Function", + "aws:cdk:cloudformation:props": { + "code": { + "s3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "s3Key": "1441a653914635996087caa4fac8e0e31589bf1601556f25eef99b2411745ba7.zip" + }, + "role": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaServiceRole60156287", + "Arn" + ] + }, + "environment": { + "variables": { + "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1" + } + }, + "functionName": { + "Fn::Join": [ + "", + [ + "EcsDeploymentProvider-", + { + "Ref": "AppF1B96344" + }, + "-", + { + "Ref": "DGEC40E9EF" + }, + "-onEvent" + ] + ] + }, + "handler": "index.handler", + "runtime": "nodejs16.x", + "timeout": 60 + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-lambda.CfnFunction", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-lambda-nodejs.NodejsFunction", + "version": "0.0.0" + } + }, + "DeploymentProviderIsCompleteLambda": { + "id": "DeploymentProviderIsCompleteLambda", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderIsCompleteLambda", + "children": { + "ServiceRole": { + "id": "ServiceRole", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderIsCompleteLambda/ServiceRole", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderIsCompleteLambda/ServiceRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "managedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.CfnRole", + "version": "0.0.0" + } + }, + "DefaultPolicy": { + "id": "DefaultPolicy", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderIsCompleteLambda/ServiceRole/DefaultPolicy", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderIsCompleteLambda/ServiceRole/DefaultPolicy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Policy", + "aws:cdk:cloudformation:props": { + "policyDocument": { + "Statement": [ + { + "Action": "codedeploy:GetDeployment", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":codedeploy:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":deploymentgroup:", + { + "Ref": "AppF1B96344" + }, + "/", + { + "Ref": "DGEC40E9EF" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "policyName": "DGDeploymentDeploymentProviderIsCompleteLambdaServiceRoleDefaultPolicyA5163F46", + "roles": [ + { + "Ref": "DGDeploymentDeploymentProviderIsCompleteLambdaServiceRole1AC61641" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.CfnPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.Policy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.Role", + "version": "0.0.0" + } + }, + "Code": { + "id": "Code", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderIsCompleteLambda/Code", + "children": { + "Stage": { + "id": "Stage", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderIsCompleteLambda/Code/Stage", + "constructInfo": { + "fqn": "@aws-cdk/core.AssetStaging", + "version": "0.0.0" + } + }, + "AssetBucket": { + "id": "AssetBucket", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderIsCompleteLambda/Code/AssetBucket", + "constructInfo": { + "fqn": "@aws-cdk/aws-s3.BucketBase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-s3-assets.Asset", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProviderIsCompleteLambda/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::Lambda::Function", + "aws:cdk:cloudformation:props": { + "code": { + "s3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "s3Key": "6ac1448e726779b45302ae5560690a6ce8925b2bcd7f3da633ee6abc605b5bac.zip" + }, + "role": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambdaServiceRole1AC61641", + "Arn" + ] + }, + "environment": { + "variables": { + "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1" + } + }, + "functionName": { + "Fn::Join": [ + "", + [ + "EcsDeploymentProvider-", + { + "Ref": "AppF1B96344" + }, + "-", + { + "Ref": "DGEC40E9EF" + }, + "-isComplete" + ] + ] + }, + "handler": "index.handler", + "runtime": "nodejs16.x", + "timeout": 60 + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-lambda.CfnFunction", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-lambda-nodejs.NodejsFunction", + "version": "0.0.0" + } + }, + "DeploymentProvider": { + "id": "DeploymentProvider", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider", + "children": { + "framework-onEvent": { + "id": "framework-onEvent", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onEvent", + "children": { + "ServiceRole": { + "id": "ServiceRole", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onEvent/ServiceRole", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onEvent/ServiceRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "managedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.CfnRole", + "version": "0.0.0" + } + }, + "DefaultPolicy": { + "id": "DefaultPolicy", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onEvent/ServiceRole/DefaultPolicy", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Policy", + "aws:cdk:cloudformation:props": { + "policyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + }, + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + }, + ":*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + ":*" + ] + ] + } + ] + }, + { + "Action": "states:StartExecution", + "Effect": "Allow", + "Resource": { + "Ref": "DGDeploymentDeploymentProviderwaiterstatemachine566875DD" + } + } + ], + "Version": "2012-10-17" + }, + "policyName": "DGDeploymentDeploymentProviderframeworkonEventServiceRoleDefaultPolicy1B65235C", + "roles": [ + { + "Ref": "DGDeploymentDeploymentProviderframeworkonEventServiceRoleC4DB5791" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.CfnPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.Policy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.Role", + "version": "0.0.0" + } + }, + "Code": { + "id": "Code", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onEvent/Code", + "children": { + "Stage": { + "id": "Stage", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onEvent/Code/Stage", + "constructInfo": { + "fqn": "@aws-cdk/core.AssetStaging", + "version": "0.0.0" + } + }, + "AssetBucket": { + "id": "AssetBucket", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onEvent/Code/AssetBucket", + "constructInfo": { + "fqn": "@aws-cdk/aws-s3.BucketBase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-s3-assets.Asset", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onEvent/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::Lambda::Function", + "aws:cdk:cloudformation:props": { + "code": { + "s3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "s3Key": "3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671.zip" + }, + "role": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkonEventServiceRoleC4DB5791", + "Arn" + ] + }, + "description": "AWS CDK resource provider framework - onEvent (aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider)", + "environment": { + "variables": { + "USER_ON_EVENT_FUNCTION_ARN": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + "USER_IS_COMPLETE_FUNCTION_ARN": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + }, + "WAITER_STATE_MACHINE_ARN": { + "Ref": "DGDeploymentDeploymentProviderwaiterstatemachine566875DD" + } + } + }, + "functionName": { + "Fn::Join": [ + "", + [ + "EcsDeploymentProvider-", + { + "Ref": "AppF1B96344" + }, + "-", + { + "Ref": "DGEC40E9EF" + }, + "-provider" + ] + ] + }, + "handler": "framework.onEvent", + "runtime": "nodejs14.x", + "timeout": 900 + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-lambda.CfnFunction", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-lambda.Function", + "version": "0.0.0" + } + }, + "framework-isComplete": { + "id": "framework-isComplete", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-isComplete", + "children": { + "ServiceRole": { + "id": "ServiceRole", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-isComplete/ServiceRole", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-isComplete/ServiceRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "managedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.CfnRole", + "version": "0.0.0" + } + }, + "DefaultPolicy": { + "id": "DefaultPolicy", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-isComplete/ServiceRole/DefaultPolicy", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-isComplete/ServiceRole/DefaultPolicy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Policy", + "aws:cdk:cloudformation:props": { + "policyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + }, + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + }, + ":*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "policyName": "DGDeploymentDeploymentProviderframeworkisCompleteServiceRoleDefaultPolicy03E372CD", + "roles": [ + { + "Ref": "DGDeploymentDeploymentProviderframeworkisCompleteServiceRole06E09942" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.CfnPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.Policy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.Role", + "version": "0.0.0" + } + }, + "Code": { + "id": "Code", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-isComplete/Code", + "children": { + "Stage": { + "id": "Stage", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-isComplete/Code/Stage", + "constructInfo": { + "fqn": "@aws-cdk/core.AssetStaging", + "version": "0.0.0" + } + }, + "AssetBucket": { + "id": "AssetBucket", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-isComplete/Code/AssetBucket", + "constructInfo": { + "fqn": "@aws-cdk/aws-s3.BucketBase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-s3-assets.Asset", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-isComplete/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::Lambda::Function", + "aws:cdk:cloudformation:props": { + "code": { + "s3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "s3Key": "3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671.zip" + }, + "role": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkisCompleteServiceRole06E09942", + "Arn" + ] + }, + "description": "AWS CDK resource provider framework - isComplete (aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider)", + "environment": { + "variables": { + "USER_ON_EVENT_FUNCTION_ARN": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + "USER_IS_COMPLETE_FUNCTION_ARN": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + } + } + }, + "handler": "framework.isComplete", + "runtime": "nodejs14.x", + "timeout": 900 + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-lambda.CfnFunction", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-lambda.Function", + "version": "0.0.0" + } + }, + "framework-onTimeout": { + "id": "framework-onTimeout", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onTimeout", + "children": { + "ServiceRole": { + "id": "ServiceRole", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onTimeout/ServiceRole", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onTimeout/ServiceRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "managedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.CfnRole", + "version": "0.0.0" + } + }, + "DefaultPolicy": { + "id": "DefaultPolicy", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onTimeout/ServiceRole/DefaultPolicy", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onTimeout/ServiceRole/DefaultPolicy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Policy", + "aws:cdk:cloudformation:props": { + "policyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + }, + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + }, + ":*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "policyName": "DGDeploymentDeploymentProviderframeworkonTimeoutServiceRoleDefaultPolicy0229C11D", + "roles": [ + { + "Ref": "DGDeploymentDeploymentProviderframeworkonTimeoutServiceRole2B298F04" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.CfnPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.Policy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.Role", + "version": "0.0.0" + } + }, + "Code": { + "id": "Code", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onTimeout/Code", + "children": { + "Stage": { + "id": "Stage", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onTimeout/Code/Stage", + "constructInfo": { + "fqn": "@aws-cdk/core.AssetStaging", + "version": "0.0.0" + } + }, + "AssetBucket": { + "id": "AssetBucket", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onTimeout/Code/AssetBucket", + "constructInfo": { + "fqn": "@aws-cdk/aws-s3.BucketBase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-s3-assets.Asset", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/framework-onTimeout/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::Lambda::Function", + "aws:cdk:cloudformation:props": { + "code": { + "s3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "s3Key": "3b263c2ad043fd069ef446753788c36e595c82b51a70478e58258c8ef7471671.zip" + }, + "role": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkonTimeoutServiceRole2B298F04", + "Arn" + ] + }, + "description": "AWS CDK resource provider framework - onTimeout (aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider)", + "environment": { + "variables": { + "USER_ON_EVENT_FUNCTION_ARN": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderOnEventLambdaBFB24F49", + "Arn" + ] + }, + "USER_IS_COMPLETE_FUNCTION_ARN": { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderIsCompleteLambda07F9DC34", + "Arn" + ] + } + } + }, + "handler": "framework.onTimeout", + "runtime": "nodejs14.x", + "timeout": 900 + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-lambda.CfnFunction", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-lambda.Function", + "version": "0.0.0" + } + }, + "waiter-state-machine": { + "id": "waiter-state-machine", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/waiter-state-machine", + "children": { + "Role": { + "id": "Role", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/waiter-state-machine/Role", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/waiter-state-machine/Role/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": { + "Fn::FindInMap": [ + "ServiceprincipalMap", + { + "Ref": "AWS::Region" + }, + "states" + ] + } + } + } + ], + "Version": "2012-10-17" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.CfnRole", + "version": "0.0.0" + } + }, + "DefaultPolicy": { + "id": "DefaultPolicy", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/waiter-state-machine/Role/DefaultPolicy", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/waiter-state-machine/Role/DefaultPolicy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Policy", + "aws:cdk:cloudformation:props": { + "policyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkisCompleteB0CC33B1", + "Arn" + ] + }, + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkonTimeout1C8F1544", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkisCompleteB0CC33B1", + "Arn" + ] + }, + ":*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "DGDeploymentDeploymentProviderframeworkonTimeout1C8F1544", + "Arn" + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "policyName": "DGDeploymentDeploymentProviderwaiterstatemachineRoleDefaultPolicyDA934EB5", + "roles": [ + { + "Ref": "DGDeploymentDeploymentProviderwaiterstatemachineRole56202F5B" + } + ] + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.CfnPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.Policy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-iam.Role", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentProvider/waiter-state-machine/Resource", + "constructInfo": { + "fqn": "@aws-cdk/core.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.1.95" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/custom-resources.Provider", + "version": "0.0.0" + } + }, + "DeploymentResource": { + "id": "DeploymentResource", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentResource", + "children": { + "Default": { + "id": "Default", + "path": "aws-cdk-codedeploy-ecs-deployment/DG/Deployment/DeploymentResource/Default", + "constructInfo": { + "fqn": "@aws-cdk/core.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/core.CustomResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-codedeploy.EcsDeployment", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/aws-codedeploy.EcsDeploymentGroup", + "version": "0.0.0" + } + }, + "Subnet1Id": { + "id": "Subnet1Id", + "path": "aws-cdk-codedeploy-ecs-deployment/Subnet1Id", + "constructInfo": { + "fqn": "@aws-cdk/core.CfnOutput", + "version": "0.0.0" + } + }, + "Subnet2Id": { + "id": "Subnet2Id", + "path": "aws-cdk-codedeploy-ecs-deployment/Subnet2Id", + "constructInfo": { + "fqn": "@aws-cdk/core.CfnOutput", + "version": "0.0.0" + } + }, + "SecurityGroupId": { + "id": "SecurityGroupId", + "path": "aws-cdk-codedeploy-ecs-deployment/SecurityGroupId", + "constructInfo": { + "fqn": "@aws-cdk/core.CfnOutput", + "version": "0.0.0" + } + }, + "CodeDeployApplicationName": { + "id": "CodeDeployApplicationName", + "path": "aws-cdk-codedeploy-ecs-deployment/CodeDeployApplicationName", + "constructInfo": { + "fqn": "@aws-cdk/core.CfnOutput", + "version": "0.0.0" + } + }, + "CodeDeployDeploymentGroupName": { + "id": "CodeDeployDeploymentGroupName", + "path": "aws-cdk-codedeploy-ecs-deployment/CodeDeployDeploymentGroupName", + "constructInfo": { + "fqn": "@aws-cdk/core.CfnOutput", + "version": "0.0.0" + } + }, + "DeploymentId": { + "id": "DeploymentId", + "path": "aws-cdk-codedeploy-ecs-deployment/DeploymentId", + "constructInfo": { + "fqn": "@aws-cdk/core.CfnOutput", + "version": "0.0.0" + } + }, + "Service-principalMap": { + "id": "Service-principalMap", + "path": "aws-cdk-codedeploy-ecs-deployment/Service-principalMap", + "constructInfo": { + "fqn": "@aws-cdk/core.CfnMapping", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/core.Stack", + "version": "0.0.0" + } + }, + "EcsDeploymentGroupTest": { + "id": "EcsDeploymentGroupTest", + "path": "EcsDeploymentGroupTest", + "children": { + "DefaultTest": { + "id": "DefaultTest", + "path": "EcsDeploymentGroupTest/DefaultTest", + "children": { + "Default": { + "id": "Default", + "path": "EcsDeploymentGroupTest/DefaultTest/Default", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.1.95" + } + }, + "DeployAssert": { + "id": "DeployAssert", + "path": "EcsDeploymentGroupTest/DefaultTest/DeployAssert", + "constructInfo": { + "fqn": "@aws-cdk/core.Stack", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests.IntegTestCase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests.IntegTest", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/core.App", + "version": "0.0.0" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.test.ts b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.test.ts new file mode 100644 index 0000000000000..732881437ef6a --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/deployment.test.ts @@ -0,0 +1,99 @@ +import { Template } from '@aws-cdk/assertions'; +import * as ecs from '@aws-cdk/aws-ecs'; +import * as cdk from '@aws-cdk/core'; +import * as codedeploy from '../../lib'; + +describe('CodeDeploy ECS Deployment', () => { + test('can be created with default configuration', () => { + const stack = new cdk.Stack(); + const arn = 'taskdefarn'; + const taskDefinition = ecs.FargateTaskDefinition.fromFargateTaskDefinitionArn(stack, 'taskdef', arn); + const deploymentGroup = codedeploy.EcsDeploymentGroup.fromEcsDeploymentGroupAttributes(stack, 'MyDG', { + application: codedeploy.EcsApplication.fromEcsApplicationName(stack, 'MyApp', 'TestApp'), + deploymentGroupName: 'MyDG', + }); + const appspec = new codedeploy.EcsAppSpec({ + taskDefinition, + containerName: 'testContainer', + containerPort: 80, + }); + new codedeploy.EcsDeployment({ + deploymentGroup, + appspec, + }); + + Template.fromStack(stack).hasResource('Custom::EcsDeployment', { + Properties: { + applicationName: 'TestApp', + deploymentConfigName: 'CodeDeployDefault.ECSAllAtOnce', + deploymentGroupName: 'MyDG', + autoRollbackConfigurationEnabled: 'false', + autoRollbackConfigurationEvents: '', + revisionAppSpecContent: appspec.toString(), + }, + }); + + Template.fromStack(stack).hasResource('AWS::Lambda::Function', { + Properties: { + FunctionName: 'EcsDeploymentProvider-TestApp-MyDG-onEvent', + Timeout: 60, + Runtime: 'nodejs16.x', + Handler: 'index.handler', + }, + }); + + Template.fromStack(stack).hasResource('AWS::Lambda::Function', { + Properties: { + FunctionName: 'EcsDeploymentProvider-TestApp-MyDG-isComplete', + Timeout: 60, + Runtime: 'nodejs16.x', + Handler: 'index.handler', + }, + }); + + Template.fromStack(stack).hasResource('AWS::Lambda::Function', { + Properties: { + FunctionName: 'EcsDeploymentProvider-TestApp-MyDG-provider', + }, + }); + + }); + + test('can be created with autorollback configuration', () => { + const stack = new cdk.Stack(); + const arn = 'taskdefarn'; + const taskDefinition = ecs.FargateTaskDefinition.fromFargateTaskDefinitionArn(stack, 'taskdef', arn); + const deploymentGroup = codedeploy.EcsDeploymentGroup.fromEcsDeploymentGroupAttributes(stack, 'MyDG', { + application: codedeploy.EcsApplication.fromEcsApplicationName(stack, 'MyApp', 'TestApp'), + deploymentGroupName: 'MyDG', + }); + const appspec = new codedeploy.EcsAppSpec({ + taskDefinition, + containerName: 'testContainer', + containerPort: 80, + }); + new codedeploy.EcsDeployment({ + deploymentGroup, + appspec, + description: 'test deployment', + autoRollback: { + deploymentInAlarm: true, + failedDeployment: true, + stoppedDeployment: true, + }, + }); + + Template.fromStack(stack).hasResource('Custom::EcsDeployment', { + Properties: { + applicationName: 'TestApp', + deploymentConfigName: 'CodeDeployDefault.ECSAllAtOnce', + deploymentGroupName: 'MyDG', + autoRollbackConfigurationEnabled: 'true', + autoRollbackConfigurationEvents: 'DEPLOYMENT_STOP_ON_ALARM,DEPLOYMENT_FAILURE,DEPLOYMENT_STOP_ON_REQUEST', + description: 'test deployment', + revisionAppSpecContent: appspec.toString(), + }, + }); + }); + +}); diff --git a/packages/@aws-cdk/aws-codedeploy/test/ecs/integ.deployment.ts b/packages/@aws-cdk/aws-codedeploy/test/ecs/integ.deployment.ts new file mode 100644 index 0000000000000..74e23bab5ada3 --- /dev/null +++ b/packages/@aws-cdk/aws-codedeploy/test/ecs/integ.deployment.ts @@ -0,0 +1,206 @@ +import * as cloudwatch from '@aws-cdk/aws-cloudwatch'; +import * as ec2 from '@aws-cdk/aws-ec2'; +import * as ecs from '@aws-cdk/aws-ecs'; +import * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2'; +import * as cdk from '@aws-cdk/core'; +import { Duration } from '@aws-cdk/core'; +import * as integ from '@aws-cdk/integ-tests'; +import * as codedeploy from '../../lib'; +import { EcsAppSpec } from '../../lib'; + +/** + * Follow these instructions to manually test running a CodeDeploy deployment with the resources provisioned in this stack: + * + * 1. Deploy the stack: +``` +$ cdk deploy --app 'node integ.deployment.js' aws-cdk-codedeploy-ecs-deployment +``` + * + * 2. Destroy the stack: +``` +$ cdk destroy --app 'node integ.deployment.js' aws-cdk-codedeploy-ecs-deployment +``` + */ + +const app = new cdk.App(); +const stack = new cdk.Stack(app, 'aws-cdk-codedeploy-ecs-deployment'); + +// Network infrastructure +const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2 }); + +// ECS service +const cluster = new ecs.Cluster(stack, 'EcsCluster', { + vpc, +}); +const taskDefinition = new ecs.FargateTaskDefinition(stack, 'TaskDef'); +taskDefinition.addContainer('Container', { + image: ecs.ContainerImage.fromRegistry('public.ecr.aws/ecs-sample-image/amazon-ecs-sample:latest'), + portMappings: [{ containerPort: 80 }], +}); +const service = new ecs.FargateService(stack, 'FargateService', { + cluster, + taskDefinition, + deploymentController: { + type: ecs.DeploymentControllerType.CODE_DEPLOY, + }, +}); + +const cfnService = service.node.defaultChild as ecs.CfnService; +cfnService.taskDefinition = taskDefinition.family; +service.node.addDependency(taskDefinition); + +// Load balancer +const loadBalancer = new elbv2.ApplicationLoadBalancer(stack, 'ServiceLB', { + vpc, + internetFacing: false, +}); + +// Listeners +const prodListener = loadBalancer.addListener('ProdListener', { + port: 80, // port for production traffic + protocol: elbv2.ApplicationProtocol.HTTP, +}); +const testListener = loadBalancer.addListener('TestListener', { + port: 9002, // port for testing + protocol: elbv2.ApplicationProtocol.HTTP, +}); + +// Target groups +const blueTG = prodListener.addTargets('BlueTG', { + port: 80, + protocol: elbv2.ApplicationProtocol.HTTP, + targets: [ + service.loadBalancerTarget({ + containerName: 'Container', + containerPort: 80, + }), + ], + deregistrationDelay: cdk.Duration.seconds(30), + healthCheck: { + interval: cdk.Duration.seconds(5), + healthyHttpCodes: '200', + healthyThresholdCount: 2, + unhealthyThresholdCount: 3, + timeout: cdk.Duration.seconds(4), + }, +}); + +const greenTG = new elbv2.ApplicationTargetGroup(stack, 'GreenTG', { + vpc, + port: 80, + protocol: elbv2.ApplicationProtocol.HTTP, + targetType: elbv2.TargetType.IP, + deregistrationDelay: cdk.Duration.seconds(30), + healthCheck: { + interval: cdk.Duration.seconds(5), + healthyHttpCodes: '200', + healthyThresholdCount: 2, + unhealthyThresholdCount: 3, + timeout: cdk.Duration.seconds(4), + }, +}); + +testListener.addTargetGroups('GreenTGTest', { + targetGroups: [greenTG], +}); + +prodListener.node.addDependency(greenTG); +testListener.node.addDependency(blueTG); +service.node.addDependency(testListener); +service.node.addDependency(greenTG); + +// Alarms: monitor 500s and unhealthy hosts on target groups +const blueUnhealthyHosts = new cloudwatch.Alarm(stack, 'BlueUnhealthyHosts', { + alarmName: stack.stackName + '-Unhealthy-Hosts-Blue', + metric: blueTG.metricUnhealthyHostCount(), + threshold: 1, + evaluationPeriods: 2, +}); + +const blueApiFailure = new cloudwatch.Alarm(stack, 'Blue5xx', { + alarmName: stack.stackName + '-Http-500-Blue', + metric: blueTG.metricHttpCodeTarget( + elbv2.HttpCodeTarget.TARGET_5XX_COUNT, + { period: cdk.Duration.minutes(1) }, + ), + threshold: 1, + evaluationPeriods: 1, +}); + +const greenUnhealthyHosts = new cloudwatch.Alarm(stack, 'GreenUnhealthyHosts', { + alarmName: stack.stackName + '-Unhealthy-Hosts-Green', + metric: greenTG.metricUnhealthyHostCount(), + threshold: 1, + evaluationPeriods: 2, +}); + +const greenApiFailure = new cloudwatch.Alarm(stack, 'Green5xx', { + alarmName: stack.stackName + '-Http-500-Green', + metric: greenTG.metricHttpCodeTarget( + elbv2.HttpCodeTarget.TARGET_5XX_COUNT, + { period: cdk.Duration.minutes(1) }, + ), + threshold: 1, + evaluationPeriods: 1, +}); + +// Deployment group +const deploymentConfig = new codedeploy.EcsDeploymentConfig(stack, 'CanaryConfig', { + trafficRouting: codedeploy.TrafficRouting.timeBasedCanary({ + interval: cdk.Duration.minutes(1), + percentage: 20, + }), +}); + +const dg = new codedeploy.EcsDeploymentGroup(stack, 'DG', { + application: new codedeploy.EcsApplication(stack, 'App', { + applicationName: 'MyApp', + }), + alarms: [ + blueUnhealthyHosts, + blueApiFailure, + greenUnhealthyHosts, + greenApiFailure, + ], + deploymentGroupName: 'MyDG', + services: [service], + blueGreenDeploymentConfig: { + blueTargetGroup: blueTG, + greenTargetGroup: greenTG, + listener: prodListener, + testListener, + terminationWaitTime: cdk.Duration.minutes(1), + }, + deploymentConfig, + autoRollback: { + stoppedDeployment: true, + }, +}); + +const deployment = new codedeploy.EcsDeployment({ + deploymentGroup: dg, + description: 'test deployment', + autoRollback: { + stoppedDeployment: true, + }, + timeout: Duration.minutes(60), + appspec: new EcsAppSpec({ + taskDefinition, + containerName: 'Container', + containerPort: 80, + }), +}); + +// Outputs to use for manual testing +new cdk.CfnOutput(stack, 'Subnet1Id', { value: vpc.privateSubnets[0].subnetId }); +new cdk.CfnOutput(stack, 'Subnet2Id', { value: vpc.privateSubnets[1].subnetId }); +new cdk.CfnOutput(stack, 'SecurityGroupId', { value: service.connections.securityGroups[0].securityGroupId }); +new cdk.CfnOutput(stack, 'CodeDeployApplicationName', { value: dg.application.applicationName }); +new cdk.CfnOutput(stack, 'CodeDeployDeploymentGroupName', { value: dg.deploymentGroupName }); +new cdk.CfnOutput(stack, 'DeploymentId', { value: deployment.deploymentId }); + +new integ.IntegTest(app, 'EcsDeploymentGroupTest', { + testCases: [stack], +}); + +app.synth(); diff --git a/yarn.lock b/yarn.lock index a1aa3e8496b03..2b709a5ec454b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -35,6 +35,662 @@ "@jridgewell/gen-mapping" "^0.1.0" "@jridgewell/trace-mapping" "^0.3.9" +"@aws-crypto/ie11-detection@^2.0.0": + version "2.0.2" + resolved "https://registry.npmjs.org/@aws-crypto/ie11-detection/-/ie11-detection-2.0.2.tgz#9c39f4a5558196636031a933ec1b4792de959d6a" + integrity sha512-5XDMQY98gMAf/WRTic5G++jfmS/VLM0rwpiOpaainKi4L0nqWMSB1SzsrEG5rjFZGYN6ZAefO+/Yta2dFM0kMw== + dependencies: + tslib "^1.11.1" + +"@aws-crypto/sha256-browser@2.0.0": + version "2.0.0" + resolved "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-2.0.0.tgz#741c9024df55ec59b51e5b1f5d806a4852699fb5" + integrity sha512-rYXOQ8BFOaqMEHJrLHul/25ckWH6GTJtdLSajhlqGMx0PmSueAuvboCuZCTqEKlxR8CQOwRarxYMZZSYlhRA1A== + dependencies: + "@aws-crypto/ie11-detection" "^2.0.0" + "@aws-crypto/sha256-js" "^2.0.0" + "@aws-crypto/supports-web-crypto" "^2.0.0" + "@aws-crypto/util" "^2.0.0" + "@aws-sdk/types" "^3.1.0" + "@aws-sdk/util-locate-window" "^3.0.0" + "@aws-sdk/util-utf8-browser" "^3.0.0" + tslib "^1.11.1" + +"@aws-crypto/sha256-js@2.0.0": + version "2.0.0" + resolved "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-2.0.0.tgz#f1f936039bdebd0b9e2dd834d65afdc2aac4efcb" + integrity sha512-VZY+mCY4Nmrs5WGfitmNqXzaE873fcIZDu54cbaDaaamsaTOP1DBImV9F4pICc3EHjQXujyE8jig+PFCaew9ig== + dependencies: + "@aws-crypto/util" "^2.0.0" + "@aws-sdk/types" "^3.1.0" + tslib "^1.11.1" + +"@aws-crypto/sha256-js@^2.0.0": + version "2.0.2" + resolved "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-2.0.2.tgz#c81e5d378b8a74ff1671b58632779986e50f4c99" + integrity sha512-iXLdKH19qPmIC73fVCrHWCSYjN/sxaAvZ3jNNyw6FclmHyjLKg0f69WlC9KTnyElxCR5MO9SKaG00VwlJwyAkQ== + dependencies: + "@aws-crypto/util" "^2.0.2" + "@aws-sdk/types" "^3.110.0" + tslib "^1.11.1" + +"@aws-crypto/supports-web-crypto@^2.0.0": + version "2.0.2" + resolved "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-2.0.2.tgz#9f02aafad8789cac9c0ab5faaebb1ab8aa841338" + integrity sha512-6mbSsLHwZ99CTOOswvCRP3C+VCWnzBf+1SnbWxzzJ9lR0mA0JnY2JEAhp8rqmTE0GPFy88rrM27ffgp62oErMQ== + dependencies: + tslib "^1.11.1" + +"@aws-crypto/util@^2.0.0", "@aws-crypto/util@^2.0.2": + version "2.0.2" + resolved "https://registry.npmjs.org/@aws-crypto/util/-/util-2.0.2.tgz#adf5ff5dfbc7713082f897f1d01e551ce0edb9c0" + integrity sha512-Lgu5v/0e/BcrZ5m/IWqzPUf3UYFTy/PpeED+uc9SWUR1iZQL8XXbGQg10UfllwwBryO3hFF5dizK+78aoXC1eA== + dependencies: + "@aws-sdk/types" "^3.110.0" + "@aws-sdk/util-utf8-browser" "^3.0.0" + tslib "^1.11.1" + +"@aws-lambda-powertools/commons@^1.3.0": + version "1.3.0" + resolved "https://registry.npmjs.org/@aws-lambda-powertools/commons/-/commons-1.3.0.tgz#d881c0c6117628d8f560b9bea2ff6e1c5d90b85f" + integrity sha512-DYQDa7/TlIt/BrpwSyOFIvcx1uj265+d3wkOKvyYIsDN5J3wX9jo1bdt7LsoCFVGw55zY4kE4W6WC+vuKk9DXw== + +"@aws-lambda-powertools/logger@^1.2.1": + version "1.3.0" + resolved "https://registry.npmjs.org/@aws-lambda-powertools/logger/-/logger-1.3.0.tgz#b07182f4eb2190a33bec8dee995cf1563a533f66" + integrity sha512-QBRAU/2XZAmDF+BY+WEiSF7CI5OBoK6kaks8696dMBpepLK/LtHlEC40a30YBvlg6W7ttcjjyaWcP2BnA3F5fw== + dependencies: + "@aws-lambda-powertools/commons" "^1.3.0" + lodash.clonedeep "^4.5.0" + lodash.merge "^4.6.2" + lodash.pickby "^4.6.0" + +"@aws-sdk/abort-controller@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/abort-controller/-/abort-controller-3.190.0.tgz#284263db7ba051f31dda64e077b68e45cca7a7b3" + integrity sha512-M6qo2exTzEfHT5RuW7K090OgesUojhb2JyWiV4ulu7ngY4DWBUBMKUqac696sHRUZvGE5CDzSi0606DMboM+kA== + dependencies: + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/client-codedeploy@^3.137.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/client-codedeploy/-/client-codedeploy-3.190.0.tgz#0610cdf329fcc392d29e1fecd2cce0bc43944b82" + integrity sha512-wbJM3R15m0CWr3FEpJuMhgV7rzynVDZoDBC/HEHIaALHEJscsyAt/gqYfGj5LZo0DFiRK5zn7BEzb0p0wZg5jg== + dependencies: + "@aws-crypto/sha256-browser" "2.0.0" + "@aws-crypto/sha256-js" "2.0.0" + "@aws-sdk/client-sts" "3.190.0" + "@aws-sdk/config-resolver" "3.190.0" + "@aws-sdk/credential-provider-node" "3.190.0" + "@aws-sdk/fetch-http-handler" "3.190.0" + "@aws-sdk/hash-node" "3.190.0" + "@aws-sdk/invalid-dependency" "3.190.0" + "@aws-sdk/middleware-content-length" "3.190.0" + "@aws-sdk/middleware-host-header" "3.190.0" + "@aws-sdk/middleware-logger" "3.190.0" + "@aws-sdk/middleware-recursion-detection" "3.190.0" + "@aws-sdk/middleware-retry" "3.190.0" + "@aws-sdk/middleware-serde" "3.190.0" + "@aws-sdk/middleware-signing" "3.190.0" + "@aws-sdk/middleware-stack" "3.190.0" + "@aws-sdk/middleware-user-agent" "3.190.0" + "@aws-sdk/node-config-provider" "3.190.0" + "@aws-sdk/node-http-handler" "3.190.0" + "@aws-sdk/protocol-http" "3.190.0" + "@aws-sdk/smithy-client" "3.190.0" + "@aws-sdk/types" "3.190.0" + "@aws-sdk/url-parser" "3.190.0" + "@aws-sdk/util-base64-browser" "3.188.0" + "@aws-sdk/util-base64-node" "3.188.0" + "@aws-sdk/util-body-length-browser" "3.188.0" + "@aws-sdk/util-body-length-node" "3.188.0" + "@aws-sdk/util-defaults-mode-browser" "3.190.0" + "@aws-sdk/util-defaults-mode-node" "3.190.0" + "@aws-sdk/util-user-agent-browser" "3.190.0" + "@aws-sdk/util-user-agent-node" "3.190.0" + "@aws-sdk/util-utf8-browser" "3.188.0" + "@aws-sdk/util-utf8-node" "3.188.0" + "@aws-sdk/util-waiter" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/client-sso@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.190.0.tgz#d3435bf406bd7cedf705e9e876da49dd5a2bc17f" + integrity sha512-joEKRjJEzgvXnEih/x2UDDCPlvXWCO3MAHmqi44yJ36Ph4YsFS299mOjPdVLuzUtpQ+cST1nRO7hXNFrulW2jQ== + dependencies: + "@aws-crypto/sha256-browser" "2.0.0" + "@aws-crypto/sha256-js" "2.0.0" + "@aws-sdk/config-resolver" "3.190.0" + "@aws-sdk/fetch-http-handler" "3.190.0" + "@aws-sdk/hash-node" "3.190.0" + "@aws-sdk/invalid-dependency" "3.190.0" + "@aws-sdk/middleware-content-length" "3.190.0" + "@aws-sdk/middleware-host-header" "3.190.0" + "@aws-sdk/middleware-logger" "3.190.0" + "@aws-sdk/middleware-recursion-detection" "3.190.0" + "@aws-sdk/middleware-retry" "3.190.0" + "@aws-sdk/middleware-serde" "3.190.0" + "@aws-sdk/middleware-stack" "3.190.0" + "@aws-sdk/middleware-user-agent" "3.190.0" + "@aws-sdk/node-config-provider" "3.190.0" + "@aws-sdk/node-http-handler" "3.190.0" + "@aws-sdk/protocol-http" "3.190.0" + "@aws-sdk/smithy-client" "3.190.0" + "@aws-sdk/types" "3.190.0" + "@aws-sdk/url-parser" "3.190.0" + "@aws-sdk/util-base64-browser" "3.188.0" + "@aws-sdk/util-base64-node" "3.188.0" + "@aws-sdk/util-body-length-browser" "3.188.0" + "@aws-sdk/util-body-length-node" "3.188.0" + "@aws-sdk/util-defaults-mode-browser" "3.190.0" + "@aws-sdk/util-defaults-mode-node" "3.190.0" + "@aws-sdk/util-user-agent-browser" "3.190.0" + "@aws-sdk/util-user-agent-node" "3.190.0" + "@aws-sdk/util-utf8-browser" "3.188.0" + "@aws-sdk/util-utf8-node" "3.188.0" + tslib "^2.3.1" + +"@aws-sdk/client-sts@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.190.0.tgz#835a471daec37aa12e073f425aeab60fc1b3f9e5" + integrity sha512-s5MqfxqWxHAl1RhfQ6swjawsVPBqmq5F+SfzZcGLBCnVv03GaSL8J9K42O1Cc0+HwPQH2miY+Avy0zAr6VpY+Q== + dependencies: + "@aws-crypto/sha256-browser" "2.0.0" + "@aws-crypto/sha256-js" "2.0.0" + "@aws-sdk/config-resolver" "3.190.0" + "@aws-sdk/credential-provider-node" "3.190.0" + "@aws-sdk/fetch-http-handler" "3.190.0" + "@aws-sdk/hash-node" "3.190.0" + "@aws-sdk/invalid-dependency" "3.190.0" + "@aws-sdk/middleware-content-length" "3.190.0" + "@aws-sdk/middleware-host-header" "3.190.0" + "@aws-sdk/middleware-logger" "3.190.0" + "@aws-sdk/middleware-recursion-detection" "3.190.0" + "@aws-sdk/middleware-retry" "3.190.0" + "@aws-sdk/middleware-sdk-sts" "3.190.0" + "@aws-sdk/middleware-serde" "3.190.0" + "@aws-sdk/middleware-signing" "3.190.0" + "@aws-sdk/middleware-stack" "3.190.0" + "@aws-sdk/middleware-user-agent" "3.190.0" + "@aws-sdk/node-config-provider" "3.190.0" + "@aws-sdk/node-http-handler" "3.190.0" + "@aws-sdk/protocol-http" "3.190.0" + "@aws-sdk/smithy-client" "3.190.0" + "@aws-sdk/types" "3.190.0" + "@aws-sdk/url-parser" "3.190.0" + "@aws-sdk/util-base64-browser" "3.188.0" + "@aws-sdk/util-base64-node" "3.188.0" + "@aws-sdk/util-body-length-browser" "3.188.0" + "@aws-sdk/util-body-length-node" "3.188.0" + "@aws-sdk/util-defaults-mode-browser" "3.190.0" + "@aws-sdk/util-defaults-mode-node" "3.190.0" + "@aws-sdk/util-user-agent-browser" "3.190.0" + "@aws-sdk/util-user-agent-node" "3.190.0" + "@aws-sdk/util-utf8-browser" "3.188.0" + "@aws-sdk/util-utf8-node" "3.188.0" + fast-xml-parser "4.0.11" + tslib "^2.3.1" + +"@aws-sdk/config-resolver@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/config-resolver/-/config-resolver-3.190.0.tgz#cb068fef70360c227698b670a2f1224467b523b4" + integrity sha512-K+VnDtjTgjpf7yHEdDB0qgGbHToF0pIL0pQMSnmk2yc8BoB3LGG/gg1T0Ki+wRlrFnDCJ6L+8zUdawY2qDsbyw== + dependencies: + "@aws-sdk/signature-v4" "3.190.0" + "@aws-sdk/types" "3.190.0" + "@aws-sdk/util-config-provider" "3.188.0" + "@aws-sdk/util-middleware" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/credential-provider-env@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.190.0.tgz#b0be7325508529ec1d910b1f18c5a6cc98186dcd" + integrity sha512-GTY7l3SJhTmRGFpWddbdJOihSqoMN8JMo3CsCtIjk4/h3xirBi02T4GSvbrMyP7FP3Fdl4NAdT+mHJ4q2Bvzxw== + dependencies: + "@aws-sdk/property-provider" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/credential-provider-imds@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/credential-provider-imds/-/credential-provider-imds-3.190.0.tgz#15aee396b321e01ede0f0aa88f643e43c42ad879" + integrity sha512-gI5pfBqGYCKdmx8igPvq+jLzyE2kuNn9Q5u73pdM/JZxiq7GeWYpE/MqqCubHxPtPcTFgAwxCxCFoXlUTBh/2g== + dependencies: + "@aws-sdk/node-config-provider" "3.190.0" + "@aws-sdk/property-provider" "3.190.0" + "@aws-sdk/types" "3.190.0" + "@aws-sdk/url-parser" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/credential-provider-ini@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.190.0.tgz#b12b9620aeb30c87d99dd234ba7c80b983688167" + integrity sha512-Z7NN/evXJk59hBQlfOSWDfHntwmxwryu6uclgv7ECI6SEVtKt1EKIlPuCLUYgQ4lxb9bomyO5lQAl/1WutNT5w== + dependencies: + "@aws-sdk/credential-provider-env" "3.190.0" + "@aws-sdk/credential-provider-imds" "3.190.0" + "@aws-sdk/credential-provider-sso" "3.190.0" + "@aws-sdk/credential-provider-web-identity" "3.190.0" + "@aws-sdk/property-provider" "3.190.0" + "@aws-sdk/shared-ini-file-loader" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/credential-provider-node@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.190.0.tgz#7de69d65c694e26191414ddde978df929bd632b7" + integrity sha512-ctCG5+TsIK2gVgvvFiFjinPjc5nGpSypU3nQKCaihtPh83wDN6gCx4D0p9M8+fUrlPa5y+o/Y7yHo94ATepM8w== + dependencies: + "@aws-sdk/credential-provider-env" "3.190.0" + "@aws-sdk/credential-provider-imds" "3.190.0" + "@aws-sdk/credential-provider-ini" "3.190.0" + "@aws-sdk/credential-provider-process" "3.190.0" + "@aws-sdk/credential-provider-sso" "3.190.0" + "@aws-sdk/credential-provider-web-identity" "3.190.0" + "@aws-sdk/property-provider" "3.190.0" + "@aws-sdk/shared-ini-file-loader" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/credential-provider-process@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.190.0.tgz#b1a4aa9fc83984bf2219cfc027a78deaca417c59" + integrity sha512-sIJhICR80n5XY1kW/EFHTh5ZzBHb5X+744QCH3StcbKYI44mOZvNKfFdeRL2fQ7yLgV7npte2HJRZzQPWpZUrw== + dependencies: + "@aws-sdk/property-provider" "3.190.0" + "@aws-sdk/shared-ini-file-loader" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/credential-provider-sso@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.190.0.tgz#285895dc38c09033154906ce253ff6f0bdca86ab" + integrity sha512-uarU9vk471MHHT+GJj3KWFSmaaqLNL5n1KcMer2CCAZfjs+mStAi8+IjZuuKXB4vqVs5DxdH8cy5aLaJcBlXwQ== + dependencies: + "@aws-sdk/client-sso" "3.190.0" + "@aws-sdk/property-provider" "3.190.0" + "@aws-sdk/shared-ini-file-loader" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/credential-provider-web-identity@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.190.0.tgz#c41fe6f1ebb814581b010c0f82e5232da85c90b7" + integrity sha512-nlIBeK9hGHKWC874h+ITAfPZ9Eaok+x/ydZQVKsLHiQ9PH3tuQ8AaGqhuCwBSH0hEAHZ/BiKeEx5VyWAE8/x+Q== + dependencies: + "@aws-sdk/property-provider" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/fetch-http-handler@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/fetch-http-handler/-/fetch-http-handler-3.190.0.tgz#9943c8c9ec3bd9eb9121d3a6c1d356f24f0931a9" + integrity sha512-5riRpKydARXAPLesTZm6eP6QKJ4HJGQ3k0Tepi3nvxHVx3UddkRNoX0pLS3rvbajkykWPNC2qdfRGApWlwOYsA== + dependencies: + "@aws-sdk/protocol-http" "3.190.0" + "@aws-sdk/querystring-builder" "3.190.0" + "@aws-sdk/types" "3.190.0" + "@aws-sdk/util-base64-browser" "3.188.0" + tslib "^2.3.1" + +"@aws-sdk/hash-node@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/hash-node/-/hash-node-3.190.0.tgz#0ecad888142e8c097e13701f7bafc69e3e7ce91e" + integrity sha512-DNwVT3O8zc9Jk/bXiXcN0WsD98r+JJWryw9F1/ZZbuzbf6rx2qhI8ZK+nh5X6WMtYPU84luQMcF702fJt/1bzg== + dependencies: + "@aws-sdk/types" "3.190.0" + "@aws-sdk/util-buffer-from" "3.188.0" + tslib "^2.3.1" + +"@aws-sdk/invalid-dependency@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/invalid-dependency/-/invalid-dependency-3.190.0.tgz#a4caa91ce50554f99fbfcba062eca233bb79e280" + integrity sha512-crCh63e8d/Uw9y3dQlVTPja7+IZiXpNXyH6oSuAadTDQwMq6KK87Av1/SDzVf6bAo2KgAOo41MyO2joaCEk0dQ== + dependencies: + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/is-array-buffer@3.188.0": + version "3.188.0" + resolved "https://registry.npmjs.org/@aws-sdk/is-array-buffer/-/is-array-buffer-3.188.0.tgz#2e969b2e799490e3bbd5008554aa346c58e3a9b6" + integrity sha512-n69N4zJZCNd87Rf4NzufPzhactUeM877Y0Tp/F3KiHqGeTnVjYUa4Lv1vLBjqtfjYb2HWT3NKlYn5yzrhaEwiQ== + dependencies: + tslib "^2.3.1" + +"@aws-sdk/middleware-content-length@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/middleware-content-length/-/middleware-content-length-3.190.0.tgz#640d2dfeeb1c715a93f8a03048a8458aaf153973" + integrity sha512-sSU347SuC6I8kWum1jlJlpAqeV23KP7enG+ToWcEcgFrJhm3AvuqB//NJxDbkKb2DNroRvJjBckBvrwNAjQnBQ== + dependencies: + "@aws-sdk/protocol-http" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/middleware-host-header@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.190.0.tgz#47a01bd9b7db526114097db4659ef7e578881b62" + integrity sha512-cL7Vo/QSpGx/DDmFxjeV0Qlyi1atvHQDPn3MLBBmi1icu+3GKZkCMAJwzsrV3U4+WoVoDYT9FJ9yMQf2HaIjeQ== + dependencies: + "@aws-sdk/protocol-http" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/middleware-logger@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.190.0.tgz#022c1c6da76d95b3d04e32179c5b1bdfb3944295" + integrity sha512-rrfLGYSZCBtiXNrIa8pJ2uwUoUMyj6Q82E8zmduTvqKWviCr6ZKes0lttGIkWhjvhql2m4CbjG5MPBnY7RXL4A== + dependencies: + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/middleware-recursion-detection@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.190.0.tgz#6b8480ff62d141312f10940b0a0fe44f651e3f8a" + integrity sha512-5tc1AIIZe5jDNdyuJW+7vIFmQOxz3q031ZVrEtUEIF7cz2ySho2lkOWziz+v+UGSLhjHGKMz3V26+aN1FLZNxQ== + dependencies: + "@aws-sdk/protocol-http" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/middleware-retry@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/middleware-retry/-/middleware-retry-3.190.0.tgz#935d4097d5785ae14b98272af69aed7ff066786b" + integrity sha512-h1bPopkncf2ue/erJdhqvgR2AEh0bIvkNsIHhx93DckWKotZd/GAVDq0gpKj7/f/7B+teHH8Fg5GDOwOOGyKcg== + dependencies: + "@aws-sdk/protocol-http" "3.190.0" + "@aws-sdk/service-error-classification" "3.190.0" + "@aws-sdk/types" "3.190.0" + "@aws-sdk/util-middleware" "3.190.0" + tslib "^2.3.1" + uuid "^8.3.2" + +"@aws-sdk/middleware-sdk-sts@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.190.0.tgz#4606c41658f6d0ff2ff9b11bd2fc3a35f8ebd1ea" + integrity sha512-eUHrsr35mkD/cAFKoYuFYz0zE7QPBWvSzMzqmEJC+YXzAF6IABP3FL/htAFpWkje5XDl5dQ6dAxzV+ebK8RNXQ== + dependencies: + "@aws-sdk/middleware-signing" "3.190.0" + "@aws-sdk/property-provider" "3.190.0" + "@aws-sdk/protocol-http" "3.190.0" + "@aws-sdk/signature-v4" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/middleware-serde@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/middleware-serde/-/middleware-serde-3.190.0.tgz#85f17432facfa8453564a5b5cd2d24e722eeff9f" + integrity sha512-S132hEOK4jwbtZ1bGAgSuQ0DMFG4TiD4ulAwbQRBYooC7tiWZbRiR0Pkt2hV8d7WhOHgUpg7rvqlA7/HXXBAsA== + dependencies: + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/middleware-signing@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.190.0.tgz#32fc668c6ea7e632c1dd0eaacd78c71ff522dc77" + integrity sha512-Xj5MmXZq8UIpY8wOwyqei5q6MgqKxsO9Plo2zUgW7JR0w7R21MlqY2kzzvcM9R0FFhi9dqhniFT2ZMRUb1v73w== + dependencies: + "@aws-sdk/property-provider" "3.190.0" + "@aws-sdk/protocol-http" "3.190.0" + "@aws-sdk/signature-v4" "3.190.0" + "@aws-sdk/types" "3.190.0" + "@aws-sdk/util-middleware" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/middleware-stack@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/middleware-stack/-/middleware-stack-3.190.0.tgz#15572c938bf3bbe9d275870e541360fdc7997fab" + integrity sha512-h1mqiWNJdi1OTSEY8QovpiHgDQEeRG818v8yShpqSYXJKEqdn54MA3Z1D2fg/Wv/8ZJsFrBCiI7waT1JUYOmCg== + dependencies: + tslib "^2.3.1" + +"@aws-sdk/middleware-user-agent@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.190.0.tgz#791eb451b01846184140eeda63dd51153f911c2c" + integrity sha512-y/2cTE1iYHKR0nkb3DvR3G8vt12lcTP95r/iHp8ZO+Uzpc25jM/AyMHWr2ZjqQiHKNlzh8uRw1CmQtgg4sBxXQ== + dependencies: + "@aws-sdk/protocol-http" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/node-config-provider@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/node-config-provider/-/node-config-provider-3.190.0.tgz#a6005c5d3393970e1682c2561c5622d36d05c35d" + integrity sha512-TJPUchyeK5KeEXWrwb6oW5/OkY3STCSGR1QIlbPcaTGkbo4kXAVyQmmZsY4KtRPuDM6/HlfUQV17bD716K65rQ== + dependencies: + "@aws-sdk/property-provider" "3.190.0" + "@aws-sdk/shared-ini-file-loader" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/node-http-handler@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/node-http-handler/-/node-http-handler-3.190.0.tgz#db14e265a5d42587b3edca0e71fa47f530d8c81b" + integrity sha512-3Klkr73TpZkCzcnSP+gmFF0Baluzk3r7BaWclJHqt2LcFUWfIJzYlnbBQNZ4t3EEq7ZlBJX85rIDHBRlS+rUyA== + dependencies: + "@aws-sdk/abort-controller" "3.190.0" + "@aws-sdk/protocol-http" "3.190.0" + "@aws-sdk/querystring-builder" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/property-provider@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/property-provider/-/property-provider-3.190.0.tgz#99372b7e2fba63d3f47ea368c9659ef003733e57" + integrity sha512-uzdKjHE2blbuceTC5zeBgZ0+Uo/hf9pH20CHpJeVNtrrtF3GALtu4Y1Gu5QQVIQBz8gjHnqANx0XhfYzorv69Q== + dependencies: + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/protocol-http@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/protocol-http/-/protocol-http-3.190.0.tgz#6f777f4f5193fc83402fdce29d8fc2bd0c93fb05" + integrity sha512-s5MVfeONpfZYRzCSbqQ+wJ3GxKED+aSS7+CQoeaYoD6HDTDxaMGNv9aiPxVCzW02sgG7py7f29Q6Vw+5taZXZA== + dependencies: + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/querystring-builder@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/querystring-builder/-/querystring-builder-3.190.0.tgz#5c115eb30343cc28ea8fc6ab1ca945907533403a" + integrity sha512-w9mTKkCsaLIBC8EA4RAHrqethNGbf60CbpPzN/QM7yCV3ZZJAXkppFfjTVVOMbPaI8GUEOptJtzgqV68CRB7ow== + dependencies: + "@aws-sdk/types" "3.190.0" + "@aws-sdk/util-uri-escape" "3.188.0" + tslib "^2.3.1" + +"@aws-sdk/querystring-parser@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/querystring-parser/-/querystring-parser-3.190.0.tgz#e96fab0ac834ab57777d736790eb2509491bd3fa" + integrity sha512-vCKP0s33VtS47LSYzEWRRr2aTbi3qNkUuQyIrc5LMqBfS5hsy79P1HL4Q7lCVqZB5fe61N8fKzOxDxWRCF0sXg== + dependencies: + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/service-error-classification@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/service-error-classification/-/service-error-classification-3.190.0.tgz#b1e232abfdc98fcf6f12dcbe50f9b9141fe53d42" + integrity sha512-g+s6xtaMa5fCMA2zJQC4BiFGMP7FN5/L1V/UwxCnKy8skCwaN0K5A1tFffBjjbYiPI7Gu7LVorWD2A0Y4xl01Q== + +"@aws-sdk/shared-ini-file-loader@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/shared-ini-file-loader/-/shared-ini-file-loader-3.190.0.tgz#23efb053ae56f7cb96cb1cb64e8afeffafac963c" + integrity sha512-CZC/xsGReUEl5w+JgfancrxfkaCbEisyIFy6HALUYrioWQe80WMqLAdUMZSXHWjIaNK9mH0J/qvcSV2MuIoMzQ== + dependencies: + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/signature-v4@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/signature-v4/-/signature-v4-3.190.0.tgz#ed5a408465723021648fd95440234898e114e2f6" + integrity sha512-L/R/1X2T+/Kg2k/sjoYyDFulVUGrVcRfyEKKVFIUNg0NwUtw5UKa1/gS7geTKcg4q8M2pd/v+OCBrge2X7phUw== + dependencies: + "@aws-sdk/is-array-buffer" "3.188.0" + "@aws-sdk/types" "3.190.0" + "@aws-sdk/util-hex-encoding" "3.188.0" + "@aws-sdk/util-middleware" "3.190.0" + "@aws-sdk/util-uri-escape" "3.188.0" + tslib "^2.3.1" + +"@aws-sdk/smithy-client@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/smithy-client/-/smithy-client-3.190.0.tgz#4a951a7f3470fe148330e3a3e68cf9020b148e64" + integrity sha512-f5EoCwjBLXMyuN491u1NmEutbolL0cJegaJbtgK9OJw2BLuRHiBknjDF4OEVuK/WqK0kz2JLMGi9xwVPl4BKCA== + dependencies: + "@aws-sdk/middleware-stack" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/types@3.190.0", "@aws-sdk/types@^3.1.0", "@aws-sdk/types@^3.110.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/types/-/types-3.190.0.tgz#ef22549c81ea6a7dd2c57e5869e787fea40c4434" + integrity sha512-mkeZ+vJZzElP6OdRXvuLKWHSlDQxZP9u8BjQB9N0Rw0pCXTzYS0vzIhN1pL0uddWp5fMrIE68snto9xNR6BQuA== + +"@aws-sdk/url-parser@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/url-parser/-/url-parser-3.190.0.tgz#d3c40dd0d01fb97c2c7f610baf1be2f045ae5582" + integrity sha512-FKFDtxA9pvHmpfWmNVK5BAVRpDgkWMz3u4Sg9UzB+WAFN6UexRypXXUZCFAo8S04FbPKfYOR3O0uVlw7kzmj9g== + dependencies: + "@aws-sdk/querystring-parser" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/util-base64-browser@3.188.0": + version "3.188.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-base64-browser/-/util-base64-browser-3.188.0.tgz#581c85dc157aff88ca81e42d9c79d87c95db8d03" + integrity sha512-qlH+5NZBLiyKziL335BEPedYxX6j+p7KFRWXvDQox9S+s+gLCayednpK+fteOhBenCcR9fUZOVuAPScy1I8qCg== + dependencies: + tslib "^2.3.1" + +"@aws-sdk/util-base64-node@3.188.0": + version "3.188.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-base64-node/-/util-base64-node-3.188.0.tgz#1d2413f68c8ad1cca0903fc11d92af88ba70e14d" + integrity sha512-r1dccRsRjKq+OhVRUfqFiW3sGgZBjHbMeHLbrAs9jrOjU2PTQ8PSzAXLvX/9lmp7YjmX17Qvlsg0NCr1tbB9OA== + dependencies: + "@aws-sdk/util-buffer-from" "3.188.0" + tslib "^2.3.1" + +"@aws-sdk/util-body-length-browser@3.188.0": + version "3.188.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-body-length-browser/-/util-body-length-browser-3.188.0.tgz#e1d949318c10a621b38575a9ef01e39f9857ddb0" + integrity sha512-8VpnwFWXhnZ/iRSl9mTf+VKOX9wDE8QtN4bj9pBfxwf90H1X7E8T6NkiZD3k+HubYf2J94e7DbeHs7fuCPW5Qg== + dependencies: + tslib "^2.3.1" + +"@aws-sdk/util-body-length-node@3.188.0": + version "3.188.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-body-length-node/-/util-body-length-node-3.188.0.tgz#3fc2a820b9be0efcbdf962d8f980b9000b98ddba" + integrity sha512-XwqP3vxk60MKp4YDdvDeCD6BPOiG2e+/Ou4AofZOy5/toB6NKz2pFNibQIUg2+jc7mPMnGnvOW3MQEgSJ+gu/Q== + dependencies: + tslib "^2.3.1" + +"@aws-sdk/util-buffer-from@3.188.0": + version "3.188.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-buffer-from/-/util-buffer-from-3.188.0.tgz#a062ccd990571df4353990e8b78aebec5a14547d" + integrity sha512-NX1WXZ8TH20IZb4jPFT2CnLKSqZWddGxtfiWxD9M47YOtq/SSQeR82fhqqVjJn4P8w2F5E28f+Du4ntg/sGcxA== + dependencies: + "@aws-sdk/is-array-buffer" "3.188.0" + tslib "^2.3.1" + +"@aws-sdk/util-config-provider@3.188.0": + version "3.188.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-config-provider/-/util-config-provider-3.188.0.tgz#f7a365e6cbfe728c1224f0b39926636619b669e0" + integrity sha512-LBA7tLbi7v4uvbOJhSnjJrxbcRifKK/1ZVK94JTV2MNSCCyNkFotyEI5UWDl10YKriTIUyf7o5cakpiDZ3O4xg== + dependencies: + tslib "^2.3.1" + +"@aws-sdk/util-defaults-mode-browser@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-browser/-/util-defaults-mode-browser-3.190.0.tgz#b544c978ae4e5a7cf12bb7975c0199dbe3517c85" + integrity sha512-FKxTU4tIbFk2pdUbBNneStF++j+/pB4NYJ1HRSEAb/g4D2+kxikR/WKIv3p0JTVvAkwcuX/ausILYEPUyDZ4HQ== + dependencies: + "@aws-sdk/property-provider" "3.190.0" + "@aws-sdk/types" "3.190.0" + bowser "^2.11.0" + tslib "^2.3.1" + +"@aws-sdk/util-defaults-mode-node@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-node/-/util-defaults-mode-node-3.190.0.tgz#67acd5a3dba7f30ac2fb30084dd2b9ff77612c15" + integrity sha512-qBiIMjNynqAP7p6urG1+ZattYkFaylhyinofVcLEiDvM9a6zGt6GZsxru2Loq0kRAXXGew9E9BWGt45HcDc20g== + dependencies: + "@aws-sdk/config-resolver" "3.190.0" + "@aws-sdk/credential-provider-imds" "3.190.0" + "@aws-sdk/node-config-provider" "3.190.0" + "@aws-sdk/property-provider" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/util-hex-encoding@3.188.0": + version "3.188.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-hex-encoding/-/util-hex-encoding-3.188.0.tgz#c2d8b02b952db58acbd5f53718109657c69c460f" + integrity sha512-QyWovTtjQ2RYxqVM+STPh65owSqzuXURnfoof778spyX4iQ4z46wOge1YV2ZtwS8w5LWd9eeVvDrLu5POPYOnA== + dependencies: + tslib "^2.3.1" + +"@aws-sdk/util-locate-window@^3.0.0": + version "3.188.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.188.0.tgz#0bef2b4d932d1401bd78dc1ddd258b14a3652f96" + integrity sha512-SxobBVLZkkLSawTCfeQnhVX3Azm9O+C2dngZVe1+BqtF8+retUbVTs7OfYeWBlawVkULKF2e781lTzEHBBjCzw== + dependencies: + tslib "^2.3.1" + +"@aws-sdk/util-middleware@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-middleware/-/util-middleware-3.190.0.tgz#9c594987f107af05b770f2ac2e70c0391d0cb5b5" + integrity sha512-qzTJ/qhFDzHZS+iXdHydQ/0sWAuNIB5feeLm55Io/I8Utv3l3TKYOhbgGwTsXY+jDk7oD+YnAi7hLN5oEBCwpg== + dependencies: + tslib "^2.3.1" + +"@aws-sdk/util-uri-escape@3.188.0": + version "3.188.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-uri-escape/-/util-uri-escape-3.188.0.tgz#6dbd4322f6cdc3252a75c6f729e1082369c468c0" + integrity sha512-4Y6AYZMT483Tiuq8dxz5WHIiPNdSFPGrl6tRTo2Oi2FcwypwmFhqgEGcqxeXDUJktvaCBxeA08DLr/AemVhPCg== + dependencies: + tslib "^2.3.1" + +"@aws-sdk/util-user-agent-browser@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.190.0.tgz#efb7eda04b94b260ae8e8ff5f623eeb9318f2bfd" + integrity sha512-c074wjsD+/u9vT7DVrBLkwVhn28I+OEHuHaqpTVCvAIjpueZ3oms0e99YJLfpdpEgdLavOroAsNFtAuRrrTZZw== + dependencies: + "@aws-sdk/types" "3.190.0" + bowser "^2.11.0" + tslib "^2.3.1" + +"@aws-sdk/util-user-agent-node@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.190.0.tgz#b4bdc523d63ca418f5ca54e26f836db91fe55c43" + integrity sha512-R36BMvvPX8frqFhU4lAsrOJ/2PJEHH/Jz1WZzO3GWmVSEAQQdHmo8tVPE3KOM7mZWe5Hj1dZudFAIxWHHFYKJA== + dependencies: + "@aws-sdk/node-config-provider" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + +"@aws-sdk/util-utf8-browser@3.188.0", "@aws-sdk/util-utf8-browser@^3.0.0": + version "3.188.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.188.0.tgz#484762bd600401350e148277731d6744a4a92225" + integrity sha512-jt627x0+jE+Ydr9NwkFstg3cUvgWh56qdaqAMDsqgRlKD21md/6G226z/Qxl7lb1VEW2LlmCx43ai/37Qwcj2Q== + dependencies: + tslib "^2.3.1" + +"@aws-sdk/util-utf8-node@3.188.0": + version "3.188.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-utf8-node/-/util-utf8-node-3.188.0.tgz#935bc58a71f2792ac6a4ec881f72bf9ceee008b4" + integrity sha512-hCgP4+C0Lekjpjt2zFJ2R/iHes5sBGljXa5bScOFAEkRUc0Qw0VNgTv7LpEbIOAwGmqyxBoCwBW0YHPW1DfmYQ== + dependencies: + "@aws-sdk/util-buffer-from" "3.188.0" + tslib "^2.3.1" + +"@aws-sdk/util-waiter@3.190.0": + version "3.190.0" + resolved "https://registry.npmjs.org/@aws-sdk/util-waiter/-/util-waiter-3.190.0.tgz#01348830fbd6a9a1a8e1fb22e87a29185d8e69fc" + integrity sha512-wlc56EElap8ua+9VCSqXaC4QsJQecYmC0C6A5EfFDtFlFyyd+vjpiLMU34juzrqJfVCx6aAUD2c9f+ezvk1G5Q== + dependencies: + "@aws-sdk/abort-controller" "3.190.0" + "@aws-sdk/types" "3.190.0" + tslib "^2.3.1" + "@babel/code-frame@7.12.11": version "7.12.11" resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" @@ -376,6 +1032,11 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" +"@extra-number/significant-digits@^1.1.1": + version "1.3.9" + resolved "https://registry.npmjs.org/@extra-number/significant-digits/-/significant-digits-1.3.9.tgz#06f3acc4aa688af3ed76bf5f30bca6de9d60883f" + integrity sha512-E5PY/bCwrNqEHh4QS6AQBinLZ+sxM1lT8tsSVYk8VwhWIPp6fCU/BMRVq0V8iJ8LwS3FHmaA4vUzb78s4BIIyA== + "@gar/promisify@^1.0.1", "@gar/promisify@^1.1.3": version "1.1.3" resolved "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6" @@ -496,6 +1157,13 @@ "@types/node" "*" jest-mock "^27.5.1" +"@jest/expect-utils@^28.1.3": + version "28.1.3" + resolved "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-28.1.3.tgz#58561ce5db7cd253a7edddbc051fb39dda50f525" + integrity sha512-wvbi9LUrHJLn3NlDW6wF2hvIMtd4JUl2QNVrjq+IBSHirgfrR3o9RnVtxzdEGO2n9JyIWwHnLfby5KzqBGg2YA== + dependencies: + jest-get-type "^28.0.2" + "@jest/fake-timers@^27.5.1": version "27.5.1" resolved "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz#76979745ce0579c8a94a4678af7a748eda8ada74" @@ -548,6 +1216,13 @@ terminal-link "^2.0.0" v8-to-istanbul "^8.1.0" +"@jest/schemas@^28.1.3": + version "28.1.3" + resolved "https://registry.npmjs.org/@jest/schemas/-/schemas-28.1.3.tgz#ad8b86a66f11f33619e3d7e1dcddd7f2d40ff905" + integrity sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg== + dependencies: + "@sinclair/typebox" "^0.24.1" + "@jest/source-map@^27.5.1": version "27.5.1" resolved "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz#6608391e465add4205eae073b55e7f279e04e8cf" @@ -620,6 +1295,18 @@ "@types/yargs" "^16.0.0" chalk "^4.0.0" +"@jest/types@^28.1.3": + version "28.1.3" + resolved "https://registry.npmjs.org/@jest/types/-/types-28.1.3.tgz#b05de80996ff12512bc5ceb1d208285a7d11748b" + integrity sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ== + dependencies: + "@jest/schemas" "^28.1.3" + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^17.0.8" + chalk "^4.0.0" + "@jridgewell/gen-mapping@^0.1.0": version "0.1.1" resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996" @@ -1369,6 +2056,11 @@ npmlog "^4.1.2" write-file-atomic "^3.0.3" +"@middy/core@^3.5.0": + version "3.6.1" + resolved "https://registry.npmjs.org/@middy/core/-/core-3.6.1.tgz#336f8e43a78bf37d37d26a79a6756e769c5a63d4" + integrity sha512-nxVJxLlrRkSpodNG2VBLQvPD2L0gZsS5sg32Vz9TZpyQIe98xHAaAnp6XQ2DcuF0UHpo7ZWqhIoOvVSrbGk7BA== + "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" @@ -1644,6 +2336,11 @@ resolved "https://registry.npmjs.org/@oozcitak/util/-/util-8.3.8.tgz#10f65fe1891fd8cde4957360835e78fd1936bfdd" integrity sha512-T8TbSnGsxo6TDBJx/Sgv/BlVJL3tshxZP7Aq5R1mSnM5OcHY2dQaxLMu2+E8u3gN0MLOzdjurqN4ZRVuzQycOQ== +"@sinclair/typebox@^0.24.1": + version "0.24.47" + resolved "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.47.tgz#530b67163714356f93e82bdb871e7db4b7bc564e" + integrity sha512-J4Xw0xYK4h7eC34MNOPQi6IkNxGRck6n4VJpWDzXIFVTW8I/D43Gf+NfWz/v/7NHlzWOPd3+T4PJ4OqklQ2u7A== + "@sindresorhus/is@^0.14.0": version "0.14.0" resolved "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea" @@ -1751,10 +2448,10 @@ dependencies: "@types/glob" "*" -"@types/aws-lambda@^8.10.104": - version "8.10.104" - resolved "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.104.tgz#01ec1d55a08bdf1201150d9ecae39ff7cca9ff4a" - integrity sha512-HXZJH8aBa06re9NCtFudOr21izYZycgXIVjd8vFBSNSf6Ca4GYD77TfKqwYgcDqv4olqj5KK+Ks7Xi5IXFbNGA== +"@types/aws-lambda@^8.10.108": + version "8.10.108" + resolved "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.108.tgz#ddadf0d9182f2f5e689ce5fc05b5f711fad6d115" + integrity sha512-1yh1W1WoqK3lGHy+V/Fi55zobxrDHUUsluCWdMlOXkCvtsCmHPXOG+CQ2STIL4B1g6xi6I6XzxaF8V9+zeIFLA== "@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14": version "7.1.19" @@ -1879,6 +2576,14 @@ jest-matcher-utils "^27.0.0" pretty-format "^27.0.0" +"@types/jest@^28.1.3": + version "28.1.8" + resolved "https://registry.npmjs.org/@types/jest/-/jest-28.1.8.tgz#6936409f3c9724ea431efd412ea0238a0f03b09b" + integrity sha512-8TJkV++s7B6XqnDrzR1m/TT0A0h948Pnl/097veySPN67VRAgQ4gZ7n2KfJo2rVq6njQjdxU3GCCyDvAeuHoiw== + dependencies: + expect "^28.0.0" + pretty-format "^28.0.0" + "@types/json-schema@*", "@types/json-schema@^7.0.7", "@types/json-schema@^7.0.9": version "7.0.11" resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" @@ -1889,6 +2594,13 @@ resolved "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== +"@types/lambda-tester@^3.6.1": + version "3.6.1" + resolved "https://registry.npmjs.org/@types/lambda-tester/-/lambda-tester-3.6.1.tgz#e09d79a191a4cef6ffa4fc4805eb614c8b15edd6" + integrity sha512-cKg0SdVrtjkiAJcVTGabD+u+eAIdjBJ+qgXiolw0hffW6B/1o+h63EptSUo/BTYpkoRxnHFkHS55y4cWja4xIw== + dependencies: + "@types/aws-lambda" "*" + "@types/license-checker@^25.0.3": version "25.0.3" resolved "https://registry.npmjs.org/@types/license-checker/-/license-checker-25.0.3.tgz#fbe80df33f1ac9d4bc2d4c167da3c2fd2999eb73" @@ -1953,6 +2665,11 @@ resolved "https://registry.npmjs.org/@types/node/-/node-14.18.29.tgz#a0c58d67a42f8953c13d32f0acda47ed26dfce40" integrity sha512-LhF+9fbIX4iPzhsRLpK5H7iPdvW8L4IwGciXQIOEcuF62+9nw/VQVsOViAOOGxY3OlOKGLFv0sWwJXdwQeTn6A== +"@types/node@^14.18.32": + version "14.18.32" + resolved "https://registry.npmjs.org/@types/node/-/node-14.18.32.tgz#8074f7106731f1a12ba993fe8bad86ee73905014" + integrity sha512-Y6S38pFr04yb13qqHf8uk1nHE3lXgQ30WZbv1mLliV9pt0NjvqdWttLcrOYLnXbOafknVYRHZGoMSpR9UwfYow== + "@types/node@^16.9.2": version "16.11.59" resolved "https://registry.npmjs.org/@types/node/-/node-16.11.59.tgz#823f238b9063ccc3b3b7f13186f143a57926c4f6" @@ -2000,6 +2717,13 @@ resolved "https://registry.npmjs.org/@types/semver/-/semver-7.3.12.tgz#920447fdd78d76b19de0438b7f60df3c4a80bf1c" integrity sha512-WwA1MW0++RfXmCr12xeYOOC5baSC9mSb0ZqCquFzKhcoF4TvHu5MKOuXsncgZcpVFhB1pXd5hZmM0ryAoCp12A== +"@types/sinon@^10.0.10": + version "10.0.13" + resolved "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.13.tgz#60a7a87a70d9372d0b7b38cc03e825f46981fb83" + integrity sha512-UVjDqJblVNQYvVNUsj0PuYYw0ELRmgt1Nt5Vk0pT5f16ROGfcKJY8o1HVuMOJOpD727RrGB9EGvoaTQE5tgxZQ== + dependencies: + "@types/sinonjs__fake-timers" "*" + "@types/sinon@^9.0.11": version "9.0.11" resolved "https://registry.npmjs.org/@types/sinon/-/sinon-9.0.11.tgz#7af202dda5253a847b511c929d8b6dda170562eb" @@ -2081,6 +2805,13 @@ dependencies: "@types/yargs-parser" "*" +"@types/yargs@^17.0.8": + version "17.0.13" + resolved "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.13.tgz#34cced675ca1b1d51fcf4d34c3c6f0fa142a5c76" + integrity sha512-9sWaruZk2JGxIQU+IhI1fhPYRcQ0UuTNuKuCW9bR5fp7qi2Llf7WDzNa17Cy7TKnh3cdxDOiyTu6gaLS0eDatg== + dependencies: + "@types/yargs-parser" "*" + "@types/yarnpkg__lockfile@^1.1.5": version "1.1.5" resolved "https://registry.npmjs.org/@types/yarnpkg__lockfile/-/yarnpkg__lockfile-1.1.5.tgz#9639020e1fb65120a2f4387db8f1e8b63efdf229" @@ -2412,6 +3143,11 @@ app-root-path@^2.2.1: resolved "https://registry.npmjs.org/app-root-path/-/app-root-path-2.2.1.tgz#d0df4a682ee408273583d43f6f79e9892624bc9a" integrity sha512-91IFKeKk7FjfmezPKkwtaRvSpnUc4gDwPAjA1YZ9Gn0q0PPeW+vbeUsZuyDwjI7+QTHhcLen2v25fi/AmhvbJA== +app-root-path@^3.0.0: + version "3.1.0" + resolved "https://registry.npmjs.org/app-root-path/-/app-root-path-3.1.0.tgz#5971a2fc12ba170369a7a1ef018c71e6e47c2e86" + integrity sha512-biN3PwB2gUtjaYy/isrU3aNWI5w+fAfvHkSvCKeQGxhmYpwKFUxudR3Yya+KqVRHBmEDYh+/lTozYCFbmzX4nA== + append-transform@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/append-transform/-/append-transform-2.0.0.tgz#99d9d29c7b38391e6f428d28ce136551f0b77e12" @@ -2617,6 +3353,23 @@ available-typed-arrays@^1.0.5: resolved "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7" integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw== +aws-sdk-client-mock-jest@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/aws-sdk-client-mock-jest/-/aws-sdk-client-mock-jest-2.0.0.tgz#d175615167684fb639d31f5e237d5d0d8bae3f9f" + integrity sha512-HwJeJThngXDUyyyd3Hk12Ailu3smhQzyox+nrF14TxE/LNSJsSmJ2rXahzj7Zdyxn9jDSe2h2ulrfUNYgbPYlw== + dependencies: + "@types/jest" "^28.1.3" + tslib "^2.1.0" + +aws-sdk-client-mock@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/aws-sdk-client-mock/-/aws-sdk-client-mock-2.0.0.tgz#44058cf2550726612dfbbf9ddf81d9d8360313a0" + integrity sha512-yjC39Ud78Cgwu9jLc7LoFILT8xtyvR9doCfd8tjeqaOI4oQ5IeTaIYDezWpWKndmrjXZzVLw/odWKP1hpuvsVQ== + dependencies: + "@types/sinon" "^10.0.10" + sinon "^11.1.1" + tslib "^2.1.0" + aws-sdk-mock@5.6.0: version "5.6.0" resolved "https://registry.npmjs.org/aws-sdk-mock/-/aws-sdk-mock-5.6.0.tgz#8cd44e2e8d65f7f38dea8d1ad073fa38f9c719d8" @@ -2762,6 +3515,11 @@ bluebird@^3.5.0: resolved "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== +bowser@^2.11.0: + version "2.11.0" + resolved "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz#5ca3c35757a7aa5771500c70a73a9f91ef420a8f" + integrity sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA== + boxen@^5.0.0: version "5.1.2" resolved "https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz#788cb686fc83c1f486dfa8a40c68fc2b831d2b50" @@ -3978,6 +4736,11 @@ diff-sequences@^27.5.1: resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz#eaecc0d327fd68c8d9672a1e64ab8dccb2ef5327" integrity sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ== +diff-sequences@^28.1.1: + version "28.1.1" + resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-28.1.1.tgz#9989dc731266dc2903457a70e996f3a041913ac6" + integrity sha512-FU0iFaH/E23a+a718l8Qa/19bF9p06kgE0KipMOMadwa3SjnaElKzPaUC0vnibs6/B/9ni97s61mcejk8W1fQw== + diff@^4.0.1, diff@^4.0.2: version "4.0.2" resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" @@ -4759,6 +5522,17 @@ expect@^27.5.1: jest-matcher-utils "^27.5.1" jest-message-util "^27.5.1" +expect@^28.0.0: + version "28.1.3" + resolved "https://registry.npmjs.org/expect/-/expect-28.1.3.tgz#90a7c1a124f1824133dd4533cce2d2bdcb6603ec" + integrity sha512-eEh0xn8HlsuOBxFgIss+2mX85VAS4Qy3OSkjV7rlBWljtA4oWH37glVGyOZSZvErDT/yBywZdPGwCXuTvSG85g== + dependencies: + "@jest/expect-utils" "^28.1.3" + jest-get-type "^28.0.2" + jest-matcher-utils "^28.1.3" + jest-message-util "^28.1.3" + jest-util "^28.1.3" + ext@^1.1.2: version "1.7.0" resolved "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz#0ea4383c0103d60e70be99e9a7f11027a33c4f5f" @@ -4845,6 +5619,13 @@ fast-memoize@^2.5.2: resolved "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz#79e3bb6a4ec867ea40ba0e7146816f6cdce9b57e" integrity sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw== +fast-xml-parser@4.0.11: + version "4.0.11" + resolved "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.0.11.tgz#42332a9aca544520631c8919e6ea871c0185a985" + integrity sha512-4aUg3aNRR/WjQAcpceODG1C3x3lFANXRo8+1biqfieHmg9pyMt7qB4lQV/Ta6sJCTbA5vfD8fnA8S54JATiFUA== + dependencies: + strnum "^1.0.5" + fastq@^1.6.0: version "1.13.0" resolved "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c" @@ -6310,6 +7091,16 @@ jest-diff@^27.5.1: jest-get-type "^27.5.1" pretty-format "^27.5.1" +jest-diff@^28.1.3: + version "28.1.3" + resolved "https://registry.npmjs.org/jest-diff/-/jest-diff-28.1.3.tgz#948a192d86f4e7a64c5264ad4da4877133d8792f" + integrity sha512-8RqP1B/OXzjjTWkqMX67iqgwBVJRgCyKD3L9nq+6ZqJMdvjE8RgHktqZ6jNrkdMT+dJuYNI3rhQpxaz7drJHfw== + dependencies: + chalk "^4.0.0" + diff-sequences "^28.1.1" + jest-get-type "^28.0.2" + pretty-format "^28.1.3" + jest-docblock@^27.5.1: version "27.5.1" resolved "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz#14092f364a42c6108d42c33c8cf30e058e25f6c0" @@ -6363,6 +7154,11 @@ jest-get-type@^27.5.1: resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz#3cd613c507b0f7ace013df407a1c1cd578bcb4f1" integrity sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw== +jest-get-type@^28.0.2: + version "28.0.2" + resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-28.0.2.tgz#34622e628e4fdcd793d46db8a242227901fcf203" + integrity sha512-ioj2w9/DxSYHfOm5lJKCdcAmPJzQXmbM/Url3rhlghrPvT3tt+7a/+oXc9azkKmLvoiXjtV83bEWqi+vs5nlPA== + jest-haste-map@^27.5.1: version "27.5.1" resolved "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz#9fd8bd7e7b4fa502d9c6164c5640512b4e811e7f" @@ -6434,6 +7230,16 @@ jest-matcher-utils@^27.0.0, jest-matcher-utils@^27.5.1: jest-get-type "^27.5.1" pretty-format "^27.5.1" +jest-matcher-utils@^28.1.3: + version "28.1.3" + resolved "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-28.1.3.tgz#5a77f1c129dd5ba3b4d7fc20728806c78893146e" + integrity sha512-kQeJ7qHemKfbzKoGjHHrRKH6atgxMk8Enkk2iPQ3XwO6oE/KYD8lMYOziCkeSB9G4adPM4nR1DE8Tf5JeWH6Bw== + dependencies: + chalk "^4.0.0" + jest-diff "^28.1.3" + jest-get-type "^28.0.2" + pretty-format "^28.1.3" + jest-message-util@^27.5.1: version "27.5.1" resolved "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz#bdda72806da10d9ed6425e12afff38cd1458b6cf" @@ -6449,6 +7255,21 @@ jest-message-util@^27.5.1: slash "^3.0.0" stack-utils "^2.0.3" +jest-message-util@^28.1.3: + version "28.1.3" + resolved "https://registry.npmjs.org/jest-message-util/-/jest-message-util-28.1.3.tgz#232def7f2e333f1eecc90649b5b94b0055e7c43d" + integrity sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g== + dependencies: + "@babel/code-frame" "^7.12.13" + "@jest/types" "^28.1.3" + "@types/stack-utils" "^2.0.0" + chalk "^4.0.0" + graceful-fs "^4.2.9" + micromatch "^4.0.4" + pretty-format "^28.1.3" + slash "^3.0.0" + stack-utils "^2.0.3" + jest-mock@^27.5.1: version "27.5.1" resolved "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz#19948336d49ef4d9c52021d34ac7b5f36ff967d6" @@ -6595,6 +7416,18 @@ jest-util@^27.0.0, jest-util@^27.5.1: graceful-fs "^4.2.9" picomatch "^2.2.3" +jest-util@^28.1.3: + version "28.1.3" + resolved "https://registry.npmjs.org/jest-util/-/jest-util-28.1.3.tgz#f4f932aa0074f0679943220ff9cbba7e497028b0" + integrity sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ== + dependencies: + "@jest/types" "^28.1.3" + "@types/node" "*" + chalk "^4.0.0" + ci-info "^3.2.0" + graceful-fs "^4.2.9" + picomatch "^2.2.3" + jest-validate@^27.5.1: version "27.5.1" resolved "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz#9197d54dc0bdb52260b8db40b46ae668e04df067" @@ -7004,6 +7837,16 @@ kleur@^3.0.3: resolved "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== +lambda-event-mock@^1.5.0: + version "1.5.0" + resolved "https://registry.npmjs.org/lambda-event-mock/-/lambda-event-mock-1.5.0.tgz#9cb1ce2bec4271f918d485fef0a327d194dd120f" + integrity sha512-vx1d+vZqi7FF6B3+mAfHnY/6Tlp6BheL2ta0MJS0cIRB3Rc4I5cviHTkiJxHdE156gXx3ZjlQRJrS4puXvtrhA== + dependencies: + "@extra-number/significant-digits" "^1.1.1" + clone-deep "^4.0.1" + uuid "^3.3.3" + vandium-utils "^1.2.0" + lambda-leak@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/lambda-leak/-/lambda-leak-2.0.0.tgz#771985d3628487f6e885afae2b54510dcfb2cd7e" @@ -7022,6 +7865,20 @@ lambda-tester@^3.6.0: uuid "^3.3.2" vandium-utils "^1.1.1" +lambda-tester@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/lambda-tester/-/lambda-tester-4.0.1.tgz#91f0fc1266cdceae09a5ddbbdbc209c214beb98c" + integrity sha512-ft6XHk84B6/dYEzyI3anKoGWz08xQ5allEHiFYDUzaYTymgVK7tiBkCEbuWx+MFvH7OpFNsJXVtjXm0X8iH3Iw== + dependencies: + app-root-path "^3.0.0" + dotenv "^8.0.0" + dotenv-json "^1.0.0" + lambda-event-mock "^1.5.0" + lambda-leak "^2.0.0" + semver "^6.1.1" + uuid "^3.3.3" + vandium-utils "^2.0.0" + latest-version@^5.1.0: version "5.1.0" resolved "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz#119dfe908fe38d15dfa43ecd13fa12ec8832face" @@ -7206,6 +8063,11 @@ lodash._reinterpolate@^3.0.0: resolved "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" integrity sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA== +lodash.clonedeep@^4.5.0: + version "4.5.0" + resolved "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" + integrity sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ== + lodash.defaults@^4.2.0: version "4.2.0" resolved "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz#d09178716ffea4dde9e5fb7b37f6f0802274580c" @@ -7251,6 +8113,11 @@ lodash.merge@^4.6.2: resolved "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== +lodash.pickby@^4.6.0: + version "4.6.0" + resolved "https://registry.npmjs.org/lodash.pickby/-/lodash.pickby-4.6.0.tgz#7dea21d8c18d7703a27c704c15d3b84a67e33aff" + integrity sha512-AZV+GsS/6ckvPOVQPXSiFFacKvKB4kOQu6ynt9wz0F3LO4R9Ij4K1ddYsIytDpSgLz88JHd9P+oaLeej5/Sl7Q== + lodash.template@^4.5.0: version "4.5.0" resolved "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab" @@ -8901,6 +9768,16 @@ pretty-format@^27.0.0, pretty-format@^27.5.1: ansi-styles "^5.0.0" react-is "^17.0.1" +pretty-format@^28.0.0, pretty-format@^28.1.3: + version "28.1.3" + resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-28.1.3.tgz#c9fba8cedf99ce50963a11b27d982a9ae90970d5" + integrity sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q== + dependencies: + "@jest/schemas" "^28.1.3" + ansi-regex "^5.0.1" + ansi-styles "^5.0.0" + react-is "^18.0.0" + pretty-ms@^7.0.1: version "7.0.1" resolved "https://registry.npmjs.org/pretty-ms/-/pretty-ms-7.0.1.tgz#7d903eaab281f7d8e03c66f867e239dc32fb73e8" @@ -9155,6 +10032,11 @@ react-is@^17.0.1: resolved "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== +react-is@^18.0.0: + version "18.2.0" + resolved "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" + integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== + read-cmd-shim@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/read-cmd-shim/-/read-cmd-shim-2.0.0.tgz#4a50a71d6f0965364938e9038476f7eede3928d9" @@ -10148,6 +11030,11 @@ strip-json-comments@~2.0.1: resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ== +strnum@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz#5c4e829fe15ad4ff0d20c3db5ac97b73c9b072db" + integrity sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA== + strong-log-transformer@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/strong-log-transformer/-/strong-log-transformer-2.1.0.tgz#0f5ed78d325e0421ac6f90f7f10e691d6ae3ae10" @@ -10489,12 +11376,12 @@ tsconfig-paths@^3.10.1, tsconfig-paths@^3.14.1: minimist "^1.2.6" strip-bom "^3.0.0" -tslib@^1.8.1, tslib@^1.9.0: +tslib@^1.11.1, tslib@^1.8.1, tslib@^1.9.0: version "1.14.1" resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.0.1: +tslib@^2.0.1, tslib@^2.1.0, tslib@^2.3.1: version "2.4.0" resolved "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3" integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== @@ -10618,6 +11505,11 @@ typescript@^4.5.5: resolved "https://registry.npmjs.org/typescript/-/typescript-4.8.3.tgz#d59344522c4bc464a65a730ac695007fdb66dd88" integrity sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig== +typescript@^4.8.4: + version "4.8.4" + resolved "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6" + integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ== + typescript@~3.8.3: version "3.8.3" resolved "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061" @@ -10820,7 +11712,7 @@ uuid@8.0.0: resolved "https://registry.npmjs.org/uuid/-/uuid-8.0.0.tgz#bc6ccf91b5ff0ac07bbcdbf1c7c4e150db4dbb6c" integrity sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw== -uuid@^3.3.2: +uuid@^3.3.2, uuid@^3.3.3: version "3.4.0" resolved "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== @@ -10871,11 +11763,16 @@ validate-npm-package-name@^4.0.0: dependencies: builtins "^5.0.0" -vandium-utils@^1.1.1: +vandium-utils@^1.1.1, vandium-utils@^1.2.0: version "1.2.0" resolved "https://registry.npmjs.org/vandium-utils/-/vandium-utils-1.2.0.tgz#44735de4b7641a05de59ebe945f174e582db4f59" integrity sha512-yxYUDZz4BNo0CW/z5w4mvclitt5zolY7zjW97i6tTE+sU63cxYs1A6Bl9+jtIQa3+0hkeqY87k+7ptRvmeHe3g== +vandium-utils@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/vandium-utils/-/vandium-utils-2.0.0.tgz#87389bdcb85551aaaba1cc95937ba756589214fa" + integrity sha512-XWbQ/0H03TpYDXk8sLScBEZpE7TbA0CHDL6/Xjt37IBYKLsHUQuBlL44ttAUs9zoBOLFxsW7HehXcuWCNyqOxQ== + verror@1.10.0: version "1.10.0" resolved "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400"