Class: AWSCDK::Bedrock::CfnFlow::PromptInferenceConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnFlow::PromptInferenceConfigurationProperty
- Defined in:
- bedrock/cfn_flow.rb
Overview
Contains inference configurations for the prompt.
Instance Attribute Summary collapse
-
#text ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnFlow::PromptModelInferenceConfigurationProperty
readonly
Contains inference configurations for a text prompt.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(text:) ⇒ PromptInferenceConfigurationProperty
constructor
A new instance of PromptInferenceConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(text:) ⇒ PromptInferenceConfigurationProperty
Returns a new instance of PromptInferenceConfigurationProperty.
2260 2261 2262 2263 |
# File 'bedrock/cfn_flow.rb', line 2260 def initialize(text:) @text = text.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnFlow::PromptModelInferenceConfigurationProperty.new(**text.transform_keys(&:to_sym)) : text Jsii::Type.check_type(@text, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkZsb3cuUHJvbXB0TW9kZWxJbmZlcmVuY2VDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "text") end |
Instance Attribute Details
#text ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnFlow::PromptModelInferenceConfigurationProperty (readonly)
Contains inference configurations for a text prompt.
2269 2270 2271 |
# File 'bedrock/cfn_flow.rb', line 2269 def text @text end |
Class Method Details
.jsii_properties ⇒ Object
2271 2272 2273 2274 2275 |
# File 'bedrock/cfn_flow.rb', line 2271 def self.jsii_properties { :text => "text", } end |
Instance Method Details
#to_jsii ⇒ Object
2277 2278 2279 2280 2281 2282 2283 |
# File 'bedrock/cfn_flow.rb', line 2277 def to_jsii result = {} result.merge!({ "text" => @text, }) result.compact end |