Class: AWSCDK::Bedrock::CfnFlowVersion::PromptTemplateConfigurationProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text:) ⇒ PromptTemplateConfigurationProperty

Returns a new instance of PromptTemplateConfigurationProperty.

Parameters:



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

Class Method Details

.jsii_propertiesObject



2227
2228
2229
2230
2231
# File 'bedrock/cfn_flow_version.rb', line 2227

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

Instance Method Details

#to_jsiiObject



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