aws-sdk-codepipeline 1.28.0 → 1.33.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
- SHA1:
3
- metadata.gz: 3943c415354126cf9a20ce34da1f3182a00b1390
4
- data.tar.gz: a9239f034880ab81eae6669e0312c92756f40f91
2
+ SHA256:
3
+ metadata.gz: 164f95a5f7f7ce572ed621cbf03c422899b6032ed0689b1d06727ffb7ed4e9d6
4
+ data.tar.gz: 9fb48718b9dc803453660dffbff73980da5bc5d9cf2ec9bd97b7cb79585b1046
5
5
  SHA512:
6
- metadata.gz: dbc9b7806b907c7e265bb4f87788d943eb9b8fc9c1883cb3ec89d37b8515d6388eacb6ba9d36bddefaab9ae1b0c8ecc9cd96c7a7dcd6114868163c53432966e9
7
- data.tar.gz: fe49c4c4d3e4e8c8f0aeacce658b329d20bbf72093c4d742e5a41ee9978f37a124c67fe4498dd889ad2eb42b53a080b4120f26b65461f0acc4f75b10d2caa2d4
6
+ metadata.gz: 3c95569b6b2a2f49b82fbfcc04148c3b4484b6a19503518b684a0873af43e286d7883024b113e5851b9462bb002ea398d694732b9ffbd943e353c205b7b17c9d
7
+ data.tar.gz: f2405a99b46b9ce8be089707d2dc0f754a9fab8f9f0a3fef0967fd1ad30f6d97ac49b7c1374f8bd160d3a141ae0ade2cd010eea537d4203fa165713e00419933
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,17 +26,20 @@ require_relative 'aws-sdk-codepipeline/customizations'
24
26
  # methods each accept a hash of request parameters and return a response
25
27
  # structure.
26
28
  #
29
+ # code_pipeline = Aws::CodePipeline::Client.new
30
+ # resp = code_pipeline.acknowledge_job(params)
31
+ #
27
32
  # See {Client} for more information.
28
33
  #
29
34
  # # Errors
30
35
  #
31
- # Errors returned from AWS CodePipeline all
32
- # extend {Errors::ServiceError}.
36
+ # Errors returned from AWS CodePipeline are defined in the
37
+ # {Errors} module and all extend {Errors::ServiceError}.
33
38
  #
34
39
  # begin
35
40
  # # do stuff
36
41
  # rescue Aws::CodePipeline::Errors::ServiceError
37
- # # rescues all service API errors
42
+ # # rescues all AWS CodePipeline API errors
38
43
  # end
39
44
  #
40
45
  # See {Errors} for more information.
@@ -42,6 +47,6 @@ require_relative 'aws-sdk-codepipeline/customizations'
42
47
  # @service
43
48
  module Aws::CodePipeline
44
49
 
45
- GEM_VERSION = '1.28.0'
50
+ GEM_VERSION = '1.33.0'
46
51
 
47
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,12 +26,25 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
32
 
30
33
  Aws::Plugins::GlobalConfiguration.add_identifier(:codepipeline)
31
34
 
32
35
  module Aws::CodePipeline
36
+ # An API client for CodePipeline. To construct a client, you need to configure a `:region` and `:credentials`.
37
+ #
38
+ # client = Aws::CodePipeline::Client.new(
39
+ # region: region_name,
40
+ # credentials: credentials,
41
+ # # ...
42
+ # )
43
+ #
44
+ # For details on configuring region and credentials see
45
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
46
+ #
47
+ # See {#initialize} for a full list of supported configuration options.
33
48
  class Client < Seahorse::Client::Base
34
49
 
35
50
  include Aws::ClientStubs
@@ -57,6 +72,7 @@ module Aws::CodePipeline
57
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
58
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
59
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
60
76
  add_plugin(Aws::Plugins::SignatureV4)
61
77
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
62
78
 
@@ -93,7 +109,7 @@ module Aws::CodePipeline
93
109
  # @option options [required, String] :region
94
110
  # The AWS region to connect to. The configured `:region` is
95
111
  # used to determine the service `:endpoint`. When not passed,
96
- # a default `:region` is search for in the following locations:
112
+ # a default `:region` is searched for in the following locations:
97
113
  #
98
114
  # * `Aws.config[:region]`
99
115
  # * `ENV['AWS_REGION']`
@@ -108,6 +124,12 @@ module Aws::CodePipeline
108
124
  # When set to `true`, a thread polling for endpoints will be running in
109
125
  # the background every 60 secs (default). Defaults to `false`.
110
126
  #
127
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
128
+ # Used only in `adaptive` retry mode. When true, the request will sleep
129
+ # until there is sufficent client side capacity to retry the request.
130
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
131
+ # not retry instead of sleeping.
132
+ #
111
133
  # @option options [Boolean] :client_side_monitoring (false)
112
134
  # When `true`, client-side metrics will be collected for all API requests from
