@aws-sdk/client-codepipeline 3.556.0 → 3.564.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.
@@ -36,6 +36,11 @@ declare const ListPipelineExecutionsCommand_base: {
36
36
  * const input = { // ListPipelineExecutionsInput
37
37
  * pipelineName: "STRING_VALUE", // required
38
38
  * maxResults: Number("int"),
39
+ * filter: { // PipelineExecutionFilter
40
+ * succeededInStage: { // SucceededInStageFilter
41
+ * stageName: "STRING_VALUE",
42
+ * },
43
+ * },
39
44
  * nextToken: "STRING_VALUE",
40
45
  * };
41
46
  * const command = new ListPipelineExecutionsCommand(input);
@@ -45,6 +50,7 @@ declare const ListPipelineExecutionsCommand_base: {
45
50
  * // { // PipelineExecutionSummary
46
51
  * // pipelineExecutionId: "STRING_VALUE",
47
52
  * // status: "Cancelled" || "InProgress" || "Stopped" || "Stopping" || "Succeeded" || "Superseded" || "Failed",
53
+ * // statusSummary: "STRING_VALUE",
48
54
  * // startTime: new Date("TIMESTAMP"),
49
55
  * // lastUpdateTime: new Date("TIMESTAMP"),
50
56
  * // sourceRevisions: [ // SourceRevisionList
@@ -56,13 +62,17 @@ declare const ListPipelineExecutionsCommand_base: {
56
62
  * // },
57
63
  * // ],
58
64
  * // trigger: { // ExecutionTrigger
59
- * // triggerType: "CreatePipeline" || "StartPipelineExecution" || "PollForSourceChanges" || "Webhook" || "CloudWatchEvent" || "PutActionRevision" || "WebhookV2",
65
+ * // triggerType: "CreatePipeline" || "StartPipelineExecution" || "PollForSourceChanges" || "Webhook" || "CloudWatchEvent" || "PutActionRevision" || "WebhookV2" || "ManualRollback" || "AutomatedRollback",
60
66
  * // triggerDetail: "STRING_VALUE",
61
67
  * // },
62
68
  * // stopTrigger: { // StopExecutionTrigger
63
69
  * // reason: "STRING_VALUE",
64
70
  * // },
65
71
  * // executionMode: "QUEUED" || "SUPERSEDED" || "PARALLEL",
72
+ * // executionType: "STANDARD" || "ROLLBACK",
73
+ * // rollbackMetadata: { // PipelineRollbackMetadata
74
+ * // rollbackTargetPipelineExecutionId: "STRING_VALUE",
75
+ * // },
66
76
  * // },
67
77
  * // ],
68
78
  * // nextToken: "STRING_VALUE",
@@ -0,0 +1,86 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CodePipelineClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodePipelineClient";
4
+ import { RollbackStageInput, RollbackStageOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link RollbackStageCommand}.
13
+ */
14
+ export interface RollbackStageCommandInput extends RollbackStageInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link RollbackStageCommand}.
20
+ */
21
+ export interface RollbackStageCommandOutput extends RollbackStageOutput, __MetadataBearer {
22
+ }
23
+ declare const RollbackStageCommand_base: {
24
+ new (input: RollbackStageCommandInput): import("@smithy/smithy-client").CommandImpl<RollbackStageCommandInput, RollbackStageCommandOutput, CodePipelineClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: RollbackStageCommandInput): import("@smithy/smithy-client").CommandImpl<RollbackStageCommandInput, RollbackStageCommandOutput, CodePipelineClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Rolls back a stage execution.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { CodePipelineClient, RollbackStageCommand } from "@aws-sdk/client-codepipeline"; // ES Modules import
34
+ * // const { CodePipelineClient, RollbackStageCommand } = require("@aws-sdk/client-codepipeline"); // CommonJS import
35
+ * const client = new CodePipelineClient(config);
36
+ * const input = { // RollbackStageInput
37
+ * pipelineName: "STRING_VALUE", // required
38
+ * stageName: "STRING_VALUE", // required
39
+ * targetPipelineExecutionId: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new RollbackStageCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // RollbackStageOutput
44
+ * // pipelineExecutionId: "STRING_VALUE", // required
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param RollbackStageCommandInput - {@link RollbackStageCommandInput}
50
+ * @returns {@link RollbackStageCommandOutput}
51
+ * @see {@link RollbackStageCommandInput} for command's `input` shape.
52
+ * @see {@link RollbackStageCommandOutput} for command's `response` shape.
53
+ * @see {@link CodePipelineClientResolvedConfig | config} for CodePipelineClient's `config` shape.
54
+ *
55
+ * @throws {@link ConflictException} (client fault)
56
+ * <p>Your request cannot be handled because the pipeline is busy handling ongoing
57
+ * activities. Try again later.</p>
58
+ *
59
+ * @throws {@link PipelineExecutionNotFoundException} (client fault)
60
+ * <p>The pipeline execution was specified in an invalid format or cannot be found, or an
61
+ * execution ID does not belong to the specified pipeline. </p>
62
+ *
63
+ * @throws {@link PipelineExecutionOutdatedException} (client fault)
64
+ * <p>The specified pipeline execution is outdated and cannot be used as a target pipeline execution for rollback.</p>
65
+ *
66
+ * @throws {@link PipelineNotFoundException} (client fault)
67
+ * <p>The pipeline was specified in an invalid format or cannot be found.</p>
68
+ *
69
+ * @throws {@link StageNotFoundException} (client fault)
70
+ * <p>The stage was specified in an invalid format or cannot be found.</p>
71
+ *
72
+ * @throws {@link UnableToRollbackStageException} (client fault)
73
+ * <p>Unable to roll back the stage. The cause might be if the pipeline version has changed
74
+ * since the target pipeline execution was deployed, the stage is currently running, or an
75
+ * incorrect target pipeline execution ID was provided.</p>
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ * <p>The validation was specified in an invalid format.</p>
79
+ *
80
+ * @throws {@link CodePipelineServiceException}
81
+ * <p>Base exception class for all service exceptions from CodePipeline service.</p>
82
+ *
83
+ * @public
84
+ */
85
+ export declare class RollbackStageCommand extends RollbackStageCommand_base {
86
+ }
@@ -96,6 +96,9 @@ declare const UpdatePipelineCommand_base: {
96
96
  * timeoutInMinutes: Number("int"),
97
97
  * },
98
98
  * ],
99
+ * onFailure: { // FailureConditions
100
+ * result: "ROLLBACK",
101
+ * },
99
102
  * },
100
103
  * ],
