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.ListChildren

Contents

Description

Lists all of the OUs or accounts that are contained in the specified parent OU or root. This operation, along with ListParents enables you to traverse the tree structure that makes up this root.

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

This operation returns paginated results.

Synopsis

Creating a Request

listChildren Source #

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

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

  • lcNextToken - Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.
  • lcMaxResults - (Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.
  • lcParentId - The unique identifier (ID) for the parent root or OU whose children you want to list. The regex pattern for a parent ID string requires one of the following: * Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits. * Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
  • lcChildType - Filters the output to include only the specified child type.

data ListChildren Source #

See: listChildren smart constructor.

Instances
Eq ListChildren Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

Data ListChildren Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

Methods

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

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

toConstr :: ListChildren -> Constr #

dataTypeOf :: ListChildren -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListChildren Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

Show ListChildren Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

Generic ListChildren Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

Associated Types

type Rep ListChildren :: Type -> Type #

Hashable ListChildren Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

ToJSON ListChildren Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

AWSPager ListChildren Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

AWSRequest ListChildren Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

Associated Types

type Rs ListChildren :: Type #

ToHeaders ListChildren Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

ToPath ListChildren Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

ToQuery ListChildren Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

NFData ListChildren Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

Methods

rnf :: ListChildren -> () #

type Rep ListChildren Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

type Rep ListChildren = D1 (MetaData "ListChildren" "Network.AWS.Organizations.ListChildren" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" False) (C1 (MetaCons "ListChildren'" PrefixI True) ((S1 (MetaSel (Just "_lcNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lcMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) :*: (S1 (MetaSel (Just "_lcParentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_lcChildType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ChildType))))
type Rs ListChildren Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

Request Lenses

lcNextToken :: Lens' ListChildren (Maybe Text) Source #

Use this parameter if you receive a NextToken response in a previous request that indicates that there is more output available. Set it to the value of the previous call's NextToken response to indicate where the output should continue from.

lcMaxResults :: Lens' ListChildren (Maybe Natural) Source #

(Optional) Use this to limit the number of results you want included in the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the maximum you specify, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that Organizations might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

lcParentId :: Lens' ListChildren Text Source #

The unique identifier (ID) for the parent root or OU whose children you want to list. The regex pattern for a parent ID string requires one of the following: * Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits. * Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.

lcChildType :: Lens' ListChildren ChildType Source #

Filters the output to include only the specified child type.

Destructuring the Response

listChildrenResponse Source #

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

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

  • lcrsChildren - The list of children of the specified parent container.
  • lcrsNextToken - If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null .
  • lcrsResponseStatus - -- | The response status code.

data ListChildrenResponse Source #

See: listChildrenResponse smart constructor.

Instances
Eq ListChildrenResponse Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

Data ListChildrenResponse Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

Methods

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

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

toConstr :: ListChildrenResponse -> Constr #

dataTypeOf :: ListChildrenResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListChildrenResponse Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

Show ListChildrenResponse Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

Generic ListChildrenResponse Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

Associated Types

type Rep ListChildrenResponse :: Type -> Type #

NFData ListChildrenResponse Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

Methods

rnf :: ListChildrenResponse -> () #

type Rep ListChildrenResponse Source # 
Instance details

Defined in Network.AWS.Organizations.ListChildren

type Rep ListChildrenResponse = D1 (MetaData "ListChildrenResponse" "Network.AWS.Organizations.ListChildren" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" False) (C1 (MetaCons "ListChildrenResponse'" PrefixI True) (S1 (MetaSel (Just "_lcrsChildren") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Child])) :*: (S1 (MetaSel (Just "_lcrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

lcrsChildren :: Lens' ListChildrenResponse [Child] Source #

The list of children of the specified parent container.

lcrsNextToken :: Lens' ListChildrenResponse (Maybe Text) Source #

If present, this value indicates that there is more output available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null .

lcrsResponseStatus :: Lens' ListChildrenResponse Int Source #

  • - | The response status code.