aws-sdk-codepipeline 1.69.0 → 1.71.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9fe941a6b03ff92e266330cc0042c261b94378b35c50119e31dd3e68709b76d
4
- data.tar.gz: 45dcf23845384f62f905b2eb773009424499d8aaeab278aba660cfde216490f1
3
+ metadata.gz: eb2fb0af8b4447a6b10f08b155e9f2de22f44edba926cb468f47c2554478fb1e
4
+ data.tar.gz: c170a40d7b16b78f3f06915d0274a6101c44bae6e78087f8f76cbf676cbac620
5
5
  SHA512:
6
- metadata.gz: 51a73a09e4268e9ca8a924a82136cc6281686cd76d2e2d1d808f18c9935aa9b4be0b61631d3cd00a95ed2ae0d45d131cb12ec7fc633f34735aed3759d8cd6047
7
- data.tar.gz: 66f3cde336c51552746730335c9d45890eefec0aecedd89fd0049660519b7058ff5ac5563ec46a5fc4eb40320250af65254334ec60cf3fef8302b8c0fcc354c0
6
+ metadata.gz: 624203ec38b17f12b9c54fa4aa359d562abe7af9476564cac0f71975d196035c610ba599066ae9db7d1b27c6731220d8cc42a8c1668666e32f806d7e86f28273
7
+ data.tar.gz: cae785d9e055c5a73f30d38be4121573a3b24264d7191c5085fd20aa2942045e145ecaf0437f68f637744e16ef1db724653b50105f824adb49ace5225e308c73
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.70.0 (2024-04-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.69.0 (2024-02-08)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.69.0
1
+ 1.71.0
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
22
  require 'aws-sdk-core/plugins/response_paging.rb'
23
23
  require 'aws-sdk-core/plugins/stub_responses.rb'
24
24
  require 'aws-sdk-core/plugins/idempotency_token.rb'
25
+ require 'aws-sdk-core/plugins/invocation_id.rb'
25
26
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
27
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
28
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
@@ -72,6 +73,7 @@ module Aws::CodePipeline
72
73
  add_plugin(Aws::Plugins::ResponsePaging)
73
74
  add_plugin(Aws::Plugins::StubResponses)
74
75
  add_plugin(Aws::Plugins::IdempotencyToken)
76
+ add_plugin(Aws::Plugins::InvocationId)
75
77
  add_plugin(Aws::Plugins::JsonvalueConverter)
76
78
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
77
79
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
@@ -196,10 +198,17 @@ module Aws::CodePipeline
196
198
  # When set to 'true' the request body will not be compressed
197
199
  # for supported operations.
198
200
  #
199
- # @option options [String] :endpoint
200
- # The client endpoint is normally constructed from the `:region`
201
- # option. You should only configure an `:endpoint` when connecting
202
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
201
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
202
+ # Normally you should not configure the `:endpoint` option
203
+ # directly. This is normally constructed from the `:region`
204
+ # option. Configuring `:endpoint` is normally reserved for
205
+ # connecting to test or custom endpoints. The endpoint should
206
+ # be a URI formatted like:
207
+ #
208
+ # 'http://example.com'
209
+ # 'https://example.com'
210
+ # 'http://example.com:123'
211
+ #
203
212
  #
204
213
  # @option options [Integer] :endpoint_cache_max_entries (1000)
205
214
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -347,50 +356,65 @@ module Aws::CodePipeline
347
356
  # @option options [Aws::CodePipeline::EndpointProvider] :endpoint_provider
348
357
  # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::CodePipeline::EndpointParameters`
349
358
  #
350
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
351
- # requests through. Formatted like 'http://proxy.com:123'.
352
- #
353
- # @option options [Float] :http_open_timeout (15) The number of
354
- # seconds to wait when opening a HTTP session before raising a
355
- # `Timeout::Error`.
356
- #
357
- # @option options [Float] :http_read_timeout (60) The default
358
- # number of seconds to wait for response data. This value can
359
- # safely be set per-request on the session.
360
- #
361
- # @option options [Float] :http_idle_timeout (5) The number of
362
- # seconds a connection is allowed to sit idle before it is
363
- # considered stale. Stale connections are closed and removed
364
- # from the pool before making a request.
365
- #
366
- # @option options [Float] :http_continue_timeout (1) The number of
367
- # seconds to wait for a 100-continue response before sending the
368
- # request body. This option has no effect unless the request has
369
- # "Expect" header set to "100-continue". Defaults to `nil` which
370
- # disables this behaviour. This value can safely be set per
371
- # request on the session.
372
- #
373
- # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
374
- # in seconds.
375
- #
376
- # @option options [Boolean] :http_wire_trace (false) When `true`,
377
- # HTTP debug output will be sent to the `:logger`.
359
+ # @option options [Float] :http_continue_timeout (1)
360
+ # The number of seconds to wait for a 100-continue response before sending the
361
+ # request body. This option has no effect unless the request has "Expect"
362
+ # header set to "100-continue". Defaults to `nil` which disables this
363
+ # behaviour. This value can safely be set per request on the session.
364
+ #
365
+ # @option options [Float] :http_idle_timeout (5)
366
+ # The number of seconds a connection is allowed to sit idle before it
367
+ # is considered stale. Stale connections are closed and removed from the
368
+ # pool before making a request.
369
+ #
370
+ # @option options [Float] :http_open_timeout (15)
371
+ # The default number of seconds to wait for response data.
372
+ # This value can safely be set per-request on the session.
373
+ #
374
+ # @option options [URI::HTTP,String] :http_proxy
375
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
376
+ #
377
+ # @option options [Float] :http_read_timeout (60)
378
+ # The default number of seconds to wait for response data.
379
+ # This value can safely be set per-request on the session.
380
+ #
381
+ # @option options [Boolean] :http_wire_trace (false)
382
+ # When `true`, HTTP debug output will be sent to the `:logger`.
383
+ #
384
+ # @option options [Proc] :on_chunk_received
385
+ # When a Proc object is provided, it will be used as callback when each chunk
386
+ # of the response body is received. It provides three arguments: the chunk,
387
+ # the number of bytes received, and the total number of
388
+ # bytes in the response (or nil if the server did not send a `content-length`).
389
+ #
390
+ # @option options [Proc] :on_chunk_sent
391
+ # When a Proc object is provided, it will be used as callback when each chunk
392
+ # of the request body is sent. It provides three arguments: the chunk,
393
+ # the number of bytes read from the body, and the total number of
394
+ # bytes in the body.
395
+ #
396
+ # @option options [Boolean] :raise_response_errors (true)
397
+ # When `true`, response errors are raised.
398
+ #
399
+ # @option options [String] :ssl_ca_bundle
400
+ # Full path to the SSL certificate authority bundle file that should be used when
401
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
402
+ # `:ssl_ca_directory` the the system default will be used if available.
403
+ #
404
+ # @option options [String] :ssl_ca_directory
405
+ # Full path of the directory that contains the unbundled SSL certificate
406
+ # authority files for verifying peer certificates. If you do
407
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
408
+ # default will be used if available.
378
409
  #
379
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
380
- # SSL peer certificates are verified when establishing a
381
- # connection.
410
+ # @option options [String] :ssl_ca_store
411
+ # Sets the X509::Store to verify peer certificate.
382
412
  #
383
- # @option options [String] :ssl_ca_bundle Full path to the SSL
384
- # certificate authority bundle file that should be used when
385
- # verifying peer certificates. If you do not pass
386
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
387
- # will be used if available.
413
+ # @option options [Float] :ssl_timeout
414
+ # Sets the SSL timeout in seconds
388
415
  #
389
- # @option options [String] :ssl_ca_directory Full path of the
390
- # directory that contains the unbundled SSL certificate
391
- # authority files for verifying peer certificates. If you do
392
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
393
- # system default will be used if available.
416
+ # @option options [Boolean] :ssl_verify_peer (true)
417
+ # When `true`, SSL peer certificates are verified when establishing a connection.
394
418
  #
395
419
  def initialize(*args)
396
420
  super
@@ -678,8 +702,12 @@ module Aws::CodePipeline
678
702
  # role_arn: "RoleArn",
679
703
  # region: "AWSRegionName",
680
704
  # namespace: "ActionNamespace",
705
+ # timeout_in_minutes: 1,
681
706
  # },
682
707
  # ],
708
+ # on_failure: {
709
+ # result: "ROLLBACK", # accepts ROLLBACK
710
+ # },
683
711
  # },
684
712
  # ],
685
713
  # version: 1,
@@ -772,6 +800,8 @@ module Aws::CodePipeline
772
800
  # resp.pipeline.stages[0].actions[0].role_arn #=> String
773
801
  # resp.pipeline.stages[0].actions[0].region #=> String
774
802
  # resp.pipeline.stages[0].actions[0].namespace #=> String
803
+ # resp.pipeline.stages[0].actions[0].timeout_in_minutes #=> Integer
804
+ # resp.pipeline.stages[0].on_failure.result #=> String, one of "ROLLBACK"
775
805
  # resp.pipeline.version #=> Integer
776
806
  # resp.pipeline.execution_mode #=> String, one of "QUEUED", "SUPERSEDED", "PARALLEL"
777
807
  # resp.pipeline.pipeline_type #=> String, one of "V1", "V2"
@@ -1222,6 +1252,8 @@ module Aws::CodePipeline
1222
1252
  # resp.pipeline.stages[0].actions[0].role_arn #=> String
1223
1253
  # resp.pipeline.stages[0].actions[0].region #=> String
1224
1254
  # resp.pipeline.stages[0].actions[0].namespace #=> String
1255
+ # resp.pipeline.stages[0].actions[0].timeout_in_minutes #=> Integer
1256
+ # resp.pipeline.stages[0].on_failure.result #=> String, one of "ROLLBACK"
1225
1257
  # resp.pipeline.version #=> Integer
1226
1258
  # resp.pipeline.execution_mode #=> String, one of "QUEUED", "SUPERSEDED", "PARALLEL"
1227
1259
  # resp.pipeline.pipeline_type #=> String, one of "V1", "V2"
@@ -1310,9 +1342,11 @@ module Aws::CodePipeline
1310
1342
  # resp.pipeline_execution.variables #=> Array
1311
1343
  # resp.pipeline_execution.variables[0].name #=> String
1312
1344
  # resp.pipeline_execution.variables[0].resolved_value #=> String
1313
- # 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"
1314
1346
  # resp.pipeline_execution.trigger.trigger_detail #=> String
1315
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
1316
1350
  #
1317
1351
  # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineExecution AWS API Documentation
1318
1352
  #
@@ -1357,9 +1391,11 @@ module Aws::CodePipeline
1357
1391
  # resp.stage_states[0].stage_name #=> String
1358
1392
  # resp.stage_states[0].inbound_execution.pipeline_execution_id #=> String
1359
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"
1360
1395
  # resp.stage_states[0].inbound_executions #=> Array
1361
1396
  # resp.stage_states[0].inbound_executions[0].pipeline_execution_id #=> String
1362
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"
1363
1399
  # resp.stage_states[0].inbound_transition_state.enabled #=> Boolean
1364
1400
  # resp.stage_states[0].inbound_transition_state.last_changed_by #=> String
1365
1401
  # resp.stage_states[0].inbound_transition_state.last_changed_at #=> Time
@@ -1384,6 +1420,7 @@ module Aws::CodePipeline
1384
1420
  # resp.stage_states[0].action_states[0].revision_url #=> String
1385
1421
  # resp.stage_states[0].latest_execution.pipeline_execution_id #=> String
1386
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"
1387
1424
  # resp.created #=> Time
1388
1425
  # resp.updated #=> Time
1389
1426
  #
@@ -1640,6 +1677,9 @@ module Aws::CodePipeline
1640
1677
  # value. Pipeline history is limited to the most recent 12 months, based
1641
1678
  # on pipeline execution start times. Default value is 100.
1642
1679
  #
1680
+ # @option params [Types::PipelineExecutionFilter] :filter
1681
+ # The pipeline execution to filter on.
1682
+ #
1643
1683
  # @option params [String] :next_token
1644
1684
  # The token that was returned from the previous `ListPipelineExecutions`
1645
1685
  # call, which can be used to return the next set of pipeline executions
@@ -1657,6 +1697,11 @@ module Aws::CodePipeline
1657
1697
  # resp = client.list_pipeline_executions({
1658
1698
  # pipeline_name: "PipelineName", # required
1659
1699
  # max_results: 1,
1700
+ # filter: {
1701
+ # succeeded_in_stage: {
1702
+ # stage_name: "StageName",
1703
+ # },
1704
+ # },
1660
1705
  # next_token: "NextToken",
1661
1706
  # })
1662
1707
  #
@@ -1665,6 +1710,7 @@ module Aws::CodePipeline
1665
1710
  # resp.pipeline_execution_summaries #=> Array
1666
1711
  # resp.pipeline_execution_summaries[0].pipeline_execution_id #=> String
1667
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
1668
1714
  # resp.pipeline_execution_summaries[0].start_time #=> Time
1669
1715
  # resp.pipeline_execution_summaries[0].last_update_time #=> Time
1670
1716
  # resp.pipeline_execution_summaries[0].source_revisions #=> Array
@@ -1672,10 +1718,12 @@ module Aws::CodePipeline
1672
1718
  # resp.pipeline_execution_summaries[0].source_revisions[0].revision_id #=> String
1673
1719
  # resp.pipeline_execution_summaries[0].source_revisions[0].revision_summary #=> String
1674
1720
  # resp.pipeline_execution_summaries[0].source_revisions[0].revision_url #=> String
1675
- # 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"
1676
1722
  # resp.pipeline_execution_summaries[0].trigger.trigger_detail #=> String
1677
1723
  # resp.pipeline_execution_summaries[0].stop_trigger.reason #=> String
1678
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
1679
1727
  # resp.next_token #=> String
1680
1728
  #
1681
1729
  # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelineExecutions AWS API Documentation
@@ -2410,6 +2458,42 @@ module Aws::CodePipeline
2410
2458
  req.send_request(options)
2411
2459
  end
2412
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
+
2413
2497
  # Starts the specified pipeline. Specifically, it begins processing the
2414
2498
  # latest commit to the source location specified as part of the
2415
2499
  # pipeline.
@@ -2729,8 +2813,12 @@ module Aws::CodePipeline
2729
2813
  # role_arn: "RoleArn",
2730
2814
  # region: "AWSRegionName",
2731
2815
  # namespace: "ActionNamespace",
2816
+ # timeout_in_minutes: 1,
2732
2817
  # },
2733
2818
  # ],
2819
+ # on_failure: {
2820
+ # result: "ROLLBACK", # accepts ROLLBACK
2821
+ # },
2734
2822
  # },
2735
2823
  # ],
2736
2824
  # version: 1,
@@ -2817,6 +2905,8 @@ module Aws::CodePipeline
2817
2905
  # resp.pipeline.stages[0].actions[0].role_arn #=> String
2818
2906
  # resp.pipeline.stages[0].actions[0].region #=> String
2819
2907
  # resp.pipeline.stages[0].actions[0].namespace #=> String
2908
+ # resp.pipeline.stages[0].actions[0].timeout_in_minutes #=> Integer
2909
+ # resp.pipeline.stages[0].on_failure.result #=> String, one of "ROLLBACK"
2820
2910
  # resp.pipeline.version #=> Integer
2821
2911
  # resp.pipeline.execution_mode #=> String, one of "QUEUED", "SUPERSEDED", "PARALLEL"
2822
2912
  # resp.pipeline.pipeline_type #=> String, one of "V1", "V2"
@@ -2874,7 +2964,7 @@ module Aws::CodePipeline
2874
2964
  params: params,
2875
2965
  config: config)
2876
2966
  context[:gem_name] = 'aws-sdk-codepipeline'
2877
- context[:gem_version] = '1.69.0'
2967
+ context[:gem_version] = '1.71.0'
2878
2968
  Seahorse::Client::Request.new(handlers, context)
2879
2969
  end
2880
2970
 
@@ -51,6 +51,7 @@ module Aws::CodePipeline
51
51
  ActionRunOrder = Shapes::IntegerShape.new(name: 'ActionRunOrder')
52
52
  ActionState = Shapes::StructureShape.new(name: 'ActionState')
53
53
  ActionStateList = Shapes::ListShape.new(name: 'ActionStateList')
54
+ ActionTimeout = Shapes::IntegerShape.new(name: 'ActionTimeout')
54
55
  ActionType = Shapes::StructureShape.new(name: 'ActionType')
55
56
  ActionTypeAlreadyExistsException = Shapes::StructureShape.new(name: 'ActionTypeAlreadyExistsException')
56
57
  ActionTypeArtifactDetails = Shapes::StructureShape.new(name: 'ActionTypeArtifactDetails')
@@ -126,10 +127,12 @@ module Aws::CodePipeline
126
127
  ExecutionMode = Shapes::StringShape.new(name: 'ExecutionMode')
127
128
  ExecutionSummary = Shapes::StringShape.new(name: 'ExecutionSummary')
