token_vaults
Creates, updates, deletes, gets or lists a token_vaults resource.
Overview
| Name | token_vaults |
| Type | Resource |
| Id | aws.bedrock_agentcore_control.token_vaults |
Fields
The following fields are returned by SELECT queries:
- get_token_vault
| Name | Datatype | Description |
|---|---|---|
kms_configuration | object | The KMS configuration for the token vault. |
last_modified_date | string (date-time) | The timestamp when the token vault was last modified. |
token_vault_id | string | The ID of the token vault. (pattern: <code>[a-zA-Z0-9-_]+</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_token_vault | select | region | Retrieves information about a token vault. | |
set_token_vault_cmk | update | region, kmsConfiguration | Sets the customer master key (CMK) for a token vault. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_token_vault
Retrieves information about a token vault.
SELECT
kms_configuration,
last_modified_date,
token_vault_id
FROM aws.bedrock_agentcore_control.token_vaults
WHERE region = '{{ region }}' -- required
;
UPDATE examples
- set_token_vault_cmk
Sets the customer master key (CMK) for a token vault.
UPDATE aws.bedrock_agentcore_control.token_vaults
SET
tokenVaultId = '{{ tokenVaultId }}',
kmsConfiguration = '{{ kmsConfiguration }}'
WHERE
region = '{{ region }}' --required
AND kmsConfiguration = '{{ kmsConfiguration }}' --required
RETURNING
kms_configuration,
last_modified_date,
token_vault_id;