aws-sdk-codepipeline 1.70.0 → 1.71.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0bb768510b843cbc6d867232fff48e827f2abd7bcc07591b81c367bc544461f6
4
- data.tar.gz: cce99685700e96f8398777b6ac19b907a73a1263ee7df91445ba3d59ffdc24fc
3
+ metadata.gz: eb2fb0af8b4447a6b10f08b155e9f2de22f44edba926cb468f47c2554478fb1e
4
+ data.tar.gz: c170a40d7b16b78f3f06915d0274a6101c44bae6e78087f8f76cbf676cbac620
5
5
  SHA512:
6
- metadata.gz: 5c060aa4957a8c4e11ac34582d9d8635648bfc409de66029ecd0eabbb1962f37a5d2f48f9dc95b4a91b9906f29cf3e16ee6169bf39e30923483dc46c3779b80f
7
- data.tar.gz: 2b9ab64dbb42146f73ade2d29c8daeee9223785c4a1d9817f7c236d524a4cc5a113e81f2bd6b52ec4a3c3872e6e852868afd0701deaff4c24216278639de8386
6
+ metadata.gz: 624203ec38b17f12b9c54fa4aa359d562abe7af9476564cac0f71975d196035c610ba599066ae9db7d1b27c6731220d8cc42a8c1668666e32f806d7e86f28273
7
+ data.tar.gz: cae785d9e055c5a73f30d38be4121573a3b24264d7191c5085fd20aa2942045e145ecaf0437f68f637744e16ef1db724653b50105f824adb49ace5225e308c73
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.71.0 (2024-04-26)
5
+ ------------------
6
+
7
+ * Feature - Add ability to manually and automatically roll back a pipeline stage to a previously successful execution.
8
+
4
9
  1.70.0 (2024-04-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.70.0
1
+ 1.71.0
@@ -705,6 +705,9 @@ module Aws::CodePipeline
705
705
  # timeout_in_minutes: 1,
706
706
  # },
707
707
  # ],
708
+ # on_failure: {
709
+ # result: "ROLLBACK", # accepts ROLLBACK
710
+ # },
708
711
  # },
709
712
  # ],
710
713
  # version: 1,
@@ -798,6 +801,7 @@ module Aws::CodePipeline
798
801
  # resp.pipeline.stages[0].actions[0].region #=> String
799
802
  # resp.pipeline.stages[0].actions[0].namespace #=> String
800
803
  # resp.pipeline.stages[0].actions[0].timeout_in_minutes #=> Integer
804
+ # resp.pipeline.stages[0].on_failure.result #=> String, one of "ROLLBACK"
801
805
  # resp.pipeline.version #=> Integer
802
806
  # resp.pipeline.execution_mode #=> String, one of "QUEUED", "SUPERSEDED", "PARALLEL"
803
807
  # resp.pipeline.pipeline_type #=> String, one of "V1", "V2"
@@ -1249,6 +1253,7 @@ module Aws::CodePipeline
1249
1253
  # resp.pipeline.stages[0].actions[0].region #=> String
1250
1254
  # resp.pipeline.stages[0].actions[0].namespace #=> String
1251
1255
  # resp.pipeline.stages[0].actions[0].timeout_in_minutes #=> Integer
1256
+ # resp.pipeline.stages[0].on_failure.result #=> String, one of "ROLLBACK"
1252
1257
  # resp.pipeline.version #=> Integer
1253
1258
  # resp.pipeline.execution_mode #=> String, one of "QUEUED", "SUPERSEDED", "PARALLEL"
1254
1259
  # resp.pipeline.pipeline_type #=> String, one of "V1", "V2"
@@ -1337,9 +1342,11 @@ module Aws::CodePipeline
1337
1342
  # resp.pipeline_execution.variables #=> Array
1338
1343
  # resp.pipeline_execution.variables[0].name #=> String
1339
1344
  # resp.pipeline_execution.variables[0].resolved_value #=> String
1340
- # resp.pipeline_execution.trigger.trigger_type #=> String, one of "CreatePipeline", "StartPipelineExecution", "PollForSourceChanges", "Webhook", "CloudWatchEvent", "PutActionRevision", "WebhookV2"
1345
+ # resp.pipeline_execution.trigger.trigger_type #=> String, one of "CreatePipeline", "StartPipelineExecution", "PollForSourceChanges", "Webhook", "CloudWatchEvent", "PutActionRevision", "WebhookV2", "ManualRollback", "AutomatedRollback"
1341
1346
  # resp.pipeline_execution.trigger.trigger_detail #=> String
1342
1347
  # resp.pipeline_execution.execution_mode #=> String, one of "QUEUED", "SUPERSEDED", "PARALLEL"
1348
+ # resp.pipeline_execution.execution_type #=> String, one of "STANDARD", "ROLLBACK"
1349
+ # resp.pipeline_execution.rollback_metadata.rollback_target_pipeline_execution_id #=> String
1343
1350
  #
1344
1351
  # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineExecution AWS API Documentation
1345
1352
  #
@@ -1384,9 +1391,11 @@ module Aws::CodePipeline
1384
1391
  # resp.stage_states[0].stage_name #=> String
1385
1392
  # resp.stage_states[0].inbound_execution.pipeline_execution_id #=> String
1386
1393
  # resp.stage_states[0].inbound_execution.status #=> String, one of "Cancelled", "InProgress", "Failed", "Stopped", "Stopping", "Succeeded"
1394
+ # resp.stage_states[0].inbound_execution.type #=> String, one of "STANDARD", "ROLLBACK"
1387
1395
  # resp.stage_states[0].inbound_executions #=> Array
1388
1396
  # resp.stage_states[0].inbound_executions[0].pipeline_execution_id #=> String
1389
1397
  # resp.stage_states[0].inbound_executions[0].status #=> String, one of "Cancelled", "InProgress", "Failed", "Stopped", "Stopping", "Succeeded"
1398
+ # resp.stage_states[0].inbound_executions[0].type #=> String, one of "STANDARD", "ROLLBACK"
1390
1399
  # resp.stage_states[0].inbound_transition_state.enabled #=> Boolean
1391
1400
  # resp.stage_states[0].inbound_transition_state.last_changed_by #=> String
1392
1401
  # resp.stage_states[0].inbound_transition_state.last_changed_at #=> Time
@@ -1411,6 +1420,7 @@ module Aws::CodePipeline
1411
1420
  # resp.stage_states[0].action_states[0].revision_url #=> String
1412
1421
  # resp.stage_states[0].latest_execution.pipeline_execution_id #=> String
1413
1422
  # resp.stage_states[0].latest_execution.status #=> String, one of "Cancelled", "InProgress", "Failed", "Stopped", "Stopping", "Succeeded"
1423
+ # resp.stage_states[0].latest_execution.type #=> String, one of "STANDARD", "ROLLBACK"
1414
1424
  # resp.created #=> Time
1415
1425
  # resp.updated #=> Time
1416
1426
  #
@@ -1667,6 +1677,9 @@ module Aws::CodePipeline
1667
1677
  # value. Pipeline history is limited to the most recent 12 months, based
1668
1678
  # on pipeline execution start times. Default value is 100.
1669
1679
  #
1680
+ # @option params [Types::PipelineExecutionFilter] :filter
1681
+ # The pipeline execution to filter on.
1682
+ #
1670
1683
  # @option params [String] :next_token
1671
1684
  # The token that was returned from the previous `ListPipelineExecutions`
1672
1685
  # call, which can be used to return the next set of pipeline executions
@@ -1684,6 +1697,11 @@ module Aws::CodePipeline
1684
1697
  # resp = client.list_pipeline_executions({
1685
1698
  # pipeline_name: "PipelineName", # required
1686
1699
  # max_results: 1,
1700
+ # filter: {
1701
+ # succeeded_in_stage: {
1702
+ # stage_name: "StageName",
1703
+ # },
1704
+ # },
1687
1705
  # next_token: "NextToken",
1688
1706
  # })
1689
1707
  #
@@ -1692,6 +1710,7 @@ module Aws::CodePipeline
1692
1710
  # resp.pipeline_execution_summaries #=> Array
1693
1711
  # resp.pipeline_execution_summaries[0].pipeline_execution_id #=> String
1694
1712
  # resp.pipeline_execution_summaries[0].status #=> String, one of "Cancelled", "InProgress", "Stopped", "Stopping", "Succeeded", "Superseded", "Failed"
1713
+ # resp.pipeline_execution_summaries[0].status_summary #=> String
1695
1714
  # resp.pipeline_execution_summaries[0].start_time #=> Time
1696
1715
  # resp.pipeline_execution_summaries[0].last_update_time #=> Time
1697
1716
  # resp.pipeline_execution_summaries[0].source_revisions #=> Array
@@ -1699,10 +1718,12 @@ module Aws::CodePipeline
1699
1718
  # resp.pipeline_execution_summaries[0].source_revisions[0].revision_id #=> String
1700
1719
  # resp.pipeline_execution_summaries[0].source_revisions[0].revision_summary #=> String
1701
1720
  # resp.pipeline_execution_summaries[0].source_revisions[0].revision_url #=> String
1702
- # resp.pipeline_execution_summaries[0].trigger.trigger_type #=> String, one of "CreatePipeline", "StartPipelineExecution", "PollForSourceChanges", "Webhook", "CloudWatchEvent", "PutActionRevision", "WebhookV2"
1721
+ # resp.pipeline_execution_summaries[0].trigger.trigger_type #=> String, one of "CreatePipeline", "StartPipelineExecution", "PollForSourceChanges", "Webhook", "CloudWatchEvent", "PutActionRevision", "WebhookV2", "ManualRollback", "AutomatedRollback"
1703
1722
  # resp.pipeline_execution_summaries[0].trigger.trigger_detail #=> String
1704
1723
  # resp.pipeline_execution_summaries[0].stop_trigger.reason #=> String
1705
1724
  # resp.pipeline_execution_summaries[0].execution_mode #=> String, one of "QUEUED", "SUPERSEDED", "PARALLEL"
1725
+ # resp.pipeline_execution_summaries[0].execution_type #=> String, one of "STANDARD", "ROLLBACK"
1726
+ # resp.pipeline_execution_summaries[0].rollback_metadata.rollback_target_pipeline_execution_id #=> String
1706
1727
  # resp.next_token #=> String
1707
1728
  #
1708
1729
  # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelineExecutions AWS API Documentation
@@ -2437,6 +2458,42 @@ module Aws::CodePipeline
2437
2458
  req.send_request(options)
2438
2459
  end
2439
2460
 
2461
+ # Rolls back a stage execution.
2462
+ #
2463
+ # @option params [required, String] :pipeline_name
2464
+ # The name of the pipeline for which the stage will be rolled back.
2465
+ #
2466
+ # @option params [required, String] :stage_name
2467
+ # The name of the stage in the pipeline to be rolled back.
2468
+ #
2469
+ # @option params [required, String] :target_pipeline_execution_id
2470
+ # The pipeline execution ID for the stage to be rolled back to.
2471
+ #
2472
+ # @return [Types::RollbackStageOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2473
+ #
2474
+ # * {Types::RollbackStageOutput#pipeline_execution_id #pipeline_execution_id} => String
2475
+ #
2476
+ # @example Request syntax with placeholder values
2477
+ #
2478
+ # resp = client.rollback_stage({
2479
+ # pipeline_name: "PipelineName", # required
2480
+ # stage_name: "StageName", # required
2481
+ # target_pipeline_execution_id: "PipelineExecutionId", # required
2482
+ # })
2483
+ #
2484
+ # @example Response structure
2485
+ #
2486
+ # resp.pipeline_execution_id #=> String
2487
+ #
2488
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RollbackStage AWS API Documentation
2489
+ #
2490
+ # @overload rollback_stage(params = {})
2491
+ # @param [Hash] params ({})
2492
+ def rollback_stage(params = {}, options = {})
2493
+ req = build_request(:rollback_stage, params)
2494
+ req.send_request(options)
2495
+ end
2496
+
2440
2497
  # Starts the specified pipeline. Specifically, it begins processing the
2441
2498
  # latest commit to the source location specified as part of the
2442
2499
  # pipeline.
@@ -2759,6 +2816,9 @@ module Aws::CodePipeline
2759
2816
  # timeout_in_minutes: 1,
2760
2817
  # },
2761
2818
  # ],
2819
+ # on_failure: {
2820
+ # result: "ROLLBACK", # accepts ROLLBACK
2821
+ # },
2762
2822
  # },
2763
2823
  # ],
2764
2824
  # version: 1,
@@ -2846,6 +2906,7 @@ module Aws::CodePipeline
2846
2906
  # resp.pipeline.stages[0].actions[0].region #=> String
2847
2907
  # resp.pipeline.stages[0].actions[0].namespace #=> String
2848
2908
  # resp.pipeline.stages[0].actions[0].timeout_in_minutes #=> Integer
2909
+ # resp.pipeline.stages[0].on_failure.result #=> String, one of "ROLLBACK"
2849
2910
  # resp.pipeline.version #=> Integer
2850
2911
  # resp.pipeline.execution_mode #=> String, one of "QUEUED", "SUPERSEDED", "PARALLEL"
2851
2912
  # resp.pipeline.pipeline_type #=> String, one of "V1", "V2"
@@ -2903,7 +2964,7 @@ module Aws::CodePipeline
2903
2964
  params: params,
2904
2965
  config: config)
