Class: AWSCDK::Bedrock::CfnFlowVersion::PromptInferenceConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnFlowVersion::PromptInferenceConfigurationProperty
- Defined in:
- bedrock/cfn_flow_version.rb
Overview
Contains inference configurations for the prompt.
Instance Attribute Summary collapse
-
#text ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnFlowVersion::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.
2081 2082 2083 2084 |
# File 'bedrock/cfn_flow_version.rb', line 2081 def initialize(text:) @text = text.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnFlowVersion::PromptModelInferenceConfigurationProperty.new(**text.transform_keys(&:to_sym)) : text Jsii::Type.check_type(@text, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkZsb3dWZXJzaW9uLlByb21wdE1vZGVsSW5mZXJlbmNlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "text") end |
Instance Attribute Details
#text ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnFlowVersion::PromptModelInferenceConfigurationProperty (readonly)
Contains inference configurations for a text prompt.
2090 2091 2092 |
# File 'bedrock/cfn_flow_version.rb', line 2090 def text @text end |
Class Method Details
.jsii_properties ⇒ Object
2092 2093 2094 2095 2096 |
# File 'bedrock/cfn_flow_version.rb', line 2092 def self.jsii_properties { :text => "text", } end |
Instance Method Details
#to_jsii ⇒ Object
2098 2099 2100 2101 2102 2103 2104 |
# File 'bedrock/cfn_flow_version.rb', line 2098 def to_jsii result = {} result.merge!({ "text" => @text, }) result.compact end |