aws-sdk-kafka 1.19.0 → 1.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 656750f85119a88fc9e63f433f5e915ca72bc769
4
- data.tar.gz: 0d7739d426ac2dd601d4fdca1fb5d4ac7cbd98ab
2
+ SHA256:
3
+ metadata.gz: 5082571863e152958842193bcc477ca8f4011207fd359cae38821d6e7c65d5c7
4
+ data.tar.gz: fafd786c37b6e1455fcc566a87ce66664ddac5568be5505e4d6a552c6cabc9ba
5
5
  SHA512:
6
- metadata.gz: 00675d0b28e455ec905f8ac638c65d97225bdab26fc64324f7044c519c62b3171f289a5b92b73ae87c750078966397c064b8f2729d3e1bff1e113c350e2844ea
7
- data.tar.gz: 948bca6826807f2a1a8f9ac780b0ed590c78eb0458e9f95f6e807b60ba8dd463cff7bea63fb61efc319f34ec0784e36a0fa0b024eabd11b1026ec97e43cffdee
6
+ metadata.gz: 9189b963ee4214029569540d1fbceb0efcd9b126ffcf74ff25330e8a15a2b070169a054c8625efbb50f398868d6a732dea5900d0e59a2e9e35b64032ebd431f9
7
+ data.tar.gz: b06ec8328bb0b9bd4df813d14b214db8c907fb07a20ab31d4ca5459b3d01976cd5b2a2d74088b3f778295aac62796c5479016d97cdd14d7ff9c2a5efcc52815d
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-kafka/customizations'
45
47
  # @service
46
48
  module Aws::Kafka
47
49
 
48
- GEM_VERSION = '1.19.0'
50
+ GEM_VERSION = '1.24.0'
49
51
 
50
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
32
 
@@ -32,11 +35,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:kafka)
32
35
  module Aws::Kafka
33
36
  # An API client for Kafka. To construct a client, you need to configure a `:region` and `:credentials`.
34
37
  #
35
- # client = Aws::Kafka::Client.new(
36
- # region: region_name,
37
- # credentials: credentials,
38
- # # ...
39
- # )
38
+ # client = Aws::Kafka::Client.new(
39
+ # region: region_name,
40
+ # credentials: credentials,
41
+ # # ...
42
+ # )
40
43
  #
41
44
  # For details on configuring region and credentials see
42
45
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -69,6 +72,7 @@ module Aws::Kafka
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::RestJson)
74
78
 
@@ -105,7 +109,7 @@ module Aws::Kafka
105
109
  # @option options [required, String] :region
106
110
  # The AWS region to connect to. The configured `:region` is
107
111
  # used to determine the service `:endpoint`. When not passed,
108
- # a default `:region` is search for in the following locations:
112
+ # a default `:region` is searched for in the following locations:
109
113
  #
110
114
  # * `Aws.config[:region]`
111
115
  # * `ENV['AWS_REGION']`
@@ -161,7 +165,7 @@ module Aws::Kafka
161
165
  # @option options [String] :endpoint
162
166
  # The client endpoint is normally constructed from the `:region`
163
167
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be avalid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
169
  #
166
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -176,7 +180,7 @@ module Aws::Kafka
176
180
  # requests fetching endpoints information. Defaults to 60 sec.
177
181
  #
178
182
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
184
  #
181
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
186
  # The log formatter.
@@ -229,15 +233,19 @@ module Aws::Kafka
229
233
  #
230
234
  # @option options [String] :retry_mode ("legacy")
231
235
  # Specifies which retry algorithm to use. Values are:
232
- # * `legacy` - The pre-existing retry behavior. This is default value if
233
- # no retry mode is provided.
234
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
- # This includes support for retry quotas, which limit the number of
236
- # unsuccessful retries a client can make.
237
- # * `adaptive` - An experimental retry mode that includes all the
238
- # functionality of `standard` mode along with automatic client side
239
- # throttling. This is a provisional mode that may change behavior
240
- # in the future.
236
+ #
237
+ # * `legacy` - The pre-existing retry behavior. This is default value if
238
+ # no retry mode is provided.
239
+ #
240
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
241
+ # This includes support for retry quotas, which limit the number of
242
+ # unsuccessful retries a client can make.
243
+ #
244
+ # * `adaptive` - An experimental retry mode that includes all the
245
+ # functionality of `standard` mode along with automatic client side
246
+ # throttling. This is a provisional mode that may change behavior
247
+ # in the future.
248
+ #
241
249
  #
242
250
  # @option options [String] :secret_access_key
243
251
  #
@@ -265,8 +273,7 @@ module Aws::Kafka
265
273
  #
266
274
  # @option options [Integer] :http_read_timeout (60) The default
267
275
  # number of seconds to wait for response data. This value can