128
129
  ExecutionTrigger = Shapes::StructureShape.new(name: 'ExecutionTrigger')
130
+ ExecutionType = Shapes::StringShape.new(name: 'ExecutionType')
129
131
  ExecutorConfiguration = Shapes::StructureShape.new(name: 'ExecutorConfiguration')
130
132
  ExecutorType = Shapes::StringShape.new(name: 'ExecutorType')
131
133
  ExternalExecutionId = Shapes::StringShape.new(name: 'ExternalExecutionId')
132
134
  ExternalExecutionSummary = Shapes::StringShape.new(name: 'ExternalExecutionSummary')
135
+ FailureConditions = Shapes::StructureShape.new(name: 'FailureConditions')
133
136
  FailureDetails = Shapes::StructureShape.new(name: 'FailureDetails')
134
137
  FailureType = Shapes::StringShape.new(name: 'FailureType')
135
138
  GetActionTypeInput = Shapes::StructureShape.new(name: 'GetActionTypeInput')
@@ -229,9 +232,11 @@ module Aws::CodePipeline
229
232
  PipelineContext = Shapes::StructureShape.new(name: 'PipelineContext')
230
233
  PipelineDeclaration = Shapes::StructureShape.new(name: 'PipelineDeclaration')
231
234
  PipelineExecution = Shapes::StructureShape.new(name: 'PipelineExecution')
235
+ PipelineExecutionFilter = Shapes::StructureShape.new(name: 'PipelineExecutionFilter')
232
236
  PipelineExecutionId = Shapes::StringShape.new(name: 'PipelineExecutionId')
233
237
  PipelineExecutionNotFoundException = Shapes::StructureShape.new(name: 'PipelineExecutionNotFoundException')
234
238
  PipelineExecutionNotStoppableException = Shapes::StructureShape.new(name: 'PipelineExecutionNotStoppableException')
239
+ PipelineExecutionOutdatedException = Shapes::StructureShape.new(name: 'PipelineExecutionOutdatedException')
235
240
  PipelineExecutionStatus = Shapes::StringShape.new(name: 'PipelineExecutionStatus')
236
241
  PipelineExecutionStatusSummary = Shapes::StringShape.new(name: 'PipelineExecutionStatusSummary')
237
242
  PipelineExecutionSummary = Shapes::StructureShape.new(name: 'PipelineExecutionSummary')
@@ -241,6 +246,7 @@ module Aws::CodePipeline
241
246
  PipelineName = Shapes::StringShape.new(name: 'PipelineName')
242
247
  PipelineNameInUseException = Shapes::StructureShape.new(name: 'PipelineNameInUseException')
243
248
  PipelineNotFoundException = Shapes::StructureShape.new(name: 'PipelineNotFoundException')
249
+ PipelineRollbackMetadata = Shapes::StructureShape.new(name: 'PipelineRollbackMetadata')
244
250
  PipelineStageDeclarationList = Shapes::ListShape.new(name: 'PipelineStageDeclarationList')
245
251
  PipelineSummary = Shapes::StructureShape.new(name: 'PipelineSummary')
246
252
  PipelineTriggerDeclaration = Shapes::StructureShape.new(name: 'PipelineTriggerDeclaration')
@@ -283,12 +289,15 @@ module Aws::CodePipeline
283
289
  ResolvedPipelineVariableList = Shapes::ListShape.new(name: 'ResolvedPipelineVariableList')
284
290
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
285
291
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
292
+ Result = Shapes::StringShape.new(name: 'Result')
286
293
  RetryStageExecutionInput = Shapes::StructureShape.new(name: 'RetryStageExecutionInput')
287
294
  RetryStageExecutionOutput = Shapes::StructureShape.new(name: 'RetryStageExecutionOutput')
288
295
  Revision = Shapes::StringShape.new(name: 'Revision')
289
296
  RevisionChangeIdentifier = Shapes::StringShape.new(name: 'RevisionChangeIdentifier')
290
297
  RevisionSummary = Shapes::StringShape.new(name: 'RevisionSummary')
291
298
  RoleArn = Shapes::StringShape.new(name: 'RoleArn')
299
+ RollbackStageInput = Shapes::StructureShape.new(name: 'RollbackStageInput')
300
+ RollbackStageOutput = Shapes::StructureShape.new(name: 'RollbackStageOutput')
292
301
  S3ArtifactLocation = Shapes::StructureShape.new(name: 'S3ArtifactLocation')
293
302
  S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
294
303
  S3BucketName = Shapes::StringShape.new(name: 'S3BucketName')
@@ -325,6 +334,7 @@ module Aws::CodePipeline
325
334
  StopPipelineExecutionOutput = Shapes::StructureShape.new(name: 'StopPipelineExecutionOutput')
326
335
  StopPipelineExecutionReason = Shapes::StringShape.new(name: 'StopPipelineExecutionReason')
327
336
  String = Shapes::StringShape.new(name: 'String')
337
+ SucceededInStageFilter = Shapes::StructureShape.new(name: 'SucceededInStageFilter')
328
338
  Tag = Shapes::StructureShape.new(name: 'Tag')
329
339
  TagKey = Shapes::StringShape.new(name: 'TagKey')
330
340
  TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
@@ -343,6 +353,7 @@ module Aws::CodePipeline
343
353
  TransitionState = Shapes::StructureShape.new(name: 'TransitionState')
344
354
  TriggerDetail = Shapes::StringShape.new(name: 'TriggerDetail')
345
355
  TriggerType = Shapes::StringShape.new(name: 'TriggerType')
356
+ UnableToRollbackStageException = Shapes::StructureShape.new(name: 'UnableToRollbackStageException')
346
357
  UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
347
358
  UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
348
359
  UpdateActionTypeInput = Shapes::StructureShape.new(name: 'UpdateActionTypeInput')
@@ -418,6 +429,7 @@ module Aws::CodePipeline
418
429
  ActionDeclaration.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "roleArn"))
419
430
  ActionDeclaration.add_member(:region, Shapes::ShapeRef.new(shape: AWSRegionName, location_name: "region"))
