Class CfnPolicyStorePropsMixin.ValidationSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.verifiedpermissions.mixins.CfnPolicyStorePropsMixin.ValidationSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyStorePropsMixin.ValidationSettingsProperty>
- Enclosing interface:
CfnPolicyStorePropsMixin.ValidationSettingsProperty
@Stability(Stable)
public static final class CfnPolicyStorePropsMixin.ValidationSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicyStorePropsMixin.ValidationSettingsProperty>
A builder for
CfnPolicyStorePropsMixin.ValidationSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPolicyStorePropsMixin.ValidationSettingsProperty.getMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mode
@Stability(Stable) public CfnPolicyStorePropsMixin.ValidationSettingsProperty.Builder mode(String mode) Sets the value ofCfnPolicyStorePropsMixin.ValidationSettingsProperty.getMode()- Parameters:
mode- The validation mode currently configured for this policy store. The valid values are:.- 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=STRICTand 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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPolicyStorePropsMixin.ValidationSettingsProperty>- Returns:
- a new instance of
CfnPolicyStorePropsMixin.ValidationSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-