PolicyDefinitionDict¶
Union Type¶
PolicyDefinitionDict
module-attribute
¶
PolicyDefinitionDict = Union[PolicyDefinitionCedarDict | PolicyDefinitionPolicyGenerationDict | PolicyDefinitionPolicyDict]
Dictionary form of PolicyDefinition, setting exactly one variant.
Union Member Types¶
PolicyDefinitionCedarDict
¶
Bases: TypedDict
Attributes¶
cedar
instance-attribute
¶
cedar: CedarPolicy | CedarPolicyDict
The Cedar policy definition within the policy definition structure. This contains the Cedar policy statement that defines the authorization logic using Cedar's human-readable, analyzable policy language. Cedar policies specify principals (who can access), actions (what operations are allowed), resources (what can be accessed), and optional conditions for fine-grained control. Cedar provides a formal policy language designed for authorization with deterministic evaluation, making policies testable, reviewable, and auditable. All Cedar policies follow a default-deny model where actions are denied unless explicitly permitted, and forbid policies always override permit policies.
PolicyDefinitionPolicyGenerationDict
¶
Bases: TypedDict
Attributes¶
policy_generation
instance-attribute
¶
policy_generation: PolicyGenerationDetails | PolicyGenerationDetailsDict
The generated policy asset information within the policy definition structure. This contains information identifying a generated policy asset from the AI-powered policy generation process within the AgentCore Policy system. Each asset contains a Dogwood policy statement generated from natural language input, along with associated metadata and analysis findings to help users evaluate and select the most appropriate policy option.
PolicyDefinitionPolicyDict
¶
Bases: TypedDict
Attributes¶
policy
instance-attribute
¶
policy: PolicyStatement | PolicyStatementDict
The Dogwood policy statement that defines the access control rules. This policy definition can include Dogwood policies and supports temporal conditions and information providers such as guardrails.