Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Retrieves AWS Organizations-related information about the specified account.
This operation can be called only from the organization's management account or by a member account that is a delegated administrator for an AWS service.
Synopsis
- data DescribeAccount = DescribeAccount' {}
- newDescribeAccount :: Text -> DescribeAccount
- describeAccount_accountId :: Lens' DescribeAccount Text
- data DescribeAccountResponse = DescribeAccountResponse' {
- account :: Maybe Account
- httpStatus :: Int
- newDescribeAccountResponse :: Int -> DescribeAccountResponse
- describeAccountResponse_account :: Lens' DescribeAccountResponse (Maybe Account)
- describeAccountResponse_httpStatus :: Lens' DescribeAccountResponse Int
Creating a Request
data DescribeAccount Source #
See: newDescribeAccount
smart constructor.
DescribeAccount' | |
|
Instances
Create a value of DescribeAccount
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:accountId:DescribeAccount'
, describeAccount_accountId
- The unique identifier (ID) of the AWS account that you want information
about. You can get the ID from the ListAccounts or ListAccountsForParent
operations.
The regex pattern for an account ID string requires exactly 12 digits.
Request Lenses
describeAccount_accountId :: Lens' DescribeAccount Text Source #
The unique identifier (ID) of the AWS account that you want information about. You can get the ID from the ListAccounts or ListAccountsForParent operations.
The regex pattern for an account ID string requires exactly 12 digits.
Destructuring the Response
data DescribeAccountResponse Source #
See: newDescribeAccountResponse
smart constructor.
DescribeAccountResponse' | |
|
Instances
newDescribeAccountResponse Source #
Create a value of DescribeAccountResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:account:DescribeAccountResponse'
, describeAccountResponse_account
- A structure that contains information about the requested account.
$sel:httpStatus:DescribeAccountResponse'
, describeAccountResponse_httpStatus
- The response's http status code.
Response Lenses
describeAccountResponse_account :: Lens' DescribeAccountResponse (Maybe Account) Source #
A structure that contains information about the requested account.
describeAccountResponse_httpStatus :: Lens' DescribeAccountResponse Int Source #
The response's http status code.