# IPolicyValidationContext

Context available to the validation plugin.

- Source: [`core/lib/validation/validation.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/core/lib/validation/validation.ts#L69)
- Type last changed: v2.269.0 · 10 Sep 2026

## Properties

- `accountId`: string — Use `stackTemplates` instead, which contains the account ID for each stack.

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

- `appConstruct`: [IConstruct](/cdk/api/v2/docs/constructs.IConstruct.html) (required) — 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`: string — Use `stackTemplates` instead, which contains the region for each stack.

  Only set if all stacks have the exact same region.

- `stackTemplates`: [PolicyValidationStack](/cdk/api/v2/docs/aws-cdk-lib.PolicyValidationStack.html)[] (required) — The absolute path of all templates to be processed, along with the stack construct path for each template.

- `templatePaths`: string[] (required) — The absolute path of all templates to be processed.
