@effect-aws/client-organizations 1.10.9 → 2.0.0-beta.1

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 (38) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/dist/dts/OrganizationsClientInstance.d.ts +4 -2
  4. package/dist/dts/OrganizationsClientInstance.d.ts.map +1 -1
  5. package/dist/dts/OrganizationsService.d.ts +68 -68
  6. package/dist/dts/OrganizationsService.d.ts.map +1 -1
  7. package/dist/dts/OrganizationsServiceConfig.d.ts +2 -1
  8. package/dist/dts/OrganizationsServiceConfig.d.ts.map +1 -1
  9. package/dist/esm/OrganizationsClientInstance.js +5 -3
  10. package/dist/esm/OrganizationsClientInstance.js.map +1 -1
  11. package/dist/esm/OrganizationsService.js +4 -2
  12. package/dist/esm/OrganizationsService.js.map +1 -1
  13. package/dist/esm/OrganizationsServiceConfig.js +7 -6
  14. package/dist/esm/OrganizationsServiceConfig.js.map +1 -1
  15. package/package.json +8 -14
  16. package/src/OrganizationsClientInstance.ts +6 -4
  17. package/src/OrganizationsService.ts +69 -67
  18. package/src/OrganizationsServiceConfig.ts +8 -7
  19. package/dist/cjs/Errors.d.ts +0 -57
  20. package/dist/cjs/Errors.d.ts.map +0 -1
  21. package/dist/cjs/Errors.js +0 -56
  22. package/dist/cjs/Errors.js.map +0 -1
  23. package/dist/cjs/OrganizationsClientInstance.d.ts +0 -24
  24. package/dist/cjs/OrganizationsClientInstance.d.ts.map +0 -1
  25. package/dist/cjs/OrganizationsClientInstance.js +0 -50
  26. package/dist/cjs/OrganizationsClientInstance.js.map +0 -1
  27. package/dist/cjs/OrganizationsService.d.ts +0 -298
  28. package/dist/cjs/OrganizationsService.d.ts.map +0 -1
  29. package/dist/cjs/OrganizationsService.js +0 -122
  30. package/dist/cjs/OrganizationsService.js.map +0 -1
  31. package/dist/cjs/OrganizationsServiceConfig.d.ts +0 -25
  32. package/dist/cjs/OrganizationsServiceConfig.d.ts.map +0 -1
  33. package/dist/cjs/OrganizationsServiceConfig.js +0 -35
  34. package/dist/cjs/OrganizationsServiceConfig.js.map +0 -1
  35. package/dist/cjs/index.d.ts +0 -44
  36. package/dist/cjs/index.d.ts.map +0 -1
  37. package/dist/cjs/index.js +0 -56
  38. package/dist/cjs/index.js.map +0 -1
@@ -196,8 +196,10 @@ import {
196
196
  } from "@aws-sdk/client-organizations";
197
197
  import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
198
198
  import { Service } from "@effect-aws/commons";