113
135
  # this client.
@@ -132,6 +154,10 @@ module Aws::CodePipeline
132
154
  # When `true`, an attempt is made to coerce request parameters into
133
155
  # the required types.
134
156
  #
157
+ # @option options [Boolean] :correct_clock_skew (true)
158
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
159
+ # a clock skew correction and retry requests with skewed client clocks.
160
+ #
135
161
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
162
  # Set to true to disable SDK automatically adding host prefix
137
163
  # to default service endpoint when available.
@@ -139,7 +165,7 @@ module Aws::CodePipeline
139
165
  # @option options [String] :endpoint
140
166
  # The client endpoint is normally constructed from the `:region`
141
167
  # option. You should only configure an `:endpoint` when connecting
142
- # to test endpoints. This should be avalid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
143
169
  #
144
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
145
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -154,7 +180,7 @@ module Aws::CodePipeline
154
180
  # requests fetching endpoints information. Defaults to 60 sec.
155
181
  #
156
182
  # @option options [Boolean] :endpoint_discovery (false)
157
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
158
184
  #
159
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
160
186
  # The log formatter.
@@ -166,15 +192,29 @@ module Aws::CodePipeline
166
192
  # The Logger instance to send log messages to. If this option
167
193
  # is not set, logging will be disabled.
168
194
  #
195
+ # @option options [Integer] :max_attempts (3)
196
+ # An integer representing the maximum number attempts that will be made for
197
+ # a single request, including the initial attempt. For example,
198
+ # setting this value to 5 will result in a request being retried up to
199
+ # 4 times. Used in `standard` and `adaptive` retry modes.
200
+ #
169
201
  # @option options [String] :profile ("default")
170
202
  # Used when loading credentials from the shared credentials file
171
203
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
204
  #
205
+ # @option options [Proc] :retry_backoff
206
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
207
+ # This option is only used in the `legacy` retry mode.
208
+ #
173
209
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
210
+ # The base delay in seconds used by the default backoff function. This option
211
+ # is only used in the `legacy` retry mode.
175
212
  #
176
213
  # @option options [Symbol] :retry_jitter (:none)
177
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
214
+ # A delay randomiser function used by the default backoff function.
215
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
216
+ # otherwise a Proc that takes and returns a number. This option is only used
217
+ # in the `legacy` retry mode.
178
218
  #
179
219
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
220
  #
@@ -182,11 +222,30 @@ module Aws::CodePipeline
182
222
  # The maximum number of times to retry failed requests. Only
183
223
  # ~ 500 level server errors and certain ~ 400 level client errors
184
224
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
225
+ # checksum errors, networking errors, timeout errors, auth errors,
226
+ # endpoint discovery, and errors from expired credentials.
227
+ # This option is only used in the `legacy` retry mode.
187
228
  #
188
229
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
230
+ # The maximum number of seconds to delay between retries (0 for no limit)
231
+ # used by the default backoff function. This option is only used in the
232
+ # `legacy` retry mode.
233
+ #
234
+ # @option options [String] :retry_mode ("legacy")
235
+ # Specifies which retry algorithm to use. Values are:
236
+ #
237
+ # * `legacy` - The pre-existing retry behavior. This is default value if
238
+ # no retry mode is provided.
239
+ #
240
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
241
+ # This includes support for retry quotas, which limit the number of
242
+ # unsuccessful retries a client can make.
243
+ #
244
+ # * `adaptive` - An experimental retry mode that includes all the
245
+ # functionality of `standard` mode along with automatic client side
246
+ # throttling. This is a provisional mode that may change behavior
247
+ # in the future.
248
+ #
190
249
  #
191
250
  # @option options [String] :secret_access_key
192
251
  #
@@ -219,16 +278,15 @@ module Aws::CodePipeline
219
278
  # requests through. Formatted like 'http://proxy.com:123'.
220
279
  #
221
280
  # @option options [Float] :http_open_timeout (15) The number of
222
- # seconds to wait when opening a HTTP session before rasing a
281
+ # seconds to wait when opening a HTTP session before raising a
223
282
  # `Timeout::Error`.
224
283
  #
225
284
  # @option options [Integer] :http_read_timeout (60) The default
226
285
  # number of seconds to wait for response data. This value can
227
- # safely be set
228
- # per-request on the session yeidled by {#session_for}.
286
+ # safely be set per-request on the session.
229
287
  #
230
288
  # @option options [Float] :http_idle_timeout (5) The number of
231
- # seconds a connection is allowed to sit idble before it is
289
+ # seconds a connection is allowed to sit idle before it is
232
290
  # considered stale. Stale connections are closed and removed
233
291
  # from the pool before making a request.
234
292
  #
@@ -237,7 +295,7 @@ module Aws::CodePipeline
237
295
  # request body. This option has no effect unless the request has
238
296
  # "Expect" header set to "100-continue". Defaults to `nil` which
