Show / Hide Table of Contents

Class CfnLaunchTemplate.NetworkInterfaceProperty

Specifies the parameters for a network interface.

Inheritance
object
CfnLaunchTemplate.NetworkInterfaceProperty
Implements
CfnLaunchTemplate.INetworkInterfaceProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnLaunchTemplate.NetworkInterfaceProperty : CfnLaunchTemplate.INetworkInterfaceProperty
Syntax (vb)
Public Class CfnLaunchTemplate.NetworkInterfaceProperty Implements CfnLaunchTemplate.INetworkInterfaceProperty
Remarks

NetworkInterface is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html

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.EC2;

             var networkInterfaceProperty = new NetworkInterfaceProperty {
                 AssociateCarrierIpAddress = false,
                 AssociatePublicIpAddress = false,
                 ConnectionTrackingSpecification = new ConnectionTrackingSpecificationProperty {
                     TcpEstablishedTimeout = 123,
                     UdpStreamTimeout = 123,
                     UdpTimeout = 123
                 },
                 DeleteOnTermination = false,
                 Description = "description",
                 DeviceIndex = 123,
                 EnaSrdSpecification = new EnaSrdSpecificationProperty {
                     EnaSrdEnabled = false,
                     EnaSrdUdpSpecification = new EnaSrdUdpSpecificationProperty {
                         EnaSrdUdpEnabled = false
                     }
                 },
                 Groups = new [] { "groups" },
                 InterfaceType = "interfaceType",
                 Ipv4PrefixCount = 123,
                 Ipv4Prefixes = new [] { new Ipv4PrefixSpecificationProperty {
                     Ipv4Prefix = "ipv4Prefix"
                 } },
                 Ipv6AddressCount = 123,
                 Ipv6Addresses = new [] { new Ipv6AddProperty {
                     Ipv6Address = "ipv6Address"
                 } },
                 Ipv6PrefixCount = 123,
                 Ipv6Prefixes = new [] { new Ipv6PrefixSpecificationProperty {
                     Ipv6Prefix = "ipv6Prefix"
                 } },
                 NetworkCardIndex = 123,
                 NetworkInterfaceId = "networkInterfaceId",
                 PrimaryIpv6 = false,
                 PrivateIpAddress = "privateIpAddress",
                 PrivateIpAddresses = new [] { new PrivateIpAddProperty {
                     Primary = false,
                     PrivateIpAddress = "privateIpAddress"
                 } },
                 SecondaryPrivateIpAddressCount = 123,
                 SubnetId = "subnetId"
             };

Synopsis

Constructors

NetworkInterfaceProperty()

Specifies the parameters for a network interface.

Properties

AssociateCarrierIpAddress

Associates a Carrier IP address with eth0 for a new network interface.

AssociatePublicIpAddress

Associates a public IPv4 address with eth0 for a new network interface.

ConnectionTrackingSpecification

A connection tracking specification for the network interface.

DeleteOnTermination

Indicates whether the network interface is deleted when the instance is terminated.

Description

A description for the network interface.

DeviceIndex

The device index for the network interface attachment.

EnaSrdSpecification

The ENA Express configuration for the network interface.

Groups

The IDs of one or more security groups.

InterfaceType

The type of network interface.

Ipv4PrefixCount

The number of IPv4 prefixes to be automatically assigned to the network interface.

Ipv4Prefixes

One or more IPv4 prefixes to be assigned to the network interface.

Ipv6AddressCount

The number of IPv6 addresses to assign to a network interface.

Ipv6Addresses

One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.

Ipv6PrefixCount

The number of IPv6 prefixes to be automatically assigned to the network interface.

Ipv6Prefixes

One or more IPv6 prefixes to be assigned to the network interface.

NetworkCardIndex

The index of the network card.

NetworkInterfaceId

The ID of the network interface.

PrimaryIpv6

The primary IPv6 address of the network interface.

PrivateIpAddress

The primary private IPv4 address of the network interface.

PrivateIpAddresses

One or more private IPv4 addresses.

SecondaryPrivateIpAddressCount

The number of secondary private IPv4 addresses to assign to a network interface.

SubnetId

The ID of the subnet for the network interface.

Constructors

NetworkInterfaceProperty()

Specifies the parameters for a network interface.

public NetworkInterfaceProperty()
Remarks

NetworkInterface is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html

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.EC2;

             var networkInterfaceProperty = new NetworkInterfaceProperty {
                 AssociateCarrierIpAddress = false,
                 AssociatePublicIpAddress = false,
                 ConnectionTrackingSpecification = new ConnectionTrackingSpecificationProperty {
                     TcpEstablishedTimeout = 123,
                     UdpStreamTimeout = 123,
                     UdpTimeout = 123
                 },
                 DeleteOnTermination = false,
                 Description = "description",
                 DeviceIndex = 123,
                 EnaSrdSpecification = new EnaSrdSpecificationProperty {
                     EnaSrdEnabled = false,
                     EnaSrdUdpSpecification = new EnaSrdUdpSpecificationProperty {
                         EnaSrdUdpEnabled = false
                     }
                 },
                 Groups = new [] { "groups" },
                 InterfaceType = "interfaceType",
                 Ipv4PrefixCount = 123,
                 Ipv4Prefixes = new [] { new Ipv4PrefixSpecificationProperty {
                     Ipv4Prefix = "ipv4Prefix"
                 } },
                 Ipv6AddressCount = 123,
                 Ipv6Addresses = new [] { new Ipv6AddProperty {
                     Ipv6Address = "ipv6Address"
                 } },
                 Ipv6PrefixCount = 123,
                 Ipv6Prefixes = new [] { new Ipv6PrefixSpecificationProperty {
                     Ipv6Prefix = "ipv6Prefix"
                 } },
                 NetworkCardIndex = 123,
                 NetworkInterfaceId = "networkInterfaceId",
                 PrimaryIpv6 = false,
                 PrivateIpAddress = "privateIpAddress",
                 PrivateIpAddresses = new [] { new PrivateIpAddProperty {
                     Primary = false,
                     PrivateIpAddress = "privateIpAddress"
                 } },
                 SecondaryPrivateIpAddressCount = 123,
                 SubnetId = "subnetId"
             };

Properties

AssociateCarrierIpAddress

Associates a Carrier IP address with eth0 for a new network interface.

public object? AssociateCarrierIpAddress { get; set; }
Property Value

object

Remarks

Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. For more information about Carrier IP addresses, see Carrier IP addresses in the AWS Wavelength Developer Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-associatecarrieripaddress

AssociatePublicIpAddress

Associates a public IPv4 address with eth0 for a new network interface.

public object? AssociatePublicIpAddress { get; set; }
Property Value

object

Remarks

AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-associatepublicipaddress

ConnectionTrackingSpecification

A connection tracking specification for the network interface.

public object? ConnectionTrackingSpecification { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-connectiontrackingspecification

DeleteOnTermination

Indicates whether the network interface is deleted when the instance is terminated.

public object? DeleteOnTermination { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-deleteontermination

Description

A description for the network interface.

public string? Description { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-description

DeviceIndex

The device index for the network interface attachment.

public double? DeviceIndex { get; set; }
Property Value

double?

Remarks

The primary network interface has a device index of 0. If the network interface is of type interface , you must specify a device index.

If you create a launch template that includes secondary network interfaces but no primary network interface, and you specify it using the LaunchTemplate property of AWS::EC2::Instance , then you must include a primary network interface using the NetworkInterfaces property of AWS::EC2::Instance .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-deviceindex

EnaSrdSpecification

The ENA Express configuration for the network interface.

public object? EnaSrdSpecification { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-enasrdspecification

Groups

The IDs of one or more security groups.

public string[]? Groups { get; set; }
Property Value

string[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-groups

InterfaceType

The type of network interface.

public string? InterfaceType { get; set; }
Property Value

string

Remarks

To create an Elastic Fabric Adapter (EFA), specify efa or efa . For more information, see Elastic Fabric Adapter for AI/ML and HPC workloads on Amazon EC2 in the Amazon EC2 User Guide .

If you are not creating an EFA, specify interface or omit this parameter.

If you specify efa-only , do not assign any IP addresses to the network interface. EFA-only network interfaces do not support IP addresses.

Valid values: interface | efa | efa-only

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-interfacetype

Ipv4PrefixCount

The number of IPv4 prefixes to be automatically assigned to the network interface.

public double? Ipv4PrefixCount { get; set; }
Property Value

double?

Remarks

You cannot use this option if you use the Ipv4Prefix option.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-ipv4prefixcount

Ipv4Prefixes

One or more IPv4 prefixes to be assigned to the network interface.

public object? Ipv4Prefixes { get; set; }
Property Value

object

Remarks

You cannot use this option if you use the Ipv4PrefixCount option.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-ipv4prefixes

Ipv6AddressCount

The number of IPv6 addresses to assign to a network interface.

public double? Ipv6AddressCount { get; set; }
Property Value

double?

Remarks

Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-ipv6addresscount

Ipv6Addresses

One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.

public object? Ipv6Addresses { get; set; }
Property Value

object

Remarks

You can't use this option if you're specifying a number of IPv6 addresses.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-ipv6addresses

Ipv6PrefixCount

The number of IPv6 prefixes to be automatically assigned to the network interface.

public double? Ipv6PrefixCount { get; set; }
Property Value

double?

Remarks

You cannot use this option if you use the Ipv6Prefix option.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-ipv6prefixcount

Ipv6Prefixes

One or more IPv6 prefixes to be assigned to the network interface.

public object? Ipv6Prefixes { get; set; }
Property Value

object

Remarks

You cannot use this option if you use the Ipv6PrefixCount option.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-ipv6prefixes

NetworkCardIndex

The index of the network card.

public double? NetworkCardIndex { get; set; }
Property Value

double?

Remarks

Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-networkcardindex

NetworkInterfaceId

The ID of the network interface.

public string? NetworkInterfaceId { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-networkinterfaceid

PrimaryIpv6

The primary IPv6 address of the network interface.

public object? PrimaryIpv6 { get; set; }
Property Value

object

Remarks

When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-primaryipv6

PrivateIpAddress

The primary private IPv4 address of the network interface.

public string? PrivateIpAddress { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-privateipaddress

PrivateIpAddresses

One or more private IPv4 addresses.

public object? PrivateIpAddresses { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-privateipaddresses

SecondaryPrivateIpAddressCount

The number of secondary private IPv4 addresses to assign to a network interface.

public double? SecondaryPrivateIpAddressCount { get; set; }
Property Value

double?

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-secondaryprivateipaddresscount

SubnetId

The ID of the subnet for the network interface.

public string? SubnetId { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-subnetid

Implements

CfnLaunchTemplate.INetworkInterfaceProperty
Back to top Generated by DocFX