@aws-sdk/client-kafka 3.429.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 +621 -0
  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 +157 -0
  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 +10 -10
package/README.md CHANGED
@@ -242,6 +242,14 @@ CreateConfiguration
242
242
 
243
243
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/createconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/createconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/createconfigurationcommandoutput.html)
244
244
 
245
+ </details>
246
+ <details>
247
+ <summary>
248
+ CreateReplicator
249
+ </summary>
250
+
251
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/createreplicatorcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/createreplicatorcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/createreplicatorcommandoutput.html)
252
+
245
253
  </details>
246
254
  <details>
247
255
  <summary>
@@ -274,6 +282,14 @@ DeleteConfiguration
274
282
 
275
283
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/deleteconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/deleteconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/deleteconfigurationcommandoutput.html)
276
284
 
285
+ </details>
286
+ <details>
287
+ <summary>
288
+ DeleteReplicator
289
+ </summary>
290
+
291
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/deletereplicatorcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/deletereplicatorcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/deletereplicatorcommandoutput.html)
292
+
277
293
  </details>
278
294
  <details>
279
295
  <summary>
@@ -330,6 +346,14 @@ DescribeConfigurationRevision
330
346
 
331
347
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/describeconfigurationrevisioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/describeconfigurationrevisioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/describeconfigurationrevisioncommandoutput.html)
332
348
 
349
+ </details>
350
+ <details>
351
+ <summary>
352
+ DescribeReplicator
353
+ </summary>
354
+
355
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/describereplicatorcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/describereplicatorcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/describereplicatorcommandoutput.html)
356
+
333
357
  </details>
334
358
  <details>
335
359
  <summary>
@@ -434,6 +458,14 @@ ListNodes
434
458
 
435
459
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/listnodescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/listnodescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/listnodescommandoutput.html)
436
460
 
461
+ </details>
462
+ <details>
463
+ <summary>
464
+ ListReplicators
465
+ </summary>
466
+
467
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/listreplicatorscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/listreplicatorscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/listreplicatorscommandoutput.html)
468
+
437
469
  </details>
438
470
  <details>
439
471
  <summary>
@@ -562,6 +594,14 @@ UpdateMonitoring
562
594
 
563
595
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/updatemonitoringcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/updatemonitoringcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/updatemonitoringcommandoutput.html)
564
596
 
597
+ </details>
598
+ <details>
599
+ <summary>
600
+ UpdateReplicationInfo
601
+ </summary>
602
+
603
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/classes/updatereplicationinfocommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/updatereplicationinfocommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-kafka/interfaces/updatereplicationinfocommandoutput.html)
604
+
565
605
  </details>
566
606
  <details>
567
607
  <summary>
