Class: AWSCDK::Connect::CfnEvaluationForm::EvaluationFormSingleSelectQuestionAutomationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnEvaluationForm::EvaluationFormSingleSelectQuestionAutomationProperty
- Defined in:
- connect/cfn_evaluation_form.rb
Overview
Information about the automation configuration in single select questions.
Automation options are evaluated in order, and the first matched option is applied. If no automation option matches, and there is a default option, then the default option is applied.
Instance Attribute Summary collapse
-
#answer_source ⇒ AWSCDK::IResolvable, ...
readonly
Automation answer source.
-
#default_option_ref_id ⇒ String?
readonly
The identifier of the default answer option, when none of the automation options match the criteria.
-
#options ⇒ AWSCDK::IResolvable, ...
readonly
The automation options of the single select question.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(answer_source: nil, default_option_ref_id: nil, options: nil) ⇒ EvaluationFormSingleSelectQuestionAutomationProperty
constructor
A new instance of EvaluationFormSingleSelectQuestionAutomationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(answer_source: nil, default_option_ref_id: nil, options: nil) ⇒ EvaluationFormSingleSelectQuestionAutomationProperty
Returns a new instance of EvaluationFormSingleSelectQuestionAutomationProperty.
1801 1802 1803 1804 1805 1806 1807 1808 |
# File 'connect/cfn_evaluation_form.rb', line 1801 def initialize(answer_source: nil, default_option_ref_id: nil, options: nil) @answer_source = answer_source.is_a?(Hash) ? ::AWSCDK::Connect::CfnEvaluationForm::EvaluationFormQuestionAutomationAnswerSourceProperty.new(**answer_source.transform_keys(&:to_sym)) : answer_source Jsii::Type.check_type(@answer_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbkV2YWx1YXRpb25Gb3JtLkV2YWx1YXRpb25Gb3JtUXVlc3Rpb25BdXRvbWF0aW9uQW5zd2VyU291cmNlUHJvcGVydHkifV19fQ==")), "answerSource") unless @answer_source.nil? @default_option_ref_id = default_option_ref_id Jsii::Type.check_type(@default_option_ref_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultOptionRefId") unless @default_option_ref_id.nil? @options = Jsii::Type.check_type(@options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29ubmVjdC5DZm5FdmFsdWF0aW9uRm9ybS5FdmFsdWF0aW9uRm9ybVNpbmdsZVNlbGVjdFF1ZXN0aW9uQXV0b21hdGlvbk9wdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "options") unless @options.nil? end |
Instance Attribute Details
#answer_source ⇒ AWSCDK::IResolvable, ... (readonly)
Automation answer source.
1814 1815 1816 |
# File 'connect/cfn_evaluation_form.rb', line 1814 def answer_source @answer_source end |
#default_option_ref_id ⇒ String? (readonly)
The identifier of the default answer option, when none of the automation options match the criteria.
Length Constraints : Minimum length of 1. Maximum length of 40.
1821 1822 1823 |
# File 'connect/cfn_evaluation_form.rb', line 1821 def default_option_ref_id @default_option_ref_id end |
#options ⇒ AWSCDK::IResolvable, ... (readonly)
The automation options of the single select question.
Minimum : 1
Maximum : 20
1830 1831 1832 |
# File 'connect/cfn_evaluation_form.rb', line 1830 def @options end |
Class Method Details
.jsii_properties ⇒ Object
1832 1833 1834 1835 1836 1837 1838 |
# File 'connect/cfn_evaluation_form.rb', line 1832 def self.jsii_properties { :answer_source => "answerSource", :default_option_ref_id => "defaultOptionRefId", :options => "options", } end |
Instance Method Details
#to_jsii ⇒ Object
1840 1841 1842 1843 1844 1845 1846 1847 1848 |
# File 'connect/cfn_evaluation_form.rb', line 1840 def to_jsii result = {} result.merge!({ "answerSource" => @answer_source, "defaultOptionRefId" => @default_option_ref_id, "options" => @options, }) result.compact end |