Class: AWSCDK::Connect::CfnEvaluationForm::EvaluationFormItemProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnEvaluationForm::EvaluationFormItemProperty
- Defined in:
- connect/cfn_evaluation_form.rb
Overview
Items that are part of the evaluation form.
The total number of sections and questions must not exceed 100 each. Questions must be contained in a section.
Instance Attribute Summary collapse
-
#question ⇒ AWSCDK::IResolvable, ...
readonly
The information of the question.
-
#section ⇒ AWSCDK::IResolvable, ...
readonly
The information of the section.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(question: nil, section: nil) ⇒ EvaluationFormItemProperty
constructor
A new instance of EvaluationFormItemProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(question: nil, section: nil) ⇒ EvaluationFormItemProperty
Returns a new instance of EvaluationFormItemProperty.
1022 1023 1024 1025 1026 1027 |
# File 'connect/cfn_evaluation_form.rb', line 1022 def initialize(question: nil, section: nil) @question = question.is_a?(Hash) ? ::AWSCDK::Connect::CfnEvaluationForm::EvaluationFormQuestionProperty.new(**question.transform_keys(&:to_sym)) : question Jsii::Type.check_type(@question, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbkV2YWx1YXRpb25Gb3JtLkV2YWx1YXRpb25Gb3JtUXVlc3Rpb25Qcm9wZXJ0eSJ9XX19")), "question") unless @question.nil? @section = section.is_a?(Hash) ? ::AWSCDK::Connect::CfnEvaluationForm::EvaluationFormSectionProperty.new(**section.transform_keys(&:to_sym)) : section Jsii::Type.check_type(@section, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbkV2YWx1YXRpb25Gb3JtLkV2YWx1YXRpb25Gb3JtU2VjdGlvblByb3BlcnR5In1dfX0=")), "section") unless @section.nil? end |
Instance Attribute Details
#question ⇒ AWSCDK::IResolvable, ... (readonly)
The information of the question.
1033 1034 1035 |
# File 'connect/cfn_evaluation_form.rb', line 1033 def question @question end |
#section ⇒ AWSCDK::IResolvable, ... (readonly)
The information of the section.
1038 1039 1040 |
# File 'connect/cfn_evaluation_form.rb', line 1038 def section @section end |
Class Method Details
.jsii_properties ⇒ Object
1040 1041 1042 1043 1044 1045 |
# File 'connect/cfn_evaluation_form.rb', line 1040 def self.jsii_properties { :question => "question", :section => "section", } end |
Instance Method Details
#to_jsii ⇒ Object
1047 1048 1049 1050 1051 1052 1053 1054 |
# File 'connect/cfn_evaluation_form.rb', line 1047 def to_jsii result = {} result.merge!({ "question" => @question, "section" => @section, }) result.compact end |