239
297
  # disables this behaviour. This value can safely be set per
240
- # request on the session yeidled by {#session_for}.
298
+ # request on the session.
241
299
  #
242
300
  # @option options [Boolean] :http_wire_trace (false) When `true`,
243
301
  # HTTP debug output will be sent to the `:logger`.
@@ -1156,6 +1214,8 @@ module Aws::CodePipeline
1156
1214
  # * {Types::ListActionExecutionsOutput#action_execution_details #action_execution_details} => Array&lt;Types::ActionExecutionDetail&gt;
1157
1215
  # * {Types::ListActionExecutionsOutput#next_token #next_token} => String
1158
1216
  #
1217
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1218
+ #
1159
1219
  # @example Request syntax with placeholder values
1160
1220
  #
1161
1221
  # resp = client.list_action_executions({
@@ -1230,6 +1290,8 @@ module Aws::CodePipeline
1230
1290
  # * {Types::ListActionTypesOutput#action_types #action_types} => Array&lt;Types::ActionType&gt;
1231
1291
  # * {Types::ListActionTypesOutput#next_token #next_token} => String
1232
1292
  #
1293
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1294
+ #
1233
1295
  # @example Request syntax with placeholder values
1234
1296
  #
1235
1297
  # resp = client.list_action_types({
@@ -1293,6 +1355,8 @@ module Aws::CodePipeline
1293
1355
  # * {Types::ListPipelineExecutionsOutput#pipeline_execution_summaries #pipeline_execution_summaries} => Array&lt;Types::PipelineExecutionSummary&gt;
1294
1356
  # * {Types::ListPipelineExecutionsOutput#next_token #next_token} => String
1295
1357
  #
1358
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1359
+ #
1296
1360
  # @example Request syntax with placeholder values
1297
1361
  #
1298
1362
  # resp = client.list_pipeline_executions({
@@ -1338,6 +1402,8 @@ module Aws::CodePipeline
1338
1402
  # * {Types::ListPipelinesOutput#pipelines #pipelines} => Array&lt;Types::PipelineSummary&gt;
1339
1403
  # * {Types::ListPipelinesOutput#next_token #next_token} => String
1340
1404
  #
1405
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1406
+ #
1341
1407
  # @example Request syntax with placeholder values
1342
1408
  #
1343
1409
  # resp = client.list_pipelines({
@@ -1381,6 +1447,8 @@ module Aws::CodePipeline
1381
1447
  # * {Types::ListTagsForResourceOutput#tags #tags} => Array&lt;Types::Tag&gt;
1382
1448
  # * {Types::ListTagsForResourceOutput#next_token #next_token} => String
1383
1449
  #
1450
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1451
+ #
1384
1452
  # @example Request syntax with placeholder values
1385
1453
  #
1386
1454
  # resp = client.list_tags_for_resource({
@@ -1423,6 +1491,8 @@ module Aws::CodePipeline
1423
1491
  # * {Types::ListWebhooksOutput#webhooks #webhooks} => Array&lt;Types::ListWebhookItem&gt;
1424
1492
  # * {Types::ListWebhooksOutput#next_token #next_token} => String
1425
1493
  #
1494
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1495
+ #
1426
1496
  # @example Request syntax with placeholder values
1427
1497
  #
1428
1498
  # resp = client.list_webhooks({
@@ -2319,7 +2389,7 @@ module Aws::CodePipeline
2319
2389
  params: params,
2320
2390
  config: config)
2321
2391
  context[:gem_name] = 'aws-sdk-codepipeline'
2322
- context[:gem_version] = '1.28.0'
2392
+ context[:gem_version] = '1.33.0'
2323
2393
  Seahorse::Client::Request.new(handlers, context)
2324
2394
  end
2325
2395
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -395,6 +397,8 @@ module Aws::CodePipeline
395
397
  ActionExecutionResult.add_member(:external_execution_url, Shapes::ShapeRef.new(shape: Url, location_name: "externalExecutionUrl"))
396
398
  ActionExecutionResult.struct_class = Types::ActionExecutionResult
397
399
 
400
+ ActionNotFoundException.struct_class = Types::ActionNotFoundException
401
+
398
402
  ActionRevision.add_member(:revision_id, Shapes::ShapeRef.new(shape: Revision, required: true, location_name: "revisionId"))
399
403
  ActionRevision.add_member(:revision_change_id, Shapes::ShapeRef.new(shape: RevisionChangeIdentifier, required: true, location_name: "revisionChangeId"))
400
404
  ActionRevision.add_member(:created, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "created"))
@@ -424,12 +428,16 @@ module Aws::CodePipeline
424
428
 
425
429
  ActionTypeList.member = Shapes::ShapeRef.new(shape: ActionType)
426
430
 
431
+ ActionTypeNotFoundException.struct_class = Types::ActionTypeNotFoundException
432
+
427
433
  ActionTypeSettings.add_member(:third_party_configuration_url, Shapes::ShapeRef.new(shape: Url, location_name: "thirdPartyConfigurationUrl"))
