amazonka-iam-1.6.1: Amazon Identity and Access Management 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.IAM.ListRolePolicies

Contents

Description

Lists the names of the inline policies that are embedded in the specified IAM role.

An IAM role can also have managed policies attached to it. To list the managed policies that are attached to a role, use ListAttachedRolePolicies . For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide .

You can paginate the results using the MaxItems and Marker parameters. If there are no inline policies embedded with the specified role, the operation returns an empty list.

This operation returns paginated results.

Synopsis

Creating a Request

listRolePolicies Source #

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

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

  • lrpMarker - 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.
  • lrpMaxItems - (Optional) 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 . If you do not include this parameter, 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.
  • lrpRoleName - The name of the role to list policies for. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

data ListRolePolicies Source #

See: listRolePolicies smart constructor.

Instances
Eq ListRolePolicies Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

Data ListRolePolicies Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

Methods

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

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

toConstr :: ListRolePolicies -> Constr #

dataTypeOf :: ListRolePolicies -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListRolePolicies Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

Show ListRolePolicies Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

Generic ListRolePolicies Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

Associated Types

type Rep ListRolePolicies :: Type -> Type #

Hashable ListRolePolicies Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

AWSPager ListRolePolicies Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

AWSRequest ListRolePolicies Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

Associated Types

type Rs ListRolePolicies :: Type #

ToHeaders ListRolePolicies Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

ToPath ListRolePolicies Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

ToQuery ListRolePolicies Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

NFData ListRolePolicies Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

Methods

rnf :: ListRolePolicies -> () #

type Rep ListRolePolicies Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

type Rep ListRolePolicies = D1 (MetaData "ListRolePolicies" "Network.AWS.IAM.ListRolePolicies" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" False) (C1 (MetaCons "ListRolePolicies'" PrefixI True) (S1 (MetaSel (Just "_lrpMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lrpMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_lrpRoleName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ListRolePolicies Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

Request Lenses

lrpMarker :: Lens' ListRolePolicies (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.

lrpMaxItems :: Lens' ListRolePolicies (Maybe Natural) Source #

(Optional) 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 . If you do not include this parameter, 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.

lrpRoleName :: Lens' ListRolePolicies Text Source #

The name of the role to list policies for. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Destructuring the Response

listRolePoliciesResponse Source #

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

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

  • lrprsMarker - When IsTruncated is true , this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.
  • lrprsIsTruncated - 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.
  • lrprsResponseStatus - -- | The response status code.
  • lrprsPolicyNames - A list of policy names.

data ListRolePoliciesResponse Source #

Contains the response to a successful ListRolePolicies request.

See: listRolePoliciesResponse smart constructor.

Instances
Eq ListRolePoliciesResponse Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

Data ListRolePoliciesResponse Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

Methods

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

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

toConstr :: ListRolePoliciesResponse -> Constr #

dataTypeOf :: ListRolePoliciesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListRolePoliciesResponse Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

Show ListRolePoliciesResponse Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

Generic ListRolePoliciesResponse Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

Associated Types

type Rep ListRolePoliciesResponse :: Type -> Type #

NFData ListRolePoliciesResponse Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

type Rep ListRolePoliciesResponse Source # 
Instance details

Defined in Network.AWS.IAM.ListRolePolicies

type Rep ListRolePoliciesResponse = D1 (MetaData "ListRolePoliciesResponse" "Network.AWS.IAM.ListRolePolicies" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" False) (C1 (MetaCons "ListRolePoliciesResponse'" PrefixI True) ((S1 (MetaSel (Just "_lrprsMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lrprsIsTruncated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "_lrprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_lrprsPolicyNames") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]))))

Response Lenses

lrprsMarker :: Lens' ListRolePoliciesResponse (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.

lrprsIsTruncated :: Lens' ListRolePoliciesResponse (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.