aws-sdk-kafka 1.53.0 → 1.55.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,6 +26,7 @@ module Aws::Kafka
26
26
  BrokerSoftwareInfo = Shapes::StructureShape.new(name: 'BrokerSoftwareInfo')
27
27
  ClientAuthentication = Shapes::StructureShape.new(name: 'ClientAuthentication')
28
28
  ClientBroker = Shapes::StringShape.new(name: 'ClientBroker')
29
+ ClientVpcConnection = Shapes::StructureShape.new(name: 'ClientVpcConnection')
29
30
  CloudWatchLogs = Shapes::StructureShape.new(name: 'CloudWatchLogs')
30
31
  Cluster = Shapes::StructureShape.new(name: 'Cluster')
31
32
  ClusterInfo = Shapes::StructureShape.new(name: 'ClusterInfo')
@@ -47,10 +48,16 @@ module Aws::Kafka
47
48
  CreateClusterV2Response = Shapes::StructureShape.new(name: 'CreateClusterV2Response')
48
49
  CreateConfigurationRequest = Shapes::StructureShape.new(name: 'CreateConfigurationRequest')
49
50
  CreateConfigurationResponse = Shapes::StructureShape.new(name: 'CreateConfigurationResponse')
51
+ CreateVpcConnectionRequest = Shapes::StructureShape.new(name: 'CreateVpcConnectionRequest')
52
+ CreateVpcConnectionResponse = Shapes::StructureShape.new(name: 'CreateVpcConnectionResponse')
53
+ DeleteClusterPolicyRequest = Shapes::StructureShape.new(name: 'DeleteClusterPolicyRequest')
54
+ DeleteClusterPolicyResponse = Shapes::StructureShape.new(name: 'DeleteClusterPolicyResponse')
50
55
  DeleteClusterRequest = Shapes::StructureShape.new(name: 'DeleteClusterRequest')
51
56
  DeleteClusterResponse = Shapes::StructureShape.new(name: 'DeleteClusterResponse')
52
57
  DeleteConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteConfigurationRequest')
53
58
  DeleteConfigurationResponse = Shapes::StructureShape.new(name: 'DeleteConfigurationResponse')
59
+ DeleteVpcConnectionRequest = Shapes::StructureShape.new(name: 'DeleteVpcConnectionRequest')
60
+ DeleteVpcConnectionResponse = Shapes::StructureShape.new(name: 'DeleteVpcConnectionResponse')
54
61
  DescribeClusterOperationRequest = Shapes::StructureShape.new(name: 'DescribeClusterOperationRequest')
55
62
  DescribeClusterOperationResponse = Shapes::StructureShape.new(name: 'DescribeClusterOperationResponse')
56
63
  DescribeClusterRequest = Shapes::StructureShape.new(name: 'DescribeClusterRequest')
@@ -61,6 +68,8 @@ module Aws::Kafka
61
68
  DescribeConfigurationResponse = Shapes::StructureShape.new(name: 'DescribeConfigurationResponse')
62
69
  DescribeConfigurationRevisionRequest = Shapes::StructureShape.new(name: 'DescribeConfigurationRevisionRequest')
63
70
  DescribeConfigurationRevisionResponse = Shapes::StructureShape.new(name: 'DescribeConfigurationRevisionResponse')
71
+ DescribeVpcConnectionRequest = Shapes::StructureShape.new(name: 'DescribeVpcConnectionRequest')
72
+ DescribeVpcConnectionResponse = Shapes::StructureShape.new(name: 'DescribeVpcConnectionResponse')
64
73
  EBSStorageInfo = Shapes::StructureShape.new(name: 'EBSStorageInfo')
65
74
  EncryptionAtRest = Shapes::StructureShape.new(name: 'EncryptionAtRest')
66
75
  EncryptionInTransit = Shapes::StructureShape.new(name: 'EncryptionInTransit')
@@ -72,6 +81,8 @@ module Aws::Kafka
72
81
  ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
73
82
  GetBootstrapBrokersRequest = Shapes::StructureShape.new(name: 'GetBootstrapBrokersRequest')
74
83
  GetBootstrapBrokersResponse = Shapes::StructureShape.new(name: 'GetBootstrapBrokersResponse')
84
+ GetClusterPolicyRequest = Shapes::StructureShape.new(name: 'GetClusterPolicyRequest')
85
+ GetClusterPolicyResponse = Shapes::StructureShape.new(name: 'GetClusterPolicyResponse')
75
86
  GetCompatibleKafkaVersionsRequest = Shapes::StructureShape.new(name: 'GetCompatibleKafkaVersionsRequest')
76
87
  GetCompatibleKafkaVersionsResponse = Shapes::StructureShape.new(name: 'GetCompatibleKafkaVersionsResponse')
77
88
  Iam = Shapes::StructureShape.new(name: 'Iam')
@@ -80,6 +91,8 @@ module Aws::Kafka
80
91
  JmxExporterInfo = Shapes::StructureShape.new(name: 'JmxExporterInfo')
81
92
  KafkaVersion = Shapes::StructureShape.new(name: 'KafkaVersion')
82
93
  KafkaVersionStatus = Shapes::StringShape.new(name: 'KafkaVersionStatus')
94
+ ListClientVpcConnectionsRequest = Shapes::StructureShape.new(name: 'ListClientVpcConnectionsRequest')
95
+ ListClientVpcConnectionsResponse = Shapes::StructureShape.new(name: 'ListClientVpcConnectionsResponse')
83
96
  ListClusterOperationsRequest = Shapes::StructureShape.new(name: 'ListClusterOperationsRequest')
84
97
  ListClusterOperationsResponse = Shapes::StructureShape.new(name: 'ListClusterOperationsResponse')
85
98
  ListClustersRequest = Shapes::StructureShape.new(name: 'ListClustersRequest')
@@ -98,6 +111,8 @@ module Aws::Kafka
98
111
  ListScramSecretsResponse = Shapes::StructureShape.new(name: 'ListScramSecretsResponse')
99
112
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
100
113
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
114
+ ListVpcConnectionsRequest = Shapes::StructureShape.new(name: 'ListVpcConnectionsRequest')
115
+ ListVpcConnectionsResponse = Shapes::StructureShape.new(name: 'ListVpcConnectionsResponse')
101
116
  LoggingInfo = Shapes::StructureShape.new(name: 'LoggingInfo')
102
117
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
103
118
  MutableClusterInfo = Shapes::StructureShape.new(name: 'MutableClusterInfo')
@@ -114,8 +129,12 @@ module Aws::Kafka
114
129
  ProvisionedRequest = Shapes::StructureShape.new(name: 'ProvisionedRequest')
115
130
  ProvisionedThroughput = Shapes::StructureShape.new(name: 'ProvisionedThroughput')
116
131
  PublicAccess = Shapes::StructureShape.new(name: 'PublicAccess')
132
+ PutClusterPolicyRequest = Shapes::StructureShape.new(name: 'PutClusterPolicyRequest')
133
+ PutClusterPolicyResponse = Shapes::StructureShape.new(name: 'PutClusterPolicyResponse')
117
134
  RebootBrokerRequest = Shapes::StructureShape.new(name: 'RebootBrokerRequest')
118
135
  RebootBrokerResponse = Shapes::StructureShape.new(name: 'RebootBrokerResponse')
136
+ RejectClientVpcConnectionRequest = Shapes::StructureShape.new(name: 'RejectClientVpcConnectionRequest')
137
+ RejectClientVpcConnectionResponse = Shapes::StructureShape.new(name: 'RejectClientVpcConnectionResponse')
119
138
  S3 = Shapes::StructureShape.new(name: 'S3')
120
139
  Sasl = Shapes::StructureShape.new(name: 'Sasl')
121
140
  Scram = Shapes::StructureShape.new(name: 'Scram')
@@ -154,7 +173,18 @@ module Aws::Kafka
154
173
  UpdateSecurityResponse = Shapes::StructureShape.new(name: 'UpdateSecurityResponse')
155
174
  UpdateStorageRequest = Shapes::StructureShape.new(name: 'UpdateStorageRequest')
156
175
  UpdateStorageResponse = Shapes::StructureShape.new(name: 'UpdateStorageResponse')
176
+ UserIdentity = Shapes::StructureShape.new(name: 'UserIdentity')
177
+ UserIdentityType = Shapes::StringShape.new(name: 'UserIdentityType')
157
178
  VpcConfig = Shapes::StructureShape.new(name: 'VpcConfig')
179
+ VpcConnection = Shapes::StructureShape.new(name: 'VpcConnection')
180
+ VpcConnectionInfo = Shapes::StructureShape.new(name: 'VpcConnectionInfo')
181
+ VpcConnectionState = Shapes::StringShape.new(name: 'VpcConnectionState')
182
+ VpcConnectivity = Shapes::StructureShape.new(name: 'VpcConnectivity')
183
+ VpcConnectivityClientAuthentication = Shapes::StructureShape.new(name: 'VpcConnectivityClientAuthentication')
184
+ VpcConnectivityIam = Shapes::StructureShape.new(name: 'VpcConnectivityIam')
185
+ VpcConnectivitySasl = Shapes::StructureShape.new(name: 'VpcConnectivitySasl')
186
+ VpcConnectivityScram = Shapes::StructureShape.new(name: 'VpcConnectivityScram')
187
+ VpcConnectivityTls = Shapes::StructureShape.new(name: 'VpcConnectivityTls')
158
188
  ZookeeperNodeInfo = Shapes::StructureShape.new(name: 'ZookeeperNodeInfo')
159
189
  __blob = Shapes::BlobShape.new(name: '__blob')
160
190
  __boolean = Shapes::BooleanShape.new(name: '__boolean')
@@ -163,6 +193,7 @@ module Aws::Kafka
163
193
  __integerMin1Max15 = Shapes::IntegerShape.new(name: '__integerMin1Max15')
164
194
  __integerMin1Max16384 = Shapes::IntegerShape.new(name: '__integerMin1Max16384')