101
104
  * version: Number("int"),
@@ -231,6 +234,9 @@ declare const UpdatePipelineCommand_base: {
231
234
  * // timeoutInMinutes: Number("int"),
232
235
  * // },
233
236
  * // ],
237
+ * // onFailure: { // FailureConditions
238
+ * // result: "ROLLBACK",
239
+ * // },
234
240
  * // },
235
241
  * // ],
236
242
  * // version: Number("int"),
@@ -31,6 +31,7 @@ export * from "./PutThirdPartyJobSuccessResultCommand";
31
31
  export * from "./PutWebhookCommand";
32
32
  export * from "./RegisterWebhookWithThirdPartyCommand";
33
33
  export * from "./RetryStageExecutionCommand";
34
+ export * from "./RollbackStageCommand";
34
35
  export * from "./StartPipelineExecutionCommand";
35
36
  export * from "./StopPipelineExecutionCommand";
36
37
  export * from "./TagResourceCommand";
@@ -1697,6 +1697,28 @@ export declare const PipelineType: {
1697
1697
  * @public
1698
1698
  */
1699
1699
  export type PipelineType = (typeof PipelineType)[keyof typeof PipelineType];
1700
+ /**
1701
+ * @public
1702
+ * @enum
1703
+ */
1704
+ export declare const Result: {
1705
+ readonly ROLLBACK: "ROLLBACK";
1706
+ };
1707
+ /**
1708
+ * @public
1709
+ */
1710
+ export type Result = (typeof Result)[keyof typeof Result];
1711
+ /**
1712
+ * <p>The configuration that specifies the result, such as rollback, to occur upon stage failure. </p>
1713
+ * @public
1714
+ */
1715
+ export interface FailureConditions {
1716
+ /**
1717
+ * <p>The specified result for when the failure conditions are met, such as rolling back the stage.</p>
1718
+ * @public
1719
+ */
1720
+ result?: Result;
1721
+ }
1700
1722
  /**
1701
1723
  * <p>Represents information about a stage and its definition.</p>
1702
1724
  * @public
@@ -1717,6 +1739,11 @@ export interface StageDeclaration {
1717
1739
  * @public
1718
1740
  */
1719
1741
  actions: ActionDeclaration[] | undefined;
1742
+ /**
1743
+ * <p>The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.</p>
1744
+ * @public
1745
+ */
1746
+ onFailure?: FailureConditions;
1720
1747
  }
1721
1748
  /**
1722
1749
  * <p>The Git repository branches specified as filter criteria to start the
@@ -2622,6 +2649,29 @@ export interface GetPipelineExecutionInput {
2622
2649
  */
2623
2650
  pipelineExecutionId: string | undefined;
2624
2651
  }
