Skip to content

Commit 8180cad

Browse files
author
awstools
committed
feat(client-codepipeline): Add ability to execute pipelines with new parallel & queued execution modes and add support for triggers with filtering on branches and file paths.
1 parent 73e1b34 commit 8180cad

12 files changed

+882
-101
lines changed

clients/client-codepipeline/src/commands/CreatePipelineCommand.ts

Lines changed: 94 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,15 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
103103
* },
104104
* ],
105105
* version: Number("int"),
106+
* executionMode: "QUEUED" || "SUPERSEDED" || "PARALLEL",
106107
* pipelineType: "V1" || "V2",
108+
* variables: [ // PipelineVariableDeclarationList
109+
* { // PipelineVariableDeclaration
110+
* name: "STRING_VALUE", // required
111+
* defaultValue: "STRING_VALUE",
112+
* description: "STRING_VALUE",
113+
* },
114+
* ],
107115
* triggers: [ // PipelineTriggerDeclarationList
108116
* { // PipelineTriggerDeclaration
109117
* providerType: "CodeStarSourceConnection", // required
@@ -119,18 +127,50 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
119127
* "STRING_VALUE",
120128
* ],
121129
* },
130+
* branches: { // GitBranchFilterCriteria
131+
* includes: [ // GitBranchPatternList
132+
* "STRING_VALUE",
133+
* ],
134+
* excludes: [
135+
* "STRING_VALUE",
136+
* ],
137+
* },
138+
* filePaths: { // GitFilePathFilterCriteria
139+
* includes: [ // GitFilePathPatternList
140+
* "STRING_VALUE",
141+
* ],
142+
* excludes: [
143+
* "STRING_VALUE",
144+
* ],
145+
* },
146+
* },
147+
* ],
148+
* pullRequest: [ // GitPullRequestFilterList
149+
* { // GitPullRequestFilter
150+
* events: [ // GitPullRequestEventTypeList
151+
* "OPEN" || "UPDATED" || "CLOSED",
152+
* ],
153+
* branches: {
154+
* includes: [
155+
* "STRING_VALUE",
156+
* ],
157+
* excludes: [
158+
* "STRING_VALUE",
159+
* ],
160+
* },
161+
* filePaths: {
162+
* includes: [
163+
* "STRING_VALUE",
164+
* ],
165+
* excludes: [
166+
* "STRING_VALUE",
167+
* ],
168+
* },
122169
* },
123170
* ],
124171
* },
125172
* },
126173
* ],
127-
* variables: [ // PipelineVariableDeclarationList
128-
* { // PipelineVariableDeclaration
129-
* name: "STRING_VALUE", // required
130-
* defaultValue: "STRING_VALUE",
131-
* description: "STRING_VALUE",
132-
* },
133-
* ],
134174
* },
135175
* tags: [ // TagList
136176
* { // Tag
@@ -203,7 +243,15 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
203243
* // },
204244
* // ],
205245
* // version: Number("int"),
246+
* // executionMode: "QUEUED" || "SUPERSEDED" || "PARALLEL",
206247
* // pipelineType: "V1" || "V2",
248+
* // variables: [ // PipelineVariableDeclarationList
249+
* // { // PipelineVariableDeclaration
250+
* // name: "STRING_VALUE", // required
251+
* // defaultValue: "STRING_VALUE",
252+
* // description: "STRING_VALUE",
253+
* // },
254+
* // ],
207255
* // triggers: [ // PipelineTriggerDeclarationList
208256
* // { // PipelineTriggerDeclaration
209257
* // providerType: "CodeStarSourceConnection", // required
@@ -219,18 +267,50 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
219267
* // "STRING_VALUE",
220268
* // ],
221269
* // },
270+
* // branches: { // GitBranchFilterCriteria
271+
* // includes: [ // GitBranchPatternList
272+
* // "STRING_VALUE",
273+
* // ],
274+
* // excludes: [
275+
* // "STRING_VALUE",
276+
* // ],
277+
* // },
278+
* // filePaths: { // GitFilePathFilterCriteria
279+
* // includes: [ // GitFilePathPatternList
280+
* // "STRING_VALUE",
281+
* // ],
282+
* // excludes: [
283+
* // "STRING_VALUE",
284+
* // ],
285+
* // },
286+
* // },
287+
* // ],
288+
* // pullRequest: [ // GitPullRequestFilterList
289+
* // { // GitPullRequestFilter
290+
* // events: [ // GitPullRequestEventTypeList
291+
* // "OPEN" || "UPDATED" || "CLOSED",
292+
* // ],
293+
* // branches: {
294+
* // includes: [
295+
* // "STRING_VALUE",
296+
* // ],
297+
* // excludes: [
298+
* // "STRING_VALUE",
299+
* // ],
300+
* // },
301+
* // filePaths: {
302+
* // includes: [
303+
* // "STRING_VALUE",
304+
* // ],
305+
* // excludes: [
306+
* // "STRING_VALUE",
307+
* // ],
308+
* // },
222309
* // },
223310
* // ],
224311
* // },
225312
* // },
226313
* // ],
227-
* // variables: [ // PipelineVariableDeclarationList
228-
* // { // PipelineVariableDeclaration
229-
* // name: "STRING_VALUE", // required
230-
* // defaultValue: "STRING_VALUE",
231-
* // description: "STRING_VALUE",
232-
* // },
233-
* // ],
234314
* // },
235315
* // tags: [ // TagList
236316
* // { // Tag

clients/client-codepipeline/src/commands/GetPipelineCommand.ts

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,15 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
105105
* // },
106106
* // ],
107107
* // version: Number("int"),
108+
* // executionMode: "QUEUED" || "SUPERSEDED" || "PARALLEL",
108109
* // pipelineType: "V1" || "V2",
110+
* // variables: [ // PipelineVariableDeclarationList
111+
* // { // PipelineVariableDeclaration
112+
* // name: "STRING_VALUE", // required
113+
* // defaultValue: "STRING_VALUE",
114+
* // description: "STRING_VALUE",
115+
* // },
116+
* // ],
109117
* // triggers: [ // PipelineTriggerDeclarationList
110118
* // { // PipelineTriggerDeclaration
111119
* // providerType: "CodeStarSourceConnection", // required
@@ -121,18 +129,50 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
121129
* // "STRING_VALUE",
122130
* // ],
123131
* // },
132+
* // branches: { // GitBranchFilterCriteria
133+
* // includes: [ // GitBranchPatternList
134+
* // "STRING_VALUE",
135+
* // ],
136+
* // excludes: [
137+
* // "STRING_VALUE",
138+
* // ],
139+
* // },
140+
* // filePaths: { // GitFilePathFilterCriteria
141+
* // includes: [ // GitFilePathPatternList
142+
* // "STRING_VALUE",
143+
* // ],
144+
* // excludes: [
145+
* // "STRING_VALUE",
146+
* // ],
147+
* // },
148+
* // },
149+
* // ],
150+
* // pullRequest: [ // GitPullRequestFilterList
151+
* // { // GitPullRequestFilter
152+
* // events: [ // GitPullRequestEventTypeList
153+
* // "OPEN" || "UPDATED" || "CLOSED",
154+
* // ],
155+
* // branches: {
156+
* // includes: [
157+
* // "STRING_VALUE",
158+
* // ],
159+
* // excludes: [
160+
* // "STRING_VALUE",
161+
* // ],
162+
* // },
163+
* // filePaths: {
164+
* // includes: [
165+
* // "STRING_VALUE",
166+
* // ],
167+
* // excludes: [
168+
* // "STRING_VALUE",
169+
* // ],
170+
* // },
124171
* // },
125172
* // ],
126173
* // },
127174
* // },
128175
* // ],
129-
* // variables: [ // PipelineVariableDeclarationList
130-
* // { // PipelineVariableDeclaration
131-
* // name: "STRING_VALUE", // required
132-
* // defaultValue: "STRING_VALUE",
133-
* // description: "STRING_VALUE",
134-
* // },
135-
* // ],
136176
* // },
137177
* // metadata: { // PipelineMetadata
138178
* // pipelineArn: "STRING_VALUE",

clients/client-codepipeline/src/commands/GetPipelineExecutionCommand.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,17 @@ export interface GetPipelineExecutionCommandOutput extends GetPipelineExecutionO
6060
* // revisionUrl: "STRING_VALUE",
6161
* // },
6262
* // ],
63-
* // trigger: { // ExecutionTrigger
64-
* // triggerType: "CreatePipeline" || "StartPipelineExecution" || "PollForSourceChanges" || "Webhook" || "CloudWatchEvent" || "PutActionRevision" || "WebhookV2",
65-
* // triggerDetail: "STRING_VALUE",
66-
* // },
6763
* // variables: [ // ResolvedPipelineVariableList
6864
* // { // ResolvedPipelineVariable
6965
* // name: "STRING_VALUE",
7066
* // resolvedValue: "STRING_VALUE",
7167
* // },
7268
* // ],
69+
* // trigger: { // ExecutionTrigger
70+
* // triggerType: "CreatePipeline" || "StartPipelineExecution" || "PollForSourceChanges" || "Webhook" || "CloudWatchEvent" || "PutActionRevision" || "WebhookV2",
71+
* // triggerDetail: "STRING_VALUE",
72+
* // },
73+
* // executionMode: "QUEUED" || "SUPERSEDED" || "PARALLEL",
7374
* // },
7475
* // };
7576
*

clients/client-codepipeline/src/commands/GetPipelineStateCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ export interface GetPipelineStateCommandOutput extends GetPipelineStateOutput, _
5656
* // pipelineExecutionId: "STRING_VALUE", // required
5757
* // status: "Cancelled" || "InProgress" || "Failed" || "Stopped" || "Stopping" || "Succeeded", // required
5858
* // },
59+
* // inboundExecutions: [ // StageExecutionList
60+
* // {
61+
* // pipelineExecutionId: "STRING_VALUE", // required
62+
* // status: "Cancelled" || "InProgress" || "Failed" || "Stopped" || "Stopping" || "Succeeded", // required
63+
* // },
64+
* // ],
5965
* // inboundTransitionState: { // TransitionState
6066
* // enabled: true || false,
6167
* // lastChangedBy: "STRING_VALUE",

clients/client-codepipeline/src/commands/ListActionExecutionsCommand.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ export interface ListActionExecutionsCommandOutput extends ListActionExecutionsO
3939
* pipelineName: "STRING_VALUE", // required
4040
* filter: { // ActionExecutionFilter
4141
* pipelineExecutionId: "STRING_VALUE",
42+
* latestInPipelineExecution: { // LatestInPipelineExecutionFilter
43+
* pipelineExecutionId: "STRING_VALUE", // required
44+
* startTimeRange: "Latest" || "All", // required
45+
* },
4246
* },
4347
* maxResults: Number("int"),
4448
* nextToken: "STRING_VALUE",
@@ -55,6 +59,7 @@ export interface ListActionExecutionsCommandOutput extends ListActionExecutionsO
5559
* // actionName: "STRING_VALUE",
5660
* // startTime: new Date("TIMESTAMP"),
5761
* // lastUpdateTime: new Date("TIMESTAMP"),
62+
* // updatedBy: "STRING_VALUE",
5863
* // status: "InProgress" || "Abandoned" || "Succeeded" || "Failed",
5964
* // input: { // ActionExecutionInput
6065
* // actionTypeId: { // ActionTypeId
@@ -96,6 +101,10 @@ export interface ListActionExecutionsCommandOutput extends ListActionExecutionsO
96101
* // externalExecutionId: "STRING_VALUE",
97102
* // externalExecutionSummary: "STRING_VALUE",
98103
* // externalExecutionUrl: "STRING_VALUE",
104+
* // errorDetails: { // ErrorDetails
105+
* // code: "STRING_VALUE",
106+
* // message: "STRING_VALUE",
107+
* // },
99108
* // },
100109
* // outputVariables: { // OutputVariablesMap
101110
* // "<keys>": "STRING_VALUE",

clients/client-codepipeline/src/commands/ListPipelineExecutionsCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export interface ListPipelineExecutionsCommandOutput extends ListPipelineExecuti
6464
* // stopTrigger: { // StopExecutionTrigger
6565
* // reason: "STRING_VALUE",
6666
* // },
67+
* // executionMode: "QUEUED" || "SUPERSEDED" || "PARALLEL",
6768
* // },
6869
* // ],
6970
* // nextToken: "STRING_VALUE",

clients/client-codepipeline/src/commands/ListPipelinesCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export interface ListPipelinesCommandOutput extends ListPipelinesOutput, __Metad
4747
* // name: "STRING_VALUE",
4848
* // version: Number("int"),
4949
* // pipelineType: "V1" || "V2",
50+
* // executionMode: "QUEUED" || "SUPERSEDED" || "PARALLEL",
5051
* // created: new Date("TIMESTAMP"),
5152
* // updated: new Date("TIMESTAMP"),
5253
* // },

clients/client-codepipeline/src/commands/StartPipelineExecutionCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ export interface StartPipelineExecutionCommandOutput extends StartPipelineExecut
6767
* @see {@link StartPipelineExecutionCommandOutput} for command's `response` shape.
6868
* @see {@link CodePipelineClientResolvedConfig | config} for CodePipelineClient's `config` shape.
6969
*
70+
* @throws {@link ConcurrentPipelineExecutionsLimitExceededException} (client fault)
71+
* <p>The pipeline has reached the limit for concurrent pipeline executions.</p>
72+
*
7073
* @throws {@link ConflictException} (client fault)
7174
* <p>Your request cannot be handled because the pipeline is busy handling ongoing
7275
* activities. Try again later.</p>

0 commit comments

Comments
 (0)