Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- listPublicKeys :: ListPublicKeys
- data ListPublicKeys
- lpkStartTime :: Lens' ListPublicKeys (Maybe UTCTime)
- lpkNextToken :: Lens' ListPublicKeys (Maybe Text)
- lpkEndTime :: Lens' ListPublicKeys (Maybe UTCTime)
- listPublicKeysResponse :: Int -> ListPublicKeysResponse
- data ListPublicKeysResponse
- lpkrsPublicKeyList :: Lens' ListPublicKeysResponse [PublicKey]
- lpkrsNextToken :: Lens' ListPublicKeysResponse (Maybe Text)
- lpkrsResponseStatus :: Lens' ListPublicKeysResponse Int
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:
data ListPublicKeys Source #
Requests the public keys for a specified time range.
See: listPublicKeys
smart constructor.
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.
Response Lenses
lpkrsPublicKeyList :: Lens' ListPublicKeysResponse [PublicKey] Source #
Contains an array of PublicKey objects.
The returned public keys may have validity time ranges that overlap.
lpkrsNextToken :: Lens' ListPublicKeysResponse (Maybe Text) Source #
Reserved for future use.
lpkrsResponseStatus :: Lens' ListPublicKeysResponse Int Source #
The response status code.