AWS::BedrockAgentCore::GatewayRule FallbackTarget - AWS CloudFormation
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::BedrockAgentCore::GatewayRule FallbackTarget

Specifies a target to send the request to when the previous target in the fallback chain fails. Includes the target name, the model to send, and the conditions that trigger a fallback from this target to the next one.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "FirstByteTimeoutMilliseconds" : Integer, "Model" : String, "TargetName" : String, "TriggerOn" : FallbackTriggers }

Properties

FirstByteTimeoutMilliseconds

The maximum time, in milliseconds, from sending the request to this target until the first byte of the response body arrives. This setting isn't inherited from the route. If you don't specify a value, no timeout is enforced.

Required: No

Type: Integer

Minimum: 50

Maximum: 900000

Update requires: No interruption

Model

The model ID to send to this fallback target. If you don't specify a model, the gateway sends the model from the original request.

Required: No

Type: String

Pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-._/@:]*$

Minimum: 1

Maximum: 2048

Update requires: No interruption

TargetName

The name of the gateway target to fall back to. The target must be an inference target.

Required: Yes

Type: String

Pattern: ^([0-9a-zA-Z][-]?){1,100}$

Update requires: No interruption

TriggerOn

The status codes and errors from this target that cause the gateway to send the request to the next fallback target. This setting isn't inherited from the route. If you omit it, the gateway uses the default triggers: 5XX status codes and the CONNECTION_ERROR, FIRST_BYTE_TIMEOUT, and UNROUTABLE errors.

Required: No

Type: FallbackTriggers

Update requires: No interruption