amazonka-ec2-1.4.3: 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 Elastic Compute Cloud User Guide.

Synopsis

Creating a Request

createNetworkInterface Source #

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 #

Contains the parameters for CreateNetworkInterface.

See: createNetworkInterface smart constructor.

Instances

Eq CreateNetworkInterface Source # 
Data CreateNetworkInterface Source # 

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 Source # 
Show CreateNetworkInterface Source # 
Generic CreateNetworkInterface Source # 
Hashable CreateNetworkInterface Source # 
NFData CreateNetworkInterface Source # 

Methods

rnf :: CreateNetworkInterface -> () #

AWSRequest CreateNetworkInterface Source # 
ToQuery CreateNetworkInterface Source # 
ToPath CreateNetworkInterface Source # 
ToHeaders CreateNetworkInterface Source # 
type Rep CreateNetworkInterface Source # 
type Rep CreateNetworkInterface = D1 (MetaData "CreateNetworkInterface" "Network.AWS.EC2.CreateNetworkInterface" "amazonka-ec2-1.4.3-IOmvt8owjDkAgcWNrchie1" False) (C1 (MetaCons "CreateNetworkInterface'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cniGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_cniPrivateIPAddresses") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PrivateIPAddressSpecification]))) (S1 (MetaSel (Just Symbol "_cniPrivateIPAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cniSecondaryPrivateIPAddressCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_cniDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_cniDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_cniSubnetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs CreateNetworkInterface Source # 

Request Lenses

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.

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.

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 #

Contains the output of CreateNetworkInterface.

See: createNetworkInterfaceResponse smart constructor.

Instances

Eq CreateNetworkInterfaceResponse Source # 
Data CreateNetworkInterfaceResponse Source # 

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 Source # 
Show CreateNetworkInterfaceResponse Source # 
Generic CreateNetworkInterfaceResponse Source # 
NFData CreateNetworkInterfaceResponse Source # 
type Rep CreateNetworkInterfaceResponse Source # 
type Rep CreateNetworkInterfaceResponse = D1 (MetaData "CreateNetworkInterfaceResponse" "Network.AWS.EC2.CreateNetworkInterface" "amazonka-ec2-1.4.3-IOmvt8owjDkAgcWNrchie1" False) (C1 (MetaCons "CreateNetworkInterfaceResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cnirsNetworkInterface") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe NetworkInterface))) (S1 (MetaSel (Just Symbol "_cnirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses