Skip to content

KMSClient.list_key_rotations

rboto-kms==0.4.0 · Service index · Types

Model summary (excerpt): Returns information about the key materials associated with the specified KMS key. You can use the optional IncludeKeyMaterial parameter to control which key materials are included in the response. You must specify the KMS key in all requests. You can refine the key rotations list by limiting the number of rotations returned. For detailed information about automatic and on-demand key...

Install and imports

python -m pip install "rboto[kms]==0.4.0"
from rboto import KMSClient
from rboto_kms.types import (
    IncludeKeyMaterial,
    ListKeyRotationsOutput,
)

Signature

async def list_key_rotations(
    *,
    key_id: str,
    include_key_material: IncludeKeyMaterial | None = None,
    limit: int | None = None,
    marker: str | None = None,
) -> ListKeyRotationsOutput: ...

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)
key_id Yes Gets the key rotations for the specified KMS key. Specify the key ID or key ARN of the KMS key. For example: Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey .
include_key_material No Use this optional parameter to control which key materials associated with this key are listed in the response. The default value of this parameter is ROTATIONS_ONLY . If you omit this parameter, KMS returns information on the key materials created by automatic or on-demand key rotation. When you specify a value of ALL_KEY_MATERIAL , KMS adds the first key material and any imported key...
limit No Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not return more than the specified number of items, but it might return fewer. This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100.
marker No Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the truncated response you just received.

Output

ListKeyRotationsOutput.

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
rotations list[RotationsListEntryOutput] | None Always present RotationsListEntryOutput
next_marker str | None Always present —
truncated bool 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.

IncludeKeyMaterial, ListKeyRotationsOutput

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

Pagination and streaming

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

Input cursors: marker. Page-size argument: limit.

No output stream.

Errors

Import from rboto_kms.exceptions:

InvalidArnError, InvalidMarkerError, KMSInternalError, KMSInvalidStateError, NotFoundError, UnsupportedOperationError.

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

Service guide · Pinned model