Class AddApplicationTargetGroupsProps
Properties for adding a new target group to a listener.
Inheritance
System.Object
AddApplicationTargetGroupsProps
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AddApplicationTargetGroupsProps : Object, IAddApplicationTargetGroupsProps, IAddRuleProps
Syntax (vb)
Public Class AddApplicationTargetGroupsProps
Inherits Object
Implements IAddApplicationTargetGroupsProps, IAddRuleProps
Remarks
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.ElasticLoadBalancingV2;
ApplicationTargetGroup applicationTargetGroup;
ListenerCondition listenerCondition;
var addApplicationTargetGroupsProps = new AddApplicationTargetGroupsProps {
TargetGroups = new [] { applicationTargetGroup },
// the properties below are optional
Conditions = new [] { listenerCondition },
Priority = 123
};
Synopsis
Constructors
AddApplicationTargetGroupsProps() |
Properties
Conditions | Rule applies if matches the conditions. |
Priority | Priority of this target group. |
TargetGroups | Target groups to forward requests to. |
Constructors
AddApplicationTargetGroupsProps()
public AddApplicationTargetGroupsProps()
Properties
Conditions
Rule applies if matches the conditions.
public ListenerCondition[] Conditions { get; set; }
Property Value
Remarks
Default: - No conditions.
See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html
Priority
Priority of this target group.
public Nullable<double> Priority { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
The rule with the lowest priority will be used for every request. If priority is not given, these target groups will be added as defaults, and must not have conditions.
Priorities must be unique.
Default: Target groups are used as defaults
TargetGroups
Target groups to forward requests to.
public IApplicationTargetGroup[] TargetGroups { get; set; }
Property Value