Class IpAddressType
What kind of addresses to allocate to the load balancer.
Inheritance
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class IpAddressType : Enum
Syntax (vb)
Public NotInheritable Class IpAddressType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
var lb = new NetworkLoadBalancer(this, "LB", new NetworkLoadBalancerProps {
Vpc = vpc,
IpAddressType = IpAddressType.DUAL_STACK,
EnablePrefixForIpv6SourceNat = true
});
var listener = lb.AddListener("Listener", new BaseNetworkListenerProps {
Port = 1229,
Protocol = Protocol.UDP
});
Synopsis
Fields
DUAL_STACK | Allocate both IPv4 and IPv6 addresses. |
DUAL_STACK_WITHOUT_PUBLIC_IPV4 | IPv6 only public addresses, with private IPv4 and IPv6 addresses. |
IPV4 | Allocate IPv4 addresses. |
value__ |
Fields
DUAL_STACK
Allocate both IPv4 and IPv6 addresses.
public const IpAddressType DUAL_STACK
Field Value
Type | Description |
---|---|
Ip |
DUAL_STACK_WITHOUT_PUBLIC_IPV4
IPv6 only public addresses, with private IPv4 and IPv6 addresses.
public const IpAddressType DUAL_STACK_WITHOUT_PUBLIC_IPV4
Field Value
Type | Description |
---|---|
Ip |
IPV4
value__
public int value__
Field Value
Type | Description |
---|---|
System. |