Class: AWSCDK::Wisdom::CfnAIPrompt::AIPromptTemplateConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Wisdom::CfnAIPrompt::AIPromptTemplateConfigurationProperty
- Defined in:
- wisdom/cfn_ai_prompt.rb
Overview
A typed union that specifies the configuration for a prompt template based on its type.
Instance Attribute Summary collapse
-
#text_full_ai_prompt_edit_template_configuration ⇒ AWSCDK::IResolvable, AWSCDK::Wisdom::CfnAIPrompt::TextFullAIPromptEditTemplateConfigurationProperty
readonly
The configuration for a prompt template that supports full textual prompt configuration using a YAML prompt.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(text_full_ai_prompt_edit_template_configuration:) ⇒ AIPromptTemplateConfigurationProperty
constructor
A new instance of AIPromptTemplateConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(text_full_ai_prompt_edit_template_configuration:) ⇒ AIPromptTemplateConfigurationProperty
Returns a new instance of AIPromptTemplateConfigurationProperty.
645 646 647 648 |
# File 'wisdom/cfn_ai_prompt.rb', line 645 def initialize(text_full_ai_prompt_edit_template_configuration:) @text_full_ai_prompt_edit_template_configuration = text_full_ai_prompt_edit_template_configuration.is_a?(Hash) ? ::AWSCDK::Wisdom::CfnAIPrompt::TextFullAIPromptEditTemplateConfigurationProperty.new(**text_full_ai_prompt_edit_template_configuration.transform_keys(&:to_sym)) : text_full_ai_prompt_edit_template_configuration Jsii::Type.check_type(@text_full_ai_prompt_edit_template_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193aXNkb20uQ2ZuQUlQcm9tcHQuVGV4dEZ1bGxBSVByb21wdEVkaXRUZW1wbGF0ZUNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "textFullAiPromptEditTemplateConfiguration") end |
Instance Attribute Details
#text_full_ai_prompt_edit_template_configuration ⇒ AWSCDK::IResolvable, AWSCDK::Wisdom::CfnAIPrompt::TextFullAIPromptEditTemplateConfigurationProperty (readonly)
The configuration for a prompt template that supports full textual prompt configuration using a YAML prompt.
654 655 656 |
# File 'wisdom/cfn_ai_prompt.rb', line 654 def text_full_ai_prompt_edit_template_configuration @text_full_ai_prompt_edit_template_configuration end |
Class Method Details
.jsii_properties ⇒ Object
656 657 658 659 660 |
# File 'wisdom/cfn_ai_prompt.rb', line 656 def self.jsii_properties { :text_full_ai_prompt_edit_template_configuration => "textFullAiPromptEditTemplateConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
662 663 664 665 666 667 668 |
# File 'wisdom/cfn_ai_prompt.rb', line 662 def to_jsii result = {} result.merge!({ "textFullAiPromptEditTemplateConfiguration" => @text_full_ai_prompt_edit_template_configuration, }) result.compact end |