FallbackProperty Struct
| Source | |
|---|---|
| Type last changed |
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 fallbackProperty: bedrockagentcore.CfnGatewayRule.FallbackProperty = {
targetFallback: [{
targetName: 'targetName',
// the properties below are optional
firstByteTimeoutMilliseconds: 123,
model: 'model',
triggerOn: {
errors: ['errors'],
statusCodes: ['statusCodes'],
},
}],
// the properties below are optional
circuitBreaker: {
mode: 'mode',
},
firstByteTimeoutMilliseconds: 123,
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_property = bedrockagentcore.CfnGatewayRule.FallbackProperty(
target_fallback=[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"]
)
)],
# the properties below are optional
circuit_breaker=bedrockagentcore.CfnGatewayRule.CircuitBreakerConfigurationProperty(
mode="mode"
),
first_byte_timeout_milliseconds=123,
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.*;
FallbackProperty fallbackProperty = FallbackProperty.builder()
.targetFallback(List.of(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()))
// the properties below are optional
.circuitBreaker(CircuitBreakerConfigurationProperty.builder()
.mode("mode")
.build())
.firstByteTimeoutMilliseconds(123)
.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 fallbackProperty = new FallbackProperty {
TargetFallback = new [] { new FallbackTargetProperty {
TargetName = "targetName",
// the properties below are optional
FirstByteTimeoutMilliseconds = 123,
Model = "model",
TriggerOn = new FallbackTriggersProperty {
Errors = new [] { "errors" },
StatusCodes = new [] { "statusCodes" }
}
} },
// the properties below are optional
CircuitBreaker = new CircuitBreakerConfigurationProperty {
Mode = "mode"
},
FirstByteTimeoutMilliseconds = 123,
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"
fallbackProperty := &FallbackProperty{
TargetFallback: []interface{}{
&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"),
},
},
},
},
// the properties below are optional
CircuitBreaker: &CircuitBreakerConfigurationProperty{
Mode: jsii.String("mode"),
},
FirstByteTimeoutMilliseconds: jsii.Number(123),
TriggerOn: &FallbackTriggersProperty{
Errors: []*string{
jsii.String("errors"),
},
StatusCodes: []*string{
jsii.String("statusCodes"),
},
},
}
Properties
circuitBreakeroptionalIResolvable | CfnGatewayRule.circuit_breakeroptionaltyping.Union[IResolvable, CircuitBreakerConfigurationProperty]circuitBreakeroptionalIResolvableCircuitBreakeroptionalIResolvableCircuitBreakeroptionalinterface{} #firstByteTimeoutMillisecondsoptionalnumberfirst_byte_timeout_millisecondsoptionalint | floatfirstByteTimeoutMillisecondsoptionalNumberFirstByteTimeoutMillisecondsoptionaldoubleFirstByteTimeoutMillisecondsoptional*float64 #targetFallbackIResolvable | IResolvable | CfnGatewayRule.target_fallbacktyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FallbackTargetProperty]]]targetFallbackIResolvableTargetFallbackIResolvableTargetFallbackinterface{} required #triggerOnoptionalIResolvable | CfnGatewayRule.trigger_onoptionaltyping.Union[IResolvable, FallbackTriggersProperty]triggerOnoptionalIResolvableTriggerOnoptionalIResolvableTriggerOnoptionalinterface{} #