@aws-sdk/client-kafka 3.321.1 → 3.322.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 (75) hide show
  1. package/README.md +72 -0
  2. package/dist-cjs/Kafka.js +18 -0
  3. package/dist-cjs/commands/CreateVpcConnectionCommand.js +45 -0
  4. package/dist-cjs/commands/DeleteClusterPolicyCommand.js +45 -0
  5. package/dist-cjs/commands/DeleteVpcConnectionCommand.js +45 -0
  6. package/dist-cjs/commands/DescribeVpcConnectionCommand.js +45 -0
  7. package/dist-cjs/commands/GetClusterPolicyCommand.js +45 -0
  8. package/dist-cjs/commands/ListClientVpcConnectionsCommand.js +45 -0
  9. package/dist-cjs/commands/ListVpcConnectionsCommand.js +45 -0
  10. package/dist-cjs/commands/PutClusterPolicyCommand.js +45 -0
  11. package/dist-cjs/commands/RejectClientVpcConnectionCommand.js +45 -0
  12. package/dist-cjs/commands/index.js +9 -0
  13. package/dist-cjs/endpoint/ruleset.js +3 -3
  14. package/dist-cjs/models/models_0.js +15 -1
  15. package/dist-cjs/pagination/ListClientVpcConnectionsPaginator.js +29 -0
  16. package/dist-cjs/pagination/ListVpcConnectionsPaginator.js +29 -0
  17. package/dist-cjs/pagination/index.js +2 -0
  18. package/dist-cjs/protocols/Aws_restJson1.js +769 -48
  19. package/dist-es/Kafka.js +18 -0
  20. package/dist-es/commands/CreateVpcConnectionCommand.js +41 -0
  21. package/dist-es/commands/DeleteClusterPolicyCommand.js +41 -0
  22. package/dist-es/commands/DeleteVpcConnectionCommand.js +41 -0
  23. package/dist-es/commands/DescribeVpcConnectionCommand.js +41 -0
  24. package/dist-es/commands/GetClusterPolicyCommand.js +41 -0
  25. package/dist-es/commands/ListClientVpcConnectionsCommand.js +41 -0
  26. package/dist-es/commands/ListVpcConnectionsCommand.js +41 -0
  27. package/dist-es/commands/PutClusterPolicyCommand.js +41 -0
  28. package/dist-es/commands/RejectClientVpcConnectionCommand.js +41 -0
  29. package/dist-es/commands/index.js +9 -0
  30. package/dist-es/endpoint/ruleset.js +3 -3
  31. package/dist-es/models/models_0.js +14 -0
  32. package/dist-es/pagination/ListClientVpcConnectionsPaginator.js +25 -0
  33. package/dist-es/pagination/ListVpcConnectionsPaginator.js +25 -0
  34. package/dist-es/pagination/index.js +2 -0
  35. package/dist-es/protocols/Aws_restJson1.js +747 -44
  36. package/dist-types/Kafka.d.ts +63 -0
  37. package/dist-types/KafkaClient.d.ts +11 -2
  38. package/dist-types/commands/CreateClusterCommand.d.ts +18 -0
  39. package/dist-types/commands/CreateClusterV2Command.d.ts +19 -3
  40. package/dist-types/commands/CreateVpcConnectionCommand.d.ts +92 -0
  41. package/dist-types/commands/DeleteClusterPolicyCommand.d.ts +75 -0
  42. package/dist-types/commands/DeleteVpcConnectionCommand.d.ts +75 -0
  43. package/dist-types/commands/DescribeVpcConnectionCommand.d.ts +81 -0
  44. package/dist-types/commands/GetClusterPolicyCommand.d.ts +75 -0
  45. package/dist-types/commands/ListClientVpcConnectionsCommand.d.ts +80 -0
  46. package/dist-types/commands/ListVpcConnectionsCommand.d.ts +79 -0
  47. package/dist-types/commands/PutClusterPolicyCommand.d.ts +74 -0
  48. package/dist-types/commands/RejectClientVpcConnectionCommand.d.ts +79 -0
  49. package/dist-types/commands/UpdateConnectivityCommand.d.ts +15 -0
  50. package/dist-types/commands/index.d.ts +9 -0
  51. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  52. package/dist-types/models/models_0.d.ts +492 -0
  53. package/dist-types/pagination/ListClientVpcConnectionsPaginator.d.ts +7 -0
  54. package/dist-types/pagination/ListVpcConnectionsPaginator.d.ts +7 -0
  55. package/dist-types/pagination/index.d.ts +2 -0
  56. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  57. package/dist-types/ts3.4/Kafka.d.ts +153 -0
  58. package/dist-types/ts3.4/KafkaClient.d.ts +54 -0
  59. package/dist-types/ts3.4/commands/CreateVpcConnectionCommand.d.ts +38 -0
  60. package/dist-types/ts3.4/commands/DeleteClusterPolicyCommand.d.ts +38 -0
  61. package/dist-types/ts3.4/commands/DeleteVpcConnectionCommand.d.ts +38 -0
  62. package/dist-types/ts3.4/commands/DescribeVpcConnectionCommand.d.ts +41 -0
  63. package/dist-types/ts3.4/commands/GetClusterPolicyCommand.d.ts +37 -0
  64. package/dist-types/ts3.4/commands/ListClientVpcConnectionsCommand.d.ts +41 -0
  65. package/dist-types/ts3.4/commands/ListVpcConnectionsCommand.d.ts +38 -0
  66. package/dist-types/ts3.4/commands/PutClusterPolicyCommand.d.ts +37 -0
  67. package/dist-types/ts3.4/commands/RejectClientVpcConnectionCommand.d.ts +41 -0
  68. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  69. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  70. package/dist-types/ts3.4/models/models_0.d.ts +149 -0
  71. package/dist-types/ts3.4/pagination/ListClientVpcConnectionsPaginator.d.ts +11 -0
  72. package/dist-types/ts3.4/pagination/ListVpcConnectionsPaginator.d.ts +11 -0
  73. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  74. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  75. package/package.json +1 -1
