@aws-sdk/client-kafka 3.1097.0 → 3.1099.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 (34) hide show
  1. package/README.md +35 -0
  2. package/dist-cjs/index.js +535 -151
  3. package/dist-es/Kafka.js +10 -0
  4. package/dist-es/commands/CreateChannelCommand.js +4 -0
  5. package/dist-es/commands/DeleteChannelCommand.js +4 -0
  6. package/dist-es/commands/DescribeChannelCommand.js +4 -0
  7. package/dist-es/commands/ListChannelsCommand.js +4 -0
  8. package/dist-es/commands/UpdateChannelCommand.js +4 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/enums.js +36 -0
  11. package/dist-es/schemas/schemas_0.js +432 -150
  12. package/dist-types/Kafka.d.ts +35 -0
  13. package/dist-types/KafkaClient.d.ts +7 -2
  14. package/dist-types/commands/CreateChannelCommand.d.ts +181 -0
  15. package/dist-types/commands/DeleteChannelCommand.d.ts +94 -0
  16. package/dist-types/commands/DescribeChannelCommand.d.ts +186 -0
  17. package/dist-types/commands/ListChannelsCommand.d.ts +105 -0
  18. package/dist-types/commands/UpdateChannelCommand.d.ts +100 -0
  19. package/dist-types/commands/index.d.ts +5 -0
  20. package/dist-types/models/enums.d.ts +92 -0
  21. package/dist-types/models/models_0.d.ts +632 -1
  22. package/dist-types/schemas/schemas_0.d.ts +34 -0
  23. package/dist-types/ts3.4/Kafka.d.ts +85 -0
  24. package/dist-types/ts3.4/KafkaClient.d.ts +30 -0
  25. package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +38 -0
  26. package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +38 -0
  27. package/dist-types/ts3.4/commands/DescribeChannelCommand.d.ts +38 -0
  28. package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +38 -0
  29. package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +38 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  31. package/dist-types/ts3.4/models/enums.d.ts +45 -0
  32. package/dist-types/ts3.4/models/models_0.d.ts +157 -0
  33. package/dist-types/ts3.4/schemas/schemas_0.d.ts +34 -0
  34. package/package.json +6 -6
@@ -0,0 +1,105 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListChannelsRequest, ListChannelsResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListChannelsCommand}.
11
+ */
12
+ export interface ListChannelsCommandInput extends ListChannelsRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListChannelsCommand}.
18
+ */
19
+ export interface ListChannelsCommandOutput extends ListChannelsResponse, __MetadataBearer {
20
+ }
21
+ declare const ListChannelsCommand_base: {
22
+ new (input: ListChannelsCommandInput): import("@smithy/core/client").CommandImpl<ListChannelsCommandInput, ListChannelsCommandOutput, import("..").KafkaClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListChannelsCommandInput): import("@smithy/core/client").CommandImpl<ListChannelsCommandInput, ListChannelsCommandOutput, import("..").KafkaClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Returns the list of channels in a cluster.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { KafkaClient, ListChannelsCommand } from "@aws-sdk/client-kafka"; // ES Modules import
32
+ * // const { KafkaClient, ListChannelsCommand } = require("@aws-sdk/client-kafka"); // CommonJS import
33
+ * // import type { KafkaClientConfig } from "@aws-sdk/client-kafka";
34
+ * const config = {}; // type is KafkaClientConfig
35
+ * const client = new KafkaClient(config);
36
+ * const input = { // ListChannelsRequest
37
+ * ClusterArn: "STRING_VALUE", // required
38
+ * MaxResults: Number("int"),
39
+ * NextToken: "STRING_VALUE",
40
+ * TopicNameFilter: "STRING_VALUE",
41
+ * };
42
+ * const command = new ListChannelsCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListChannelsResponse
45
+ * // Channels: [ // __listOfChannelInfo
46
+ * // { // ChannelInfo
47
+ * // ChannelArn: "STRING_VALUE", // required
48
+ * // ChannelName: "STRING_VALUE", // required
49
+ * // Status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "FAILED" || "SUSPENDING" || "SUSPENDED", // required
50
+ * // CreationTime: new Date("TIMESTAMP"), // required
51
+ * // DestinationType: "ICEBERG" || "S3", // required
52
+ * // ClusterOperationArn: "STRING_VALUE",
53
+ * // },
54
+ * // ],
55
+ * // NextToken: "STRING_VALUE",
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param ListChannelsCommandInput - {@link ListChannelsCommandInput}
61
+ * @returns {@link ListChannelsCommandOutput}
62
+ * @see {@link ListChannelsCommandInput} for command's `input` shape.
63
+ * @see {@link ListChannelsCommandOutput} for command's `response` shape.
64
+ * @see {@link KafkaClientResolvedConfig | config} for KafkaClient's `config` shape.
65
+ *
66
+ * @throws {@link BadRequestException} (client fault)
67
+ * <p>Returns information about an error.</p>
68
+ *
69
+ * @throws {@link ForbiddenException} (client fault)
70
+ * <p>Returns information about an error.</p>
71
+ *
72
+ * @throws {@link InternalServerErrorException} (server fault)
73
+ * <p>Returns information about an error.</p>
74
+ *
75
+ * @throws {@link NotFoundException} (client fault)
76
+ * <p>Returns information about an error.</p>
77
+ *
78
+ * @throws {@link ServiceUnavailableException} (server fault)
79
+ * <p>Returns information about an error.</p>
80
+ *
81
+ * @throws {@link TooManyRequestsException} (client fault)
82
+ * <p>Returns information about an error.</p>
83
+ *
84
+ * @throws {@link UnauthorizedException} (client fault)
85
+ * <p>Returns information about an error.</p>
86
+ *
87
+ * @throws {@link KafkaServiceException}
88
+ * <p>Base exception class for all service exceptions from Kafka service.</p>
89
+ *
90
+ *
91
+ * @public
92
+ */
93
+ export declare class ListChannelsCommand extends ListChannelsCommand_base {
94
+ /** @internal type navigation helper, not in runtime. */
95
+ protected static __types: {
96
+ api: {
97
+ input: ListChannelsRequest;
98
+ output: ListChannelsResponse;
99
+ };
100
+ sdk: {
101
+ input: ListChannelsCommandInput;
102
+ output: ListChannelsCommandOutput;
103
+ };
104
+ };
105
+ }
@@ -0,0 +1,100 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { UpdateChannelRequest, UpdateChannelResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link UpdateChannelCommand}.
11
+ */
12
+ export interface UpdateChannelCommandInput extends UpdateChannelRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link UpdateChannelCommand}.
18
+ */
19
+ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __MetadataBearer {
20
+ }
21
+ declare const UpdateChannelCommand_base: {
22
+ new (input: UpdateChannelCommandInput): import("@smithy/core/client").CommandImpl<UpdateChannelCommandInput, UpdateChannelCommandOutput, import("..").KafkaClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: UpdateChannelCommandInput): import("@smithy/core/client").CommandImpl<UpdateChannelCommandInput, UpdateChannelCommandOutput, import("..").KafkaClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Updates the destination configuration of an existing channel. Exactly one of icebergDestinationUpdate or s3DestinationUpdate must be supplied.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { KafkaClient, UpdateChannelCommand } from "@aws-sdk/client-kafka"; // ES Modules import
32
+ * // const { KafkaClient, UpdateChannelCommand } = require("@aws-sdk/client-kafka"); // CommonJS import
33
+ * // import type { KafkaClientConfig } from "@aws-sdk/client-kafka";
34
+ * const config = {}; // type is KafkaClientConfig
35
+ * const client = new KafkaClient(config);
36
+ * const input = { // UpdateChannelRequest
37
+ * ChannelArn: "STRING_VALUE", // required
38
+ * ClusterArn: "STRING_VALUE", // required
39
+ * IcebergDestinationUpdate: { // IcebergDestinationUpdate
40
+ * DataFreshnessInSeconds: Number("int"), // required
41
+ * },
42
+ * S3DestinationUpdate: { // S3DestinationUpdate
43
+ * DataFreshnessInSeconds: Number("int"), // required
44
+ * },
45
+ * };
46
+ * const command = new UpdateChannelCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // UpdateChannelResponse
49
+ * // ChannelArn: "STRING_VALUE", // required
50
+ * // ClusterOperationArn: "STRING_VALUE",
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param UpdateChannelCommandInput - {@link UpdateChannelCommandInput}
56
+ * @returns {@link UpdateChannelCommandOutput}
57
+ * @see {@link UpdateChannelCommandInput} for command's `input` shape.
58
+ * @see {@link UpdateChannelCommandOutput} for command's `response` shape.
59
+ * @see {@link KafkaClientResolvedConfig | config} for KafkaClient's `config` shape.
60
+ *
61
+ * @throws {@link BadRequestException} (client fault)
62
+ * <p>Returns information about an error.</p>
63
+ *
64
+ * @throws {@link ForbiddenException} (client fault)
65
+ * <p>Returns information about an error.</p>
66
+ *
67
+ * @throws {@link InternalServerErrorException} (server fault)
68
+ * <p>Returns information about an error.</p>
69
+ *
70
+ * @throws {@link NotFoundException} (client fault)
71
+ * <p>Returns information about an error.</p>
72
+ *
73
+ * @throws {@link ServiceUnavailableException} (server fault)
74
+ * <p>Returns information about an error.</p>
75
+ *
76
+ * @throws {@link TooManyRequestsException} (client fault)
77
+ * <p>Returns information about an error.</p>
78
+ *
79
+ * @throws {@link UnauthorizedException} (client fault)
80
+ * <p>Returns information about an error.</p>
81
+ *
82
+ * @throws {@link KafkaServiceException}
83
+ * <p>Base exception class for all service exceptions from Kafka service.</p>
84
+ *
85
+ *
86
+ * @public
87
+ */
88
+ export declare class UpdateChannelCommand extends UpdateChannelCommand_base {
89
+ /** @internal type navigation helper, not in runtime. */
90
+ protected static __types: {
91
+ api: {
92
+ input: UpdateChannelRequest;
93
+ output: UpdateChannelResponse;
94
+ };
95
+ sdk: {
96
+ input: UpdateChannelCommandInput;
97
+ output: UpdateChannelCommandOutput;
98
+ };
99
+ };
100
+ }
@@ -1,17 +1,20 @@
1
1
  export * from "./BatchAssociateScramSecretCommand";
2
2
  export * from "./BatchDisassociateScramSecretCommand";
3
+ export * from "./CreateChannelCommand";
3
4
  export * from "./CreateClusterCommand";
4
5
  export * from "./CreateClusterV2Command";
5
6
  export * from "./CreateConfigurationCommand";
6
7
  export * from "./CreateReplicatorCommand";
7
8
  export * from "./CreateTopicCommand";
8
9
  export * from "./CreateVpcConnectionCommand";
10
+ export * from "./DeleteChannelCommand";
9
11
  export * from "./DeleteClusterCommand";
10
12
  export * from "./DeleteClusterPolicyCommand";
11
13
  export * from "./DeleteConfigurationCommand";
12
14
  export * from "./DeleteReplicatorCommand";
13
15
  export * from "./DeleteTopicCommand";
14
16
  export * from "./DeleteVpcConnectionCommand";
17
+ export * from "./DescribeChannelCommand";
15
18
  export * from "./DescribeClusterCommand";
16
19
  export * from "./DescribeClusterOperationCommand";
17
20
  export * from "./DescribeClusterOperationV2Command";
@@ -25,6 +28,7 @@ export * from "./DescribeVpcConnectionCommand";
25
28
  export * from "./GetBootstrapBrokersCommand";
26
29
  export * from "./GetClusterPolicyCommand";
27
30
  export * from "./GetCompatibleKafkaVersionsCommand";
31
+ export * from "./ListChannelsCommand";
28
32
  export * from "./ListClientVpcConnectionsCommand";
29
33
  export * from "./ListClusterOperationsCommand";
30
34
  export * from "./ListClusterOperationsV2Command";
@@ -47,6 +51,7 @@ export * from "./UntagResourceCommand";
47
51
  export * from "./UpdateBrokerCountCommand";
48
52
  export * from "./UpdateBrokerStorageCommand";
49
53
  export * from "./UpdateBrokerTypeCommand";
54
+ export * from "./UpdateChannelCommand";
50
55
  export * from "./UpdateClusterConfigurationCommand";
51
56
  export * from "./UpdateClusterKafkaVersionCommand";
52
57
  export * from "./UpdateConfigurationCommand";
@@ -1,3 +1,32 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const ChannelDestinationType: {
6
+ readonly ICEBERG: "ICEBERG";
7
+ readonly S3: "S3";
8
+ };
9
+ /**
10
+ * @public
11
+ */
12
+ export type ChannelDestinationType = (typeof ChannelDestinationType)[keyof typeof ChannelDestinationType];
13
+ /**
14
+ * @public
15
+ * @enum
16
+ */
17
+ export declare const ChannelStatus: {
18
+ readonly ACTIVE: "ACTIVE";
19
+ readonly CREATING: "CREATING";
20
+ readonly DELETING: "DELETING";
21
+ readonly FAILED: "FAILED";
22
+ readonly SUSPENDED: "SUSPENDED";
23
+ readonly SUSPENDING: "SUSPENDING";
24
+ readonly UPDATING: "UPDATING";
25
+ };
26
+ /**
27
+ * @public
28
+ */
29
+ export type ChannelStatus = (typeof ChannelStatus)[keyof typeof ChannelStatus];
1
30
  /**
2
31
  * @public
3
32
  * @enum
@@ -158,6 +187,17 @@ export declare const ConfigurationState: {
158
187
  * @public
159
188
  */
160
189
  export type ConfigurationState = (typeof ConfigurationState)[keyof typeof ConfigurationState];
190
+ /**
191
+ * @public
192
+ * @enum
193
+ */
194
+ export declare const PartitionStrategy: {
195
+ readonly TIME_HOUR: "TIME_HOUR";
196
+ };
197
+ /**
198
+ * @public
199
+ */
200
+ export type PartitionStrategy = (typeof PartitionStrategy)[keyof typeof PartitionStrategy];
161
201
  /**
162
202
  * @public
163
203
  * @enum
@@ -270,6 +310,58 @@ export declare const ReplicatorState: {
270
310
  * @public
271
311
  */
272
312
  export type ReplicatorState = (typeof ReplicatorState)[keyof typeof ReplicatorState];
313
+ /**
314
+ * @public
315
+ * @enum
316
+ */
317
+ export declare const ValueConverter: {
318
+ readonly BYTE_ARRAY: "BYTE_ARRAY";
319
+ readonly JSON: "JSON";
320
+ readonly JSON_SCHEMA_GSR: "JSON_SCHEMA_GSR";
321
+ readonly STRING: "STRING";
322
+ };
323
+ /**
324
+ * @public
325
+ */
326
+ export type ValueConverter = (typeof ValueConverter)[keyof typeof ValueConverter];
327
+ /**
328
+ * @public
329
+ * @enum
330
+ */
331
+ export declare const IcebergCompressionType: {
332
+ readonly SNAPPY: "SNAPPY";
333
+ readonly ZSTD: "ZSTD";
334
+ };
335
+ /**
336
+ * @public
337
+ */
338
+ export type IcebergCompressionType = (typeof IcebergCompressionType)[keyof typeof IcebergCompressionType];
339
+ /**
340
+ * @public
341
+ * @enum
342
+ */
343
+ export declare const S3CompressionType: {
344
+ readonly GZIP: "GZIP";
345
+ readonly NONE: "NONE";
346
+ readonly ZSTD: "ZSTD";
347
+ };
348
+ /**
349
+ * @public
350
+ */
351
+ export type S3CompressionType = (typeof S3CompressionType)[keyof typeof S3CompressionType];
352
+ /**
353
+ * @public
354
+ * @enum
355
+ */
356
+ export declare const S3StorageClass: {
357
+ readonly GLACIER_IR: "GLACIER_IR";
358
+ readonly INTELLIGENT_TIERING: "INTELLIGENT_TIERING";
359
+ readonly STANDARD: "STANDARD";
360
+ };
361
+ /**
362
+ * @public
363
+ */
364
+ export type S3StorageClass = (typeof S3StorageClass)[keyof typeof S3StorageClass];
273
365
  /**
274
366
  * @public
275
367
  * @enum