Class CfnPolicyStoreProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyStoreProps>
- Enclosing interface:
CfnPolicyStoreProps
CfnPolicyStoreProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnPolicyStoreProps.getDescription()
schema
(IResolvable schema) Sets the value ofCfnPolicyStoreProps.getSchema()
Sets the value ofCfnPolicyStoreProps.getSchema()
validationSettings
(IResolvable validationSettings) Sets the value ofCfnPolicyStoreProps.getValidationSettings()
validationSettings
(CfnPolicyStore.ValidationSettingsProperty validationSettings) Sets the value ofCfnPolicyStoreProps.getValidationSettings()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
validationSettings
@Stability(Stable) public CfnPolicyStoreProps.Builder validationSettings(IResolvable validationSettings) Sets the value ofCfnPolicyStoreProps.getValidationSettings()
- Parameters:
validationSettings
- Specifies the validation setting for this policy store. This parameter is required. Currently, the only valid and required value isMode
.We recommend that you turn on
STRICT
mode only after you define a schema. If a schema doesn't exist, thenSTRICT
mode 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:
this
-
validationSettings
@Stability(Stable) public CfnPolicyStoreProps.Builder validationSettings(CfnPolicyStore.ValidationSettingsProperty validationSettings) Sets the value ofCfnPolicyStoreProps.getValidationSettings()
- Parameters:
validationSettings
- Specifies the validation setting for this policy store. This parameter is required. Currently, the only valid and required value isMode
.We recommend that you turn on
STRICT
mode only after you define a schema. If a schema doesn't exist, thenSTRICT
mode 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:
this
-
description
Sets the value ofCfnPolicyStoreProps.getDescription()
- Parameters:
description
- Descriptive text that you can provide to help with identification of the current policy store.- Returns:
this
-
schema
Sets the value ofCfnPolicyStoreProps.getSchema()
- Parameters:
schema
- 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:
this
-
schema
@Stability(Stable) public CfnPolicyStoreProps.Builder schema(CfnPolicyStore.SchemaDefinitionProperty schema) Sets the value ofCfnPolicyStoreProps.getSchema()
- Parameters:
schema
- 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:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPolicyStoreProps>
- Returns:
- a new instance of
CfnPolicyStoreProps
- Throws:
NullPointerException
- if any required attribute was not provided
-