interface ForwardProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.VpcLattice.CfnRule.ForwardProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsvpclattice#CfnRule_ForwardProperty |
Java | software.amazon.awscdk.services.vpclattice.CfnRule.ForwardProperty |
Python | aws_cdk.aws_vpclattice.CfnRule.ForwardProperty |
TypeScript | aws-cdk-lib » aws_vpclattice » CfnRule » ForwardProperty |
The forward action.
Traffic that matches the rule is forwarded to the specified target groups.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_vpclattice as vpclattice } from 'aws-cdk-lib';
const forwardProperty: vpclattice.CfnRule.ForwardProperty = {
targetGroups: [{
targetGroupIdentifier: 'targetGroupIdentifier',
// the properties below are optional
weight: 123,
}],
};
Properties
Name | Type | Description |
---|---|---|
target | IResolvable | IResolvable | Weighted [] | The target groups. |
targetGroups
Type:
IResolvable
|
IResolvable
|
Weighted
[]
The target groups.
Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic.
The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of the traffic goes to that target group.