Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateNetworkInterface.html
- data CreateNetworkInterface
- createNetworkInterface :: Text -> CreateNetworkInterface
- cniDescription :: Lens' CreateNetworkInterface (Maybe Text)
- cniDryRun :: Lens' CreateNetworkInterface (Maybe Bool)
- cniGroups :: Lens' CreateNetworkInterface [Text]
- cniPrivateIpAddress :: Lens' CreateNetworkInterface (Maybe Text)
- cniPrivateIpAddresses :: Lens' CreateNetworkInterface [PrivateIpAddressSpecification]
- cniSecondaryPrivateIpAddressCount :: Lens' CreateNetworkInterface (Maybe Int)
- cniSubnetId :: Lens' CreateNetworkInterface Text
- data CreateNetworkInterfaceResponse
- createNetworkInterfaceResponse :: CreateNetworkInterfaceResponse
- cnirNetworkInterface :: Lens' CreateNetworkInterfaceResponse (Maybe NetworkInterface)
Request
data CreateNetworkInterface Source
Request constructor
CreateNetworkInterface
constructor.
The fields accessible through corresponding lenses are:
Request lenses
cniDescription :: Lens' CreateNetworkInterface (Maybe Text) Source
A description for the network interface.
cniDryRun :: Lens' CreateNetworkInterface (Maybe Bool) Source
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have the
required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
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).
cniPrivateIpAddresses :: Lens' CreateNetworkInterface [PrivateIpAddressSpecification] Source
One or more private IP addresses.
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
Response constructor
createNetworkInterfaceResponse :: CreateNetworkInterfaceResponse Source
CreateNetworkInterfaceResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
cnirNetworkInterface :: Lens' CreateNetworkInterfaceResponse (Maybe NetworkInterface) Source
Information about the network interface.