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