2652
+ /**
2653
+ * @public
2654
+ * @enum
2655
+ */
2656
+ export declare const ExecutionType: {
2657
+ readonly ROLLBACK: "ROLLBACK";
2658
+ readonly STANDARD: "STANDARD";
2659
+ };
2660
+ /**
2661
+ * @public
2662
+ */
2663
+ export type ExecutionType = (typeof ExecutionType)[keyof typeof ExecutionType];
2664
+ /**
2665
+ * <p>The metadata for the stage execution to be rolled back.</p>
2666
+ * @public
2667
+ */
2668
+ export interface PipelineRollbackMetadata {
2669
+ /**
2670
+ * <p>The pipeline execution ID to which the stage will be rolled back.</p>
2671
+ * @public
2672
+ */
2673
+ rollbackTargetPipelineExecutionId?: string;
2674
+ }
2625
2675
  /**
2626
2676
  * @public
2627
2677
  * @enum
@@ -2644,8 +2694,10 @@ export type PipelineExecutionStatus = (typeof PipelineExecutionStatus)[keyof typ
2644
2694
  * @enum
2645
2695
  */
2646
2696
  export declare const TriggerType: {
2697
+ readonly AutomatedRollback: "AutomatedRollback";
2647
2698
  readonly CloudWatchEvent: "CloudWatchEvent";
2648
2699
  readonly CreatePipeline: "CreatePipeline";
2700
+ readonly ManualRollback: "ManualRollback";
2649
2701
  readonly PollForSourceChanges: "PollForSourceChanges";
2650
2702
  readonly PutActionRevision: "PutActionRevision";
2651
2703
  readonly StartPipelineExecution: "StartPipelineExecution";
@@ -2772,6 +2824,16 @@ export interface PipelineExecution {
2772
2824
  * @public
2773
2825
  */
2774
2826
  executionMode?: ExecutionMode;
2827
+ /**
2828
+ * <p>The type of the pipeline execution.</p>
2829
+ * @public
2830
+ */
2831
+ executionType?: ExecutionType;
2832
+ /**
2833
+ * <p>The metadata about the execution pertaining to stage rollback.</p>
2834
+ * @public
2835
+ */
2836
+ rollbackMetadata?: PipelineRollbackMetadata;
2775
2837
  }
2776
2838
  /**
2777
2839
  * <p>Represents the output of a <code>GetPipelineExecution</code> action.</p>
@@ -2844,6 +2906,11 @@ export interface StageExecution {
2844
2906
  * @public
2845
2907
  */
2846
2908
  status: StageExecutionStatus | undefined;
2909
+ /**
2910
+ * <p>The type of pipeline execution for the stage, such as a rollback pipeline execution.</p>
2911
+ * @public
2912
+ */
2913
+ type?: ExecutionType;
2847
2914
  }
