Class: AWSCDK::StepFunctionsTasks::BedrockInvokeModelOutputProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctionsTasks::BedrockInvokeModelOutputProps
- Defined in:
- step_functions_tasks/bedrock_invoke_model_output_props.rb
Overview
Location where the Bedrock InvokeModel API response is written.
Instance Attribute Summary collapse
-
#s3_location ⇒ AWSCDK::S3::Location?
readonly
S3 object where the Bedrock InvokeModel API response is written.
-
#s3_output_uri ⇒ String?
readonly
The destination location where the API response is written.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_location: nil, s3_output_uri: nil) ⇒ BedrockInvokeModelOutputProps
constructor
A new instance of BedrockInvokeModelOutputProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_location: nil, s3_output_uri: nil) ⇒ BedrockInvokeModelOutputProps
Returns a new instance of BedrockInvokeModelOutputProps.
11 12 13 14 15 16 |
# File 'step_functions_tasks/bedrock_invoke_model_output_props.rb', line 11 def initialize(s3_location: nil, s3_output_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? @s3_output_uri = s3_output_uri Jsii::Type.check_type(@s3_output_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3OutputUri") unless @s3_output_uri.nil? end |
Instance Attribute Details
#s3_location ⇒ AWSCDK::S3::Location? (readonly)
Note:
Default: - Response body is returned in the task result
S3 object where the Bedrock InvokeModel API response is written.
If you specify this field, the API response body is replaced with a reference to the Amazon S3 location of the original output.
25 26 27 |
# File 'step_functions_tasks/bedrock_invoke_model_output_props.rb', line 25 def s3_location @s3_location end |
#s3_output_uri ⇒ String? (readonly)
Note:
Default: - The API response body is returned in the result.
The destination location where the API response is written.
This field can be used to specify s3 URI in the form of token
32 33 34 |
# File 'step_functions_tasks/bedrock_invoke_model_output_props.rb', line 32 def s3_output_uri @s3_output_uri end |
Class Method Details
.jsii_properties ⇒ Object
34 35 36 37 38 39 |
# File 'step_functions_tasks/bedrock_invoke_model_output_props.rb', line 34 def self.jsii_properties { :s3_location => "s3Location", :s3_output_uri => "s3OutputUri", } end |
Instance Method Details
#to_jsii ⇒ Object
41 42 43 44 45 46 47 48 |
# File 'step_functions_tasks/bedrock_invoke_model_output_props.rb', line 41 def to_jsii result = {} result.merge!({ "s3Location" => @s3_location, "s3OutputUri" => @s3_output_uri, }) result.compact end |