2905
2966
  context[:gem_name] = 'aws-sdk-codepipeline'
2906
- context[:gem_version] = '1.70.0'
2967
+ context[:gem_version] = '1.71.0'
2907
2968
  Seahorse::Client::Request.new(handlers, context)
2908
2969
  end
2909
2970
 
@@ -127,10 +127,12 @@ module Aws::CodePipeline
127
127
  ExecutionMode = Shapes::StringShape.new(name: 'ExecutionMode')
128
128
  ExecutionSummary = Shapes::StringShape.new(name: 'ExecutionSummary')
129
129
  ExecutionTrigger = Shapes::StructureShape.new(name: 'ExecutionTrigger')
130
+ ExecutionType = Shapes::StringShape.new(name: 'ExecutionType')
130
131
  ExecutorConfiguration = Shapes::StructureShape.new(name: 'ExecutorConfiguration')
131
132
  ExecutorType = Shapes::StringShape.new(name: 'ExecutorType')
132
133
  ExternalExecutionId = Shapes::StringShape.new(name: 'ExternalExecutionId')
133
134
  ExternalExecutionSummary = Shapes::StringShape.new(name: 'ExternalExecutionSummary')
135
+ FailureConditions = Shapes::StructureShape.new(name: 'FailureConditions')
134
136
  FailureDetails = Shapes::StructureShape.new(name: 'FailureDetails')
135
137
  FailureType = Shapes::StringShape.new(name: 'FailureType')
136
138
  GetActionTypeInput = Shapes::StructureShape.new(name: 'GetActionTypeInput')
@@ -230,9 +232,11 @@ module Aws::CodePipeline
230
232
  PipelineContext = Shapes::StructureShape.new(name: 'PipelineContext')
231
233
  PipelineDeclaration = Shapes::StructureShape.new(name: 'PipelineDeclaration')
232
234
  PipelineExecution = Shapes::StructureShape.new(name: 'PipelineExecution')
235
+ PipelineExecutionFilter = Shapes::StructureShape.new(name: 'PipelineExecutionFilter')
233
236
  PipelineExecutionId = Shapes::StringShape.new(name: 'PipelineExecutionId')
234
237
  PipelineExecutionNotFoundException = Shapes::StructureShape.new(name: 'PipelineExecutionNotFoundException')
235
238
  PipelineExecutionNotStoppableException = Shapes::StructureShape.new(name: 'PipelineExecutionNotStoppableException')
239
+ PipelineExecutionOutdatedException = Shapes::StructureShape.new(name: 'PipelineExecutionOutdatedException')
236
240
  PipelineExecutionStatus = Shapes::StringShape.new(name: 'PipelineExecutionStatus')
237
241
  PipelineExecutionStatusSummary = Shapes::StringShape.new(name: 'PipelineExecutionStatusSummary')
238
242
  PipelineExecutionSummary = Shapes::StructureShape.new(name: 'PipelineExecutionSummary')
@@ -242,6 +246,7 @@ module Aws::CodePipeline
242
246
  PipelineName = Shapes::StringShape.new(name: 'PipelineName')
243
247
  PipelineNameInUseException = Shapes::StructureShape.new(name: 'PipelineNameInUseException')
244
248
  PipelineNotFoundException = Shapes::StructureShape.new(name: 'PipelineNotFoundException')
249
+ PipelineRollbackMetadata = Shapes::StructureShape.new(name: 'PipelineRollbackMetadata')
245
250
  PipelineStageDeclarationList = Shapes::ListShape.new(name: 'PipelineStageDeclarationList')
246
251
  PipelineSummary = Shapes::StructureShape.new(name: 'PipelineSummary')
247
252
  PipelineTriggerDeclaration = Shapes::StructureShape.new(name: 'PipelineTriggerDeclaration')
@@ -284,12 +289,15 @@ module Aws::CodePipeline
284
289
  ResolvedPipelineVariableList = Shapes::ListShape.new(name: 'ResolvedPipelineVariableList')
285
290
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
286
291
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
292
+ Result = Shapes::StringShape.new(name: 'Result')
287
293
  RetryStageExecutionInput = Shapes::StructureShape.new(name: 'RetryStageExecutionInput')
288
294
  RetryStageExecutionOutput = Shapes::StructureShape.new(name: 'RetryStageExecutionOutput')
289
295
  Revision = Shapes::StringShape.new(name: 'Revision')
290
296
  RevisionChangeIdentifier = Shapes::StringShape.new(name: 'RevisionChangeIdentifier')
291
297
  RevisionSummary = Shapes::StringShape.new(name: 'RevisionSummary')
292
298
  RoleArn = Shapes::StringShape.new(name: 'RoleArn')
299
+ RollbackStageInput = Shapes::StructureShape.new(name: 'RollbackStageInput')
300
+ RollbackStageOutput = Shapes::StructureShape.new(name: 'RollbackStageOutput')
293
301
  S3ArtifactLocation = Shapes::StructureShape.new(name: 'S3ArtifactLocation')
294
302
  S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
295
303
  S3BucketName = Shapes::StringShape.new(name: 'S3BucketName')
@@ -326,6 +334,7 @@ module Aws::CodePipeline
326
334
  StopPipelineExecutionOutput = Shapes::StructureShape.new(name: 'StopPipelineExecutionOutput')
327
335
  StopPipelineExecutionReason = Shapes::StringShape.new(name: 'StopPipelineExecutionReason')
328
336
  String = Shapes::StringShape.new(name: 'String')
337
+ SucceededInStageFilter = Shapes::StructureShape.new(name: 'SucceededInStageFilter')
329
338
  Tag = Shapes::StructureShape.new(name: 'Tag')
330
339
  TagKey = Shapes::StringShape.new(name: 'TagKey')
331
340
  TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
@@ -344,6 +353,7 @@ module Aws::CodePipeline
344
353
  TransitionState = Shapes::StructureShape.new(name: 'TransitionState')
345
354
  TriggerDetail = Shapes::StringShape.new(name: 'TriggerDetail')
346
355
  TriggerType = Shapes::StringShape.new(name: 'TriggerType')
356
+ UnableToRollbackStageException = Shapes::StructureShape.new(name: 'UnableToRollbackStageException')
347
357
  UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
348
358
  UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
349
359
  UpdateActionTypeInput = Shapes::StructureShape.new(name: 'UpdateActionTypeInput')
@@ -700,6 +710,9 @@ module Aws::CodePipeline
700
710
  ExecutorConfiguration.add_member(:job_worker_executor_configuration, Shapes::ShapeRef.new(shape: JobWorkerExecutorConfiguration, location_name: "jobWorkerExecutorConfiguration"))
701
711
  ExecutorConfiguration.struct_class = Types::ExecutorConfiguration
702
712
 
713
+ FailureConditions.add_member(:result, Shapes::ShapeRef.new(shape: Result, location_name: "result"))
714
+ FailureConditions.struct_class = Types::FailureConditions
715
+
703
716
  FailureDetails.add_member(:type, Shapes::ShapeRef.new(shape: FailureType, required: true, location_name: "type"))
704
717
  FailureDetails.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "message"))
705
718
  FailureDetails.add_member(:external_execution_id, Shapes::ShapeRef.new(shape: ExecutionId, location_name: "externalExecutionId"))
@@ -885,6 +898,7 @@ module Aws::CodePipeline
885
898
 
886
899
  ListPipelineExecutionsInput.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: PipelineName, required: true, location_name: "pipelineName"))
887
900
  ListPipelineExecutionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
901
+ ListPipelineExecutionsInput.add_member(:filter, Shapes::ShapeRef.new(shape: PipelineExecutionFilter, location_name: "filter"))
888
902
  ListPipelineExecutionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
889
903
  ListPipelineExecutionsInput.struct_class = Types::ListPipelineExecutionsInput
890
904
 
@@ -967,21 +981,32 @@ module Aws::CodePipeline
967
981
  PipelineExecution.add_member(:variables, Shapes::ShapeRef.new(shape: ResolvedPipelineVariableList, location_name: "variables"))
968
982
  PipelineExecution.add_member(:trigger, Shapes::ShapeRef.new(shape: ExecutionTrigger, location_name: "trigger"))
969
983
  PipelineExecution.add_member(:execution_mode, Shapes::ShapeRef.new(shape: ExecutionMode, location_name: "executionMode"))
