@effect-aws/client-kafka 1.10.9 → 2.0.0-beta.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 (42) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/dist/dts/Errors.d.ts +11 -2
  4. package/dist/dts/Errors.d.ts.map +1 -1
  5. package/dist/dts/KafkaClientInstance.d.ts +2 -2
  6. package/dist/dts/KafkaClientInstance.d.ts.map +1 -1
  7. package/dist/dts/KafkaService.d.ts +72 -62
  8. package/dist/dts/KafkaService.d.ts.map +1 -1
  9. package/dist/dts/KafkaServiceConfig.d.ts.map +1 -1
  10. package/dist/esm/Errors.js +9 -0
  11. package/dist/esm/Errors.js.map +1 -1
  12. package/dist/esm/KafkaClientInstance.js +3 -3
  13. package/dist/esm/KafkaClientInstance.js.map +1 -1
  14. package/dist/esm/KafkaService.js +6 -3
  15. package/dist/esm/KafkaService.js.map +1 -1
  16. package/dist/esm/KafkaServiceConfig.js +5 -6
  17. package/dist/esm/KafkaServiceConfig.js.map +1 -1
  18. package/package.json +8 -14
  19. package/src/Errors.ts +27 -0
  20. package/src/KafkaClientInstance.ts +4 -4
  21. package/src/KafkaService.ts +158 -59
  22. package/src/KafkaServiceConfig.ts +6 -8
  23. package/dist/cjs/Errors.d.ts +0 -15
  24. package/dist/cjs/Errors.d.ts.map +0 -1
  25. package/dist/cjs/Errors.js +0 -14
  26. package/dist/cjs/Errors.js.map +0 -1
  27. package/dist/cjs/KafkaClientInstance.d.ts +0 -24
  28. package/dist/cjs/KafkaClientInstance.d.ts.map +0 -1
  29. package/dist/cjs/KafkaClientInstance.js +0 -50
  30. package/dist/cjs/KafkaClientInstance.js.map +0 -1
  31. package/dist/cjs/KafkaService.d.ts +0 -270
  32. package/dist/cjs/KafkaService.d.ts.map +0 -1
  33. package/dist/cjs/KafkaService.js +0 -115
  34. package/dist/cjs/KafkaService.js.map +0 -1
  35. package/dist/cjs/KafkaServiceConfig.d.ts +0 -25
  36. package/dist/cjs/KafkaServiceConfig.d.ts.map +0 -1
  37. package/dist/cjs/KafkaServiceConfig.js +0 -35
  38. package/dist/cjs/KafkaServiceConfig.js.map +0 -1
  39. package/dist/cjs/index.d.ts +0 -44
  40. package/dist/cjs/index.d.ts.map +0 -1
  41. package/dist/cjs/index.js +0 -56
  42. package/dist/cjs/index.js.map +0 -1
@@ -20,6 +20,9 @@ import {
20
20
  CreateReplicatorCommand,
21
21
  type CreateReplicatorCommandInput,
22
22
  type CreateReplicatorCommandOutput,
23
+ CreateTopicCommand,
24
+ type CreateTopicCommandInput,
25
+ type CreateTopicCommandOutput,
23
26
  CreateVpcConnectionCommand,
24
27
  type CreateVpcConnectionCommandInput,
25
28
  type CreateVpcConnectionCommandOutput,
@@ -35,6 +38,9 @@ import {
35
38
  DeleteReplicatorCommand,
36
39
  type DeleteReplicatorCommandInput,
37
40
  type DeleteReplicatorCommandOutput,
41
+ DeleteTopicCommand,
42
+ type DeleteTopicCommandInput,
43
+ type DeleteTopicCommandOutput,
38
44
  DeleteVpcConnectionCommand,
39
45
  type DeleteVpcConnectionCommandInput,
40
46
  type DeleteVpcConnectionCommandOutput,
@@ -172,21 +178,33 @@ import {
172
178
  UpdateStorageCommand,
173
179
  type UpdateStorageCommandInput,
174
180
  type UpdateStorageCommandOutput,
181
+ UpdateTopicCommand,
182
+ type UpdateTopicCommandInput,
183
+ type UpdateTopicCommandOutput,
175
184
  } from "@aws-sdk/client-kafka";
176
185
  import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
177
186
  import { Service } from "@effect-aws/commons";
178
187
  import type { Cause } from "effect";
179
- import { Effect, Layer } from "effect";
188
+ import { Effect, Layer, ServiceMap } from "effect";
180
189
  import type {
181
190
  BadRequestError,
191
+ ClusterConnectivityError,
182
192
  ConflictError,
193
+ ControllerMovedError,
183
194
  ForbiddenError,
195
+ GroupSubscribedToTopicError,
184
196
  InternalServerError,
197
+ KafkaRequestError,
198
+ KafkaTimeoutError,
199
+ NotControllerError,
185
200
  NotFoundError,
201
+ ReassignmentInProgressError,
186
202
  SdkError,
187
203
  ServiceUnavailableError,
188
204
  TooManyRequestsError,
205
+ TopicExistsError,
189
206
  UnauthorizedError,
207
+ UnknownTopicOrPartitionError,
190
208
  } from "./Errors.js";
191
209
  import { AllServiceErrors } from "./Errors.js";
192
210
  import * as Instance from "./KafkaClientInstance.js";
@@ -199,11 +217,13 @@ const commands = {
199
217
  CreateClusterV2Command,
200
218
  CreateConfigurationCommand,
201
219
  CreateReplicatorCommand,
220
+ CreateTopicCommand,
202
221
  CreateVpcConnectionCommand,
203
222
  DeleteClusterCommand,
204
223
  DeleteClusterPolicyCommand,
205
224
  DeleteConfigurationCommand,
206
225
  DeleteReplicatorCommand,
226
+ DeleteTopicCommand,
207
227
  DeleteVpcConnectionCommand,
208
228
  DescribeClusterCommand,
209
229
  DescribeClusterOperationCommand,
@@ -249,6 +269,7 @@ const commands = {
249
269
  UpdateReplicationInfoCommand,
250
270
  UpdateSecurityCommand,
251
271
  UpdateStorageCommand,
272
+ UpdateTopicCommand,
252
273
  };
253
274
 
254
275
  interface KafkaService$ {
@@ -262,7 +283,7 @@ interface KafkaService$ {
262
283
  options?: HttpHandlerOptions,
263
284
  ): Effect.Effect<
264
285
  BatchAssociateScramSecretCommandOutput,
265
- | Cause.TimeoutException
286
+ | Cause.TimeoutError
266
287
  | SdkError
267
288
  | BadRequestError
268
289
  | ForbiddenError
@@ -281,7 +302,7 @@ interface KafkaService$ {
281
302
  options?: HttpHandlerOptions,
282
303
  ): Effect.Effect<
283
304
  BatchDisassociateScramSecretCommandOutput,
284
- | Cause.TimeoutException
305
+ | Cause.TimeoutError
285
306
  | SdkError
286
307
  | BadRequestError
287
308
  | ForbiddenError
@@ -300,7 +321,7 @@ interface KafkaService$ {
300
321
  options?: HttpHandlerOptions,
301
322
  ): Effect.Effect<
302
323
  CreateClusterCommandOutput,
303
- | Cause.TimeoutException
324
+ | Cause.TimeoutError
304
325
  | SdkError
305
326
  | BadRequestError
306
327
  | ConflictError
@@ -319,7 +340,7 @@ interface KafkaService$ {
319
340
  options?: HttpHandlerOptions,
320
341
  ): Effect.Effect<
321
342
  CreateClusterV2CommandOutput,
322
- | Cause.TimeoutException
343
+ | Cause.TimeoutError
323
344
  | SdkError
324
345
  | BadRequestError
325
346
  | ConflictError
@@ -338,7 +359,7 @@ interface KafkaService$ {
338
359
  options?: HttpHandlerOptions,
339
360
  ): Effect.Effect<
340
361
  CreateConfigurationCommandOutput,
341
- | Cause.TimeoutException
362
+ | Cause.TimeoutError
342
363
  | SdkError
343
364
  | BadRequestError
344
365
  | ConflictError
@@ -357,7 +378,7 @@ interface KafkaService$ {
357
378
  options?: HttpHandlerOptions,
358
379
  ): Effect.Effect<
359
380
  CreateReplicatorCommandOutput,
360
- | Cause.TimeoutException
381
+ | Cause.TimeoutError
361
382
  | SdkError
362
383
  | BadRequestError
363
384
  | ConflictError
@@ -369,6 +390,34 @@ interface KafkaService$ {
369
390
  | UnauthorizedError
370
391
  >;
371
392
 
393
+ /**
394
+ * @see {@link CreateTopicCommand}
395
+ */
396
+ createTopic(
397
+ args: CreateTopicCommandInput,
398
+ options?: HttpHandlerOptions,
399
+ ): Effect.Effect<
400
+ CreateTopicCommandOutput,
401
+ | Cause.TimeoutError
402
+ | SdkError
403
+ | BadRequestError
404
+ | ClusterConnectivityError
405
+ | ConflictError
406
+ | ControllerMovedError
407
+ | ForbiddenError
408
+ | GroupSubscribedToTopicError
409
+ | InternalServerError
410
+ | KafkaRequestError
411
+ | KafkaTimeoutError
412
+ | NotControllerError
413
+ | ReassignmentInProgressError
414
+ | ServiceUnavailableError
415
+ | TooManyRequestsError
416
+ | TopicExistsError
417
+ | UnauthorizedError
418
+ | UnknownTopicOrPartitionError
419
+ >;
420
+
372
421
  /**
373
422
  * @see {@link CreateVpcConnectionCommand}
374
423
  */
@@ -377,7 +426,7 @@ interface KafkaService$ {
377
426
  options?: HttpHandlerOptions,
378
427
  ): Effect.Effect<
379
428
  CreateVpcConnectionCommandOutput,
380
- | Cause.TimeoutException
429
+ | Cause.TimeoutError
381
430
  | SdkError
382
431
  | BadRequestError
383
432
  | ForbiddenError
@@ -395,7 +444,7 @@ interface KafkaService$ {
395
444
  options?: HttpHandlerOptions,
396
445
  ): Effect.Effect<
397
446
  DeleteClusterCommandOutput,
398
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
447
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
399
448
  >;
400
449
 
401
450
  /**
@@ -406,7 +455,7 @@ interface KafkaService$ {
406
455
  options?: HttpHandlerOptions,
407
456
  ): Effect.Effect<
408
457
  DeleteClusterPolicyCommandOutput,
409
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
458
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
410
459
  >;
411
460
 
412
461
  /**
@@ -417,7 +466,7 @@ interface KafkaService$ {
417
466
  options?: HttpHandlerOptions,
418
467
  ): Effect.Effect<
419
468
  DeleteConfigurationCommandOutput,
420
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
469
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
421
470
  >;
422
471
 
423
472
  /**
@@ -428,7 +477,7 @@ interface KafkaService$ {
428
477
  options?: HttpHandlerOptions,
429
478
  ): Effect.Effect<
430
479
  DeleteReplicatorCommandOutput,
431
- | Cause.TimeoutException
480
+ | Cause.TimeoutError
432
481
  | SdkError
433
482
  | BadRequestError
434
483
  | ForbiddenError
@@ -439,6 +488,30 @@ interface KafkaService$ {
439
488
  | UnauthorizedError
440
489
  >;
441
490
 
491
+ /**
492
+ * @see {@link DeleteTopicCommand}
493
+ */
494
+ deleteTopic(
495
+ args: DeleteTopicCommandInput,
496
+ options?: HttpHandlerOptions,
497
+ ): Effect.Effect<
498
+ DeleteTopicCommandOutput,
499
+ | Cause.TimeoutError
500
+ | SdkError
501
+ | BadRequestError
502
+ | ClusterConnectivityError
503
+ | ControllerMovedError
504
+ | ForbiddenError
505
+ | GroupSubscribedToTopicError
506
+ | InternalServerError
507
+ | KafkaRequestError
508
+ | KafkaTimeoutError
509
+ | NotControllerError
510
+ | NotFoundError
511
+ | ReassignmentInProgressError
512
+ | UnknownTopicOrPartitionError
513
+ >;
514
+
442
515
  /**
443
516
  * @see {@link DeleteVpcConnectionCommand}
444
517
  */
@@ -447,7 +520,7 @@ interface KafkaService$ {
447
520
  options?: HttpHandlerOptions,
448
521
  ): Effect.Effect<
449
522
  DeleteVpcConnectionCommandOutput,
450
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
523
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
451
524
  >;
452
525
 
453
526
  /**
@@ -458,7 +531,7 @@ interface KafkaService$ {
458
531
  options?: HttpHandlerOptions,
459
532
  ): Effect.Effect<
460
533
  DescribeClusterCommandOutput,
461
- | Cause.TimeoutException
534
+ | Cause.TimeoutError
462
535
  | SdkError
463
536
  | BadRequestError
464
537
  | ForbiddenError
@@ -475,7 +548,7 @@ interface KafkaService$ {
475
548
  options?: HttpHandlerOptions,
476
549
  ): Effect.Effect<
477
550
  DescribeClusterOperationCommandOutput,
478
- | Cause.TimeoutException
551
+ | Cause.TimeoutError
479
552
  | SdkError
480
553
  | BadRequestError
481
554
  | ForbiddenError
@@ -492,7 +565,7 @@ interface KafkaService$ {
492
565
  options?: HttpHandlerOptions,
493
566
  ): Effect.Effect<
494
567
  DescribeClusterOperationV2CommandOutput,
495
- | Cause.TimeoutException
568
+ | Cause.TimeoutError
496
569
  | SdkError
497
570
  | BadRequestError
498
571
  | ForbiddenError
@@ -511,7 +584,7 @@ interface KafkaService$ {
511
584
  options?: HttpHandlerOptions,
512
585
  ): Effect.Effect<
513
586
  DescribeClusterV2CommandOutput,
514
- | Cause.TimeoutException
587
+ | Cause.TimeoutError
515
588
  | SdkError
516
589
  | BadRequestError
517
590
  | ForbiddenError
@@ -528,7 +601,7 @@ interface KafkaService$ {
528
601
  options?: HttpHandlerOptions,
529
602
  ): Effect.Effect<
530
603
  DescribeConfigurationCommandOutput,
531
- | Cause.TimeoutException
604
+ | Cause.TimeoutError
532
605
  | SdkError
533
606
  | BadRequestError
534
607
  | ForbiddenError
@@ -546,7 +619,7 @@ interface KafkaService$ {
546
619
  options?: HttpHandlerOptions,
547
620
  ): Effect.Effect<
548
621
  DescribeConfigurationRevisionCommandOutput,
549
- | Cause.TimeoutException
622
+ | Cause.TimeoutError
550
623
  | SdkError
551
624
  | BadRequestError
552
625
  | ForbiddenError
@@ -564,7 +637,7 @@ interface KafkaService$ {
564
637
  options?: HttpHandlerOptions,
565
638
  ): Effect.Effect<
566
639
  DescribeReplicatorCommandOutput,
567
- | Cause.TimeoutException
640
+ | Cause.TimeoutError
568
641
  | SdkError
569
642
  | BadRequestError
570
643
  | ForbiddenError
@@ -583,7 +656,7 @@ interface KafkaService$ {
583
656
  options?: HttpHandlerOptions,
584
657
  ): Effect.Effect<
585
658
  DescribeTopicCommandOutput,
586
- | Cause.TimeoutException
659
+ | Cause.TimeoutError
587
660
  | SdkError
588
661
  | BadRequestError
589
662
  | ForbiddenError
@@ -600,7 +673,7 @@ interface KafkaService$ {
600
673
  options?: HttpHandlerOptions,
601
674
  ): Effect.Effect<
602
675
  DescribeTopicPartitionsCommandOutput,
603
- | Cause.TimeoutException
676
+ | Cause.TimeoutError
604
677
  | SdkError
605
678
  | BadRequestError
606
679
  | ForbiddenError
@@ -617,7 +690,7 @@ interface KafkaService$ {
617
690
  options?: HttpHandlerOptions,
618
691
  ): Effect.Effect<
619
692
  DescribeVpcConnectionCommandOutput,
620
- | Cause.TimeoutException
693
+ | Cause.TimeoutError
621
694
  | SdkError
622
695
  | BadRequestError
623
696
  | ForbiddenError
@@ -635,7 +708,7 @@ interface KafkaService$ {
635
708
  options?: HttpHandlerOptions,
636
709
  ): Effect.Effect<
637
710
  GetBootstrapBrokersCommandOutput,
638
- | Cause.TimeoutException
711
+ | Cause.TimeoutError
639
712
  | SdkError
640
713
  | BadRequestError
641
714
  | ConflictError
@@ -652,7 +725,7 @@ interface KafkaService$ {
652
725
  options?: HttpHandlerOptions,
653
726
  ): Effect.Effect<
654
727
  GetClusterPolicyCommandOutput,
655
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
728
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
656
729
  >;
657
730
 
658
731
  /**
@@ -663,7 +736,7 @@ interface KafkaService$ {
663
736
  options?: HttpHandlerOptions,
664
737
  ): Effect.Effect<
665
738
  GetCompatibleKafkaVersionsCommandOutput,
666
- | Cause.TimeoutException
739
+ | Cause.TimeoutError
667
740
  | SdkError
668
741
  | BadRequestError
669
742
  | ForbiddenError
@@ -682,7 +755,7 @@ interface KafkaService$ {
682
755
  options?: HttpHandlerOptions,
683
756
  ): Effect.Effect<
684
757
  ListClientVpcConnectionsCommandOutput,
685
- | Cause.TimeoutException
758
+ | Cause.TimeoutError
686
759
  | SdkError
687
760
  | BadRequestError
688
761
  | ForbiddenError
@@ -699,7 +772,7 @@ interface KafkaService$ {
699
772
  options?: HttpHandlerOptions,
700
773
  ): Effect.Effect<
701
774
  ListClusterOperationsCommandOutput,
702
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError
775
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError
703
776
  >;
704
777
 
705
778
  /**
@@ -710,7 +783,7 @@ interface KafkaService$ {
710
783
  options?: HttpHandlerOptions,
711
784
  ): Effect.Effect<
712
785
  ListClusterOperationsV2CommandOutput,
713
- | Cause.TimeoutException
786
+ | Cause.TimeoutError
714
787
  | SdkError
715
788
  | BadRequestError
716
789
  | ForbiddenError
@@ -729,7 +802,7 @@ interface KafkaService$ {
729
802
  options?: HttpHandlerOptions,
730
803
  ): Effect.Effect<
731
804
  ListClustersCommandOutput,
732
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError
805
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError
733
806
  >;
734
807
 
735
808
  /**
@@ -740,7 +813,7 @@ interface KafkaService$ {
740
813
  options?: HttpHandlerOptions,
741
814
  ): Effect.Effect<
742
815
  ListClustersV2CommandOutput,
743
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError
816
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError
744
817
  >;
745
818
 
746
819
  /**
@@ -751,7 +824,7 @@ interface KafkaService$ {
751
824
  options?: HttpHandlerOptions,
752
825
  ): Effect.Effect<
753
826
  ListConfigurationRevisionsCommandOutput,
754
- | Cause.TimeoutException
827
+ | Cause.TimeoutError
755
828
  | SdkError
756
829
  | BadRequestError
757
830
  | ForbiddenError
@@ -769,7 +842,7 @@ interface KafkaService$ {
769
842
  options?: HttpHandlerOptions,
770
843
  ): Effect.Effect<
771
844
  ListConfigurationsCommandOutput,
772
- | Cause.TimeoutException
845
+ | Cause.TimeoutError
773
846
  | SdkError
774
847
  | BadRequestError
775
848
  | ForbiddenError
@@ -786,7 +859,7 @@ interface KafkaService$ {
786
859
  options?: HttpHandlerOptions,
787
860
  ): Effect.Effect<
788
861
  ListKafkaVersionsCommandOutput,
789
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError
862
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | UnauthorizedError
790
863
  >;
791
864
 
792
865
  /**
@@ -797,7 +870,7 @@ interface KafkaService$ {
797
870
  options?: HttpHandlerOptions,
798
871
  ): Effect.Effect<
799
872
  ListNodesCommandOutput,
800
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
873
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
801
874
  >;
802
875
 
803
876
  /**
@@ -808,7 +881,7 @@ interface KafkaService$ {
808
881
  options?: HttpHandlerOptions,
809
882
  ): Effect.Effect<
810
883
  ListReplicatorsCommandOutput,
811
- | Cause.TimeoutException
884
+ | Cause.TimeoutError
812
885
  | SdkError
813
886
  | BadRequestError
814
887
  | ForbiddenError
@@ -827,7 +900,7 @@ interface KafkaService$ {
827
900
  options?: HttpHandlerOptions,
828
901
  ): Effect.Effect<
829
902
  ListScramSecretsCommandOutput,
830
- | Cause.TimeoutException
903
+ | Cause.TimeoutError
831
904
  | SdkError
832
905
  | BadRequestError
833
906
  | ForbiddenError
@@ -846,7 +919,7 @@ interface KafkaService$ {
846
919
  options?: HttpHandlerOptions,
847
920
  ): Effect.Effect<
848
921
  ListTagsForResourceCommandOutput,
849
- Cause.TimeoutException | SdkError | BadRequestError | InternalServerError | NotFoundError
922
+ Cause.TimeoutError | SdkError | BadRequestError | InternalServerError | NotFoundError
850
923
  >;
851
924
 
852
925
  /**
@@ -857,7 +930,7 @@ interface KafkaService$ {
857
930
  options?: HttpHandlerOptions,
858
931
  ): Effect.Effect<
859
932
  ListTopicsCommandOutput,
860
- | Cause.TimeoutException
933
+ | Cause.TimeoutError
861
934
  | SdkError
862
935
  | BadRequestError
863
936
  | ForbiddenError
@@ -874,7 +947,7 @@ interface KafkaService$ {
874
947
  options?: HttpHandlerOptions,
875
948
  ): Effect.Effect<
876
949
  ListVpcConnectionsCommandOutput,
877
- | Cause.TimeoutException
950
+ | Cause.TimeoutError
878
951
  | SdkError
879
952
  | BadRequestError
880
953
  | ForbiddenError
@@ -891,7 +964,7 @@ interface KafkaService$ {
891
964
  options?: HttpHandlerOptions,
892
965
  ): Effect.Effect<
893
966
  PutClusterPolicyCommandOutput,
894
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError
967
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError
895
968
  >;
896
969
 
897
970
  /**
@@ -902,7 +975,7 @@ interface KafkaService$ {
902
975
  options?: HttpHandlerOptions,
903
976
  ): Effect.Effect<
904
977
  RebootBrokerCommandOutput,
905
- | Cause.TimeoutException
978
+ | Cause.TimeoutError
906
979
  | SdkError
907
980
  | BadRequestError
908
981
  | ForbiddenError
@@ -921,7 +994,7 @@ interface KafkaService$ {
921
994
  options?: HttpHandlerOptions,
922
995
  ): Effect.Effect<
923
996
  RejectClientVpcConnectionCommandOutput,
924
- | Cause.TimeoutException
997
+ | Cause.TimeoutError
925
998
  | SdkError
926
999
  | BadRequestError
927
1000
  | ForbiddenError
@@ -938,7 +1011,7 @@ interface KafkaService$ {
938
1011
  options?: HttpHandlerOptions,
939
1012
  ): Effect.Effect<
940
1013
  TagResourceCommandOutput,
941
- Cause.TimeoutException | SdkError | BadRequestError | InternalServerError | NotFoundError
1014
+ Cause.TimeoutError | SdkError | BadRequestError | InternalServerError | NotFoundError
942
1015
  >;
943
1016
 
944
1017
  /**
@@ -949,7 +1022,7 @@ interface KafkaService$ {
949
1022
  options?: HttpHandlerOptions,
950
1023
  ): Effect.Effect<
951
1024
  UntagResourceCommandOutput,
952
- Cause.TimeoutException | SdkError | BadRequestError | InternalServerError | NotFoundError
1025
+ Cause.TimeoutError | SdkError | BadRequestError | InternalServerError | NotFoundError
953
1026
  >;
954
1027
 
955
1028
  /**
@@ -960,7 +1033,7 @@ interface KafkaService$ {
960
1033
  options?: HttpHandlerOptions,
961
1034
  ): Effect.Effect<
962
1035
  UpdateBrokerCountCommandOutput,
963
- | Cause.TimeoutException
1036
+ | Cause.TimeoutError
964
1037
  | SdkError
965
1038
  | BadRequestError
966
1039
  | ForbiddenError
@@ -977,7 +1050,7 @@ interface KafkaService$ {
977
1050
  options?: HttpHandlerOptions,
978
1051
  ): Effect.Effect<
979
1052
  UpdateBrokerStorageCommandOutput,
980
- | Cause.TimeoutException
1053
+ | Cause.TimeoutError
981
1054
  | SdkError
982
1055
  | BadRequestError
983
1056
  | ForbiddenError
@@ -994,7 +1067,7 @@ interface KafkaService$ {
994
1067
  options?: HttpHandlerOptions,
995
1068
  ): Effect.Effect<
996
1069
  UpdateBrokerTypeCommandOutput,
997
- | Cause.TimeoutException
1070
+ | Cause.TimeoutError
998
1071
  | SdkError
999
1072
  | BadRequestError
1000
1073
  | ForbiddenError
@@ -1013,7 +1086,7 @@ interface KafkaService$ {
1013
1086
  options?: HttpHandlerOptions,
1014
1087
  ): Effect.Effect<
1015
1088
  UpdateClusterConfigurationCommandOutput,
1016
- | Cause.TimeoutException
1089
+ | Cause.TimeoutError
1017
1090
  | SdkError
1018
1091
  | BadRequestError
1019
1092
  | ForbiddenError
@@ -1031,7 +1104,7 @@ interface KafkaService$ {
1031
1104
  options?: HttpHandlerOptions,
1032
1105
  ): Effect.Effect<
1033
1106
  UpdateClusterKafkaVersionCommandOutput,
1034
- | Cause.TimeoutException
1107
+ | Cause.TimeoutError
1035
1108
  | SdkError
1036
1109
  | BadRequestError
1037
1110
  | ForbiddenError
@@ -1050,7 +1123,7 @@ interface KafkaService$ {
1050
1123
  options?: HttpHandlerOptions,
1051
1124
  ): Effect.Effect<
1052
1125
  UpdateConfigurationCommandOutput,
1053
- | Cause.TimeoutException
1126
+ | Cause.TimeoutError
1054
1127
  | SdkError
1055
1128
  | BadRequestError
1056
1129
  | ForbiddenError
@@ -1068,7 +1141,7 @@ interface KafkaService$ {
1068
1141
  options?: HttpHandlerOptions,
1069
1142
  ): Effect.Effect<
1070
1143
  UpdateConnectivityCommandOutput,
1071
- | Cause.TimeoutException
1144
+ | Cause.TimeoutError
1072
1145
  | SdkError
1073
1146
  | BadRequestError
1074
1147
  | ForbiddenError
@@ -1086,7 +1159,7 @@ interface KafkaService$ {
1086
1159
  options?: HttpHandlerOptions,
1087
1160
  ): Effect.Effect<
1088
1161
  UpdateMonitoringCommandOutput,
1089
- | Cause.TimeoutException
1162
+ | Cause.TimeoutError
1090
1163
  | SdkError
1091
1164
  | BadRequestError
1092
1165
  | ForbiddenError
@@ -1103,7 +1176,7 @@ interface KafkaService$ {
1103
1176
  options?: HttpHandlerOptions,
1104
1177
  ): Effect.Effect<
1105
1178
  UpdateRebalancingCommandOutput,
1106
- | Cause.TimeoutException
1179
+ | Cause.TimeoutError
1107
1180
  | SdkError
1108
1181
  | BadRequestError
1109
1182
  | ForbiddenError
@@ -1122,7 +1195,7 @@ interface KafkaService$ {
1122
1195
  options?: HttpHandlerOptions,
1123
1196
  ): Effect.Effect<
1124
1197
  UpdateReplicationInfoCommandOutput,
1125
- | Cause.TimeoutException
1198
+ | Cause.TimeoutError
1126
1199
  | SdkError
1127
1200
  | BadRequestError
1128
1201
  | ForbiddenError
@@ -1141,7 +1214,7 @@ interface KafkaService$ {
1141
1214
  options?: HttpHandlerOptions,
1142
1215
  ): Effect.Effect<
1143
1216
  UpdateSecurityCommandOutput,
1144
- | Cause.TimeoutException
1217
+ | Cause.TimeoutError
1145
1218
  | SdkError
1146
1219
  | BadRequestError
1147
1220
  | ForbiddenError
@@ -1160,7 +1233,7 @@ interface KafkaService$ {
1160
1233
  options?: HttpHandlerOptions,
1161
1234
  ): Effect.Effect<
1162
1235
  UpdateStorageCommandOutput,
1163
- | Cause.TimeoutException
1236
+ | Cause.TimeoutError
1164
1237
  | SdkError
1165
1238
  | BadRequestError
1166
1239
  | ForbiddenError
@@ -1170,6 +1243,32 @@ interface KafkaService$ {
1170
1243
  | TooManyRequestsError
1171
1244
  | UnauthorizedError
1172
1245
  >;
1246
+
1247
+ /**
1248
+ * @see {@link UpdateTopicCommand}
1249
+ */
1250
+ updateTopic(
1251
+ args: UpdateTopicCommandInput,
1252
+ options?: HttpHandlerOptions,
1253
+ ): Effect.Effect<
1254
+ UpdateTopicCommandOutput,
1255
+ | Cause.TimeoutError
1256
+ | SdkError
1257
+ | BadRequestError
1258
+ | ClusterConnectivityError
1259
+ | ControllerMovedError
1260
+ | ForbiddenError
1261
+ | GroupSubscribedToTopicError
1262
+ | InternalServerError
1263
+ | KafkaRequestError
1264
+ | KafkaTimeoutError
1265
+ | NotControllerError
1266
+ | NotFoundError
1267
+ | ReassignmentInProgressError
1268
+ | ServiceUnavailableError
1269
+ | UnauthorizedError
1270
+ | UnknownTopicOrPartitionError
1271
+ >;
1173
1272
  }
1174
1273
 
1175
1274
  /**
@@ -1193,10 +1292,10 @@ export const makeKafkaService = Effect.gen(function*() {
1193
1292
  * @since 1.0.0
1194
1293
  * @category models
1195
1294
  */
1196
- export class KafkaService extends Effect.Tag("@effect-aws/client-kafka/KafkaService")<
1295
+ export class KafkaService extends ServiceMap.Service<
1197
1296
  KafkaService,
1198
1297
  KafkaService$
1199
- >() {
1298
+ >()("@effect-aws/client-kafka/KafkaService") {
1200
1299
  static readonly defaultLayer = Layer.effect(this, makeKafkaService).pipe(Layer.provide(Instance.layer));
1201
1300
  static readonly layer = (config: KafkaService.Config) =>
1202
1301
  Layer.effect(this, makeKafkaService).pipe(