Class: AWSCDK::Bedrock::CfnFlow::PromptTemplateConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnFlow::PromptTemplateConfigurationProperty
- Defined in:
- bedrock/cfn_flow.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::CfnFlow::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.
2395 2396 2397 2398 |
# File 'bedrock/cfn_flow.rb', line 2395 def initialize(text:) @text = text.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnFlow::TextPromptTemplateConfigurationProperty.new(**text.transform_keys(&:to_sym)) : text Jsii::Type.check_type(@text, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkZsb3cuVGV4dFByb21wdFRlbXBsYXRlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "text") end |
Instance Attribute Details
#text ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnFlow::TextPromptTemplateConfigurationProperty (readonly)
Contains configurations for the text in a message for a prompt.
2404 2405 2406 |
# File 'bedrock/cfn_flow.rb', line 2404 def text @text end |
Class Method Details
.jsii_properties ⇒ Object
2406 2407 2408 2409 2410 |
# File 'bedrock/cfn_flow.rb', line 2406 def self.jsii_properties { :text => "text", } end |
Instance Method Details
#to_jsii ⇒ Object
2412 2413 2414 2415 2416 2417 2418 |
# File 'bedrock/cfn_flow.rb', line 2412 def to_jsii result = {} result.merge!({ "text" => @text, }) result.compact end |