165
195
  __listOfBrokerEBSVolumeInfo = Shapes::ListShape.new(name: '__listOfBrokerEBSVolumeInfo')
196
+ __listOfClientVpcConnection = Shapes::ListShape.new(name: '__listOfClientVpcConnection')
166
197
  __listOfCluster = Shapes::ListShape.new(name: '__listOfCluster')
167
198
  __listOfClusterInfo = Shapes::ListShape.new(name: '__listOfClusterInfo')
168
199
  __listOfClusterOperationInfo = Shapes::ListShape.new(name: '__listOfClusterOperationInfo')
@@ -174,6 +205,7 @@ module Aws::Kafka
174
205
  __listOfNodeInfo = Shapes::ListShape.new(name: '__listOfNodeInfo')
175
206
  __listOfUnprocessedScramSecret = Shapes::ListShape.new(name: '__listOfUnprocessedScramSecret')
176
207
  __listOfVpcConfig = Shapes::ListShape.new(name: '__listOfVpcConfig')
208
+ __listOfVpcConnection = Shapes::ListShape.new(name: '__listOfVpcConnection')
177
209
  __listOf__string = Shapes::ListShape.new(name: '__listOf__string')
178
210
  __long = Shapes::IntegerShape.new(name: '__long')
179
211
  __mapOf__string = Shapes::MapShape.new(name: '__mapOf__string')
@@ -219,6 +251,7 @@ module Aws::Kafka
219
251
  BrokerNodeGroupInfo.add_member(:security_groups, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "securityGroups"))
220
252
  BrokerNodeGroupInfo.add_member(:storage_info, Shapes::ShapeRef.new(shape: StorageInfo, location_name: "storageInfo"))
221
253
  BrokerNodeGroupInfo.add_member(:connectivity_info, Shapes::ShapeRef.new(shape: ConnectivityInfo, location_name: "connectivityInfo"))
254
+ BrokerNodeGroupInfo.add_member(:zone_ids, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "zoneIds"))
222
255
  BrokerNodeGroupInfo.struct_class = Types::BrokerNodeGroupInfo
223
256
 
224
257
  BrokerNodeInfo.add_member(:attached_eni_id, Shapes::ShapeRef.new(shape: __string, location_name: "attachedENIId"))
@@ -239,6 +272,13 @@ module Aws::Kafka
239
272
  ClientAuthentication.add_member(:unauthenticated, Shapes::ShapeRef.new(shape: Unauthenticated, location_name: "unauthenticated"))
240
273
  ClientAuthentication.struct_class = Types::ClientAuthentication
241
274
 
275
+ ClientVpcConnection.add_member(:authentication, Shapes::ShapeRef.new(shape: __string, location_name: "authentication"))
276
+ ClientVpcConnection.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "creationTime"))
277
+ ClientVpcConnection.add_member(:state, Shapes::ShapeRef.new(shape: VpcConnectionState, location_name: "state"))
278
+ ClientVpcConnection.add_member(:vpc_connection_arn, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "vpcConnectionArn"))
279
+ ClientVpcConnection.add_member(:owner, Shapes::ShapeRef.new(shape: __string, location_name: "owner"))
280
+ ClientVpcConnection.struct_class = Types::ClientVpcConnection
281
+
242
282
  CloudWatchLogs.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "enabled"))
243
283
  CloudWatchLogs.add_member(:log_group, Shapes::ShapeRef.new(shape: __string, location_name: "logGroup"))
244
284
  CloudWatchLogs.struct_class = Types::CloudWatchLogs
@@ -288,6 +328,7 @@ module Aws::Kafka
288
328
  ClusterOperationInfo.add_member(:operation_type, Shapes::ShapeRef.new(shape: __string, location_name: "operationType"))
289
329
  ClusterOperationInfo.add_member(:source_cluster_info, Shapes::ShapeRef.new(shape: MutableClusterInfo, location_name: "sourceClusterInfo"))
290
330
  ClusterOperationInfo.add_member(:target_cluster_info, Shapes::ShapeRef.new(shape: MutableClusterInfo, location_name: "targetClusterInfo"))
331
+ ClusterOperationInfo.add_member(:vpc_connection_info, Shapes::ShapeRef.new(shape: VpcConnectionInfo, location_name: "vpcConnectionInfo"))
291
332
  ClusterOperationInfo.struct_class = Types::ClusterOperationInfo
292
333
 
293
334
  ClusterOperationStep.add_member(:step_info, Shapes::ShapeRef.new(shape: ClusterOperationStepInfo, location_name: "stepInfo"))
@@ -324,6 +365,7 @@ module Aws::Kafka
324
365
  ConflictException.struct_class = Types::ConflictException
325
366
 
326
367
  ConnectivityInfo.add_member(:public_access, Shapes::ShapeRef.new(shape: PublicAccess, location_name: "publicAccess"))
368
+ ConnectivityInfo.add_member(:vpc_connectivity, Shapes::ShapeRef.new(shape: VpcConnectivity, location_name: "vpcConnectivity"))
327
369
  ConnectivityInfo.struct_class = Types::ConnectivityInfo
328
370
 
