aws-sdk-kafka 1.3.0 → 1.4.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
  SHA1:
3
- metadata.gz: af5795f535302801571b8f312ccaf41fff4059ec
4
- data.tar.gz: 6c651aa93dff5dd43e466949c79a6d94b415e5ad
3
+ metadata.gz: f33c8f80f0726893914b2e5bce83096756cec8f8
4
+ data.tar.gz: baeddba8314f65ca0da6e1916a4aeaa937905152
5
5
  SHA512:
6
- metadata.gz: '08d74639297f12baee8be6cc925f4a550134e72df870db312d0b689e76a186c094dc6a43f18377259dcdc2e216490972e1dd6dd434c2943bcf34be116ee063dd'
7
- data.tar.gz: 0af47d2f094b8465591079685ede8434c812b74bc1ff068d6aadde8fbd9cc751061a8bb6967cc53bb684b02cd43ad628519bc6c72d26daa143854e08fd2395cc
6
+ metadata.gz: 867eca2c301822b57b2b7c18d40571696a3683af7798d1d34ee1e0c7da4e0a05eb1a33b089c33aa4a2aec39657bb36779457e1fe0c9dec5cf073f9f7e70a10a0
7
+ data.tar.gz: 62eb51d16e17bf11e924f00248ca0e24f9b1da014e990ff853819ef8cbaac37a9347f1a8f8ae1482710c00117deb56a06b6f3eb904196f728a67f0fae25a0da6
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-kafka/customizations'
42
42
  # @service
43
43
  module Aws::Kafka
44
44
 
45
- GEM_VERSION = '1.3.0'
45
+ GEM_VERSION = '1.4.0'
46
46
 
47
47
  end
@@ -199,6 +199,49 @@ module Aws::Kafka
199
199
  # When `true`, request parameters are validated before
200
200
  # sending the request.
201
201
  #
202
+ # @option options [URI::HTTP,String] :http_proxy A proxy to send
203
+ # requests through. Formatted like 'http://proxy.com:123'.
204
+ #
205
+ # @option options [Float] :http_open_timeout (15) The number of
206
+ # seconds to wait when opening a HTTP session before rasing a
207
+ # `Timeout::Error`.
208
+ #
209
+ # @option options [Integer] :http_read_timeout (60) The default
210
+ # number of seconds to wait for response data. This value can
211
+ # safely be set
212
+ # per-request on the session yeidled by {#session_for}.
213
+ #
214
+ # @option options [Float] :http_idle_timeout (5) The number of
215
+ # seconds a connection is allowed to sit idble before it is
216
+ # considered stale. Stale connections are closed and removed
217
+ # from the pool before making a request.
218
+ #
219
+ # @option options [Float] :http_continue_timeout (1) The number of
220
+ # seconds to wait for a 100-continue response before sending the
221
+ # request body. This option has no effect unless the request has
222
+ # "Expect" header set to "100-continue". Defaults to `nil` which
223
+ # disables this behaviour. This value can safely be set per
224
+ # request on the session yeidled by {#session_for}.
225
+ #
226
+ # @option options [Boolean] :http_wire_trace (false) When `true`,
227
+ # HTTP debug output will be sent to the `:logger`.
228
+ #
229
+ # @option options [Boolean] :ssl_verify_peer (true) When `true`,
230
+ # SSL peer certificates are verified when establishing a
231
+ # connection.
232
+ #
233
+ # @option options [String] :ssl_ca_bundle Full path to the SSL
234
+ # certificate authority bundle file that should be used when
235
+ # verifying peer certificates. If you do not pass
236
+ # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
237
+ # will be used if available.
238
+ #
239
+ # @option options [String] :ssl_ca_directory Full path of the
240
+ # directory that contains the unbundled SSL certificate
241
+ # authority files for verifying peer certificates. If you do
242
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
243
+ # system default will be used if available.
244
+ #
202
245
  def initialize(*args)
203
246
  super
204
247
  end
@@ -482,6 +525,85 @@ module Aws::Kafka
482
525
  req.send_request(options)
483
526
  end
484
527
 
528
+ # List tags for a resource.
529
+ #
530
+ # @option params [required, String] :resource_arn
531
+ #
532
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
533
+ #
534
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash<String,String>
535
+ #
536
+ # @example Request syntax with placeholder values
537
+ #
538
+ # resp = client.list_tags_for_resource({
539
+ # resource_arn: "__string", # required
540
+ # })
541
+ #
542
+ # @example Response structure
543
+ #
544
+ # resp.tags #=> Hash
545
+ # resp.tags["__string"] #=> String
546
+ #
547
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListTagsForResource AWS API Documentation
548
+ #
549
+ # @overload list_tags_for_resource(params = {})
550
+ # @param [Hash] params ({})
551
+ def list_tags_for_resource(params = {}, options = {})
552
+ req = build_request(:list_tags_for_resource, params)
553
+ req.send_request(options)
554
+ end
555
+
556
+ # Add tags to a resource
557
+ #
558
+ # @option params [required, String] :resource_arn
559
+ #
560
+ # @option params [required, Hash<String,String>] :tags
561
+ # The Key value pairs indicating resource tags.
562
+ #
563
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
564
+ #
565
+ # @example Request syntax with placeholder values
566
+ #
567
+ # resp = client.tag_resource({
568
+ # resource_arn: "__string", # required
569
+ # tags: { # required
570
+ # "__string" => "__string",
571
+ # },
572
+ # })
573
+ #
574
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/TagResource AWS API Documentation
575
+ #
576
+ # @overload tag_resource(params = {})
577
+ # @param [Hash] params ({})
578
+ def tag_resource(params = {}, options = {})
579
+ req = build_request(:tag_resource, params)
580
+ req.send_request(options)
581
+ end
582
+
583
+ # Remove tags from a resource.
584
+ #
585
+ # @option params [required, String] :resource_arn
586
+ #
587
+ # @option params [required, Array<String>] :tag_keys
588
+ #
589
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
590
+ #
591
+ # @example Request syntax with placeholder values
592
+ #
593
+ # resp = client.untag_resource({
594
+ # resource_arn: "__string", # required
595
+ # tag_keys: ["__string"], # required
596
+ # })
597
+ #
598
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UntagResource AWS API Documentation
599
+ #
600
+ # @overload untag_resource(params = {})
601
+ # @param [Hash] params ({})
602
+ def untag_resource(params = {}, options = {})
603
+ req = build_request(:untag_resource, params)
604
+ req.send_request(options)
605
+ end
606
+
485
607
  # @!endgroup
486
608
 
487
609
  # @param params ({})
@@ -495,7 +617,7 @@ module Aws::Kafka
495
617
  params: params,
496
618
  config: config)
497
619
  context[:gem_name] = 'aws-sdk-kafka'
498
- context[:gem_version] = '1.3.0'
620
+ context[:gem_version] = '1.4.0'
499
621
  Seahorse::Client::Request.new(handlers, context)
500
622
  end
501
623
 
@@ -38,14 +38,18 @@ module Aws::Kafka
38
38
  ListClustersResponse = Shapes::StructureShape.new(name: 'ListClustersResponse')
39
39
  ListNodesRequest = Shapes::StructureShape.new(name: 'ListNodesRequest')
40
40
  ListNodesResponse = Shapes::StructureShape.new(name: 'ListNodesResponse')
41
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
42
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
41
43
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
42
44
  NodeInfo = Shapes::StructureShape.new(name: 'NodeInfo')
43
45
  NodeType = Shapes::StringShape.new(name: 'NodeType')
44
46
  NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
45
47
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
46
48
  StorageInfo = Shapes::StructureShape.new(name: 'StorageInfo')
49
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
47
50
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
48
51
  UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
52
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
49
53
  ZookeeperNodeInfo = Shapes::StructureShape.new(name: 'ZookeeperNodeInfo')
50
54
  __boolean = Shapes::BooleanShape.new(name: '__boolean')
51
55
  __double = Shapes::FloatShape.new(name: '__double')
@@ -56,6 +60,7 @@ module Aws::Kafka
56
60
  __listOfNodeInfo = Shapes::ListShape.new(name: '__listOfNodeInfo')
57
61
  __listOf__string = Shapes::ListShape.new(name: '__listOf__string')
58
62
  __long = Shapes::IntegerShape.new(name: '__long')
63
+ __mapOf__string = Shapes::MapShape.new(name: '__mapOf__string')
59
64
  __string = Shapes::StringShape.new(name: '__string')
60
65
  __stringMin1Max128 = Shapes::StringShape.new(name: '__stringMin1Max128')
61
66
  __stringMin1Max64 = Shapes::StringShape.new(name: '__stringMin1Max64')
@@ -159,6 +164,12 @@ module Aws::Kafka
159
164
  ListNodesResponse.add_member(:node_info_list, Shapes::ShapeRef.new(shape: __listOfNodeInfo, location_name: "nodeInfoList"))
160
165
  ListNodesResponse.struct_class = Types::ListNodesResponse
161
166
 
167
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resourceArn"))
168
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
169
+
170
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
171
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
172
+
162
173
  NodeInfo.add_member(:added_to_cluster_time, Shapes::ShapeRef.new(shape: __string, location_name: "addedToClusterTime"))
163
174
  NodeInfo.add_member(:broker_node_info, Shapes::ShapeRef.new(shape: BrokerNodeInfo, location_name: "brokerNodeInfo"))
164
175
  NodeInfo.add_member(:instance_type, Shapes::ShapeRef.new(shape: __string, location_name: "instanceType"))
@@ -170,6 +181,14 @@ module Aws::Kafka
170
181
  StorageInfo.add_member(:ebs_storage_info, Shapes::ShapeRef.new(shape: EBSStorageInfo, location_name: "ebsStorageInfo"))
171
182
  StorageInfo.struct_class = Types::StorageInfo
172
183
 
184
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resourceArn"))
185
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, required: true, location_name: "tags"))
186
+ TagResourceRequest.struct_class = Types::TagResourceRequest
187
+
188
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resourceArn"))
189
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location: "querystring", location_name: "tagKeys"))
190
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
191
+
173
192
  ZookeeperNodeInfo.add_member(:attached_eni_id, Shapes::ShapeRef.new(shape: __string, location_name: "attachedENIId"))
174
193
  ZookeeperNodeInfo.add_member(:client_vpc_ip_address, Shapes::ShapeRef.new(shape: __string, location_name: "clientVpcIpAddress"))
175
194
  ZookeeperNodeInfo.add_member(:zookeeper_id, Shapes::ShapeRef.new(shape: __double, location_name: "zookeeperId"))
@@ -182,6 +201,9 @@ module Aws::Kafka
182
201
 
183
202
  __listOf__string.member = Shapes::ShapeRef.new(shape: __string)
184
203
 
204
+ __mapOf__string.key = Shapes::ShapeRef.new(shape: __string)
205
+ __mapOf__string.value = Shapes::ShapeRef.new(shape: __string)
206
+
185
207
 
186
208
  # @api private
187
209
  API = Seahorse::Model::Api.new.tap do |api|
@@ -277,6 +299,39 @@ module Aws::Kafka
277
299
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
278
300
  o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
279
301
  end)
302
+
303
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
304
+ o.name = "ListTagsForResource"
305
+ o.http_method = "GET"
306
+ o.http_request_uri = "/v1/tags/{resourceArn}"
307
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
308
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
309
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
310
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
311
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
312
+ end)
313
+
314
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
315
+ o.name = "TagResource"
316
+ o.http_method = "POST"
317
+ o.http_request_uri = "/v1/tags/{resourceArn}"
318
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
319
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
320
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
321
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
322
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
323
+ end)
324
+
325
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
326
+ o.name = "UntagResource"
327
+ o.http_method = "DELETE"
328
+ o.http_request_uri = "/v1/tags/{resourceArn}"
329
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
330
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
331
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
332
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
333
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
334
+ end)
280
335
  end
