Skip to content

EC2  >  Structures  >  NetworkInterface

NetworkInterface

Structure Class

NetworkInterface dataclass

Bases: _SerdeShape

Describes a network interface.

Attributes

associated_subnets class-attribute instance-attribute
associated_subnets: list[str] | None = ...

The subnets associated with this network interface.

association class-attribute instance-attribute
association: NetworkInterfaceAssociation | None = ...

The association information for an Elastic IP address (IPv4) associated with the network interface.

attachment class-attribute instance-attribute
attachment: NetworkInterfaceAttachment | None = ...

The network interface attachment.

availability_zone class-attribute instance-attribute
availability_zone: str | None = ...

The Availability Zone.

availability_zone_id class-attribute instance-attribute
availability_zone_id: str | None = ...

The ID of the Availability Zone.

connection_tracking_configuration class-attribute instance-attribute
connection_tracking_configuration: ConnectionTrackingConfiguration | None = ...

A security group connection tracking configuration that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see Connection tracking timeouts in the Amazon EC2 User Guide.

deny_all_igw_traffic class-attribute instance-attribute
deny_all_igw_traffic: bool | None = ...

Indicates whether a network interface with an IPv6 address is unreachable from the public internet. If the value is true, inbound traffic from the internet is dropped and you cannot assign an elastic IP address to the network interface. The network interface is reachable from peered VPCs and resources connected through a transit gateway, including on-premises networks.

description class-attribute instance-attribute
description: str | None = ...

A description.

groups class-attribute instance-attribute
groups: list[GroupIdentifier] | None = ...

Any security groups for the network interface.

interface_type class-attribute instance-attribute
interface_type: str | None = ...

The type of network interface.

ipv4_prefixes class-attribute instance-attribute
ipv4_prefixes: list[Ipv4PrefixSpecification] | None = ...

The IPv4 prefixes that are assigned to the network interface.

ipv6_address class-attribute instance-attribute
ipv6_address: str | None = ...

The IPv6 globally unique address associated with the network interface.

ipv6_addresses class-attribute instance-attribute
ipv6_addresses: list[NetworkInterfaceIpv6Address] | None = ...

The IPv6 addresses associated with the network interface.

ipv6_native class-attribute instance-attribute
ipv6_native: bool | None = ...

Indicates whether this is an IPv6 only network interface.

ipv6_prefixes class-attribute instance-attribute
ipv6_prefixes: list[Ipv6PrefixSpecification] | None = ...

The IPv6 prefixes that are assigned to the network interface.

mac_address class-attribute instance-attribute
mac_address: str | None = ...

The MAC address.

network_interface_id class-attribute instance-attribute
network_interface_id: str | None = ...

The ID of the network interface.

operator class-attribute instance-attribute
operator: OperatorResponse | None = ...

The service provider that manages the network interface.

outpost_arn class-attribute instance-attribute
outpost_arn: str | None = ...

The Amazon Resource Name (ARN) of the Outpost.

owner_id class-attribute instance-attribute
owner_id: str | None = ...

The Amazon Web Services account ID of the owner of the network interface.

private_dns_name class-attribute instance-attribute
private_dns_name: str | None = ...

The private hostname. For more information, see EC2 instance hostnames, DNS names, and domains in the Amazon EC2 User Guide.

private_ip_address class-attribute instance-attribute
private_ip_address: str | None = ...

The IPv4 address of the network interface within the subnet.

private_ip_addresses class-attribute instance-attribute
private_ip_addresses: list[NetworkInterfacePrivateIpAddress] | None = ...

The private IPv4 addresses associated with the network interface.

public_dns_name class-attribute instance-attribute
public_dns_name: str | None = ...

A public hostname. For more information, see EC2 instance hostnames, DNS names, and domains in the Amazon EC2 User Guide.

public_ip_dns_name_options class-attribute instance-attribute
public_ip_dns_name_options: PublicIpDnsNameOptions | None = ...

Public hostname type options. For more information, see EC2 instance hostnames, DNS names, and domains in the Amazon EC2 User Guide.

requester_id class-attribute instance-attribute
requester_id: str | None = ...

The alias or Amazon Web Services account ID of the principal or service that created the network interface.

requester_managed class-attribute instance-attribute
requester_managed: bool | None = ...

Indicates whether the network interface is being managed by Amazon Web Services.

source_dest_check class-attribute instance-attribute
source_dest_check: bool | None = ...

Indicates whether source/destination checking is enabled.

status class-attribute instance-attribute
status: str | None = ...

The status of the network interface.

subnet_id class-attribute instance-attribute
subnet_id: str | None = ...

The ID of the subnet.

tag_set class-attribute instance-attribute
tag_set: list[Tag] | None = ...

Any tags assigned to the network interface.

vpc_id class-attribute instance-attribute
vpc_id: str | None = ...

The ID of the VPC.