Class TargetGroupIpAddressType
The IP address type of targets registered with a target group.
Inheritance
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class TargetGroupIpAddressType : Enum
Syntax (vb)
Public NotInheritable Class TargetGroupIpAddressType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
var ipv4ApplicationTargetGroup = new ApplicationTargetGroup(this, "IPv4ApplicationTargetGroup", new ApplicationTargetGroupProps {
Vpc = vpc,
Port = 80,
TargetType = TargetType.INSTANCE,
IpAddressType = TargetGroupIpAddressType.IPV4
});
var ipv6ApplicationTargetGroup = new ApplicationTargetGroup(this, "Ipv6ApplicationTargetGroup", new ApplicationTargetGroupProps {
Vpc = vpc,
Port = 80,
TargetType = TargetType.INSTANCE,
IpAddressType = TargetGroupIpAddressType.IPV6
});
var ipv4NetworkTargetGroup = new NetworkTargetGroup(this, "IPv4NetworkTargetGroup", new NetworkTargetGroupProps {
Vpc = vpc,
Port = 80,
TargetType = TargetType.INSTANCE,
IpAddressType = TargetGroupIpAddressType.IPV4
});
var ipv6NetworkTargetGroup = new NetworkTargetGroup(this, "Ipv6NetworkTargetGroup", new NetworkTargetGroupProps {
Vpc = vpc,
Port = 80,
TargetType = TargetType.INSTANCE,
IpAddressType = TargetGroupIpAddressType.IPV6
});
Synopsis
Fields
IPV4 | IPv4 addresses. |
IPV6 | IPv6 addresses. |
value__ |
Fields
IPV4
IPv4 addresses.
public const TargetGroupIpAddressType IPV4
Field Value
Type | Description |
---|---|
Target |
IPV6
IPv6 addresses.
public const TargetGroupIpAddressType IPV6
Field Value
Type | Description |
---|---|
Target |
value__
public int value__
Field Value
Type | Description |
---|---|
System. |