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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.CreateNetworkInterface

Contents

Description

Creates a network interface in the specified subnet.

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

Synopsis

Creating a Request

createNetworkInterface #

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:

  • cniGroups - The IDs of one or more security groups.
  • cniPrivateIPAddresses - One or more private IPv4 addresses.
  • cniIPv6AddressCount - 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. If your subnet has the AssignIpv6AddressOnCreation attribute set to true , you can specify 0 to override this setting.
  • cniPrivateIPAddress - The primary private IPv4 address of the network interface. If you don't specify an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR 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 - The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR 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 IP Addresses Per ENI Per Instance Type in the Amazon Virtual Private Cloud User Guide .
  • cniDescription - A description for the network interface.
  • cniDryRun - 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 .
  • cniIPv6Addresses - 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.
  • cniSubnetId - The ID of the subnet to associate with the network interface.

data CreateNetworkInterface #

Contains the parameters for CreateNetworkInterface.

See: createNetworkInterface smart constructor.

Instances

Eq CreateNetworkInterface # 
Data CreateNetworkInterface # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateNetworkInterface -> c CreateNetworkInterface #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateNetworkInterface #

toConstr :: CreateNetworkInterface -> Constr #

dataTypeOf :: CreateNetworkInterface -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateNetworkInterface) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateNetworkInterface) #

gmapT :: (forall b. Data b => b -> b) -> CreateNetworkInterface -> CreateNetworkInterface #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateNetworkInterface -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateNetworkInterface -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateNetworkInterface -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateNetworkInterface -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateNetworkInterface -> m CreateNetworkInterface #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNetworkInterface -> m CreateNetworkInterface #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNetworkInterface -> m CreateNetworkInterface #

Read CreateNetworkInterface # 
Show CreateNetworkInterface # 
Generic CreateNetworkInterface # 
Hashable CreateNetworkInterface # 
NFData CreateNetworkInterface # 

Methods

rnf :: CreateNetworkInterface -> () #

AWSRequest CreateNetworkInterface # 
ToQuery CreateNetworkInterface # 
ToPath CreateNetworkInterface # 
ToHeaders CreateNetworkInterface # 
type Rep CreateNetworkInterface # 
type Rs CreateNetworkInterface # 

Request Lenses

cniGroups :: Lens' CreateNetworkInterface [Text] #

The IDs of one or more security groups.

cniIPv6AddressCount :: Lens' CreateNetworkInterface (Maybe Int) #

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. If your subnet has the AssignIpv6AddressOnCreation attribute set to true , you can specify 0 to override this setting.

cniPrivateIPAddress :: Lens' CreateNetworkInterface (Maybe Text) #

The primary private IPv4 address of the network interface. If you don't specify an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR 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) #

The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR 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 IP Addresses Per ENI Per Instance Type in the Amazon Virtual Private Cloud User Guide .

cniDescription :: Lens' CreateNetworkInterface (Maybe Text) #

A description for the network interface.

cniDryRun :: Lens' CreateNetworkInterface (Maybe Bool) #

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 .

cniIPv6Addresses :: Lens' CreateNetworkInterface [InstanceIPv6Address] #

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.

cniSubnetId :: Lens' CreateNetworkInterface Text #

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

Destructuring the Response

createNetworkInterfaceResponse #

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 #

Contains the output of CreateNetworkInterface.

See: createNetworkInterfaceResponse smart constructor.

Instances

Eq CreateNetworkInterfaceResponse # 
Data CreateNetworkInterfaceResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateNetworkInterfaceResponse -> c CreateNetworkInterfaceResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateNetworkInterfaceResponse #

toConstr :: CreateNetworkInterfaceResponse -> Constr #

dataTypeOf :: CreateNetworkInterfaceResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateNetworkInterfaceResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateNetworkInterfaceResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateNetworkInterfaceResponse -> CreateNetworkInterfaceResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateNetworkInterfaceResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateNetworkInterfaceResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateNetworkInterfaceResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateNetworkInterfaceResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateNetworkInterfaceResponse -> m CreateNetworkInterfaceResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNetworkInterfaceResponse -> m CreateNetworkInterfaceResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNetworkInterfaceResponse -> m CreateNetworkInterfaceResponse #

Read CreateNetworkInterfaceResponse # 
Show CreateNetworkInterfaceResponse # 
Generic CreateNetworkInterfaceResponse # 
NFData CreateNetworkInterfaceResponse # 
type Rep CreateNetworkInterfaceResponse # 
type Rep CreateNetworkInterfaceResponse = D1 (MetaData "CreateNetworkInterfaceResponse" "Network.AWS.EC2.CreateNetworkInterface" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "CreateNetworkInterfaceResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cnirsNetworkInterface") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe NetworkInterface))) (S1 (MetaSel (Just Symbol "_cnirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses