amazonka-organizations-1.5.0: Amazon Organizations SDK.

Copyright(c) 2013-2017 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.DescribeOrganizationalUnit

Contents

Description

Retrieves information about an organizational unit (OU).

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

Synopsis

Creating a Request

describeOrganizationalUnit Source #

Creates a value of DescribeOrganizationalUnit with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • douOrganizationalUnitId - The unique identifier (ID) of the organizational unit that you want details about. You can get the ID from the ListOrganizationalUnitsForParent operation. The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that contains the OU) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.

data DescribeOrganizationalUnit Source #

See: describeOrganizationalUnit smart constructor.

Instances

Eq DescribeOrganizationalUnit Source # 
Data DescribeOrganizationalUnit Source # 

Methods

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

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

toConstr :: DescribeOrganizationalUnit -> Constr #

dataTypeOf :: DescribeOrganizationalUnit -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeOrganizationalUnit Source # 
Show DescribeOrganizationalUnit Source # 
Generic DescribeOrganizationalUnit Source # 
Hashable DescribeOrganizationalUnit Source # 
ToJSON DescribeOrganizationalUnit Source # 
NFData DescribeOrganizationalUnit Source # 
AWSRequest DescribeOrganizationalUnit Source # 
ToQuery DescribeOrganizationalUnit Source # 
ToPath DescribeOrganizationalUnit Source # 
ToHeaders DescribeOrganizationalUnit Source # 
type Rep DescribeOrganizationalUnit Source # 
type Rep DescribeOrganizationalUnit = D1 (MetaData "DescribeOrganizationalUnit" "Network.AWS.Organizations.DescribeOrganizationalUnit" "amazonka-organizations-1.5.0-9d9i18lsT75IlwObP60hiK" True) (C1 (MetaCons "DescribeOrganizationalUnit'" PrefixI True) (S1 (MetaSel (Just Symbol "_douOrganizationalUnitId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DescribeOrganizationalUnit Source # 

Request Lenses

douOrganizationalUnitId :: Lens' DescribeOrganizationalUnit Text Source #

The unique identifier (ID) of the organizational unit that you want details about. You can get the ID from the ListOrganizationalUnitsForParent operation. The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that contains the OU) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.

Destructuring the Response

describeOrganizationalUnitResponse Source #

Creates a value of DescribeOrganizationalUnitResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DescribeOrganizationalUnitResponse Source #

See: describeOrganizationalUnitResponse smart constructor.

Instances

Eq DescribeOrganizationalUnitResponse Source # 
Data DescribeOrganizationalUnitResponse Source # 

Methods

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

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

toConstr :: DescribeOrganizationalUnitResponse -> Constr #

dataTypeOf :: DescribeOrganizationalUnitResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeOrganizationalUnitResponse Source # 
Show DescribeOrganizationalUnitResponse Source # 
Generic DescribeOrganizationalUnitResponse Source # 
NFData DescribeOrganizationalUnitResponse Source # 
type Rep DescribeOrganizationalUnitResponse Source # 
type Rep DescribeOrganizationalUnitResponse = D1 (MetaData "DescribeOrganizationalUnitResponse" "Network.AWS.Organizations.DescribeOrganizationalUnit" "amazonka-organizations-1.5.0-9d9i18lsT75IlwObP60hiK" False) (C1 (MetaCons "DescribeOrganizationalUnitResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_doursOrganizationalUnit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe OrganizationalUnit))) (S1 (MetaSel (Just Symbol "_doursResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

doursOrganizationalUnit :: Lens' DescribeOrganizationalUnitResponse (Maybe OrganizationalUnit) Source #

A structure that contains details about the specified OU.