Show / Hide Table of Contents

Class CfnListener.ForwardProperty

The forward action.

Inheritance
System.Object
CfnListener.ForwardProperty
Implements
CfnListener.IForwardProperty
Namespace: Amazon.CDK.AWS.VpcLattice
Assembly: Amazon.CDK.AWS.VpcLattice.dll
Syntax (csharp)
public class ForwardProperty : Object, CfnListener.IForwardProperty
Syntax (vb)
Public Class ForwardProperty
    Inherits Object
    Implements CfnListener.IForwardProperty
Remarks

Traffic that matches the rule is forwarded to the specified target groups.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-listener-forward.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.VpcLattice;

var forwardProperty = new ForwardProperty {
    TargetGroups = new [] { new WeightedTargetGroupProperty {
        TargetGroupIdentifier = "targetGroupIdentifier",

        // the properties below are optional
        Weight = 123
    } }
};

Synopsis

Constructors

ForwardProperty()

Properties

TargetGroups

The target groups.

Constructors

ForwardProperty()

public ForwardProperty()

Properties

TargetGroups

The target groups.

public object TargetGroups { get; set; }
Property Value

System.Object

Remarks

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 traffic will go to that target group.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-vpclattice-listener-forward.html#cfn-vpclattice-listener-forward-targetgroups

Implements

CfnListener.IForwardProperty
Back to top Generated by DocFX