@aws-sdk/client-kafka 3.429.0 → 3.431.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 +11 -11
package/dist-es/Kafka.js CHANGED
@@ -4,10 +4,12 @@ import { BatchDisassociateScramSecretCommand, } from "./commands/BatchDisassocia
4
4
  import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
5
5
  import { CreateClusterV2Command, } from "./commands/CreateClusterV2Command";
6
6
  import { CreateConfigurationCommand, } from "./commands/CreateConfigurationCommand";
7
+ import { CreateReplicatorCommand, } from "./commands/CreateReplicatorCommand";
7
8
  import { CreateVpcConnectionCommand, } from "./commands/CreateVpcConnectionCommand";
8
9
  import { DeleteClusterCommand, } from "./commands/DeleteClusterCommand";
9
10
  import { DeleteClusterPolicyCommand, } from "./commands/DeleteClusterPolicyCommand";
10
11
  import { DeleteConfigurationCommand, } from "./commands/DeleteConfigurationCommand";
12
+ import { DeleteReplicatorCommand, } from "./commands/DeleteReplicatorCommand";
11
13
  import { DeleteVpcConnectionCommand, } from "./commands/DeleteVpcConnectionCommand";
12
14
  import { DescribeClusterCommand, } from "./commands/DescribeClusterCommand";
13
15
  import { DescribeClusterOperationCommand, } from "./commands/DescribeClusterOperationCommand";
@@ -15,6 +17,7 @@ import { DescribeClusterOperationV2Command, } from "./commands/DescribeClusterOp
15
17
  import { DescribeClusterV2Command, } from "./commands/DescribeClusterV2Command";
16
18
  import { DescribeConfigurationCommand, } from "./commands/DescribeConfigurationCommand";
17
19
  import { DescribeConfigurationRevisionCommand, } from "./commands/DescribeConfigurationRevisionCommand";
20
+ import { DescribeReplicatorCommand, } from "./commands/DescribeReplicatorCommand";
18
21
  import { DescribeVpcConnectionCommand, } from "./commands/DescribeVpcConnectionCommand";
19
22
  import { GetBootstrapBrokersCommand, } from "./commands/GetBootstrapBrokersCommand";
20
23
  import { GetClusterPolicyCommand, } from "./commands/GetClusterPolicyCommand";
@@ -28,6 +31,7 @@ import { ListConfigurationRevisionsCommand, } from "./commands/ListConfiguration
28
31
  import { ListConfigurationsCommand, } from "./commands/ListConfigurationsCommand";
29
32
  import { ListKafkaVersionsCommand, } from "./commands/ListKafkaVersionsCommand";
30
33
  import { ListNodesCommand } from "./commands/ListNodesCommand";
34
+ import { ListReplicatorsCommand, } from "./commands/ListReplicatorsCommand";
31
35
  import { ListScramSecretsCommand, } from "./commands/ListScramSecretsCommand";
32
36
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
33
37
  import { ListVpcConnectionsCommand, } from "./commands/ListVpcConnectionsCommand";
@@ -44,6 +48,7 @@ import { UpdateClusterKafkaVersionCommand, } from "./commands/UpdateClusterKafka
44
48
  import { UpdateConfigurationCommand, } from "./commands/UpdateConfigurationCommand";
45
49
  import { UpdateConnectivityCommand, } from "./commands/UpdateConnectivityCommand";
46
50
  import { UpdateMonitoringCommand, } from "./commands/UpdateMonitoringCommand";
51
+ import { UpdateReplicationInfoCommand, } from "./commands/UpdateReplicationInfoCommand";
47
52
  import { UpdateSecurityCommand, } from "./commands/UpdateSecurityCommand";
48
53
  import { UpdateStorageCommand, } from "./commands/UpdateStorageCommand";
49
54
  import { KafkaClient } from "./KafkaClient";