329
371
  CreateClusterRequest.add_member(:broker_node_group_info, Shapes::ShapeRef.new(shape: BrokerNodeGroupInfo, required: true, location_name: "brokerNodeGroupInfo"))
@@ -370,6 +412,29 @@ module Aws::Kafka
370
412
  CreateConfigurationResponse.add_member(:state, Shapes::ShapeRef.new(shape: ConfigurationState, location_name: "state"))
371
413
  CreateConfigurationResponse.struct_class = Types::CreateConfigurationResponse
372
414
 
415
+ CreateVpcConnectionRequest.add_member(:target_cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "targetClusterArn"))
416
+ CreateVpcConnectionRequest.add_member(:authentication, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "authentication"))
417
+ CreateVpcConnectionRequest.add_member(:vpc_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "vpcId"))
418
+ CreateVpcConnectionRequest.add_member(:client_subnets, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "clientSubnets"))
419
+ CreateVpcConnectionRequest.add_member(:security_groups, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "securityGroups"))
420
+ CreateVpcConnectionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
421
+ CreateVpcConnectionRequest.struct_class = Types::CreateVpcConnectionRequest
422
+
423
+ CreateVpcConnectionResponse.add_member(:vpc_connection_arn, Shapes::ShapeRef.new(shape: __string, location_name: "vpcConnectionArn"))
424
+ CreateVpcConnectionResponse.add_member(:state, Shapes::ShapeRef.new(shape: VpcConnectionState, location_name: "state"))
425
+ CreateVpcConnectionResponse.add_member(:authentication, Shapes::ShapeRef.new(shape: __string, location_name: "authentication"))
426
+ CreateVpcConnectionResponse.add_member(:vpc_id, Shapes::ShapeRef.new(shape: __string, location_name: "vpcId"))
427
+ CreateVpcConnectionResponse.add_member(:client_subnets, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "clientSubnets"))
428
+ CreateVpcConnectionResponse.add_member(:security_groups, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "securityGroups"))
429
+ CreateVpcConnectionResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "creationTime"))
430
+ CreateVpcConnectionResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
431
+ CreateVpcConnectionResponse.struct_class = Types::CreateVpcConnectionResponse
432
+
433
+ DeleteClusterPolicyRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
434
+ DeleteClusterPolicyRequest.struct_class = Types::DeleteClusterPolicyRequest
435
+
436
+ DeleteClusterPolicyResponse.struct_class = Types::DeleteClusterPolicyResponse
437
+
373
438
  DeleteClusterRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
374
439
  DeleteClusterRequest.add_member(:current_version, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "currentVersion"))
375
440
  DeleteClusterRequest.struct_class = Types::DeleteClusterRequest
@@ -385,6 +450,13 @@ module Aws::Kafka
385
450
  DeleteConfigurationResponse.add_member(:state, Shapes::ShapeRef.new(shape: ConfigurationState, location_name: "state"))
386
451
  DeleteConfigurationResponse.struct_class = Types::DeleteConfigurationResponse
387
452
 
453
+ DeleteVpcConnectionRequest.add_member(:arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "arn"))
454
+ DeleteVpcConnectionRequest.struct_class = Types::DeleteVpcConnectionRequest
455
+
456
+ DeleteVpcConnectionResponse.add_member(:vpc_connection_arn, Shapes::ShapeRef.new(shape: __string, location_name: "vpcConnectionArn"))
457
+ DeleteVpcConnectionResponse.add_member(:state, Shapes::ShapeRef.new(shape: VpcConnectionState, location_name: "state"))
458
+ DeleteVpcConnectionResponse.struct_class = Types::DeleteVpcConnectionResponse
459
+
388
460
  DescribeClusterOperationRequest.add_member(:cluster_operation_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterOperationArn"))
389
461
  DescribeClusterOperationRequest.struct_class = Types::DescribeClusterOperationRequest
390
462
 
@@ -426,6 +498,20 @@ module Aws::Kafka
426
498
  DescribeConfigurationRevisionResponse.add_member(:server_properties, Shapes::ShapeRef.new(shape: __blob, location_name: "serverProperties"))
427
499
  DescribeConfigurationRevisionResponse.struct_class = Types::DescribeConfigurationRevisionResponse
428
500
 
501
+ DescribeVpcConnectionRequest.add_member(:arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "arn"))
502
+ DescribeVpcConnectionRequest.struct_class = Types::DescribeVpcConnectionRequest
503
+
504
+ DescribeVpcConnectionResponse.add_member(:vpc_connection_arn, Shapes::ShapeRef.new(shape: __string, location_name: "vpcConnectionArn"))
505
+ DescribeVpcConnectionResponse.add_member(:target_cluster_arn, Shapes::ShapeRef.new(shape: __string, location_name: "targetClusterArn"))
506
+ DescribeVpcConnectionResponse.add_member(:state, Shapes::ShapeRef.new(shape: VpcConnectionState, location_name: "state"))
507
+ DescribeVpcConnectionResponse.add_member(:authentication, Shapes::ShapeRef.new(shape: __string, location_name: "authentication"))
508
+ DescribeVpcConnectionResponse.add_member(:vpc_id, Shapes::ShapeRef.new(shape: __string, location_name: "vpcId"))
509
+ DescribeVpcConnectionResponse.add_member(:subnets, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "subnets"))
510
+ DescribeVpcConnectionResponse.add_member(:security_groups, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "securityGroups"))
511
+ DescribeVpcConnectionResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "creationTime"))
512
+ DescribeVpcConnectionResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
513
+ DescribeVpcConnectionResponse.struct_class = Types::DescribeVpcConnectionResponse
514
+
429
515
  EBSStorageInfo.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, location_name: "provisionedThroughput"))
