Class: AWSCDK::StepFunctionsTasks::BedrockInvokeModelInputProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctionsTasks::BedrockInvokeModelInputProps
- Defined in:
- step_functions_tasks/bedrock_invoke_model_input_props.rb
Overview
Location to retrieve the input data, prior to calling Bedrock InvokeModel.
Instance Attribute Summary collapse
-
#s3_input_uri ⇒ String?
readonly
The source location where the API response is written.
-
#s3_location ⇒ AWSCDK::S3::Location?
readonly
S3 object to retrieve the input data from.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_input_uri: nil, s3_location: nil) ⇒ BedrockInvokeModelInputProps
constructor
A new instance of BedrockInvokeModelInputProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_input_uri: nil, s3_location: nil) ⇒ BedrockInvokeModelInputProps
Returns a new instance of BedrockInvokeModelInputProps.
11 12 13 14 15 16 |
# File 'step_functions_tasks/bedrock_invoke_model_input_props.rb', line 11 def initialize(s3_input_uri: nil, s3_location: nil) @s3_input_uri = s3_input_uri Jsii::Type.check_type(@s3_input_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3InputUri") unless @s3_input_uri.nil? @s3_location = s3_location.is_a?(Hash) ? ::AWSCDK::S3::Location.new(**s3_location.transform_keys(&:to_sym)) : s3_location Jsii::Type.check_type(@s3_location, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuTG9jYXRpb24ifQ==")), "s3Location") unless @s3_location.nil? end |
Instance Attribute Details
#s3_input_uri ⇒ String? (readonly)
Note:
Default: - The API response body is returned in the result.
The source location where the API response is written.
This field can be used to specify s3 URI in the form of token
24 25 26 |
# File 'step_functions_tasks/bedrock_invoke_model_input_props.rb', line 24 def s3_input_uri @s3_input_uri end |
#s3_location ⇒ AWSCDK::S3::Location? (readonly)
Note:
Default: - Input data is retrieved from the body field
S3 object to retrieve the input data from.
If the S3 location is not set, then the Body must be set.
31 32 33 |
# File 'step_functions_tasks/bedrock_invoke_model_input_props.rb', line 31 def s3_location @s3_location end |
Class Method Details
.jsii_properties ⇒ Object
33 34 35 36 37 38 |
# File 'step_functions_tasks/bedrock_invoke_model_input_props.rb', line 33 def self.jsii_properties { :s3_input_uri => "s3InputUri", :s3_location => "s3Location", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'step_functions_tasks/bedrock_invoke_model_input_props.rb', line 40 def to_jsii result = {} result.merge!({ "s3InputUri" => @s3_input_uri, "s3Location" => @s3_location, }) result.compact end |