Skip to content
v2.277.0

FallbackTargetProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const fallbackTargetProperty: bedrockagentcore.CfnGatewayRule.FallbackTargetProperty = {
  targetName: 'targetName',

  // the properties below are optional
  firstByteTimeoutMilliseconds: 123,
  model: 'model',
  triggerOn: {
    errors: ['errors'],
    statusCodes: ['statusCodes'],
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

fallback_target_property = bedrockagentcore.CfnGatewayRule.FallbackTargetProperty(
    target_name="targetName",

    # the properties below are optional
    first_byte_timeout_milliseconds=123,
    model="model",
    trigger_on=bedrockagentcore.CfnGatewayRule.FallbackTriggersProperty(
        errors=["errors"],
        status_codes=["statusCodes"]
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrockagentcore.*;

FallbackTargetProperty fallbackTargetProperty = FallbackTargetProperty.builder()
        .targetName("targetName")

        // the properties below are optional
        .firstByteTimeoutMilliseconds(123)
        .model("model")
        .triggerOn(FallbackTriggersProperty.builder()
                .errors(List.of("errors"))
                .statusCodes(List.of("statusCodes"))
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;

var fallbackTargetProperty = new FallbackTargetProperty {
    TargetName = "targetName",

    // the properties below are optional
    FirstByteTimeoutMilliseconds = 123,
    Model = "model",
    TriggerOn = new FallbackTriggersProperty {
        Errors = new [] { "errors" },
        StatusCodes = new [] { "statusCodes" }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

fallbackTargetProperty := &FallbackTargetProperty{
	TargetName: jsii.String("targetName"),

	// the properties below are optional
	FirstByteTimeoutMilliseconds: jsii.Number(123),
	Model: jsii.String("model"),
	TriggerOn: &FallbackTriggersProperty{
		Errors: []*string{
			jsii.String("errors"),
		},
		StatusCodes: []*string{
			jsii.String("statusCodes"),
		},
	},
}

Properties ​

firstByteTimeoutMillisecondsoptionalnumberfirst_byte_timeout_millisecondsoptionalint | floatfirstByteTimeoutMillisecondsoptionalNumberFirstByteTimeoutMillisecondsoptionaldoubleFirstByteTimeoutMillisecondsoptional*float64 #
modeloptionalstringmodeloptionalstrmodeloptionalStringModeloptionalstringModeloptional*string #
targetNamestringtarget_namestrtargetNameStringTargetNamestringTargetName*string required #
triggerOnoptionalIResolvable | CfnGatewayRule.FallbackTriggersPropertytrigger_onoptionaltyping.Union[IResolvable, FallbackTriggersProperty]triggerOnoptionalIResolvableTriggerOnoptionalIResolvableTriggerOnoptionalinterface{} #