aws-sdk-kafka 1.51.0 → 1.53.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-kafka/client.rb +64 -1
- data/lib/aws-sdk-kafka/client_api.rb +34 -0
- data/lib/aws-sdk-kafka/endpoint_provider.rb +35 -95
- data/lib/aws-sdk-kafka/endpoints.rb +14 -0
- data/lib/aws-sdk-kafka/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-kafka/types.rb +83 -970
- data/lib/aws-sdk-kafka.rb +1 -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: 4dca37e0cda24f24c117a2fc5706e007e7389c3a6630ce3c3999a4d3fa8d4c0a
|
4
|
+
data.tar.gz: ff002bc6cc7895c3ee4abf4105d2e1046cd46c8d331581583911f6482caf5668
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 382e94fe9bbe2e9cdc92567abc223f801b56753e57bfec7539176ab4fe7cfd034f786aa28837ace47746bcb6d5bfbdfd690f327f511ae275d3776d7512807f69
|
7
|
+
data.tar.gz: 8dbb0bf2d4c8fe1b35ca9323af1e40b382f7a1a940dac08d6f0f49b470f64c3a7909827ee2d909f7453597cf405c1818abdcad251b589f8586ac3ad79cdfb1d0
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.53.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
11
|
+
1.52.0 (2022-10-26)
|
12
|
+
------------------
|
13
|
+
|
14
|
+
* Feature - This release adds support for Tiered Storage. UpdateStorage allows you to control the Storage Mode for supported storage tiers.
|
15
|
+
|
4
16
|
1.51.0 (2022-10-25)
|
5
17
|
------------------
|
6
18
|
|
@@ -265,4 +277,4 @@ Unreleased Changes
|
|
265
277
|
1.0.0 (2018-11-29)
|
266
278
|
------------------
|
267
279
|
|
268
|
-
* Feature - Initial release of `aws-sdk-kafka`.
|
280
|
+
* Feature - Initial release of `aws-sdk-kafka`.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.53.0
|
data/lib/aws-sdk-kafka/client.rb
CHANGED
@@ -441,6 +441,9 @@ module Aws::Kafka
|
|
441
441
|
# @option params [Hash<String,String>] :tags
|
442
442
|
# Create tags when creating the cluster.
|
443
443
|
#
|
444
|
+
# @option params [String] :storage_mode
|
445
|
+
# This controls storage mode for supported storage tiers.
|
446
|
+
#
|
444
447
|
# @return [Types::CreateClusterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
445
448
|
#
|
446
449
|
# * {Types::CreateClusterResponse#cluster_arn #cluster_arn} => String
|
@@ -534,6 +537,7 @@ module Aws::Kafka
|
|
534
537
|
# tags: {
|
535
538
|
# "__string" => "__string",
|
536
539
|
# },
|
540
|
+
# storage_mode: "LOCAL", # accepts LOCAL, TIERED
|
537
541
|
# })
|
538
542
|
#
|
539
543
|
# @example Response structure
|
@@ -661,6 +665,7 @@ module Aws::Kafka
|
|
661
665
|
# },
|
662
666
|
# },
|
663
667
|
# number_of_broker_nodes: 1, # required
|
668
|
+
# storage_mode: "LOCAL", # accepts LOCAL, TIERED
|
664
669
|
# },
|
665
670
|
# serverless: {
|
666
671
|
# vpc_configs: [ # required
|
@@ -872,6 +877,7 @@ module Aws::Kafka
|
|
872
877
|
# resp.cluster_info.tags["__string"] #=> String
|
873
878
|
# resp.cluster_info.zookeeper_connect_string #=> String
|
874
879
|
# resp.cluster_info.zookeeper_connect_string_tls #=> String
|
880
|
+
# resp.cluster_info.storage_mode #=> String, one of "LOCAL", "TIERED"
|
875
881
|
#
|
876
882
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeCluster AWS API Documentation
|
877
883
|
#
|
@@ -947,6 +953,7 @@ module Aws::Kafka
|
|
947
953
|
# resp.cluster_info.provisioned.number_of_broker_nodes #=> Integer
|
948
954
|
# resp.cluster_info.provisioned.zookeeper_connect_string #=> String
|
949
955
|
# resp.cluster_info.provisioned.zookeeper_connect_string_tls #=> String
|
956
|
+
# resp.cluster_info.provisioned.storage_mode #=> String, one of "LOCAL", "TIERED"
|
950
957
|
# resp.cluster_info.serverless.vpc_configs #=> Array
|
951
958
|
# resp.cluster_info.serverless.vpc_configs[0].subnet_ids #=> Array
|
952
959
|
# resp.cluster_info.serverless.vpc_configs[0].subnet_ids[0] #=> String
|
@@ -1021,6 +1028,7 @@ module Aws::Kafka
|
|
1021
1028
|
# resp.cluster_operation_info.source_cluster_info.encryption_info.encryption_in_transit.client_broker #=> String, one of "TLS", "TLS_PLAINTEXT", "PLAINTEXT"
|
1022
1029
|
# resp.cluster_operation_info.source_cluster_info.encryption_info.encryption_in_transit.in_cluster #=> Boolean
|
1023
1030
|
# resp.cluster_operation_info.source_cluster_info.connectivity_info.public_access.type #=> String
|
1031
|
+
# resp.cluster_operation_info.source_cluster_info.storage_mode #=> String, one of "LOCAL", "TIERED"
|
1024
1032
|
# resp.cluster_operation_info.target_cluster_info.broker_ebs_volume_info #=> Array
|
1025
1033
|
# resp.cluster_operation_info.target_cluster_info.broker_ebs_volume_info[0].kafka_broker_node_id #=> String
|
1026
1034
|
# resp.cluster_operation_info.target_cluster_info.broker_ebs_volume_info[0].provisioned_throughput.enabled #=> Boolean
|
@@ -1051,6 +1059,7 @@ module Aws::Kafka
|
|
1051
1059
|
# resp.cluster_operation_info.target_cluster_info.encryption_info.encryption_in_transit.client_broker #=> String, one of "TLS", "TLS_PLAINTEXT", "PLAINTEXT"
|
1052
1060
|
# resp.cluster_operation_info.target_cluster_info.encryption_info.encryption_in_transit.in_cluster #=> Boolean
|
1053
1061
|
# resp.cluster_operation_info.target_cluster_info.connectivity_info.public_access.type #=> String
|
1062
|
+
# resp.cluster_operation_info.target_cluster_info.storage_mode #=> String, one of "LOCAL", "TIERED"
|
1054
1063
|
#
|
1055
1064
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeClusterOperation AWS API Documentation
|
1056
1065
|
#
|
@@ -1316,6 +1325,7 @@ module Aws::Kafka
|
|
1316
1325
|
# resp.cluster_operation_info_list[0].source_cluster_info.encryption_info.encryption_in_transit.client_broker #=> String, one of "TLS", "TLS_PLAINTEXT", "PLAINTEXT"
|
1317
1326
|
# resp.cluster_operation_info_list[0].source_cluster_info.encryption_info.encryption_in_transit.in_cluster #=> Boolean
|
1318
1327
|
# resp.cluster_operation_info_list[0].source_cluster_info.connectivity_info.public_access.type #=> String
|
1328
|
+
# resp.cluster_operation_info_list[0].source_cluster_info.storage_mode #=> String, one of "LOCAL", "TIERED"
|
1319
1329
|
# resp.cluster_operation_info_list[0].target_cluster_info.broker_ebs_volume_info #=> Array
|
1320
1330
|
# resp.cluster_operation_info_list[0].target_cluster_info.broker_ebs_volume_info[0].kafka_broker_node_id #=> String
|
1321
1331
|
# resp.cluster_operation_info_list[0].target_cluster_info.broker_ebs_volume_info[0].provisioned_throughput.enabled #=> Boolean
|
@@ -1346,6 +1356,7 @@ module Aws::Kafka
|
|
1346
1356
|
# resp.cluster_operation_info_list[0].target_cluster_info.encryption_info.encryption_in_transit.client_broker #=> String, one of "TLS", "TLS_PLAINTEXT", "PLAINTEXT"
|
1347
1357
|
# resp.cluster_operation_info_list[0].target_cluster_info.encryption_info.encryption_in_transit.in_cluster #=> Boolean
|
1348
1358
|
# resp.cluster_operation_info_list[0].target_cluster_info.connectivity_info.public_access.type #=> String
|
1359
|
+
# resp.cluster_operation_info_list[0].target_cluster_info.storage_mode #=> String, one of "LOCAL", "TIERED"
|
1349
1360
|
# resp.next_token #=> String
|
1350
1361
|
#
|
1351
1362
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListClusterOperations AWS API Documentation
|
@@ -1428,6 +1439,7 @@ module Aws::Kafka
|
|
1428
1439
|
# resp.cluster_info_list[0].tags["__string"] #=> String
|
1429
1440
|
# resp.cluster_info_list[0].zookeeper_connect_string #=> String
|
1430
1441
|
# resp.cluster_info_list[0].zookeeper_connect_string_tls #=> String
|
1442
|
+
# resp.cluster_info_list[0].storage_mode #=> String, one of "LOCAL", "TIERED"
|
1431
1443
|
# resp.next_token #=> String
|
1432
1444
|
#
|
1433
1445
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListClusters AWS API Documentation
|
@@ -1522,6 +1534,7 @@ module Aws::Kafka
|
|
1522
1534
|
# resp.cluster_info_list[0].provisioned.number_of_broker_nodes #=> Integer
|
1523
1535
|
# resp.cluster_info_list[0].provisioned.zookeeper_connect_string #=> String
|
1524
1536
|
# resp.cluster_info_list[0].provisioned.zookeeper_connect_string_tls #=> String
|
1537
|
+
# resp.cluster_info_list[0].provisioned.storage_mode #=> String, one of "LOCAL", "TIERED"
|
1525
1538
|
# resp.cluster_info_list[0].serverless.vpc_configs #=> Array
|
1526
1539
|
# resp.cluster_info_list[0].serverless.vpc_configs[0].subnet_ids #=> Array
|
1527
1540
|
# resp.cluster_info_list[0].serverless.vpc_configs[0].subnet_ids[0] #=> String
|
@@ -2308,6 +2321,56 @@ module Aws::Kafka
|
|
2308
2321
|
req.send_request(options)
|
2309
2322
|
end
|
2310
2323
|
|
2324
|
+
# Updates cluster broker volume size (or) sets cluster storage mode to
|
2325
|
+
# TIERED.
|
2326
|
+
#
|
2327
|
+
# @option params [required, String] :cluster_arn
|
2328
|
+
#
|
2329
|
+
# @option params [required, String] :current_version
|
2330
|
+
# The version of cluster to update from. A successful operation will
|
2331
|
+
# then generate a new version.
|
2332
|
+
#
|
2333
|
+
# @option params [Types::ProvisionedThroughput] :provisioned_throughput
|
2334
|
+
# EBS volume provisioned throughput information.
|
2335
|
+
#
|
2336
|
+
# @option params [String] :storage_mode
|
2337
|
+
# Controls storage mode for supported storage tiers.
|
2338
|
+
#
|
2339
|
+
# @option params [Integer] :volume_size_gb
|
2340
|
+
# size of the EBS volume to update.
|
2341
|
+
#
|
2342
|
+
# @return [Types::UpdateStorageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2343
|
+
#
|
2344
|
+
# * {Types::UpdateStorageResponse#cluster_arn #cluster_arn} => String
|
2345
|
+
# * {Types::UpdateStorageResponse#cluster_operation_arn #cluster_operation_arn} => String
|
2346
|
+
#
|
2347
|
+
# @example Request syntax with placeholder values
|
2348
|
+
#
|
2349
|
+
# resp = client.update_storage({
|
2350
|
+
# cluster_arn: "__string", # required
|
2351
|
+
# current_version: "__string", # required
|
2352
|
+
# provisioned_throughput: {
|
2353
|
+
# enabled: false,
|
2354
|
+
# volume_throughput: 1,
|
2355
|
+
# },
|
2356
|
+
# storage_mode: "LOCAL", # accepts LOCAL, TIERED
|
2357
|
+
# volume_size_gb: 1,
|
2358
|
+
# })
|
2359
|
+
#
|
2360
|
+
# @example Response structure
|
2361
|
+
#
|
2362
|
+
# resp.cluster_arn #=> String
|
2363
|
+
# resp.cluster_operation_arn #=> String
|
2364
|
+
#
|
2365
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UpdateStorage AWS API Documentation
|
2366
|
+
#
|
2367
|
+
# @overload update_storage(params = {})
|
2368
|
+
# @param [Hash] params ({})
|
2369
|
+
def update_storage(params = {}, options = {})
|
2370
|
+
req = build_request(:update_storage, params)
|
2371
|
+
req.send_request(options)
|
2372
|
+
end
|
2373
|
+
|
2311
2374
|
# @!endgroup
|
2312
2375
|
|
2313
2376
|
# @param params ({})
|
@@ -2321,7 +2384,7 @@ module Aws::Kafka
|
|
2321
2384
|
params: params,
|
2322
2385
|
config: config)
|
2323
2386
|
context[:gem_name] = 'aws-sdk-kafka'
|
2324
|
-
context[:gem_version] = '1.
|
2387
|
+
context[:gem_version] = '1.53.0'
|
2325
2388
|
Seahorse::Client::Request.new(handlers, context)
|
2326
2389
|
end
|
2327
2390
|
|
@@ -126,6 +126,7 @@ module Aws::Kafka
|
|
126
126
|
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
127
127
|
StateInfo = Shapes::StructureShape.new(name: 'StateInfo')
|
128
128
|
StorageInfo = Shapes::StructureShape.new(name: 'StorageInfo')
|
129
|
+
StorageMode = Shapes::StringShape.new(name: 'StorageMode')
|
129
130
|
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
130
131
|
Tls = Shapes::StructureShape.new(name: 'Tls')
|
131
132
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
@@ -151,6 +152,8 @@ module Aws::Kafka
|
|
151
152
|
UpdateMonitoringResponse = Shapes::StructureShape.new(name: 'UpdateMonitoringResponse')
|
152
153
|
UpdateSecurityRequest = Shapes::StructureShape.new(name: 'UpdateSecurityRequest')
|
153
154
|
UpdateSecurityResponse = Shapes::StructureShape.new(name: 'UpdateSecurityResponse')
|
155
|
+
UpdateStorageRequest = Shapes::StructureShape.new(name: 'UpdateStorageRequest')
|
156
|
+
UpdateStorageResponse = Shapes::StructureShape.new(name: 'UpdateStorageResponse')
|
154
157
|
VpcConfig = Shapes::StructureShape.new(name: 'VpcConfig')
|
155
158
|
ZookeeperNodeInfo = Shapes::StructureShape.new(name: 'ZookeeperNodeInfo')
|
156
159
|
__blob = Shapes::BlobShape.new(name: '__blob')
|
@@ -271,6 +274,7 @@ module Aws::Kafka
|
|
271
274
|
ClusterInfo.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
|
272
275
|
ClusterInfo.add_member(:zookeeper_connect_string, Shapes::ShapeRef.new(shape: __string, location_name: "zookeeperConnectString"))
|
273
276
|
ClusterInfo.add_member(:zookeeper_connect_string_tls, Shapes::ShapeRef.new(shape: __string, location_name: "zookeeperConnectStringTls"))
|
277
|
+
ClusterInfo.add_member(:storage_mode, Shapes::ShapeRef.new(shape: StorageMode, location_name: "storageMode"))
|
274
278
|
ClusterInfo.struct_class = Types::ClusterInfo
|
275
279
|
|
276
280
|
ClusterOperationInfo.add_member(:client_request_id, Shapes::ShapeRef.new(shape: __string, location_name: "clientRequestId"))
|
@@ -333,6 +337,7 @@ module Aws::Kafka
|
|
333
337
|
CreateClusterRequest.add_member(:number_of_broker_nodes, Shapes::ShapeRef.new(shape: __integerMin1Max15, required: true, location_name: "numberOfBrokerNodes"))
|
334
338
|
CreateClusterRequest.add_member(:open_monitoring, Shapes::ShapeRef.new(shape: OpenMonitoringInfo, location_name: "openMonitoring"))
|
335
339
|
CreateClusterRequest.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
|
340
|
+
CreateClusterRequest.add_member(:storage_mode, Shapes::ShapeRef.new(shape: StorageMode, location_name: "storageMode"))
|
336
341
|
CreateClusterRequest.struct_class = Types::CreateClusterRequest
|
337
342
|
|
338
343
|
CreateClusterResponse.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterArn"))
|
@@ -578,6 +583,7 @@ module Aws::Kafka
|
|
578
583
|
MutableClusterInfo.add_member(:client_authentication, Shapes::ShapeRef.new(shape: ClientAuthentication, location_name: "clientAuthentication"))
|
579
584
|
MutableClusterInfo.add_member(:encryption_info, Shapes::ShapeRef.new(shape: EncryptionInfo, location_name: "encryptionInfo"))
|
580
585
|
MutableClusterInfo.add_member(:connectivity_info, Shapes::ShapeRef.new(shape: ConnectivityInfo, location_name: "connectivityInfo"))
|
586
|
+
MutableClusterInfo.add_member(:storage_mode, Shapes::ShapeRef.new(shape: StorageMode, location_name: "storageMode"))
|
581
587
|
MutableClusterInfo.struct_class = Types::MutableClusterInfo
|
582
588
|
|
583
589
|
NodeExporter.add_member(:enabled_in_broker, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "enabledInBroker"))
|
@@ -622,6 +628,7 @@ module Aws::Kafka
|
|
622
628
|
Provisioned.add_member(:number_of_broker_nodes, Shapes::ShapeRef.new(shape: __integerMin1Max15, required: true, location_name: "numberOfBrokerNodes"))
|
623
629
|
Provisioned.add_member(:zookeeper_connect_string, Shapes::ShapeRef.new(shape: __string, location_name: "zookeeperConnectString"))
|
624
630
|
Provisioned.add_member(:zookeeper_connect_string_tls, Shapes::ShapeRef.new(shape: __string, location_name: "zookeeperConnectStringTls"))
|
631
|
+
Provisioned.add_member(:storage_mode, Shapes::ShapeRef.new(shape: StorageMode, location_name: "storageMode"))
|
625
632
|
Provisioned.struct_class = Types::Provisioned
|
626
633
|
|
627
634
|
ProvisionedRequest.add_member(:broker_node_group_info, Shapes::ShapeRef.new(shape: BrokerNodeGroupInfo, required: true, location_name: "brokerNodeGroupInfo"))
|
@@ -633,6 +640,7 @@ module Aws::Kafka
|
|
633
640
|
ProvisionedRequest.add_member(:kafka_version, Shapes::ShapeRef.new(shape: __stringMin1Max128, required: true, location_name: "kafkaVersion"))
|
634
641
|
ProvisionedRequest.add_member(:logging_info, Shapes::ShapeRef.new(shape: LoggingInfo, location_name: "loggingInfo"))
|
635
642
|
ProvisionedRequest.add_member(:number_of_broker_nodes, Shapes::ShapeRef.new(shape: __integerMin1Max15, required: true, location_name: "numberOfBrokerNodes"))
|
643
|
+
ProvisionedRequest.add_member(:storage_mode, Shapes::ShapeRef.new(shape: StorageMode, location_name: "storageMode"))
|
636
644
|
ProvisionedRequest.struct_class = Types::ProvisionedRequest
|
637
645
|
|
638
646
|
ProvisionedThroughput.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, location_name: "enabled"))
|
@@ -800,6 +808,17 @@ module Aws::Kafka
|
|
800
808
|
UpdateSecurityResponse.add_member(:cluster_operation_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterOperationArn"))
|
801
809
|
UpdateSecurityResponse.struct_class = Types::UpdateSecurityResponse
|
802
810
|
|
811
|
+
UpdateStorageRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
|
812
|
+
UpdateStorageRequest.add_member(:current_version, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "currentVersion"))
|
813
|
+
UpdateStorageRequest.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, location_name: "provisionedThroughput"))
|
814
|
+
UpdateStorageRequest.add_member(:storage_mode, Shapes::ShapeRef.new(shape: StorageMode, location_name: "storageMode"))
|
815
|
+
UpdateStorageRequest.add_member(:volume_size_gb, Shapes::ShapeRef.new(shape: __integer, location_name: "volumeSizeGB"))
|
816
|
+
UpdateStorageRequest.struct_class = Types::UpdateStorageRequest
|
817
|
+
|
818
|
+
UpdateStorageResponse.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterArn"))
|
819
|
+
UpdateStorageResponse.add_member(:cluster_operation_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterOperationArn"))
|
820
|
+
UpdateStorageResponse.struct_class = Types::UpdateStorageResponse
|
821
|
+
|
803
822
|
VpcConfig.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "subnetIds"))
|
804
823
|
VpcConfig.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "securityGroupIds"))
|
805
824
|
VpcConfig.struct_class = Types::VpcConfig
|
@@ -1376,6 +1395,21 @@ module Aws::Kafka
|
|
1376
1395
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
1377
1396
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1378
1397
|
end)
|
1398
|
+
|
1399
|
+
api.add_operation(:update_storage, Seahorse::Model::Operation.new.tap do |o|
|
1400
|
+
o.name = "UpdateStorage"
|
1401
|
+
o.http_method = "PUT"
|
1402
|
+
o.http_request_uri = "/v1/clusters/{clusterArn}/storage"
|
1403
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateStorageRequest)
|
1404
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateStorageResponse)
|
1405
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1406
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
1407
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
1408
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
1409
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1410
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
1411
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1412
|
+
end)
|
1379
1413
|
end
|
1380
1414
|
|
1381
1415
|
end
|
@@ -9,103 +9,43 @@
|
|
9
9
|
|
10
10
|
module Aws::Kafka
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kafka-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kafka-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kafka.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://kafka.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
46
|
end
|
22
|
-
|
23
|
-
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
48
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
49
|
end
|
28
|
-
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108
|
-
|
109
|
-
JSON
|
110
50
|
end
|
111
51
|
end
|
@@ -501,5 +501,19 @@ module Aws::Kafka
|
|
501
501
|
end
|
502
502
|
end
|
503
503
|
|
504
|
+
class UpdateStorage
|
505
|
+
def self.build(context)
|
506
|
+
unless context.config.regional_endpoint
|
507
|
+
endpoint = context.config.endpoint.to_s
|
508
|
+
end
|
509
|
+
Aws::Kafka::EndpointParameters.new(
|
510
|
+
region: context.config.region,
|
511
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
512
|
+
use_fips: context.config.use_fips_endpoint,
|
513
|
+
endpoint: endpoint,
|
514
|
+
)
|
515
|
+
end
|
516
|
+
end
|
517
|
+
|
504
518
|
end
|
505
519
|
end
|
@@ -126,6 +126,8 @@ module Aws::Kafka
|
|
126
126
|
Aws::Kafka::Endpoints::UpdateMonitoring.build(context)
|
127
127
|
when :update_security
|
128
128
|
Aws::Kafka::Endpoints::UpdateSecurity.build(context)
|
129
|
+
when :update_storage
|
130
|
+
Aws::Kafka::Endpoints::UpdateStorage.build(context)
|
129
131
|
end
|
130
132
|
end
|
131
133
|
end
|