2848
2915
  /**
2849
2916
  * <p>Represents information about the state of transitions between one stage and another
@@ -3175,6 +3242,30 @@ export interface ListActionTypesOutput {
3175
3242
  */
3176
3243
  nextToken?: string;
3177
3244
  }
3245
+ /**
3246
+ * <p>Filter for pipeline executions that have successfully completed the stage in the current pipeline version.</p>
3247
+ * @public
3248
+ */
3249
+ export interface SucceededInStageFilter {
3250
+ /**
3251
+ * <p>The name of the stage for filtering for pipeline executions where the stage was successful in the current pipeline
3252
+ * version.</p>
3253
+ * @public
3254
+ */
3255
+ stageName?: string;
3256
+ }
3257
+ /**
3258
+ * <p>The pipeline execution to filter on.</p>
3259
+ * @public
3260
+ */
3261
+ export interface PipelineExecutionFilter {
3262
+ /**
3263
+ * <p>Filter for pipeline executions where the stage was successful in the current pipeline
3264
+ * version.</p>
3265
+ * @public
3266
+ */
3267
+ succeededInStage?: SucceededInStageFilter;
3268
+ }
3178
3269
  /**
3179
3270
  * <p>Represents the input of a <code>ListPipelineExecutions</code> action.</p>
3180
3271
  * @public
@@ -3194,6 +3285,11 @@ export interface ListPipelineExecutionsInput {
3194
3285
  * @public
3195
3286
  */
3196
3287
  maxResults?: number;
3288
+ /**
3289
+ * <p>The pipeline execution to filter on.</p>
3290
+ * @public
3291
+ */
3292
+ filter?: PipelineExecutionFilter;
3197
3293
  /**
3198
3294
  * <p>The token that was returned from the previous <code>ListPipelineExecutions</code>
3199
3295
  * call, which can be used to return the next set of pipeline executions in the
@@ -3286,6 +3382,11 @@ export interface PipelineExecutionSummary {
3286
3382
  * @public
3287
3383
  */
3288
3384
  status?: PipelineExecutionStatus;
3385
+ /**
3386
+ * <p>Status summary for the pipeline.</p>
3387
+ * @public
3388
+ */
3389
+ statusSummary?: string;
3289
3390
  /**
3290
3391
  * <p>The date and time when the pipeline execution began, in timestamp format.</p>
3291
3392
  * @public
@@ -3320,6 +3421,16 @@ export interface PipelineExecutionSummary {
3320
3421
  * @public
3321
3422
  */
3322
3423
  executionMode?: ExecutionMode;
3424
+ /**
3425
+ * <p>Type of the pipeline execution.</p>
3426
+ * @public
3427
+ */
3428
+ executionType?: ExecutionType;
3429
+ /**
3430
+ * <p>The metadata for the stage execution to be rolled back.</p>
3431
+ * @public
3432
+ */
3433
+ rollbackMetadata?: PipelineRollbackMetadata;
3323
3434
  }
3324
3435
  /**
3325
3436
  * <p>Represents the output of a <code>ListPipelineExecutions</code> action.</p>
@@ -4298,6 +4409,63 @@ export declare class StageNotRetryableException extends __BaseException {
4298
4409
  */
4299
4410
  constructor(opts: __ExceptionOptionType<StageNotRetryableException, __BaseException>);
4300
4411
  }
