amazonka-ec2-0.0.3: Amazon Elastic Compute Cloud SDK.

Safe HaskellNone




Creates a network interface in the specified subnet.

For more information about network interfaces, see Elastic Network Interfaces in the Amazon Elastic Compute Cloud User Guide.



Request constructor

Request lenses

cniDescription :: Lens' CreateNetworkInterface (Maybe Text) Source

A description for the network interface.

cniGroups :: Lens' CreateNetworkInterface [Text] Source

The IDs of one or more security groups.

cniPrivateIpAddress :: Lens' CreateNetworkInterface (Maybe Text) Source

The primary private IP address of the network interface. If you don't specify an IP address, Amazon EC2 selects one for you from the subnet range. If you specify an IP address, you cannot indicate any IP addresses specified in privateIpAddresses as primary (only one IP address can be designated as primary).

cniSecondaryPrivateIpAddressCount :: Lens' CreateNetworkInterface (Maybe Int) Source

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

The number of IP addresses you can assign to a network interface varies by instance type. For more information, see Private IP Addresses Per ENI PerInstance Type in the Amazon Elastic Compute Cloud User Guide.

cniSubnetId :: Lens' CreateNetworkInterface Text Source

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


Response constructor

Response lenses