amazonka-cloudtrail-1.5.0: Amazon CloudTrail SDK.

Copyright(c) 2013-2017 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.CloudTrail.ListPublicKeys

Contents

Description

Returns all public keys whose private keys were used to sign the digest files within the specified time range. The public key is needed to validate digest files that were signed with its corresponding private key.

Synopsis

Creating a Request

listPublicKeys :: ListPublicKeys Source #

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

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

  • lpkStartTime - Optionally specifies, in UTC, the start of the time range to look up public keys for CloudTrail digest files. If not specified, the current time is used, and the current public key is returned.
  • lpkNextToken - Reserved for future use.
  • lpkEndTime - Optionally specifies, in UTC, the end of the time range to look up public keys for CloudTrail digest files. If not specified, the current time is used.

data ListPublicKeys Source #

Requests the public keys for a specified time range.

See: listPublicKeys smart constructor.

Instances

Eq ListPublicKeys Source # 
Data ListPublicKeys Source # 

Methods

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

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

toConstr :: ListPublicKeys -> Constr #

dataTypeOf :: ListPublicKeys -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListPublicKeys Source # 
Show ListPublicKeys Source # 
Generic ListPublicKeys Source # 

Associated Types

type Rep ListPublicKeys :: * -> * #

Hashable ListPublicKeys Source # 
ToJSON ListPublicKeys Source # 
NFData ListPublicKeys Source # 

Methods

rnf :: ListPublicKeys -> () #

AWSRequest ListPublicKeys Source # 
ToQuery ListPublicKeys Source # 
ToPath ListPublicKeys Source # 
ToHeaders ListPublicKeys Source # 
type Rep ListPublicKeys Source # 
type Rep ListPublicKeys = D1 (MetaData "ListPublicKeys" "Network.AWS.CloudTrail.ListPublicKeys" "amazonka-cloudtrail-1.5.0-GT2y6tjh7SRBi5UfY2VBo1" False) (C1 (MetaCons "ListPublicKeys'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lpkStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) ((:*:) (S1 (MetaSel (Just Symbol "_lpkNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lpkEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))))))
type Rs ListPublicKeys Source # 

Request Lenses

lpkStartTime :: Lens' ListPublicKeys (Maybe UTCTime) Source #

Optionally specifies, in UTC, the start of the time range to look up public keys for CloudTrail digest files. If not specified, the current time is used, and the current public key is returned.

lpkNextToken :: Lens' ListPublicKeys (Maybe Text) Source #

Reserved for future use.

lpkEndTime :: Lens' ListPublicKeys (Maybe UTCTime) Source #

Optionally specifies, in UTC, the end of the time range to look up public keys for CloudTrail digest files. If not specified, the current time is used.

Destructuring the Response

listPublicKeysResponse Source #

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

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

data ListPublicKeysResponse Source #

Returns the objects or data listed below if successful. Otherwise, returns an error.

See: listPublicKeysResponse smart constructor.

Instances

Eq ListPublicKeysResponse Source # 
Data ListPublicKeysResponse Source # 

Methods

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

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

toConstr :: ListPublicKeysResponse -> Constr #

dataTypeOf :: ListPublicKeysResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListPublicKeysResponse Source # 
Show ListPublicKeysResponse Source # 
Generic ListPublicKeysResponse Source # 
NFData ListPublicKeysResponse Source # 

Methods

rnf :: ListPublicKeysResponse -> () #

type Rep ListPublicKeysResponse Source # 
type Rep ListPublicKeysResponse = D1 (MetaData "ListPublicKeysResponse" "Network.AWS.CloudTrail.ListPublicKeys" "amazonka-cloudtrail-1.5.0-GT2y6tjh7SRBi5UfY2VBo1" False) (C1 (MetaCons "ListPublicKeysResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lpkrsPublicKeyList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PublicKey]))) ((:*:) (S1 (MetaSel (Just Symbol "_lpkrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lpkrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

lpkrsPublicKeyList :: Lens' ListPublicKeysResponse [PublicKey] Source #

Contains an array of PublicKey objects.