4412
+ /**
4413
+ * <p>The specified pipeline execution is outdated and cannot be used as a target pipeline execution for rollback.</p>
4414
+ * @public
4415
+ */
4416
+ export declare class PipelineExecutionOutdatedException extends __BaseException {
4417
+ readonly name: "PipelineExecutionOutdatedException";
4418
+ readonly $fault: "client";
4419
+ /**
4420
+ * @internal
4421
+ */
4422
+ constructor(opts: __ExceptionOptionType<PipelineExecutionOutdatedException, __BaseException>);
4423
+ }
4424
+ /**
4425
+ * @public
4426
+ */
4427
+ export interface RollbackStageInput {
4428
+ /**
4429
+ * <p>The name of the pipeline for which the stage will be rolled back. </p>
4430
+ * @public
4431
+ */
4432
+ pipelineName: string | undefined;
4433
+ /**
4434
+ * <p>The name of the stage in the pipeline to be rolled back. </p>
4435
+ * @public
4436
+ */
4437
+ stageName: string | undefined;
4438
+ /**
4439
+ * <p>The pipeline execution ID for the stage to be rolled back to. </p>
4440
+ * @public
4441
+ */
4442
+ targetPipelineExecutionId: string | undefined;
4443
+ }
4444
+ /**
4445
+ * @public
4446
+ */
4447
+ export interface RollbackStageOutput {
4448
+ /**
4449
+ * <p>The execution ID of the pipeline execution for the stage that has been rolled
4450
+ * back.</p>
4451
+ * @public
4452
+ */
4453
+ pipelineExecutionId: string | undefined;
4454
+ }
4455
+ /**
4456
+ * <p>Unable to roll back the stage. The cause might be if the pipeline version has changed
4457
+ * since the target pipeline execution was deployed, the stage is currently running, or an
4458
+ * incorrect target pipeline execution ID was provided.</p>
4459
+ * @public
4460
+ */
4461
+ export declare class UnableToRollbackStageException extends __BaseException {
4462
+ readonly name: "UnableToRollbackStageException";
4463
+ readonly $fault: "client";
4464
+ /**
4465
+ * @internal
4466
+ */
4467
+ constructor(opts: __ExceptionOptionType<UnableToRollbackStageException, __BaseException>);
4468
+ }
4301
4469
  /**
4302
4470
  * <p>The pipeline has reached the limit for concurrent pipeline executions.</p>
4303
4471
  * @public
@@ -33,6 +33,7 @@ import { PutThirdPartyJobSuccessResultCommandInput, PutThirdPartyJobSuccessResul
33
33
  import { PutWebhookCommandInput, PutWebhookCommandOutput } from "../commands/PutWebhookCommand";
34
34
  import { RegisterWebhookWithThirdPartyCommandInput, RegisterWebhookWithThirdPartyCommandOutput } from "../commands/RegisterWebhookWithThirdPartyCommand";
35
35
  import { RetryStageExecutionCommandInput, RetryStageExecutionCommandOutput } from "../commands/RetryStageExecutionCommand";
36
+ import { RollbackStageCommandInput, RollbackStageCommandOutput } from "../commands/RollbackStageCommand";
36
37
  import { StartPipelineExecutionCommandInput, StartPipelineExecutionCommandOutput } from "../commands/StartPipelineExecutionCommand";
37
38
  import { StopPipelineExecutionCommandInput, StopPipelineExecutionCommandOutput } from "../commands/StopPipelineExecutionCommand";
38
39
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
@@ -171,6 +172,10 @@ export declare const se_RegisterWebhookWithThirdPartyCommand: (input: RegisterWe
171
172
  * serializeAws_json1_1RetryStageExecutionCommand
172
173
  */
