Skip to content

Commit f2da7b7

Browse files
author
awstools
committed
feat(client-codepipeline): AWS CodePipeline V2 type pipelines now support automatically retrying failed stages and skipping stage for failed entry conditions.
1 parent d227a3e commit f2da7b7

File tree

8 files changed

+334
-129
lines changed

8 files changed

+334
-129
lines changed

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

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,13 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
111111
* },
112112
* ],
113113
* onFailure: { // FailureConditions
114-
* result: "ROLLBACK" || "FAIL",
114+
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
115+
* retryConfiguration: { // RetryConfiguration
116+
* retryMode: "FAILED_ACTIONS" || "ALL_ACTIONS",
117+
* },
115118
* conditions: [ // ConditionList
116119
* { // Condition
117-
* result: "ROLLBACK" || "FAIL",
120+
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
118121
* rules: [ // RuleDeclarationList
119122
* { // RuleDeclaration
120123
* name: "STRING_VALUE", // required
@@ -143,7 +146,7 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
143146
* onSuccess: { // SuccessConditions
144147
* conditions: [ // required
145148
* {
146-
* result: "ROLLBACK" || "FAIL",
149+
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
147150
* rules: [
148151
* {
149152
* name: "STRING_VALUE", // required
@@ -172,7 +175,7 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
172175
* beforeEntry: { // BeforeEntryConditions
173176
* conditions: [ // required
174177
* {
175-
* result: "ROLLBACK" || "FAIL",
178+
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
176179
* rules: [
177180
* {
178181
* name: "STRING_VALUE", // required
@@ -349,10 +352,13 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
349352
* // },
350353
* // ],
351354
* // onFailure: { // FailureConditions
352-
* // result: "ROLLBACK" || "FAIL",
355+
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
356+
* // retryConfiguration: { // RetryConfiguration
357+
* // retryMode: "FAILED_ACTIONS" || "ALL_ACTIONS",
358+
* // },
353359
* // conditions: [ // ConditionList
354360
* // { // Condition
355-
* // result: "ROLLBACK" || "FAIL",
361+
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
356362
* // rules: [ // RuleDeclarationList
357363
* // { // RuleDeclaration
358364
* // name: "STRING_VALUE", // required
@@ -381,7 +387,7 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
381387
* // onSuccess: { // SuccessConditions
382388
* // conditions: [ // required
383389
* // {
384-
* // result: "ROLLBACK" || "FAIL",
390+
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
385391
* // rules: [
386392
* // {
387393
* // name: "STRING_VALUE", // required
@@ -410,7 +416,7 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
410416
* // beforeEntry: { // BeforeEntryConditions
411417
* // conditions: [ // required
412418
* // {
413-
* // result: "ROLLBACK" || "FAIL",
419+
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
414420
* // rules: [
415421
* // {
416422
* // name: "STRING_VALUE", // required

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,13 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
113113
* // },
114114
* // ],
115115
* // onFailure: { // FailureConditions
116-
* // result: "ROLLBACK" || "FAIL",
116+
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
117+
* // retryConfiguration: { // RetryConfiguration
118+
* // retryMode: "FAILED_ACTIONS" || "ALL_ACTIONS",
119+
* // },
117120
* // conditions: [ // ConditionList
118121
* // { // Condition
119-
* // result: "ROLLBACK" || "FAIL",
122+
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
120123
* // rules: [ // RuleDeclarationList
121124
* // { // RuleDeclaration
122125
* // name: "STRING_VALUE", // required
@@ -145,7 +148,7 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
145148
* // onSuccess: { // SuccessConditions
146149
* // conditions: [ // required
147150
* // {
148-
* // result: "ROLLBACK" || "FAIL",
151+
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
149152
* // rules: [
150153
* // {
151154
* // name: "STRING_VALUE", // required
@@ -174,7 +177,7 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
174177
* // beforeEntry: { // BeforeEntryConditions
175178
* // conditions: [ // required
176179
* // {
177-
* // result: "ROLLBACK" || "FAIL",
180+
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
178181
* // rules: [
179182
* // {
180183
* // name: "STRING_VALUE", // required

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ export interface GetPipelineStateCommandOutput extends GetPipelineStateOutput, _
5454
* // stageName: "STRING_VALUE",
5555
* // inboundExecution: { // StageExecution
5656
* // pipelineExecutionId: "STRING_VALUE", // required
57-
* // status: "Cancelled" || "InProgress" || "Failed" || "Stopped" || "Stopping" || "Succeeded", // required
57+
* // status: "Cancelled" || "InProgress" || "Failed" || "Stopped" || "Stopping" || "Succeeded" || "Skipped", // required
5858
* // type: "STANDARD" || "ROLLBACK",
5959
* // },
6060
* // inboundExecutions: [ // StageExecutionList
6161
* // {
6262
* // pipelineExecutionId: "STRING_VALUE", // required
63-
* // status: "Cancelled" || "InProgress" || "Failed" || "Stopped" || "Stopping" || "Succeeded", // required
63+
* // status: "Cancelled" || "InProgress" || "Failed" || "Stopped" || "Stopping" || "Succeeded" || "Skipped", // required
6464
* // type: "STANDARD" || "ROLLBACK",
6565
* // },
6666
* // ],
@@ -99,7 +99,7 @@ export interface GetPipelineStateCommandOutput extends GetPipelineStateOutput, _
9999
* // ],
100100
* // latestExecution: {
101101
* // pipelineExecutionId: "STRING_VALUE", // required
102-
* // status: "Cancelled" || "InProgress" || "Failed" || "Stopped" || "Stopping" || "Succeeded", // required
102+
* // status: "Cancelled" || "InProgress" || "Failed" || "Stopped" || "Stopping" || "Succeeded" || "Skipped", // required
103103
* // type: "STANDARD" || "ROLLBACK",
104104
* // },
105105
* // beforeEntryConditionState: { // StageConditionState
@@ -225,6 +225,11 @@ export interface GetPipelineStateCommandOutput extends GetPipelineStateOutput, _
225225
* // },
226226
* // ],
227227
* // },
228+
* // retryStageMetadata: { // RetryStageMetadata
229+
* // autoStageRetryAttempt: Number("int"),
230+
* // manualStageRetryAttempt: Number("int"),
231+
* // latestRetryTrigger: "AutomatedStageRetry" || "ManualStageRetry",
232+
* // },
228233
* // },
229234
* // ],
230235
* // created: new Date("TIMESTAMP"),

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export interface ListRuleExecutionsCommandInput extends ListRuleExecutionsInput
2828
export interface ListRuleExecutionsCommandOutput extends ListRuleExecutionsOutput, __MetadataBearer {}
2929

3030
/**
31-
* <p>Lists the rule executions that have occurred in a pipeline configured for conditions with rules.</p>
31+
* <p>Lists the rule executions that have occurred in a pipeline configured for conditions
32+
* with rules.</p>
3233
* @example
3334
* Use a bare-bones client and the command you need to make an API call.
3435
* ```javascript

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

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,13 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
108108
* },
109109
* ],
110110
* onFailure: { // FailureConditions
111-
* result: "ROLLBACK" || "FAIL",
111+
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
112+
* retryConfiguration: { // RetryConfiguration
113+
* retryMode: "FAILED_ACTIONS" || "ALL_ACTIONS",
114+
* },
112115
* conditions: [ // ConditionList
113116
* { // Condition
114-
* result: "ROLLBACK" || "FAIL",
117+
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
115118
* rules: [ // RuleDeclarationList
116119
* { // RuleDeclaration
117120
* name: "STRING_VALUE", // required
@@ -140,7 +143,7 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
140143
* onSuccess: { // SuccessConditions
141144
* conditions: [ // required
142145
* {
143-
* result: "ROLLBACK" || "FAIL",
146+
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
144147
* rules: [
145148
* {
146149
* name: "STRING_VALUE", // required
@@ -169,7 +172,7 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
169172
* beforeEntry: { // BeforeEntryConditions
170173
* conditions: [ // required
171174
* {
172-
* result: "ROLLBACK" || "FAIL",
175+
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
173176
* rules: [
174177
* {
175178
* name: "STRING_VALUE", // required
@@ -340,10 +343,13 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
340343
* // },
341344
* // ],
342345
* // onFailure: { // FailureConditions
343-
* // result: "ROLLBACK" || "FAIL",
346+
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
347+
* // retryConfiguration: { // RetryConfiguration
348+
* // retryMode: "FAILED_ACTIONS" || "ALL_ACTIONS",
349+
* // },
344350
* // conditions: [ // ConditionList
345351
* // { // Condition
346-
* // result: "ROLLBACK" || "FAIL",
352+
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
347353
* // rules: [ // RuleDeclarationList
348354
* // { // RuleDeclaration
349355
* // name: "STRING_VALUE", // required
@@ -372,7 +378,7 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
372378
* // onSuccess: { // SuccessConditions
373379
* // conditions: [ // required
374380
* // {
375-
* // result: "ROLLBACK" || "FAIL",
381+
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
376382
* // rules: [
377383
* // {
378384
* // name: "STRING_VALUE", // required
@@ -401,7 +407,7 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
401407
* // beforeEntry: { // BeforeEntryConditions
402408
* // conditions: [ // required
403409
* // {
404-
* // result: "ROLLBACK" || "FAIL",
410+
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
405411
* // rules: [
406412
* // {
407413
* // name: "STRING_VALUE", // required

0 commit comments

Comments
 (0)