@aws-sdk/client-kafka 3.985.0 → 3.987.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.
@@ -13,11 +13,13 @@ import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./command
13
13
  import { CreateClusterV2CommandInput, CreateClusterV2CommandOutput } from "./commands/CreateClusterV2Command";
14
14
  import { CreateConfigurationCommandInput, CreateConfigurationCommandOutput } from "./commands/CreateConfigurationCommand";
15
15
  import { CreateReplicatorCommandInput, CreateReplicatorCommandOutput } from "./commands/CreateReplicatorCommand";
16
+ import { CreateTopicCommandInput, CreateTopicCommandOutput } from "./commands/CreateTopicCommand";
16
17
  import { CreateVpcConnectionCommandInput, CreateVpcConnectionCommandOutput } from "./commands/CreateVpcConnectionCommand";
17
18
  import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./commands/DeleteClusterCommand";
18
19
  import { DeleteClusterPolicyCommandInput, DeleteClusterPolicyCommandOutput } from "./commands/DeleteClusterPolicyCommand";
19
20
  import { DeleteConfigurationCommandInput, DeleteConfigurationCommandOutput } from "./commands/DeleteConfigurationCommand";
20
21
  import { DeleteReplicatorCommandInput, DeleteReplicatorCommandOutput } from "./commands/DeleteReplicatorCommand";
22
+ import { DeleteTopicCommandInput, DeleteTopicCommandOutput } from "./commands/DeleteTopicCommand";
21
23
  import { DeleteVpcConnectionCommandInput, DeleteVpcConnectionCommandOutput } from "./commands/DeleteVpcConnectionCommand";
22
24
  import { DescribeClusterCommandInput, DescribeClusterCommandOutput } from "./commands/DescribeClusterCommand";
23
25
  import { DescribeClusterOperationCommandInput, DescribeClusterOperationCommandOutput } from "./commands/DescribeClusterOperationCommand";
@@ -63,17 +65,18 @@ import { UpdateRebalancingCommandInput, UpdateRebalancingCommandOutput } from ".
63
65
  import { UpdateReplicationInfoCommandInput, UpdateReplicationInfoCommandOutput } from "./commands/UpdateReplicationInfoCommand";
64
66
  import { UpdateSecurityCommandInput, UpdateSecurityCommandOutput } from "./commands/UpdateSecurityCommand";
65
67
  import { UpdateStorageCommandInput, UpdateStorageCommandOutput } from "./commands/UpdateStorageCommand";
68
+ import { UpdateTopicCommandInput, UpdateTopicCommandOutput } from "./commands/UpdateTopicCommand";
66
69
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
67
70
  import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
68
71
  export { __Client };
69
72
  /**
70
73
  * @public
71
74
  */
72
- export type ServiceInputTypes = BatchAssociateScramSecretCommandInput | BatchDisassociateScramSecretCommandInput | CreateClusterCommandInput | CreateClusterV2CommandInput | CreateConfigurationCommandInput | CreateReplicatorCommandInput | CreateVpcConnectionCommandInput | DeleteClusterCommandInput | DeleteClusterPolicyCommandInput | DeleteConfigurationCommandInput | DeleteReplicatorCommandInput | DeleteVpcConnectionCommandInput | DescribeClusterCommandInput | DescribeClusterOperationCommandInput | DescribeClusterOperationV2CommandInput | DescribeClusterV2CommandInput | DescribeConfigurationCommandInput | DescribeConfigurationRevisionCommandInput | DescribeReplicatorCommandInput | DescribeTopicCommandInput | DescribeTopicPartitionsCommandInput | DescribeVpcConnectionCommandInput | GetBootstrapBrokersCommandInput | GetClusterPolicyCommandInput | GetCompatibleKafkaVersionsCommandInput | ListClientVpcConnectionsCommandInput | ListClusterOperationsCommandInput | ListClusterOperationsV2CommandInput | ListClustersCommandInput | ListClustersV2CommandInput | ListConfigurationRevisionsCommandInput | ListConfigurationsCommandInput | ListKafkaVersionsCommandInput | ListNodesCommandInput | ListReplicatorsCommandInput | ListScramSecretsCommandInput | ListTagsForResourceCommandInput | ListTopicsCommandInput | ListVpcConnectionsCommandInput | PutClusterPolicyCommandInput | RebootBrokerCommandInput | RejectClientVpcConnectionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBrokerCountCommandInput | UpdateBrokerStorageCommandInput | UpdateBrokerTypeCommandInput | UpdateClusterConfigurationCommandInput | UpdateClusterKafkaVersionCommandInput | UpdateConfigurationCommandInput | UpdateConnectivityCommandInput | UpdateMonitoringCommandInput | UpdateRebalancingCommandInput | UpdateReplicationInfoCommandInput | UpdateSecurityCommandInput | UpdateStorageCommandInput;
75
+ export type ServiceInputTypes = BatchAssociateScramSecretCommandInput | BatchDisassociateScramSecretCommandInput | CreateClusterCommandInput | CreateClusterV2CommandInput | CreateConfigurationCommandInput | CreateReplicatorCommandInput | CreateTopicCommandInput | CreateVpcConnectionCommandInput | DeleteClusterCommandInput | DeleteClusterPolicyCommandInput | DeleteConfigurationCommandInput | DeleteReplicatorCommandInput | DeleteTopicCommandInput | DeleteVpcConnectionCommandInput | DescribeClusterCommandInput | DescribeClusterOperationCommandInput | DescribeClusterOperationV2CommandInput | DescribeClusterV2CommandInput | DescribeConfigurationCommandInput | DescribeConfigurationRevisionCommandInput | DescribeReplicatorCommandInput | DescribeTopicCommandInput | DescribeTopicPartitionsCommandInput | DescribeVpcConnectionCommandInput | GetBootstrapBrokersCommandInput | GetClusterPolicyCommandInput | GetCompatibleKafkaVersionsCommandInput | ListClientVpcConnectionsCommandInput | ListClusterOperationsCommandInput | ListClusterOperationsV2CommandInput | ListClustersCommandInput | ListClustersV2CommandInput | ListConfigurationRevisionsCommandInput | ListConfigurationsCommandInput | ListKafkaVersionsCommandInput | ListNodesCommandInput | ListReplicatorsCommandInput | ListScramSecretsCommandInput | ListTagsForResourceCommandInput | ListTopicsCommandInput | ListVpcConnectionsCommandInput | PutClusterPolicyCommandInput | RebootBrokerCommandInput | RejectClientVpcConnectionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBrokerCountCommandInput | UpdateBrokerStorageCommandInput | UpdateBrokerTypeCommandInput | UpdateClusterConfigurationCommandInput | UpdateClusterKafkaVersionCommandInput | UpdateConfigurationCommandInput | UpdateConnectivityCommandInput | UpdateMonitoringCommandInput | UpdateRebalancingCommandInput | UpdateReplicationInfoCommandInput | UpdateSecurityCommandInput | UpdateStorageCommandInput | UpdateTopicCommandInput;
73
76
  /**
74
77
  * @public
75
78
  */
76
- export type ServiceOutputTypes = BatchAssociateScramSecretCommandOutput | BatchDisassociateScramSecretCommandOutput | CreateClusterCommandOutput | CreateClusterV2CommandOutput | CreateConfigurationCommandOutput | CreateReplicatorCommandOutput | CreateVpcConnectionCommandOutput | DeleteClusterCommandOutput | DeleteClusterPolicyCommandOutput | DeleteConfigurationCommandOutput | DeleteReplicatorCommandOutput | DeleteVpcConnectionCommandOutput | DescribeClusterCommandOutput | DescribeClusterOperationCommandOutput | DescribeClusterOperationV2CommandOutput | DescribeClusterV2CommandOutput | DescribeConfigurationCommandOutput | DescribeConfigurationRevisionCommandOutput | DescribeReplicatorCommandOutput | DescribeTopicCommandOutput | DescribeTopicPartitionsCommandOutput | DescribeVpcConnectionCommandOutput | GetBootstrapBrokersCommandOutput | GetClusterPolicyCommandOutput | GetCompatibleKafkaVersionsCommandOutput | ListClientVpcConnectionsCommandOutput | ListClusterOperationsCommandOutput | ListClusterOperationsV2CommandOutput | ListClustersCommandOutput | ListClustersV2CommandOutput | ListConfigurationRevisionsCommandOutput | ListConfigurationsCommandOutput | ListKafkaVersionsCommandOutput | ListNodesCommandOutput | ListReplicatorsCommandOutput | ListScramSecretsCommandOutput | ListTagsForResourceCommandOutput | ListTopicsCommandOutput | ListVpcConnectionsCommandOutput | PutClusterPolicyCommandOutput | RebootBrokerCommandOutput | RejectClientVpcConnectionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBrokerCountCommandOutput | UpdateBrokerStorageCommandOutput | UpdateBrokerTypeCommandOutput | UpdateClusterConfigurationCommandOutput | UpdateClusterKafkaVersionCommandOutput | UpdateConfigurationCommandOutput | UpdateConnectivityCommandOutput | UpdateMonitoringCommandOutput | UpdateRebalancingCommandOutput | UpdateReplicationInfoCommandOutput | UpdateSecurityCommandOutput | UpdateStorageCommandOutput;
79
+ export type ServiceOutputTypes = BatchAssociateScramSecretCommandOutput | BatchDisassociateScramSecretCommandOutput | CreateClusterCommandOutput | CreateClusterV2CommandOutput | CreateConfigurationCommandOutput | CreateReplicatorCommandOutput | CreateTopicCommandOutput | CreateVpcConnectionCommandOutput | DeleteClusterCommandOutput | DeleteClusterPolicyCommandOutput | DeleteConfigurationCommandOutput | DeleteReplicatorCommandOutput | DeleteTopicCommandOutput | DeleteVpcConnectionCommandOutput | DescribeClusterCommandOutput | DescribeClusterOperationCommandOutput | DescribeClusterOperationV2CommandOutput | DescribeClusterV2CommandOutput | DescribeConfigurationCommandOutput | DescribeConfigurationRevisionCommandOutput | DescribeReplicatorCommandOutput | DescribeTopicCommandOutput | DescribeTopicPartitionsCommandOutput | DescribeVpcConnectionCommandOutput | GetBootstrapBrokersCommandOutput | GetClusterPolicyCommandOutput | GetCompatibleKafkaVersionsCommandOutput | ListClientVpcConnectionsCommandOutput | ListClusterOperationsCommandOutput | ListClusterOperationsV2CommandOutput | ListClustersCommandOutput | ListClustersV2CommandOutput | ListConfigurationRevisionsCommandOutput | ListConfigurationsCommandOutput | ListKafkaVersionsCommandOutput | ListNodesCommandOutput | ListReplicatorsCommandOutput | ListScramSecretsCommandOutput | ListTagsForResourceCommandOutput | ListTopicsCommandOutput | ListVpcConnectionsCommandOutput | PutClusterPolicyCommandOutput | RebootBrokerCommandOutput | RejectClientVpcConnectionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBrokerCountCommandOutput | UpdateBrokerStorageCommandOutput | UpdateBrokerTypeCommandOutput | UpdateClusterConfigurationCommandOutput | UpdateClusterKafkaVersionCommandOutput | UpdateConfigurationCommandOutput | UpdateConnectivityCommandOutput | UpdateMonitoringCommandOutput | UpdateRebalancingCommandOutput | UpdateReplicationInfoCommandOutput | UpdateSecurityCommandOutput | UpdateStorageCommandOutput | UpdateTopicCommandOutput;
77
80
  /**
78
81
  * @public
79
82
  */
@@ -0,0 +1,128 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { KafkaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KafkaClient";
4
+ import type { CreateTopicRequest, CreateTopicResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateTopicCommand}.
14
+ */
15
+ export interface CreateTopicCommandInput extends CreateTopicRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateTopicCommand}.
21
+ */
22
+ export interface CreateTopicCommandOutput extends CreateTopicResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateTopicCommand_base: {
25
+ new (input: CreateTopicCommandInput): import("@smithy/smithy-client").CommandImpl<CreateTopicCommandInput, CreateTopicCommandOutput, KafkaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateTopicCommandInput): import("@smithy/smithy-client").CommandImpl<CreateTopicCommandInput, CreateTopicCommandOutput, KafkaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a topic in the specified MSK cluster.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { KafkaClient, CreateTopicCommand } from "@aws-sdk/client-kafka"; // ES Modules import
35
+ * // const { KafkaClient, CreateTopicCommand } = require("@aws-sdk/client-kafka"); // CommonJS import
36
+ * // import type { KafkaClientConfig } from "@aws-sdk/client-kafka";
37
+ * const config = {}; // type is KafkaClientConfig
38
+ * const client = new KafkaClient(config);
39
+ * const input = { // CreateTopicRequest
40
+ * ClusterArn: "STRING_VALUE", // required
41
+ * TopicName: "STRING_VALUE", // required
42
+ * PartitionCount: Number("int"), // required
43
+ * ReplicationFactor: Number("int"), // required
44
+ * Configs: "STRING_VALUE",
45
+ * };
46
+ * const command = new CreateTopicCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // CreateTopicResponse
49
+ * // TopicArn: "STRING_VALUE",
50
+ * // TopicName: "STRING_VALUE",
51
+ * // Status: "CREATING" || "UPDATING" || "DELETING" || "ACTIVE",
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param CreateTopicCommandInput - {@link CreateTopicCommandInput}
57
+ * @returns {@link CreateTopicCommandOutput}
58
+ * @see {@link CreateTopicCommandInput} for command's `input` shape.
59
+ * @see {@link CreateTopicCommandOutput} for command's `response` shape.
60
+ * @see {@link KafkaClientResolvedConfig | config} for KafkaClient's `config` shape.
61
+ *
62
+ * @throws {@link BadRequestException} (client fault)
63
+ * <p>Returns information about an error.</p>
64
+ *
65
+ * @throws {@link ClusterConnectivityException} (client fault)
66
+ * <p>Returns information about an error.</p>
67
+ *
68
+ * @throws {@link ConflictException} (client fault)
69
+ * <p>Returns information about an error.</p>
70
+ *
71
+ * @throws {@link ControllerMovedException} (client fault)
72
+ * <p>Returns information about an error.</p>
73
+ *
74
+ * @throws {@link ForbiddenException} (client fault)
75
+ * <p>Returns information about an error.</p>
76
+ *
77
+ * @throws {@link GroupSubscribedToTopicException} (client fault)
78
+ * <p>Returns information about an error.</p>
79
+ *
80
+ * @throws {@link InternalServerErrorException} (server fault)
81
+ * <p>Returns information about an error.</p>
82
+ *
83
+ * @throws {@link KafkaRequestException} (client fault)
84
+ * <p>Returns information about an error.</p>
85
+ *
86
+ * @throws {@link KafkaTimeoutException} (client fault)
87
+ * <p>Returns information about an error.</p>
88
+ *
89
+ * @throws {@link NotControllerException} (client fault)
90
+ * <p>Returns information about an error.</p>
91
+ *
92
+ * @throws {@link ReassignmentInProgressException} (client fault)
93
+ * <p>Returns information about an error.</p>
94
+ *
95
+ * @throws {@link ServiceUnavailableException} (server fault)
96
+ * <p>Returns information about an error.</p>
97
+ *
98
+ * @throws {@link TooManyRequestsException} (client fault)
99
+ * <p>Returns information about an error.</p>
100
+ *
101
+ * @throws {@link TopicExistsException} (client fault)
102
+ * <p>Returns information about an error.</p>
103
+ *
104
+ * @throws {@link UnauthorizedException} (client fault)
105
+ * <p>Returns information about an error.</p>
106
+ *
107
+ * @throws {@link UnknownTopicOrPartitionException} (client fault)
108
+ * <p>Returns information about an error.</p>
109
+ *
110
+ * @throws {@link KafkaServiceException}
111
+ * <p>Base exception class for all service exceptions from Kafka service.</p>
112
+ *
113
+ *
114
+ * @public
115
+ */
116
+ export declare class CreateTopicCommand extends CreateTopicCommand_base {
117
+ /** @internal type navigation helper, not in runtime. */
118
+ protected static __types: {
119
+ api: {
120
+ input: CreateTopicRequest;
121
+ output: CreateTopicResponse;
122
+ };
123
+ sdk: {
124
+ input: CreateTopicCommandInput;
125
+ output: CreateTopicCommandOutput;
126
+ };
127
+ };
128
+ }
@@ -0,0 +1,113 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { KafkaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KafkaClient";
4
+ import type { DeleteTopicRequest, DeleteTopicResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteTopicCommand}.
14
+ */
15
+ export interface DeleteTopicCommandInput extends DeleteTopicRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteTopicCommand}.
21
+ */
22
+ export interface DeleteTopicCommandOutput extends DeleteTopicResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteTopicCommand_base: {
25
+ new (input: DeleteTopicCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteTopicCommandInput, DeleteTopicCommandOutput, KafkaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteTopicCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteTopicCommandInput, DeleteTopicCommandOutput, KafkaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a topic in the specified MSK cluster.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { KafkaClient, DeleteTopicCommand } from "@aws-sdk/client-kafka"; // ES Modules import
35
+ * // const { KafkaClient, DeleteTopicCommand } = require("@aws-sdk/client-kafka"); // CommonJS import
36
+ * // import type { KafkaClientConfig } from "@aws-sdk/client-kafka";
37
+ * const config = {}; // type is KafkaClientConfig
38
+ * const client = new KafkaClient(config);
39
+ * const input = { // DeleteTopicRequest
40
+ * ClusterArn: "STRING_VALUE", // required
41
+ * TopicName: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new DeleteTopicCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // DeleteTopicResponse
46
+ * // TopicArn: "STRING_VALUE",
47
+ * // TopicName: "STRING_VALUE",
48
+ * // Status: "CREATING" || "UPDATING" || "DELETING" || "ACTIVE",
49
+ * // };
50
+ *
51
+ * ```
52
+ *
53
+ * @param DeleteTopicCommandInput - {@link DeleteTopicCommandInput}
54
+ * @returns {@link DeleteTopicCommandOutput}
55
+ * @see {@link DeleteTopicCommandInput} for command's `input` shape.
56
+ * @see {@link DeleteTopicCommandOutput} for command's `response` shape.
57
+ * @see {@link KafkaClientResolvedConfig | config} for KafkaClient's `config` shape.
58
+ *
59
+ * @throws {@link BadRequestException} (client fault)
60
+ * <p>Returns information about an error.</p>
61
+ *
62
+ * @throws {@link ClusterConnectivityException} (client fault)
63
+ * <p>Returns information about an error.</p>
64
+ *
65
+ * @throws {@link ControllerMovedException} (client fault)
66
+ * <p>Returns information about an error.</p>
67
+ *
68
+ * @throws {@link ForbiddenException} (client fault)
69
+ * <p>Returns information about an error.</p>
70
+ *
71
+ * @throws {@link GroupSubscribedToTopicException} (client fault)
72
+ * <p>Returns information about an error.</p>
73
+ *
74
+ * @throws {@link InternalServerErrorException} (server fault)
75
+ * <p>Returns information about an error.</p>
76
+ *
77
+ * @throws {@link KafkaRequestException} (client fault)
78
+ * <p>Returns information about an error.</p>
79
+ *
80
+ * @throws {@link KafkaTimeoutException} (client fault)
81
+ * <p>Returns information about an error.</p>
82
+ *
83
+ * @throws {@link NotControllerException} (client 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 ReassignmentInProgressException} (client fault)
90
+ * <p>Returns information about an error.</p>
91
+ *
92
+ * @throws {@link UnknownTopicOrPartitionException} (client fault)
93
+ * <p>Returns information about an error.</p>
94
+ *
95
+ * @throws {@link KafkaServiceException}
96
+ * <p>Base exception class for all service exceptions from Kafka service.</p>
97
+ *
98
+ *
99
+ * @public
100
+ */
101
+ export declare class DeleteTopicCommand extends DeleteTopicCommand_base {
102
+ /** @internal type navigation helper, not in runtime. */
103
+ protected static __types: {
104
+ api: {
105
+ input: DeleteTopicRequest;
106
+ output: DeleteTopicResponse;
107
+ };
108
+ sdk: {
109
+ input: DeleteTopicCommandInput;
110
+ output: DeleteTopicCommandOutput;
111
+ };
112
+ };
113
+ }
@@ -0,0 +1,121 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { KafkaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KafkaClient";
4
+ import type { UpdateTopicRequest, UpdateTopicResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateTopicCommand}.
14
+ */
15
+ export interface UpdateTopicCommandInput extends UpdateTopicRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateTopicCommand}.
21
+ */
22
+ export interface UpdateTopicCommandOutput extends UpdateTopicResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateTopicCommand_base: {
25
+ new (input: UpdateTopicCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateTopicCommandInput, UpdateTopicCommandOutput, KafkaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateTopicCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateTopicCommandInput, UpdateTopicCommandOutput, KafkaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates the configuration of the specified topic.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { KafkaClient, UpdateTopicCommand } from "@aws-sdk/client-kafka"; // ES Modules import
35
+ * // const { KafkaClient, UpdateTopicCommand } = require("@aws-sdk/client-kafka"); // CommonJS import
36
+ * // import type { KafkaClientConfig } from "@aws-sdk/client-kafka";
37
+ * const config = {}; // type is KafkaClientConfig
38
+ * const client = new KafkaClient(config);
39
+ * const input = { // UpdateTopicRequest
40
+ * ClusterArn: "STRING_VALUE", // required
41
+ * TopicName: "STRING_VALUE", // required
42
+ * Configs: "STRING_VALUE",
43
+ * PartitionCount: Number("int"),
44
+ * };
45
+ * const command = new UpdateTopicCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // UpdateTopicResponse
48
+ * // TopicArn: "STRING_VALUE",
49
+ * // TopicName: "STRING_VALUE",
50
+ * // Status: "CREATING" || "UPDATING" || "DELETING" || "ACTIVE",
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param UpdateTopicCommandInput - {@link UpdateTopicCommandInput}
56
+ * @returns {@link UpdateTopicCommandOutput}
57
+ * @see {@link UpdateTopicCommandInput} for command's `input` shape.
58
+ * @see {@link UpdateTopicCommandOutput} 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 ClusterConnectivityException} (client fault)
65
+ * <p>Returns information about an error.</p>
66
+ *
67
+ * @throws {@link ControllerMovedException} (client fault)
68
+ * <p>Returns information about an error.</p>
69
+ *
70
+ * @throws {@link ForbiddenException} (client fault)
71
+ * <p>Returns information about an error.</p>
72
+ *
73
+ * @throws {@link GroupSubscribedToTopicException} (client fault)
74
+ * <p>Returns information about an error.</p>
75
+ *
76
+ * @throws {@link InternalServerErrorException} (server fault)
77
+ * <p>Returns information about an error.</p>
78
+ *
79
+ * @throws {@link KafkaRequestException} (client fault)
80
+ * <p>Returns information about an error.</p>
81
+ *
82
+ * @throws {@link KafkaTimeoutException} (client fault)
83
+ * <p>Returns information about an error.</p>
84
+ *
85
+ * @throws {@link NotControllerException} (client fault)
86
+ * <p>Returns information about an error.</p>
87
+ *
88
+ * @throws {@link NotFoundException} (client fault)
89
+ * <p>Returns information about an error.</p>
90
+ *
91
+ * @throws {@link ReassignmentInProgressException} (client fault)
92
+ * <p>Returns information about an error.</p>
93
+ *
94
+ * @throws {@link ServiceUnavailableException} (server fault)
95
+ * <p>Returns information about an error.</p>
96
+ *
97
+ * @throws {@link UnauthorizedException} (client fault)
98
+ * <p>Returns information about an error.</p>
99
+ *
100
+ * @throws {@link UnknownTopicOrPartitionException} (client fault)
101
+ * <p>Returns information about an error.</p>
102
+ *
103
+ * @throws {@link KafkaServiceException}
104
+ * <p>Base exception class for all service exceptions from Kafka service.</p>
105
+ *
106
+ *
107
+ * @public
108
+ */
109
+ export declare class UpdateTopicCommand extends UpdateTopicCommand_base {
110
+ /** @internal type navigation helper, not in runtime. */
111
+ protected static __types: {
112
+ api: {
113
+ input: UpdateTopicRequest;
114
+ output: UpdateTopicResponse;
115
+ };
116
+ sdk: {
117
+ input: UpdateTopicCommandInput;
118
+ output: UpdateTopicCommandOutput;
119
+ };
120
+ };
121
+ }
@@ -4,11 +4,13 @@ export * from "./CreateClusterCommand";
4
4
  export * from "./CreateClusterV2Command";
5
5
  export * from "./CreateConfigurationCommand";
6
6
  export * from "./CreateReplicatorCommand";
7
+ export * from "./CreateTopicCommand";
7
8
  export * from "./CreateVpcConnectionCommand";
8
9
  export * from "./DeleteClusterCommand";
9
10
  export * from "./DeleteClusterPolicyCommand";
10
11
  export * from "./DeleteConfigurationCommand";
11
12
  export * from "./DeleteReplicatorCommand";
13
+ export * from "./DeleteTopicCommand";
12
14
  export * from "./DeleteVpcConnectionCommand";
13
15
  export * from "./DescribeClusterCommand";
14
16
  export * from "./DescribeClusterOperationCommand";
@@ -54,3 +56,4 @@ export * from "./UpdateRebalancingCommand";
54
56
  export * from "./UpdateReplicationInfoCommand";
55
57
  export * from "./UpdateSecurityCommand";
56
58
  export * from "./UpdateStorageCommand";
59
+ export * from "./UpdateTopicCommand";
@@ -154,6 +154,28 @@ export declare class UnauthorizedException extends __BaseException {
154
154
  */
155
155
  constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
156
156
  }
157
+ /**
158
+ * <p>Returns information about an error.</p>
159
+ * @public
160
+ */
161
+ export declare class ClusterConnectivityException extends __BaseException {
162
+ readonly name: "ClusterConnectivityException";
163
+ readonly $fault: "client";
164
+ /**
165
+ * <p>The parameter that caused the error.</p>
166
+ * @public
167
+ */
168
+ InvalidParameter?: string | undefined;
169
+ /**
170
+ * <p>The description of the error.</p>
171
+ * @public
172
+ */
173
+ Message?: string | undefined;
174
+ /**
175
+ * @internal
176
+ */
177
+ constructor(opts: __ExceptionOptionType<ClusterConnectivityException, __BaseException>);
178
+ }
157
179
  /**
158
180
  * <p>Returns information about an error.</p>
159
181
  * @public
@@ -176,3 +198,179 @@ export declare class ConflictException extends __BaseException {
176
198
  */
177
199
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
178
200
  }
201
+ /**
202
+ * <p>Returns information about an error.</p>
203
+ * @public
204
+ */
205
+ export declare class ControllerMovedException extends __BaseException {
206
+ readonly name: "ControllerMovedException";
207
+ readonly $fault: "client";
208
+ /**
209
+ * <p>The parameter that caused the error.</p>
210
+ * @public
211
+ */
212
+ InvalidParameter?: string | undefined;
213
+ /**
214
+ * <p>The description of the error.</p>
215
+ * @public
216
+ */
217
+ Message?: string | undefined;
218
+ /**
219
+ * @internal
220
+ */
221
+ constructor(opts: __ExceptionOptionType<ControllerMovedException, __BaseException>);
222
+ }
223
+ /**
224
+ * <p>Returns information about an error.</p>
225
+ * @public
226
+ */
227
+ export declare class GroupSubscribedToTopicException extends __BaseException {
228
+ readonly name: "GroupSubscribedToTopicException";
229
+ readonly $fault: "client";
230
+ /**
231
+ * <p>The parameter that caused the error.</p>
232
+ * @public
233
+ */
234
+ InvalidParameter?: string | undefined;
235
+ /**
236
+ * <p>The description of the error.</p>
237
+ * @public
238
+ */
239
+ Message?: string | undefined;
240
+ /**
241
+ * @internal
242
+ */
243
+ constructor(opts: __ExceptionOptionType<GroupSubscribedToTopicException, __BaseException>);
244
+ }
245
+ /**
246
+ * <p>Returns information about an error.</p>
247
+ * @public
248
+ */
249
+ export declare class KafkaRequestException extends __BaseException {
250
+ readonly name: "KafkaRequestException";
251
+ readonly $fault: "client";
252
+ /**
253
+ * <p>The parameter that caused the error.</p>
254
+ * @public
255
+ */
256
+ InvalidParameter?: string | undefined;
257
+ /**
258
+ * <p>The description of the error.</p>
259
+ * @public
260
+ */
261
+ Message?: string | undefined;
262
+ /**
263
+ * @internal
264
+ */
265
+ constructor(opts: __ExceptionOptionType<KafkaRequestException, __BaseException>);
266
+ }
267
+ /**
268
+ * <p>Returns information about an error.</p>
269
+ * @public
270
+ */
271
+ export declare class KafkaTimeoutException extends __BaseException {
272
+ readonly name: "KafkaTimeoutException";
273
+ readonly $fault: "client";
274
+ /**
275
+ * <p>The parameter that caused the error.</p>
276
+ * @public
277
+ */
278
+ InvalidParameter?: string | undefined;
279
+ /**
280
+ * <p>The description of the error.</p>
281
+ * @public
282
+ */
283
+ Message?: string | undefined;
284
+ /**
285
+ * @internal
286
+ */
287
+ constructor(opts: __ExceptionOptionType<KafkaTimeoutException, __BaseException>);
288
+ }
289
+ /**
290
+ * <p>Returns information about an error.</p>
291
+ * @public
292
+ */
293
+ export declare class NotControllerException extends __BaseException {
294
+ readonly name: "NotControllerException";
295
+ readonly $fault: "client";
296
+ /**
297
+ * <p>The parameter that caused the error.</p>
298
+ * @public
299
+ */
300
+ InvalidParameter?: string | undefined;
301
+ /**
302
+ * <p>The description of the error.</p>
303
+ * @public
304
+ */
305
+ Message?: string | undefined;
306
+ /**
307
+ * @internal
308
+ */
309
+ constructor(opts: __ExceptionOptionType<NotControllerException, __BaseException>);
310
+ }
311
+ /**
312
+ * <p>Returns information about an error.</p>
313
+ * @public
314
+ */
315
+ export declare class ReassignmentInProgressException extends __BaseException {
316
+ readonly name: "ReassignmentInProgressException";
317
+ readonly $fault: "client";
318
+ /**
319
+ * <p>The parameter that caused the error.</p>
320
+ * @public
321
+ */
322
+ InvalidParameter?: string | undefined;
323
+ /**
324
+ * <p>The description of the error.</p>
325
+ * @public
326
+ */
327
+ Message?: string | undefined;
328
+ /**
329
+ * @internal
330
+ */
331
+ constructor(opts: __ExceptionOptionType<ReassignmentInProgressException, __BaseException>);
332
+ }
333
+ /**
334
+ * <p>Returns information about an error.</p>
335
+ * @public
336
+ */
337
+ export declare class TopicExistsException extends __BaseException {
338
+ readonly name: "TopicExistsException";
339
+ readonly $fault: "client";
340
+ /**
341
+ * <p>The parameter that caused the error.</p>
342
+ * @public
343
+ */
344
+ InvalidParameter?: string | undefined;
345
+ /**
346
+ * <p>The description of the error.</p>
347
+ * @public
348
+ */
349
+ Message?: string | undefined;
350
+ /**
351
+ * @internal
352
+ */
353
+ constructor(opts: __ExceptionOptionType<TopicExistsException, __BaseException>);
354
+ }
355
+ /**
356
+ * <p>Returns information about an error.</p>
357
+ * @public
358
+ */
359
+ export declare class UnknownTopicOrPartitionException extends __BaseException {
360
+ readonly name: "UnknownTopicOrPartitionException";
361
+ readonly $fault: "client";
362
+ /**
363
+ * <p>The parameter that caused the error.</p>
364
+ * @public
365
+ */
366
+ InvalidParameter?: string | undefined;
367
+ /**
368
+ * <p>The description of the error.</p>
369
+ * @public
370
+ */
371
+ Message?: string | undefined;
372
+ /**
373
+ * @internal
374
+ */
375
+ constructor(opts: __ExceptionOptionType<UnknownTopicOrPartitionException, __BaseException>);
376
+ }