984
+ PipelineExecution.add_member(:execution_type, Shapes::ShapeRef.new(shape: ExecutionType, location_name: "executionType"))
985
+ PipelineExecution.add_member(:rollback_metadata, Shapes::ShapeRef.new(shape: PipelineRollbackMetadata, location_name: "rollbackMetadata"))
970
986
  PipelineExecution.struct_class = Types::PipelineExecution
971
987
 
988
+ PipelineExecutionFilter.add_member(:succeeded_in_stage, Shapes::ShapeRef.new(shape: SucceededInStageFilter, location_name: "succeededInStage"))
989
+ PipelineExecutionFilter.struct_class = Types::PipelineExecutionFilter
990
+
972
991
  PipelineExecutionNotFoundException.struct_class = Types::PipelineExecutionNotFoundException
973
992
 
974
993
  PipelineExecutionNotStoppableException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "message"))
975
994
  PipelineExecutionNotStoppableException.struct_class = Types::PipelineExecutionNotStoppableException
976
995
 
996
+ PipelineExecutionOutdatedException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "message"))
997
+ PipelineExecutionOutdatedException.struct_class = Types::PipelineExecutionOutdatedException
998
+
977
999
  PipelineExecutionSummary.add_member(:pipeline_execution_id, Shapes::ShapeRef.new(shape: PipelineExecutionId, location_name: "pipelineExecutionId"))
978
1000
  PipelineExecutionSummary.add_member(:status, Shapes::ShapeRef.new(shape: PipelineExecutionStatus, location_name: "status"))
1001
+ PipelineExecutionSummary.add_member(:status_summary, Shapes::ShapeRef.new(shape: PipelineExecutionStatusSummary, location_name: "statusSummary"))
979
1002
  PipelineExecutionSummary.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "startTime"))
980
1003
  PipelineExecutionSummary.add_member(:last_update_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdateTime"))
981
1004
  PipelineExecutionSummary.add_member(:source_revisions, Shapes::ShapeRef.new(shape: SourceRevisionList, location_name: "sourceRevisions"))
982
1005
  PipelineExecutionSummary.add_member(:trigger, Shapes::ShapeRef.new(shape: ExecutionTrigger, location_name: "trigger"))
983
1006
  PipelineExecutionSummary.add_member(:stop_trigger, Shapes::ShapeRef.new(shape: StopExecutionTrigger, location_name: "stopTrigger"))
984
1007
  PipelineExecutionSummary.add_member(:execution_mode, Shapes::ShapeRef.new(shape: ExecutionMode, location_name: "executionMode"))
1008
+ PipelineExecutionSummary.add_member(:execution_type, Shapes::ShapeRef.new(shape: ExecutionType, location_name: "executionType"))
1009
+ PipelineExecutionSummary.add_member(:rollback_metadata, Shapes::ShapeRef.new(shape: PipelineRollbackMetadata, location_name: "rollbackMetadata"))
985
1010
  PipelineExecutionSummary.struct_class = Types::PipelineExecutionSummary
986
1011
 
987
1012
  PipelineExecutionSummaryList.member = Shapes::ShapeRef.new(shape: PipelineExecutionSummary)
@@ -998,6 +1023,9 @@ module Aws::CodePipeline
998
1023
 
999
1024
  PipelineNotFoundException.struct_class = Types::PipelineNotFoundException
1000
1025
 
1026
+ PipelineRollbackMetadata.add_member(:rollback_target_pipeline_execution_id, Shapes::ShapeRef.new(shape: PipelineExecutionId, location_name: "rollbackTargetPipelineExecutionId"))
1027
+ PipelineRollbackMetadata.struct_class = Types::PipelineRollbackMetadata
1028
+
1001
1029
  PipelineStageDeclarationList.member = Shapes::ShapeRef.new(shape: StageDeclaration)
1002
1030
 
1003
1031
  PipelineSummary.add_member(:name, Shapes::ShapeRef.new(shape: PipelineName, location_name: "name"))
@@ -1129,6 +1157,14 @@ module Aws::CodePipeline
1129
1157
  RetryStageExecutionOutput.add_member(:pipeline_execution_id, Shapes::ShapeRef.new(shape: PipelineExecutionId, location_name: "pipelineExecutionId"))
1130
1158
  RetryStageExecutionOutput.struct_class = Types::RetryStageExecutionOutput
1131
1159
 
1160
+ RollbackStageInput.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: PipelineName, required: true, location_name: "pipelineName"))
1161
+ RollbackStageInput.add_member(:stage_name, Shapes::ShapeRef.new(shape: StageName, required: true, location_name: "stageName"))
1162
+ RollbackStageInput.add_member(:target_pipeline_execution_id, Shapes::ShapeRef.new(shape: PipelineExecutionId, required: true, location_name: "targetPipelineExecutionId"))
1163
+ RollbackStageInput.struct_class = Types::RollbackStageInput
1164
+
1165
+ RollbackStageOutput.add_member(:pipeline_execution_id, Shapes::ShapeRef.new(shape: PipelineExecutionId, required: true, location_name: "pipelineExecutionId"))
1166
+ RollbackStageOutput.struct_class = Types::RollbackStageOutput
1167
+
1132
1168
  S3ArtifactLocation.add_member(:bucket_name, Shapes::ShapeRef.new(shape: S3BucketName, required: true, location_name: "bucketName"))
1133
1169
  S3ArtifactLocation.add_member(:object_key, Shapes::ShapeRef.new(shape: S3ObjectKey, required: true, location_name: "objectKey"))
1134
1170
  S3ArtifactLocation.struct_class = Types::S3ArtifactLocation
@@ -1162,10 +1198,12 @@ module Aws::CodePipeline
1162
1198
  StageDeclaration.add_member(:name, Shapes::ShapeRef.new(shape: StageName, required: true, location_name: "name"))
1163
1199
  StageDeclaration.add_member(:blockers, Shapes::ShapeRef.new(shape: StageBlockerDeclarationList, location_name: "blockers"))
1164
1200
  StageDeclaration.add_member(:actions, Shapes::ShapeRef.new(shape: StageActionDeclarationList, required: true, location_name: "actions"))
1201
+ StageDeclaration.add_member(:on_failure, Shapes::ShapeRef.new(shape: FailureConditions, location_name: "onFailure"))
1165
1202
  StageDeclaration.struct_class = Types::StageDeclaration
1166
1203
 
1167
1204
  StageExecution.add_member(:pipeline_execution_id, Shapes::ShapeRef.new(shape: PipelineExecutionId, required: true, location_name: "pipelineExecutionId"))
1168
1205
  StageExecution.add_member(:status, Shapes::ShapeRef.new(shape: StageExecutionStatus, required: true, location_name: "status"))
1206
+ StageExecution.add_member(:type, Shapes::ShapeRef.new(shape: ExecutionType, location_name: "type"))
1169
1207
  StageExecution.struct_class = Types::StageExecution
1170
1208
 
1171
1209
  StageExecutionList.member = Shapes::ShapeRef.new(shape: StageExecution)
@@ -1205,6 +1243,9 @@ module Aws::CodePipeline
1205
1243
  StopPipelineExecutionOutput.add_member(:pipeline_execution_id, Shapes::ShapeRef.new(shape: PipelineExecutionId, location_name: "pipelineExecutionId"))
