@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
|
@@ -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
|
const { Readable } = require("node:stream");
|
|
4
4
|
|
|
@@ -245,13 +245,14 @@ function splitMessage({ byteLength, byteOffset, buffer }) {
|
|
|
245
245
|
const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false);
|
|
246
246
|
const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false);
|
|
247
247
|
const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false);
|
|
248
|
-
const checksummer = new Crc32()
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
const checksummer = new Crc32();
|
|
249
|
+
checksummer.update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
|
|
250
|
+
if (expectedPreludeChecksum !== checksummer.digestSync()) {
|
|
251
|
+
throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digestSync()})`);
|
|
251
252
|
}
|
|
252
253
|
checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH)));
|
|
253
|
-
if (expectedMessageChecksum !== checksummer.
|
|
254
|
-
throw new Error(`The message checksum (${checksummer.
|
|
254
|
+
if (expectedMessageChecksum !== checksummer.digestSync()) {
|
|
255
|
+
throw new Error(`The message checksum (${checksummer.digestSync()}) did not match the expected value of ${expectedMessageChecksum}`);
|
|
255
256
|
}
|
|
256
257
|
return {
|
|
257
258
|
headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength),
|
|
@@ -307,10 +308,12 @@ class EventStreamCodec {
|
|
|
307
308
|
const checksum = new Crc32();
|
|
308
309
|
view.setUint32(0, length, false);
|
|
309
310
|
view.setUint32(4, headers.byteLength, false);
|
|
310
|
-
|
|
311
|
+
checksum.update(out.subarray(0, 8));
|
|
312
|
+
view.setUint32(8, checksum.digestSync(), false);
|
|
311
313
|
out.set(headers, 12);
|
|
312
314
|
out.set(body, headers.byteLength + 12);
|
|
313
|
-
|
|
315
|
+
checksum.update(out.subarray(8, length - 4));
|
|
316
|
+
view.setUint32(length - 4, checksum.digestSync(), false);
|
|
314
317
|
return out;
|
|
315
318
|
}
|
|
316
319
|
decode(message) {
|
|
@@ -2,7 +2,7 @@ const { createHmac, createHash, getRandomValues } = require("node:crypto");
|
|
|
2
2
|
const { ReadStream, lstatSync, fstatSync } = require("node:fs");
|
|
3
3
|
const { HttpResponse } = require("@smithy/core/transport");
|
|
4
4
|
const { toEndpointV1 } = require("@smithy/core/endpoints");
|
|
5
|
-
const {
|
|
5
|
+
const { Readable, Writable, PassThrough } = require("node:stream");
|
|
6
6
|
|
|
7
7
|
const isArrayBuffer = (arg) => (typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer) ||
|
|
8
8
|
Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
|
|
@@ -987,62 +987,66 @@ function castSourceData(toCast, encoding) {
|
|
|
987
987
|
return fromArrayBuffer(toCast);
|
|
988
988
|
}
|
|
989
989
|
|
|
990
|
-
let ChecksumStream$1 = class ChecksumStream extends
|
|
990
|
+
let ChecksumStream$1 = class ChecksumStream extends Readable {
|
|
991
991
|
expectedChecksum;
|
|
992
992
|
checksumSourceLocation;
|
|
993
993
|
checksum;
|
|
994
994
|
source;
|
|
995
995
|
base64Encoder;
|
|
996
|
-
pendingCallback = null;
|
|
997
996
|
constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }) {
|
|
998
997
|
super();
|
|
999
|
-
if (typeof source.pipe
|
|
1000
|
-
this.source = source;
|
|
1001
|
-
}
|
|
1002
|
-
else {
|
|
998
|
+
if (typeof source.pipe !== "function") {
|
|
1003
999
|
throw new Error(`@smithy/util-stream: unsupported source type ${source?.constructor?.name ?? source} in ChecksumStream.`);
|
|
1004
1000
|
}
|
|
1001
|
+
this.source = source;
|
|
1005
1002
|
this.base64Encoder = base64Encoder ?? toBase64$1;
|
|
1006
1003
|
this.expectedChecksum = expectedChecksum;
|
|
1007
1004
|
this.checksum = checksum;
|
|
1008
1005
|
this.checksumSourceLocation = checksumSourceLocation;
|
|
1009
|
-
this.source.
|
|
1006
|
+
this.source.on("data", this.onSourceData);
|
|
1007
|
+
this.source.on("end", this.onSourceEnd);
|
|
1008
|
+
this.source.on("error", this.onSourceError);
|
|
1009
|
+
this.source.pause();
|
|
1010
1010
|
}
|
|
1011
|
-
|
|
1012
|
-
if (this.
|
|
1013
|
-
|
|
1014
|
-
this.pendingCallback = null;
|
|
1015
|
-
callback();
|
|
1011
|
+
onSourceData = (chunk) => {
|
|
1012
|
+
if (this.destroyed) {
|
|
1013
|
+
return;
|
|
1016
1014
|
}
|
|
1017
|
-
}
|
|
1018
|
-
_write(chunk, encoding, callback) {
|
|
1019
1015
|
try {
|
|
1020
1016
|
this.checksum.update(chunk);
|
|
1021
|
-
const canPushMore = this.push(chunk);
|
|
1022
|
-
if (!canPushMore) {
|
|
1023
|
-
this.pendingCallback = callback;
|
|
1024
|
-
return;
|
|
1025
|
-
}
|
|
1026
1017
|
}
|
|
1027
1018
|
catch (e) {
|
|
1028
|
-
|
|
1019
|
+
this.destroy(e);
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
if (!this.push(chunk)) {
|
|
1023
|
+
this.source.pause();
|
|
1024
|
+
}
|
|
1025
|
+
};
|
|
1026
|
+
onSourceEnd = async () => {
|
|
1027
|
+
if (this.destroyed) {
|
|
1028
|
+
return;
|
|
1029
1029
|
}
|
|
1030
|
-
return callback();
|
|
1031
|
-
}
|
|
1032
|
-
async _final(callback) {
|
|
1033
1030
|
try {
|
|
1034
1031
|
const digest = await this.checksum.digest();
|
|
1035
1032
|
const received = this.base64Encoder(digest);
|
|
1036
1033
|
if (this.expectedChecksum !== received) {
|
|
1037
|
-
|
|
1034
|
+
this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${received}"` +
|
|
1038
1035
|
` in response header "${this.checksumSourceLocation}".`));
|
|
1036
|
+
return;
|
|
1039
1037
|
}
|
|
1040
1038
|
}
|
|
1041
1039
|
catch (e) {
|
|
1042
|
-
|
|
1040
|
+
this.destroy(e);
|
|
1041
|
+
return;
|
|
1043
1042
|
}
|
|
1044
1043
|
this.push(null);
|
|
1045
|
-
|
|
1044
|
+
};
|
|
1045
|
+
onSourceError = (error) => {
|
|
1046
|
+
this.destroy(error);
|
|
1047
|
+
};
|
|
1048
|
+
_read(size) {
|
|
1049
|
+
this.source.resume();
|
|
1046
1050
|
}
|
|
1047
1051
|
_destroy(error, callback) {
|
|
1048
1052
|
this.source?.destroy();
|
|
@@ -15,8 +15,11 @@ export class Crc32Js {
|
|
|
15
15
|
this.checksum = (this.checksum >>> 8) ^ CRC32_TABLE[(this.checksum ^ data[i]) & 0xff];
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
digestSync() {
|
|
19
|
+
return (this.checksum ^ ONES) >>> 0;
|
|
20
|
+
}
|
|
18
21
|
async digest() {
|
|
19
|
-
const value =
|
|
22
|
+
const value = this.digestSync();
|
|
20
23
|
const out = new Uint8Array(4);
|
|
21
24
|
new DataView(out.buffer).setUint32(0, value, false);
|
|
22
25
|
return out;
|
|
@@ -9,9 +9,12 @@ function buildNativeClass(nativeCrc32) {
|
|
|
9
9
|
update(data) {
|
|
10
10
|
this.value = nativeCrc32(data, this.value);
|
|
11
11
|
}
|
|
12
|
+
digestSync() {
|
|
13
|
+
return this.value >>> 0;
|
|
14
|
+
}
|
|
12
15
|
async digest() {
|
|
13
16
|
const out = new Uint8Array(4);
|
|
14
|
-
new DataView(out.buffer).setUint32(0, this.
|
|
17
|
+
new DataView(out.buffer).setUint32(0, this.digestSync(), false);
|
|
15
18
|
return out;
|
|
16
19
|
}
|
|
17
20
|
reset() {
|
|
@@ -24,3 +24,4 @@ export { map, convertMap, take, } from "./smithy-client/object-mapping";
|
|
|
24
24
|
export { schemaLogFilter } from "./smithy-client/schemaLogFilter";
|
|
25
25
|
export { serializeFloat, serializeDateTime } from "./smithy-client/ser-utils";
|
|
26
26
|
export { _json } from "./smithy-client/serde-json";
|
|
27
|
+
export { makeBuilder } from "./smithy-client/client-command-builder";
|
package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/client-command-builder.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command } from "./command";
|
|
2
|
+
export function makeBuilder(common, service, name, ep) {
|
|
3
|
+
return function makeCommand(added, plugins, op, $, smithyContext = {}) {
|
|
4
|
+
const epMerged = Object.assign({}, common, added);
|
|
5
|
+
return Command.classBuilder()
|
|
6
|
+
.ep(epMerged)
|
|
7
|
+
.m(function (CommandCtor, clientStack, config, options) {
|
|
8
|
+
const list = plugins.call(this, CommandCtor, clientStack, config, options);
|
|
9
|
+
list.unshift(ep(config, CommandCtor.getEndpointParameterInstructions()));
|
|
10
|
+
return list;
|
|
11
|
+
})
|
|
12
|
+
.s(service, op, smithyContext)
|
|
13
|
+
.n(name, op.charAt(0).toUpperCase() + op.slice(1) + "Command")
|
|
14
|
+
.sc($)
|
|
15
|
+
.build();
|
|
16
|
+
};
|
|
17
|
+
}
|
package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { getInstanceMetadataRegion } from "./getInstanceMetadataRegion";
|
|
1
2
|
export const REGION_ENV_NAME = "AWS_REGION";
|
|
2
3
|
export const REGION_INI_NAME = "region";
|
|
3
4
|
export const NODE_REGION_CONFIG_OPTIONS = {
|
|
4
5
|
environmentVariableSelector: (env) => env[REGION_ENV_NAME],
|
|
5
6
|
configFileSelector: (profile) => profile[REGION_INI_NAME],
|
|
6
|
-
default: () => {
|
|
7
|
+
default: async () => {
|
|
8
|
+
const region = await getInstanceMetadataRegion();
|
|
9
|
+
if (region) {
|
|
10
|
+
return region;
|
|
11
|
+
}
|
|
7
12
|
throw new Error("Region is missing");
|
|
8
13
|
},
|
|
9
14
|
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ENV_IMDS_DISABLED, IMDS_REGION_PATH, IMDS_TOKEN_PATH, X_AWS_EC2_METADATA_TOKEN, X_AWS_EC2_METADATA_TOKEN_TTL, } from "../../defaults-mode/constants";
|
|
2
|
+
const TIMEOUT_MS = 1000;
|
|
3
|
+
const NEG_CACHE_TTL_MS = 60_000;
|
|
4
|
+
let negativeCacheUntil = 0;
|
|
5
|
+
export const getInstanceMetadataRegion = async () => {
|
|
6
|
+
if (process.env[ENV_IMDS_DISABLED]) {
|
|
7
|
+
return undefined;
|
|
8
|
+
}
|
|
9
|
+
if (Date.now() < negativeCacheUntil) {
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
try {
|
|
13
|
+
const endpoint = resolveImdsEndpoint();
|
|
14
|
+
const token = (await imdsRequest({
|
|
15
|
+
...endpoint,
|
|
16
|
+
path: IMDS_TOKEN_PATH,
|
|
17
|
+
method: "PUT",
|
|
18
|
+
headers: {
|
|
19
|
+
[X_AWS_EC2_METADATA_TOKEN_TTL]: "21600",
|
|
20
|
+
},
|
|
21
|
+
})).toString();
|
|
22
|
+
const region = (await imdsRequest({
|
|
23
|
+
...endpoint,
|
|
24
|
+
path: IMDS_REGION_PATH,
|
|
25
|
+
method: "GET",
|
|
26
|
+
headers: {
|
|
27
|
+
[X_AWS_EC2_METADATA_TOKEN]: token,
|
|
28
|
+
},
|
|
29
|
+
}))
|
|
30
|
+
.toString()
|
|
31
|
+
.trim();
|
|
32
|
+
return region || cacheNegativeAndReturnUndefined();
|
|
33
|
+
}
|
|
34
|
+
catch {
|
|
35
|
+
return cacheNegativeAndReturnUndefined();
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const cacheNegativeAndReturnUndefined = () => {
|
|
39
|
+
negativeCacheUntil = Date.now() + NEG_CACHE_TTL_MS;
|
|
40
|
+
return undefined;
|
|
41
|
+
};
|
|
42
|
+
const resolveImdsEndpoint = () => {
|
|
43
|
+
const envEndpoint = process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;
|
|
44
|
+
if (envEndpoint) {
|
|
45
|
+
const url = new URL(envEndpoint);
|
|
46
|
+
return {
|
|
47
|
+
hostname: url.hostname.replace(/^\[(.+)]$/, "$1"),
|
|
48
|
+
port: url.port ? Number(url.port) : undefined,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
if (process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE === "IPv6") {
|
|
52
|
+
return { hostname: "fd00:ec2::254" };
|
|
53
|
+
}
|
|
54
|
+
return { hostname: "169.254.169.254" };
|
|
55
|
+
};
|
|
56
|
+
const imdsRequest = async (options) => {
|
|
57
|
+
const { request } = await import("node:http");
|
|
58
|
+
return new Promise((resolve, reject) => {
|
|
59
|
+
const req = request({
|
|
60
|
+
hostname: options.hostname,
|
|
61
|
+
port: options.port,
|
|
62
|
+
path: options.path,
|
|
63
|
+
method: options.method,
|
|
64
|
+
headers: options.headers,
|
|
65
|
+
timeout: TIMEOUT_MS,
|
|
66
|
+
signal: AbortSignal.timeout(TIMEOUT_MS),
|
|
67
|
+
});
|
|
68
|
+
req.on("error", (err) => {
|
|
69
|
+
reject(err);
|
|
70
|
+
req.destroy();
|
|
71
|
+
});
|
|
72
|
+
req.on("timeout", () => {
|
|
73
|
+
reject(new Error("TimeoutError from instance metadata service"));
|
|
74
|
+
req.destroy();
|
|
75
|
+
});
|
|
76
|
+
req.on("response", (res) => {
|
|
77
|
+
const { statusCode = 400 } = res;
|
|
78
|
+
if (statusCode < 200 || statusCode >= 300) {
|
|
79
|
+
reject(Object.assign(new Error("Error response received from instance metadata service"), { statusCode }));
|
|
80
|
+
req.destroy();
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const chunks = [];
|
|
84
|
+
res.on("data", (chunk) => chunks.push(chunk));
|
|
85
|
+
res.on("end", () => {
|
|
86
|
+
resolve(Buffer.concat(chunks));
|
|
87
|
+
req.destroy();
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
req.end();
|
|
91
|
+
});
|
|
92
|
+
};
|
|
@@ -4,3 +4,6 @@ export const AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
|
|
|
4
4
|
export const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
|
5
5
|
export const DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"];
|
|
6
6
|
export const IMDS_REGION_PATH = "/latest/meta-data/placement/region";
|
|
7
|
+
export const IMDS_TOKEN_PATH = "/latest/api/token";
|
|
8
|
+
export const X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
|
|
9
|
+
export const X_AWS_EC2_METADATA_TOKEN_TTL = "x-aws-ec2-metadata-token-ttl-seconds";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { NODE_REGION_CONFIG_OPTIONS } from "../config-resolver/regionConfig/config";
|
|
2
|
+
import { getInstanceMetadataRegion } from "../config-resolver/regionConfig/getInstanceMetadataRegion";
|
|
2
3
|
import { loadConfig } from "../node-config-provider/configLoader";
|
|
3
4
|
import { memoize } from "../property-provider/memoize";
|
|
4
|
-
import { AWS_DEFAULT_REGION_ENV, AWS_EXECUTION_ENV, AWS_REGION_ENV, DEFAULTS_MODE_OPTIONS
|
|
5
|
+
import { AWS_DEFAULT_REGION_ENV, AWS_EXECUTION_ENV, AWS_REGION_ENV, DEFAULTS_MODE_OPTIONS } from "./constants";
|
|
5
6
|
import { NODE_DEFAULTS_MODE_CONFIG_OPTIONS } from "./defaultsModeConfig";
|
|
6
7
|
export const resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS), } = {}) => memoize(async () => {
|
|
7
8
|
const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
|
|
@@ -40,59 +41,5 @@ const inferPhysicalRegion = async () => {
|
|
|
40
41
|
if (process.env[AWS_EXECUTION_ENV] && (process.env[AWS_REGION_ENV] || process.env[AWS_DEFAULT_REGION_ENV])) {
|
|
41
42
|
return process.env[AWS_REGION_ENV] ?? process.env[AWS_DEFAULT_REGION_ENV];
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
-
try {
|
|
45
|
-
const endpoint = await getImdsEndpoint();
|
|
46
|
-
return (await imdsHttpGet({ hostname: endpoint.hostname, path: IMDS_REGION_PATH })).toString();
|
|
47
|
-
}
|
|
48
|
-
catch (e) {
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
const getImdsEndpoint = async () => {
|
|
53
|
-
const envEndpoint = process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;
|
|
54
|
-
if (envEndpoint) {
|
|
55
|
-
const url = new URL(envEndpoint);
|
|
56
|
-
return { hostname: url.hostname, path: url.pathname };
|
|
57
|
-
}
|
|
58
|
-
const envMode = process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE;
|
|
59
|
-
if (envMode === "IPv6") {
|
|
60
|
-
return { hostname: "fd00:ec2::254", path: "/" };
|
|
61
|
-
}
|
|
62
|
-
return { hostname: "169.254.169.254", path: "/" };
|
|
63
|
-
};
|
|
64
|
-
const imdsHttpGet = async ({ hostname, path }) => {
|
|
65
|
-
const { request } = await import("node:http");
|
|
66
|
-
return new Promise((resolve, reject) => {
|
|
67
|
-
const req = request({
|
|
68
|
-
method: "GET",
|
|
69
|
-
hostname: hostname.replace(/^\[(.+)]$/, "$1"),
|
|
70
|
-
path,
|
|
71
|
-
timeout: 1000,
|
|
72
|
-
signal: AbortSignal.timeout(1000),
|
|
73
|
-
});
|
|
74
|
-
req.on("error", (err) => {
|
|
75
|
-
reject(err);
|
|
76
|
-
req.destroy();
|
|
77
|
-
});
|
|
78
|
-
req.on("timeout", () => {
|
|
79
|
-
reject(new Error("TimeoutError from instance metadata service"));
|
|
80
|
-
req.destroy();
|
|
81
|
-
});
|
|
82
|
-
req.on("response", (res) => {
|
|
83
|
-
const { statusCode = 400 } = res;
|
|
84
|
-
if (statusCode < 200 || 300 <= statusCode) {
|
|
85
|
-
reject(Object.assign(new Error("Error response received from instance metadata service"), { statusCode }));
|
|
86
|
-
req.destroy();
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
const chunks = [];
|
|
90
|
-
res.on("data", (chunk) => chunks.push(chunk));
|
|
91
|
-
res.on("end", () => {
|
|
92
|
-
resolve(Buffer.concat(chunks));
|
|
93
|
-
req.destroy();
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
req.end();
|
|
97
|
-
});
|
|
44
|
+
return getInstanceMetadataRegion();
|
|
98
45
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Crc32 } from "@
|
|
1
|
+
import { Crc32 } from "@smithy/core/checksum";
|
|
2
2
|
import { HeaderMarshaller } from "./HeaderMarshaller";
|
|
3
3
|
import { splitMessage } from "./splitMessage";
|
|
4
4
|
export class EventStreamCodec {
|
|
@@ -49,10 +49,12 @@ export class EventStreamCodec {
|
|
|
49
49
|
const checksum = new Crc32();
|
|
50
50
|
view.setUint32(0, length, false);
|
|
51
51
|
view.setUint32(4, headers.byteLength, false);
|
|
52
|
-
|
|
52
|
+
checksum.update(out.subarray(0, 8));
|
|
53
|
+
view.setUint32(8, checksum.digestSync(), false);
|
|
53
54
|
out.set(headers, 12);
|
|
54
55
|
out.set(body, headers.byteLength + 12);
|
|
55
|
-
|
|
56
|
+
checksum.update(out.subarray(8, length - 4));
|
|
57
|
+
view.setUint32(length - 4, checksum.digestSync(), false);
|
|
56
58
|
return out;
|
|
57
59
|
}
|
|
58
60
|
decode(message) {
|
package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/splitMessage.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Crc32 } from "@
|
|
1
|
+
import { Crc32 } from "@smithy/core/checksum";
|
|
2
2
|
const PRELUDE_MEMBER_LENGTH = 4;
|
|
3
3
|
const PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2;
|
|
4
4
|
const CHECKSUM_LENGTH = 4;
|
|
@@ -15,13 +15,14 @@ export function splitMessage({ byteLength, byteOffset, buffer }) {
|
|
|
15
15
|
const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false);
|
|
16
16
|
const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false);
|
|
17
17
|
const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false);
|
|
18
|
-
const checksummer = new Crc32()
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
const checksummer = new Crc32();
|
|
19
|
+
checksummer.update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
|
|
20
|
+
if (expectedPreludeChecksum !== checksummer.digestSync()) {
|
|
21
|
+
throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digestSync()})`);
|
|
21
22
|
}
|
|
22
23
|
checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH)));
|
|
23
|
-
if (expectedMessageChecksum !== checksummer.
|
|
24
|
-
throw new Error(`The message checksum (${checksummer.
|
|
24
|
+
if (expectedMessageChecksum !== checksummer.digestSync()) {
|
|
25
|
+
throw new Error(`The message checksum (${checksummer.digestSync()}) did not match the expected value of ${expectedMessageChecksum}`);
|
|
25
26
|
}
|
|
26
27
|
return {
|
|
27
28
|
headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength),
|
package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.js
CHANGED
|
@@ -1,61 +1,65 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Readable } from "node:stream";
|
|
2
2
|
import { toBase64 } from "../../util-base64/toBase64";
|
|
3
|
-
export class ChecksumStream extends
|
|
3
|
+
export class ChecksumStream extends Readable {
|
|
4
4
|
expectedChecksum;
|
|
5
5
|
checksumSourceLocation;
|
|
6
6
|
checksum;
|
|
7
7
|
source;
|
|
8
8
|
base64Encoder;
|
|
9
|
-
pendingCallback = null;
|
|
10
9
|
constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }) {
|
|
11
10
|
super();
|
|
12
|
-
if (typeof source.pipe
|
|
13
|
-
this.source = source;
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
11
|
+
if (typeof source.pipe !== "function") {
|
|
16
12
|
throw new Error(`@smithy/util-stream: unsupported source type ${source?.constructor?.name ?? source} in ChecksumStream.`);
|
|
17
13
|
}
|
|
14
|
+
this.source = source;
|
|
18
15
|
this.base64Encoder = base64Encoder ?? toBase64;
|
|
19
16
|
this.expectedChecksum = expectedChecksum;
|
|
20
17
|
this.checksum = checksum;
|
|
21
18
|
this.checksumSourceLocation = checksumSourceLocation;
|
|
22
|
-
this.source.
|
|
19
|
+
this.source.on("data", this.onSourceData);
|
|
20
|
+
this.source.on("end", this.onSourceEnd);
|
|
21
|
+
this.source.on("error", this.onSourceError);
|
|
22
|
+
this.source.pause();
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
if (this.
|
|
26
|
-
|
|
27
|
-
this.pendingCallback = null;
|
|
28
|
-
callback();
|
|
24
|
+
onSourceData = (chunk) => {
|
|
25
|
+
if (this.destroyed) {
|
|
26
|
+
return;
|
|
29
27
|
}
|
|
30
|
-
}
|
|
31
|
-
_write(chunk, encoding, callback) {
|
|
32
28
|
try {
|
|
33
29
|
this.checksum.update(chunk);
|
|
34
|
-
const canPushMore = this.push(chunk);
|
|
35
|
-
if (!canPushMore) {
|
|
36
|
-
this.pendingCallback = callback;
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
30
|
}
|
|
40
31
|
catch (e) {
|
|
41
|
-
|
|
32
|
+
this.destroy(e);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (!this.push(chunk)) {
|
|
36
|
+
this.source.pause();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
onSourceEnd = async () => {
|
|
40
|
+
if (this.destroyed) {
|
|
41
|
+
return;
|
|
42
42
|
}
|
|
43
|
-
return callback();
|
|
44
|
-
}
|
|
45
|
-
async _final(callback) {
|
|
46
43
|
try {
|
|
47
44
|
const digest = await this.checksum.digest();
|
|
48
45
|
const received = this.base64Encoder(digest);
|
|
49
46
|
if (this.expectedChecksum !== received) {
|
|
50
|
-
|
|
47
|
+
this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${received}"` +
|
|
51
48
|
` in response header "${this.checksumSourceLocation}".`));
|
|
49
|
+
return;
|
|
52
50
|
}
|
|
53
51
|
}
|
|
54
52
|
catch (e) {
|
|
55
|
-
|
|
53
|
+
this.destroy(e);
|
|
54
|
+
return;
|
|
56
55
|
}
|
|
57
56
|
this.push(null);
|
|
58
|
-
|
|
57
|
+
};
|
|
58
|
+
onSourceError = (error) => {
|
|
59
|
+
this.destroy(error);
|
|
60
|
+
};
|
|
61
|
+
_read(size) {
|
|
62
|
+
this.source.resume();
|
|
59
63
|
}
|
|
60
64
|
_destroy(error, callback) {
|
|
61
65
|
this.source?.destroy();
|
|
@@ -8,6 +8,11 @@ export declare class Crc32Js implements Checksum {
|
|
|
8
8
|
readonly digestLength = 4;
|
|
9
9
|
private checksum;
|
|
10
10
|
update(data: Uint8Array): void;
|
|
11
|
+
/**
|
|
12
|
+
* Used by EventStreamCodec.
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
digestSync(): number;
|
|
11
16
|
digest(): Promise<Uint8Array>;
|
|
12
17
|
reset(): void;
|
|
13
18
|
}
|
|
@@ -24,3 +24,4 @@ export { map, convertMap, take, type ObjectMappingInstructions, type SourceMappi
|
|
|
24
24
|
export { schemaLogFilter } from "./smithy-client/schemaLogFilter";
|
|
25
25
|
export { serializeFloat, serializeDateTime } from "./smithy-client/ser-utils";
|
|
26
26
|
export { _json } from "./smithy-client/serde-json";
|
|
27
|
+
export { makeBuilder } from "./smithy-client/client-command-builder";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { EndpointParameterInstructions, Logger, MetadataBearer, OptionalParameter, Pluggable, RequestHandler, StaticOperationSchema } from "@smithy/types";
|
|
2
|
+
import { type CommandImpl } from "./command";
|
|
3
|
+
/**
|
|
4
|
+
* Higher order factory for Command builders specific to a client.
|
|
5
|
+
* Produces a command factory that creates Command classes with
|
|
6
|
+
* pre-configured endpoint params, middleware, and schema.
|
|
7
|
+
*
|
|
8
|
+
* @param common - common endpoint params.
|
|
9
|
+
* @param service - service shape name.
|
|
10
|
+
* @param name - SDK Client Name.
|
|
11
|
+
* @param ep - endpoint plugin provider.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare function makeBuilder<C extends {
|
|
16
|
+
logger?: Logger;
|
|
17
|
+
requestHandler: RequestHandler<any, any, any>;
|
|
18
|
+
}, SI extends object, SO extends MetadataBearer>(common: EndpointParameterInstructions, service: string, name: string, ep: (config: any, instructions: any) => Pluggable<any, any>): <I extends SI, O extends SO>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => Pluggable<any, any>[], op: string, $: StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
|
|
19
|
+
new (input: I): CommandImpl<I, O, C, SI, SO>;
|
|
20
|
+
new (...[input]: OptionalParameter<I>): CommandImpl<I, O, C, SI, SO>;
|
|
21
|
+
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
22
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type Handler, type HandlerExecutionContext, type Command as ICommand, type HttpRequest as IHttpRequest, type HttpResponse as IHttpResponse, type MiddlewareStack as IMiddlewareStack, type Logger, type MetadataBearer, type OperationSchema, type OptionalParameter, type Pluggable, type RequestHandler, type SerdeContext, type StaticOperationSchema } from "@smithy/types";
|
|
2
|
-
type EndpointParameterInstructions = Record<string, unknown>;
|
|
1
|
+
import { type EndpointParameterInstructions, type Handler, type HandlerExecutionContext, type Command as ICommand, type HttpRequest as IHttpRequest, type HttpResponse as IHttpResponse, type MiddlewareStack as IMiddlewareStack, type Logger, type MetadataBearer, type OperationSchema, type OptionalParameter, type Pluggable, type RequestHandler, type SerdeContext, type StaticOperationSchema } from "@smithy/types";
|
|
3
2
|
/**
|
|
4
3
|
* @public
|
|
5
4
|
*/
|
|
@@ -12,7 +11,7 @@ export declare abstract class Command<Input extends ClientInput, Output extends
|
|
|
12
11
|
* @internal
|
|
13
12
|
*/
|
|
14
13
|
static classBuilder<I extends SI, O extends SO, C extends {
|
|
15
|
-
logger
|
|
14
|
+
logger?: Logger;
|
|
16
15
|
requestHandler: RequestHandler<any, any, any>;
|
|
17
16
|
}, SI extends object = any, SO extends MetadataBearer = any>(): ClassBuilder<I, O, C, SI, SO>;
|
|
18
17
|
abstract resolveMiddleware(stack: IMiddlewareStack<ClientInput, ClientOutput>, configuration: ResolvedClientConfiguration, options: any): Handler<Input, Output>;
|
|
@@ -20,7 +19,7 @@ export declare abstract class Command<Input extends ClientInput, Output extends
|
|
|
20
19
|
* @internal
|
|
21
20
|
*/
|
|
22
21
|
resolveMiddlewareWithContext(clientStack: IMiddlewareStack<any, any>, configuration: {
|
|
23
|
-
logger
|
|
22
|
+
logger?: Logger;
|
|
24
23
|
requestHandler: RequestHandler<any, any, any>;
|
|
25
24
|
}, options: any, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor, }: ResolveMiddlewareContextArgs): import("@smithy/types").InitializeHandler<any, Output>;
|
|
26
25
|
}
|
|
@@ -41,7 +40,7 @@ type ResolveMiddlewareContextArgs = {
|
|
|
41
40
|
* @internal
|
|
42
41
|
*/
|
|
43
42
|
declare class ClassBuilder<I extends SI, O extends SO, C extends {
|
|
44
|
-
logger
|
|
43
|
+
logger?: Logger;
|
|
45
44
|
requestHandler: RequestHandler<any, any, any>;
|
|
46
45
|
}, SI extends object = any, SO extends MetadataBearer = any> {
|
|
47
46
|
private _init;
|
|
@@ -110,7 +109,7 @@ declare class ClassBuilder<I extends SI, O extends SO, C extends {
|
|
|
110
109
|
* @public
|
|
111
110
|
*/
|
|
112
111
|
export interface CommandImpl<I extends SI, O extends SO, C extends {
|
|
113
|
-
logger
|
|
112
|
+
logger?: Logger;
|
|
114
113
|
requestHandler: RequestHandler<any, any, any>;
|
|
115
114
|
}, SI extends object = any, SO extends MetadataBearer = any> extends Command<I, O, C, SI, SO> {
|
|
116
115
|
readonly input: I;
|
|
@@ -22,3 +22,15 @@ export declare const DEFAULTS_MODE_OPTIONS: string[];
|
|
|
22
22
|
* @internal
|
|
23
23
|
*/
|
|
24
24
|
export declare const IMDS_REGION_PATH = "/latest/meta-data/placement/region";
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export declare const IMDS_TOKEN_PATH = "/latest/api/token";
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
export declare const X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
export declare const X_AWS_EC2_METADATA_TOKEN_TTL = "x-aws-ec2-metadata-token-ttl-seconds";
|