aws-sdk-kafka 1.99.0 → 1.100.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: c063b5798cda8bb65dc84083a92c27994e0f6e69abef4838c1f0058d30331190
4
- data.tar.gz: ac60619299b868989244c726090165614a8d3c4afeaa609d8dc6227255345f2b
3
+ metadata.gz: a2001c28417d80798371b024060f7eccc34bf78ec216b8397c0fa20c4dd9cb15
4
+ data.tar.gz: ca4b601cbd2ddd8d89d09e91bdcd641439aebc66290bfa4c4a02e6af38d98fb8
5
5
  SHA512:
6
- metadata.gz: ffc8353853da5f35f602c2d4becead1bc3cf3024203fb375a02c53b1d9a5118fe91cd7bbff26ed96ee886cabc26470d54b027f1d5700b168402e60ca90e573f5
7
- data.tar.gz: ce66ea119c73ef6dfc5be02188f82602dd7fac48564a9edc0ef56ebbd30ffd88372a3924897a6eeb9b7495fffecbbdc6faf925ecba0580153e2648d21c9d9d7c
6
+ metadata.gz: d32d0f5af183e261c4cc9f89ccd7c7eb8907d18af0527709d7cf06d22b774ed57064269268ef79c4c8c248afe5e65f586690b33fdcbc88a66b57b397333d7302
7
+ data.tar.gz: e7c2fd8a587f29596e38a40b128ec99debb886c035fa059db5658cfbf87fe844c3e9fdfbca4eb63bfe8f4da9211eb2c7cbe6ace4bc7b4ffe1bf64cc4af20b6e7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.100.0 (2025-11-18)
5
+ ------------------
6
+
7
+ * Feature - Amazon MSK adds three new APIs, ListTopics, DescribeTopic, and DescribeTopicPartitions for viewing Kafka topics in your MSK clusters.
8
+
4
9
  1.99.0 (2025-11-10)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.99.0
1
+ 1.100.0
@@ -1757,6 +1757,92 @@ module Aws::Kafka
1757
1757
  req.send_request(options)
1758
1758
  end
1759
1759
 
1760
+ # Returns topic details of this topic on a MSK cluster.
1761
+ #
1762
+ # @option params [required, String] :cluster_arn
1763
+ #
1764
+ # @option params [required, String] :topic_name
1765
+ #
1766
+ # @return [Types::DescribeTopicResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1767
+ #
1768
+ # * {Types::DescribeTopicResponse#topic_arn #topic_arn} => String
1769
+ # * {Types::DescribeTopicResponse#topic_name #topic_name} => String
1770
+ # * {Types::DescribeTopicResponse#replication_factor #replication_factor} => Integer
1771
+ # * {Types::DescribeTopicResponse#partition_count #partition_count} => Integer
1772
+ # * {Types::DescribeTopicResponse#configs #configs} => String
1773
+ # * {Types::DescribeTopicResponse#status #status} => String
1774
+ #
1775
+ # @example Request syntax with placeholder values
1776
+ #
1777
+ # resp = client.describe_topic({
1778
+ # cluster_arn: "__string", # required
1779
+ # topic_name: "__string", # required
1780
+ # })
1781
+ #
1782
+ # @example Response structure
1783
+ #
1784
+ # resp.topic_arn #=> String
1785
+ # resp.topic_name #=> String
1786
+ # resp.replication_factor #=> Integer
1787
+ # resp.partition_count #=> Integer
1788
+ # resp.configs #=> String
1789
+ # resp.status #=> String, one of "CREATING", "UPDATING", "DELETING", "ACTIVE"
1790
+ #
1791
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeTopic AWS API Documentation
1792
+ #
1793
+ # @overload describe_topic(params = {})
1794
+ # @param [Hash] params ({})
1795
+ def describe_topic(params = {}, options = {})
1796
+ req = build_request(:describe_topic, params)
1797
+ req.send_request(options)
1798
+ end
1799
+
1800
+ # Returns partition details of this topic on a MSK cluster.
1801
+ #
1802
+ # @option params [required, String] :cluster_arn
1803
+ #
1804
+ # @option params [required, String] :topic_name
1805
+ #
1806
+ # @option params [Integer] :max_results
1807
+ #
1808
+ # @option params [String] :next_token
1809
+ #
1810
+ # @return [Types::DescribeTopicPartitionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1811
+ #
1812
+ # * {Types::DescribeTopicPartitionsResponse#partitions #partitions} => Array<Types::TopicPartitionInfo>
1813
+ # * {Types::DescribeTopicPartitionsResponse#next_token #next_token} => String
1814
+ #
1815
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1816
+ #
1817
+ # @example Request syntax with placeholder values
1818
+ #
1819
+ # resp = client.describe_topic_partitions({
1820
+ # cluster_arn: "__string", # required
1821
+ # topic_name: "__string", # required
1822
+ # max_results: 1,
1823
+ # next_token: "__string",
1824
+ # })
1825
+ #
1826
+ # @example Response structure
1827
+ #
1828
+ # resp.partitions #=> Array
1829
+ # resp.partitions[0].partition #=> Integer
1830
+ # resp.partitions[0].leader #=> Integer
1831
+ # resp.partitions[0].replicas #=> Array
1832
+ # resp.partitions[0].replicas[0] #=> Integer
1833
+ # resp.partitions[0].isr #=> Array
1834
+ # resp.partitions[0].isr[0] #=> Integer
1835
+ # resp.next_token #=> String
1836
+ #
1837
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeTopicPartitions AWS API Documentation
1838
+ #
1839
+ # @overload describe_topic_partitions(params = {})
1840
+ # @param [Hash] params ({})
1841
+ def describe_topic_partitions(params = {}, options = {})
1842
+ req = build_request(:describe_topic_partitions, params)
1843
+ req.send_request(options)
1844
+ end
1845
+
1760
1846
  # Displays information about the specified Amazon MSK VPC connection.
