aws-sdk-kafka 1.16.0 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/aws-sdk-kafka.rb +7 -4
- data/lib/aws-sdk-kafka/client.rb +283 -16
- data/lib/aws-sdk-kafka/client_api.rb +145 -1
- data/lib/aws-sdk-kafka/errors.rb +30 -8
- data/lib/aws-sdk-kafka/resource.rb +1 -0
- data/lib/aws-sdk-kafka/types.rb +452 -5
- metadata +3 -3
@@ -14,14 +14,19 @@ module Aws::Kafka
|
|
14
14
|
BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
|
15
15
|
BrokerAZDistribution = Shapes::StringShape.new(name: 'BrokerAZDistribution')
|
16
16
|
BrokerEBSVolumeInfo = Shapes::StructureShape.new(name: 'BrokerEBSVolumeInfo')
|
17
|
+
BrokerLogs = Shapes::StructureShape.new(name: 'BrokerLogs')
|
17
18
|
BrokerNodeGroupInfo = Shapes::StructureShape.new(name: 'BrokerNodeGroupInfo')
|
18
19
|
BrokerNodeInfo = Shapes::StructureShape.new(name: 'BrokerNodeInfo')
|
19
20
|
BrokerSoftwareInfo = Shapes::StructureShape.new(name: 'BrokerSoftwareInfo')
|
20
21
|
ClientAuthentication = Shapes::StructureShape.new(name: 'ClientAuthentication')
|
21
22
|
ClientBroker = Shapes::StringShape.new(name: 'ClientBroker')
|
23
|
+
CloudWatchLogs = Shapes::StructureShape.new(name: 'CloudWatchLogs')
|
22
24
|
ClusterInfo = Shapes::StructureShape.new(name: 'ClusterInfo')
|
23
25
|
ClusterOperationInfo = Shapes::StructureShape.new(name: 'ClusterOperationInfo')
|
26
|
+
ClusterOperationStep = Shapes::StructureShape.new(name: 'ClusterOperationStep')
|
27
|
+
ClusterOperationStepInfo = Shapes::StructureShape.new(name: 'ClusterOperationStepInfo')
|
24
28
|
ClusterState = Shapes::StringShape.new(name: 'ClusterState')
|
29
|
+
CompatibleKafkaVersion = Shapes::StructureShape.new(name: 'CompatibleKafkaVersion')
|
25
30
|
Configuration = Shapes::StructureShape.new(name: 'Configuration')
|
26
31
|
ConfigurationInfo = Shapes::StructureShape.new(name: 'ConfigurationInfo')
|
27
32
|
ConfigurationRevision = Shapes::StructureShape.new(name: 'ConfigurationRevision')
|
@@ -47,12 +52,17 @@ module Aws::Kafka
|
|
47
52
|
EnhancedMonitoring = Shapes::StringShape.new(name: 'EnhancedMonitoring')
|
48
53
|
Error = Shapes::StructureShape.new(name: 'Error')
|
49
54
|
ErrorInfo = Shapes::StructureShape.new(name: 'ErrorInfo')
|
55
|
+
Firehose = Shapes::StructureShape.new(name: 'Firehose')
|
50
56
|
ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
|
51
57
|
GetBootstrapBrokersRequest = Shapes::StructureShape.new(name: 'GetBootstrapBrokersRequest')
|
52
58
|
GetBootstrapBrokersResponse = Shapes::StructureShape.new(name: 'GetBootstrapBrokersResponse')
|
59
|
+
GetCompatibleKafkaVersionsRequest = Shapes::StructureShape.new(name: 'GetCompatibleKafkaVersionsRequest')
|
60
|
+
GetCompatibleKafkaVersionsResponse = Shapes::StructureShape.new(name: 'GetCompatibleKafkaVersionsResponse')
|
53
61
|
InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
|
54
62
|
JmxExporter = Shapes::StructureShape.new(name: 'JmxExporter')
|
55
63
|
JmxExporterInfo = Shapes::StructureShape.new(name: 'JmxExporterInfo')
|
64
|
+
KafkaVersion = Shapes::StructureShape.new(name: 'KafkaVersion')
|
65
|
+
KafkaVersionStatus = Shapes::StringShape.new(name: 'KafkaVersionStatus')
|
56
66
|
ListClusterOperationsRequest = Shapes::StructureShape.new(name: 'ListClusterOperationsRequest')
|
57
67
|
ListClusterOperationsResponse = Shapes::StructureShape.new(name: 'ListClusterOperationsResponse')
|
58
68
|
ListClustersRequest = Shapes::StructureShape.new(name: 'ListClustersRequest')
|
@@ -61,10 +71,13 @@ module Aws::Kafka
|
|
61
71
|
ListConfigurationRevisionsResponse = Shapes::StructureShape.new(name: 'ListConfigurationRevisionsResponse')
|
62
72
|
ListConfigurationsRequest = Shapes::StructureShape.new(name: 'ListConfigurationsRequest')
|
63
73
|
ListConfigurationsResponse = Shapes::StructureShape.new(name: 'ListConfigurationsResponse')
|
74
|
+
ListKafkaVersionsRequest = Shapes::StructureShape.new(name: 'ListKafkaVersionsRequest')
|
75
|
+
ListKafkaVersionsResponse = Shapes::StructureShape.new(name: 'ListKafkaVersionsResponse')
|
64
76
|
ListNodesRequest = Shapes::StructureShape.new(name: 'ListNodesRequest')
|
65
77
|
ListNodesResponse = Shapes::StructureShape.new(name: 'ListNodesResponse')
|
66
78
|
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
67
79
|
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
80
|
+
LoggingInfo = Shapes::StructureShape.new(name: 'LoggingInfo')
|
68
81
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
69
82
|
MutableClusterInfo = Shapes::StructureShape.new(name: 'MutableClusterInfo')
|
70
83
|
NodeExporter = Shapes::StructureShape.new(name: 'NodeExporter')
|
@@ -76,7 +89,9 @@ module Aws::Kafka
|
|
76
89
|
OpenMonitoringInfo = Shapes::StructureShape.new(name: 'OpenMonitoringInfo')
|
77
90
|
Prometheus = Shapes::StructureShape.new(name: 'Prometheus')
|
78
91
|
PrometheusInfo = Shapes::StructureShape.new(name: 'PrometheusInfo')
|
92
|
+
S3 = Shapes::StructureShape.new(name: 'S3')
|
79
93
|
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
94
|
+
StateInfo = Shapes::StructureShape.new(name: 'StateInfo')
|
80
95
|
StorageInfo = Shapes::StructureShape.new(name: 'StorageInfo')
|
81
96
|
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
82
97
|
Tls = Shapes::StructureShape.new(name: 'Tls')
|
@@ -89,6 +104,8 @@ module Aws::Kafka
|
|
89
104
|
UpdateBrokerStorageResponse = Shapes::StructureShape.new(name: 'UpdateBrokerStorageResponse')
|
90
105
|
UpdateClusterConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateClusterConfigurationRequest')
|
91
106
|
UpdateClusterConfigurationResponse = Shapes::StructureShape.new(name: 'UpdateClusterConfigurationResponse')
|
107
|
+
UpdateClusterKafkaVersionRequest = Shapes::StructureShape.new(name: 'UpdateClusterKafkaVersionRequest')
|
108
|
+
UpdateClusterKafkaVersionResponse = Shapes::StructureShape.new(name: 'UpdateClusterKafkaVersionResponse')
|
92
109
|
UpdateMonitoringRequest = Shapes::StructureShape.new(name: 'UpdateMonitoringRequest')
|
93
110
|
UpdateMonitoringResponse = Shapes::StructureShape.new(name: 'UpdateMonitoringResponse')
|
94
111
|
ZookeeperNodeInfo = Shapes::StructureShape.new(name: 'ZookeeperNodeInfo')
|
@@ -101,8 +118,11 @@ module Aws::Kafka
|
|
101
118
|
__listOfBrokerEBSVolumeInfo = Shapes::ListShape.new(name: '__listOfBrokerEBSVolumeInfo')
|
102
119
|
__listOfClusterInfo = Shapes::ListShape.new(name: '__listOfClusterInfo')
|
103
120
|
__listOfClusterOperationInfo = Shapes::ListShape.new(name: '__listOfClusterOperationInfo')
|
121
|
+
__listOfClusterOperationStep = Shapes::ListShape.new(name: '__listOfClusterOperationStep')
|
122
|
+
__listOfCompatibleKafkaVersion = Shapes::ListShape.new(name: '__listOfCompatibleKafkaVersion')
|
104
123
|
__listOfConfiguration = Shapes::ListShape.new(name: '__listOfConfiguration')
|
105
124
|
__listOfConfigurationRevision = Shapes::ListShape.new(name: '__listOfConfigurationRevision')
|
125
|
+
__listOfKafkaVersion = Shapes::ListShape.new(name: '__listOfKafkaVersion')
|
106
126
|
__listOfNodeInfo = Shapes::ListShape.new(name: '__listOfNodeInfo')
|
107
127
|
__listOf__string = Shapes::ListShape.new(name: '__listOf__string')
|
108
128
|
__long = Shapes::IntegerShape.new(name: '__long')
|
@@ -121,6 +141,11 @@ module Aws::Kafka
|
|
121
141
|
BrokerEBSVolumeInfo.add_member(:volume_size_gb, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "volumeSizeGB"))
|
122
142
|
BrokerEBSVolumeInfo.struct_class = Types::BrokerEBSVolumeInfo
|
123
143
|
|
144
|
+
BrokerLogs.add_member(:cloud_watch_logs, Shapes::ShapeRef.new(shape: CloudWatchLogs, location_name: "cloudWatchLogs"))
|
145
|
+
BrokerLogs.add_member(:firehose, Shapes::ShapeRef.new(shape: Firehose, location_name: "firehose"))
|
146
|
+
BrokerLogs.add_member(:s3, Shapes::ShapeRef.new(shape: S3, location_name: "s3"))
|
147
|
+
BrokerLogs.struct_class = Types::BrokerLogs
|
148
|
+
|
124
149
|
BrokerNodeGroupInfo.add_member(:broker_az_distribution, Shapes::ShapeRef.new(shape: BrokerAZDistribution, location_name: "brokerAZDistribution"))
|
125
150
|
BrokerNodeGroupInfo.add_member(:client_subnets, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location_name: "clientSubnets"))
|
126
151
|
BrokerNodeGroupInfo.add_member(:instance_type, Shapes::ShapeRef.new(shape: __stringMin5Max32, required: true, location_name: "instanceType"))
|
@@ -144,6 +169,10 @@ module Aws::Kafka
|
|
144
169
|
ClientAuthentication.add_member(:tls, Shapes::ShapeRef.new(shape: Tls, location_name: "tls"))
|
145
170
|
ClientAuthentication.struct_class = Types::ClientAuthentication
|
146
171
|
|
172
|
+
CloudWatchLogs.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "enabled"))
|
173
|
+
CloudWatchLogs.add_member(:log_group, Shapes::ShapeRef.new(shape: __string, location_name: "logGroup"))
|
174
|
+
CloudWatchLogs.struct_class = Types::CloudWatchLogs
|
175
|
+
|
147
176
|
ClusterInfo.add_member(:active_operation_arn, Shapes::ShapeRef.new(shape: __string, location_name: "activeOperationArn"))
|
148
177
|
ClusterInfo.add_member(:broker_node_group_info, Shapes::ShapeRef.new(shape: BrokerNodeGroupInfo, location_name: "brokerNodeGroupInfo"))
|
149
178
|
ClusterInfo.add_member(:client_authentication, Shapes::ShapeRef.new(shape: ClientAuthentication, location_name: "clientAuthentication"))
|
@@ -151,6 +180,7 @@ module Aws::Kafka
|
|
151
180
|
ClusterInfo.add_member(:cluster_name, Shapes::ShapeRef.new(shape: __string, location_name: "clusterName"))
|
152
181
|
ClusterInfo.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "creationTime"))
|
153
182
|
ClusterInfo.add_member(:current_broker_software_info, Shapes::ShapeRef.new(shape: BrokerSoftwareInfo, location_name: "currentBrokerSoftwareInfo"))
|
183
|
+
ClusterInfo.add_member(:logging_info, Shapes::ShapeRef.new(shape: LoggingInfo, location_name: "loggingInfo"))
|
154
184
|
ClusterInfo.add_member(:current_version, Shapes::ShapeRef.new(shape: __string, location_name: "currentVersion"))
|
155
185
|
ClusterInfo.add_member(:encryption_info, Shapes::ShapeRef.new(shape: EncryptionInfo, location_name: "encryptionInfo"))
|
156
186
|
ClusterInfo.add_member(:enhanced_monitoring, Shapes::ShapeRef.new(shape: EnhancedMonitoring, location_name: "enhancedMonitoring"))
|
@@ -166,6 +196,7 @@ module Aws::Kafka
|
|
166
196
|
ClusterOperationInfo.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "creationTime"))
|
167
197
|
ClusterOperationInfo.add_member(:end_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "endTime"))
|
168
198
|
ClusterOperationInfo.add_member(:error_info, Shapes::ShapeRef.new(shape: ErrorInfo, location_name: "errorInfo"))
|
199
|
+
ClusterOperationInfo.add_member(:operation_steps, Shapes::ShapeRef.new(shape: __listOfClusterOperationStep, location_name: "operationSteps"))
|
169
200
|
ClusterOperationInfo.add_member(:operation_arn, Shapes::ShapeRef.new(shape: __string, location_name: "operationArn"))
|
170
201
|
ClusterOperationInfo.add_member(:operation_state, Shapes::ShapeRef.new(shape: __string, location_name: "operationState"))
|
171
202
|
ClusterOperationInfo.add_member(:operation_type, Shapes::ShapeRef.new(shape: __string, location_name: "operationType"))
|
@@ -173,6 +204,17 @@ module Aws::Kafka
|
|
173
204
|
ClusterOperationInfo.add_member(:target_cluster_info, Shapes::ShapeRef.new(shape: MutableClusterInfo, location_name: "targetClusterInfo"))
|
174
205
|
ClusterOperationInfo.struct_class = Types::ClusterOperationInfo
|
175
206
|
|
207
|
+
ClusterOperationStep.add_member(:step_info, Shapes::ShapeRef.new(shape: ClusterOperationStepInfo, location_name: "stepInfo"))
|
208
|
+
ClusterOperationStep.add_member(:step_name, Shapes::ShapeRef.new(shape: __string, location_name: "stepName"))
|
209
|
+
ClusterOperationStep.struct_class = Types::ClusterOperationStep
|
210
|
+
|
211
|
+
ClusterOperationStepInfo.add_member(:step_status, Shapes::ShapeRef.new(shape: __string, location_name: "stepStatus"))
|
212
|
+
ClusterOperationStepInfo.struct_class = Types::ClusterOperationStepInfo
|
213
|
+
|
214
|
+
CompatibleKafkaVersion.add_member(:source_version, Shapes::ShapeRef.new(shape: __string, location_name: "sourceVersion"))
|
215
|
+
CompatibleKafkaVersion.add_member(:target_versions, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "targetVersions"))
|
216
|
+
CompatibleKafkaVersion.struct_class = Types::CompatibleKafkaVersion
|
217
|
+
|
176
218
|
Configuration.add_member(:arn, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "arn"))
|
177
219
|
Configuration.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampIso8601, required: true, location_name: "creationTime"))
|
178
220
|
Configuration.add_member(:description, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "description"))
|
@@ -201,6 +243,7 @@ module Aws::Kafka
|
|
201
243
|
CreateClusterRequest.add_member(:encryption_info, Shapes::ShapeRef.new(shape: EncryptionInfo, location_name: "encryptionInfo"))
|
202
244
|
CreateClusterRequest.add_member(:enhanced_monitoring, Shapes::ShapeRef.new(shape: EnhancedMonitoring, location_name: "enhancedMonitoring"))
|
203
245
|
CreateClusterRequest.add_member(:kafka_version, Shapes::ShapeRef.new(shape: __stringMin1Max128, required: true, location_name: "kafkaVersion"))
|
246
|
+
CreateClusterRequest.add_member(:logging_info, Shapes::ShapeRef.new(shape: LoggingInfo, location_name: "loggingInfo"))
|
204
247
|
CreateClusterRequest.add_member(:number_of_broker_nodes, Shapes::ShapeRef.new(shape: __integerMin1Max15, required: true, location_name: "numberOfBrokerNodes"))
|
205
248
|
CreateClusterRequest.add_member(:open_monitoring, Shapes::ShapeRef.new(shape: OpenMonitoringInfo, location_name: "openMonitoring"))
|
206
249
|
CreateClusterRequest.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
|
@@ -212,7 +255,7 @@ module Aws::Kafka
|
|
212
255
|
CreateClusterResponse.struct_class = Types::CreateClusterResponse
|
213
256
|
|
214
257
|
CreateConfigurationRequest.add_member(:description, Shapes::ShapeRef.new(shape: __string, location_name: "description"))
|
215
|
-
CreateConfigurationRequest.add_member(:kafka_versions, Shapes::ShapeRef.new(shape: __listOf__string,
|
258
|
+
CreateConfigurationRequest.add_member(:kafka_versions, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "kafkaVersions"))
|
216
259
|
CreateConfigurationRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "name"))
|
217
260
|
CreateConfigurationRequest.add_member(:server_properties, Shapes::ShapeRef.new(shape: __blob, required: true, location_name: "serverProperties"))
|
218
261
|
CreateConfigurationRequest.struct_class = Types::CreateConfigurationRequest
|
@@ -287,6 +330,10 @@ module Aws::Kafka
|
|
287
330
|
ErrorInfo.add_member(:error_string, Shapes::ShapeRef.new(shape: __string, location_name: "errorString"))
|
288
331
|
ErrorInfo.struct_class = Types::ErrorInfo
|
289
332
|
|
333
|
+
Firehose.add_member(:delivery_stream, Shapes::ShapeRef.new(shape: __string, location_name: "deliveryStream"))
|
334
|
+
Firehose.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "enabled"))
|
335
|
+
Firehose.struct_class = Types::Firehose
|
336
|
+
|
290
337
|
ForbiddenException.add_member(:invalid_parameter, Shapes::ShapeRef.new(shape: __string, location_name: "invalidParameter"))
|
291
338
|
ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
|
292
339
|
ForbiddenException.struct_class = Types::ForbiddenException
|
@@ -298,6 +345,12 @@ module Aws::Kafka
|
|
298
345
|
GetBootstrapBrokersResponse.add_member(:bootstrap_broker_string_tls, Shapes::ShapeRef.new(shape: __string, location_name: "bootstrapBrokerStringTls"))
|
299
346
|
GetBootstrapBrokersResponse.struct_class = Types::GetBootstrapBrokersResponse
|
300
347
|
|
348
|
+
GetCompatibleKafkaVersionsRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "clusterArn"))
|
349
|
+
GetCompatibleKafkaVersionsRequest.struct_class = Types::GetCompatibleKafkaVersionsRequest
|
350
|
+
|
351
|
+
GetCompatibleKafkaVersionsResponse.add_member(:compatible_kafka_versions, Shapes::ShapeRef.new(shape: __listOfCompatibleKafkaVersion, location_name: "compatibleKafkaVersions"))
|
352
|
+
GetCompatibleKafkaVersionsResponse.struct_class = Types::GetCompatibleKafkaVersionsResponse
|
353
|
+
|
301
354
|
InternalServerErrorException.add_member(:invalid_parameter, Shapes::ShapeRef.new(shape: __string, location_name: "invalidParameter"))
|
302
355
|
InternalServerErrorException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
|
303
356
|
InternalServerErrorException.struct_class = Types::InternalServerErrorException
|
@@ -308,6 +361,10 @@ module Aws::Kafka
|
|
308
361
|
JmxExporterInfo.add_member(:enabled_in_broker, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "enabledInBroker"))
|
309
362
|
JmxExporterInfo.struct_class = Types::JmxExporterInfo
|
310
363
|
|
364
|
+
KafkaVersion.add_member(:version, Shapes::ShapeRef.new(shape: __string, location_name: "version"))
|
365
|
+
KafkaVersion.add_member(:status, Shapes::ShapeRef.new(shape: KafkaVersionStatus, location_name: "status"))
|
366
|
+
KafkaVersion.struct_class = Types::KafkaVersion
|
367
|
+
|
311
368
|
ListClusterOperationsRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
|
312
369
|
ListClusterOperationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
313
370
|
ListClusterOperationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
|
@@ -343,6 +400,14 @@ module Aws::Kafka
|
|
343
400
|
ListConfigurationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
|
344
401
|
ListConfigurationsResponse.struct_class = Types::ListConfigurationsResponse
|
345
402
|
|
403
|
+
ListKafkaVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
404
|
+
ListKafkaVersionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
|
405
|
+
ListKafkaVersionsRequest.struct_class = Types::ListKafkaVersionsRequest
|
406
|
+
|
407
|
+
ListKafkaVersionsResponse.add_member(:kafka_versions, Shapes::ShapeRef.new(shape: __listOfKafkaVersion, location_name: "kafkaVersions"))
|
408
|
+
ListKafkaVersionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
|
409
|
+
ListKafkaVersionsResponse.struct_class = Types::ListKafkaVersionsResponse
|
410
|
+
|
346
411
|
ListNodesRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
|
347
412
|
ListNodesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
348
413
|
ListNodesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
|
@@ -358,11 +423,16 @@ module Aws::Kafka
|
|
358
423
|
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
|
359
424
|
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
360
425
|
|
426
|
+
LoggingInfo.add_member(:broker_logs, Shapes::ShapeRef.new(shape: BrokerLogs, required: true, location_name: "brokerLogs"))
|
427
|
+
LoggingInfo.struct_class = Types::LoggingInfo
|
428
|
+
|
361
429
|
MutableClusterInfo.add_member(:broker_ebs_volume_info, Shapes::ShapeRef.new(shape: __listOfBrokerEBSVolumeInfo, location_name: "brokerEBSVolumeInfo"))
|
362
430
|
MutableClusterInfo.add_member(:configuration_info, Shapes::ShapeRef.new(shape: ConfigurationInfo, location_name: "configurationInfo"))
|
363
431
|
MutableClusterInfo.add_member(:number_of_broker_nodes, Shapes::ShapeRef.new(shape: __integer, location_name: "numberOfBrokerNodes"))
|
364
432
|
MutableClusterInfo.add_member(:open_monitoring, Shapes::ShapeRef.new(shape: OpenMonitoring, location_name: "openMonitoring"))
|
365
433
|
MutableClusterInfo.add_member(:enhanced_monitoring, Shapes::ShapeRef.new(shape: EnhancedMonitoring, location_name: "enhancedMonitoring"))
|
434
|
+
MutableClusterInfo.add_member(:kafka_version, Shapes::ShapeRef.new(shape: __string, location_name: "kafkaVersion"))
|
435
|
+
MutableClusterInfo.add_member(:logging_info, Shapes::ShapeRef.new(shape: LoggingInfo, location_name: "loggingInfo"))
|
366
436
|
MutableClusterInfo.struct_class = Types::MutableClusterInfo
|
367
437
|
|
368
438
|
NodeExporter.add_member(:enabled_in_broker, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "enabledInBroker"))
|
@@ -397,10 +467,19 @@ module Aws::Kafka
|
|
397
467
|
PrometheusInfo.add_member(:node_exporter, Shapes::ShapeRef.new(shape: NodeExporterInfo, location_name: "nodeExporter"))
|
398
468
|
PrometheusInfo.struct_class = Types::PrometheusInfo
|
399
469
|
|
470
|
+
S3.add_member(:bucket, Shapes::ShapeRef.new(shape: __string, location_name: "bucket"))
|
471
|
+
S3.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, required: true, location_name: "enabled"))
|
472
|
+
S3.add_member(:prefix, Shapes::ShapeRef.new(shape: __string, location_name: "prefix"))
|
473
|
+
S3.struct_class = Types::S3
|
474
|
+
|
400
475
|
ServiceUnavailableException.add_member(:invalid_parameter, Shapes::ShapeRef.new(shape: __string, location_name: "invalidParameter"))
|
401
476
|
ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
|
402
477
|
ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
|
403
478
|
|
479
|
+
StateInfo.add_member(:code, Shapes::ShapeRef.new(shape: __string, location_name: "code"))
|
480
|
+
StateInfo.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
|
481
|
+
StateInfo.struct_class = Types::StateInfo
|
482
|
+
|
404
483
|
StorageInfo.add_member(:ebs_storage_info, Shapes::ShapeRef.new(shape: EBSStorageInfo, location_name: "ebsStorageInfo"))
|
405
484
|
StorageInfo.struct_class = Types::StorageInfo
|
406
485
|
|
@@ -450,10 +529,21 @@ module Aws::Kafka
|
|
450
529
|
UpdateClusterConfigurationResponse.add_member(:cluster_operation_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterOperationArn"))
|
451
530
|
UpdateClusterConfigurationResponse.struct_class = Types::UpdateClusterConfigurationResponse
|
452
531
|
|
532
|
+
UpdateClusterKafkaVersionRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
|
533
|
+
UpdateClusterKafkaVersionRequest.add_member(:configuration_info, Shapes::ShapeRef.new(shape: ConfigurationInfo, location_name: "configurationInfo"))
|
534
|
+
UpdateClusterKafkaVersionRequest.add_member(:current_version, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "currentVersion"))
|
535
|
+
UpdateClusterKafkaVersionRequest.add_member(:target_kafka_version, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "targetKafkaVersion"))
|
536
|
+
UpdateClusterKafkaVersionRequest.struct_class = Types::UpdateClusterKafkaVersionRequest
|
537
|
+
|
538
|
+
UpdateClusterKafkaVersionResponse.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterArn"))
|
539
|
+
UpdateClusterKafkaVersionResponse.add_member(:cluster_operation_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterOperationArn"))
|
540
|
+
UpdateClusterKafkaVersionResponse.struct_class = Types::UpdateClusterKafkaVersionResponse
|
541
|
+
|
453
542
|
UpdateMonitoringRequest.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "clusterArn"))
|
454
543
|
UpdateMonitoringRequest.add_member(:current_version, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "currentVersion"))
|
455
544
|
UpdateMonitoringRequest.add_member(:enhanced_monitoring, Shapes::ShapeRef.new(shape: EnhancedMonitoring, location_name: "enhancedMonitoring"))
|
456
545
|
UpdateMonitoringRequest.add_member(:open_monitoring, Shapes::ShapeRef.new(shape: OpenMonitoringInfo, location_name: "openMonitoring"))
|
546
|
+
UpdateMonitoringRequest.add_member(:logging_info, Shapes::ShapeRef.new(shape: LoggingInfo, location_name: "loggingInfo"))
|
457
547
|
UpdateMonitoringRequest.struct_class = Types::UpdateMonitoringRequest
|
458
548
|
|
459
549
|
UpdateMonitoringResponse.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: __string, location_name: "clusterArn"))
|
@@ -473,10 +563,16 @@ module Aws::Kafka
|
|
473
563
|
|
474
564
|
__listOfClusterOperationInfo.member = Shapes::ShapeRef.new(shape: ClusterOperationInfo)
|
475
565
|
|
566
|
+
__listOfClusterOperationStep.member = Shapes::ShapeRef.new(shape: ClusterOperationStep)
|
567
|
+
|
568
|
+
__listOfCompatibleKafkaVersion.member = Shapes::ShapeRef.new(shape: CompatibleKafkaVersion)
|
569
|
+
|
476
570
|
__listOfConfiguration.member = Shapes::ShapeRef.new(shape: Configuration)
|
477
571
|
|
478
572
|
__listOfConfigurationRevision.member = Shapes::ShapeRef.new(shape: ConfigurationRevision)
|
479
573
|
|
574
|
+
__listOfKafkaVersion.member = Shapes::ShapeRef.new(shape: KafkaVersion)
|
575
|
+
|
480
576
|
__listOfNodeInfo.member = Shapes::ShapeRef.new(shape: NodeInfo)
|
481
577
|
|
482
578
|
__listOf__string.member = Shapes::ShapeRef.new(shape: __string)
|
@@ -612,6 +708,21 @@ module Aws::Kafka
|
|
612
708
|
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
613
709
|
end)
|
614
710
|
|
711
|
+
api.add_operation(:get_compatible_kafka_versions, Seahorse::Model::Operation.new.tap do |o|
|
712
|
+
o.name = "GetCompatibleKafkaVersions"
|
713
|
+
o.http_method = "GET"
|
714
|
+
o.http_request_uri = "/v1/compatible-kafka-versions"
|
715
|
+
o.input = Shapes::ShapeRef.new(shape: GetCompatibleKafkaVersionsRequest)
|
716
|
+
o.output = Shapes::ShapeRef.new(shape: GetCompatibleKafkaVersionsResponse)
|
717
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
718
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
719
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
720
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
721
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
722
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
723
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
724
|
+
end)
|
725
|
+
|
615
726
|
api.add_operation(:list_cluster_operations, Seahorse::Model::Operation.new.tap do |o|
|
616
727
|
o.name = "ListClusterOperations"
|
617
728
|
o.http_method = "GET"
|
@@ -687,6 +798,24 @@ module Aws::Kafka
|
|
687
798
|
)
|
688
799
|
end)
|
689
800
|
|
801
|
+
api.add_operation(:list_kafka_versions, Seahorse::Model::Operation.new.tap do |o|
|
802
|
+
o.name = "ListKafkaVersions"
|
803
|
+
o.http_method = "GET"
|
804
|
+
o.http_request_uri = "/v1/kafka-versions"
|
805
|
+
o.input = Shapes::ShapeRef.new(shape: ListKafkaVersionsRequest)
|
806
|
+
o.output = Shapes::ShapeRef.new(shape: ListKafkaVersionsResponse)
|
807
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
808
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
809
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
810
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
811
|
+
o[:pager] = Aws::Pager.new(
|
812
|
+
limit_key: "max_results",
|
813
|
+
tokens: {
|
814
|
+
"next_token" => "next_token"
|
815
|
+
}
|
816
|
+
)
|
817
|
+
end)
|
818
|
+
|
690
819
|
api.add_operation(:list_nodes, Seahorse::Model::Operation.new.tap do |o|
|
691
820
|
o.name = "ListNodes"
|
692
821
|
o.http_method = "GET"
|
@@ -778,6 +907,21 @@ module Aws::Kafka
|
|
778
907
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
779
908
|
end)
|
780
909
|
|
910
|
+
api.add_operation(:update_cluster_kafka_version, Seahorse::Model::Operation.new.tap do |o|
|
911
|
+
o.name = "UpdateClusterKafkaVersion"
|
912
|
+
o.http_method = "PUT"
|
913
|
+
o.http_request_uri = "/v1/clusters/{clusterArn}/version"
|
914
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateClusterKafkaVersionRequest)
|
915
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateClusterKafkaVersionResponse)
|
916
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
917
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
918
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
919
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
920
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
921
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
922
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
923
|
+
end)
|
924
|
+
|
781
925
|
api.add_operation(:update_monitoring, Seahorse::Model::Operation.new.tap do |o|
|
782
926
|
o.name = "UpdateMonitoring"
|
783
927
|
o.http_method = "PUT"
|
data/lib/aws-sdk-kafka/errors.rb
CHANGED
@@ -6,6 +6,36 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::Kafka
|
9
|
+
|
10
|
+
# When Kafka returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::Kafka::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all Kafka errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::Kafka::Errors::ServiceError
|
18
|
+
# # rescues all Kafka API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {BadRequestException}
|
29
|
+
# * {ConflictException}
|
30
|
+
# * {ForbiddenException}
|
31
|
+
# * {InternalServerErrorException}
|
32
|
+
# * {NotFoundException}
|
33
|
+
# * {ServiceUnavailableException}
|
34
|
+
# * {TooManyRequestsException}
|
35
|
+
# * {UnauthorizedException}
|
36
|
+
#
|
37
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
38
|
+
# if they are not defined above.
|
9
39
|
module Errors
|
10
40
|
|
11
41
|
extend Aws::Errors::DynamicErrors
|
@@ -28,7 +58,6 @@ module Aws::Kafka
|
|
28
58
|
def message
|
29
59
|
@message || @data[:message]
|
30
60
|
end
|
31
|
-
|
32
61
|
end
|
33
62
|
|
34
63
|
class ConflictException < ServiceError
|
@@ -49,7 +78,6 @@ module Aws::Kafka
|
|
49
78
|
def message
|
50
79
|
@message || @data[:message]
|
51
80
|
end
|
52
|
-
|
53
81
|
end
|
54
82
|
|
55
83
|
class ForbiddenException < ServiceError
|
@@ -70,7 +98,6 @@ module Aws::Kafka
|
|
70
98
|
def message
|
71
99
|
@message || @data[:message]
|
72
100
|
end
|
73
|
-
|
74
101
|
end
|
75
102
|
|
76
103
|
class InternalServerErrorException < ServiceError
|
@@ -91,7 +118,6 @@ module Aws::Kafka
|
|
91
118
|
def message
|
92
119
|
@message || @data[:message]
|
93
120
|
end
|
94
|
-
|
95
121
|
end
|
96
122
|
|
97
123
|
class NotFoundException < ServiceError
|
@@ -112,7 +138,6 @@ module Aws::Kafka
|
|
112
138
|
def message
|
113
139
|
@message || @data[:message]
|
114
140
|
end
|
115
|
-
|
116
141
|
end
|
117
142
|
|
118
143
|
class ServiceUnavailableException < ServiceError
|
@@ -133,7 +158,6 @@ module Aws::Kafka
|
|
133
158
|
def message
|
134
159
|
@message || @data[:message]
|
135
160
|
end
|
136
|
-
|
137
161
|
end
|
138
162
|
|
139
163
|
class TooManyRequestsException < ServiceError
|
@@ -154,7 +178,6 @@ module Aws::Kafka
|
|
154
178
|
def message
|
155
179
|
@message || @data[:message]
|
156
180
|
end
|
157
|
-
|
158
181
|
end
|
159
182
|
|
160
183
|
class UnauthorizedException < ServiceError
|
@@ -175,7 +198,6 @@ module Aws::Kafka
|
|
175
198
|
def message
|
176
199
|
@message || @data[:message]
|
177
200
|
end
|
178
|
-
|
179
201
|
end
|
180
202
|
|
181
203
|
end
|
data/lib/aws-sdk-kafka/types.rb
CHANGED
@@ -52,6 +52,49 @@ module Aws::Kafka
|
|
52
52
|
include Aws::Structure
|
53
53
|
end
|
54
54
|
|
55
|
+
# The broker logs configuration for this MSK cluster.
|
56
|
+
#
|
57
|
+
# @note When making an API call, you may pass BrokerLogs
|
58
|
+
# data as a hash:
|
59
|
+
#
|
60
|
+
# {
|
61
|
+
# cloud_watch_logs: {
|
62
|
+
# enabled: false, # required
|
63
|
+
# log_group: "__string",
|
64
|
+
# },
|
65
|
+
# firehose: {
|
66
|
+
# delivery_stream: "__string",
|
67
|
+
# enabled: false, # required
|
68
|
+
# },
|
69
|
+
# s3: {
|
70
|
+
# bucket: "__string",
|
71
|
+
# enabled: false, # required
|
72
|
+
# prefix: "__string",
|
73
|
+
# },
|
74
|
+
# }
|
75
|
+
#
|
76
|
+
# @!attribute [rw] cloud_watch_logs
|
77
|
+
# Details of the CloudWatch Logs destination for broker logs.
|
78
|
+
# @return [Types::CloudWatchLogs]
|
79
|
+
#
|
80
|
+
# @!attribute [rw] firehose
|
81
|
+
# Details of the Kinesis Data Firehose delivery stream that is the
|
82
|
+
# destination for broker logs.
|
83
|
+
# @return [Types::Firehose]
|
84
|
+
#
|
85
|
+
# @!attribute [rw] s3
|
86
|
+
# Details of the Amazon S3 destination for broker logs.
|
87
|
+
# @return [Types::S3]
|
88
|
+
#
|
89
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/BrokerLogs AWS API Documentation
|
90
|
+
#
|
91
|
+
class BrokerLogs < Struct.new(
|
92
|
+
:cloud_watch_logs,
|
93
|
+
:firehose,
|
94
|
+
:s3)
|
95
|
+
include Aws::Structure
|
96
|
+
end
|
97
|
+
|
55
98
|
# Describes the setup to be used for Kafka broker nodes in the cluster.
|
56
99
|
#
|
57
100
|
# @note When making an API call, you may pass BrokerNodeGroupInfo
|
@@ -200,6 +243,33 @@ module Aws::Kafka
|
|
200
243
|
include Aws::Structure
|
201
244
|
end
|
202
245
|
|
246
|
+
# Details of the CloudWatch Logs destination for broker logs.
|
247
|
+
#
|
248
|
+
# @note When making an API call, you may pass CloudWatchLogs
|
249
|
+
# data as a hash:
|
250
|
+
#
|
251
|
+
# {
|
252
|
+
# enabled: false, # required
|
253
|
+
# log_group: "__string",
|
254
|
+
# }
|
255
|
+
#
|
256
|
+
# @!attribute [rw] enabled
|
257
|
+
# Specifies whether broker logs get sent to the specified CloudWatch
|
258
|
+
# Logs destination.
|
259
|
+
# @return [Boolean]
|
260
|
+
#
|
261
|
+
# @!attribute [rw] log_group
|
262
|
+
# The CloudWatch log group that is the destination for broker logs.
|
263
|
+
# @return [String]
|
264
|
+
#
|
265
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/CloudWatchLogs AWS API Documentation
|
266
|
+
#
|
267
|
+
class CloudWatchLogs < Struct.new(
|
268
|
+
:enabled,
|
269
|
+
:log_group)
|
270
|
+
include Aws::Structure
|
271
|
+
end
|
272
|
+
|
203
273
|
# Returns information about a cluster.
|
204
274
|
#
|
205
275
|
# @!attribute [rw] active_operation_arn
|
@@ -231,6 +301,12 @@ module Aws::Kafka
|
|
231
301
|
# Kafka brokers in the cluster.
|
232
302
|
# @return [Types::BrokerSoftwareInfo]
|
233
303
|
#
|
304
|
+
# @!attribute [rw] logging_info
|
305
|
+
# You can configure your MSK cluster to send broker logs to different
|
306
|
+
# destination types. This is a container for the configuration details
|
307
|
+
# related to broker logs.
|
308
|
+
# @return [Types::LoggingInfo]
|
309
|
+
#
|
234
310
|
# @!attribute [rw] current_version
|
235
311
|
# The current version of the MSK cluster. Cluster versions aren't
|
236
312
|
# simple integers. You can obtain the current version by describing
|
@@ -284,6 +360,7 @@ module Aws::Kafka
|
|
284
360
|
:cluster_name,
|
285
361
|
:creation_time,
|
286
362
|
:current_broker_software_info,
|
363
|
+
:logging_info,
|
287
364
|
:current_version,
|
288
365
|
:encryption_info,
|
289
366
|
:enhanced_monitoring,
|
@@ -317,6 +394,10 @@ module Aws::Kafka
|
|
317
394
|
# Describes the error if the operation fails.
|
318
395
|
# @return [Types::ErrorInfo]
|
319
396
|
#
|
397
|
+
# @!attribute [rw] operation_steps
|
398
|
+
# Steps completed during the operation.
|
399
|
+
# @return [Array<Types::ClusterOperationStep>]
|
400
|
+
#
|
320
401
|
# @!attribute [rw] operation_arn
|
321
402
|
# ARN of the cluster operation.
|
322
403
|
# @return [String]
|
@@ -345,6 +426,7 @@ module Aws::Kafka
|
|
345
426
|
:creation_time,
|
346
427
|
:end_time,
|
347
428
|
:error_info,
|
429
|
+
:operation_steps,
|
348
430
|
:operation_arn,
|
349
431
|
:operation_state,
|
350
432
|
:operation_type,
|
@@ -353,6 +435,53 @@ module Aws::Kafka
|
|
353
435
|
include Aws::Structure
|
354
436
|
end
|
355
437
|
|
438
|
+
# Step taken during a cluster operation.
|
439
|
+
#
|
440
|
+
# @!attribute [rw] step_info
|
441
|
+
# Information about the step and its status.
|
442
|
+
# @return [Types::ClusterOperationStepInfo]
|
443
|
+
#
|
444
|
+
# @!attribute [rw] step_name
|
445
|
+
# The name of the step.
|
446
|
+
# @return [String]
|
447
|
+
#
|
448
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ClusterOperationStep AWS API Documentation
|
449
|
+
#
|
450
|
+
class ClusterOperationStep < Struct.new(
|
451
|
+
:step_info,
|
452
|
+
:step_name)
|
453
|
+
include Aws::Structure
|
454
|
+
end
|
455
|
+
|
456
|
+
# State information about the operation step.
|
457
|
+
#
|
458
|
+
# @!attribute [rw] step_status
|
459
|
+
# The steps current status.
|
460
|
+
# @return [String]
|
461
|
+
#
|
462
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ClusterOperationStepInfo AWS API Documentation
|
463
|
+
#
|
464
|
+
class ClusterOperationStepInfo < Struct.new(
|
465
|
+
:step_status)
|
466
|
+
include Aws::Structure
|
467
|
+
end
|
468
|
+
|
469
|
+
# Contains source Kafka versions and compatible target Kafka versions.
|
470
|
+
#
|
471
|
+
# @!attribute [rw] source_version
|
472
|
+
# @return [String]
|
473
|
+
#
|
474
|
+
# @!attribute [rw] target_versions
|
475
|
+
# @return [Array<String>]
|
476
|
+
#
|
477
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/CompatibleKafkaVersion AWS API Documentation
|
478
|
+
#
|
479
|
+
class CompatibleKafkaVersion < Struct.new(
|
480
|
+
:source_version,
|
481
|
+
:target_versions)
|
482
|
+
include Aws::Structure
|
483
|
+
end
|
484
|
+
|
356
485
|
# Represents an MSK Configuration.
|
357
486
|
#
|
358
487
|
# @!attribute [rw] arn
|
@@ -497,6 +626,23 @@ module Aws::Kafka
|
|
497
626
|
# },
|
498
627
|
# enhanced_monitoring: "DEFAULT", # accepts DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER
|
499
628
|
# kafka_version: "__stringMin1Max128", # required
|
629
|
+
# logging_info: {
|
630
|
+
# broker_logs: { # required
|
631
|
+
# cloud_watch_logs: {
|
632
|
+
# enabled: false, # required
|
633
|
+
# log_group: "__string",
|
634
|
+
# },
|
635
|
+
# firehose: {
|
636
|
+
# delivery_stream: "__string",
|
637
|
+
# enabled: false, # required
|
638
|
+
# },
|
639
|
+
# s3: {
|
640
|
+
# bucket: "__string",
|
641
|
+
# enabled: false, # required
|
642
|
+
# prefix: "__string",
|
643
|
+
# },
|
644
|
+
# },
|
645
|
+
# },
|
500
646
|
# number_of_broker_nodes: 1, # required
|
501
647
|
# open_monitoring: {
|
502
648
|
# prometheus: { # required
|
@@ -543,6 +689,10 @@ module Aws::Kafka
|
|
543
689
|
# The version of Apache Kafka.
|
544
690
|
# @return [String]
|
545
691
|
#
|
692
|
+
# @!attribute [rw] logging_info
|
693
|
+
# LoggingInfo details.
|
694
|
+
# @return [Types::LoggingInfo]
|
695
|
+
#
|
546
696
|
# @!attribute [rw] number_of_broker_nodes
|
547
697
|
# The number of Kafka broker nodes in the Amazon MSK cluster.
|
548
698
|
# @return [Integer]
|
@@ -565,6 +715,7 @@ module Aws::Kafka
|
|
565
715
|
:encryption_info,
|
566
716
|
:enhanced_monitoring,
|
567
717
|
:kafka_version,
|
718
|
+
:logging_info,
|
568
719
|
:number_of_broker_nodes,
|
569
720
|
:open_monitoring,
|
570
721
|
:tags)
|
@@ -602,7 +753,7 @@ module Aws::Kafka
|
|
602
753
|
#
|
603
754
|
# {
|
604
755
|
# description: "__string",
|
605
|
-
# kafka_versions: ["__string"],
|
756
|
+
# kafka_versions: ["__string"],
|
606
757
|
# name: "__string", # required
|
607
758
|
# server_properties: "data", # required
|
608
759
|
# }
|
@@ -1010,6 +1161,34 @@ module Aws::Kafka
|
|
1010
1161
|
include Aws::Structure
|
1011
1162
|
end
|
1012
1163
|
|
1164
|
+
# Firehose details for BrokerLogs.
|
1165
|
+
#
|
1166
|
+
# @note When making an API call, you may pass Firehose
|
1167
|
+
# data as a hash:
|
1168
|
+
#
|
1169
|
+
# {
|
1170
|
+
# delivery_stream: "__string",
|
1171
|
+
# enabled: false, # required
|
1172
|
+
# }
|
1173
|
+
#
|
1174
|
+
# @!attribute [rw] delivery_stream
|
1175
|
+
# The Kinesis Data Firehose delivery stream that is the destination
|
1176
|
+
# for broker logs.
|
1177
|
+
# @return [String]
|
1178
|
+
#
|
1179
|
+
# @!attribute [rw] enabled
|
1180
|
+
# Specifies whether broker logs get sent to the specified Kinesis Data
|
1181
|
+
# Firehose delivery stream.
|
1182
|
+
# @return [Boolean]
|
1183
|
+
#
|
1184
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/Firehose AWS API Documentation
|
1185
|
+
#
|
1186
|
+
class Firehose < Struct.new(
|
1187
|
+
:delivery_stream,
|
1188
|
+
:enabled)
|
1189
|
+
include Aws::Structure
|
1190
|
+
end
|
1191
|
+
|
1013
1192
|
# Returns information about an error state of the cluster.
|
1014
1193
|
#
|
1015
1194
|
# @!attribute [rw] error_code
|
@@ -1082,6 +1261,36 @@ module Aws::Kafka
|
|
1082
1261
|
include Aws::Structure
|
1083
1262
|
end
|
1084
1263
|
|
1264
|
+
# @note When making an API call, you may pass GetCompatibleKafkaVersionsRequest
|
1265
|
+
# data as a hash:
|
1266
|
+
#
|
1267
|
+
# {
|
1268
|
+
# cluster_arn: "__string",
|
1269
|
+
# }
|
1270
|
+
#
|
1271
|
+
# @!attribute [rw] cluster_arn
|
1272
|
+
# @return [String]
|
1273
|
+
#
|
1274
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/GetCompatibleKafkaVersionsRequest AWS API Documentation
|
1275
|
+
#
|
1276
|
+
class GetCompatibleKafkaVersionsRequest < Struct.new(
|
1277
|
+
:cluster_arn)
|
1278
|
+
include Aws::Structure
|
1279
|
+
end
|
1280
|
+
|
1281
|
+
# Response body for GetCompatibleKafkaVersions.
|
1282
|
+
#
|
1283
|
+
# @!attribute [rw] compatible_kafka_versions
|
1284
|
+
# A list of CompatibleKafkaVersion objects.
|
1285
|
+
# @return [Array<Types::CompatibleKafkaVersion>]
|
1286
|
+
#
|
1287
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/GetCompatibleKafkaVersionsResponse AWS API Documentation
|
1288
|
+
#
|
1289
|
+
class GetCompatibleKafkaVersionsResponse < Struct.new(
|
1290
|
+
:compatible_kafka_versions)
|
1291
|
+
include Aws::Structure
|
1292
|
+
end
|
1293
|
+
|
1085
1294
|
# Returns information about an error.
|
1086
1295
|
#
|
1087
1296
|
# @!attribute [rw] invalid_parameter
|
@@ -1098,6 +1307,24 @@ module Aws::Kafka
|
|
1098
1307
|
include Aws::Structure
|
1099
1308
|
end
|
1100
1309
|
|
1310
|
+
# Information about a Kafka version.
|
1311
|
+
#
|
1312
|
+
# @!attribute [rw] version
|
1313
|
+
# The Kafka version.
|
1314
|
+
# @return [String]
|
1315
|
+
#
|
1316
|
+
# @!attribute [rw] status
|
1317
|
+
# The status of the Apache Kafka version.
|
1318
|
+
# @return [String]
|
1319
|
+
#
|
1320
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/KafkaVersion AWS API Documentation
|
1321
|
+
#
|
1322
|
+
class KafkaVersion < Struct.new(
|
1323
|
+
:version,
|
1324
|
+
:status)
|
1325
|
+
include Aws::Structure
|
1326
|
+
end
|
1327
|
+
|
1101
1328
|
# @note When making an API call, you may pass ListClusterOperationsRequest
|
1102
1329
|
# data as a hash:
|
1103
1330
|
#
|
@@ -1284,6 +1511,46 @@ module Aws::Kafka
|
|
1284
1511
|
include Aws::Structure
|
1285
1512
|
end
|
1286
1513
|
|
1514
|
+
# @note When making an API call, you may pass ListKafkaVersionsRequest
|
1515
|
+
# data as a hash:
|
1516
|
+
#
|
1517
|
+
# {
|
1518
|
+
# max_results: 1,
|
1519
|
+
# next_token: "__string",
|
1520
|
+
# }
|
1521
|
+
#
|
1522
|
+
# @!attribute [rw] max_results
|
1523
|
+
# @return [Integer]
|
1524
|
+
#
|
1525
|
+
# @!attribute [rw] next_token
|
1526
|
+
# @return [String]
|
1527
|
+
#
|
1528
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListKafkaVersionsRequest AWS API Documentation
|
1529
|
+
#
|
1530
|
+
class ListKafkaVersionsRequest < Struct.new(
|
1531
|
+
:max_results,
|
1532
|
+
:next_token)
|
1533
|
+
include Aws::Structure
|
1534
|
+
end
|
1535
|
+
|
1536
|
+
# Response for ListKafkaVersions.
|
1537
|
+
#
|
1538
|
+
# @!attribute [rw] kafka_versions
|
1539
|
+
# An array of Kafka version objects.
|
1540
|
+
# @return [Array<Types::KafkaVersion>]
|
1541
|
+
#
|
1542
|
+
# @!attribute [rw] next_token
|
1543
|
+
# Paginated results marker.
|
1544
|
+
# @return [String]
|
1545
|
+
#
|
1546
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListKafkaVersionsResponse AWS API Documentation
|
1547
|
+
#
|
1548
|
+
class ListKafkaVersionsResponse < Struct.new(
|
1549
|
+
:kafka_versions,
|
1550
|
+
:next_token)
|
1551
|
+
include Aws::Structure
|
1552
|
+
end
|
1553
|
+
|
1287
1554
|
# @note When making an API call, you may pass ListNodesRequest
|
1288
1555
|
# data as a hash:
|
1289
1556
|
#
|
@@ -1362,6 +1629,44 @@ module Aws::Kafka
|
|
1362
1629
|
include Aws::Structure
|
1363
1630
|
end
|
1364
1631
|
|
1632
|
+
# You can configure your MSK cluster to send broker logs to different
|
1633
|
+
# destination types. This is a container for the configuration details
|
1634
|
+
# related to broker logs.
|
1635
|
+
#
|
1636
|
+
# @note When making an API call, you may pass LoggingInfo
|
1637
|
+
# data as a hash:
|
1638
|
+
#
|
1639
|
+
# {
|
1640
|
+
# broker_logs: { # required
|
1641
|
+
# cloud_watch_logs: {
|
1642
|
+
# enabled: false, # required
|
1643
|
+
# log_group: "__string",
|
1644
|
+
# },
|
1645
|
+
# firehose: {
|
1646
|
+
# delivery_stream: "__string",
|
1647
|
+
# enabled: false, # required
|
1648
|
+
# },
|
1649
|
+
# s3: {
|
1650
|
+
# bucket: "__string",
|
1651
|
+
# enabled: false, # required
|
1652
|
+
# prefix: "__string",
|
1653
|
+
# },
|
1654
|
+
# },
|
1655
|
+
# }
|
1656
|
+
#
|
1657
|
+
# @!attribute [rw] broker_logs
|
1658
|
+
# You can configure your MSK cluster to send broker logs to different
|
1659
|
+
# destination types. This configuration specifies the details of these
|
1660
|
+
# destinations.
|
1661
|
+
# @return [Types::BrokerLogs]
|
1662
|
+
#
|
1663
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/LoggingInfo AWS API Documentation
|
1664
|
+
#
|
1665
|
+
class LoggingInfo < Struct.new(
|
1666
|
+
:broker_logs)
|
1667
|
+
include Aws::Structure
|
1668
|
+
end
|
1669
|
+
|
1365
1670
|
# Information about cluster attributes that can be updated via update
|
1366
1671
|
# APIs.
|
1367
1672
|
#
|
@@ -1387,6 +1692,13 @@ module Aws::Kafka
|
|
1387
1692
|
# Amazon CloudWatch for this cluster.
|
1388
1693
|
# @return [String]
|
1389
1694
|
#
|
1695
|
+
# @!attribute [rw] kafka_version
|
1696
|
+
# @return [String]
|
1697
|
+
#
|
1698
|
+
# @!attribute [rw] logging_info
|
1699
|
+
# LoggingInfo details.
|
1700
|
+
# @return [Types::LoggingInfo]
|
1701
|
+
#
|
1390
1702
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/MutableClusterInfo AWS API Documentation
|
1391
1703
|
#
|
1392
1704
|
class MutableClusterInfo < Struct.new(
|
@@ -1394,7 +1706,9 @@ module Aws::Kafka
|
|
1394
1706
|
:configuration_info,
|
1395
1707
|
:number_of_broker_nodes,
|
1396
1708
|
:open_monitoring,
|
1397
|
-
:enhanced_monitoring
|
1709
|
+
:enhanced_monitoring,
|
1710
|
+
:kafka_version,
|
1711
|
+
:logging_info)
|
1398
1712
|
include Aws::Structure
|
1399
1713
|
end
|
1400
1714
|
|
@@ -1468,6 +1782,26 @@ module Aws::Kafka
|
|
1468
1782
|
include Aws::Structure
|
1469
1783
|
end
|
1470
1784
|
|
1785
|
+
# Contains information about the state of the Amazon MSK cluster.
|
1786
|
+
#
|
1787
|
+
# @!attribute [rw] code
|
1788
|
+
# If the cluster is in an unusable state, this field contains the code
|
1789
|
+
# that describes the issue.
|
1790
|
+
# @return [String]
|
1791
|
+
#
|
1792
|
+
# @!attribute [rw] message
|
1793
|
+
# If the cluster is in an unusable state, this field contains a
|
1794
|
+
# message that describes the issue.
|
1795
|
+
# @return [String]
|
1796
|
+
#
|
1797
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/StateInfo AWS API Documentation
|
1798
|
+
#
|
1799
|
+
class StateInfo < Struct.new(
|
1800
|
+
:code,
|
1801
|
+
:message)
|
1802
|
+
include Aws::Structure
|
1803
|
+
end
|
1804
|
+
|
1471
1805
|
# Contains information about storage volumes attached to MSK broker
|
1472
1806
|
# nodes.
|
1473
1807
|
#
|
@@ -1757,6 +2091,64 @@ module Aws::Kafka
|
|
1757
2091
|
include Aws::Structure
|
1758
2092
|
end
|
1759
2093
|
|
2094
|
+
# Request body for UpdateClusterKafkaVersion.
|
2095
|
+
#
|
2096
|
+
# @note When making an API call, you may pass UpdateClusterKafkaVersionRequest
|
2097
|
+
# data as a hash:
|
2098
|
+
#
|
2099
|
+
# {
|
2100
|
+
# cluster_arn: "__string", # required
|
2101
|
+
# configuration_info: {
|
2102
|
+
# arn: "__string", # required
|
2103
|
+
# revision: 1, # required
|
2104
|
+
# },
|
2105
|
+
# current_version: "__string", # required
|
2106
|
+
# target_kafka_version: "__string", # required
|
2107
|
+
# }
|
2108
|
+
#
|
2109
|
+
# @!attribute [rw] cluster_arn
|
2110
|
+
# @return [String]
|
2111
|
+
#
|
2112
|
+
# @!attribute [rw] configuration_info
|
2113
|
+
# Specifies the configuration to use for the brokers.
|
2114
|
+
# @return [Types::ConfigurationInfo]
|
2115
|
+
#
|
2116
|
+
# @!attribute [rw] current_version
|
2117
|
+
# Current cluster version.
|
2118
|
+
# @return [String]
|
2119
|
+
#
|
2120
|
+
# @!attribute [rw] target_kafka_version
|
2121
|
+
# Target Kafka version.
|
2122
|
+
# @return [String]
|
2123
|
+
#
|
2124
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UpdateClusterKafkaVersionRequest AWS API Documentation
|
2125
|
+
#
|
2126
|
+
class UpdateClusterKafkaVersionRequest < Struct.new(
|
2127
|
+
:cluster_arn,
|
2128
|
+
:configuration_info,
|
2129
|
+
:current_version,
|
2130
|
+
:target_kafka_version)
|
2131
|
+
include Aws::Structure
|
2132
|
+
end
|
2133
|
+
|
2134
|
+
# Response body for UpdateClusterKafkaVersion.
|
2135
|
+
#
|
2136
|
+
# @!attribute [rw] cluster_arn
|
2137
|
+
# The Amazon Resource Name (ARN) of the cluster.
|
2138
|
+
# @return [String]
|
2139
|
+
#
|
2140
|
+
# @!attribute [rw] cluster_operation_arn
|
2141
|
+
# The Amazon Resource Name (ARN) of the cluster operation.
|
2142
|
+
# @return [String]
|
2143
|
+
#
|
2144
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UpdateClusterKafkaVersionResponse AWS API Documentation
|
2145
|
+
#
|
2146
|
+
class UpdateClusterKafkaVersionResponse < Struct.new(
|
2147
|
+
:cluster_arn,
|
2148
|
+
:cluster_operation_arn)
|
2149
|
+
include Aws::Structure
|
2150
|
+
end
|
2151
|
+
|
1760
2152
|
# Request body for UpdateMonitoring.
|
1761
2153
|
#
|
1762
2154
|
# @note When making an API call, you may pass UpdateMonitoringRequest
|
@@ -1776,6 +2168,23 @@ module Aws::Kafka
|
|
1776
2168
|
# },
|
1777
2169
|
# },
|
1778
2170
|
# },
|
2171
|
+
# logging_info: {
|
2172
|
+
# broker_logs: { # required
|
2173
|
+
# cloud_watch_logs: {
|
2174
|
+
# enabled: false, # required
|
2175
|
+
# log_group: "__string",
|
2176
|
+
# },
|
2177
|
+
# firehose: {
|
2178
|
+
# delivery_stream: "__string",
|
2179
|
+
# enabled: false, # required
|
2180
|
+
# },
|
2181
|
+
# s3: {
|
2182
|
+
# bucket: "__string",
|
2183
|
+
# enabled: false, # required
|
2184
|
+
# prefix: "__string",
|
2185
|
+
# },
|
2186
|
+
# },
|
2187
|
+
# },
|
1779
2188
|
# }
|
1780
2189
|
#
|
1781
2190
|
# @!attribute [rw] cluster_arn
|
@@ -1795,13 +2204,18 @@ module Aws::Kafka
|
|
1795
2204
|
# The settings for open monitoring.
|
1796
2205
|
# @return [Types::OpenMonitoringInfo]
|
1797
2206
|
#
|
2207
|
+
# @!attribute [rw] logging_info
|
2208
|
+
# LoggingInfo details.
|
2209
|
+
# @return [Types::LoggingInfo]
|
2210
|
+
#
|
1798
2211
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UpdateMonitoringRequest AWS API Documentation
|
1799
2212
|
#
|
1800
2213
|
class UpdateMonitoringRequest < Struct.new(
|
1801
2214
|
:cluster_arn,
|
1802
2215
|
:current_version,
|
1803
2216
|
:enhanced_monitoring,
|
1804
|
-
:open_monitoring
|
2217
|
+
:open_monitoring,
|
2218
|
+
:logging_info)
|
1805
2219
|
include Aws::Structure
|
1806
2220
|
end
|
1807
2221
|
|
@@ -1944,6 +2358,39 @@ module Aws::Kafka
|
|
1944
2358
|
include Aws::Structure
|
1945
2359
|
end
|
1946
2360
|
|
2361
|
+
# The details of the Amazon S3 destination for broker logs.
|
2362
|
+
#
|
2363
|
+
# @note When making an API call, you may pass S3
|
2364
|
+
# data as a hash:
|
2365
|
+
#
|
2366
|
+
# {
|
2367
|
+
# bucket: "__string",
|
2368
|
+
# enabled: false, # required
|
2369
|
+
# prefix: "__string",
|
2370
|
+
# }
|
2371
|
+
#
|
2372
|
+
# @!attribute [rw] bucket
|
2373
|
+
# The name of the S3 bucket that is the destination for broker logs.
|
2374
|
+
# @return [String]
|
2375
|
+
#
|
2376
|
+
# @!attribute [rw] enabled
|
2377
|
+
# Specifies whether broker logs get sent to the specified Amazon S3
|
2378
|
+
# destination.
|
2379
|
+
# @return [Boolean]
|
2380
|
+
#
|
2381
|
+
# @!attribute [rw] prefix
|
2382
|
+
# The S3 prefix that is the destination for broker logs.
|
2383
|
+
# @return [String]
|
2384
|
+
#
|
2385
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/S3 AWS API Documentation
|
2386
|
+
#
|
2387
|
+
class S3 < Struct.new(
|
2388
|
+
:bucket,
|
2389
|
+
:enabled,
|
2390
|
+
:prefix)
|
2391
|
+
include Aws::Structure
|
2392
|
+
end
|
2393
|
+
|
1947
2394
|
# Indicates whether you want to enable or disable the JMX Exporter.
|
1948
2395
|
#
|
1949
2396
|
# @!attribute [rw] enabled_in_broker
|
@@ -1967,7 +2414,7 @@ module Aws::Kafka
|
|
1967
2414
|
# }
|
1968
2415
|
#
|
1969
2416
|
# @!attribute [rw] enabled_in_broker
|
1970
|
-
#
|
2417
|
+
# JMX Exporter being enabled in broker.
|
1971
2418
|
# @return [Boolean]
|
1972
2419
|
#
|
1973
2420
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/JmxExporterInfo AWS API Documentation
|
@@ -2000,7 +2447,7 @@ module Aws::Kafka
|
|
2000
2447
|
# }
|
2001
2448
|
#
|
2002
2449
|
# @!attribute [rw] enabled_in_broker
|
2003
|
-
#
|
2450
|
+
# Node Exporter being enabled in broker.
|
2004
2451
|
# @return [Boolean]
|
2005
2452
|
#
|
2006
2453
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/NodeExporterInfo AWS API Documentation
|