amazonka-ec2-1.6.1: 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 # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Data AttachNetworkInterface Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Show AttachNetworkInterface Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Generic AttachNetworkInterface Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Associated Types

type Rep AttachNetworkInterface :: Type -> Type #

Hashable AttachNetworkInterface Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

AWSRequest AttachNetworkInterface Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Associated Types

type Rs AttachNetworkInterface :: Type #

ToHeaders AttachNetworkInterface Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

ToPath AttachNetworkInterface Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

ToQuery AttachNetworkInterface Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

NFData AttachNetworkInterface Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Methods

rnf :: AttachNetworkInterface -> () #

type Rep AttachNetworkInterface Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

type Rep AttachNetworkInterface = D1 (MetaData "AttachNetworkInterface" "Network.AWS.EC2.AttachNetworkInterface" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "AttachNetworkInterface'" PrefixI True) ((S1 (MetaSel (Just "_aniDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_aniDeviceIndex") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) :*: (S1 (MetaSel (Just "_aniInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_aniNetworkInterfaceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs AttachNetworkInterface Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

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 # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Data AttachNetworkInterfaceResponse Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

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 # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Show AttachNetworkInterfaceResponse Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Generic AttachNetworkInterfaceResponse Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Associated Types

type Rep AttachNetworkInterfaceResponse :: Type -> Type #

NFData AttachNetworkInterfaceResponse Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

type Rep AttachNetworkInterfaceResponse Source # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

type Rep AttachNetworkInterfaceResponse = D1 (MetaData "AttachNetworkInterfaceResponse" "Network.AWS.EC2.AttachNetworkInterface" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "AttachNetworkInterfaceResponse'" PrefixI True) (S1 (MetaSel (Just "_anirsAttachmentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_anirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

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

The ID of the network interface attachment.