Skip to main content

public_keys

Creates, updates, deletes, gets or lists a public_keys resource.

Overview

Namepublic_keys
TypeResource
Idaws.cloudtrail.public_keys

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
fingerprintstringThe fingerprint of the public key.
validity_end_timestring (date-time)The ending time of validity of the public key.
validity_start_timestring (date-time)The starting time of validity of the public key.
valuestring (byte)The DER encoded public key value in PKCS#1 format.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_public_keysselectregionReturns 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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.

SELECT
fingerprint,
validity_end_time,
validity_start_time,
value
FROM aws.cloudtrail.public_keys
WHERE region = '{{ region }}' -- required
;