PolicyValidationStack Struct
Information about a single stack that is being validated.
| Source | core/lib/validation/validation.ts |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
accountIdoptionalstringaccount_idoptionalstraccountIdoptionalStringAccountIdoptionalstringAccountIdoptional*string #The account ID for this stack, if known.
Default: the account ID is unknown
regionoptionalstringregionoptionalstrregionoptionalStringRegionoptionalstringRegionoptional*string #The region for this stack, if known.
Default: the region is unknown
stackConstructPathstringstack_construct_pathstrstackConstructPathStringStackConstructPathstringStackConstructPath*string required #The Stack's construct path.
templatePathstringtemplate_pathstrtemplatePathStringTemplatePathstringTemplatePath*string required #The path to the template file on disk.