Skip to content
v2.278.0

ValidationSettingsProperty ​

Struct External

A structure that contains Cedar policy validation settings for the policy store.

The validation mode determines which validation failures that Cedar considers serious enough to block acceptance of a new or edited static policy or policy template.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_verifiedpermissions as verifiedpermissions } from 'aws-cdk-lib';
const validationSettingsProperty: verifiedpermissions.CfnPolicyStore.ValidationSettingsProperty = {
  mode: 'mode',
};
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_verifiedpermissions as verifiedpermissions

validation_settings_property = verifiedpermissions.CfnPolicyStore.ValidationSettingsProperty(
    mode="mode"
)
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.verifiedpermissions.*;

ValidationSettingsProperty validationSettingsProperty = ValidationSettingsProperty.builder()
        .mode("mode")
        .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.VerifiedPermissions;

var validationSettingsProperty = new ValidationSettingsProperty {
    Mode = "mode"
};
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"

validationSettingsProperty := &ValidationSettingsProperty{
	Mode: jsii.String("mode"),
}

Properties ​

modestringmodestrmodeStringModestringMode*string required #
The validation mode currently configured for this policy store. The valid values are:.
notes
  • OFF – Neither Verified Permissions nor Cedar perform any validation on policies. No validation errors are reported by either service.
  • STRICT – Requires a schema to be present in the policy store. Cedar performs validation on all submitted new or updated static policies and policy templates. Any that fail validation are rejected and Cedar doesn't store them in the policy store.

If Mode=STRICT and the policy store doesn't contain a schema, Verified Permissions rejects all static policies and policy templates because there is no schema to validate against.

To submit a static policy or policy template without a schema, you must turn off validation.