Class CfnPolicyStorePropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyStorePropsMixin>
- Enclosing class:
CfnPolicyStorePropsMixin
CfnPolicyStorePropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) deletionProtection(CfnPolicyStorePropsMixin.DeletionProtectionProperty deletionProtection) Specifies whether the policy store can be deleted.deletionProtection(IResolvable deletionProtection) Specifies whether the policy store can be deleted.description(String description) Descriptive text that you can provide to help with identification of the current policy store.encryptionSettings(CfnPolicyStorePropsMixin.EncryptionSettingsProperty encryptionSettings) encryptionSettings(IResolvable encryptionSettings) Creates or updates the policy schema in a policy store.schema(IResolvable schema) Creates or updates the policy schema in a policy store.The list of key-value pairs to associate with the policy store.validationSettings(CfnPolicyStorePropsMixin.ValidationSettingsProperty validationSettings) Specifies the validation setting for this policy store.validationSettings(IResolvable validationSettings) Specifies the validation setting for this policy store.
-
Method Details
-
create
@Stability(Stable) public static CfnPolicyStorePropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnPolicyStorePropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnPolicyStorePropsMixin.Builder.
-
deletionProtection
@Stability(Stable) public CfnPolicyStorePropsMixin.Builder deletionProtection(IResolvable deletionProtection) Specifies whether the policy store can be deleted. If enabled, the policy store can't be deleted.The default state is
DISABLED.- Parameters:
deletionProtection- Specifies whether the policy store can be deleted. If enabled, the policy store can't be deleted. This parameter is required.- Returns:
this- See Also:
-
deletionProtection
@Stability(Stable) public CfnPolicyStorePropsMixin.Builder deletionProtection(CfnPolicyStorePropsMixin.DeletionProtectionProperty deletionProtection) Specifies whether the policy store can be deleted. If enabled, the policy store can't be deleted.The default state is
DISABLED.- Parameters:
deletionProtection- Specifies whether the policy store can be deleted. If enabled, the policy store can't be deleted. This parameter is required.- Returns:
this- See Also:
-
description
Descriptive text that you can provide to help with identification of the current policy store.- Parameters:
description- Descriptive text that you can provide to help with identification of the current policy store. This parameter is required.- Returns:
this- See Also:
-
encryptionSettings
@Stability(Stable) public CfnPolicyStorePropsMixin.Builder encryptionSettings(IResolvable encryptionSettings) - Parameters:
encryptionSettings- This parameter is required.- Returns:
this- See Also:
-
encryptionSettings
@Stability(Stable) public CfnPolicyStorePropsMixin.Builder encryptionSettings(CfnPolicyStorePropsMixin.EncryptionSettingsProperty encryptionSettings) - Parameters:
encryptionSettings- This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
schema- Creates or updates the policy schema in a policy store. This parameter is required.- Returns:
this- See Also:
-
schema
@Stability(Stable) public CfnPolicyStorePropsMixin.Builder schema(CfnPolicyStorePropsMixin.SchemaDefinitionProperty 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.
- Parameters:
schema- Creates or updates the policy schema in a policy store. This parameter is required.- Returns:
this- See Also:
-
tags
The list of key-value pairs to associate with the policy store.- Parameters:
tags- The list of key-value pairs to associate with the policy store. This parameter is required.- Returns:
this- See Also:
-
validationSettings
@Stability(Stable) public CfnPolicyStorePropsMixin.Builder validationSettings(IResolvable validationSettings) 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.- Parameters:
validationSettings- Specifies the validation setting for this policy store. This parameter is required.- Returns:
this- See Also:
-
validationSettings
@Stability(Stable) public CfnPolicyStorePropsMixin.Builder validationSettings(CfnPolicyStorePropsMixin.ValidationSettingsProperty validationSettings) 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.- Parameters:
validationSettings- Specifies the validation setting for this policy store. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPolicyStorePropsMixin>- Returns:
- a newly built instance of
CfnPolicyStorePropsMixin.
-