Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Retrieves Organizations-related information about the specified account.
This operation can be called only from the organization's master account.
- describeAccount :: Text -> DescribeAccount
- data DescribeAccount
- daAccountId :: Lens' DescribeAccount Text
- describeAccountResponse :: Int -> DescribeAccountResponse
- data DescribeAccountResponse
- darsAccount :: Lens' DescribeAccountResponse (Maybe Account)
- darsResponseStatus :: Lens' DescribeAccountResponse Int
Creating a Request
Creates a value of DescribeAccount
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
daAccountId
- The unique identifier (ID) of the AWS account that you want information about. You can get the ID from theListAccounts
orListAccountsForParent
operations. The regex pattern for an account ID string requires exactly 12 digits.
data DescribeAccount Source #
See: describeAccount
smart constructor.
Request Lenses
daAccountId :: 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
describeAccountResponse Source #
Creates a value of DescribeAccountResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
darsAccount
- A structure that contains information about the requested account.darsResponseStatus
- -- | The response status code.
data DescribeAccountResponse Source #
See: describeAccountResponse
smart constructor.
Response Lenses
darsAccount :: Lens' DescribeAccountResponse (Maybe Account) Source #
A structure that contains information about the requested account.
darsResponseStatus :: Lens' DescribeAccountResponse Int Source #
- - | The response status code.