package/dist-es/Kafka.js CHANGED
@@ -4,15 +4,21 @@ 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 { CreateVpcConnectionCommand, } from "./commands/CreateVpcConnectionCommand";
7
8
  import { DeleteClusterCommand, } from "./commands/DeleteClusterCommand";
9
+ import { DeleteClusterPolicyCommand, } from "./commands/DeleteClusterPolicyCommand";
8
10
  import { DeleteConfigurationCommand, } from "./commands/DeleteConfigurationCommand";
11
+ import { DeleteVpcConnectionCommand, } from "./commands/DeleteVpcConnectionCommand";
9
12
  import { DescribeClusterCommand, } from "./commands/DescribeClusterCommand";
10
13
  import { DescribeClusterOperationCommand, } from "./commands/DescribeClusterOperationCommand";
11
14
  import { DescribeClusterV2Command, } from "./commands/DescribeClusterV2Command";
12
15
  import { DescribeConfigurationCommand, } from "./commands/DescribeConfigurationCommand";
13
16
  import { DescribeConfigurationRevisionCommand, } from "./commands/DescribeConfigurationRevisionCommand";
17
+ import { DescribeVpcConnectionCommand, } from "./commands/DescribeVpcConnectionCommand";
14
18
  import { GetBootstrapBrokersCommand, } from "./commands/GetBootstrapBrokersCommand";
19
+ import { GetClusterPolicyCommand, } from "./commands/GetClusterPolicyCommand";
15
20
  import { GetCompatibleKafkaVersionsCommand, } from "./commands/GetCompatibleKafkaVersionsCommand";
21
+ import { ListClientVpcConnectionsCommand, } from "./commands/ListClientVpcConnectionsCommand";
16
22
  import { ListClusterOperationsCommand, } from "./commands/ListClusterOperationsCommand";
