Class: AWSCDK::Cases::CfnCaseRule::HiddenCaseRuleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cases::CfnCaseRule::HiddenCaseRuleProperty
- Defined in:
- cases/cfn_case_rule.rb
Overview
A rule that controls field visibility based on conditions.
Fields can be shown or hidden dynamically based on values in other fields.
Instance Attribute Summary collapse
-
#conditions ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Cases::CfnCaseRule::BooleanConditionProperty>
readonly
A list of conditions that determine field visibility.
-
#default_value ⇒ Boolean, AWSCDK::IResolvable
readonly
Whether the field is hidden when no conditions match.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(conditions:, default_value:) ⇒ HiddenCaseRuleProperty
constructor
A new instance of HiddenCaseRuleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(conditions:, default_value:) ⇒ HiddenCaseRuleProperty
Returns a new instance of HiddenCaseRuleProperty.
744 745 746 747 748 749 |
# File 'cases/cfn_case_rule.rb', line 744 def initialize(conditions:, default_value:) @conditions = conditions Jsii::Type.check_type(@conditions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2FzZXMuQ2ZuQ2FzZVJ1bGUuQm9vbGVhbkNvbmRpdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "conditions") @default_value = default_value Jsii::Type.check_type(@default_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "defaultValue") end |
Instance Attribute Details
#conditions ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Cases::CfnCaseRule::BooleanConditionProperty> (readonly)
A list of conditions that determine field visibility.
755 756 757 |
# File 'cases/cfn_case_rule.rb', line 755 def conditions @conditions end |
#default_value ⇒ Boolean, AWSCDK::IResolvable (readonly)
Whether the field is hidden when no conditions match.
760 761 762 |
# File 'cases/cfn_case_rule.rb', line 760 def default_value @default_value end |
Class Method Details
.jsii_properties ⇒ Object
762 763 764 765 766 767 |
# File 'cases/cfn_case_rule.rb', line 762 def self.jsii_properties { :conditions => "conditions", :default_value => "defaultValue", } end |
Instance Method Details
#to_jsii ⇒ Object
769 770 771 772 773 774 775 776 |
# File 'cases/cfn_case_rule.rb', line 769 def to_jsii result = {} result.merge!({ "conditions" => @conditions, "defaultValue" => @default_value, }) result.compact end |