1206
1244
  StopPipelineExecutionOutput.struct_class = Types::StopPipelineExecutionOutput
1207
1245
 
1246
+ SucceededInStageFilter.add_member(:stage_name, Shapes::ShapeRef.new(shape: StageName, location_name: "stageName"))
1247
+ SucceededInStageFilter.struct_class = Types::SucceededInStageFilter
1248
+
1208
1249
  Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "key"))
1209
1250
  Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "value"))
1210
1251
  Tag.struct_class = Types::Tag
@@ -1249,6 +1290,9 @@ module Aws::CodePipeline
1249
1290
  TransitionState.add_member(:disabled_reason, Shapes::ShapeRef.new(shape: DisabledReason, location_name: "disabledReason"))
1250
1291
  TransitionState.struct_class = Types::TransitionState
1251
1292
 
1293
+ UnableToRollbackStageException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
1294
+ UnableToRollbackStageException.struct_class = Types::UnableToRollbackStageException
1295
+
1252
1296
  UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
1253
1297
  UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "tagKeys"))
1254
1298
  UntagResourceInput.struct_class = Types::UntagResourceInput
@@ -1299,6 +1343,7 @@ module Aws::CodePipeline
1299
1343
  "endpointPrefix" => "codepipeline",
1300
1344
  "jsonVersion" => "1.1",
1301
1345
  "protocol" => "json",
1346
+ "protocols" => ["json"],
1302
1347
  "serviceAbbreviation" => "CodePipeline",
1303
1348
  "serviceFullName" => "AWS CodePipeline",
1304
1349
  "serviceId" => "CodePipeline",
@@ -1720,6 +1765,21 @@ module Aws::CodePipeline
1720
1765
  o.errors << Shapes::ShapeRef.new(shape: NotLatestPipelineExecutionException)
1721
1766
  end)
1722
1767
 
1768
+ api.add_operation(:rollback_stage, Seahorse::Model::Operation.new.tap do |o|
1769
+ o.name = "RollbackStage"
1770
+ o.http_method = "POST"
1771
+ o.http_request_uri = "/"
1772
+ o.input = Shapes::ShapeRef.new(shape: RollbackStageInput)
1773
+ o.output = Shapes::ShapeRef.new(shape: RollbackStageOutput)
1774
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1775
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1776
+ o.errors << Shapes::ShapeRef.new(shape: PipelineNotFoundException)
1777
+ o.errors << Shapes::ShapeRef.new(shape: PipelineExecutionNotFoundException)
1778
+ o.errors << Shapes::ShapeRef.new(shape: PipelineExecutionOutdatedException)
1779
+ o.errors << Shapes::ShapeRef.new(shape: StageNotFoundException)
1780
+ o.errors << Shapes::ShapeRef.new(shape: UnableToRollbackStageException)
1781
+ end)
1782
+
1723
1783
  api.add_operation(:start_pipeline_execution, Seahorse::Model::Operation.new.tap do |o|
1724
1784
  o.name = "StartPipelineExecution"
1725
1785
  o.http_method = "POST"
@@ -474,6 +474,20 @@ module Aws::CodePipeline
474
474
  end
475
475
  end
476
476
 
477
+ class RollbackStage
478
+ def self.build(context)
479
+ unless context.config.regional_endpoint
480
+ endpoint = context.config.endpoint.to_s
481
+ end
482
+ Aws::CodePipeline::EndpointParameters.new(
483
+ region: context.config.region,
484
+ use_dual_stack: context.config.use_dualstack_endpoint,
485
+ use_fips: context.config.use_fips_endpoint,
486
+ endpoint: endpoint,
487
+ )
488
+ end
489
+ end
490
+
477
491
  class StartPipelineExecution
478
492
  def self.build(context)
479
493
  unless context.config.regional_endpoint
@@ -55,6 +55,7 @@ module Aws::CodePipeline
55
55
  # * {OutputVariablesSizeExceededException}
56
56
  # * {PipelineExecutionNotFoundException}
57
57
  # * {PipelineExecutionNotStoppableException}
58
+ # * {PipelineExecutionOutdatedException}
58
59
  # * {PipelineNameInUseException}
59
60
  # * {PipelineNotFoundException}
60
61
  # * {PipelineVersionNotFoundException}
@@ -63,6 +64,7 @@ module Aws::CodePipeline
63
64
  # * {StageNotFoundException}
64
65
  # * {StageNotRetryableException}
65
66
  # * {TooManyTagsException}
67
+ # * {UnableToRollbackStageException}
66
68
  # * {ValidationException}
67
69
  # * {WebhookNotFoundException}
68
70
  #
@@ -392,6 +394,21 @@ module Aws::CodePipeline
392
394
  end
393
395
  end
394
396
 
397
+ class PipelineExecutionOutdatedException < ServiceError
398
+
399
+ # @param [Seahorse::Client::RequestContext] context
400
+ # @param [String] message
401
+ # @param [Aws::CodePipeline::Types::PipelineExecutionOutdatedException] data
402
+ def initialize(context, message, data = Aws::EmptyStructure.new)
403
+ super(context, message, data)
404
+ end
405
+
406
+ # @return [String]
407
+ def message
408
+ @message || @data[:message]
409
+ end
410
+ end
411
+
395
412
  class PipelineNameInUseException < ServiceError
396
413
 
397
414
  # @param [Seahorse::Client::RequestContext] context
@@ -482,6 +499,21 @@ module Aws::CodePipeline
482
499
  end
483
500
  end
484
501
 
502
+ class UnableToRollbackStageException < ServiceError
503
+
504
+ # @param [Seahorse::Client::RequestContext] context
505
+ # @param [String] message
506
+ # @param [Aws::CodePipeline::Types::UnableToRollbackStageException] data
507
+ def initialize(context, message, data = Aws::EmptyStructure.new)
508
+ super(context, message, data)
509
+ end
510
+
511
+ # @return [String]
512
+ def message
513
+ @message || @data[:message]
514
+ end
515
+ end
516
+
485
517
  class ValidationException < ServiceError
486
518
 
487
519
  # @param [Seahorse::Client::RequestContext] context
@@ -124,6 +124,8 @@ module Aws::CodePipeline
124
124
  Aws::CodePipeline::Endpoints::RegisterWebhookWithThirdParty.build(context)
125
125
  when :retry_stage_execution
126
126
  Aws::CodePipeline::Endpoints::RetryStageExecution.build(context)
127
+ when :rollback_stage
128
+ Aws::CodePipeline::Endpoints::RollbackStage.build(context)
127
129
  when :start_pipeline_execution
128
130
  Aws::CodePipeline::Endpoints::StartPipelineExecution.build(context)
129
131
  when :stop_pipeline_execution
@@ -1753,6 +1753,22 @@ module Aws::CodePipeline
1753
1753
  include Aws::Structure
1754
1754
  end
1755
1755
 
1756
+ # The configuration that specifies the result, such as rollback, to
1757
+ # occur upon stage failure.
1758
+ #
1759
+ # @!attribute [rw] result
1760
+ # The specified result for when the failure conditions are met, such
1761
+ # as rolling back the stage.
1762
+ # @return [String]
1763
+ #
1764
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/FailureConditions AWS API Documentation
1765
+ #
1766
+ class FailureConditions < Struct.new(
1767
+ :result)
1768
+ SENSITIVE = []
1769
+ include Aws::Structure
1770
+ end
1771
+
1756
1772
  # Represents information about failure details.
1757
1773
  #
1758
1774
  # @!attribute [rw] type
@@ -2645,6 +2661,10 @@ module Aws::CodePipeline
2645
2661
  # 100.
2646
2662
  # @return [Integer]
2647
2663
  #
2664
+ # @!attribute [rw] filter
2665
+ # The pipeline execution to filter on.
2666
+ # @return [Types::PipelineExecutionFilter]
2667
+ #
2648
2668
  # @!attribute [rw] next_token
2649
2669
  # The token that was returned from the previous
2650
2670
  # `ListPipelineExecutions` call, which can be used to return the next
@@ -2656,6 +2676,7 @@ module Aws::CodePipeline
2656
2676
  class ListPipelineExecutionsInput < Struct.new(
2657
2677
  :pipeline_name,
2658
2678
  :max_results,
2679
+ :filter,
2659
2680
  :next_token)
2660
2681
  SENSITIVE = []
2661
2682
  include Aws::Structure
@@ -3129,6 +3150,14 @@ module Aws::CodePipeline
3129
3150
  # The default mode is SUPERSEDED.
3130
3151
  # @return [String]
3131
3152
  #
3153
+ # @!attribute [rw] execution_type
3154
+ # The type of the pipeline execution.
3155
+ # @return [String]
3156
+ #
3157
+ # @!attribute [rw] rollback_metadata
3158
+ # The metadata about the execution pertaining to stage rollback.
3159
+ # @return [Types::PipelineRollbackMetadata]
3160
+ #
3132
3161
  # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineExecution AWS API Documentation
3133
3162
  #
3134
3163
  class PipelineExecution < Struct.new(
@@ -3140,7 +3169,24 @@ module Aws::CodePipeline
3140
3169
  :artifact_revisions,
3141
3170
  :variables,
3142
3171
  :trigger,
3143
- :execution_mode)
3172
+ :execution_mode,
3173
+ :execution_type,
3174
+ :rollback_metadata)
3175
+ SENSITIVE = []
3176
+ include Aws::Structure
3177
+ end
3178
+
3179
+ # The pipeline execution to filter on.
3180
+ #
3181
+ # @!attribute [rw] succeeded_in_stage
3182
+ # Filter for pipeline executions where the stage was successful in the
3183
+ # current pipeline version.
3184
+ # @return [Types::SucceededInStageFilter]
3185
+ #
3186
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineExecutionFilter AWS API Documentation
3187
+ #
3188
+ class PipelineExecutionFilter < Struct.new(
3189
+ :succeeded_in_stage)
3144
3190
  SENSITIVE = []