281
336
 
282
337
  end
@@ -562,6 +562,36 @@ module Aws::Kafka
562
562
  include Aws::Structure
563
563
  end
564
564
 
565
+ # @note When making an API call, you may pass ListTagsForResourceRequest
566
+ # data as a hash:
567
+ #
568
+ # {
569
+ # resource_arn: "__string", # required
570
+ # }
571
+ #
572
+ # @!attribute [rw] resource_arn
573
+ # @return [String]
574
+ #
575
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListTagsForResourceRequest AWS API Documentation
576
+ #
577
+ class ListTagsForResourceRequest < Struct.new(
578
+ :resource_arn)
579
+ include Aws::Structure
580
+ end
581
+
582
+ # List tags for a resource
583
+ #
584
+ # @!attribute [rw] tags
585
+ # The Key value pairs indicating resource tags.
586
+ # @return [Hash<String,String>]
587
+ #
588
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListTagsForResourceResponse AWS API Documentation
589
+ #
590
+ class ListTagsForResourceResponse < Struct.new(
591
+ :tags)
592
+ include Aws::Structure
593
+ end
594
+
565
595
  # The node information object.
566
596
  #
567
597
  # @!attribute [rw] added_to_cluster_time
@@ -623,6 +653,55 @@ module Aws::Kafka
623
653
  include Aws::Structure
624
654
  end
625
655
 
656
+ # Add tags for a resource
657
+ #
658
+ # @note When making an API call, you may pass TagResourceRequest
659
+ # data as a hash:
660
+ #
661
+ # {
662
+ # resource_arn: "__string", # required
663
+ # tags: { # required
664
+ # "__string" => "__string",
665
+ # },
666
+ # }
667
+ #
668
+ # @!attribute [rw] resource_arn
669
+ # @return [String]
670
+ #
671
+ # @!attribute [rw] tags
672
+ # The Key value pairs indicating resource tags.
673
+ # @return [Hash<String,String>]
674
+ #
675
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/TagResourceRequest AWS API Documentation
676
+ #
677
+ class TagResourceRequest < Struct.new(
678
+ :resource_arn,
679
+ :tags)
680
+ include Aws::Structure
681
+ end
682
+
683
+ # @note When making an API call, you may pass UntagResourceRequest
684
+ # data as a hash:
685
+ #
686
+ # {
687
+ # resource_arn: "__string", # required
688
+ # tag_keys: ["__string"], # required
689
+ # }
690
+ #
691
+ # @!attribute [rw] resource_arn
692
+ # @return [String]
693
+ #
694
+ # @!attribute [rw] tag_keys
695
+ # @return [Array<String>]
696
+ #
697
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UntagResourceRequest AWS API Documentation
698
+ #
699
+ class UntagResourceRequest < Struct.new(
700
+ :resource_arn,
701
+ :tag_keys)
702
+ include Aws::Structure
703
+ end
704
+
626
705
  # Zookeeper node information.
627
706
  #
628
707
  # @!attribute [rw] attached_eni_id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.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: 2019-03-21 00:00:00.000000000 Z
11
+ date: 2019-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -59,7 +59,7 @@ files:
59
59
  - lib/aws-sdk-kafka/errors.rb
60
60
  - lib/aws-sdk-kafka/resource.rb
61
61
  - lib/aws-sdk-kafka/types.rb
62
- homepage: http://github.com/aws/aws-sdk-ruby
62
+ homepage: https://github.com/aws/aws-sdk-ruby
63
63
  licenses:
64
64
  - Apache-2.0
65
65
  metadata: