BedrockInvokeModelOutputProps Struct
Location where the Bedrock InvokeModel API response is written.
Example
ts
import * as bedrock from 'aws-cdk-lib/aws-bedrock';
const model = bedrock.FoundationModel.fromFoundationModelId(
this,
'Model',
bedrock.FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1,
);
const task = new tasks.BedrockInvokeModel(this, 'Prompt Model', {
model,
input : { s3InputUri: sfn.JsonPath.stringAt('$.prompt') },
output: { s3OutputUri: sfn.JsonPath.stringAt('$.prompt') },
});
Properties
s3LocationLocations3_locationLocations3LocationLocationS3LocationLocationS3LocationLocation= Response body is returned in the…#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.
default
Default: Response body is returned in the task result
s3OutputUristrings3_output_uristrs3OutputUriStringS3OutputUristringS3OutputUri*string= The API response body is returne…#The destination location where the API response is written.
This field can be used to specify s3 URI in the form of token
default
Default: The API response body is returned in the result.