420
431
  ActionDeclaration.add_member(:namespace, Shapes::ShapeRef.new(shape: ActionNamespace, location_name: "namespace"))
432
+ ActionDeclaration.add_member(:timeout_in_minutes, Shapes::ShapeRef.new(shape: ActionTimeout, location_name: "timeoutInMinutes"))
421
433
  ActionDeclaration.struct_class = Types::ActionDeclaration
422
434
 
423
435
  ActionExecution.add_member(:action_execution_id, Shapes::ShapeRef.new(shape: ActionExecutionId, location_name: "actionExecutionId"))
@@ -698,6 +710,9 @@ module Aws::CodePipeline
698
710
  ExecutorConfiguration.add_member(:job_worker_executor_configuration, Shapes::ShapeRef.new(shape: JobWorkerExecutorConfiguration, location_name: "jobWorkerExecutorConfiguration"))
699
711
  ExecutorConfiguration.struct_class = Types::ExecutorConfiguration
700
712
 
713
+ FailureConditions.add_member(:result, Shapes::ShapeRef.new(shape: Result, location_name: "result"))
714
+ FailureConditions.struct_class = Types::FailureConditions
715
+
701
716
  FailureDetails.add_member(:type, Shapes::ShapeRef.new(shape: FailureType, required: true, location_name: "type"))
702
717
  FailureDetails.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "message"))
703
718
  FailureDetails.add_member(:external_execution_id, Shapes::ShapeRef.new(shape: ExecutionId, location_name: "externalExecutionId"))
@@ -883,6 +898,7 @@ module Aws::CodePipeline
883
898
 
884
899
  ListPipelineExecutionsInput.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: PipelineName, required: true, location_name: "pipelineName"))
885
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"))
886
902
  ListPipelineExecutionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
887
903
  ListPipelineExecutionsInput.struct_class = Types::ListPipelineExecutionsInput
888
904
 
@@ -965,21 +981,32 @@ module Aws::CodePipeline
965
981
  PipelineExecution.add_member(:variables, Shapes::ShapeRef.new(shape: ResolvedPipelineVariableList, location_name: "variables"))
966
982
  PipelineExecution.add_member(:trigger, Shapes::ShapeRef.new(shape: ExecutionTrigger, location_name: "trigger"))
967
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"))
968
986
  PipelineExecution.struct_class = Types::PipelineExecution
969
987
 
988
+ PipelineExecutionFilter.add_member(:succeeded_in_stage, Shapes::ShapeRef.new(shape: SucceededInStageFilter, location_name: "succeededInStage"))
989
+ PipelineExecutionFilter.struct_class = Types::PipelineExecutionFilter
990
+
970
991
  PipelineExecutionNotFoundException.struct_class = Types::PipelineExecutionNotFoundException
971
992
 
972
993
  PipelineExecutionNotStoppableException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "message"))
973
994
  PipelineExecutionNotStoppableException.struct_class = Types::PipelineExecutionNotStoppableException
974
995
 
996
+ PipelineExecutionOutdatedException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "message"))
997
+ PipelineExecutionOutdatedException.struct_class = Types::PipelineExecutionOutdatedException
998
+
975
999
  PipelineExecutionSummary.add_member(:pipeline_execution_id, Shapes::ShapeRef.new(shape: PipelineExecutionId, location_name: "pipelineExecutionId"))
976
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"))
977
1002
  PipelineExecutionSummary.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "startTime"))
978
1003
  PipelineExecutionSummary.add_member(:last_update_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdateTime"))
979
1004
  PipelineExecutionSummary.add_member(:source_revisions, Shapes::ShapeRef.new(shape: SourceRevisionList, location_name: "sourceRevisions"))
980
1005
  PipelineExecutionSummary.add_member(:trigger, Shapes::ShapeRef.new(shape: ExecutionTrigger, location_name: "trigger"))
981
1006
  PipelineExecutionSummary.add_member(:stop_trigger, Shapes::ShapeRef.new(shape: StopExecutionTrigger, location_name: "stopTrigger"))
982
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"))
983
1010
  PipelineExecutionSummary.struct_class = Types::PipelineExecutionSummary
984
1011
 
985
1012
  PipelineExecutionSummaryList.member = Shapes::ShapeRef.new(shape: PipelineExecutionSummary)
@@ -996,6 +1023,9 @@ module Aws::CodePipeline
996
1023
 
997
1024
  PipelineNotFoundException.struct_class = Types::PipelineNotFoundException
998
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
+
999
1029
  PipelineStageDeclarationList.member = Shapes::ShapeRef.new(shape: StageDeclaration)
1000
1030
 
1001
1031
  PipelineSummary.add_member(:name, Shapes::ShapeRef.new(shape: PipelineName, location_name: "name"))
@@ -1127,6 +1157,14 @@ module Aws::CodePipeline
1127
1157
  RetryStageExecutionOutput.add_member(:pipeline_execution_id, Shapes::ShapeRef.new(shape: PipelineExecutionId, location_name: "pipelineExecutionId"))
1128
1158
  RetryStageExecutionOutput.struct_class = Types::RetryStageExecutionOutput
1129
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
+
1130
1168
  S3ArtifactLocation.add_member(:bucket_name, Shapes::ShapeRef.new(shape: S3BucketName, required: true, location_name: "bucketName"))
1131
1169
  S3ArtifactLocation.add_member(:object_key, Shapes::ShapeRef.new(shape: S3ObjectKey, required: true, location_name: "objectKey"))
1132
1170
  S3ArtifactLocation.struct_class = Types::S3ArtifactLocation
@@ -1160,10 +1198,12 @@ module Aws::CodePipeline
1160
1198
  StageDeclaration.add_member(:name, Shapes::ShapeRef.new(shape: StageName, required: true, location_name: "name"))
1161
1199
  StageDeclaration.add_member(:blockers, Shapes::ShapeRef.new(shape: StageBlockerDeclarationList, location_name: "blockers"))
1162
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"))
1163
1202
  StageDeclaration.struct_class = Types::StageDeclaration
1164
1203
 
1165
1204
  StageExecution.add_member(:pipeline_execution_id, Shapes::ShapeRef.new(shape: PipelineExecutionId, required: true, location_name: "pipelineExecutionId"))
1166
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"))
1167
1207
  StageExecution.struct_class = Types::StageExecution
1168
1208
 
1169
1209
  StageExecutionList.member = Shapes::ShapeRef.new(shape: StageExecution)
@@ -1203,6 +1243,9 @@ module Aws::CodePipeline
1203
1243
  StopPipelineExecutionOutput.add_member(:pipeline_execution_id, Shapes::ShapeRef.new(shape: PipelineExecutionId, location_name: "pipelineExecutionId"))
1204
1244
  StopPipelineExecutionOutput.struct_class = Types::StopPipelineExecutionOutput
1205
1245
 
1246
+ SucceededInStageFilter.add_member(:stage_name, Shapes::ShapeRef.new(shape: StageName, location_name: "stageName"))
1247
+ SucceededInStageFilter.struct_class = Types::SucceededInStageFilter
1248
+
1206
1249
  Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "key"))
