How is your experience with the OutSystems Community?
amazon-bedrock-connector
Service icon

Amazon Bedrock Connector

Supported
Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 28 Oct (3 weeks ago)
 by 
OutSystems
5.0
 (3 ratings)
amazon-bedrock-connector

Amazon Bedrock Connector

Documentation
1.0.0

Before you start

Using Amazon Bedrock incurs costs billed to your AWS account. See Amazon Bedrock pricing.

Setup

  1. In the AWS console, enable access to the Bedrock models you want to use.
  2. Create a Bedrock API key, or an IAM user access key with the bedrock:InvokeModel permission.
  3. In Service Center › AWSBedrockConnector › Site Properties, set:
    • Authentication: BEDROCK_API_KEY, or AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.
    • Region: the AWS region where Bedrock is enabled. A Bedrock API key only works in the region where it was created.
    • DefaultModelId: the model used when no ModelId is passed, for example global.anthropic.claude-sonnet-5-5.
    • For images: ImageRegion (us-west-2) and DefaultImageModelId.

Each site property’s description in Service Center explains the accepted values.

Actions

BedrockConverse: sends a conversation to a Bedrock text model through the Converse API.

  • Inputs:
    • Messages: list of messages. Role is user or assistant, starting with user.
    • ModelId (optional): if empty, uses DefaultModelId.
    • SystemPrompt (optional).
    • Options (optional).
    • ApiKey (optional): overrides the site property.
  • Outputs:
    • Text: the model’s reply.
    • StopReason: if this is max_tokens, the reply was cut short.
    • Usage: InputTokens, OutputTokens, and TotalTokens.

BedrockGenerateImage: generates an image with a Stability AI model.

  • Inputs:
    • Prompt.
    • NegativePrompt (optional).
    • Width and Height (optional): set the aspect ratio.
    • Seed (optional).
    • ModelId (optional): if empty, uses DefaultImageModelId.
    • ApiKey (optional).
  • Outputs:
    • ImageData: a PNG image.


Upgrading from 0.1.0

Set the site properties above. The old actions are renamed DEPRECATED_InvokeModel_* and call models that Amazon Bedrock has retired. Move to BedrockConverse and BedrockGenerateImage.

Current limitations

No file attachments in conversations, no streaming, and one image per call.

Demo

Install AWS Bedrock Connector Demo in a development environment to see the connector in use.


0.1.0

This component allows developers to use generative AI in their applications, connecting to a wide range of foundation models hosted on AWS.

The component allows to use the following foundation models:

  1. Claude_v2
  2. Titan
  3. StableDifusionXL

Claude_v2

Anthropic's most powerful model, which excels at a wide range of tasks from sophisticated dialogue and creative content generation to detailed instruction following.

Titan

Titan Embeddings Generation 1 (G1) - Text is fast and cost-effective. Designed for fast responses, this model is an ideal choice for language processing tasks that require maximum affordability and less processing power.

StableDifusionXL

SDXL produces more detailed imagery and composition than its predecessor and represents an important step forward for Stability’s models.


To use this connector it is necessary to have an AWS Bedrock service activated in an account. 

Using the AWS Bedrock service will have costs that will be billed in your AWS Account. Check the AWS pricing page.