Class: AWSCDK::Cases::CfnField::FieldAttributesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cases::CfnField::FieldAttributesProperty
- Defined in:
- cases/cfn_field.rb
Overview
Union of field attributes.
Instance Attribute Summary collapse
-
#text ⇒ AWSCDK::IResolvable, ...
readonly
Field attributes for Text field type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(text: nil) ⇒ FieldAttributesProperty
constructor
A new instance of FieldAttributesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(text: nil) ⇒ FieldAttributesProperty
Returns a new instance of FieldAttributesProperty.
617 618 619 620 |
# File 'cases/cfn_field.rb', line 617 def initialize(text: nil) @text = text.is_a?(Hash) ? ::AWSCDK::Cases::CfnField::TextAttributesProperty.new(**text.transform_keys(&:to_sym)) : text Jsii::Type.check_type(@text, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jYXNlcy5DZm5GaWVsZC5UZXh0QXR0cmlidXRlc1Byb3BlcnR5In1dfX0=")), "text") unless @text.nil? end |
Instance Attribute Details
#text ⇒ AWSCDK::IResolvable, ... (readonly)
Field attributes for Text field type.
626 627 628 |
# File 'cases/cfn_field.rb', line 626 def text @text end |
Class Method Details
.jsii_properties ⇒ Object
628 629 630 631 632 |
# File 'cases/cfn_field.rb', line 628 def self.jsii_properties { :text => "text", } end |
Instance Method Details
#to_jsii ⇒ Object
634 635 636 637 638 639 640 |
# File 'cases/cfn_field.rb', line 634 def to_jsii result = {} result.merge!({ "text" => @text, }) result.compact end |