430
516
  EBSStorageInfo.add_member(:volume_size, Shapes::ShapeRef.new(shape: __integerMin1Max16384, location_name: "volumeSize"))
431
517
  EBSStorageInfo.struct_class = Types::EBSStorageInfo
@@ -467,8 +553,18 @@ module Aws::Kafka
467
553
  GetBootstrapBrokersResponse.add_member(:bootstrap_broker_string_tls, Shapes::ShapeRef.new(shape: __string, location_name: "bootstrapBrokerStringTls"))
468
554
  GetBootstrapBrokersResponse.add_member(:bootstrap_broker_string_sasl_scram, Shapes::ShapeRef.new(shape: __string, location_name: "bootstrapBrokerStringSaslScram"))
469
555
  GetBootstrapBrokersResponse.add_member(:bootstrap_broker_string_sasl_iam, Shapes::ShapeRef.new(shape: __string, location_name: "bootstrapBrokerStringSaslIam"))
556
+ GetBootstrapBrokersResponse.add_member(:bootstrap_broker_string_vpc_connectivity_tls, Shapes::ShapeRef.new(shape: __string, location_name: "bootstrapBrokerStringVpcConnectivityTls"))
557
+ GetBootstrapBrokersResponse.add_member(:bootstrap_broker_string_vpc_connectivity_sasl_scram, Shapes::ShapeRef.new(shape: __string, location_name: "bootstrapBrokerStringVpcConnectivitySaslScram"))
558
+ GetBootstrapBrokersResponse.add_member(:bootstrap_broker_string_vpc_connectivity_sasl_iam, Shapes::ShapeRef.new(shape: __string, location_name: "bootstrapBrokerStringVpcConnectivitySaslIam"))
470
559
  GetBootstrapBrokersResponse.struct_class = Types::GetBootstrapBrokersResponse
471
560
 
561
+ GetClusterPolicyRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
562
+ GetClusterPolicyRequest.struct_class = Types::GetClusterPolicyRequest
563
+
564
+ GetClusterPolicyResponse.add_member(:current_version, Shapes::ShapeRef.new(shape: __string, location_name: "currentVersion"))
565
+ GetClusterPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: __string, location_name: "policy"))
566
+ GetClusterPolicyResponse.struct_class = Types::GetClusterPolicyResponse
567
+
472
568
  GetCompatibleKafkaVersionsRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "clusterArn"))
473
569
  GetCompatibleKafkaVersionsRequest.struct_class = Types::GetCompatibleKafkaVersionsRequest
474
570
 
@@ -492,6 +588,15 @@ module Aws::Kafka
492
588
  KafkaVersion.add_member(:status, Shapes::ShapeRef.new(shape: KafkaVersionStatus, location_name: "status"))
493
589
  KafkaVersion.struct_class = Types::KafkaVersion
494
590
 
591
+ ListClientVpcConnectionsRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
592
+ ListClientVpcConnectionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
593
+ ListClientVpcConnectionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
594
+ ListClientVpcConnectionsRequest.struct_class = Types::ListClientVpcConnectionsRequest
595
+
596
+ ListClientVpcConnectionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
597
+ ListClientVpcConnectionsResponse.add_member(:client_vpc_connections, Shapes::ShapeRef.new(shape: __listOfClientVpcConnection, location_name: "clientVpcConnections"))
598
+ ListClientVpcConnectionsResponse.struct_class = Types::ListClientVpcConnectionsResponse
599
+
495
600
  ListClusterOperationsRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
496
601
  ListClusterOperationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
497
602
  ListClusterOperationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
@@ -569,6 +674,14 @@ module Aws::Kafka
569
674
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
570
675
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
571
676
 
677
+ ListVpcConnectionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
678
+ ListVpcConnectionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
679
+ ListVpcConnectionsRequest.struct_class = Types::ListVpcConnectionsRequest
680
+
681
+ ListVpcConnectionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
682
+ ListVpcConnectionsResponse.add_member(:vpc_connections, Shapes::ShapeRef.new(shape: __listOfVpcConnection, location_name: "vpcConnections"))
683
+ ListVpcConnectionsResponse.struct_class = Types::ListVpcConnectionsResponse
684
+
572
685
  LoggingInfo.add_member(:broker_logs, Shapes::ShapeRef.new(shape: BrokerLogs, required: true, location_name: "brokerLogs"))
573
686
  LoggingInfo.struct_class = Types::LoggingInfo
574
687
 
