Interface BedrockInvokeModelInputProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
BedrockInvokeModelInputProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-27T16:51:06.026Z")
@Stability(Stable)
public interface BedrockInvokeModelInputProps
extends software.amazon.jsii.JsiiSerializable
Location to retrieve the input data, prior to calling Bedrock InvokeModel.
Example:
import software.amazon.awscdk.services.bedrock.*; FoundationModel model = FoundationModel.fromFoundationModelId(this, "Model", FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1); BedrockInvokeModel task = BedrockInvokeModel.Builder.create(this, "Prompt Model") .model(model) .input(BedrockInvokeModelInputProps.builder().s3InputUri(JsonPath.stringAt("$.prompt")).build()) .output(BedrockInvokeModelOutputProps.builder().s3OutputUri(JsonPath.stringAt("$.prompt")).build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forBedrockInvokeModelInputProps
static final class
An implementation forBedrockInvokeModelInputProps
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getS3InputUri
The source location where the API response is written.This field can be used to specify s3 URI in the form of token
Default: - The API response body is returned in the result.
-
getS3Location
S3 object to retrieve the input data from.If the S3 location is not set, then the Body must be set.
Default: - Input data is retrieved from the `body` field
-
builder
-