3145
3191
  include Aws::Structure
3146
3192
  end
@@ -3166,6 +3212,20 @@ module Aws::CodePipeline
3166
3212
  include Aws::Structure
3167
3213
  end
3168
3214
 
3215
+ # The specified pipeline execution is outdated and cannot be used as a
3216
+ # target pipeline execution for rollback.
3217
+ #
3218
+ # @!attribute [rw] message
3219
+ # @return [String]
3220
+ #
3221
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineExecutionOutdatedException AWS API Documentation
3222
+ #
3223
+ class PipelineExecutionOutdatedException < Struct.new(
3224
+ :message)
3225
+ SENSITIVE = []
3226
+ include Aws::Structure
3227
+ end
3228
+
3169
3229
  # Summary information about a pipeline execution.
3170
3230
  #
3171
3231
  # @!attribute [rw] pipeline_execution_id
@@ -3200,6 +3260,10 @@ module Aws::CodePipeline
3200
3260
  # [2]: https://docs.aws.amazon.com/codepipeline/latest/userguide/concepts.html#concepts-superseded
3201
3261
  # @return [String]
3202
3262
  #
3263
+ # @!attribute [rw] status_summary
3264
+ # Status summary for the pipeline.
3265
+ # @return [String]
3266
+ #
3203
3267
  # @!attribute [rw] start_time
3204
3268
  # The date and time when the pipeline execution began, in timestamp
3205
3269
  # format.
@@ -3229,17 +3293,28 @@ module Aws::CodePipeline
3229
3293
  # The default mode is SUPERSEDED.
3230
3294
  # @return [String]
3231
3295
  #
3296
+ # @!attribute [rw] execution_type
3297
+ # Type of the pipeline execution.
3298
+ # @return [String]
3299
+ #
3300
+ # @!attribute [rw] rollback_metadata
3301
+ # The metadata for the stage execution to be rolled back.
3302
+ # @return [Types::PipelineRollbackMetadata]
3303
+ #
3232
3304
  # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineExecutionSummary AWS API Documentation
3233
3305
  #
3234
3306
  class PipelineExecutionSummary < Struct.new(
3235
3307
  :pipeline_execution_id,
3236
3308
  :status,
3309
+ :status_summary,
3237
3310
  :start_time,
3238
3311
  :last_update_time,
3239
3312
  :source_revisions,
3240
3313
  :trigger,
3241
3314
  :stop_trigger,
3242
- :execution_mode)
3315
+ :execution_mode,
3316
+ :execution_type,
3317
+ :rollback_metadata)
3243
3318
  SENSITIVE = []
3244
3319
  include Aws::Structure
3245
3320
  end
@@ -3296,6 +3371,20 @@ module Aws::CodePipeline
3296
3371
  #
3297
3372
  class PipelineNotFoundException < Aws::EmptyStructure; end
3298
3373
 
3374
+ # The metadata for the stage execution to be rolled back.
3375
+ #
3376
+ # @!attribute [rw] rollback_target_pipeline_execution_id
3377
+ # The pipeline execution ID to which the stage will be rolled back.
3378
+ # @return [String]
3379
+ #
3380
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineRollbackMetadata AWS API Documentation
3381
+ #
3382
+ class PipelineRollbackMetadata < Struct.new(
3383
+ :rollback_target_pipeline_execution_id)
3384
+ SENSITIVE = []
3385
+ include Aws::Structure
3386
+ end
3387
+
3299
3388
  # Returns a summary of a pipeline.
3300
3389
  #
3301
3390
  # @!attribute [rw] name
@@ -3892,6 +3981,41 @@ module Aws::CodePipeline
3892
3981
  include Aws::Structure
3893
3982
  end
3894
3983
 
3984
+ # @!attribute [rw] pipeline_name
3985
+ # The name of the pipeline for which the stage will be rolled back.
3986
+ # @return [String]
3987
+ #
3988
+ # @!attribute [rw] stage_name
3989
+ # The name of the stage in the pipeline to be rolled back.
3990
+ # @return [String]
3991
+ #
3992
+ # @!attribute [rw] target_pipeline_execution_id
3993
+ # The pipeline execution ID for the stage to be rolled back to.
3994
+ # @return [String]
3995
+ #
3996
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RollbackStageInput AWS API Documentation
3997
+ #
3998
+ class RollbackStageInput < Struct.new(
3999
+ :pipeline_name,
4000
+ :stage_name,
4001
+ :target_pipeline_execution_id)
4002
+ SENSITIVE = []
4003
+ include Aws::Structure
4004
+ end
4005
+
4006
+ # @!attribute [rw] pipeline_execution_id
4007
+ # The execution ID of the pipeline execution for the stage that has
4008
+ # been rolled back.
4009
+ # @return [String]
4010
+ #
4011
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RollbackStageOutput AWS API Documentation
4012
+ #
4013
+ class RollbackStageOutput < Struct.new(
4014
+ :pipeline_execution_id)
4015
+ SENSITIVE = []
4016
+ include Aws::Structure
4017
+ end
4018
+
3895
4019
  # The location of the S3 bucket that contains a revision.
3896
4020
  #
3897
4021
  # @!attribute [rw] bucket_name
@@ -4027,12 +4151,20 @@ module Aws::CodePipeline
4027
4151
  # The actions included in a stage.
4028
4152
  # @return [Array<Types::ActionDeclaration>]
4029
4153
  #
4154
+ # @!attribute [rw] on_failure
4155
+ # The method to use when a stage has not completed successfully. For
4156
+ # example, configuring this field for rollback will roll back a failed
4157
+ # stage automatically to the last successful pipeline execution in the
4158
+ # stage.
4159
+ # @return [Types::FailureConditions]
4160
+ #
4030
4161
  # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StageDeclaration AWS API Documentation
4031
4162
  #
4032
4163
  class StageDeclaration < Struct.new(
4033
4164
  :name,
4034
4165
  :blockers,
4035
- :actions)
4166
+ :actions,
4167
+ :on_failure)
4036
4168
  SENSITIVE = []
4037
4169
  include Aws::Structure
4038
4170
  end
@@ -4053,11 +4185,17 @@ module Aws::CodePipeline
4053
4185
  # </note>
4054
4186
  # @return [String]
4055
4187
  #
4188
+ # @!attribute [rw] type
4189
+ # The type of pipeline execution for the stage, such as a rollback
4190
+ # pipeline execution.
4191
+ # @return [String]
4192
+ #
4056
4193
  # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StageExecution AWS API Documentation
4057
4194
  #
4058
4195
  class StageExecution < Struct.new(
4059
4196
  :pipeline_execution_id,
4060
- :status)
4197
+ :status,
4198
+ :type)
4061
4199
  SENSITIVE = []
4062
4200
  include Aws::Structure
4063
4201
  end
@@ -4232,6 +4370,22 @@ module Aws::CodePipeline
4232
4370
  include Aws::Structure
4233
4371
  end
4234
4372
 
4373
+ # Filter for pipeline executions that have successfully completed the
4374
+ # stage in the current pipeline version.
4375
+ #
4376
+ # @!attribute [rw] stage_name
4377
+ # The name of the stage for filtering for pipeline executions where
4378
+ # the stage was successful in the current pipeline version.
4379
+ # @return [String]
4380
+ #
4381
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/SucceededInStageFilter AWS API Documentation
4382
+ #
4383
+ class SucceededInStageFilter < Struct.new(
4384
+ :stage_name)
4385
+ SENSITIVE = []
4386
+ include Aws::Structure
4387
+ end
4388
+
4235
4389
  # A tag is a key-value pair that is used to manage the resource.
4236
4390
  #
4237
4391
  # @!attribute [rw] key
@@ -4435,6 +4589,22 @@ module Aws::CodePipeline
4435
4589
  include Aws::Structure
4436
4590
  end
4437
4591
 
4592
+ # Unable to roll back the stage. The cause might be if the pipeline
4593
+ # version has changed since the target pipeline execution was deployed,
4594
+ # the stage is currently running, or an incorrect target pipeline
4595
+ # execution ID was provided.
4596
+ #
4597
+ # @!attribute [rw] message
4598
+ # @return [String]
4599
+ #
4600
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/UnableToRollbackStageException AWS API Documentation
4601
+ #
4602
+ class UnableToRollbackStageException < Struct.new(
4603
+ :message)
4604
+ SENSITIVE = []
4605
+ include Aws::Structure
4606
+ end
4607
+
4438
4608
  # @!attribute [rw] resource_arn
4439
4609
  # The Amazon Resource Name (ARN) of the resource to remove tags from.
4440
4610
  # @return [String]
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-codepipeline/customizations'
52
52
  # @!group service
53
53
  module Aws::CodePipeline
54
54
 
55
- GEM_VERSION = '1.70.0'
55
+ GEM_VERSION = '1.71.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -201,7 +201,10 @@ module Aws
201
201
  namespace: ::String?,
202
202
  timeout_in_minutes: ::Integer?
203
203
  },
204
- ]
204
+ ],
205
+ on_failure: {
206
+ result: ("ROLLBACK")?
207
+ }?
205
208
  },
206
209
  ],
207
210
  version: ::Integer?,
@@ -423,6 +426,11 @@ module Aws
423
426
  def list_pipeline_executions: (
424
427
  pipeline_name: ::String,
425
428
  ?max_results: ::Integer,
429
+ ?filter: {
430
+ succeeded_in_stage: {
431
+ stage_name: ::String?
432
+ }?
433
+ },
426
434
  ?next_token: ::String
427
435
  ) -> _ListPipelineExecutionsResponseSuccess
428
436
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListPipelineExecutionsResponseSuccess
@@ -646,6 +654,18 @@ module Aws
646
654
  ) -> _RetryStageExecutionResponseSuccess
647
655
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RetryStageExecutionResponseSuccess
648
656
 
657
+ interface _RollbackStageResponseSuccess
658
+ include ::Seahorse::Client::_ResponseSuccess[Types::RollbackStageOutput]
659
+ def pipeline_execution_id: () -> ::String
660
+ end
661
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CodePipeline/Client.html#rollback_stage-instance_method
662
+ def rollback_stage: (
663
+ pipeline_name: ::String,
664
+ stage_name: ::String,
665
+ target_pipeline_execution_id: ::String
666
+ ) -> _RollbackStageResponseSuccess
667
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RollbackStageResponseSuccess
668
+
649
669
  interface _StartPipelineExecutionResponseSuccess
650
670
  include ::Seahorse::Client::_ResponseSuccess[Types::StartPipelineExecutionOutput]
651
671
  def pipeline_execution_id: () -> ::String
@@ -823,7 +843,10 @@ module Aws
823
843
  namespace: ::String?,
824
844
  timeout_in_minutes: ::Integer?
825
845
  },
826
- ]
846
+ ],
847
+ on_failure: {
848
+ result: ("ROLLBACK")?
849
+ }?
827
850
  },
828
851
  ],
829
852
  version: ::Integer?,
data/sig/errors.rbs CHANGED
@@ -75,6 +75,9 @@ module Aws
75
75
  class PipelineExecutionNotStoppableException < ::Aws::Errors::ServiceError
76
76
  def message: () -> ::String
77
77
  end
78
+ class PipelineExecutionOutdatedException < ::Aws::Errors::ServiceError
79
+ def message: () -> ::String
80
+ end
78
81
  class PipelineNameInUseException < ::Aws::Errors::ServiceError
79
82
  end
80
83
  class PipelineNotFoundException < ::Aws::Errors::ServiceError
@@ -93,6 +96,9 @@ module Aws
93
96
  class TooManyTagsException < ::Aws::Errors::ServiceError
