Skip to content

Policy

Source code in docs_src/capo_bedrock_agentcore_control/types/policy.py
class Policy(TypedDict, closed=True):
    policy_id: "capo_bedrock_agentcore_control.types.resource_id.ResourceId"
    """<p>The unique identifier for the policy. This system-generated identifier consists of the user name plus a 10-character generated suffix and serves as the primary key for policy operations.</p>"""
    name: "capo_bedrock_agentcore_control.types.policy_name.PolicyName"
    """<p>The customer-assigned immutable name for the policy. This human-readable identifier must be unique within the account and cannot exceed 48 characters.</p>"""
    policy_engine_id: "capo_bedrock_agentcore_control.types.resource_id.ResourceId"
    """<p>The identifier of the policy engine that manages this policy. This establishes the policy engine context for policy evaluation and management.</p>"""
    created_at: "capo_bedrock_agentcore_control.types.date_timestamp.DateTimestamp"
    """<p>The timestamp when the policy was originally created. This is automatically set by the service and used for auditing and lifecycle management.</p>"""
    updated_at: "capo_bedrock_agentcore_control.types.date_timestamp.DateTimestamp"
    """<p>The timestamp when the policy was last modified. This tracks the most recent changes to the policy configuration or metadata.</p>"""
    policy_arn: "capo_bedrock_agentcore_control.types.policy_arn.PolicyArn"
    """<p>The Amazon Resource Name (ARN) of the policy. This globally unique identifier can be used for cross-service references and IAM policy statements.</p>"""
    status: "capo_bedrock_agentcore_control.types.policy_status.PolicyStatus"
    """<p>The current status of the policy.</p>"""
    enforcement_mode: (
        "capo_bedrock_agentcore_control.types.enforcement_mode.EnforcementMode"
    )
    """<p>The current enforcement mode of the policy.</p>"""
    definition: (
        "capo_bedrock_agentcore_control.types.policy_definition.PolicyDefinition"
    )
    """<p>The Cedar or Dogwood policy statement that defines the access control rules. This contains the actual policy logic used for agent behavior control and access decisions.</p>"""
    description: NotRequired[
        "capo_bedrock_agentcore_control.types.description.Description"
    ]
    """<p>A human-readable description of the policy's purpose and functionality. Limited to 4,096 characters, this helps administrators understand and manage the policy.</p>"""
    status_reasons: (
        "capo_bedrock_agentcore_control.types.policy_status_reasons.PolicyStatusReasons"
    )
    """<p>Additional information about the policy status. This provides details about any failures or the current state of the policy lifecycle.</p>"""

created_at instance-attribute

created_at: DateTimestamp

The timestamp when the policy was originally created. This is automatically set by the service and used for auditing and lifecycle management.

definition instance-attribute

definition: PolicyDefinition

The Cedar or Dogwood policy statement that defines the access control rules. This contains the actual policy logic used for agent behavior control and access decisions.

description instance-attribute

description: NotRequired[Description]

A human-readable description of the policy's purpose and functionality. Limited to 4,096 characters, this helps administrators understand and manage the policy.

enforcement_mode instance-attribute

enforcement_mode: EnforcementMode

The current enforcement mode of the policy.

name instance-attribute

name: PolicyName

The customer-assigned immutable name for the policy. This human-readable identifier must be unique within the account and cannot exceed 48 characters.

policy_arn instance-attribute

policy_arn: PolicyArn

The Amazon Resource Name (ARN) of the policy. This globally unique identifier can be used for cross-service references and IAM policy statements.

policy_engine_id instance-attribute

policy_engine_id: ResourceId

The identifier of the policy engine that manages this policy. This establishes the policy engine context for policy evaluation and management.

policy_id instance-attribute

policy_id: ResourceId

The unique identifier for the policy. This system-generated identifier consists of the user name plus a 10-character generated suffix and serves as the primary key for policy operations.

status instance-attribute

status: PolicyStatus

The current status of the policy.

status_reasons instance-attribute

status_reasons: PolicyStatusReasons

Additional information about the policy status. This provides details about any failures or the current state of the policy lifecycle.

updated_at instance-attribute

updated_at: DateTimestamp

The timestamp when the policy was last modified. This tracks the most recent changes to the policy configuration or metadata.