@@ -53,10 +58,12 @@ const commands = {
53
58
  CreateClusterCommand,
54
59
  CreateClusterV2Command,
55
60
  CreateConfigurationCommand,
61
+ CreateReplicatorCommand,
56
62
  CreateVpcConnectionCommand,
57
63
  DeleteClusterCommand,
58
64
  DeleteClusterPolicyCommand,
59
65
  DeleteConfigurationCommand,
66
+ DeleteReplicatorCommand,
60
67
  DeleteVpcConnectionCommand,
61
68
  DescribeClusterCommand,
62
69
  DescribeClusterOperationCommand,
@@ -64,6 +71,7 @@ const commands = {
64
71
  DescribeClusterV2Command,
65
72
  DescribeConfigurationCommand,
66
73
  DescribeConfigurationRevisionCommand,
74
+ DescribeReplicatorCommand,
67
75
  DescribeVpcConnectionCommand,
68
76
  GetBootstrapBrokersCommand,
69
77
  GetClusterPolicyCommand,
@@ -77,6 +85,7 @@ const commands = {
77
85
  ListConfigurationsCommand,
78
86
  ListKafkaVersionsCommand,
79
87
  ListNodesCommand,
88
+ ListReplicatorsCommand,
80
89
  ListScramSecretsCommand,
81
90
  ListTagsForResourceCommand,
82
91
  ListVpcConnectionsCommand,
@@ -93,6 +102,7 @@ const commands = {
93
102
  UpdateConfigurationCommand,
94
103
  UpdateConnectivityCommand,
95
104
  UpdateMonitoringCommand,
105
+ UpdateReplicationInfoCommand,
96
106
  UpdateSecurityCommand,
97
107
  UpdateStorageCommand,
98
108
  };
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_CreateReplicatorCommand, se_CreateReplicatorCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateReplicatorCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateReplicatorCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "KafkaClient";
26
+ const commandName = "CreateReplicatorCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Kafka",
35
+ operation: "CreateReplicator",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_CreateReplicatorCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_CreateReplicatorCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DeleteReplicatorCommand, se_DeleteReplicatorCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteReplicatorCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteReplicatorCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "KafkaClient";
26
+ const commandName = "DeleteReplicatorCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Kafka",
35
+ operation: "DeleteReplicator",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_DeleteReplicatorCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DeleteReplicatorCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DescribeReplicatorCommand, se_DescribeReplicatorCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DescribeReplicatorCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeReplicatorCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "KafkaClient";
26
+ const commandName = "DescribeReplicatorCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Kafka",
35
+ operation: "DescribeReplicator",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_DescribeReplicatorCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DescribeReplicatorCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_ListReplicatorsCommand, se_ListReplicatorsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListReplicatorsCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListReplicatorsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "KafkaClient";
26
+ const commandName = "ListReplicatorsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Kafka",
35
+ operation: "ListReplicators",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_ListReplicatorsCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_ListReplicatorsCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_UpdateReplicationInfoCommand, se_UpdateReplicationInfoCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateReplicationInfoCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateReplicationInfoCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "KafkaClient";
26
+ const commandName = "UpdateReplicationInfoCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "Kafka",
35
+ operation: "UpdateReplicationInfo",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_UpdateReplicationInfoCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_UpdateReplicationInfoCommand(output, context);
46
+ }
47
+ }
@@ -3,10 +3,12 @@ export * from "./BatchDisassociateScramSecretCommand";
3
3
  export * from "./CreateClusterCommand";
4
4
  export * from "./CreateClusterV2Command";
5
5
  export * from "./CreateConfigurationCommand";
6
+ export * from "./CreateReplicatorCommand";
6
7
  export * from "./CreateVpcConnectionCommand";
7
8
  export * from "./DeleteClusterCommand";
8
9
  export * from "./DeleteClusterPolicyCommand";
9
10
  export * from "./DeleteConfigurationCommand";
11
+ export * from "./DeleteReplicatorCommand";
10
12
  export * from "./DeleteVpcConnectionCommand";
11
13
  export * from "./DescribeClusterCommand";
12
14
  export * from "./DescribeClusterOperationCommand";
@@ -14,6 +16,7 @@ export * from "./DescribeClusterOperationV2Command";
14
16
  export * from "./DescribeClusterV2Command";
15
17
  export * from "./DescribeConfigurationCommand";
16
18
  export * from "./DescribeConfigurationRevisionCommand";
19
+ export * from "./DescribeReplicatorCommand";
17
20
  export * from "./DescribeVpcConnectionCommand";
18
21
  export * from "./GetBootstrapBrokersCommand";
19
22
  export * from "./GetClusterPolicyCommand";
@@ -27,6 +30,7 @@ export * from "./ListConfigurationRevisionsCommand";
27
30
  export * from "./ListConfigurationsCommand";
28
31
  export * from "./ListKafkaVersionsCommand";
29
32
  export * from "./ListNodesCommand";
33
+ export * from "./ListReplicatorsCommand";
30
34
  export * from "./ListScramSecretsCommand";
31
35
  export * from "./ListTagsForResourceCommand";
32
36
  export * from "./ListVpcConnectionsCommand";
@@ -43,5 +47,6 @@ export * from "./UpdateClusterKafkaVersionCommand";
43
47
  export * from "./UpdateConfigurationCommand";
44
48
  export * from "./UpdateConnectivityCommand";
45
49
  export * from "./UpdateMonitoringCommand";
50
+ export * from "./UpdateReplicationInfoCommand";
46
51
  export * from "./UpdateSecurityCommand";
47
52
  export * from "./UpdateStorageCommand";
@@ -1,4 +1,4 @@
1
- const s = "required", t = "fn", u = "argv", v = "ref";
2
- 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" }];
3
- 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 }] };
1
+ const u = "required", v = "fn", w = "argv", x = "ref";
2
+ 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" }];
3
+ 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 }] };
4
4
  export const ruleSet = _data;
@@ -57,6 +57,20 @@ export const KafkaVersionStatus = {
57
57
  export const NodeType = {
58
58
  BROKER: "BROKER",
59
59
  };
60
+ export const TargetCompressionType = {
61
+ GZIP: "GZIP",
62
+ LZ4: "LZ4",
63
+ NONE: "NONE",
64
+ SNAPPY: "SNAPPY",
65
+ ZSTD: "ZSTD",
66
+ };
67
+ export const ReplicatorState = {
68
+ CREATING: "CREATING",
69
+ DELETING: "DELETING",
70
+ FAILED: "FAILED",
71
+ RUNNING: "RUNNING",
72
+ UPDATING: "UPDATING",
73
+ };
60
74
  export class BadRequestException extends __BaseException {
61
75
  constructor(opts) {
62
76
  super({
@@ -0,0 +1,25 @@
1
+ import { ListReplicatorsCommand, } from "../commands/ListReplicatorsCommand";
2
+ import { KafkaClient } from "../KafkaClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListReplicatorsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListReplicators(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof KafkaClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected Kafka | KafkaClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -8,5 +8,6 @@ export * from "./ListConfigurationRevisionsPaginator";
8
8
  export * from "./ListConfigurationsPaginator";
9
9
  export * from "./ListKafkaVersionsPaginator";
10
10
  export * from "./ListNodesPaginator";
11
+ export * from "./ListReplicatorsPaginator";
11
12
  export * from "./ListScramSecretsPaginator";
12
13
  export * from "./ListVpcConnectionsPaginator";