@cdklabs/cdk-ecs-codedeploy 0.0.165 → 0.0.167
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 +4 -4
- package/.projenrc.ts +10 -0
- 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-sdk/abort-controller/package.json +3 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/CodeDeployClient.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/AddTagsToOnPremisesInstancesCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetApplicationRevisionsCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetApplicationsCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentGroupsCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentInstancesCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentTargetsCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentsCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetOnPremisesInstancesCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ContinueDeploymentCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateApplicationCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentConfigCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentGroupCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteApplicationCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteDeploymentConfigCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteDeploymentGroupCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteGitHubAccountTokenCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteResourcesByExternalIdCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeregisterOnPremisesInstanceCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetApplicationCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetApplicationRevisionCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentConfigCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentGroupCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentInstanceCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentTargetCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetOnPremisesInstanceCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListApplicationRevisionsCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListApplicationsCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentConfigsCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentGroupsCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentInstancesCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentTargetsCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentsCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListGitHubAccountTokenNamesCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListOnPremisesInstancesCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListTagsForResourceCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/PutLifecycleEventHookExecutionStatusCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RegisterApplicationRevisionCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RegisterOnPremisesInstanceCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RemoveTagsFromOnPremisesInstancesCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/SkipWaitTimeForInstanceTerminationCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/StopDeploymentCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/TagResourceCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UntagResourceCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UpdateApplicationCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UpdateDeploymentGroupCommand.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/CodeDeployServiceException.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/CodeDeployClient.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/AddTagsToOnPremisesInstancesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetApplicationRevisionsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetApplicationsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentGroupsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentInstancesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentTargetsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetOnPremisesInstancesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ContinueDeploymentCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateApplicationCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentConfigCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentGroupCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteApplicationCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteDeploymentConfigCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteDeploymentGroupCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteGitHubAccountTokenCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteResourcesByExternalIdCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeregisterOnPremisesInstanceCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetApplicationCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetApplicationRevisionCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentConfigCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentGroupCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentInstanceCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentTargetCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetOnPremisesInstanceCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListApplicationRevisionsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListApplicationsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentConfigsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentGroupsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentInstancesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentTargetsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListGitHubAccountTokenNamesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListOnPremisesInstancesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListTagsForResourceCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/PutLifecycleEventHookExecutionStatusCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RegisterApplicationRevisionCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RegisterOnPremisesInstanceCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RemoveTagsFromOnPremisesInstancesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/SkipWaitTimeForInstanceTerminationCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/StopDeploymentCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/TagResourceCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UntagResourceCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UpdateApplicationCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UpdateDeploymentGroupCommand.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/index.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/models/CodeDeployServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeployClient.d.ts +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/AddTagsToOnPremisesInstancesCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationRevisionsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentGroupsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentInstancesCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentTargetsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetOnPremisesInstancesCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ContinueDeploymentCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateApplicationCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentConfigCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentGroupCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteApplicationCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentConfigCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentGroupCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteGitHubAccountTokenCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteResourcesByExternalIdCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeregisterOnPremisesInstanceCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationRevisionCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentConfigCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentGroupCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentInstanceCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentTargetCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetOnPremisesInstanceCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationRevisionsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentConfigsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentGroupsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentInstancesCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentTargetsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListGitHubAccountTokenNamesCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListOnPremisesInstancesCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterApplicationRevisionCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterOnPremisesInstanceCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/StopDeploymentCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/TagResourceCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UntagResourceCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateApplicationCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateDeploymentGroupCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/index.d.ts +99 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/CodeDeployServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/CodeDeployClient.d.ts +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/AddTagsToOnPremisesInstancesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetApplicationRevisionsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetApplicationsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentGroupsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentInstancesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentTargetsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetDeploymentsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/BatchGetOnPremisesInstancesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ContinueDeploymentCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateDeploymentCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateDeploymentConfigCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/CreateDeploymentGroupCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteDeploymentConfigCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteDeploymentGroupCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteGitHubAccountTokenCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeleteResourcesByExternalIdCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/DeregisterOnPremisesInstanceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetApplicationRevisionCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentConfigCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentGroupCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentInstanceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetDeploymentTargetCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/GetOnPremisesInstanceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListApplicationRevisionsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentConfigsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentGroupsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentInstancesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentTargetsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListGitHubAccountTokenNamesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListOnPremisesInstancesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/RegisterApplicationRevisionCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/RegisterOnPremisesInstanceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/StopDeploymentCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/commands/UpdateDeploymentGroupCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/index.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/CodeDeployServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/package.json +29 -29
- package/node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/index.js +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-es/models/SSOServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/GetRoleCredentialsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/index.d.ts +25 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/models/SSOServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/LogoutCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/index.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/SSOServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/package.json +25 -25
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +45 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/SSOOIDCServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +25 -25
- package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/index.js +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +10 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/models/STSServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +3 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/STSServiceException.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/package.json +28 -28
- package/node_modules/@aws-sdk/config-resolver/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-imds/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/fetch-http-handler/package.json +6 -5
- package/node_modules/@aws-sdk/hash-node/package.json +3 -2
- package/node_modules/@aws-sdk/invalid-dependency/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-content-length/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-endpoint/package.json +6 -5
- package/node_modules/@aws-sdk/middleware-host-header/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-retry/package.json +8 -7
- package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-serde/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-signing/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-stack/package.json +3 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
- package/node_modules/@aws-sdk/node-config-provider/package.json +4 -4
- package/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js +12 -3
- package/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js +20 -11
- package/node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js +16 -8
- package/node_modules/@aws-sdk/node-http-handler/dist-es/node-http-handler.js +12 -3
- package/node_modules/@aws-sdk/node-http-handler/dist-es/node-http2-handler.js +20 -11
- package/node_modules/@aws-sdk/node-http-handler/dist-es/write-request-body.js +15 -8
- package/node_modules/@aws-sdk/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +3 -2
- package/node_modules/@aws-sdk/node-http-handler/dist-types/write-request-body.d.ts +8 -1
- package/node_modules/@aws-sdk/node-http-handler/package.json +6 -5
- package/node_modules/@aws-sdk/property-provider/package.json +2 -2
- package/node_modules/@aws-sdk/protocol-http/package.json +2 -2
- package/node_modules/@aws-sdk/querystring-builder/package.json +2 -2
- package/node_modules/@aws-sdk/querystring-parser/package.json +2 -2
- package/node_modules/@aws-sdk/service-error-classification/package.json +2 -2
- package/node_modules/@aws-sdk/shared-ini-file-loader/package.json +3 -2
- package/node_modules/@aws-sdk/signature-v4/package.json +5 -4
- package/node_modules/@aws-sdk/smithy-client/dist-types/client.d.ts +1 -1
- package/node_modules/@aws-sdk/smithy-client/dist-types/command.d.ts +1 -1
- package/node_modules/@aws-sdk/smithy-client/dist-types/exceptions.d.ts +2 -2
- package/node_modules/@aws-sdk/smithy-client/package.json +4 -3
- package/node_modules/@aws-sdk/token-providers/package.json +6 -5
- package/node_modules/@aws-sdk/types/dist-types/response.d.ts +1 -1
- package/node_modules/@aws-sdk/types/package.json +2 -1
- package/node_modules/@aws-sdk/url-parser/package.json +3 -3
- package/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@aws-sdk/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-middleware/package.json +2 -2
- package/node_modules/@aws-sdk/util-retry/README.md +20 -6
- package/node_modules/@aws-sdk/util-retry/package.json +4 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
- package/node_modules/@aws-sdk/util-waiter/package.json +3 -3
- package/package.json +6 -6
|
@@ -33,13 +33,22 @@ export class NodeHttp2Handler {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
const { requestTimeout, disableConcurrentStreams } = this.config;
|
|
36
|
-
return new Promise((
|
|
36
|
+
return new Promise((_resolve, _reject) => {
|
|
37
37
|
let fulfilled = false;
|
|
38
|
+
let writeRequestBodyPromise = undefined;
|
|
39
|
+
const resolve = async (arg) => {
|
|
40
|
+
await writeRequestBodyPromise;
|
|
41
|
+
_resolve(arg);
|
|
42
|
+
};
|
|
43
|
+
const reject = async (arg) => {
|
|
44
|
+
await writeRequestBodyPromise;
|
|
45
|
+
_reject(arg);
|
|
46
|
+
};
|
|
38
47
|
if (abortSignal?.aborted) {
|
|
39
48
|
fulfilled = true;
|
|
40
49
|
const abortError = new Error("Request aborted");
|
|
41
50
|
abortError.name = "AbortError";
|
|
42
|
-
|
|
51
|
+
reject(abortError);
|
|
43
52
|
return;
|
|
44
53
|
}
|
|
45
54
|
const { hostname, method, port, protocol, path, query } = request;
|
|
@@ -49,12 +58,12 @@ export class NodeHttp2Handler {
|
|
|
49
58
|
requestTimeout: this.config?.sessionTimeout,
|
|
50
59
|
disableConcurrentStreams: disableConcurrentStreams || false,
|
|
51
60
|
});
|
|
52
|
-
const
|
|
61
|
+
const rejectWithDestroy = (err) => {
|
|
53
62
|
if (disableConcurrentStreams) {
|
|
54
63
|
this.destroySession(session);
|
|
55
64
|
}
|
|
56
65
|
fulfilled = true;
|
|
57
|
-
|
|
66
|
+
reject(err);
|
|
58
67
|
};
|
|
59
68
|
const queryString = buildQueryString(query || {});
|
|
60
69
|
const req = session.request({
|
|
@@ -81,7 +90,7 @@ export class NodeHttp2Handler {
|
|
|
81
90
|
req.close();
|
|
82
91
|
const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`);
|
|
83
92
|
timeoutError.name = "TimeoutError";
|
|
84
|
-
|
|
93
|
+
rejectWithDestroy(timeoutError);
|
|
85
94
|
});
|
|
86
95
|
}
|
|
87
96
|
if (abortSignal) {
|
|
@@ -89,15 +98,15 @@ export class NodeHttp2Handler {
|
|
|
89
98
|
req.close();
|
|
90
99
|
const abortError = new Error("Request aborted");
|
|
91
100
|
abortError.name = "AbortError";
|
|
92
|
-
|
|
101
|
+
rejectWithDestroy(abortError);
|
|
93
102
|
};
|
|
94
103
|
}
|
|
95
104
|
req.on("frameError", (type, code, id) => {
|
|
96
|
-
|
|
105
|
+
rejectWithDestroy(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`));
|
|
97
106
|
});
|
|
98
|
-
req.on("error",
|
|
107
|
+
req.on("error", rejectWithDestroy);
|
|
99
108
|
req.on("aborted", () => {
|
|
100
|
-
|
|
109
|
+
rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`));
|
|
101
110
|
});
|
|
102
111
|
req.on("close", () => {
|
|
103
112
|
session.unref();
|
|
@@ -105,10 +114,10 @@ export class NodeHttp2Handler {
|
|
|
105
114
|
session.destroy();
|
|
106
115
|
}
|
|
107
116
|
if (!fulfilled) {
|
|
108
|
-
|
|
117
|
+
rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
|
|
109
118
|
}
|
|
110
119
|
});
|
|
111
|
-
writeRequestBody(req, request);
|
|
120
|
+
writeRequestBodyPromise = writeRequestBody(req, request, requestTimeout);
|
|
112
121
|
});
|
|
113
122
|
}
|
|
114
123
|
destroySession(session) {
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { Readable } from "stream";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
const MIN_WAIT_TIME = 1000;
|
|
3
|
+
export async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) {
|
|
4
|
+
const headers = request.headers ?? {};
|
|
5
|
+
const expect = headers["Expect"] || headers["expect"];
|
|
4
6
|
if (expect === "100-continue") {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
await Promise.race([
|
|
8
|
+
new Promise((resolve) => {
|
|
9
|
+
setTimeout(resolve, Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs));
|
|
10
|
+
}),
|
|
11
|
+
new Promise((resolve) => {
|
|
12
|
+
httpRequest.on("continue", () => {
|
|
13
|
+
resolve();
|
|
14
|
+
});
|
|
15
|
+
}),
|
|
16
|
+
]);
|
|
11
17
|
}
|
|
18
|
+
writeBody(httpRequest, request.body);
|
|
12
19
|
}
|
|
13
20
|
function writeBody(httpRequest, body) {
|
|
14
21
|
if (body instanceof Readable) {
|
|
@@ -3,5 +3,6 @@ import { ClientRequest } from "http";
|
|
|
3
3
|
import { ClientHttp2Stream } from "http2";
|
|
4
4
|
export declare function writeRequestBody(
|
|
5
5
|
httpRequest: ClientRequest | ClientHttp2Stream,
|
|
6
|
-
request: HttpRequest
|
|
7
|
-
|
|
6
|
+
request: HttpRequest,
|
|
7
|
+
maxContinueTimeoutMs?: number
|
|
8
|
+
): Promise<void>;
|
|
@@ -3,4 +3,11 @@
|
|
|
3
3
|
import { HttpRequest } from "@aws-sdk/types";
|
|
4
4
|
import { ClientRequest } from "http";
|
|
5
5
|
import { ClientHttp2Stream } from "http2";
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* This resolves when writeBody has been called.
|
|
8
|
+
*
|
|
9
|
+
* @param httpRequest - opened Node.js request.
|
|
10
|
+
* @param request - container with the request body.
|
|
11
|
+
* @param maxContinueTimeoutMs - maximum time to wait for the continue event. Minimum of 1000ms.
|
|
12
|
+
*/
|
|
13
|
+
export declare function writeRequestBody(httpRequest: ClientRequest | ClientHttp2Stream, request: HttpRequest, maxContinueTimeoutMs?: number): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/node-http-handler",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
12
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
13
|
+
"extract:docs": "api-extractor run --local",
|
|
13
14
|
"test": "jest --coverage"
|
|
14
15
|
},
|
|
15
16
|
"author": {
|
|
@@ -22,10 +23,10 @@
|
|
|
22
23
|
"module": "./dist-es/index.js",
|
|
23
24
|
"types": "./dist-types/index.d.ts",
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/abort-controller": "3.
|
|
26
|
-
"@aws-sdk/protocol-http": "3.
|
|
27
|
-
"@aws-sdk/querystring-builder": "3.
|
|
28
|
-
"@aws-sdk/types": "3.
|
|
26
|
+
"@aws-sdk/abort-controller": "3.338.0",
|
|
27
|
+
"@aws-sdk/protocol-http": "3.338.0",
|
|
28
|
+
"@aws-sdk/querystring-builder": "3.338.0",
|
|
29
|
+
"@aws-sdk/types": "3.338.0",
|
|
29
30
|
"tslib": "^2.5.0"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/property-provider",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/types": "3.
|
|
23
|
+
"@aws-sdk/types": "3.338.0",
|
|
24
24
|
"tslib": "^2.5.0"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/protocol-http",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.338.0",
|
|
25
25
|
"tslib": "^2.5.0"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/querystring-builder",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/types": "3.
|
|
23
|
+
"@aws-sdk/types": "3.338.0",
|
|
24
24
|
"@aws-sdk/util-uri-escape": "3.310.0",
|
|
25
25
|
"tslib": "^2.5.0"
|
|
26
26
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/querystring-parser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/types": "3.
|
|
23
|
+
"@aws-sdk/types": "3.338.0",
|
|
24
24
|
"tslib": "^2.5.0"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/service-error-classification",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@aws-sdk/types": "3.
|
|
23
|
+
"@aws-sdk/types": "3.338.0",
|
|
24
24
|
"@tsconfig/recommended": "1.0.1",
|
|
25
25
|
"concurrently": "7.0.0",
|
|
26
26
|
"downlevel-dts": "0.10.1",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/shared-ini-file-loader",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@aws-sdk/types": "3.
|
|
5
|
+
"@aws-sdk/types": "3.338.0",
|
|
6
6
|
"tslib": "^2.5.0"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"build:types": "tsc -p tsconfig.types.json",
|
|
23
23
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
24
24
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
25
|
+
"extract:docs": "api-extractor run --local",
|
|
25
26
|
"test": "jest"
|
|
26
27
|
},
|
|
27
28
|
"author": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/signature-v4",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"build:types": "tsc -p tsconfig.types.json",
|
|
14
14
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
15
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
16
|
+
"extract:docs": "api-extractor run --local",
|
|
16
17
|
"test": "jest --coverage"
|
|
17
18
|
},
|
|
18
19
|
"author": {
|
|
@@ -22,16 +23,16 @@
|
|
|
22
23
|
"license": "Apache-2.0",
|
|
23
24
|
"dependencies": {
|
|
24
25
|
"@aws-sdk/is-array-buffer": "3.310.0",
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
26
|
+
"@aws-sdk/types": "3.338.0",
|
|
26
27
|
"@aws-sdk/util-hex-encoding": "3.310.0",
|
|
27
|
-
"@aws-sdk/util-middleware": "3.
|
|
28
|
+
"@aws-sdk/util-middleware": "3.338.0",
|
|
28
29
|
"@aws-sdk/util-uri-escape": "3.310.0",
|
|
29
30
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
30
31
|
"tslib": "^2.5.0"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
34
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
34
|
-
"@aws-sdk/protocol-http": "3.
|
|
35
|
+
"@aws-sdk/protocol-http": "3.338.0",
|
|
35
36
|
"@tsconfig/recommended": "1.0.1",
|
|
36
37
|
"concurrently": "7.0.0",
|
|
37
38
|
"downlevel-dts": "0.10.1",
|
|
@@ -16,7 +16,7 @@ export interface SmithyConfiguration<HandlerOptions> {
|
|
|
16
16
|
*/
|
|
17
17
|
export type SmithyResolvedConfiguration<HandlerOptions> = SmithyConfiguration<HandlerOptions>;
|
|
18
18
|
/**
|
|
19
|
-
* @
|
|
19
|
+
* @public
|
|
20
20
|
*/
|
|
21
21
|
export declare class Client<HandlerOptions, ClientInput extends object, ClientOutput extends MetadataBearer, ResolvedClientConfiguration extends SmithyResolvedConfiguration<HandlerOptions>> implements IClient<ClientInput, ClientOutput, ResolvedClientConfiguration> {
|
|
22
22
|
middlewareStack: MiddlewareStack<ClientInput, ClientOutput>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command as ICommand, Handler, MetadataBearer, MiddlewareStack as IMiddlewareStack } from "@aws-sdk/types";
|
|
2
2
|
/**
|
|
3
|
-
* @
|
|
3
|
+
* @public
|
|
4
4
|
*/
|
|
5
5
|
export declare abstract class Command<Input extends ClientInput, Output extends ClientOutput, ResolvedClientConfiguration, ClientInput extends object = any, ClientOutput extends MetadataBearer = any> implements ICommand<ClientInput, Input, ClientOutput, Output, ResolvedClientConfiguration> {
|
|
6
6
|
abstract input: Input;
|
|
@@ -7,13 +7,13 @@ import { HttpResponse, MetadataBearer, ResponseMetadata, RetryableTrait, SmithyE
|
|
|
7
7
|
*/
|
|
8
8
|
export type ExceptionOptionType<ExceptionType extends Error, BaseExceptionType extends Error> = Omit<ExceptionType, Exclude<keyof BaseExceptionType, "$metadata" | "message">>;
|
|
9
9
|
/**
|
|
10
|
-
* @
|
|
10
|
+
* @public
|
|
11
11
|
*/
|
|
12
12
|
export interface ServiceExceptionOptions extends SmithyException, MetadataBearer {
|
|
13
13
|
message?: string;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* @
|
|
16
|
+
* @public
|
|
17
17
|
*
|
|
18
18
|
* Base exception class for the exceptions from the server-side.
|
|
19
19
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/smithy-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"build:types": "tsc -p tsconfig.types.json",
|
|
10
10
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
11
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
12
|
+
"extract:docs": "api-extractor run --local",
|
|
12
13
|
"test": "jest --passWithNoTests"
|
|
13
14
|
},
|
|
14
15
|
"main": "./dist-cjs/index.js",
|
|
@@ -20,8 +21,8 @@
|
|
|
20
21
|
},
|
|
21
22
|
"license": "Apache-2.0",
|
|
22
23
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/middleware-stack": "3.
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/middleware-stack": "3.338.0",
|
|
25
|
+
"@aws-sdk/types": "3.338.0",
|
|
25
26
|
"tslib": "^2.5.0"
|
|
26
27
|
},
|
|
27
28
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"build:types": "tsc -p tsconfig.types.json",
|
|
14
14
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
15
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
16
|
+
"extract:docs": "api-extractor run --local",
|
|
16
17
|
"test": "jest"
|
|
17
18
|
},
|
|
18
19
|
"keywords": [
|
|
@@ -25,10 +26,10 @@
|
|
|
25
26
|
},
|
|
26
27
|
"license": "Apache-2.0",
|
|
27
28
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
29
|
-
"@aws-sdk/property-provider": "3.
|
|
30
|
-
"@aws-sdk/shared-ini-file-loader": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
29
|
+
"@aws-sdk/client-sso-oidc": "3.338.0",
|
|
30
|
+
"@aws-sdk/property-provider": "3.338.0",
|
|
31
|
+
"@aws-sdk/shared-ini-file-loader": "3.338.0",
|
|
32
|
+
"@aws-sdk/types": "3.338.0",
|
|
32
33
|
"tslib": "^2.5.0"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"main": "./dist-cjs/index.js",
|
|
5
5
|
"module": "./dist-es/index.js",
|
|
6
6
|
"types": "./dist-types/index.d.ts",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"build:types": "tsc -p tsconfig.types.json",
|
|
14
14
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
15
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
16
|
+
"extract:docs": "api-extractor run --local",
|
|
16
17
|
"test": "tsc -p tsconfig.test.json"
|
|
17
18
|
},
|
|
18
19
|
"author": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/url-parser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/querystring-parser": "3.
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
23
|
+
"@aws-sdk/querystring-parser": "3.338.0",
|
|
24
|
+
"@aws-sdk/types": "3.338.0",
|
|
25
25
|
"tslib": "^2.5.0"
|
|
26
26
|
},
|
|
27
27
|
"typesVersions": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-defaults-mode-browser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
},
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@aws-sdk/property-provider": "3.
|
|
23
|
-
"@aws-sdk/types": "3.
|
|
22
|
+
"@aws-sdk/property-provider": "3.338.0",
|
|
23
|
+
"@aws-sdk/types": "3.338.0",
|
|
24
24
|
"bowser": "^2.11.0",
|
|
25
25
|
"tslib": "^2.5.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@aws-sdk/smithy-client": "3.
|
|
28
|
+
"@aws-sdk/smithy-client": "3.338.0",
|
|
29
29
|
"@tsconfig/recommended": "1.0.1",
|
|
30
30
|
"@types/node": "^14.14.31",
|
|
31
31
|
"concurrently": "7.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-defaults-mode-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
},
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-imds": "3.
|
|
24
|
-
"@aws-sdk/node-config-provider": "3.
|
|
25
|
-
"@aws-sdk/property-provider": "3.
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
22
|
+
"@aws-sdk/config-resolver": "3.338.0",
|
|
23
|
+
"@aws-sdk/credential-provider-imds": "3.338.0",
|
|
24
|
+
"@aws-sdk/node-config-provider": "3.338.0",
|
|
25
|
+
"@aws-sdk/property-provider": "3.338.0",
|
|
26
|
+
"@aws-sdk/types": "3.338.0",
|
|
27
27
|
"tslib": "^2.5.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@aws-sdk/smithy-client": "3.
|
|
30
|
+
"@aws-sdk/smithy-client": "3.338.0",
|
|
31
31
|
"@tsconfig/recommended": "1.0.1",
|
|
32
32
|
"@types/node": "^14.14.31",
|
|
33
33
|
"concurrently": "7.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-endpoints",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"description": "Utilities to help with endpoint resolution",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
25
|
+
"@aws-sdk/types": "3.338.0",
|
|
26
26
|
"tslib": "^2.5.0"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-middleware",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"description": "Shared utilities for to be used in middleware packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"tslib": "^2.5.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
30
|
+
"@aws-sdk/types": "3.338.0",
|
|
31
31
|
"@tsconfig/recommended": "1.0.1",
|
|
32
32
|
"@types/node": "^14.14.31",
|
|
33
33
|
"concurrently": "7.0.0",
|
|
@@ -22,16 +22,12 @@ const client = new S3Client({}); // default retry strategy included.
|
|
|
22
22
|
|
|
23
23
|
### MaxAttempts
|
|
24
24
|
|
|
25
|
-
If you want to change the number of attempts, you can
|
|
25
|
+
If you want to change the number of attempts, you can provide `maxAttempts` configuration during client creation.
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
28
|
import { S3Client } from "@aws-sdk/client-s3";
|
|
29
|
-
import { StandardRetryStrategy } from "@aws-sdk/util-retry";
|
|
30
29
|
|
|
31
|
-
const client = new S3Client({
|
|
32
|
-
// custom max number of attempts.
|
|
33
|
-
retryStrategy: new StandardRetryStrategy(4),
|
|
34
|
-
});
|
|
30
|
+
const client = new S3Client({ maxAttempts: 4 });
|
|
35
31
|
```
|
|
36
32
|
|
|
37
33
|
This is recommended because the `StandardRetryStrategy` includes backoff calculation,
|
|
@@ -56,6 +52,24 @@ const client = new S3Client({
|
|
|
56
52
|
|
|
57
53
|
This example sets the backoff at 100ms plus 1s per attempt.
|
|
58
54
|
|
|
55
|
+
### MaxAttempts and RetryStrategy
|
|
56
|
+
|
|
57
|
+
If you provide both `maxAttempts` and `retryStrategy`, the `retryStrategy` will
|
|
58
|
+
get precedence as it's more specific.
|
|
59
|
+
|
|
60
|
+
```js
|
|
61
|
+
import { S3Client } from "@aws-sdk/client-s3";
|
|
62
|
+
import { ConfiguredRetryStrategy } from "@aws-sdk/util-retry";
|
|
63
|
+
|
|
64
|
+
const client = new S3Client({
|
|
65
|
+
maxAttempts: 2, // ignored.
|
|
66
|
+
retryStrategy: new ConfiguredRetryStrategy(
|
|
67
|
+
4, // used.
|
|
68
|
+
(attempt: number) => 100 + attempt * 1000 // backoff function.
|
|
69
|
+
),
|
|
70
|
+
});
|
|
71
|
+
```
|
|
72
|
+
|
|
59
73
|
### Further customization
|
|
60
74
|
|
|
61
75
|
You can implement the `RetryStrategyV2` interface.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-retry",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"description": "Shared retry utilities to be used in middleware packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"build:types": "tsc -p tsconfig.types.json",
|
|
13
13
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
14
14
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
15
|
+
"extract:docs": "api-extractor run --local",
|
|
15
16
|
"test": "jest"
|
|
16
17
|
},
|
|
17
18
|
"keywords": [
|
|
@@ -24,11 +25,11 @@
|
|
|
24
25
|
},
|
|
25
26
|
"license": "Apache-2.0",
|
|
26
27
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/service-error-classification": "3.
|
|
28
|
+
"@aws-sdk/service-error-classification": "3.338.0",
|
|
28
29
|
"tslib": "^2.5.0"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
+
"@aws-sdk/types": "3.338.0",
|
|
32
33
|
"@tsconfig/recommended": "1.0.1",
|
|
33
34
|
"@types/node": "^14.14.31",
|
|
34
35
|
"concurrently": "7.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-browser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.338.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"react-native": "dist-es/index.native.js",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.338.0",
|
|
25
25
|
"bowser": "^2.11.0",
|
|
26
26
|
"tslib": "^2.5.0"
|
|
27
27
|
},
|