Class: AWSCDK::Wisdom::CfnAIPrompt::TextFullAIPromptEditTemplateConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text:) ⇒ TextFullAIPromptEditTemplateConfigurationProperty

Returns a new instance of TextFullAIPromptEditTemplateConfigurationProperty.

Parameters:

  • text (String)

    The YAML text for the AI Prompt template.



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

#textString (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_propertiesObject



689
690
691
692
693
# File 'wisdom/cfn_ai_prompt.rb', line 689

def self.jsii_properties
  {
    :text => "text",
  }
end

Instance Method Details

#to_jsiiObject



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