aws-sdk-kafka 1.16.0 → 1.17.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 +4 -4
- data/lib/aws-sdk-kafka.rb +1 -1
- data/lib/aws-sdk-kafka/client.rb +35 -1
- data/lib/aws-sdk-kafka/client_api.rb +42 -0
- data/lib/aws-sdk-kafka/types.rb +78 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0aa7e923a0cedef0fed316373839b002aed22d5b
|
4
|
+
data.tar.gz: afe5ac227264224ee6e76c4616b6ff813ba20179
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 245b0bcd251352982a92c7fd9501d3c161ea5810ebb17950b2778367eb16c5cf1f3d4c8ffefce4bfdeb3de76fcbc63f5ed7ac40cbbd5e6386d966dfeb347cf43
|
7
|
+
data.tar.gz: e789cc2d6ea09970a4454e7741455c590888193014d5bc74b7afcc66526270feb79614a26d68b9881edd457d0c3175818be118da91615ad01969cf77fd29542a
|
data/lib/aws-sdk-kafka.rb
CHANGED
data/lib/aws-sdk-kafka/client.rb
CHANGED
@@ -861,6 +861,40 @@ module Aws::Kafka
|
|
861
861
|
req.send_request(options)
|
862
862
|
end
|
863
863
|
|
864
|
+
# Returns a list of Kafka versions.
|
865
|
+
#
|
866
|
+
# @option params [Integer] :max_results
|
867
|
+
#
|
868
|
+
# @option params [String] :next_token
|
869
|
+
#
|
870
|
+
# @return [Types::ListKafkaVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
871
|
+
#
|
872
|
+
# * {Types::ListKafkaVersionsResponse#kafka_versions #kafka_versions} => Array<Types::KafkaVersion>
|
873
|
+
# * {Types::ListKafkaVersionsResponse#next_token #next_token} => String
|
874
|
+
#
|
875
|
+
# @example Request syntax with placeholder values
|
876
|
+
#
|
877
|
+
# resp = client.list_kafka_versions({
|
878
|
+
# max_results: 1,
|
879
|
+
# next_token: "__string",
|
880
|
+
# })
|
881
|
+
#
|
882
|
+
# @example Response structure
|
883
|
+
#
|
884
|
+
# resp.kafka_versions #=> Array
|
885
|
+
# resp.kafka_versions[0].version #=> String
|
886
|
+
# resp.kafka_versions[0].status #=> String, one of "ACTIVE", "DEPRECATED"
|
887
|
+
# resp.next_token #=> String
|
888
|
+
#
|
889
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListKafkaVersions AWS API Documentation
|
890
|
+
#
|
891
|
+
# @overload list_kafka_versions(params = {})
|
892
|
+
# @param [Hash] params ({})
|
893
|
+
def list_kafka_versions(params = {}, options = {})
|
894
|
+
req = build_request(:list_kafka_versions, params)
|
895
|
+
req.send_request(options)
|
896
|
+
end
|
897
|
+
|
864
898
|
# Returns a list of the broker nodes in the cluster.
|
865
899
|
#
|
866
900
|
# @option params [required, String] :cluster_arn
|
@@ -1194,7 +1228,7 @@ module Aws::Kafka
|
|
1194
1228
|
params: params,
|
1195
1229
|
config: config)
|
1196
1230
|
context[:gem_name] = 'aws-sdk-kafka'
|
1197
|
-
context[:gem_version] = '1.
|
1231
|
+
context[:gem_version] = '1.17.0'
|
1198
1232
|
Seahorse::Client::Request.new(handlers, context)
|
1199
1233
|
end
|
1200
1234
|
|
@@ -53,6 +53,8 @@ module Aws::Kafka
|
|
53
53
|
InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
|
54
54
|
JmxExporter = Shapes::StructureShape.new(name: 'JmxExporter')
|
55
55
|
JmxExporterInfo = Shapes::StructureShape.new(name: 'JmxExporterInfo')
|
56
|
+
KafkaVersion = Shapes::StructureShape.new(name: 'KafkaVersion')
|
57
|
+
KafkaVersionStatus = Shapes::StringShape.new(name: 'KafkaVersionStatus')
|
56
58
|
ListClusterOperationsRequest = Shapes::StructureShape.new(name: 'ListClusterOperationsRequest')
|
57
59
|
ListClusterOperationsResponse = Shapes::StructureShape.new(name: 'ListClusterOperationsResponse')
|
58
60
|
ListClustersRequest = Shapes::StructureShape.new(name: 'ListClustersRequest')
|
@@ -61,6 +63,8 @@ module Aws::Kafka
|
|
61
63
|
ListConfigurationRevisionsResponse = Shapes::StructureShape.new(name: 'ListConfigurationRevisionsResponse')
|
62
64
|
ListConfigurationsRequest = Shapes::StructureShape.new(name: 'ListConfigurationsRequest')
|
63
65
|
ListConfigurationsResponse = Shapes::StructureShape.new(name: 'ListConfigurationsResponse')
|
66
|
+
ListKafkaVersionsRequest = Shapes::StructureShape.new(name: 'ListKafkaVersionsRequest')
|
67
|
+
ListKafkaVersionsResponse = Shapes::StructureShape.new(name: 'ListKafkaVersionsResponse')
|
64
68
|
ListNodesRequest = Shapes::StructureShape.new(name: 'ListNodesRequest')
|
65
69
|
ListNodesResponse = Shapes::StructureShape.new(name: 'ListNodesResponse')
|
66
70
|
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
@@ -77,6 +81,7 @@ module Aws::Kafka
|
|
77
81
|
Prometheus = Shapes::StructureShape.new(name: 'Prometheus')
|
78
82
|
PrometheusInfo = Shapes::StructureShape.new(name: 'PrometheusInfo')
|
79
83
|
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
84
|
+
StateInfo = Shapes::StructureShape.new(name: 'StateInfo')
|
80
85
|
StorageInfo = Shapes::StructureShape.new(name: 'StorageInfo')
|
81
86
|
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
82
87
|
Tls = Shapes::StructureShape.new(name: 'Tls')
|
@@ -103,6 +108,7 @@ module Aws::Kafka
|
|
103
108
|
__listOfClusterOperationInfo = Shapes::ListShape.new(name: '__listOfClusterOperationInfo')
|
104
109
|
__listOfConfiguration = Shapes::ListShape.new(name: '__listOfConfiguration')
|
105
110
|
__listOfConfigurationRevision = Shapes::ListShape.new(name: '__listOfConfigurationRevision')
|
111
|
+
__listOfKafkaVersion = Shapes::ListShape.new(name: '__listOfKafkaVersion')
|
106
112
|
__listOfNodeInfo = Shapes::ListShape.new(name: '__listOfNodeInfo')
|
107
113
|
__listOf__string = Shapes::ListShape.new(name: '__listOf__string')
|
108
114
|
__long = Shapes::IntegerShape.new(name: '__long')
|
@@ -308,6 +314,10 @@ module Aws::Kafka
|
|
308
314
|
JmxExporterInfo.add_member(:enabled_in_broker, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "enabledInBroker"))
|
309
315
|
JmxExporterInfo.struct_class = Types::JmxExporterInfo
|
310
316
|
|
317
|
+
KafkaVersion.add_member(:version, Shapes::ShapeRef.new(shape: __string, location_name: "version"))
|
318
|
+
KafkaVersion.add_member(:status, Shapes::ShapeRef.new(shape: KafkaVersionStatus, location_name: "status"))
|
319
|
+
KafkaVersion.struct_class = Types::KafkaVersion
|
320
|
+
|
311
321
|
ListClusterOperationsRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
|
312
322
|
ListClusterOperationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
313
323
|
ListClusterOperationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
|
@@ -343,6 +353,14 @@ module Aws::Kafka
|
|
343
353
|
ListConfigurationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
|
344
354
|
ListConfigurationsResponse.struct_class = Types::ListConfigurationsResponse
|
345
355
|
|
356
|
+
ListKafkaVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
357
|
+
ListKafkaVersionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
|
358
|
+
ListKafkaVersionsRequest.struct_class = Types::ListKafkaVersionsRequest
|
359
|
+
|
360
|
+
ListKafkaVersionsResponse.add_member(:kafka_versions, Shapes::ShapeRef.new(shape: __listOfKafkaVersion, location_name: "kafkaVersions"))
|
361
|
+
ListKafkaVersionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
|
362
|
+
ListKafkaVersionsResponse.struct_class = Types::ListKafkaVersionsResponse
|
363
|
+
|
346
364
|
ListNodesRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
|
347
365
|
ListNodesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
348
366
|
ListNodesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
|
@@ -401,6 +419,10 @@ module Aws::Kafka
|
|
401
419
|
ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
|
402
420
|
ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
|
403
421
|
|
422
|
+
StateInfo.add_member(:code, Shapes::ShapeRef.new(shape: __string, location_name: "code"))
|
423
|
+
StateInfo.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
|
424
|
+
StateInfo.struct_class = Types::StateInfo
|
425
|
+
|
404
426
|
StorageInfo.add_member(:ebs_storage_info, Shapes::ShapeRef.new(shape: EBSStorageInfo, location_name: "ebsStorageInfo"))
|
405
427
|
StorageInfo.struct_class = Types::StorageInfo
|
406
428
|
|
@@ -477,6 +499,8 @@ module Aws::Kafka
|
|
477
499
|
|
478
500
|
__listOfConfigurationRevision.member = Shapes::ShapeRef.new(shape: ConfigurationRevision)
|
479
501
|
|
502
|
+
__listOfKafkaVersion.member = Shapes::ShapeRef.new(shape: KafkaVersion)
|
503
|
+
|
480
504
|
__listOfNodeInfo.member = Shapes::ShapeRef.new(shape: NodeInfo)
|
481
505
|
|
482
506
|
__listOf__string.member = Shapes::ShapeRef.new(shape: __string)
|
@@ -687,6 +711,24 @@ module Aws::Kafka
|
|
687
711
|
)
|
688
712
|
end)
|
689
713
|
|
714
|
+
api.add_operation(:list_kafka_versions, Seahorse::Model::Operation.new.tap do |o|
|
715
|
+
o.name = "ListKafkaVersions"
|
716
|
+
o.http_method = "GET"
|
717
|
+
o.http_request_uri = "/v1/kafka-versions"
|
718
|
+
o.input = Shapes::ShapeRef.new(shape: ListKafkaVersionsRequest)
|
719
|
+
o.output = Shapes::ShapeRef.new(shape: ListKafkaVersionsResponse)
|
720
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
721
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
722
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
723
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
724
|
+
o[:pager] = Aws::Pager.new(
|
725
|
+
limit_key: "max_results",
|
726
|
+
tokens: {
|
727
|
+
"next_token" => "next_token"
|
728
|
+
}
|
729
|
+
)
|
730
|
+
end)
|
731
|
+
|
690
732
|
api.add_operation(:list_nodes, Seahorse::Model::Operation.new.tap do |o|
|
691
733
|
o.name = "ListNodes"
|
692
734
|
o.http_method = "GET"
|
data/lib/aws-sdk-kafka/types.rb
CHANGED
@@ -1098,6 +1098,24 @@ module Aws::Kafka
|
|
1098
1098
|
include Aws::Structure
|
1099
1099
|
end
|
1100
1100
|
|
1101
|
+
# Information about a Kafka version.
|
1102
|
+
#
|
1103
|
+
# @!attribute [rw] version
|
1104
|
+
# The Kafka version.
|
1105
|
+
# @return [String]
|
1106
|
+
#
|
1107
|
+
# @!attribute [rw] status
|
1108
|
+
# The status of a Kafka version.
|
1109
|
+
# @return [String]
|
1110
|
+
#
|
1111
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/KafkaVersion AWS API Documentation
|
1112
|
+
#
|
1113
|
+
class KafkaVersion < Struct.new(
|
1114
|
+
:version,
|
1115
|
+
:status)
|
1116
|
+
include Aws::Structure
|
1117
|
+
end
|
1118
|
+
|
1101
1119
|
# @note When making an API call, you may pass ListClusterOperationsRequest
|
1102
1120
|
# data as a hash:
|
1103
1121
|
#
|
@@ -1284,6 +1302,46 @@ module Aws::Kafka
|
|
1284
1302
|
include Aws::Structure
|
1285
1303
|
end
|
1286
1304
|
|
1305
|
+
# @note When making an API call, you may pass ListKafkaVersionsRequest
|
1306
|
+
# data as a hash:
|
1307
|
+
#
|
1308
|
+
# {
|
1309
|
+
# max_results: 1,
|
1310
|
+
# next_token: "__string",
|
1311
|
+
# }
|
1312
|
+
#
|
1313
|
+
# @!attribute [rw] max_results
|
1314
|
+
# @return [Integer]
|
1315
|
+
#
|
1316
|
+
# @!attribute [rw] next_token
|
1317
|
+
# @return [String]
|
1318
|
+
#
|
1319
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListKafkaVersionsRequest AWS API Documentation
|
1320
|
+
#
|
1321
|
+
class ListKafkaVersionsRequest < Struct.new(
|
1322
|
+
:max_results,
|
1323
|
+
:next_token)
|
1324
|
+
include Aws::Structure
|
1325
|
+
end
|
1326
|
+
|
1327
|
+
# Response for ListKafkaVersions.
|
1328
|
+
#
|
1329
|
+
# @!attribute [rw] kafka_versions
|
1330
|
+
# An array of Kafka version objects.
|
1331
|
+
# @return [Array<Types::KafkaVersion>]
|
1332
|
+
#
|
1333
|
+
# @!attribute [rw] next_token
|
1334
|
+
# Paginated results marker.
|
1335
|
+
# @return [String]
|
1336
|
+
#
|
1337
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListKafkaVersionsResponse AWS API Documentation
|
1338
|
+
#
|
1339
|
+
class ListKafkaVersionsResponse < Struct.new(
|
1340
|
+
:kafka_versions,
|
1341
|
+
:next_token)
|
1342
|
+
include Aws::Structure
|
1343
|
+
end
|
1344
|
+
|
1287
1345
|
# @note When making an API call, you may pass ListNodesRequest
|
1288
1346
|
# data as a hash:
|
1289
1347
|
#
|
@@ -1468,6 +1526,26 @@ module Aws::Kafka
|
|
1468
1526
|
include Aws::Structure
|
1469
1527
|
end
|
1470
1528
|
|
1529
|
+
# Contains information about the state of the Amazon MSK cluster.
|
1530
|
+
#
|
1531
|
+
# @!attribute [rw] code
|
1532
|
+
# If the cluster is in an unusable state, this field contains the code
|
1533
|
+
# that describes the issue.
|
1534
|
+
# @return [String]
|
1535
|
+
#
|
1536
|
+
# @!attribute [rw] message
|
1537
|
+
# If the cluster is in an unusable state, this field contains a
|
1538
|
+
# message that describes the issue.
|
1539
|
+
# @return [String]
|
1540
|
+
#
|
1541
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/StateInfo AWS API Documentation
|
1542
|
+
#
|
1543
|
+
class StateInfo < Struct.new(
|
1544
|
+
:code,
|
1545
|
+
:message)
|
1546
|
+
include Aws::Structure
|
1547
|
+
end
|
1548
|
+
|
1471
1549
|
# Contains information about storage volumes attached to MSK broker
|
1472
1550
|
# nodes.
|
1473
1551
|
#
|
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.
|
4
|
+
version: 1.17.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:
|
11
|
+
date: 2020-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|