@aws-sdk/client-codepipeline 3.34.0 → 3.37.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 → dist-cjs}/CodePipeline.js +0 -198
- package/dist-cjs/CodePipelineClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/AcknowledgeJobCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/AcknowledgeThirdPartyJobCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/CreateCustomActionTypeCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/CreatePipelineCommand.js +2 -33
- package/dist-cjs/commands/DeleteCustomActionTypeCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/DeletePipelineCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteWebhookCommand.js +2 -31
- package/{dist/cjs → dist-cjs}/commands/DeregisterWebhookWithThirdPartyCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/DisableStageTransitionCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/EnableStageTransitionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetActionTypeCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/GetJobDetailsCommand.js +2 -33
- package/{dist/cjs → dist-cjs}/commands/GetPipelineCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/GetPipelineExecutionCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/GetPipelineStateCommand.js +2 -33
- package/{dist/cjs → dist-cjs}/commands/GetThirdPartyJobDetailsCommand.js +2 -34
- package/{dist/cjs → dist-cjs}/commands/ListActionExecutionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListActionTypesCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListPipelineExecutionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListPipelinesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListWebhooksCommand.js +2 -29
- package/dist-cjs/commands/PollForJobsCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/PollForThirdPartyJobsCommand.js +2 -33
- package/{dist/cjs → dist-cjs}/commands/PutActionRevisionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/PutApprovalResultCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/PutJobFailureResultCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/PutJobSuccessResultCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/PutThirdPartyJobFailureResultCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/PutThirdPartyJobSuccessResultCommand.js +2 -28
- package/dist-cjs/commands/PutWebhookCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/RegisterWebhookWithThirdPartyCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/RetryStageExecutionCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/StartPipelineExecutionCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/StopPipelineExecutionCommand.js +2 -32
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateActionTypeCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/UpdatePipelineCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -520
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListActionExecutionsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListActionTypesPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListPipelineExecutionsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListPipelinesPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListTagsForResourcePaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListWebhooksPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/CodePipeline.js +0 -1
- package/{dist/es → dist-es}/CodePipelineClient.js +1 -2
- package/{dist/es → dist-es}/commands/AcknowledgeJobCommand.js +2 -3
- package/{dist/es → dist-es}/commands/AcknowledgeThirdPartyJobCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateCustomActionTypeCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreatePipelineCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteCustomActionTypeCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeletePipelineCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteWebhookCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeregisterWebhookWithThirdPartyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DisableStageTransitionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/EnableStageTransitionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetActionTypeCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetJobDetailsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetPipelineCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetPipelineExecutionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetPipelineStateCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetThirdPartyJobDetailsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListActionExecutionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListActionTypesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListPipelineExecutionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListPipelinesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListWebhooksCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PollForJobsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PollForThirdPartyJobsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutActionRevisionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutApprovalResultCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutJobFailureResultCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutJobSuccessResultCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutThirdPartyJobFailureResultCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutThirdPartyJobSuccessResultCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutWebhookCommand.js +2 -3
- package/{dist/es → dist-es}/commands/RegisterWebhookWithThirdPartyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/RetryStageExecutionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StartPipelineExecutionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StopPipelineExecutionCommand.js +2 -3
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateActionTypeCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdatePipelineCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListActionExecutionsPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListActionTypesPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListPipelineExecutionsPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListPipelinesPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListTagsForResourcePaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListWebhooksPaginator.js +0 -1
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/CodePipeline.d.ts +1 -1
- package/{dist/types → dist-types}/CodePipelineClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/AcknowledgeJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/AcknowledgeThirdPartyJobCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateCustomActionTypeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreatePipelineCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteCustomActionTypeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeletePipelineCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteWebhookCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeregisterWebhookWithThirdPartyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DisableStageTransitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/EnableStageTransitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetActionTypeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetJobDetailsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetPipelineCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetPipelineExecutionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetPipelineStateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetThirdPartyJobDetailsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListActionExecutionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListActionTypesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListPipelineExecutionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListPipelinesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListWebhooksCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PollForJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PollForThirdPartyJobsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutActionRevisionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutApprovalResultCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutJobFailureResultCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutJobSuccessResultCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutThirdPartyJobFailureResultCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutThirdPartyJobSuccessResultCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutWebhookCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RegisterWebhookWithThirdPartyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RetryStageExecutionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartPipelineExecutionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StopPipelineExecutionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateActionTypeCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdatePipelineCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListActionExecutionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListActionTypesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPipelineExecutionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPipelinesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListTagsForResourcePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListWebhooksPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/CodePipeline.d.ts +41 -411
- package/dist-types/ts3.4/CodePipelineClient.d.ts +106 -0
- package/dist-types/ts3.4/commands/AcknowledgeJobCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/AcknowledgeThirdPartyJobCommand.d.ts +4 -23
- package/dist-types/ts3.4/commands/CreateCustomActionTypeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreatePipelineCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteCustomActionTypeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeletePipelineCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteWebhookCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeregisterWebhookWithThirdPartyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisableStageTransitionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/EnableStageTransitionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetActionTypeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetJobDetailsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetPipelineCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetPipelineExecutionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetPipelineStateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetThirdPartyJobDetailsCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListActionExecutionsCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/ListActionTypesCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListPipelineExecutionsCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/ListPipelinesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListWebhooksCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PollForJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PollForThirdPartyJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutActionRevisionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutApprovalResultCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutJobFailureResultCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutJobSuccessResultCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutThirdPartyJobFailureResultCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutThirdPartyJobSuccessResultCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutWebhookCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/RegisterWebhookWithThirdPartyCommand.d.ts +4 -23
- package/dist-types/ts3.4/commands/RetryStageExecutionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartPipelineExecutionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopPipelineExecutionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateActionTypeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdatePipelineCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2230 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListActionExecutionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListActionTypesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPipelineExecutionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPipelinesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListWebhooksPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/CodePipeline.ts +0 -1697
- package/CodePipelineClient.ts +0 -606
- package/commands/AcknowledgeJobCommand.ts +0 -95
- package/commands/AcknowledgeThirdPartyJobCommand.ts +0 -95
- package/commands/CreateCustomActionTypeCommand.ts +0 -95
- package/commands/CreatePipelineCommand.ts +0 -100
- package/commands/DeleteCustomActionTypeCommand.ts +0 -102
- package/commands/DeletePipelineCommand.ts +0 -94
- package/commands/DeleteWebhookCommand.ts +0 -98
- package/commands/DeregisterWebhookWithThirdPartyCommand.ts +0 -104
- package/commands/DisableStageTransitionCommand.ts +0 -95
- package/commands/EnableStageTransitionCommand.ts +0 -94
- package/commands/GetActionTypeCommand.ts +0 -96
- package/commands/GetJobDetailsCommand.ts +0 -100
- package/commands/GetPipelineCommand.ts +0 -96
- package/commands/GetPipelineExecutionCommand.ts +0 -96
- package/commands/GetPipelineStateCommand.ts +0 -100
- package/commands/GetThirdPartyJobDetailsCommand.ts +0 -101
- package/commands/ListActionExecutionsCommand.ts +0 -94
- package/commands/ListActionTypesCommand.ts +0 -95
- package/commands/ListPipelineExecutionsCommand.ts +0 -94
- package/commands/ListPipelinesCommand.ts +0 -94
- package/commands/ListTagsForResourceCommand.ts +0 -95
- package/commands/ListWebhooksCommand.ts +0 -96
- package/commands/PollForJobsCommand.ts +0 -103
- package/commands/PollForThirdPartyJobsCommand.ts +0 -100
- package/commands/PutActionRevisionCommand.ts +0 -94
- package/commands/PutApprovalResultCommand.ts +0 -95
- package/commands/PutJobFailureResultCommand.ts +0 -95
- package/commands/PutJobSuccessResultCommand.ts +0 -95
- package/commands/PutThirdPartyJobFailureResultCommand.ts +0 -98
- package/commands/PutThirdPartyJobSuccessResultCommand.ts +0 -98
- package/commands/PutWebhookCommand.ts +0 -100
- package/commands/RegisterWebhookWithThirdPartyCommand.ts +0 -100
- package/commands/RetryStageExecutionCommand.ts +0 -97
- package/commands/StartPipelineExecutionCommand.ts +0 -95
- package/commands/StopPipelineExecutionCommand.ts +0 -99
- package/commands/TagResourceCommand.ts +0 -95
- package/commands/UntagResourceCommand.ts +0 -94
- package/commands/UpdateActionTypeCommand.ts +0 -97
- package/commands/UpdatePipelineCommand.ts +0 -97
- package/dist/cjs/CodePipeline.js.map +0 -1
- package/dist/cjs/CodePipelineClient.js +0 -238
- package/dist/cjs/CodePipelineClient.js.map +0 -1
- package/dist/cjs/commands/AcknowledgeJobCommand.js.map +0 -1
- package/dist/cjs/commands/AcknowledgeThirdPartyJobCommand.js.map +0 -1
- package/dist/cjs/commands/CreateCustomActionTypeCommand.js.map +0 -1
- package/dist/cjs/commands/CreatePipelineCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteCustomActionTypeCommand.js +0 -69
- package/dist/cjs/commands/DeleteCustomActionTypeCommand.js.map +0 -1
- package/dist/cjs/commands/DeletePipelineCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteWebhookCommand.js.map +0 -1
- package/dist/cjs/commands/DeregisterWebhookWithThirdPartyCommand.js.map +0 -1
- package/dist/cjs/commands/DisableStageTransitionCommand.js.map +0 -1
- package/dist/cjs/commands/EnableStageTransitionCommand.js.map +0 -1
- package/dist/cjs/commands/GetActionTypeCommand.js.map +0 -1
- package/dist/cjs/commands/GetJobDetailsCommand.js.map +0 -1
- package/dist/cjs/commands/GetPipelineCommand.js.map +0 -1
- package/dist/cjs/commands/GetPipelineExecutionCommand.js.map +0 -1
- package/dist/cjs/commands/GetPipelineStateCommand.js.map +0 -1
- package/dist/cjs/commands/GetThirdPartyJobDetailsCommand.js.map +0 -1
- package/dist/cjs/commands/ListActionExecutionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListActionTypesCommand.js.map +0 -1
- package/dist/cjs/commands/ListPipelineExecutionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListPipelinesCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/ListWebhooksCommand.js.map +0 -1
- package/dist/cjs/commands/PollForJobsCommand.js +0 -70
- package/dist/cjs/commands/PollForJobsCommand.js.map +0 -1
- package/dist/cjs/commands/PollForThirdPartyJobsCommand.js.map +0 -1
- package/dist/cjs/commands/PutActionRevisionCommand.js.map +0 -1
- package/dist/cjs/commands/PutApprovalResultCommand.js.map +0 -1
- package/dist/cjs/commands/PutJobFailureResultCommand.js.map +0 -1
- package/dist/cjs/commands/PutJobSuccessResultCommand.js.map +0 -1
- package/dist/cjs/commands/PutThirdPartyJobFailureResultCommand.js.map +0 -1
- package/dist/cjs/commands/PutThirdPartyJobSuccessResultCommand.js.map +0 -1
- package/dist/cjs/commands/PutWebhookCommand.js +0 -67
- package/dist/cjs/commands/PutWebhookCommand.js.map +0 -1
- package/dist/cjs/commands/RegisterWebhookWithThirdPartyCommand.js.map +0 -1
- package/dist/cjs/commands/RetryStageExecutionCommand.js.map +0 -1
- package/dist/cjs/commands/StartPipelineExecutionCommand.js.map +0 -1
- package/dist/cjs/commands/StopPipelineExecutionCommand.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/UpdateActionTypeCommand.js.map +0 -1
- package/dist/cjs/commands/UpdatePipelineCommand.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/package.json +0 -93
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListActionExecutionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListActionTypesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListPipelineExecutionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListPipelinesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist/cjs/pagination/ListWebhooksPaginator.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/es/CodePipeline.js.map +0 -1
- package/dist/es/CodePipelineClient.js.map +0 -1
- package/dist/es/commands/AcknowledgeJobCommand.js.map +0 -1
- package/dist/es/commands/AcknowledgeThirdPartyJobCommand.js.map +0 -1
- package/dist/es/commands/CreateCustomActionTypeCommand.js.map +0 -1
- package/dist/es/commands/CreatePipelineCommand.js.map +0 -1
- package/dist/es/commands/DeleteCustomActionTypeCommand.js.map +0 -1
- package/dist/es/commands/DeletePipelineCommand.js.map +0 -1
- package/dist/es/commands/DeleteWebhookCommand.js.map +0 -1
- package/dist/es/commands/DeregisterWebhookWithThirdPartyCommand.js.map +0 -1
- package/dist/es/commands/DisableStageTransitionCommand.js.map +0 -1
- package/dist/es/commands/EnableStageTransitionCommand.js.map +0 -1
- package/dist/es/commands/GetActionTypeCommand.js.map +0 -1
- package/dist/es/commands/GetJobDetailsCommand.js.map +0 -1
- package/dist/es/commands/GetPipelineCommand.js.map +0 -1
- package/dist/es/commands/GetPipelineExecutionCommand.js.map +0 -1
- package/dist/es/commands/GetPipelineStateCommand.js.map +0 -1
- package/dist/es/commands/GetThirdPartyJobDetailsCommand.js.map +0 -1
- package/dist/es/commands/ListActionExecutionsCommand.js.map +0 -1
- package/dist/es/commands/ListActionTypesCommand.js.map +0 -1
- package/dist/es/commands/ListPipelineExecutionsCommand.js.map +0 -1
- package/dist/es/commands/ListPipelinesCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/ListWebhooksCommand.js.map +0 -1
- package/dist/es/commands/PollForJobsCommand.js.map +0 -1
- package/dist/es/commands/PollForThirdPartyJobsCommand.js.map +0 -1
- package/dist/es/commands/PutActionRevisionCommand.js.map +0 -1
- package/dist/es/commands/PutApprovalResultCommand.js.map +0 -1
- package/dist/es/commands/PutJobFailureResultCommand.js.map +0 -1
- package/dist/es/commands/PutJobSuccessResultCommand.js.map +0 -1
- package/dist/es/commands/PutThirdPartyJobFailureResultCommand.js.map +0 -1
- package/dist/es/commands/PutThirdPartyJobSuccessResultCommand.js.map +0 -1
- package/dist/es/commands/PutWebhookCommand.js.map +0 -1
- package/dist/es/commands/RegisterWebhookWithThirdPartyCommand.js.map +0 -1
- package/dist/es/commands/RetryStageExecutionCommand.js.map +0 -1
- package/dist/es/commands/StartPipelineExecutionCommand.js.map +0 -1
- package/dist/es/commands/StopPipelineExecutionCommand.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/UpdateActionTypeCommand.js.map +0 -1
- package/dist/es/commands/UpdatePipelineCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -50
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -93
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListActionExecutionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListActionTypesPaginator.js.map +0 -1
- package/dist/es/pagination/ListPipelineExecutionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListPipelinesPaginator.js.map +0 -1
- package/dist/es/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist/es/pagination/ListWebhooksPaginator.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/types/ts3.4/CodePipelineClient.d.ts +0 -365
- package/dist/types/ts3.4/commands/AcknowledgeJobCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/CreateCustomActionTypeCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/CreatePipelineCommand.d.ts +0 -41
- package/dist/types/ts3.4/commands/DeleteCustomActionTypeCommand.d.ts +0 -43
- package/dist/types/ts3.4/commands/DeletePipelineCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DeleteWebhookCommand.d.ts +0 -39
- package/dist/types/ts3.4/commands/DeregisterWebhookWithThirdPartyCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DisableStageTransitionCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/EnableStageTransitionCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetActionTypeCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/GetJobDetailsCommand.d.ts +0 -41
- package/dist/types/ts3.4/commands/GetPipelineCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/GetPipelineExecutionCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/GetPipelineStateCommand.d.ts +0 -41
- package/dist/types/ts3.4/commands/GetThirdPartyJobDetailsCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/ListActionTypesCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/ListPipelinesCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListTagsForResourceCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/ListWebhooksCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/PollForJobsCommand.d.ts +0 -44
- package/dist/types/ts3.4/commands/PollForThirdPartyJobsCommand.d.ts +0 -41
- package/dist/types/ts3.4/commands/PutActionRevisionCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/PutApprovalResultCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/PutJobFailureResultCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/PutJobSuccessResultCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/PutThirdPartyJobFailureResultCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/PutThirdPartyJobSuccessResultCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/PutWebhookCommand.d.ts +0 -41
- package/dist/types/ts3.4/commands/RetryStageExecutionCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/StartPipelineExecutionCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/StopPipelineExecutionCommand.d.ts +0 -40
- package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UpdateActionTypeCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/UpdatePipelineCommand.d.ts +0 -38
- package/dist/types/ts3.4/models/models_0.d.ts +0 -4297
- package/endpoints.ts +0 -87
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -5263
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListActionExecutionsPaginator.ts +0 -58
- package/pagination/ListActionTypesPaginator.ts +0 -57
- package/pagination/ListPipelineExecutionsPaginator.ts +0 -58
- package/pagination/ListPipelinesPaginator.ts +0 -58
- package/pagination/ListTagsForResourcePaginator.ts +0 -58
- package/pagination/ListWebhooksPaginator.ts +0 -58
- package/protocols/Aws_json1_1.ts +0 -7092
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
package/pagination/Interfaces.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CodePipeline } from "../CodePipeline";
|
|
2
|
-
import { CodePipelineClient } from "../CodePipelineClient";
|
|
3
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
4
|
-
|
|
5
|
-
export interface CodePipelinePaginationConfiguration extends PaginationConfiguration {
|
|
6
|
-
client: CodePipeline | CodePipelineClient;
|
|
7
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { CodePipeline } from "../CodePipeline";
|
|
2
|
-
import { CodePipelineClient } from "../CodePipelineClient";
|
|
3
|
-
import {
|
|
4
|
-
ListActionExecutionsCommand,
|
|
5
|
-
ListActionExecutionsCommandInput,
|
|
6
|
-
ListActionExecutionsCommandOutput,
|
|
7
|
-
} from "../commands/ListActionExecutionsCommand";
|
|
8
|
-
import { CodePipelinePaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: CodePipelineClient,
|
|
16
|
-
input: ListActionExecutionsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListActionExecutionsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListActionExecutionsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: CodePipeline,
|
|
27
|
-
input: ListActionExecutionsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListActionExecutionsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listActionExecutions(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListActionExecutions(
|
|
34
|
-
config: CodePipelinePaginationConfiguration,
|
|
35
|
-
input: ListActionExecutionsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListActionExecutionsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListActionExecutionsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof CodePipeline) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof CodePipelineClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected CodePipeline | CodePipelineClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { CodePipeline } from "../CodePipeline";
|
|
2
|
-
import { CodePipelineClient } from "../CodePipelineClient";
|
|
3
|
-
import {
|
|
4
|
-
ListActionTypesCommand,
|
|
5
|
-
ListActionTypesCommandInput,
|
|
6
|
-
ListActionTypesCommandOutput,
|
|
7
|
-
} from "../commands/ListActionTypesCommand";
|
|
8
|
-
import { CodePipelinePaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: CodePipelineClient,
|
|
16
|
-
input: ListActionTypesCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListActionTypesCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListActionTypesCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: CodePipeline,
|
|
27
|
-
input: ListActionTypesCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListActionTypesCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listActionTypes(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListActionTypes(
|
|
34
|
-
config: CodePipelinePaginationConfiguration,
|
|
35
|
-
input: ListActionTypesCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListActionTypesCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListActionTypesCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
if (config.client instanceof CodePipeline) {
|
|
45
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
46
|
-
} else if (config.client instanceof CodePipelineClient) {
|
|
47
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else {
|
|
49
|
-
throw new Error("Invalid client, expected CodePipeline | CodePipelineClient");
|
|
50
|
-
}
|
|
51
|
-
yield page;
|
|
52
|
-
token = page.nextToken;
|
|
53
|
-
hasNext = !!token;
|
|
54
|
-
}
|
|
55
|
-
// @ts-ignore
|
|
56
|
-
return undefined;
|
|
57
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { CodePipeline } from "../CodePipeline";
|
|
2
|
-
import { CodePipelineClient } from "../CodePipelineClient";
|
|
3
|
-
import {
|
|
4
|
-
ListPipelineExecutionsCommand,
|
|
5
|
-
ListPipelineExecutionsCommandInput,
|
|
6
|
-
ListPipelineExecutionsCommandOutput,
|
|
7
|
-
} from "../commands/ListPipelineExecutionsCommand";
|
|
8
|
-
import { CodePipelinePaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: CodePipelineClient,
|
|
16
|
-
input: ListPipelineExecutionsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListPipelineExecutionsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListPipelineExecutionsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: CodePipeline,
|
|
27
|
-
input: ListPipelineExecutionsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListPipelineExecutionsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listPipelineExecutions(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListPipelineExecutions(
|
|
34
|
-
config: CodePipelinePaginationConfiguration,
|
|
35
|
-
input: ListPipelineExecutionsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListPipelineExecutionsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListPipelineExecutionsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof CodePipeline) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof CodePipelineClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected CodePipeline | CodePipelineClient");
|
|
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 { CodePipeline } from "../CodePipeline";
|
|
2
|
-
import { CodePipelineClient } from "../CodePipelineClient";
|
|
3
|
-
import {
|
|
4
|
-
ListPipelinesCommand,
|
|
5
|
-
ListPipelinesCommandInput,
|
|
6
|
-
ListPipelinesCommandOutput,
|
|
7
|
-
} from "../commands/ListPipelinesCommand";
|
|
8
|
-
import { CodePipelinePaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: CodePipelineClient,
|
|
16
|
-
input: ListPipelinesCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListPipelinesCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListPipelinesCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: CodePipeline,
|
|
27
|
-
input: ListPipelinesCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListPipelinesCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listPipelines(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListPipelines(
|
|
34
|
-
config: CodePipelinePaginationConfiguration,
|
|
35
|
-
input: ListPipelinesCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListPipelinesCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListPipelinesCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof CodePipeline) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof CodePipelineClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected CodePipeline | CodePipelineClient");
|
|
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 { CodePipeline } from "../CodePipeline";
|
|
2
|
-
import { CodePipelineClient } from "../CodePipelineClient";
|
|
3
|
-
import {
|
|
4
|
-
ListTagsForResourceCommand,
|
|
5
|
-
ListTagsForResourceCommandInput,
|
|
6
|
-
ListTagsForResourceCommandOutput,
|
|
7
|
-
} from "../commands/ListTagsForResourceCommand";
|
|
8
|
-
import { CodePipelinePaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: CodePipelineClient,
|
|
16
|
-
input: ListTagsForResourceCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListTagsForResourceCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: CodePipeline,
|
|
27
|
-
input: ListTagsForResourceCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listTagsForResource(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListTagsForResource(
|
|
34
|
-
config: CodePipelinePaginationConfiguration,
|
|
35
|
-
input: ListTagsForResourceCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListTagsForResourceCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListTagsForResourceCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof CodePipeline) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof CodePipelineClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected CodePipeline | CodePipelineClient");
|
|
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 { CodePipeline } from "../CodePipeline";
|
|
2
|
-
import { CodePipelineClient } from "../CodePipelineClient";
|
|
3
|
-
import {
|
|
4
|
-
ListWebhooksCommand,
|
|
5
|
-
ListWebhooksCommandInput,
|
|
6
|
-
ListWebhooksCommandOutput,
|
|
7
|
-
} from "../commands/ListWebhooksCommand";
|
|
8
|
-
import { CodePipelinePaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: CodePipelineClient,
|
|
16
|
-
input: ListWebhooksCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListWebhooksCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListWebhooksCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: CodePipeline,
|
|
27
|
-
input: ListWebhooksCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListWebhooksCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listWebhooks(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListWebhooks(
|
|
34
|
-
config: CodePipelinePaginationConfiguration,
|
|
35
|
-
input: ListWebhooksCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListWebhooksCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListWebhooksCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof CodePipeline) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof CodePipelineClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected CodePipeline | CodePipelineClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|