Show / Hide Table of Contents

Class CfnNetworkInterfaceProps

Properties for defining a CfnNetworkInterface.

Inheritance
System.Object
CfnNetworkInterfaceProps
Implements
ICfnNetworkInterfaceProps
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnNetworkInterfaceProps : Object, ICfnNetworkInterfaceProps
Syntax (vb)
Public Class CfnNetworkInterfaceProps
    Inherits Object
    Implements ICfnNetworkInterfaceProps
Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-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 cfnNetworkInterfaceProps = new CfnNetworkInterfaceProps {
    SubnetId = "subnetId",

    // the properties below are optional
    Description = "description",
    GroupSet = new [] { "groupSet" },
    InterfaceType = "interfaceType",
    Ipv6AddressCount = 123,
    Ipv6Addresses = new [] { new InstanceIpv6AddressProperty {
        Ipv6Address = "ipv6Address"
    } },
    PrivateIpAddress = "privateIpAddress",
    PrivateIpAddresses = new [] { new PrivateIpAddressSpecificationProperty {
        Primary = false,
        PrivateIpAddress = "privateIpAddress"
    } },
    SecondaryPrivateIpAddressCount = 123,
    SourceDestCheck = false,
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};

Synopsis

Constructors

CfnNetworkInterfaceProps()

Properties

Description

A description for the network interface.

GroupSet

The security group IDs associated with this network interface.

InterfaceType

The type of 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 to associate with the network interface.

PrivateIpAddress

Assigns a single private IP address to the network interface, which is used as the primary private IP address.

PrivateIpAddresses

Assigns private IP addresses to the network interface.

SecondaryPrivateIpAddressCount

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

SourceDestCheck

Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives.

SubnetId

The ID of the subnet to associate with the network interface.

Tags

An arbitrary set of tags (key-value pairs) for this network interface.

Constructors

CfnNetworkInterfaceProps()

public CfnNetworkInterfaceProps()

Properties

Description

A description for the network interface.

public string Description { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterface.html#cfn-ec2-networkinterface-description

GroupSet

The security group IDs associated with this network interface.

public string[] GroupSet { get; set; }
Property Value

System.String[]

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterface.html#cfn-ec2-networkinterface-groupset

InterfaceType

The type of network interface.

public string InterfaceType { get; set; }
Property Value

System.String

Remarks

The default is interface . The supported values are efa and trunk .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterface.html#cfn-ec2-networkinterface-interfacetype

Ipv6AddressCount

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

public Nullable<double> Ipv6AddressCount { get; set; }
Property Value

System.Nullable<System.Double>

Remarks

Amazon EC2 automatically selects the IPv6 addresses from the subnet range. To specify specific IPv6 addresses, use the Ipv6Addresses property and don't specify this property.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterface.html#cfn-ec2-networkinterface-ipv6addresscount

Ipv6Addresses

One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface.

public object Ipv6Addresses { get; set; }
Property Value

System.Object

Remarks

If you're specifying a number of IPv6 addresses, use the Ipv6AddressCount property and don't specify this property.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterface.html#cfn-ec2-networkinterface-ipv6addresses

PrivateIpAddress

Assigns a single private IP address to the network interface, which is used as the primary private IP address.

public string PrivateIpAddress { get; set; }
Property Value

System.String

Remarks

If you want to specify multiple private IP address, use the PrivateIpAddresses property.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterface.html#cfn-ec2-networkinterface-privateipaddress

PrivateIpAddresses

Assigns private IP addresses to the network interface.

public object PrivateIpAddresses { get; set; }
Property Value

System.Object

Remarks

You can specify a primary private IP address by setting the value of the Primary property to true in the PrivateIpAddressSpecification property. If you want EC2 to automatically assign private IP addresses, use the SecondaryPrivateIpAddressCount property and do not specify this property.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterface.html#cfn-ec2-networkinterface-privateipaddresses

SecondaryPrivateIpAddressCount

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

public Nullable<double> SecondaryPrivateIpAddressCount { get; set; }
Property Value

System.Nullable<System.Double>

Remarks

When you specify a number of secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range. You can't specify this option and specify more than one private IP address using privateIpAddresses .

You can't specify a count of private IPv4 addresses if you've specified one of the following: specific private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterface.html#cfn-ec2-networkinterface-secondaryprivateipaddresscount

SourceDestCheck

Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives.

public object SourceDestCheck { get; set; }
Property Value

System.Object

Remarks

If the value is true , source/destination checks are enabled; otherwise, they are disabled. The default value is true . You must disable source/destination checks if the instance runs services such as network address translation, routing, or firewalls.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterface.html#cfn-ec2-networkinterface-sourcedestcheck

SubnetId

The ID of the subnet to associate with the network interface.

public string SubnetId { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterface.html#cfn-ec2-networkinterface-subnetid

Tags

An arbitrary set of tags (key-value pairs) for this network interface.

public ICfnTag[] Tags { get; set; }
Property Value

ICfnTag[]

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterface.html#cfn-ec2-networkinterface-tags

Implements

ICfnNetworkInterfaceProps
Back to top Generated by DocFX