CfnNetworkInterfaceProps

class aws_cdk.aws_ec2.CfnNetworkInterfaceProps(*, description=None, group_set=None, interface_type=None, ipv6_address_count=None, ipv6_addresses=None, private_ip_address=None, private_ip_addresses=None, secondary_private_ip_address_count=None, source_dest_check=None, subnet_id, tags=None)

Bases: object

Properties for defining a AWS::EC2::NetworkInterface.

Parameters
  • description (Optional[str]) – AWS::EC2::NetworkInterface.Description.

  • group_set (Optional[Sequence[str]]) – AWS::EC2::NetworkInterface.GroupSet.

  • interface_type (Optional[str]) – AWS::EC2::NetworkInterface.InterfaceType.

  • ipv6_address_count (Union[int, float, None]) – AWS::EC2::NetworkInterface.Ipv6AddressCount.

  • ipv6_addresses (Union[IResolvable, Sequence[Union[IResolvable, InstanceIpv6AddressProperty]], None]) – AWS::EC2::NetworkInterface.Ipv6Addresses.

  • private_ip_address (Optional[str]) – AWS::EC2::NetworkInterface.PrivateIpAddress.

  • private_ip_addresses (Union[IResolvable, Sequence[Union[IResolvable, PrivateIpAddressSpecificationProperty]], None]) – AWS::EC2::NetworkInterface.PrivateIpAddresses.

  • secondary_private_ip_address_count (Union[int, float, None]) – AWS::EC2::NetworkInterface.SecondaryPrivateIpAddressCount.

  • source_dest_check (Union[bool, IResolvable, None]) – AWS::EC2::NetworkInterface.SourceDestCheck.

  • subnet_id (str) – AWS::EC2::NetworkInterface.SubnetId.

  • tags (Optional[Sequence[CfnTag]]) – AWS::EC2::NetworkInterface.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

cfn_network_interface_props = ec2.CfnNetworkInterfaceProps(
    subnet_id="subnetId",

    # the properties below are optional
    description="description",
    group_set=["groupSet"],
    interface_type="interfaceType",
    ipv6_address_count=123,
    ipv6_addresses=[ec2.CfnNetworkInterface.InstanceIpv6AddressProperty(
        ipv6_address="ipv6Address"
    )],
    private_ip_address="privateIpAddress",
    private_ip_addresses=[ec2.CfnNetworkInterface.PrivateIpAddressSpecificationProperty(
        primary=False,
        private_ip_address="privateIpAddress"
    )],
    secondary_private_ip_address_count=123,
    source_dest_check=False,
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

description

AWS::EC2::NetworkInterface.Description.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-description

Return type

Optional[str]

group_set

AWS::EC2::NetworkInterface.GroupSet.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-groupset

Return type

Optional[List[str]]

interface_type

AWS::EC2::NetworkInterface.InterfaceType.

Link

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

Return type

Optional[str]

ipv6_address_count

AWS::EC2::NetworkInterface.Ipv6AddressCount.

Link

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

Return type

Union[int, float, None]

ipv6_addresses

AWS::EC2::NetworkInterface.Ipv6Addresses.

Link

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

Return type

Union[IResolvable, List[Union[IResolvable, InstanceIpv6AddressProperty]], None]

private_ip_address

AWS::EC2::NetworkInterface.PrivateIpAddress.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-privateipaddress

Return type

Optional[str]

private_ip_addresses

AWS::EC2::NetworkInterface.PrivateIpAddresses.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-privateipaddresses

Return type

Union[IResolvable, List[Union[IResolvable, PrivateIpAddressSpecificationProperty]], None]

secondary_private_ip_address_count

AWS::EC2::NetworkInterface.SecondaryPrivateIpAddressCount.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-secondaryprivateipcount

Return type

Union[int, float, None]

source_dest_check

AWS::EC2::NetworkInterface.SourceDestCheck.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-sourcedestcheck

Return type

Union[bool, IResolvable, None]

subnet_id

AWS::EC2::NetworkInterface.SubnetId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-subnetid

Return type

str

tags

AWS::EC2::NetworkInterface.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-tags

Return type

Optional[List[CfnTag]]