CfnPolicyStoreProps Struct
Properties for defining a CfnPolicyStore.
- Source
- Generated code
- Type last changed
- v2.241.0 · 2 Mar 2026
Example
// 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';
declare const default_: any;
const cfnPolicyStoreProps: verifiedpermissions.CfnPolicyStoreProps = {
validationSettings: {
mode: 'mode',
},
// the properties below are optional
deletionProtection: {
mode: 'mode',
},
description: 'description',
encryptionSettings: {
default: default_,
kmsEncryptionSettings: {
key: 'key',
// the properties below are optional
encryptionContext: {
encryptionContextKey: 'encryptionContext',
},
},
},
schema: {
cedarJson: 'cedarJson',
},
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
deletionProtection?optionalIResolvable | CfnPolicyStore.DeletionProtectionPropertydeletion_protection?optionaltyping.Union[IResolvable, DeletionProtectionProperty]deletionProtection?optionalIResolvableDeletionProtection?optionalIResolvableDeletionProtection?optionalinterface{}#The default state is DISABLED .
description?optionalstringdescription?optionalstrdescription?optionalStringDescription?optionalstringDescription?optional*string#encryptionSettings?optionalIResolvable | CfnPolicyStore.EncryptionSettingsPropertyencryption_settings?optionaltyping.Union[IResolvable, EncryptionSettingsProperty]encryptionSettings?optionalIResolvableEncryptionSettings?optionalIResolvableEncryptionSettings?optionalinterface{}#schema?optionalIResolvable | CfnPolicyStore.SchemaDefinitionPropertyschema?optionaltyping.Union[IResolvable, SchemaDefinitionProperty]schema?optionalIResolvableSchema?optionalIResolvableSchema?optionalinterface{}#notes
Cedar can use the schema to validate any Cedar policies and policy templates submitted to the policy store. Any changes to the schema validate only policies and templates submitted after the schema change. Existing policies and templates are not re-evaluated against the changed schema. If you later update a policy, then it is evaluated against the new schema at that time.
tags?optionalCfnTag[]tags?optionaltyping.List[CfnTag]tags?optionalList<CfnTag>Tags?optionalCfnTag[]Tags?optional*[]CfnTag#validationSettingsIResolvable | CfnPolicyStore.ValidationSettingsPropertyvalidation_settingstyping.Union[IResolvable, ValidationSettingsProperty]validationSettingsIResolvableValidationSettingsIResolvableValidationSettingsinterface{}required#notes
Currently, the only valid and required value is Mode .
We recommend that you turn on
STRICTmode only after you define a schema. If a schema doesn't exist, thenSTRICTmode causes any policy to fail validation, and Verified Permissions rejects the policy. You can turn off validation by using the UpdatePolicyStore . Then, when you have a schema defined, use UpdatePolicyStore again to turn validation back on.