1207
1250
  Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "value"))
1208
1251
  Tag.struct_class = Types::Tag
@@ -1247,6 +1290,9 @@ module Aws::CodePipeline
1247
1290
  TransitionState.add_member(:disabled_reason, Shapes::ShapeRef.new(shape: DisabledReason, location_name: "disabledReason"))
1248
1291
  TransitionState.struct_class = Types::TransitionState
1249
1292
 
1293
+ UnableToRollbackStageException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
1294
+ UnableToRollbackStageException.struct_class = Types::UnableToRollbackStageException
1295
+
1250
1296
  UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "resourceArn"))
1251
1297
  UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "tagKeys"))
1252
1298
  UntagResourceInput.struct_class = Types::UntagResourceInput
@@ -1297,6 +1343,7 @@ module Aws::CodePipeline
1297
1343
  "endpointPrefix" => "codepipeline",
1298
1344
  "jsonVersion" => "1.1",
1299
1345
  "protocol" => "json",
1346
+ "protocols" => ["json"],
1300
1347
  "serviceAbbreviation" => "CodePipeline",
1301
1348
  "serviceFullName" => "AWS CodePipeline",
1302
1349
  "serviceId" => "CodePipeline",
@@ -1718,6 +1765,21 @@ module Aws::CodePipeline
1718
1765
  o.errors << Shapes::ShapeRef.new(shape: NotLatestPipelineExecutionException)
1719
1766
  end)
1720
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
+
1721
1783
  api.add_operation(:start_pipeline_execution, Seahorse::Model::Operation.new.tap do |o|
1722
1784
  o.name = "StartPipelineExecution"
1723
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
@@ -276,6 +276,17 @@ module Aws::CodePipeline
276
276
  # produced as output by this action fall under this namespace.
277
277
  # @return [String]
278
278
  #
279
+ # @!attribute [rw] timeout_in_minutes
280
+ # A timeout duration in minutes that can be applied against the
281
+ # ActionType’s default timeout value specified in [Quotas for
282
+ # CodePipeline ][1]. This attribute is available only to the manual
283
+ # approval ActionType.
284
+ #
285
+ #
286
+ #
287
+ # [1]: https://docs.aws.amazon.com/codepipeline/latest/userguide/limits.html
288
+ # @return [Integer]
289
+ #
279
290
  # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ActionDeclaration AWS API Documentation
280
291
  #
281
292
  class ActionDeclaration < Struct.new(
@@ -287,7 +298,8 @@ module Aws::CodePipeline
287
298
  :input_artifacts,
288
299
  :role_arn,
289
300
  :region,
290
- :namespace)
301
+ :namespace,
302
+ :timeout_in_minutes)
291
303
  SENSITIVE = []
292
304
  include Aws::Structure
293
305
  end
@@ -1741,6 +1753,22 @@ module Aws::CodePipeline
1741
1753
  include Aws::Structure
1742
1754
  end
1743
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
+
1744
1772
  # Represents information about failure details.
1745
1773
  #
1746
1774
  # @!attribute [rw] type
@@ -2633,6 +2661,10 @@ module Aws::CodePipeline
2633
2661
  # 100.
2634
2662
  # @return [Integer]
2635
2663
  #
2664
+ # @!attribute [rw] filter
2665
+ # The pipeline execution to filter on.
2666
+ # @return [Types::PipelineExecutionFilter]
2667
+ #
2636
2668
  # @!attribute [rw] next_token
2637
2669
  # The token that was returned from the previous
2638
2670
  # `ListPipelineExecutions` call, which can be used to return the next
@@ -2644,6 +2676,7 @@ module Aws::CodePipeline
2644
2676
  class ListPipelineExecutionsInput < Struct.new(
2645
2677
  :pipeline_name,
2646
2678
  :max_results,
2679
+ :filter,
2647
2680
  :next_token)
2648
2681
  SENSITIVE = []
2649
2682
  include Aws::Structure
@@ -3117,6 +3150,14 @@ module Aws::CodePipeline
3117
3150
  # The default mode is SUPERSEDED.
3118
3151
  # @return [String]
3119
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
+ #
3120
3161
  # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineExecution AWS API Documentation
3121
3162
  #
3122
3163
  class PipelineExecution < Struct.new(
@@ -3128,7 +3169,24 @@ module Aws::CodePipeline
3128
3169
  :artifact_revisions,
3129
3170
  :variables,
3130
3171
  :trigger,
3131
- :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)
3132
3190
  SENSITIVE = []
3133
3191
  include Aws::Structure
3134
3192
  end
@@ -3154,6 +3212,20 @@ module Aws::CodePipeline
3154
3212
  include Aws::Structure