@@ -650,6 +763,14 @@ module Aws::Kafka
650
763
  PublicAccess.add_member(:type, Shapes::ShapeRef.new(shape: __string, location_name: "type"))
651
764
  PublicAccess.struct_class = Types::PublicAccess
652
765
 
766
+ PutClusterPolicyRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
767
+ PutClusterPolicyRequest.add_member(:current_version, Shapes::ShapeRef.new(shape: __string, location_name: "currentVersion"))
768
+ PutClusterPolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "policy"))
769
+ PutClusterPolicyRequest.struct_class = Types::PutClusterPolicyRequest
770
+
771
+ PutClusterPolicyResponse.add_member(:current_version, Shapes::ShapeRef.new(shape: __string, location_name: "currentVersion"))
772
+ PutClusterPolicyResponse.struct_class = Types::PutClusterPolicyResponse
773
+
653
774
  RebootBrokerRequest.add_member(:broker_ids, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "brokerIds"))
654
775
  RebootBrokerRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
655
776
  RebootBrokerRequest.struct_class = Types::RebootBrokerRequest
@@ -658,6 +779,12 @@ module Aws::Kafka
658
779
  RebootBrokerResponse.add_member(:cluster_operation_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterOperationArn"))
659
780
  RebootBrokerResponse.struct_class = Types::RebootBrokerResponse
660
781
 
782
+ RejectClientVpcConnectionRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, location: "uri", location_name: "clusterArn"))
783
+ RejectClientVpcConnectionRequest.add_member(:vpc_connection_arn, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "vpcConnectionArn"))
784
+ RejectClientVpcConnectionRequest.struct_class = Types::RejectClientVpcConnectionRequest
785
+
786
+ RejectClientVpcConnectionResponse.struct_class = Types::RejectClientVpcConnectionResponse
787
+
661
788
  S3.add_member(:bucket, Shapes::ShapeRef.new(shape: __string, location_name: "bucket"))
662
789
  S3.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "enabled"))
663
790
  S3.add_member(:prefix, Shapes::ShapeRef.new(shape: __string, location_name: "prefix"))
@@ -819,10 +946,48 @@ module Aws::Kafka
819
946
  UpdateStorageResponse.add_member(:cluster_operation_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterOperationArn"))
820
947
  UpdateStorageResponse.struct_class = Types::UpdateStorageResponse
821
948
 
949
+ UserIdentity.add_member(:type, Shapes::ShapeRef.new(shape: UserIdentityType, location_name: "type"))
950
+ UserIdentity.add_member(:principal_id, Shapes::ShapeRef.new(shape: __string, location_name: "principalId"))
951
+ UserIdentity.struct_class = Types::UserIdentity
952
+
822
953
  VpcConfig.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "subnetIds"))
823
954
  VpcConfig.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "securityGroupIds"))
824
955
  VpcConfig.struct_class = Types::VpcConfig
825
956
 
957
+ VpcConnection.add_member(:vpc_connection_arn, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "vpcConnectionArn"))
958
+ VpcConnection.add_member(:target_cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "targetClusterArn"))
959
+ VpcConnection.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "creationTime"))
960
+ VpcConnection.add_member(:authentication, Shapes::ShapeRef.new(shape: __string, location_name: "authentication"))
961
+ VpcConnection.add_member(:vpc_id, Shapes::ShapeRef.new(shape: __string, location_name: "vpcId"))
962
+ VpcConnection.add_member(:state, Shapes::ShapeRef.new(shape: VpcConnectionState, location_name: "state"))
963
+ VpcConnection.struct_class = Types::VpcConnection
964
+
965
+ VpcConnectionInfo.add_member(:vpc_connection_arn, Shapes::ShapeRef.new(shape: __string, location_name: "vpcConnectionArn"))
966
+ VpcConnectionInfo.add_member(:owner, Shapes::ShapeRef.new(shape: __string, location_name: "owner"))
967
+ VpcConnectionInfo.add_member(:user_identity, Shapes::ShapeRef.new(shape: UserIdentity, location_name: "userIdentity"))
968
+ VpcConnectionInfo.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "creationTime"))
969
+ VpcConnectionInfo.struct_class = Types::VpcConnectionInfo
970
+
971
+ VpcConnectivity.add_member(:client_authentication, Shapes::ShapeRef.new(shape: VpcConnectivityClientAuthentication, location_name: "clientAuthentication"))
972
+ VpcConnectivity.struct_class = Types::VpcConnectivity
973
+
974
+ VpcConnectivityClientAuthentication.add_member(:sasl, Shapes::ShapeRef.new(shape: VpcConnectivitySasl, location_name: "sasl"))
975
+ VpcConnectivityClientAuthentication.add_member(:tls, Shapes::ShapeRef.new(shape: VpcConnectivityTls, location_name: "tls"))
976
+ VpcConnectivityClientAuthentication.struct_class = Types::VpcConnectivityClientAuthentication
977
+
978
+ VpcConnectivityIam.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, location_name: "enabled"))
979
+ VpcConnectivityIam.struct_class = Types::VpcConnectivityIam
980
+
981
+ VpcConnectivitySasl.add_member(:scram, Shapes::ShapeRef.new(shape: VpcConnectivityScram, location_name: "scram"))
982
+ VpcConnectivitySasl.add_member(:iam, Shapes::ShapeRef.new(shape: VpcConnectivityIam, location_name: "iam"))
983
+ VpcConnectivitySasl.struct_class = Types::VpcConnectivitySasl
984
+
985
+ VpcConnectivityScram.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, location_name: "enabled"))
986
+ VpcConnectivityScram.struct_class = Types::VpcConnectivityScram
987
+
988
+ VpcConnectivityTls.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, location_name: "enabled"))
989
+ VpcConnectivityTls.struct_class = Types::VpcConnectivityTls
990
+
826
991
  ZookeeperNodeInfo.add_member(:attached_eni_id, Shapes::ShapeRef.new(shape: __string, location_name: "attachedENIId"))
