Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
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.
See: AWS API Reference for CreateNetworkInterface.
- createNetworkInterface :: Text -> CreateNetworkInterface
- data CreateNetworkInterface
- cniPrivateIPAddresses :: Lens' CreateNetworkInterface [PrivateIPAddressSpecification]
- cniGroups :: Lens' CreateNetworkInterface [Text]
- cniPrivateIPAddress :: Lens' CreateNetworkInterface (Maybe Text)
- cniSecondaryPrivateIPAddressCount :: Lens' CreateNetworkInterface (Maybe Int)
- cniDryRun :: Lens' CreateNetworkInterface (Maybe Bool)
- cniDescription :: Lens' CreateNetworkInterface (Maybe Text)
- cniSubnetId :: Lens' CreateNetworkInterface Text
- createNetworkInterfaceResponse :: Int -> CreateNetworkInterfaceResponse
- data CreateNetworkInterfaceResponse
- cnirsNetworkInterface :: Lens' CreateNetworkInterfaceResponse (Maybe NetworkInterface)
- cnirsStatus :: Lens' CreateNetworkInterfaceResponse Int
Creating a Request
Creates a value of CreateNetworkInterface
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateNetworkInterface Source
See: createNetworkInterface
smart constructor.
Request Lenses
cniPrivateIPAddresses :: Lens' CreateNetworkInterface [PrivateIPAddressSpecification] Source
One or more private IP addresses.
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 Per Instance Type in the Amazon Elastic Compute Cloud User Guide.
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
.
cniDescription :: Lens' CreateNetworkInterface (Maybe Text) Source
A description for the network interface.
cniSubnetId :: Lens' CreateNetworkInterface Text Source
The ID of the subnet to associate with the network interface.
Destructuring the Response
createNetworkInterfaceResponse Source
Creates a value of CreateNetworkInterfaceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateNetworkInterfaceResponse Source
See: createNetworkInterfaceResponse
smart constructor.
Response Lenses
cnirsNetworkInterface :: Lens' CreateNetworkInterfaceResponse (Maybe NetworkInterface) Source
Information about the network interface.
cnirsStatus :: Lens' CreateNetworkInterfaceResponse Int Source
The response status code.