Skip to content

Commit

Permalink
feat(client-codepipeline): AWS CodePipeline V2 type pipelines now sup…
Browse files Browse the repository at this point in the history
…port automatically retrying failed stages and skipping stage for failed entry conditions.
  • Loading branch information
awstools committed Oct 14, 2024
1 parent d227a3e commit f2da7b7
Show file tree
Hide file tree
Showing 8 changed files with 334 additions and 129 deletions.
22 changes: 14 additions & 8 deletions clients/client-codepipeline/src/commands/CreatePipelineCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,13 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* },
* ],
* onFailure: { // FailureConditions
* result: "ROLLBACK" || "FAIL",
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* retryConfiguration: { // RetryConfiguration
* retryMode: "FAILED_ACTIONS" || "ALL_ACTIONS",
* },
* conditions: [ // ConditionList
* { // Condition
* result: "ROLLBACK" || "FAIL",
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* rules: [ // RuleDeclarationList
* { // RuleDeclaration
* name: "STRING_VALUE", // required
Expand Down Expand Up @@ -143,7 +146,7 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* onSuccess: { // SuccessConditions
* conditions: [ // required
* {
* result: "ROLLBACK" || "FAIL",
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* rules: [
* {
* name: "STRING_VALUE", // required
Expand Down Expand Up @@ -172,7 +175,7 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* beforeEntry: { // BeforeEntryConditions
* conditions: [ // required
* {
* result: "ROLLBACK" || "FAIL",
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* rules: [
* {
* name: "STRING_VALUE", // required
Expand Down Expand Up @@ -349,10 +352,13 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* // },
* // ],
* // onFailure: { // FailureConditions
* // result: "ROLLBACK" || "FAIL",
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* // retryConfiguration: { // RetryConfiguration
* // retryMode: "FAILED_ACTIONS" || "ALL_ACTIONS",
* // },
* // conditions: [ // ConditionList
* // { // Condition
* // result: "ROLLBACK" || "FAIL",
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* // rules: [ // RuleDeclarationList
* // { // RuleDeclaration
* // name: "STRING_VALUE", // required
Expand Down Expand Up @@ -381,7 +387,7 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* // onSuccess: { // SuccessConditions
* // conditions: [ // required
* // {
* // result: "ROLLBACK" || "FAIL",
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* // rules: [
* // {
* // name: "STRING_VALUE", // required
Expand Down Expand Up @@ -410,7 +416,7 @@ export interface CreatePipelineCommandOutput extends CreatePipelineOutput, __Met
* // beforeEntry: { // BeforeEntryConditions
* // conditions: [ // required
* // {
* // result: "ROLLBACK" || "FAIL",
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* // rules: [
* // {
* // name: "STRING_VALUE", // required
Expand Down
11 changes: 7 additions & 4 deletions clients/client-codepipeline/src/commands/GetPipelineCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,13 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
* // },
* // ],
* // onFailure: { // FailureConditions
* // result: "ROLLBACK" || "FAIL",
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* // retryConfiguration: { // RetryConfiguration
* // retryMode: "FAILED_ACTIONS" || "ALL_ACTIONS",
* // },
* // conditions: [ // ConditionList
* // { // Condition
* // result: "ROLLBACK" || "FAIL",
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* // rules: [ // RuleDeclarationList
* // { // RuleDeclaration
* // name: "STRING_VALUE", // required
Expand Down Expand Up @@ -145,7 +148,7 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
* // onSuccess: { // SuccessConditions
* // conditions: [ // required
* // {
* // result: "ROLLBACK" || "FAIL",
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* // rules: [
* // {
* // name: "STRING_VALUE", // required
Expand Down Expand Up @@ -174,7 +177,7 @@ export interface GetPipelineCommandOutput extends GetPipelineOutput, __MetadataB
* // beforeEntry: { // BeforeEntryConditions
* // conditions: [ // required
* // {
* // result: "ROLLBACK" || "FAIL",
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* // rules: [
* // {
* // name: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ export interface GetPipelineStateCommandOutput extends GetPipelineStateOutput, _
* // stageName: "STRING_VALUE",
* // inboundExecution: { // StageExecution
* // pipelineExecutionId: "STRING_VALUE", // required
* // status: "Cancelled" || "InProgress" || "Failed" || "Stopped" || "Stopping" || "Succeeded", // required
* // status: "Cancelled" || "InProgress" || "Failed" || "Stopped" || "Stopping" || "Succeeded" || "Skipped", // required
* // type: "STANDARD" || "ROLLBACK",
* // },
* // inboundExecutions: [ // StageExecutionList
* // {
* // pipelineExecutionId: "STRING_VALUE", // required
* // status: "Cancelled" || "InProgress" || "Failed" || "Stopped" || "Stopping" || "Succeeded", // required
* // status: "Cancelled" || "InProgress" || "Failed" || "Stopped" || "Stopping" || "Succeeded" || "Skipped", // required
* // type: "STANDARD" || "ROLLBACK",
* // },
* // ],
Expand Down Expand Up @@ -99,7 +99,7 @@ export interface GetPipelineStateCommandOutput extends GetPipelineStateOutput, _
* // ],
* // latestExecution: {
* // pipelineExecutionId: "STRING_VALUE", // required
* // status: "Cancelled" || "InProgress" || "Failed" || "Stopped" || "Stopping" || "Succeeded", // required
* // status: "Cancelled" || "InProgress" || "Failed" || "Stopped" || "Stopping" || "Succeeded" || "Skipped", // required
* // type: "STANDARD" || "ROLLBACK",
* // },
* // beforeEntryConditionState: { // StageConditionState
Expand Down Expand Up @@ -225,6 +225,11 @@ export interface GetPipelineStateCommandOutput extends GetPipelineStateOutput, _
* // },
* // ],
* // },
* // retryStageMetadata: { // RetryStageMetadata
* // autoStageRetryAttempt: Number("int"),
* // manualStageRetryAttempt: Number("int"),
* // latestRetryTrigger: "AutomatedStageRetry" || "ManualStageRetry",
* // },
* // },
* // ],
* // created: new Date("TIMESTAMP"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export interface ListRuleExecutionsCommandInput extends ListRuleExecutionsInput
export interface ListRuleExecutionsCommandOutput extends ListRuleExecutionsOutput, __MetadataBearer {}

/**
* <p>Lists the rule executions that have occurred in a pipeline configured for conditions with rules.</p>
* <p>Lists the rule executions that have occurred in a pipeline configured for conditions
* with rules.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
22 changes: 14 additions & 8 deletions clients/client-codepipeline/src/commands/UpdatePipelineCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,13 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* },
* ],
* onFailure: { // FailureConditions
* result: "ROLLBACK" || "FAIL",
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* retryConfiguration: { // RetryConfiguration
* retryMode: "FAILED_ACTIONS" || "ALL_ACTIONS",
* },
* conditions: [ // ConditionList
* { // Condition
* result: "ROLLBACK" || "FAIL",
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* rules: [ // RuleDeclarationList
* { // RuleDeclaration
* name: "STRING_VALUE", // required
Expand Down Expand Up @@ -140,7 +143,7 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* onSuccess: { // SuccessConditions
* conditions: [ // required
* {
* result: "ROLLBACK" || "FAIL",
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* rules: [
* {
* name: "STRING_VALUE", // required
Expand Down Expand Up @@ -169,7 +172,7 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* beforeEntry: { // BeforeEntryConditions
* conditions: [ // required
* {
* result: "ROLLBACK" || "FAIL",
* result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* rules: [
* {
* name: "STRING_VALUE", // required
Expand Down Expand Up @@ -340,10 +343,13 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* // },
* // ],
* // onFailure: { // FailureConditions
* // result: "ROLLBACK" || "FAIL",
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* // retryConfiguration: { // RetryConfiguration
* // retryMode: "FAILED_ACTIONS" || "ALL_ACTIONS",
* // },
* // conditions: [ // ConditionList
* // { // Condition
* // result: "ROLLBACK" || "FAIL",
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* // rules: [ // RuleDeclarationList
* // { // RuleDeclaration
* // name: "STRING_VALUE", // required
Expand Down Expand Up @@ -372,7 +378,7 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* // onSuccess: { // SuccessConditions
* // conditions: [ // required
* // {
* // result: "ROLLBACK" || "FAIL",
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* // rules: [
* // {
* // name: "STRING_VALUE", // required
Expand Down Expand Up @@ -401,7 +407,7 @@ export interface UpdatePipelineCommandOutput extends UpdatePipelineOutput, __Met
* // beforeEntry: { // BeforeEntryConditions
* // conditions: [ // required
* // {
* // result: "ROLLBACK" || "FAIL",
* // result: "ROLLBACK" || "FAIL" || "RETRY" || "SKIP",
* // rules: [
* // {
* // name: "STRING_VALUE", // required
Expand Down
Loading

0 comments on commit f2da7b7

Please sign in to comment.