Skip to content

EC2  >  Structures  >  LaunchTemplateInstanceNetworkInterfaceSpecification

LaunchTemplateInstanceNetworkInterfaceSpecification

Structure Class

LaunchTemplateInstanceNetworkInterfaceSpecification dataclass

Bases: _SerdeShape

Describes a network interface.

Attributes

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

Indicates whether to associate a Carrier IP address with eth0 for a new network interface.

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 address in the Wavelength Developer Guide.

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

Indicates whether to associate a public IPv4 address with eth0 for a new network interface.

Amazon Web Services 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.

connection_tracking_specification class-attribute instance-attribute
connection_tracking_specification: ConnectionTrackingSpecification | None = ...

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

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

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

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

A description for the network interface.

device_index class-attribute instance-attribute
device_index: int | None = ...

The device index for the network interface attachment.

ena_queue_count class-attribute instance-attribute
ena_queue_count: int | None = ...

The number of ENA queues created with the instance.

ena_srd_specification class-attribute instance-attribute
ena_srd_specification: LaunchTemplateEnaSrdSpecification | None = ...

Contains the ENA Express settings for instances launched from your launch template.

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

The IDs of one or more security groups.

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

The type of network interface.

ipv4_prefix_count class-attribute instance-attribute
ipv4_prefix_count: int | None = ...

The number of IPv4 prefixes that Amazon Web Services automatically assigned to the network interface.

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

One or more IPv4 prefixes assigned to the network interface.

ipv6_address_count class-attribute instance-attribute
ipv6_address_count: int | None = ...

The number of IPv6 addresses for the network interface.

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

The IPv6 addresses for the network interface.

ipv6_prefix_count class-attribute instance-attribute
ipv6_prefix_count: int | None = ...

The number of IPv6 prefixes that Amazon Web Services automatically assigned to the network interface.

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

One or more IPv6 prefixes assigned to the network interface.

network_card_index class-attribute instance-attribute
network_card_index: int | None = ...

The index of the network card.

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

The ID of the network interface.

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

The primary IPv6 address of the network interface. 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.

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

The primary private IPv4 address of the network interface.

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

One or more private IPv4 addresses.

secondary_private_ip_address_count class-attribute instance-attribute
secondary_private_ip_address_count: int | None = ...

The number of secondary private IPv4 addresses for the network interface.

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

The ID of the subnet for the network interface.