aws-sdk-codestarconnections 1.0.0 → 1.5.1

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
- SHA1:
3
- metadata.gz: 458eaea8f793edda21c8b57e477b8624879506f9
4
- data.tar.gz: d116aa7d8b76050ff9bb80498063f0f5e089cd10
2
+ SHA256:
3
+ metadata.gz: 94104e402259e43bbb0efa84f4813e2f8d2740fab1deae1bec7c28a0e3893c1a
4
+ data.tar.gz: 19dc41423f791311d077b120e62abdba269d3626c6c3c9eba360466d0a02e22b
5
5
  SHA512:
6
- metadata.gz: fd3d6f4f508ca2f34571e1dab84bbbd382a7dd1d7f36cb0a1be9e344a7928c89946b6336bb5a19565b3ef0052004d19197ae9eefaff83ce891c8fc8368543ac7
7
- data.tar.gz: 38d60a297c064c33159a323163d5068befc0c3e7d1dab60463ed69986c3e189ce1e2d2359eaadf2101cb74fa51772bb014fca395a7792bc97f697e19d49f478f
6
+ metadata.gz: 97f707f77ce8093bdcb4d960c60e110045778cf8b78418ec4209ac6359a955170ce57963ebf9f0989f1ea1acd0b8e4b79a5b47adaf399dbf049a088ff6729abe
7
+ data.tar.gz: 5c5326a9e096523f3e24bbba6ca13acd14dfd8ff70122fc0625ba59bed39a553fc7cc0e3f2b943ece09180e2f644d9f534b93e83f12e063a282039eb97bed5de
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-codestarconnections/customizations'
24
24
  # methods each accept a hash of request parameters and return a response
25
25
  # structure.
26
26
  #
27
+ # code_starconnections = Aws::CodeStarconnections::Client.new
28
+ # resp = code_starconnections.create_connection(params)
29
+ #
27
30
  # See {Client} for more information.
28
31
  #
29
32
  # # Errors
30
33
  #
31
- # Errors returned from AWS CodeStar connections all
32
- # extend {Errors::ServiceError}.
34
+ # Errors returned from AWS CodeStar connections are defined in the
35
+ # {Errors} module and all extend {Errors::ServiceError}.
33
36
  #
34
37
  # begin
35
38
  # # do stuff
36
39
  # rescue Aws::CodeStarconnections::Errors::ServiceError
37
- # # rescues all service API errors
40
+ # # rescues all AWS CodeStar connections API errors
38
41
  # end
39
42
  #
40
43
  # See {Errors} for more information.
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-codestarconnections/customizations'
42
45
  # @service
43
46
  module Aws::CodeStarconnections
44
47
 
45
- GEM_VERSION = '1.0.0'
48
+ GEM_VERSION = '1.5.1'
46
49
 
47
50
  end
@@ -24,12 +24,25 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
24
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
25
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
26
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
27
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
28
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
29
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
30
 
30
31
  Aws::Plugins::GlobalConfiguration.add_identifier(:codestarconnections)
31
32
 
32
33
  module Aws::CodeStarconnections
34
+ # An API client for CodeStarconnections. To construct a client, you need to configure a `:region` and `:credentials`.
35
+ #
36
+ # client = Aws::CodeStarconnections::Client.new(
37
+ # region: region_name,
38
+ # credentials: credentials,
39
+ # # ...
40
+ # )
41
+ #
42
+ # For details on configuring region and credentials see
43
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
44
+ #
45
+ # See {#initialize} for a full list of supported configuration options.
33
46
  class Client < Seahorse::Client::Base
34
47
 
35
48
  include Aws::ClientStubs
@@ -57,6 +70,7 @@ module Aws::CodeStarconnections
57
70
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
58
71
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
59
72
  add_plugin(Aws::Plugins::TransferEncoding)
73
+ add_plugin(Aws::Plugins::HttpChecksum)
60
74
  add_plugin(Aws::Plugins::SignatureV4)
61
75
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
62
76
 
@@ -93,7 +107,7 @@ module Aws::CodeStarconnections
93
107
  # @option options [required, String] :region
94
108
  # The AWS region to connect to. The configured `:region` is
