amazonka-kms-1.4.1: Amazon Key Management Service 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.KMS.ListRetirableGrants

Contents

Description

Returns a list of all grants for which the grant's RetiringPrincipal matches the one specified.

A typical use is to list all grants that you are able to retire. To retire a grant, use RetireGrant.

Synopsis

Creating a Request

listRetirableGrants Source #

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

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

data ListRetirableGrants Source #

See: listRetirableGrants smart constructor.

Instances

Eq ListRetirableGrants Source # 
Data ListRetirableGrants Source # 

Methods

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

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

toConstr :: ListRetirableGrants -> Constr #

dataTypeOf :: ListRetirableGrants -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListRetirableGrants Source # 
Show ListRetirableGrants Source # 
Generic ListRetirableGrants Source # 
Hashable ListRetirableGrants Source # 
ToJSON ListRetirableGrants Source # 
NFData ListRetirableGrants Source # 

Methods

rnf :: ListRetirableGrants -> () #

AWSRequest ListRetirableGrants Source # 
ToQuery ListRetirableGrants Source # 
ToPath ListRetirableGrants Source # 
ToHeaders ListRetirableGrants Source # 
type Rep ListRetirableGrants Source # 
type Rep ListRetirableGrants = D1 (MetaData "ListRetirableGrants" "Network.AWS.KMS.ListRetirableGrants" "amazonka-kms-1.4.1-GF628EecSPSCenC7tCeKjK" False) (C1 (MetaCons "ListRetirableGrants'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lrgMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lrgLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_lrgRetiringPrincipal") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ListRetirableGrants Source # 

Request Lenses

lrgMarker :: Lens' ListRetirableGrants (Maybe Text) Source #

Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the response you just received.

lrgLimit :: Lens' ListRetirableGrants (Maybe Natural) Source #

When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the Truncated element in the response is set to true.

This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

lrgRetiringPrincipal :: Lens' ListRetirableGrants Text Source #

The retiring principal for which to list grants.

To specify the retiring principal, use the Amazon Resource Name (ARN) of an AWS principal. Valid AWS principals include AWS accounts (root), IAM users, federated users, and assumed role users. For examples of the ARN syntax for specifying a principal, go to AWS Identity and Access Management (IAM) in the Example ARNs section of the /Amazon Web Services General Reference/.

Destructuring the Response

listGrantsResponse :: ListGrantsResponse Source #

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

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

data ListGrantsResponse Source #

See: listGrantsResponse smart constructor.

Instances

Eq ListGrantsResponse Source # 
Data ListGrantsResponse Source # 

Methods

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

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

toConstr :: ListGrantsResponse -> Constr #

dataTypeOf :: ListGrantsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListGrantsResponse Source # 
Show ListGrantsResponse Source # 
Generic ListGrantsResponse Source # 
Hashable ListGrantsResponse Source # 
FromJSON ListGrantsResponse Source # 
NFData ListGrantsResponse Source # 

Methods

rnf :: ListGrantsResponse -> () #

type Rep ListGrantsResponse Source # 
type Rep ListGrantsResponse = D1 (MetaData "ListGrantsResponse" "Network.AWS.KMS.Types.Product" "amazonka-kms-1.4.1-GF628EecSPSCenC7tCeKjK" False) (C1 (MetaCons "ListGrantsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lgTruncated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_lgGrants") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [GrantListEntry]))) (S1 (MetaSel (Just Symbol "_lgNextMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

Response Lenses

lgTruncated :: Lens' ListGrantsResponse (Maybe Bool) Source #

A flag that indicates whether there are more items in the list. If your results were truncated, you can use the Marker parameter to make a subsequent pagination request to retrieve more items in the list.

lgNextMarker :: Lens' ListGrantsResponse (Maybe Text) Source #

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