libZSservicesZSamazonka-organizationsZSamazonka-organizations
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Organizations.DescribeAccount

Description

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

Creating a Request

data DescribeAccount Source #

See: newDescribeAccount smart constructor.

Constructors

DescribeAccount' 

Fields

  • accountId :: Text

    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.

Instances

Instances details
Eq DescribeAccount Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

Read DescribeAccount Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

Show DescribeAccount Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

Generic DescribeAccount Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

Associated Types

type Rep DescribeAccount :: Type -> Type #

NFData DescribeAccount Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

Methods

rnf :: DescribeAccount -> () #

Hashable DescribeAccount Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

ToJSON DescribeAccount Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

AWSRequest DescribeAccount Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

Associated Types

type AWSResponse DescribeAccount #

ToHeaders DescribeAccount Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

ToPath DescribeAccount Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

ToQuery DescribeAccount Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

type Rep DescribeAccount Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

type Rep DescribeAccount = D1 ('MetaData "DescribeAccount" "Amazonka.Organizations.DescribeAccount" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" 'False) (C1 ('MetaCons "DescribeAccount'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DescribeAccount Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

newDescribeAccount Source #

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.

Constructors

DescribeAccountResponse' 

Fields

Instances

Instances details
Eq DescribeAccountResponse Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

Show DescribeAccountResponse Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

Generic DescribeAccountResponse Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

Associated Types

type Rep DescribeAccountResponse :: Type -> Type #

NFData DescribeAccountResponse Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

Methods

rnf :: DescribeAccountResponse -> () #

type Rep DescribeAccountResponse Source # 
Instance details

Defined in Amazonka.Organizations.DescribeAccount

type Rep DescribeAccountResponse = D1 ('MetaData "DescribeAccountResponse" "Amazonka.Organizations.DescribeAccount" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" 'False) (C1 ('MetaCons "DescribeAccountResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "account") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Account)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.