Skip to content

Commit

Permalink
feat(client-organizations): This release introduces a new reason code…
Browse files Browse the repository at this point in the history
…, ACCOUNT_CREATION_NOT_COMPLETE, to ConstraintViolationException in CreateOrganization API.
  • Loading branch information
awstools committed Mar 2, 2023
1 parent 855ee5f commit 5e8e5b4
Show file tree
Hide file tree
Showing 60 changed files with 2,490 additions and 1,908 deletions.
559 changes: 281 additions & 278 deletions clients/client-organizations/src/Organizations.ts

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions clients/client-organizations/src/OrganizationsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,68 +460,68 @@ export interface OrganizationsClientResolvedConfig extends OrganizationsClientRe
* <p>Organizations is a web service that enables you to consolidate your multiple
* Amazon Web Services accounts into an <i>organization</i> and centrally manage your
* accounts and their resources.</p>
* <p>This guide provides descriptions of the Organizations operations. For more
* <p>This guide provides descriptions of the Organizations operations. For more
* information about using this service, see the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html">Organizations User Guide</a>.</p>
* <p>
* <p>
* <b>Support and feedback for Organizations</b>
* </p>
* <p>We welcome your feedback. Send your comments to <a href="mailto:feedback-awsorganizations@amazon.com">feedback-awsorganizations@amazon.com</a> or post your feedback and questions in
* <p>We welcome your feedback. Send your comments to <a href="mailto:feedback-awsorganizations@amazon.com">feedback-awsorganizations@amazon.com</a> or post your feedback and questions in
* the <a href="http://forums.aws.amazon.com/forum.jspa?forumID=219">Organizations support forum</a>. For
* more information about the Amazon Web Services support forums, see <a href="http://forums.aws.amazon.com/help.jspa">Forums Help</a>.</p>
* <p>
* <p>
* <b>Endpoint to call When using the CLI or the Amazon Web Services
* SDK</b>
* </p>
* <p>For the current release of Organizations, specify the <code>us-east-1</code> region
* <p>For the current release of Organizations, specify the <code>us-east-1</code> region
* for all Amazon Web Services API and CLI calls made from the commercial Amazon Web Services Regions outside of
* China. If calling from one of the Amazon Web Services Regions in China, then specify
* <code>cn-northwest-1</code>. You can do this in the CLI by using these parameters
* and commands:</p>
* <ul>
* <ul>
* <li>
* <p>Use the following parameter with each command to specify both the endpoint and
* <p>Use the following parameter with each command to specify both the endpoint and
* its region:</p>
* <p>
* <p>
* <code>--endpoint-url https://organizations.us-east-1.amazonaws.com</code>
* <i>(from commercial Amazon Web Services Regions outside of China)</i>
* <i>(from commercial Amazon Web Services Regions outside of China)</i>
* </p>
* <p>or</p>
* <p>
* <p>or</p>
* <p>
* <code>--endpoint-url
* https://organizations.cn-northwest-1.amazonaws.com.cn</code>
* <i>(from Amazon Web Services Regions in China)</i>
* <i>(from Amazon Web Services Regions in China)</i>
* </p>
* </li>
* <li>
* <p>Use the default endpoint, but configure your default region with this
* <p>Use the default endpoint, but configure your default region with this
* command:</p>
* <p>
* <p>
* <code>aws configure set default.region us-east-1</code>
* <i>(from commercial Amazon Web Services Regions outside of China)</i>
* <i>(from commercial Amazon Web Services Regions outside of China)</i>
* </p>
* <p>or</p>
* <p>
* <p>or</p>
* <p>
* <code>aws configure set default.region cn-northwest-1</code>
* <i>(from Amazon Web Services Regions in China)</i>
* <i>(from Amazon Web Services Regions in China)</i>
* </p>
* </li>
* <li>
* <p>Use the following parameter with each command to specify the endpoint:</p>
* <p>
* <p>Use the following parameter with each command to specify the endpoint:</p>
* <p>
* <code>--region us-east-1</code>
* <i>(from commercial Amazon Web Services Regions outside of China)</i>
* <i>(from commercial Amazon Web Services Regions outside of China)</i>
* </p>
* <p>or</p>
* <p>
* <p>or</p>
* <p>
* <code>--region cn-northwest-1</code>
* <i>(from Amazon Web Services Regions in China)</i>
* <i>(from Amazon Web Services Regions in China)</i>
* </p>
* </li>
* </ul>
* <p>
* <p>
* <b>Recording API Requests</b>
* </p>
* <p>Organizations supports CloudTrail, a service that records Amazon Web Services API calls for your
* </p>
* <p>Organizations supports CloudTrail, a service that records Amazon Web Services API calls for your
* Amazon Web Services account and delivers log files to an Amazon S3 bucket. By using information collected
* by CloudTrail, you can determine which requests the Organizations service received, who made the
* request and when, and so on. For more about Organizations and its support for CloudTrail, see
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ export interface AcceptHandshakeCommandOutput extends AcceptHandshakeResponse, _
/**
* <p>Sends a response to the originator of a handshake agreeing to the action proposed by
* the handshake request.</p>
* <p>You can only call this operation by the following principals when they also have the
* <p>You can only call this operation by the following principals when they also have the
* relevant IAM permissions:</p>
* <ul>
* <ul>
* <li>
* <p>
* <p>
* <b>Invitation to join</b> or <b>Approve all features request</b> handshakes: only a principal from
* the member account.</p>
* <p>The user who calls the API for an invitation to join must have the
* <p>The user who calls the API for an invitation to join must have the
* <code>organizations:AcceptHandshake</code> permission. If you enabled all
* features in the organization, the user must also have the
* <code>iam:CreateServiceLinkedRole</code> permission so that Organizations can
Expand All @@ -53,18 +53,18 @@ export interface AcceptHandshakeCommandOutput extends AcceptHandshakeResponse, _
* <i>Organizations User Guide</i>.</p>
* </li>
* <li>
* <p>
* <p>
* <b>Enable all features final confirmation</b>
* handshake: only a principal from the management account.</p>
* <p>For more information about invitations, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_invites.html">Inviting an
* <p>For more information about invitations, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_invites.html">Inviting an
* Amazon Web Services account to join your organization</a> in the
* <i>Organizations User Guide.</i> For more information about requests to
* enable all features in the organization, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">Enabling all features in your organization</a> in
* the <i>Organizations User Guide.</i>
* </p>
* </li>
* </ul>
* <p>After you accept a handshake, it continues to appear in the results of relevant APIs
* <p>After you accept a handshake, it continues to appear in the results of relevant APIs
* for only 30 days. After that, it's deleted.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface AttachPolicyCommandOutput extends __MetadataBearer {}
* <p>Attaches a policy to a root, an organizational unit (OU), or an individual account.
* How the policy affects accounts depends on the type of policy. Refer to the
* <i>Organizations User Guide</i> for information about each policy type:</p>
* <ul>
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html">AISERVICES_OPT_OUT_POLICY</a>
Expand All @@ -55,7 +55,7 @@ export interface AttachPolicyCommandOutput extends __MetadataBearer {}
* </p>
* </li>
* </ul>
* <p>This operation can be called only from the organization's management account.</p>
* <p>This operation can be called only from the organization's management account.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export interface CancelHandshakeCommandOutput extends CancelHandshakeResponse, _
/**
* <p>Cancels a handshake. Canceling a handshake sets the handshake state to
* <code>CANCELED</code>.</p>
* <p>This operation can be called only from the account that originated the handshake. The recipient of the handshake can't cancel it, but can use <a>DeclineHandshake</a> instead. After a handshake is canceled, the recipient
* <p>This operation can be called only from the account that originated the handshake. The recipient of the handshake can't cancel it, but can use <a>DeclineHandshake</a> instead. After a handshake is canceled, the recipient
* can no longer respond to that handshake.</p>
* <p>After you cancel a handshake, it continues to appear in the results of relevant APIs
* <p>After you cancel a handshake, it continues to appear in the results of relevant APIs
* for only 30 days. After that, it's deleted.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
48 changes: 26 additions & 22 deletions clients/client-organizations/src/commands/CloseAccountCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,51 +30,55 @@ export interface CloseAccountCommandInput extends CloseAccountRequest {}
export interface CloseAccountCommandOutput extends __MetadataBearer {}

/**
* <p>Closes an Amazon Web Services member account within an organization. You can't close the management
* account with this API. This is an asynchronous request that Amazon Web Services performs in the
* background. Because <code>CloseAccount</code> operates asynchronously, it can return a
* successful completion message even though account closure might still be in progress.
* You need to wait a few minutes before the account is fully closed. To check the status
* of the request, do one of the following:</p>
* <ul>
* <p>Closes an Amazon Web Services member account within an organization. You can close an account when
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all
* features are enabled </a>. You can't close the management account with this API.
* This is an asynchronous request that Amazon Web Services performs in the background. Because
* <code>CloseAccount</code> operates asynchronously, it can return a successful
* completion message even though account closure might still be in progress. You need to
* wait a few minutes before the account is fully closed. To check the status of the
* request, do one of the following:</p>
* <ul>
* <li>
* <p>Use the <code>AccountId</code> that you sent in the <code>CloseAccount</code>
* <p>Use the <code>AccountId</code> that you sent in the <code>CloseAccount</code>
* request to provide as a parameter to the <a>DescribeAccount</a>
* operation. </p>
* <p>While the close account request is in progress, Account status will indicate
* <p>While the close account request is in progress, Account status will indicate
* PENDING_CLOSURE. When the close account request completes, the status will
* change to SUSPENDED. </p>
* </li>
* <li>
* <p>Check the CloudTrail log for the <code>CloseAccountResult</code> event that gets
* <p>Check the CloudTrail log for the <code>CloseAccountResult</code> event that gets
* published after the account closes successfully. For information on using CloudTrail
* 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
* <i>Organizations User Guide.</i>
* </p>
* </li>
* </ul>
* <note>
* <note>
* <ul>
* <li>
* <p>You can only close 10% of active member accounts within a rolling 30 day
* period. This quota is not bound by a calendar month, but starts when you
* close an account. Within 30 days of that initial account closure, you can't
* exceed the 10% account closure limit.</p>
* </li>
* <p>You can close only 10% of member accounts, between 10 and 200, within a
* rolling 30 day period. This quota is not bound by a calendar month, but
* starts when you close an account.</p>
* <p>After you reach this limit, you can close additional accounts in the
* Billing console. For more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/close-account.html">Closing an
* account</a> in the Amazon Web Services Billing and Cost Management User Guide.</p>
* </li>
* <li>
* <p>To reinstate a closed account, contact Amazon Web Services Support within the 90-day
* <p>To reinstate a closed account, contact Amazon Web Services Support within the 90-day
* grace period while the account is in SUSPENDED status. </p>
* </li>
* </li>
* <li>
* <p>If the Amazon Web Services account you attempt to close is linked to an Amazon Web Services GovCloud
* <p>If the Amazon Web Services account you attempt to close is linked to an Amazon Web Services GovCloud
* (US) account, the <code>CloseAccount</code> request will close both
* accounts. To learn important pre-closure details, see <a href="https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/Closing-govcloud-account.html">
* Closing an Amazon Web Services GovCloud (US) account</a> in the <i>
* Amazon Web Services GovCloud User Guide</i>.</p>
* </li>
* </li>
* </ul>
* </note>
* <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
* </note>
* <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
* Amazon Web Services account</a> in the <i>Organizations User Guide.</i>
* </p>
* @example
Expand Down
Loading

0 comments on commit 5e8e5b4

Please sign in to comment.