Skip to content

BedrockAgentCoreControlClient.set_token_vault_cmk

rboto-bedrock-agentcore-control==0.4.0 · Service index · Types

Model summary (excerpt): Sets the customer master key (CMK) for a token vault.

Install and imports

python -m pip install "rboto[bedrock-agentcore-control]==0.4.0"
from rboto import BedrockAgentCoreControlClient
from rboto_bedrock_agentcore_control.types import (
    KmsConfiguration,
    SetTokenVaultCMKOutput,
)

Signature

async def set_token_vault_cmk(
    *,
    kms_configuration: KmsConfiguration,
    token_vault_id: str | None = None,
) -> SetTokenVaultCMKOutput: ...

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)
kms_configuration Yes The KMS configuration for the token vault, including the key type and KMS key ARN.
token_vault_id No The unique identifier of the token vault to update.

Output

SetTokenVaultCMKOutput.

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
token_vault_id str Always present —
kms_configuration KmsConfigurationOutput | None Always present KmsConfigurationOutput
last_modified_date str 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.

KmsConfiguration, SetTokenVaultCMKOutput

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_bedrock_agentcore_control.exceptions:

AccessDeniedError, ConcurrentModificationError, ConflictError, InternalServerError, ResourceNotFoundError, ThrottlingError, UnauthorizedError, ValidationError.

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

Service guide · Pinned model