# BedrockInvokeModelOutputProps

Location where the Bedrock InvokeModel API response is written.

- Source: [`aws-stepfunctions-tasks/lib/bedrock/invoke-model.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/bedrock/invoke-model.ts#L43)
- Type last changed: v2.156.0 · 6 Sep 2024

## 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

- `s3Location`: [Location](/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Location.html) — S3 object where the Bedrock InvokeModel API response is written.

  **Default:** Response body is returned in the task result

  If you specify this field, the API response body is replaced with
  a reference to the Amazon S3 location of the original output.

- `s3OutputUri`: string — The destination location where the API response is written.

  **Default:** The API response body is returned in the result.

  This field can be used to specify s3 URI in the form of token
