interface CfnGatewayRuleProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.CfnGatewayRuleProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#CfnGatewayRuleProps |
Java | software.amazon.awscdk.services.bedrockagentcore.CfnGatewayRuleProps |
Python | aws_cdk.aws_bedrockagentcore.CfnGatewayRuleProps |
TypeScript | aws-cdk-lib » aws_bedrockagentcore » CfnGatewayRuleProps |
Properties for defining a CfnGatewayRule.
Example
// 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 cfnGatewayRuleProps: bedrockagentcore.CfnGatewayRuleProps = {
actions: [{
configurationBundle: {
staticOverride: {
bundleArn: 'bundleArn',
bundleVersion: 'bundleVersion',
},
weightedOverride: {
trafficSplit: [{
configurationBundle: {
bundleArn: 'bundleArn',
bundleVersion: 'bundleVersion',
},
name: 'name',
weight: 123,
// the properties below are optional
description: 'description',
metadata: {
metadataKey: 'metadata',
},
}],
},
},
routeToTarget: {
staticRoute: {
targetName: 'targetName',
},
weightedRoute: {
trafficSplit: [{
name: 'name',
targetName: 'targetName',
weight: 123,
// the properties below are optional
description: 'description',
metadata: {
metadataKey: 'metadata',
},
}],
},
},
}],
priority: 123,
// the properties below are optional
conditions: [{
matchPaths: {
anyOf: ['anyOf'],
},
matchPrincipals: {
anyOf: [{
iamPrincipal: {
arn: 'arn',
// the properties below are optional
operator: 'operator',
},
}],
},
}],
description: 'description',
gatewayIdentifier: 'gatewayIdentifier',
};
Properties
| Name | Type | Description |
|---|---|---|
| actions | IResolvable | (IResolvable | Action)[] | |
| priority | number | |
| conditions? | IResolvable | (IResolvable | Condition)[] | |
| description? | string | |
| gateway | string |
actions
Type:
IResolvable | (IResolvable | Action)[]
priority
Type:
number
conditions?
Type:
IResolvable | (IResolvable | Condition)[]
(optional)
description?
Type:
string
(optional)
gatewayIdentifier?
Type:
string
(optional)

.NET
Go
Java
Python
TypeScript