Class: AWSCDK::Connect::CfnTaskTemplate::DefaultFieldValueProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_task_template.rb

Overview

Describes a default field and its corresponding value.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(default_value:, id:) ⇒ DefaultFieldValueProperty

Returns a new instance of DefaultFieldValueProperty.

Parameters:



701
702
703
704
705
706
# File 'connect/cfn_task_template.rb', line 701

def initialize(default_value:, id:)
  @default_value = default_value
  Jsii::Type.check_type(@default_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultValue")
  @id = id.is_a?(Hash) ? ::AWSCDK::Connect::CfnTaskTemplate::FieldIdentifierProperty.new(**id.transform_keys(&:to_sym)) : id
  Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmblRhc2tUZW1wbGF0ZS5GaWVsZElkZW50aWZpZXJQcm9wZXJ0eSJ9XX19")), "id")
end

Instance Attribute Details

#default_valueString (readonly)

Default value for the field.



712
713
714
# File 'connect/cfn_task_template.rb', line 712

def default_value
  @default_value
end

Class Method Details

.jsii_propertiesObject



719
720
721
722
723
724
# File 'connect/cfn_task_template.rb', line 719

def self.jsii_properties
  {
    :default_value => "defaultValue",
    :id => "id",
  }
end

Instance Method Details

#to_jsiiObject



726
727
728
729
730
731
732
733
# File 'connect/cfn_task_template.rb', line 726

def to_jsii
  result = {}
  result.merge!({
    "defaultValue" => @default_value,
    "id" => @id,
  })
  result.compact
end