3155
3213
  end
3156
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
+
3157
3229
  # Summary information about a pipeline execution.
3158
3230
  #
3159
3231
  # @!attribute [rw] pipeline_execution_id
@@ -3188,6 +3260,10 @@ module Aws::CodePipeline
3188
3260
  # [2]: https://docs.aws.amazon.com/codepipeline/latest/userguide/concepts.html#concepts-superseded
3189
3261
  # @return [String]
3190
3262
  #
3263
+ # @!attribute [rw] status_summary
3264
+ # Status summary for the pipeline.
3265
+ # @return [String]
3266
+ #
3191
3267
  # @!attribute [rw] start_time
3192
3268
  # The date and time when the pipeline execution began, in timestamp
3193
3269
  # format.
@@ -3217,17 +3293,28 @@ module Aws::CodePipeline
3217
3293
  # The default mode is SUPERSEDED.
3218
3294
  # @return [String]
3219
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
+ #
3220
3304
  # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineExecutionSummary AWS API Documentation
3221
3305
  #
3222
3306
  class PipelineExecutionSummary < Struct.new(
3223
3307
  :pipeline_execution_id,
3224
3308
  :status,
3309
+ :status_summary,
3225
3310
  :start_time,
3226
3311
  :last_update_time,
3227
3312
  :source_revisions,
3228
3313
  :trigger,
3229
3314
  :stop_trigger,
3230
- :execution_mode)
3315
+ :execution_mode,
3316
+ :execution_type,
3317
+ :rollback_metadata)
3231
3318
  SENSITIVE = []
3232
3319
  include Aws::Structure
3233
3320
  end
@@ -3284,6 +3371,20 @@ module Aws::CodePipeline
3284
3371
  #
3285
3372
  class PipelineNotFoundException < Aws::EmptyStructure; end
3286
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
+
3287
3388
  # Returns a summary of a pipeline.
3288
3389
  #
3289
3390
  # @!attribute [rw] name
@@ -3880,6 +3981,41 @@ module Aws::CodePipeline
3880
3981
  include Aws::Structure
3881
3982
  end
3882
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
+
3883
4019
  # The location of the S3 bucket that contains a revision.
3884
4020
  #
3885
4021
  # @!attribute [rw] bucket_name
@@ -4015,12 +4151,20 @@ module Aws::CodePipeline
4015
4151
  # The actions included in a stage.
4016
4152
  # @return [Array<Types::ActionDeclaration>]
4017
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
+ #
4018
4161
  # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StageDeclaration AWS API Documentation
4019
4162
  #
4020
4163
  class StageDeclaration < Struct.new(
4021
4164
  :name,
4022
4165
  :blockers,
4023
- :actions)
4166
+ :actions,
4167
+ :on_failure)
4024
4168
  SENSITIVE = []
4025
4169
  include Aws::Structure
4026
4170
  end
@@ -4041,11 +4185,17 @@ module Aws::CodePipeline
4041
4185
  # </note>
4042
4186
  # @return [String]
4043
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
+ #
4044
4193
  # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StageExecution AWS API Documentation
4045
4194
  #
4046
4195
  class StageExecution < Struct.new(
4047
4196
  :pipeline_execution_id,
4048
- :status)
4197
+ :status,
4198
+ :type)
4049
4199
  SENSITIVE = []
4050
4200
  include Aws::Structure
4051
4201
  end
@@ -4220,6 +4370,22 @@ module Aws::CodePipeline
4220
4370
  include Aws::Structure
4221
4371
  end
4222
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
+
4223
4389
  # A tag is a key-value pair that is used to manage the resource.
4224
4390
  #
4225
4391
  # @!attribute [rw] key
@@ -4423,6 +4589,22 @@ module Aws::CodePipeline
4423
4589
  include Aws::Structure
4424
4590
  end
4425
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
+
4426
4608
  # @!attribute [rw] resource_arn
4427
4609
  # The Amazon Resource Name (ARN) of the resource to remove tags from.
4428
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.69.0'
55
+ GEM_VERSION = '1.71.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -198,9 +198,13 @@ module Aws
198
198
  ]?,
199
199
  role_arn: ::String?,
200
200
  region: ::String?,
201
- namespace: ::String?
201
+ namespace: ::String?,
202
+ timeout_in_minutes: ::Integer?
202
203
  },
203
- ]
204
+ ],
205
+ on_failure: {
206
+ result: ("ROLLBACK")?
207
+ }?
204
208
  },
205
209
  ],
206
210
  version: ::Integer?,
@@ -422,6 +426,11 @@ module Aws
422
426
  def list_pipeline_executions: (
423
427
  pipeline_name: ::String,
424
428
  ?max_results: ::Integer,
429
+ ?filter: {
430
+ succeeded_in_stage: {
431
+ stage_name: ::String?
432
+ }?
433
+ },
425
434
  ?next_token: ::String
426
435
  ) -> _ListPipelineExecutionsResponseSuccess
427
436
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListPipelineExecutionsResponseSuccess
@@ -645,6 +654,18 @@ module Aws
645
654
  ) -> _RetryStageExecutionResponseSuccess
646
655
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RetryStageExecutionResponseSuccess
647
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
+
648
669
  interface _StartPipelineExecutionResponseSuccess
649
670
  include ::Seahorse::Client::_ResponseSuccess[Types::StartPipelineExecutionOutput]
650
671
  def pipeline_execution_id: () -> ::String
@@ -819,9 +840,13 @@ module Aws
819
840
  ]?,
820
841
  role_arn: ::String?,
821
842
  region: ::String?,
822
- namespace: ::String?
843
+ namespace: ::String?,
844
+ timeout_in_minutes: ::Integer?
823
845
  },
824
- ]
846
+ ],
847
+ on_failure: {
848
+ result: ("ROLLBACK")?
849
+ }?
825
850
  },
