Skip to content

KMSClient.rotate_key_on_demand

rboto-kms==0.4.0 · Service index · Types

Model summary (excerpt): Immediately initiates rotation of the key material of the specified symmetric encryption KMS key. You can perform on-demand rotation of the key material in customer managed KMS keys, regardless of whether or not automatic key rotation is enabled. On-demand rotations do not change existing automatic rotation schedules. For example, consider a KMS key that has automatic key rotation enabled with...

Install and imports

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

Signature

async def rotate_key_on_demand(
    *,
    key_id: str,
) -> RotateKeyOnDemandOutput: ...

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 Identifies a symmetric encryption KMS key. You cannot perform on-demand rotation of asymmetric KMS keys , HMAC KMS keys , multi-Region KMS keys with imported key material , or KMS keys in a custom key store . To perform on-demand rotation of a set of related multi-Region keys , invoke the on-demand rotation on the primary key. Specify the key ID or key ARN of the KMS key. For example: Key ID:...

Output

RotateKeyOnDemandOutput.

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
key_id 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.

RotateKeyOnDemandOutput

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

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_kms.exceptions:

ConflictError, DependencyTimeoutError, DisabledError, InvalidArnError, KMSInternalError, KMSInvalidStateError, LimitExceededError, NotFoundError, UnsupportedOperationError.

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

Service guide · Pinned model