# PolicyValidationStack

Information about a single stack that is being validated.

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

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const policyValidationStack: cdk.PolicyValidationStack = {
  stackConstructPath: 'stackConstructPath',
  templatePath: 'templatePath',

  // the properties below are optional
  accountId: 'accountId',
  region: 'region',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

policy_validation_stack = cdk.PolicyValidationStack(
    stack_construct_path="stackConstructPath",
    template_path="templatePath",

    # the properties below are optional
    account_id="accountId",
    region="region"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;

PolicyValidationStack policyValidationStack = PolicyValidationStack.builder()
        .stackConstructPath("stackConstructPath")
        .templatePath("templatePath")

        // the properties below are optional
        .accountId("accountId")
        .region("region")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;

var policyValidationStack = new PolicyValidationStack {
    StackConstructPath = "stackConstructPath",
    TemplatePath = "templatePath",

    // the properties below are optional
    AccountId = "accountId",
    Region = "region"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"

policyValidationStack := &PolicyValidationStack{
	StackConstructPath: jsii.String("stackConstructPath"),
	TemplatePath: jsii.String("templatePath"),

	// the properties below are optional
	AccountId: jsii.String("accountId"),
	Region: jsii.String("region"),
}
```

## Properties

- `accountId`: string — The account ID for this stack, if known.

  **Default:** the account ID is unknown

- `region`: string — The region for this stack, if known.

  **Default:** the region is unknown

- `stackConstructPath`: string (required) — The Stack's construct path.

- `templatePath`: string (required) — The path to the template file on disk.
