Class: AWSCDK::Bedrock::CfnFlow::PromptTemplateConfigurationProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text:) ⇒ PromptTemplateConfigurationProperty

Returns a new instance of PromptTemplateConfigurationProperty.

Parameters:



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

Class Method Details

.jsii_propertiesObject



2406
2407
2408
2409
2410
# File 'bedrock/cfn_flow.rb', line 2406

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

Instance Method Details

#to_jsiiObject



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