interface BedrockInvokeModelOutputProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.StepFunctions.Tasks.BedrockInvokeModelOutputProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#BedrockInvokeModelOutputProps |
![]() | software.amazon.awscdk.services.stepfunctions.tasks.BedrockInvokeModelOutputProps |
![]() | aws_cdk.aws_stepfunctions_tasks.BedrockInvokeModelOutputProps |
![]() | aws-cdk-lib » aws_stepfunctions_tasks » BedrockInvokeModelOutputProps |
Location where the Bedrock InvokeModel API response is written.
See also: https://docs.aws.amazon.com/step-functions/latest/dg/connect-bedrock.html
Example
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
Name | Type | Description |
---|---|---|
s3 | Location | S3 object where the Bedrock InvokeModel API response is written. |
s3 | string | The destination location where the API response is written. |
s3Location?
Type:
Location
(optional, 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.
s3OutputUri?
Type:
string
(optional, 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