17
23
  import { ListClustersCommand, } from "./commands/ListClustersCommand";
18
24
  import { ListClustersV2Command, } from "./commands/ListClustersV2Command";
@@ -22,7 +28,10 @@ import { ListKafkaVersionsCommand, } from "./commands/ListKafkaVersionsCommand";
22
28
  import { ListNodesCommand } from "./commands/ListNodesCommand";
23
29
  import { ListScramSecretsCommand, } from "./commands/ListScramSecretsCommand";
24
30
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
31
+ import { ListVpcConnectionsCommand, } from "./commands/ListVpcConnectionsCommand";
32
+ import { PutClusterPolicyCommand, } from "./commands/PutClusterPolicyCommand";
25
33
  import { RebootBrokerCommand, } from "./commands/RebootBrokerCommand";
34
+ import { RejectClientVpcConnectionCommand, } from "./commands/RejectClientVpcConnectionCommand";
26
35
  import { TagResourceCommand } from "./commands/TagResourceCommand";
27
36
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
28
37
  import { UpdateBrokerCountCommand, } from "./commands/UpdateBrokerCountCommand";
@@ -42,15 +51,21 @@ const commands = {
42
51
  CreateClusterCommand,
43
52
  CreateClusterV2Command,
44
53
  CreateConfigurationCommand,
54
+ CreateVpcConnectionCommand,
45
55
  DeleteClusterCommand,
56
+ DeleteClusterPolicyCommand,
46
57
  DeleteConfigurationCommand,
58
+ DeleteVpcConnectionCommand,
47
59
  DescribeClusterCommand,
48
60
  DescribeClusterOperationCommand,
49
61
  DescribeClusterV2Command,
50
62
  DescribeConfigurationCommand,
51
63
  DescribeConfigurationRevisionCommand,
64
+ DescribeVpcConnectionCommand,
52
65
  GetBootstrapBrokersCommand,
66
+ GetClusterPolicyCommand,
53
67
  GetCompatibleKafkaVersionsCommand,
68
+ ListClientVpcConnectionsCommand,
54
69
  ListClusterOperationsCommand,
55
70
  ListClustersCommand,
56
71
  ListClustersV2Command,
@@ -60,7 +75,10 @@ const commands = {
60
75
  ListNodesCommand,
61
76
  ListScramSecretsCommand,
62
77
  ListTagsForResourceCommand,
78
+ ListVpcConnectionsCommand,
79
+ PutClusterPolicyCommand,
63
80
  RebootBrokerCommand,
81
+ RejectClientVpcConnectionCommand,
64
82
  TagResourceCommand,
65
83
  UntagResourceCommand,
66
84
  UpdateBrokerCountCommand,
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_CreateVpcConnectionCommand, se_CreateVpcConnectionCommand } from "../protocols/Aws_restJson1";
5
+ export class CreateVpcConnectionCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateVpcConnectionCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "KafkaClient";
24
+ const commandName = "CreateVpcConnectionCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_CreateVpcConnectionCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_CreateVpcConnectionCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_DeleteClusterPolicyCommand, se_DeleteClusterPolicyCommand } from "../protocols/Aws_restJson1";
5
+ export class DeleteClusterPolicyCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteClusterPolicyCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "KafkaClient";
24
+ const commandName = "DeleteClusterPolicyCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_DeleteClusterPolicyCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_DeleteClusterPolicyCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_DeleteVpcConnectionCommand, se_DeleteVpcConnectionCommand } from "../protocols/Aws_restJson1";
5
+ export class DeleteVpcConnectionCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteVpcConnectionCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "KafkaClient";
24
+ const commandName = "DeleteVpcConnectionCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_DeleteVpcConnectionCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_DeleteVpcConnectionCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_DescribeVpcConnectionCommand, se_DescribeVpcConnectionCommand } from "../protocols/Aws_restJson1";
5
+ export class DescribeVpcConnectionCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeVpcConnectionCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "KafkaClient";
24
+ const commandName = "DescribeVpcConnectionCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_DescribeVpcConnectionCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_DescribeVpcConnectionCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_GetClusterPolicyCommand, se_GetClusterPolicyCommand } from "../protocols/Aws_restJson1";
5
+ export class GetClusterPolicyCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetClusterPolicyCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "KafkaClient";
24
+ const commandName = "GetClusterPolicyCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_GetClusterPolicyCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_GetClusterPolicyCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_ListClientVpcConnectionsCommand, se_ListClientVpcConnectionsCommand } from "../protocols/Aws_restJson1";
5
+ export class ListClientVpcConnectionsCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListClientVpcConnectionsCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "KafkaClient";
24
+ const commandName = "ListClientVpcConnectionsCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_ListClientVpcConnectionsCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_ListClientVpcConnectionsCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_ListVpcConnectionsCommand, se_ListVpcConnectionsCommand } from "../protocols/Aws_restJson1";
5
+ export class ListVpcConnectionsCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListVpcConnectionsCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "KafkaClient";
24
+ const commandName = "ListVpcConnectionsCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_ListVpcConnectionsCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_ListVpcConnectionsCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_PutClusterPolicyCommand, se_PutClusterPolicyCommand } from "../protocols/Aws_restJson1";
5
+ export class PutClusterPolicyCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, PutClusterPolicyCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "KafkaClient";
24
+ const commandName = "PutClusterPolicyCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_PutClusterPolicyCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_PutClusterPolicyCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_RejectClientVpcConnectionCommand, se_RejectClientVpcConnectionCommand } from "../protocols/Aws_restJson1";
5
+ export class RejectClientVpcConnectionCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, RejectClientVpcConnectionCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "KafkaClient";
24
+ const commandName = "RejectClientVpcConnectionCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_RejectClientVpcConnectionCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_RejectClientVpcConnectionCommand(output, context);
40
+ }
41
+ }
@@ -3,15 +3,21 @@ export * from "./BatchDisassociateScramSecretCommand";
3
3
  export * from "./CreateClusterCommand";
