/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the organizations-2016-11-28.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Organizations.Model
{
///
/// Container for the parameters to the CloseAccount operation.
/// Closes an Amazon Web Services member account within an organization. You can close
/// an account when all
/// features are enabled . You can't close the management account with this API. This
/// is an asynchronous request that Amazon Web Services performs in the background. Because
/// CloseAccount
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:
///
/// -
///
/// Use the
AccountId
that you sent in the CloseAccount
request
/// to provide as a parameter to the DescribeAccount operation.
///
///
///
/// 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.
///
/// -
///
/// Check the CloudTrail log for the
CloseAccountResult
event that gets published
/// after the account closes successfully. For information on using CloudTrail with Organizations,
/// see Logging
/// and monitoring in Organizations in the Organizations User Guide.
///
///
-
///
/// 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.
///
///
///
/// After you reach this limit, you can close additional accounts in the Billing console.
/// For more information, see Closing
/// an account in the Amazon Web Services Billing and Cost Management User Guide.
///
///
-
///
/// To reinstate a closed account, contact Amazon Web Services Support within the 90-day
/// grace period while the account is in SUSPENDED status.
///
///
-
///
/// If the Amazon Web Services account you attempt to close is linked to an Amazon Web
/// Services GovCloud (US) account, the
CloseAccount
request will close both
/// accounts. To learn important pre-closure details, see
/// Closing an Amazon Web Services GovCloud (US) account in the Amazon Web Services
/// GovCloud User Guide.
///
///
///
/// For more information about closing accounts, see Closing
/// an Amazon Web Services account in the Organizations User Guide.
///
///
public partial class CloseAccountRequest : AmazonOrganizationsRequest
{
private string _accountId;
///
/// Gets and sets the property AccountId.
///
/// Retrieves the Amazon Web Services account Id for the current CloseAccount
/// API request.
///
///
[AWSProperty(Required=true, Max=12)]
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
}
}