Skip to content

Commit 5e8b92d

Browse files
author
awstools
committedJul 30, 2024
feat(client-codepipeline): AWS CodePipeline V2 type pipelines now support stage level conditions to enable development teams to safely release changes that meet quality and compliance requirements.
1 parent 6cbe7bf commit 5e8b92d

18 files changed

+4079
-507
lines changed
 

‎clients/client-codepipeline/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,22 @@ ListPipelines
556556

557557
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codepipeline/command/ListPipelinesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codepipeline/Interface/ListPipelinesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codepipeline/Interface/ListPipelinesCommandOutput/)
558558

559+
</details>
560+
<details>
561+
<summary>
562+
ListRuleExecutions
563+
</summary>
564+
565+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codepipeline/command/ListRuleExecutionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codepipeline/Interface/ListRuleExecutionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codepipeline/Interface/ListRuleExecutionsCommandOutput/)
566+
567+
</details>
568+
<details>
569+
<summary>
570+
ListRuleTypes
571+
</summary>
572+
573+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codepipeline/command/ListRuleTypesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codepipeline/Interface/ListRuleTypesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codepipeline/Interface/ListRuleTypesCommandOutput/)
574+
559575
</details>
560576
<details>
561577
<summary>
@@ -572,6 +588,14 @@ ListWebhooks
572588

573589
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codepipeline/command/ListWebhooksCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codepipeline/Interface/ListWebhooksCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codepipeline/Interface/ListWebhooksCommandOutput/)
574590

591+
</details>
592+
<details>
593+
<summary>
594+
OverrideStageCondition
595+
</summary>
596+
597+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codepipeline/command/OverrideStageConditionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codepipeline/Interface/OverrideStageConditionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codepipeline/Interface/OverrideStageConditionCommandOutput/)
598+
575599
</details>
576600
<details>
577601
<summary>

‎clients/client-codepipeline/src/CodePipeline.ts

+64
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ import {
9999
ListPipelinesCommandInput,
100100
ListPipelinesCommandOutput,
101101
} from "./commands/ListPipelinesCommand";
102+
import {
103+
ListRuleExecutionsCommand,
104+
ListRuleExecutionsCommandInput,
105+
ListRuleExecutionsCommandOutput,
106+
} from "./commands/ListRuleExecutionsCommand";
107+
import {
108+
ListRuleTypesCommand,
109+
ListRuleTypesCommandInput,
110+
ListRuleTypesCommandOutput,
111+
} from "./commands/ListRuleTypesCommand";
102112
import {
103113
ListTagsForResourceCommand,
104114
ListTagsForResourceCommandInput,
@@ -109,6 +119,11 @@ import {
109119
ListWebhooksCommandInput,
110120
ListWebhooksCommandOutput,
111121
} from "./commands/ListWebhooksCommand";
122+
import {
123+
OverrideStageConditionCommand,
124+
OverrideStageConditionCommandInput,
125+
OverrideStageConditionCommandOutput,
126+
} from "./commands/OverrideStageConditionCommand";
112127
import { PollForJobsCommand, PollForJobsCommandInput, PollForJobsCommandOutput } from "./commands/PollForJobsCommand";
113128
import {
114129
PollForThirdPartyJobsCommand,
@@ -209,8 +224,11 @@ const commands = {
209224
ListActionTypesCommand,
210225
ListPipelineExecutionsCommand,
211226
ListPipelinesCommand,
227+
ListRuleExecutionsCommand,
228+
ListRuleTypesCommand,
212229
ListTagsForResourceCommand,
213230
ListWebhooksCommand,
231+
OverrideStageConditionCommand,
214232
PollForJobsCommand,
215233
PollForThirdPartyJobsCommand,
216234
PutActionRevisionCommand,
@@ -533,6 +551,35 @@ export interface CodePipeline {
533551
cb: (err: any, data?: ListPipelinesCommandOutput) => void
534552
): void;
535553

554+
/**
555+
* @see {@link ListRuleExecutionsCommand}
556+
*/
557+
listRuleExecutions(
558+
args: ListRuleExecutionsCommandInput,
559+
options?: __HttpHandlerOptions
560+
): Promise<ListRuleExecutionsCommandOutput>;
561+
listRuleExecutions(
562+
args: ListRuleExecutionsCommandInput,
563+
cb: (err: any, data?: ListRuleExecutionsCommandOutput) => void
564+
): void;
565+
listRuleExecutions(
566+
args: ListRuleExecutionsCommandInput,
567+
options: __HttpHandlerOptions,
568+
cb: (err: any, data?: ListRuleExecutionsCommandOutput) => void
569+
): void;
570+
571+
/**
572+
* @see {@link ListRuleTypesCommand}
573+
*/
574+
listRuleTypes(): Promise<ListRuleTypesCommandOutput>;
575+
listRuleTypes(args: ListRuleTypesCommandInput, options?: __HttpHandlerOptions): Promise<ListRuleTypesCommandOutput>;
576+
listRuleTypes(args: ListRuleTypesCommandInput, cb: (err: any, data?: ListRuleTypesCommandOutput) => void): void;
577+
listRuleTypes(
578+
args: ListRuleTypesCommandInput,
579+
options: __HttpHandlerOptions,
580+
cb: (err: any, data?: ListRuleTypesCommandOutput) => void
581+
): void;
582+
536583
/**
537584
* @see {@link ListTagsForResourceCommand}
538585
*/
@@ -562,6 +609,23 @@ export interface CodePipeline {
562609
cb: (err: any, data?: ListWebhooksCommandOutput) => void
563610
): void;
564611

612+
/**
613+
* @see {@link OverrideStageConditionCommand}
614+
*/
615+
overrideStageCondition(
616+
args: OverrideStageConditionCommandInput,
617+
options?: __HttpHandlerOptions
618+
): Promise<OverrideStageConditionCommandOutput>;
619+
overrideStageCondition(
620+
args: OverrideStageConditionCommandInput,
621+
cb: (err: any, data?: OverrideStageConditionCommandOutput) => void
622+
): void;
623+
overrideStageCondition(
624+
args: OverrideStageConditionCommandInput,
625+
options: __HttpHandlerOptions,
626+
cb: (err: any, data?: OverrideStageConditionCommandOutput) => void
627+
): void;
628+
565629
/**
566630
* @see {@link PollForJobsCommand}
567631
*/

‎clients/client-codepipeline/src/CodePipelineClient.ts

+12
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,17 @@ import {
103103
ListPipelineExecutionsCommandOutput,
104104
} from "./commands/ListPipelineExecutionsCommand";
105105
import { ListPipelinesCommandInput, ListPipelinesCommandOutput } from "./commands/ListPipelinesCommand";
106+
import { ListRuleExecutionsCommandInput, ListRuleExecutionsCommandOutput } from "./commands/ListRuleExecutionsCommand";
107+
import { ListRuleTypesCommandInput, ListRuleTypesCommandOutput } from "./commands/ListRuleTypesCommand";
106108
import {
107109
ListTagsForResourceCommandInput,
108110
ListTagsForResourceCommandOutput,
109111
} from "./commands/ListTagsForResourceCommand";
110112
import { ListWebhooksCommandInput, ListWebhooksCommandOutput } from "./commands/ListWebhooksCommand";
113+
import {
114+
OverrideStageConditionCommandInput,
115+
OverrideStageConditionCommandOutput,
116+
} from "./commands/OverrideStageConditionCommand";
111117
import { PollForJobsCommandInput, PollForJobsCommandOutput } from "./commands/PollForJobsCommand";
112118
import {
113119
PollForThirdPartyJobsCommandInput,
@@ -188,8 +194,11 @@ export type ServiceInputTypes =
188194
| ListActionTypesCommandInput
189195
| ListPipelineExecutionsCommandInput
190196
| ListPipelinesCommandInput
197+
| ListRuleExecutionsCommandInput
198+
| ListRuleTypesCommandInput
191199
| ListTagsForResourceCommandInput
192200
| ListWebhooksCommandInput
201+
| OverrideStageConditionCommandInput
193202
| PollForJobsCommandInput
194203
| PollForThirdPartyJobsCommandInput
195204
| PutActionRevisionCommandInput
@@ -233,8 +242,11 @@ export type ServiceOutputTypes =
233242
| ListActionTypesCommandOutput
234243
| ListPipelineExecutionsCommandOutput
235244
| ListPipelinesCommandOutput
245+
| ListRuleExecutionsCommandOutput
246+
| ListRuleTypesCommandOutput
236247
| ListTagsForResourceCommandOutput
237248
| ListWebhooksCommandOutput
249+
| OverrideStageConditionCommandOutput
238250
| PollForJobsCommandOutput
239251
| PollForThirdPartyJobsCommandOutput
240252
| PutActionRevisionCommandOutput

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

+172-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,92 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
102102
* },
103103
* ],
104104
* onFailure: { // FailureConditions
105-
* result: "ROLLBACK",
105+
* result: "ROLLBACK" || "FAIL",
106+
* conditions: [ // ConditionList
107+
* { // Condition
108+
* result: "ROLLBACK" || "FAIL",
109+
* rules: [ // RuleDeclarationList
110+
* { // RuleDeclaration
111+
* name: "STRING_VALUE", // required
112+
* ruleTypeId: { // RuleTypeId
113+
* category: "Rule", // required
114+
* owner: "AWS",
115+
* provider: "STRING_VALUE", // required
116+
* version: "STRING_VALUE",
117+
* },
118+
* configuration: { // RuleConfigurationMap
119+
* "<keys>": "STRING_VALUE",
120+
* },
121+
* inputArtifacts: [
122+
* {
123+
* name: "STRING_VALUE", // required
124+
* },
125+
* ],
126+
* roleArn: "STRING_VALUE",
127+
* region: "STRING_VALUE",
128+
* timeoutInMinutes: Number("int"),
129+
* },
130+
* ],
131+
* },
132+
* ],
133+
* },
134+
* onSuccess: { // SuccessConditions
135+
* conditions: [ // required
136+
* {
137+
* result: "ROLLBACK" || "FAIL",
138+
* rules: [
139+
* {
140+
* name: "STRING_VALUE", // required
141+
* ruleTypeId: {
142+
* category: "Rule", // required
143+
* owner: "AWS",
144+
* provider: "STRING_VALUE", // required
145+
* version: "STRING_VALUE",
146+
* },
147+
* configuration: {
148+
* "<keys>": "STRING_VALUE",
149+
* },
150+
* inputArtifacts: [
151+
* {
152+
* name: "STRING_VALUE", // required
153+
* },
154+
* ],
155+
* roleArn: "STRING_VALUE",
156+
* region: "STRING_VALUE",
157+
* timeoutInMinutes: Number("int"),
158+
* },
159+
* ],
160+
* },
161+
* ],
162+
* },
163+
* beforeEntry: { // BeforeEntryConditions
164+
* conditions: [ // required
165+
* {
166+
* result: "ROLLBACK" || "FAIL",
167+
* rules: [
168+
* {
169+
* name: "STRING_VALUE", // required
170+
* ruleTypeId: {
171+
* category: "Rule", // required
172+
* owner: "AWS",
173+
* provider: "STRING_VALUE", // required
174+
* version: "STRING_VALUE",
175+
* },
176+
* configuration: {
177+
* "<keys>": "STRING_VALUE",
178+
* },
179+
* inputArtifacts: [
180+
* {
181+
* name: "STRING_VALUE", // required
182+
* },
183+
* ],
184+
* roleArn: "STRING_VALUE",
185+
* region: "STRING_VALUE",
186+
* timeoutInMinutes: Number("int"),
187+
* },
188+
* ],
189+
* },
190+
* ],
106191
* },
107192
* },
108193
* ],
@@ -246,7 +331,92 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
246331
* // },
247332
* // ],
248333
* // onFailure: { // FailureConditions
249-
* // result: "ROLLBACK",
334+
* // result: "ROLLBACK" || "FAIL",
335+
* // conditions: [ // ConditionList
336+
* // { // Condition
337+
* // result: "ROLLBACK" || "FAIL",
338+
* // rules: [ // RuleDeclarationList
339+
* // { // RuleDeclaration
340+
* // name: "STRING_VALUE", // required
341+
* // ruleTypeId: { // RuleTypeId
342+
* // category: "Rule", // required
343+
* // owner: "AWS",
344+
* // provider: "STRING_VALUE", // required
345+
* // version: "STRING_VALUE",
346+
* // },
347+
* // configuration: { // RuleConfigurationMap
348+
* // "<keys>": "STRING_VALUE",
349+
* // },
350+
* // inputArtifacts: [
351+
* // {
352+
* // name: "STRING_VALUE", // required
353+
* // },
354+
* // ],
355+
* // roleArn: "STRING_VALUE",
356+
* // region: "STRING_VALUE",
357+
* // timeoutInMinutes: Number("int"),
358+
* // },
359+
* // ],
360+
* // },
361+
* // ],
362+
* // },
363+
* // onSuccess: { // SuccessConditions
364+
* // conditions: [ // required
365+
* // {
366+
* // result: "ROLLBACK" || "FAIL",
367+
* // rules: [
368+
* // {
369+
* // name: "STRING_VALUE", // required
370+
* // ruleTypeId: {
371+
* // category: "Rule", // required
372+
* // owner: "AWS",
373+
* // provider: "STRING_VALUE", // required
374+
* // version: "STRING_VALUE",
375+
* // },
376+
* // configuration: {
377+
* // "<keys>": "STRING_VALUE",
378+
* // },
379+
* // inputArtifacts: [
380+
* // {
381+
* // name: "STRING_VALUE", // required
382+
* // },
383+
* // ],
384+
* // roleArn: "STRING_VALUE",
385+
* // region: "STRING_VALUE",
386+
* // timeoutInMinutes: Number("int"),
387+
* // },
388+
* // ],
389+
* // },
390+
* // ],
391+
* // },
392+
* // beforeEntry: { // BeforeEntryConditions
393+
* // conditions: [ // required
394+
* // {
395+
* // result: "ROLLBACK" || "FAIL",
396+
* // rules: [
397+
* // {
398+
* // name: "STRING_VALUE", // required
399+
* // ruleTypeId: {
400+
* // category: "Rule", // required
401+
* // owner: "AWS",
402+
* // provider: "STRING_VALUE", // required
403+
* // version: "STRING_VALUE",
404+
* // },
405+
* // configuration: {
406+
* // "<keys>": "STRING_VALUE",
407+
* // },
408+
* // inputArtifacts: [
409+
* // {
410+
* // name: "STRING_VALUE", // required
411+
* // },
412+
* // ],
413+
* // roleArn: "STRING_VALUE",
414+
* // region: "STRING_VALUE",
415+
* // timeoutInMinutes: Number("int"),
416+
* // },
417+
* // ],
418+
* // },
419+
* // ],
250420
* // },
251421
* // },
252422
* // ],

0 commit comments

Comments
 (0)
Please sign in to comment.