4
4
  export * from "./CreateClusterV2Command";
5
5
  export * from "./CreateConfigurationCommand";
6
+ export * from "./CreateVpcConnectionCommand";
6
7
  export * from "./DeleteClusterCommand";
8
+ export * from "./DeleteClusterPolicyCommand";
7
9
  export * from "./DeleteConfigurationCommand";
10
+ export * from "./DeleteVpcConnectionCommand";
8
11
  export * from "./DescribeClusterCommand";
9
12
  export * from "./DescribeClusterOperationCommand";
10
13
  export * from "./DescribeClusterV2Command";
11
14
  export * from "./DescribeConfigurationCommand";
12
15
  export * from "./DescribeConfigurationRevisionCommand";
16
+ export * from "./DescribeVpcConnectionCommand";
13
17
  export * from "./GetBootstrapBrokersCommand";
18
+ export * from "./GetClusterPolicyCommand";
14
19
  export * from "./GetCompatibleKafkaVersionsCommand";
20
+ export * from "./ListClientVpcConnectionsCommand";
15
21
  export * from "./ListClusterOperationsCommand";
16
22
  export * from "./ListClustersCommand";
17
23
  export * from "./ListClustersV2Command";
@@ -21,7 +27,10 @@ export * from "./ListKafkaVersionsCommand";
21
27
  export * from "./ListNodesCommand";
22
28
  export * from "./ListScramSecretsCommand";
23
29
  export * from "./ListTagsForResourceCommand";
30
+ export * from "./ListVpcConnectionsCommand";
31
+ export * from "./PutClusterPolicyCommand";
24
32
  export * from "./RebootBrokerCommand";
33
+ export * from "./RejectClientVpcConnectionCommand";
25
34
  export * from "./TagResourceCommand";
26
35
  export * from "./UntagResourceCommand";
27
36
  export * from "./UpdateBrokerCountCommand";
@@ -1,4 +1,4 @@
1
- const s = "fn", t = "argv", u = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = "getAttr", i = { "required": true, "default": false, "type": "Boolean" }, j = { [u]: "Endpoint" }, k = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, l = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, m = {}, n = { [s]: "booleanEquals", [t]: [true, { [s]: h, [t]: [{ [u]: d }, "supportsFIPS"] }] }, o = { [u]: d }, p = { [s]: "booleanEquals", [t]: [true, { [s]: h, [t]: [o, "supportsDualStack"] }] }, q = [k], r = [l];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: i, UseFIPS: i, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [s]: "aws.partition", [t]: [{ [u]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [s]: "isSet", [t]: [j] }], type: e, rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: j, properties: m, headers: m }, type: g }] }] }, { conditions: [k, l], type: e, rules: [{ conditions: [n, p], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://kafka-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ conditions: [{ [s]: "stringEquals", [t]: ["aws-us-gov", { [s]: h, [t]: [o, "name"] }] }], endpoint: { url: "https://kafka.{Region}.amazonaws.com", properties: m, headers: m }, type: g }, { endpoint: { url: "https://kafka-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: r, type: e, rules: [{ conditions: [p], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://kafka.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://kafka.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }] };
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 }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ 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: [{ 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: [{ 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: [{ 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 }] }, { type: b, rules: [{ endpoint: { url: "https://kafka.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -1,4 +1,14 @@
1
1
  import { KafkaServiceException as __BaseException } from "./KafkaServiceException";
2
+ export const VpcConnectionState = {
3
+ AVAILABLE: "AVAILABLE",
4
+ CREATING: "CREATING",
5
+ DEACTIVATING: "DEACTIVATING",
6
+ DELETING: "DELETING",
7
+ FAILED: "FAILED",
8
+ INACTIVE: "INACTIVE",
9
+ REJECTED: "REJECTED",
10
+ REJECTING: "REJECTING",
11
+ };
2
12
  export const ClusterType = {
3
13
  PROVISIONED: "PROVISIONED",
4
14
  SERVERLESS: "SERVERLESS",
@@ -31,6 +41,10 @@ export const ClusterState = {
31
41
  REBOOTING_BROKER: "REBOOTING_BROKER",
32
42
  UPDATING: "UPDATING",
33
43
  };
44
+ export const UserIdentityType = {
45
+ AWSACCOUNT: "AWSACCOUNT",
46
+ AWSSERVICE: "AWSSERVICE",
47
+ };
34
48
  export const ConfigurationState = {
35
49
  ACTIVE: "ACTIVE",
36
50
  DELETE_FAILED: "DELETE_FAILED",
@@ -0,0 +1,25 @@
1
+ import { ListClientVpcConnectionsCommand, } from "../commands/ListClientVpcConnectionsCommand";
2
+ import { KafkaClient } from "../KafkaClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListClientVpcConnectionsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListClientVpcConnections(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
+ }
@@ -0,0 +1,25 @@
1
+ import { ListVpcConnectionsCommand, } from "../commands/ListVpcConnectionsCommand";
2
+ import { KafkaClient } from "../KafkaClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListVpcConnectionsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListVpcConnections(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
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./Interfaces";
2
+ export * from "./ListClientVpcConnectionsPaginator";
2
3
  export * from "./ListClusterOperationsPaginator";
3
4
  export * from "./ListClustersPaginator";
4
5
  export * from "./ListClustersV2Paginator";
@@ -7,3 +8,4 @@ export * from "./ListConfigurationsPaginator";
7
8
  export * from "./ListKafkaVersionsPaginator";
8
9
  export * from "./ListNodesPaginator";
9
10
  export * from "./ListScramSecretsPaginator";
11
+ export * from "./ListVpcConnectionsPaginator";