@aws-sdk/client-kafka 3.54.0 → 3.56.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/KafkaClient.js +13 -13
  3. package/dist-cjs/commands/BatchAssociateScramSecretCommand.js +3 -3
  4. package/dist-cjs/commands/BatchDisassociateScramSecretCommand.js +3 -3
  5. package/dist-cjs/commands/CreateClusterCommand.js +3 -3
  6. package/dist-cjs/commands/CreateClusterV2Command.js +3 -3
  7. package/dist-cjs/commands/CreateConfigurationCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteClusterCommand.js +3 -3
  9. package/dist-cjs/commands/DeleteConfigurationCommand.js +3 -3
  10. package/dist-cjs/commands/DescribeClusterCommand.js +3 -3
  11. package/dist-cjs/commands/DescribeClusterOperationCommand.js +3 -3
  12. package/dist-cjs/commands/DescribeClusterV2Command.js +3 -3
  13. package/dist-cjs/commands/DescribeConfigurationCommand.js +3 -3
  14. package/dist-cjs/commands/DescribeConfigurationRevisionCommand.js +3 -3
  15. package/dist-cjs/commands/GetBootstrapBrokersCommand.js +3 -3
  16. package/dist-cjs/commands/GetCompatibleKafkaVersionsCommand.js +3 -3
  17. package/dist-cjs/commands/ListClusterOperationsCommand.js +3 -3
  18. package/dist-cjs/commands/ListClustersCommand.js +3 -3
  19. package/dist-cjs/commands/ListClustersV2Command.js +3 -3
  20. package/dist-cjs/commands/ListConfigurationRevisionsCommand.js +3 -3
  21. package/dist-cjs/commands/ListConfigurationsCommand.js +3 -3
  22. package/dist-cjs/commands/ListKafkaVersionsCommand.js +3 -3
  23. package/dist-cjs/commands/ListNodesCommand.js +3 -3
  24. package/dist-cjs/commands/ListScramSecretsCommand.js +3 -3
  25. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  26. package/dist-cjs/commands/RebootBrokerCommand.js +3 -3
  27. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  28. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  29. package/dist-cjs/commands/UpdateBrokerCountCommand.js +3 -3
  30. package/dist-cjs/commands/UpdateBrokerStorageCommand.js +3 -3
  31. package/dist-cjs/commands/UpdateBrokerTypeCommand.js +3 -3
  32. package/dist-cjs/commands/UpdateClusterConfigurationCommand.js +3 -3
  33. package/dist-cjs/commands/UpdateClusterKafkaVersionCommand.js +3 -3
  34. package/dist-cjs/commands/UpdateConfigurationCommand.js +3 -3
  35. package/dist-cjs/commands/UpdateConnectivityCommand.js +3 -3
  36. package/dist-cjs/commands/UpdateMonitoringCommand.js +3 -3
  37. package/dist-cjs/commands/UpdateSecurityCommand.js +3 -3
  38. package/dist-cjs/endpoints.js +1 -1
  39. package/dist-cjs/protocols/Aws_restJson1.js +277 -277
  40. package/dist-cjs/runtimeConfig.browser.js +4 -4
  41. package/dist-cjs/runtimeConfig.js +9 -9
  42. package/dist-cjs/runtimeConfig.native.js +1 -1
  43. package/dist-es/Kafka.js +35 -35
  44. package/dist-es/pagination/ListClusterOperationsPaginator.js +4 -4
  45. package/dist-es/pagination/ListClustersPaginator.js +4 -4
  46. package/dist-es/pagination/ListClustersV2Paginator.js +4 -4
  47. package/dist-es/pagination/ListConfigurationRevisionsPaginator.js +4 -4
  48. package/dist-es/pagination/ListConfigurationsPaginator.js +4 -4
  49. package/dist-es/pagination/ListKafkaVersionsPaginator.js +4 -4
  50. package/dist-es/pagination/ListNodesPaginator.js +4 -4
  51. package/dist-es/pagination/ListScramSecretsPaginator.js +4 -4
  52. package/dist-es/protocols/Aws_restJson1.js +35 -35
  53. package/dist-types/runtimeConfig.native.d.ts +2 -2
  54. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  55. package/package.json +34 -34
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListScramSecretsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListScramSecretsCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listScramSecrets.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listScramSecrets.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListScramSecrets(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof Kafka)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof KafkaClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -13,7 +13,7 @@ export var serializeAws_restJson1BatchAssociateScramSecretCommand = function (in
13
13
  headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/scram-secrets";
16
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/scram-secrets";
17
17
  if (input.ClusterArn !== undefined) {
18
18
  labelValue = input.ClusterArn;
19
19
  if (labelValue.length <= 0) {
@@ -50,7 +50,7 @@ export var serializeAws_restJson1BatchDisassociateScramSecretCommand = function
50
50
  headers = {
51
51
  "content-type": "application/json",
52
52
  };
53
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/scram-secrets";
53
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/scram-secrets";
54
54
  if (input.ClusterArn !== undefined) {
55
55
  labelValue = input.ClusterArn;
56
56
  if (labelValue.length <= 0) {
@@ -87,7 +87,7 @@ export var serializeAws_restJson1CreateClusterCommand = function (input, context
87
87
  headers = {
88
88
  "content-type": "application/json",
89
89
  };
90
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters";
90
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters";
91
91
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BrokerNodeGroupInfo !== undefined &&
92
92
  input.BrokerNodeGroupInfo !== null && {
93
93
  brokerNodeGroupInfo: serializeAws_restJson1BrokerNodeGroupInfo(input.BrokerNodeGroupInfo, context),
@@ -130,7 +130,7 @@ export var serializeAws_restJson1CreateClusterV2Command = function (input, conte
130
130
  headers = {
131
131
  "content-type": "application/json",
132
132
  };
133
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v2/clusters";
133
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v2/clusters";
134
134
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ClusterName !== undefined && input.ClusterName !== null && { clusterName: input.ClusterName })), (input.Provisioned !== undefined &&
135
135
  input.Provisioned !== null && {
136
136
  provisioned: serializeAws_restJson1ProvisionedRequest(input.Provisioned, context),
@@ -159,7 +159,7 @@ export var serializeAws_restJson1CreateConfigurationCommand = function (input, c
159
159
  headers = {
160
160
  "content-type": "application/json",
161
161
  };
162
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations";
162
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations";
163
163
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.KafkaVersions !== undefined &&
164
164
  input.KafkaVersions !== null && {
165
165
  kafkaVersions: serializeAws_restJson1__listOf__string(input.KafkaVersions, context),
@@ -185,7 +185,7 @@ export var serializeAws_restJson1DeleteClusterCommand = function (input, context
185
185
  case 1:
186
186
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
187
187
  headers = {};
188
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}";
188
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}";
189
189
  if (input.ClusterArn !== undefined) {
190
190
  labelValue = input.ClusterArn;
191
191
  if (labelValue.length <= 0) {
@@ -218,7 +218,7 @@ export var serializeAws_restJson1DeleteConfigurationCommand = function (input, c
218
218
  case 1:
219
219
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
220
220
  headers = {};
221
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations/{Arn}";
221
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations/{Arn}";
222
222
  if (input.Arn !== undefined) {
223
223
  labelValue = input.Arn;
224
224
  if (labelValue.length <= 0) {
@@ -249,7 +249,7 @@ export var serializeAws_restJson1DescribeClusterCommand = function (input, conte
249
249
  case 1:
250
250
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
251
251
  headers = {};
252
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}";
252
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}";
253
253
  if (input.ClusterArn !== undefined) {
254
254
  labelValue = input.ClusterArn;
255
255
  if (labelValue.length <= 0) {
@@ -280,7 +280,7 @@ export var serializeAws_restJson1DescribeClusterOperationCommand = function (inp
280
280
  case 1:
281
281
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
282
282
  headers = {};
283
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/operations/{ClusterOperationArn}";
283
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/operations/{ClusterOperationArn}";
284
284
  if (input.ClusterOperationArn !== undefined) {
285
285
  labelValue = input.ClusterOperationArn;
286
286
  if (labelValue.length <= 0) {
@@ -311,7 +311,7 @@ export var serializeAws_restJson1DescribeClusterV2Command = function (input, con
311
311
  case 1:
312
312
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
313
313
  headers = {};
314
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v2/clusters/{ClusterArn}";
314
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v2/clusters/{ClusterArn}";
315
315
  if (input.ClusterArn !== undefined) {
316
316
  labelValue = input.ClusterArn;
317
317
  if (labelValue.length <= 0) {
@@ -342,7 +342,7 @@ export var serializeAws_restJson1DescribeConfigurationCommand = function (input,
342
342
  case 1:
343
343
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
344
344
  headers = {};
345
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations/{Arn}";
345
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations/{Arn}";
346
346
  if (input.Arn !== undefined) {
347
347
  labelValue = input.Arn;
348
348
  if (labelValue.length <= 0) {
@@ -373,7 +373,7 @@ export var serializeAws_restJson1DescribeConfigurationRevisionCommand = function
373
373
  case 1:
374
374
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
375
375
  headers = {};
376
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
376
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
377
377
  "/v1/configurations/{Arn}/revisions/{Revision}";
378
378
  if (input.Arn !== undefined) {
379
379
  labelValue = input.Arn;
@@ -415,7 +415,7 @@ export var serializeAws_restJson1GetBootstrapBrokersCommand = function (input, c
415
415
  case 1:
416
416
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
417
417
  headers = {};
418
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
418
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
419
419
  "/v1/clusters/{ClusterArn}/bootstrap-brokers";
420
420
  if (input.ClusterArn !== undefined) {
421
421
  labelValue = input.ClusterArn;
@@ -447,7 +447,7 @@ export var serializeAws_restJson1GetCompatibleKafkaVersionsCommand = function (i
447
447
  case 1:
448
448
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
449
449
  headers = {};
450
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/compatible-kafka-versions";
450
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/compatible-kafka-versions";
451
451
  query = __assign({}, (input.ClusterArn !== undefined && { clusterArn: input.ClusterArn }));
452
452
  return [2, new __HttpRequest({
453
453
  protocol: protocol,
@@ -470,7 +470,7 @@ export var serializeAws_restJson1ListClusterOperationsCommand = function (input,
470
470
  case 1:
471
471
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
472
472
  headers = {};
473
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/operations";
473
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/operations";
474
474
  if (input.ClusterArn !== undefined) {
475
475
  labelValue = input.ClusterArn;
476
476
  if (labelValue.length <= 0) {
@@ -503,7 +503,7 @@ export var serializeAws_restJson1ListClustersCommand = function (input, context)
503
503
  case 1:
504
504
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
505
505
  headers = {};
506
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters";
506
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters";
507
507
  query = __assign(__assign(__assign({}, (input.ClusterNameFilter !== undefined && { clusterNameFilter: input.ClusterNameFilter })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
508
508
  return [2, new __HttpRequest({
509
509
  protocol: protocol,
@@ -526,7 +526,7 @@ export var serializeAws_restJson1ListClustersV2Command = function (input, contex
526
526
  case 1:
527
527
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
528
528
  headers = {};
529
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v2/clusters";
529
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v2/clusters";
530
530
  query = __assign(__assign(__assign(__assign({}, (input.ClusterNameFilter !== undefined && { clusterNameFilter: input.ClusterNameFilter })), (input.ClusterTypeFilter !== undefined && { clusterTypeFilter: input.ClusterTypeFilter })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
531
531
  return [2, new __HttpRequest({
532
532
  protocol: protocol,
@@ -549,7 +549,7 @@ export var serializeAws_restJson1ListConfigurationRevisionsCommand = function (i
549
549
  case 1:
550
550
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
551
551
  headers = {};
552
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations/{Arn}/revisions";
552
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations/{Arn}/revisions";
553
553
  if (input.Arn !== undefined) {
554
554
  labelValue = input.Arn;
555
555
  if (labelValue.length <= 0) {
@@ -582,7 +582,7 @@ export var serializeAws_restJson1ListConfigurationsCommand = function (input, co
582
582
  case 1:
583
583
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
584
584
  headers = {};
585
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations";
585
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations";
586
586
  query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
587
587
  return [2, new __HttpRequest({
588
588
  protocol: protocol,
@@ -605,7 +605,7 @@ export var serializeAws_restJson1ListKafkaVersionsCommand = function (input, con
605
605
  case 1:
606
606
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
607
607
  headers = {};
608
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/kafka-versions";
608
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/kafka-versions";
609
609
  query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
610
610
  return [2, new __HttpRequest({
611
611
  protocol: protocol,
@@ -628,7 +628,7 @@ export var serializeAws_restJson1ListNodesCommand = function (input, context) {
628
628
  case 1:
629
629
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
630
630
  headers = {};
631
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/nodes";
631
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/nodes";
632
632
  if (input.ClusterArn !== undefined) {
633
633
  labelValue = input.ClusterArn;
634
634
  if (labelValue.length <= 0) {
@@ -661,7 +661,7 @@ export var serializeAws_restJson1ListScramSecretsCommand = function (input, cont
661
661
  case 1:
662
662
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
663
663
  headers = {};
664
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/scram-secrets";
664
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/scram-secrets";
665
665
  if (input.ClusterArn !== undefined) {
666
666
  labelValue = input.ClusterArn;
667
667
  if (labelValue.length <= 0) {
@@ -694,7 +694,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
694
694
  case 1:
695
695
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
696
696
  headers = {};
697
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{ResourceArn}";
697
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{ResourceArn}";
698
698
  if (input.ResourceArn !== undefined) {
699
699
  labelValue = input.ResourceArn;
700
700
  if (labelValue.length <= 0) {
@@ -727,7 +727,7 @@ export var serializeAws_restJson1RebootBrokerCommand = function (input, context)
727
727
  headers = {
728
728
  "content-type": "application/json",
729
729
  };
730
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/reboot-broker";
730
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/reboot-broker";
731
731
  if (input.ClusterArn !== undefined) {
732
732
  labelValue = input.ClusterArn;
733
733
  if (labelValue.length <= 0) {
@@ -762,7 +762,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
762
762
  headers = {
763
763
  "content-type": "application/json",
764
764
  };
765
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{ResourceArn}";
765
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{ResourceArn}";
766
766
  if (input.ResourceArn !== undefined) {
767
767
  labelValue = input.ResourceArn;
768
768
  if (labelValue.length <= 0) {
@@ -795,7 +795,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
795
795
  case 1:
796
796
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
797
797
  headers = {};
798
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{ResourceArn}";
798
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{ResourceArn}";
799
799
  if (input.ResourceArn !== undefined) {
800
800
  labelValue = input.ResourceArn;
801
801
  if (labelValue.length <= 0) {
@@ -830,7 +830,7 @@ export var serializeAws_restJson1UpdateBrokerCountCommand = function (input, con
830
830
  headers = {
831
831
  "content-type": "application/json",
832
832
  };
833
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/nodes/count";
833
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/nodes/count";
834
834
  if (input.ClusterArn !== undefined) {
835
835
  labelValue = input.ClusterArn;
836
836
  if (labelValue.length <= 0) {
@@ -866,7 +866,7 @@ export var serializeAws_restJson1UpdateBrokerStorageCommand = function (input, c
866
866
  headers = {
867
867
  "content-type": "application/json",
868
868
  };
869
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/nodes/storage";
869
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/nodes/storage";
870
870
  if (input.ClusterArn !== undefined) {
871
871
  labelValue = input.ClusterArn;
872
872
  if (labelValue.length <= 0) {
@@ -904,7 +904,7 @@ export var serializeAws_restJson1UpdateBrokerTypeCommand = function (input, cont
904
904
  headers = {
905
905
  "content-type": "application/json",
906
906
  };
907
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/nodes/type";
907
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/nodes/type";
908
908
  if (input.ClusterArn !== undefined) {
909
909
  labelValue = input.ClusterArn;
910
910
  if (labelValue.length <= 0) {
@@ -940,7 +940,7 @@ export var serializeAws_restJson1UpdateClusterConfigurationCommand = function (i
940
940
  headers = {
941
941
  "content-type": "application/json",
942
942
  };
943
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/configuration";
943
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/configuration";
944
944
  if (input.ClusterArn !== undefined) {
945
945
  labelValue = input.ClusterArn;
946
946
  if (labelValue.length <= 0) {
@@ -978,7 +978,7 @@ export var serializeAws_restJson1UpdateClusterKafkaVersionCommand = function (in
978
978
  headers = {
979
979
  "content-type": "application/json",
980
980
  };
981
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/version";
981
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/version";
982
982
  if (input.ClusterArn !== undefined) {
983
983
  labelValue = input.ClusterArn;
984
984
  if (labelValue.length <= 0) {
@@ -1017,7 +1017,7 @@ export var serializeAws_restJson1UpdateConfigurationCommand = function (input, c
1017
1017
  headers = {
1018
1018
  "content-type": "application/json",
1019
1019
  };
1020
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations/{Arn}";
1020
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations/{Arn}";
1021
1021
  if (input.Arn !== undefined) {
1022
1022
  labelValue = input.Arn;
1023
1023
  if (labelValue.length <= 0) {
@@ -1052,7 +1052,7 @@ export var serializeAws_restJson1UpdateConnectivityCommand = function (input, co
1052
1052
  headers = {
1053
1053
  "content-type": "application/json",
1054
1054
  };
1055
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/connectivity";
1055
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/connectivity";
1056
1056
  if (input.ClusterArn !== undefined) {
1057
1057
  labelValue = input.ClusterArn;
1058
1058
  if (labelValue.length <= 0) {
@@ -1090,7 +1090,7 @@ export var serializeAws_restJson1UpdateMonitoringCommand = function (input, cont
1090
1090
  headers = {
1091
1091
  "content-type": "application/json",
1092
1092
  };
1093
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/monitoring";
1093
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/monitoring";
1094
1094
  if (input.ClusterArn !== undefined) {
1095
1095
  labelValue = input.ClusterArn;
1096
1096
  if (labelValue.length <= 0) {
@@ -1130,7 +1130,7 @@ export var serializeAws_restJson1UpdateSecurityCommand = function (input, contex
1130
1130
  headers = {
1131
1131
  "content-type": "application/json",
1132
1132
  };
1133
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/security";
1133
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/security";
1134
1134
  if (input.ClusterArn !== undefined) {
1135
1135
  labelValue = input.ClusterArn;
1136
1136
  if (labelValue.length <= 0) {
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: KafkaClientConfig) => {
21
21
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
23
  serviceId: string;
24
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
24
+ region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
30
  tls?: boolean | undefined;
31
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: KafkaClientConfig) => {
19
19
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
21
  serviceId: string;
22
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
22
+ region: string | import("@aws-sdk/types").Provider<any>;
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
27
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
28
  tls?: boolean | undefined;
29
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kafka",
3
3
  "description": "AWS SDK for JavaScript Kafka Client for Node.js, Browser and React Native",
4
- "version": "3.54.0",
4
+ "version": "3.56.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,47 +18,47 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.54.0",
22
- "@aws-sdk/config-resolver": "3.54.0",
23
- "@aws-sdk/credential-provider-node": "3.54.0",
24
- "@aws-sdk/fetch-http-handler": "3.54.0",
25
- "@aws-sdk/hash-node": "3.54.0",
26
- "@aws-sdk/invalid-dependency": "3.54.0",
27
- "@aws-sdk/middleware-content-length": "3.54.0",
28
- "@aws-sdk/middleware-host-header": "3.54.0",
29
- "@aws-sdk/middleware-logger": "3.54.0",
30
- "@aws-sdk/middleware-retry": "3.54.0",
31
- "@aws-sdk/middleware-serde": "3.54.0",
32
- "@aws-sdk/middleware-signing": "3.54.0",
33
- "@aws-sdk/middleware-stack": "3.54.0",
34
- "@aws-sdk/middleware-user-agent": "3.54.0",
35
- "@aws-sdk/node-config-provider": "3.54.0",
36
- "@aws-sdk/node-http-handler": "3.54.0",
37
- "@aws-sdk/protocol-http": "3.54.0",
38
- "@aws-sdk/smithy-client": "3.54.0",
39
- "@aws-sdk/types": "3.54.0",
40
- "@aws-sdk/url-parser": "3.54.0",
41
- "@aws-sdk/util-base64-browser": "3.52.0",
42
- "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.54.0",
44
- "@aws-sdk/util-body-length-node": "3.54.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.54.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.54.0",
47
- "@aws-sdk/util-user-agent-browser": "3.54.0",
48
- "@aws-sdk/util-user-agent-node": "3.54.0",
49
- "@aws-sdk/util-utf8-browser": "3.52.0",
50
- "@aws-sdk/util-utf8-node": "3.52.0",
51
- "tslib": "^2.3.0"
21
+ "@aws-sdk/client-sts": "3.56.0",
22
+ "@aws-sdk/config-resolver": "3.56.0",
23
+ "@aws-sdk/credential-provider-node": "3.56.0",
24
+ "@aws-sdk/fetch-http-handler": "3.55.0",
25
+ "@aws-sdk/hash-node": "3.55.0",
26
+ "@aws-sdk/invalid-dependency": "3.55.0",
27
+ "@aws-sdk/middleware-content-length": "3.55.0",
28
+ "@aws-sdk/middleware-host-header": "3.55.0",
29
+ "@aws-sdk/middleware-logger": "3.55.0",
30
+ "@aws-sdk/middleware-retry": "3.56.0",
31
+ "@aws-sdk/middleware-serde": "3.55.0",
32
+ "@aws-sdk/middleware-signing": "3.56.0",
33
+ "@aws-sdk/middleware-stack": "3.55.0",
34
+ "@aws-sdk/middleware-user-agent": "3.55.0",
35
+ "@aws-sdk/node-config-provider": "3.56.0",
36
+ "@aws-sdk/node-http-handler": "3.55.0",
37
+ "@aws-sdk/protocol-http": "3.55.0",
38
+ "@aws-sdk/smithy-client": "3.55.0",
39
+ "@aws-sdk/types": "3.55.0",
40
+ "@aws-sdk/url-parser": "3.55.0",
41
+ "@aws-sdk/util-base64-browser": "3.55.0",
42
+ "@aws-sdk/util-base64-node": "3.55.0",
43
+ "@aws-sdk/util-body-length-browser": "3.55.0",
44
+ "@aws-sdk/util-body-length-node": "3.55.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.56.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.55.0",
48
+ "@aws-sdk/util-user-agent-node": "3.56.0",
49
+ "@aws-sdk/util-utf8-browser": "3.55.0",
50
+ "@aws-sdk/util-utf8-node": "3.55.0",
51
+ "tslib": "^2.3.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@aws-sdk/service-client-documentation-generator": "3.52.0",
54
+ "@aws-sdk/service-client-documentation-generator": "3.55.0",
55
55
  "@tsconfig/recommended": "1.0.1",
56
56
  "@types/node": "^12.7.5",
57
57
  "concurrently": "7.0.0",
58
58
  "downlevel-dts": "0.7.0",
59
59
  "rimraf": "3.0.2",
60
60
  "typedoc": "0.19.2",
61
- "typescript": "~4.3.5"
61
+ "typescript": "~4.6.2"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=12.0.0"