Class: AWSCDK::Wisdom::CfnAIPrompt::TextFullAIPromptEditTemplateConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Wisdom::CfnAIPrompt::TextFullAIPromptEditTemplateConfigurationProperty
- Defined in:
- wisdom/cfn_ai_prompt.rb
Overview
The configuration for a prompt template that supports full textual prompt configuration using a YAML prompt.
Instance Attribute Summary collapse
-
#text ⇒ String
readonly
The YAML text for the AI Prompt template.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(text:) ⇒ TextFullAIPromptEditTemplateConfigurationProperty
constructor
A new instance of TextFullAIPromptEditTemplateConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(text:) ⇒ TextFullAIPromptEditTemplateConfigurationProperty
Returns a new instance of TextFullAIPromptEditTemplateConfigurationProperty.
678 679 680 681 |
# File 'wisdom/cfn_ai_prompt.rb', line 678 def initialize(text:) @text = text Jsii::Type.check_type(@text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "text") end |
Instance Attribute Details
#text ⇒ String (readonly)
The YAML text for the AI Prompt template.
687 688 689 |
# File 'wisdom/cfn_ai_prompt.rb', line 687 def text @text end |
Class Method Details
.jsii_properties ⇒ Object
689 690 691 692 693 |
# File 'wisdom/cfn_ai_prompt.rb', line 689 def self.jsii_properties { :text => "text", } end |
Instance Method Details
#to_jsii ⇒ Object
695 696 697 698 699 700 701 |
# File 'wisdom/cfn_ai_prompt.rb', line 695 def to_jsii result = {} result.merge!({ "text" => @text, }) result.compact end |