amazonka-iam-1.4.1: 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.ListPolicyVersions

Contents

Description

Lists information about the versions of the specified managed policy, including the version that is set as the policy's default version.

For more information about managed policies, refer to Managed Policies and Inline Policies in the IAM User Guide.

This operation returns paginated results.

Synopsis

Creating a Request

listPolicyVersions Source #

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

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

data ListPolicyVersions Source #

See: listPolicyVersions smart constructor.

Instances

Eq ListPolicyVersions Source # 
Data ListPolicyVersions Source # 

Methods

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

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

toConstr :: ListPolicyVersions -> Constr #

dataTypeOf :: ListPolicyVersions -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListPolicyVersions Source # 
Show ListPolicyVersions Source # 
Generic ListPolicyVersions Source # 
Hashable ListPolicyVersions Source # 
NFData ListPolicyVersions Source # 

Methods

rnf :: ListPolicyVersions -> () #

AWSPager ListPolicyVersions Source # 
AWSRequest ListPolicyVersions Source # 
ToQuery ListPolicyVersions Source # 
ToPath ListPolicyVersions Source # 
ToHeaders ListPolicyVersions Source # 
type Rep ListPolicyVersions Source # 
type Rep ListPolicyVersions = D1 (MetaData "ListPolicyVersions" "Network.AWS.IAM.ListPolicyVersions" "amazonka-iam-1.4.1-7UxTCVdPNcf8CA4oHmoXZ6" False) (C1 (MetaCons "ListPolicyVersions'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lpvMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lpvMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_lpvPolicyARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ListPolicyVersions Source # 

Request Lenses

lpvMarker :: Lens' ListPolicyVersions (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.

lpvMaxItems :: Lens' ListPolicyVersions (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.

Destructuring the Response

listPolicyVersionsResponse Source #

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

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

data ListPolicyVersionsResponse Source #

Contains the response to a successful ListPolicyVersions request.

See: listPolicyVersionsResponse smart constructor.

Instances

Eq ListPolicyVersionsResponse Source # 
Data ListPolicyVersionsResponse Source # 

Methods

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

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

toConstr :: ListPolicyVersionsResponse -> Constr #

dataTypeOf :: ListPolicyVersionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListPolicyVersionsResponse Source # 
Show ListPolicyVersionsResponse Source # 
Generic ListPolicyVersionsResponse Source # 
NFData ListPolicyVersionsResponse Source # 
type Rep ListPolicyVersionsResponse Source # 
type Rep ListPolicyVersionsResponse = D1 (MetaData "ListPolicyVersionsResponse" "Network.AWS.IAM.ListPolicyVersions" "amazonka-iam-1.4.1-7UxTCVdPNcf8CA4oHmoXZ6" False) (C1 (MetaCons "ListPolicyVersionsResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_lpvrsVersions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PolicyVersion]))) (S1 (MetaSel (Just Symbol "_lpvrsMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_lpvrsIsTruncated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_lpvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

lpvrsVersions :: Lens' ListPolicyVersionsResponse [PolicyVersion] Source #

A list of policy versions.

For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.

lpvrsMarker :: Lens' ListPolicyVersionsResponse (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.

lpvrsIsTruncated :: Lens' ListPolicyVersionsResponse (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.