95
109
  # used to determine the service `:endpoint`. When not passed,
96
- # a default `:region` is search for in the following locations:
110
+ # a default `:region` is searched for in the following locations:
97
111
  #
98
112
  # * `Aws.config[:region]`
99
113
  # * `ENV['AWS_REGION']`
@@ -108,6 +122,12 @@ module Aws::CodeStarconnections
108
122
  # When set to `true`, a thread polling for endpoints will be running in
109
123
  # the background every 60 secs (default). Defaults to `false`.
110
124
  #
125
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
126
+ # Used only in `adaptive` retry mode. When true, the request will sleep
127
+ # until there is sufficent client side capacity to retry the request.
128
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
129
+ # not retry instead of sleeping.
130
+ #
111
131
  # @option options [Boolean] :client_side_monitoring (false)
112
132
  # When `true`, client-side metrics will be collected for all API requests from
113
133
  # this client.
@@ -132,6 +152,10 @@ module Aws::CodeStarconnections
132
152
  # When `true`, an attempt is made to coerce request parameters into
133
153
  # the required types.
134
154
  #
155
+ # @option options [Boolean] :correct_clock_skew (true)
156
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
157
+ # a clock skew correction and retry requests with skewed client clocks.
158
+ #
135
159
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
160
  # Set to true to disable SDK automatically adding host prefix
137
161
  # to default service endpoint when available.
@@ -139,7 +163,7 @@ module Aws::CodeStarconnections
139
163
  # @option options [String] :endpoint
140
164
  # The client endpoint is normally constructed from the `:region`
141
165
  # option. You should only configure an `:endpoint` when connecting
142
- # to test endpoints. This should be avalid HTTP(S) URI.
166
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
143
167
  #
144
168
  # @option options [Integer] :endpoint_cache_max_entries (1000)
145
169
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -154,7 +178,7 @@ module Aws::CodeStarconnections
154
178
  # requests fetching endpoints information. Defaults to 60 sec.
155
179
  #
156
180
  # @option options [Boolean] :endpoint_discovery (false)
157
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
181
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
158
182
  #
159
183
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
160
184
  # The log formatter.
@@ -166,15 +190,29 @@ module Aws::CodeStarconnections
166
190
  # The Logger instance to send log messages to. If this option
167
191
  # is not set, logging will be disabled.
168
192
  #
193
+ # @option options [Integer] :max_attempts (3)
194
+ # An integer representing the maximum number attempts that will be made for
195
+ # a single request, including the initial attempt. For example,
196
+ # setting this value to 5 will result in a request being retried up to
197
+ # 4 times. Used in `standard` and `adaptive` retry modes.
198
+ #
169
199
  # @option options [String] :profile ("default")
170
200
  # Used when loading credentials from the shared credentials file
171
201
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
202
  #
203
+ # @option options [Proc] :retry_backoff
204
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
205
+ # This option is only used in the `legacy` retry mode.
206
+ #
173
207
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
208
+ # The base delay in seconds used by the default backoff function. This option
209
+ # is only used in the `legacy` retry mode.
175
210
  #
176
211
  # @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.
212
+ # A delay randomiser function used by the default backoff function.
213
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
214
+ # otherwise a Proc that takes and returns a number. This option is only used
215
+ # in the `legacy` retry mode.
178
216
  #
179
217
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
218
  #
@@ -182,11 +220,30 @@ module Aws::CodeStarconnections
182
220
  # The maximum number of times to retry failed requests. Only
183
221
  # ~ 500 level server errors and certain ~ 400 level client errors
184
222
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
223
+ # checksum errors, networking errors, timeout errors, auth errors,
224
+ # endpoint discovery, and errors from expired credentials.
225
+ # This option is only used in the `legacy` retry mode.
187
226
  #
188
227
  # @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.