428
434
  ActionTypeSettings.add_member(:entity_url_template, Shapes::ShapeRef.new(shape: UrlTemplate, location_name: "entityUrlTemplate"))
429
435
  ActionTypeSettings.add_member(:execution_url_template, Shapes::ShapeRef.new(shape: UrlTemplate, location_name: "executionUrlTemplate"))
430
436
  ActionTypeSettings.add_member(:revision_url_template, Shapes::ShapeRef.new(shape: UrlTemplate, location_name: "revisionUrlTemplate"))
431
437
  ActionTypeSettings.struct_class = Types::ActionTypeSettings
432
438
 
439
+ ApprovalAlreadyCompletedException.struct_class = Types::ApprovalAlreadyCompletedException
440
+
433
441
  ApprovalResult.add_member(:summary, Shapes::ShapeRef.new(shape: ApprovalSummary, required: true, location_name: "summary"))
434
442
  ApprovalResult.add_member(:status, Shapes::ShapeRef.new(shape: ApprovalStatus, required: true, location_name: "status"))
435
443
  ApprovalResult.struct_class = Types::ApprovalResult
@@ -605,12 +613,36 @@ module Aws::CodePipeline
605
613
 
606
614
  InputArtifactList.member = Shapes::ShapeRef.new(shape: InputArtifact)
607
615
 
616
+ InvalidActionDeclarationException.struct_class = Types::InvalidActionDeclarationException
617
+
618
+ InvalidApprovalTokenException.struct_class = Types::InvalidApprovalTokenException
619
+
608
620
  InvalidArnException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "message"))
609
621
  InvalidArnException.struct_class = Types::InvalidArnException
610
622
 
623
+ InvalidBlockerDeclarationException.struct_class = Types::InvalidBlockerDeclarationException
624
+
625
+ InvalidClientTokenException.struct_class = Types::InvalidClientTokenException
626
+
627
+ InvalidJobException.struct_class = Types::InvalidJobException
628
+
629
+ InvalidJobStateException.struct_class = Types::InvalidJobStateException
630
+
631
+ InvalidNextTokenException.struct_class = Types::InvalidNextTokenException
632
+
633
+ InvalidNonceException.struct_class = Types::InvalidNonceException
634
+
635
+ InvalidStageDeclarationException.struct_class = Types::InvalidStageDeclarationException
636
+
637
+ InvalidStructureException.struct_class = Types::InvalidStructureException
638
+
611
639
  InvalidTagsException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "message"))
612
640
  InvalidTagsException.struct_class = Types::InvalidTagsException
613
641
 
642
+ InvalidWebhookAuthenticationParametersException.struct_class = Types::InvalidWebhookAuthenticationParametersException
643
+
644
+ InvalidWebhookFilterPatternException.struct_class = Types::InvalidWebhookFilterPatternException
645
+
614
646
  Job.add_member(:id, Shapes::ShapeRef.new(shape: JobId, location_name: "id"))
615
647
  Job.add_member(:data, Shapes::ShapeRef.new(shape: JobData, location_name: "data"))
616
648
  Job.add_member(:nonce, Shapes::ShapeRef.new(shape: Nonce, location_name: "nonce"))
@@ -634,6 +666,10 @@ module Aws::CodePipeline
634
666
 
635
667
  JobList.member = Shapes::ShapeRef.new(shape: Job)
636
668
 
669
+ JobNotFoundException.struct_class = Types::JobNotFoundException
670
+
671
+ LimitExceededException.struct_class = Types::LimitExceededException
672
+
637
673
  ListActionExecutionsInput.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: PipelineName, required: true, location_name: "pipelineName"))
638
674
  ListActionExecutionsInput.add_member(:filter, Shapes::ShapeRef.new(shape: ActionExecutionFilter, location_name: "filter"))
639
675
  ListActionExecutionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
@@ -694,6 +730,8 @@ module Aws::CodePipeline
694
730
  ListWebhooksOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
695
731
  ListWebhooksOutput.struct_class = Types::ListWebhooksOutput
696
732
 
733
+ NotLatestPipelineExecutionException.struct_class = Types::NotLatestPipelineExecutionException
734
+
697
735
  OutputArtifact.add_member(:name, Shapes::ShapeRef.new(shape: ArtifactName, required: true, location_name: "name"))
698
736
  OutputArtifact.struct_class = Types::OutputArtifact
699
737
 
@@ -727,6 +765,8 @@ module Aws::CodePipeline
727
765
  PipelineExecution.add_member(:artifact_revisions, Shapes::ShapeRef.new(shape: ArtifactRevisionList, location_name: "artifactRevisions"))
728
766
  PipelineExecution.struct_class = Types::PipelineExecution
729
767
 
768
+ PipelineExecutionNotFoundException.struct_class = Types::PipelineExecutionNotFoundException
769
+
730
770
  PipelineExecutionNotStoppableException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "message"))
731
771
  PipelineExecutionNotStoppableException.struct_class = Types::PipelineExecutionNotStoppableException
732
772
 
@@ -748,6 +788,10 @@ module Aws::CodePipeline
748
788
  PipelineMetadata.add_member(:updated, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updated"))
749
789
  PipelineMetadata.struct_class = Types::PipelineMetadata
750
790
 
791
+ PipelineNameInUseException.struct_class = Types::PipelineNameInUseException
792
+
793
+ PipelineNotFoundException.struct_class = Types::PipelineNotFoundException
794
+
751
795
  PipelineStageDeclarationList.member = Shapes::ShapeRef.new(shape: StageDeclaration)
752
796
 
753
797
  PipelineSummary.add_member(:name, Shapes::ShapeRef.new(shape: PipelineName, location_name: "name"))
@@ -756,6 +800,8 @@ module Aws::CodePipeline
756
800
  PipelineSummary.add_member(:updated, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updated"))
757
801
  PipelineSummary.struct_class = Types::PipelineSummary
758
802
 
803
+ PipelineVersionNotFoundException.struct_class = Types::PipelineVersionNotFoundException
804
+
759
805
  PollForJobsInput.add_member(:action_type_id, Shapes::ShapeRef.new(shape: ActionTypeId, required: true, location_name: "actionTypeId"))
760
806
  PollForJobsInput.add_member(:max_batch_size, Shapes::ShapeRef.new(shape: MaxBatchSize, location_name: "maxBatchSize"))
761
807
  PollForJobsInput.add_member(:query_param, Shapes::ShapeRef.new(shape: QueryParamMap, location_name: "queryParam"))
@@ -832,6 +878,8 @@ module Aws::CodePipeline
832
878
  ResolvedActionConfigurationMap.key = Shapes::ShapeRef.new(shape: String)
833
879
  ResolvedActionConfigurationMap.value = Shapes::ShapeRef.new(shape: String)
834
880
 
881
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
882
+
835
883
  RetryStageExecutionInput.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: PipelineName, required: true, location_name: "pipelineName"))
836
884
  RetryStageExecutionInput.add_member(:stage_name, Shapes::ShapeRef.new(shape: StageName, required: true, location_name: "stageName"))
837
885
  RetryStageExecutionInput.add_member(:pipeline_execution_id, Shapes::ShapeRef.new(shape: PipelineExecutionId, required: true, location_name: "pipelineExecutionId"))
@@ -873,6 +921,10 @@ module Aws::CodePipeline
873
921
  StageExecution.add_member(:status, Shapes::ShapeRef.new(shape: StageExecutionStatus, required: true, location_name: "status"))
874
922
  StageExecution.struct_class = Types::StageExecution
875
923
 
924
+ StageNotFoundException.struct_class = Types::StageNotFoundException
925
+
926
+ StageNotRetryableException.struct_class = Types::StageNotRetryableException
927
+
876
928
  StageState.add_member(:stage_name, Shapes::ShapeRef.new(shape: StageName, location_name: "stageName"))
877
929
  StageState.add_member(:inbound_transition_state, Shapes::ShapeRef.new(shape: TransitionState, location_name: "inboundTransitionState"))
878
930
  StageState.add_member(:action_states, Shapes::ShapeRef.new(shape: ActionStateList, location_name: "actionStates"))
@@ -956,6 +1008,8 @@ module Aws::CodePipeline
956
1008
  UpdatePipelineOutput.add_member(:pipeline, Shapes::ShapeRef.new(shape: PipelineDeclaration, location_name: "pipeline"))
957
1009
  UpdatePipelineOutput.struct_class = Types::UpdatePipelineOutput
958
1010
 
1011
+ ValidationException.struct_class = Types::ValidationException
1012
+
959
1013
  WebhookAuthConfiguration.add_member(:allowed_ip_range, Shapes::ShapeRef.new(shape: WebhookAuthConfigurationAllowedIPRange, location_name: "AllowedIPRange"))
960
1014
  WebhookAuthConfiguration.add_member(:secret_token, Shapes::ShapeRef.new(shape: WebhookAuthConfigurationSecretToken, location_name: "SecretToken"))
961
1015
  WebhookAuthConfiguration.struct_class = Types::WebhookAuthConfiguration
@@ -976,6 +1030,8 @@ module Aws::CodePipeline
976
1030
 
977
1031
  WebhookList.member = Shapes::ShapeRef.new(shape: ListWebhookItem)
978
1032
 
1033
+ WebhookNotFoundException.struct_class = Types::WebhookNotFoundException
1034
+
979
1035
 
980
1036
  # @api private
981
1037
  API = Seahorse::Model::Api.new.tap do |api|
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # WARNING ABOUT GENERATED CODE
2
3
  #
3
4
  # This file is generated. See the contributing for info on making contributions:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -6,10 +8,96 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::CodePipeline
