Amazon Elastic Compute Cloud
API Reference (API Version 2016-11-15)

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

LaunchTemplateInstanceNetworkInterfaceSpecificationRequest

The parameters for a network interface.

Contents

AssociatePublicIpAddress

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

Type: Boolean

Required: No

DeleteOnTermination

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

Type: Boolean

Required: No

Description

A description for the network interface.

Type: String

Required: No

DeviceIndex

The device index for the network interface attachment.

Type: Integer

Required: No

InterfaceType

The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa. For more information, see Elastic Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.

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

Valid values: interface | efa

Type: String

Required: No

Ipv6AddressCount

The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.

Type: Integer

Required: No

Ipv6Addresses

One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.

Type: Array of InstanceIpv6AddressRequest objects

Required: No

NetworkInterfaceId

The ID of the network interface.

Type: String

Required: No

PrivateIpAddress

The primary private IPv4 address of the network interface.

Type: String

Required: No

PrivateIpAddresses

One or more private IPv4 addresses.

Type: Array of PrivateIpAddressSpecification objects

Required: No

SecondaryPrivateIpAddressCount

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

Type: Integer

Required: No

Groups

The IDs of one or more security groups.

Type: Array of strings

Required: No

SubnetId

The ID of the subnet for the network interface.

Type: String

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

On this page: