@effect-aws/client-organizations 1.1.0 → 1.9.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 (68) hide show
  1. package/Errors/package.json +6 -0
  2. package/OrganizationsClientInstance/package.json +6 -0
  3. package/OrganizationsService/package.json +6 -0
  4. package/OrganizationsServiceConfig/package.json +6 -0
  5. package/{lib → dist/cjs}/Errors.d.ts +7 -12
  6. package/dist/cjs/Errors.d.ts.map +1 -0
  7. package/dist/cjs/Errors.js +55 -0
  8. package/dist/cjs/Errors.js.map +1 -0
  9. package/dist/cjs/OrganizationsClientInstance.d.ts +24 -0
  10. package/dist/cjs/OrganizationsClientInstance.d.ts.map +1 -0
  11. package/dist/cjs/OrganizationsClientInstance.js +50 -0
  12. package/dist/cjs/OrganizationsClientInstance.js.map +1 -0
  13. package/{lib → dist/cjs}/OrganizationsService.d.ts +16 -38
  14. package/dist/cjs/OrganizationsService.d.ts.map +1 -0
  15. package/dist/cjs/OrganizationsService.js +111 -0
  16. package/dist/cjs/OrganizationsService.js.map +1 -0
  17. package/dist/cjs/OrganizationsServiceConfig.d.ts +25 -0
  18. package/dist/cjs/OrganizationsServiceConfig.d.ts.map +1 -0
  19. package/dist/cjs/OrganizationsServiceConfig.js +35 -0
  20. package/dist/cjs/OrganizationsServiceConfig.js.map +1 -0
  21. package/dist/cjs/index.d.ts +39 -0
  22. package/dist/cjs/index.d.ts.map +1 -0
  23. package/dist/cjs/index.js +56 -0
  24. package/dist/cjs/index.js.map +1 -0
  25. package/dist/dts/Errors.d.ts +54 -0
  26. package/dist/dts/Errors.d.ts.map +1 -0
  27. package/dist/dts/OrganizationsClientInstance.d.ts +24 -0
  28. package/dist/dts/OrganizationsClientInstance.d.ts.map +1 -0
  29. package/dist/dts/OrganizationsService.d.ts +318 -0
  30. package/dist/dts/OrganizationsService.d.ts.map +1 -0
  31. package/dist/dts/OrganizationsServiceConfig.d.ts +25 -0
  32. package/dist/dts/OrganizationsServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/index.d.ts +39 -0
  34. package/dist/dts/index.d.ts.map +1 -0
  35. package/dist/esm/Errors.js +52 -0
  36. package/dist/esm/Errors.js.map +1 -0
  37. package/dist/esm/OrganizationsClientInstance.js +23 -0
  38. package/dist/esm/OrganizationsClientInstance.js.map +1 -0
  39. package/dist/esm/OrganizationsService.js +84 -0
  40. package/dist/esm/OrganizationsService.js.map +1 -0
  41. package/dist/esm/OrganizationsServiceConfig.js +31 -0
  42. package/dist/esm/OrganizationsServiceConfig.js.map +1 -0
  43. package/dist/esm/index.js +27 -0
  44. package/dist/esm/index.js.map +1 -0
  45. package/dist/esm/package.json +4 -0
  46. package/package.json +60 -43
  47. package/src/Errors.ts +154 -0
  48. package/src/OrganizationsClientInstance.ts +33 -0
  49. package/src/OrganizationsService.ts +1382 -0
  50. package/src/OrganizationsServiceConfig.ts +52 -0
  51. package/src/index.ts +44 -0
  52. package/CHANGELOG.md +0 -17
  53. package/docgen.json +0 -8
  54. package/lib/Errors.js +0 -55
  55. package/lib/OrganizationsClientInstance.d.ts +0 -31
  56. package/lib/OrganizationsClientInstance.js +0 -57
  57. package/lib/OrganizationsClientInstanceConfig.d.ts +0 -23
  58. package/lib/OrganizationsClientInstanceConfig.js +0 -44
  59. package/lib/OrganizationsService.js +0 -143
  60. package/lib/esm/Errors.js +0 -52
  61. package/lib/esm/OrganizationsClientInstance.js +0 -30
  62. package/lib/esm/OrganizationsClientInstanceConfig.js +0 -40
  63. package/lib/esm/OrganizationsService.js +0 -139
  64. package/lib/esm/index.js +0 -5
  65. package/lib/index.d.ts +0 -4
  66. package/lib/index.js +0 -21
  67. package/project.json +0 -77
  68. package/vitest.config.ts +0 -3
@@ -0,0 +1,1382 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import {
5
+ AcceptHandshakeCommand,
6
+ type AcceptHandshakeCommandInput,
7
+ type AcceptHandshakeCommandOutput,
8
+ AttachPolicyCommand,
9
+ type AttachPolicyCommandInput,
10
+ type AttachPolicyCommandOutput,
11
+ CancelHandshakeCommand,
12
+ type CancelHandshakeCommandInput,
13
+ type CancelHandshakeCommandOutput,
14
+ CloseAccountCommand,
15
+ type CloseAccountCommandInput,
16
+ type CloseAccountCommandOutput,
17
+ CreateAccountCommand,
18
+ type CreateAccountCommandInput,
19
+ type CreateAccountCommandOutput,
20
+ CreateGovCloudAccountCommand,
21
+ type CreateGovCloudAccountCommandInput,
22
+ type CreateGovCloudAccountCommandOutput,
23
+ CreateOrganizationalUnitCommand,
24
+ type CreateOrganizationalUnitCommandInput,
25
+ type CreateOrganizationalUnitCommandOutput,
26
+ CreateOrganizationCommand,
27
+ type CreateOrganizationCommandInput,
28
+ type CreateOrganizationCommandOutput,
29
+ CreatePolicyCommand,
30
+ type CreatePolicyCommandInput,
31
+ type CreatePolicyCommandOutput,
32
+ DeclineHandshakeCommand,
33
+ type DeclineHandshakeCommandInput,
34
+ type DeclineHandshakeCommandOutput,
35
+ DeleteOrganizationalUnitCommand,
36
+ type DeleteOrganizationalUnitCommandInput,
37
+ type DeleteOrganizationalUnitCommandOutput,
38
+ DeleteOrganizationCommand,
39
+ type DeleteOrganizationCommandInput,
40
+ type DeleteOrganizationCommandOutput,
41
+ DeletePolicyCommand,
42
+ type DeletePolicyCommandInput,
43
+ type DeletePolicyCommandOutput,
44
+ DeleteResourcePolicyCommand,
45
+ type DeleteResourcePolicyCommandInput,
46
+ type DeleteResourcePolicyCommandOutput,
47
+ DeregisterDelegatedAdministratorCommand,
48
+ type DeregisterDelegatedAdministratorCommandInput,
49
+ type DeregisterDelegatedAdministratorCommandOutput,
50
+ DescribeAccountCommand,
51
+ type DescribeAccountCommandInput,
52
+ type DescribeAccountCommandOutput,
53
+ DescribeCreateAccountStatusCommand,
54
+ type DescribeCreateAccountStatusCommandInput,
55
+ type DescribeCreateAccountStatusCommandOutput,
56
+ DescribeEffectivePolicyCommand,
57
+ type DescribeEffectivePolicyCommandInput,
58
+ type DescribeEffectivePolicyCommandOutput,
59
+ DescribeHandshakeCommand,
60
+ type DescribeHandshakeCommandInput,
61
+ type DescribeHandshakeCommandOutput,
62
+ DescribeOrganizationalUnitCommand,
63
+ type DescribeOrganizationalUnitCommandInput,
64
+ type DescribeOrganizationalUnitCommandOutput,
65
+ DescribeOrganizationCommand,
66
+ type DescribeOrganizationCommandInput,
67
+ type DescribeOrganizationCommandOutput,
68
+ DescribePolicyCommand,
69
+ type DescribePolicyCommandInput,
70
+ type DescribePolicyCommandOutput,
71
+ DescribeResourcePolicyCommand,
72
+ type DescribeResourcePolicyCommandInput,
73
+ type DescribeResourcePolicyCommandOutput,
74
+ DetachPolicyCommand,
75
+ type DetachPolicyCommandInput,
76
+ type DetachPolicyCommandOutput,
77
+ DisableAWSServiceAccessCommand,
78
+ type DisableAWSServiceAccessCommandInput,
79
+ type DisableAWSServiceAccessCommandOutput,
80
+ DisablePolicyTypeCommand,
81
+ type DisablePolicyTypeCommandInput,
82
+ type DisablePolicyTypeCommandOutput,
83
+ EnableAllFeaturesCommand,
84
+ type EnableAllFeaturesCommandInput,
85
+ type EnableAllFeaturesCommandOutput,
86
+ EnableAWSServiceAccessCommand,
87
+ type EnableAWSServiceAccessCommandInput,
88
+ type EnableAWSServiceAccessCommandOutput,
89
+ EnablePolicyTypeCommand,
90
+ type EnablePolicyTypeCommandInput,
91
+ type EnablePolicyTypeCommandOutput,
92
+ InviteAccountToOrganizationCommand,
93
+ type InviteAccountToOrganizationCommandInput,
94
+ type InviteAccountToOrganizationCommandOutput,
95
+ LeaveOrganizationCommand,
96
+ type LeaveOrganizationCommandInput,
97
+ type LeaveOrganizationCommandOutput,
98
+ ListAccountsCommand,
99
+ type ListAccountsCommandInput,
100
+ type ListAccountsCommandOutput,
101
+ ListAccountsForParentCommand,
102
+ type ListAccountsForParentCommandInput,
103
+ type ListAccountsForParentCommandOutput,
104
+ ListAWSServiceAccessForOrganizationCommand,
105
+ type ListAWSServiceAccessForOrganizationCommandInput,
106
+ type ListAWSServiceAccessForOrganizationCommandOutput,
107
+ ListChildrenCommand,
108
+ type ListChildrenCommandInput,
109
+ type ListChildrenCommandOutput,
110
+ ListCreateAccountStatusCommand,
111
+ type ListCreateAccountStatusCommandInput,
112
+ type ListCreateAccountStatusCommandOutput,
113
+ ListDelegatedAdministratorsCommand,
114
+ type ListDelegatedAdministratorsCommandInput,
115
+ type ListDelegatedAdministratorsCommandOutput,
116
+ ListDelegatedServicesForAccountCommand,
117
+ type ListDelegatedServicesForAccountCommandInput,
118
+ type ListDelegatedServicesForAccountCommandOutput,
119
+ ListHandshakesForAccountCommand,
120
+ type ListHandshakesForAccountCommandInput,
121
+ type ListHandshakesForAccountCommandOutput,
122
+ ListHandshakesForOrganizationCommand,
123
+ type ListHandshakesForOrganizationCommandInput,
124
+ type ListHandshakesForOrganizationCommandOutput,
125
+ ListOrganizationalUnitsForParentCommand,
126
+ type ListOrganizationalUnitsForParentCommandInput,
127
+ type ListOrganizationalUnitsForParentCommandOutput,
128
+ ListParentsCommand,
129
+ type ListParentsCommandInput,
130
+ type ListParentsCommandOutput,
131
+ ListPoliciesCommand,
132
+ type ListPoliciesCommandInput,
133
+ type ListPoliciesCommandOutput,
134
+ ListPoliciesForTargetCommand,
135
+ type ListPoliciesForTargetCommandInput,
136
+ type ListPoliciesForTargetCommandOutput,
137
+ ListRootsCommand,
138
+ type ListRootsCommandInput,
139
+ type ListRootsCommandOutput,
140
+ ListTagsForResourceCommand,
141
+ type ListTagsForResourceCommandInput,
142
+ type ListTagsForResourceCommandOutput,
143
+ ListTargetsForPolicyCommand,
144
+ type ListTargetsForPolicyCommandInput,
145
+ type ListTargetsForPolicyCommandOutput,
146
+ MoveAccountCommand,
147
+ type MoveAccountCommandInput,
148
+ type MoveAccountCommandOutput,
149
+ type OrganizationsClient,
150
+ type OrganizationsClientConfig,
151
+ PutResourcePolicyCommand,
152
+ type PutResourcePolicyCommandInput,
153
+ type PutResourcePolicyCommandOutput,
154
+ RegisterDelegatedAdministratorCommand,
155
+ type RegisterDelegatedAdministratorCommandInput,
156
+ type RegisterDelegatedAdministratorCommandOutput,
157
+ RemoveAccountFromOrganizationCommand,
158
+ type RemoveAccountFromOrganizationCommandInput,
159
+ type RemoveAccountFromOrganizationCommandOutput,
160
+ TagResourceCommand,
161
+ type TagResourceCommandInput,
162
+ type TagResourceCommandOutput,
163
+ UntagResourceCommand,
164
+ type UntagResourceCommandInput,
165
+ type UntagResourceCommandOutput,
166
+ UpdateOrganizationalUnitCommand,
167
+ type UpdateOrganizationalUnitCommandInput,
168
+ type UpdateOrganizationalUnitCommandOutput,
169
+ UpdatePolicyCommand,
170
+ type UpdatePolicyCommandInput,
171
+ type UpdatePolicyCommandOutput,
172
+ } from "@aws-sdk/client-organizations";
173
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
174
+ import { Service } from "@effect-aws/commons";
175
+ import { Effect, Layer } from "effect";
176
+ import type {
177
+ AccessDeniedError,
178
+ AccessDeniedForDependencyError,
179
+ AccountAlreadyClosedError,
180
+ AccountAlreadyRegisteredError,
181
+ AccountNotFoundError,
182
+ AccountNotRegisteredError,
183
+ AccountOwnerNotVerifiedError,
184
+ AlreadyInOrganizationError,
185
+ AWSOrganizationsNotInUseError,
186
+ ChildNotFoundError,
187
+ ConcurrentModificationError,
188
+ ConflictError,
189
+ ConstraintViolationError,
190
+ CreateAccountStatusNotFoundError,
191
+ DestinationParentNotFoundError,
192
+ DuplicateAccountError,
193
+ DuplicateHandshakeError,
194
+ DuplicateOrganizationalUnitError,
195
+ DuplicatePolicyAttachmentError,
196
+ DuplicatePolicyError,
197
+ EffectivePolicyNotFoundError,
198
+ FinalizingOrganizationError,
199
+ HandshakeAlreadyInStateError,
200
+ HandshakeConstraintViolationError,
201
+ HandshakeNotFoundError,
202
+ InvalidHandshakeTransitionError,
203
+ InvalidInputError,
204
+ MalformedPolicyDocumentError,
205
+ MasterCannotLeaveOrganizationError,
206
+ OrganizationalUnitNotEmptyError,
207
+ OrganizationalUnitNotFoundError,
208
+ OrganizationNotEmptyError,
209
+ ParentNotFoundError,
210
+ PolicyChangesInProgressError,
211
+ PolicyInUseError,
212
+ PolicyNotAttachedError,
213
+ PolicyNotFoundError,
214
+ PolicyTypeAlreadyEnabledError,
215
+ PolicyTypeNotAvailableForOrganizationError,
216
+ PolicyTypeNotEnabledError,
217
+ ResourcePolicyNotFoundError,
218
+ RootNotFoundError,
219
+ ServiceError,
220
+ SourceParentNotFoundError,
221
+ TargetNotFoundError,
222
+ TooManyRequestsError,
223
+ UnsupportedAPIEndpointError,
224
+ } from "./Errors.js";
225
+ import { AllServiceErrors } from "./Errors.js";
226
+ import * as Instance from "./OrganizationsClientInstance.js";
227
+ import * as OrganizationsServiceConfig from "./OrganizationsServiceConfig.js";
228
+
229
+ const commands = {
230
+ AcceptHandshakeCommand,
231
+ AttachPolicyCommand,
232
+ CancelHandshakeCommand,
233
+ CloseAccountCommand,
234
+ CreateAccountCommand,
235
+ CreateGovCloudAccountCommand,
236
+ CreateOrganizationCommand,
237
+ CreateOrganizationalUnitCommand,
238
+ CreatePolicyCommand,
239
+ DeclineHandshakeCommand,
240
+ DeleteOrganizationCommand,
241
+ DeleteOrganizationalUnitCommand,
242
+ DeletePolicyCommand,
243
+ DeleteResourcePolicyCommand,
244
+ DeregisterDelegatedAdministratorCommand,
245
+ DescribeAccountCommand,
246
+ DescribeCreateAccountStatusCommand,
247
+ DescribeEffectivePolicyCommand,
248
+ DescribeHandshakeCommand,
249
+ DescribeOrganizationCommand,
250
+ DescribeOrganizationalUnitCommand,
251
+ DescribePolicyCommand,
252
+ DescribeResourcePolicyCommand,
253
+ DetachPolicyCommand,
254
+ DisableAWSServiceAccessCommand,
255
+ DisablePolicyTypeCommand,
256
+ EnableAWSServiceAccessCommand,
257
+ EnableAllFeaturesCommand,
258
+ EnablePolicyTypeCommand,
259
+ InviteAccountToOrganizationCommand,
260
+ LeaveOrganizationCommand,
261
+ ListAWSServiceAccessForOrganizationCommand,
262
+ ListAccountsCommand,
263
+ ListAccountsForParentCommand,
264
+ ListChildrenCommand,
265
+ ListCreateAccountStatusCommand,
266
+ ListDelegatedAdministratorsCommand,
267
+ ListDelegatedServicesForAccountCommand,
268
+ ListHandshakesForAccountCommand,
269
+ ListHandshakesForOrganizationCommand,
270
+ ListOrganizationalUnitsForParentCommand,
271
+ ListParentsCommand,
272
+ ListPoliciesCommand,
273
+ ListPoliciesForTargetCommand,
274
+ ListRootsCommand,
275
+ ListTagsForResourceCommand,
276
+ ListTargetsForPolicyCommand,
277
+ MoveAccountCommand,
278
+ PutResourcePolicyCommand,
279
+ RegisterDelegatedAdministratorCommand,
280
+ RemoveAccountFromOrganizationCommand,
281
+ TagResourceCommand,
282
+ UntagResourceCommand,
283
+ UpdateOrganizationalUnitCommand,
284
+ UpdatePolicyCommand,
285
+ };
286
+
287
+ interface OrganizationsService$ {
288
+ readonly _: unique symbol;
289
+
290
+ /**
291
+ * @see {@link AcceptHandshakeCommand}
292
+ */
293
+ acceptHandshake(
294
+ args: AcceptHandshakeCommandInput,
295
+ options?: HttpHandlerOptions,
296
+ ): Effect.Effect<
297
+ AcceptHandshakeCommandOutput,
298
+ | SdkError
299
+ | AccessDeniedError
300
+ | AccessDeniedForDependencyError
301
+ | AWSOrganizationsNotInUseError
302
+ | ConcurrentModificationError
303
+ | HandshakeAlreadyInStateError
304
+ | HandshakeConstraintViolationError
305
+ | HandshakeNotFoundError
306
+ | InvalidHandshakeTransitionError
307
+ | InvalidInputError
308
+ | ServiceError
309
+ | TooManyRequestsError
310
+ >;
311
+
312
+ /**
313
+ * @see {@link AttachPolicyCommand}
314
+ */
315
+ attachPolicy(
316
+ args: AttachPolicyCommandInput,
317
+ options?: HttpHandlerOptions,
318
+ ): Effect.Effect<
319
+ AttachPolicyCommandOutput,
320
+ | SdkError
321
+ | AccessDeniedError
322
+ | AWSOrganizationsNotInUseError
323
+ | ConcurrentModificationError
324
+ | ConstraintViolationError
325
+ | DuplicatePolicyAttachmentError
326
+ | InvalidInputError
327
+ | PolicyChangesInProgressError
328
+ | PolicyNotFoundError
329
+ | PolicyTypeNotEnabledError
330
+ | ServiceError
331
+ | TargetNotFoundError
332
+ | TooManyRequestsError
333
+ | UnsupportedAPIEndpointError
334
+ >;
335
+
336
+ /**
337
+ * @see {@link CancelHandshakeCommand}
338
+ */
339
+ cancelHandshake(
340
+ args: CancelHandshakeCommandInput,
341
+ options?: HttpHandlerOptions,
342
+ ): Effect.Effect<
343
+ CancelHandshakeCommandOutput,
344
+ | SdkError
345
+ | AccessDeniedError
346
+ | ConcurrentModificationError
347
+ | HandshakeAlreadyInStateError
348
+ | HandshakeNotFoundError
349
+ | InvalidHandshakeTransitionError
350
+ | InvalidInputError
351
+ | ServiceError
352
+ | TooManyRequestsError
353
+ >;
354
+
355
+ /**
356
+ * @see {@link CloseAccountCommand}
357
+ */
358
+ closeAccount(
359
+ args: CloseAccountCommandInput,
360
+ options?: HttpHandlerOptions,
361
+ ): Effect.Effect<
362
+ CloseAccountCommandOutput,
363
+ | SdkError
364
+ | AccessDeniedError
365
+ | AccountAlreadyClosedError
366
+ | AccountNotFoundError
367
+ | AWSOrganizationsNotInUseError
368
+ | ConcurrentModificationError
369
+ | ConflictError
370
+ | ConstraintViolationError
371
+ | InvalidInputError
372
+ | ServiceError
373
+ | TooManyRequestsError
374
+ | UnsupportedAPIEndpointError
375
+ >;
376
+
377
+ /**
378
+ * @see {@link CreateAccountCommand}
379
+ */
380
+ createAccount(
381
+ args: CreateAccountCommandInput,
382
+ options?: HttpHandlerOptions,
383
+ ): Effect.Effect<
384
+ CreateAccountCommandOutput,
385
+ | SdkError
386
+ | AccessDeniedError
387
+ | AWSOrganizationsNotInUseError
388
+ | ConcurrentModificationError
389
+ | ConstraintViolationError
390
+ | FinalizingOrganizationError
391
+ | InvalidInputError
392
+ | ServiceError
393
+ | TooManyRequestsError
394
+ | UnsupportedAPIEndpointError
395
+ >;
396
+
397
+ /**
398
+ * @see {@link CreateGovCloudAccountCommand}
399
+ */
400
+ createGovCloudAccount(
401
+ args: CreateGovCloudAccountCommandInput,
402
+ options?: HttpHandlerOptions,
403
+ ): Effect.Effect<
404
+ CreateGovCloudAccountCommandOutput,
405
+ | SdkError
406
+ | AccessDeniedError
407
+ | AWSOrganizationsNotInUseError
408
+ | ConcurrentModificationError
409
+ | ConstraintViolationError
410
+ | FinalizingOrganizationError
411
+ | InvalidInputError
412
+ | ServiceError
413
+ | TooManyRequestsError
414
+ | UnsupportedAPIEndpointError
415
+ >;
416
+
417
+ /**
418
+ * @see {@link CreateOrganizationCommand}
419
+ */
420
+ createOrganization(
421
+ args: CreateOrganizationCommandInput,
422
+ options?: HttpHandlerOptions,
423
+ ): Effect.Effect<
424
+ CreateOrganizationCommandOutput,
425
+ | SdkError
426
+ | AccessDeniedError
427
+ | AccessDeniedForDependencyError
428
+ | AlreadyInOrganizationError
429
+ | ConcurrentModificationError
430
+ | ConstraintViolationError
431
+ | InvalidInputError
432
+ | ServiceError
433
+ | TooManyRequestsError
434
+ >;
435
+
436
+ /**
437
+ * @see {@link CreateOrganizationalUnitCommand}
438
+ */
439
+ createOrganizationalUnit(
440
+ args: CreateOrganizationalUnitCommandInput,
441
+ options?: HttpHandlerOptions,
442
+ ): Effect.Effect<
443
+ CreateOrganizationalUnitCommandOutput,
444
+ | SdkError
445
+ | AccessDeniedError
446
+ | AWSOrganizationsNotInUseError
447
+ | ConcurrentModificationError
448
+ | ConstraintViolationError
449
+ | DuplicateOrganizationalUnitError
450
+ | InvalidInputError
451
+ | ParentNotFoundError
452
+ | ServiceError
453
+ | TooManyRequestsError
454
+ >;
455
+
456
+ /**
457
+ * @see {@link CreatePolicyCommand}
458
+ */
459
+ createPolicy(
460
+ args: CreatePolicyCommandInput,
461
+ options?: HttpHandlerOptions,
462
+ ): Effect.Effect<
463
+ CreatePolicyCommandOutput,
464
+ | SdkError
465
+ | AccessDeniedError
466
+ | AWSOrganizationsNotInUseError
467
+ | ConcurrentModificationError
468
+ | ConstraintViolationError
469
+ | DuplicatePolicyError
470
+ | InvalidInputError
471
+ | MalformedPolicyDocumentError
472
+ | PolicyTypeNotAvailableForOrganizationError
473
+ | ServiceError
474
+ | TooManyRequestsError
475
+ | UnsupportedAPIEndpointError
476
+ >;
477
+
478
+ /**
479
+ * @see {@link DeclineHandshakeCommand}
480
+ */
481
+ declineHandshake(
482
+ args: DeclineHandshakeCommandInput,
483
+ options?: HttpHandlerOptions,
484
+ ): Effect.Effect<
485
+ DeclineHandshakeCommandOutput,
486
+ | SdkError
487
+ | AccessDeniedError
488
+ | ConcurrentModificationError
489
+ | HandshakeAlreadyInStateError
490
+ | HandshakeNotFoundError
491
+ | InvalidHandshakeTransitionError
492
+ | InvalidInputError
493
+ | ServiceError
494
+ | TooManyRequestsError
495
+ >;
496
+
497
+ /**
498
+ * @see {@link DeleteOrganizationCommand}
499
+ */
500
+ deleteOrganization(
501
+ args: DeleteOrganizationCommandInput,
502
+ options?: HttpHandlerOptions,
503
+ ): Effect.Effect<
504
+ DeleteOrganizationCommandOutput,
505
+ | SdkError
506
+ | AccessDeniedError
507
+ | AWSOrganizationsNotInUseError
508
+ | ConcurrentModificationError
509
+ | InvalidInputError
510
+ | OrganizationNotEmptyError
511
+ | ServiceError
512
+ | TooManyRequestsError
513
+ >;
514
+
515
+ /**
516
+ * @see {@link DeleteOrganizationalUnitCommand}
517
+ */
518
+ deleteOrganizationalUnit(
519
+ args: DeleteOrganizationalUnitCommandInput,
520
+ options?: HttpHandlerOptions,
521
+ ): Effect.Effect<
522
+ DeleteOrganizationalUnitCommandOutput,
523
+ | SdkError
524
+ | AccessDeniedError
525
+ | AWSOrganizationsNotInUseError
526
+ | ConcurrentModificationError
527
+ | InvalidInputError
528
+ | OrganizationalUnitNotEmptyError
529
+ | OrganizationalUnitNotFoundError
530
+ | ServiceError
531
+ | TooManyRequestsError
532
+ >;
533
+
534
+ /**
535
+ * @see {@link DeletePolicyCommand}
536
+ */
537
+ deletePolicy(
538
+ args: DeletePolicyCommandInput,
539
+ options?: HttpHandlerOptions,
540
+ ): Effect.Effect<
541
+ DeletePolicyCommandOutput,
542
+ | SdkError
543
+ | AccessDeniedError
544
+ | AWSOrganizationsNotInUseError
545
+ | ConcurrentModificationError
546
+ | InvalidInputError
547
+ | PolicyInUseError
548
+ | PolicyNotFoundError
549
+ | ServiceError
550
+ | TooManyRequestsError
551
+ | UnsupportedAPIEndpointError
552
+ >;
553
+
554
+ /**
555
+ * @see {@link DeleteResourcePolicyCommand}
556
+ */
557
+ deleteResourcePolicy(
558
+ args: DeleteResourcePolicyCommandInput,
559
+ options?: HttpHandlerOptions,
560
+ ): Effect.Effect<
561
+ DeleteResourcePolicyCommandOutput,
562
+ | SdkError
563
+ | AccessDeniedError
564
+ | AWSOrganizationsNotInUseError
565
+ | ConcurrentModificationError
566
+ | ConstraintViolationError
567
+ | ResourcePolicyNotFoundError
568
+ | ServiceError
569
+ | TooManyRequestsError
570
+ | UnsupportedAPIEndpointError
571
+ >;
572
+
573
+ /**
574
+ * @see {@link DeregisterDelegatedAdministratorCommand}
575
+ */
576
+ deregisterDelegatedAdministrator(
577
+ args: DeregisterDelegatedAdministratorCommandInput,
578
+ options?: HttpHandlerOptions,
579
+ ): Effect.Effect<
580
+ DeregisterDelegatedAdministratorCommandOutput,
581
+ | SdkError
582
+ | AccessDeniedError
583
+ | AccountNotFoundError
584
+ | AccountNotRegisteredError
585
+ | AWSOrganizationsNotInUseError
586
+ | ConcurrentModificationError
587
+ | ConstraintViolationError
588
+ | InvalidInputError
589
+ | ServiceError
590
+ | TooManyRequestsError
591
+ | UnsupportedAPIEndpointError
592
+ >;
593
+
594
+ /**
595
+ * @see {@link DescribeAccountCommand}
596
+ */
597
+ describeAccount(
598
+ args: DescribeAccountCommandInput,
599
+ options?: HttpHandlerOptions,
600
+ ): Effect.Effect<
601
+ DescribeAccountCommandOutput,
602
+ | SdkError
603
+ | AccessDeniedError
604
+ | AccountNotFoundError
605
+ | AWSOrganizationsNotInUseError
606
+ | InvalidInputError
607
+ | ServiceError
608
+ | TooManyRequestsError
609
+ >;
610
+
611
+ /**
612
+ * @see {@link DescribeCreateAccountStatusCommand}
613
+ */
614
+ describeCreateAccountStatus(
615
+ args: DescribeCreateAccountStatusCommandInput,
616
+ options?: HttpHandlerOptions,
617
+ ): Effect.Effect<
618
+ DescribeCreateAccountStatusCommandOutput,
619
+ | SdkError
620
+ | AccessDeniedError
621
+ | AWSOrganizationsNotInUseError
622
+ | CreateAccountStatusNotFoundError
623
+ | InvalidInputError
624
+ | ServiceError
625
+ | TooManyRequestsError
626
+ | UnsupportedAPIEndpointError
627
+ >;
628
+
629
+ /**
630
+ * @see {@link DescribeEffectivePolicyCommand}
631
+ */
632
+ describeEffectivePolicy(
633
+ args: DescribeEffectivePolicyCommandInput,
634
+ options?: HttpHandlerOptions,
635
+ ): Effect.Effect<
636
+ DescribeEffectivePolicyCommandOutput,
637
+ | SdkError
638
+ | AccessDeniedError
639
+ | AWSOrganizationsNotInUseError
640
+ | ConstraintViolationError
641
+ | EffectivePolicyNotFoundError
642
+ | InvalidInputError
643
+ | ServiceError
644
+ | TargetNotFoundError
645
+ | TooManyRequestsError
646
+ | UnsupportedAPIEndpointError
647
+ >;
648
+
649
+ /**
650
+ * @see {@link DescribeHandshakeCommand}
651
+ */
652
+ describeHandshake(
653
+ args: DescribeHandshakeCommandInput,
654
+ options?: HttpHandlerOptions,
655
+ ): Effect.Effect<
656
+ DescribeHandshakeCommandOutput,
657
+ | SdkError
658
+ | AccessDeniedError
659
+ | ConcurrentModificationError
660
+ | HandshakeNotFoundError
661
+ | InvalidInputError
662
+ | ServiceError
663
+ | TooManyRequestsError
664
+ >;
665
+
666
+ /**
667
+ * @see {@link DescribeOrganizationCommand}
668
+ */
669
+ describeOrganization(
670
+ args: DescribeOrganizationCommandInput,
671
+ options?: HttpHandlerOptions,
672
+ ): Effect.Effect<
673
+ DescribeOrganizationCommandOutput,
674
+ | SdkError
675
+ | AccessDeniedError
676
+ | AWSOrganizationsNotInUseError
677
+ | ConcurrentModificationError
678
+ | ServiceError
679
+ | TooManyRequestsError
680
+ >;
681
+
682
+ /**
683
+ * @see {@link DescribeOrganizationalUnitCommand}
684
+ */
685
+ describeOrganizationalUnit(
686
+ args: DescribeOrganizationalUnitCommandInput,
687
+ options?: HttpHandlerOptions,
688
+ ): Effect.Effect<
689
+ DescribeOrganizationalUnitCommandOutput,
690
+ | SdkError
691
+ | AccessDeniedError
692
+ | AWSOrganizationsNotInUseError
693
+ | InvalidInputError
694
+ | OrganizationalUnitNotFoundError
695
+ | ServiceError
696
+ | TooManyRequestsError
697
+ >;
698
+
699
+ /**
700
+ * @see {@link DescribePolicyCommand}
701
+ */
702
+ describePolicy(
703
+ args: DescribePolicyCommandInput,
704
+ options?: HttpHandlerOptions,
705
+ ): Effect.Effect<
706
+ DescribePolicyCommandOutput,
707
+ | SdkError
708
+ | AccessDeniedError
709
+ | AWSOrganizationsNotInUseError
710
+ | InvalidInputError
711
+ | PolicyNotFoundError
712
+ | ServiceError
713
+ | TooManyRequestsError
714
+ | UnsupportedAPIEndpointError
715
+ >;
716
+
717
+ /**
718
+ * @see {@link DescribeResourcePolicyCommand}
719
+ */
720
+ describeResourcePolicy(
721
+ args: DescribeResourcePolicyCommandInput,
722
+ options?: HttpHandlerOptions,
723
+ ): Effect.Effect<
724
+ DescribeResourcePolicyCommandOutput,
725
+ | SdkError
726
+ | AccessDeniedError
727
+ | AWSOrganizationsNotInUseError
728
+ | ConstraintViolationError
729
+ | ResourcePolicyNotFoundError
730
+ | ServiceError
731
+ | TooManyRequestsError
732
+ | UnsupportedAPIEndpointError
733
+ >;
734
+
735
+ /**
736
+ * @see {@link DetachPolicyCommand}
737
+ */
738
+ detachPolicy(
739
+ args: DetachPolicyCommandInput,
740
+ options?: HttpHandlerOptions,
741
+ ): Effect.Effect<
742
+ DetachPolicyCommandOutput,
743
+ | SdkError
744
+ | AccessDeniedError
745
+ | AWSOrganizationsNotInUseError
746
+ | ConcurrentModificationError
747
+ | ConstraintViolationError
748
+ | InvalidInputError
749
+ | PolicyChangesInProgressError
750
+ | PolicyNotAttachedError
751
+ | PolicyNotFoundError
752
+ | ServiceError
753
+ | TargetNotFoundError
754
+ | TooManyRequestsError
755
+ | UnsupportedAPIEndpointError
756
+ >;
757
+
758
+ /**
759
+ * @see {@link DisableAWSServiceAccessCommand}
760
+ */
761
+ disableAWSServiceAccess(
762
+ args: DisableAWSServiceAccessCommandInput,
763
+ options?: HttpHandlerOptions,
764
+ ): Effect.Effect<
765
+ DisableAWSServiceAccessCommandOutput,
766
+ | SdkError
767
+ | AccessDeniedError
768
+ | AWSOrganizationsNotInUseError
769
+ | ConcurrentModificationError
770
+ | ConstraintViolationError
771
+ | InvalidInputError
772
+ | ServiceError
773
+ | TooManyRequestsError
774
+ | UnsupportedAPIEndpointError
775
+ >;
776
+
777
+ /**
778
+ * @see {@link DisablePolicyTypeCommand}
779
+ */
780
+ disablePolicyType(
781
+ args: DisablePolicyTypeCommandInput,
782
+ options?: HttpHandlerOptions,
783
+ ): Effect.Effect<
784
+ DisablePolicyTypeCommandOutput,
785
+ | SdkError
786
+ | AccessDeniedError
787
+ | AWSOrganizationsNotInUseError
788
+ | ConcurrentModificationError
789
+ | ConstraintViolationError
790
+ | InvalidInputError
791
+ | PolicyChangesInProgressError
792
+ | PolicyTypeNotEnabledError
793
+ | RootNotFoundError
794
+ | ServiceError
795
+ | TooManyRequestsError
796
+ | UnsupportedAPIEndpointError
797
+ >;
798
+
799
+ /**
800
+ * @see {@link EnableAWSServiceAccessCommand}
801
+ */
802
+ enableAWSServiceAccess(
803
+ args: EnableAWSServiceAccessCommandInput,
804
+ options?: HttpHandlerOptions,
805
+ ): Effect.Effect<
806
+ EnableAWSServiceAccessCommandOutput,
807
+ | SdkError
808
+ | AccessDeniedError
809
+ | AWSOrganizationsNotInUseError
810
+ | ConcurrentModificationError
811
+ | ConstraintViolationError
812
+ | InvalidInputError
813
+ | ServiceError
814
+ | TooManyRequestsError
815
+ | UnsupportedAPIEndpointError
816
+ >;
817
+
818
+ /**
819
+ * @see {@link EnableAllFeaturesCommand}
820
+ */
821
+ enableAllFeatures(
822
+ args: EnableAllFeaturesCommandInput,
823
+ options?: HttpHandlerOptions,
824
+ ): Effect.Effect<
825
+ EnableAllFeaturesCommandOutput,
826
+ | SdkError
827
+ | AccessDeniedError
828
+ | AWSOrganizationsNotInUseError
829
+ | ConcurrentModificationError
830
+ | ConstraintViolationError
831
+ | HandshakeConstraintViolationError
832
+ | InvalidInputError
833
+ | ServiceError
834
+ | TooManyRequestsError
835
+ >;
836
+
837
+ /**
838
+ * @see {@link EnablePolicyTypeCommand}
839
+ */
840
+ enablePolicyType(
841
+ args: EnablePolicyTypeCommandInput,
842
+ options?: HttpHandlerOptions,
843
+ ): Effect.Effect<
844
+ EnablePolicyTypeCommandOutput,
845
+ | SdkError
846
+ | AccessDeniedError
847
+ | AWSOrganizationsNotInUseError
848
+ | ConcurrentModificationError
849
+ | ConstraintViolationError
850
+ | InvalidInputError
851
+ | PolicyChangesInProgressError
852
+ | PolicyTypeAlreadyEnabledError
853
+ | PolicyTypeNotAvailableForOrganizationError
854
+ | RootNotFoundError
855
+ | ServiceError
856
+ | TooManyRequestsError
857
+ | UnsupportedAPIEndpointError
858
+ >;
859
+
860
+ /**
861
+ * @see {@link InviteAccountToOrganizationCommand}
862
+ */
863
+ inviteAccountToOrganization(
864
+ args: InviteAccountToOrganizationCommandInput,
865
+ options?: HttpHandlerOptions,
866
+ ): Effect.Effect<
867
+ InviteAccountToOrganizationCommandOutput,
868
+ | SdkError
869
+ | AccessDeniedError
870
+ | AccountOwnerNotVerifiedError
871
+ | AWSOrganizationsNotInUseError
872
+ | ConcurrentModificationError
873
+ | ConstraintViolationError
874
+ | DuplicateHandshakeError
875
+ | FinalizingOrganizationError
876
+ | HandshakeConstraintViolationError
877
+ | InvalidInputError
878
+ | ServiceError
879
+ | TooManyRequestsError
880
+ >;
881
+
882
+ /**
883
+ * @see {@link LeaveOrganizationCommand}
884
+ */
885
+ leaveOrganization(
886
+ args: LeaveOrganizationCommandInput,
887
+ options?: HttpHandlerOptions,
888
+ ): Effect.Effect<
889
+ LeaveOrganizationCommandOutput,
890
+ | SdkError
891
+ | AccessDeniedError
892
+ | AccountNotFoundError
893
+ | AWSOrganizationsNotInUseError
894
+ | ConcurrentModificationError
895
+ | ConstraintViolationError
896
+ | InvalidInputError
897
+ | MasterCannotLeaveOrganizationError
898
+ | ServiceError
899
+ | TooManyRequestsError
900
+ >;
901
+
902
+ /**
903
+ * @see {@link ListAWSServiceAccessForOrganizationCommand}
904
+ */
905
+ listAWSServiceAccessForOrganization(
906
+ args: ListAWSServiceAccessForOrganizationCommandInput,
907
+ options?: HttpHandlerOptions,
908
+ ): Effect.Effect<
909
+ ListAWSServiceAccessForOrganizationCommandOutput,
910
+ | SdkError
911
+ | AccessDeniedError
912
+ | AWSOrganizationsNotInUseError
913
+ | ConstraintViolationError
914
+ | InvalidInputError
915
+ | ServiceError
916
+ | TooManyRequestsError
917
+ | UnsupportedAPIEndpointError
918
+ >;
919
+
920
+ /**
921
+ * @see {@link ListAccountsCommand}
922
+ */
923
+ listAccounts(
924
+ args: ListAccountsCommandInput,
925
+ options?: HttpHandlerOptions,
926
+ ): Effect.Effect<
927
+ ListAccountsCommandOutput,
928
+ | SdkError
929
+ | AccessDeniedError
930
+ | AWSOrganizationsNotInUseError
931
+ | InvalidInputError
932
+ | ServiceError
933
+ | TooManyRequestsError
934
+ >;
935
+
936
+ /**
937
+ * @see {@link ListAccountsForParentCommand}
938
+ */
939
+ listAccountsForParent(
940
+ args: ListAccountsForParentCommandInput,
941
+ options?: HttpHandlerOptions,
942
+ ): Effect.Effect<
943
+ ListAccountsForParentCommandOutput,
944
+ | SdkError
945
+ | AccessDeniedError
946
+ | AWSOrganizationsNotInUseError
947
+ | InvalidInputError
948
+ | ParentNotFoundError
949
+ | ServiceError
950
+ | TooManyRequestsError
951
+ >;
952
+
953
+ /**
954
+ * @see {@link ListChildrenCommand}
955
+ */
956
+ listChildren(
957
+ args: ListChildrenCommandInput,
958
+ options?: HttpHandlerOptions,
959
+ ): Effect.Effect<
960
+ ListChildrenCommandOutput,
961
+ | SdkError
962
+ | AccessDeniedError
963
+ | AWSOrganizationsNotInUseError
964
+ | InvalidInputError
965
+ | ParentNotFoundError
966
+ | ServiceError
967
+ | TooManyRequestsError
968
+ >;
969
+
970
+ /**
971
+ * @see {@link ListCreateAccountStatusCommand}
972
+ */
973
+ listCreateAccountStatus(
974
+ args: ListCreateAccountStatusCommandInput,
975
+ options?: HttpHandlerOptions,
976
+ ): Effect.Effect<
977
+ ListCreateAccountStatusCommandOutput,
978
+ | SdkError
979
+ | AccessDeniedError
980
+ | AWSOrganizationsNotInUseError
981
+ | InvalidInputError
982
+ | ServiceError
983
+ | TooManyRequestsError
984
+ | UnsupportedAPIEndpointError
985
+ >;
986
+
987
+ /**
988
+ * @see {@link ListDelegatedAdministratorsCommand}
989
+ */
990
+ listDelegatedAdministrators(
991
+ args: ListDelegatedAdministratorsCommandInput,
992
+ options?: HttpHandlerOptions,
993
+ ): Effect.Effect<
994
+ ListDelegatedAdministratorsCommandOutput,
995
+ | SdkError
996
+ | AccessDeniedError
997
+ | AWSOrganizationsNotInUseError
998
+ | ConstraintViolationError
999
+ | InvalidInputError
1000
+ | ServiceError
1001
+ | TooManyRequestsError
1002
+ | UnsupportedAPIEndpointError
1003
+ >;
1004
+
1005
+ /**
1006
+ * @see {@link ListDelegatedServicesForAccountCommand}
1007
+ */
1008
+ listDelegatedServicesForAccount(
1009
+ args: ListDelegatedServicesForAccountCommandInput,
1010
+ options?: HttpHandlerOptions,
1011
+ ): Effect.Effect<
1012
+ ListDelegatedServicesForAccountCommandOutput,
1013
+ | SdkError
1014
+ | AccessDeniedError
1015
+ | AccountNotFoundError
1016
+ | AccountNotRegisteredError
1017
+ | AWSOrganizationsNotInUseError
1018
+ | ConstraintViolationError
1019
+ | InvalidInputError
1020
+ | ServiceError
1021
+ | TooManyRequestsError
1022
+ | UnsupportedAPIEndpointError
1023
+ >;
1024
+
1025
+ /**
1026
+ * @see {@link ListHandshakesForAccountCommand}
1027
+ */
1028
+ listHandshakesForAccount(
1029
+ args: ListHandshakesForAccountCommandInput,
1030
+ options?: HttpHandlerOptions,
1031
+ ): Effect.Effect<
1032
+ ListHandshakesForAccountCommandOutput,
1033
+ SdkError | AccessDeniedError | ConcurrentModificationError | InvalidInputError | ServiceError | TooManyRequestsError
1034
+ >;
1035
+
1036
+ /**
1037
+ * @see {@link ListHandshakesForOrganizationCommand}
1038
+ */
1039
+ listHandshakesForOrganization(
1040
+ args: ListHandshakesForOrganizationCommandInput,
1041
+ options?: HttpHandlerOptions,
1042
+ ): Effect.Effect<
1043
+ ListHandshakesForOrganizationCommandOutput,
1044
+ | SdkError
1045
+ | AccessDeniedError
1046
+ | AWSOrganizationsNotInUseError
1047
+ | ConcurrentModificationError
1048
+ | InvalidInputError
1049
+ | ServiceError
1050
+ | TooManyRequestsError
1051
+ >;
1052
+
1053
+ /**
1054
+ * @see {@link ListOrganizationalUnitsForParentCommand}
1055
+ */
1056
+ listOrganizationalUnitsForParent(
1057
+ args: ListOrganizationalUnitsForParentCommandInput,
1058
+ options?: HttpHandlerOptions,
1059
+ ): Effect.Effect<
1060
+ ListOrganizationalUnitsForParentCommandOutput,
1061
+ | SdkError
1062
+ | AccessDeniedError
1063
+ | AWSOrganizationsNotInUseError
1064
+ | InvalidInputError
1065
+ | ParentNotFoundError
1066
+ | ServiceError
1067
+ | TooManyRequestsError
1068
+ >;
1069
+
1070
+ /**
1071
+ * @see {@link ListParentsCommand}
1072
+ */
1073
+ listParents(
1074
+ args: ListParentsCommandInput,
1075
+ options?: HttpHandlerOptions,
1076
+ ): Effect.Effect<
1077
+ ListParentsCommandOutput,
1078
+ | SdkError
1079
+ | AccessDeniedError
1080
+ | AWSOrganizationsNotInUseError
1081
+ | ChildNotFoundError
1082
+ | InvalidInputError
1083
+ | ServiceError
1084
+ | TooManyRequestsError
1085
+ >;
1086
+
1087
+ /**
1088
+ * @see {@link ListPoliciesCommand}
1089
+ */
1090
+ listPolicies(
1091
+ args: ListPoliciesCommandInput,
1092
+ options?: HttpHandlerOptions,
1093
+ ): Effect.Effect<
1094
+ ListPoliciesCommandOutput,
1095
+ | SdkError
1096
+ | AccessDeniedError
1097
+ | AWSOrganizationsNotInUseError
1098
+ | InvalidInputError
1099
+ | ServiceError
1100
+ | TooManyRequestsError
1101
+ | UnsupportedAPIEndpointError
1102
+ >;
1103
+
1104
+ /**
1105
+ * @see {@link ListPoliciesForTargetCommand}
1106
+ */
1107
+ listPoliciesForTarget(
1108
+ args: ListPoliciesForTargetCommandInput,
1109
+ options?: HttpHandlerOptions,
1110
+ ): Effect.Effect<
1111
+ ListPoliciesForTargetCommandOutput,
1112
+ | SdkError
1113
+ | AccessDeniedError
1114
+ | AWSOrganizationsNotInUseError
1115
+ | InvalidInputError
1116
+ | ServiceError
1117
+ | TargetNotFoundError
1118
+ | TooManyRequestsError
1119
+ | UnsupportedAPIEndpointError
1120
+ >;
1121
+
1122
+ /**
1123
+ * @see {@link ListRootsCommand}
1124
+ */
1125
+ listRoots(
1126
+ args: ListRootsCommandInput,
1127
+ options?: HttpHandlerOptions,
1128
+ ): Effect.Effect<
1129
+ ListRootsCommandOutput,
1130
+ | SdkError
1131
+ | AccessDeniedError
1132
+ | AWSOrganizationsNotInUseError
1133
+ | InvalidInputError
1134
+ | ServiceError
1135
+ | TooManyRequestsError
1136
+ >;
1137
+
1138
+ /**
1139
+ * @see {@link ListTagsForResourceCommand}
1140
+ */
1141
+ listTagsForResource(
1142
+ args: ListTagsForResourceCommandInput,
1143
+ options?: HttpHandlerOptions,
1144
+ ): Effect.Effect<
1145
+ ListTagsForResourceCommandOutput,
1146
+ | SdkError
1147
+ | AccessDeniedError
1148
+ | AWSOrganizationsNotInUseError
1149
+ | InvalidInputError
1150
+ | ServiceError
1151
+ | TargetNotFoundError
1152
+ | TooManyRequestsError
1153
+ >;
1154
+
1155
+ /**
1156
+ * @see {@link ListTargetsForPolicyCommand}
1157
+ */
1158
+ listTargetsForPolicy(
1159
+ args: ListTargetsForPolicyCommandInput,
1160
+ options?: HttpHandlerOptions,
1161
+ ): Effect.Effect<
1162
+ ListTargetsForPolicyCommandOutput,
1163
+ | SdkError
1164
+ | AccessDeniedError
1165
+ | AWSOrganizationsNotInUseError
1166
+ | InvalidInputError
1167
+ | PolicyNotFoundError
1168
+ | ServiceError
1169
+ | TooManyRequestsError
1170
+ | UnsupportedAPIEndpointError
1171
+ >;
1172
+
1173
+ /**
1174
+ * @see {@link MoveAccountCommand}
1175
+ */
1176
+ moveAccount(
1177
+ args: MoveAccountCommandInput,
1178
+ options?: HttpHandlerOptions,
1179
+ ): Effect.Effect<
1180
+ MoveAccountCommandOutput,
1181
+ | SdkError
1182
+ | AccessDeniedError
1183
+ | AccountNotFoundError
1184
+ | AWSOrganizationsNotInUseError
1185
+ | ConcurrentModificationError
1186
+ | DestinationParentNotFoundError
1187
+ | DuplicateAccountError
1188
+ | InvalidInputError
1189
+ | ServiceError
1190
+ | SourceParentNotFoundError
1191
+ | TooManyRequestsError
1192
+ >;
1193
+
1194
+ /**
1195
+ * @see {@link PutResourcePolicyCommand}
1196
+ */
1197
+ putResourcePolicy(
1198
+ args: PutResourcePolicyCommandInput,
1199
+ options?: HttpHandlerOptions,
1200
+ ): Effect.Effect<
1201
+ PutResourcePolicyCommandOutput,
1202
+ | SdkError
1203
+ | AccessDeniedError
1204
+ | AWSOrganizationsNotInUseError
1205
+ | ConcurrentModificationError
1206
+ | ConstraintViolationError
1207
+ | InvalidInputError
1208
+ | ServiceError
1209
+ | TooManyRequestsError
1210
+ | UnsupportedAPIEndpointError
1211
+ >;
1212
+
1213
+ /**
1214
+ * @see {@link RegisterDelegatedAdministratorCommand}
1215
+ */
1216
+ registerDelegatedAdministrator(
1217
+ args: RegisterDelegatedAdministratorCommandInput,
1218
+ options?: HttpHandlerOptions,
1219
+ ): Effect.Effect<
1220
+ RegisterDelegatedAdministratorCommandOutput,
1221
+ | SdkError
1222
+ | AccessDeniedError
1223
+ | AccountAlreadyRegisteredError
1224
+ | AccountNotFoundError
1225
+ | AWSOrganizationsNotInUseError
1226
+ | ConcurrentModificationError
1227
+ | ConstraintViolationError
1228
+ | InvalidInputError
1229
+ | ServiceError
1230
+ | TooManyRequestsError
1231
+ | UnsupportedAPIEndpointError
1232
+ >;
1233
+
1234
+ /**
1235
+ * @see {@link RemoveAccountFromOrganizationCommand}
1236
+ */
1237
+ removeAccountFromOrganization(
1238
+ args: RemoveAccountFromOrganizationCommandInput,
1239
+ options?: HttpHandlerOptions,
1240
+ ): Effect.Effect<
1241
+ RemoveAccountFromOrganizationCommandOutput,
1242
+ | SdkError
1243
+ | AccessDeniedError
1244
+ | AccountNotFoundError
1245
+ | AWSOrganizationsNotInUseError
1246
+ | ConcurrentModificationError
1247
+ | ConstraintViolationError
1248
+ | InvalidInputError
1249
+ | MasterCannotLeaveOrganizationError
1250
+ | ServiceError
1251
+ | TooManyRequestsError
1252
+ >;
1253
+
1254
+ /**
1255
+ * @see {@link TagResourceCommand}
1256
+ */
1257
+ tagResource(
1258
+ args: TagResourceCommandInput,
1259
+ options?: HttpHandlerOptions,
1260
+ ): Effect.Effect<
1261
+ TagResourceCommandOutput,
1262
+ | SdkError
1263
+ | AccessDeniedError
1264
+ | AWSOrganizationsNotInUseError
1265
+ | ConcurrentModificationError
1266
+ | ConstraintViolationError
1267
+ | InvalidInputError
1268
+ | ServiceError
1269
+ | TargetNotFoundError
1270
+ | TooManyRequestsError
1271
+ >;
1272
+
1273
+ /**
1274
+ * @see {@link UntagResourceCommand}
1275
+ */
1276
+ untagResource(
1277
+ args: UntagResourceCommandInput,
1278
+ options?: HttpHandlerOptions,
1279
+ ): Effect.Effect<
1280
+ UntagResourceCommandOutput,
1281
+ | SdkError
1282
+ | AccessDeniedError
1283
+ | AWSOrganizationsNotInUseError
1284
+ | ConcurrentModificationError
1285
+ | ConstraintViolationError
1286
+ | InvalidInputError
1287
+ | ServiceError
1288
+ | TargetNotFoundError
1289
+ | TooManyRequestsError
1290
+ >;
1291
+
1292
+ /**
1293
+ * @see {@link UpdateOrganizationalUnitCommand}
1294
+ */
1295
+ updateOrganizationalUnit(
1296
+ args: UpdateOrganizationalUnitCommandInput,
1297
+ options?: HttpHandlerOptions,
1298
+ ): Effect.Effect<
1299
+ UpdateOrganizationalUnitCommandOutput,
1300
+ | SdkError
1301
+ | AccessDeniedError
1302
+ | AWSOrganizationsNotInUseError
1303
+ | ConcurrentModificationError
1304
+ | DuplicateOrganizationalUnitError
1305
+ | InvalidInputError
1306
+ | OrganizationalUnitNotFoundError
1307
+ | ServiceError
1308
+ | TooManyRequestsError
1309
+ >;
1310
+
1311
+ /**
1312
+ * @see {@link UpdatePolicyCommand}
1313
+ */
1314
+ updatePolicy(
1315
+ args: UpdatePolicyCommandInput,
1316
+ options?: HttpHandlerOptions,
1317
+ ): Effect.Effect<
1318
+ UpdatePolicyCommandOutput,
1319
+ | SdkError
1320
+ | AccessDeniedError
1321
+ | AWSOrganizationsNotInUseError
1322
+ | ConcurrentModificationError
1323
+ | ConstraintViolationError
1324
+ | DuplicatePolicyError
1325
+ | InvalidInputError
1326
+ | MalformedPolicyDocumentError
1327
+ | PolicyChangesInProgressError
1328
+ | PolicyNotFoundError
1329
+ | ServiceError
1330
+ | TooManyRequestsError
1331
+ | UnsupportedAPIEndpointError
1332
+ >;
1333
+ }
1334
+
1335
+ /**
1336
+ * @since 1.0.0
1337
+ * @category constructors
1338
+ */
1339
+ export const makeOrganizationsService = Effect.gen(function*() {
1340
+ const client = yield* Instance.OrganizationsClientInstance;
1341
+
1342
+ return Service.fromClientAndCommands<OrganizationsService$>(client, commands, AllServiceErrors);
1343
+ });
1344
+
1345
+ /**
1346
+ * @since 1.0.0
1347
+ * @category models
1348
+ */
1349
+ export class OrganizationsService extends Effect.Tag("@effect-aws/client-organizations/OrganizationsService")<
1350
+ OrganizationsService,
1351
+ OrganizationsService$
1352
+ >() {
1353
+ static readonly defaultLayer = Layer.effect(this, makeOrganizationsService).pipe(Layer.provide(Instance.layer));
1354
+ static readonly layer = (config: OrganizationsService.Config) =>
1355
+ Layer.effect(this, makeOrganizationsService).pipe(
1356
+ Layer.provide(Instance.layer),
1357
+ Layer.provide(OrganizationsServiceConfig.setOrganizationsServiceConfig(config)),
1358
+ );
1359
+ static readonly baseLayer = (
1360
+ evaluate: (defaultConfig: OrganizationsClientConfig) => OrganizationsClient,
1361
+ ) =>
1362
+ Layer.effect(this, makeOrganizationsService).pipe(
1363
+ Layer.provide(
1364
+ Layer.effect(
1365
+ Instance.OrganizationsClientInstance,
1366
+ Effect.map(OrganizationsServiceConfig.toOrganizationsClientConfig, evaluate),
1367
+ ),
1368
+ ),
1369
+ );
1370
+ }
1371
+
1372
+ /**
1373
+ * @since 1.0.0
1374
+ */
1375
+ export declare namespace OrganizationsService {
1376
+ /**
1377
+ * @since 1.0.0
1378
+ */
1379
+ export interface Config extends Omit<OrganizationsClientConfig, "logger"> {
1380
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
1381
+ }
1382
+ }