Class CfnPolicyStoreProps.Builder

java.lang.Object
software.amazon.awscdk.services.verifiedpermissions.CfnPolicyStoreProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyStoreProps>
Enclosing interface:
CfnPolicyStoreProps

@Stability(Stable) public static final class CfnPolicyStoreProps.Builder extends Object implements software.amazon.jsii.Builder<CfnPolicyStoreProps>
A builder for CfnPolicyStoreProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • validationSettings

      @Stability(Stable) public CfnPolicyStoreProps.Builder validationSettings(IResolvable validationSettings)
      Parameters:
      validationSettings - Specifies the validation setting for this policy store. This parameter is required. Currently, the only valid and required value is Mode .

      We recommend that you turn on STRICT mode only after you define a schema. If a schema doesn't exist, then STRICT 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)
      Parameters:
      validationSettings - Specifies the validation setting for this policy store. This parameter is required. Currently, the only valid and required value is Mode .

      We recommend that you turn on STRICT mode only after you define a schema. If a schema doesn't exist, then STRICT 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

      @Stability(Stable) public CfnPolicyStoreProps.Builder description(String description)
      Parameters:
      description - Descriptive text that you can provide to help with identification of the current policy store.
      Returns:
      this
    • schema

      @Stability(Stable) public CfnPolicyStoreProps.Builder schema(IResolvable schema)
      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)
      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

      @Stability(Stable) public CfnPolicyStoreProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnPolicyStoreProps>
      Returns:
      a new instance of CfnPolicyStoreProps
      Throws:
      NullPointerException - if any required attribute was not provided