11
+
12
+ # When CodePipeline returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::CodePipeline::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all CodePipeline errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::CodePipeline::Errors::ServiceError
20
+ # # rescues all CodePipeline API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {ActionNotFoundException}
31
+ # * {ActionTypeNotFoundException}
32
+ # * {ApprovalAlreadyCompletedException}
33
+ # * {ConcurrentModificationException}
34
+ # * {DuplicatedStopRequestException}
35
+ # * {InvalidActionDeclarationException}
36
+ # * {InvalidApprovalTokenException}
37
+ # * {InvalidArnException}
38
+ # * {InvalidBlockerDeclarationException}
39
+ # * {InvalidClientTokenException}
40
+ # * {InvalidJobException}
41
+ # * {InvalidJobStateException}
42
+ # * {InvalidNextTokenException}
43
+ # * {InvalidNonceException}
44
+ # * {InvalidStageDeclarationException}
45
+ # * {InvalidStructureException}
46
+ # * {InvalidTagsException}
47
+ # * {InvalidWebhookAuthenticationParametersException}
48
+ # * {InvalidWebhookFilterPatternException}
49
+ # * {JobNotFoundException}
50
+ # * {LimitExceededException}
51
+ # * {NotLatestPipelineExecutionException}
52
+ # * {OutputVariablesSizeExceededException}
53
+ # * {PipelineExecutionNotFoundException}
54
+ # * {PipelineExecutionNotStoppableException}
55
+ # * {PipelineNameInUseException}
56
+ # * {PipelineNotFoundException}
57
+ # * {PipelineVersionNotFoundException}
58
+ # * {ResourceNotFoundException}
59
+ # * {StageNotFoundException}
60
+ # * {StageNotRetryableException}
61
+ # * {TooManyTagsException}
62
+ # * {ValidationException}
63
+ # * {WebhookNotFoundException}
64
+ #
65
+ # Additionally, error classes are dynamically generated for service errors based on the error code
66
+ # if they are not defined above.
9
67
  module Errors
10
68
 
11
69
  extend Aws::Errors::DynamicErrors
12
70
 
71
+ class ActionNotFoundException < ServiceError
72
+
73
+ # @param [Seahorse::Client::RequestContext] context
74
+ # @param [String] message
75
+ # @param [Aws::CodePipeline::Types::ActionNotFoundException] data
76
+ def initialize(context, message, data = Aws::EmptyStructure.new)
77
+ super(context, message, data)
78
+ end
79
+ end
80
+
81
+ class ActionTypeNotFoundException < ServiceError
82
+
83
+ # @param [Seahorse::Client::RequestContext] context
84
+ # @param [String] message
85
+ # @param [Aws::CodePipeline::Types::ActionTypeNotFoundException] data
86
+ def initialize(context, message, data = Aws::EmptyStructure.new)
87
+ super(context, message, data)
88
+ end
89
+ end
90
+
91
+ class ApprovalAlreadyCompletedException < ServiceError
92
+
93
+ # @param [Seahorse::Client::RequestContext] context
94
+ # @param [String] message
95
+ # @param [Aws::CodePipeline::Types::ApprovalAlreadyCompletedException] data
96
+ def initialize(context, message, data = Aws::EmptyStructure.new)
97
+ super(context, message, data)
98
+ end
99
+ end
100
+
13
101
  class ConcurrentModificationException < ServiceError
14
102
 
15
103
  # @param [Seahorse::Client::RequestContext] context
@@ -23,7 +111,6 @@ module Aws::CodePipeline
23
111
  def message
24
112
  @message || @data[:message]
25
113
  end
26
-
27
114
  end
28
115
 
29
116
  class DuplicatedStopRequestException < ServiceError
@@ -39,7 +126,26 @@ module Aws::CodePipeline
39
126
  def message
40
127
  @message || @data[:message]
41
128
  end
129
+ end
130
+
131
+ class InvalidActionDeclarationException < ServiceError
42
132
 
133
+ # @param [Seahorse::Client::RequestContext] context
134
+ # @param [String] message
135
+ # @param [Aws::CodePipeline::Types::InvalidActionDeclarationException] data
136
+ def initialize(context, message, data = Aws::EmptyStructure.new)
137
+ super(context, message, data)
138
+ end
139
+ end
140
+
141
+ class InvalidApprovalTokenException < ServiceError
142
+
143
+ # @param [Seahorse::Client::RequestContext] context
144
+ # @param [String] message
145
+ # @param [Aws::CodePipeline::Types::InvalidApprovalTokenException] data
146
+ def initialize(context, message, data = Aws::EmptyStructure.new)
147
+ super(context, message, data)
148
+ end
43
149
  end
44
150
 
45
151
  class InvalidArnException < ServiceError
@@ -55,7 +161,86 @@ module Aws::CodePipeline
55
161
  def message
