@cdklabs/cdk-ecs-codedeploy 0.0.446 → 0.0.447
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws/lambda-invoke-store/README.md +25 -1
- package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +12 -0
- package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +12 -0
- package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +6 -0
- package/node_modules/@aws/lambda-invoke-store/package.json +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +4188 -578
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commandBuilder.js +6 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/AddTagsToOnPremisesInstancesCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetApplicationRevisionsCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetApplicationsCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentGroupsCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentInstancesCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentTargetsCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentsCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetOnPremisesInstancesCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ContinueDeploymentCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateApplicationCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentConfigCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentGroupCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteApplicationCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteDeploymentConfigCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteDeploymentGroupCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteGitHubAccountTokenCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteResourcesByExternalIdCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeregisterOnPremisesInstanceCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetApplicationCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetApplicationRevisionCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentConfigCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentGroupCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentInstanceCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentTargetCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetOnPremisesInstanceCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListApplicationRevisionsCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListApplicationsCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentConfigsCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentGroupsCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentInstancesCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentTargetsCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentsCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListGitHubAccountTokenNamesCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListOnPremisesInstancesCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListTagsForResourceCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/PutLifecycleEventHookExecutionStatusCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RegisterApplicationRevisionCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RegisterOnPremisesInstanceCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RemoveTagsFromOnPremisesInstancesCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/SkipWaitTimeForInstanceTerminationCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/StopDeploymentCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/TagResourceCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UntagResourceCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UpdateApplicationCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UpdateDeploymentGroupCommand.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/AddTagsToOnPremisesInstancesCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationRevisionsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentGroupsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentInstancesCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentTargetsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetOnPremisesInstancesCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ContinueDeploymentCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateApplicationCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentConfigCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentGroupCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteApplicationCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentConfigCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentGroupCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteGitHubAccountTokenCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteResourcesByExternalIdCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeregisterOnPremisesInstanceCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationRevisionCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentConfigCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentGroupCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentInstanceCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentTargetCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetOnPremisesInstanceCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationRevisionsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentConfigsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentGroupsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentInstancesCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentTargetsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListGitHubAccountTokenNamesCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListOnPremisesInstancesCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterApplicationRevisionCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterOnPremisesInstanceCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/StopDeploymentCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/TagResourceCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UntagResourceCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateApplicationCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateDeploymentGroupCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commandBuilder.d.ts +46 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/AddTagsToOnPremisesInstancesCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetApplicationRevisionsCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetApplicationsCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentGroupsCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentInstancesCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentTargetsCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentsCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetOnPremisesInstancesCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ContinueDeploymentCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateDeploymentCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateDeploymentConfigCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateDeploymentGroupCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteDeploymentConfigCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteDeploymentGroupCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteGitHubAccountTokenCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteResourcesByExternalIdCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeregisterOnPremisesInstanceCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetApplicationRevisionCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentConfigCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentGroupCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentInstanceCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentTargetCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetOnPremisesInstanceCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListApplicationRevisionsCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentConfigsCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentGroupsCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentInstancesCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentTargetsCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListGitHubAccountTokenNamesCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListOnPremisesInstancesCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/RegisterApplicationRevisionCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/RegisterOnPremisesInstanceCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/StopDeploymentCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/UpdateDeploymentGroupCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/package.json +8 -10
- package/node_modules/@aws-sdk/core/account-id-endpoint.d.ts +1 -3
- package/node_modules/@aws-sdk/core/client.d.ts +1 -3
- package/node_modules/@aws-sdk/core/httpAuthSchemes.d.ts +1 -3
- package/node_modules/@aws-sdk/core/package.json +10 -17
- package/node_modules/@aws-sdk/core/protocols.d.ts +1 -3
- package/node_modules/@aws-sdk/core/util.d.ts +1 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +172 -1
- package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +58 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -8
- package/node_modules/@aws-sdk/nested-clients/cognito-identity.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +13 -25
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +13 -17
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +12 -15
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +12 -15
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +13 -25
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commandBuilder.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/GetIdCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commandBuilder.js +8 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +2 -17
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commandBuilder.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commandBuilder.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commandBuilder.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commandBuilder.d.ts +46 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +42 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commandBuilder.d.ts +42 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/commandBuilder.d.ts +42 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commandBuilder.d.ts +46 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +8 -10
- package/node_modules/@aws-sdk/nested-clients/signin.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/sso-oidc.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/sso.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/sts.d.ts +1 -3
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +236 -3
- package/node_modules/@aws-sdk/xml-builder/package.json +3 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +8 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +18 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +108 -63
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +11 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +31 -27
- package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Js.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Node.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/client-command-builder.js +17 -0
- package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.js +92 -0
- package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js +3 -56
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/EventStreamCodec.js +5 -3
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/splitMessage.js +7 -6
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.js +31 -27
- package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Js.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Node.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/submodules/client/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/client-command-builder.d.ts +22 -0
- package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/command.d.ts +5 -6
- package/node_modules/@smithy/core/dist-types/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/submodules/config/defaults-mode/constants.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.browser.d.ts +4 -5
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +4 -5
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromInstructions.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/endpointMiddleware.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/getEndpointPlugin.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/checksum/ChecksumStream.d.ts +22 -14
- package/node_modules/@smithy/core/package.json +2 -3
- package/node_modules/@smithy/credential-provider-imds/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/package.json +4 -4
- package/node_modules/@smithy/signature-v4/package.json +3 -4
- package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/package.json +2 -2
- package/node_modules/@aws-crypto/crc32/CHANGELOG.md +0 -100
- package/node_modules/@aws-crypto/crc32/LICENSE +0 -201
- package/node_modules/@aws-crypto/crc32/README.md +0 -16
- package/node_modules/@aws-crypto/crc32/build/main/aws_crc32.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/main/aws_crc32.js +0 -31
- package/node_modules/@aws-crypto/crc32/build/main/aws_crc32.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/build/main/index.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/main/index.js +0 -108
- package/node_modules/@aws-crypto/crc32/build/main/index.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/build/module/aws_crc32.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/module/aws_crc32.js +0 -28
- package/node_modules/@aws-crypto/crc32/build/module/aws_crc32.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/build/module/index.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/module/index.js +0 -103
- package/node_modules/@aws-crypto/crc32/build/module/index.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/package.json +0 -32
- package/node_modules/@aws-crypto/crc32/src/aws_crc32.ts +0 -24
- package/node_modules/@aws-crypto/crc32/src/index.ts +0 -92
- package/node_modules/@aws-crypto/crc32/tsconfig.json +0 -9
- package/node_modules/@aws-crypto/crc32/tsconfig.module.json +0 -7
- package/node_modules/@aws-crypto/sha256-browser/CHANGELOG.md +0 -118
- package/node_modules/@aws-crypto/sha256-browser/LICENSE +0 -202
- package/node_modules/@aws-crypto/sha256-browser/README.md +0 -31
- package/node_modules/@aws-crypto/sha256-browser/build/main/constants.d.ts +0 -10
- package/node_modules/@aws-crypto/sha256-browser/build/main/constants.js +0 -43
- package/node_modules/@aws-crypto/sha256-browser/build/main/constants.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.d.ts +0 -8
- package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.js +0 -30
- package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/main/index.d.ts +0 -2
- package/node_modules/@aws-crypto/sha256-browser/build/main/index.js +0 -8
- package/node_modules/@aws-crypto/sha256-browser/build/main/index.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.d.ts +0 -2
- package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.js +0 -11
- package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.d.ts +0 -10
- package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.js +0 -56
- package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/module/constants.d.ts +0 -10
- package/node_modules/@aws-crypto/sha256-browser/build/module/constants.js +0 -40
- package/node_modules/@aws-crypto/sha256-browser/build/module/constants.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.d.ts +0 -8
- package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.js +0 -27
- package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/module/index.d.ts +0 -2
- package/node_modules/@aws-crypto/sha256-browser/build/module/index.js +0 -3
- package/node_modules/@aws-crypto/sha256-browser/build/module/index.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.d.ts +0 -2
- package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.js +0 -7
- package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.d.ts +0 -10
- package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.js +0 -53
- package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-browser/package.json +0 -33
- package/node_modules/@aws-crypto/sha256-browser/src/constants.ts +0 -41
- package/node_modules/@aws-crypto/sha256-browser/src/crossPlatformSha256.ts +0 -30
- package/node_modules/@aws-crypto/sha256-browser/src/index.ts +0 -2
- package/node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts +0 -9
- package/node_modules/@aws-crypto/sha256-browser/src/webCryptoSha256.ts +0 -71
- package/node_modules/@aws-crypto/sha256-browser/tsconfig.json +0 -10
- package/node_modules/@aws-crypto/sha256-browser/tsconfig.module.json +0 -7
- package/node_modules/@aws-crypto/sha256-js/CHANGELOG.md +0 -106
- package/node_modules/@aws-crypto/sha256-js/LICENSE +0 -201
- package/node_modules/@aws-crypto/sha256-js/README.md +0 -29
- package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.d.ts +0 -17
- package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.js +0 -124
- package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/main/constants.d.ts +0 -20
- package/node_modules/@aws-crypto/sha256-js/build/main/constants.js +0 -98
- package/node_modules/@aws-crypto/sha256-js/build/main/constants.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/main/index.d.ts +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/main/index.js +0 -5
- package/node_modules/@aws-crypto/sha256-js/build/main/index.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.d.ts +0 -12
- package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.js +0 -85
- package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.d.ts +0 -5
- package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.js +0 -322
- package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.d.ts +0 -17
- package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js +0 -121
- package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/module/constants.d.ts +0 -20
- package/node_modules/@aws-crypto/sha256-js/build/module/constants.js +0 -95
- package/node_modules/@aws-crypto/sha256-js/build/module/constants.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/module/index.d.ts +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/module/index.js +0 -2
- package/node_modules/@aws-crypto/sha256-js/build/module/index.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.d.ts +0 -12
- package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js +0 -82
- package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.d.ts +0 -5
- package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.js +0 -319
- package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.js.map +0 -1
- package/node_modules/@aws-crypto/sha256-js/package.json +0 -32
- package/node_modules/@aws-crypto/sha256-js/src/RawSha256.ts +0 -164
- package/node_modules/@aws-crypto/sha256-js/src/constants.ts +0 -98
- package/node_modules/@aws-crypto/sha256-js/src/index.ts +0 -1
- package/node_modules/@aws-crypto/sha256-js/src/jsSha256.ts +0 -94
- package/node_modules/@aws-crypto/sha256-js/src/knownHashes.fixture.ts +0 -401
- package/node_modules/@aws-crypto/sha256-js/tsconfig.json +0 -10
- package/node_modules/@aws-crypto/sha256-js/tsconfig.module.json +0 -7
- package/node_modules/@aws-crypto/supports-web-crypto/CHANGELOG.md +0 -66
- package/node_modules/@aws-crypto/supports-web-crypto/LICENSE +0 -202
- package/node_modules/@aws-crypto/supports-web-crypto/README.md +0 -32
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.d.ts +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.js +0 -5
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.js.map +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.d.ts +0 -4
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.js +0 -69
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.js.map +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.d.ts +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.js +0 -2
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.js.map +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.d.ts +0 -4
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.js +0 -62
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.js.map +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/package.json +0 -28
- package/node_modules/@aws-crypto/supports-web-crypto/src/index.ts +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/src/supportsWebCrypto.ts +0 -76
- package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.json +0 -10
- package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.module.json +0 -7
- package/node_modules/@aws-crypto/util/CHANGELOG.md +0 -71
- package/node_modules/@aws-crypto/util/LICENSE +0 -201
- package/node_modules/@aws-crypto/util/README.md +0 -16
- package/node_modules/@aws-crypto/util/build/main/convertToBuffer.d.ts +0 -2
- package/node_modules/@aws-crypto/util/build/main/convertToBuffer.js +0 -24
- package/node_modules/@aws-crypto/util/build/main/convertToBuffer.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/main/index.d.ts +0 -4
- package/node_modules/@aws-crypto/util/build/main/index.js +0 -14
- package/node_modules/@aws-crypto/util/build/main/index.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/main/isEmptyData.d.ts +0 -2
- package/node_modules/@aws-crypto/util/build/main/isEmptyData.js +0 -13
- package/node_modules/@aws-crypto/util/build/main/isEmptyData.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/main/numToUint8.d.ts +0 -1
- package/node_modules/@aws-crypto/util/build/main/numToUint8.js +0 -15
- package/node_modules/@aws-crypto/util/build/main/numToUint8.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.d.ts +0 -1
- package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js +0 -20
- package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/module/convertToBuffer.d.ts +0 -2
- package/node_modules/@aws-crypto/util/build/module/convertToBuffer.js +0 -20
- package/node_modules/@aws-crypto/util/build/module/convertToBuffer.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/module/index.d.ts +0 -4
- package/node_modules/@aws-crypto/util/build/module/index.js +0 -7
- package/node_modules/@aws-crypto/util/build/module/index.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/module/isEmptyData.d.ts +0 -2
- package/node_modules/@aws-crypto/util/build/module/isEmptyData.js +0 -9
- package/node_modules/@aws-crypto/util/build/module/isEmptyData.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/module/numToUint8.d.ts +0 -1
- package/node_modules/@aws-crypto/util/build/module/numToUint8.js +0 -11
- package/node_modules/@aws-crypto/util/build/module/numToUint8.js.map +0 -1
- package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.d.ts +0 -1
- package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js +0 -16
- package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js.map +0 -1
- package/node_modules/@aws-crypto/util/package.json +0 -32
- package/node_modules/@aws-crypto/util/src/convertToBuffer.ts +0 -30
- package/node_modules/@aws-crypto/util/src/index.ts +0 -7
- package/node_modules/@aws-crypto/util/src/isEmptyData.ts +0 -12
- package/node_modules/@aws-crypto/util/src/numToUint8.ts +0 -11
- package/node_modules/@aws-crypto/util/src/uint32ArrayFrom.ts +0 -16
- package/node_modules/@aws-crypto/util/tsconfig.json +0 -9
- package/node_modules/@aws-crypto/util/tsconfig.module.json +0 -7
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/bdd.js +0 -46
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/CodeDeployServiceException.js +0 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/errors.js +0 -1321
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.browser.js +0 -32
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.js +0 -45
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.native.js +0 -12
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.shared.js +0 -39
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/schemas/schemas_0.js +0 -2398
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +0 -869
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +0 -862
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +0 -42
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +0 -27
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +0 -71
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +0 -49
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +0 -13
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +0 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +0 -29
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +0 -25
- package/node_modules/@aws-sdk/util-locate-window/LICENSE +0 -201
- package/node_modules/@aws-sdk/util-locate-window/README.md +0 -4
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -12
- package/node_modules/@aws-sdk/util-locate-window/dist-es/index.js +0 -10
- package/node_modules/@aws-sdk/util-locate-window/dist-types/index.d.ts +0 -6
- package/node_modules/@aws-sdk/util-locate-window/dist-types/ts3.4/index.d.ts +0 -1
- package/node_modules/@aws-sdk/util-locate-window/package.json +0 -54
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +0 -57
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +0 -234
- package/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
- package/node_modules/@smithy/is-array-buffer/README.md +0 -10
- package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +0 -32
- package/node_modules/@smithy/is-array-buffer/dist-es/index.js +0 -2
- package/node_modules/@smithy/is-array-buffer/dist-types/index.d.ts +0 -4
- package/node_modules/@smithy/is-array-buffer/dist-types/ts3.4/index.d.ts +0 -4
- package/node_modules/@smithy/is-array-buffer/package.json +0 -60
- package/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
- package/node_modules/@smithy/util-buffer-from/README.md +0 -10
- package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +0 -47
- package/node_modules/@smithy/util-buffer-from/dist-es/index.js +0 -14
- package/node_modules/@smithy/util-buffer-from/dist-types/index.d.ts +0 -13
- package/node_modules/@smithy/util-buffer-from/dist-types/ts3.4/index.d.ts +0 -13
- package/node_modules/@smithy/util-buffer-from/package.json +0 -61
- package/node_modules/@smithy/util-utf8/LICENSE +0 -201
- package/node_modules/@smithy/util-utf8/README.md +0 -4
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
- package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +0 -5
- package/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
- package/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +0 -10
- package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +0 -9
- package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +0 -10
- package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/index.d.ts +0 -3
- package/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts +0 -3
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/package.json +0 -66
- /package/node_modules/@smithy/{core/dist-es/submodules/endpoints/middleware-endpoint/types.js → types/dist-es/endpoints/EndpointParameterInstructions.js} +0 -0
- /package/node_modules/@smithy/{core/dist-types/submodules/endpoints/middleware-endpoint/types.d.ts → types/dist-types/endpoints/EndpointParameterInstructions.d.ts} +0 -0
|
@@ -2,6 +2,4 @@
|
|
|
2
2
|
* Do not edit:
|
|
3
3
|
* This is a compatibility redirect for contexts that do not understand package.json exports field.
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
export * from "@aws-sdk/nested-clients/dist-types/submodules/sts/index.d";
|
|
7
|
-
}
|
|
5
|
+
export * from "./dist-types/submodules/sts/index";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/signature-v4-multi-region",
|
|
3
|
-
"version": "3.996.
|
|
3
|
+
"version": "3.996.38",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
6
|
"build:browser": "node ./test-browser/browser-build/esbuild",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/types": "^3.973.
|
|
30
|
-
"@smithy/signature-v4": "^5.
|
|
31
|
-
"@smithy/types": "^4.
|
|
29
|
+
"@aws-sdk/types": "^3.973.15",
|
|
30
|
+
"@smithy/signature-v4": "^5.6.1",
|
|
31
|
+
"@smithy/types": "^4.15.1",
|
|
32
32
|
"tslib": "^2.6.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1079.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aws-sdk/core": "^3.974.
|
|
33
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
34
|
-
"@aws-sdk/types": "^3.973.
|
|
35
|
-
"@smithy/core": "^3.
|
|
36
|
-
"@smithy/types": "^4.
|
|
32
|
+
"@aws-sdk/core": "^3.974.27",
|
|
33
|
+
"@aws-sdk/nested-clients": "^3.997.27",
|
|
34
|
+
"@aws-sdk/types": "^3.973.15",
|
|
35
|
+
"@smithy/core": "^3.29.0",
|
|
36
|
+
"@smithy/types": "^4.15.1",
|
|
37
37
|
"tslib": "^2.6.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/types",
|
|
3
|
-
"version": "3.973.
|
|
3
|
+
"version": "3.973.15",
|
|
4
4
|
"main": "./dist-cjs/index.js",
|
|
5
5
|
"module": "./dist-es/index.js",
|
|
6
6
|
"types": "./dist-types/index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"directory": "packages-internal/types"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@smithy/types": "^4.
|
|
45
|
+
"@smithy/types": "^4.15.1",
|
|
46
46
|
"tslib": "^2.6.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
const { parseXML } = require("./xml-parser");
|
|
2
|
-
exports.parseXML = parseXML;
|
|
3
|
-
|
|
4
1
|
const ATTR_ESCAPE_RE = /[&<>"]/g;
|
|
5
2
|
const ATTR_ESCAPE_MAP = {
|
|
6
3
|
"&": "&",
|
|
@@ -125,5 +122,241 @@ class XmlNode {
|
|
|
125
122
|
}
|
|
126
123
|
}
|
|
127
124
|
|
|
125
|
+
function parseXML(xml) {
|
|
126
|
+
const state = new AwsXmlParser(xml);
|
|
127
|
+
return state.parse();
|
|
128
|
+
}
|
|
129
|
+
class AwsXmlParser {
|
|
130
|
+
x;
|
|
131
|
+
i = 0;
|
|
132
|
+
z;
|
|
133
|
+
constructor(x) {
|
|
134
|
+
this.x = x;
|
|
135
|
+
this.x = x.replace(/\r\n?/g, "\n");
|
|
136
|
+
this.z = this.x.length;
|
|
137
|
+
}
|
|
138
|
+
parse() {
|
|
139
|
+
const p = this;
|
|
140
|
+
const { z } = p;
|
|
141
|
+
while (p.i < z) {
|
|
142
|
+
p.trim();
|
|
143
|
+
if (p.i >= z) {
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
if (p.isNext("<?")) {
|
|
147
|
+
p.readTo("?>");
|
|
148
|
+
p.trim();
|
|
149
|
+
}
|
|
150
|
+
else if (p.isNext("<!--")) {
|
|
151
|
+
p.readTo("-->");
|
|
152
|
+
p.trim();
|
|
153
|
+
}
|
|
154
|
+
else if (p.isNext("<!DOCTYPE", false)) {
|
|
155
|
+
p.skipDoctype();
|
|
156
|
+
p.trim();
|
|
157
|
+
}
|
|
158
|
+
else if (p.x[p.i] === "<") {
|
|
159
|
+
const root = p.parseTag();
|
|
160
|
+
return { [root.tag]: root.value };
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
throw new Error("@aws-sdk XML parse error: unexpected content.");
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
throw new Error("@aws-sdk XML parse error: no root element.");
|
|
167
|
+
}
|
|
168
|
+
isNext(s, caseSensitive = true) {
|
|
169
|
+
const p = this;
|
|
170
|
+
if (caseSensitive) {
|
|
171
|
+
return p.x.startsWith(s, p.i);
|
|
172
|
+
}
|
|
173
|
+
return p.x.toLowerCase().startsWith(s.toLowerCase(), p.i);
|
|
174
|
+
}
|
|
175
|
+
readTo(stop) {
|
|
176
|
+
const p = this;
|
|
177
|
+
const _i = p.x.indexOf(stop, p.i);
|
|
178
|
+
if (_i === -1) {
|
|
179
|
+
throw new Error(`@aws-sdk XML parse error: expected "${stop}" not found.`);
|
|
180
|
+
}
|
|
181
|
+
const result = p.x.slice(p.i, _i);
|
|
182
|
+
p.i = _i + stop.length;
|
|
183
|
+
return result;
|
|
184
|
+
}
|
|
185
|
+
trim() {
|
|
186
|
+
const p = this;
|
|
187
|
+
while (p.i < p.z && " \t\r\n".includes(p.x[p.i])) {
|
|
188
|
+
++p.i;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
readAttrValue() {
|
|
192
|
+
const p = this;
|
|
193
|
+
const quote = p.x[p.i];
|
|
194
|
+
++p.i;
|
|
195
|
+
let value = "";
|
|
196
|
+
while (p.i < p.z && p.x[p.i] !== quote) {
|
|
197
|
+
value += p.x[p.i++];
|
|
198
|
+
}
|
|
199
|
+
++p.i;
|
|
200
|
+
return p.decodeEntities(value);
|
|
201
|
+
}
|
|
202
|
+
parseTag() {
|
|
203
|
+
const p = this;
|
|
204
|
+
++p.i;
|
|
205
|
+
let tag = "";
|
|
206
|
+
while (p.i < p.z && !" \t\r\n>/".includes(p.x[p.i])) {
|
|
207
|
+
tag += p.x[p.i++];
|
|
208
|
+
}
|
|
209
|
+
let hasAttrs = false;
|
|
210
|
+
const attrs = Object.create(null);
|
|
211
|
+
while (p.i < p.z) {
|
|
212
|
+
p.trim();
|
|
213
|
+
if (">/".includes(p.x[p.i])) {
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
let name = "";
|
|
217
|
+
while (p.i < p.z && !"= \t\r\n>/?".includes(p.x[p.i])) {
|
|
218
|
+
name += p.x[p.i++];
|
|
219
|
+
}
|
|
220
|
+
p.trim();
|
|
221
|
+
if (p.x[p.i] !== "=") {
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
++p.i;
|
|
225
|
+
p.trim();
|
|
226
|
+
attrs[name] = p.readAttrValue();
|
|
227
|
+
hasAttrs = true;
|
|
228
|
+
}
|
|
229
|
+
if (p.i >= p.z) {
|
|
230
|
+
throw new Error("@aws-sdk XML parse error: unexpected end of input.");
|
|
231
|
+
}
|
|
232
|
+
if (p.x[p.i] === "/") {
|
|
233
|
+
++p.i;
|
|
234
|
+
if (p.i >= p.z || p.x[p.i] !== ">") {
|
|
235
|
+
throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.");
|
|
236
|
+
}
|
|
237
|
+
++p.i;
|
|
238
|
+
Object.setPrototypeOf(attrs, Object.prototype);
|
|
239
|
+
return { tag, value: hasAttrs ? attrs : "" };
|
|
240
|
+
}
|
|
241
|
+
if (p.x[p.i] !== ">") {
|
|
242
|
+
throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag.");
|
|
243
|
+
}
|
|
244
|
+
++p.i;
|
|
245
|
+
const textParts = [];
|
|
246
|
+
const childTags = [];
|
|
247
|
+
let hasElementChild = false;
|
|
248
|
+
while (p.i < p.z) {
|
|
249
|
+
if (p.isNext("</")) {
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
if (p.x[p.i] === "<") {
|
|
253
|
+
if (p.isNext("<!--")) {
|
|
254
|
+
p.readTo("-->");
|
|
255
|
+
}
|
|
256
|
+
else if (p.isNext("<![CDATA[")) {
|
|
257
|
+
p.i += 9;
|
|
258
|
+
textParts.push(p.readTo("]]>"));
|
|
259
|
+
}
|
|
260
|
+
else if (p.isNext("<?")) {
|
|
261
|
+
p.readTo("?>");
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
hasElementChild = true;
|
|
265
|
+
childTags.push(p.parseTag());
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
let text = "";
|
|
270
|
+
while (p.i < p.z && p.x[p.i] !== "<") {
|
|
271
|
+
text += p.x[p.i++];
|
|
272
|
+
}
|
|
273
|
+
textParts.push(p.decodeEntities(text));
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
if (!p.isNext("</")) {
|
|
277
|
+
throw new Error(`@aws-sdk XML parse error: missing closing tag </${tag}>.`);
|
|
278
|
+
}
|
|
279
|
+
p.i += 2;
|
|
280
|
+
const closeTag = p.readTo(">").trim();
|
|
281
|
+
if (closeTag !== tag) {
|
|
282
|
+
throw new Error(`@aws-sdk XML parse error: mismatched tags <${tag}> and </${closeTag}>.`);
|
|
283
|
+
}
|
|
284
|
+
if (!hasAttrs && textParts.length === 0 && !hasElementChild) {
|
|
285
|
+
return { tag, value: "" };
|
|
286
|
+
}
|
|
287
|
+
if (!hasAttrs && !hasElementChild) {
|
|
288
|
+
const text = textParts.length === 1 ? textParts[0] : textParts.join("");
|
|
289
|
+
if (text.trim() === "" && text.includes("\n")) {
|
|
290
|
+
return { tag, value: "" };
|
|
291
|
+
}
|
|
292
|
+
return { tag, value: text };
|
|
293
|
+
}
|
|
294
|
+
const obj = Object.create(null);
|
|
295
|
+
for (const text of textParts) {
|
|
296
|
+
if (text.trim() === "" && text.includes("\n")) {
|
|
297
|
+
continue;
|
|
298
|
+
}
|
|
299
|
+
obj["#text"] = "#text" in obj ? obj["#text"] + text : text;
|
|
300
|
+
}
|
|
301
|
+
for (const child of childTags) {
|
|
302
|
+
if (child.tag in obj) {
|
|
303
|
+
if (Array.isArray(obj[child.tag])) {
|
|
304
|
+
obj[child.tag].push(child.value);
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
obj[child.tag] = [obj[child.tag], child.value];
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
obj[child.tag] = child.value;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
for (const [k, v] of Object.entries(attrs)) {
|
|
315
|
+
obj[k] = v;
|
|
316
|
+
}
|
|
317
|
+
Object.setPrototypeOf(obj, Object.prototype);
|
|
318
|
+
return { tag, value: obj };
|
|
319
|
+
}
|
|
320
|
+
static ENTITIES = {
|
|
321
|
+
amp: "&",
|
|
322
|
+
lt: "<",
|
|
323
|
+
gt: ">",
|
|
324
|
+
quot: '"',
|
|
325
|
+
apos: "'",
|
|
326
|
+
};
|
|
327
|
+
skipDoctype() {
|
|
328
|
+
const p = this;
|
|
329
|
+
p.i += 9;
|
|
330
|
+
let depth = 0;
|
|
331
|
+
while (p.i < p.z) {
|
|
332
|
+
const c = p.x[p.i];
|
|
333
|
+
if (c === "[") {
|
|
334
|
+
++depth;
|
|
335
|
+
}
|
|
336
|
+
else if (c === "]") {
|
|
337
|
+
--depth;
|
|
338
|
+
}
|
|
339
|
+
else if (c === ">" && depth === 0) {
|
|
340
|
+
++p.i;
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
++p.i;
|
|
344
|
+
}
|
|
345
|
+
throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.");
|
|
346
|
+
}
|
|
347
|
+
decodeEntities(s) {
|
|
348
|
+
return s.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g, (_, hex, dec, named) => {
|
|
349
|
+
if (hex) {
|
|
350
|
+
return String.fromCharCode(parseInt(hex, 16));
|
|
351
|
+
}
|
|
352
|
+
if (dec) {
|
|
353
|
+
return String.fromCharCode(parseInt(dec, 10));
|
|
354
|
+
}
|
|
355
|
+
return AwsXmlParser.ENTITIES[named] ?? "";
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
128
360
|
exports.XmlNode = XmlNode;
|
|
129
361
|
exports.XmlText = XmlText;
|
|
362
|
+
exports.parseXML = parseXML;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/xml-builder",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.33",
|
|
4
4
|
"description": "XML utilities for the AWS SDK",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@smithy/types": "^4.
|
|
6
|
+
"@smithy/types": "^4.15.1",
|
|
7
7
|
"tslib": "^2.6.2"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
@@ -45,8 +45,7 @@
|
|
|
45
45
|
"./dist-es/xml-parser": "./dist-es/xml-parser.browser"
|
|
46
46
|
},
|
|
47
47
|
"react-native": {
|
|
48
|
-
"./dist-es/xml-parser": "./dist-es/xml-parser.browser"
|
|
49
|
-
"./dist-cjs/xml-parser": "./dist-cjs/xml-parser.browser"
|
|
48
|
+
"./dist-es/xml-parser": "./dist-es/xml-parser.browser"
|
|
50
49
|
},
|
|
51
50
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/xml-builder",
|
|
52
51
|
"repository": {
|
|
@@ -127,8 +127,11 @@ class Crc32Js {
|
|
|
127
127
|
this.checksum = (this.checksum >>> 8) ^ CRC32_TABLE[(this.checksum ^ data[i]) & 0xff];
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
+
digestSync() {
|
|
131
|
+
return (this.checksum ^ ONES) >>> 0;
|
|
132
|
+
}
|
|
130
133
|
async digest() {
|
|
131
|
-
const value =
|
|
134
|
+
const value = this.digestSync();
|
|
132
135
|
const out = new Uint8Array(4);
|
|
133
136
|
new DataView(out.buffer).setUint32(0, value, false);
|
|
134
137
|
return out;
|
|
@@ -217,8 +217,11 @@ class Crc32Js {
|
|
|
217
217
|
this.checksum = (this.checksum >>> 8) ^ CRC32_TABLE[(this.checksum ^ data[i]) & 0xff];
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
+
digestSync() {
|
|
221
|
+
return (this.checksum ^ ONES) >>> 0;
|
|
222
|
+
}
|
|
220
223
|
async digest() {
|
|
221
|
-
const value =
|
|
224
|
+
const value = this.digestSync();
|
|
222
225
|
const out = new Uint8Array(4);
|
|
223
226
|
new DataView(out.buffer).setUint32(0, value, false);
|
|
224
227
|
return out;
|
|
@@ -237,9 +240,12 @@ function buildNativeClass$1(nativeCrc32) {
|
|
|
237
240
|
update(data) {
|
|
238
241
|
this.value = nativeCrc32(data, this.value);
|
|
239
242
|
}
|
|
243
|
+
digestSync() {
|
|
244
|
+
return this.value >>> 0;
|
|
245
|
+
}
|
|
240
246
|
async digest() {
|
|
241
247
|
const out = new Uint8Array(4);
|
|
242
|
-
new DataView(out.buffer).setUint32(0, this.
|
|
248
|
+
new DataView(out.buffer).setUint32(0, this.digestSync(), false);
|
|
243
249
|
return out;
|
|
244
250
|
}
|
|
245
251
|
reset() {
|
|
@@ -127,8 +127,11 @@ class Crc32Js {
|
|
|
127
127
|
this.checksum = (this.checksum >>> 8) ^ CRC32_TABLE[(this.checksum ^ data[i]) & 0xff];
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
+
digestSync() {
|
|
131
|
+
return (this.checksum ^ ONES) >>> 0;
|
|
132
|
+
}
|
|
130
133
|
async digest() {
|
|
131
|
-
const value =
|
|
134
|
+
const value = this.digestSync();
|
|
132
135
|
const out = new Uint8Array(4);
|
|
133
136
|
new DataView(out.buffer).setUint32(0, value, false);
|
|
134
137
|
return out;
|
|
@@ -1090,6 +1090,23 @@ const _json = (obj) => {
|
|
|
1090
1090
|
return obj;
|
|
1091
1091
|
};
|
|
1092
1092
|
|
|
1093
|
+
function makeBuilder(common, service, name, ep) {
|
|
1094
|
+
return function makeCommand(added, plugins, op, $, smithyContext = {}) {
|
|
1095
|
+
const epMerged = Object.assign({}, common, added);
|
|
1096
|
+
return Command.classBuilder()
|
|
1097
|
+
.ep(epMerged)
|
|
1098
|
+
.m(function (CommandCtor, clientStack, config, options) {
|
|
1099
|
+
const list = plugins.call(this, CommandCtor, clientStack, config, options);
|
|
1100
|
+
list.unshift(ep(config, CommandCtor.getEndpointParameterInstructions()));
|
|
1101
|
+
return list;
|
|
1102
|
+
})
|
|
1103
|
+
.s(service, op, smithyContext)
|
|
1104
|
+
.n(name, op.charAt(0).toUpperCase() + op.slice(1) + "Command")
|
|
1105
|
+
.sc($)
|
|
1106
|
+
.build();
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1093
1110
|
exports.Client = Client;
|
|
1094
1111
|
exports.Command = Command;
|
|
1095
1112
|
exports.NoOpLogger = NoOpLogger;
|
|
@@ -1114,6 +1131,7 @@ exports.invalidFunction = invalidFunction;
|
|
|
1114
1131
|
exports.invalidProvider = invalidProvider;
|
|
1115
1132
|
exports.isSerializableHeaderValue = isSerializableHeaderValue;
|
|
1116
1133
|
exports.loadConfigsForDefaultMode = loadConfigsForDefaultMode;
|
|
1134
|
+
exports.makeBuilder = makeBuilder;
|
|
1117
1135
|
exports.map = map;
|
|
1118
1136
|
exports.resolveChecksumRuntimeConfig = resolveChecksumRuntimeConfig;
|
|
1119
1137
|
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
|
@@ -470,12 +470,118 @@ const resolveEndpointsConfig = (input) => {
|
|
|
470
470
|
});
|
|
471
471
|
};
|
|
472
472
|
|
|
473
|
+
const AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
|
|
474
|
+
const AWS_REGION_ENV = "AWS_REGION";
|
|
475
|
+
const AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
|
|
476
|
+
const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
|
477
|
+
const DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"];
|
|
478
|
+
const IMDS_REGION_PATH = "/latest/meta-data/placement/region";
|
|
479
|
+
const IMDS_TOKEN_PATH = "/latest/api/token";
|
|
480
|
+
const X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
|
|
481
|
+
const X_AWS_EC2_METADATA_TOKEN_TTL = "x-aws-ec2-metadata-token-ttl-seconds";
|
|
482
|
+
|
|
483
|
+
const TIMEOUT_MS = 1000;
|
|
484
|
+
const NEG_CACHE_TTL_MS = 60_000;
|
|
485
|
+
let negativeCacheUntil = 0;
|
|
486
|
+
const getInstanceMetadataRegion = async () => {
|
|
487
|
+
if (process.env[ENV_IMDS_DISABLED]) {
|
|
488
|
+
return undefined;
|
|
489
|
+
}
|
|
490
|
+
if (Date.now() < negativeCacheUntil) {
|
|
491
|
+
return undefined;
|
|
492
|
+
}
|
|
493
|
+
try {
|
|
494
|
+
const endpoint = resolveImdsEndpoint();
|
|
495
|
+
const token = (await imdsRequest({
|
|
496
|
+
...endpoint,
|
|
497
|
+
path: IMDS_TOKEN_PATH,
|
|
498
|
+
method: "PUT",
|
|
499
|
+
headers: {
|
|
500
|
+
[X_AWS_EC2_METADATA_TOKEN_TTL]: "21600",
|
|
501
|
+
},
|
|
502
|
+
})).toString();
|
|
503
|
+
const region = (await imdsRequest({
|
|
504
|
+
...endpoint,
|
|
505
|
+
path: IMDS_REGION_PATH,
|
|
506
|
+
method: "GET",
|
|
507
|
+
headers: {
|
|
508
|
+
[X_AWS_EC2_METADATA_TOKEN]: token,
|
|
509
|
+
},
|
|
510
|
+
}))
|
|
511
|
+
.toString()
|
|
512
|
+
.trim();
|
|
513
|
+
return region || cacheNegativeAndReturnUndefined();
|
|
514
|
+
}
|
|
515
|
+
catch {
|
|
516
|
+
return cacheNegativeAndReturnUndefined();
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
const cacheNegativeAndReturnUndefined = () => {
|
|
520
|
+
negativeCacheUntil = Date.now() + NEG_CACHE_TTL_MS;
|
|
521
|
+
return undefined;
|
|
522
|
+
};
|
|
523
|
+
const resolveImdsEndpoint = () => {
|
|
524
|
+
const envEndpoint = process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;
|
|
525
|
+
if (envEndpoint) {
|
|
526
|
+
const url = new URL(envEndpoint);
|
|
527
|
+
return {
|
|
528
|
+
hostname: url.hostname.replace(/^\[(.+)]$/, "$1"),
|
|
529
|
+
port: url.port ? Number(url.port) : undefined,
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
if (process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE === "IPv6") {
|
|
533
|
+
return { hostname: "fd00:ec2::254" };
|
|
534
|
+
}
|
|
535
|
+
return { hostname: "169.254.169.254" };
|
|
536
|
+
};
|
|
537
|
+
const imdsRequest = async (options) => {
|
|
538
|
+
const { request } = require('node:http');
|
|
539
|
+
return new Promise((resolve, reject) => {
|
|
540
|
+
const req = request({
|
|
541
|
+
hostname: options.hostname,
|
|
542
|
+
port: options.port,
|
|
543
|
+
path: options.path,
|
|
544
|
+
method: options.method,
|
|
545
|
+
headers: options.headers,
|
|
546
|
+
timeout: TIMEOUT_MS,
|
|
547
|
+
signal: AbortSignal.timeout(TIMEOUT_MS),
|
|
548
|
+
});
|
|
549
|
+
req.on("error", (err) => {
|
|
550
|
+
reject(err);
|
|
551
|
+
req.destroy();
|
|
552
|
+
});
|
|
553
|
+
req.on("timeout", () => {
|
|
554
|
+
reject(new Error("TimeoutError from instance metadata service"));
|
|
555
|
+
req.destroy();
|
|
556
|
+
});
|
|
557
|
+
req.on("response", (res) => {
|
|
558
|
+
const { statusCode = 400 } = res;
|
|
559
|
+
if (statusCode < 200 || statusCode >= 300) {
|
|
560
|
+
reject(Object.assign(new Error("Error response received from instance metadata service"), { statusCode }));
|
|
561
|
+
req.destroy();
|
|
562
|
+
return;
|
|
563
|
+
}
|
|
564
|
+
const chunks = [];
|
|
565
|
+
res.on("data", (chunk) => chunks.push(chunk));
|
|
566
|
+
res.on("end", () => {
|
|
567
|
+
resolve(Buffer.concat(chunks));
|
|
568
|
+
req.destroy();
|
|
569
|
+
});
|
|
570
|
+
});
|
|
571
|
+
req.end();
|
|
572
|
+
});
|
|
573
|
+
};
|
|
574
|
+
|
|
473
575
|
const REGION_ENV_NAME = "AWS_REGION";
|
|
474
576
|
const REGION_INI_NAME = "region";
|
|
475
577
|
const NODE_REGION_CONFIG_OPTIONS = {
|
|
476
578
|
environmentVariableSelector: (env) => env[REGION_ENV_NAME],
|
|
477
579
|
configFileSelector: (profile) => profile[REGION_INI_NAME],
|
|
478
|
-
default: () => {
|
|
580
|
+
default: async () => {
|
|
581
|
+
const region = await getInstanceMetadataRegion();
|
|
582
|
+
if (region) {
|
|
583
|
+
return region;
|
|
584
|
+
}
|
|
479
585
|
throw new Error("Region is missing");
|
|
480
586
|
},
|
|
481
587
|
};
|
|
@@ -577,13 +683,6 @@ const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint =
|
|
|
577
683
|
};
|
|
578
684
|
};
|
|
579
685
|
|
|
580
|
-
const AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
|
|
581
|
-
const AWS_REGION_ENV = "AWS_REGION";
|
|
582
|
-
const AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
|
|
583
|
-
const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
|
584
|
-
const DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"];
|
|
585
|
-
const IMDS_REGION_PATH = "/latest/meta-data/placement/region";
|
|
586
|
-
|
|
587
686
|
const AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
|
|
588
687
|
const AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
|
|
589
688
|
const NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
|
|
@@ -633,61 +732,7 @@ const inferPhysicalRegion = async () => {
|
|
|
633
732
|
if (process.env[AWS_EXECUTION_ENV] && (process.env[AWS_REGION_ENV] || process.env[AWS_DEFAULT_REGION_ENV])) {
|
|
634
733
|
return process.env[AWS_REGION_ENV] ?? process.env[AWS_DEFAULT_REGION_ENV];
|
|
635
734
|
}
|
|
636
|
-
|
|
637
|
-
try {
|
|
638
|
-
const endpoint = await getImdsEndpoint();
|
|
639
|
-
return (await imdsHttpGet({ hostname: endpoint.hostname, path: IMDS_REGION_PATH })).toString();
|
|
640
|
-
}
|
|
641
|
-
catch (e) {
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
};
|
|
645
|
-
const getImdsEndpoint = async () => {
|
|
646
|
-
const envEndpoint = process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;
|
|
647
|
-
if (envEndpoint) {
|
|
648
|
-
const url = new URL(envEndpoint);
|
|
649
|
-
return { hostname: url.hostname, path: url.pathname };
|
|
650
|
-
}
|
|
651
|
-
const envMode = process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE;
|
|
652
|
-
if (envMode === "IPv6") {
|
|
653
|
-
return { hostname: "fd00:ec2::254", path: "/" };
|
|
654
|
-
}
|
|
655
|
-
return { hostname: "169.254.169.254", path: "/" };
|
|
656
|
-
};
|
|
657
|
-
const imdsHttpGet = async ({ hostname, path }) => {
|
|
658
|
-
const { request } = require('node:http');
|
|
659
|
-
return new Promise((resolve, reject) => {
|
|
660
|
-
const req = request({
|
|
661
|
-
method: "GET",
|
|
662
|
-
hostname: hostname.replace(/^\[(.+)]$/, "$1"),
|
|
663
|
-
path,
|
|
664
|
-
timeout: 1000,
|
|
665
|
-
signal: AbortSignal.timeout(1000),
|
|
666
|
-
});
|
|
667
|
-
req.on("error", (err) => {
|
|
668
|
-
reject(err);
|
|
669
|
-
req.destroy();
|
|
670
|
-
});
|
|
671
|
-
req.on("timeout", () => {
|
|
672
|
-
reject(new Error("TimeoutError from instance metadata service"));
|
|
673
|
-
req.destroy();
|
|
674
|
-
});
|
|
675
|
-
req.on("response", (res) => {
|
|
676
|
-
const { statusCode = 400 } = res;
|
|
677
|
-
if (statusCode < 200 || 300 <= statusCode) {
|
|
678
|
-
reject(Object.assign(new Error("Error response received from instance metadata service"), { statusCode }));
|
|
679
|
-
req.destroy();
|
|
680
|
-
return;
|
|
681
|
-
}
|
|
682
|
-
const chunks = [];
|
|
683
|
-
res.on("data", (chunk) => chunks.push(chunk));
|
|
684
|
-
res.on("end", () => {
|
|
685
|
-
resolve(Buffer.concat(chunks));
|
|
686
|
-
req.destroy();
|
|
687
|
-
});
|
|
688
|
-
});
|
|
689
|
-
req.end();
|
|
690
|
-
});
|
|
735
|
+
return getInstanceMetadataRegion();
|
|
691
736
|
};
|
|
692
737
|
|
|
693
738
|
exports.CONFIG_PREFIX_SEPARATOR = CONFIG_PREFIX_SEPARATOR;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { Crc32 } = require("@
|
|
1
|
+
const { Crc32 } = require("@smithy/core/checksum");
|
|
2
2
|
const { toHex, fromHex, toUtf8, fromUtf8 } = require("@smithy/core/serde");
|
|
3
3
|
|
|
4
4
|
class Int64 {
|
|
@@ -244,13 +244,14 @@ function splitMessage({ byteLength, byteOffset, buffer }) {
|
|
|
244
244
|
const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false);
|
|
245
245
|
const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false);
|
|
246
246
|
const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false);
|
|
247
|
-
const checksummer = new Crc32()
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
const checksummer = new Crc32();
|
|
248
|
+
checksummer.update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
|
|
249
|
+
if (expectedPreludeChecksum !== checksummer.digestSync()) {
|
|
250
|
+
throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digestSync()})`);
|
|
250
251
|
}
|
|
251
252
|
checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH)));
|
|
252
|
-
if (expectedMessageChecksum !== checksummer.
|
|
253
|
-
throw new Error(`The message checksum (${checksummer.
|
|
253
|
+
if (expectedMessageChecksum !== checksummer.digestSync()) {
|
|
254
|
+
throw new Error(`The message checksum (${checksummer.digestSync()}) did not match the expected value of ${expectedMessageChecksum}`);
|
|
254
255
|
}
|
|
255
256
|
return {
|
|
256
257
|
headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength),
|
|
@@ -306,10 +307,12 @@ class EventStreamCodec {
|
|
|
306
307
|
const checksum = new Crc32();
|
|
307
308
|
view.setUint32(0, length, false);
|
|
308
309
|
view.setUint32(4, headers.byteLength, false);
|
|
309
|
-
|
|
310
|
+
checksum.update(out.subarray(0, 8));
|
|
311
|
+
view.setUint32(8, checksum.digestSync(), false);
|
|
310
312
|
out.set(headers, 12);
|
|
311
313
|
out.set(body, headers.byteLength + 12);
|
|
312
|
-
|
|
314
|
+
checksum.update(out.subarray(8, length - 4));
|
|
315
|
+
view.setUint32(length - 4, checksum.digestSync(), false);
|
|
313
316
|
return out;
|
|
314
317
|
}
|
|
315
318
|
decode(message) {
|