Show / Hide Table of Contents

Enum IpProtocol

The types of IP addresses provisioned in the VPC.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum IpProtocol
Syntax (vb)
Public Enum IpProtocol
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.ElasticLoadBalancingV2;


            // The VPC and subnet must have associated IPv6 CIDR blocks.
            var vpc = new Vpc(this, "Vpc", new VpcProps {
                IpProtocol = IpProtocol.DUAL_STACK
            });
            var cluster = new Cluster(this, "EcsCluster", new ClusterProps { Vpc = vpc });

            var service = new ApplicationLoadBalancedFargateService(this, "myService", new ApplicationLoadBalancedFargateServiceProps {
                Cluster = cluster,
                TaskImageOptions = new ApplicationLoadBalancedTaskImageOptions {
                    Image = ContainerImage.FromRegistry("amazon/amazon-ecs-sample")
                },
                MinHealthyPercent = 100,
                IpAddressType = IpAddressType.DUAL_STACK
            });

            var applicationLoadBalancedEc2Service = new ApplicationLoadBalancedEc2Service(this, "myService", new ApplicationLoadBalancedEc2ServiceProps {
                Cluster = cluster,
                TaskImageOptions = new ApplicationLoadBalancedTaskImageOptions {
                    Image = ContainerImage.FromRegistry("amazon/amazon-ecs-sample")
                },
                MinHealthyPercent = 100,
                IpAddressType = IpAddressType.DUAL_STACK
            });

Synopsis

Fields

DUAL_STACK

The vpc will have both IPv4 and IPv6 addresses.

IPV4_ONLY

The vpc will be configured with only IPv4 addresses.

Fields

Name Description
DUAL_STACK

The vpc will have both IPv4 and IPv6 addresses.

IPV4_ONLY

The vpc will be configured with only IPv4 addresses.

Back to top Generated by DocFX