ResourcePolicyValidationOptions Struct
Options for resource-based policy validation.
| Source | aws-iam/lib/policy-statement.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 { aws_iam as iam } from 'aws-cdk-lib';
const resourcePolicyValidationOptions: iam.ResourcePolicyValidationOptions = {
skipResourceValidation: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iam as iam
resource_policy_validation_options = iam.ResourcePolicyValidationOptions(
skip_resource_validation=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iam.*;
ResourcePolicyValidationOptions resourcePolicyValidationOptions = ResourcePolicyValidationOptions.builder()
.skipResourceValidation(false)
.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.AWS.IAM;
var resourcePolicyValidationOptions = new ResourcePolicyValidationOptions {
SkipResourceValidation = false
};
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 "github.com/aws/aws-cdk-go/awscdk"
resourcePolicyValidationOptions := &ResourcePolicyValidationOptions{
SkipResourceValidation: jsii.Boolean(false),
}
Properties
skipResourceValidationoptionalbooleanskip_resource_validationoptionalboolskipResourceValidationoptionalBooleanSkipResourceValidationoptionalboolSkipResourceValidationoptional*bool = false #Whether to skip resource validation for policies where resources are implicit (e.g., ECR repository policies where the resource is the repository itself).