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

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

Network.AWS.EC2.AttachNetworkInterface

Contents

Description

Attaches a network interface to an instance.

Synopsis

Creating a Request

attachNetworkInterface Source #

Creates a value of AttachNetworkInterface with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • aniDryRun - 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 .
  • aniDeviceIndex - The index of the device for the network interface attachment.
  • aniInstanceId - The ID of the instance.
  • aniNetworkInterfaceId - The ID of the network interface.

data AttachNetworkInterface Source #

Contains the parameters for AttachNetworkInterface.

See: attachNetworkInterface smart constructor.

Instances

Eq AttachNetworkInterface Source # 
Data AttachNetworkInterface Source # 

Methods

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

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

toConstr :: AttachNetworkInterface -> Constr #

dataTypeOf :: AttachNetworkInterface -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachNetworkInterface Source # 
Show AttachNetworkInterface Source # 
Generic AttachNetworkInterface Source # 
Hashable AttachNetworkInterface Source # 
NFData AttachNetworkInterface Source # 

Methods

rnf :: AttachNetworkInterface -> () #

AWSRequest AttachNetworkInterface Source # 
ToHeaders AttachNetworkInterface Source # 
ToPath AttachNetworkInterface Source # 
ToQuery AttachNetworkInterface Source # 
type Rep AttachNetworkInterface Source # 
type Rep AttachNetworkInterface = D1 * (MetaData "AttachNetworkInterface" "Network.AWS.EC2.AttachNetworkInterface" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "AttachNetworkInterface'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_aniDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_aniDeviceIndex") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))) ((:*:) * (S1 * (MetaSel (Just Symbol "_aniInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_aniNetworkInterfaceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs AttachNetworkInterface Source # 

Request Lenses

aniDryRun :: Lens' AttachNetworkInterface (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 .

aniDeviceIndex :: Lens' AttachNetworkInterface Int Source #

The index of the device for the network interface attachment.

aniNetworkInterfaceId :: Lens' AttachNetworkInterface Text Source #

The ID of the network interface.

Destructuring the Response

attachNetworkInterfaceResponse Source #

Creates a value of AttachNetworkInterfaceResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AttachNetworkInterfaceResponse Source #

Contains the output of AttachNetworkInterface.

See: attachNetworkInterfaceResponse smart constructor.

Instances

Eq AttachNetworkInterfaceResponse Source # 
Data AttachNetworkInterfaceResponse Source # 

Methods

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

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

toConstr :: AttachNetworkInterfaceResponse -> Constr #

dataTypeOf :: AttachNetworkInterfaceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachNetworkInterfaceResponse Source # 
Show AttachNetworkInterfaceResponse Source # 
Generic AttachNetworkInterfaceResponse Source # 
NFData AttachNetworkInterfaceResponse Source # 
type Rep AttachNetworkInterfaceResponse Source # 
type Rep AttachNetworkInterfaceResponse = D1 * (MetaData "AttachNetworkInterfaceResponse" "Network.AWS.EC2.AttachNetworkInterface" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "AttachNetworkInterfaceResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_anirsAttachmentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_anirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

anirsAttachmentId :: Lens' AttachNetworkInterfaceResponse (Maybe Text) Source #

The ID of the network interface attachment.