268
- # safely be set
269
- # per-request on the session yielded by {#session_for}.
276
+ # safely be set per-request on the session.
270
277
  #
271
278
  # @option options [Float] :http_idle_timeout (5) The number of
272
279
  # seconds a connection is allowed to sit idle before it is
@@ -278,7 +285,7 @@ module Aws::Kafka
278
285
  # request body. This option has no effect unless the request has
279
286
  # "Expect" header set to "100-continue". Defaults to `nil` which
280
287
  # disables this behaviour. This value can safely be set per
281
- # request on the session yielded by {#session_for}.
288
+ # request on the session.
282
289
  #
283
290
  # @option options [Boolean] :http_wire_trace (false) When `true`,
284
291
  # HTTP debug output will be sent to the `:logger`.
@@ -435,7 +442,7 @@ module Aws::Kafka
435
442
  # @option params [String] :description
436
443
  # The description of the configuration.
437
444
  #
438
- # @option params [required, Array<String>] :kafka_versions
445
+ # @option params [Array<String>] :kafka_versions
439
446
  # The versions of Apache Kafka with which you can use this MSK
440
447
  # configuration.
441
448
  #
@@ -443,7 +450,7 @@ module Aws::Kafka
443
450
  # The name of the configuration. Configuration names are strings that
444
451
  # match the regex "^\[0-9A-Za-z-\]+$".
445
452
  #
446
- # @option params [required, String, IO] :server_properties
453
+ # @option params [required, String, StringIO, File] :server_properties
447
454
  #
448
455
  # @return [Types::CreateConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
449
456
  #
@@ -456,7 +463,7 @@ module Aws::Kafka
456
463
  #
457
464
  # resp = client.create_configuration({
458
465
  # description: "__string",
459
- # kafka_versions: ["__string"], # required
466
+ # kafka_versions: ["__string"],
460
467
  # name: "__string", # required
461
468
  # server_properties: "data", # required
462
469
  # })
@@ -596,6 +603,9 @@ module Aws::Kafka
596
603
  # resp.cluster_operation_info.end_time #=> Time
597
604
  # resp.cluster_operation_info.error_info.error_code #=> String
598
605
  # resp.cluster_operation_info.error_info.error_string #=> String
606
+ # resp.cluster_operation_info.operation_steps #=> Array
607
+ # resp.cluster_operation_info.operation_steps[0].step_info.step_status #=> String
608
+ # resp.cluster_operation_info.operation_steps[0].step_name #=> String
599
609
  # resp.cluster_operation_info.operation_arn #=> String
600
610
  # resp.cluster_operation_info.operation_state #=> String
601
611
  # resp.cluster_operation_info.operation_type #=> String
@@ -608,6 +618,7 @@ module Aws::Kafka
608
618
  # resp.cluster_operation_info.source_cluster_info.open_monitoring.prometheus.jmx_exporter.enabled_in_broker #=> Boolean
609
619
  # resp.cluster_operation_info.source_cluster_info.open_monitoring.prometheus.node_exporter.enabled_in_broker #=> Boolean
610
620
  # resp.cluster_operation_info.source_cluster_info.enhanced_monitoring #=> String, one of "DEFAULT", "PER_BROKER", "PER_TOPIC_PER_BROKER"
621
+ # resp.cluster_operation_info.source_cluster_info.kafka_version #=> String
611
622
  # resp.cluster_operation_info.source_cluster_info.logging_info.broker_logs.cloud_watch_logs.enabled #=> Boolean
612
623
  # resp.cluster_operation_info.source_cluster_info.logging_info.broker_logs.cloud_watch_logs.log_group #=> String
613
624
  # resp.cluster_operation_info.source_cluster_info.logging_info.broker_logs.firehose.delivery_stream #=> String
@@ -624,6 +635,7 @@ module Aws::Kafka
624
635
  # resp.cluster_operation_info.target_cluster_info.open_monitoring.prometheus.jmx_exporter.enabled_in_broker #=> Boolean
625
636
  # resp.cluster_operation_info.target_cluster_info.open_monitoring.prometheus.node_exporter.enabled_in_broker #=> Boolean
626
637
  # resp.cluster_operation_info.target_cluster_info.enhanced_monitoring #=> String, one of "DEFAULT", "PER_BROKER", "PER_TOPIC_PER_BROKER"
638
+ # resp.cluster_operation_info.target_cluster_info.kafka_version #=> String
627
639
  # resp.cluster_operation_info.target_cluster_info.logging_info.broker_logs.cloud_watch_logs.enabled #=> Boolean
628
640
  # resp.cluster_operation_info.target_cluster_info.logging_info.broker_logs.cloud_watch_logs.log_group #=> String