199
- import type { Cause } from "effect";
200
- import { Effect, Layer } from "effect";
199
+ import type * as Cause from "effect/Cause";
200
+ import * as Effect from "effect/Effect";
201
+ import * as Layer from "effect/Layer";
202
+ import * as ServiceMap from "effect/ServiceMap";
201
203
  import type {
202
204
  AccessDeniedError,
203
205
  AccessDeniedForDependencyError,
@@ -332,7 +334,7 @@ interface OrganizationsService$ {
332
334
  options?: HttpHandlerOptions,
333
335
  ): Effect.Effect<
334
336
  AcceptHandshakeCommandOutput,
335
- | Cause.TimeoutException
337
+ | Cause.TimeoutError
336
338
  | SdkError
337
339
  | AccessDeniedError
338
340
  | AccessDeniedForDependencyError
@@ -357,7 +359,7 @@ interface OrganizationsService$ {
357
359
  options?: HttpHandlerOptions,
358
360
  ): Effect.Effect<
359
361
  AttachPolicyCommandOutput,
360
- | Cause.TimeoutException
362
+ | Cause.TimeoutError
361
363
  | SdkError
362
364
  | AccessDeniedError
363
365
  | AWSOrganizationsNotInUseError
@@ -382,7 +384,7 @@ interface OrganizationsService$ {
382
384
  options?: HttpHandlerOptions,
383
385
  ): Effect.Effect<
384
386
  CancelHandshakeCommandOutput,
385
- | Cause.TimeoutException
387
+ | Cause.TimeoutError
386
388
  | SdkError
387
389
  | AccessDeniedError
388
390
  | ConcurrentModificationError
@@ -402,7 +404,7 @@ interface OrganizationsService$ {
402
404
  options?: HttpHandlerOptions,
403
405
  ): Effect.Effect<
404
406
  CloseAccountCommandOutput,
405
- | Cause.TimeoutException
407
+ | Cause.TimeoutError
406
408
  | SdkError
407
409
  | AccessDeniedError
408
410
  | AccountAlreadyClosedError
@@ -425,7 +427,7 @@ interface OrganizationsService$ {
425
427
  options?: HttpHandlerOptions,
426
428
  ): Effect.Effect<
427
429
  CreateAccountCommandOutput,
428
- | Cause.TimeoutException
430
+ | Cause.TimeoutError
429
431
  | SdkError
430
432
  | AccessDeniedError
431
433
  | AWSOrganizationsNotInUseError
@@ -446,7 +448,7 @@ interface OrganizationsService$ {
446
448
  options?: HttpHandlerOptions,
447
449
  ): Effect.Effect<
448
450
  CreateGovCloudAccountCommandOutput,
449
- | Cause.TimeoutException
451
+ | Cause.TimeoutError
450
452
  | SdkError
451
453
  | AccessDeniedError
452
454
  | AWSOrganizationsNotInUseError
@@ -467,7 +469,7 @@ interface OrganizationsService$ {
467
469
  options?: HttpHandlerOptions,
468
470
  ): Effect.Effect<
469
471
  CreateOrganizationCommandOutput,
470
- | Cause.TimeoutException
472
+ | Cause.TimeoutError
471
473
  | SdkError
472
474
  | AccessDeniedError
473
475
  | AccessDeniedForDependencyError
@@ -487,7 +489,7 @@ interface OrganizationsService$ {
487
489
  options?: HttpHandlerOptions,
488
490
  ): Effect.Effect<
489
491
  CreateOrganizationalUnitCommandOutput,
490
- | Cause.TimeoutException
492
+ | Cause.TimeoutError
491
493
  | SdkError
492
494
  | AccessDeniedError
493
495
  | AWSOrganizationsNotInUseError
@@ -508,7 +510,7 @@ interface OrganizationsService$ {
508
510
  options?: HttpHandlerOptions,
509
511
  ): Effect.Effect<
510
512
  CreatePolicyCommandOutput,
511
- | Cause.TimeoutException
513
+ | Cause.TimeoutError
512
514
  | SdkError
513
515
  | AccessDeniedError
514
516
  | AWSOrganizationsNotInUseError
@@ -531,7 +533,7 @@ interface OrganizationsService$ {
531
533
  options?: HttpHandlerOptions,
532
534
  ): Effect.Effect<
533
535
  DeclineHandshakeCommandOutput,
534
- | Cause.TimeoutException
536
+ | Cause.TimeoutError
535
537
  | SdkError
536
538
  | AccessDeniedError
537
539
  | ConcurrentModificationError
@@ -551,7 +553,7 @@ interface OrganizationsService$ {
551
553
  options?: HttpHandlerOptions,
552
554
  ): Effect.Effect<
553
555
  DeleteOrganizationCommandOutput,
554
- | Cause.TimeoutException
556
+ | Cause.TimeoutError
555
557
  | SdkError
556
558
  | AccessDeniedError
557
559
  | AWSOrganizationsNotInUseError
@@ -571,7 +573,7 @@ interface OrganizationsService$ {
571
573
  options?: HttpHandlerOptions,
572
574
  ): Effect.Effect<
573
575
  DeleteOrganizationalUnitCommandOutput,
574
- | Cause.TimeoutException
576
+ | Cause.TimeoutError
575
577
  | SdkError
576
578
  | AccessDeniedError
577
579
  | AWSOrganizationsNotInUseError
@@ -591,7 +593,7 @@ interface OrganizationsService$ {
591
593
  options?: HttpHandlerOptions,
592
594
  ): Effect.Effect<
593
595
  DeletePolicyCommandOutput,
594
- | Cause.TimeoutException
596
+ | Cause.TimeoutError
595
597
  | SdkError
596
598
  | AccessDeniedError
597
599
  | AWSOrganizationsNotInUseError
@@ -612,7 +614,7 @@ interface OrganizationsService$ {
612
614
  options?: HttpHandlerOptions,
613
615
  ): Effect.Effect<
614
616
  DeleteResourcePolicyCommandOutput,
615
- | Cause.TimeoutException
617
+ | Cause.TimeoutError
616
618
  | SdkError
617
619
  | AccessDeniedError
618
620
  | AWSOrganizationsNotInUseError
@@ -632,7 +634,7 @@ interface OrganizationsService$ {
632
634
  options?: HttpHandlerOptions,
633
635
  ): Effect.Effect<
634
636
  DeregisterDelegatedAdministratorCommandOutput,
635
- | Cause.TimeoutException
637
+ | Cause.TimeoutError
636
638
  | SdkError
637
639
  | AccessDeniedError
638
640
  | AccountNotFoundError
@@ -654,7 +656,7 @@ interface OrganizationsService$ {
654
656
  options?: HttpHandlerOptions,
655
657
  ): Effect.Effect<
656
658
  DescribeAccountCommandOutput,
657
- | Cause.TimeoutException
659
+ | Cause.TimeoutError
658
660
  | SdkError
659
661
  | AccessDeniedError
660
662
  | AccountNotFoundError
@@ -672,7 +674,7 @@ interface OrganizationsService$ {
672
674
  options?: HttpHandlerOptions,
673
675
  ): Effect.Effect<
674
676
  DescribeCreateAccountStatusCommandOutput,
675
- | Cause.TimeoutException
677
+ | Cause.TimeoutError
676
678
  | SdkError
677
679
  | AccessDeniedError
678
680
  | AWSOrganizationsNotInUseError
@@ -691,7 +693,7 @@ interface OrganizationsService$ {
691
693
  options?: HttpHandlerOptions,
692
694
  ): Effect.Effect<
693
695
  DescribeEffectivePolicyCommandOutput,
694
- | Cause.TimeoutException
696
+ | Cause.TimeoutError
695
697
  | SdkError
696
698
  | AccessDeniedError
697
699
  | AWSOrganizationsNotInUseError
@@ -712,7 +714,7 @@ interface OrganizationsService$ {
712
714
  options?: HttpHandlerOptions,
713
715
  ): Effect.Effect<
714
716
  DescribeHandshakeCommandOutput,
715
- | Cause.TimeoutException
717
+ | Cause.TimeoutError
716
718
  | SdkError
717
719
  | AccessDeniedError
718
720
  | ConcurrentModificationError
@@ -730,7 +732,7 @@ interface OrganizationsService$ {
730
732
  options?: HttpHandlerOptions,
731
733
  ): Effect.Effect<
732
734
  DescribeOrganizationCommandOutput,
733
- | Cause.TimeoutException
735
+ | Cause.TimeoutError
734
736
  | SdkError
735
737
  | AccessDeniedError
736
738
  | AWSOrganizationsNotInUseError
@@ -747,7 +749,7 @@ interface OrganizationsService$ {
747
749
  options?: HttpHandlerOptions,
748
750
  ): Effect.Effect<
749
751
  DescribeOrganizationalUnitCommandOutput,
750
- | Cause.TimeoutException
752
+ | Cause.TimeoutError
751
753
  | SdkError
752
754
  | AccessDeniedError
753
755
  | AWSOrganizationsNotInUseError
@@ -765,7 +767,7 @@ interface OrganizationsService$ {
765
767
  options?: HttpHandlerOptions,
766
768
  ): Effect.Effect<
767
769
  DescribePolicyCommandOutput,
768
- | Cause.TimeoutException
770
+ | Cause.TimeoutError
769
771
  | SdkError
770
772
  | AccessDeniedError
771
773
  | AWSOrganizationsNotInUseError
@@ -784,7 +786,7 @@ interface OrganizationsService$ {
784
786
  options?: HttpHandlerOptions,
785
787
  ): Effect.Effect<
786
788
  DescribeResourcePolicyCommandOutput,
787
- | Cause.TimeoutException
789
+ | Cause.TimeoutError
788
790
  | SdkError
789
791
  | AccessDeniedError
790
792
  | AWSOrganizationsNotInUseError
@@ -803,7 +805,7 @@ interface OrganizationsService$ {
803
805
  options?: HttpHandlerOptions,
804
806
  ): Effect.Effect<
805
807
  DescribeResponsibilityTransferCommandOutput,
806
- | Cause.TimeoutException
808
+ | Cause.TimeoutError
807
809
  | SdkError
808
810
  | AccessDeniedError
809
811
  | AWSOrganizationsNotInUseError
@@ -822,7 +824,7 @@ interface OrganizationsService$ {
822
824
  options?: HttpHandlerOptions,
823
825
  ): Effect.Effect<
824
826
  DetachPolicyCommandOutput,
825
- | Cause.TimeoutException
827
+ | Cause.TimeoutError
826
828
  | SdkError
827
829
  | AccessDeniedError
828
830
  | AWSOrganizationsNotInUseError
@@ -846,7 +848,7 @@ interface OrganizationsService$ {
846
848
  options?: HttpHandlerOptions,
847
849
  ): Effect.Effect<
848
850
  DisableAWSServiceAccessCommandOutput,
849
- | Cause.TimeoutException
851
+ | Cause.TimeoutError
850
852
  | SdkError
851
853
  | AccessDeniedError
852
854
  | AWSOrganizationsNotInUseError
@@ -866,7 +868,7 @@ interface OrganizationsService$ {
866
868
  options?: HttpHandlerOptions,
867
869
  ): Effect.Effect<
868
870
  DisablePolicyTypeCommandOutput,
869
- | Cause.TimeoutException
871
+ | Cause.TimeoutError
870
872
  | SdkError
871
873
  | AccessDeniedError
872
874
  | AWSOrganizationsNotInUseError
@@ -889,7 +891,7 @@ interface OrganizationsService$ {
889
891
  options?: HttpHandlerOptions,
890
892
  ): Effect.Effect<
891
893
  EnableAWSServiceAccessCommandOutput,
892
- | Cause.TimeoutException
894
+ | Cause.TimeoutError
893
895
  | SdkError
894
896
  | AccessDeniedError
895
897
  | AWSOrganizationsNotInUseError
@@ -909,7 +911,7 @@ interface OrganizationsService$ {
909
911
  options?: HttpHandlerOptions,
910
912
  ): Effect.Effect<
911
913
  EnableAllFeaturesCommandOutput,
912
- | Cause.TimeoutException
914
+ | Cause.TimeoutError
913
915
  | SdkError
914
916
  | AccessDeniedError
915
917
  | AWSOrganizationsNotInUseError
@@ -929,7 +931,7 @@ interface OrganizationsService$ {
929
931
  options?: HttpHandlerOptions,
930
932
  ): Effect.Effect<
931
933
  EnablePolicyTypeCommandOutput,
932
- | Cause.TimeoutException
934
+ | Cause.TimeoutError
933
935
  | SdkError
934
936
  | AccessDeniedError
935
937
  | AWSOrganizationsNotInUseError
@@ -953,7 +955,7 @@ interface OrganizationsService$ {
953
955
  options?: HttpHandlerOptions,
954
956
  ): Effect.Effect<
955
957
  InviteAccountToOrganizationCommandOutput,
956
- | Cause.TimeoutException
958
+ | Cause.TimeoutError
957
959
  | SdkError
958
960
  | AccessDeniedError
959
961
  | AccountOwnerNotVerifiedError
@@ -976,7 +978,7 @@ interface OrganizationsService$ {
976
978
  options?: HttpHandlerOptions,
977
979
  ): Effect.Effect<
978
980
  InviteOrganizationToTransferResponsibilityCommandOutput,
979
- | Cause.TimeoutException
981
+ | Cause.TimeoutError
980
982
  | SdkError
981
983
  | AccessDeniedError
982
984
  | AWSOrganizationsNotInUseError
@@ -998,7 +1000,7 @@ interface OrganizationsService$ {
998
1000
  options?: HttpHandlerOptions,
999
1001
  ): Effect.Effect<
1000
1002
  LeaveOrganizationCommandOutput,
1001
- | Cause.TimeoutException
1003
+ | Cause.TimeoutError
1002
1004
  | SdkError
1003
1005
  | AccessDeniedError
1004
1006
  | AccountNotFoundError
@@ -1019,7 +1021,7 @@ interface OrganizationsService$ {
1019
1021
  options?: HttpHandlerOptions,
1020
1022
  ): Effect.Effect<
1021
1023
  ListAWSServiceAccessForOrganizationCommandOutput,
1022
- | Cause.TimeoutException
1024
+ | Cause.TimeoutError
1023
1025
  | SdkError
1024
1026
  | AccessDeniedError
1025
1027
  | AWSOrganizationsNotInUseError
@@ -1038,7 +1040,7 @@ interface OrganizationsService$ {
1038
1040
  options?: HttpHandlerOptions,
1039
1041
  ): Effect.Effect<
1040
1042
  ListAccountsCommandOutput,
1041
- | Cause.TimeoutException
1043
+ | Cause.TimeoutError
1042
1044
  | SdkError
1043
1045
  | AccessDeniedError
1044
1046
  | AWSOrganizationsNotInUseError
@@ -1055,7 +1057,7 @@ interface OrganizationsService$ {
1055
1057
  options?: HttpHandlerOptions,
1056
1058
  ): Effect.Effect<
1057
1059
  ListAccountsForParentCommandOutput,
1058
- | Cause.TimeoutException
1060
+ | Cause.TimeoutError
1059
1061
  | SdkError
1060
1062
  | AccessDeniedError
1061
1063
  | AWSOrganizationsNotInUseError
@@ -1073,7 +1075,7 @@ interface OrganizationsService$ {
1073
1075
  options?: HttpHandlerOptions,
1074
1076
  ): Effect.Effect<
1075
1077
  ListAccountsWithInvalidEffectivePolicyCommandOutput,
1076
- | Cause.TimeoutException
1078
+ | Cause.TimeoutError
1077
1079
  | SdkError
1078
1080
  | AccessDeniedError
1079
1081
  | AWSOrganizationsNotInUseError
@@ -1093,7 +1095,7 @@ interface OrganizationsService$ {
1093
1095
  options?: HttpHandlerOptions,
1094
1096
  ): Effect.Effect<
1095
1097
  ListChildrenCommandOutput,
1096
- | Cause.TimeoutException
1098
+ | Cause.TimeoutError
1097
1099
  | SdkError
1098
1100
  | AccessDeniedError
1099
1101
  | AWSOrganizationsNotInUseError
@@ -1111,7 +1113,7 @@ interface OrganizationsService$ {
1111
1113
  options?: HttpHandlerOptions,
1112
1114
  ): Effect.Effect<
1113
1115
  ListCreateAccountStatusCommandOutput,
1114
- | Cause.TimeoutException
1116
+ | Cause.TimeoutError
1115
1117
  | SdkError
1116
1118
  | AccessDeniedError
1117
1119
  | AWSOrganizationsNotInUseError
@@ -1129,7 +1131,7 @@ interface OrganizationsService$ {
1129
1131
  options?: HttpHandlerOptions,
1130
1132
  ): Effect.Effect<
1131
1133
  ListDelegatedAdministratorsCommandOutput,
1132
- | Cause.TimeoutException
1134
+ | Cause.TimeoutError
1133
1135
  | SdkError
1134
1136
  | AccessDeniedError
1135
1137
  | AWSOrganizationsNotInUseError
@@ -1148,7 +1150,7 @@ interface OrganizationsService$ {
1148
1150
  options?: HttpHandlerOptions,
1149
1151
  ): Effect.Effect<
1150
1152
  ListDelegatedServicesForAccountCommandOutput,
1151
- | Cause.TimeoutException
1153
+ | Cause.TimeoutError
1152
1154
  | SdkError
1153
1155
  | AccessDeniedError
1154
1156
  | AccountNotFoundError
@@ -1169,7 +1171,7 @@ interface OrganizationsService$ {
1169
1171
  options?: HttpHandlerOptions,
1170
1172
  ): Effect.Effect<
1171
1173
  ListEffectivePolicyValidationErrorsCommandOutput,
1172
- | Cause.TimeoutException
1174
+ | Cause.TimeoutError
1173
1175
  | SdkError
1174
1176
  | AccessDeniedError
1175
1177
  | AccountNotFoundError
@@ -1190,7 +1192,7 @@ interface OrganizationsService$ {
1190
1192
  options?: HttpHandlerOptions,
1191
1193
  ): Effect.Effect<
1192
1194
  ListHandshakesForAccountCommandOutput,
1193
- | Cause.TimeoutException
1195
+ | Cause.TimeoutError
1194
1196
  | SdkError
1195
1197
  | AccessDeniedError
1196
1198
  | ConcurrentModificationError
@@ -1207,7 +1209,7 @@ interface OrganizationsService$ {
1207
1209
  options?: HttpHandlerOptions,
1208
1210
  ): Effect.Effect<
1209
1211
  ListHandshakesForOrganizationCommandOutput,
1210
- | Cause.TimeoutException
1212
+ | Cause.TimeoutError
1211
1213
  | SdkError
1212
1214
  | AccessDeniedError
1213
1215
  | AWSOrganizationsNotInUseError
@@ -1225,7 +1227,7 @@ interface OrganizationsService$ {
1225
1227
  options?: HttpHandlerOptions,
1226
1228
  ): Effect.Effect<
1227
1229
  ListInboundResponsibilityTransfersCommandOutput,
1228
- | Cause.TimeoutException
1230
+ | Cause.TimeoutError
1229
1231
  | SdkError
1230
1232
  | AccessDeniedError
1231
1233
  | AWSOrganizationsNotInUseError
@@ -1245,7 +1247,7 @@ interface OrganizationsService$ {
1245
1247
  options?: HttpHandlerOptions,
1246
1248
  ): Effect.Effect<
1247
1249
  ListOrganizationalUnitsForParentCommandOutput,
1248
- | Cause.TimeoutException
1250
+ | Cause.TimeoutError
1249
1251
  | SdkError
1250
1252
  | AccessDeniedError
1251
1253
  | AWSOrganizationsNotInUseError
@@ -1263,7 +1265,7 @@ interface OrganizationsService$ {
1263
1265
  options?: HttpHandlerOptions,
1264
1266
  ): Effect.Effect<
1265
1267
  ListOutboundResponsibilityTransfersCommandOutput,
1266
- | Cause.TimeoutException
1268
+ | Cause.TimeoutError
1267
1269
  | SdkError
1268
1270
  | AccessDeniedError
1269
1271
  | AWSOrganizationsNotInUseError
@@ -1282,7 +1284,7 @@ interface OrganizationsService$ {
1282
1284
  options?: HttpHandlerOptions,
1283
1285
  ): Effect.Effect<
1284
1286
  ListParentsCommandOutput,
1285
- | Cause.TimeoutException
1287
+ | Cause.TimeoutError
1286
1288
  | SdkError
1287
1289
  | AccessDeniedError
1288
1290
  | AWSOrganizationsNotInUseError
@@ -1300,7 +1302,7 @@ interface OrganizationsService$ {
1300
1302
  options?: HttpHandlerOptions,
1301
1303
  ): Effect.Effect<
1302
1304
  ListPoliciesCommandOutput,
1303
- | Cause.TimeoutException
1305
+ | Cause.TimeoutError
1304
1306
  | SdkError
1305
1307
  | AccessDeniedError
1306
1308
  | AWSOrganizationsNotInUseError
@@ -1318,7 +1320,7 @@ interface OrganizationsService$ {
1318
1320
  options?: HttpHandlerOptions,
1319
1321
  ): Effect.Effect<
1320
1322
  ListPoliciesForTargetCommandOutput,
1321
- | Cause.TimeoutException
1323
+ | Cause.TimeoutError
1322
1324
  | SdkError
1323
1325
  | AccessDeniedError
1324
1326
  | AWSOrganizationsNotInUseError
@@ -1337,7 +1339,7 @@ interface OrganizationsService$ {
1337
1339
  options?: HttpHandlerOptions,
1338
1340
  ): Effect.Effect<
1339
1341
  ListRootsCommandOutput,
1340
- | Cause.TimeoutException
1342
+ | Cause.TimeoutError
1341
1343
  | SdkError
1342
1344
  | AccessDeniedError
1343
1345
  | AWSOrganizationsNotInUseError
@@ -1354,7 +1356,7 @@ interface OrganizationsService$ {
1354
1356
  options?: HttpHandlerOptions,
1355
1357
  ): Effect.Effect<
1356
1358
  ListTagsForResourceCommandOutput,
1357
- | Cause.TimeoutException
1359
+ | Cause.TimeoutError
1358
1360
  | SdkError
1359
1361
  | AccessDeniedError
1360
1362
  | AWSOrganizationsNotInUseError
@@ -1372,7 +1374,7 @@ interface OrganizationsService$ {
1372
1374
  options?: HttpHandlerOptions,
1373
1375
  ): Effect.Effect<
1374
1376
  ListTargetsForPolicyCommandOutput,
1375
- | Cause.TimeoutException
1377
+ | Cause.TimeoutError
1376
1378
  | SdkError
1377
1379
  | AccessDeniedError
1378
1380
  | AWSOrganizationsNotInUseError
@@ -1391,7 +1393,7 @@ interface OrganizationsService$ {
1391
1393
  options?: HttpHandlerOptions,
1392
1394
  ): Effect.Effect<
1393
1395
  MoveAccountCommandOutput,
1394
- | Cause.TimeoutException
1396
+ | Cause.TimeoutError
1395
1397
  | SdkError
1396
1398
  | AccessDeniedError
1397
1399
  | AccountNotFoundError
@@ -1413,7 +1415,7 @@ interface OrganizationsService$ {
1413
1415
  options?: HttpHandlerOptions,
1414
1416
  ): Effect.Effect<
1415
1417
  PutResourcePolicyCommandOutput,
1416
- | Cause.TimeoutException
1418
+ | Cause.TimeoutError
1417
1419
  | SdkError
1418
1420
  | AccessDeniedError
1419
1421
  | AWSOrganizationsNotInUseError
@@ -1433,7 +1435,7 @@ interface OrganizationsService$ {
1433
1435
  options?: HttpHandlerOptions,
1434
1436
  ): Effect.Effect<
1435
1437
  RegisterDelegatedAdministratorCommandOutput,
1436
- | Cause.TimeoutException
1438
+ | Cause.TimeoutError
1437
1439
  | SdkError
1438
1440
  | AccessDeniedError
1439
1441
  | AccountAlreadyRegisteredError
@@ -1455,7 +1457,7 @@ interface OrganizationsService$ {
1455
1457
  options?: HttpHandlerOptions,
1456
1458
  ): Effect.Effect<
1457
1459
  RemoveAccountFromOrganizationCommandOutput,
1458
- | Cause.TimeoutException
1460
+ | Cause.TimeoutError
1459
1461
  | SdkError
1460
1462
  | AccessDeniedError
1461
1463
  | AccountNotFoundError
@@ -1476,7 +1478,7 @@ interface OrganizationsService$ {
1476
1478
  options?: HttpHandlerOptions,
1477
1479
  ): Effect.Effect<
1478
1480
  TagResourceCommandOutput,
1479
- | Cause.TimeoutException
1481
+ | Cause.TimeoutError
1480
1482
  | SdkError
1481
1483
  | AccessDeniedError
1482
1484
  | AWSOrganizationsNotInUseError
@@ -1496,7 +1498,7 @@ interface OrganizationsService$ {
1496
1498
  options?: HttpHandlerOptions,
1497
1499
  ): Effect.Effect<
1498
1500
  TerminateResponsibilityTransferCommandOutput,
1499
- | Cause.TimeoutException
1501
+ | Cause.TimeoutError
1500
1502
  | SdkError
1501
1503
  | AccessDeniedError
1502
1504
  | AWSOrganizationsNotInUseError
@@ -1519,7 +1521,7 @@ interface OrganizationsService$ {
1519
1521
  options?: HttpHandlerOptions,
1520
1522
  ): Effect.Effect<
1521
1523
  UntagResourceCommandOutput,
1522
- | Cause.TimeoutException
1524
+ | Cause.TimeoutError
1523
1525
  | SdkError
1524
1526
  | AccessDeniedError
1525
1527
  | AWSOrganizationsNotInUseError
@@ -1539,7 +1541,7 @@ interface OrganizationsService$ {
1539
1541
  options?: HttpHandlerOptions,
1540
1542
  ): Effect.Effect<
1541
1543
  UpdateOrganizationalUnitCommandOutput,
1542
- | Cause.TimeoutException
1544
+ | Cause.TimeoutError
1543
1545
  | SdkError
1544
1546
  | AccessDeniedError
1545
1547
  | AWSOrganizationsNotInUseError
@@ -1559,7 +1561,7 @@ interface OrganizationsService$ {
1559
1561
  options?: HttpHandlerOptions,
1560
1562
  ): Effect.Effect<
1561
1563
  UpdatePolicyCommandOutput,
1562
- | Cause.TimeoutException
1564
+ | Cause.TimeoutError
1563
1565
  | SdkError
1564
1566
  | AccessDeniedError
1565
1567
  | AWSOrganizationsNotInUseError
@@ -1583,7 +1585,7 @@ interface OrganizationsService$ {
1583
1585
  options?: HttpHandlerOptions,
1584
1586
  ): Effect.Effect<
1585
1587
  UpdateResponsibilityTransferCommandOutput,
1586
- | Cause.TimeoutException
1588
+ | Cause.TimeoutError
1587
1589
  | SdkError
1588
1590
  | AccessDeniedError
1589
1591
  | AWSOrganizationsNotInUseError
@@ -1617,10 +1619,10 @@ export const makeOrganizationsService = Effect.gen(function*() {
1617
1619
  * @since 1.0.0
1618
1620
  * @category models
1619
1621
  */
1620
- export class OrganizationsService extends Effect.Tag("@effect-aws/client-organizations/OrganizationsService")<
1622
+ export class OrganizationsService extends ServiceMap.Service<
1621
1623
  OrganizationsService,
1622
1624
  OrganizationsService$
1623
- >() {
1625
+ >()("@effect-aws/client-organizations/OrganizationsService") {
1624
1626
  static readonly defaultLayer = Layer.effect(this, makeOrganizationsService).pipe(Layer.provide(Instance.layer));
1625
1627
  static readonly layer = (config: OrganizationsService.Config) =>
1626
1628
  Layer.effect(this, makeOrganizationsService).pipe(
@@ -3,18 +3,19 @@
3
3
  */
4
4
  import type { OrganizationsClientConfig } from "@aws-sdk/client-organizations";
5
5
  import { ServiceLogger } from "@effect-aws/commons";
6
- import { Effect, FiberRef, Layer } from "effect";
6
+ import * as Effect from "effect/Effect";
7
7
  import { dual } from "effect/Function";
8
- import { globalValue } from "effect/GlobalValue";
8
+ import * as Layer from "effect/Layer";
9
+ import * as ServiceMap from "effect/ServiceMap";
9
10
  import type { OrganizationsService } from "./OrganizationsService.js";
10
11
 
11
12
  /**
12
13
  * @since 1.0.0
13
14
  * @category organizations service config
14
15
  */
15
- const currentOrganizationsServiceConfig = globalValue(
16
+ const currentOrganizationsServiceConfig = ServiceMap.Reference<OrganizationsService.Config>(
16
17
  "@effect-aws/client-organizations/currentOrganizationsServiceConfig",
17
- () => FiberRef.unsafeMake<OrganizationsService.Config>({}),
18
+ { defaultValue: () => ({}) },
18
19
  );
19
20
 
20
21
  /**
@@ -27,7 +28,7 @@ export const withOrganizationsServiceConfig: {
27
28
  } = dual(
28
29
  2,
29
30
  <A, E, R>(effect: Effect.Effect<A, E, R>, config: OrganizationsService.Config): Effect.Effect<A, E, R> =>
30
- Effect.locally(effect, currentOrganizationsServiceConfig, config),
31
+ Effect.provideService(effect, currentOrganizationsServiceConfig, config),
31
32
  );
32
33
 
33
34
  /**
@@ -35,14 +36,14 @@ export const withOrganizationsServiceConfig: {
35
36
  * @category organizations service config
36
37
  */
37
38
  export const setOrganizationsServiceConfig = (config: OrganizationsService.Config) =>
38
- Layer.locallyScoped(currentOrganizationsServiceConfig, config);
39
+ Layer.succeed(currentOrganizationsServiceConfig, config);
39
40
 
40
41
  /**
41
42
  * @since 1.0.0
42
43
  * @category adapters
43
44
  */
44
45
  export const toOrganizationsClientConfig: Effect.Effect<OrganizationsClientConfig> = Effect.gen(function*() {
45
- const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentOrganizationsServiceConfig);
46
+ const { logger: serviceLogger, ...config } = yield* currentOrganizationsServiceConfig;
46
47
 
47
48
  const logger = serviceLogger === true
48
49
  ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
@@ -1,57 +0,0 @@
1
- import type { AccessDeniedException, AccessDeniedForDependencyException, AccountAlreadyClosedException, AccountAlreadyRegisteredException, AccountNotFoundException, AccountNotRegisteredException, AccountOwnerNotVerifiedException, AlreadyInOrganizationException, AWSOrganizationsNotInUseException, ChildNotFoundException, ConcurrentModificationException, ConflictException, ConstraintViolationException, CreateAccountStatusNotFoundException, DestinationParentNotFoundException, DuplicateAccountException, DuplicateHandshakeException, DuplicateOrganizationalUnitException, DuplicatePolicyAttachmentException, DuplicatePolicyException, EffectivePolicyNotFoundException, FinalizingOrganizationException, HandshakeAlreadyInStateException, HandshakeConstraintViolationException, HandshakeNotFoundException, InvalidHandshakeTransitionException, InvalidInputException, InvalidResponsibilityTransferTransitionException, MalformedPolicyDocumentException, MasterCannotLeaveOrganizationException, OrganizationalUnitNotEmptyException, OrganizationalUnitNotFoundException, OrganizationNotEmptyException, ParentNotFoundException, PolicyChangesInProgressException, PolicyInUseException, PolicyNotAttachedException, PolicyNotFoundException, PolicyTypeAlreadyEnabledException, PolicyTypeNotAvailableForOrganizationException, PolicyTypeNotEnabledException, ResourcePolicyNotFoundException, ResponsibilityTransferAlreadyInStatusException, ResponsibilityTransferNotFoundException, RootNotFoundException, ServiceException, SourceParentNotFoundException, TargetNotFoundException, TooManyRequestsException, UnsupportedAPIEndpointException } from "@aws-sdk/client-organizations";
2
- import type { TaggedException } from "@effect-aws/commons";
3
- export declare const AllServiceErrors: readonly ["AWSOrganizationsNotInUseException", "AccessDeniedException", "AccessDeniedForDependencyException", "AccountAlreadyClosedException", "AccountAlreadyRegisteredException", "AccountNotFoundException", "AccountNotRegisteredException", "AccountOwnerNotVerifiedException", "AlreadyInOrganizationException", "ChildNotFoundException", "ConcurrentModificationException", "ConflictException", "ConstraintViolationException", "CreateAccountStatusNotFoundException", "DestinationParentNotFoundException", "DuplicateAccountException", "DuplicateHandshakeException", "DuplicateOrganizationalUnitException", "DuplicatePolicyAttachmentException", "DuplicatePolicyException", "EffectivePolicyNotFoundException", "FinalizingOrganizationException", "HandshakeAlreadyInStateException", "HandshakeConstraintViolationException", "HandshakeNotFoundException", "InvalidHandshakeTransitionException", "InvalidInputException", "InvalidResponsibilityTransferTransitionException", "MalformedPolicyDocumentException", "MasterCannotLeaveOrganizationException", "OrganizationNotEmptyException", "OrganizationalUnitNotEmptyException", "OrganizationalUnitNotFoundException", "ParentNotFoundException", "PolicyChangesInProgressException", "PolicyInUseException", "PolicyNotAttachedException", "PolicyNotFoundException", "PolicyTypeAlreadyEnabledException", "PolicyTypeNotAvailableForOrganizationException", "PolicyTypeNotEnabledException", "ResourcePolicyNotFoundException", "ResponsibilityTransferAlreadyInStatusException", "ResponsibilityTransferNotFoundException", "RootNotFoundException", "ServiceException", "SourceParentNotFoundException", "TargetNotFoundException", "TooManyRequestsException", "UnsupportedAPIEndpointException"];
4
- export type AWSOrganizationsNotInUseError = TaggedException<AWSOrganizationsNotInUseException>;
5
- export type AccessDeniedError = TaggedException<AccessDeniedException>;
6
- export type AccessDeniedForDependencyError = TaggedException<AccessDeniedForDependencyException>;
7
- export type AccountAlreadyClosedError = TaggedException<AccountAlreadyClosedException>;
8
- export type AccountAlreadyRegisteredError = TaggedException<AccountAlreadyRegisteredException>;
9
- export type AccountNotFoundError = TaggedException<AccountNotFoundException>;
10
- export type AccountNotRegisteredError = TaggedException<AccountNotRegisteredException>;
11
- export type AccountOwnerNotVerifiedError = TaggedException<AccountOwnerNotVerifiedException>;
12
- export type AlreadyInOrganizationError = TaggedException<AlreadyInOrganizationException>;
13
- export type ChildNotFoundError = TaggedException<ChildNotFoundException>;
14
- export type ConcurrentModificationError = TaggedException<ConcurrentModificationException>;
15
- export type ConflictError = TaggedException<ConflictException>;
16
- export type ConstraintViolationError = TaggedException<ConstraintViolationException>;
17
- export type CreateAccountStatusNotFoundError = TaggedException<CreateAccountStatusNotFoundException>;
18
- export type DestinationParentNotFoundError = TaggedException<DestinationParentNotFoundException>;
19
- export type DuplicateAccountError = TaggedException<DuplicateAccountException>;
20
- export type DuplicateHandshakeError = TaggedException<DuplicateHandshakeException>;
21
- export type DuplicateOrganizationalUnitError = TaggedException<DuplicateOrganizationalUnitException>;
22
- export type DuplicatePolicyAttachmentError = TaggedException<DuplicatePolicyAttachmentException>;
23
- export type DuplicatePolicyError = TaggedException<DuplicatePolicyException>;
24
- export type EffectivePolicyNotFoundError = TaggedException<EffectivePolicyNotFoundException>;
25
- export type FinalizingOrganizationError = TaggedException<FinalizingOrganizationException>;
26
- export type HandshakeAlreadyInStateError = TaggedException<HandshakeAlreadyInStateException>;
27
- export type HandshakeConstraintViolationError = TaggedException<HandshakeConstraintViolationException>;
28
- export type HandshakeNotFoundError = TaggedException<HandshakeNotFoundException>;
29
- export type InvalidHandshakeTransitionError = TaggedException<InvalidHandshakeTransitionException>;
30
- export type InvalidInputError = TaggedException<InvalidInputException>;
31
- export type InvalidResponsibilityTransferTransitionError = TaggedException<InvalidResponsibilityTransferTransitionException>;
32
- export type MalformedPolicyDocumentError = TaggedException<MalformedPolicyDocumentException>;
33
- export type MasterCannotLeaveOrganizationError = TaggedException<MasterCannotLeaveOrganizationException>;
34
- export type OrganizationNotEmptyError = TaggedException<OrganizationNotEmptyException>;
35
- export type OrganizationalUnitNotEmptyError = TaggedException<OrganizationalUnitNotEmptyException>;
36
- export type OrganizationalUnitNotFoundError = TaggedException<OrganizationalUnitNotFoundException>;
37
- export type ParentNotFoundError = TaggedException<ParentNotFoundException>;
38
- export type PolicyChangesInProgressError = TaggedException<PolicyChangesInProgressException>;
39
- export type PolicyInUseError = TaggedException<PolicyInUseException>;
40
- export type PolicyNotAttachedError = TaggedException<PolicyNotAttachedException>;
41
- export type PolicyNotFoundError = TaggedException<PolicyNotFoundException>;
42
- export type PolicyTypeAlreadyEnabledError = TaggedException<PolicyTypeAlreadyEnabledException>;
43
- export type PolicyTypeNotAvailableForOrganizationError = TaggedException<PolicyTypeNotAvailableForOrganizationException>;
44
- export type PolicyTypeNotEnabledError = TaggedException<PolicyTypeNotEnabledException>;
45
- export type ResourcePolicyNotFoundError = TaggedException<ResourcePolicyNotFoundException>;
46
- export type ResponsibilityTransferAlreadyInStatusError = TaggedException<ResponsibilityTransferAlreadyInStatusException>;
47
- export type ResponsibilityTransferNotFoundError = TaggedException<ResponsibilityTransferNotFoundException>;
48
- export type RootNotFoundError = TaggedException<RootNotFoundException>;
49
- export type ServiceError = TaggedException<ServiceException>;
50
- export type SourceParentNotFoundError = TaggedException<SourceParentNotFoundException>;
51
- export type TargetNotFoundError = TaggedException<TargetNotFoundException>;
52
- export type TooManyRequestsError = TaggedException<TooManyRequestsException>;
53
- export type UnsupportedAPIEndpointError = TaggedException<UnsupportedAPIEndpointException>;
54
- export type SdkError = TaggedException<Error & {
55
- name: "SdkError";
56
- }>;
57
- //# sourceMappingURL=Errors.d.ts.map