amazonka-cloudtrail-1.6.0: Amazon CloudTrail 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.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 #

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 #

Requests the public keys for a specified time range.

See: listPublicKeys smart constructor.

Instances

Eq ListPublicKeys # 
Data ListPublicKeys # 

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 # 
Show ListPublicKeys # 
Generic ListPublicKeys # 

Associated Types

type Rep ListPublicKeys :: * -> * #

Hashable ListPublicKeys # 
ToJSON ListPublicKeys # 
NFData ListPublicKeys # 

Methods

rnf :: ListPublicKeys -> () #

AWSRequest ListPublicKeys # 
ToHeaders ListPublicKeys # 
ToPath ListPublicKeys # 
ToQuery ListPublicKeys # 
type Rep ListPublicKeys # 
type Rep ListPublicKeys = D1 * (MetaData "ListPublicKeys" "Network.AWS.CloudTrail.ListPublicKeys" "amazonka-cloudtrail-1.6.0-FtX1PWl9UH1Ll5Gb3xSmkU" 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 # 

Request Lenses

lpkStartTime :: Lens' ListPublicKeys (Maybe UTCTime) #

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) #

Reserved for future use.

lpkEndTime :: Lens' ListPublicKeys (Maybe UTCTime) #

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 #

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 #

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

See: listPublicKeysResponse smart constructor.

Instances

Eq ListPublicKeysResponse # 
Data ListPublicKeysResponse # 

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 # 
Show ListPublicKeysResponse # 
Generic ListPublicKeysResponse # 
NFData ListPublicKeysResponse # 

Methods

rnf :: ListPublicKeysResponse -> () #

type Rep ListPublicKeysResponse # 
type Rep ListPublicKeysResponse = D1 * (MetaData "ListPublicKeysResponse" "Network.AWS.CloudTrail.ListPublicKeys" "amazonka-cloudtrail-1.6.0-FtX1PWl9UH1Ll5Gb3xSmkU" 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] #

Contains an array of PublicKey objects.

lpkrsNextToken :: Lens' ListPublicKeysResponse (Maybe Text) #

Reserved for future use.

lpkrsResponseStatus :: Lens' ListPublicKeysResponse Int #

  • - | The response status code.