IPolicyValidationContext

class aws_cdk.IPolicyValidationContext(*args, **kwargs)

Bases: Protocol

Context available to the validation plugin.

Attributes

account_id

(deprecated) The account ID for these templates, if known.

Only set if all stacks have the exact same account ID.

Deprecated:

Use stackTemplates instead, which contains the account ID for each stack.

Stability:

deprecated

app_construct

The root construct of the app being validated.

Plugins may walk this tree for typed L1 property access and token resolution via Stack.of(node).resolve(). The tree is finalized and should be treated as read-only; mutations have no effect on synthesized output.

region

(deprecated) The region for these templates, if known.

Only set if all stacks have the exact same region.

Deprecated:

Use stackTemplates instead, which contains the region for each stack.

Stability:

deprecated

stack_templates

The absolute path of all templates to be processed, along with the stack construct path for each template.

template_paths

The absolute path of all templates to be processed.