94
97
  def message: () -> ::String
95
98
  end
99
+ class UnableToRollbackStageException < ::Aws::Errors::ServiceError
100
+ def message: () -> ::String
101
+ end
96
102
  class ValidationException < ::Aws::Errors::ServiceError
97
103
  end
98
104
  class WebhookNotFoundException < ::Aws::Errors::ServiceError
data/sig/types.rbs CHANGED
@@ -420,7 +420,7 @@ module Aws::CodePipeline
420
420
  end
421
421
 
422
422
  class ExecutionTrigger
423
- attr_accessor trigger_type: ("CreatePipeline" | "StartPipelineExecution" | "PollForSourceChanges" | "Webhook" | "CloudWatchEvent" | "PutActionRevision" | "WebhookV2")
423
+ attr_accessor trigger_type: ("CreatePipeline" | "StartPipelineExecution" | "PollForSourceChanges" | "Webhook" | "CloudWatchEvent" | "PutActionRevision" | "WebhookV2" | "ManualRollback" | "AutomatedRollback")
424
424
  attr_accessor trigger_detail: ::String
425
425
  SENSITIVE: []
426
426
  end
@@ -431,6 +431,11 @@ module Aws::CodePipeline
431
431
  SENSITIVE: []
432
432
  end
433
433
 
434
+ class FailureConditions
435
+ attr_accessor result: ("ROLLBACK")
436
+ SENSITIVE: []
437
+ end
438
+
434
439
  class FailureDetails
435
440
  attr_accessor type: ("JobFailed" | "ConfigurationError" | "PermissionError" | "RevisionOutOfSync" | "RevisionUnavailable" | "SystemUnavailable")
436
441
  attr_accessor message: ::String
@@ -679,6 +684,7 @@ module Aws::CodePipeline
679
684
  class ListPipelineExecutionsInput
680
685
  attr_accessor pipeline_name: ::String
681
686
  attr_accessor max_results: ::Integer
687
+ attr_accessor filter: Types::PipelineExecutionFilter
682
688
  attr_accessor next_token: ::String
683
689
  SENSITIVE: []
684
690
  end
@@ -783,6 +789,13 @@ module Aws::CodePipeline
783
789
  attr_accessor variables: ::Array[Types::ResolvedPipelineVariable]
784
790
  attr_accessor trigger: Types::ExecutionTrigger
785
791
  attr_accessor execution_mode: ("QUEUED" | "SUPERSEDED" | "PARALLEL")
792
+ attr_accessor execution_type: ("STANDARD" | "ROLLBACK")
793
+ attr_accessor rollback_metadata: Types::PipelineRollbackMetadata
794
+ SENSITIVE: []
795
+ end
796
+
797
+ class PipelineExecutionFilter
798
+ attr_accessor succeeded_in_stage: Types::SucceededInStageFilter
786
799
  SENSITIVE: []
787
800
  end
788
801
 
@@ -794,15 +807,23 @@ module Aws::CodePipeline
794
807
  SENSITIVE: []
795
808
  end
796
809
 
810
+ class PipelineExecutionOutdatedException
811
+ attr_accessor message: ::String
812
+ SENSITIVE: []
813
+ end
814
+
797
815
  class PipelineExecutionSummary
798
816
  attr_accessor pipeline_execution_id: ::String
799
817
  attr_accessor status: ("Cancelled" | "InProgress" | "Stopped" | "Stopping" | "Succeeded" | "Superseded" | "Failed")
818
+ attr_accessor status_summary: ::String
800
819
  attr_accessor start_time: ::Time
801
820
  attr_accessor last_update_time: ::Time
802
821
  attr_accessor source_revisions: ::Array[Types::SourceRevision]
803
822
  attr_accessor trigger: Types::ExecutionTrigger
804
823
  attr_accessor stop_trigger: Types::StopExecutionTrigger
805
824
  attr_accessor execution_mode: ("QUEUED" | "SUPERSEDED" | "PARALLEL")
825
+ attr_accessor execution_type: ("STANDARD" | "ROLLBACK")
826
+ attr_accessor rollback_metadata: Types::PipelineRollbackMetadata
806
827
  SENSITIVE: []
807
828
  end
808
829
 
@@ -820,6 +841,11 @@ module Aws::CodePipeline
820
841
  class PipelineNotFoundException < Aws::EmptyStructure
821
842
  end
822
843
 
844
+ class PipelineRollbackMetadata
845
+ attr_accessor rollback_target_pipeline_execution_id: ::String
846
+ SENSITIVE: []
847
+ end
848
+
823
849
  class PipelineSummary
824
850
  attr_accessor name: ::String
825
851
  attr_accessor version: ::Integer
@@ -980,6 +1006,18 @@ module Aws::CodePipeline
980
1006
  SENSITIVE: []
981
1007
  end
982
1008
 
1009
+ class RollbackStageInput
1010
+ attr_accessor pipeline_name: ::String
1011
+ attr_accessor stage_name: ::String
1012
+ attr_accessor target_pipeline_execution_id: ::String
1013
+ SENSITIVE: []
1014
+ end
1015
+
1016
+ class RollbackStageOutput
1017
+ attr_accessor pipeline_execution_id: ::String
1018
+ SENSITIVE: []
1019
+ end
1020
+
983
1021
  class S3ArtifactLocation
984
1022
  attr_accessor bucket_name: ::String
985
1023
  attr_accessor object_key: ::String
@@ -1016,12 +1054,14 @@ module Aws::CodePipeline
1016
1054
  attr_accessor name: ::String
1017
1055
  attr_accessor blockers: ::Array[Types::BlockerDeclaration]
1018
1056
  attr_accessor actions: ::Array[Types::ActionDeclaration]
1057
+ attr_accessor on_failure: Types::FailureConditions
1019
1058
  SENSITIVE: []
1020
1059
  end
1021
1060
 
1022
1061
  class StageExecution
1023
1062
  attr_accessor pipeline_execution_id: ::String
1024
1063
  attr_accessor status: ("Cancelled" | "InProgress" | "Failed" | "Stopped" | "Stopping" | "Succeeded")
1064
+ attr_accessor type: ("STANDARD" | "ROLLBACK")
1025
1065
  SENSITIVE: []
1026
1066
  end
1027
1067
 
@@ -1072,6 +1112,11 @@ module Aws::CodePipeline
1072
1112
  SENSITIVE: []
1073
1113
  end
1074
1114
 
1115
+ class SucceededInStageFilter
1116
+ attr_accessor stage_name: ::String
1117
+ SENSITIVE: []
1118
+ end
1119
+
1075
1120
  class Tag
1076
1121
  attr_accessor key: ::String
1077
1122
  attr_accessor value: ::String
@@ -1125,6 +1170,11 @@ module Aws::CodePipeline
1125
1170
  SENSITIVE: []
1126
1171
  end
1127
1172
 
1173
+ class UnableToRollbackStageException
1174
+ attr_accessor message: ::String
1175
+ SENSITIVE: []
1176
+ end
1177
+
1128
1178
  class UntagResourceInput
1129
1179
  attr_accessor resource_arn: ::String
1130
1180
  attr_accessor tag_keys: ::Array[::String]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-codepipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.70.0
4
+ version: 1.71.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-25 00:00:00.000000000 Z
11
+ date: 2024-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core