@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.
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";
@@ -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
+ }
@@ -42,6 +42,7 @@ const _CB = "ClientBroker";
42
42
  const _CBI = "CreatedBrokerIds";
43
43
  const _CBSI = "CurrentBrokerSoftwareInfo";
44
44
  const _CC = "CreateCluster";
45
+ const _CCE = "ClusterConnectivityException";
45
46
  const _CCR = "CreateClusterRequest";
46
47
  const _CCRr = "CreateClusterResponse";
47
48
  const _CCRre = "CreateConfigurationRequest";
@@ -61,6 +62,7 @@ const _CIl = "ClusterInfo";
61
62
  const _CIo = "ConfigurationInfo";
62
63
  const _CKV = "CompatibleKafkaVersion";
63
64
  const _CKVo = "CompatibleKafkaVersions";
65
+ const _CME = "ControllerMovedException";
64
66
  const _CN = "ClusterName";
65
67
  const _CNF = "ClusterNameFilter";
66
68
  const _CNI = "ControllerNodeInfo";
@@ -83,7 +85,10 @@ const _CSl = "ClientSubnet";
83
85
  const _CT = "CreationTime";
84
86
  const _CTC = "CopyTopicConfigurations";
85
87
  const _CTF = "ClusterTypeFilter";
88
+ const _CTR = "CreateTopicRequest";
89
+ const _CTRr = "CreateTopicResponse";
86
90
  const _CTl = "ClusterType";
91
+ const _CTr = "CreateTopic";
87
92
  const _CV = "CurrentVersion";
88
93
  const _CVC = "ClientVpcConnection";
89
94
  const _CVCR = "CreateVpcConnectionRequest";
@@ -134,12 +139,15 @@ const _DRRes = "DescribeReplicatorRequest";
134
139
  const _DRResc = "DescribeReplicatorResponse";
135
140
  const _DRe = "DescribeReplicator";
136
141
  const _DS = "DeliveryStream";
137
- const _DT = "DescribeTopic";
142
+ const _DT = "DeleteTopic";
138
143
  const _DTP = "DescribeTopicPartitions";
139
144
  const _DTPR = "DescribeTopicPartitionsRequest";
140
145
  const _DTPRe = "DescribeTopicPartitionsResponse";
141
- const _DTR = "DescribeTopicRequest";
142
- const _DTRe = "DescribeTopicResponse";
146
+ const _DTR = "DeleteTopicRequest";
147
+ const _DTRe = "DeleteTopicResponse";
148
+ const _DTRes = "DescribeTopicRequest";
149
+ const _DTResc = "DescribeTopicResponse";
150
+ const _DTe = "DescribeTopic";
143
151
  const _DVC = "DeleteVpcConnection";
144
152
  const _DVCR = "DeleteVpcConnectionRequest";
145
153
  const _DVCRe = "DeleteVpcConnectionResponse";
@@ -172,6 +180,7 @@ const _GCKVRe = "GetCompatibleKafkaVersionsResponse";
172
180
  const _GCP = "GetClusterPolicy";
173
181
  const _GCPR = "GetClusterPolicyRequest";
174
182
  const _GCPRe = "GetClusterPolicyResponse";
183
+ const _GSTTE = "GroupSubscribedToTopicException";
175
184
  const _I = "Iam";
176
185
  const _IC = "InCluster";
177
186
  const _IP = "InvalidParameter";
@@ -189,6 +198,8 @@ const _KCD = "KafkaClusterDescription";
189
198
  const _KCS = "KafkaClusterSummary";
190
199
  const _KCSa = "KafkaClustersSummary";
191
200
  const _KCa = "KafkaCluster";
201
+ const _KRE = "KafkaRequestException";
202
+ const _KTE = "KafkaTimeoutException";
192
203
  const _KV = "KafkaVersion";
193
204
  const _KVa = "KafkaVersions";
194
205
  const _L = "Leader";
@@ -243,6 +254,7 @@ const _MCI = "MutableClusterInfo";
243
254
  const _MR = "MaxResults";
244
255
  const _N = "Name";
245
256
  const _NARN = "NodeARN";
257
+ const _NCE = "NotControllerException";
246
258
  const _NE = "NodeExporter";
247
259
  const _NEI = "NodeExporterInfo";
248
260
  const _NFE = "NotFoundException";
@@ -288,6 +300,7 @@ const _RF = "ReplicationFactor";
288
300
  const _RI = "ReplicationInfo";
289
301
  const _RID = "ReplicationInfoDescription";
290
302
  const _RIL = "ReplicationInfoList";
303
+ const _RIPE = "ReassignmentInProgressException";
291
304
  const _RIS = "ReplicationInfoSummary";
292
305
  const _RISL = "ReplicationInfoSummaryList";
293
306
  const _RN = "ReplicatorName";
@@ -339,6 +352,7 @@ const _TBEBSVI = "TargetBrokerEBSVolumeInfo";
339
352
  const _TCA = "TargetClusterArn";
340
353
  const _TCI = "TargetClusterInfo";
341
354
  const _TCT = "TargetCompressionType";
355
+ const _TEE = "TopicExistsException";
342
356
  const _TI = "TopicInfo";
343
357
  const _TIT = "TargetInstanceType";
344
358
  const _TK = "TagKeys";
@@ -404,6 +418,10 @@ const _USRpda = "UpdateStorageResponse";
404
418
  const _USS = "UnprocessedScramSecrets";
405
419
  const _USSn = "UnprocessedScramSecret";
406
420
  const _USp = "UpdateStorage";
421
+ const _UT = "UpdateTopic";
422
+ const _UTOPE = "UnknownTopicOrPartitionException";
423
+ const _UTR = "UpdateTopicRequest";
424
+ const _UTRp = "UpdateTopicResponse";
407
425
  const _V = "Version";
408
426
  const _VC = "VpcConnectivity";
409
427
  const _VCA = "VpcConnectionArn";
@@ -672,7 +690,7 @@ const _zNI = "zookeeperNodeInfo";
672
690
  const _zV = "zookeeperVersion";
673
691
  const n0 = "com.amazonaws.kafka";
674
692
  import { TypeRegistry } from "@smithy/core/schema";
675
- import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, } from "../models/errors";
693
+ import { BadRequestException, ClusterConnectivityException, ConflictException, ControllerMovedException, ForbiddenException, GroupSubscribedToTopicException, InternalServerErrorException, KafkaRequestException, KafkaTimeoutException, NotControllerException, NotFoundException, ReassignmentInProgressException, ServiceUnavailableException, TooManyRequestsException, TopicExistsException, UnauthorizedException, UnknownTopicOrPartitionException, } from "../models/errors";
676
694
  import { KafkaServiceException } from "../models/KafkaServiceException";
677
695
  export var AmazonMskCluster$ = [3, n0, _AMC,
678
696
  0,
@@ -755,6 +773,12 @@ export var Cluster$ = [3, n0, _C,
755
773
  [_AOA, _CTl, _CA, _CN, _CT, _CV, _St, _SIt, _Ta, _P, _Se],
756
774
  [[0, { [_jN]: _aOA }], [0, { [_jN]: _cTl }], [0, { [_jN]: _cA }], [0, { [_jN]: _cN }], [5, { [_jN]: _cT }], [0, { [_jN]: _cV }], [0, { [_jN]: _st }], [() => StateInfo$, { [_jN]: _sIt }], [128 | 0, { [_jN]: _ta }], [() => Provisioned$, { [_jN]: _p }], [() => Serverless$, { [_jN]: _se }]]
757
775
  ];
776
+ export var ClusterConnectivityException$ = [-3, n0, _CCE,
777
+ { [_e]: _c, [_hE]: 409 },
778
+ [_IP, _M],
779
+ [[0, { [_jN]: _iP }], [0, { [_jN]: _m }]]
780
+ ];
781
+ TypeRegistry.for(n0).registerError(ClusterConnectivityException$, ClusterConnectivityException);
758
782
  export var ClusterInfo$ = [3, n0, _CIl,
759
783
  0,
760
784
  [_AOA, _BNGI, _R, _CAl, _CA, _CN, _CT, _CBSI, _CV, _EI, _EM, _OM, _LI, _NOBN, _St, _SIt, _Ta, _ZCS, _ZCST, _SM, _CAS],
@@ -836,6 +860,12 @@ export var ConsumerGroupReplicationUpdate$ = [3, n0, _CGRU,
836
860
  [_CGTE, _CGTR, _DACNCG, _SCGO],
837
861
  [[64 | 0, { [_jN]: _cGTE }], [64 | 0, { [_jN]: _cGTR }], [2, { [_jN]: _dACNCG }], [2, { [_jN]: _sCGO }]], 4
838
862
  ];
863
+ export var ControllerMovedException$ = [-3, n0, _CME,
864
+ { [_e]: _c, [_hE]: 409 },
865
+ [_IP, _M],
866
+ [[0, { [_jN]: _iP }], [0, { [_jN]: _m }]]
867
+ ];
868
+ TypeRegistry.for(n0).registerError(ControllerMovedException$, ControllerMovedException);
839
869
  export var ControllerNodeInfo$ = [3, n0, _CNI,
840
870
  0,
841
871
  [_E],
@@ -881,6 +911,16 @@ export var CreateReplicatorResponse$ = [3, n0, _CRRr,
881
911
  [_RA, _RN, _RS],
882
912
  [[0, { [_jN]: _rA }], [0, { [_jN]: _rN }], [0, { [_jN]: _rS }]]
883
913
  ];
914
+ export var CreateTopicRequest$ = [3, n0, _CTR,
915
+ 0,
916
+ [_CA, _TN, _PC, _RF, _Con],
917
+ [[0, 1], [0, { [_jN]: _tN }], [1, { [_jN]: _pC }], [1, { [_jN]: _rF }], [0, { [_jN]: _co }]], 4
918
+ ];
919
+ export var CreateTopicResponse$ = [3, n0, _CTRr,
920
+ 0,
921
+ [_TA, _TN, _Sta],
922
+ [[0, { [_jN]: _tA }], [0, { [_jN]: _tN }], [0, { [_jN]: _sta }]]
923
+ ];
884
924
  export var CreateVpcConnectionRequest$ = [3, n0, _CVCR,
885
925
  0,
886
926
  [_TCA, _A, _VI, _CS, _SG, _Ta],
@@ -931,6 +971,16 @@ export var DeleteReplicatorResponse$ = [3, n0, _DRRe,
931
971
  [_RA, _RS],
932
972
  [[0, { [_jN]: _rA }], [0, { [_jN]: _rS }]]
933
973
  ];
974
+ export var DeleteTopicRequest$ = [3, n0, _DTR,
975
+ 0,
976
+ [_CA, _TN],
977
+ [[0, 1], [0, 1]], 2
978
+ ];
979
+ export var DeleteTopicResponse$ = [3, n0, _DTRe,
980
+ 0,
981
+ [_TA, _TN, _Sta],
982
+ [[0, { [_jN]: _tA }], [0, { [_jN]: _tN }], [0, { [_jN]: _sta }]]
983
+ ];
934
984
  export var DeleteVpcConnectionRequest$ = [3, n0, _DVCR,
935
985
  0,
936
986
  [_Ar],
@@ -1021,12 +1071,12 @@ export var DescribeTopicPartitionsResponse$ = [3, n0, _DTPRe,
1021
1071
  [_Pa, _NT],
1022
1072
  [[() => __listOfTopicPartitionInfo, { [_jN]: _pa }], [0, { [_jN]: _nT }]]
1023
1073
  ];
1024
- export var DescribeTopicRequest$ = [3, n0, _DTR,
1074
+ export var DescribeTopicRequest$ = [3, n0, _DTRes,
1025
1075
  0,
1026
1076
  [_CA, _TN],
1027
1077
  [[0, 1], [0, 1]], 2
1028
1078
  ];
1029
- export var DescribeTopicResponse$ = [3, n0, _DTRe,
1079
+ export var DescribeTopicResponse$ = [3, n0, _DTResc,
1030
1080
  0,
1031
1081
  [_TA, _TN, _RF, _PC, _Con, _Sta],
1032
1082
  [[0, { [_jN]: _tA }], [0, { [_jN]: _tN }], [1, { [_jN]: _rF }], [1, { [_jN]: _pC }], [0, { [_jN]: _co }], [0, { [_jN]: _sta }]]
@@ -1107,6 +1157,12 @@ export var GetCompatibleKafkaVersionsResponse$ = [3, n0, _GCKVRe,
1107
1157
  [_CKVo],
1108
1158
  [[() => __listOfCompatibleKafkaVersion, { [_jN]: _cKV }]]
1109
1159
  ];
1160
+ export var GroupSubscribedToTopicException$ = [-3, n0, _GSTTE,
1161
+ { [_e]: _c, [_hE]: 409 },
1162
+ [_IP, _M],
1163
+ [[0, { [_jN]: _iP }], [0, { [_jN]: _m }]]
1164
+ ];
1165
+ TypeRegistry.for(n0).registerError(GroupSubscribedToTopicException$, GroupSubscribedToTopicException);
1110
1166
  export var Iam$ = [3, n0, _I,
1111
1167
  0,
1112
1168
  [_En],
@@ -1148,6 +1204,18 @@ export var KafkaClusterSummary$ = [3, n0, _KCS,
1148
1204
  [_AMC, _KCA],
1149
1205
  [[() => AmazonMskCluster$, { [_jN]: _aMC }], [0, { [_jN]: _kCA }]]
1150
1206
  ];
1207
+ export var KafkaRequestException$ = [-3, n0, _KRE,
1208
+ { [_e]: _c, [_hE]: 400 },
1209
+ [_IP, _M],
1210
+ [[0, { [_jN]: _iP }], [0, { [_jN]: _m }]]
1211
+ ];
1212
+ TypeRegistry.for(n0).registerError(KafkaRequestException$, KafkaRequestException);
1213
+ export var KafkaTimeoutException$ = [-3, n0, _KTE,
1214
+ { [_e]: _c, [_hE]: 409 },
1215
+ [_IP, _M],
1216
+ [[0, { [_jN]: _iP }], [0, { [_jN]: _m }]]
1217
+ ];
1218
+ TypeRegistry.for(n0).registerError(KafkaTimeoutException$, KafkaTimeoutException);
1151
1219
  export var KafkaVersion$ = [3, n0, _KV,
1152
1220
  0,
1153
1221
  [_V, _Sta],
@@ -1318,6 +1386,12 @@ export var NodeInfo$ = [3, n0, _NI,
1318
1386
  [_ATCT, _BNI, _CNI, _IT, _NARN, _NTo, _ZNI],
1319
1387
  [[0, { [_jN]: _aTCT }], [() => BrokerNodeInfo$, { [_jN]: _bNI }], [() => ControllerNodeInfo$, { [_jN]: _cNI }], [0, { [_jN]: _iT }], [0, { [_jN]: _nARN }], [0, { [_jN]: _nTo }], [() => ZookeeperNodeInfo$, { [_jN]: _zNI }]]
1320
1388
  ];
1389
+ export var NotControllerException$ = [-3, n0, _NCE,
1390
+ { [_e]: _c, [_hE]: 409 },
1391
+ [_IP, _M],
1392
+ [[0, { [_jN]: _iP }], [0, { [_jN]: _m }]]
1393
+ ];
1394
+ TypeRegistry.for(n0).registerError(NotControllerException$, NotControllerException);
1321
1395
  export var NotFoundException$ = [-3, n0, _NFE,
1322
1396
  { [_e]: _c, [_hE]: 404 },
1323
1397
  [_IP, _M],
@@ -1374,6 +1448,12 @@ export var PutClusterPolicyResponse$ = [3, n0, _PCPRu,
1374
1448
  [_CV],
1375
1449
  [[0, { [_jN]: _cV }]]
1376
1450
  ];
1451
+ export var ReassignmentInProgressException$ = [-3, n0, _RIPE,
1452
+ { [_e]: _c, [_hE]: 409 },
1453
+ [_IP, _M],
1454
+ [[0, { [_jN]: _iP }], [0, { [_jN]: _m }]]
1455
+ ];
1456
+ TypeRegistry.for(n0).registerError(ReassignmentInProgressException$, ReassignmentInProgressException);
1377
1457
  export var Rebalancing$ = [3, n0, _R,
1378
1458
  0,
1379
1459
  [_Sta],
@@ -1501,6 +1581,12 @@ export var TooManyRequestsException$ = [-3, n0, _TMRE,
1501
1581
  [[0, { [_jN]: _iP }], [0, { [_jN]: _m }]]
1502
1582
  ];
1503
1583
  TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);
1584
+ export var TopicExistsException$ = [-3, n0, _TEE,
1585
+ { [_e]: _c, [_hE]: 409 },
1586
+ [_IP, _M],
1587
+ [[0, { [_jN]: _iP }], [0, { [_jN]: _m }]]
1588
+ ];
1589
+ TypeRegistry.for(n0).registerError(TopicExistsException$, TopicExistsException);
1504
1590
  export var TopicInfo$ = [3, n0, _TI,
1505
1591
  0,
1506
1592
  [_TA, _TN, _RF, _PC, _OOSRC],
@@ -1532,6 +1618,12 @@ export var UnauthorizedException$ = [-3, n0, _UE,
1532
1618
  [[0, { [_jN]: _iP }], [0, { [_jN]: _m }]]
1533
1619
  ];
1534
1620
  TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException);
1621
+ export var UnknownTopicOrPartitionException$ = [-3, n0, _UTOPE,
1622
+ { [_e]: _c, [_hE]: 404 },
1623
+ [_IP, _M],
1624
+ [[0, { [_jN]: _iP }], [0, { [_jN]: _m }]]
1625
+ ];
1626
+ TypeRegistry.for(n0).registerError(UnknownTopicOrPartitionException$, UnknownTopicOrPartitionException);
1535
1627
  export var UnprocessedScramSecret$ = [3, n0, _USSn,
1536
1628
  0,
1537
1629
  [_EC, _EMr, _SA],
@@ -1662,6 +1754,16 @@ export var UpdateStorageResponse$ = [3, n0, _USRpda,
1662
1754
  [_CA, _COA],
1663
1755
  [[0, { [_jN]: _cA }], [0, { [_jN]: _cOA }]]
1664
1756
  ];
1757
+ export var UpdateTopicRequest$ = [3, n0, _UTR,
1758
+ 0,
1759
+ [_CA, _TN, _Con, _PC],
1760
+ [[0, 1], [0, 1], [0, { [_jN]: _co }], [1, { [_jN]: _pC }]], 2
1761
+ ];
1762
+ export var UpdateTopicResponse$ = [3, n0, _UTRp,
1763
+ 0,
1764
+ [_TA, _TN, _Sta],
1765
+ [[0, { [_jN]: _tA }], [0, { [_jN]: _tN }], [0, { [_jN]: _sta }]]
1766
+ ];
1665
1767
  export var UserIdentity$ = [3, n0, _UI,
1666
1768
  0,
1667
1769
  [_Ty, _PIr],
@@ -1845,6 +1947,9 @@ export var CreateConfiguration$ = [9, n0, _CCr,
1845
1947
  export var CreateReplicator$ = [9, n0, _CRr,
1846
1948
  { [_h]: ["POST", "/replication/v1/replicators", 200] }, () => CreateReplicatorRequest$, () => CreateReplicatorResponse$
1847
1949
  ];
1950
+ export var CreateTopic$ = [9, n0, _CTr,
1951
+ { [_h]: ["POST", "/v1/clusters/{ClusterArn}/topics", 200] }, () => CreateTopicRequest$, () => CreateTopicResponse$
1952
+ ];
1848
1953
  export var CreateVpcConnection$ = [9, n0, _CVCr,
1849
1954
  { [_h]: ["POST", "/v1/vpc-connection", 200] }, () => CreateVpcConnectionRequest$, () => CreateVpcConnectionResponse$
1850
1955
  ];
@@ -1860,6 +1965,9 @@ export var DeleteConfiguration$ = [9, n0, _DCe,
1860
1965
  export var DeleteReplicator$ = [9, n0, _DR,
1861
1966
  { [_h]: ["DELETE", "/replication/v1/replicators/{ReplicatorArn}", 200] }, () => DeleteReplicatorRequest$, () => DeleteReplicatorResponse$
1862
1967
  ];
1968
+ export var DeleteTopic$ = [9, n0, _DT,
1969
+ { [_h]: ["DELETE", "/v1/clusters/{ClusterArn}/topics/{TopicName}", 200] }, () => DeleteTopicRequest$, () => DeleteTopicResponse$
1970
+ ];
1863
1971
  export var DeleteVpcConnection$ = [9, n0, _DVC,
1864
1972
  { [_h]: ["DELETE", "/v1/vpc-connection/{Arn}", 200] }, () => DeleteVpcConnectionRequest$, () => DeleteVpcConnectionResponse$
1865
1973
  ];
@@ -1884,7 +1992,7 @@ export var DescribeConfigurationRevision$ = [9, n0, _DCRescrib,
1884
1992
  export var DescribeReplicator$ = [9, n0, _DRe,
1885
1993
  { [_h]: ["GET", "/replication/v1/replicators/{ReplicatorArn}", 200] }, () => DescribeReplicatorRequest$, () => DescribeReplicatorResponse$
1886
1994
  ];
1887
- export var DescribeTopic$ = [9, n0, _DT,
1995
+ export var DescribeTopic$ = [9, n0, _DTe,
1888
1996
  { [_h]: ["GET", "/v1/clusters/{ClusterArn}/topics/{TopicName}", 200] }, () => DescribeTopicRequest$, () => DescribeTopicResponse$
1889
1997
  ];
1890
1998
  export var DescribeTopicPartitions$ = [9, n0, _DTP,
@@ -1995,3 +2103,6 @@ export var UpdateSecurity$ = [9, n0, _US,
1995
2103
  export var UpdateStorage$ = [9, n0, _USp,
1996
2104
  { [_h]: ["PUT", "/v1/clusters/{ClusterArn}/storage", 200] }, () => UpdateStorageRequest$, () => UpdateStorageResponse$
1997
2105
  ];
2106
+ export var UpdateTopic$ = [9, n0, _UT,
2107
+ { [_h]: ["PUT", "/v1/clusters/{ClusterArn}/topics/{TopicName}", 200] }, () => UpdateTopicRequest$, () => UpdateTopicResponse$
2108
+ ];
@@ -5,11 +5,13 @@ import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./command
5
5
  import { CreateClusterV2CommandInput, CreateClusterV2CommandOutput } from "./commands/CreateClusterV2Command";
6
6
  import { CreateConfigurationCommandInput, CreateConfigurationCommandOutput } from "./commands/CreateConfigurationCommand";
7
7
  import { CreateReplicatorCommandInput, CreateReplicatorCommandOutput } from "./commands/CreateReplicatorCommand";
8
+ import { CreateTopicCommandInput, CreateTopicCommandOutput } from "./commands/CreateTopicCommand";
8
9
  import { CreateVpcConnectionCommandInput, CreateVpcConnectionCommandOutput } from "./commands/CreateVpcConnectionCommand";
9
10
  import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./commands/DeleteClusterCommand";
10
11
  import { DeleteClusterPolicyCommandInput, DeleteClusterPolicyCommandOutput } from "./commands/DeleteClusterPolicyCommand";
11
12
  import { DeleteConfigurationCommandInput, DeleteConfigurationCommandOutput } from "./commands/DeleteConfigurationCommand";
12
13
  import { DeleteReplicatorCommandInput, DeleteReplicatorCommandOutput } from "./commands/DeleteReplicatorCommand";
14
+ import { DeleteTopicCommandInput, DeleteTopicCommandOutput } from "./commands/DeleteTopicCommand";
13
15
  import { DeleteVpcConnectionCommandInput, DeleteVpcConnectionCommandOutput } from "./commands/DeleteVpcConnectionCommand";
14
16
  import { DescribeClusterCommandInput, DescribeClusterCommandOutput } from "./commands/DescribeClusterCommand";
15
17
  import { DescribeClusterOperationCommandInput, DescribeClusterOperationCommandOutput } from "./commands/DescribeClusterOperationCommand";
@@ -55,6 +57,7 @@ import { UpdateRebalancingCommandInput, UpdateRebalancingCommandOutput } from ".
55
57
  import { UpdateReplicationInfoCommandInput, UpdateReplicationInfoCommandOutput } from "./commands/UpdateReplicationInfoCommand";
56
58
  import { UpdateSecurityCommandInput, UpdateSecurityCommandOutput } from "./commands/UpdateSecurityCommand";
57
59
  import { UpdateStorageCommandInput, UpdateStorageCommandOutput } from "./commands/UpdateStorageCommand";
60
+ import { UpdateTopicCommandInput, UpdateTopicCommandOutput } from "./commands/UpdateTopicCommand";
58
61
  import { KafkaClient } from "./KafkaClient";
59
62
  export interface Kafka {
60
63
  /**
@@ -93,6 +96,12 @@ export interface Kafka {
93
96
  createReplicator(args: CreateReplicatorCommandInput, options?: __HttpHandlerOptions): Promise<CreateReplicatorCommandOutput>;
94
97
  createReplicator(args: CreateReplicatorCommandInput, cb: (err: any, data?: CreateReplicatorCommandOutput) => void): void;
95
98
  createReplicator(args: CreateReplicatorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateReplicatorCommandOutput) => void): void;
99
+ /**
100
+ * @see {@link CreateTopicCommand}
101
+ */
102
+ createTopic(args: CreateTopicCommandInput, options?: __HttpHandlerOptions): Promise<CreateTopicCommandOutput>;
103
+ createTopic(args: CreateTopicCommandInput, cb: (err: any, data?: CreateTopicCommandOutput) => void): void;
104
+ createTopic(args: CreateTopicCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTopicCommandOutput) => void): void;
96
105
  /**
97
106
  * @see {@link CreateVpcConnectionCommand}
98
107
  */
@@ -123,6 +132,12 @@ export interface Kafka {
123
132
  deleteReplicator(args: DeleteReplicatorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteReplicatorCommandOutput>;
124
133
  deleteReplicator(args: DeleteReplicatorCommandInput, cb: (err: any, data?: DeleteReplicatorCommandOutput) => void): void;
125
134
  deleteReplicator(args: DeleteReplicatorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteReplicatorCommandOutput) => void): void;
135
+ /**
136
+ * @see {@link DeleteTopicCommand}
137
+ */
138
+ deleteTopic(args: DeleteTopicCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTopicCommandOutput>;
139
+ deleteTopic(args: DeleteTopicCommandInput, cb: (err: any, data?: DeleteTopicCommandOutput) => void): void;
140
+ deleteTopic(args: DeleteTopicCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTopicCommandOutput) => void): void;
126
141
  /**
127
142
  * @see {@link DeleteVpcConnectionCommand}
128
143
  */
@@ -400,6 +415,12 @@ export interface Kafka {
400
415
  updateStorage(args: UpdateStorageCommandInput, options?: __HttpHandlerOptions): Promise<UpdateStorageCommandOutput>;
401
416
  updateStorage(args: UpdateStorageCommandInput, cb: (err: any, data?: UpdateStorageCommandOutput) => void): void;
402
417
  updateStorage(args: UpdateStorageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateStorageCommandOutput) => void): void;
418
+ /**
419
+ * @see {@link UpdateTopicCommand}
420
+ */
421
+ updateTopic(args: UpdateTopicCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTopicCommandOutput>;
422
+ updateTopic(args: UpdateTopicCommandInput, cb: (err: any, data?: UpdateTopicCommandOutput) => void): void;
423
+ updateTopic(args: UpdateTopicCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTopicCommandOutput) => void): void;
403
424
  /**
404
425
  * @see {@link DescribeTopicPartitionsCommand}
405
426
  * @param args - command input.