Class: AWSCDK::Connect::CfnEvaluationForm::EvaluationFormSectionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnEvaluationForm::EvaluationFormSectionProperty
- Defined in:
- connect/cfn_evaluation_form.rb
Overview
Information about a section from an evaluation form.
A section can contain sections and/or questions. Evaluation forms can only contain sections and subsections (two level nesting).
Instance Attribute Summary collapse
-
#instructions ⇒ String?
readonly
The instructions of the section.
-
#items ⇒ AWSCDK::IResolvable, ...
readonly
The items of the section.
-
#ref_id ⇒ String
readonly
The identifier of the section.
-
#title ⇒ String
readonly
The title of the section.
-
#weight ⇒ Numeric?
readonly
The scoring weight of the section.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ref_id:, title:, instructions: nil, items: nil, weight: nil) ⇒ EvaluationFormSectionProperty
constructor
A new instance of EvaluationFormSectionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ref_id:, title:, instructions: nil, items: nil, weight: nil) ⇒ EvaluationFormSectionProperty
Returns a new instance of EvaluationFormSectionProperty.
1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 |
# File 'connect/cfn_evaluation_form.rb', line 1685 def initialize(ref_id:, title:, instructions: nil, items: nil, weight: nil) @ref_id = ref_id Jsii::Type.check_type(@ref_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "refId") @title = title Jsii::Type.check_type(@title, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "title") @instructions = instructions Jsii::Type.check_type(@instructions, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instructions") unless @instructions.nil? @items = items Jsii::Type.check_type(@items, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29ubmVjdC5DZm5FdmFsdWF0aW9uRm9ybS5FdmFsdWF0aW9uRm9ybUl0ZW1Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "items") unless @items.nil? @weight = weight Jsii::Type.check_type(@weight, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "weight") unless @weight.nil? end |
Instance Attribute Details
#instructions ⇒ String? (readonly)
The instructions of the section.
1716 1717 1718 |
# File 'connect/cfn_evaluation_form.rb', line 1716 def instructions @instructions end |
#items ⇒ AWSCDK::IResolvable, ... (readonly)
The items of the section.
Minimum : 1
1723 1724 1725 |
# File 'connect/cfn_evaluation_form.rb', line 1723 def items @items end |
#ref_id ⇒ String (readonly)
The identifier of the section. An identifier must be unique within the evaluation form.
Length Constraints : Minimum length of 1. Maximum length of 40.
1704 1705 1706 |
# File 'connect/cfn_evaluation_form.rb', line 1704 def ref_id @ref_id end |
#title ⇒ String (readonly)
The title of the section.
Length Constraints : Minimum length of 1. Maximum length of 128.
1711 1712 1713 |
# File 'connect/cfn_evaluation_form.rb', line 1711 def title @title end |
#weight ⇒ Numeric? (readonly)
The scoring weight of the section.
Minimum : 0
Maximum : 100
1732 1733 1734 |
# File 'connect/cfn_evaluation_form.rb', line 1732 def weight @weight end |
Class Method Details
.jsii_properties ⇒ Object
1734 1735 1736 1737 1738 1739 1740 1741 1742 |
# File 'connect/cfn_evaluation_form.rb', line 1734 def self.jsii_properties { :ref_id => "refId", :title => "title", :instructions => "instructions", :items => "items", :weight => "weight", } end |
Instance Method Details
#to_jsii ⇒ Object
1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 |
# File 'connect/cfn_evaluation_form.rb', line 1744 def to_jsii result = {} result.merge!({ "refId" => @ref_id, "title" => @title, "instructions" => @instructions, "items" => @items, "weight" => @weight, }) result.compact end |