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

  • lrgMarker - Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the truncated response you just received.
  • lrgLimit - Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not return more than the specified number of items, but it might return fewer. 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 - 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, see AWS Identity and Access Management (IAM) in the Example ARNs section of the Amazon Web Services General Reference .

data ListRetirableGrants Source #

See: listRetirableGrants smart constructor.

Instances
Eq ListRetirableGrants Source # 
Instance details

Defined in Network.AWS.KMS.ListRetirableGrants

Data ListRetirableGrants Source # 
Instance details

Defined in Network.AWS.KMS.ListRetirableGrants

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

Defined in Network.AWS.KMS.ListRetirableGrants

Show ListRetirableGrants Source # 
Instance details

Defined in Network.AWS.KMS.ListRetirableGrants

Generic ListRetirableGrants Source # 
Instance details

Defined in Network.AWS.KMS.ListRetirableGrants

Associated Types

type Rep ListRetirableGrants :: Type -> Type #

Hashable ListRetirableGrants Source # 
Instance details

Defined in Network.AWS.KMS.ListRetirableGrants

ToJSON ListRetirableGrants Source # 
Instance details

Defined in Network.AWS.KMS.ListRetirableGrants

AWSRequest ListRetirableGrants Source # 
Instance details

Defined in Network.AWS.KMS.ListRetirableGrants

Associated Types

type Rs ListRetirableGrants :: Type #

ToHeaders ListRetirableGrants Source # 
Instance details

Defined in Network.AWS.KMS.ListRetirableGrants

ToPath ListRetirableGrants Source # 
Instance details

Defined in Network.AWS.KMS.ListRetirableGrants

ToQuery ListRetirableGrants Source # 
Instance details

Defined in Network.AWS.KMS.ListRetirableGrants

NFData ListRetirableGrants Source # 
Instance details

Defined in Network.AWS.KMS.ListRetirableGrants

Methods

rnf :: ListRetirableGrants -> () #

type Rep ListRetirableGrants Source # 
Instance details

Defined in Network.AWS.KMS.ListRetirableGrants

type Rep ListRetirableGrants = D1 (MetaData "ListRetirableGrants" "Network.AWS.KMS.ListRetirableGrants" "amazonka-kms-1.6.1-1UDljZYfeha1jjHbbMax4v" False) (C1 (MetaCons "ListRetirableGrants'" PrefixI True) (S1 (MetaSel (Just "_lrgMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lrgLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_lrgRetiringPrincipal") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ListRetirableGrants Source # 
Instance details

Defined in Network.AWS.KMS.ListRetirableGrants

Request Lenses

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

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

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

Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not return more than the specified number of items, but it might return fewer. 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, see 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:

  • lgTruncated - A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To get more items, pass the value of the NextMarker element in this response to the Marker parameter in a subsequent request.
  • lgGrants - A list of grants.
  • lgNextMarker - When Truncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent request.

data ListGrantsResponse Source #

See: listGrantsResponse smart constructor.

Instances
Eq ListGrantsResponse Source # 
Instance details

Defined in Network.AWS.KMS.Types.Product

Data ListGrantsResponse Source # 
Instance details

Defined in Network.AWS.KMS.Types.Product

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

Defined in Network.AWS.KMS.Types.Product

Show ListGrantsResponse Source # 
Instance details

Defined in Network.AWS.KMS.Types.Product

Generic ListGrantsResponse Source # 
Instance details

Defined in Network.AWS.KMS.Types.Product

Associated Types

type Rep ListGrantsResponse :: Type -> Type #

Hashable ListGrantsResponse Source # 
Instance details

Defined in Network.AWS.KMS.Types.Product

FromJSON ListGrantsResponse Source # 
Instance details

Defined in Network.AWS.KMS.Types.Product

NFData ListGrantsResponse Source # 
Instance details

Defined in Network.AWS.KMS.Types.Product

Methods

rnf :: ListGrantsResponse -> () #

type Rep ListGrantsResponse Source # 
Instance details

Defined in Network.AWS.KMS.Types.Product

type Rep ListGrantsResponse = D1 (MetaData "ListGrantsResponse" "Network.AWS.KMS.Types.Product" "amazonka-kms-1.6.1-1UDljZYfeha1jjHbbMax4v" False) (C1 (MetaCons "ListGrantsResponse'" PrefixI True) (S1 (MetaSel (Just "_lgTruncated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_lgGrants") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [GrantListEntry])) :*: S1 (MetaSel (Just "_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. When this value is true, the list in this response is truncated. To get more items, pass the value of the NextMarker element in this response to the Marker parameter in a subsequent request.

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

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