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 #

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 #

Contains the parameters for AttachNetworkInterface.

See: attachNetworkInterface smart constructor.

Instances

Eq AttachNetworkInterface # 
Data AttachNetworkInterface # 

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

Methods

rnf :: AttachNetworkInterface -> () #

AWSRequest AttachNetworkInterface # 
ToHeaders AttachNetworkInterface # 
ToPath AttachNetworkInterface # 
ToQuery AttachNetworkInterface # 
type Rep AttachNetworkInterface # 
type Rep AttachNetworkInterface = D1 * (MetaData "AttachNetworkInterface" "Network.AWS.EC2.AttachNetworkInterface" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" 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 # 

Request Lenses

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

aniDeviceIndex :: Lens' AttachNetworkInterface Int #

The index of the device for the network interface attachment.

aniInstanceId :: Lens' AttachNetworkInterface Text #

The ID of the instance.

aniNetworkInterfaceId :: Lens' AttachNetworkInterface Text #

The ID of the network interface.

Destructuring the Response

attachNetworkInterfaceResponse #

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 #

Contains the output of AttachNetworkInterface.

See: attachNetworkInterfaceResponse smart constructor.

Instances

Eq AttachNetworkInterfaceResponse # 
Data AttachNetworkInterfaceResponse # 

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 # 
Show AttachNetworkInterfaceResponse # 
Generic AttachNetworkInterfaceResponse # 
NFData AttachNetworkInterfaceResponse # 
type Rep AttachNetworkInterfaceResponse # 
type Rep AttachNetworkInterfaceResponse = D1 * (MetaData "AttachNetworkInterfaceResponse" "Network.AWS.EC2.AttachNetworkInterface" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" 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) #

The ID of the network interface attachment.