amazonka-organizations-1.6.1: Amazon Organizations SDK.

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

Network.AWS.Organizations.DescribeAccount

Contents

Description

Retrieves Organizations-related information about the specified account.

This operation can be called only from the organization's master account.

Synopsis

Creating a Request

describeAccount Source #

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 the ListAccounts or ListAccountsForParent operations. The regex pattern for an account ID string requires exactly 12 digits.

data DescribeAccount Source #

See: describeAccount smart constructor.

Instances
Eq DescribeAccount Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

Data DescribeAccount Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeAccount -> c DescribeAccount #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeAccount #

toConstr :: DescribeAccount -> Constr #

dataTypeOf :: DescribeAccount -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DescribeAccount) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeAccount) #

gmapT :: (forall b. Data b => b -> b) -> DescribeAccount -> DescribeAccount #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeAccount -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeAccount -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeAccount -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeAccount -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeAccount -> m DescribeAccount #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeAccount -> m DescribeAccount #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeAccount -> m DescribeAccount #

Read DescribeAccount Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

Show DescribeAccount Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

Generic DescribeAccount Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

Associated Types

type Rep DescribeAccount :: Type -> Type #

Hashable DescribeAccount Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

ToJSON DescribeAccount Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

AWSRequest DescribeAccount Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

Associated Types

type Rs DescribeAccount :: Type #

ToHeaders DescribeAccount Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

ToPath DescribeAccount Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

ToQuery DescribeAccount Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

NFData DescribeAccount Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

Methods

rnf :: DescribeAccount -> () #

type Rep DescribeAccount Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

type Rep DescribeAccount = D1 (MetaData "DescribeAccount" "Network.AWS.Organizations.DescribeAccount" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" True) (C1 (MetaCons "DescribeAccount'" PrefixI True) (S1 (MetaSel (Just "_daAccountId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DescribeAccount Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

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:

data DescribeAccountResponse Source #

See: describeAccountResponse smart constructor.

Instances
Eq DescribeAccountResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

Data DescribeAccountResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeAccountResponse -> c DescribeAccountResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeAccountResponse #

toConstr :: DescribeAccountResponse -> Constr #

dataTypeOf :: DescribeAccountResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DescribeAccountResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeAccountResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeAccountResponse -> DescribeAccountResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeAccountResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeAccountResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeAccountResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeAccountResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeAccountResponse -> m DescribeAccountResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeAccountResponse -> m DescribeAccountResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeAccountResponse -> m DescribeAccountResponse #

Show DescribeAccountResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

Generic DescribeAccountResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

Associated Types

type Rep DescribeAccountResponse :: Type -> Type #

NFData DescribeAccountResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

Methods

rnf :: DescribeAccountResponse -> () #

type Rep DescribeAccountResponse Source # 
Instance details

Defined in Network.AWS.Organizations.DescribeAccount

type Rep DescribeAccountResponse = D1 (MetaData "DescribeAccountResponse" "Network.AWS.Organizations.DescribeAccount" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" False) (C1 (MetaCons "DescribeAccountResponse'" PrefixI True) (S1 (MetaSel (Just "_darsAccount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Account)) :*: S1 (MetaSel (Just "_darsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

darsAccount :: Lens' DescribeAccountResponse (Maybe Account) Source #

A structure that contains information about the requested account.