aws-sdk-kafka 1.26.0 → 1.27.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 +3 -2
- data/lib/aws-sdk-kafka/client.rb +121 -1
- data/lib/aws-sdk-kafka/client_api.rb +101 -0
- data/lib/aws-sdk-kafka/types.rb +217 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0d78b424cb6b2e9a58baa82a7cc170f6e36ba9ff75e3efa1f7ba99d1795637f
|
4
|
+
data.tar.gz: b4bf6e91abdc92e87e602bee7b51cc0ef77c19dcaff83359b6cb7ba9f7e0439c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4a1091e3d8c2ad04af99aa6e371ac55efc569c5e55fca9306736d14c52d2292959ff804b76a6d4d21ef5eca00f02c792fa06d19a08a7b229ed9fd82290866af
|
7
|
+
data.tar.gz: 1f5eb9d7c83dace507f33f9294ff639afef75227d89cfae0115df28a2aae25ffdfb77dec8e51e64b2bf7e831bf3e47845e7bacab91b59d3c1a626e701f66238d
|
data/lib/aws-sdk-kafka.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -27,7 +28,7 @@ require_relative 'aws-sdk-kafka/customizations'
|
|
27
28
|
# structure.
|
28
29
|
#
|
29
30
|
# kafka = Aws::Kafka::Client.new
|
30
|
-
# resp = kafka.
|
31
|
+
# resp = kafka.batch_associate_scram_secret(params)
|
31
32
|
#
|
32
33
|
# See {Client} for more information.
|
33
34
|
#
|
@@ -47,6 +48,6 @@ require_relative 'aws-sdk-kafka/customizations'
|
|
47
48
|
# @!group service
|
48
49
|
module Aws::Kafka
|
49
50
|
|
50
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.27.0'
|
51
52
|
|
52
53
|
end
|
data/lib/aws-sdk-kafka/client.rb
CHANGED
@@ -327,6 +327,42 @@ module Aws::Kafka
|
|
327
327
|
|
328
328
|
# @!group API Operations
|
329
329
|
|
330
|
+
# Associates one or more Scram Secrets with an Amazon MSK cluster.
|
331
|
+
#
|
332
|
+
# @option params [required, String] :cluster_arn
|
333
|
+
#
|
334
|
+
# @option params [required, Array<String>] :secret_arn_list
|
335
|
+
# List of AWS Secrets Manager secret ARNs.
|
336
|
+
#
|
337
|
+
# @return [Types::BatchAssociateScramSecretResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
338
|
+
#
|
339
|
+
# * {Types::BatchAssociateScramSecretResponse#cluster_arn #cluster_arn} => String
|
340
|
+
# * {Types::BatchAssociateScramSecretResponse#unprocessed_scram_secrets #unprocessed_scram_secrets} => Array<Types::UnprocessedScramSecret>
|
341
|
+
#
|
342
|
+
# @example Request syntax with placeholder values
|
343
|
+
#
|
344
|
+
# resp = client.batch_associate_scram_secret({
|
345
|
+
# cluster_arn: "__string", # required
|
346
|
+
# secret_arn_list: ["__string"], # required
|
347
|
+
# })
|
348
|
+
#
|
349
|
+
# @example Response structure
|
350
|
+
#
|
351
|
+
# resp.cluster_arn #=> String
|
352
|
+
# resp.unprocessed_scram_secrets #=> Array
|
353
|
+
# resp.unprocessed_scram_secrets[0].error_code #=> String
|
354
|
+
# resp.unprocessed_scram_secrets[0].error_message #=> String
|
355
|
+
# resp.unprocessed_scram_secrets[0].secret_arn #=> String
|
356
|
+
#
|
357
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/BatchAssociateScramSecret AWS API Documentation
|
358
|
+
#
|
359
|
+
# @overload batch_associate_scram_secret(params = {})
|
360
|
+
# @param [Hash] params ({})
|
361
|
+
def batch_associate_scram_secret(params = {}, options = {})
|
362
|
+
req = build_request(:batch_associate_scram_secret, params)
|
363
|
+
req.send_request(options)
|
364
|
+
end
|
365
|
+
|
330
366
|
# Creates a new MSK cluster.
|
331
367
|
#
|
332
368
|
# @option params [required, Types::BrokerNodeGroupInfo] :broker_node_group_info
|
@@ -384,6 +420,11 @@ module Aws::Kafka
|
|
384
420
|
# },
|
385
421
|
# },
|
386
422
|
# client_authentication: {
|
423
|
+
# sasl: {
|
424
|
+
# scram: {
|
425
|
+
# enabled: false,
|
426
|
+
# },
|
427
|
+
# },
|
387
428
|
# tls: {
|
388
429
|
# certificate_authority_arn_list: ["__string"],
|
389
430
|
# },
|
@@ -592,6 +633,7 @@ module Aws::Kafka
|
|
592
633
|
# resp.cluster_info.broker_node_group_info.security_groups #=> Array
|
593
634
|
# resp.cluster_info.broker_node_group_info.security_groups[0] #=> String
|
594
635
|
# resp.cluster_info.broker_node_group_info.storage_info.ebs_storage_info.volume_size #=> Integer
|
636
|
+
# resp.cluster_info.client_authentication.sasl.scram.enabled #=> Boolean
|
595
637
|
# resp.cluster_info.client_authentication.tls.certificate_authority_arn_list #=> Array
|
596
638
|
# resp.cluster_info.client_authentication.tls.certificate_authority_arn_list[0] #=> String
|
597
639
|
# resp.cluster_info.cluster_arn #=> String
|
@@ -781,6 +823,42 @@ module Aws::Kafka
|
|
781
823
|
req.send_request(options)
|
782
824
|
end
|
783
825
|
|
826
|
+
# Disassociates one or more Scram Secrets from an Amazon MSK cluster.
|
827
|
+
#
|
828
|
+
# @option params [required, String] :cluster_arn
|
829
|
+
#
|
830
|
+
# @option params [required, Array<String>] :secret_arn_list
|
831
|
+
# List of AWS Secrets Manager secret ARNs.
|
832
|
+
#
|
833
|
+
# @return [Types::BatchDisassociateScramSecretResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
834
|
+
#
|
835
|
+
# * {Types::BatchDisassociateScramSecretResponse#cluster_arn #cluster_arn} => String
|
836
|
+
# * {Types::BatchDisassociateScramSecretResponse#unprocessed_scram_secrets #unprocessed_scram_secrets} => Array<Types::UnprocessedScramSecret>
|
837
|
+
#
|
838
|
+
# @example Request syntax with placeholder values
|
839
|
+
#
|
840
|
+
# resp = client.batch_disassociate_scram_secret({
|
841
|
+
# cluster_arn: "__string", # required
|
842
|
+
# secret_arn_list: ["__string"], # required
|
843
|
+
# })
|
844
|
+
#
|
845
|
+
# @example Response structure
|
846
|
+
#
|
847
|
+
# resp.cluster_arn #=> String
|
848
|
+
# resp.unprocessed_scram_secrets #=> Array
|
849
|
+
# resp.unprocessed_scram_secrets[0].error_code #=> String
|
850
|
+
# resp.unprocessed_scram_secrets[0].error_message #=> String
|
851
|
+
# resp.unprocessed_scram_secrets[0].secret_arn #=> String
|
852
|
+
#
|
853
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/BatchDisassociateScramSecret AWS API Documentation
|
854
|
+
#
|
855
|
+
# @overload batch_disassociate_scram_secret(params = {})
|
856
|
+
# @param [Hash] params ({})
|
857
|
+
def batch_disassociate_scram_secret(params = {}, options = {})
|
858
|
+
req = build_request(:batch_disassociate_scram_secret, params)
|
859
|
+
req.send_request(options)
|
860
|
+
end
|
861
|
+
|
784
862
|
# A list of brokers that a client application can use to bootstrap.
|
785
863
|
#
|
786
864
|
# @option params [required, String] :cluster_arn
|
@@ -789,6 +867,7 @@ module Aws::Kafka
|
|
789
867
|
#
|
790
868
|
# * {Types::GetBootstrapBrokersResponse#bootstrap_broker_string #bootstrap_broker_string} => String
|
791
869
|
# * {Types::GetBootstrapBrokersResponse#bootstrap_broker_string_tls #bootstrap_broker_string_tls} => String
|
870
|
+
# * {Types::GetBootstrapBrokersResponse#bootstrap_broker_string_sasl_scram #bootstrap_broker_string_sasl_scram} => String
|
792
871
|
#
|
793
872
|
# @example Request syntax with placeholder values
|
794
873
|
#
|
@@ -800,6 +879,7 @@ module Aws::Kafka
|
|
800
879
|
#
|
801
880
|
# resp.bootstrap_broker_string #=> String
|
802
881
|
# resp.bootstrap_broker_string_tls #=> String
|
882
|
+
# resp.bootstrap_broker_string_sasl_scram #=> String
|
803
883
|
#
|
804
884
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/GetBootstrapBrokers AWS API Documentation
|
805
885
|
#
|
@@ -959,6 +1039,7 @@ module Aws::Kafka
|
|
959
1039
|
# resp.cluster_info_list[0].broker_node_group_info.security_groups #=> Array
|
960
1040
|
# resp.cluster_info_list[0].broker_node_group_info.security_groups[0] #=> String
|
961
1041
|
# resp.cluster_info_list[0].broker_node_group_info.storage_info.ebs_storage_info.volume_size #=> Integer
|
1042
|
+
# resp.cluster_info_list[0].client_authentication.sasl.scram.enabled #=> Boolean
|
962
1043
|
# resp.cluster_info_list[0].client_authentication.tls.certificate_authority_arn_list #=> Array
|
963
1044
|
# resp.cluster_info_list[0].client_authentication.tls.certificate_authority_arn_list[0] #=> String
|
964
1045
|
# resp.cluster_info_list[0].cluster_arn #=> String
|
@@ -1173,6 +1254,45 @@ module Aws::Kafka
|
|
1173
1254
|
req.send_request(options)
|
1174
1255
|
end
|
1175
1256
|
|
1257
|
+
# Returns a list of the Scram Secrets associated with an Amazon MSK
|
1258
|
+
# cluster.
|
1259
|
+
#
|
1260
|
+
# @option params [required, String] :cluster_arn
|
1261
|
+
#
|
1262
|
+
# @option params [Integer] :max_results
|
1263
|
+
#
|
1264
|
+
# @option params [String] :next_token
|
1265
|
+
#
|
1266
|
+
# @return [Types::ListScramSecretsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1267
|
+
#
|
1268
|
+
# * {Types::ListScramSecretsResponse#next_token #next_token} => String
|
1269
|
+
# * {Types::ListScramSecretsResponse#secret_arn_list #secret_arn_list} => Array<String>
|
1270
|
+
#
|
1271
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1272
|
+
#
|
1273
|
+
# @example Request syntax with placeholder values
|
1274
|
+
#
|
1275
|
+
# resp = client.list_scram_secrets({
|
1276
|
+
# cluster_arn: "__string", # required
|
1277
|
+
# max_results: 1,
|
1278
|
+
# next_token: "__string",
|
1279
|
+
# })
|
1280
|
+
#
|
1281
|
+
# @example Response structure
|
1282
|
+
#
|
1283
|
+
# resp.next_token #=> String
|
1284
|
+
# resp.secret_arn_list #=> Array
|
1285
|
+
# resp.secret_arn_list[0] #=> String
|
1286
|
+
#
|
1287
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListScramSecrets AWS API Documentation
|
1288
|
+
#
|
1289
|
+
# @overload list_scram_secrets(params = {})
|
1290
|
+
# @param [Hash] params ({})
|
1291
|
+
def list_scram_secrets(params = {}, options = {})
|
1292
|
+
req = build_request(:list_scram_secrets, params)
|
1293
|
+
req.send_request(options)
|
1294
|
+
end
|
1295
|
+
|
1176
1296
|
# Returns a list of the tags associated with the specified resource.
|
1177
1297
|
#
|
1178
1298
|
# @option params [required, String] :resource_arn
|
@@ -1589,7 +1709,7 @@ module Aws::Kafka
|
|
1589
1709
|
params: params,
|
1590
1710
|
config: config)
|
1591
1711
|
context[:gem_name] = 'aws-sdk-kafka'
|
1592
|
-
context[:gem_version] = '1.
|
1712
|
+
context[:gem_version] = '1.27.0'
|
1593
1713
|
Seahorse::Client::Request.new(handlers, context)
|
1594
1714
|
end
|
1595
1715
|
|
@@ -14,6 +14,10 @@ module Aws::Kafka
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
16
|
BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
|
17
|
+
BatchAssociateScramSecretRequest = Shapes::StructureShape.new(name: 'BatchAssociateScramSecretRequest')
|
18
|
+
BatchAssociateScramSecretResponse = Shapes::StructureShape.new(name: 'BatchAssociateScramSecretResponse')
|
19
|
+
BatchDisassociateScramSecretRequest = Shapes::StructureShape.new(name: 'BatchDisassociateScramSecretRequest')
|
20
|
+
BatchDisassociateScramSecretResponse = Shapes::StructureShape.new(name: 'BatchDisassociateScramSecretResponse')
|
17
21
|
BrokerAZDistribution = Shapes::StringShape.new(name: 'BrokerAZDistribution')
|
18
22
|
BrokerEBSVolumeInfo = Shapes::StructureShape.new(name: 'BrokerEBSVolumeInfo')
|
19
23
|
BrokerLogs = Shapes::StructureShape.new(name: 'BrokerLogs')
|
@@ -80,6 +84,8 @@ module Aws::Kafka
|
|
80
84
|
ListKafkaVersionsResponse = Shapes::StructureShape.new(name: 'ListKafkaVersionsResponse')
|
81
85
|
ListNodesRequest = Shapes::StructureShape.new(name: 'ListNodesRequest')
|
82
86
|
ListNodesResponse = Shapes::StructureShape.new(name: 'ListNodesResponse')
|
87
|
+
ListScramSecretsRequest = Shapes::StructureShape.new(name: 'ListScramSecretsRequest')
|
88
|
+
ListScramSecretsResponse = Shapes::StructureShape.new(name: 'ListScramSecretsResponse')
|
83
89
|
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
84
90
|
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
85
91
|
LoggingInfo = Shapes::StructureShape.new(name: 'LoggingInfo')
|
@@ -97,6 +103,8 @@ module Aws::Kafka
|
|
97
103
|
RebootBrokerRequest = Shapes::StructureShape.new(name: 'RebootBrokerRequest')
|
98
104
|
RebootBrokerResponse = Shapes::StructureShape.new(name: 'RebootBrokerResponse')
|
99
105
|
S3 = Shapes::StructureShape.new(name: 'S3')
|
106
|
+
Sasl = Shapes::StructureShape.new(name: 'Sasl')
|
107
|
+
Scram = Shapes::StructureShape.new(name: 'Scram')
|
100
108
|
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
101
109
|
StateInfo = Shapes::StructureShape.new(name: 'StateInfo')
|
102
110
|
StorageInfo = Shapes::StructureShape.new(name: 'StorageInfo')
|
@@ -104,6 +112,7 @@ module Aws::Kafka
|
|
104
112
|
Tls = Shapes::StructureShape.new(name: 'Tls')
|
105
113
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
106
114
|
UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
|
115
|
+
UnprocessedScramSecret = Shapes::StructureShape.new(name: 'UnprocessedScramSecret')
|
107
116
|
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
108
117
|
UpdateBrokerCountRequest = Shapes::StructureShape.new(name: 'UpdateBrokerCountRequest')
|
109
118
|
UpdateBrokerCountResponse = Shapes::StructureShape.new(name: 'UpdateBrokerCountResponse')
|
@@ -133,6 +142,7 @@ module Aws::Kafka
|
|
133
142
|
__listOfConfigurationRevision = Shapes::ListShape.new(name: '__listOfConfigurationRevision')
|
134
143
|
__listOfKafkaVersion = Shapes::ListShape.new(name: '__listOfKafkaVersion')
|
135
144
|
__listOfNodeInfo = Shapes::ListShape.new(name: '__listOfNodeInfo')
|
145
|
+
__listOfUnprocessedScramSecret = Shapes::ListShape.new(name: '__listOfUnprocessedScramSecret')
|
136
146
|
__listOf__string = Shapes::ListShape.new(name: '__listOf__string')
|
137
147
|
__long = Shapes::IntegerShape.new(name: '__long')
|
138
148
|
__mapOf__string = Shapes::MapShape.new(name: '__mapOf__string')
|
@@ -146,6 +156,22 @@ module Aws::Kafka
|
|
146
156
|
BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
|
147
157
|
BadRequestException.struct_class = Types::BadRequestException
|
148
158
|
|
159
|
+
BatchAssociateScramSecretRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
|
160
|
+
BatchAssociateScramSecretRequest.add_member(:secret_arn_list, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "secretArnList"))
|
161
|
+
BatchAssociateScramSecretRequest.struct_class = Types::BatchAssociateScramSecretRequest
|
162
|
+
|
163
|
+
BatchAssociateScramSecretResponse.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterArn"))
|
164
|
+
BatchAssociateScramSecretResponse.add_member(:unprocessed_scram_secrets, Shapes::ShapeRef.new(shape: __listOfUnprocessedScramSecret, location_name: "unprocessedScramSecrets"))
|
165
|
+
BatchAssociateScramSecretResponse.struct_class = Types::BatchAssociateScramSecretResponse
|
166
|
+
|
167
|
+
BatchDisassociateScramSecretRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
|
168
|
+
BatchDisassociateScramSecretRequest.add_member(:secret_arn_list, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "secretArnList"))
|
169
|
+
BatchDisassociateScramSecretRequest.struct_class = Types::BatchDisassociateScramSecretRequest
|
170
|
+
|
171
|
+
BatchDisassociateScramSecretResponse.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterArn"))
|
172
|
+
BatchDisassociateScramSecretResponse.add_member(:unprocessed_scram_secrets, Shapes::ShapeRef.new(shape: __listOfUnprocessedScramSecret, location_name: "unprocessedScramSecrets"))
|
173
|
+
BatchDisassociateScramSecretResponse.struct_class = Types::BatchDisassociateScramSecretResponse
|
174
|
+
|
149
175
|
BrokerEBSVolumeInfo.add_member(:kafka_broker_node_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "kafkaBrokerNodeId"))
|
150
176
|
BrokerEBSVolumeInfo.add_member(:volume_size_gb, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "volumeSizeGB"))
|
151
177
|
BrokerEBSVolumeInfo.struct_class = Types::BrokerEBSVolumeInfo
|
@@ -175,6 +201,7 @@ module Aws::Kafka
|
|
175
201
|
BrokerSoftwareInfo.add_member(:kafka_version, Shapes::ShapeRef.new(shape: __string, location_name: "kafkaVersion"))
|
176
202
|
BrokerSoftwareInfo.struct_class = Types::BrokerSoftwareInfo
|
177
203
|
|
204
|
+
ClientAuthentication.add_member(:sasl, Shapes::ShapeRef.new(shape: Sasl, location_name: "sasl"))
|
178
205
|
ClientAuthentication.add_member(:tls, Shapes::ShapeRef.new(shape: Tls, location_name: "tls"))
|
179
206
|
ClientAuthentication.struct_class = Types::ClientAuthentication
|
180
207
|
|
@@ -362,6 +389,7 @@ module Aws::Kafka
|
|
362
389
|
|
363
390
|
GetBootstrapBrokersResponse.add_member(:bootstrap_broker_string, Shapes::ShapeRef.new(shape: __string, location_name: "bootstrapBrokerString"))
|
364
391
|
GetBootstrapBrokersResponse.add_member(:bootstrap_broker_string_tls, Shapes::ShapeRef.new(shape: __string, location_name: "bootstrapBrokerStringTls"))
|
392
|
+
GetBootstrapBrokersResponse.add_member(:bootstrap_broker_string_sasl_scram, Shapes::ShapeRef.new(shape: __string, location_name: "bootstrapBrokerStringSaslScram"))
|
365
393
|
GetBootstrapBrokersResponse.struct_class = Types::GetBootstrapBrokersResponse
|
366
394
|
|
367
395
|
GetCompatibleKafkaVersionsRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "clusterArn"))
|
@@ -436,6 +464,15 @@ module Aws::Kafka
|
|
436
464
|
ListNodesResponse.add_member(:node_info_list, Shapes::ShapeRef.new(shape: __listOfNodeInfo, location_name: "nodeInfoList"))
|
437
465
|
ListNodesResponse.struct_class = Types::ListNodesResponse
|
438
466
|
|
467
|
+
ListScramSecretsRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
|
468
|
+
ListScramSecretsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
469
|
+
ListScramSecretsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
|
470
|
+
ListScramSecretsRequest.struct_class = Types::ListScramSecretsRequest
|
471
|
+
|
472
|
+
ListScramSecretsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
|
473
|
+
ListScramSecretsResponse.add_member(:secret_arn_list, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "secretArnList"))
|
474
|
+
ListScramSecretsResponse.struct_class = Types::ListScramSecretsResponse
|
475
|
+
|
439
476
|
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resourceArn"))
|
440
477
|
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
441
478
|
|
@@ -499,6 +536,12 @@ module Aws::Kafka
|
|
499
536
|
S3.add_member(:prefix, Shapes::ShapeRef.new(shape: __string, location_name: "prefix"))
|
500
537
|
S3.struct_class = Types::S3
|
501
538
|
|
539
|
+
Sasl.add_member(:scram, Shapes::ShapeRef.new(shape: Scram, location_name: "scram"))
|
540
|
+
Sasl.struct_class = Types::Sasl
|
541
|
+
|
542
|
+
Scram.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, location_name: "enabled"))
|
543
|
+
Scram.struct_class = Types::Scram
|
544
|
+
|
502
545
|
ServiceUnavailableException.add_member(:invalid_parameter, Shapes::ShapeRef.new(shape: __string, location_name: "invalidParameter"))
|
503
546
|
ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
|
504
547
|
ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
|
@@ -525,6 +568,11 @@ module Aws::Kafka
|
|
525
568
|
UnauthorizedException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
|
526
569
|
UnauthorizedException.struct_class = Types::UnauthorizedException
|
527
570
|
|
571
|
+
UnprocessedScramSecret.add_member(:error_code, Shapes::ShapeRef.new(shape: __string, location_name: "errorCode"))
|
572
|
+
UnprocessedScramSecret.add_member(:error_message, Shapes::ShapeRef.new(shape: __string, location_name: "errorMessage"))
|
573
|
+
UnprocessedScramSecret.add_member(:secret_arn, Shapes::ShapeRef.new(shape: __string, location_name: "secretArn"))
|
574
|
+
UnprocessedScramSecret.struct_class = Types::UnprocessedScramSecret
|
575
|
+
|
528
576
|
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resourceArn"))
|
529
577
|
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location: "querystring", location_name: "tagKeys"))
|
530
578
|
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
@@ -611,6 +659,8 @@ module Aws::Kafka
|
|
611
659
|
|
612
660
|
__listOfNodeInfo.member = Shapes::ShapeRef.new(shape: NodeInfo)
|
613
661
|
|
662
|
+
__listOfUnprocessedScramSecret.member = Shapes::ShapeRef.new(shape: UnprocessedScramSecret)
|
663
|
+
|
614
664
|
__listOf__string.member = Shapes::ShapeRef.new(shape: __string)
|
615
665
|
|
616
666
|
__mapOf__string.key = Shapes::ShapeRef.new(shape: __string)
|
@@ -635,6 +685,21 @@ module Aws::Kafka
|
|
635
685
|
"uid" => "kafka-2018-11-14",
|
636
686
|
}
|
637
687
|
|
688
|
+
api.add_operation(:batch_associate_scram_secret, Seahorse::Model::Operation.new.tap do |o|
|
689
|
+
o.name = "BatchAssociateScramSecret"
|
690
|
+
o.http_method = "POST"
|
691
|
+
o.http_request_uri = "/v1/clusters/{clusterArn}/scram-secrets"
|
692
|
+
o.input = Shapes::ShapeRef.new(shape: BatchAssociateScramSecretRequest)
|
693
|
+
o.output = Shapes::ShapeRef.new(shape: BatchAssociateScramSecretResponse)
|
694
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
695
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
696
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
697
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
698
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
699
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
700
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
701
|
+
end)
|
702
|
+
|
638
703
|
api.add_operation(:create_cluster, Seahorse::Model::Operation.new.tap do |o|
|
639
704
|
o.name = "CreateCluster"
|
640
705
|
o.http_method = "POST"
|
@@ -743,6 +808,21 @@ module Aws::Kafka
|
|
743
808
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
744
809
|
end)
|
745
810
|
|
811
|
+
api.add_operation(:batch_disassociate_scram_secret, Seahorse::Model::Operation.new.tap do |o|
|
812
|
+
o.name = "BatchDisassociateScramSecret"
|
813
|
+
o.http_method = "PATCH"
|
814
|
+
o.http_request_uri = "/v1/clusters/{clusterArn}/scram-secrets"
|
815
|
+
o.input = Shapes::ShapeRef.new(shape: BatchDisassociateScramSecretRequest)
|
816
|
+
o.output = Shapes::ShapeRef.new(shape: BatchDisassociateScramSecretResponse)
|
817
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
818
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
819
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
820
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
821
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
822
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
823
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
824
|
+
end)
|
825
|
+
|
746
826
|
api.add_operation(:get_bootstrap_brokers, Seahorse::Model::Operation.new.tap do |o|
|
747
827
|
o.name = "GetBootstrapBrokers"
|
748
828
|
o.http_method = "GET"
|
@@ -882,6 +962,27 @@ module Aws::Kafka
|
|
882
962
|
)
|
883
963
|
end)
|
884
964
|
|
965
|
+
api.add_operation(:list_scram_secrets, Seahorse::Model::Operation.new.tap do |o|
|
966
|
+
o.name = "ListScramSecrets"
|
967
|
+
o.http_method = "GET"
|
968
|
+
o.http_request_uri = "/v1/clusters/{clusterArn}/scram-secrets"
|
969
|
+
o.input = Shapes::ShapeRef.new(shape: ListScramSecretsRequest)
|
970
|
+
o.output = Shapes::ShapeRef.new(shape: ListScramSecretsResponse)
|
971
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
972
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
973
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
974
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
975
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
976
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
977
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
978
|
+
o[:pager] = Aws::Pager.new(
|
979
|
+
limit_key: "max_results",
|
980
|
+
tokens: {
|
981
|
+
"next_token" => "next_token"
|
982
|
+
}
|
983
|
+
)
|
984
|
+
end)
|
985
|
+
|
885
986
|
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
886
987
|
o.name = "ListTagsForResource"
|
887
988
|
o.http_method = "GET"
|
data/lib/aws-sdk-kafka/types.rb
CHANGED
@@ -10,6 +10,51 @@
|
|
10
10
|
module Aws::Kafka
|
11
11
|
module Types
|
12
12
|
|
13
|
+
# Request body for BatchAssociateScramSecret.
|
14
|
+
#
|
15
|
+
# @note When making an API call, you may pass BatchAssociateScramSecretRequest
|
16
|
+
# data as a hash:
|
17
|
+
#
|
18
|
+
# {
|
19
|
+
# cluster_arn: "__string", # required
|
20
|
+
# secret_arn_list: ["__string"], # required
|
21
|
+
# }
|
22
|
+
#
|
23
|
+
# @!attribute [rw] cluster_arn
|
24
|
+
# @return [String]
|
25
|
+
#
|
26
|
+
# @!attribute [rw] secret_arn_list
|
27
|
+
# List of AWS Secrets Manager secret ARNs.
|
28
|
+
# @return [Array<String>]
|
29
|
+
#
|
30
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/BatchAssociateScramSecretRequest AWS API Documentation
|
31
|
+
#
|
32
|
+
class BatchAssociateScramSecretRequest < Struct.new(
|
33
|
+
:cluster_arn,
|
34
|
+
:secret_arn_list)
|
35
|
+
SENSITIVE = []
|
36
|
+
include Aws::Structure
|
37
|
+
end
|
38
|
+
|
39
|
+
# Response body for BatchAssociateScramSecret.
|
40
|
+
#
|
41
|
+
# @!attribute [rw] cluster_arn
|
42
|
+
# The Amazon Resource Name (ARN) of the cluster.
|
43
|
+
# @return [String]
|
44
|
+
#
|
45
|
+
# @!attribute [rw] unprocessed_scram_secrets
|
46
|
+
# List of errors when associating secrets to cluster.
|
47
|
+
# @return [Array<Types::UnprocessedScramSecret>]
|
48
|
+
#
|
49
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/BatchAssociateScramSecretResponse AWS API Documentation
|
50
|
+
#
|
51
|
+
class BatchAssociateScramSecretResponse < Struct.new(
|
52
|
+
:cluster_arn,
|
53
|
+
:unprocessed_scram_secrets)
|
54
|
+
SENSITIVE = []
|
55
|
+
include Aws::Structure
|
56
|
+
end
|
57
|
+
|
13
58
|
# Returns information about an error.
|
14
59
|
#
|
15
60
|
# @!attribute [rw] invalid_parameter
|
@@ -235,11 +280,19 @@ module Aws::Kafka
|
|
235
280
|
# data as a hash:
|
236
281
|
#
|
237
282
|
# {
|
283
|
+
# sasl: {
|
284
|
+
# scram: {
|
285
|
+
# enabled: false,
|
286
|
+
# },
|
287
|
+
# },
|
238
288
|
# tls: {
|
239
289
|
# certificate_authority_arn_list: ["__string"],
|
240
290
|
# },
|
241
291
|
# }
|
242
292
|
#
|
293
|
+
# @!attribute [rw] sasl
|
294
|
+
# @return [Types::Sasl]
|
295
|
+
#
|
243
296
|
# @!attribute [rw] tls
|
244
297
|
# Details for ClientAuthentication using TLS.
|
245
298
|
# @return [Types::Tls]
|
@@ -247,6 +300,7 @@ module Aws::Kafka
|
|
247
300
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ClientAuthentication AWS API Documentation
|
248
301
|
#
|
249
302
|
class ClientAuthentication < Struct.new(
|
303
|
+
:sasl,
|
250
304
|
:tls)
|
251
305
|
SENSITIVE = []
|
252
306
|
include Aws::Structure
|
@@ -630,6 +684,11 @@ module Aws::Kafka
|
|
630
684
|
# },
|
631
685
|
# },
|
632
686
|
# client_authentication: {
|
687
|
+
# sasl: {
|
688
|
+
# scram: {
|
689
|
+
# enabled: false,
|
690
|
+
# },
|
691
|
+
# },
|
633
692
|
# tls: {
|
634
693
|
# certificate_authority_arn_list: ["__string"],
|
635
694
|
# },
|
@@ -1117,6 +1176,51 @@ module Aws::Kafka
|
|
1117
1176
|
include Aws::Structure
|
1118
1177
|
end
|
1119
1178
|
|
1179
|
+
# Request body for BatchDisassociateScramSecret.
|
1180
|
+
#
|
1181
|
+
# @note When making an API call, you may pass BatchDisassociateScramSecretRequest
|
1182
|
+
# data as a hash:
|
1183
|
+
#
|
1184
|
+
# {
|
1185
|
+
# cluster_arn: "__string", # required
|
1186
|
+
# secret_arn_list: ["__string"], # required
|
1187
|
+
# }
|
1188
|
+
#
|
1189
|
+
# @!attribute [rw] cluster_arn
|
1190
|
+
# @return [String]
|
1191
|
+
#
|
1192
|
+
# @!attribute [rw] secret_arn_list
|
1193
|
+
# List of AWS Secrets Manager secret ARNs.
|
1194
|
+
# @return [Array<String>]
|
1195
|
+
#
|
1196
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/BatchDisassociateScramSecretRequest AWS API Documentation
|
1197
|
+
#
|
1198
|
+
class BatchDisassociateScramSecretRequest < Struct.new(
|
1199
|
+
:cluster_arn,
|
1200
|
+
:secret_arn_list)
|
1201
|
+
SENSITIVE = []
|
1202
|
+
include Aws::Structure
|
1203
|
+
end
|
1204
|
+
|
1205
|
+
# Response body for BatchDisassociateScramSecret.
|
1206
|
+
#
|
1207
|
+
# @!attribute [rw] cluster_arn
|
1208
|
+
# The Amazon Resource Name (ARN) of the cluster.
|
1209
|
+
# @return [String]
|
1210
|
+
#
|
1211
|
+
# @!attribute [rw] unprocessed_scram_secrets
|
1212
|
+
# List of errors when disassociating secrets to cluster.
|
1213
|
+
# @return [Array<Types::UnprocessedScramSecret>]
|
1214
|
+
#
|
1215
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/BatchDisassociateScramSecretResponse AWS API Documentation
|
1216
|
+
#
|
1217
|
+
class BatchDisassociateScramSecretResponse < Struct.new(
|
1218
|
+
:cluster_arn,
|
1219
|
+
:unprocessed_scram_secrets)
|
1220
|
+
SENSITIVE = []
|
1221
|
+
include Aws::Structure
|
1222
|
+
end
|
1223
|
+
|
1120
1224
|
# Contains information about the EBS storage volumes attached to Kafka
|
1121
1225
|
# broker nodes.
|
1122
1226
|
#
|
@@ -1353,11 +1457,19 @@ module Aws::Kafka
|
|
1353
1457
|
# <programlisting>\{ "BootstrapBrokerStringTls": "b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094,b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094" \}</programlisting>
|
1354
1458
|
# @return [String]
|
1355
1459
|
#
|
1460
|
+
# @!attribute [rw] bootstrap_broker_string_sasl_scram
|
1461
|
+
# A string containing one or more DNS names (or IP) and SASL SCRAM
|
1462
|
+
# port pairs. The following is an example.
|
1463
|
+
#
|
1464
|
+
# <programlisting>\{ "BootstrapBrokerStringSaslScram": "b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096,b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096" \}</programlisting>
|
1465
|
+
# @return [String]
|
1466
|
+
#
|
1356
1467
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/GetBootstrapBrokersResponse AWS API Documentation
|
1357
1468
|
#
|
1358
1469
|
class GetBootstrapBrokersResponse < Struct.new(
|
1359
1470
|
:bootstrap_broker_string,
|
1360
|
-
:bootstrap_broker_string_tls
|
1471
|
+
:bootstrap_broker_string_tls,
|
1472
|
+
:bootstrap_broker_string_sasl_scram)
|
1361
1473
|
SENSITIVE = []
|
1362
1474
|
include Aws::Structure
|
1363
1475
|
end
|
@@ -1716,6 +1828,53 @@ module Aws::Kafka
|
|
1716
1828
|
include Aws::Structure
|
1717
1829
|
end
|
1718
1830
|
|
1831
|
+
# @note When making an API call, you may pass ListScramSecretsRequest
|
1832
|
+
# data as a hash:
|
1833
|
+
#
|
1834
|
+
# {
|
1835
|
+
# cluster_arn: "__string", # required
|
1836
|
+
# max_results: 1,
|
1837
|
+
# next_token: "__string",
|
1838
|
+
# }
|
1839
|
+
#
|
1840
|
+
# @!attribute [rw] cluster_arn
|
1841
|
+
# @return [String]
|
1842
|
+
#
|
1843
|
+
# @!attribute [rw] max_results
|
1844
|
+
# @return [Integer]
|
1845
|
+
#
|
1846
|
+
# @!attribute [rw] next_token
|
1847
|
+
# @return [String]
|
1848
|
+
#
|
1849
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListScramSecretsRequest AWS API Documentation
|
1850
|
+
#
|
1851
|
+
class ListScramSecretsRequest < Struct.new(
|
1852
|
+
:cluster_arn,
|
1853
|
+
:max_results,
|
1854
|
+
:next_token)
|
1855
|
+
SENSITIVE = []
|
1856
|
+
include Aws::Structure
|
1857
|
+
end
|
1858
|
+
|
1859
|
+
# Information about scram secrets associated to the cluster.
|
1860
|
+
#
|
1861
|
+
# @!attribute [rw] next_token
|
1862
|
+
# Paginated results marker.
|
1863
|
+
# @return [String]
|
1864
|
+
#
|
1865
|
+
# @!attribute [rw] secret_arn_list
|
1866
|
+
# The list of scram secrets associated with the cluster.
|
1867
|
+
# @return [Array<String>]
|
1868
|
+
#
|
1869
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListScramSecretsResponse AWS API Documentation
|
1870
|
+
#
|
1871
|
+
class ListScramSecretsResponse < Struct.new(
|
1872
|
+
:next_token,
|
1873
|
+
:secret_arn_list)
|
1874
|
+
SENSITIVE = []
|
1875
|
+
include Aws::Structure
|
1876
|
+
end
|
1877
|
+
|
1719
1878
|
# @note When making an API call, you may pass ListTagsForResourceRequest
|
1720
1879
|
# data as a hash:
|
1721
1880
|
#
|
@@ -1889,6 +2048,44 @@ module Aws::Kafka
|
|
1889
2048
|
include Aws::Structure
|
1890
2049
|
end
|
1891
2050
|
|
2051
|
+
# @note When making an API call, you may pass Sasl
|
2052
|
+
# data as a hash:
|
2053
|
+
#
|
2054
|
+
# {
|
2055
|
+
# scram: {
|
2056
|
+
# enabled: false,
|
2057
|
+
# },
|
2058
|
+
# }
|
2059
|
+
#
|
2060
|
+
# @!attribute [rw] scram
|
2061
|
+
# @return [Types::Scram]
|
2062
|
+
#
|
2063
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/Sasl AWS API Documentation
|
2064
|
+
#
|
2065
|
+
class Sasl < Struct.new(
|
2066
|
+
:scram)
|
2067
|
+
SENSITIVE = []
|
2068
|
+
include Aws::Structure
|
2069
|
+
end
|
2070
|
+
|
2071
|
+
# @note When making an API call, you may pass Scram
|
2072
|
+
# data as a hash:
|
2073
|
+
#
|
2074
|
+
# {
|
2075
|
+
# enabled: false,
|
2076
|
+
# }
|
2077
|
+
#
|
2078
|
+
# @!attribute [rw] enabled
|
2079
|
+
# @return [Boolean]
|
2080
|
+
#
|
2081
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/Scram AWS API Documentation
|
2082
|
+
#
|
2083
|
+
class Scram < Struct.new(
|
2084
|
+
:enabled)
|
2085
|
+
SENSITIVE = []
|
2086
|
+
include Aws::Structure
|
2087
|
+
end
|
2088
|
+
|
1892
2089
|
# Returns information about an error.
|
1893
2090
|
#
|
1894
2091
|
# @!attribute [rw] invalid_parameter
|
@@ -2034,6 +2231,25 @@ module Aws::Kafka
|
|
2034
2231
|
include Aws::Structure
|
2035
2232
|
end
|
2036
2233
|
|
2234
|
+
# @!attribute [rw] error_code
|
2235
|
+
# @return [String]
|
2236
|
+
#
|
2237
|
+
# @!attribute [rw] error_message
|
2238
|
+
# @return [String]
|
2239
|
+
#
|
2240
|
+
# @!attribute [rw] secret_arn
|
2241
|
+
# @return [String]
|
2242
|
+
#
|
2243
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UnprocessedScramSecret AWS API Documentation
|
2244
|
+
#
|
2245
|
+
class UnprocessedScramSecret < Struct.new(
|
2246
|
+
:error_code,
|
2247
|
+
:error_message,
|
2248
|
+
:secret_arn)
|
2249
|
+
SENSITIVE = []
|
2250
|
+
include Aws::Structure
|
2251
|
+
end
|
2252
|
+
|
2037
2253
|
# @note When making an API call, you may pass UntagResourceRequest
|
2038
2254
|
# data as a hash:
|
2039
2255
|
#
|
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.27.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: 2020-
|
11
|
+
date: 2020-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|