Skip to content
v2.273.0

IPolicyValidationContext Interface ​

Context available to the validation plugin.

Properties ​

accountIdstringaccount_idstraccountIdStringAccountIdstringAccountId*stringdeprecated#
Use `stackTemplates` instead, which contains the account ID for each stack.

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

appConstructIConstructapp_constructIConstructappConstructIConstructAppConstructIConstructAppConstructIConstructrequired#
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.

regionstringregionstrregionStringRegionstringRegion*stringdeprecated#
Use `stackTemplates` instead, which contains the region for each stack.

Only set if all stacks have the exact same region.

stackTemplatesPolicyValidationStack[]stack_templatestyping.List[PolicyValidationStack]stackTemplatesList<PolicyValidationStack>StackTemplatesPolicyValidationStack[]StackTemplates*[]PolicyValidationStackrequired#
The absolute path of all templates to be processed, along with the stack construct path for each template.
templatePathsstring[]template_pathstyping.List[str]templatePathsList<String>TemplatePathsstring[]TemplatePaths*[]*stringrequired#
The absolute path of all templates to be processed.