Class: AWSCDK::Connect::CfnTaskTemplate::FieldProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnTaskTemplate::FieldProperty
- Defined in:
- connect/cfn_task_template.rb
Overview
Describes a single task template field.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the field.
-
#id ⇒ AWSCDK::IResolvable, AWSCDK::Connect::CfnTaskTemplate::FieldIdentifierProperty
readonly
The unique identifier for the field.
-
#single_select_options ⇒ Array<String>?
readonly
A list of options for a single select field.
-
#type ⇒ String
readonly
Indicates the type of field.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, type:, description: nil, single_select_options: nil) ⇒ FieldProperty
constructor
A new instance of FieldProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(id:, type:, description: nil, single_select_options: nil) ⇒ FieldProperty
Returns a new instance of FieldProperty.
779 780 781 782 783 784 785 786 787 788 |
# File 'connect/cfn_task_template.rb', line 779 def initialize(id:, type:, description: nil, single_select_options: nil) @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") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @single_select_options = Jsii::Type.check_type(@single_select_options, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "singleSelectOptions") unless @single_select_options.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of the field.
806 807 808 |
# File 'connect/cfn_task_template.rb', line 806 def description @description end |
#id ⇒ AWSCDK::IResolvable, AWSCDK::Connect::CfnTaskTemplate::FieldIdentifierProperty (readonly)
The unique identifier for the field.
794 795 796 |
# File 'connect/cfn_task_template.rb', line 794 def id @id end |
#single_select_options ⇒ Array<String>? (readonly)
A list of options for a single select field.
811 812 813 |
# File 'connect/cfn_task_template.rb', line 811 def @single_select_options end |
#type ⇒ String (readonly)
Indicates the type of field.
Following are the valid field types: NAME DESCRIPTION | SCHEDULED_TIME | QUICK_CONNECT | URL | NUMBER | TEXT | TEXT_AREA | DATE_TIME | BOOLEAN | SINGLE_SELECT | EMAIL
801 802 803 |
# File 'connect/cfn_task_template.rb', line 801 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
813 814 815 816 817 818 819 820 |
# File 'connect/cfn_task_template.rb', line 813 def self.jsii_properties { :id => "id", :type => "type", :description => "description", :single_select_options => "singleSelectOptions", } end |
Instance Method Details
#to_jsii ⇒ Object
822 823 824 825 826 827 828 829 830 831 |
# File 'connect/cfn_task_template.rb', line 822 def to_jsii result = {} result.merge!({ "id" => @id, "type" => @type, "description" => @description, "singleSelectOptions" => @single_select_options, }) result.compact end |