228
+ # The maximum number of seconds to delay between retries (0 for no limit)
229
+ # used by the default backoff function. This option is only used in the
230
+ # `legacy` retry mode.
231
+ #
232
+ # @option options [String] :retry_mode ("legacy")
233
+ # Specifies which retry algorithm to use. Values are:
234
+ #
235
+ # * `legacy` - The pre-existing retry behavior. This is default value if
236
+ # no retry mode is provided.
237
+ #
238
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
239
+ # This includes support for retry quotas, which limit the number of
240
+ # unsuccessful retries a client can make.
241
+ #
242
+ # * `adaptive` - An experimental retry mode that includes all the
243
+ # functionality of `standard` mode along with automatic client side
244
+ # throttling. This is a provisional mode that may change behavior
245
+ # in the future.
246
+ #
190
247
  #
191
248
  # @option options [String] :secret_access_key
192
249
  #
@@ -219,16 +276,15 @@ module Aws::CodeStarconnections
219
276
  # requests through. Formatted like 'http://proxy.com:123'.
220
277
  #
221
278
  # @option options [Float] :http_open_timeout (15) The number of
222
- # seconds to wait when opening a HTTP session before rasing a
279
+ # seconds to wait when opening a HTTP session before raising a
223
280
  # `Timeout::Error`.
224
281
  #
225
282
  # @option options [Integer] :http_read_timeout (60) The default
226
283
  # 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}.
284
+ # safely be set per-request on the session.
229
285
  #
230
286
  # @option options [Float] :http_idle_timeout (5) The number of
231
- # seconds a connection is allowed to sit idble before it is
287
+ # seconds a connection is allowed to sit idle before it is
232
288
  # considered stale. Stale connections are closed and removed
233
289
  # from the pool before making a request.
234
290
  #
@@ -237,7 +293,7 @@ module Aws::CodeStarconnections
237
293
  # request body. This option has no effect unless the request has
238
294
  # "Expect" header set to "100-continue". Defaults to `nil` which
239
295
  # disables this behaviour. This value can safely be set per
240
- # request on the session yeidled by {#session_for}.
296
+ # request on the session.
241
297
  #
242
298
  # @option options [Boolean] :http_wire_trace (false) When `true`,
243
299
  # HTTP debug output will be sent to the `:logger`.
@@ -278,20 +334,33 @@ module Aws::CodeStarconnections
278
334
  # The name of the connection to be created. The name must be unique in
279
335
  # the calling AWS account.
280
336
  #
337
+ # @option params [Array<Types::Tag>] :tags
338
+ # The key-value pair to use when tagging the resource.
339
+ #
281
340
  # @return [Types::CreateConnectionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
282
341
  #
283
342
  # * {Types::CreateConnectionOutput#connection_arn #connection_arn} => String
343
+ # * {Types::CreateConnectionOutput#tags #tags} => Array&lt;Types::Tag&gt;
284
344
  #
285
345
  # @example Request syntax with placeholder values
286
346
  #
287
347
  # resp = client.create_connection({
288
348
  # provider_type: "Bitbucket", # required, accepts Bitbucket
289
349
  # connection_name: "ConnectionName", # required
350
+ # tags: [
351
+ # {
352
+ # key: "TagKey", # required
353
+ # value: "TagValue", # required
354
+ # },
355
+ # ],
290
356
  # })
291
357
  #
292
358
  # @example Response structure
293
359
  #
294
360
  # resp.connection_arn #=> String
361
+ # resp.tags #=> Array
362
+ # resp.tags[0].key #=> String
363
+ # resp.tags[0].value #=> String
295
364
  #
296
365
  # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateConnection AWS API Documentation
297
366
  #
@@ -381,6 +450,8 @@ module Aws::CodeStarconnections
381
450
  # * {Types::ListConnectionsOutput#connections #connections} => Array&lt;Types::Connection&gt;
382
451
  # * {Types::ListConnectionsOutput#next_token #next_token} => String
383
452
  #
453
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
454
+ #
384
455
  # @example Request syntax with placeholder values
385
456
  #
386
457
  # resp = client.list_connections({
@@ -408,6 +479,97 @@ module Aws::CodeStarconnections
408
479
  req.send_request(options)
409
480
  end
410
481
 
482
+ # Gets the set of key-value pairs (metadata) that are used to manage the
483
+ # resource.
484
+ #
485
+ # @option params [required, String] :resource_arn
486
+ # The Amazon Resource Name (ARN) of the resource for which you want to
487
+ # get information about tags, if any.
488
+ #
489
+ # @return [Types::ListTagsForResourceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
490
+ #
491
+ # * {Types::ListTagsForResourceOutput#tags #tags} => Array&lt;Types::Tag&gt;
492
+ #
493
+ # @example Request syntax with placeholder values
494
+ #
495
+ # resp = client.list_tags_for_resource({
496
+ # resource_arn: "AmazonResourceName", # required
497
+ # })
498
+ #
499
+ # @example Response structure
500
+ #
501
+ # resp.tags #=> Array
502
+ # resp.tags[0].key #=> String
503
+ # resp.tags[0].value #=> String
504
+ #
505
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListTagsForResource AWS API Documentation
506
+ #
507
+ # @overload list_tags_for_resource(params = {})
508
+ # @param [Hash] params ({})
509
+ def list_tags_for_resource(params = {}, options = {})
510
+ req = build_request(:list_tags_for_resource, params)
511
+ req.send_request(options)
512
+ end
513
+
514
+ # Adds to or modifies the tags of the given resource. Tags are metadata
515
+ # that can be used to manage a resource.
516
+ #
517
+ # @option params [required, String] :resource_arn
518
+ # The Amazon Resource Name (ARN) of the resource to which you want to
519
+ # add or update tags.
520
+ #
521
+ # @option params [required, Array<Types::Tag>] :tags
522
+ # The tags you want to modify or add to the resource.
523
+ #
524
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
525
+ #
526
+ # @example Request syntax with placeholder values
527
+ #
528
+ # resp = client.tag_resource({
529
+ # resource_arn: "AmazonResourceName", # required
530
+ # tags: [ # required
531
+ # {
532
+ # key: "TagKey", # required
533
+ # value: "TagValue", # required
534
+ # },
535
+ # ],
536
+ # })
537
+ #
538
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/TagResource AWS API Documentation
539
+ #
540
+ # @overload tag_resource(params = {})
541
+ # @param [Hash] params ({})
542
+ def tag_resource(params = {}, options = {})
543
+ req = build_request(:tag_resource, params)
544
+ req.send_request(options)
545
+ end
546
+
547
+ # Removes tags from an AWS resource.
548
+ #
549
+ # @option params [required, String] :resource_arn
550
+ # The Amazon Resource Name (ARN) of the resource to remove tags from.
551
+ #
552
+ # @option params [required, Array<String>] :tag_keys
553
+ # The list of keys for the tags to be removed from the resource.
554
+ #
555
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
556
+ #
557
+ # @example Request syntax with placeholder values
558
+ #
559
+ # resp = client.untag_resource({
560
+ # resource_arn: "AmazonResourceName", # required
561
+ # tag_keys: ["TagKey"], # required
562
+ # })
563
+ #
564
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UntagResource AWS API Documentation
565
+ #
566
+ # @overload untag_resource(params = {})
567
+ # @param [Hash] params ({})
568
+ def untag_resource(params = {}, options = {})
569
+ req = build_request(:untag_resource, params)
570
+ req.send_request(options)
571
+ end
572
+
411
573
  # @!endgroup
412
574
 
413
575
  # @param params ({})
@@ -421,7 +583,7 @@ module Aws::CodeStarconnections
421
583
  params: params,
422
584
  config: config)
423
585
  context[:gem_name] = 'aws-sdk-codestarconnections'
424
- context[:gem_version] = '1.0.0'
586
+ context[:gem_version] = '1.5.1'
425
587
  Seahorse::Client::Request.new(handlers, context)
426
588
  end
427
589
 
@@ -12,6 +12,7 @@ module Aws::CodeStarconnections
12
12
  include Seahorse::Model
13
13
 
14
14
  AccountId = Shapes::StringShape.new(name: 'AccountId')
15
+ AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
15
16
  Connection = Shapes::StructureShape.new(name: 'Connection')
16
17
  ConnectionArn = Shapes::StringShape.new(name: 'ConnectionArn')
17
18
  ConnectionList = Shapes::ListShape.new(name: 'ConnectionList')
@@ -27,10 +28,21 @@ module Aws::CodeStarconnections
27
28
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
28
29
  ListConnectionsInput = Shapes::StructureShape.new(name: 'ListConnectionsInput')