56
162
  @message || @data[:message]
57
163
  end
164
+ end
58
165
 
166
+ class InvalidBlockerDeclarationException < ServiceError
167
+
168
+ # @param [Seahorse::Client::RequestContext] context
169
+ # @param [String] message
170
+ # @param [Aws::CodePipeline::Types::InvalidBlockerDeclarationException] data
171
+ def initialize(context, message, data = Aws::EmptyStructure.new)
172
+ super(context, message, data)
173
+ end
174
+ end
175
+
176
+ class InvalidClientTokenException < ServiceError
177
+
178
+ # @param [Seahorse::Client::RequestContext] context
179
+ # @param [String] message
180
+ # @param [Aws::CodePipeline::Types::InvalidClientTokenException] data
181
+ def initialize(context, message, data = Aws::EmptyStructure.new)
182
+ super(context, message, data)
183
+ end
184
+ end
185
+
186
+ class InvalidJobException < ServiceError
187
+
188
+ # @param [Seahorse::Client::RequestContext] context
189
+ # @param [String] message
190
+ # @param [Aws::CodePipeline::Types::InvalidJobException] data
191
+ def initialize(context, message, data = Aws::EmptyStructure.new)
192
+ super(context, message, data)
193
+ end
194
+ end
195
+
196
+ class InvalidJobStateException < ServiceError
197
+
198
+ # @param [Seahorse::Client::RequestContext] context
199
+ # @param [String] message
200
+ # @param [Aws::CodePipeline::Types::InvalidJobStateException] data
201
+ def initialize(context, message, data = Aws::EmptyStructure.new)
202
+ super(context, message, data)
203
+ end
204
+ end
205
+
206
+ class InvalidNextTokenException < ServiceError
207
+
208
+ # @param [Seahorse::Client::RequestContext] context
209
+ # @param [String] message
210
+ # @param [Aws::CodePipeline::Types::InvalidNextTokenException] data
211
+ def initialize(context, message, data = Aws::EmptyStructure.new)
212
+ super(context, message, data)
213
+ end
214
+ end
215
+
216
+ class InvalidNonceException < ServiceError
217
+
218
+ # @param [Seahorse::Client::RequestContext] context
219
+ # @param [String] message
220
+ # @param [Aws::CodePipeline::Types::InvalidNonceException] data
221
+ def initialize(context, message, data = Aws::EmptyStructure.new)
222
+ super(context, message, data)
223
+ end
224
+ end
225
+
226
+ class InvalidStageDeclarationException < ServiceError
227
+
228
+ # @param [Seahorse::Client::RequestContext] context
229
+ # @param [String] message
230
+ # @param [Aws::CodePipeline::Types::InvalidStageDeclarationException] data
231
+ def initialize(context, message, data = Aws::EmptyStructure.new)
232
+ super(context, message, data)
233
+ end
234
+ end
235
+
236
+ class InvalidStructureException < ServiceError
237
+
238
+ # @param [Seahorse::Client::RequestContext] context
239
+ # @param [String] message
240
+ # @param [Aws::CodePipeline::Types::InvalidStructureException] data
241
+ def initialize(context, message, data = Aws::EmptyStructure.new)
242
+ super(context, message, data)
243
+ end
59
244
  end
60
245
 
61
246
  class InvalidTagsException < ServiceError
@@ -71,7 +256,56 @@ module Aws::CodePipeline
71
256
  def message
72
257
  @message || @data[:message]
73
258
  end
259
+ end
260
+
261
+ class InvalidWebhookAuthenticationParametersException < ServiceError
74
262
 
263
+ # @param [Seahorse::Client::RequestContext] context
264
+ # @param [String] message
265
+ # @param [Aws::CodePipeline::Types::InvalidWebhookAuthenticationParametersException] data
266
+ def initialize(context, message, data = Aws::EmptyStructure.new)
267
+ super(context, message, data)
268
+ end
269
+ end
270
+
271
+ class InvalidWebhookFilterPatternException < ServiceError
272
+
273
+ # @param [Seahorse::Client::RequestContext] context
274
+ # @param [String] message
275
+ # @param [Aws::CodePipeline::Types::InvalidWebhookFilterPatternException] data
276
+ def initialize(context, message, data = Aws::EmptyStructure.new)
277
+ super(context, message, data)
278
+ end
279
+ end
280
+
281
+ class JobNotFoundException < ServiceError
282
+
283
+ # @param [Seahorse::Client::RequestContext] context
284
+ # @param [String] message
285
+ # @param [Aws::CodePipeline::Types::JobNotFoundException] data
286
+ def initialize(context, message, data = Aws::EmptyStructure.new)
287
+ super(context, message, data)
288
+ end
289
+ end
290
+
291
+ class LimitExceededException < ServiceError
292
+
293
+ # @param [Seahorse::Client::RequestContext] context
294
+ # @param [String] message
295
+ # @param [Aws::CodePipeline::Types::LimitExceededException] data
296
+ def initialize(context, message, data = Aws::EmptyStructure.new)
297
+ super(context, message, data)
298
+ end
299
+ end
300
+
301
+ class NotLatestPipelineExecutionException < ServiceError
302
+
303
+ # @param [Seahorse::Client::RequestContext] context
304
+ # @param [String] message
305
+ # @param [Aws::CodePipeline::Types::NotLatestPipelineExecutionException] data
306
+ def initialize(context, message, data = Aws::EmptyStructure.new)
307
+ super(context, message, data)
308
+ end
75
309
  end