package/dist-cjs/Kafka.js CHANGED
@@ -7,10 +7,12 @@ const BatchDisassociateScramSecretCommand_1 = require("./commands/BatchDisassoci
7
7
  const CreateClusterCommand_1 = require("./commands/CreateClusterCommand");
8
8
  const CreateClusterV2Command_1 = require("./commands/CreateClusterV2Command");
9
9
  const CreateConfigurationCommand_1 = require("./commands/CreateConfigurationCommand");
10
+ const CreateReplicatorCommand_1 = require("./commands/CreateReplicatorCommand");
10
11
  const CreateVpcConnectionCommand_1 = require("./commands/CreateVpcConnectionCommand");
11
12
  const DeleteClusterCommand_1 = require("./commands/DeleteClusterCommand");
12
13
  const DeleteClusterPolicyCommand_1 = require("./commands/DeleteClusterPolicyCommand");
13
14
  const DeleteConfigurationCommand_1 = require("./commands/DeleteConfigurationCommand");
15
+ const DeleteReplicatorCommand_1 = require("./commands/DeleteReplicatorCommand");
14
16
  const DeleteVpcConnectionCommand_1 = require("./commands/DeleteVpcConnectionCommand");
15
17
  const DescribeClusterCommand_1 = require("./commands/DescribeClusterCommand");
16
18
  const DescribeClusterOperationCommand_1 = require("./commands/DescribeClusterOperationCommand");
@@ -18,6 +20,7 @@ const DescribeClusterOperationV2Command_1 = require("./commands/DescribeClusterO
18
20
  const DescribeClusterV2Command_1 = require("./commands/DescribeClusterV2Command");
19
21
  const DescribeConfigurationCommand_1 = require("./commands/DescribeConfigurationCommand");
20
22
  const DescribeConfigurationRevisionCommand_1 = require("./commands/DescribeConfigurationRevisionCommand");
23
+ const DescribeReplicatorCommand_1 = require("./commands/DescribeReplicatorCommand");
21
24
  const DescribeVpcConnectionCommand_1 = require("./commands/DescribeVpcConnectionCommand");
22
25
  const GetBootstrapBrokersCommand_1 = require("./commands/GetBootstrapBrokersCommand");
23
26
  const GetClusterPolicyCommand_1 = require("./commands/GetClusterPolicyCommand");
@@ -31,6 +34,7 @@ const ListConfigurationRevisionsCommand_1 = require("./commands/ListConfiguratio
31
34
  const ListConfigurationsCommand_1 = require("./commands/ListConfigurationsCommand");
32
35
  const ListKafkaVersionsCommand_1 = require("./commands/ListKafkaVersionsCommand");
33
36
  const ListNodesCommand_1 = require("./commands/ListNodesCommand");
37
+ const ListReplicatorsCommand_1 = require("./commands/ListReplicatorsCommand");
34
38
  const ListScramSecretsCommand_1 = require("./commands/ListScramSecretsCommand");
35
39
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
36
40
  const ListVpcConnectionsCommand_1 = require("./commands/ListVpcConnectionsCommand");
@@ -47,6 +51,7 @@ const UpdateClusterKafkaVersionCommand_1 = require("./commands/UpdateClusterKafk
47
51
  const UpdateConfigurationCommand_1 = require("./commands/UpdateConfigurationCommand");
48
52
  const UpdateConnectivityCommand_1 = require("./commands/UpdateConnectivityCommand");
49
53
  const UpdateMonitoringCommand_1 = require("./commands/UpdateMonitoringCommand");
54
+ const UpdateReplicationInfoCommand_1 = require("./commands/UpdateReplicationInfoCommand");
50
55
  const UpdateSecurityCommand_1 = require("./commands/UpdateSecurityCommand");
51
56
  const UpdateStorageCommand_1 = require("./commands/UpdateStorageCommand");
52
57
  const KafkaClient_1 = require("./KafkaClient");
@@ -56,10 +61,12 @@ const commands = {
56
61
  CreateClusterCommand: CreateClusterCommand_1.CreateClusterCommand,
57
62
  CreateClusterV2Command: CreateClusterV2Command_1.CreateClusterV2Command,
58
63
  CreateConfigurationCommand: CreateConfigurationCommand_1.CreateConfigurationCommand,
64
+ CreateReplicatorCommand: CreateReplicatorCommand_1.CreateReplicatorCommand,
59
65
  CreateVpcConnectionCommand: CreateVpcConnectionCommand_1.CreateVpcConnectionCommand,
60
66
  DeleteClusterCommand: DeleteClusterCommand_1.DeleteClusterCommand,
61
67
  DeleteClusterPolicyCommand: DeleteClusterPolicyCommand_1.DeleteClusterPolicyCommand,
62
68
  DeleteConfigurationCommand: DeleteConfigurationCommand_1.DeleteConfigurationCommand,
69
+ DeleteReplicatorCommand: DeleteReplicatorCommand_1.DeleteReplicatorCommand,
63
70
  DeleteVpcConnectionCommand: DeleteVpcConnectionCommand_1.DeleteVpcConnectionCommand,
64
71
  DescribeClusterCommand: DescribeClusterCommand_1.DescribeClusterCommand,
65
72
  DescribeClusterOperationCommand: DescribeClusterOperationCommand_1.DescribeClusterOperationCommand,
@@ -67,6 +74,7 @@ const commands = {
67
74
  DescribeClusterV2Command: DescribeClusterV2Command_1.DescribeClusterV2Command,
68
75
  DescribeConfigurationCommand: DescribeConfigurationCommand_1.DescribeConfigurationCommand,
69
76
  DescribeConfigurationRevisionCommand: DescribeConfigurationRevisionCommand_1.DescribeConfigurationRevisionCommand,
77
+ DescribeReplicatorCommand: DescribeReplicatorCommand_1.DescribeReplicatorCommand,
70
78
  DescribeVpcConnectionCommand: DescribeVpcConnectionCommand_1.DescribeVpcConnectionCommand,
71
79
  GetBootstrapBrokersCommand: GetBootstrapBrokersCommand_1.GetBootstrapBrokersCommand,
72
80
  GetClusterPolicyCommand: GetClusterPolicyCommand_1.GetClusterPolicyCommand,
@@ -80,6 +88,7 @@ const commands = {
80
88
  ListConfigurationsCommand: ListConfigurationsCommand_1.ListConfigurationsCommand,
81
89
  ListKafkaVersionsCommand: ListKafkaVersionsCommand_1.ListKafkaVersionsCommand,
82
90
  ListNodesCommand: ListNodesCommand_1.ListNodesCommand,
91
+ ListReplicatorsCommand: ListReplicatorsCommand_1.ListReplicatorsCommand,
83
92
  ListScramSecretsCommand: ListScramSecretsCommand_1.ListScramSecretsCommand,
84
93
  ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
85
94
  ListVpcConnectionsCommand: ListVpcConnectionsCommand_1.ListVpcConnectionsCommand,
@@ -96,6 +105,7 @@ const commands = {
96
105
  UpdateConfigurationCommand: UpdateConfigurationCommand_1.UpdateConfigurationCommand,
97
106
  UpdateConnectivityCommand: UpdateConnectivityCommand_1.UpdateConnectivityCommand,
98
107
  UpdateMonitoringCommand: UpdateMonitoringCommand_1.UpdateMonitoringCommand,
108
+ UpdateReplicationInfoCommand: UpdateReplicationInfoCommand_1.UpdateReplicationInfoCommand,
99
109
  UpdateSecurityCommand: UpdateSecurityCommand_1.UpdateSecurityCommand,
100
110
  UpdateStorageCommand: UpdateStorageCommand_1.UpdateStorageCommand,
101
111
  };
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateReplicatorCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class CreateReplicatorCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateReplicatorCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "KafkaClient";
29
+ const commandName = "CreateReplicatorCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Kafka",
38
+ operation: "CreateReplicator",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_CreateReplicatorCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_CreateReplicatorCommand)(output, context);
49
+ }
50
+ }
51
+ exports.CreateReplicatorCommand = CreateReplicatorCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteReplicatorCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class DeleteReplicatorCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteReplicatorCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "KafkaClient";
29
+ const commandName = "DeleteReplicatorCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Kafka",
38
+ operation: "DeleteReplicator",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_DeleteReplicatorCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_DeleteReplicatorCommand)(output, context);
49
+ }
50
+ }
51
+ exports.DeleteReplicatorCommand = DeleteReplicatorCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeReplicatorCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class DescribeReplicatorCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeReplicatorCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "KafkaClient";
29
+ const commandName = "DescribeReplicatorCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Kafka",
38
+ operation: "DescribeReplicator",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_DescribeReplicatorCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_DescribeReplicatorCommand)(output, context);
49
+ }
50
+ }
51
+ exports.DescribeReplicatorCommand = DescribeReplicatorCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListReplicatorsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListReplicatorsCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListReplicatorsCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "KafkaClient";
29
+ const commandName = "ListReplicatorsCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Kafka",
38
+ operation: "ListReplicators",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_ListReplicatorsCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_ListReplicatorsCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListReplicatorsCommand = ListReplicatorsCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateReplicationInfoCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UpdateReplicationInfoCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateReplicationInfoCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "KafkaClient";
29
+ const commandName = "UpdateReplicationInfoCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Kafka",
38
+ operation: "UpdateReplicationInfo",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_UpdateReplicationInfoCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_UpdateReplicationInfoCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateReplicationInfoCommand = UpdateReplicationInfoCommand;
@@ -6,10 +6,12 @@ tslib_1.__exportStar(require("./BatchDisassociateScramSecretCommand"), exports);
6
6
  tslib_1.__exportStar(require("./CreateClusterCommand"), exports);
