Skip to content

CloudTrailClient.list_public_keys

rboto-cloudtrail==0.4.0 · Service index · Types

Model summary (excerpt): 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...

Install and imports

python -m pip install "rboto[cloudtrail]==0.4.0"
from rboto import CloudTrailClient
from rboto_cloudtrail.types import (
    ListPublicKeysOutput,
)

Signature

async def list_public_keys(
    *,
    start_time: str | None = None,
    end_time: str | None = None,
    next_token: str | None = None,
) -> ListPublicKeysOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
start_time No 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.
end_time No 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.
next_token No Reserved for future use.

Output

ListPublicKeysOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
public_key_list list[PublicKeyOutput] | None Always present PublicKeyOutput
next_token str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

ListPublicKeysOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

client.paginators.list_public_keys(...) accepts the same arguments and returns AsyncIterator[ListPublicKeysOutput]. Direct calls return one page. Pages preserve the Output representation above.

Input cursors: next_token. Page-size argument: not exposed.

No output stream.

Errors

Import from rboto_cloudtrail.exceptions:

InvalidTimeRangeError, InvalidTokenError, OperationNotPermittedError, UnsupportedOperationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model