@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
@@ -0,0 +1,121 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { KafkaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KafkaClient";
5
+ import { ListReplicatorsRequest, ListReplicatorsResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListReplicatorsCommand}.
14
+ */
15
+ export interface ListReplicatorsCommandInput extends ListReplicatorsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListReplicatorsCommand}.
21
+ */
22
+ export interface ListReplicatorsCommandOutput extends ListReplicatorsResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Lists the replicators.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { KafkaClient, ListReplicatorsCommand } from "@aws-sdk/client-kafka"; // ES Modules import
31
+ * // const { KafkaClient, ListReplicatorsCommand } = require("@aws-sdk/client-kafka"); // CommonJS import
32
+ * const client = new KafkaClient(config);
33
+ * const input = { // ListReplicatorsRequest
34
+ * MaxResults: Number("int"),
35
+ * NextToken: "STRING_VALUE",
36
+ * ReplicatorNameFilter: "STRING_VALUE",
37
+ * };
38
+ * const command = new ListReplicatorsCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // ListReplicatorsResponse
41
+ * // NextToken: "STRING_VALUE",
42
+ * // Replicators: [ // __listOfReplicatorSummary
43
+ * // { // ReplicatorSummary
44
+ * // CreationTime: new Date("TIMESTAMP"),
45
+ * // CurrentVersion: "STRING_VALUE",
46
+ * // IsReplicatorReference: true || false,
47
+ * // KafkaClustersSummary: [ // __listOfKafkaClusterSummary
48
+ * // { // KafkaClusterSummary
49
+ * // AmazonMskCluster: { // AmazonMskCluster
50
+ * // MskClusterArn: "STRING_VALUE", // required
51
+ * // },
52
+ * // KafkaClusterAlias: "STRING_VALUE",
53
+ * // },
54
+ * // ],
55
+ * // ReplicationInfoSummaryList: [ // __listOfReplicationInfoSummary
56
+ * // { // ReplicationInfoSummary
57
+ * // SourceKafkaClusterAlias: "STRING_VALUE",
58
+ * // TargetKafkaClusterAlias: "STRING_VALUE",
59
+ * // },
60
+ * // ],
61
+ * // ReplicatorArn: "STRING_VALUE",
62
+ * // ReplicatorName: "STRING_VALUE",
63
+ * // ReplicatorResourceArn: "STRING_VALUE",
64
+ * // ReplicatorState: "RUNNING" || "CREATING" || "UPDATING" || "DELETING" || "FAILED",
65
+ * // },
66
+ * // ],
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param ListReplicatorsCommandInput - {@link ListReplicatorsCommandInput}
72
+ * @returns {@link ListReplicatorsCommandOutput}
73
+ * @see {@link ListReplicatorsCommandInput} for command's `input` shape.
74
+ * @see {@link ListReplicatorsCommandOutput} for command's `response` shape.
75
+ * @see {@link KafkaClientResolvedConfig | config} for KafkaClient's `config` shape.
76
+ *
77
+ * @throws {@link BadRequestException} (client fault)
78
+ * <p>Returns information about an error.</p>
79
+ *
80
+ * @throws {@link ForbiddenException} (client fault)
81
+ * <p>Returns information about an error.</p>
82
+ *
83
+ * @throws {@link InternalServerErrorException} (server fault)
84
+ * <p>Returns information about an error.</p>
85
+ *
86
+ * @throws {@link NotFoundException} (client fault)
87
+ * <p>Returns information about an error.</p>
88
+ *
89
+ * @throws {@link ServiceUnavailableException} (server fault)
90
+ * <p>Returns information about an error.</p>
91
+ *
92
+ * @throws {@link TooManyRequestsException} (client fault)
93
+ * <p>Returns information about an error.</p>
94
+ *
95
+ * @throws {@link UnauthorizedException} (client fault)
96
+ * <p>Returns information about an error.</p>
97
+ *
98
+ * @throws {@link KafkaServiceException}
99
+ * <p>Base exception class for all service exceptions from Kafka service.</p>
100
+ *
101
+ */
102
+ export declare class ListReplicatorsCommand extends $Command<ListReplicatorsCommandInput, ListReplicatorsCommandOutput, KafkaClientResolvedConfig> {
103
+ readonly input: ListReplicatorsCommandInput;
104
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
105
+ /**
106
+ * @public
107
+ */
108
+ constructor(input: ListReplicatorsCommandInput);
109
+ /**
110
+ * @internal
111
+ */
112
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListReplicatorsCommandInput, ListReplicatorsCommandOutput>;
113
+ /**
114
+ * @internal
115
+ */
116
+ private serialize;
117
+ /**
118
+ * @internal
119
+ */
120
+ private deserialize;
121
+ }
@@ -0,0 +1,119 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { KafkaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KafkaClient";
5
+ import { UpdateReplicationInfoRequest, UpdateReplicationInfoResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateReplicationInfoCommand}.
14
+ */
15
+ export interface UpdateReplicationInfoCommandInput extends UpdateReplicationInfoRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateReplicationInfoCommand}.
21
+ */
22
+ export interface UpdateReplicationInfoCommandOutput extends UpdateReplicationInfoResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Updates replication info of a replicator.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { KafkaClient, UpdateReplicationInfoCommand } from "@aws-sdk/client-kafka"; // ES Modules import
31
+ * // const { KafkaClient, UpdateReplicationInfoCommand } = require("@aws-sdk/client-kafka"); // CommonJS import
32
+ * const client = new KafkaClient(config);
33
+ * const input = { // UpdateReplicationInfoRequest
34
+ * ConsumerGroupReplication: { // ConsumerGroupReplicationUpdate
35
+ * ConsumerGroupsToExclude: [ // __listOf__stringMax256 // required
36
+ * "STRING_VALUE",
37
+ * ],
38
+ * ConsumerGroupsToReplicate: [ // required
39
+ * "STRING_VALUE",
40
+ * ],
41
+ * DetectAndCopyNewConsumerGroups: true || false, // required
42
+ * SynchroniseConsumerGroupOffsets: true || false, // required
43
+ * },
44
+ * CurrentVersion: "STRING_VALUE", // required
45
+ * ReplicatorArn: "STRING_VALUE", // required
46
+ * SourceKafkaClusterArn: "STRING_VALUE", // required
47
+ * TargetKafkaClusterArn: "STRING_VALUE", // required
48
+ * TopicReplication: { // TopicReplicationUpdate
49
+ * CopyAccessControlListsForTopics: true || false, // required
50
+ * CopyTopicConfigurations: true || false, // required
51
+ * DetectAndCopyNewTopics: true || false, // required
52
+ * TopicsToExclude: [ // __listOf__stringMax249 // required
53
+ * "STRING_VALUE",
54
+ * ],
55
+ * TopicsToReplicate: [ // required
56
+ * "STRING_VALUE",
57
+ * ],
58
+ * },
59
+ * };
60
+ * const command = new UpdateReplicationInfoCommand(input);
61
+ * const response = await client.send(command);
62
+ * // { // UpdateReplicationInfoResponse
63
+ * // ReplicatorArn: "STRING_VALUE",
64
+ * // ReplicatorState: "RUNNING" || "CREATING" || "UPDATING" || "DELETING" || "FAILED",
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param UpdateReplicationInfoCommandInput - {@link UpdateReplicationInfoCommandInput}
70
+ * @returns {@link UpdateReplicationInfoCommandOutput}
71
+ * @see {@link UpdateReplicationInfoCommandInput} for command's `input` shape.
72
+ * @see {@link UpdateReplicationInfoCommandOutput} for command's `response` shape.
73
+ * @see {@link KafkaClientResolvedConfig | config} for KafkaClient's `config` shape.
74
+ *
75
+ * @throws {@link BadRequestException} (client fault)
76
+ * <p>Returns information about an error.</p>
77
+ *
78
+ * @throws {@link ForbiddenException} (client fault)
79
+ * <p>Returns information about an error.</p>
80
+ *
81
+ * @throws {@link InternalServerErrorException} (server fault)
82
+ * <p>Returns information about an error.</p>
83
+ *
84
+ * @throws {@link NotFoundException} (client fault)
85
+ * <p>Returns information about an error.</p>
86
+ *
87
+ * @throws {@link ServiceUnavailableException} (server fault)
88
+ * <p>Returns information about an error.</p>
89
+ *
90
+ * @throws {@link TooManyRequestsException} (client fault)
91
+ * <p>Returns information about an error.</p>
92
+ *
93
+ * @throws {@link UnauthorizedException} (client fault)
94
+ * <p>Returns information about an error.</p>
95
+ *
96
+ * @throws {@link KafkaServiceException}
97
+ * <p>Base exception class for all service exceptions from Kafka service.</p>
98
+ *
99
+ */
100
+ export declare class UpdateReplicationInfoCommand extends $Command<UpdateReplicationInfoCommandInput, UpdateReplicationInfoCommandOutput, KafkaClientResolvedConfig> {
101
+ readonly input: UpdateReplicationInfoCommandInput;
102
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
103
+ /**
104
+ * @public
105
+ */
106
+ constructor(input: UpdateReplicationInfoCommandInput);
107
+ /**
108
+ * @internal
109
+ */
110
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateReplicationInfoCommandInput, UpdateReplicationInfoCommandOutput>;
111
+ /**
112
+ * @internal
113
+ */
114
+ private serialize;
115
+ /**
116
+ * @internal
117
+ */
118
+ private deserialize;
119
+ }
@@ -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";