Skip to main content

policy_generations

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

Overview

Namepolicy_generations
TypeResource
Idaws.bedrock_agentcore_control.policy_generations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe customer-assigned name for the policy generation request. This helps identify and track generation operations across multiple requests. (pattern: <code>[A-Za-z][A-Za-z0-9_]*</code>)
created_atstring (date-time)The timestamp when the policy generation request was created. This is used for tracking and auditing generation operations and their lifecycle.
findingsstringThe findings and results from the policy generation process. This includes any issues, recommendations, validation results, or insights from the generated policies.
policy_engine_idstringThe identifier of the policy engine associated with this policy generation. This confirms the policy engine context for the generation operation. (pattern: <code>[A-Za-z][A-Za-z0-9_]*-[a-z0-9_]{10}</code>)
policy_generation_arnstringThe Amazon Resource Name (ARN) of the policy generation. This globally unique identifier can be used for tracking, auditing, and cross-service references. (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}/policy-generation/[a-zA-Z][a-zA-Z0-9-]{0,47}-[a-zA-Z0-9]{10}</code>)
policy_generation_idstringThe unique identifier of the policy generation request. This matches the generation ID provided in the request and serves as the tracking identifier. (pattern: <code>[A-Za-z][A-Za-z0-9_]*-[a-z0-9_]{10}</code>)
resourceobjectThe resource information associated with the policy generation. This provides context about the target resources for which the policies are being generated.
statusstringThe current status of the policy generation. This indicates whether the generation is in progress, completed successfully, or failed during processing. (GENERATING, GENERATED, GENERATE_FAILED, DELETE_FAILED)
status_reasonsarrayAdditional information about the generation status. This provides details about any failures, warnings, or the current state of the generation process.
updated_atstring (date-time)The timestamp when the policy generation was last updated. This tracks the progress of the generation process and any status changes.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_policy_generationselectpolicy_generation_id, policy_engine_id, regionRetrieves information about a policy generation request within the AgentCore Policy system. Policy generation converts natural language descriptions into Cedar policy statements using AI-powered translation, enabling non-technical users to create policies.
list_policy_generationsselectpolicy_engine_id, regionnextToken, maxResultsRetrieves a list of policy generation requests within the AgentCore Policy system. This operation supports pagination and filtering to help track and manage AI-powered policy generation operations.

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 identifier of the policy engine whose policy generations to retrieve.
policy_generation_idstringThe unique identifier of the policy generation request to be retrieved. This must be a valid generation ID from a previous StartPolicyGeneration call.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of policy generations to return in a single response.
nextTokenstringA pagination token for retrieving additional policy generations when results are paginated.

SELECT examples

Retrieves information about a policy generation request within the AgentCore Policy system. Policy generation converts natural language descriptions into Cedar policy statements using AI-powered translation, enabling non-technical users to create policies.

SELECT
name,
created_at,
findings,
policy_engine_id,
policy_generation_arn,
policy_generation_id,
resource,
status,
status_reasons,
updated_at
FROM aws.bedrock_agentcore_control.policy_generations
WHERE policy_generation_id = '{{ policy_generation_id }}' -- required
AND policy_engine_id = '{{ policy_engine_id }}' -- required
AND region = '{{ region }}' -- required
;