Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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 and public key pairs per region. Each digest file is signed with a private key unique to its region. When you validate a digest file from a specific region, you must look in the same region for its corresponding public key.
This operation returns paginated results.
Synopsis
- data ListPublicKeys = ListPublicKeys' {}
- newListPublicKeys :: ListPublicKeys
- listPublicKeys_startTime :: Lens' ListPublicKeys (Maybe UTCTime)
- listPublicKeys_nextToken :: Lens' ListPublicKeys (Maybe Text)
- listPublicKeys_endTime :: Lens' ListPublicKeys (Maybe UTCTime)
- data ListPublicKeysResponse = ListPublicKeysResponse' {
- publicKeyList :: Maybe [PublicKey]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListPublicKeysResponse :: Int -> ListPublicKeysResponse
- listPublicKeysResponse_publicKeyList :: Lens' ListPublicKeysResponse (Maybe [PublicKey])
- listPublicKeysResponse_nextToken :: Lens' ListPublicKeysResponse (Maybe Text)
- listPublicKeysResponse_httpStatus :: Lens' ListPublicKeysResponse Int
Creating a Request
data ListPublicKeys Source #
Requests the public keys for a specified time range.
See: newListPublicKeys
smart constructor.
ListPublicKeys' | |
|
Instances
newListPublicKeys :: ListPublicKeys Source #
Create a value of ListPublicKeys
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:startTime:ListPublicKeys'
, listPublicKeys_startTime
- 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.
$sel:nextToken:ListPublicKeys'
, listPublicKeys_nextToken
- Reserved for future use.
$sel:endTime:ListPublicKeys'
, listPublicKeys_endTime
- 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.
Request Lenses
listPublicKeys_startTime :: 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.
listPublicKeys_nextToken :: Lens' ListPublicKeys (Maybe Text) Source #
Reserved for future use.
listPublicKeys_endTime :: 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
data ListPublicKeysResponse Source #
Returns the objects or data listed below if successful. Otherwise, returns an error.
See: newListPublicKeysResponse
smart constructor.
ListPublicKeysResponse' | |
|
Instances
newListPublicKeysResponse Source #
Create a value of ListPublicKeysResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:publicKeyList:ListPublicKeysResponse'
, listPublicKeysResponse_publicKeyList
- Contains an array of PublicKey objects.
The returned public keys may have validity time ranges that overlap.
$sel:nextToken:ListPublicKeys'
, listPublicKeysResponse_nextToken
- Reserved for future use.
$sel:httpStatus:ListPublicKeysResponse'
, listPublicKeysResponse_httpStatus
- The response's http status code.
Response Lenses
listPublicKeysResponse_publicKeyList :: Lens' ListPublicKeysResponse (Maybe [PublicKey]) Source #
Contains an array of PublicKey objects.
The returned public keys may have validity time ranges that overlap.
listPublicKeysResponse_nextToken :: Lens' ListPublicKeysResponse (Maybe Text) Source #
Reserved for future use.
listPublicKeysResponse_httpStatus :: Lens' ListPublicKeysResponse Int Source #
The response's http status code.