Class: AWSCDK::Cases::CfnField::FieldAttributesProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cases/cfn_field.rb

Overview

Union of field attributes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text: nil) ⇒ FieldAttributesProperty

Returns a new instance of FieldAttributesProperty.

Parameters:



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

#textAWSCDK::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_propertiesObject



628
629
630
631
632
# File 'cases/cfn_field.rb', line 628

def self.jsii_properties
  {
    :text => "text",
  }
end

Instance Method Details

#to_jsiiObject



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