amazonka-iam-1.4.5: Amazon Identity and Access Management SDK.

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

Network.AWS.IAM.GetAccountAuthorizationDetails

Contents

Description

Retrieves information about all IAM users, groups, roles, and policies in your AWS account, including their relationships to one another. Use this API to obtain a snapshot of the configuration of IAM permissions (users, groups, roles, and policies) in your account.

You can optionally filter the results using the Filter parameter. You can paginate the results using the MaxItems and Marker parameters.

This operation returns paginated results.

Synopsis

Creating a Request

getAccountAuthorizationDetails :: GetAccountAuthorizationDetails Source #

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

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

  • gaadMarker - Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
  • gaadMaxItems - Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true . This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.
  • gaadFilter - A list of entity types used to filter the results. Only the entities that match the types you specify are included in the output. Use the value LocalManagedPolicy to include customer managed policies. The format for this parameter is a comma-separated (if more than one) list of strings. Each string value in the list must be one of the valid values listed below.

data GetAccountAuthorizationDetails Source #

See: getAccountAuthorizationDetails smart constructor.

Instances

Eq GetAccountAuthorizationDetails Source # 
Data GetAccountAuthorizationDetails Source # 

Methods

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

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

toConstr :: GetAccountAuthorizationDetails -> Constr #

dataTypeOf :: GetAccountAuthorizationDetails -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetAccountAuthorizationDetails Source # 
Show GetAccountAuthorizationDetails Source # 
Generic GetAccountAuthorizationDetails Source # 
Hashable GetAccountAuthorizationDetails Source # 
NFData GetAccountAuthorizationDetails Source # 
AWSPager GetAccountAuthorizationDetails Source # 
AWSRequest GetAccountAuthorizationDetails Source # 
ToPath GetAccountAuthorizationDetails Source # 
ToHeaders GetAccountAuthorizationDetails Source # 
ToQuery GetAccountAuthorizationDetails Source # 
type Rep GetAccountAuthorizationDetails Source # 
type Rep GetAccountAuthorizationDetails = D1 (MetaData "GetAccountAuthorizationDetails" "Network.AWS.IAM.GetAccountAuthorizationDetails" "amazonka-iam-1.4.5-tAuuyG7nyKEp3j6LBO0rr" False) (C1 (MetaCons "GetAccountAuthorizationDetails'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gaadMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gaadMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_gaadFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [EntityType]))))))
type Rs GetAccountAuthorizationDetails Source # 

Request Lenses

gaadMarker :: Lens' GetAccountAuthorizationDetails (Maybe Text) Source #

Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

gaadMaxItems :: Lens' GetAccountAuthorizationDetails (Maybe Natural) Source #

Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true . This parameter is optional. If you do not include it, it defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true and Marker contains a value to include in the subsequent call that tells the service where to continue from.

gaadFilter :: Lens' GetAccountAuthorizationDetails [EntityType] Source #

A list of entity types used to filter the results. Only the entities that match the types you specify are included in the output. Use the value LocalManagedPolicy to include customer managed policies. The format for this parameter is a comma-separated (if more than one) list of strings. Each string value in the list must be one of the valid values listed below.

Destructuring the Response

getAccountAuthorizationDetailsResponse Source #

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

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

  • gaadrsRoleDetailList - A list containing information about IAM roles.
  • gaadrsGroupDetailList - A list containing information about IAM groups.
  • gaadrsUserDetailList - A list containing information about IAM users.
  • gaadrsMarker - When IsTruncated is true , this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.
  • gaadrsIsTruncated - A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.
  • gaadrsPolicies - A list containing information about managed policies.
  • gaadrsResponseStatus - -- | The response status code.

data GetAccountAuthorizationDetailsResponse Source #

Contains the response to a successful GetAccountAuthorizationDetails request.

See: getAccountAuthorizationDetailsResponse smart constructor.

Instances

Eq GetAccountAuthorizationDetailsResponse Source # 
Data GetAccountAuthorizationDetailsResponse Source # 

Methods

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

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

toConstr :: GetAccountAuthorizationDetailsResponse -> Constr #

dataTypeOf :: GetAccountAuthorizationDetailsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetAccountAuthorizationDetailsResponse Source # 
Show GetAccountAuthorizationDetailsResponse Source # 
Generic GetAccountAuthorizationDetailsResponse Source # 
NFData GetAccountAuthorizationDetailsResponse Source # 
type Rep GetAccountAuthorizationDetailsResponse Source # 
type Rep GetAccountAuthorizationDetailsResponse = D1 (MetaData "GetAccountAuthorizationDetailsResponse" "Network.AWS.IAM.GetAccountAuthorizationDetails" "amazonka-iam-1.4.5-tAuuyG7nyKEp3j6LBO0rr" False) (C1 (MetaCons "GetAccountAuthorizationDetailsResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gaadrsRoleDetailList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [RoleDetail]))) ((:*:) (S1 (MetaSel (Just Symbol "_gaadrsGroupDetailList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [GroupDetail]))) (S1 (MetaSel (Just Symbol "_gaadrsUserDetailList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [UserDetail]))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gaadrsMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gaadrsIsTruncated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "_gaadrsPolicies") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ManagedPolicyDetail]))) (S1 (MetaSel (Just Symbol "_gaadrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))))

Response Lenses

gaadrsRoleDetailList :: Lens' GetAccountAuthorizationDetailsResponse [RoleDetail] Source #

A list containing information about IAM roles.

gaadrsGroupDetailList :: Lens' GetAccountAuthorizationDetailsResponse [GroupDetail] Source #

A list containing information about IAM groups.

gaadrsUserDetailList :: Lens' GetAccountAuthorizationDetailsResponse [UserDetail] Source #

A list containing information about IAM users.

gaadrsMarker :: Lens' GetAccountAuthorizationDetailsResponse (Maybe Text) Source #

When IsTruncated is true , this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

gaadrsIsTruncated :: Lens' GetAccountAuthorizationDetailsResponse (Maybe Bool) Source #

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all of your results.

gaadrsPolicies :: Lens' GetAccountAuthorizationDetailsResponse [ManagedPolicyDetail] Source #

A list containing information about managed policies.