1761
1847
  #
1762
1848
  # @option params [required, String] :arn
@@ -2674,6 +2760,51 @@ module Aws::Kafka
2674
2760
  req.send_request(options)
2675
2761
  end
2676
2762
 
2763
+ # List topics in a MSK cluster.
2764
+ #
2765
+ # @option params [required, String] :cluster_arn
2766
+ #
2767
+ # @option params [Integer] :max_results
2768
+ #
2769
+ # @option params [String] :next_token
2770
+ #
2771
+ # @option params [String] :topic_name_filter
2772
+ #
2773
+ # @return [Types::ListTopicsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2774
+ #
2775
+ # * {Types::ListTopicsResponse#topics #topics} => Array<Types::TopicInfo>
2776
+ # * {Types::ListTopicsResponse#next_token #next_token} => String
2777
+ #
2778
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2779
+ #
2780
+ # @example Request syntax with placeholder values
2781
+ #
2782
+ # resp = client.list_topics({
2783
+ # cluster_arn: "__string", # required
2784
+ # max_results: 1,
2785
+ # next_token: "__string",
2786
+ # topic_name_filter: "__string",
2787
+ # })
2788
+ #
2789
+ # @example Response structure
2790
+ #
2791
+ # resp.topics #=> Array
2792
+ # resp.topics[0].topic_arn #=> String
2793
+ # resp.topics[0].topic_name #=> String
2794
+ # resp.topics[0].replication_factor #=> Integer
2795
+ # resp.topics[0].partition_count #=> Integer
2796
+ # resp.topics[0].out_of_sync_replica_count #=> Integer
2797
+ # resp.next_token #=> String
2798
+ #
2799
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListTopics AWS API Documentation
2800
+ #
2801
+ # @overload list_topics(params = {})
2802
+ # @param [Hash] params ({})
2803
+ def list_topics(params = {}, options = {})
2804
+ req = build_request(:list_topics, params)
2805
+ req.send_request(options)
2806
+ end
2807
+
2677
2808
  # @option params [required, String] :cluster_arn
2678
2809
  #
2679
2810
  # @option params [required, String] :vpc_connection_arn
@@ -3491,7 +3622,7 @@ module Aws::Kafka
3491
3622
  tracer: tracer
3492
3623
  )
3493
3624
  context[:gem_name] = 'aws-sdk-kafka'
3494
- context[:gem_version] = '1.99.0'
3625
+ context[:gem_version] = '1.100.0'
3495
3626
  Seahorse::Client::Request.new(handlers, context)
3496
3627
  end
3497
3628
 
@@ -87,6 +87,10 @@ module Aws::Kafka
87
87
  DescribeConfigurationRevisionResponse = Shapes::StructureShape.new(name: 'DescribeConfigurationRevisionResponse')
88
88
  DescribeReplicatorRequest = Shapes::StructureShape.new(name: 'DescribeReplicatorRequest')
89
89
  DescribeReplicatorResponse = Shapes::StructureShape.new(name: 'DescribeReplicatorResponse')
90
+ DescribeTopicPartitionsRequest = Shapes::StructureShape.new(name: 'DescribeTopicPartitionsRequest')
91
+ DescribeTopicPartitionsResponse = Shapes::StructureShape.new(name: 'DescribeTopicPartitionsResponse')
92
+ DescribeTopicRequest = Shapes::StructureShape.new(name: 'DescribeTopicRequest')
93
+ DescribeTopicResponse = Shapes::StructureShape.new(name: 'DescribeTopicResponse')
90
94
  DescribeVpcConnectionRequest = Shapes::StructureShape.new(name: 'DescribeVpcConnectionRequest')
91
95
  DescribeVpcConnectionResponse = Shapes::StructureShape.new(name: 'DescribeVpcConnectionResponse')
92
96
  EBSStorageInfo = Shapes::StructureShape.new(name: 'EBSStorageInfo')
@@ -138,6 +142,8 @@ module Aws::Kafka
138
142
  ListScramSecretsResponse = Shapes::StructureShape.new(name: 'ListScramSecretsResponse')
139
143
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
140
144
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
145
+ ListTopicsRequest = Shapes::StructureShape.new(name: 'ListTopicsRequest')
146
+ ListTopicsResponse = Shapes::StructureShape.new(name: 'ListTopicsResponse')
141
147
  ListVpcConnectionsRequest = Shapes::StructureShape.new(name: 'ListVpcConnectionsRequest')
142
148
  ListVpcConnectionsResponse = Shapes::StructureShape.new(name: 'ListVpcConnectionsResponse')
143
149
  LoggingInfo = Shapes::StructureShape.new(name: 'LoggingInfo')
@@ -189,8 +195,11 @@ module Aws::Kafka
189
195
  TargetCompressionType = Shapes::StringShape.new(name: 'TargetCompressionType')
190
196
  Tls = Shapes::StructureShape.new(name: 'Tls')
191
197
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
198
+ TopicInfo = Shapes::StructureShape.new(name: 'TopicInfo')
199
+ TopicPartitionInfo = Shapes::StructureShape.new(name: 'TopicPartitionInfo')
192
200
  TopicReplication = Shapes::StructureShape.new(name: 'TopicReplication')
193
201
  TopicReplicationUpdate = Shapes::StructureShape.new(name: 'TopicReplicationUpdate')
202
+ TopicState = Shapes::StringShape.new(name: 'TopicState')
194
203
  Unauthenticated = Shapes::StructureShape.new(name: 'Unauthenticated')
195
204
  UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
196
205
  UnprocessedScramSecret = Shapes::StructureShape.new(name: 'UnprocessedScramSecret')
@@ -237,6 +246,7 @@ module Aws::Kafka
237
246
  __boolean = Shapes::BooleanShape.new(name: '__boolean')
238
247
  __double = Shapes::FloatShape.new(name: '__double')
239
248
  __integer = Shapes::IntegerShape.new(name: '__integer')
249
+ __integerMin1 = Shapes::IntegerShape.new(name: '__integerMin1')
240
250
  __integerMin1Max15 = Shapes::IntegerShape.new(name: '__integerMin1Max15')
241
251
  __integerMin1Max16384 = Shapes::IntegerShape.new(name: '__integerMin1Max16384')
242
252
  __listOfBrokerEBSVolumeInfo = Shapes::ListShape.new(name: '__listOfBrokerEBSVolumeInfo')
@@ -258,10 +268,13 @@ module Aws::Kafka
258
268
  __listOfReplicationInfoDescription = Shapes::ListShape.new(name: '__listOfReplicationInfoDescription')
259
269
  __listOfReplicationInfoSummary = Shapes::ListShape.new(name: '__listOfReplicationInfoSummary')
260
270
  __listOfReplicatorSummary = Shapes::ListShape.new(name: '__listOfReplicatorSummary')
271
+ __listOfTopicInfo = Shapes::ListShape.new(name: '__listOfTopicInfo')
272
+ __listOfTopicPartitionInfo = Shapes::ListShape.new(name: '__listOfTopicPartitionInfo')
261
273
  __listOfUnprocessedScramSecret = Shapes::ListShape.new(name: '__listOfUnprocessedScramSecret')
262
274
  __listOfVpcConfig = Shapes::ListShape.new(name: '__listOfVpcConfig')
263
275
  __listOfVpcConnection = Shapes::ListShape.new(name: '__listOfVpcConnection')
264
276
  __listOf__double = Shapes::ListShape.new(name: '__listOf__double')
277
+ __listOf__integer = Shapes::ListShape.new(name: '__listOf__integer')
265
278
  __listOf__string = Shapes::ListShape.new(name: '__listOf__string')
266
279
  __listOf__stringMax249 = Shapes::ListShape.new(name: '__listOf__stringMax249')
267
280
  __listOf__stringMax256 = Shapes::ListShape.new(name: '__listOf__stringMax256')
@@ -660,6 +673,28 @@ module Aws::Kafka
660
673
  DescribeReplicatorResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
661
674
  DescribeReplicatorResponse.struct_class = Types::DescribeReplicatorResponse
662
675
 
676
+ DescribeTopicPartitionsRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
677
+ DescribeTopicPartitionsRequest.add_member(:topic_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "topicName"))
678
+ DescribeTopicPartitionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
679
+ DescribeTopicPartitionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
680
+ DescribeTopicPartitionsRequest.struct_class = Types::DescribeTopicPartitionsRequest
681
+
682
+ DescribeTopicPartitionsResponse.add_member(:partitions, Shapes::ShapeRef.new(shape: __listOfTopicPartitionInfo, location_name: "partitions"))
683
+ DescribeTopicPartitionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
684
+ DescribeTopicPartitionsResponse.struct_class = Types::DescribeTopicPartitionsResponse
685
+
686
+ DescribeTopicRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
687
+ DescribeTopicRequest.add_member(:topic_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "topicName"))
688
+ DescribeTopicRequest.struct_class = Types::DescribeTopicRequest
689
+
690
+ DescribeTopicResponse.add_member(:topic_arn, Shapes::ShapeRef.new(shape: __string, location_name: "topicArn"))
691
+ DescribeTopicResponse.add_member(:topic_name, Shapes::ShapeRef.new(shape: __string, location_name: "topicName"))
692
+ DescribeTopicResponse.add_member(:replication_factor, Shapes::ShapeRef.new(shape: __integer, location_name: "replicationFactor"))
693
+ DescribeTopicResponse.add_member(:partition_count, Shapes::ShapeRef.new(shape: __integer, location_name: "partitionCount"))
694
+ DescribeTopicResponse.add_member(:configs, Shapes::ShapeRef.new(shape: __string, location_name: "configs"))
695
+ DescribeTopicResponse.add_member(:status, Shapes::ShapeRef.new(shape: TopicState, location_name: "status"))
696
+ DescribeTopicResponse.struct_class = Types::DescribeTopicResponse
697
+
663
698
  DescribeVpcConnectionRequest.add_member(:arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "arn"))
664
699
  DescribeVpcConnectionRequest.struct_class = Types::DescribeVpcConnectionRequest
665
700
 
@@ -871,6 +906,16 @@ module Aws::Kafka
871
906
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
872
907
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
873
908
 
909
+ ListTopicsRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
910
+ ListTopicsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
911
+ ListTopicsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
912
+ ListTopicsRequest.add_member(:topic_name_filter, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "topicNameFilter"))
913
+ ListTopicsRequest.struct_class = Types::ListTopicsRequest
914
+
915
+ ListTopicsResponse.add_member(:topics, Shapes::ShapeRef.new(shape: __listOfTopicInfo, location_name: "topics"))
916
+ ListTopicsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
917
+ ListTopicsResponse.struct_class = Types::ListTopicsResponse
918
+
874
919
  ListVpcConnectionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
875
920
  ListVpcConnectionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
876
921
  ListVpcConnectionsRequest.struct_class = Types::ListVpcConnectionsRequest
@@ -1079,6 +1124,19 @@ module Aws::Kafka
1079
1124
  TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
1080
1125
  TooManyRequestsException.struct_class = Types::TooManyRequestsException
1081
1126
 
1127
+ TopicInfo.add_member(:topic_arn, Shapes::ShapeRef.new(shape: __string, location_name: "topicArn"))
1128
+ TopicInfo.add_member(:topic_name, Shapes::ShapeRef.new(shape: __string, location_name: "topicName"))
1129
+ TopicInfo.add_member(:replication_factor, Shapes::ShapeRef.new(shape: __integer, location_name: "replicationFactor"))
1130
+ TopicInfo.add_member(:partition_count, Shapes::ShapeRef.new(shape: __integer, location_name: "partitionCount"))
1131
+ TopicInfo.add_member(:out_of_sync_replica_count, Shapes::ShapeRef.new(shape: __integer, location_name: "outOfSyncReplicaCount"))
1132
+ TopicInfo.struct_class = Types::TopicInfo
1133
+
1134
+ TopicPartitionInfo.add_member(:partition, Shapes::ShapeRef.new(shape: __integer, location_name: "partition"))
1135
+ TopicPartitionInfo.add_member(:leader, Shapes::ShapeRef.new(shape: __integer, location_name: "leader"))
1136
+ TopicPartitionInfo.add_member(:replicas, Shapes::ShapeRef.new(shape: __listOf__integer, location_name: "replicas"))
1137
+ TopicPartitionInfo.add_member(:isr, Shapes::ShapeRef.new(shape: __listOf__integer, location_name: "isr"))
1138
+ TopicPartitionInfo.struct_class = Types::TopicPartitionInfo
1139
+
1082
1140
  TopicReplication.add_member(:copy_access_control_lists_for_topics, Shapes::ShapeRef.new(shape: __boolean, location_name: "copyAccessControlListsForTopics"))
1083
1141
  TopicReplication.add_member(:copy_topic_configurations, Shapes::ShapeRef.new(shape: __boolean, location_name: "copyTopicConfigurations"))
1084
1142
  TopicReplication.add_member(:detect_and_copy_new_topics, Shapes::ShapeRef.new(shape: __boolean, location_name: "detectAndCopyNewTopics"))
@@ -1321,6 +1379,10 @@ module Aws::Kafka
1321
1379
 
1322
1380
  __listOfReplicatorSummary.member = Shapes::ShapeRef.new(shape: ReplicatorSummary)
1323
1381
 
1382
+ __listOfTopicInfo.member = Shapes::ShapeRef.new(shape: TopicInfo)
1383
+
1384
+ __listOfTopicPartitionInfo.member = Shapes::ShapeRef.new(shape: TopicPartitionInfo)
1385
+
1324
1386
  __listOfUnprocessedScramSecret.member = Shapes::ShapeRef.new(shape: UnprocessedScramSecret)
1325
1387
 
1326
1388
  __listOfVpcConfig.member = Shapes::ShapeRef.new(shape: VpcConfig)
@@ -1329,6 +1391,8 @@ module Aws::Kafka
1329
1391
 
1330
1392
  __listOf__double.member = Shapes::ShapeRef.new(shape: __double)
1331
1393
 
1394
+ __listOf__integer.member = Shapes::ShapeRef.new(shape: __integer)
1395
+
1332
1396
  __listOf__string.member = Shapes::ShapeRef.new(shape: __string)
1333
1397
 
1334
1398
  __listOf__stringMax249.member = Shapes::ShapeRef.new(shape: __stringMax249)
@@ -1597,6 +1661,38 @@ module Aws::Kafka
1597
1661
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1598
1662
  end)
1599
1663
 
1664
+ api.add_operation(:describe_topic, Seahorse::Model::Operation.new.tap do |o|
1665
+ o.name = "DescribeTopic"
1666
+ o.http_method = "GET"
1667
+ o.http_request_uri = "/v1/clusters/{clusterArn}/topics/{topicName}"
1668
+ o.input = Shapes::ShapeRef.new(shape: DescribeTopicRequest)
1669
+ o.output = Shapes::ShapeRef.new(shape: DescribeTopicResponse)
1670
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1671
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1672
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1673
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1674
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1675
+ end)
1676
+
1677
+ api.add_operation(:describe_topic_partitions, Seahorse::Model::Operation.new.tap do |o|
1678
+ o.name = "DescribeTopicPartitions"
1679
+ o.http_method = "GET"
1680
+ o.http_request_uri = "/v1/clusters/{clusterArn}/topics/{topicName}/partitions"
1681
+ o.input = Shapes::ShapeRef.new(shape: DescribeTopicPartitionsRequest)
1682
+ o.output = Shapes::ShapeRef.new(shape: DescribeTopicPartitionsResponse)
1683
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1684
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1685
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1686
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1687
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1688
+ o[:pager] = Aws::Pager.new(
1689
+ limit_key: "max_results",
1690
+ tokens: {
1691
+ "next_token" => "next_token"
1692
+ }
1693
+ )
1694
+ end)
1695
+
1600
1696
  api.add_operation(:describe_vpc_connection, Seahorse::Model::Operation.new.tap do |o|
1601
1697
  o.name = "DescribeVpcConnection"
1602
1698
  o.http_method = "GET"
@@ -1895,6 +1991,25 @@ module Aws::Kafka
1895
1991
  )
1896
1992
  end)
1897
1993
 
1994
+ api.add_operation(:list_topics, Seahorse::Model::Operation.new.tap do |o|
1995
+ o.name = "ListTopics"
1996
+ o.http_method = "GET"
1997
+ o.http_request_uri = "/v1/clusters/{clusterArn}/topics"
1998
+ o.input = Shapes::ShapeRef.new(shape: ListTopicsRequest)
1999
+ o.output = Shapes::ShapeRef.new(shape: ListTopicsResponse)
2000
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
2001
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
2002
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
2003
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
2004
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
2005
+ o[:pager] = Aws::Pager.new(
2006
+ limit_key: "max_results",
2007
+ tokens: {
2008
+ "next_token" => "next_token"
2009
+ }
2010
+ )
2011
+ end)
2012
+
1898
2013
  api.add_operation(:reject_client_vpc_connection, Seahorse::Model::Operation.new.tap do |o|
1899
2014
  o.name = "RejectClientVpcConnection"
1900
2015
  o.http_method = "PUT"
@@ -1623,6 +1623,123 @@ module Aws::Kafka
1623
1623
  include Aws::Structure
1624
1624
  end
1625
1625
 
1626
+ # Request body for DescribeTopic.
1627
+ #
1628
+ # @!attribute [rw] cluster_arn
1629
+ # @return [String]
1630
+ #
1631
+ # @!attribute [rw] topic_name
1632
+ # @return [String]
1633
+ #
1634
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeTopicRequest AWS API Documentation
1635
+ #
1636
+ class DescribeTopicRequest < Struct.new(
1637
+ :cluster_arn,
1638
+ :topic_name)
1639
+ SENSITIVE = []
1640
+ include Aws::Structure
1641
+ end
1642
+
1643
+ # Request body for DescribeTopicPartitions.
1644
+ #
1645
+ # @!attribute [rw] cluster_arn
1646
+ # @return [String]
1647
+ #
1648
+ # @!attribute [rw] topic_name
1649
+ # @return [String]
1650
+ #
1651
+ # @!attribute [rw] max_results
1652
+ # @return [Integer]
1653
+ #
1654
+ # @!attribute [rw] next_token
1655
+ # @return [String]
1656
+ #
1657
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeTopicPartitionsRequest AWS API Documentation
1658
+ #
1659
+ class DescribeTopicPartitionsRequest < Struct.new(
1660
+ :cluster_arn,
1661
+ :topic_name,
1662
+ :max_results,
1663
+ :next_token)
1664
+ SENSITIVE = []
1665
+ include Aws::Structure
1666
+ end
1667
+
1668
+ # The response containing details for a topic.
1669
+ #
1670
+ # @!attribute [rw] topic_arn
1671
+ # @return [String]
1672
+ #
1673
+ # @!attribute [rw] topic_name
1674
+ # @return [String]
1675
+ #
1676
+ # @!attribute [rw] replication_factor
1677
+ # @return [Integer]
1678
+ #
1679
+ # @!attribute [rw] partition_count
1680
+ # @return [Integer]
1681
+ #
1682
+ # @!attribute [rw] configs
1683
+ # @return [String]
1684
+ #
1685
+ # @!attribute [rw] status
1686
+ # @return [String]
1687
+ #
1688
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeTopicResponse AWS API Documentation
1689
+ #
1690
+ class DescribeTopicResponse < Struct.new(
1691
+ :topic_arn,
1692
+ :topic_name,
1693
+ :replication_factor,
1694
+ :partition_count,
1695
+ :configs,
1696
+ :status)
1697
+ SENSITIVE = []
1698
+ include Aws::Structure
1699
+ end
1700
+
1701
+ # The response containing partitions details for a topic.
1702
+ #
1703
+ # @!attribute [rw] partitions
1704
+ # @return [Array<Types::TopicPartitionInfo>]
1705
+ #
1706
+ # @!attribute [rw] next_token
1707
+ # @return [String]
1708
+ #
1709
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeTopicPartitionsResponse AWS API Documentation
1710
+ #
1711
+ class DescribeTopicPartitionsResponse < Struct.new(
1712
+ :partitions,
1713
+ :next_token)
1714
+ SENSITIVE = []
1715
+ include Aws::Structure
1716
+ end
1717
+
1718
+ # Contains information about a topic partition.
1719
+ #
1720
+ # @!attribute [rw] partition
1721
+ # @return [Integer]
1722
+ #
1723
+ # @!attribute [rw] leader
1724
+ # @return [Integer]
1725
+ #
1726
+ # @!attribute [rw] replicas
1727
+ # @return [Array<Integer>]
1728
+ #
1729
+ # @!attribute [rw] isr
1730
+ # @return [Array<Integer>]
1731
+ #
1732
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/TopicPartitionInfo AWS API Documentation
1733
+ #
1734
+ class TopicPartitionInfo < Struct.new(
1735
+ :partition,
1736
+ :leader,
1737
+ :replicas,
1738
+ :isr)
1739
+ SENSITIVE = []
1740
+ include Aws::Structure
1741
+ end
1742
+
1626
1743
  # @!attribute [rw] replicator_arn
1627
1744
  # @return [String]
1628
1745
  #
@@ -3179,6 +3296,48 @@ module Aws::Kafka
3179
3296
  include Aws::Structure
3180
3297
  end
3181
3298
 
3299
+ # Request body for ListTopics.
3300
+ #
3301
+ # @!attribute [rw] cluster_arn
3302
+ # @return [String]
3303
+ #
3304
+ # @!attribute [rw] max_results
3305
+ # @return [Integer]
3306
+ #
3307
+ # @!attribute [rw] next_token
3308
+ # @return [String]
3309
+ #
3310
+ # @!attribute [rw] topic_name_filter
3311
+ # @return [String]
3312
+ #
3313
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListTopicsRequest AWS API Documentation
3314
+ #
3315
+ class ListTopicsRequest < Struct.new(
3316
+ :cluster_arn,
3317
+ :max_results,
3318
+ :next_token,
3319
+ :topic_name_filter)
3320
+ SENSITIVE = []
3321
+ include Aws::Structure
3322
+ end
3323
+
3324
+ # The response contains an array of topics on a MSK Cluster.
3325
+ #
3326
+ # @!attribute [rw] topics
3327
+ # @return [Array<Types::TopicInfo>]
3328
+ #
3329
+ # @!attribute [rw] next_token
3330
+ # @return [String]
3331
+ #
3332
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListTopicsResponse AWS API Documentation
3333
+ #
3334
+ class ListTopicsResponse < Struct.new(
3335
+ :topics,
3336
+ :next_token)
3337
+ SENSITIVE = []
3338
+ include Aws::Structure
3339
+ end
3340
+
3182
3341
  # @!attribute [rw] max_results
3183
3342
  # @return [Integer]
3184
3343
  #
@@ -3880,6 +4039,35 @@ module Aws::Kafka
3880
4039
  include Aws::Structure
3881
4040
  end
3882
4041
 
4042
+ # Includes identification info about the topic.
4043
+ #
4044
+ # @!attribute [rw] topic_arn
4045
+ # @return [String]
4046
+ #
4047
+ # @!attribute [rw] topic_name
4048
+ # @return [String]
4049
+ #
4050
+ # @!attribute [rw] replication_factor
4051
+ # @return [Integer]
4052
+ #
4053
+ # @!attribute [rw] partition_count
4054
+ # @return [Integer]
4055
+ #
4056
+ # @!attribute [rw] out_of_sync_replica_count
4057
+ # @return [Integer]
4058
+ #
4059
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/TopicInfo AWS API Documentation
4060
+ #
4061
+ class TopicInfo < Struct.new(
4062
+ :topic_arn,
4063
+ :topic_name,
4064
+ :replication_factor,
4065
+ :partition_count,
4066
+ :out_of_sync_replica_count)
4067
+ SENSITIVE = []
4068
+ include Aws::Structure
4069
+ end
4070
+
3883
4071
  # @!attribute [rw] enabled
3884
4072
  # TLS authentication for VPC connectivity is on or off.
3885
4073
  # @return [Boolean]
data/lib/aws-sdk-kafka.rb CHANGED
@@ -54,7 +54,7 @@ module Aws::Kafka
54
54
  autoload :EndpointProvider, 'aws-sdk-kafka/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-kafka/endpoints'
56
56
 
57
- GEM_VERSION = '1.99.0'
57
+ GEM_VERSION = '1.100.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -564,6 +564,36 @@ module Aws
564
564
  ) -> _DescribeReplicatorResponseSuccess
565
565
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeReplicatorResponseSuccess
566
566
 
567
+ interface _DescribeTopicResponseSuccess
568
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeTopicResponse]
569
+ def topic_arn: () -> ::String
570
+ def topic_name: () -> ::String
571
+ def replication_factor: () -> ::Integer
572
+ def partition_count: () -> ::Integer
573
+ def configs: () -> ::String
574
+ def status: () -> ("CREATING" | "UPDATING" | "DELETING" | "ACTIVE")
575
+ end
576
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Kafka/Client.html#describe_topic-instance_method
577
+ def describe_topic: (
578
+ cluster_arn: ::String,
579
+ topic_name: ::String
580
+ ) -> _DescribeTopicResponseSuccess
581
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeTopicResponseSuccess
582
+
583
+ interface _DescribeTopicPartitionsResponseSuccess
584
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeTopicPartitionsResponse]
585
+ def partitions: () -> ::Array[Types::TopicPartitionInfo]
586
+ def next_token: () -> ::String
587
+ end
588
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Kafka/Client.html#describe_topic_partitions-instance_method
589
+ def describe_topic_partitions: (
590
+ cluster_arn: ::String,
591
+ topic_name: ::String,
592
+ ?max_results: ::Integer,
593
+ ?next_token: ::String
594
+ ) -> _DescribeTopicPartitionsResponseSuccess
595
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeTopicPartitionsResponseSuccess
596
+
567
597
  interface _DescribeVpcConnectionResponseSuccess
