Class: AWSCDK::Connect::CfnTaskTemplate::DefaultFieldValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnTaskTemplate::DefaultFieldValueProperty
- Defined in:
- connect/cfn_task_template.rb
Overview
Describes a default field and its corresponding value.
Instance Attribute Summary collapse
-
#default_value ⇒ String
readonly
Default value for the field.
-
#id ⇒ AWSCDK::IResolvable, AWSCDK::Connect::CfnTaskTemplate::FieldIdentifierProperty
readonly
Identifier of a field.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(default_value:, id:) ⇒ DefaultFieldValueProperty
constructor
A new instance of DefaultFieldValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(default_value:, id:) ⇒ DefaultFieldValueProperty
Returns a new instance of DefaultFieldValueProperty.
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_value ⇒ String (readonly)
Default value for the field.
712 713 714 |
# File 'connect/cfn_task_template.rb', line 712 def default_value @default_value end |
#id ⇒ AWSCDK::IResolvable, AWSCDK::Connect::CfnTaskTemplate::FieldIdentifierProperty (readonly)
Identifier of a field.
717 718 719 |
# File 'connect/cfn_task_template.rb', line 717 def id @id end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |