Show / Hide Table of Contents

Enum IpAddressType

What kind of addresses to allocate to the load balancer.

Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum IpAddressType
Syntax (vb)
Public Enum IpAddressType
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.

Fields

Name Description
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.

Back to top Generated by DocFX