PolicyViolatingResourceBeta1 Struct
Resource violating a specific rule.
| Source | core/lib/validation/report.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 policyViolatingResourceBeta1: cdk.PolicyViolatingResourceBeta1 = {
locations: ['locations'],
resourceLogicalId: 'resourceLogicalId',
templatePath: 'templatePath',
};
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_violating_resource_beta1 = cdk.PolicyViolatingResourceBeta1(
locations=["locations"],
resource_logical_id="resourceLogicalId",
template_path="templatePath"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
PolicyViolatingResourceBeta1 policyViolatingResourceBeta1 = PolicyViolatingResourceBeta1.builder()
.locations(List.of("locations"))
.resourceLogicalId("resourceLogicalId")
.templatePath("templatePath")
.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 policyViolatingResourceBeta1 = new PolicyViolatingResourceBeta1 {
Locations = new [] { "locations" },
ResourceLogicalId = "resourceLogicalId",
TemplatePath = "templatePath"
};
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"
policyViolatingResourceBeta1 := &PolicyViolatingResourceBeta1{
Locations: []*string{
jsii.String("locations"),
},
ResourceLogicalId: jsii.String("resourceLogicalId"),
TemplatePath: jsii.String("templatePath"),
}
Properties
locationsstring[]locationstyping.List[str]locationsList<String>Locationsstring[]Locations*[]*string required #The locations in the CloudFormation template that pose the violations.
resourceLogicalIdstringresource_logical_idstrresourceLogicalIdStringResourceLogicalIdstringResourceLogicalId*string required #The logical ID of the resource in the CloudFormation template.
templatePathstringtemplate_pathstrtemplatePathStringTemplatePathstringTemplatePath*string required #The path to the CloudFormation template that contains this resource.