826
851
  ],
827
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
@@ -70,6 +70,7 @@ module Aws::CodePipeline
70
70
  attr_accessor role_arn: ::String
71
71
  attr_accessor region: ::String
72
72
  attr_accessor namespace: ::String
73
+ attr_accessor timeout_in_minutes: ::Integer
73
74
  SENSITIVE: []
74
75
  end
75
76
 
@@ -419,7 +420,7 @@ module Aws::CodePipeline
419
420
  end
420
421
 
421
422
  class ExecutionTrigger
422
- 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")
423
424
  attr_accessor trigger_detail: ::String
424
425
  SENSITIVE: []
425
426
  end
@@ -430,6 +431,11 @@ module Aws::CodePipeline
430
431
  SENSITIVE: []
431
432
  end
432
433
 
434
+ class FailureConditions
435
+ attr_accessor result: ("ROLLBACK")
436
+ SENSITIVE: []
437
+ end
438
+
433
439
  class FailureDetails
434
440
  attr_accessor type: ("JobFailed" | "ConfigurationError" | "PermissionError" | "RevisionOutOfSync" | "RevisionUnavailable" | "SystemUnavailable")
435
441
  attr_accessor message: ::String
@@ -678,6 +684,7 @@ module Aws::CodePipeline
678
684
  class ListPipelineExecutionsInput
679
685
  attr_accessor pipeline_name: ::String
680
686
  attr_accessor max_results: ::Integer
687
+ attr_accessor filter: Types::PipelineExecutionFilter
681
688
  attr_accessor next_token: ::String
682
689
  SENSITIVE: []
683
690
  end
@@ -782,6 +789,13 @@ module Aws::CodePipeline
782
789
  attr_accessor variables: ::Array[Types::ResolvedPipelineVariable]
783
790
  attr_accessor trigger: Types::ExecutionTrigger
784
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
785
799
  SENSITIVE: []
786
800
  end
787
801
 
@@ -793,15 +807,23 @@ module Aws::CodePipeline
793
807
  SENSITIVE: []
794
808
  end
795
809
 
810
+ class PipelineExecutionOutdatedException
811
+ attr_accessor message: ::String
812
+ SENSITIVE: []
813
+ end
814
+
796
815
  class PipelineExecutionSummary
797
816
  attr_accessor pipeline_execution_id: ::String
798
817
  attr_accessor status: ("Cancelled" | "InProgress" | "Stopped" | "Stopping" | "Succeeded" | "Superseded" | "Failed")
818
+ attr_accessor status_summary: ::String
799
819
  attr_accessor start_time: ::Time
800
820
  attr_accessor last_update_time: ::Time
801
821
  attr_accessor source_revisions: ::Array[Types::SourceRevision]
802
822
  attr_accessor trigger: Types::ExecutionTrigger
803
823
  attr_accessor stop_trigger: Types::StopExecutionTrigger
804
824
  attr_accessor execution_mode: ("QUEUED" | "SUPERSEDED" | "PARALLEL")
825
+ attr_accessor execution_type: ("STANDARD" | "ROLLBACK")
826
+ attr_accessor rollback_metadata: Types::PipelineRollbackMetadata
805
827
  SENSITIVE: []
806
828
  end
807
829
 
@@ -819,6 +841,11 @@ module Aws::CodePipeline
819
841
  class PipelineNotFoundException < Aws::EmptyStructure
820
842
  end
821
843
 
844
+ class PipelineRollbackMetadata
845
+ attr_accessor rollback_target_pipeline_execution_id: ::String
846
+ SENSITIVE: []
847
+ end
848
+
822
849
  class PipelineSummary
823
850
  attr_accessor name: ::String
824
851
  attr_accessor version: ::Integer
@@ -979,6 +1006,18 @@ module Aws::CodePipeline
979
1006
  SENSITIVE: []
980
1007
  end
981
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
+
982
1021
  class S3ArtifactLocation
983
1022
  attr_accessor bucket_name: ::String
984
1023
  attr_accessor object_key: ::String
@@ -1015,12 +1054,14 @@ module Aws::CodePipeline
1015
1054
  attr_accessor name: ::String
1016
1055
  attr_accessor blockers: ::Array[Types::BlockerDeclaration]
1017
1056
  attr_accessor actions: ::Array[Types::ActionDeclaration]
1057
+ attr_accessor on_failure: Types::FailureConditions
1018
1058
  SENSITIVE: []
1019
1059
  end
1020
1060
 
1021
1061
  class StageExecution
1022
1062
  attr_accessor pipeline_execution_id: ::String
1023
1063
  attr_accessor status: ("Cancelled" | "InProgress" | "Failed" | "Stopped" | "Stopping" | "Succeeded")
1064
+ attr_accessor type: ("STANDARD" | "ROLLBACK")
1024
1065
  SENSITIVE: []
1025
1066
  end
1026
1067
 
@@ -1071,6 +1112,11 @@ module Aws::CodePipeline
1071
1112
  SENSITIVE: []
1072
1113
  end
1073
1114
 
1115
+ class SucceededInStageFilter
1116
+ attr_accessor stage_name: ::String
1117
+ SENSITIVE: []
1118
+ end
1119
+
1074
1120
  class Tag
1075
1121
  attr_accessor key: ::String
1076
1122
  attr_accessor value: ::String
@@ -1124,6 +1170,11 @@ module Aws::CodePipeline
1124
1170
  SENSITIVE: []
1125
1171
  end
1126
1172
 
1173
+ class UnableToRollbackStageException
1174
+ attr_accessor message: ::String
1175
+ SENSITIVE: []
1176
+ end
1177
+
1127
1178
  class UntagResourceInput
1128
1179
  attr_accessor resource_arn: ::String
1129
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.69.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-02-08 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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.191.0
22
+ version: 3.193.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.191.0
32
+ version: 3.193.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement