@aws-sdk/client-organizations 3.289.0 → 3.290.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 (56) hide show
  1. package/dist-types/commands/AcceptHandshakeCommand.d.ts +208 -0
  2. package/dist-types/commands/AttachPolicyCommand.d.ts +352 -0
  3. package/dist-types/commands/CancelHandshakeCommand.d.ts +139 -0
  4. package/dist-types/commands/CloseAccountCommand.d.ts +343 -0
  5. package/dist-types/commands/CreateAccountCommand.d.ts +336 -0
  6. package/dist-types/commands/CreateGovCloudAccountCommand.d.ts +336 -0
  7. package/dist-types/commands/CreateOrganizationCommand.d.ts +334 -0
  8. package/dist-types/commands/CreateOrganizationalUnitCommand.d.ts +334 -0
  9. package/dist-types/commands/CreatePolicyCommand.d.ts +348 -0
  10. package/dist-types/commands/DeclineHandshakeCommand.d.ts +139 -0
  11. package/dist-types/commands/DeleteOrganizationCommand.d.ts +135 -0
  12. package/dist-types/commands/DeleteOrganizationalUnitCommand.d.ts +139 -0
  13. package/dist-types/commands/DeletePolicyCommand.d.ts +141 -0
  14. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +230 -0
  15. package/dist-types/commands/DeregisterDelegatedAdministratorCommand.d.ts +339 -0
  16. package/dist-types/commands/DescribeAccountCommand.d.ts +132 -0
  17. package/dist-types/commands/DescribeCreateAccountStatusCommand.d.ts +134 -0
  18. package/dist-types/commands/DescribeEffectivePolicyCommand.d.ts +337 -0
  19. package/dist-types/commands/DescribeHandshakeCommand.d.ts +130 -0
  20. package/dist-types/commands/DescribeOrganizationCommand.d.ts +27 -0
  21. package/dist-types/commands/DescribeOrganizationalUnitCommand.d.ts +131 -0
  22. package/dist-types/commands/DescribePolicyCommand.d.ts +133 -0
  23. package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +226 -0
  24. package/dist-types/commands/DetachPolicyCommand.d.ts +345 -0
  25. package/dist-types/commands/DisableAWSServiceAccessCommand.d.ts +331 -0
  26. package/dist-types/commands/DisablePolicyTypeCommand.d.ts +345 -0
  27. package/dist-types/commands/EnableAWSServiceAccessCommand.d.ts +331 -0
  28. package/dist-types/commands/EnableAllFeaturesCommand.d.ts +190 -0
  29. package/dist-types/commands/EnablePolicyTypeCommand.d.ts +348 -0
  30. package/dist-types/commands/InviteAccountToOrganizationCommand.d.ts +406 -0
  31. package/dist-types/commands/LeaveOrganizationCommand.d.ts +338 -0
  32. package/dist-types/commands/ListAWSServiceAccessForOrganizationCommand.d.ts +327 -0
  33. package/dist-types/commands/ListAccountsCommand.d.ts +127 -0
  34. package/dist-types/commands/ListAccountsForParentCommand.d.ts +130 -0
  35. package/dist-types/commands/ListChildrenCommand.d.ts +130 -0
  36. package/dist-types/commands/ListCreateAccountStatusCommand.d.ts +130 -0
  37. package/dist-types/commands/ListDelegatedAdministratorsCommand.d.ts +327 -0
  38. package/dist-types/commands/ListDelegatedServicesForAccountCommand.d.ts +335 -0
  39. package/dist-types/commands/ListHandshakesForAccountCommand.d.ts +127 -0
  40. package/dist-types/commands/ListHandshakesForOrganizationCommand.d.ts +131 -0
  41. package/dist-types/commands/ListOrganizationalUnitsForParentCommand.d.ts +130 -0
  42. package/dist-types/commands/ListParentsCommand.d.ts +131 -0
  43. package/dist-types/commands/ListPoliciesCommand.d.ts +130 -0
  44. package/dist-types/commands/ListPoliciesForTargetCommand.d.ts +134 -0
  45. package/dist-types/commands/ListRootsCommand.d.ts +127 -0
  46. package/dist-types/commands/ListTagsForResourceCommand.d.ts +131 -0
  47. package/dist-types/commands/ListTargetsForPolicyCommand.d.ts +133 -0
  48. package/dist-types/commands/MoveAccountCommand.d.ts +147 -0
  49. package/dist-types/commands/PutResourcePolicyCommand.d.ts +331 -0
  50. package/dist-types/commands/RegisterDelegatedAdministratorCommand.d.ts +340 -0
  51. package/dist-types/commands/RemoveAccountFromOrganizationCommand.d.ts +338 -0
  52. package/dist-types/commands/TagResourceCommand.d.ts +332 -0
  53. package/dist-types/commands/UntagResourceCommand.d.ts +332 -0
  54. package/dist-types/commands/UpdateOrganizationalUnitCommand.d.ts +138 -0
  55. package/dist-types/commands/UpdatePolicyCommand.d.ts +348 -0
  56. package/package.json +29 -29
