You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/client-organizations/src/Organizations.ts
+47-1Lines changed: 47 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -475,7 +475,53 @@ export class Organizations extends OrganizationsClient {
475
475
}
476
476
477
477
/**
478
-
* <p>Closes an Amazon Web Services account that is now a part of an Organizations, either created within the organization, or invited to join the organization.</p>
478
+
* <p>Closes an Amazon Web Services member account within an organization. You can't close the management
479
+
* account with this API. This is an asynchronous request that Amazon Web Services performs in the
480
+
* background. Because <code>CloseAccount</code> operates asynchronously, it can return a
481
+
* successful completion message even though account closure might still be in progress.
482
+
* You need to wait a few minutes before the account is fully closed. To check the status
483
+
* of the request, do one of the following:</p>
484
+
* <ul>
485
+
* <li>
486
+
* <p>Use the <code>AccountId</code> that you sent in the <code>CloseAccount</code>
487
+
* request to provide as a parameter to the <a>DescribeAccount</a>
488
+
* operation. </p>
489
+
* <p>While the close account request is in progress, Account status will indicate
490
+
* PENDING_CLOSURE. When the close account request completes, the status will
491
+
* change to SUSPENDED. </p>
492
+
* </li>
493
+
* <li>
494
+
* <p>Check the CloudTrail log for the <code>CloseAccountResult</code> event that gets
495
+
* published after the account closes successfully. For information on using CloudTrail
496
+
* with Organizations, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_security_incident-response.html#orgs_cloudtrail-integration">Logging and monitoring in Organizations</a> in the
497
+
* <i>Organizations User Guide.</i>
498
+
* </p>
499
+
* </li>
500
+
* </ul>
501
+
* <note>
502
+
* <ul>
503
+
* <li>
504
+
* <p>You can only close 10% of active member accounts within a rolling 30 day
505
+
* period. This quota is not bound by a calendar month, but starts when you
506
+
* close an account. Within 30 days of that initial account closure, you can't
507
+
* exceed the 10% account closure limit.</p>
508
+
* </li>
509
+
* <li>
510
+
* <p>To reinstate a closed account, contact Amazon Web Services Support within the 90-day
511
+
* grace period while the account is in SUSPENDED status. </p>
512
+
* </li>
513
+
* <li>
514
+
* <p>If the Amazon Web Services account you attempt to close is linked to an Amazon Web Services GovCloud (US)
515
+
* account, the <code>CloseAccount</code> request will close both accounts. To
516
+
* learn important pre-closure details, see <a href="https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/Closing-govcloud-account.html">
517
+
* Closing an Amazon Web Services GovCloud (US) account</a> in the <i>
518
+
* Amazon Web Services GovCloud User Guide</i>.</p>
519
+
* </li>
520
+
* </ul>
521
+
* </note>
522
+
* <p>For more information about closing accounts, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_close.html">Closing an
523
+
* Amazon Web Services account</a> in the <i>Organizations User Guide.</i>
* <p>Closes an Amazon Web Services account that is now a part of an Organizations, either created within the organization, or invited to join the organization.</p>
25
+
* <p>Closes an Amazon Web Services member account within an organization. You can't close the management
26
+
* account with this API. This is an asynchronous request that Amazon Web Services performs in the
27
+
* background. Because <code>CloseAccount</code> operates asynchronously, it can return a
28
+
* successful completion message even though account closure might still be in progress.
29
+
* You need to wait a few minutes before the account is fully closed. To check the status
30
+
* of the request, do one of the following:</p>
31
+
* <ul>
32
+
* <li>
33
+
* <p>Use the <code>AccountId</code> that you sent in the <code>CloseAccount</code>
34
+
* request to provide as a parameter to the <a>DescribeAccount</a>
35
+
* operation. </p>
36
+
* <p>While the close account request is in progress, Account status will indicate
37
+
* PENDING_CLOSURE. When the close account request completes, the status will
38
+
* change to SUSPENDED. </p>
39
+
* </li>
40
+
* <li>
41
+
* <p>Check the CloudTrail log for the <code>CloseAccountResult</code> event that gets
42
+
* published after the account closes successfully. For information on using CloudTrail
43
+
* with Organizations, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_security_incident-response.html#orgs_cloudtrail-integration">Logging and monitoring in Organizations</a> in the
44
+
* <i>Organizations User Guide.</i>
45
+
* </p>
46
+
* </li>
47
+
* </ul>
48
+
* <note>
49
+
* <ul>
50
+
* <li>
51
+
* <p>You can only close 10% of active member accounts within a rolling 30 day
52
+
* period. This quota is not bound by a calendar month, but starts when you
53
+
* close an account. Within 30 days of that initial account closure, you can't
54
+
* exceed the 10% account closure limit.</p>
55
+
* </li>
56
+
* <li>
57
+
* <p>To reinstate a closed account, contact Amazon Web Services Support within the 90-day
58
+
* grace period while the account is in SUSPENDED status. </p>
59
+
* </li>
60
+
* <li>
61
+
* <p>If the Amazon Web Services account you attempt to close is linked to an Amazon Web Services GovCloud (US)
62
+
* account, the <code>CloseAccount</code> request will close both accounts. To
63
+
* learn important pre-closure details, see <a href="https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/Closing-govcloud-account.html">
64
+
* Closing an Amazon Web Services GovCloud (US) account</a> in the <i>
65
+
* Amazon Web Services GovCloud User Guide</i>.</p>
66
+
* </li>
67
+
* </ul>
68
+
* </note>
69
+
* <p>For more information about closing accounts, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_close.html">Closing an
70
+
* Amazon Web Services account</a> in the <i>Organizations User Guide.</i>
71
+
* </p>
26
72
* @example
27
73
* Use a bare-bones client and the command you need to make an API call.
0 commit comments