@aws-sdk/client-kafka 3.428.0 → 3.430.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 (50) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/Kafka.js +10 -0
  3. package/dist-cjs/commands/CreateReplicatorCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteReplicatorCommand.js +51 -0
  5. package/dist-cjs/commands/DescribeReplicatorCommand.js +51 -0
  6. package/dist-cjs/commands/ListReplicatorsCommand.js +51 -0
  7. package/dist-cjs/commands/UpdateReplicationInfoCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/endpoint/ruleset.js +3 -3
  10. package/dist-cjs/models/models_0.js +15 -1
  11. package/dist-cjs/pagination/ListReplicatorsPaginator.js +29 -0
  12. package/dist-cjs/pagination/index.js +1 -0
  13. package/dist-cjs/protocols/Aws_restJson1.js +591 -2
  14. package/dist-es/Kafka.js +10 -0
  15. package/dist-es/commands/CreateReplicatorCommand.js +47 -0
  16. package/dist-es/commands/DeleteReplicatorCommand.js +47 -0
  17. package/dist-es/commands/DescribeReplicatorCommand.js +47 -0
  18. package/dist-es/commands/ListReplicatorsCommand.js +47 -0
  19. package/dist-es/commands/UpdateReplicationInfoCommand.js +47 -0
  20. package/dist-es/commands/index.js +5 -0
  21. package/dist-es/endpoint/ruleset.js +3 -3
  22. package/dist-es/models/models_0.js +14 -0
  23. package/dist-es/pagination/ListReplicatorsPaginator.js +25 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_restJson1.js +578 -0
  26. package/dist-types/Kafka.d.ts +35 -0
  27. package/dist-types/KafkaClient.d.ts +7 -2
  28. package/dist-types/commands/CreateReplicatorCommand.d.ts +147 -0
  29. package/dist-types/commands/DeleteReplicatorCommand.d.ts +96 -0
  30. package/dist-types/commands/DescribeReplicatorCommand.d.ts +153 -0
  31. package/dist-types/commands/ListReplicatorsCommand.d.ts +121 -0
  32. package/dist-types/commands/UpdateReplicationInfoCommand.d.ts +119 -0
  33. package/dist-types/commands/index.d.ts +5 -0
  34. package/dist-types/models/models_0.d.ts +656 -35
  35. package/dist-types/pagination/ListReplicatorsPaginator.d.ts +7 -0
  36. package/dist-types/pagination/index.d.ts +1 -0
  37. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  38. package/dist-types/ts3.4/Kafka.d.ts +85 -0
  39. package/dist-types/ts3.4/KafkaClient.d.ts +30 -0
  40. package/dist-types/ts3.4/commands/CreateReplicatorCommand.d.ts +38 -0
  41. package/dist-types/ts3.4/commands/DeleteReplicatorCommand.d.ts +38 -0
  42. package/dist-types/ts3.4/commands/DescribeReplicatorCommand.d.ts +39 -0
  43. package/dist-types/ts3.4/commands/ListReplicatorsCommand.d.ts +38 -0
  44. package/dist-types/ts3.4/commands/UpdateReplicationInfoCommand.d.ts +42 -0
  45. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  46. package/dist-types/ts3.4/models/models_0.d.ts +192 -35
  47. package/dist-types/ts3.4/pagination/ListReplicatorsPaginator.d.ts +11 -0
  48. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  49. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  50. package/package.json +11 -11
@@ -121,6 +121,31 @@ export const se_CreateConfigurationCommand = async (input, context) => {
121
121
  body,
122
122
  });
123
123
  };
124
+ export const se_CreateReplicatorCommand = async (input, context) => {
125
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
126
+ const headers = {
127
+ "content-type": "application/json",
128
+ };
129
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/replication/v1/replicators";
130
+ let body;
131
+ body = JSON.stringify(take(input, {
132
+ description: [, , `Description`],
133
+ kafkaClusters: [, (_) => se___listOfKafkaCluster(_, context), `KafkaClusters`],
134
+ replicationInfoList: [, (_) => se___listOfReplicationInfo(_, context), `ReplicationInfoList`],
135
+ replicatorName: [, , `ReplicatorName`],
136
+ serviceExecutionRoleArn: [, , `ServiceExecutionRoleArn`],
137
+ tags: [, (_) => _json(_), `Tags`],
138
+ }));
139
+ return new __HttpRequest({
140
+ protocol,
141
+ hostname,
142
+ port,
143
+ method: "POST",
144
+ headers,
145
+ path: resolvedPath,
146
+ body,
147
+ });
148
+ };
124
149
  export const se_CreateVpcConnectionCommand = async (input, context) => {
125
150
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
126
151
  const headers = {
@@ -198,6 +223,27 @@ export const se_DeleteConfigurationCommand = async (input, context) => {
198
223
  body,
199
224
  });
200
225
  };