76
310
 
77
311
  class OutputVariablesSizeExceededException < ServiceError
@@ -87,7 +321,16 @@ module Aws::CodePipeline
87
321
  def message
88
322
  @message || @data[:message]
89
323
  end
324
+ end
325
+
326
+ class PipelineExecutionNotFoundException < ServiceError
90
327
 
328
+ # @param [Seahorse::Client::RequestContext] context
329
+ # @param [String] message
330
+ # @param [Aws::CodePipeline::Types::PipelineExecutionNotFoundException] data
331
+ def initialize(context, message, data = Aws::EmptyStructure.new)
332
+ super(context, message, data)
333
+ end
91
334
  end
92
335
 
93
336
  class PipelineExecutionNotStoppableException < ServiceError
@@ -103,7 +346,66 @@ module Aws::CodePipeline
103
346
  def message
104
347
  @message || @data[:message]
105
348
  end
349
+ end
350
+
351
+ class PipelineNameInUseException < ServiceError
352
+
353
+ # @param [Seahorse::Client::RequestContext] context
354
+ # @param [String] message
355
+ # @param [Aws::CodePipeline::Types::PipelineNameInUseException] data
356
+ def initialize(context, message, data = Aws::EmptyStructure.new)
357
+ super(context, message, data)
358
+ end
359
+ end
360
+
361
+ class PipelineNotFoundException < ServiceError
362
+
363
+ # @param [Seahorse::Client::RequestContext] context
364
+ # @param [String] message
365
+ # @param [Aws::CodePipeline::Types::PipelineNotFoundException] data
366
+ def initialize(context, message, data = Aws::EmptyStructure.new)
367
+ super(context, message, data)
368
+ end
369
+ end
370
+
371
+ class PipelineVersionNotFoundException < ServiceError
106
372
 
373
+ # @param [Seahorse::Client::RequestContext] context
374
+ # @param [String] message
375
+ # @param [Aws::CodePipeline::Types::PipelineVersionNotFoundException] data
376
+ def initialize(context, message, data = Aws::EmptyStructure.new)
377
+ super(context, message, data)
378
+ end
379
+ end
380
+
381
+ class ResourceNotFoundException < ServiceError
382
+
383
+ # @param [Seahorse::Client::RequestContext] context
384
+ # @param [String] message
385
+ # @param [Aws::CodePipeline::Types::ResourceNotFoundException] data
386
+ def initialize(context, message, data = Aws::EmptyStructure.new)
387
+ super(context, message, data)
388
+ end
389
+ end
390
+
391
+ class StageNotFoundException < ServiceError
392
+
393
+ # @param [Seahorse::Client::RequestContext] context
394
+ # @param [String] message
395
+ # @param [Aws::CodePipeline::Types::StageNotFoundException] data
396
+ def initialize(context, message, data = Aws::EmptyStructure.new)
397
+ super(context, message, data)
398
+ end
399
+ end
400
+
401
+ class StageNotRetryableException < ServiceError
402
+
403
+ # @param [Seahorse::Client::RequestContext] context
404
+ # @param [String] message
405
+ # @param [Aws::CodePipeline::Types::StageNotRetryableException] data
406
+ def initialize(context, message, data = Aws::EmptyStructure.new)
407
+ super(context, message, data)
408
+ end
107
409
  end
108
410
 
109
411
  class TooManyTagsException < ServiceError
@@ -119,7 +421,26 @@ module Aws::CodePipeline
119
421
  def message
120
422
  @message || @data[:message]
121
423
  end
424
+ end
425
+
426
+ class ValidationException < ServiceError
427
+
428
+ # @param [Seahorse::Client::RequestContext] context
429
+ # @param [String] message
430
+ # @param [Aws::CodePipeline::Types::ValidationException] data
431
+ def initialize(context, message, data = Aws::EmptyStructure.new)
432
+ super(context, message, data)
433
+ end
434
+ end
122
435
 
436
+ class WebhookNotFoundException < ServiceError
437
+
438
+ # @param [Seahorse::Client::RequestContext] context
439
+ # @param [String] message
440
+ # @param [Aws::CodePipeline::Types::WebhookNotFoundException] data
441
+ def initialize(context, message, data = Aws::EmptyStructure.new)
442
+ super(context, message, data)
443
+ end
123
444
  end
124
445
 
125
446
  end