629
641
  # resp.cluster_operation_info.target_cluster_info.logging_info.broker_logs.firehose.delivery_stream #=> String
@@ -748,6 +760,37 @@ module Aws::Kafka
748
760
  req.send_request(options)
749
761
  end
750
762
 
763
+ # Gets the Apache Kafka versions to which you can update the MSK
764
+ # cluster.
765
+ #
766
+ # @option params [String] :cluster_arn
767
+ #
768
+ # @return [Types::GetCompatibleKafkaVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
769
+ #
770
+ # * {Types::GetCompatibleKafkaVersionsResponse#compatible_kafka_versions #compatible_kafka_versions} => Array&lt;Types::CompatibleKafkaVersion&gt;
771
+ #
772
+ # @example Request syntax with placeholder values
773
+ #
774
+ # resp = client.get_compatible_kafka_versions({
775
+ # cluster_arn: "__string",
776
+ # })
777
+ #
778
+ # @example Response structure
779
+ #
780
+ # resp.compatible_kafka_versions #=> Array
781
+ # resp.compatible_kafka_versions[0].source_version #=> String
782
+ # resp.compatible_kafka_versions[0].target_versions #=> Array
783
+ # resp.compatible_kafka_versions[0].target_versions[0] #=> String
784
+ #
785
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/GetCompatibleKafkaVersions AWS API Documentation
786
+ #
787
+ # @overload get_compatible_kafka_versions(params = {})
788
+ # @param [Hash] params ({})
789
+ def get_compatible_kafka_versions(params = {}, options = {})
790
+ req = build_request(:get_compatible_kafka_versions, params)
791
+ req.send_request(options)
792
+ end
793
+
751
794
  # Returns a list of all the operations that have been performed on the
752
795
  # specified MSK cluster.
753
796
  #
@@ -762,6 +805,8 @@ module Aws::Kafka
762
805
  # * {Types::ListClusterOperationsResponse#cluster_operation_info_list #cluster_operation_info_list} => Array&lt;Types::ClusterOperationInfo&gt;
763
806
  # * {Types::ListClusterOperationsResponse#next_token #next_token} => String
764
807
  #
808
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
809
+ #
765
810
  # @example Request syntax with placeholder values
766
811
  #
767
812
  # resp = client.list_cluster_operations({
@@ -779,6 +824,9 @@ module Aws::Kafka
779
824
  # resp.cluster_operation_info_list[0].end_time #=> Time
780
825
  # resp.cluster_operation_info_list[0].error_info.error_code #=> String
781
826
  # resp.cluster_operation_info_list[0].error_info.error_string #=> String
827
+ # resp.cluster_operation_info_list[0].operation_steps #=> Array
828
+ # resp.cluster_operation_info_list[0].operation_steps[0].step_info.step_status #=> String
829
+ # resp.cluster_operation_info_list[0].operation_steps[0].step_name #=> String
782
830
  # resp.cluster_operation_info_list[0].operation_arn #=> String
783
831
  # resp.cluster_operation_info_list[0].operation_state #=> String
784
832
  # resp.cluster_operation_info_list[0].operation_type #=> String
@@ -791,6 +839,7 @@ module Aws::Kafka
791
839
  # resp.cluster_operation_info_list[0].source_cluster_info.open_monitoring.prometheus.jmx_exporter.enabled_in_broker #=> Boolean
792
840
  # resp.cluster_operation_info_list[0].source_cluster_info.open_monitoring.prometheus.node_exporter.enabled_in_broker #=> Boolean
793
841
  # resp.cluster_operation_info_list[0].source_cluster_info.enhanced_monitoring #=> String, one of "DEFAULT", "PER_BROKER", "PER_TOPIC_PER_BROKER"
842
+ # resp.cluster_operation_info_list[0].source_cluster_info.kafka_version #=> String
794
843
  # resp.cluster_operation_info_list[0].source_cluster_info.logging_info.broker_logs.cloud_watch_logs.enabled #=> Boolean
795
844
  # resp.cluster_operation_info_list[0].source_cluster_info.logging_info.broker_logs.cloud_watch_logs.log_group #=> String
796
845
  # resp.cluster_operation_info_list[0].source_cluster_info.logging_info.broker_logs.firehose.delivery_stream #=> String
@@ -807,6 +856,7 @@ module Aws::Kafka
807
856
  # resp.cluster_operation_info_list[0].target_cluster_info.open_monitoring.prometheus.jmx_exporter.enabled_in_broker #=> Boolean
808
857
  # resp.cluster_operation_info_list[0].target_cluster_info.open_monitoring.prometheus.node_exporter.enabled_in_broker #=> Boolean
809
858
  # resp.cluster_operation_info_list[0].target_cluster_info.enhanced_monitoring #=> String, one of "DEFAULT", "PER_BROKER", "PER_TOPIC_PER_BROKER"
859
+ # resp.cluster_operation_info_list[0].target_cluster_info.kafka_version #=> String
810
860
  # resp.cluster_operation_info_list[0].target_cluster_info.logging_info.broker_logs.cloud_watch_logs.enabled #=> Boolean
811
861
  # resp.cluster_operation_info_list[0].target_cluster_info.logging_info.broker_logs.cloud_watch_logs.log_group #=> String
812
862
  # resp.cluster_operation_info_list[0].target_cluster_info.logging_info.broker_logs.firehose.delivery_stream #=> String
@@ -838,6 +888,8 @@ module Aws::Kafka
838
888
  # * {Types::ListClustersResponse#cluster_info_list #cluster_info_list} => Array&lt;Types::ClusterInfo&gt;
839
889
  # * {Types::ListClustersResponse#next_token #next_token} => String
840
890
  #
891
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
892
+ #
841
893
  # @example Request syntax with placeholder values
842
894
  #
843
895
  # resp = client.list_clusters({
@@ -908,6 +960,8 @@ module Aws::Kafka
908
960
  # * {Types::ListConfigurationRevisionsResponse#next_token #next_token} => String
909
961
  # * {Types::ListConfigurationRevisionsResponse#revisions #revisions} => Array&lt;Types::ConfigurationRevision&gt;
910
962
  #
963
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
964
+ #
911
965
  # @example Request syntax with placeholder values
912
966
  #
913
967
  # resp = client.list_configuration_revisions({
@@ -944,6 +998,8 @@ module Aws::Kafka
944
998
  # * {Types::ListConfigurationsResponse#configurations #configurations} => Array&lt;Types::Configuration&gt;
945
999
  # * {Types::ListConfigurationsResponse#next_token #next_token} => String
946
1000
  #
1001
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1002
+ #
947
1003
  # @example Request syntax with placeholder values
948
1004
  #
949
1005
  # resp = client.list_configurations({
@@ -985,6 +1041,8 @@ module Aws::Kafka
985
1041
  # * {Types::ListKafkaVersionsResponse#kafka_versions #kafka_versions} => Array&lt;Types::KafkaVersion&gt;
986
1042
  # * {Types::ListKafkaVersionsResponse#next_token #next_token} => String
987
1043
  #
1044
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1045
+ #
988
1046
  # @example Request syntax with placeholder values
989
1047
  #
990
1048
  # resp = client.list_kafka_versions({
@@ -1021,6 +1079,8 @@ module Aws::Kafka
1021
1079
  # * {Types::ListNodesResponse#next_token #next_token} => String
1022
1080
  # * {Types::ListNodesResponse#node_info_list #node_info_list} => Array&lt;Types::NodeInfo&gt;
1023
1081
  #
1082
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1083
+ #
1024
1084
  # @example Request syntax with placeholder values
1025
1085
  #
1026
1086
  # resp = client.list_nodes({
@@ -1090,6 +1150,39 @@ module Aws::Kafka
1090
1150
  req.send_request(options)
1091
1151
  end
1092
1152
 
1153
+ # Executes a reboot on a broker.
1154
+ #
1155
+ # @option params [required, Array<String>] :broker_ids
1156
+ # The list of broker ids to be rebooted.
1157
+ #
1158
+ # @option params [required, String] :cluster_arn
1159
+ #
1160
+ # @return [Types::RebootBrokerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1161
+ #
1162
+ # * {Types::RebootBrokerResponse#cluster_arn #cluster_arn} => String
1163
+ # * {Types::RebootBrokerResponse#cluster_operation_arn #cluster_operation_arn} => String
1164
+ #
1165
+ # @example Request syntax with placeholder values
1166
+ #
1167
+ # resp = client.reboot_broker({
1168
+ # broker_ids: ["__string"], # required
1169
+ # cluster_arn: "__string", # required
1170
+ # })
1171
+ #
1172
+ # @example Response structure
1173
+ #
1174
+ # resp.cluster_arn #=> String
1175
+ # resp.cluster_operation_arn #=> String
1176
+ #
1177
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/RebootBroker AWS API Documentation
1178
+ #
1179
+ # @overload reboot_broker(params = {})
1180
+ # @param [Hash] params ({})
1181
+ def reboot_broker(params = {}, options = {})
1182
+ req = build_request(:reboot_broker, params)
1183
+ req.send_request(options)
1184
+ end
1185
+
1093
1186
  # Adds tags to the specified MSK resource.
1094
1187
  #
1095
1188
  # @option params [required, String] :resource_arn
@@ -1273,6 +1366,50 @@ module Aws::Kafka
1273
1366
  req.send_request(options)
1274
1367
  end
1275
1368
 
1369
+ # Updates the Apache Kafka version for the cluster.
1370
+ #
1371
+ # @option params [required, String] :cluster_arn
1372
+ #
1373
+ # @option params [Types::ConfigurationInfo] :configuration_info
1374
+ # Specifies the configuration to use for the brokers.
1375
+ #
1376
+ # @option params [required, String] :current_version
1377
+ # Current cluster version.
1378
+ #
1379
+ # @option params [required, String] :target_kafka_version
1380
+ # Target Kafka version.
1381
+ #
1382
+ # @return [Types::UpdateClusterKafkaVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1383
+ #
1384
+ # * {Types::UpdateClusterKafkaVersionResponse#cluster_arn #cluster_arn} => String
1385
+ # * {Types::UpdateClusterKafkaVersionResponse#cluster_operation_arn #cluster_operation_arn} => String
1386
+ #
1387
+ # @example Request syntax with placeholder values
1388
+ #
1389
+ # resp = client.update_cluster_kafka_version({
1390
+ # cluster_arn: "__string", # required
1391
+ # configuration_info: {
1392
+ # arn: "__string", # required
1393
+ # revision: 1, # required
1394
+ # },
1395
+ # current_version: "__string", # required
1396
+ # target_kafka_version: "__string", # required
1397
+ # })
1398
+ #
1399
+ # @example Response structure
1400
+ #
1401
+ # resp.cluster_arn #=> String
1402
+ # resp.cluster_operation_arn #=> String
1403
+ #
1404
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UpdateClusterKafkaVersion AWS API Documentation
1405
+ #
1406
+ # @overload update_cluster_kafka_version(params = {})
1407
+ # @param [Hash] params ({})
1408
+ def update_cluster_kafka_version(params = {}, options = {})
1409
+ req = build_request(:update_cluster_kafka_version, params)
1410
+ req.send_request(options)
1411
+ end
1412
+
1276
1413
  # Updates the monitoring settings for the cluster. You can use this
1277
1414
  # operation to specify which Apache Kafka metrics you want Amazon MSK to
1278
1415
  # send to Amazon CloudWatch. You can also specify settings for open
@@ -1361,7 +1498,7 @@ module Aws::Kafka
1361
1498
  params: params,
1362
1499
  config: config)
1363
1500
  context[:gem_name] = 'aws-sdk-kafka'
1364
- context[:gem_version] = '1.19.0'
1501
+ context[:gem_version] = '1.24.0'
1365
1502
  Seahorse::Client::Request.new(handlers, context)
1366
1503
  end
1367
1504
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -23,7 +25,10 @@ module Aws::Kafka
23
25
  CloudWatchLogs = Shapes::StructureShape.new(name: 'CloudWatchLogs')
24
26
  ClusterInfo = Shapes::StructureShape.new(name: 'ClusterInfo')
25
27
  ClusterOperationInfo = Shapes::StructureShape.new(name: 'ClusterOperationInfo')
28
+ ClusterOperationStep = Shapes::StructureShape.new(name: 'ClusterOperationStep')
29
+ ClusterOperationStepInfo = Shapes::StructureShape.new(name: 'ClusterOperationStepInfo')
26
30
  ClusterState = Shapes::StringShape.new(name: 'ClusterState')
31
+ CompatibleKafkaVersion = Shapes::StructureShape.new(name: 'CompatibleKafkaVersion')
27
32
  Configuration = Shapes::StructureShape.new(name: 'Configuration')
28
33
  ConfigurationInfo = Shapes::StructureShape.new(name: 'ConfigurationInfo')
29
34
  ConfigurationRevision = Shapes::StructureShape.new(name: 'ConfigurationRevision')
@@ -53,6 +58,8 @@ module Aws::Kafka
53
58
  ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
54
59
  GetBootstrapBrokersRequest = Shapes::StructureShape.new(name: 'GetBootstrapBrokersRequest')
55
60
  GetBootstrapBrokersResponse = Shapes::StructureShape.new(name: 'GetBootstrapBrokersResponse')
61
+ GetCompatibleKafkaVersionsRequest = Shapes::StructureShape.new(name: 'GetCompatibleKafkaVersionsRequest')
62
+ GetCompatibleKafkaVersionsResponse = Shapes::StructureShape.new(name: 'GetCompatibleKafkaVersionsResponse')
56
63
  InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
57
64
  JmxExporter = Shapes::StructureShape.new(name: 'JmxExporter')
58
65
  JmxExporterInfo = Shapes::StructureShape.new(name: 'JmxExporterInfo')
@@ -84,6 +91,8 @@ module Aws::Kafka
84
91
  OpenMonitoringInfo = Shapes::StructureShape.new(name: 'OpenMonitoringInfo')
85
92
  Prometheus = Shapes::StructureShape.new(name: 'Prometheus')
86
93
  PrometheusInfo = Shapes::StructureShape.new(name: 'PrometheusInfo')
94
+ RebootBrokerRequest = Shapes::StructureShape.new(name: 'RebootBrokerRequest')
95
+ RebootBrokerResponse = Shapes::StructureShape.new(name: 'RebootBrokerResponse')
87
96
  S3 = Shapes::StructureShape.new(name: 'S3')
88
97
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
89
98
  StateInfo = Shapes::StructureShape.new(name: 'StateInfo')
@@ -99,6 +108,8 @@ module Aws::Kafka
99
108
  UpdateBrokerStorageResponse = Shapes::StructureShape.new(name: 'UpdateBrokerStorageResponse')
100
109
  UpdateClusterConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateClusterConfigurationRequest')
101
110
  UpdateClusterConfigurationResponse = Shapes::StructureShape.new(name: 'UpdateClusterConfigurationResponse')
111
+ UpdateClusterKafkaVersionRequest = Shapes::StructureShape.new(name: 'UpdateClusterKafkaVersionRequest')
112
+ UpdateClusterKafkaVersionResponse = Shapes::StructureShape.new(name: 'UpdateClusterKafkaVersionResponse')
102
113
  UpdateMonitoringRequest = Shapes::StructureShape.new(name: 'UpdateMonitoringRequest')
103
114
  UpdateMonitoringResponse = Shapes::StructureShape.new(name: 'UpdateMonitoringResponse')
104
115
  ZookeeperNodeInfo = Shapes::StructureShape.new(name: 'ZookeeperNodeInfo')
@@ -111,6 +122,8 @@ module Aws::Kafka
111
122
  __listOfBrokerEBSVolumeInfo = Shapes::ListShape.new(name: '__listOfBrokerEBSVolumeInfo')
112
123
  __listOfClusterInfo = Shapes::ListShape.new(name: '__listOfClusterInfo')
113
124
  __listOfClusterOperationInfo = Shapes::ListShape.new(name: '__listOfClusterOperationInfo')
125
+ __listOfClusterOperationStep = Shapes::ListShape.new(name: '__listOfClusterOperationStep')
126
+ __listOfCompatibleKafkaVersion = Shapes::ListShape.new(name: '__listOfCompatibleKafkaVersion')
114
127
  __listOfConfiguration = Shapes::ListShape.new(name: '__listOfConfiguration')
115
128
  __listOfConfigurationRevision = Shapes::ListShape.new(name: '__listOfConfigurationRevision')
116
129
  __listOfKafkaVersion = Shapes::ListShape.new(name: '__listOfKafkaVersion')
@@ -187,6 +200,7 @@ module Aws::Kafka
187
200
  ClusterOperationInfo.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "creationTime"))
188
201
  ClusterOperationInfo.add_member(:end_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "endTime"))
189
202
  ClusterOperationInfo.add_member(:error_info, Shapes::ShapeRef.new(shape: ErrorInfo, location_name: "errorInfo"))
203
+ ClusterOperationInfo.add_member(:operation_steps, Shapes::ShapeRef.new(shape: __listOfClusterOperationStep, location_name: "operationSteps"))
190
204
  ClusterOperationInfo.add_member(:operation_arn, Shapes::ShapeRef.new(shape: __string, location_name: "operationArn"))
191
205
  ClusterOperationInfo.add_member(:operation_state, Shapes::ShapeRef.new(shape: __string, location_name: "operationState"))
192
206
  ClusterOperationInfo.add_member(:operation_type, Shapes::ShapeRef.new(shape: __string, location_name: "operationType"))
@@ -194,6 +208,17 @@ module Aws::Kafka
194
208
  ClusterOperationInfo.add_member(:target_cluster_info, Shapes::ShapeRef.new(shape: MutableClusterInfo, location_name: "targetClusterInfo"))
195
209
  ClusterOperationInfo.struct_class = Types::ClusterOperationInfo
196
210
 
211
+ ClusterOperationStep.add_member(:step_info, Shapes::ShapeRef.new(shape: ClusterOperationStepInfo, location_name: "stepInfo"))
212
+ ClusterOperationStep.add_member(:step_name, Shapes::ShapeRef.new(shape: __string, location_name: "stepName"))
213
+ ClusterOperationStep.struct_class = Types::ClusterOperationStep
214
+
215
+ ClusterOperationStepInfo.add_member(:step_status, Shapes::ShapeRef.new(shape: __string, location_name: "stepStatus"))
216
+ ClusterOperationStepInfo.struct_class = Types::ClusterOperationStepInfo
217
+
218
+ CompatibleKafkaVersion.add_member(:source_version, Shapes::ShapeRef.new(shape: __string, location_name: "sourceVersion"))
219
+ CompatibleKafkaVersion.add_member(:target_versions, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "targetVersions"))
220
+ CompatibleKafkaVersion.struct_class = Types::CompatibleKafkaVersion
221
+
197
222
  Configuration.add_member(:arn, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "arn"))
