Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
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 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_endTime :: Lens' ListPublicKeys (Maybe UTCTime)
- listPublicKeys_nextToken :: Lens' ListPublicKeys (Maybe Text)
- listPublicKeys_startTime :: Lens' ListPublicKeys (Maybe UTCTime)
- data ListPublicKeysResponse = ListPublicKeysResponse' {
- nextToken :: Maybe Text
- publicKeyList :: Maybe [PublicKey]
- httpStatus :: Int
- newListPublicKeysResponse :: Int -> ListPublicKeysResponse
- listPublicKeysResponse_nextToken :: Lens' ListPublicKeysResponse (Maybe Text)
- listPublicKeysResponse_publicKeyList :: Lens' ListPublicKeysResponse (Maybe [PublicKey])
- 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: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.
ListPublicKeys
, listPublicKeys_nextToken
- Reserved for future use.
$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.
Request Lenses
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.
listPublicKeys_nextToken :: Lens' ListPublicKeys (Maybe Text) Source #
Reserved for future use.
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.
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:
ListPublicKeys
, listPublicKeysResponse_nextToken
- Reserved for future use.
$sel:publicKeyList:ListPublicKeysResponse'
, listPublicKeysResponse_publicKeyList
- Contains an array of PublicKey objects.
The returned public keys may have validity time ranges that overlap.
$sel:httpStatus:ListPublicKeysResponse'
, listPublicKeysResponse_httpStatus
- The response's http status code.
Response Lenses
listPublicKeysResponse_nextToken :: Lens' ListPublicKeysResponse (Maybe Text) Source #
Reserved for future use.
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_httpStatus :: Lens' ListPublicKeysResponse Int Source #
The response's http status code.