7
7
  tslib_1.__exportStar(require("./CreateClusterV2Command"), exports);
8
8
  tslib_1.__exportStar(require("./CreateConfigurationCommand"), exports);
9
+ tslib_1.__exportStar(require("./CreateReplicatorCommand"), exports);
9
10
  tslib_1.__exportStar(require("./CreateVpcConnectionCommand"), exports);
10
11
  tslib_1.__exportStar(require("./DeleteClusterCommand"), exports);
11
12
  tslib_1.__exportStar(require("./DeleteClusterPolicyCommand"), exports);
12
13
  tslib_1.__exportStar(require("./DeleteConfigurationCommand"), exports);
14
+ tslib_1.__exportStar(require("./DeleteReplicatorCommand"), exports);
13
15
  tslib_1.__exportStar(require("./DeleteVpcConnectionCommand"), exports);
14
16
  tslib_1.__exportStar(require("./DescribeClusterCommand"), exports);
15
17
  tslib_1.__exportStar(require("./DescribeClusterOperationCommand"), exports);
@@ -17,6 +19,7 @@ tslib_1.__exportStar(require("./DescribeClusterOperationV2Command"), exports);
17
19
  tslib_1.__exportStar(require("./DescribeClusterV2Command"), exports);
18
20
  tslib_1.__exportStar(require("./DescribeConfigurationCommand"), exports);
19
21
  tslib_1.__exportStar(require("./DescribeConfigurationRevisionCommand"), exports);
22
+ tslib_1.__exportStar(require("./DescribeReplicatorCommand"), exports);
20
23
  tslib_1.__exportStar(require("./DescribeVpcConnectionCommand"), exports);
21
24
  tslib_1.__exportStar(require("./GetBootstrapBrokersCommand"), exports);
22
25
  tslib_1.__exportStar(require("./GetClusterPolicyCommand"), exports);
@@ -30,6 +33,7 @@ tslib_1.__exportStar(require("./ListConfigurationRevisionsCommand"), exports);
30
33
  tslib_1.__exportStar(require("./ListConfigurationsCommand"), exports);
31
34
  tslib_1.__exportStar(require("./ListKafkaVersionsCommand"), exports);
32
35
  tslib_1.__exportStar(require("./ListNodesCommand"), exports);
36
+ tslib_1.__exportStar(require("./ListReplicatorsCommand"), exports);
33
37
  tslib_1.__exportStar(require("./ListScramSecretsCommand"), exports);
34
38
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
35
39
  tslib_1.__exportStar(require("./ListVpcConnectionsCommand"), exports);
@@ -46,5 +50,6 @@ tslib_1.__exportStar(require("./UpdateClusterKafkaVersionCommand"), exports);
46
50
  tslib_1.__exportStar(require("./UpdateConfigurationCommand"), exports);
47
51
  tslib_1.__exportStar(require("./UpdateConnectivityCommand"), exports);
48
52
  tslib_1.__exportStar(require("./UpdateMonitoringCommand"), exports);
53
+ tslib_1.__exportStar(require("./UpdateReplicationInfoCommand"), exports);
49
54
  tslib_1.__exportStar(require("./UpdateSecurityCommand"), exports);
50
55
  tslib_1.__exportStar(require("./UpdateStorageCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const s = "required", t = "fn", u = "argv", v = "ref";
5
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://kafka-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://kafka.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://kafka-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://kafka.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://kafka.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
+ const u = "required", v = "fn", w = "argv", x = "ref";
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://kafka-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://kafka.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://kafka-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://kafka.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://kafka.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
7
7
  exports.ruleSet = _data;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConflictException = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.BadRequestException = exports.NodeType = exports.KafkaVersionStatus = exports.ConfigurationState = exports.UserIdentityType = exports.ClusterState = exports.StorageMode = exports.EnhancedMonitoring = exports.ClientBroker = exports.BrokerAZDistribution = exports.ClusterType = exports.VpcConnectionState = void 0;
3
+ exports.ConflictException = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.BadRequestException = exports.ReplicatorState = exports.TargetCompressionType = exports.NodeType = exports.KafkaVersionStatus = exports.ConfigurationState = exports.UserIdentityType = exports.ClusterState = exports.StorageMode = exports.EnhancedMonitoring = exports.ClientBroker = exports.BrokerAZDistribution = exports.ClusterType = exports.VpcConnectionState = void 0;
4
4
  const KafkaServiceException_1 = require("./KafkaServiceException");
5
5
  exports.VpcConnectionState = {
6
6
  AVAILABLE: "AVAILABLE",
@@ -60,6 +60,20 @@ exports.KafkaVersionStatus = {
60
60
  exports.NodeType = {
61
61
  BROKER: "BROKER",
62
62
  };
63
+ exports.TargetCompressionType = {
64
+ GZIP: "GZIP",
65
+ LZ4: "LZ4",
66
+ NONE: "NONE",
67
+ SNAPPY: "SNAPPY",
68
+ ZSTD: "ZSTD",
69
+ };
70
+ exports.ReplicatorState = {
71
+ CREATING: "CREATING",
72
+ DELETING: "DELETING",
73
+ FAILED: "FAILED",
74
+ RUNNING: "RUNNING",
75
+ UPDATING: "UPDATING",
76
+ };
63
77
  class BadRequestException extends KafkaServiceException_1.KafkaServiceException {
64
78
  constructor(opts) {
65
79
  super({
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListReplicators = void 0;
4
+ const ListReplicatorsCommand_1 = require("../commands/ListReplicatorsCommand");
5
+ const KafkaClient_1 = require("../KafkaClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListReplicatorsCommand_1.ListReplicatorsCommand(input), ...args);
8
+ };
9
+ async function* paginateListReplicators(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof KafkaClient_1.KafkaClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected Kafka | KafkaClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListReplicators = paginateListReplicators;
@@ -11,5 +11,6 @@ tslib_1.__exportStar(require("./ListConfigurationRevisionsPaginator"), exports);
11
11
  tslib_1.__exportStar(require("./ListConfigurationsPaginator"), exports);
12
12
  tslib_1.__exportStar(require("./ListKafkaVersionsPaginator"), exports);
13
13
  tslib_1.__exportStar(require("./ListNodesPaginator"), exports);
14
+ tslib_1.__exportStar(require("./ListReplicatorsPaginator"), exports);
14
15
  tslib_1.__exportStar(require("./ListScramSecretsPaginator"), exports);
15
16
  tslib_1.__exportStar(require("./ListVpcConnectionsPaginator"), exports);