173
174
  export declare const se_RetryStageExecutionCommand: (input: RetryStageExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
175
+ /**
176
+ * serializeAws_json1_1RollbackStageCommand
177
+ */
178
+ export declare const se_RollbackStageCommand: (input: RollbackStageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
174
179
  /**
175
180
  * serializeAws_json1_1StartPipelineExecutionCommand
176
181
  */
@@ -327,6 +332,10 @@ export declare const de_RegisterWebhookWithThirdPartyCommand: (output: __HttpRes
327
332
  * deserializeAws_json1_1RetryStageExecutionCommand
328
333
  */
329
334
  export declare const de_RetryStageExecutionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RetryStageExecutionCommandOutput>;
335
+ /**
336
+ * deserializeAws_json1_1RollbackStageCommand
337
+ */
338
+ export declare const de_RollbackStageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RollbackStageCommandOutput>;
330
339
  /**
331
340
  * deserializeAws_json1_1StartPipelineExecutionCommand
332
341
  */
@@ -132,6 +132,10 @@ import {
132
132
  RetryStageExecutionCommandInput,
133
133
  RetryStageExecutionCommandOutput,
134
134
  } from "./commands/RetryStageExecutionCommand";
135
+ import {
136
+ RollbackStageCommandInput,
137
+ RollbackStageCommandOutput,
138
+ } from "./commands/RollbackStageCommand";
135
139
  import {
136
140
  StartPipelineExecutionCommandInput,
137
141
  StartPipelineExecutionCommandOutput,
@@ -591,6 +595,19 @@ export interface CodePipeline {
591
595
  options: __HttpHandlerOptions,
592
596
  cb: (err: any, data?: RetryStageExecutionCommandOutput) => void
593
597
  ): void;
598
+ rollbackStage(
599
+ args: RollbackStageCommandInput,
600
+ options?: __HttpHandlerOptions
601
+ ): Promise<RollbackStageCommandOutput>;
602
+ rollbackStage(
603
+ args: RollbackStageCommandInput,
604
+ cb: (err: any, data?: RollbackStageCommandOutput) => void
605
+ ): void;
606
+ rollbackStage(
607
+ args: RollbackStageCommandInput,
608
+ options: __HttpHandlerOptions,
609
+ cb: (err: any, data?: RollbackStageCommandOutput) => void
610
+ ): void;
594
611
  startPipelineExecution(
595
612
  args: StartPipelineExecutionCommandInput,
596
613
  options?: __HttpHandlerOptions
@@ -177,6 +177,10 @@ import {
177
177
  RetryStageExecutionCommandInput,
178
178
  RetryStageExecutionCommandOutput,
179
179
  } from "./commands/RetryStageExecutionCommand";
180
+ import {
181
+ RollbackStageCommandInput,
182
+ RollbackStageCommandOutput,
183
+ } from "./commands/RollbackStageCommand";
180
184
  import {
181
185
  StartPipelineExecutionCommandInput,
182
186
  StartPipelineExecutionCommandOutput,
@@ -242,6 +246,7 @@ export type ServiceInputTypes =
242
246
  | PutWebhookCommandInput
243
247
  | RegisterWebhookWithThirdPartyCommandInput
244
248
  | RetryStageExecutionCommandInput
249
+ | RollbackStageCommandInput
245
250
  | StartPipelineExecutionCommandInput
246
251
  | StopPipelineExecutionCommandInput
247
252
  | TagResourceCommandInput
@@ -282,6 +287,7 @@ export type ServiceOutputTypes =
282
287
  | PutWebhookCommandOutput
283
288
  | RegisterWebhookWithThirdPartyCommandOutput
284
289
  | RetryStageExecutionCommandOutput
290
+ | RollbackStageCommandOutput
285
291
  | StartPipelineExecutionCommandOutput
286
292
  | StopPipelineExecutionCommandOutput
287
293
  | TagResourceCommandOutput
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ CodePipelineClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../CodePipelineClient";
8
+ import { RollbackStageInput, RollbackStageOutput } from "../models/models_0";
9
+ export { __MetadataBearer, $Command };
10
+ export interface RollbackStageCommandInput extends RollbackStageInput {}
11
+ export interface RollbackStageCommandOutput
12
+ extends RollbackStageOutput,
13
+ __MetadataBearer {}
14
+ declare const RollbackStageCommand_base: {
15
+ new (
16
+ input: RollbackStageCommandInput
17
+ ): import("@smithy/smithy-client").CommandImpl<
18
+ RollbackStageCommandInput,
19
+ RollbackStageCommandOutput,
20
+ CodePipelineClientResolvedConfig,
21
+ ServiceInputTypes,
22
+ ServiceOutputTypes
23
+ >;
24
+ new (
25
+ __0_0: RollbackStageCommandInput
26
+ ): import("@smithy/smithy-client").CommandImpl<
27
+ RollbackStageCommandInput,
28
+ RollbackStageCommandOutput,
29
+ CodePipelineClientResolvedConfig,
30
+ ServiceInputTypes,
31
+ ServiceOutputTypes
32
+ >;
33
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
34
+ };
35
+ export declare class RollbackStageCommand extends RollbackStageCommand_base {}
@@ -31,6 +31,7 @@ export * from "./PutThirdPartyJobSuccessResultCommand";
31
31
  export * from "./PutWebhookCommand";
32
32
  export * from "./RegisterWebhookWithThirdPartyCommand";
33
33
  export * from "./RetryStageExecutionCommand";
34
+ export * from "./RollbackStageCommand";
34
35
  export * from "./StartPipelineExecutionCommand";
35
36
  export * from "./StopPipelineExecutionCommand";
36
37
  export * from "./TagResourceCommand";
@@ -435,10 +435,18 @@ export declare const PipelineType: {
435
435
  readonly V2: "V2";
436
436
  };
437
437
  export type PipelineType = (typeof PipelineType)[keyof typeof PipelineType];
438
+ export declare const Result: {
439
+ readonly ROLLBACK: "ROLLBACK";
440
+ };
441
+ export type Result = (typeof Result)[keyof typeof Result];
442
+ export interface FailureConditions {
443
+ result?: Result;
444
+ }
438
445
  export interface StageDeclaration {
439
446
  name: string | undefined;
440
447
  blockers?: BlockerDeclaration[];
441
448
  actions: ActionDeclaration[] | undefined;
449
+ onFailure?: FailureConditions;
442
450
  }
443
451
  export interface GitBranchFilterCriteria {
444
452
  includes?: string[];
@@ -674,6 +682,14 @@ export interface GetPipelineExecutionInput {
674
682
  pipelineName: string | undefined;
675
683
  pipelineExecutionId: string | undefined;
676
684
  }
685
+ export declare const ExecutionType: {
686
+ readonly ROLLBACK: "ROLLBACK";
687
+ readonly STANDARD: "STANDARD";
688
+ };
689
+ export type ExecutionType = (typeof ExecutionType)[keyof typeof ExecutionType];
690
+ export interface PipelineRollbackMetadata {
691
+ rollbackTargetPipelineExecutionId?: string;
692
+ }
677
693
  export declare const PipelineExecutionStatus: {
678
694
  readonly Cancelled: "Cancelled";
679
695
  readonly Failed: "Failed";
@@ -686,8 +702,10 @@ export declare const PipelineExecutionStatus: {
686
702
  export type PipelineExecutionStatus =
687
703
  (typeof PipelineExecutionStatus)[keyof typeof PipelineExecutionStatus];
688
704
  export declare const TriggerType: {
705
+ readonly AutomatedRollback: "AutomatedRollback";
689
706
  readonly CloudWatchEvent: "CloudWatchEvent";
690
707
  readonly CreatePipeline: "CreatePipeline";
708
+ readonly ManualRollback: "ManualRollback";
691
709
  readonly PollForSourceChanges: "PollForSourceChanges";
692
710
  readonly PutActionRevision: "PutActionRevision";
693
711
  readonly StartPipelineExecution: "StartPipelineExecution";
@@ -713,6 +731,8 @@ export interface PipelineExecution {
713
731
  variables?: ResolvedPipelineVariable[];
714
732
  trigger?: ExecutionTrigger;
715
733
  executionMode?: ExecutionMode;
734
+ executionType?: ExecutionType;
735
+ rollbackMetadata?: PipelineRollbackMetadata;
716
736
  }
717
737
  export interface GetPipelineExecutionOutput {
718
738
  pipelineExecution?: PipelineExecution;
@@ -743,6 +763,7 @@ export type StageExecutionStatus =
743
763
  export interface StageExecution {
744
764
  pipelineExecutionId: string | undefined;
745
765
  status: StageExecutionStatus | undefined;
766
+ type?: ExecutionType;
746
767
  }
747
768
  export interface TransitionState {
748
769
  enabled?: boolean;
@@ -820,9 +841,16 @@ export interface ListActionTypesOutput {
820
841
  actionTypes: ActionType[] | undefined;
821
842
  nextToken?: string;
822
843
  }
844
+ export interface SucceededInStageFilter {
845
+ stageName?: string;
846
+ }
847
+ export interface PipelineExecutionFilter {
848
+ succeededInStage?: SucceededInStageFilter;
849
+ }
823
850
  export interface ListPipelineExecutionsInput {
824
851
  pipelineName: string | undefined;
825
852
  maxResults?: number;
853
+ filter?: PipelineExecutionFilter;
826
854
  nextToken?: string;
827
855
  }
828
856
  export interface SourceRevision {
@@ -837,12 +865,15 @@ export interface StopExecutionTrigger {
837
865
  export interface PipelineExecutionSummary {
838
866
  pipelineExecutionId?: string;
839
867
  status?: PipelineExecutionStatus;
868
+ statusSummary?: string;
840
869
  startTime?: Date;
841
870
  lastUpdateTime?: Date;
842
871
  sourceRevisions?: SourceRevision[];
843
872
  trigger?: ExecutionTrigger;
844
873
  stopTrigger?: StopExecutionTrigger;
845
874
  executionMode?: ExecutionMode;
875
+ executionType?: ExecutionType;
876
+ rollbackMetadata?: PipelineRollbackMetadata;
846
877
  }
847
878
  export interface ListPipelineExecutionsOutput {
848
879
  pipelineExecutionSummaries?: PipelineExecutionSummary[];
@@ -1112,6 +1143,31 @@ export declare class StageNotRetryableException extends __BaseException {
1112
1143
  opts: __ExceptionOptionType<StageNotRetryableException, __BaseException>
1113
1144
  );
1114
1145
  }
1146
+ export declare class PipelineExecutionOutdatedException extends __BaseException {
1147
+ readonly name: "PipelineExecutionOutdatedException";
1148
+ readonly $fault: "client";
1149
+ constructor(
1150
+ opts: __ExceptionOptionType<
1151
+ PipelineExecutionOutdatedException,
1152
+ __BaseException
1153
+ >
1154
+ );
1155
+ }
1156
+ export interface RollbackStageInput {
1157
+ pipelineName: string | undefined;
1158
+ stageName: string | undefined;
1159
+ targetPipelineExecutionId: string | undefined;
1160
+ }
1161
+ export interface RollbackStageOutput {
1162
+ pipelineExecutionId: string | undefined;
1163
+ }
1164
+ export declare class UnableToRollbackStageException extends __BaseException {
1165
+ readonly name: "UnableToRollbackStageException";
1166
+ readonly $fault: "client";
1167
+ constructor(
1168
+ opts: __ExceptionOptionType<UnableToRollbackStageException, __BaseException>
1169
+ );
1170
+ }
1115
1171
  export declare class ConcurrentPipelineExecutionsLimitExceededException extends __BaseException {
1116
1172
  readonly name: "ConcurrentPipelineExecutionsLimitExceededException";
1117
1173
  readonly $fault: "client";