@aws-sdk/client-kafka 3.986.0 → 3.988.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.
- package/README.md +21 -0
- package/dist-cjs/index.js +117 -2455
- package/dist-cjs/models/KafkaServiceException.js +12 -0
- package/dist-cjs/models/errors.js +293 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +2122 -0
- package/dist-es/Kafka.js +6 -0
- package/dist-es/commands/CreateTopicCommand.js +16 -0
- package/dist-es/commands/DeleteTopicCommand.js +16 -0
- package/dist-es/commands/UpdateTopicCommand.js +16 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/errors.js +144 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +182 -65
- package/dist-types/Kafka.d.ts +21 -0
- package/dist-types/KafkaClient.d.ts +5 -2
- package/dist-types/commands/CreateTopicCommand.d.ts +128 -0
- package/dist-types/commands/DeleteTopicCommand.d.ts +113 -0
- package/dist-types/commands/UpdateTopicCommand.d.ts +121 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/errors.d.ts +198 -0
- package/dist-types/models/models_0.d.ts +130 -0
- package/dist-types/schemas/schemas_0.d.ts +34 -9
- package/dist-types/ts3.4/Kafka.d.ts +51 -0
- package/dist-types/ts3.4/KafkaClient.d.ts +20 -2
- package/dist-types/ts3.4/commands/CreateTopicCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteTopicCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateTopicCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/errors.d.ts +90 -0
- package/dist-types/ts3.4/models/models_0.d.ts +32 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +29 -9
- package/package.json +13 -13
package/dist-es/Kafka.js
CHANGED
|
@@ -5,11 +5,13 @@ import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
|
|
|
5
5
|
import { CreateClusterV2Command, } from "./commands/CreateClusterV2Command";
|
|
6
6
|
import { CreateConfigurationCommand, } from "./commands/CreateConfigurationCommand";
|
|
7
7
|
import { CreateReplicatorCommand, } from "./commands/CreateReplicatorCommand";
|
|
8
|
+
import { CreateTopicCommand } from "./commands/CreateTopicCommand";
|
|
8
9
|
import { CreateVpcConnectionCommand, } from "./commands/CreateVpcConnectionCommand";
|
|
9
10
|
import { DeleteClusterCommand, } from "./commands/DeleteClusterCommand";
|
|
10
11
|
import { DeleteClusterPolicyCommand, } from "./commands/DeleteClusterPolicyCommand";
|
|
11
12
|
import { DeleteConfigurationCommand, } from "./commands/DeleteConfigurationCommand";
|
|
12
13
|
import { DeleteReplicatorCommand, } from "./commands/DeleteReplicatorCommand";
|
|
14
|
+
import { DeleteTopicCommand } from "./commands/DeleteTopicCommand";
|
|
13
15
|
import { DeleteVpcConnectionCommand, } from "./commands/DeleteVpcConnectionCommand";
|
|
14
16
|
import { DescribeClusterCommand, } from "./commands/DescribeClusterCommand";
|
|
15
17
|
import { DescribeClusterOperationCommand, } from "./commands/DescribeClusterOperationCommand";
|
|
@@ -55,6 +57,7 @@ import { UpdateRebalancingCommand, } from "./commands/UpdateRebalancingCommand";
|
|
|
55
57
|
import { UpdateReplicationInfoCommand, } from "./commands/UpdateReplicationInfoCommand";
|
|
56
58
|
import { UpdateSecurityCommand, } from "./commands/UpdateSecurityCommand";
|
|
57
59
|
import { UpdateStorageCommand, } from "./commands/UpdateStorageCommand";
|
|
60
|
+
import { UpdateTopicCommand } from "./commands/UpdateTopicCommand";
|
|
58
61
|
import { KafkaClient } from "./KafkaClient";
|
|
59
62
|
import { paginateDescribeTopicPartitions } from "./pagination/DescribeTopicPartitionsPaginator";
|
|
60
63
|
import { paginateListClientVpcConnections } from "./pagination/ListClientVpcConnectionsPaginator";
|
|
@@ -77,11 +80,13 @@ const commands = {
|
|
|
77
80
|
CreateClusterV2Command,
|
|
78
81
|
CreateConfigurationCommand,
|
|
79
82
|
CreateReplicatorCommand,
|
|
83
|
+
CreateTopicCommand,
|
|
80
84
|
CreateVpcConnectionCommand,
|
|
81
85
|
DeleteClusterCommand,
|
|
82
86
|
DeleteClusterPolicyCommand,
|
|
83
87
|
DeleteConfigurationCommand,
|
|
84
88
|
DeleteReplicatorCommand,
|
|
89
|
+
DeleteTopicCommand,
|
|
85
90
|
DeleteVpcConnectionCommand,
|
|
86
91
|
DescribeClusterCommand,
|
|
87
92
|
DescribeClusterOperationCommand,
|
|
@@ -127,6 +132,7 @@ const commands = {
|
|
|
127
132
|
UpdateReplicationInfoCommand,
|
|
128
133
|
UpdateSecurityCommand,
|
|
129
134
|
UpdateStorageCommand,
|
|
135
|
+
UpdateTopicCommand,
|
|
130
136
|
};
|
|
131
137
|
const paginators = {
|
|
132
138
|
paginateDescribeTopicPartitions,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { CreateTopic$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class CreateTopicCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Kafka", "CreateTopic", {})
|
|
13
|
+
.n("KafkaClient", "CreateTopicCommand")
|
|
14
|
+
.sc(CreateTopic$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DeleteTopic$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DeleteTopicCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Kafka", "DeleteTopic", {})
|
|
13
|
+
.n("KafkaClient", "DeleteTopicCommand")
|
|
14
|
+
.sc(DeleteTopic$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateTopic$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class UpdateTopicCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Kafka", "UpdateTopic", {})
|
|
13
|
+
.n("KafkaClient", "UpdateTopicCommand")
|
|
14
|
+
.sc(UpdateTopic$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -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";
|
package/dist-es/models/errors.js
CHANGED
|
@@ -111,6 +111,22 @@ export class UnauthorizedException extends __BaseException {
|
|
|
111
111
|
this.Message = opts.Message;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
+
export class ClusterConnectivityException extends __BaseException {
|
|
115
|
+
name = "ClusterConnectivityException";
|
|
116
|
+
$fault = "client";
|
|
117
|
+
InvalidParameter;
|
|
118
|
+
Message;
|
|
119
|
+
constructor(opts) {
|
|
120
|
+
super({
|
|
121
|
+
name: "ClusterConnectivityException",
|
|
122
|
+
$fault: "client",
|
|
123
|
+
...opts,
|
|
124
|
+
});
|
|
125
|
+
Object.setPrototypeOf(this, ClusterConnectivityException.prototype);
|
|
126
|
+
this.InvalidParameter = opts.InvalidParameter;
|
|
127
|
+
this.Message = opts.Message;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
114
130
|
export class ConflictException extends __BaseException {
|
|
115
131
|
name = "ConflictException";
|
|
116
132
|
$fault = "client";
|
|
@@ -127,3 +143,131 @@ export class ConflictException extends __BaseException {
|
|
|
127
143
|
this.Message = opts.Message;
|
|
128
144
|
}
|
|
129
145
|
}
|
|
146
|
+
export class ControllerMovedException extends __BaseException {
|
|
147
|
+
name = "ControllerMovedException";
|
|
148
|
+
$fault = "client";
|
|
149
|
+
InvalidParameter;
|
|
150
|
+
Message;
|
|
151
|
+
constructor(opts) {
|
|
152
|
+
super({
|
|
153
|
+
name: "ControllerMovedException",
|
|
154
|
+
$fault: "client",
|
|
155
|
+
...opts,
|
|
156
|
+
});
|
|
157
|
+
Object.setPrototypeOf(this, ControllerMovedException.prototype);
|
|
158
|
+
this.InvalidParameter = opts.InvalidParameter;
|
|
159
|
+
this.Message = opts.Message;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
export class GroupSubscribedToTopicException extends __BaseException {
|
|
163
|
+
name = "GroupSubscribedToTopicException";
|
|
164
|
+
$fault = "client";
|
|
165
|
+
InvalidParameter;
|
|
166
|
+
Message;
|
|
167
|
+
constructor(opts) {
|
|
168
|
+
super({
|
|
169
|
+
name: "GroupSubscribedToTopicException",
|
|
170
|
+
$fault: "client",
|
|
171
|
+
...opts,
|
|
172
|
+
});
|
|
173
|
+
Object.setPrototypeOf(this, GroupSubscribedToTopicException.prototype);
|
|
174
|
+
this.InvalidParameter = opts.InvalidParameter;
|
|
175
|
+
this.Message = opts.Message;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
export class KafkaRequestException extends __BaseException {
|
|
179
|
+
name = "KafkaRequestException";
|
|
180
|
+
$fault = "client";
|
|
181
|
+
InvalidParameter;
|
|
182
|
+
Message;
|
|
183
|
+
constructor(opts) {
|
|
184
|
+
super({
|
|
185
|
+
name: "KafkaRequestException",
|
|
186
|
+
$fault: "client",
|
|
187
|
+
...opts,
|
|
188
|
+
});
|
|
189
|
+
Object.setPrototypeOf(this, KafkaRequestException.prototype);
|
|
190
|
+
this.InvalidParameter = opts.InvalidParameter;
|
|
191
|
+
this.Message = opts.Message;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
export class KafkaTimeoutException extends __BaseException {
|
|
195
|
+
name = "KafkaTimeoutException";
|
|
196
|
+
$fault = "client";
|
|
197
|
+
InvalidParameter;
|
|
198
|
+
Message;
|
|
199
|
+
constructor(opts) {
|
|
200
|
+
super({
|
|
201
|
+
name: "KafkaTimeoutException",
|
|
202
|
+
$fault: "client",
|
|
203
|
+
...opts,
|
|
204
|
+
});
|
|
205
|
+
Object.setPrototypeOf(this, KafkaTimeoutException.prototype);
|
|
206
|
+
this.InvalidParameter = opts.InvalidParameter;
|
|
207
|
+
this.Message = opts.Message;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
export class NotControllerException extends __BaseException {
|
|
211
|
+
name = "NotControllerException";
|
|
212
|
+
$fault = "client";
|
|
213
|
+
InvalidParameter;
|
|
214
|
+
Message;
|
|
215
|
+
constructor(opts) {
|
|
216
|
+
super({
|
|
217
|
+
name: "NotControllerException",
|
|
218
|
+
$fault: "client",
|
|
219
|
+
...opts,
|
|
220
|
+
});
|
|
221
|
+
Object.setPrototypeOf(this, NotControllerException.prototype);
|
|
222
|
+
this.InvalidParameter = opts.InvalidParameter;
|
|
223
|
+
this.Message = opts.Message;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
export class ReassignmentInProgressException extends __BaseException {
|
|
227
|
+
name = "ReassignmentInProgressException";
|
|
228
|
+
$fault = "client";
|
|
229
|
+
InvalidParameter;
|
|
230
|
+
Message;
|
|
231
|
+
constructor(opts) {
|
|
232
|
+
super({
|
|
233
|
+
name: "ReassignmentInProgressException",
|
|
234
|
+
$fault: "client",
|
|
235
|
+
...opts,
|
|
236
|
+
});
|
|
237
|
+
Object.setPrototypeOf(this, ReassignmentInProgressException.prototype);
|
|
238
|
+
this.InvalidParameter = opts.InvalidParameter;
|
|
239
|
+
this.Message = opts.Message;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
export class TopicExistsException extends __BaseException {
|
|
243
|
+
name = "TopicExistsException";
|
|
244
|
+
$fault = "client";
|
|
245
|
+
InvalidParameter;
|
|
246
|
+
Message;
|
|
247
|
+
constructor(opts) {
|
|
248
|
+
super({
|
|
249
|
+
name: "TopicExistsException",
|
|
250
|
+
$fault: "client",
|
|
251
|
+
...opts,
|
|
252
|
+
});
|
|
253
|
+
Object.setPrototypeOf(this, TopicExistsException.prototype);
|
|
254
|
+
this.InvalidParameter = opts.InvalidParameter;
|
|
255
|
+
this.Message = opts.Message;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
export class UnknownTopicOrPartitionException extends __BaseException {
|
|
259
|
+
name = "UnknownTopicOrPartitionException";
|
|
260
|
+
$fault = "client";
|
|
261
|
+
InvalidParameter;
|
|
262
|
+
Message;
|
|
263
|
+
constructor(opts) {
|
|
264
|
+
super({
|
|
265
|
+
name: "UnknownTopicOrPartitionException",
|
|
266
|
+
$fault: "client",
|
|
267
|
+
...opts,
|
|
268
|
+
});
|
|
269
|
+
Object.setPrototypeOf(this, UnknownTopicOrPartitionException.prototype);
|
|
270
|
+
this.InvalidParameter = opts.InvalidParameter;
|
|
271
|
+
this.Message = opts.Message;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
6
6
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
7
|
import { defaultKafkaHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
8
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
9
10
|
export const getRuntimeConfig = (config) => {
|
|
10
11
|
return {
|
|
11
12
|
apiVersion: "2018-11-14",
|
|
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
26
27
|
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
27
28
|
protocolSettings: config?.protocolSettings ?? {
|
|
28
29
|
defaultNamespace: "com.amazonaws.kafka",
|
|
30
|
+
errorTypeRegistries,
|
|
29
31
|
version: "2018-11-14",
|
|
30
32
|
serviceTarget: "Kafka",
|
|
31
33
|
},
|