Class: AWSCDK::Connect::CfnRule::FieldProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnRule::FieldProperty
- Defined in:
- connect/cfn_rule.rb
Overview
Instance Attribute Summary collapse
- #id ⇒ String readonly
-
#value ⇒ AWSCDK::IResolvable, AWSCDK::Connect::CfnRule::FieldValueProperty
readonly
Object for case field values.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, value:) ⇒ FieldProperty
constructor
A new instance of FieldProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(id:, value:) ⇒ FieldProperty
Returns a new instance of FieldProperty.
775 776 777 778 779 780 |
# File 'connect/cfn_rule.rb', line 775 def initialize(id:, value:) @id = id Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") @value = value.is_a?(Hash) ? ::AWSCDK::Connect::CfnRule::FieldValueProperty.new(**value.transform_keys(&:to_sym)) : value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmblJ1bGUuRmllbGRWYWx1ZVByb3BlcnR5In1dfX0=")), "value") end |
Instance Attribute Details
#id ⇒ String (readonly)
784 785 786 |
# File 'connect/cfn_rule.rb', line 784 def id @id end |
#value ⇒ AWSCDK::IResolvable, AWSCDK::Connect::CfnRule::FieldValueProperty (readonly)
Object for case field values.
789 790 791 |
# File 'connect/cfn_rule.rb', line 789 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
791 792 793 794 795 796 |
# File 'connect/cfn_rule.rb', line 791 def self.jsii_properties { :id => "id", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
798 799 800 801 802 803 804 805 |
# File 'connect/cfn_rule.rb', line 798 def to_jsii result = {} result.merge!({ "id" => @id, "value" => @value, }) result.compact end |