# FallbackTargetProperty

- Source: Generated at build time
- Type last changed: v2.276.0 · 10 Nov 2026

## Example

TypeScript:

```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:

```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:

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

C# / .NET:

```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" }
    }
};
```

Golang:

```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

- `firstByteTimeoutMilliseconds`: number

- `model`: string

- `targetName`: string (required)

- `triggerOn`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGatewayRule.FallbackTriggersProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnGatewayRule.FallbackTriggersProperty.html)
