-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnRule_WeightedTargetGroupProperty.go
32 lines (29 loc) · 1.74 KB
/
CfnRule_WeightedTargetGroupProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package awsvpclattice
// Describes the weight of a target group.
//
// Example:
// // 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"
//
// weightedTargetGroupProperty := &WeightedTargetGroupProperty{
// TargetGroupIdentifier: jsii.String("targetGroupIdentifier"),
//
// // the properties below are optional
// Weight: jsii.Number(123),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-rule-weightedtargetgroup.html
//
type CfnRule_WeightedTargetGroupProperty struct {
// The ID of the target group.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-rule-weightedtargetgroup.html#cfn-vpclattice-rule-weightedtargetgroup-targetgroupidentifier
//
TargetGroupIdentifier *string `field:"required" json:"targetGroupIdentifier" yaml:"targetGroupIdentifier"`
// Only required if you specify multiple target groups for a forward action.
//
// The weight determines how requests are distributed to the target group. For example, if you specify two target groups, each with a weight of 10, each target group receives half the requests. If you specify two target groups, one with a weight of 10 and the other with a weight of 20, the target group with a weight of 20 receives twice as many requests as the other target group. If there's only one target group specified, then the default value is 100.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-rule-weightedtargetgroup.html#cfn-vpclattice-rule-weightedtargetgroup-weight
//
Weight *float64 `field:"optional" json:"weight" yaml:"weight"`
}