@aws-sdk/client-kafka 3.42.0 → 3.43.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.
@@ -957,6 +957,44 @@ export var serializeAws_restJson1UpdateConfigurationCommand = function (input, c
957
957
  }
958
958
  });
959
959
  }); };
960
+ export var serializeAws_restJson1UpdateConnectivityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
961
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
962
+ return __generator(this, function (_c) {
963
+ switch (_c.label) {
964
+ case 0: return [4, context.endpoint()];
965
+ case 1:
966
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
967
+ headers = {
968
+ "content-type": "application/json",
969
+ };
970
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/connectivity";
971
+ if (input.ClusterArn !== undefined) {
972
+ labelValue = input.ClusterArn;
973
+ if (labelValue.length <= 0) {
974
+ throw new Error("Empty value provided for input HTTP label: ClusterArn.");
975
+ }
976
+ resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
977
+ }
978
+ else {
979
+ throw new Error("No value provided for input HTTP label: ClusterArn.");
980
+ }
981
+ body = JSON.stringify(__assign(__assign({}, (input.ConnectivityInfo !== undefined &&
982
+ input.ConnectivityInfo !== null && {
983
+ connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
984
+ })), (input.CurrentVersion !== undefined &&
985
+ input.CurrentVersion !== null && { currentVersion: input.CurrentVersion })));
986
+ return [2, new __HttpRequest({
987
+ protocol: protocol,
988
+ hostname: hostname,
989
+ port: port,
990
+ method: "PUT",
991
+ headers: headers,
992
+ path: resolvedPath,
993
+ body: body,
994
+ })];
995
+ }
996
+ });
997
+ }); };
960
998
  export var serializeAws_restJson1UpdateMonitoringCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
961
999
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
962
1000
  return __generator(this, function (_c) {
@@ -2133,6 +2171,9 @@ export var deserializeAws_restJson1GetBootstrapBrokersCommand = function (output
2133
2171
  contents = {
2134
2172
  $metadata: deserializeMetadata(output),
2135
2173
  BootstrapBrokerString: undefined,
2174
+ BootstrapBrokerStringPublicSaslIam: undefined,
2175
+ BootstrapBrokerStringPublicSaslScram: undefined,
2176
+ BootstrapBrokerStringPublicTls: undefined,
2136
2177
  BootstrapBrokerStringSaslIam: undefined,
2137
2178
  BootstrapBrokerStringSaslScram: undefined,
2138
2179
  BootstrapBrokerStringTls: undefined,
@@ -2145,6 +2186,15 @@ export var deserializeAws_restJson1GetBootstrapBrokersCommand = function (output
2145
2186
  if (data.bootstrapBrokerString !== undefined && data.bootstrapBrokerString !== null) {
2146
2187
  contents.BootstrapBrokerString = __expectString(data.bootstrapBrokerString);
2147
2188
  }
2189
+ if (data.bootstrapBrokerStringPublicSaslIam !== undefined && data.bootstrapBrokerStringPublicSaslIam !== null) {
2190
+ contents.BootstrapBrokerStringPublicSaslIam = __expectString(data.bootstrapBrokerStringPublicSaslIam);
2191
+ }
2192
+ if (data.bootstrapBrokerStringPublicSaslScram !== undefined && data.bootstrapBrokerStringPublicSaslScram !== null) {
2193
+ contents.BootstrapBrokerStringPublicSaslScram = __expectString(data.bootstrapBrokerStringPublicSaslScram);
2194
+ }
2195
+ if (data.bootstrapBrokerStringPublicTls !== undefined && data.bootstrapBrokerStringPublicTls !== null) {
2196
+ contents.BootstrapBrokerStringPublicTls = __expectString(data.bootstrapBrokerStringPublicTls);
2197
+ }
2148
2198
  if (data.bootstrapBrokerStringSaslIam !== undefined && data.bootstrapBrokerStringSaslIam !== null) {
2149
2199
  contents.BootstrapBrokerStringSaslIam = __expectString(data.bootstrapBrokerStringSaslIam);
2150
2200
  }
@@ -3988,6 +4038,112 @@ var deserializeAws_restJson1UpdateConfigurationCommandError = function (output,
3988
4038
  }
3989
4039
  });
3990
4040
  }); };
4041
+ export var deserializeAws_restJson1UpdateConnectivityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4042
+ var contents, data, _a, _b;
4043
+ return __generator(this, function (_c) {
4044
+ switch (_c.label) {
4045
+ case 0:
4046
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4047
+ return [2, deserializeAws_restJson1UpdateConnectivityCommandError(output, context)];
4048
+ }
4049
+ contents = {
4050
+ $metadata: deserializeMetadata(output),
4051
+ ClusterArn: undefined,
4052
+ ClusterOperationArn: undefined,
4053
+ };
4054
+ _a = __expectNonNull;
4055
+ _b = __expectObject;
4056
+ return [4, parseBody(output.body, context)];
4057
+ case 1:
4058
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4059
+ if (data.clusterArn !== undefined && data.clusterArn !== null) {
4060
+ contents.ClusterArn = __expectString(data.clusterArn);
4061
+ }
4062
+ if (data.clusterOperationArn !== undefined && data.clusterOperationArn !== null) {
4063
+ contents.ClusterOperationArn = __expectString(data.clusterOperationArn);
4064
+ }
4065
+ return [2, Promise.resolve(contents)];
4066
+ }
4067
+ });
4068
+ }); };
4069
+ var deserializeAws_restJson1UpdateConnectivityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4070
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
4071
+ var _j;
4072
+ return __generator(this, function (_k) {
4073
+ switch (_k.label) {
4074
+ case 0:
4075
+ _a = [__assign({}, output)];
4076
+ _j = {};
4077
+ return [4, parseBody(output.body, context)];
4078
+ case 1:
4079
+ parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
4080
+ errorCode = "UnknownError";
4081
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4082
+ _b = errorCode;
4083
+ switch (_b) {
4084
+ case "BadRequestException": return [3, 2];
4085
+ case "com.amazonaws.kafka#BadRequestException": return [3, 2];
4086
+ case "ForbiddenException": return [3, 4];
4087
+ case "com.amazonaws.kafka#ForbiddenException": return [3, 4];
4088
+ case "InternalServerErrorException": return [3, 6];
4089
+ case "com.amazonaws.kafka#InternalServerErrorException": return [3, 6];
4090
+ case "NotFoundException": return [3, 8];
4091
+ case "com.amazonaws.kafka#NotFoundException": return [3, 8];
4092
+ case "ServiceUnavailableException": return [3, 10];
4093
+ case "com.amazonaws.kafka#ServiceUnavailableException": return [3, 10];
4094
+ case "UnauthorizedException": return [3, 12];
4095
+ case "com.amazonaws.kafka#UnauthorizedException": return [3, 12];
4096
+ }
4097
+ return [3, 14];
4098
+ case 2:
4099
+ _c = [{}];
4100
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
4101
+ case 3:
4102
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4103
+ return [3, 15];
4104
+ case 4:
4105
+ _d = [{}];
4106
+ return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
4107
+ case 5:
4108
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4109
+ return [3, 15];
4110
+ case 6:
4111
+ _e = [{}];
4112
+ return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
4113
+ case 7:
4114
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4115
+ return [3, 15];
4116
+ case 8:
4117
+ _f = [{}];
4118
+ return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
4119
+ case 9:
4120
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4121
+ return [3, 15];
4122
+ case 10:
4123
+ _g = [{}];
4124
+ return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
4125
+ case 11:
4126
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4127
+ return [3, 15];
4128
+ case 12:
4129
+ _h = [{}];
4130
+ return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
4131
+ case 13:
4132
+ response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4133
+ return [3, 15];
4134
+ case 14:
4135
+ parsedBody = parsedOutput.body;
4136
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
4137
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4138
+ _k.label = 15;
4139
+ case 15:
4140
+ message = response.message || response.Message || errorCode;
4141
+ response.message = message;
4142
+ delete response.Message;
4143
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
4144
+ }
4145
+ });
4146
+ }); };
3991
4147
  export var deserializeAws_restJson1UpdateMonitoringCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3992
4148
  var contents, data, _a, _b;
3993
4149
  return __generator(this, function (_c) {
@@ -4402,10 +4558,13 @@ var serializeAws_restJson1BrokerLogs = function (input, context) {
4402
4558
  input.Firehose !== null && { firehose: serializeAws_restJson1Firehose(input.Firehose, context) })), (input.S3 !== undefined && input.S3 !== null && { s3: serializeAws_restJson1S3(input.S3, context) }));
4403
4559
  };
4404
4560
  var serializeAws_restJson1BrokerNodeGroupInfo = function (input, context) {
4405
- return __assign(__assign(__assign(__assign(__assign({}, (input.BrokerAZDistribution !== undefined &&
4561
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.BrokerAZDistribution !== undefined &&
4406
4562
  input.BrokerAZDistribution !== null && { brokerAZDistribution: input.BrokerAZDistribution })), (input.ClientSubnets !== undefined &&
4407
4563
  input.ClientSubnets !== null && {
4408
4564
  clientSubnets: serializeAws_restJson1__listOf__string(input.ClientSubnets, context),
4565
+ })), (input.ConnectivityInfo !== undefined &&
4566
+ input.ConnectivityInfo !== null && {
4567
+ connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
4409
4568
  })), (input.InstanceType !== undefined && input.InstanceType !== null && { instanceType: input.InstanceType })), (input.SecurityGroups !== undefined &&
4410
4569
  input.SecurityGroups !== null && {
4411
4570
  securityGroups: serializeAws_restJson1__listOf__string(input.SecurityGroups, context),
@@ -4424,6 +4583,10 @@ var serializeAws_restJson1CloudWatchLogs = function (input, context) {
4424
4583
  var serializeAws_restJson1ConfigurationInfo = function (input, context) {
4425
4584
  return __assign(__assign({}, (input.Arn !== undefined && input.Arn !== null && { arn: input.Arn })), (input.Revision !== undefined && input.Revision !== null && { revision: input.Revision }));
4426
4585
  };
4586
+ var serializeAws_restJson1ConnectivityInfo = function (input, context) {
4587
+ return __assign({}, (input.PublicAccess !== undefined &&
4588
+ input.PublicAccess !== null && { publicAccess: serializeAws_restJson1PublicAccess(input.PublicAccess, context) }));
4589
+ };
4427
4590
  var serializeAws_restJson1EBSStorageInfo = function (input, context) {
4428
4591
  return __assign({}, (input.VolumeSize !== undefined && input.VolumeSize !== null && { volumeSize: input.VolumeSize }));
4429
4592
  };
@@ -4473,6 +4636,9 @@ var serializeAws_restJson1PrometheusInfo = function (input, context) {
4473
4636
  nodeExporter: serializeAws_restJson1NodeExporterInfo(input.NodeExporter, context),
4474
4637
  }));
4475
4638
  };
4639
+ var serializeAws_restJson1PublicAccess = function (input, context) {
4640
+ return __assign({}, (input.Type !== undefined && input.Type !== null && { type: input.Type }));
4641
+ };
4476
4642
  var serializeAws_restJson1S3 = function (input, context) {
4477
4643
  return __assign(__assign(__assign({}, (input.Bucket !== undefined && input.Bucket !== null && { bucket: input.Bucket })), (input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled })), (input.Prefix !== undefined && input.Prefix !== null && { prefix: input.Prefix }));
4478
4644
  };
@@ -4641,6 +4807,9 @@ var deserializeAws_restJson1BrokerNodeGroupInfo = function (output, context) {
4641
4807
  ClientSubnets: output.clientSubnets !== undefined && output.clientSubnets !== null
4642
4808
  ? deserializeAws_restJson1__listOf__string(output.clientSubnets, context)
4643
4809
  : undefined,
4810
+ ConnectivityInfo: output.connectivityInfo !== undefined && output.connectivityInfo !== null
4811
+ ? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
4812
+ : undefined,
4644
4813
  InstanceType: __expectString(output.instanceType),
4645
4814
  SecurityGroups: output.securityGroups !== undefined && output.securityGroups !== null
4646
4815
  ? deserializeAws_restJson1__listOf__string(output.securityGroups, context)
@@ -4808,6 +4977,13 @@ var deserializeAws_restJson1ConfigurationRevision = function (output, context) {
4808
4977
  Revision: __expectLong(output.revision),
4809
4978
  };
4810
4979
  };
4980
+ var deserializeAws_restJson1ConnectivityInfo = function (output, context) {
4981
+ return {
4982
+ PublicAccess: output.publicAccess !== undefined && output.publicAccess !== null
4983
+ ? deserializeAws_restJson1PublicAccess(output.publicAccess, context)
4984
+ : undefined,
4985
+ };
4986
+ };
4811
4987
  var deserializeAws_restJson1EBSStorageInfo = function (output, context) {
4812
4988
  return {
4813
4989
  VolumeSize: __expectInt32(output.volumeSize),
@@ -4880,6 +5056,9 @@ var deserializeAws_restJson1MutableClusterInfo = function (output, context) {
4880
5056
  ConfigurationInfo: output.configurationInfo !== undefined && output.configurationInfo !== null
4881
5057
  ? deserializeAws_restJson1ConfigurationInfo(output.configurationInfo, context)
4882
5058
  : undefined,
5059
+ ConnectivityInfo: output.connectivityInfo !== undefined && output.connectivityInfo !== null
5060
+ ? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
5061
+ : undefined,
4883
5062
  EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
4884
5063
  ? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
4885
5064
  : undefined,
@@ -4931,6 +5110,11 @@ var deserializeAws_restJson1Prometheus = function (output, context) {
4931
5110
  : undefined,
4932
5111
  };
4933
5112
  };
5113
+ var deserializeAws_restJson1PublicAccess = function (output, context) {
5114
+ return {
5115
+ Type: __expectString(output.type),
5116
+ };
5117
+ };
4934
5118
  var deserializeAws_restJson1S3 = function (output, context) {
4935
5119
  return {
4936
5120
  Bucket: __expectString(output.bucket),
@@ -28,6 +28,7 @@ import { UpdateBrokerTypeCommandInput, UpdateBrokerTypeCommandOutput } from "./c
28
28
  import { UpdateClusterConfigurationCommandInput, UpdateClusterConfigurationCommandOutput } from "./commands/UpdateClusterConfigurationCommand";
29
29
  import { UpdateClusterKafkaVersionCommandInput, UpdateClusterKafkaVersionCommandOutput } from "./commands/UpdateClusterKafkaVersionCommand";
30
30
  import { UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput } from "./commands/UpdateConfigurationCommand";
31
+ import { UpdateConnectivityCommandInput, UpdateConnectivityCommandOutput } from "./commands/UpdateConnectivityCommand";
31
32
  import { UpdateMonitoringCommandInput, UpdateMonitoringCommandOutput } from "./commands/UpdateMonitoringCommand";
32
33
  import { UpdateSecurityCommandInput, UpdateSecurityCommandOutput } from "./commands/UpdateSecurityCommand";
33
34
  import { KafkaClient } from "./KafkaClient";
@@ -132,7 +133,7 @@ export declare class Kafka extends KafkaClient {
132
133
  listConfigurations(args: ListConfigurationsCommandInput, cb: (err: any, data?: ListConfigurationsCommandOutput) => void): void;
133
134
  listConfigurations(args: ListConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListConfigurationsCommandOutput) => void): void;
134
135
  /**
135
- * <p>Returns a list of Kafka versions.</p>
136
+ * <p>Returns a list of Apache Kafka versions.</p>
136
137
  */
137
138
  listKafkaVersions(args: ListKafkaVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListKafkaVersionsCommandOutput>;
138
139
  listKafkaVersions(args: ListKafkaVersionsCommandInput, cb: (err: any, data?: ListKafkaVersionsCommandOutput) => void): void;
@@ -209,6 +210,12 @@ export declare class Kafka extends KafkaClient {
209
210
  updateConfiguration(args: UpdateConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConfigurationCommandOutput>;
210
211
  updateConfiguration(args: UpdateConfigurationCommandInput, cb: (err: any, data?: UpdateConfigurationCommandOutput) => void): void;
211
212
  updateConfiguration(args: UpdateConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConfigurationCommandOutput) => void): void;
213
+ /**
214
+ * <p>Updates the cluster's connectivity configuration.</p>
215
+ */
216
+ updateConnectivity(args: UpdateConnectivityCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConnectivityCommandOutput>;
217
+ updateConnectivity(args: UpdateConnectivityCommandInput, cb: (err: any, data?: UpdateConnectivityCommandOutput) => void): void;
218
+ updateConnectivity(args: UpdateConnectivityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConnectivityCommandOutput) => void): void;
212
219
  /**
213
220
  * <p>Updates the monitoring settings for the cluster. You can use this operation to specify which Apache Kafka metrics you want Amazon MSK to send to Amazon CloudWatch. You can also specify settings for open monitoring with Prometheus.</p>
214
221
  */
@@ -35,10 +35,11 @@ import { UpdateBrokerTypeCommandInput, UpdateBrokerTypeCommandOutput } from "./c
35
35
  import { UpdateClusterConfigurationCommandInput, UpdateClusterConfigurationCommandOutput } from "./commands/UpdateClusterConfigurationCommand";
36
36
  import { UpdateClusterKafkaVersionCommandInput, UpdateClusterKafkaVersionCommandOutput } from "./commands/UpdateClusterKafkaVersionCommand";
37
37
  import { UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput } from "./commands/UpdateConfigurationCommand";
38
+ import { UpdateConnectivityCommandInput, UpdateConnectivityCommandOutput } from "./commands/UpdateConnectivityCommand";
38
39
  import { UpdateMonitoringCommandInput, UpdateMonitoringCommandOutput } from "./commands/UpdateMonitoringCommand";
39
40
  import { UpdateSecurityCommandInput, UpdateSecurityCommandOutput } from "./commands/UpdateSecurityCommand";
40
- export declare type ServiceInputTypes = BatchAssociateScramSecretCommandInput | BatchDisassociateScramSecretCommandInput | CreateClusterCommandInput | CreateConfigurationCommandInput | DeleteClusterCommandInput | DeleteConfigurationCommandInput | DescribeClusterCommandInput | DescribeClusterOperationCommandInput | DescribeConfigurationCommandInput | DescribeConfigurationRevisionCommandInput | GetBootstrapBrokersCommandInput | GetCompatibleKafkaVersionsCommandInput | ListClusterOperationsCommandInput | ListClustersCommandInput | ListConfigurationRevisionsCommandInput | ListConfigurationsCommandInput | ListKafkaVersionsCommandInput | ListNodesCommandInput | ListScramSecretsCommandInput | ListTagsForResourceCommandInput | RebootBrokerCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBrokerCountCommandInput | UpdateBrokerStorageCommandInput | UpdateBrokerTypeCommandInput | UpdateClusterConfigurationCommandInput | UpdateClusterKafkaVersionCommandInput | UpdateConfigurationCommandInput | UpdateMonitoringCommandInput | UpdateSecurityCommandInput;
41
- export declare type ServiceOutputTypes = BatchAssociateScramSecretCommandOutput | BatchDisassociateScramSecretCommandOutput | CreateClusterCommandOutput | CreateConfigurationCommandOutput | DeleteClusterCommandOutput | DeleteConfigurationCommandOutput | DescribeClusterCommandOutput | DescribeClusterOperationCommandOutput | DescribeConfigurationCommandOutput | DescribeConfigurationRevisionCommandOutput | GetBootstrapBrokersCommandOutput | GetCompatibleKafkaVersionsCommandOutput | ListClusterOperationsCommandOutput | ListClustersCommandOutput | ListConfigurationRevisionsCommandOutput | ListConfigurationsCommandOutput | ListKafkaVersionsCommandOutput | ListNodesCommandOutput | ListScramSecretsCommandOutput | ListTagsForResourceCommandOutput | RebootBrokerCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBrokerCountCommandOutput | UpdateBrokerStorageCommandOutput | UpdateBrokerTypeCommandOutput | UpdateClusterConfigurationCommandOutput | UpdateClusterKafkaVersionCommandOutput | UpdateConfigurationCommandOutput | UpdateMonitoringCommandOutput | UpdateSecurityCommandOutput;
41
+ export declare type ServiceInputTypes = BatchAssociateScramSecretCommandInput | BatchDisassociateScramSecretCommandInput | CreateClusterCommandInput | CreateConfigurationCommandInput | DeleteClusterCommandInput | DeleteConfigurationCommandInput | DescribeClusterCommandInput | DescribeClusterOperationCommandInput | DescribeConfigurationCommandInput | DescribeConfigurationRevisionCommandInput | GetBootstrapBrokersCommandInput | GetCompatibleKafkaVersionsCommandInput | ListClusterOperationsCommandInput | ListClustersCommandInput | ListConfigurationRevisionsCommandInput | ListConfigurationsCommandInput | ListKafkaVersionsCommandInput | ListNodesCommandInput | ListScramSecretsCommandInput | ListTagsForResourceCommandInput | RebootBrokerCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBrokerCountCommandInput | UpdateBrokerStorageCommandInput | UpdateBrokerTypeCommandInput | UpdateClusterConfigurationCommandInput | UpdateClusterKafkaVersionCommandInput | UpdateConfigurationCommandInput | UpdateConnectivityCommandInput | UpdateMonitoringCommandInput | UpdateSecurityCommandInput;
42
+ export declare type ServiceOutputTypes = BatchAssociateScramSecretCommandOutput | BatchDisassociateScramSecretCommandOutput | CreateClusterCommandOutput | CreateConfigurationCommandOutput | DeleteClusterCommandOutput | DeleteConfigurationCommandOutput | DescribeClusterCommandOutput | DescribeClusterOperationCommandOutput | DescribeConfigurationCommandOutput | DescribeConfigurationRevisionCommandOutput | GetBootstrapBrokersCommandOutput | GetCompatibleKafkaVersionsCommandOutput | ListClusterOperationsCommandOutput | ListClustersCommandOutput | ListConfigurationRevisionsCommandOutput | ListConfigurationsCommandOutput | ListKafkaVersionsCommandOutput | ListNodesCommandOutput | ListScramSecretsCommandOutput | ListTagsForResourceCommandOutput | RebootBrokerCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBrokerCountCommandOutput | UpdateBrokerStorageCommandOutput | UpdateBrokerTypeCommandOutput | UpdateClusterConfigurationCommandOutput | UpdateClusterKafkaVersionCommandOutput | UpdateConfigurationCommandOutput | UpdateConnectivityCommandOutput | UpdateMonitoringCommandOutput | UpdateSecurityCommandOutput;
42
43
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
43
44
  /**
44
45
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -7,7 +7,7 @@ export interface ListKafkaVersionsCommandInput extends ListKafkaVersionsRequest
7
7
  export interface ListKafkaVersionsCommandOutput extends ListKafkaVersionsResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Returns a list of Kafka versions.</p>
10
+ * <p>Returns a list of Apache Kafka versions.</p>
11
11
  * @example
12
12
  * Use a bare-bones client and the command you need to make an API call.
13
13
  * ```javascript
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { KafkaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KafkaClient";
4
+ import { UpdateConnectivityRequest, UpdateConnectivityResponse } from "../models/models_0";
5
+ export interface UpdateConnectivityCommandInput extends UpdateConnectivityRequest {
6
+ }
7
+ export interface UpdateConnectivityCommandOutput extends UpdateConnectivityResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Updates the cluster's connectivity configuration.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { KafkaClient, UpdateConnectivityCommand } from "@aws-sdk/client-kafka"; // ES Modules import
15
+ * // const { KafkaClient, UpdateConnectivityCommand } = require("@aws-sdk/client-kafka"); // CommonJS import
16
+ * const client = new KafkaClient(config);
17
+ * const command = new UpdateConnectivityCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link UpdateConnectivityCommandInput} for command's `input` shape.
22
+ * @see {@link UpdateConnectivityCommandOutput} for command's `response` shape.
23
+ * @see {@link KafkaClientResolvedConfig | config} for KafkaClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class UpdateConnectivityCommand extends $Command<UpdateConnectivityCommandInput, UpdateConnectivityCommandOutput, KafkaClientResolvedConfig> {
27
+ readonly input: UpdateConnectivityCommandInput;
28
+ constructor(input: UpdateConnectivityCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateConnectivityCommandInput, UpdateConnectivityCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -27,5 +27,6 @@ export * from "./UpdateBrokerTypeCommand";
27
27
  export * from "./UpdateClusterConfigurationCommand";
28
28
  export * from "./UpdateClusterKafkaVersionCommand";
29
29
  export * from "./UpdateConfigurationCommand";
30
+ export * from "./UpdateConnectivityCommand";
30
31
  export * from "./UpdateMonitoringCommand";
31
32
  export * from "./UpdateSecurityCommand";
@@ -22,7 +22,37 @@ export declare enum BrokerAZDistribution {
22
22
  DEFAULT = "DEFAULT"
23
23
  }
24
24
  /**
25
- * <p>Contains information about the EBS storage volumes attached to Kafka broker nodes.</p>
25
+ * Public access control for brokers.
26
+ */
27
+ export interface PublicAccess {
28
+ /**
29
+ * <p>The value DISABLED indicates that public access is turned off. SERVICE_PROVIDED_EIPS indicates that public access is turned on.</p>
30
+ */
31
+ Type?: string;
32
+ }
33
+ export declare namespace PublicAccess {
34
+ /**
35
+ * @internal
36
+ */
37
+ const filterSensitiveLog: (obj: PublicAccess) => any;
38
+ }
39
+ /**
40
+ * <p>Information about the broker access configuration.</p>
41
+ */
42
+ export interface ConnectivityInfo {
43
+ /**
44
+ * <p>Public access control for brokers.</p>
45
+ */
46
+ PublicAccess?: PublicAccess;
47
+ }
48
+ export declare namespace ConnectivityInfo {
49
+ /**
50
+ * @internal
51
+ */
52
+ const filterSensitiveLog: (obj: ConnectivityInfo) => any;
53
+ }
54
+ /**
55
+ * <p>Contains information about the EBS storage volumes attached to Apache Kafka broker nodes.</p>
26
56
  */
27
57
  export interface EBSStorageInfo {
28
58
  /**
@@ -52,7 +82,7 @@ export declare namespace StorageInfo {
52
82
  const filterSensitiveLog: (obj: StorageInfo) => any;
53
83
  }
54
84
  /**
55
- * <p>Describes the setup to be used for Kafka broker nodes in the cluster.</p>
85
+ * <p>Describes the setup to be used for Apache Kafka broker nodes in the cluster.</p>
56
86
  */
57
87
  export interface BrokerNodeGroupInfo {
58
88
  /**
@@ -65,7 +95,7 @@ export interface BrokerNodeGroupInfo {
65
95
  */
66
96
  ClientSubnets: string[] | undefined;
67
97
  /**
68
- * <p>The type of Amazon EC2 instances to use for Kafka brokers. The following instance types are allowed: kafka.m5.large, kafka.m5.xlarge, kafka.m5.2xlarge,
98
+ * <p>The type of Amazon EC2 instances to use for Apache Kafka brokers. The following instance types are allowed: kafka.m5.large, kafka.m5.xlarge, kafka.m5.2xlarge,
69
99
  * kafka.m5.4xlarge, kafka.m5.12xlarge, and kafka.m5.24xlarge.</p>
70
100
  */
71
101
  InstanceType: string | undefined;
@@ -77,6 +107,10 @@ export interface BrokerNodeGroupInfo {
77
107
  * <p>Contains information about storage volumes attached to MSK broker nodes.</p>
78
108
  */
79
109
  StorageInfo?: StorageInfo;
110
+ /**
111
+ * <p>Information about the broker access configuration.</p>
112
+ */
113
+ ConnectivityInfo?: ConnectivityInfo;
80
114
  }
81
115
  export declare namespace BrokerNodeGroupInfo {
82
116
  /**
@@ -142,7 +176,7 @@ export interface Tls {
142
176
  */
143
177
  CertificateAuthorityArnList?: string[];
144
178
  /**
145
- * <p>Specifies whether you want to enable or disable TLS authentication.</p>
179
+ * <p>Specifies whether you want to turn on or turn off TLS authentication.</p>
146
180
  */
147
181
  Enabled?: boolean;
148
182
  }
@@ -154,7 +188,7 @@ export declare namespace Tls {
154
188
  }
155
189
  export interface Unauthenticated {
156
190
  /**
157
- * <p>Specifies whether you want to enable or disable unauthenticated traffic to your cluster.</p>
191
+ * <p>Specifies whether you want to turn on or turn off unauthenticated traffic to your cluster.</p>
158
192
  */
159
193
  Enabled?: boolean;
160
194
  }
@@ -334,11 +368,11 @@ export declare namespace LoggingInfo {
334
368
  const filterSensitiveLog: (obj: LoggingInfo) => any;
335
369
  }
336
370
  /**
337
- * <p>Indicates whether you want to enable or disable the JMX Exporter.</p>
371
+ * <p>Indicates whether you want to turn on or turn off the JMX Exporter.</p>
338
372
  */
339
373
  export interface JmxExporter {
340
374
  /**
341
- * <p>Indicates whether you want to enable or disable the JMX Exporter.</p>
375
+ * <p>Indicates whether you want to turn on or turn off the JMX Exporter.</p>
342
376
  */
343
377
  EnabledInBroker: boolean | undefined;
344
378
  }
@@ -349,11 +383,11 @@ export declare namespace JmxExporter {
349
383
  const filterSensitiveLog: (obj: JmxExporter) => any;
350
384
  }
351
385
  /**
352
- * <p>Indicates whether you want to enable or disable the Node Exporter.</p>
386
+ * <p>Indicates whether you want to turn on or turn off the Node Exporter.</p>
353
387
  */
354
388
  export interface NodeExporter {
355
389
  /**
356
- * <p>Indicates whether you want to enable or disable the Node Exporter.</p>
390
+ * <p>Indicates whether you want to turn on or turn off the Node Exporter.</p>
357
391
  */
358
392
  EnabledInBroker: boolean | undefined;
359
393
  }
@@ -368,11 +402,11 @@ export declare namespace NodeExporter {
368
402
  */
369
403
  export interface Prometheus {
370
404
  /**
371
- * <p>Indicates whether you want to enable or disable the JMX Exporter.</p>
405
+ * <p>Indicates whether you want to turn on or turn off the JMX Exporter.</p>
372
406
  */
373
407
  JmxExporter?: JmxExporter;
374
408
  /**
375
- * <p>Indicates whether you want to enable or disable the Node Exporter.</p>
409
+ * <p>Indicates whether you want to turn on or turn off the Node Exporter.</p>
376
410
  */
377
411
  NodeExporter?: NodeExporter;
378
412
  }
@@ -446,7 +480,7 @@ export interface ClusterInfo {
446
480
  */
447
481
  CreationTime?: Date;
448
482
  /**
449
- * <p>Information about the version of software currently deployed on the Kafka brokers in the cluster.</p>
483
+ * <p>Information about the version of software currently deployed on the Apache Kafka brokers in the cluster.</p>
450
484
  */
451
485
  CurrentBrokerSoftwareInfo?: BrokerSoftwareInfo;
452
486
  /**
@@ -593,7 +627,7 @@ export interface MutableClusterInfo {
593
627
  */
594
628
  OpenMonitoring?: OpenMonitoring;
595
629
  /**
596
- * <p>The Kafka version.</p>
630
+ * <p>The Apache Kafka version.</p>
597
631
  */
598
632
  KafkaVersion?: string;
599
633
  /**
@@ -612,6 +646,10 @@ export interface MutableClusterInfo {
612
646
  * <p>Includes all encryption-related information.</p>
613
647
  */
614
648
  EncryptionInfo?: EncryptionInfo;
649
+ /**
650
+ * <p>Information about the broker access configuration.</p>
651
+ */
652
+ ConnectivityInfo?: ConnectivityInfo;
615
653
  }
616
654
  export declare namespace MutableClusterInfo {
617
655
  /**
@@ -675,15 +713,15 @@ export declare namespace ClusterOperationInfo {
675
713
  const filterSensitiveLog: (obj: ClusterOperationInfo) => any;
676
714
  }
677
715
  /**
678
- * <p>Contains source Kafka versions and compatible target Kafka versions.</p>
716
+ * <p>Contains source Apache Kafka versions and compatible target Apache Kafka versions.</p>
679
717
  */
680
718
  export interface CompatibleKafkaVersion {
681
719
  /**
682
- * <p>A Kafka version.</p>
720
+ * <p>An Apache Kafka version.</p>
683
721
  */
684
722
  SourceVersion?: string;
685
723
  /**
686
- * <p>A list of Kafka versions.</p>
724
+ * <p>A list of Apache Kafka versions.</p>
687
725
  */
688
726
  TargetVersions?: string[];
689
727
  }
@@ -795,7 +833,7 @@ export interface BrokerNodeInfo {
795
833
  */
796
834
  ClientVpcIpAddress?: string;
797
835
  /**
798
- * <p>Information about the version of software currently deployed on the Kafka brokers in the cluster.</p>
836
+ * <p>Information about the version of software currently deployed on the Apache Kafka brokers in the cluster.</p>
799
837
  */
800
838
  CurrentBrokerSoftwareInfo?: BrokerSoftwareInfo;
801
839
  /**
@@ -1140,11 +1178,11 @@ export declare namespace ConflictException {
1140
1178
  const filterSensitiveLog: (obj: ConflictException) => any;
1141
1179
  }
1142
1180
  /**
1143
- * <p>Indicates whether you want to enable or disable the JMX Exporter.</p>
1181
+ * <p>Indicates whether you want to turn on or turn off the JMX Exporter.</p>
1144
1182
  */
1145
1183
  export interface JmxExporterInfo {
1146
1184
  /**
1147
- * <p>Indicates whether you want to enable or disable the JMX Exporter.</p>
1185
+ * <p>Indicates whether you want to turn on or turn off the JMX Exporter.</p>
1148
1186
  */
1149
1187
  EnabledInBroker: boolean | undefined;
1150
1188
  }
@@ -1155,11 +1193,11 @@ export declare namespace JmxExporterInfo {
1155
1193
  const filterSensitiveLog: (obj: JmxExporterInfo) => any;
1156
1194
  }
1157
1195
  /**
1158
- * <p>Indicates whether you want to enable or disable the Node Exporter.</p>
1196
+ * <p>Indicates whether you want to turn on or turn off the Node Exporter.</p>
1159
1197
  */
1160
1198
  export interface NodeExporterInfo {
1161
1199
  /**
1162
- * <p>Indicates whether you want to enable or disable the Node Exporter.</p>
1200
+ * <p>Indicates whether you want to turn on or turn off the Node Exporter.</p>
1163
1201
  */
1164
1202
  EnabledInBroker: boolean | undefined;
1165
1203
  }
@@ -1174,11 +1212,11 @@ export declare namespace NodeExporterInfo {
1174
1212
  */
1175
1213
  export interface PrometheusInfo {
1176
1214
  /**
1177
- * <p>Indicates whether you want to enable or disable the JMX Exporter.</p>
1215
+ * <p>Indicates whether you want to turn on or turn off the JMX Exporter.</p>
1178
1216
  */
1179
1217
  JmxExporter?: JmxExporterInfo;
1180
1218
  /**
1181
- * <p>Indicates whether you want to enable or disable the Node Exporter.</p>
1219
+ * <p>Indicates whether you want to turn on or turn off the Node Exporter.</p>
1182
1220
  */
1183
1221
  NodeExporter?: NodeExporterInfo;
1184
1222
  }
@@ -1557,6 +1595,18 @@ export interface GetBootstrapBrokersResponse {
1557
1595
  * <p>A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs.</p>
1558
1596
  */
1559
1597
  BootstrapBrokerStringSaslIam?: string;
1598
+ /**
1599
+ * <p>A string containing one or more DNS names (or IP) and TLS port pairs.</p>
1600
+ */
1601
+ BootstrapBrokerStringPublicTls?: string;
1602
+ /**
1603
+ * <p>A string containing one or more DNS names (or IP) and Sasl Scram port pairs.</p>
1604
+ */
1605
+ BootstrapBrokerStringPublicSaslScram?: string;
1606
+ /**
1607
+ * <p>A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs.</p>
1608
+ */
1609
+ BootstrapBrokerStringPublicSaslIam?: string;
1560
1610
  }
1561
1611
  export declare namespace GetBootstrapBrokersResponse {
1562
1612
  /**
@@ -2169,6 +2219,45 @@ export declare namespace UpdateConfigurationResponse {
2169
2219
  */
2170
2220
  const filterSensitiveLog: (obj: UpdateConfigurationResponse) => any;
2171
2221
  }
2222
+ /**
2223
+ * Request body for UpdateConnectivity.
2224
+ */
2225
+ export interface UpdateConnectivityRequest {
2226
+ /**
2227
+ * <p>The Amazon Resource Name (ARN) of the configuration.</p>
2228
+ */
2229
+ ClusterArn: string | undefined;
2230
+ /**
2231
+ * <p>Information about the broker access configuration.</p>
2232
+ */
2233
+ ConnectivityInfo: ConnectivityInfo | undefined;
2234
+ /**
2235
+ * <p>The version of the MSK cluster to update. Cluster versions aren't simple numbers. You can describe an MSK cluster to find its version. When this update operation is successful, it generates a new cluster version.</p>
2236
+ */
2237
+ CurrentVersion: string | undefined;
2238
+ }
2239
+ export declare namespace UpdateConnectivityRequest {
2240
+ /**
2241
+ * @internal
2242
+ */
2243
+ const filterSensitiveLog: (obj: UpdateConnectivityRequest) => any;
2244
+ }
2245
+ export interface UpdateConnectivityResponse {
2246
+ /**
2247
+ * <p>The Amazon Resource Name (ARN) of the cluster.</p>
2248
+ */
2249
+ ClusterArn?: string;
2250
+ /**
2251
+ * <p>The Amazon Resource Name (ARN) of the cluster operation.</p>
2252
+ */
2253
+ ClusterOperationArn?: string;
2254
+ }
2255
+ export declare namespace UpdateConnectivityResponse {
2256
+ /**
2257
+ * @internal
2258
+ */
2259
+ const filterSensitiveLog: (obj: UpdateConnectivityResponse) => any;
2260
+ }
2172
2261
  /**
2173
2262
  * Request body for UpdateMonitoring.
2174
2263
  */