Class: AWSCDK::Verifiedpermissions::CfnPolicyStore::ValidationSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Verifiedpermissions::CfnPolicyStore::ValidationSettingsProperty
- Defined in:
- verifiedpermissions/cfn_policy_store.rb
Overview
A structure that contains Cedar policy validation settings for the policy store.
The validation mode determines which validation failures that Cedar considers serious enough to block acceptance of a new or edited static policy or policy template.
Instance Attribute Summary collapse
-
#mode ⇒ String
readonly
The validation mode currently configured for this policy store.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(mode:) ⇒ ValidationSettingsProperty
constructor
A new instance of ValidationSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(mode:) ⇒ ValidationSettingsProperty
Returns a new instance of ValidationSettingsProperty.
851 852 853 854 |
# File 'verifiedpermissions/cfn_policy_store.rb', line 851 def initialize(mode:) @mode = mode Jsii::Type.check_type(@mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mode") end |
Instance Attribute Details
#mode ⇒ String (readonly)
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.
867 868 869 |
# File 'verifiedpermissions/cfn_policy_store.rb', line 867 def mode @mode end |
Class Method Details
.jsii_properties ⇒ Object
869 870 871 872 873 |
# File 'verifiedpermissions/cfn_policy_store.rb', line 869 def self.jsii_properties { :mode => "mode", } end |
Instance Method Details
#to_jsii ⇒ Object
875 876 877 878 879 880 881 |
# File 'verifiedpermissions/cfn_policy_store.rb', line 875 def to_jsii result = {} result.merge!({ "mode" => @mode, }) result.compact end |