Class: AWSCDK::Bedrock::CfnPrompt::PromptInferenceConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnPrompt::PromptInferenceConfigurationProperty
- Defined in:
- bedrock/cfn_prompt.rb
Overview
Contains inference configurations for the prompt.
Instance Attribute Summary collapse
-
#text ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnPrompt::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.
876 877 878 879 |
# File 'bedrock/cfn_prompt.rb', line 876 def initialize(text:) @text = text.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnPrompt::PromptModelInferenceConfigurationProperty.new(**text.transform_keys(&:to_sym)) : text Jsii::Type.check_type(@text, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmblByb21wdC5Qcm9tcHRNb2RlbEluZmVyZW5jZUNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "text") end |
Instance Attribute Details
#text ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnPrompt::PromptModelInferenceConfigurationProperty (readonly)
Contains inference configurations for a text prompt.
885 886 887 |
# File 'bedrock/cfn_prompt.rb', line 885 def text @text end |
Class Method Details
.jsii_properties ⇒ Object
887 888 889 890 891 |
# File 'bedrock/cfn_prompt.rb', line 887 def self.jsii_properties { :text => "text", } end |
Instance Method Details
#to_jsii ⇒ Object
893 894 895 896 897 898 899 |
# File 'bedrock/cfn_prompt.rb', line 893 def to_jsii result = {} result.merge!({ "text" => @text, }) result.compact end |