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}
YAML
FirstByteTimeoutMilliseconds:IntegerModel:StringTargetName:StringTriggerOn: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:
50Maximum:
900000Update 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:
1Maximum:
2048Update 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:
5XXstatus codes and theCONNECTION_ERROR,FIRST_BYTE_TIMEOUT, andUNROUTABLEerrors.Required: No
Type: FallbackTriggers
Update requires: No interruption