amazonka-cloudtrail-1.3.5: Amazon CloudTrail SDK.

Copyright(c) 2013-2015 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.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.

CloudTrail uses different private/public key pairs per region. Each digest file is signed with a private key unique to its region. Therefore, when you validate a digest file from a particular region, you must look in the same region for its corresponding public key.

See: AWS API Reference for ListPublicKeys.

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:

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:

Response Lenses

lpkrsPublicKeyList :: Lens' ListPublicKeysResponse [PublicKey] Source

Contains an array of PublicKey objects.

The returned public keys may have validity time ranges that overlap.