29
30
  ListConnectionsOutput = Shapes::StructureShape.new(name: 'ListConnectionsOutput')
31
+ ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
32
+ ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
30
33
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
31
34
  NextToken = Shapes::StringShape.new(name: 'NextToken')
32
35
  ProviderType = Shapes::StringShape.new(name: 'ProviderType')
33
36
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
37
+ Tag = Shapes::StructureShape.new(name: 'Tag')
38
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
39
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
40
+ TagList = Shapes::ListShape.new(name: 'TagList')
41
+ TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
42
+ TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
43
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
44
+ UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
45
+ UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
34
46
 
35
47
  Connection.add_member(:connection_name, Shapes::ShapeRef.new(shape: ConnectionName, location_name: "ConnectionName"))
36
48
  Connection.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, location_name: "ConnectionArn"))
@@ -43,9 +55,11 @@ module Aws::CodeStarconnections
43
55
 
44
56
  CreateConnectionInput.add_member(:provider_type, Shapes::ShapeRef.new(shape: ProviderType, required: true, location_name: "ProviderType"))
45
57
  CreateConnectionInput.add_member(:connection_name, Shapes::ShapeRef.new(shape: ConnectionName, required: true, location_name: "ConnectionName"))
58
+ CreateConnectionInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
46
59
  CreateConnectionInput.struct_class = Types::CreateConnectionInput
47
60
 
48
61
  CreateConnectionOutput.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, required: true, location_name: "ConnectionArn"))
62
+ CreateConnectionOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
49
63
  CreateConnectionOutput.struct_class = Types::CreateConnectionOutput
50
64
 
51
65
  DeleteConnectionInput.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, required: true, location_name: "ConnectionArn"))
@@ -71,9 +85,35 @@ module Aws::CodeStarconnections
71
85
  ListConnectionsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
72
86
  ListConnectionsOutput.struct_class = Types::ListConnectionsOutput
73
87
 
88
+ ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceArn"))
89
+ ListTagsForResourceInput.struct_class = Types::ListTagsForResourceInput
90
+
91
+ ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
92
+ ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
93
+
74
94
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
75
95
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
76
96
 
97
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
98
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
99
+ Tag.struct_class = Types::Tag
100
+
101
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
102
+
103
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
104
+
105
+ TagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceArn"))
106
+ TagResourceInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
107
+ TagResourceInput.struct_class = Types::TagResourceInput
108
+
109
+ TagResourceOutput.struct_class = Types::TagResourceOutput
110
+
111
+ UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceArn"))
112
+ UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
113
+ UntagResourceInput.struct_class = Types::UntagResourceInput
114
+
115
+ UntagResourceOutput.struct_class = Types::UntagResourceOutput
116
+
77
117
 
78
118
  # @api private
79
119
  API = Seahorse::Model::Api.new.tap do |api|
@@ -133,6 +173,34 @@ module Aws::CodeStarconnections
133
173
  }
134
174
  )
135
175
  end)
176
+
177
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
178
+ o.name = "ListTagsForResource"
179
+ o.http_method = "POST"
180
+ o.http_request_uri = "/"
181
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceInput)
182
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceOutput)
183
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
184
+ end)
185
+
186
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
187
+ o.name = "TagResource"
188
+ o.http_method = "POST"
189
+ o.http_request_uri = "/"
190
+ o.input = Shapes::ShapeRef.new(shape: TagResourceInput)
191
+ o.output = Shapes::ShapeRef.new(shape: TagResourceOutput)
192
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
193
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
194
+ end)
195
+
196
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
197
+ o.name = "UntagResource"
198
+ o.http_method = "POST"
199
+ o.http_request_uri = "/"
200
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceInput)
201
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceOutput)
202
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
203
+ end)
136
204
  end
137
205
 
138
206
  end
@@ -6,6 +6,30 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::CodeStarconnections
9
+
10
+ # When CodeStarconnections returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::CodeStarconnections::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all CodeStarconnections errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::CodeStarconnections::Errors::ServiceError
18
+ # # rescues all CodeStarconnections API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {LimitExceededException}
29
+ # * {ResourceNotFoundException}
30
+ #
31
+ # Additionally, error classes are dynamically generated for service errors based on the error code
32
+ # if they are not defined above.
9
33
  module Errors
10
34
 
11
35
  extend Aws::Errors::DynamicErrors
@@ -23,7 +47,6 @@ module Aws::CodeStarconnections
23
47
  def message
24
48
  @message || @data[:message]
25
49
  end
26
-
27
50
  end
28
51
 
29
52
  class ResourceNotFoundException < ServiceError
@@ -39,7 +62,6 @@ module Aws::CodeStarconnections
39
62
  def message
40
63
  @message || @data[:message]
41
64
  end
42
-
43
65
  end
44
66
 
45
67
  end
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::CodeStarconnections
9
+
9
10
  class Resource
10
11
 
11
12
  # @param options ({})
@@ -8,8 +8,12 @@
8
8
  module Aws::CodeStarconnections
9
9
  module Types
10
10
 
11
- # The configuration that allows a service such as CodePipeline to
12
- # connect to a third-party code repository.
11
+ # The AWS::CodeStarConnections::Connection resource can be used to
12
+ # connect external source providers with services like AWS CodePipeline.
13
+ #
14
+ # Note: A connection created through CloudFormation is in `PENDING`
15
+ # status by default. You can make its status `AVAILABLE` by editing
16
+ # the connection in the CodePipeline console.
13
17
  #
14
18
  # @!attribute [rw] connection_name
15
19
  # The name of the connection. Connection names must be unique in an
@@ -33,7 +37,7 @@ module Aws::CodeStarconnections
33
37
  # @return [String]
34
38
  #
35
39
  # @!attribute [rw] owner_account_id
36
- # The name of the external provider where your third-party code
40
+ # The identifier of the external provider where your third-party code
37
41
  # repository is configured. For Bitbucket, this is the account ID of
38
42
  # the owner of the Bitbucket repository.
39
43
  # @return [String]
@@ -59,6 +63,12 @@ module Aws::CodeStarconnections
59
63
  # {
60
64
  # provider_type: "Bitbucket", # required, accepts Bitbucket
61
65
  # connection_name: "ConnectionName", # required
66
+ # tags: [
67
+ # {
68
+ # key: "TagKey", # required
69
+ # value: "TagValue", # required
70
+ # },
71
+ # ],
62
72
  # }
63
73
  #
64
74
  # @!attribute [rw] provider_type
@@ -72,11 +82,16 @@ module Aws::CodeStarconnections
72
82
  # the calling AWS account.
73
83
  # @return [String]
74
84
  #
85
+ # @!attribute [rw] tags
86
+ # The key-value pair to use when tagging the resource.
87
+ # @return [Array<Types::Tag>]
88
+ #
75
89
  # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateConnectionInput AWS API Documentation
76
90
  #
77
91
  class CreateConnectionInput < Struct.new(
78
92
  :provider_type,
79
- :connection_name)
93
+ :connection_name,
94
+ :tags)
80
95
  include Aws::Structure
81
96
  end
82
97
 
@@ -90,10 +105,15 @@ module Aws::CodeStarconnections
90
105
  # </note>
91
106
  # @return [String]
92
107
  #
108
+ # @!attribute [rw] tags
109
+ # Specifies the tags applied to the resource.
110
+ # @return [Array<Types::Tag>]
111
+ #
93
112
  # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateConnectionOutput AWS API Documentation
94
113
  #
95
114
  class CreateConnectionOutput < Struct.new(
96
- :connection_arn)
115
+ :connection_arn,
116
+ :tags)
97
117
  include Aws::Structure
98
118
  end
99
119
 
@@ -218,6 +238,37 @@ module Aws::CodeStarconnections
218
238
  include Aws::Structure
219
239
  end
220
240
 
241
+ # @note When making an API call, you may pass ListTagsForResourceInput
242
+ # data as a hash:
243
+ #
244
+ # {
245
+ # resource_arn: "AmazonResourceName", # required
246
+ # }
247
+ #
248
+ # @!attribute [rw] resource_arn
249
+ # The Amazon Resource Name (ARN) of the resource for which you want to
250
+ # get information about tags, if any.
251
+ # @return [String]
252
+ #
253
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListTagsForResourceInput AWS API Documentation
254
+ #
255
+ class ListTagsForResourceInput < Struct.new(
256
+ :resource_arn)
257
+ include Aws::Structure
258
+ end
259
+
260
+ # @!attribute [rw] tags
261
+ # A list of tag key and value pairs associated with the specified
262
+ # resource.
263
+ # @return [Array<Types::Tag>]
264
+ #
265
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListTagsForResourceOutput AWS API Documentation
266
+ #
267
+ class ListTagsForResourceOutput < Struct.new(
268
+ :tags)
269
+ include Aws::Structure
270
+ end
271
+
221
272
  # Resource not found. Verify the connection resource ARN and try again.
222
273
  #
223
274
  # @!attribute [rw] message
@@ -230,5 +281,95 @@ module Aws::CodeStarconnections
230
281
  include Aws::Structure
231
282
  end
232
283
 
284
+ # A tag is a key-value pair that is used to manage the resource.
285
+ #
286
+ # This tag is available for use by AWS services that support tags.
287
+ #
288
+ # @note When making an API call, you may pass Tag
289
+ # data as a hash:
290
+ #
291
+ # {
292
+ # key: "TagKey", # required
293
+ # value: "TagValue", # required
294
+ # }
295
+ #
296
+ # @!attribute [rw] key
297
+ # The tag's key.
298
+ # @return [String]
299
+ #
300
+ # @!attribute [rw] value
301
+ # The tag's value.
302
+ # @return [String]
303
+ #
304
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/Tag AWS API Documentation
305
+ #
306
+ class Tag < Struct.new(
307
+ :key,
308
+ :value)
309
+ include Aws::Structure
310
+ end
311
+
312
+ # @note When making an API call, you may pass TagResourceInput
313
+ # data as a hash:
314
+ #
315
+ # {
316
+ # resource_arn: "AmazonResourceName", # required
317
+ # tags: [ # required
318
+ # {
319
+ # key: "TagKey", # required
320
+ # value: "TagValue", # required
321
+ # },
322
+ # ],
323
+ # }
324
+ #
325
+ # @!attribute [rw] resource_arn
326
+ # The Amazon Resource Name (ARN) of the resource to which you want to
327
+ # add or update tags.
328
+ # @return [String]
329
+ #
330
+ # @!attribute [rw] tags
331
+ # The tags you want to modify or add to the resource.
332
+ # @return [Array<Types::Tag>]
333
+ #
334
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/TagResourceInput AWS API Documentation
335
+ #
336
+ class TagResourceInput < Struct.new(
337
+ :resource_arn,
338
+ :tags)
339
+ include Aws::Structure
340
+ end
341
+
342
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/TagResourceOutput AWS API Documentation
343
+ #
344
+ class TagResourceOutput < Aws::EmptyStructure; end
345
+
346
+ # @note When making an API call, you may pass UntagResourceInput
347
+ # data as a hash:
348
+ #
349
+ # {
350
+ # resource_arn: "AmazonResourceName", # required
351
+ # tag_keys: ["TagKey"], # required
352
+ # }
353
+ #
354
+ # @!attribute [rw] resource_arn
355
+ # The Amazon Resource Name (ARN) of the resource to remove tags from.
356
+ # @return [String]
357
+ #
358
+ # @!attribute [rw] tag_keys
359
+ # The list of keys for the tags to be removed from the resource.
360
+ # @return [Array<String>]
361
+ #
362
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UntagResourceInput AWS API Documentation
363
+ #
364
+ class UntagResourceInput < Struct.new(
365
+ :resource_arn,
366
+ :tag_keys)
367
+ include Aws::Structure
368
+ end
369
+
370
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UntagResourceOutput AWS API Documentation
371
+ #
372
+ class UntagResourceOutput < Aws::EmptyStructure; end
373
+
233
374
  end
234
375
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-codestarconnections
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.5.1
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: 2019-12-19 00:00:00.000000000 Z
11
+ date: 2020-06-11 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.71.0
22
+ version: 3.99.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.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.2.3
84
+ rubygems_version: 2.7.6.2
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: AWS SDK for Ruby - AWS CodeStar connections