226
+ export const se_DeleteReplicatorCommand = async (input, context) => {
227
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
228
+ const headers = {};
229
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
230
+ "/replication/v1/replicators/{ReplicatorArn}";
231
+ resolvedPath = __resolvedPath(resolvedPath, input, "ReplicatorArn", () => input.ReplicatorArn, "{ReplicatorArn}", false);
232
+ const query = map({
233
+ currentVersion: [, input.CurrentVersion],
234
+ });
235
+ let body;
236
+ return new __HttpRequest({
237
+ protocol,
238
+ hostname,
239
+ port,
240
+ method: "DELETE",
241
+ headers,
242
+ path: resolvedPath,
243
+ query,
244
+ body,
245
+ });
246
+ };
201
247
  export const se_DeleteVpcConnectionCommand = async (input, context) => {
202
248
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
203
249
  const headers = {};
@@ -312,6 +358,23 @@ export const se_DescribeConfigurationRevisionCommand = async (input, context) =>
312
358
  body,
313
359
  });
314
360
  };
361
+ export const se_DescribeReplicatorCommand = async (input, context) => {
362
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
363
+ const headers = {};
364
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
365
+ "/replication/v1/replicators/{ReplicatorArn}";
366
+ resolvedPath = __resolvedPath(resolvedPath, input, "ReplicatorArn", () => input.ReplicatorArn, "{ReplicatorArn}", false);
367
+ let body;
368
+ return new __HttpRequest({
369
+ protocol,
370
+ hostname,
371
+ port,
372
+ method: "GET",
373
+ headers,
374
+ path: resolvedPath,
375
+ body,
376
+ });
377
+ };
315
378
  export const se_DescribeVpcConnectionCommand = async (input, context) => {
316
379
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
317
380
  const headers = {};
@@ -569,6 +632,27 @@ export const se_ListNodesCommand = async (input, context) => {
569
632
  body,
570
633
  });
571
634
  };
635
+ export const se_ListReplicatorsCommand = async (input, context) => {
636
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
637
+ const headers = {};
638
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/replication/v1/replicators";
639
+ const query = map({
640
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
641
+ nextToken: [, input.NextToken],
642
+ replicatorNameFilter: [, input.ReplicatorNameFilter],
643
+ });
644
+ let body;
645
+ return new __HttpRequest({
646
+ protocol,
647
+ hostname,
648
+ port,
649
+ method: "GET",
650
+ headers,
651
+ path: resolvedPath,
652
+ query,
653
+ body,
654
+ });
655
+ };
572
656
  export const se_ListScramSecretsCommand = async (input, context) => {
573
657
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
574
658
  const headers = {};
@@ -914,6 +998,32 @@ export const se_UpdateMonitoringCommand = async (input, context) => {
914
998
  body,
915
999
  });
916
1000
  };
1001
+ export const se_UpdateReplicationInfoCommand = async (input, context) => {
1002
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1003
+ const headers = {
1004
+ "content-type": "application/json",
1005
+ };
1006
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1007
+ "/replication/v1/replicators/{ReplicatorArn}/replication-info";
1008
+ resolvedPath = __resolvedPath(resolvedPath, input, "ReplicatorArn", () => input.ReplicatorArn, "{ReplicatorArn}", false);
1009
+ let body;
1010
+ body = JSON.stringify(take(input, {
1011
+ consumerGroupReplication: [, (_) => se_ConsumerGroupReplicationUpdate(_, context), `ConsumerGroupReplication`],
1012
+ currentVersion: [, , `CurrentVersion`],
1013
+ sourceKafkaClusterArn: [, , `SourceKafkaClusterArn`],
1014
+ targetKafkaClusterArn: [, , `TargetKafkaClusterArn`],
1015
+ topicReplication: [, (_) => se_TopicReplicationUpdate(_, context), `TopicReplication`],
1016
+ }));
1017
+ return new __HttpRequest({
1018
+ protocol,
1019
+ hostname,
1020
+ port,
1021
+ method: "PUT",
1022
+ headers,
1023
+ path: resolvedPath,
1024
+ body,
1025
+ });
1026
+ };
917
1027
  export const se_UpdateSecurityCommand = async (input, context) => {
918
1028
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
919
1029
  const headers = {
@@ -1227,6 +1337,62 @@ const de_CreateConfigurationCommandError = async (output, context) => {
1227
1337
  });
1228
1338
  }
1229
1339
  };
1340
+ export const de_CreateReplicatorCommand = async (output, context) => {
1341
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1342
+ return de_CreateReplicatorCommandError(output, context);
1343
+ }
1344
+ const contents = map({
1345
+ $metadata: deserializeMetadata(output),
1346
+ });
1347
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1348
+ const doc = take(data, {
1349
+ ReplicatorArn: [, __expectString, `replicatorArn`],
1350
+ ReplicatorName: [, __expectString, `replicatorName`],
1351
+ ReplicatorState: [, __expectString, `replicatorState`],
1352
+ });
1353
+ Object.assign(contents, doc);
1354
+ return contents;
1355
+ };
1356
+ const de_CreateReplicatorCommandError = async (output, context) => {
1357
+ const parsedOutput = {
1358
+ ...output,
1359
+ body: await parseErrorBody(output.body, context),
1360
+ };
1361
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1362
+ switch (errorCode) {
1363
+ case "BadRequestException":
1364
+ case "com.amazonaws.kafka#BadRequestException":
1365
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1366
+ case "ConflictException":
1367
+ case "com.amazonaws.kafka#ConflictException":
1368
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1369
+ case "ForbiddenException":
1370
+ case "com.amazonaws.kafka#ForbiddenException":
1371
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1372
+ case "InternalServerErrorException":
1373
+ case "com.amazonaws.kafka#InternalServerErrorException":
1374
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1375
+ case "NotFoundException":
1376
+ case "com.amazonaws.kafka#NotFoundException":
1377
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1378
+ case "ServiceUnavailableException":
1379
+ case "com.amazonaws.kafka#ServiceUnavailableException":
1380
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1381
+ case "TooManyRequestsException":
1382
+ case "com.amazonaws.kafka#TooManyRequestsException":
1383
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1384
+ case "UnauthorizedException":
1385
+ case "com.amazonaws.kafka#UnauthorizedException":
1386
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1387
+ default:
1388
+ const parsedBody = parsedOutput.body;
1389
+ return throwDefaultError({
1390
+ output,
1391
+ parsedBody,
1392
+ errorCode,
1393
+ });
1394
+ }
1395
+ };
1230
1396
  export const de_CreateVpcConnectionCommand = async (output, context) => {
1231
1397
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1232
1398
  return de_CreateVpcConnectionCommandError(output, context);
@@ -1406,6 +1572,58 @@ const de_DeleteConfigurationCommandError = async (output, context) => {
1406
1572
  });
1407
1573
  }
1408
1574
  };
1575
+ export const de_DeleteReplicatorCommand = async (output, context) => {
1576
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1577
+ return de_DeleteReplicatorCommandError(output, context);
1578
+ }
1579
+ const contents = map({
1580
+ $metadata: deserializeMetadata(output),
1581
+ });
1582
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1583
+ const doc = take(data, {
1584
+ ReplicatorArn: [, __expectString, `replicatorArn`],
1585
+ ReplicatorState: [, __expectString, `replicatorState`],
1586
+ });
1587
+ Object.assign(contents, doc);
1588
+ return contents;
1589
+ };
1590
+ const de_DeleteReplicatorCommandError = async (output, context) => {
1591
+ const parsedOutput = {
1592
+ ...output,
1593
+ body: await parseErrorBody(output.body, context),
1594
+ };
1595
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1596
+ switch (errorCode) {
1597
+ case "BadRequestException":
1598
+ case "com.amazonaws.kafka#BadRequestException":
1599
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1600
+ case "ForbiddenException":
1601
+ case "com.amazonaws.kafka#ForbiddenException":
1602
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1603
+ case "InternalServerErrorException":
1604
+ case "com.amazonaws.kafka#InternalServerErrorException":
1605
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1606
+ case "NotFoundException":
1607
+ case "com.amazonaws.kafka#NotFoundException":
1608
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1609
+ case "ServiceUnavailableException":
1610
+ case "com.amazonaws.kafka#ServiceUnavailableException":
1611
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1612
+ case "TooManyRequestsException":
1613
+ case "com.amazonaws.kafka#TooManyRequestsException":
1614
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1615
+ case "UnauthorizedException":
1616
+ case "com.amazonaws.kafka#UnauthorizedException":
1617
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1618
+ default:
1619
+ const parsedBody = parsedOutput.body;
1620
+ return throwDefaultError({
1621
+ output,
1622
+ parsedBody,
1623
+ errorCode,
1624
+ });
1625
+ }
1626
+ };
1409
1627
  export const de_DeleteVpcConnectionCommand = async (output, context) => {
1410
1628
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1411
1629
  return de_DeleteVpcConnectionCommandError(output, context);
@@ -1741,6 +1959,69 @@ const de_DescribeConfigurationRevisionCommandError = async (output, context) =>
1741
1959
  });
1742
1960
  }
1743
1961
  };
1962
+ export const de_DescribeReplicatorCommand = async (output, context) => {
1963
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1964
+ return de_DescribeReplicatorCommandError(output, context);
1965
+ }
1966
+ const contents = map({
1967
+ $metadata: deserializeMetadata(output),
1968
+ });
1969
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1970
+ const doc = take(data, {
1971
+ CreationTime: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `creationTime`],
1972
+ CurrentVersion: [, __expectString, `currentVersion`],
1973
+ IsReplicatorReference: [, __expectBoolean, `isReplicatorReference`],
1974
+ KafkaClusters: [, (_) => de___listOfKafkaClusterDescription(_, context), `kafkaClusters`],
1975
+ ReplicationInfoList: [, (_) => de___listOfReplicationInfoDescription(_, context), `replicationInfoList`],
1976
+ ReplicatorArn: [, __expectString, `replicatorArn`],
1977
+ ReplicatorDescription: [, __expectString, `replicatorDescription`],
1978
+ ReplicatorName: [, __expectString, `replicatorName`],
1979
+ ReplicatorResourceArn: [, __expectString, `replicatorResourceArn`],
1980
+ ReplicatorState: [, __expectString, `replicatorState`],
1981
+ ServiceExecutionRoleArn: [, __expectString, `serviceExecutionRoleArn`],
1982
+ StateInfo: [, (_) => de_ReplicationStateInfo(_, context), `stateInfo`],
1983
+ Tags: [, _json, `tags`],
1984
+ });
1985
+ Object.assign(contents, doc);
1986
+ return contents;
1987
+ };
1988
+ const de_DescribeReplicatorCommandError = async (output, context) => {
1989
+ const parsedOutput = {
1990
+ ...output,
1991
+ body: await parseErrorBody(output.body, context),
1992
+ };
1993
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1994
+ switch (errorCode) {
1995
+ case "BadRequestException":
1996
+ case "com.amazonaws.kafka#BadRequestException":
1997
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1998
+ case "ForbiddenException":
1999
+ case "com.amazonaws.kafka#ForbiddenException":
2000
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2001
+ case "InternalServerErrorException":
2002
+ case "com.amazonaws.kafka#InternalServerErrorException":
2003
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2004
+ case "NotFoundException":
2005
+ case "com.amazonaws.kafka#NotFoundException":
2006
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2007
+ case "ServiceUnavailableException":
2008
+ case "com.amazonaws.kafka#ServiceUnavailableException":
2009
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2010
+ case "TooManyRequestsException":
2011
+ case "com.amazonaws.kafka#TooManyRequestsException":
2012
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2013
+ case "UnauthorizedException":
2014
+ case "com.amazonaws.kafka#UnauthorizedException":
2015
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2016
+ default:
2017
+ const parsedBody = parsedOutput.body;
2018
+ return throwDefaultError({
2019
+ output,
2020
+ parsedBody,
2021
+ errorCode,
2022
+ });
2023
+ }
2024
+ };
1744
2025
  export const de_DescribeVpcConnectionCommand = async (output, context) => {
1745
2026
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1746
2027
  return de_DescribeVpcConnectionCommandError(output, context);
@@ -2353,6 +2634,58 @@ const de_ListNodesCommandError = async (output, context) => {
2353
2634
  });
2354
2635
  }
2355
2636
  };
2637
+ export const de_ListReplicatorsCommand = async (output, context) => {
2638
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2639
+ return de_ListReplicatorsCommandError(output, context);
2640
+ }
2641
+ const contents = map({
2642
+ $metadata: deserializeMetadata(output),
2643
+ });
2644
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2645
+ const doc = take(data, {
2646
+ NextToken: [, __expectString, `nextToken`],
2647
+ Replicators: [, (_) => de___listOfReplicatorSummary(_, context), `replicators`],
2648
+ });
2649
+ Object.assign(contents, doc);
2650
+ return contents;
2651
+ };
2652
+ const de_ListReplicatorsCommandError = async (output, context) => {
2653
+ const parsedOutput = {
2654
+ ...output,
2655
+ body: await parseErrorBody(output.body, context),
2656
+ };
2657
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2658
+ switch (errorCode) {
2659
+ case "BadRequestException":
2660
+ case "com.amazonaws.kafka#BadRequestException":
2661
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2662
+ case "ForbiddenException":
2663
+ case "com.amazonaws.kafka#ForbiddenException":
2664
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2665
+ case "InternalServerErrorException":
2666
+ case "com.amazonaws.kafka#InternalServerErrorException":
2667
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2668
+ case "NotFoundException":
2669
+ case "com.amazonaws.kafka#NotFoundException":
2670
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2671
+ case "ServiceUnavailableException":
2672
+ case "com.amazonaws.kafka#ServiceUnavailableException":
2673
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2674
+ case "TooManyRequestsException":
2675
+ case "com.amazonaws.kafka#TooManyRequestsException":
2676
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2677
+ case "UnauthorizedException":
2678
+ case "com.amazonaws.kafka#UnauthorizedException":
2679
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2680
+ default:
2681
+ const parsedBody = parsedOutput.body;
2682
+ return throwDefaultError({
2683
+ output,
2684
+ parsedBody,
2685
+ errorCode,
2686
+ });
2687
+ }
2688
+ };
2356
2689
  export const de_ListScramSecretsCommand = async (output, context) => {
2357
2690
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2358
2691
  return de_ListScramSecretsCommandError(output, context);
@@ -3081,6 +3414,58 @@ const de_UpdateMonitoringCommandError = async (output, context) => {
3081
3414
  });
3082
3415
  }
3083
3416
  };
3417
+ export const de_UpdateReplicationInfoCommand = async (output, context) => {
3418
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3419
+ return de_UpdateReplicationInfoCommandError(output, context);
3420
+ }
3421
+ const contents = map({
3422
+ $metadata: deserializeMetadata(output),
3423
+ });
3424
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3425
+ const doc = take(data, {
3426
+ ReplicatorArn: [, __expectString, `replicatorArn`],
3427
+ ReplicatorState: [, __expectString, `replicatorState`],
3428
+ });
3429
+ Object.assign(contents, doc);
3430
+ return contents;
3431
+ };
3432
+ const de_UpdateReplicationInfoCommandError = async (output, context) => {
3433
+ const parsedOutput = {
3434
+ ...output,
3435
+ body: await parseErrorBody(output.body, context),
3436
+ };
3437
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3438
+ switch (errorCode) {
3439
+ case "BadRequestException":
3440
+ case "com.amazonaws.kafka#BadRequestException":
3441
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3442
+ case "ForbiddenException":
3443
+ case "com.amazonaws.kafka#ForbiddenException":
3444
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3445
+ case "InternalServerErrorException":
3446
+ case "com.amazonaws.kafka#InternalServerErrorException":
3447
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3448
+ case "NotFoundException":
3449
+ case "com.amazonaws.kafka#NotFoundException":
3450
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
3451
+ case "ServiceUnavailableException":
3452
+ case "com.amazonaws.kafka#ServiceUnavailableException":
3453
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3454
+ case "TooManyRequestsException":
3455
+ case "com.amazonaws.kafka#TooManyRequestsException":
3456
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3457
+ case "UnauthorizedException":
3458
+ case "com.amazonaws.kafka#UnauthorizedException":
3459
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3460
+ default:
3461
+ const parsedBody = parsedOutput.body;
3462
+ return throwDefaultError({
3463
+ output,
3464
+ parsedBody,
3465
+ errorCode,
3466
+ });
3467
+ }
3468
+ };
3084
3469
  export const de_UpdateSecurityCommand = async (output, context) => {
3085
3470
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3086
3471
  return de_UpdateSecurityCommandError(output, context);
@@ -3305,6 +3690,20 @@ const se___listOfBrokerEBSVolumeInfo = (input, context) => {
3305
3690
  return se_BrokerEBSVolumeInfo(entry, context);
3306
3691
  });
3307
3692
  };
3693
+ const se___listOfKafkaCluster = (input, context) => {
3694
+ return input
3695
+ .filter((e) => e != null)
3696
+ .map((entry) => {
3697
+ return se_KafkaCluster(entry, context);
3698
+ });
3699
+ };
3700
+ const se___listOfReplicationInfo = (input, context) => {
3701
+ return input
3702
+ .filter((e) => e != null)
3703
+ .map((entry) => {
3704
+ return se_ReplicationInfo(entry, context);
3705
+ });
3706
+ };
3308
3707
  const se___listOfVpcConfig = (input, context) => {
3309
3708
  return input
3310
3709
  .filter((e) => e != null)
@@ -3312,6 +3711,11 @@ const se___listOfVpcConfig = (input, context) => {
3312
3711
  return se_VpcConfig(entry, context);
3313
3712
  });
3314
3713
  };
3714
+ const se_AmazonMskCluster = (input, context) => {
3715
+ return take(input, {
3716
+ mskClusterArn: [, , `MskClusterArn`],
3717
+ });
3718
+ };
3315
3719
  const se_BrokerEBSVolumeInfo = (input, context) => {
3316
3720
  return take(input, {
3317
3721
  kafkaBrokerNodeId: [, , `KafkaBrokerNodeId`],
@@ -3362,6 +3766,22 @@ const se_ConnectivityInfo = (input, context) => {
3362
3766
  vpcConnectivity: [, (_) => se_VpcConnectivity(_, context), `VpcConnectivity`],
3363
3767
  });
3364
3768
  };
3769
+ const se_ConsumerGroupReplication = (input, context) => {
3770
+ return take(input, {
3771
+ consumerGroupsToExclude: [, _json, `ConsumerGroupsToExclude`],
3772
+ consumerGroupsToReplicate: [, _json, `ConsumerGroupsToReplicate`],
3773
+ detectAndCopyNewConsumerGroups: [, , `DetectAndCopyNewConsumerGroups`],
3774
+ synchroniseConsumerGroupOffsets: [, , `SynchroniseConsumerGroupOffsets`],
3775
+ });
3776
+ };
3777
+ const se_ConsumerGroupReplicationUpdate = (input, context) => {
3778
+ return take(input, {
3779
+ consumerGroupsToExclude: [, _json, `ConsumerGroupsToExclude`],
3780
+ consumerGroupsToReplicate: [, _json, `ConsumerGroupsToReplicate`],
3781
+ detectAndCopyNewConsumerGroups: [, , `DetectAndCopyNewConsumerGroups`],
3782
+ synchroniseConsumerGroupOffsets: [, , `SynchroniseConsumerGroupOffsets`],
3783
+ });
3784
+ };
3365
3785
  const se_EBSStorageInfo = (input, context) => {
3366
3786
  return take(input, {
3367
3787
  provisionedThroughput: [, (_) => se_ProvisionedThroughput(_, context), `ProvisionedThroughput`],
@@ -3401,6 +3821,18 @@ const se_JmxExporterInfo = (input, context) => {
3401
3821
  enabledInBroker: [, , `EnabledInBroker`],
3402
3822
  });
3403
3823
  };
3824
+ const se_KafkaCluster = (input, context) => {
3825
+ return take(input, {
3826
+ amazonMskCluster: [, (_) => se_AmazonMskCluster(_, context), `AmazonMskCluster`],
3827
+ vpcConfig: [, (_) => se_KafkaClusterClientVpcConfig(_, context), `VpcConfig`],
3828
+ });
3829
+ };
3830
+ const se_KafkaClusterClientVpcConfig = (input, context) => {
3831
+ return take(input, {
3832
+ securityGroupIds: [, _json, `SecurityGroupIds`],
3833
+ subnetIds: [, _json, `SubnetIds`],
3834
+ });
3835
+ };
3404
3836
  const se_LoggingInfo = (input, context) => {
3405
3837
  return take(input, {
3406
3838
  brokerLogs: [, (_) => se_BrokerLogs(_, context), `BrokerLogs`],
@@ -3447,6 +3879,15 @@ const se_PublicAccess = (input, context) => {
3447
3879
  type: [, , `Type`],
3448
3880
  });
3449
3881
  };
3882
+ const se_ReplicationInfo = (input, context) => {
3883
+ return take(input, {
3884
+ consumerGroupReplication: [, (_) => se_ConsumerGroupReplication(_, context), `ConsumerGroupReplication`],
3885
+ sourceKafkaClusterArn: [, , `SourceKafkaClusterArn`],
3886
+ targetCompressionType: [, , `TargetCompressionType`],
3887
+ targetKafkaClusterArn: [, , `TargetKafkaClusterArn`],
3888
+ topicReplication: [, (_) => se_TopicReplication(_, context), `TopicReplication`],
3889
+ });
3890
+ };
3450
3891
  const se_S3 = (input, context) => {
3451
3892
  return take(input, {
3452
3893
  bucket: [, , `Bucket`],
@@ -3492,6 +3933,24 @@ const se_Tls = (input, context) => {
3492
3933
  enabled: [, , `Enabled`],
3493
3934
  });
3494
3935
  };
3936
+ const se_TopicReplication = (input, context) => {
3937
+ return take(input, {
3938
+ copyAccessControlListsForTopics: [, , `CopyAccessControlListsForTopics`],
3939
+ copyTopicConfigurations: [, , `CopyTopicConfigurations`],
3940
+ detectAndCopyNewTopics: [, , `DetectAndCopyNewTopics`],
3941
+ topicsToExclude: [, _json, `TopicsToExclude`],
3942
+ topicsToReplicate: [, _json, `TopicsToReplicate`],
3943
+ });
3944
+ };
3945
+ const se_TopicReplicationUpdate = (input, context) => {
3946
+ return take(input, {
3947
+ copyAccessControlListsForTopics: [, , `CopyAccessControlListsForTopics`],
3948
+ copyTopicConfigurations: [, , `CopyTopicConfigurations`],
3949
+ detectAndCopyNewTopics: [, , `DetectAndCopyNewTopics`],
3950
+ topicsToExclude: [, _json, `TopicsToExclude`],
3951
+ topicsToReplicate: [, _json, `TopicsToReplicate`],
3952
+ });
3953
+ };
3495
3954
  const se_Unauthenticated = (input, context) => {
3496
3955
  return take(input, {
3497
3956
  enabled: [, , `Enabled`],
@@ -3615,6 +4074,22 @@ const de___listOfConfigurationRevision = (output, context) => {
3615
4074
  });
3616
4075
  return retVal;
3617
4076
  };
4077
+ const de___listOfKafkaClusterDescription = (output, context) => {
4078
+ const retVal = (output || [])
4079
+ .filter((e) => e != null)
4080
+ .map((entry) => {
4081
+ return de_KafkaClusterDescription(entry, context);
4082
+ });
4083
+ return retVal;
4084
+ };
4085
+ const de___listOfKafkaClusterSummary = (output, context) => {
4086
+ const retVal = (output || [])
4087
+ .filter((e) => e != null)
4088
+ .map((entry) => {
4089
+ return de_KafkaClusterSummary(entry, context);
4090
+ });
4091
+ return retVal;
4092
+ };
3618
4093
  const de___listOfKafkaVersion = (output, context) => {
3619
4094
  const retVal = (output || [])
3620
4095
  .filter((e) => e != null)
@@ -3631,6 +4106,30 @@ const de___listOfNodeInfo = (output, context) => {
3631
4106
  });
3632
4107
  return retVal;
3633
4108
  };
4109
+ const de___listOfReplicationInfoDescription = (output, context) => {
4110
+ const retVal = (output || [])
4111
+ .filter((e) => e != null)
4112
+ .map((entry) => {
4113
+ return de_ReplicationInfoDescription(entry, context);
4114
+ });
4115
+ return retVal;
4116
+ };
4117
+ const de___listOfReplicationInfoSummary = (output, context) => {
4118
+ const retVal = (output || [])
4119
+ .filter((e) => e != null)
4120
+ .map((entry) => {
4121
+ return de_ReplicationInfoSummary(entry, context);
4122
+ });
4123
+ return retVal;
4124
+ };
4125
+ const de___listOfReplicatorSummary = (output, context) => {
4126
+ const retVal = (output || [])
4127
+ .filter((e) => e != null)
4128
+ .map((entry) => {
4129
+ return de_ReplicatorSummary(entry, context);
4130
+ });
4131
+ return retVal;
4132
+ };
3634
4133
  const de___listOfUnprocessedScramSecret = (output, context) => {
3635
4134
  const retVal = (output || [])
3636
4135
  .filter((e) => e != null)
@@ -3655,6 +4154,11 @@ const de___listOfVpcConnection = (output, context) => {
3655
4154
  });
3656
4155
  return retVal;
3657
4156
  };
4157
+ const de_AmazonMskCluster = (output, context) => {
4158
+ return take(output, {
4159
+ MskClusterArn: [, __expectString, `mskClusterArn`],
4160
+ });
4161
+ };
3658
4162
  const de_BrokerEBSVolumeInfo = (output, context) => {
3659
4163
  return take(output, {
3660
4164
  KafkaBrokerNodeId: [, __expectString, `kafkaBrokerNodeId`],
@@ -3858,6 +4362,14 @@ const de_ConnectivityInfo = (output, context) => {
3858
4362
  VpcConnectivity: [, (_) => de_VpcConnectivity(_, context), `vpcConnectivity`],
3859
4363
  });
3860
4364
  };
4365
+ const de_ConsumerGroupReplication = (output, context) => {
4366
+ return take(output, {
4367
+ ConsumerGroupsToExclude: [, _json, `consumerGroupsToExclude`],
4368
+ ConsumerGroupsToReplicate: [, _json, `consumerGroupsToReplicate`],
4369
+ DetectAndCopyNewConsumerGroups: [, __expectBoolean, `detectAndCopyNewConsumerGroups`],
4370
+ SynchroniseConsumerGroupOffsets: [, __expectBoolean, `synchroniseConsumerGroupOffsets`],
4371
+ });
4372
+ };
3861
4373
  const de_EBSStorageInfo = (output, context) => {
3862
4374
  return take(output, {
3863
4375
  ProvisionedThroughput: [, (_) => de_ProvisionedThroughput(_, context), `provisionedThroughput`],
@@ -3908,6 +4420,25 @@ const de_JmxExporterInfo = (output, context) => {
3908
4420
  EnabledInBroker: [, __expectBoolean, `enabledInBroker`],
3909
4421
  });
3910
4422
  };
4423
+ const de_KafkaClusterClientVpcConfig = (output, context) => {
4424
+ return take(output, {
4425
+ SecurityGroupIds: [, _json, `securityGroupIds`],
4426
+ SubnetIds: [, _json, `subnetIds`],
4427
+ });
4428
+ };
4429
+ const de_KafkaClusterDescription = (output, context) => {
4430
+ return take(output, {
4431
+ AmazonMskCluster: [, (_) => de_AmazonMskCluster(_, context), `amazonMskCluster`],
4432
+ KafkaClusterAlias: [, __expectString, `kafkaClusterAlias`],
4433
+ VpcConfig: [, (_) => de_KafkaClusterClientVpcConfig(_, context), `vpcConfig`],
4434
+ });
4435
+ };
4436
+ const de_KafkaClusterSummary = (output, context) => {
4437
+ return take(output, {
4438
+ AmazonMskCluster: [, (_) => de_AmazonMskCluster(_, context), `amazonMskCluster`],
4439
+ KafkaClusterAlias: [, __expectString, `kafkaClusterAlias`],
4440
+ });
4441
+ };
3911
4442
  const de_KafkaVersion = (output, context) => {
3912
4443
  return take(output, {
3913
4444
  Status: [, __expectString, `status`],
@@ -4003,6 +4534,44 @@ const de_PublicAccess = (output, context) => {
4003
4534
  Type: [, __expectString, `type`],
4004
4535
  });
4005
4536
  };
4537
+ const de_ReplicationInfoDescription = (output, context) => {
4538
+ return take(output, {
4539
+ ConsumerGroupReplication: [, (_) => de_ConsumerGroupReplication(_, context), `consumerGroupReplication`],
4540
+ SourceKafkaClusterAlias: [, __expectString, `sourceKafkaClusterAlias`],
4541
+ TargetCompressionType: [, __expectString, `targetCompressionType`],
4542
+ TargetKafkaClusterAlias: [, __expectString, `targetKafkaClusterAlias`],
4543
+ TopicReplication: [, (_) => de_TopicReplication(_, context), `topicReplication`],
4544
+ });
4545
+ };
4546
+ const de_ReplicationInfoSummary = (output, context) => {
4547
+ return take(output, {
4548
+ SourceKafkaClusterAlias: [, __expectString, `sourceKafkaClusterAlias`],
4549
+ TargetKafkaClusterAlias: [, __expectString, `targetKafkaClusterAlias`],
4550
+ });
4551
+ };
4552
+ const de_ReplicationStateInfo = (output, context) => {
4553
+ return take(output, {
4554
+ Code: [, __expectString, `code`],
4555
+ Message: [, __expectString, `message`],
4556
+ });
4557
+ };
4558
+ const de_ReplicatorSummary = (output, context) => {
4559
+ return take(output, {
4560
+ CreationTime: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `creationTime`],
4561
+ CurrentVersion: [, __expectString, `currentVersion`],
4562
+ IsReplicatorReference: [, __expectBoolean, `isReplicatorReference`],
4563
+ KafkaClustersSummary: [, (_) => de___listOfKafkaClusterSummary(_, context), `kafkaClustersSummary`],
4564
+ ReplicationInfoSummaryList: [
4565
+ ,
4566
+ (_) => de___listOfReplicationInfoSummary(_, context),
4567
+ `replicationInfoSummaryList`,
4568
+ ],
4569
+ ReplicatorArn: [, __expectString, `replicatorArn`],
4570
+ ReplicatorName: [, __expectString, `replicatorName`],
4571
+ ReplicatorResourceArn: [, __expectString, `replicatorResourceArn`],
4572
+ ReplicatorState: [, __expectString, `replicatorState`],
4573
+ });
4574
+ };
4006
4575
  const de_S3 = (output, context) => {
4007
4576
  return take(output, {
4008
4577
  Bucket: [, __expectString, `bucket`],
@@ -4054,6 +4623,15 @@ const de_Tls = (output, context) => {
4054
4623
  Enabled: [, __expectBoolean, `enabled`],
4055
4624
  });
4056
4625
  };
4626
+ const de_TopicReplication = (output, context) => {
4627
+ return take(output, {
4628
+ CopyAccessControlListsForTopics: [, __expectBoolean, `copyAccessControlListsForTopics`],
4629
+ CopyTopicConfigurations: [, __expectBoolean, `copyTopicConfigurations`],
4630
+ DetectAndCopyNewTopics: [, __expectBoolean, `detectAndCopyNewTopics`],
4631
+ TopicsToExclude: [, _json, `topicsToExclude`],
4632
+ TopicsToReplicate: [, _json, `topicsToReplicate`],
4633
+ });
4634
+ };
4057
4635
  const de_Unauthenticated = (output, context) => {
4058
4636
  return take(output, {
4059
4637
  Enabled: [, __expectBoolean, `enabled`],