198
223
  Configuration.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampIso8601, required: true, location_name: "creationTime"))
199
224
  Configuration.add_member(:description, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "description"))
@@ -234,7 +259,7 @@ module Aws::Kafka
234
259
  CreateClusterResponse.struct_class = Types::CreateClusterResponse
235
260
 
236
261
  CreateConfigurationRequest.add_member(:description, Shapes::ShapeRef.new(shape: __string, location_name: "description"))
237
- CreateConfigurationRequest.add_member(:kafka_versions, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "kafkaVersions"))
262
+ CreateConfigurationRequest.add_member(:kafka_versions, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "kafkaVersions"))
238
263
  CreateConfigurationRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "name"))
239
264
  CreateConfigurationRequest.add_member(:server_properties, Shapes::ShapeRef.new(shape: __blob, required: true, location_name: "serverProperties"))
240
265
  CreateConfigurationRequest.struct_class = Types::CreateConfigurationRequest
@@ -324,6 +349,12 @@ module Aws::Kafka
324
349
  GetBootstrapBrokersResponse.add_member(:bootstrap_broker_string_tls, Shapes::ShapeRef.new(shape: __string, location_name: "bootstrapBrokerStringTls"))
325
350
  GetBootstrapBrokersResponse.struct_class = Types::GetBootstrapBrokersResponse
326
351
 
352
+ GetCompatibleKafkaVersionsRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "clusterArn"))
353
+ GetCompatibleKafkaVersionsRequest.struct_class = Types::GetCompatibleKafkaVersionsRequest
354
+
355
+ GetCompatibleKafkaVersionsResponse.add_member(:compatible_kafka_versions, Shapes::ShapeRef.new(shape: __listOfCompatibleKafkaVersion, location_name: "compatibleKafkaVersions"))
356
+ GetCompatibleKafkaVersionsResponse.struct_class = Types::GetCompatibleKafkaVersionsResponse
357
+
327
358
  InternalServerErrorException.add_member(:invalid_parameter, Shapes::ShapeRef.new(shape: __string, location_name: "invalidParameter"))
328
359
  InternalServerErrorException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
329
360
  InternalServerErrorException.struct_class = Types::InternalServerErrorException
@@ -404,6 +435,7 @@ module Aws::Kafka
404
435
  MutableClusterInfo.add_member(:number_of_broker_nodes, Shapes::ShapeRef.new(shape: __integer, location_name: "numberOfBrokerNodes"))
405
436
  MutableClusterInfo.add_member(:open_monitoring, Shapes::ShapeRef.new(shape: OpenMonitoring, location_name: "openMonitoring"))
406
437
  MutableClusterInfo.add_member(:enhanced_monitoring, Shapes::ShapeRef.new(shape: EnhancedMonitoring, location_name: "enhancedMonitoring"))
438
+ MutableClusterInfo.add_member(:kafka_version, Shapes::ShapeRef.new(shape: __string, location_name: "kafkaVersion"))
407
439
  MutableClusterInfo.add_member(:logging_info, Shapes::ShapeRef.new(shape: LoggingInfo, location_name: "loggingInfo"))
408
440
  MutableClusterInfo.struct_class = Types::MutableClusterInfo
409
441
 
@@ -439,6 +471,14 @@ module Aws::Kafka
439
471
  PrometheusInfo.add_member(:node_exporter, Shapes::ShapeRef.new(shape: NodeExporterInfo, location_name: "nodeExporter"))
440
472
  PrometheusInfo.struct_class = Types::PrometheusInfo
441
473
 
474
+ RebootBrokerRequest.add_member(:broker_ids, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "brokerIds"))
475
+ RebootBrokerRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
476
+ RebootBrokerRequest.struct_class = Types::RebootBrokerRequest
477
+
478
+ RebootBrokerResponse.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterArn"))
479
+ RebootBrokerResponse.add_member(:cluster_operation_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterOperationArn"))
480
+ RebootBrokerResponse.struct_class = Types::RebootBrokerResponse
481
+
442
482
  S3.add_member(:bucket, Shapes::ShapeRef.new(shape: __string, location_name: "bucket"))
443
483
  S3.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "enabled"))
444
484
  S3.add_member(:prefix, Shapes::ShapeRef.new(shape: __string, location_name: "prefix"))
@@ -501,6 +541,16 @@ module Aws::Kafka
501
541
  UpdateClusterConfigurationResponse.add_member(:cluster_operation_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterOperationArn"))
502
542
  UpdateClusterConfigurationResponse.struct_class = Types::UpdateClusterConfigurationResponse
503
543
 
544
+ UpdateClusterKafkaVersionRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
545
+ UpdateClusterKafkaVersionRequest.add_member(:configuration_info, Shapes::ShapeRef.new(shape: ConfigurationInfo, location_name: "configurationInfo"))
546
+ UpdateClusterKafkaVersionRequest.add_member(:current_version, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "currentVersion"))
547
+ UpdateClusterKafkaVersionRequest.add_member(:target_kafka_version, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "targetKafkaVersion"))
548
+ UpdateClusterKafkaVersionRequest.struct_class = Types::UpdateClusterKafkaVersionRequest
549
+
550
+ UpdateClusterKafkaVersionResponse.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterArn"))
551
+ UpdateClusterKafkaVersionResponse.add_member(:cluster_operation_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterOperationArn"))
552
+ UpdateClusterKafkaVersionResponse.struct_class = Types::UpdateClusterKafkaVersionResponse
553
+
504
554
  UpdateMonitoringRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
505
555
  UpdateMonitoringRequest.add_member(:current_version, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "currentVersion"))
506
556
  UpdateMonitoringRequest.add_member(:enhanced_monitoring, Shapes::ShapeRef.new(shape: EnhancedMonitoring, location_name: "enhancedMonitoring"))
@@ -525,6 +575,10 @@ module Aws::Kafka
525
575
 
526
576
  __listOfClusterOperationInfo.member = Shapes::ShapeRef.new(shape: ClusterOperationInfo)
527
577
 
578
+ __listOfClusterOperationStep.member = Shapes::ShapeRef.new(shape: ClusterOperationStep)
579
+
580
+ __listOfCompatibleKafkaVersion.member = Shapes::ShapeRef.new(shape: CompatibleKafkaVersion)
581
+
528
582
  __listOfConfiguration.member = Shapes::ShapeRef.new(shape: Configuration)
529
583
 
530
584
  __listOfConfigurationRevision.member = Shapes::ShapeRef.new(shape: ConfigurationRevision)
@@ -666,6 +720,21 @@ module Aws::Kafka
666
720
  o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
667
721
  end)
668
722
 
723
+ api.add_operation(:get_compatible_kafka_versions, Seahorse::Model::Operation.new.tap do |o|
724
+ o.name = "GetCompatibleKafkaVersions"
725
+ o.http_method = "GET"
726
+ o.http_request_uri = "/v1/compatible-kafka-versions"
727
+ o.input = Shapes::ShapeRef.new(shape: GetCompatibleKafkaVersionsRequest)
728
+ o.output = Shapes::ShapeRef.new(shape: GetCompatibleKafkaVersionsResponse)
729
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
730
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
731
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
732
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
733
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
734
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
735
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
736
+ end)
737
+
669
738
  api.add_operation(:list_cluster_operations, Seahorse::Model::Operation.new.tap do |o|
670
739
  o.name = "ListClusterOperations"
671
740
  o.http_method = "GET"
@@ -788,6 +857,21 @@ module Aws::Kafka
788
857
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
789
858
  end)
790
859
 
860
+ api.add_operation(:reboot_broker, Seahorse::Model::Operation.new.tap do |o|
861
+ o.name = "RebootBroker"
862
+ o.http_method = "PUT"
863
+ o.http_request_uri = "/v1/clusters/{clusterArn}/reboot-broker"
864
+ o.input = Shapes::ShapeRef.new(shape: RebootBrokerRequest)
865
+ o.output = Shapes::ShapeRef.new(shape: RebootBrokerResponse)
866
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
867
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
868
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
869
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
870
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
871
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
872
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
873
+ end)
874
+
791
875
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
792
876
  o.name = "TagResource"
793
877
  o.http_method = "POST"
@@ -850,6 +934,21 @@ module Aws::Kafka
850
934
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
851
935
  end)
852
936
 
937
+ api.add_operation(:update_cluster_kafka_version, Seahorse::Model::Operation.new.tap do |o|
938
+ o.name = "UpdateClusterKafkaVersion"
939
+ o.http_method = "PUT"
940
+ o.http_request_uri = "/v1/clusters/{clusterArn}/version"
941
+ o.input = Shapes::ShapeRef.new(shape: UpdateClusterKafkaVersionRequest)
942
+ o.output = Shapes::ShapeRef.new(shape: UpdateClusterKafkaVersionResponse)
943
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
944
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
945
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
946
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
947
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
948
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
949
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
950
+ end)
951
+
853
952
  api.add_operation(:update_monitoring, Seahorse::Model::Operation.new.tap do |o|
854
953
  o.name = "UpdateMonitoring"
855
954
  o.http_method = "PUT"