@effect-aws/client-organizations 1.9.5 → 1.10.2

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.
@@ -170,8 +170,9 @@ import {
170
170
  type UpdatePolicyCommandInput,
171
171
  type UpdatePolicyCommandOutput,
172
172
  } from "@aws-sdk/client-organizations";
173
- import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
173
+ import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
174
174
  import { Service } from "@effect-aws/commons";
175
+ import type { Cause } from "effect";
175
176
  import { Effect, Layer } from "effect";
176
177
  import type {
177
178
  AccessDeniedError,
@@ -216,6 +217,7 @@ import type {
216
217
  PolicyTypeNotEnabledError,
217
218
  ResourcePolicyNotFoundError,
218
219
  RootNotFoundError,
220
+ SdkError,
219
221
  ServiceError,
220
222
  SourceParentNotFoundError,
221
223
  TargetNotFoundError,
@@ -295,6 +297,7 @@ interface OrganizationsService$ {
295
297
  options?: HttpHandlerOptions,
296
298
  ): Effect.Effect<
297
299
  AcceptHandshakeCommandOutput,
300
+ | Cause.TimeoutException
298
301
  | SdkError
299
302
  | AccessDeniedError
300
303
  | AccessDeniedForDependencyError
@@ -317,6 +320,7 @@ interface OrganizationsService$ {
317
320
  options?: HttpHandlerOptions,
318
321
  ): Effect.Effect<
319
322
  AttachPolicyCommandOutput,
323
+ | Cause.TimeoutException
320
324
  | SdkError
321
325
  | AccessDeniedError
322
326
  | AWSOrganizationsNotInUseError
@@ -341,6 +345,7 @@ interface OrganizationsService$ {
341
345
  options?: HttpHandlerOptions,
342
346
  ): Effect.Effect<
343
347
  CancelHandshakeCommandOutput,
348
+ | Cause.TimeoutException
344
349
  | SdkError
345
350
  | AccessDeniedError
346
351
  | ConcurrentModificationError
@@ -360,6 +365,7 @@ interface OrganizationsService$ {
360
365
  options?: HttpHandlerOptions,
361
366
  ): Effect.Effect<
362
367
  CloseAccountCommandOutput,
368
+ | Cause.TimeoutException
363
369
  | SdkError
364
370
  | AccessDeniedError
365
371
  | AccountAlreadyClosedError
@@ -382,6 +388,7 @@ interface OrganizationsService$ {
382
388
  options?: HttpHandlerOptions,
383
389
  ): Effect.Effect<
384
390
  CreateAccountCommandOutput,
391
+ | Cause.TimeoutException
385
392
  | SdkError
386
393
  | AccessDeniedError
387
394
  | AWSOrganizationsNotInUseError
@@ -402,6 +409,7 @@ interface OrganizationsService$ {
402
409
  options?: HttpHandlerOptions,
403
410
  ): Effect.Effect<
404
411
  CreateGovCloudAccountCommandOutput,
412
+ | Cause.TimeoutException
405
413
  | SdkError
406
414
  | AccessDeniedError
407
415
  | AWSOrganizationsNotInUseError
@@ -422,6 +430,7 @@ interface OrganizationsService$ {
422
430
  options?: HttpHandlerOptions,
423
431
  ): Effect.Effect<
424
432
  CreateOrganizationCommandOutput,
433
+ | Cause.TimeoutException
425
434
  | SdkError
426
435
  | AccessDeniedError
427
436
  | AccessDeniedForDependencyError
@@ -441,6 +450,7 @@ interface OrganizationsService$ {
441
450
  options?: HttpHandlerOptions,
442
451
  ): Effect.Effect<
443
452
  CreateOrganizationalUnitCommandOutput,
453
+ | Cause.TimeoutException
444
454
  | SdkError
445
455
  | AccessDeniedError
446
456
  | AWSOrganizationsNotInUseError
@@ -461,6 +471,7 @@ interface OrganizationsService$ {
461
471
  options?: HttpHandlerOptions,
462
472
  ): Effect.Effect<
463
473
  CreatePolicyCommandOutput,
474
+ | Cause.TimeoutException
464
475
  | SdkError
465
476
  | AccessDeniedError
466
477
  | AWSOrganizationsNotInUseError
@@ -483,6 +494,7 @@ interface OrganizationsService$ {
483
494
  options?: HttpHandlerOptions,
484
495
  ): Effect.Effect<
485
496
  DeclineHandshakeCommandOutput,
497
+ | Cause.TimeoutException
486
498
  | SdkError
487
499
  | AccessDeniedError
488
500
  | ConcurrentModificationError
@@ -502,6 +514,7 @@ interface OrganizationsService$ {
502
514
  options?: HttpHandlerOptions,
503
515
  ): Effect.Effect<
504
516
  DeleteOrganizationCommandOutput,
517
+ | Cause.TimeoutException
505
518
  | SdkError
506
519
  | AccessDeniedError
507
520
  | AWSOrganizationsNotInUseError
@@ -520,6 +533,7 @@ interface OrganizationsService$ {
520
533
  options?: HttpHandlerOptions,
521
534
  ): Effect.Effect<
522
535
  DeleteOrganizationalUnitCommandOutput,
536
+ | Cause.TimeoutException
523
537
  | SdkError
524
538
  | AccessDeniedError
525
539
  | AWSOrganizationsNotInUseError
@@ -539,6 +553,7 @@ interface OrganizationsService$ {
539
553
  options?: HttpHandlerOptions,
540
554
  ): Effect.Effect<
541
555
  DeletePolicyCommandOutput,
556
+ | Cause.TimeoutException
542
557
  | SdkError
543
558
  | AccessDeniedError
544
559
  | AWSOrganizationsNotInUseError
@@ -559,6 +574,7 @@ interface OrganizationsService$ {
559
574
  options?: HttpHandlerOptions,
560
575
  ): Effect.Effect<
561
576
  DeleteResourcePolicyCommandOutput,
577
+ | Cause.TimeoutException
562
578
  | SdkError
563
579
  | AccessDeniedError
564
580
  | AWSOrganizationsNotInUseError
@@ -578,6 +594,7 @@ interface OrganizationsService$ {
578
594
  options?: HttpHandlerOptions,
579
595
  ): Effect.Effect<
580
596
  DeregisterDelegatedAdministratorCommandOutput,
597
+ | Cause.TimeoutException
581
598
  | SdkError
582
599
  | AccessDeniedError
583
600
  | AccountNotFoundError
@@ -599,6 +616,7 @@ interface OrganizationsService$ {
599
616
  options?: HttpHandlerOptions,
600
617
  ): Effect.Effect<
601
618
  DescribeAccountCommandOutput,
619
+ | Cause.TimeoutException
602
620
  | SdkError
603
621
  | AccessDeniedError
604
622
  | AccountNotFoundError
@@ -616,6 +634,7 @@ interface OrganizationsService$ {
616
634
  options?: HttpHandlerOptions,
617
635
  ): Effect.Effect<
618
636
  DescribeCreateAccountStatusCommandOutput,
637
+ | Cause.TimeoutException
619
638
  | SdkError
620
639
  | AccessDeniedError
621
640
  | AWSOrganizationsNotInUseError
@@ -634,6 +653,7 @@ interface OrganizationsService$ {
634
653
  options?: HttpHandlerOptions,
635
654
  ): Effect.Effect<
636
655
  DescribeEffectivePolicyCommandOutput,
656
+ | Cause.TimeoutException
637
657
  | SdkError
638
658
  | AccessDeniedError
639
659
  | AWSOrganizationsNotInUseError
@@ -654,6 +674,7 @@ interface OrganizationsService$ {
654
674
  options?: HttpHandlerOptions,
655
675
  ): Effect.Effect<
656
676
  DescribeHandshakeCommandOutput,
677
+ | Cause.TimeoutException
657
678
  | SdkError
658
679
  | AccessDeniedError
659
680
  | ConcurrentModificationError
@@ -671,6 +692,7 @@ interface OrganizationsService$ {
671
692
  options?: HttpHandlerOptions,
672
693
  ): Effect.Effect<
673
694
  DescribeOrganizationCommandOutput,
695
+ | Cause.TimeoutException
674
696
  | SdkError
675
697
  | AccessDeniedError
676
698
  | AWSOrganizationsNotInUseError
@@ -687,6 +709,7 @@ interface OrganizationsService$ {
687
709
  options?: HttpHandlerOptions,
688
710
  ): Effect.Effect<
689
711
  DescribeOrganizationalUnitCommandOutput,
712
+ | Cause.TimeoutException
690
713
  | SdkError
691
714
  | AccessDeniedError
692
715
  | AWSOrganizationsNotInUseError
@@ -704,6 +727,7 @@ interface OrganizationsService$ {
704
727
  options?: HttpHandlerOptions,
705
728
  ): Effect.Effect<
706
729
  DescribePolicyCommandOutput,
730
+ | Cause.TimeoutException
707
731
  | SdkError
708
732
  | AccessDeniedError
709
733
  | AWSOrganizationsNotInUseError
@@ -722,6 +746,7 @@ interface OrganizationsService$ {
722
746
  options?: HttpHandlerOptions,
723
747
  ): Effect.Effect<
724
748
  DescribeResourcePolicyCommandOutput,
749
+ | Cause.TimeoutException
725
750
  | SdkError
726
751
  | AccessDeniedError
727
752
  | AWSOrganizationsNotInUseError
@@ -740,6 +765,7 @@ interface OrganizationsService$ {
740
765
  options?: HttpHandlerOptions,
741
766
  ): Effect.Effect<
742
767
  DetachPolicyCommandOutput,
768
+ | Cause.TimeoutException
743
769
  | SdkError
744
770
  | AccessDeniedError
745
771
  | AWSOrganizationsNotInUseError
@@ -763,6 +789,7 @@ interface OrganizationsService$ {
763
789
  options?: HttpHandlerOptions,
764
790
  ): Effect.Effect<
765
791
  DisableAWSServiceAccessCommandOutput,
792
+ | Cause.TimeoutException
766
793
  | SdkError
767
794
  | AccessDeniedError
768
795
  | AWSOrganizationsNotInUseError
@@ -782,6 +809,7 @@ interface OrganizationsService$ {
782
809
  options?: HttpHandlerOptions,
783
810
  ): Effect.Effect<
784
811
  DisablePolicyTypeCommandOutput,
812
+ | Cause.TimeoutException
785
813
  | SdkError
786
814
  | AccessDeniedError
787
815
  | AWSOrganizationsNotInUseError
@@ -804,6 +832,7 @@ interface OrganizationsService$ {
804
832
  options?: HttpHandlerOptions,
805
833
  ): Effect.Effect<
806
834
  EnableAWSServiceAccessCommandOutput,
835
+ | Cause.TimeoutException
807
836
  | SdkError
808
837
  | AccessDeniedError
809
838
  | AWSOrganizationsNotInUseError
@@ -823,6 +852,7 @@ interface OrganizationsService$ {
823
852
  options?: HttpHandlerOptions,
824
853
  ): Effect.Effect<
825
854
  EnableAllFeaturesCommandOutput,
855
+ | Cause.TimeoutException
826
856
  | SdkError
827
857
  | AccessDeniedError
828
858
  | AWSOrganizationsNotInUseError
@@ -842,6 +872,7 @@ interface OrganizationsService$ {
842
872
  options?: HttpHandlerOptions,
843
873
  ): Effect.Effect<
844
874
  EnablePolicyTypeCommandOutput,
875
+ | Cause.TimeoutException
845
876
  | SdkError
846
877
  | AccessDeniedError
847
878
  | AWSOrganizationsNotInUseError
@@ -865,6 +896,7 @@ interface OrganizationsService$ {
865
896
  options?: HttpHandlerOptions,
866
897
  ): Effect.Effect<
867
898
  InviteAccountToOrganizationCommandOutput,
899
+ | Cause.TimeoutException
868
900
  | SdkError
869
901
  | AccessDeniedError
870
902
  | AccountOwnerNotVerifiedError
@@ -887,6 +919,7 @@ interface OrganizationsService$ {
887
919
  options?: HttpHandlerOptions,
888
920
  ): Effect.Effect<
889
921
  LeaveOrganizationCommandOutput,
922
+ | Cause.TimeoutException
890
923
  | SdkError
891
924
  | AccessDeniedError
892
925
  | AccountNotFoundError
@@ -907,6 +940,7 @@ interface OrganizationsService$ {
907
940
  options?: HttpHandlerOptions,
908
941
  ): Effect.Effect<
909
942
  ListAWSServiceAccessForOrganizationCommandOutput,
943
+ | Cause.TimeoutException
910
944
  | SdkError
911
945
  | AccessDeniedError
912
946
  | AWSOrganizationsNotInUseError
@@ -925,6 +959,7 @@ interface OrganizationsService$ {
925
959
  options?: HttpHandlerOptions,
926
960
  ): Effect.Effect<
927
961
  ListAccountsCommandOutput,
962
+ | Cause.TimeoutException
928
963
  | SdkError
929
964
  | AccessDeniedError
930
965
  | AWSOrganizationsNotInUseError
@@ -941,6 +976,7 @@ interface OrganizationsService$ {
941
976
  options?: HttpHandlerOptions,
942
977
  ): Effect.Effect<
943
978
  ListAccountsForParentCommandOutput,
979
+ | Cause.TimeoutException
944
980
  | SdkError
945
981
  | AccessDeniedError
946
982
  | AWSOrganizationsNotInUseError
@@ -958,6 +994,7 @@ interface OrganizationsService$ {
958
994
  options?: HttpHandlerOptions,
959
995
  ): Effect.Effect<
960
996
  ListChildrenCommandOutput,
997
+ | Cause.TimeoutException
961
998
  | SdkError
962
999
  | AccessDeniedError
963
1000
  | AWSOrganizationsNotInUseError
@@ -975,6 +1012,7 @@ interface OrganizationsService$ {
975
1012
  options?: HttpHandlerOptions,
976
1013
  ): Effect.Effect<
977
1014
  ListCreateAccountStatusCommandOutput,
1015
+ | Cause.TimeoutException
978
1016
  | SdkError
979
1017
  | AccessDeniedError
980
1018
  | AWSOrganizationsNotInUseError
@@ -992,6 +1030,7 @@ interface OrganizationsService$ {
992
1030
  options?: HttpHandlerOptions,
993
1031
  ): Effect.Effect<
994
1032
  ListDelegatedAdministratorsCommandOutput,
1033
+ | Cause.TimeoutException
995
1034
  | SdkError
996
1035
  | AccessDeniedError
997
1036
  | AWSOrganizationsNotInUseError
@@ -1010,6 +1049,7 @@ interface OrganizationsService$ {
1010
1049
  options?: HttpHandlerOptions,
1011
1050
  ): Effect.Effect<
1012
1051
  ListDelegatedServicesForAccountCommandOutput,
1052
+ | Cause.TimeoutException
1013
1053
  | SdkError
1014
1054
  | AccessDeniedError
1015
1055
  | AccountNotFoundError
@@ -1030,7 +1070,13 @@ interface OrganizationsService$ {
1030
1070
  options?: HttpHandlerOptions,
1031
1071
  ): Effect.Effect<
1032
1072
  ListHandshakesForAccountCommandOutput,
1033
- SdkError | AccessDeniedError | ConcurrentModificationError | InvalidInputError | ServiceError | TooManyRequestsError
1073
+ | Cause.TimeoutException
1074
+ | SdkError
1075
+ | AccessDeniedError
1076
+ | ConcurrentModificationError
1077
+ | InvalidInputError
1078
+ | ServiceError
1079
+ | TooManyRequestsError
1034
1080
  >;
1035
1081
 
1036
1082
  /**
@@ -1041,6 +1087,7 @@ interface OrganizationsService$ {
1041
1087
  options?: HttpHandlerOptions,
1042
1088
  ): Effect.Effect<
1043
1089
  ListHandshakesForOrganizationCommandOutput,
1090
+ | Cause.TimeoutException
1044
1091
  | SdkError
1045
1092
  | AccessDeniedError
1046
1093
  | AWSOrganizationsNotInUseError
@@ -1058,6 +1105,7 @@ interface OrganizationsService$ {
1058
1105
  options?: HttpHandlerOptions,
1059
1106
  ): Effect.Effect<
1060
1107
  ListOrganizationalUnitsForParentCommandOutput,
1108
+ | Cause.TimeoutException
1061
1109
  | SdkError
1062
1110
  | AccessDeniedError
1063
1111
  | AWSOrganizationsNotInUseError
@@ -1075,6 +1123,7 @@ interface OrganizationsService$ {
1075
1123
  options?: HttpHandlerOptions,
1076
1124
  ): Effect.Effect<
1077
1125
  ListParentsCommandOutput,
1126
+ | Cause.TimeoutException
1078
1127
  | SdkError
1079
1128
  | AccessDeniedError
1080
1129
  | AWSOrganizationsNotInUseError
@@ -1092,6 +1141,7 @@ interface OrganizationsService$ {
1092
1141
  options?: HttpHandlerOptions,
1093
1142
  ): Effect.Effect<
1094
1143
  ListPoliciesCommandOutput,
1144
+ | Cause.TimeoutException
1095
1145
  | SdkError
1096
1146
  | AccessDeniedError
1097
1147
  | AWSOrganizationsNotInUseError
@@ -1109,6 +1159,7 @@ interface OrganizationsService$ {
1109
1159
  options?: HttpHandlerOptions,
1110
1160
  ): Effect.Effect<
1111
1161
  ListPoliciesForTargetCommandOutput,
1162
+ | Cause.TimeoutException
1112
1163
  | SdkError
1113
1164
  | AccessDeniedError
1114
1165
  | AWSOrganizationsNotInUseError
@@ -1127,6 +1178,7 @@ interface OrganizationsService$ {
1127
1178
  options?: HttpHandlerOptions,
1128
1179
  ): Effect.Effect<
1129
1180
  ListRootsCommandOutput,
1181
+ | Cause.TimeoutException
1130
1182
  | SdkError
1131
1183
  | AccessDeniedError
1132
1184
  | AWSOrganizationsNotInUseError
@@ -1143,6 +1195,7 @@ interface OrganizationsService$ {
1143
1195
  options?: HttpHandlerOptions,
1144
1196
  ): Effect.Effect<
1145
1197
  ListTagsForResourceCommandOutput,
1198
+ | Cause.TimeoutException
1146
1199
  | SdkError
1147
1200
  | AccessDeniedError
1148
1201
  | AWSOrganizationsNotInUseError
@@ -1160,6 +1213,7 @@ interface OrganizationsService$ {
1160
1213
  options?: HttpHandlerOptions,
1161
1214
  ): Effect.Effect<
1162
1215
  ListTargetsForPolicyCommandOutput,
1216
+ | Cause.TimeoutException
1163
1217
  | SdkError
1164
1218
  | AccessDeniedError
1165
1219
  | AWSOrganizationsNotInUseError
@@ -1178,6 +1232,7 @@ interface OrganizationsService$ {
1178
1232
  options?: HttpHandlerOptions,
1179
1233
  ): Effect.Effect<
1180
1234
  MoveAccountCommandOutput,
1235
+ | Cause.TimeoutException
1181
1236
  | SdkError
1182
1237
  | AccessDeniedError
1183
1238
  | AccountNotFoundError
@@ -1199,6 +1254,7 @@ interface OrganizationsService$ {
1199
1254
  options?: HttpHandlerOptions,
1200
1255
  ): Effect.Effect<
1201
1256
  PutResourcePolicyCommandOutput,
1257
+ | Cause.TimeoutException
1202
1258
  | SdkError
1203
1259
  | AccessDeniedError
1204
1260
  | AWSOrganizationsNotInUseError
@@ -1218,6 +1274,7 @@ interface OrganizationsService$ {
1218
1274
  options?: HttpHandlerOptions,
1219
1275
  ): Effect.Effect<
1220
1276
  RegisterDelegatedAdministratorCommandOutput,
1277
+ | Cause.TimeoutException
1221
1278
  | SdkError
1222
1279
  | AccessDeniedError
1223
1280
  | AccountAlreadyRegisteredError
@@ -1239,6 +1296,7 @@ interface OrganizationsService$ {
1239
1296
  options?: HttpHandlerOptions,
1240
1297
  ): Effect.Effect<
1241
1298
  RemoveAccountFromOrganizationCommandOutput,
1299
+ | Cause.TimeoutException
1242
1300
  | SdkError
1243
1301
  | AccessDeniedError
1244
1302
  | AccountNotFoundError
@@ -1259,6 +1317,7 @@ interface OrganizationsService$ {
1259
1317
  options?: HttpHandlerOptions,
1260
1318
  ): Effect.Effect<
1261
1319
  TagResourceCommandOutput,
1320
+ | Cause.TimeoutException
1262
1321
  | SdkError
1263
1322
  | AccessDeniedError
1264
1323
  | AWSOrganizationsNotInUseError
@@ -1278,6 +1337,7 @@ interface OrganizationsService$ {
1278
1337
  options?: HttpHandlerOptions,
1279
1338
  ): Effect.Effect<
1280
1339
  UntagResourceCommandOutput,
1340
+ | Cause.TimeoutException
1281
1341
  | SdkError
1282
1342
  | AccessDeniedError
1283
1343
  | AWSOrganizationsNotInUseError
@@ -1297,6 +1357,7 @@ interface OrganizationsService$ {
1297
1357
  options?: HttpHandlerOptions,
1298
1358
  ): Effect.Effect<
1299
1359
  UpdateOrganizationalUnitCommandOutput,
1360
+ | Cause.TimeoutException
1300
1361
  | SdkError
1301
1362
  | AccessDeniedError
1302
1363
  | AWSOrganizationsNotInUseError
@@ -1316,6 +1377,7 @@ interface OrganizationsService$ {
1316
1377
  options?: HttpHandlerOptions,
1317
1378
  ): Effect.Effect<
1318
1379
  UpdatePolicyCommandOutput,
1380
+ | Cause.TimeoutException
1319
1381
  | SdkError
1320
1382
  | AccessDeniedError
1321
1383
  | AWSOrganizationsNotInUseError
@@ -1339,7 +1401,7 @@ interface OrganizationsService$ {
1339
1401
  export const makeOrganizationsService = Effect.gen(function*() {
1340
1402
  const client = yield* Instance.OrganizationsClientInstance;
1341
1403
 
1342
- return Service.fromClientAndCommands<OrganizationsService$>(
1404
+ return yield* Service.fromClientAndCommands<OrganizationsService$>(
1343
1405
  client,
1344
1406
  commands,
1345
1407
  {