@aws-sdk/client-organizations 3.934.0 → 3.936.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.
@@ -0,0 +1,1049 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { AccessDeniedForDependencyExceptionReason, ConstraintViolationExceptionReason, HandshakeConstraintViolationExceptionReason, InvalidInputExceptionReason } from "./enums";
3
+ import { OrganizationsServiceException as __BaseException } from "./OrganizationsServiceException";
4
+ /**
5
+ * <p>You don't have permissions to perform the requested operation. The user or role that
6
+ * is making the request must have at least one IAM permissions policy attached that
7
+ * grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access Management</a> in the
8
+ * <i>IAM User Guide</i>.</p>
9
+ * @public
10
+ */
11
+ export declare class AccessDeniedException extends __BaseException {
12
+ readonly name: "AccessDeniedException";
13
+ readonly $fault: "client";
14
+ Message?: string | undefined;
15
+ /**
16
+ * @internal
17
+ */
18
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
19
+ }
20
+ /**
21
+ * <p>The operation that you attempted requires you to have the
22
+ * <code>iam:CreateServiceLinkedRole</code> for
23
+ * <code>organizations.amazonaws.com</code> permission so that Organizations can create the
24
+ * required service-linked role. You don't have that permission.</p>
25
+ * @public
26
+ */
27
+ export declare class AccessDeniedForDependencyException extends __BaseException {
28
+ readonly name: "AccessDeniedForDependencyException";
29
+ readonly $fault: "client";
30
+ Message?: string | undefined;
31
+ Reason?: AccessDeniedForDependencyExceptionReason | undefined;
32
+ /**
33
+ * @internal
34
+ */
35
+ constructor(opts: __ExceptionOptionType<AccessDeniedForDependencyException, __BaseException>);
36
+ }
37
+ /**
38
+ * <p>Your account isn't a member of an organization. To make this request, you must use the
39
+ * credentials of an account that belongs to an organization.</p>
40
+ * @public
41
+ */
42
+ export declare class AWSOrganizationsNotInUseException extends __BaseException {
43
+ readonly name: "AWSOrganizationsNotInUseException";
44
+ readonly $fault: "client";
45
+ Message?: string | undefined;
46
+ /**
47
+ * @internal
48
+ */
49
+ constructor(opts: __ExceptionOptionType<AWSOrganizationsNotInUseException, __BaseException>);
50
+ }
51
+ /**
52
+ * <p>The target of the operation is currently being modified by a different request. Try
53
+ * again later.</p>
54
+ * @public
55
+ */
56
+ export declare class ConcurrentModificationException extends __BaseException {
57
+ readonly name: "ConcurrentModificationException";
58
+ readonly $fault: "client";
59
+ Message?: string | undefined;
60
+ /**
61
+ * @internal
62
+ */
63
+ constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
64
+ }
65
+ /**
66
+ * <p>The specified handshake is already in the requested state. For example, you can't
67
+ * accept a handshake that was already accepted.</p>
68
+ * @public
69
+ */
70
+ export declare class HandshakeAlreadyInStateException extends __BaseException {
71
+ readonly name: "HandshakeAlreadyInStateException";
72
+ readonly $fault: "client";
73
+ Message?: string | undefined;
74
+ /**
75
+ * @internal
76
+ */
77
+ constructor(opts: __ExceptionOptionType<HandshakeAlreadyInStateException, __BaseException>);
78
+ }
79
+ /**
80
+ * <p>The requested operation would violate the constraint identified in the reason
81
+ * code.</p>
82
+ * <note>
83
+ * <p>Some of the reasons in the following list might not be applicable to this specific
84
+ * API or operation:</p>
85
+ * </note>
86
+ * <ul>
87
+ * <li>
88
+ * <p>ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number
89
+ * of accounts in an organization. Note that deleted and closed accounts still
90
+ * count toward your limit.</p>
91
+ * <important>
92
+ * <p>If you get this exception immediately after creating the organization,
93
+ * wait one hour and try again. If after an hour it continues to fail with this
94
+ * error, contact <a href="https://console.aws.amazon.com/support/home#/">Amazon Web Services
95
+ * Support</a>.</p>
96
+ * </important>
97
+ * </li>
98
+ * <li>
99
+ * <p>ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because the
100
+ * invited account is already a member of an organization.</p>
101
+ * </li>
102
+ * <li>
103
+ * <p>HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
104
+ * handshakes that you can send in one day.</p>
105
+ * </li>
106
+ * <li>
107
+ * <p>INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You can't issue new invitations to
108
+ * join an organization while it's in the process of enabling all features. You can
109
+ * resume inviting accounts after you finalize the process when all accounts have
110
+ * agreed to the change.</p>
111
+ * </li>
112
+ * <li>
113
+ * <p>ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid
114
+ * because the organization has already enabled all features.</p>
115
+ * </li>
116
+ * <li>
117
+ * <p>ORGANIZATION_IS_ALREADY_PENDING_ALL_FEATURES_MIGRATION: The handshake request
118
+ * is invalid because the organization has already started the process to enable
119
+ * all features.</p>
120
+ * </li>
121
+ * <li>
122
+ * <p>ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because the
123
+ * account is from a different marketplace than the accounts in the
124
+ * organization.</p>
125
+ * </li>
126
+ * <li>
127
+ * <p>ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED: You attempted to change
128
+ * the membership of an account too quickly after its previous change.</p>
129
+ * </li>
130
+ * <li>
131
+ * <p>PAYMENT_INSTRUMENT_REQUIRED: You can't complete the operation with an account
132
+ * that doesn't have a payment instrument, such as a credit card, associated with
133
+ * it.</p>
134
+ * </li>
135
+ * </ul>
136
+ * @public
137
+ */
138
+ export declare class HandshakeConstraintViolationException extends __BaseException {
139
+ readonly name: "HandshakeConstraintViolationException";
140
+ readonly $fault: "client";
141
+ Message?: string | undefined;
142
+ Reason?: HandshakeConstraintViolationExceptionReason | undefined;
143
+ /**
144
+ * @internal
145
+ */
146
+ constructor(opts: __ExceptionOptionType<HandshakeConstraintViolationException, __BaseException>);
147
+ }
148
+ /**
149
+ * <p>We can't find a handshake with the <code>HandshakeId</code> that you specified.</p>
150
+ * @public
151
+ */
152
+ export declare class HandshakeNotFoundException extends __BaseException {
153
+ readonly name: "HandshakeNotFoundException";
154
+ readonly $fault: "client";
155
+ Message?: string | undefined;
156
+ /**
157
+ * @internal
158
+ */
159
+ constructor(opts: __ExceptionOptionType<HandshakeNotFoundException, __BaseException>);
160
+ }
161
+ /**
162
+ * <p>You can't perform the operation on the handshake in its current state. For example,
163
+ * you can't cancel a handshake that was already accepted or accept a handshake that was
164
+ * already declined.</p>
165
+ * @public
166
+ */
167
+ export declare class InvalidHandshakeTransitionException extends __BaseException {
168
+ readonly name: "InvalidHandshakeTransitionException";
169
+ readonly $fault: "client";
170
+ Message?: string | undefined;
171
+ /**
172
+ * @internal
173
+ */
174
+ constructor(opts: __ExceptionOptionType<InvalidHandshakeTransitionException, __BaseException>);
175
+ }
176
+ /**
177
+ * <p>The requested operation failed because you provided invalid values for one or more of
178
+ * the request parameters. This exception includes a reason that contains additional
179
+ * information about the violated limit:</p>
180
+ * <note>
181
+ * <p>Some of the reasons in the following list might not be applicable to this specific
182
+ * API or operation.</p>
183
+ * </note>
184
+ * <ul>
185
+ * <li>
186
+ * <p>DUPLICATE_TAG_KEY: Tag keys must be unique among the tags attached to the same
187
+ * entity.</p>
188
+ * </li>
189
+ * <li>
190
+ * <p>IMMUTABLE_POLICY: You specified a policy that is managed by Amazon Web Services and can't be
191
+ * modified.</p>
192
+ * </li>
193
+ * <li>
194
+ * <p>INPUT_REQUIRED: You must include a value for all required parameters.</p>
195
+ * </li>
196
+ * <li>
197
+ * <p>INVALID_EMAIL_ADDRESS_TARGET: You specified an invalid email address for the
198
+ * invited account owner.</p>
199
+ * </li>
200
+ * <li>
201
+ * <p>INVALID_ENUM: You specified an invalid value.</p>
202
+ * </li>
203
+ * <li>
204
+ * <p>INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type string.</p>
205
+ * </li>
206
+ * <li>
207
+ * <p>INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
208
+ * characters.</p>
209
+ * </li>
210
+ * <li>
211
+ * <p>INVALID_LIST_MEMBER: You provided a list to a parameter that contains at least
212
+ * one invalid value.</p>
213
+ * </li>
214
+ * <li>
215
+ * <p>INVALID_PAGINATION_TOKEN: Get the value for the <code>NextToken</code>
216
+ * parameter from the response to a previous call of the operation.</p>
217
+ * </li>
218
+ * <li>
219
+ * <p>INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
220
+ * organization, or email) as a party.</p>
221
+ * </li>
222
+ * <li>
223
+ * <p>INVALID_PATTERN: You provided a value that doesn't match the required
224
+ * pattern.</p>
225
+ * </li>
226
+ * <li>
227
+ * <p>INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't match
228
+ * the required pattern.</p>
229
+ * </li>
230
+ * <li>
231
+ * <p>INVALID_PRINCIPAL: You specified an invalid principal element in the
232
+ * policy.</p>
233
+ * </li>
234
+ * <li>
235
+ * <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
236
+ * can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
237
+ * </li>
238
+ * <li>
239
+ * <p>INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource Name
240
+ * (ARN) for the organization.</p>
241
+ * </li>
242
+ * <li>
243
+ * <p>INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. </p>
244
+ * </li>
245
+ * <li>
246
+ * <p>INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system tag.
247
+ * You can’t add, edit, or delete system tag keys because they're reserved for
248
+ * Amazon Web Services use. System tags don’t count against your tags per resource limit.</p>
249
+ * </li>
250
+ * <li>
251
+ * <p>MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter for the
252
+ * operation.</p>
253
+ * </li>
254
+ * <li>
255
+ * <p>MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer than
256
+ * allowed.</p>
257
+ * </li>
258
+ * <li>
259
+ * <p>MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger value
260
+ * than allowed.</p>
261
+ * </li>
262
+ * <li>
263
+ * <p>MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter than
264
+ * allowed.</p>
265
+ * </li>
266
+ * <li>
267
+ * <p>MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller value
268
+ * than allowed.</p>
269
+ * </li>
270
+ * <li>
271
+ * <p>MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only between
272
+ * entities in the same root.</p>
273
+ * </li>
274
+ * <li>
275
+ * <p>NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.</p>
276
+ * </li>
277
+ * <li>
278
+ * <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
279
+ * entity.</p>
280
+ * </li>
281
+ * <li>
282
+ * <p>UNRECOGNIZED_SERVICE_PRINCIPAL: You specified a service principal that isn't
283
+ * recognized.</p>
284
+ * </li>
285
+ * </ul>
286
+ * @public
287
+ */
288
+ export declare class InvalidInputException extends __BaseException {
289
+ readonly name: "InvalidInputException";
290
+ readonly $fault: "client";
291
+ Message?: string | undefined;
292
+ Reason?: InvalidInputExceptionReason | undefined;
293
+ /**
294
+ * @internal
295
+ */
296
+ constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
297
+ }
298
+ /**
299
+ * <p>Organizations can't complete your request because of an internal service error. Try again
300
+ * later.</p>
301
+ * @public
302
+ */
303
+ export declare class ServiceException extends __BaseException {
304
+ readonly name: "ServiceException";
305
+ readonly $fault: "server";
306
+ Message?: string | undefined;
307
+ /**
308
+ * @internal
309
+ */
310
+ constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
311
+ }
312
+ /**
313
+ * <p>You have sent too many requests in too short a period of time. The quota helps protect
314
+ * against denial-of-service attacks. Try again later.</p>
315
+ * <p>For information about quotas that affect Organizations, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html">Quotas for Organizations</a> in the
316
+ * <i>Organizations User Guide</i>.</p>
317
+ * @public
318
+ */
319
+ export declare class TooManyRequestsException extends __BaseException {
320
+ readonly name: "TooManyRequestsException";
321
+ readonly $fault: "client";
322
+ Type?: string | undefined;
323
+ Message?: string | undefined;
324
+ /**
325
+ * @internal
326
+ */
327
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
328
+ }
329
+ /**
330
+ * <p>You attempted to close an account that is already closed.</p>
331
+ * @public
332
+ */
333
+ export declare class AccountAlreadyClosedException extends __BaseException {
334
+ readonly name: "AccountAlreadyClosedException";
335
+ readonly $fault: "client";
336
+ Message?: string | undefined;
337
+ /**
338
+ * @internal
339
+ */
340
+ constructor(opts: __ExceptionOptionType<AccountAlreadyClosedException, __BaseException>);
341
+ }
342
+ /**
343
+ * <p>The specified account is already a delegated administrator for this Amazon Web Services
344
+ * service.</p>
345
+ * @public
346
+ */
347
+ export declare class AccountAlreadyRegisteredException extends __BaseException {
348
+ readonly name: "AccountAlreadyRegisteredException";
349
+ readonly $fault: "client";
350
+ Message?: string | undefined;
351
+ /**
352
+ * @internal
353
+ */
354
+ constructor(opts: __ExceptionOptionType<AccountAlreadyRegisteredException, __BaseException>);
355
+ }
356
+ /**
357
+ * <p> We can't find an Amazon Web Services account with the <code>AccountId</code> that you specified, or
358
+ * the account whose credentials you used to make this request isn't a member of an
359
+ * organization.</p>
360
+ * @public
361
+ */
362
+ export declare class AccountNotFoundException extends __BaseException {
363
+ readonly name: "AccountNotFoundException";
364
+ readonly $fault: "client";
365
+ Message?: string | undefined;
366
+ /**
367
+ * @internal
368
+ */
369
+ constructor(opts: __ExceptionOptionType<AccountNotFoundException, __BaseException>);
370
+ }
371
+ /**
372
+ * <p>The specified account is not a delegated administrator for this Amazon Web Services service. </p>
373
+ * @public
374
+ */
375
+ export declare class AccountNotRegisteredException extends __BaseException {
376
+ readonly name: "AccountNotRegisteredException";
377
+ readonly $fault: "client";
378
+ Message?: string | undefined;
379
+ /**
380
+ * @internal
381
+ */
382
+ constructor(opts: __ExceptionOptionType<AccountNotRegisteredException, __BaseException>);
383
+ }
384
+ /**
385
+ * <p>You can't invite an existing account to your organization until you verify that you
386
+ * own the email address associated with the management account. For more information, see
387
+ * <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_create.html#about-email-verification">Email address
388
+ * verification</a> in the <i>Organizations User Guide</i>.</p>
389
+ * @public
390
+ */
391
+ export declare class AccountOwnerNotVerifiedException extends __BaseException {
392
+ readonly name: "AccountOwnerNotVerifiedException";
393
+ readonly $fault: "client";
394
+ Message?: string | undefined;
395
+ /**
396
+ * @internal
397
+ */
398
+ constructor(opts: __ExceptionOptionType<AccountOwnerNotVerifiedException, __BaseException>);
399
+ }
400
+ /**
401
+ * <p>This account is already a member of an organization. An account can belong to only one
402
+ * organization at a time.</p>
403
+ * @public
404
+ */
405
+ export declare class AlreadyInOrganizationException extends __BaseException {
406
+ readonly name: "AlreadyInOrganizationException";
407
+ readonly $fault: "client";
408
+ Message?: string | undefined;
409
+ /**
410
+ * @internal
411
+ */
412
+ constructor(opts: __ExceptionOptionType<AlreadyInOrganizationException, __BaseException>);
413
+ }
414
+ /**
415
+ * <p>Performing this operation violates a minimum or maximum value limit. For example,
416
+ * attempting to remove the last service control policy (SCP) from an OU or root, inviting
417
+ * or creating too many accounts to the organization, or attaching too many policies to an
418
+ * account, OU, or root. This exception includes a reason that contains additional
419
+ * information about the violated limit:</p>
420
+ * <note>
421
+ * <p>Some of the reasons in the following list might not be applicable to this specific
422
+ * API or operation.</p>
423
+ * </note>
424
+ * <ul>
425
+ * <li>
426
+ * <p>ACCOUNT_CANNOT_LEAVE_ORGANIZATION: You attempted to remove the management
427
+ * account from the organization. You can't remove the management account. Instead,
428
+ * after you remove all member accounts, delete the organization itself.</p>
429
+ * </li>
430
+ * <li>
431
+ * <p>ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove an
432
+ * account from the organization that doesn't yet have enough information to exist
433
+ * as a standalone account. This account requires you to first complete phone
434
+ * verification. Follow the steps at <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#orgs_manage_accounts_remove-from-master">Removing a member account from your organization</a> in the
435
+ * <i>Organizations User Guide</i>.</p>
436
+ * </li>
437
+ * <li>
438
+ * <p>ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
439
+ * accounts that you can create in one day.</p>
440
+ * </li>
441
+ * <li>
442
+ * <p>ACCOUNT_CREATION_NOT_COMPLETE: Your account setup isn't complete or your
443
+ * account isn't fully active. You must complete the account setup before you
444
+ * create an organization.</p>
445
+ * </li>
446
+ * <li>
447
+ * <p>ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number
448
+ * of accounts in an organization. If you need more accounts, contact <a href="https://console.aws.amazon.com/support/home#/">Amazon Web Services Support</a> to
449
+ * request an increase in your limit. </p>
450
+ * <p>Or the number of invitations that you tried to send would cause you to exceed
451
+ * the limit of accounts in your organization. Send fewer invitations or contact
452
+ * Amazon Web Services Support to request an increase in the number of accounts.</p>
453
+ * <note>
454
+ * <p>Deleted and closed accounts still count toward your limit.</p>
455
+ * </note>
456
+ * <important>
457
+ * <p>If you get this exception when running a command immediately after
458
+ * creating the organization, wait one hour and try again. After an hour, if
459
+ * the command continues to fail with this error, contact <a href="https://console.aws.amazon.com/support/home#/">Amazon Web Services Support</a>.</p>
460
+ * </important>
461
+ * </li>
462
+ * <li>
463
+ * <p>ALL_FEATURES_MIGRATION_ORGANIZATION_SIZE_LIMIT_EXCEEDED: Your organization has
464
+ * more than 5000 accounts, and you can only use the standard migration process for
465
+ * organizations with less than 5000 accounts. Use the assisted migration process
466
+ * to enable all features mode, or create a support case for assistance if you are
467
+ * unable to use assisted migration.</p>
468
+ * </li>
469
+ * <li>
470
+ * <p>CANNOT_REGISTER_SUSPENDED_ACCOUNT_AS_DELEGATED_ADMINISTRATOR: You cannot
471
+ * register a suspended account as a delegated administrator.</p>
472
+ * </li>
473
+ * <li>
474
+ * <p>CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You attempted to register
475
+ * the management account of the organization as a delegated administrator for an
476
+ * Amazon Web Services service integrated with Organizations. You can designate only a member account as a
477
+ * delegated administrator.</p>
478
+ * </li>
479
+ * <li>
480
+ * <p>CANNOT_CLOSE_MANAGEMENT_ACCOUNT: You attempted to close the management
481
+ * account. To close the management account for the organization, you must first
482
+ * either remove or close all member accounts in the organization. Follow standard
483
+ * account closure process using root credentials.​ </p>
484
+ * </li>
485
+ * <li>
486
+ * <p>CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: You attempted to remove an
487
+ * account that is registered as a delegated administrator for a service integrated
488
+ * with your organization. To complete this operation, you must first deregister
489
+ * this account as a delegated administrator. </p>
490
+ * </li>
491
+ * <li>
492
+ * <p>CLOSE_ACCOUNT_QUOTA_EXCEEDED: You have exceeded close account quota for the
493
+ * past 30 days. </p>
494
+ * </li>
495
+ * <li>
496
+ * <p>CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED: You attempted to exceed the number of
497
+ * accounts that you can close at a time. ​ </p>
498
+ * </li>
499
+ * <li>
500
+ * <p>CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION: To create an
501
+ * organization in the specified region, you must enable all features mode.</p>
502
+ * </li>
503
+ * <li>
504
+ * <p>DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: You attempted to register an
505
+ * Amazon Web Services account as a delegated administrator for an Amazon Web Services service that already has
506
+ * a delegated administrator. To complete this operation, you must first deregister
507
+ * any existing delegated administrators for this service.</p>
508
+ * </li>
509
+ * <li>
510
+ * <p>EMAIL_VERIFICATION_CODE_EXPIRED: The email verification code is only valid for
511
+ * a limited period of time. You must resubmit the request and generate a new
512
+ * verfication code.</p>
513
+ * </li>
514
+ * <li>
515
+ * <p>HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
516
+ * handshakes that you can send in one day.</p>
517
+ * </li>
518
+ * <li>
519
+ * <p>INVALID_PAYMENT_INSTRUMENT: You cannot remove an account because no supported
520
+ * payment method is associated with the account. Amazon Web Services does not support cards
521
+ * issued by financial institutions in Russia or Belarus. For more information, see
522
+ * <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-general.html">Managing your
523
+ * Amazon Web Services payments</a>.</p>
524
+ * </li>
525
+ * <li>
526
+ * <p>MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account in
527
+ * this organization, you first must migrate the organization's management account
528
+ * to the marketplace that corresponds to the management account's address. All
529
+ * accounts in an organization must be associated with the same marketplace.</p>
530
+ * </li>
531
+ * <li>
532
+ * <p>MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE: Applies only to the Amazon Web Services Regions in
533
+ * China. To create an organization, the master must have a valid business license.
534
+ * For more information, contact customer support.</p>
535
+ * </li>
536
+ * <li>
537
+ * <p>MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you must
538
+ * first provide a valid contact address and phone number for the management
539
+ * account. Then try the operation again.</p>
540
+ * </li>
541
+ * <li>
542
+ * <p>MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the
543
+ * management account must have an associated account in the Amazon Web Services GovCloud
544
+ * (US-West) Region. For more information, see <a href="https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html">Organizations</a>
545
+ * in the
546
+ * <i>Amazon Web Services GovCloud User Guide</i>.</p>
547
+ * </li>
548
+ * <li>
549
+ * <p>MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization with
550
+ * this management account, you first must associate a valid payment instrument,
551
+ * such as a credit card, with the account. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_account-before-remove.html">Considerations before removing an account from an organization</a> in
552
+ * the <i>Organizations User Guide</i>.</p>
553
+ * </li>
554
+ * <li>
555
+ * <p>MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted to
556
+ * register more delegated administrators than allowed for the service principal.
557
+ * </p>
558
+ * </li>
559
+ * <li>
560
+ * <p>MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the number
561
+ * of policies of a certain type that can be attached to an entity at one
562
+ * time.</p>
563
+ * </li>
564
+ * <li>
565
+ * <p>MAX_TAG_LIMIT_EXCEEDED: You have exceeded the number of tags allowed on this
566
+ * resource. </p>
567
+ * </li>
568
+ * <li>
569
+ * <p>MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation with
570
+ * this member account, you first must associate a valid payment instrument, such
571
+ * as a credit card, with the account. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_account-before-remove.html">Considerations before removing an account from an organization</a> in
572
+ * the <i>Organizations User Guide</i>.</p>
573
+ * </li>
574
+ * <li>
575
+ * <p>MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a policy
576
+ * from an entity that would cause the entity to have fewer than the minimum number
577
+ * of policies of a certain type required.</p>
578
+ * </li>
579
+ * <li>
580
+ * <p>ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation
581
+ * that requires the organization to be configured to support all features. An
582
+ * organization that supports only consolidated billing features can't perform this
583
+ * operation.</p>
584
+ * </li>
585
+ * <li>
586
+ * <p>OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is too many
587
+ * levels deep.</p>
588
+ * </li>
589
+ * <li>
590
+ * <p>OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs that you
591
+ * can have in an organization.</p>
592
+ * </li>
593
+ * <li>
594
+ * <p>POLICY_CONTENT_LIMIT_EXCEEDED: You attempted to create a policy that is larger
595
+ * than the maximum size.</p>
596
+ * </li>
597
+ * <li>
598
+ * <p>POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of policies
599
+ * that you can have in an organization.</p>
600
+ * </li>
601
+ * <li>
602
+ * <p>POLICY_TYPE_ENABLED_FOR_THIS_SERVICE: You attempted to disable service access
603
+ * before you disabled the policy type (for example, SECURITYHUB_POLICY). To
604
+ * complete this operation, you must first disable the policy type.</p>
605
+ * </li>
606
+ * <li>
607
+ * <p>SERVICE_ACCESS_NOT_ENABLED:</p>
608
+ * <ul>
609
+ * <li>
610
+ * <p>You attempted to register a delegated administrator before you enabled
611
+ * service access. Call the <code>EnableAWSServiceAccess</code> API
612
+ * first.</p>
613
+ * </li>
614
+ * <li>
615
+ * <p>You attempted to enable a policy type before you enabled service
616
+ * access. Call the <code>EnableAWSServiceAccess</code> API first.</p>
617
+ * </li>
618
+ * </ul>
619
+ * </li>
620
+ * <li>
621
+ * <p>TAG_POLICY_VIOLATION: You attempted to create or update a resource with tags
622
+ * that are not compliant with the tag policy requirements for this account.</p>
623
+ * </li>
624
+ * <li>
625
+ * <p>WAIT_PERIOD_ACTIVE: After you create an Amazon Web Services account, you must wait until at
626
+ * least four days after the account was created. Invited accounts aren't subject
627
+ * to this waiting period.</p>
628
+ * </li>
629
+ * </ul>
630
+ * @public
631
+ */
632
+ export declare class ConstraintViolationException extends __BaseException {
633
+ readonly name: "ConstraintViolationException";
634
+ readonly $fault: "client";
635
+ Message?: string | undefined;
636
+ Reason?: ConstraintViolationExceptionReason | undefined;
637
+ /**
638
+ * @internal
639
+ */
640
+ constructor(opts: __ExceptionOptionType<ConstraintViolationException, __BaseException>);
641
+ }
642
+ /**
643
+ * <p>The selected policy is already attached to the specified target.</p>
644
+ * @public
645
+ */
646
+ export declare class DuplicatePolicyAttachmentException extends __BaseException {
647
+ readonly name: "DuplicatePolicyAttachmentException";
648
+ readonly $fault: "client";
649
+ Message?: string | undefined;
650
+ /**
651
+ * @internal
652
+ */
653
+ constructor(opts: __ExceptionOptionType<DuplicatePolicyAttachmentException, __BaseException>);
654
+ }
655
+ /**
656
+ * <p>Changes to the effective policy are in progress, and its contents can't be returned.
657
+ * Try the operation again later. </p>
658
+ * @public
659
+ */
660
+ export declare class PolicyChangesInProgressException extends __BaseException {
661
+ readonly name: "PolicyChangesInProgressException";
662
+ readonly $fault: "client";
663
+ Message?: string | undefined;
664
+ /**
665
+ * @internal
666
+ */
667
+ constructor(opts: __ExceptionOptionType<PolicyChangesInProgressException, __BaseException>);
668
+ }
669
+ /**
670
+ * <p>We can't find a policy with the <code>PolicyId</code> that you specified.</p>
671
+ * @public
672
+ */
673
+ export declare class PolicyNotFoundException extends __BaseException {
674
+ readonly name: "PolicyNotFoundException";
675
+ readonly $fault: "client";
676
+ Message?: string | undefined;
677
+ /**
678
+ * @internal
679
+ */
680
+ constructor(opts: __ExceptionOptionType<PolicyNotFoundException, __BaseException>);
681
+ }
682
+ /**
683
+ * <p>The specified policy type isn't currently enabled in this root. You can't attach
684
+ * policies of the specified type to entities in a root until you enable that type in the
685
+ * root. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">Enabling all features
686
+ * in your organization</a> in the <i>Organizations User Guide</i>.</p>
687
+ * @public
688
+ */
689
+ export declare class PolicyTypeNotEnabledException extends __BaseException {
690
+ readonly name: "PolicyTypeNotEnabledException";
691
+ readonly $fault: "client";
692
+ Message?: string | undefined;
693
+ /**
694
+ * @internal
695
+ */
696
+ constructor(opts: __ExceptionOptionType<PolicyTypeNotEnabledException, __BaseException>);
697
+ }
698
+ /**
699
+ * <p>We can't find a root, OU, account, or policy with the <code>TargetId</code> that you
700
+ * specified.</p>
701
+ * @public
702
+ */
703
+ export declare class TargetNotFoundException extends __BaseException {
704
+ readonly name: "TargetNotFoundException";
705
+ readonly $fault: "client";
706
+ Message?: string | undefined;
707
+ /**
708
+ * @internal
709
+ */
710
+ constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
711
+ }
712
+ /**
713
+ * <p>This action isn't available in the current Amazon Web Services Region.</p>
714
+ * @public
715
+ */
716
+ export declare class UnsupportedAPIEndpointException extends __BaseException {
717
+ readonly name: "UnsupportedAPIEndpointException";
718
+ readonly $fault: "client";
719
+ Message?: string | undefined;
720
+ /**
721
+ * @internal
722
+ */
723
+ constructor(opts: __ExceptionOptionType<UnsupportedAPIEndpointException, __BaseException>);
724
+ }
725
+ /**
726
+ * <p>The request failed because it conflicts with the current state of the specified
727
+ * resource.</p>
728
+ * @public
729
+ */
730
+ export declare class ConflictException extends __BaseException {
731
+ readonly name: "ConflictException";
732
+ readonly $fault: "client";
733
+ Message?: string | undefined;
734
+ /**
735
+ * @internal
736
+ */
737
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
738
+ }
739
+ /**
740
+ * <p>Organizations couldn't perform the operation because your organization hasn't finished
741
+ * initializing. This can take up to an hour. Try again later. If after one hour you
742
+ * continue to receive this error, contact <a href="https://console.aws.amazon.com/support/home#/">Amazon Web Services Support</a>.</p>
743
+ * @public
744
+ */
745
+ export declare class FinalizingOrganizationException extends __BaseException {
746
+ readonly name: "FinalizingOrganizationException";
747
+ readonly $fault: "client";
748
+ Message?: string | undefined;
749
+ /**
750
+ * @internal
751
+ */
752
+ constructor(opts: __ExceptionOptionType<FinalizingOrganizationException, __BaseException>);
753
+ }
754
+ /**
755
+ * <p>An OU with the same name already exists.</p>
756
+ * @public
757
+ */
758
+ export declare class DuplicateOrganizationalUnitException extends __BaseException {
759
+ readonly name: "DuplicateOrganizationalUnitException";
760
+ readonly $fault: "client";
761
+ Message?: string | undefined;
762
+ /**
763
+ * @internal
764
+ */
765
+ constructor(opts: __ExceptionOptionType<DuplicateOrganizationalUnitException, __BaseException>);
766
+ }
767
+ /**
768
+ * <p>We can't find a root or OU with the <code>ParentId</code> that you specified.</p>
769
+ * @public
770
+ */
771
+ export declare class ParentNotFoundException extends __BaseException {
772
+ readonly name: "ParentNotFoundException";
773
+ readonly $fault: "client";
774
+ Message?: string | undefined;
775
+ /**
776
+ * @internal
777
+ */
778
+ constructor(opts: __ExceptionOptionType<ParentNotFoundException, __BaseException>);
779
+ }
780
+ /**
781
+ * <p>A policy with the same name already exists.</p>
782
+ * @public
783
+ */
784
+ export declare class DuplicatePolicyException extends __BaseException {
785
+ readonly name: "DuplicatePolicyException";
786
+ readonly $fault: "client";
787
+ Message?: string | undefined;
788
+ /**
789
+ * @internal
790
+ */
791
+ constructor(opts: __ExceptionOptionType<DuplicatePolicyException, __BaseException>);
792
+ }
793
+ /**
794
+ * <p>The provided policy document doesn't meet the requirements of the specified policy
795
+ * type. For example, the syntax might be incorrect. For details about service control
796
+ * policy syntax, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_syntax.html">SCP syntax</a> in the
797
+ * <i>Organizations User Guide</i>.</p>
798
+ * @public
799
+ */
800
+ export declare class MalformedPolicyDocumentException extends __BaseException {
801
+ readonly name: "MalformedPolicyDocumentException";
802
+ readonly $fault: "client";
803
+ Message?: string | undefined;
804
+ /**
805
+ * @internal
806
+ */
807
+ constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
808
+ }
809
+ /**
810
+ * <p>You can't use the specified policy type with the feature set currently enabled for
811
+ * this organization. For example, you can enable SCPs only after you enable all features
812
+ * in the organization. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html#enable_policies_on_root">Managing
813
+ * Organizations policies</a>in the <i>Organizations User Guide</i>.</p>
814
+ * @public
815
+ */
816
+ export declare class PolicyTypeNotAvailableForOrganizationException extends __BaseException {
817
+ readonly name: "PolicyTypeNotAvailableForOrganizationException";
818
+ readonly $fault: "client";
819
+ Message?: string | undefined;
820
+ /**
821
+ * @internal
822
+ */
823
+ constructor(opts: __ExceptionOptionType<PolicyTypeNotAvailableForOrganizationException, __BaseException>);
824
+ }
825
+ /**
826
+ * <p>The organization isn't empty. To delete an organization, you must first remove all
827
+ * accounts except the management account.</p>
828
+ * @public
829
+ */
830
+ export declare class OrganizationNotEmptyException extends __BaseException {
831
+ readonly name: "OrganizationNotEmptyException";
832
+ readonly $fault: "client";
833
+ Message?: string | undefined;
834
+ /**
835
+ * @internal
836
+ */
837
+ constructor(opts: __ExceptionOptionType<OrganizationNotEmptyException, __BaseException>);
838
+ }
839
+ /**
840
+ * <p>The specified OU is not empty. Move all accounts to another root or to other OUs,
841
+ * remove all child OUs, and try the operation again.</p>
842
+ * @public
843
+ */
844
+ export declare class OrganizationalUnitNotEmptyException extends __BaseException {
845
+ readonly name: "OrganizationalUnitNotEmptyException";
846
+ readonly $fault: "client";
847
+ Message?: string | undefined;
848
+ /**
849
+ * @internal
850
+ */
851
+ constructor(opts: __ExceptionOptionType<OrganizationalUnitNotEmptyException, __BaseException>);
852
+ }
853
+ /**
854
+ * <p>We can't find an OU with the <code>OrganizationalUnitId</code> that you
855
+ * specified.</p>
856
+ * @public
857
+ */
858
+ export declare class OrganizationalUnitNotFoundException extends __BaseException {
859
+ readonly name: "OrganizationalUnitNotFoundException";
860
+ readonly $fault: "client";
861
+ Message?: string | undefined;
862
+ /**
863
+ * @internal
864
+ */
865
+ constructor(opts: __ExceptionOptionType<OrganizationalUnitNotFoundException, __BaseException>);
866
+ }
867
+ /**
868
+ * <p>The policy is attached to one or more entities. You must detach it from all roots,
869
+ * OUs, and accounts before performing this operation.</p>
870
+ * @public
871
+ */
872
+ export declare class PolicyInUseException extends __BaseException {
873
+ readonly name: "PolicyInUseException";
874
+ readonly $fault: "client";
875
+ Message?: string | undefined;
876
+ /**
877
+ * @internal
878
+ */
879
+ constructor(opts: __ExceptionOptionType<PolicyInUseException, __BaseException>);
880
+ }
881
+ /**
882
+ * <p>We can't find a resource policy request with the parameter that you specified.</p>
883
+ * @public
884
+ */
885
+ export declare class ResourcePolicyNotFoundException extends __BaseException {
886
+ readonly name: "ResourcePolicyNotFoundException";
887
+ readonly $fault: "client";
888
+ Message?: string | undefined;
889
+ /**
890
+ * @internal
891
+ */
892
+ constructor(opts: __ExceptionOptionType<ResourcePolicyNotFoundException, __BaseException>);
893
+ }
894
+ /**
895
+ * <p>We can't find an create account request with the <code>CreateAccountRequestId</code>
896
+ * that you specified.</p>
897
+ * @public
898
+ */
899
+ export declare class CreateAccountStatusNotFoundException extends __BaseException {
900
+ readonly name: "CreateAccountStatusNotFoundException";
901
+ readonly $fault: "client";
902
+ Message?: string | undefined;
903
+ /**
904
+ * @internal
905
+ */
906
+ constructor(opts: __ExceptionOptionType<CreateAccountStatusNotFoundException, __BaseException>);
907
+ }
908
+ /**
909
+ * <p>If you ran this action on the management account, this policy type is not enabled. If
910
+ * you ran the action on a member account, the account doesn't have an effective policy of
911
+ * this type. Contact the administrator of your organization about attaching a policy of
912
+ * this type to the account. </p>
913
+ * @public
914
+ */
915
+ export declare class EffectivePolicyNotFoundException extends __BaseException {
916
+ readonly name: "EffectivePolicyNotFoundException";
917
+ readonly $fault: "client";
918
+ Message?: string | undefined;
919
+ /**
920
+ * @internal
921
+ */
922
+ constructor(opts: __ExceptionOptionType<EffectivePolicyNotFoundException, __BaseException>);
923
+ }
924
+ /**
925
+ * <p>The policy isn't attached to the specified target in the specified root.</p>
926
+ * @public
927
+ */
928
+ export declare class PolicyNotAttachedException extends __BaseException {
929
+ readonly name: "PolicyNotAttachedException";
930
+ readonly $fault: "client";
931
+ Message?: string | undefined;
932
+ /**
933
+ * @internal
934
+ */
935
+ constructor(opts: __ExceptionOptionType<PolicyNotAttachedException, __BaseException>);
936
+ }
937
+ /**
938
+ * <p>We can't find a root with the <code>RootId</code> that you specified.</p>
939
+ * @public
940
+ */
941
+ export declare class RootNotFoundException extends __BaseException {
942
+ readonly name: "RootNotFoundException";
943
+ readonly $fault: "client";
944
+ Message?: string | undefined;
945
+ /**
946
+ * @internal
947
+ */
948
+ constructor(opts: __ExceptionOptionType<RootNotFoundException, __BaseException>);
949
+ }
950
+ /**
951
+ * <p>The specified policy type is already enabled in the specified root.</p>
952
+ * @public
953
+ */
954
+ export declare class PolicyTypeAlreadyEnabledException extends __BaseException {
955
+ readonly name: "PolicyTypeAlreadyEnabledException";
956
+ readonly $fault: "client";
957
+ Message?: string | undefined;
958
+ /**
959
+ * @internal
960
+ */
961
+ constructor(opts: __ExceptionOptionType<PolicyTypeAlreadyEnabledException, __BaseException>);
962
+ }
963
+ /**
964
+ * <p>A handshake with the same action and target already exists. For example, if you
965
+ * invited an account to join your organization, the invited account might already have a
966
+ * pending invitation from this organization. If you intend to resend an invitation to an
967
+ * account, ensure that existing handshakes that might be considered duplicates are
968
+ * canceled or declined.</p>
969
+ * @public
970
+ */
971
+ export declare class DuplicateHandshakeException extends __BaseException {
972
+ readonly name: "DuplicateHandshakeException";
973
+ readonly $fault: "client";
974
+ Message?: string | undefined;
975
+ /**
976
+ * @internal
977
+ */
978
+ constructor(opts: __ExceptionOptionType<DuplicateHandshakeException, __BaseException>);
979
+ }
980
+ /**
981
+ * <p>You can't remove a management account from an organization. If you want the management
982
+ * account to become a member account in another organization, you must first delete the
983
+ * current organization of the management account.</p>
984
+ * @public
985
+ */
986
+ export declare class MasterCannotLeaveOrganizationException extends __BaseException {
987
+ readonly name: "MasterCannotLeaveOrganizationException";
988
+ readonly $fault: "client";
989
+ Message?: string | undefined;
990
+ /**
991
+ * @internal
992
+ */
993
+ constructor(opts: __ExceptionOptionType<MasterCannotLeaveOrganizationException, __BaseException>);
994
+ }
995
+ /**
996
+ * <p>We can't find an organizational unit (OU) or Amazon Web Services account with the
997
+ * <code>ChildId</code> that you specified.</p>
998
+ * @public
999
+ */
1000
+ export declare class ChildNotFoundException extends __BaseException {
1001
+ readonly name: "ChildNotFoundException";
1002
+ readonly $fault: "client";
1003
+ Message?: string | undefined;
1004
+ /**
1005
+ * @internal
1006
+ */
1007
+ constructor(opts: __ExceptionOptionType<ChildNotFoundException, __BaseException>);
1008
+ }
1009
+ /**
1010
+ * <p>We can't find the destination container (a root or OU) with the <code>ParentId</code>
1011
+ * that you specified.</p>
1012
+ * @public
1013
+ */
1014
+ export declare class DestinationParentNotFoundException extends __BaseException {
1015
+ readonly name: "DestinationParentNotFoundException";
1016
+ readonly $fault: "client";
1017
+ Message?: string | undefined;
1018
+ /**
1019
+ * @internal
1020
+ */
1021
+ constructor(opts: __ExceptionOptionType<DestinationParentNotFoundException, __BaseException>);
1022
+ }
1023
+ /**
1024
+ * <p>That account is already present in the specified destination.</p>
1025
+ * @public
1026
+ */
1027
+ export declare class DuplicateAccountException extends __BaseException {
1028
+ readonly name: "DuplicateAccountException";
1029
+ readonly $fault: "client";
1030
+ Message?: string | undefined;
1031
+ /**
1032
+ * @internal
1033
+ */
1034
+ constructor(opts: __ExceptionOptionType<DuplicateAccountException, __BaseException>);
1035
+ }
1036
+ /**
1037
+ * <p>We can't find a source root or OU with the <code>ParentId</code> that you
1038
+ * specified.</p>
1039
+ * @public
1040
+ */
1041
+ export declare class SourceParentNotFoundException extends __BaseException {
1042
+ readonly name: "SourceParentNotFoundException";
1043
+ readonly $fault: "client";
1044
+ Message?: string | undefined;
1045
+ /**
1046
+ * @internal
1047
+ */
1048
+ constructor(opts: __ExceptionOptionType<SourceParentNotFoundException, __BaseException>);
1049
+ }