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

Contents

Description

Lists the roots that are defined in the current organization.

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

This operation returns paginated results.

Synopsis

Creating a Request

listRoots :: ListRoots Source #

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

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

  • lrNextToken - 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.
  • lrMaxResults - (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.

data ListRoots Source #

See: listRoots smart constructor.

Instances
Eq ListRoots Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

Data ListRoots Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

Methods

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

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

toConstr :: ListRoots -> Constr #

dataTypeOf :: ListRoots -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListRoots Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

Show ListRoots Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

Generic ListRoots Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

Associated Types

type Rep ListRoots :: Type -> Type #

Hashable ListRoots Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

ToJSON ListRoots Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

AWSPager ListRoots Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

AWSRequest ListRoots Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

Associated Types

type Rs ListRoots :: Type #

ToHeaders ListRoots Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

Methods

toHeaders :: ListRoots -> [Header] #

ToPath ListRoots Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

ToQuery ListRoots Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

NFData ListRoots Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

Methods

rnf :: ListRoots -> () #

type Rep ListRoots Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

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

Defined in Network.AWS.Organizations.ListRoots

Request Lenses

lrNextToken :: Lens' ListRoots (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.

lrMaxResults :: Lens' ListRoots (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.

Destructuring the Response

listRootsResponse Source #

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

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

  • lrrsRoots - A list of roots that are defined in an organization.
  • lrrsNextToken - 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 .
  • lrrsResponseStatus - -- | The response status code.

data ListRootsResponse Source #

See: listRootsResponse smart constructor.

Instances
Eq ListRootsResponse Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

Data ListRootsResponse Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

Methods

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

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

toConstr :: ListRootsResponse -> Constr #

dataTypeOf :: ListRootsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListRootsResponse Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

Show ListRootsResponse Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

Generic ListRootsResponse Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

Associated Types

type Rep ListRootsResponse :: Type -> Type #

NFData ListRootsResponse Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

Methods

rnf :: ListRootsResponse -> () #

type Rep ListRootsResponse Source # 
Instance details

Defined in Network.AWS.Organizations.ListRoots

type Rep ListRootsResponse = D1 (MetaData "ListRootsResponse" "Network.AWS.Organizations.ListRoots" "amazonka-organizations-1.6.1-AXMOvAV6jebLVZPNUpIjqF" False) (C1 (MetaCons "ListRootsResponse'" PrefixI True) (S1 (MetaSel (Just "_lrrsRoots") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Root])) :*: (S1 (MetaSel (Just "_lrrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

lrrsRoots :: Lens' ListRootsResponse [Root] Source #

A list of roots that are defined in an organization.

lrrsNextToken :: Lens' ListRootsResponse (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 .

lrrsResponseStatus :: Lens' ListRootsResponse Int Source #

  • - | The response status code.