Class: AWSCDK::Bedrock::CfnFlowVersion::PromptTemplateConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnFlowVersion::PromptTemplateConfigurationProperty
- Defined in:
- bedrock/cfn_flow_version.rb
Overview
Contains the message for a prompt.
For more information, see Construct and store reusable prompts with Prompt management in Amazon Bedrock .
Instance Attribute Summary collapse
-
#text ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnFlowVersion::TextPromptTemplateConfigurationProperty
readonly
Contains configurations for the text in a message for a prompt.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(text:) ⇒ PromptTemplateConfigurationProperty
constructor
A new instance of PromptTemplateConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(text:) ⇒ PromptTemplateConfigurationProperty
Returns a new instance of PromptTemplateConfigurationProperty.
2216 2217 2218 2219 |
# File 'bedrock/cfn_flow_version.rb', line 2216 def initialize(text:) @text = text.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnFlowVersion::TextPromptTemplateConfigurationProperty.new(**text.transform_keys(&:to_sym)) : text Jsii::Type.check_type(@text, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkZsb3dWZXJzaW9uLlRleHRQcm9tcHRUZW1wbGF0ZUNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "text") end |
Instance Attribute Details
#text ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnFlowVersion::TextPromptTemplateConfigurationProperty (readonly)
Contains configurations for the text in a message for a prompt.
2225 2226 2227 |
# File 'bedrock/cfn_flow_version.rb', line 2225 def text @text end |
Class Method Details
.jsii_properties ⇒ Object
2227 2228 2229 2230 2231 |
# File 'bedrock/cfn_flow_version.rb', line 2227 def self.jsii_properties { :text => "text", } end |
Instance Method Details
#to_jsii ⇒ Object
2233 2234 2235 2236 2237 2238 2239 |
# File 'bedrock/cfn_flow_version.rb', line 2233 def to_jsii result = {} result.merge!({ "text" => @text, }) result.compact end |