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

Contents

Description

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

For more information about managed policies, see 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:

  • lpvMarker - 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 - (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.
  • lpvPolicyARN - The Amazon Resource Name (ARN) of the IAM policy for which you want the versions. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .

data ListPolicyVersions Source #

See: listPolicyVersions smart constructor.

Instances
Eq ListPolicyVersions Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

Data ListPolicyVersions Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

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 # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

Show ListPolicyVersions Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

Generic ListPolicyVersions Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

Associated Types

type Rep ListPolicyVersions :: Type -> Type #

Hashable ListPolicyVersions Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

AWSPager ListPolicyVersions Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

AWSRequest ListPolicyVersions Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

Associated Types

type Rs ListPolicyVersions :: Type #

ToHeaders ListPolicyVersions Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

ToPath ListPolicyVersions Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

ToQuery ListPolicyVersions Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

NFData ListPolicyVersions Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

Methods

rnf :: ListPolicyVersions -> () #

type Rep ListPolicyVersions Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

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

Defined in Network.AWS.IAM.ListPolicyVersions

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 #

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

lpvPolicyARN :: Lens' ListPolicyVersions Text Source #

The Amazon Resource Name (ARN) of the IAM policy for which you want the versions. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .

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:

  • lpvrsVersions - A list of policy versions. For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide .
  • lpvrsMarker - When IsTruncated is true , this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.
  • lpvrsIsTruncated - 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.
  • lpvrsResponseStatus - -- | The response status code.

data ListPolicyVersionsResponse Source #

Contains the response to a successful ListPolicyVersions request.

See: listPolicyVersionsResponse smart constructor.

Instances
Eq ListPolicyVersionsResponse Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

Data ListPolicyVersionsResponse Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

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 # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

Show ListPolicyVersionsResponse Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

Generic ListPolicyVersionsResponse Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

Associated Types

type Rep ListPolicyVersionsResponse :: Type -> Type #

NFData ListPolicyVersionsResponse Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

type Rep ListPolicyVersionsResponse Source # 
Instance details

Defined in Network.AWS.IAM.ListPolicyVersions

type Rep ListPolicyVersionsResponse = D1 (MetaData "ListPolicyVersionsResponse" "Network.AWS.IAM.ListPolicyVersions" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" False) (C1 (MetaCons "ListPolicyVersionsResponse'" PrefixI True) ((S1 (MetaSel (Just "_lpvrsVersions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PolicyVersion])) :*: S1 (MetaSel (Just "_lpvrsMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_lpvrsIsTruncated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_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.