827
992
  ZookeeperNodeInfo.add_member(:client_vpc_ip_address, Shapes::ShapeRef.new(shape: __string, location_name: "clientVpcIpAddress"))
828
993
  ZookeeperNodeInfo.add_member(:endpoints, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "endpoints"))
@@ -832,6 +997,8 @@ module Aws::Kafka
832
997
 
833
998
  __listOfBrokerEBSVolumeInfo.member = Shapes::ShapeRef.new(shape: BrokerEBSVolumeInfo)
834
999
 
1000
+ __listOfClientVpcConnection.member = Shapes::ShapeRef.new(shape: ClientVpcConnection)
1001
+
835
1002
  __listOfCluster.member = Shapes::ShapeRef.new(shape: Cluster)
836
1003
 
837
1004
  __listOfClusterInfo.member = Shapes::ShapeRef.new(shape: ClusterInfo)
@@ -854,6 +1021,8 @@ module Aws::Kafka
854
1021
 
855
1022
  __listOfVpcConfig.member = Shapes::ShapeRef.new(shape: VpcConfig)
856
1023
 
1024
+ __listOfVpcConnection.member = Shapes::ShapeRef.new(shape: VpcConnection)
1025
+
857
1026
  __listOf__string.member = Shapes::ShapeRef.new(shape: __string)
858
1027
 
859
1028
  __mapOf__string.key = Shapes::ShapeRef.new(shape: __string)
@@ -938,6 +1107,21 @@ module Aws::Kafka
938
1107
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
939
1108
  end)
940
1109
 
1110
+ api.add_operation(:create_vpc_connection, Seahorse::Model::Operation.new.tap do |o|
1111
+ o.name = "CreateVpcConnection"
1112
+ o.http_method = "POST"
1113
+ o.http_request_uri = "/v1/vpc-connection"
1114
+ o.input = Shapes::ShapeRef.new(shape: CreateVpcConnectionRequest)
1115
+ o.output = Shapes::ShapeRef.new(shape: CreateVpcConnectionResponse)
1116
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1117
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1118
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1119
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1120
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1121
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1122
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1123
+ end)
1124
+
941
1125
  api.add_operation(:delete_cluster, Seahorse::Model::Operation.new.tap do |o|
942
1126
  o.name = "DeleteCluster"
943
1127
  o.http_method = "DELETE"
@@ -962,6 +1146,18 @@ module Aws::Kafka
962
1146
  o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
963
1147
  end)
964
1148
 
1149
+ api.add_operation(:delete_vpc_connection, Seahorse::Model::Operation.new.tap do |o|
1150
+ o.name = "DeleteVpcConnection"
1151
+ o.http_method = "DELETE"
1152
+ o.http_request_uri = "/v1/vpc-connection/{arn}"
1153
+ o.input = Shapes::ShapeRef.new(shape: DeleteVpcConnectionRequest)
1154
+ o.output = Shapes::ShapeRef.new(shape: DeleteVpcConnectionResponse)
1155
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1156
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1157
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1158
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1159
+ end)
1160
+
965
1161
  api.add_operation(:describe_cluster, Seahorse::Model::Operation.new.tap do |o|
966
1162
  o.name = "DescribeCluster"
967
1163
  o.http_method = "GET"
@@ -1029,6 +1225,20 @@ module Aws::Kafka
1029
1225
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1030
1226
  end)
1031
1227
 
1228
+ api.add_operation(:describe_vpc_connection, Seahorse::Model::Operation.new.tap do |o|
1229
+ o.name = "DescribeVpcConnection"
1230
+ o.http_method = "GET"
1231
+ o.http_request_uri = "/v1/vpc-connection/{arn}"
1232
+ o.input = Shapes::ShapeRef.new(shape: DescribeVpcConnectionRequest)
1233
+ o.output = Shapes::ShapeRef.new(shape: DescribeVpcConnectionResponse)
1234
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1235
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1236
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1237
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1238
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1239
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1240
+ end)
1241
+
1032
1242
  api.add_operation(:batch_disassociate_scram_secret, Seahorse::Model::Operation.new.tap do |o|
1033
1243
  o.name = "BatchDisassociateScramSecret"
1034
1244
  o.http_method = "PATCH"
@@ -1233,6 +1443,96 @@ module Aws::Kafka
1233
1443
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1234
1444
  end)
1235
1445
 
1446
+ api.add_operation(:list_client_vpc_connections, Seahorse::Model::Operation.new.tap do |o|
1447
+ o.name = "ListClientVpcConnections"
1448
+ o.http_method = "GET"
1449
+ o.http_request_uri = "/v1/clusters/{clusterArn}/client-vpc-connections"
1450
+ o.input = Shapes::ShapeRef.new(shape: ListClientVpcConnectionsRequest)
1451
+ o.output = Shapes::ShapeRef.new(shape: ListClientVpcConnectionsResponse)
1452
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1453
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1454
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1455
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1456
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1457
+ o[:pager] = Aws::Pager.new(
1458
+ limit_key: "max_results",
1459
+ tokens: {
1460
+ "next_token" => "next_token"
1461
+ }
1462
+ )
1463
+ end)
1464
+
1465
+ api.add_operation(:list_vpc_connections, Seahorse::Model::Operation.new.tap do |o|
1466
+ o.name = "ListVpcConnections"
1467
+ o.http_method = "GET"
1468
+ o.http_request_uri = "/v1/vpc-connections"
1469
+ o.input = Shapes::ShapeRef.new(shape: ListVpcConnectionsRequest)
1470
+ o.output = Shapes::ShapeRef.new(shape: ListVpcConnectionsResponse)
1471
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1472
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1473
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1474
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1475
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1476
+ o[:pager] = Aws::Pager.new(
1477
+ limit_key: "max_results",
1478
+ tokens: {
1479
+ "next_token" => "next_token"
1480
+ }
1481
+ )
1482
+ end)
1483
+
1484
+ api.add_operation(:reject_client_vpc_connection, Seahorse::Model::Operation.new.tap do |o|
1485
+ o.name = "RejectClientVpcConnection"
1486
+ o.http_method = "PUT"
1487
+ o.http_request_uri = "/v1/clusters/{clusterArn}/client-vpc-connection"
1488
+ o.input = Shapes::ShapeRef.new(shape: RejectClientVpcConnectionRequest)
1489
+ o.output = Shapes::ShapeRef.new(shape: RejectClientVpcConnectionResponse)
1490
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1491
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1492
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1493
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1494
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1495
+ end)
1496
+
1497
+ api.add_operation(:delete_cluster_policy, Seahorse::Model::Operation.new.tap do |o|
1498
+ o.name = "DeleteClusterPolicy"
1499
+ o.http_method = "DELETE"
1500
+ o.http_request_uri = "/v1/clusters/{clusterArn}/policy"
1501
+ o.input = Shapes::ShapeRef.new(shape: DeleteClusterPolicyRequest)
1502
+ o.output = Shapes::ShapeRef.new(shape: DeleteClusterPolicyResponse)
1503
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1504
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1505
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1506
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1507
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1508
+ end)
1509
+
1510
+ api.add_operation(:get_cluster_policy, Seahorse::Model::Operation.new.tap do |o|
1511
+ o.name = "GetClusterPolicy"
1512
+ o.http_method = "GET"
1513
+ o.http_request_uri = "/v1/clusters/{clusterArn}/policy"
1514
+ o.input = Shapes::ShapeRef.new(shape: GetClusterPolicyRequest)
1515
+ o.output = Shapes::ShapeRef.new(shape: GetClusterPolicyResponse)
1516
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1517
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1518
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1519
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1520
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1521
+ end)
1522
+
1523
+ api.add_operation(:put_cluster_policy, Seahorse::Model::Operation.new.tap do |o|
1524
+ o.name = "PutClusterPolicy"
1525
+ o.http_method = "PUT"
1526
+ o.http_request_uri = "/v1/clusters/{clusterArn}/policy"
1527
+ o.input = Shapes::ShapeRef.new(shape: PutClusterPolicyRequest)
1528
+ o.output = Shapes::ShapeRef.new(shape: PutClusterPolicyResponse)
1529
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1530
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1531
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1532
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1533
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1534
+ end)
1535
+
1236
1536
  api.add_operation(:reboot_broker, Seahorse::Model::Operation.new.tap do |o|
1237
1537
  o.name = "RebootBroker"
1238
1538
  o.http_method = "PUT"
@@ -14,36 +14,42 @@ module Aws::Kafka
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
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
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  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"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  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: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ 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"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://kafka-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
37
+ return Aws::Endpoints::Endpoint.new(url: "https://kafka.#{region}.amazonaws.com", headers: {}, properties: {})
38
+ end
39
+ return Aws::Endpoints::Endpoint.new(url: "https://kafka-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
+ end
41
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
42
+ end
43
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
44
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
45
+ return Aws::Endpoints::Endpoint.new(url: "https://kafka.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
46
+ end
47
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
48
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
49
+ return Aws::Endpoints::Endpoint.new(url: "https://kafka.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
50
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://kafka.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
51
  end
52
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
53
  raise ArgumentError, 'No endpoint could be resolved'
48
54
 
49
55
  end