568
598
  include ::Seahorse::Client::_ResponseSuccess[Types::DescribeVpcConnectionResponse]
569
599
  def vpc_connection_arn: () -> ::String
@@ -787,6 +817,20 @@ module Aws
787
817
  ) -> _ListVpcConnectionsResponseSuccess
788
818
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListVpcConnectionsResponseSuccess
789
819
 
820
+ interface _ListTopicsResponseSuccess
821
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTopicsResponse]
822
+ def topics: () -> ::Array[Types::TopicInfo]
823
+ def next_token: () -> ::String
824
+ end
825
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Kafka/Client.html#list_topics-instance_method
826
+ def list_topics: (
827
+ cluster_arn: ::String,
828
+ ?max_results: ::Integer,
829
+ ?next_token: ::String,
830
+ ?topic_name_filter: ::String
831
+ ) -> _ListTopicsResponseSuccess
832
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTopicsResponseSuccess
833
+
790
834
  interface _RejectClientVpcConnectionResponseSuccess
791
835
  include ::Seahorse::Client::_ResponseSuccess[Types::RejectClientVpcConnectionResponse]
792
836
  end
data/sig/types.rbs CHANGED
@@ -451,6 +451,44 @@ module Aws::Kafka
451
451
  SENSITIVE: []
452
452
  end
453
453
 
454
+ class DescribeTopicRequest
455
+ attr_accessor cluster_arn: ::String
456
+ attr_accessor topic_name: ::String
457
+ SENSITIVE: []
458
+ end
459
+
460
+ class DescribeTopicPartitionsRequest
461
+ attr_accessor cluster_arn: ::String
462
+ attr_accessor topic_name: ::String
463
+ attr_accessor max_results: ::Integer
464
+ attr_accessor next_token: ::String
465
+ SENSITIVE: []
466
+ end
467
+
468
+ class DescribeTopicResponse
469
+ attr_accessor topic_arn: ::String
470
+ attr_accessor topic_name: ::String
471
+ attr_accessor replication_factor: ::Integer
472
+ attr_accessor partition_count: ::Integer
473
+ attr_accessor configs: ::String
474
+ attr_accessor status: ("CREATING" | "UPDATING" | "DELETING" | "ACTIVE")
475
+ SENSITIVE: []
476
+ end
477
+
478
+ class DescribeTopicPartitionsResponse
479
+ attr_accessor partitions: ::Array[Types::TopicPartitionInfo]
480
+ attr_accessor next_token: ::String
481
+ SENSITIVE: []
482
+ end
483
+
484
+ class TopicPartitionInfo
485
+ attr_accessor partition: ::Integer
486
+ attr_accessor leader: ::Integer
487
+ attr_accessor replicas: ::Array[::Integer]
488
+ attr_accessor isr: ::Array[::Integer]
489
+ SENSITIVE: []
490
+ end
491
+
454
492
  class DescribeReplicatorRequest
455
493
  attr_accessor replicator_arn: ::String
456
494
  SENSITIVE: []
@@ -897,6 +935,20 @@ module Aws::Kafka
897
935
  SENSITIVE: []
898
936
  end
899
937
 
938
+ class ListTopicsRequest
939
+ attr_accessor cluster_arn: ::String
940
+ attr_accessor max_results: ::Integer
941
+ attr_accessor next_token: ::String
942
+ attr_accessor topic_name_filter: ::String
943
+ SENSITIVE: []
944
+ end
945
+
946
+ class ListTopicsResponse
947
+ attr_accessor topics: ::Array[Types::TopicInfo]
948
+ attr_accessor next_token: ::String
949
+ SENSITIVE: []
950
+ end
951
+
900
952
  class ListReplicatorsRequest
901
953
  attr_accessor max_results: ::Integer
902
954
  attr_accessor next_token: ::String
@@ -1100,6 +1152,15 @@ module Aws::Kafka
1100
1152
  SENSITIVE: []
1101
1153
  end
1102
1154
 
1155
+ class TopicInfo
1156
+ attr_accessor topic_arn: ::String
1157
+ attr_accessor topic_name: ::String
1158
+ attr_accessor replication_factor: ::Integer
1159
+ attr_accessor partition_count: ::Integer
1160
+ attr_accessor out_of_sync_replica_count: ::Integer
1161
+ SENSITIVE: []
1162
+ end
1163
+
1103
1164
  class VpcConnectivityTls
1104
1165
  attr_accessor enabled: bool
1105
1166
  SENSITIVE: []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.99.0
4
+ version: 1.100.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services