@@ -92,6 +92,344 @@ export interface LeaveOrganizationCommandOutput extends __MetadataBearer {
92
92
  * @see {@link LeaveOrganizationCommandOutput} for command's `response` shape.
93
93
  * @see {@link OrganizationsClientResolvedConfig | config} for OrganizationsClient's `config` shape.
94
94
  *
95
+ * @throws {@link AccessDeniedException} (client fault)
96
+ * <p>You don't have permissions to perform the requested operation. The user or role that
97
+ * is making the request must have at least one IAM permissions policy attached that
98
+ * 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
99
+ * <i>IAM User Guide.</i>
100
+ * </p>
101
+ *
102
+ * @throws {@link AccountNotFoundException} (client fault)
103
+ * <p> We can't find an Amazon Web Services account with the <code>AccountId</code> that you specified, or
104
+ * the account whose credentials you used to make this request isn't a member of an
105
+ * organization.</p>
106
+ *
107
+ * @throws {@link AWSOrganizationsNotInUseException} (client fault)
108
+ * <p>Your account isn't a member of an organization. To make this request, you must use the
109
+ * credentials of an account that belongs to an organization.</p>
110
+ *
111
+ * @throws {@link ConcurrentModificationException} (client fault)
112
+ * <p>The target of the operation is currently being modified by a different request. Try
113
+ * again later.</p>
114
+ *
115
+ * @throws {@link ConstraintViolationException} (client fault)
116
+ * <p>Performing this operation violates a minimum or maximum value limit. For example,
117
+ * attempting to remove the last service control policy (SCP) from an OU or root, inviting
118
+ * or creating too many accounts to the organization, or attaching too many policies to an
119
+ * account, OU, or root. This exception includes a reason that contains additional
120
+ * information about the violated limit:</p>
121
+ * <note>
122
+ * <p>Some of the reasons in the following list might not be applicable to this specific
123
+ * API or operation.</p>
124
+ * </note>
125
+ * <ul>
126
+ * <li>
127
+ * <p>ACCOUNT_CANNOT_LEAVE_ORGANIZATION: You attempted to remove the management
128
+ * account from the organization. You can't remove the management account. Instead,
129
+ * after you remove all member accounts, delete the organization itself.</p>
130
+ * </li>
131
+ * <li>
132
+ * <p>ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove an
133
+ * account from the organization that doesn't yet have enough information to exist
134
+ * as a standalone account. This account requires you to first complete phone
135
+ * 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
136
+ * <i>Organizations User Guide.</i>
137
+ * </p>
138
+ * </li>
139
+ * <li>
140
+ * <p>ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
141
+ * accounts that you can create in one day.</p>
142
+ * </li>
143
+ * <li>
144
+ * <p>ACCOUNT_CREATION_NOT_COMPLETE: Your account setup isn't complete or your account isn't fully active. You must complete the account setup before you create an organization.</p>
145
+ * </li>
146
+ * <li>
147
+ * <p>ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number
148
+ * of accounts in an organization. If you need more accounts, contact <a href="https://docs.aws.amazon.com/support/home#/">Amazon Web Services Support</a> to
149
+ * request an increase in your limit. </p>
150
+ * <p>Or the number of invitations that you tried to send would cause you to exceed
151
+ * the limit of accounts in your organization. Send fewer invitations or contact
152
+ * Amazon Web Services Support to request an increase in the number of accounts.</p>
153
+ * <note>
154
+ * <p>Deleted and closed accounts still count toward your limit.</p>
155
+ * </note>
156
+ * <important>
157
+ * <p>If you get this exception when running a command immediately after
158
+ * creating the organization, wait one hour and try again. After an hour, if
159
+ * the command continues to fail with this error, contact <a href="https://docs.aws.amazon.com/support/home#/">Amazon Web Services
160
+ * Support</a>.</p>
161
+ * </important>
162
+ * </li>
163
+ * <li>
164
+ * <p>CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You attempted to register
165
+ * the management account of the organization as a delegated administrator for an
166
+ * Amazon Web Services service integrated with Organizations. You can designate only a member account as a
167
+ * delegated administrator.</p>
168
+ * </li>
169
+ * <li>
170
+ * <p>CANNOT_CLOSE_MANAGEMENT_ACCOUNT: You attempted to close the management
171
+ * account. To close the management account for the organization, you must first
172
+ * either remove or close all member accounts in the organization. Follow standard
173
+ * account closure process using root credentials.​ </p>
174
+ * </li>
175
+ * <li>
176
+ * <p>CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: You attempted to remove an
177
+ * account that is registered as a delegated administrator for a service integrated
178
+ * with your organization. To complete this operation, you must first deregister
179
+ * this account as a delegated administrator. </p>
180
+ * </li>
181
+ * <li>
182
+ * <p>CLOSE_ACCOUNT_QUOTA_EXCEEDED: You have exceeded close account quota for the
183
+ * past 30 days. </p>
184
+ * </li>
185
+ * <li>
186
+ * <p>CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED: You attempted to exceed the number of
187
+ * accounts that you can close at a time. ​ </p>
188
+ * </li>
189
+ * <li>
190
+ * <p>CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION: To create an
191
+ * organization in the specified region, you must enable all features mode.</p>
192
+ * </li>
193
+ * <li>
194
+ * <p>DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: You attempted to register an
195
+ * Amazon Web Services account as a delegated administrator for an Amazon Web Services service that already has
196
+ * a delegated administrator. To complete this operation, you must first deregister
197
+ * any existing delegated administrators for this service.</p>
198
+ * </li>
199
+ * <li>
200
+ * <p>EMAIL_VERIFICATION_CODE_EXPIRED: The email verification code is only valid for
201
+ * a limited period of time. You must resubmit the request and generate a new
202
+ * verfication code.</p>
203
+ * </li>
204
+ * <li>
205
+ * <p>HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
206
+ * handshakes that you can send in one day.</p>
207
+ * </li>
208
+ * <li>
209
+ * <p>INVALID_PAYMENT_INSTRUMENT: You cannot remove an account because no supported
210
+ * payment method is associated with the account. Amazon Web Services does not support cards
211
+ * issued by financial institutions in Russia or Belarus. For more information, see
212
+ * <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-general.html">Managing your
213
+ * Amazon Web Services payments</a>.</p>
214
+ * </li>
215
+ * <li>
216
+ * <p>MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account in
217
+ * this organization, you first must migrate the organization's management account
218
+ * to the marketplace that corresponds to the management account's address. For
219
+ * example, accounts with India addresses must be associated with the AISPL
220
+ * marketplace. All accounts in an organization must be associated with the same
221
+ * marketplace.</p>
222
+ * </li>
223
+ * <li>
224
+ * <p>MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE: Applies only to the Amazon Web Services /> Regions
225
+ * in China. To create an organization, the master must have a valid business
226
+ * license. For more information, contact customer support.</p>
227
+ * </li>
228
+ * <li>
229
+ * <p>MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you must
230
+ * first provide a valid contact address and phone number for the management
231
+ * account. Then try the operation again.</p>
232
+ * </li>
233
+ * <li>
234
+ * <p>MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the
235
+ * management account must have an associated account in the Amazon Web Services GovCloud
236
+ * (US-West) Region. For more information, see <a href="https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html">Organizations</a>
237
+ * in the
238
+ * <i>Amazon Web Services GovCloud User Guide.</i>
239
+ * </p>
240
+ * </li>
241
+ * <li>
242
+ * <p>MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization with
243
+ * this management account, you first must associate a valid payment instrument,
244
+ * such as a credit card, with the account. Follow the steps at <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info">To leave an organization when all required account information has not yet
245
+ * been provided</a> in the <i>Organizations User Guide.</i>
246
+ * </p>
247
+ * </li>
248
+ * <li>
249
+ * <p>MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted to
250
+ * register more delegated administrators than allowed for the service principal.
251
+ * </p>
252
+ * </li>
253
+ * <li>
254
+ * <p>MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the number
255
+ * of policies of a certain type that can be attached to an entity at one
256
+ * time.</p>
257
+ * </li>
258
+ * <li>
259
+ * <p>MAX_TAG_LIMIT_EXCEEDED: You have exceeded the number of tags allowed on this
260
+ * resource. </p>
261
+ * </li>
262
+ * <li>
263
+ * <p>MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation with
264
+ * this member account, you first must associate a valid payment instrument, such
265
+ * as a credit card, with the account. Follow the steps at <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info">To leave an organization when all required account information has not yet
266
+ * been provided</a> in the <i>Organizations User Guide.</i>
267
+ * </p>
268
+ * </li>
269
+ * <li>
270
+ * <p>MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a policy
271
+ * from an entity that would cause the entity to have fewer than the minimum number
272
+ * of policies of a certain type required.</p>
273
+ * </li>
274
+ * <li>
275
+ * <p>ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation
276
+ * that requires the organization to be configured to support all features. An
277
+ * organization that supports only consolidated billing features can't perform this
278
+ * operation.</p>
279
+ * </li>
280
+ * <li>
281
+ * <p>OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is too many
282
+ * levels deep.</p>
283
+ * </li>
284
+ * <li>
285
+ * <p>OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs that you
286
+ * can have in an organization.</p>
287
+ * </li>
288
+ * <li>
289
+ * <p>POLICY_CONTENT_LIMIT_EXCEEDED: You attempted to create a policy that is larger
290
+ * than the maximum size.</p>
291
+ * </li>
292
+ * <li>
293
+ * <p>POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of policies
294
+ * that you can have in an organization.</p>
295
+ * </li>
296
+ * <li>
297
+ * <p>SERVICE_ACCESS_NOT_ENABLED: You attempted to register a delegated
298
+ * administrator before you enabled service access. Call the
299
+ * <code>EnableAWSServiceAccess</code> API first.</p>
300
+ * </li>
301
+ * <li>
302
+ * <p>TAG_POLICY_VIOLATION: You attempted to create or update a resource with tags
303
+ * that are not compliant with the tag policy requirements for this account.</p>
304
+ * </li>
305
+ * <li>
306
+ * <p>WAIT_PERIOD_ACTIVE: After you create an Amazon Web Services account, there is a waiting
307
+ * period before you can remove it from the organization. If you get an error that
308
+ * indicates that a wait period is required, try again in a few days.</p>
309
+ * </li>
310
+ * </ul>
311
+ *
312
+ * @throws {@link InvalidInputException} (client fault)
313
+ * <p>The requested operation failed because you provided invalid values for one or more of
314
+ * the request parameters. This exception includes a reason that contains additional
315
+ * information about the violated limit:</p>
316
+ * <note>
317
+ * <p>Some of the reasons in the following list might not be applicable to this specific
318
+ * API or operation.</p>
319
+ * </note>
320
+ * <ul>
321
+ * <li>
322
+ * <p>DUPLICATE_TAG_KEY: Tag keys must be unique among the tags attached to the same
323
+ * entity.</p>
324
+ * </li>
325
+ * <li>
326
+ * <p>IMMUTABLE_POLICY: You specified a policy that is managed by Amazon Web Services and can't be
327
+ * modified.</p>
328
+ * </li>
329
+ * <li>
330
+ * <p>INPUT_REQUIRED: You must include a value for all required parameters.</p>
331
+ * </li>
332
+ * <li>
333
+ * <p>INVALID_EMAIL_ADDRESS_TARGET: You specified an invalid email address for the
334
+ * invited account owner.</p>
335
+ * </li>
336
+ * <li>
337
+ * <p>INVALID_ENUM: You specified an invalid value.</p>
338
+ * </li>
339
+ * <li>
340
+ * <p>INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type string.</p>
341
+ * </li>
342
+ * <li>
343
+ * <p>INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
344
+ * characters.</p>
345
+ * </li>
346
+ * <li>
347
+ * <p>INVALID_LIST_MEMBER: You provided a list to a parameter that contains at least
348
+ * one invalid value.</p>
349
+ * </li>
350
+ * <li>
351
+ * <p>INVALID_PAGINATION_TOKEN: Get the value for the <code>NextToken</code>
352
+ * parameter from the response to a previous call of the operation.</p>
353
+ * </li>
354
+ * <li>
355
+ * <p>INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
356
+ * organization, or email) as a party.</p>
357
+ * </li>
358
+ * <li>
359
+ * <p>INVALID_PATTERN: You provided a value that doesn't match the required
360
+ * pattern.</p>
361
+ * </li>
362
+ * <li>
363
+ * <p>INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't match
364
+ * the required pattern.</p>
365
+ * </li>
366
+ * <li>
367
+ * <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
368
+ * can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
369
+ * </li>
370
+ * <li>
371
+ * <p>INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource Name
372
+ * (ARN) for the organization.</p>
373
+ * </li>
374
+ * <li>
375
+ * <p>INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. </p>
376
+ * </li>
377
+ * <li>
378
+ * <p>INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system tag.
379
+ * You can’t add, edit, or delete system tag keys because they're reserved for
380
+ * Amazon Web Services use. System tags don’t count against your tags per resource limit.</p>
381
+ * </li>
382
+ * <li>
383
+ * <p>MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter for the
384
+ * operation.</p>
385
+ * </li>
386
+ * <li>
387
+ * <p>MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer than
388
+ * allowed.</p>
389
+ * </li>
390
+ * <li>
391
+ * <p>MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger value
392
+ * than allowed.</p>
393
+ * </li>
394
+ * <li>
395
+ * <p>MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter than
396
+ * allowed.</p>
397
+ * </li>
398
+ * <li>
399
+ * <p>MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller value
400
+ * than allowed.</p>
401
+ * </li>
402
+ * <li>
403
+ * <p>MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only between
404
+ * entities in the same root.</p>
405
+ * </li>
406
+ * <li>
407
+ * <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
408
+ * entity.</p>
409
+ * </li>
410
+ * <li>
411
+ * <p>UNRECOGNIZED_SERVICE_PRINCIPAL: You specified a service principal that isn't
412
+ * recognized.</p>
413
+ * </li>
414
+ * </ul>
415
+ *
416
+ * @throws {@link MasterCannotLeaveOrganizationException} (client fault)
417
+ * <p>You can't remove a management account from an organization. If you want the management
418
+ * account to become a member account in another organization, you must first delete the
419
+ * current organization of the management account.</p>
420
+ *
421
+ * @throws {@link ServiceException} (server fault)
422
+ * <p>Organizations can't complete your request because of an internal service error. Try again
423
+ * later.</p>
424
+ *
425
+ * @throws {@link TooManyRequestsException} (client fault)
426
+ * <p>You have sent too many requests in too short a period of time. The quota helps protect
427
+ * against denial-of-service attacks. Try again later.</p>
428
+ * <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
429
+ * <i>Organizations User Guide.</i>
430
+ * </p>
431
+ *
432
+ *
95
433
  * @example To leave an organization as a member account
96
434
  * ```javascript
97
435
  * // TThe following example shows how to remove your member account from an organization: