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();
 

See Also:
  • Method Details

    • getS3InputUri

      @Stability(Stable) @Nullable default String 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

      @Stability(Stable) @Nullable default Location 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

      @Stability(Stable) static BedrockInvokeModelInputProps.Builder builder()
      Returns:
      a BedrockInvokeModelInputProps.Builder of BedrockInvokeModelInputProps