@aws-sdk/client-codedeploy 3.35.0 → 3.38.0
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/CHANGELOG.md +47 -0
- package/dist-cjs/CodeDeploy.js +0 -103
- package/dist-cjs/CodeDeployClient.js +0 -108
- package/dist-cjs/commands/AddTagsToOnPremisesInstancesCommand.js +0 -25
- package/dist-cjs/commands/BatchGetApplicationRevisionsCommand.js +0 -26
- package/dist-cjs/commands/BatchGetApplicationsCommand.js +0 -26
- package/dist-cjs/commands/BatchGetDeploymentGroupsCommand.js +0 -25
- package/dist-cjs/commands/BatchGetDeploymentInstancesCommand.js +0 -34
- package/dist-cjs/commands/BatchGetDeploymentTargetsCommand.js +0 -52
- package/dist-cjs/commands/BatchGetDeploymentsCommand.js +0 -26
- package/dist-cjs/commands/BatchGetOnPremisesInstancesCommand.js +0 -26
- package/dist-cjs/commands/ContinueDeploymentCommand.js +0 -29
- package/dist-cjs/commands/CreateApplicationCommand.js +0 -25
- package/dist-cjs/commands/CreateDeploymentCommand.js +0 -25
- package/dist-cjs/commands/CreateDeploymentConfigCommand.js +0 -25
- package/dist-cjs/commands/CreateDeploymentGroupCommand.js +0 -25
- package/dist-cjs/commands/DeleteApplicationCommand.js +0 -25
- package/dist-cjs/commands/DeleteDeploymentConfigCommand.js +0 -29
- package/dist-cjs/commands/DeleteDeploymentGroupCommand.js +0 -25
- package/dist-cjs/commands/DeleteGitHubAccountTokenCommand.js +0 -25
- package/dist-cjs/commands/DeleteResourcesByExternalIdCommand.js +0 -25
- package/dist-cjs/commands/DeregisterOnPremisesInstanceCommand.js +0 -25
- package/dist-cjs/commands/GetApplicationCommand.js +0 -25
- package/dist-cjs/commands/GetApplicationRevisionCommand.js +0 -25
- package/dist-cjs/commands/GetDeploymentCommand.js +0 -31
- package/dist-cjs/commands/GetDeploymentConfigCommand.js +0 -25
- package/dist-cjs/commands/GetDeploymentGroupCommand.js +0 -25
- package/dist-cjs/commands/GetDeploymentInstanceCommand.js +0 -27
- package/dist-cjs/commands/GetDeploymentTargetCommand.js +0 -25
- package/dist-cjs/commands/GetOnPremisesInstanceCommand.js +0 -25
- package/dist-cjs/commands/ListApplicationRevisionsCommand.js +0 -25
- package/dist-cjs/commands/ListApplicationsCommand.js +0 -25
- package/dist-cjs/commands/ListDeploymentConfigsCommand.js +0 -25
- package/dist-cjs/commands/ListDeploymentGroupsCommand.js +0 -26
- package/dist-cjs/commands/ListDeploymentInstancesCommand.js +0 -33
- package/dist-cjs/commands/ListDeploymentTargetsCommand.js +0 -25
- package/dist-cjs/commands/ListDeploymentsCommand.js +0 -26
- package/dist-cjs/commands/ListGitHubAccountTokenNamesCommand.js +0 -25
- package/dist-cjs/commands/ListOnPremisesInstancesCommand.js +0 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
- package/dist-cjs/commands/PutLifecycleEventHookExecutionStatusCommand.js +0 -33
- package/dist-cjs/commands/RegisterApplicationRevisionCommand.js +0 -25
- package/dist-cjs/commands/RegisterOnPremisesInstanceCommand.js +0 -29
- package/dist-cjs/commands/RemoveTagsFromOnPremisesInstancesCommand.js +0 -25
- package/dist-cjs/commands/SkipWaitTimeForInstanceTerminationCommand.js +0 -28
- package/dist-cjs/commands/StopDeploymentCommand.js +0 -25
- package/dist-cjs/commands/TagResourceCommand.js +0 -26
- package/dist-cjs/commands/UntagResourceCommand.js +0 -27
- package/dist-cjs/commands/UpdateApplicationCommand.js +0 -25
- package/dist-cjs/commands/UpdateDeploymentGroupCommand.js +0 -25
- package/dist-cjs/commands/index.js +50 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +5 -58
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -742
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListApplicationRevisionsPaginator.js +0 -11
- package/dist-cjs/pagination/ListApplicationsPaginator.js +0 -11
- package/dist-cjs/pagination/ListDeploymentConfigsPaginator.js +0 -11
- package/dist-cjs/pagination/ListDeploymentGroupsPaginator.js +0 -11
- package/dist-cjs/pagination/ListDeploymentInstancesPaginator.js +0 -11
- package/dist-cjs/pagination/ListDeploymentsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +10 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-cjs/waiters/index.js +4 -0
- package/dist-cjs/waiters/waitForDeploymentSuccessful.js +0 -10
- package/dist-es/CodeDeploy.js +0 -1
- package/dist-es/CodeDeployClient.js +0 -1
- package/dist-es/commands/AddTagsToOnPremisesInstancesCommand.js +0 -1
- package/dist-es/commands/BatchGetApplicationRevisionsCommand.js +0 -1
- package/dist-es/commands/BatchGetApplicationsCommand.js +0 -1
- package/dist-es/commands/BatchGetDeploymentGroupsCommand.js +0 -1
- package/dist-es/commands/BatchGetDeploymentInstancesCommand.js +0 -1
- package/dist-es/commands/BatchGetDeploymentTargetsCommand.js +0 -1
- package/dist-es/commands/BatchGetDeploymentsCommand.js +0 -1
- package/dist-es/commands/BatchGetOnPremisesInstancesCommand.js +0 -1
- package/dist-es/commands/ContinueDeploymentCommand.js +0 -1
- package/dist-es/commands/CreateApplicationCommand.js +0 -1
- package/dist-es/commands/CreateDeploymentCommand.js +0 -1
- package/dist-es/commands/CreateDeploymentConfigCommand.js +0 -1
- package/dist-es/commands/CreateDeploymentGroupCommand.js +0 -1
- package/dist-es/commands/DeleteApplicationCommand.js +0 -1
- package/dist-es/commands/DeleteDeploymentConfigCommand.js +0 -1
- package/dist-es/commands/DeleteDeploymentGroupCommand.js +0 -1
- package/dist-es/commands/DeleteGitHubAccountTokenCommand.js +0 -1
- package/dist-es/commands/DeleteResourcesByExternalIdCommand.js +0 -1
- package/dist-es/commands/DeregisterOnPremisesInstanceCommand.js +0 -1
- package/dist-es/commands/GetApplicationCommand.js +0 -1
- package/dist-es/commands/GetApplicationRevisionCommand.js +0 -1
- package/dist-es/commands/GetDeploymentCommand.js +0 -1
- package/dist-es/commands/GetDeploymentConfigCommand.js +0 -1
- package/dist-es/commands/GetDeploymentGroupCommand.js +0 -1
- package/dist-es/commands/GetDeploymentInstanceCommand.js +0 -1
- package/dist-es/commands/GetDeploymentTargetCommand.js +0 -1
- package/dist-es/commands/GetOnPremisesInstanceCommand.js +0 -1
- package/dist-es/commands/ListApplicationRevisionsCommand.js +0 -1
- package/dist-es/commands/ListApplicationsCommand.js +0 -1
- package/dist-es/commands/ListDeploymentConfigsCommand.js +0 -1
- package/dist-es/commands/ListDeploymentGroupsCommand.js +0 -1
- package/dist-es/commands/ListDeploymentInstancesCommand.js +0 -1
- package/dist-es/commands/ListDeploymentTargetsCommand.js +0 -1
- package/dist-es/commands/ListDeploymentsCommand.js +0 -1
- package/dist-es/commands/ListGitHubAccountTokenNamesCommand.js +0 -1
- package/dist-es/commands/ListOnPremisesInstancesCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/PutLifecycleEventHookExecutionStatusCommand.js +0 -1
- package/dist-es/commands/RegisterApplicationRevisionCommand.js +0 -1
- package/dist-es/commands/RegisterOnPremisesInstanceCommand.js +0 -1
- package/dist-es/commands/RemoveTagsFromOnPremisesInstancesCommand.js +0 -1
- package/dist-es/commands/SkipWaitTimeForInstanceTerminationCommand.js +0 -1
- package/dist-es/commands/StopDeploymentCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateApplicationCommand.js +0 -1
- package/dist-es/commands/UpdateDeploymentGroupCommand.js +0 -1
- package/dist-es/commands/index.js +47 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +5 -58
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListApplicationRevisionsPaginator.js +0 -1
- package/dist-es/pagination/ListApplicationsPaginator.js +0 -1
- package/dist-es/pagination/ListDeploymentConfigsPaginator.js +0 -1
- package/dist-es/pagination/ListDeploymentGroupsPaginator.js +0 -1
- package/dist-es/pagination/ListDeploymentInstancesPaginator.js +0 -1
- package/dist-es/pagination/ListDeploymentsPaginator.js +0 -1
- package/dist-es/pagination/index.js +7 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-es/waiters/index.js +1 -0
- package/dist-es/waiters/waitForDeploymentSuccessful.js +0 -1
- package/dist-types/commands/index.d.ts +47 -0
- package/dist-types/index.d.ts +5 -57
- package/dist-types/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/CodeDeploy.d.ts +48 -331
- package/dist-types/ts3.4/CodeDeployClient.d.ts +24 -188
- package/dist-types/ts3.4/commands/AddTagsToOnPremisesInstancesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/BatchGetApplicationRevisionsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/BatchGetApplicationsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/BatchGetDeploymentGroupsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/BatchGetDeploymentInstancesCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/BatchGetDeploymentTargetsCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/BatchGetDeploymentsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/BatchGetOnPremisesInstancesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ContinueDeploymentCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateDeploymentCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateDeploymentConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateDeploymentGroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteDeploymentConfigCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DeleteDeploymentGroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteGitHubAccountTokenCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteResourcesByExternalIdCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeregisterOnPremisesInstanceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetApplicationRevisionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/GetDeploymentConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetDeploymentGroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetDeploymentInstanceCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetDeploymentTargetCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetOnPremisesInstanceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListApplicationRevisionsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListDeploymentConfigsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListDeploymentGroupsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListDeploymentInstancesCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListDeploymentTargetsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListGitHubAccountTokenNamesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListOnPremisesInstancesCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/RegisterApplicationRevisionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/RegisterOnPremisesInstanceCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/StopDeploymentCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateDeploymentGroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +47 -0
- package/dist-types/ts3.4/index.d.ts +5 -57
- package/dist-types/ts3.4/models/models_0.d.ts +1001 -4081
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +1 -0
- package/dist-types/ts3.4/waiters/waitForDeploymentSuccessful.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +1 -0
- package/package.json +34 -31
- package/dist-cjs/CodeDeploy.js.map +0 -1
- package/dist-cjs/CodeDeployClient.js.map +0 -1
- package/dist-cjs/commands/AddTagsToOnPremisesInstancesCommand.js.map +0 -1
- package/dist-cjs/commands/BatchGetApplicationRevisionsCommand.js.map +0 -1
- package/dist-cjs/commands/BatchGetApplicationsCommand.js.map +0 -1
- package/dist-cjs/commands/BatchGetDeploymentGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/BatchGetDeploymentInstancesCommand.js.map +0 -1
- package/dist-cjs/commands/BatchGetDeploymentTargetsCommand.js.map +0 -1
- package/dist-cjs/commands/BatchGetDeploymentsCommand.js.map +0 -1
- package/dist-cjs/commands/BatchGetOnPremisesInstancesCommand.js.map +0 -1
- package/dist-cjs/commands/ContinueDeploymentCommand.js.map +0 -1
- package/dist-cjs/commands/CreateApplicationCommand.js.map +0 -1
- package/dist-cjs/commands/CreateDeploymentCommand.js.map +0 -1
- package/dist-cjs/commands/CreateDeploymentConfigCommand.js.map +0 -1
- package/dist-cjs/commands/CreateDeploymentGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteApplicationCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteDeploymentConfigCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteDeploymentGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteGitHubAccountTokenCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteResourcesByExternalIdCommand.js.map +0 -1
- package/dist-cjs/commands/DeregisterOnPremisesInstanceCommand.js.map +0 -1
- package/dist-cjs/commands/GetApplicationCommand.js.map +0 -1
- package/dist-cjs/commands/GetApplicationRevisionCommand.js.map +0 -1
- package/dist-cjs/commands/GetDeploymentCommand.js.map +0 -1
- package/dist-cjs/commands/GetDeploymentConfigCommand.js.map +0 -1
- package/dist-cjs/commands/GetDeploymentGroupCommand.js.map +0 -1
- package/dist-cjs/commands/GetDeploymentInstanceCommand.js.map +0 -1
- package/dist-cjs/commands/GetDeploymentTargetCommand.js.map +0 -1
- package/dist-cjs/commands/GetOnPremisesInstanceCommand.js.map +0 -1
- package/dist-cjs/commands/ListApplicationRevisionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListApplicationsCommand.js.map +0 -1
- package/dist-cjs/commands/ListDeploymentConfigsCommand.js.map +0 -1
- package/dist-cjs/commands/ListDeploymentGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/ListDeploymentInstancesCommand.js.map +0 -1
- package/dist-cjs/commands/ListDeploymentTargetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListDeploymentsCommand.js.map +0 -1
- package/dist-cjs/commands/ListGitHubAccountTokenNamesCommand.js.map +0 -1
- package/dist-cjs/commands/ListOnPremisesInstancesCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/PutLifecycleEventHookExecutionStatusCommand.js.map +0 -1
- package/dist-cjs/commands/RegisterApplicationRevisionCommand.js.map +0 -1
- package/dist-cjs/commands/RegisterOnPremisesInstanceCommand.js.map +0 -1
- package/dist-cjs/commands/RemoveTagsFromOnPremisesInstancesCommand.js.map +0 -1
- package/dist-cjs/commands/SkipWaitTimeForInstanceTerminationCommand.js.map +0 -1
- package/dist-cjs/commands/StopDeploymentCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateApplicationCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateDeploymentGroupCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListApplicationRevisionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListApplicationsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListDeploymentConfigsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListDeploymentGroupsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListDeploymentInstancesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListDeploymentsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-cjs/waiters/waitForDeploymentSuccessful.js.map +0 -1
- package/dist-es/CodeDeploy.js.map +0 -1
- package/dist-es/CodeDeployClient.js.map +0 -1
- package/dist-es/commands/AddTagsToOnPremisesInstancesCommand.js.map +0 -1
- package/dist-es/commands/BatchGetApplicationRevisionsCommand.js.map +0 -1
- package/dist-es/commands/BatchGetApplicationsCommand.js.map +0 -1
- package/dist-es/commands/BatchGetDeploymentGroupsCommand.js.map +0 -1
- package/dist-es/commands/BatchGetDeploymentInstancesCommand.js.map +0 -1
- package/dist-es/commands/BatchGetDeploymentTargetsCommand.js.map +0 -1
- package/dist-es/commands/BatchGetDeploymentsCommand.js.map +0 -1
- package/dist-es/commands/BatchGetOnPremisesInstancesCommand.js.map +0 -1
- package/dist-es/commands/ContinueDeploymentCommand.js.map +0 -1
- package/dist-es/commands/CreateApplicationCommand.js.map +0 -1
- package/dist-es/commands/CreateDeploymentCommand.js.map +0 -1
- package/dist-es/commands/CreateDeploymentConfigCommand.js.map +0 -1
- package/dist-es/commands/CreateDeploymentGroupCommand.js.map +0 -1
- package/dist-es/commands/DeleteApplicationCommand.js.map +0 -1
- package/dist-es/commands/DeleteDeploymentConfigCommand.js.map +0 -1
- package/dist-es/commands/DeleteDeploymentGroupCommand.js.map +0 -1
- package/dist-es/commands/DeleteGitHubAccountTokenCommand.js.map +0 -1
- package/dist-es/commands/DeleteResourcesByExternalIdCommand.js.map +0 -1
- package/dist-es/commands/DeregisterOnPremisesInstanceCommand.js.map +0 -1
- package/dist-es/commands/GetApplicationCommand.js.map +0 -1
- package/dist-es/commands/GetApplicationRevisionCommand.js.map +0 -1
- package/dist-es/commands/GetDeploymentCommand.js.map +0 -1
- package/dist-es/commands/GetDeploymentConfigCommand.js.map +0 -1
- package/dist-es/commands/GetDeploymentGroupCommand.js.map +0 -1
- package/dist-es/commands/GetDeploymentInstanceCommand.js.map +0 -1
- package/dist-es/commands/GetDeploymentTargetCommand.js.map +0 -1
- package/dist-es/commands/GetOnPremisesInstanceCommand.js.map +0 -1
- package/dist-es/commands/ListApplicationRevisionsCommand.js.map +0 -1
- package/dist-es/commands/ListApplicationsCommand.js.map +0 -1
- package/dist-es/commands/ListDeploymentConfigsCommand.js.map +0 -1
- package/dist-es/commands/ListDeploymentGroupsCommand.js.map +0 -1
- package/dist-es/commands/ListDeploymentInstancesCommand.js.map +0 -1
- package/dist-es/commands/ListDeploymentTargetsCommand.js.map +0 -1
- package/dist-es/commands/ListDeploymentsCommand.js.map +0 -1
- package/dist-es/commands/ListGitHubAccountTokenNamesCommand.js.map +0 -1
- package/dist-es/commands/ListOnPremisesInstancesCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/PutLifecycleEventHookExecutionStatusCommand.js.map +0 -1
- package/dist-es/commands/RegisterApplicationRevisionCommand.js.map +0 -1
- package/dist-es/commands/RegisterOnPremisesInstanceCommand.js.map +0 -1
- package/dist-es/commands/RemoveTagsFromOnPremisesInstancesCommand.js.map +0 -1
- package/dist-es/commands/SkipWaitTimeForInstanceTerminationCommand.js.map +0 -1
- package/dist-es/commands/StopDeploymentCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateApplicationCommand.js.map +0 -1
- package/dist-es/commands/UpdateDeploymentGroupCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListApplicationRevisionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListApplicationsPaginator.js.map +0 -1
- package/dist-es/pagination/ListDeploymentConfigsPaginator.js.map +0 -1
- package/dist-es/pagination/ListDeploymentGroupsPaginator.js.map +0 -1
- package/dist-es/pagination/ListDeploymentInstancesPaginator.js.map +0 -1
- package/dist-es/pagination/ListDeploymentsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/dist-es/waiters/waitForDeploymentSuccessful.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/CodeDeploy.ts +0 -1924
- package/src/CodeDeployClient.ts +0 -578
- package/src/commands/AddTagsToOnPremisesInstancesCommand.ts +0 -98
- package/src/commands/BatchGetApplicationRevisionsCommand.ts +0 -101
- package/src/commands/BatchGetApplicationsCommand.ts +0 -96
- package/src/commands/BatchGetDeploymentGroupsCommand.ts +0 -95
- package/src/commands/BatchGetDeploymentInstancesCommand.ts +0 -107
- package/src/commands/BatchGetDeploymentTargetsCommand.ts +0 -125
- package/src/commands/BatchGetDeploymentsCommand.ts +0 -96
- package/src/commands/BatchGetOnPremisesInstancesCommand.ts +0 -99
- package/src/commands/ContinueDeploymentCommand.ts +0 -99
- package/src/commands/CreateApplicationCommand.ts +0 -95
- package/src/commands/CreateDeploymentCommand.ts +0 -95
- package/src/commands/CreateDeploymentConfigCommand.ts +0 -95
- package/src/commands/CreateDeploymentGroupCommand.ts +0 -95
- package/src/commands/DeleteApplicationCommand.ts +0 -95
- package/src/commands/DeleteDeploymentConfigCommand.ts +0 -99
- package/src/commands/DeleteDeploymentGroupCommand.ts +0 -95
- package/src/commands/DeleteGitHubAccountTokenCommand.ts +0 -95
- package/src/commands/DeleteResourcesByExternalIdCommand.ts +0 -98
- package/src/commands/DeregisterOnPremisesInstanceCommand.ts +0 -98
- package/src/commands/GetApplicationCommand.ts +0 -95
- package/src/commands/GetApplicationRevisionCommand.ts +0 -95
- package/src/commands/GetDeploymentCommand.ts +0 -101
- package/src/commands/GetDeploymentConfigCommand.ts +0 -95
- package/src/commands/GetDeploymentGroupCommand.ts +0 -95
- package/src/commands/GetDeploymentInstanceCommand.ts +0 -97
- package/src/commands/GetDeploymentTargetCommand.ts +0 -95
- package/src/commands/GetOnPremisesInstanceCommand.ts +0 -95
- package/src/commands/ListApplicationRevisionsCommand.ts +0 -95
- package/src/commands/ListApplicationsCommand.ts +0 -95
- package/src/commands/ListDeploymentConfigsCommand.ts +0 -95
- package/src/commands/ListDeploymentGroupsCommand.ts +0 -96
- package/src/commands/ListDeploymentInstancesCommand.ts +0 -103
- package/src/commands/ListDeploymentTargetsCommand.ts +0 -95
- package/src/commands/ListDeploymentsCommand.ts +0 -96
- package/src/commands/ListGitHubAccountTokenNamesCommand.ts +0 -98
- package/src/commands/ListOnPremisesInstancesCommand.ts +0 -98
- package/src/commands/ListTagsForResourceCommand.ts +0 -96
- package/src/commands/PutLifecycleEventHookExecutionStatusCommand.ts +0 -114
- package/src/commands/RegisterApplicationRevisionCommand.ts +0 -98
- package/src/commands/RegisterOnPremisesInstanceCommand.ts +0 -102
- package/src/commands/RemoveTagsFromOnPremisesInstancesCommand.ts +0 -101
- package/src/commands/SkipWaitTimeForInstanceTerminationCommand.ts +0 -104
- package/src/commands/StopDeploymentCommand.ts +0 -95
- package/src/commands/TagResourceCommand.ts +0 -96
- package/src/commands/UntagResourceCommand.ts +0 -97
- package/src/commands/UpdateApplicationCommand.ts +0 -95
- package/src/commands/UpdateDeploymentGroupCommand.ts +0 -95
- package/src/endpoints.ts +0 -86
- package/src/index.ts +0 -58
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -7572
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListApplicationRevisionsPaginator.ts +0 -58
- package/src/pagination/ListApplicationsPaginator.ts +0 -58
- package/src/pagination/ListDeploymentConfigsPaginator.ts +0 -58
- package/src/pagination/ListDeploymentGroupsPaginator.ts +0 -58
- package/src/pagination/ListDeploymentInstancesPaginator.ts +0 -58
- package/src/pagination/ListDeploymentsPaginator.ts +0 -58
- package/src/protocols/Aws_json1_1.ts +0 -11359
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/src/waiters/waitForDeploymentSuccessful.ts +0 -63
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { CodeDeploy } from "../CodeDeploy";
|
|
4
|
-
import { CodeDeployClient } from "../CodeDeployClient";
|
|
5
|
-
|
|
6
|
-
export interface CodeDeployPaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: CodeDeploy | CodeDeployClient;
|
|
8
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { CodeDeploy } from "../CodeDeploy";
|
|
4
|
-
import { CodeDeployClient } from "../CodeDeployClient";
|
|
5
|
-
import {
|
|
6
|
-
ListApplicationRevisionsCommand,
|
|
7
|
-
ListApplicationRevisionsCommandInput,
|
|
8
|
-
ListApplicationRevisionsCommandOutput,
|
|
9
|
-
} from "../commands/ListApplicationRevisionsCommand";
|
|
10
|
-
import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: CodeDeployClient,
|
|
17
|
-
input: ListApplicationRevisionsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListApplicationRevisionsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListApplicationRevisionsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: CodeDeploy,
|
|
28
|
-
input: ListApplicationRevisionsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListApplicationRevisionsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listApplicationRevisions(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListApplicationRevisions(
|
|
35
|
-
config: CodeDeployPaginationConfiguration,
|
|
36
|
-
input: ListApplicationRevisionsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListApplicationRevisionsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListApplicationRevisionsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
if (config.client instanceof CodeDeploy) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof CodeDeployClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { CodeDeploy } from "../CodeDeploy";
|
|
4
|
-
import { CodeDeployClient } from "../CodeDeployClient";
|
|
5
|
-
import {
|
|
6
|
-
ListApplicationsCommand,
|
|
7
|
-
ListApplicationsCommandInput,
|
|
8
|
-
ListApplicationsCommandOutput,
|
|
9
|
-
} from "../commands/ListApplicationsCommand";
|
|
10
|
-
import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: CodeDeployClient,
|
|
17
|
-
input: ListApplicationsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListApplicationsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListApplicationsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: CodeDeploy,
|
|
28
|
-
input: ListApplicationsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListApplicationsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listApplications(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListApplications(
|
|
35
|
-
config: CodeDeployPaginationConfiguration,
|
|
36
|
-
input: ListApplicationsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListApplicationsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListApplicationsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
if (config.client instanceof CodeDeploy) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof CodeDeployClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { CodeDeploy } from "../CodeDeploy";
|
|
4
|
-
import { CodeDeployClient } from "../CodeDeployClient";
|
|
5
|
-
import {
|
|
6
|
-
ListDeploymentConfigsCommand,
|
|
7
|
-
ListDeploymentConfigsCommandInput,
|
|
8
|
-
ListDeploymentConfigsCommandOutput,
|
|
9
|
-
} from "../commands/ListDeploymentConfigsCommand";
|
|
10
|
-
import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: CodeDeployClient,
|
|
17
|
-
input: ListDeploymentConfigsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListDeploymentConfigsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListDeploymentConfigsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: CodeDeploy,
|
|
28
|
-
input: ListDeploymentConfigsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListDeploymentConfigsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listDeploymentConfigs(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListDeploymentConfigs(
|
|
35
|
-
config: CodeDeployPaginationConfiguration,
|
|
36
|
-
input: ListDeploymentConfigsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListDeploymentConfigsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListDeploymentConfigsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
if (config.client instanceof CodeDeploy) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof CodeDeployClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { CodeDeploy } from "../CodeDeploy";
|
|
4
|
-
import { CodeDeployClient } from "../CodeDeployClient";
|
|
5
|
-
import {
|
|
6
|
-
ListDeploymentGroupsCommand,
|
|
7
|
-
ListDeploymentGroupsCommandInput,
|
|
8
|
-
ListDeploymentGroupsCommandOutput,
|
|
9
|
-
} from "../commands/ListDeploymentGroupsCommand";
|
|
10
|
-
import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: CodeDeployClient,
|
|
17
|
-
input: ListDeploymentGroupsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListDeploymentGroupsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListDeploymentGroupsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: CodeDeploy,
|
|
28
|
-
input: ListDeploymentGroupsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListDeploymentGroupsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listDeploymentGroups(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListDeploymentGroups(
|
|
35
|
-
config: CodeDeployPaginationConfiguration,
|
|
36
|
-
input: ListDeploymentGroupsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListDeploymentGroupsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListDeploymentGroupsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
if (config.client instanceof CodeDeploy) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof CodeDeployClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { CodeDeploy } from "../CodeDeploy";
|
|
4
|
-
import { CodeDeployClient } from "../CodeDeployClient";
|
|
5
|
-
import {
|
|
6
|
-
ListDeploymentInstancesCommand,
|
|
7
|
-
ListDeploymentInstancesCommandInput,
|
|
8
|
-
ListDeploymentInstancesCommandOutput,
|
|
9
|
-
} from "../commands/ListDeploymentInstancesCommand";
|
|
10
|
-
import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: CodeDeployClient,
|
|
17
|
-
input: ListDeploymentInstancesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListDeploymentInstancesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListDeploymentInstancesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: CodeDeploy,
|
|
28
|
-
input: ListDeploymentInstancesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListDeploymentInstancesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listDeploymentInstances(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListDeploymentInstances(
|
|
35
|
-
config: CodeDeployPaginationConfiguration,
|
|
36
|
-
input: ListDeploymentInstancesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListDeploymentInstancesCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListDeploymentInstancesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
if (config.client instanceof CodeDeploy) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof CodeDeployClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { CodeDeploy } from "../CodeDeploy";
|
|
4
|
-
import { CodeDeployClient } from "../CodeDeployClient";
|
|
5
|
-
import {
|
|
6
|
-
ListDeploymentsCommand,
|
|
7
|
-
ListDeploymentsCommandInput,
|
|
8
|
-
ListDeploymentsCommandOutput,
|
|
9
|
-
} from "../commands/ListDeploymentsCommand";
|
|
10
|
-
import { CodeDeployPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: CodeDeployClient,
|
|
17
|
-
input: ListDeploymentsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListDeploymentsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListDeploymentsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: CodeDeploy,
|
|
28
|
-
input: ListDeploymentsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListDeploymentsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listDeployments(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListDeployments(
|
|
35
|
-
config: CodeDeployPaginationConfiguration,
|
|
36
|
-
input: ListDeploymentsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListDeploymentsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListDeploymentsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
if (config.client instanceof CodeDeploy) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof CodeDeployClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|