Interface CfnPolicyStoreProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPolicyStoreProps.Jsii$Proxy
CfnPolicyStore.
Example:
// 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.*;
CfnPolicyStoreProps cfnPolicyStoreProps = CfnPolicyStoreProps.builder()
.validationSettings(ValidationSettingsProperty.builder()
.mode("mode")
.build())
// the properties below are optional
.deletionProtection(DeletionProtectionProperty.builder()
.mode("mode")
.build())
.description("description")
.schema(SchemaDefinitionProperty.builder()
.cedarFormat("cedarFormat")
.cedarJson("cedarJson")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPolicyStorePropsstatic final classAn implementation forCfnPolicyStoreProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnPolicyStoreProps.Builderbuilder()default ObjectSpecifies whether the policy store can be deleted.default StringDescriptive text that you can provide to help with identification of the current policy store.default ObjectCreates or updates the policy schema in a policy store.getTags()The list of key-value pairs to associate with the policy store.Specifies the validation setting for this policy store.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getValidationSettings
Specifies the validation setting for this policy store.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.Returns union: either
IResolvableorCfnPolicyStore.ValidationSettingsProperty- See Also:
-
getDeletionProtection
Specifies whether the policy store can be deleted. If enabled, the policy store can't be deleted.The default state is
DISABLED.Returns union: either
IResolvableorCfnPolicyStore.DeletionProtectionProperty- See Also:
-
getDescription
Descriptive text that you can provide to help with identification of the current policy store.- See Also:
-
getSchema
Creates or updates the policy schema in a policy store.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.
Returns union: either
IResolvableorCfnPolicyStore.SchemaDefinitionProperty- See Also:
-
getTags
The list of key-value pairs to associate with the policy store.- See Also:
-
builder
- Returns:
- a
CfnPolicyStoreProps.BuilderofCfnPolicyStoreProps
-