Skip to main content

policy_engines

Creates, updates, deletes, gets or lists a policy_engines resource.

Overview

Namepolicy_engines
TypeResource
Idaws.bedrock_agentcore_control.policy_engines

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe customer-assigned name of the policy engine. This is the human-readable identifier that was specified when the policy engine was created. (pattern: <code>[A-Za-z][A-Za-z0-9_]*</code>)
created_atstring (date-time)The timestamp when the policy engine was originally created.
descriptionstringThe human-readable description of the policy engine's purpose and scope. This helps administrators understand the policy engine's role in governance.
encryption_key_arnstringThe Amazon Resource Name (ARN) of the KMS key used to encrypt the policy engine data. (pattern: <code>arn:aws(|-cn|-us-gov):kms:[a-zA-Z0-9-]*:[0-9]{12}:key/[a-zA-Z0-9-]{36}</code>)
policy_engine_arnstringThe Amazon Resource Name (ARN) of the policy engine. This globally unique identifier can be used for cross-service references and IAM policy statements. (pattern: <code>arn:aws[-a-z]{0,7}:bedrock-agentcore:[a-z0-9-]{9,15}:[0-9]{12}:policy-engine/[a-zA-Z][a-zA-Z0-9-]{0,47}-[a-zA-Z0-9]{10}</code>)
policy_engine_idstringThe unique identifier of the retrieved policy engine. This matches the policy engine ID provided in the request and serves as the system identifier. (pattern: <code>[A-Za-z][A-Za-z0-9_]*-[a-z0-9_]{10}</code>)
statusstringThe current status of the policy engine. (CREATING, ACTIVE, UPDATING, DELETING, CREATE_FAILED, UPDATE_FAILED, DELETE_FAILED)
status_reasonsarrayAdditional information about the policy engine status. This provides details about any failures or the current state of the policy engine.
updated_atstring (date-time)The timestamp when the policy engine was last modified. This tracks the most recent changes to the policy engine configuration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_policy_engineselectpolicy_engine_id, regionRetrieves detailed information about a specific policy engine within the AgentCore Policy system. This operation returns the complete policy engine configuration, metadata, and current status, allowing administrators to review and manage policy engine settings.
list_policy_enginesselectregionnextToken, maxResultsRetrieves a list of policy engines within the AgentCore Policy system. This operation supports pagination to help administrators discover and manage policy engines across their account. Each policy engine serves as a container for related policies.
create_policy_engineinsertregion, nameCreates a new policy engine within the AgentCore Policy system. A policy engine is a collection of policies that evaluates and authorizes agent tool calls. When associated with Gateways (each Gateway can be associated with at most one policy engine, but multiple Gateways can be associated with the same engine), the policy engine intercepts all agent requests and determines whether to allow or deny each action based on the defined policies. This is an asynchronous operation. Use the GetPolicyEngine operation to poll the status field to track completion.
update_policy_engineupdatepolicy_engine_id, regionUpdates an existing policy engine within the AgentCore Policy system. This operation allows modification of the policy engine description while maintaining its identity. This is an asynchronous operation. Use the GetPolicyEngine operation to poll the status field to track completion.
delete_policy_enginedeletepolicy_engine_id, regionDeletes an existing policy engine from the AgentCore Policy system. The policy engine must not have any associated policies before deletion. Once deleted, the policy engine and all its configurations become unavailable for policy management and evaluation. This is an asynchronous operation. Use the GetPolicyEngine operation to poll the status field to track completion.

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.

NameDatatypeDescription
policy_engine_idstringThe unique identifier of the policy engine to be deleted. This must be a valid policy engine ID that exists within the account.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of policy engines to return in a single response. If not specified, the default is 10 policy engines per page, with a maximum of 100 per page.
nextTokenstringA pagination token returned from a previous ListPolicyEngines call. Use this token to retrieve the next page of results when the response is paginated.

SELECT examples

Retrieves detailed information about a specific policy engine within the AgentCore Policy system. This operation returns the complete policy engine configuration, metadata, and current status, allowing administrators to review and manage policy engine settings.

SELECT
name,
created_at,
description,
encryption_key_arn,
policy_engine_arn,
policy_engine_id,
status,
status_reasons,
updated_at
FROM aws.bedrock_agentcore_control.policy_engines
WHERE policy_engine_id = '{{ policy_engine_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new policy engine within the AgentCore Policy system. A policy engine is a collection of policies that evaluates and authorizes agent tool calls. When associated with Gateways (each Gateway can be associated with at most one policy engine, but multiple Gateways can be associated with the same engine), the policy engine intercepts all agent requests and determines whether to allow or deny each action based on the defined policies. This is an asynchronous operation. Use the GetPolicyEngine operation to poll the status field to track completion.

INSERT INTO aws.bedrock_agentcore_control.policy_engines (
name,
description,
clientToken,
encryptionKeyArn,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ clientToken }}',
'{{ encryptionKeyArn }}',
'{{ tags }}',
'{{ region }}'
RETURNING
name,
created_at,
description,
encryption_key_arn,
policy_engine_arn,
policy_engine_id,
status,
status_reasons,
updated_at
;

UPDATE examples

Updates an existing policy engine within the AgentCore Policy system. This operation allows modification of the policy engine description while maintaining its identity. This is an asynchronous operation. Use the GetPolicyEngine operation to poll the status field to track completion.

UPDATE aws.bedrock_agentcore_control.policy_engines
SET
description = '{{ description }}'
WHERE
policy_engine_id = '{{ policy_engine_id }}' --required
AND region = '{{ region }}' --required
RETURNING
name,
created_at,
description,
encryption_key_arn,
policy_engine_arn,
policy_engine_id,
status,
status_reasons,
updated_at;

DELETE examples

Deletes an existing policy engine from the AgentCore Policy system. The policy engine must not have any associated policies before deletion. Once deleted, the policy engine and all its configurations become unavailable for policy management and evaluation. This is an asynchronous operation. Use the GetPolicyEngine operation to poll the status field to track completion.

DELETE FROM aws.bedrock_agentcore_control.policy_engines
WHERE policy_engine_id = '{{ policy_engine_id }}' --required
AND region = '{{ region }}' --required
;