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 #

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

Defined in Network.AWS.EC2.AttachNetworkInterface

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

Defined in Network.AWS.EC2.AttachNetworkInterface

Show AttachNetworkInterface # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Generic AttachNetworkInterface # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Associated Types

type Rep AttachNetworkInterface :: Type -> Type #

Hashable AttachNetworkInterface # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

AWSRequest AttachNetworkInterface # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Associated Types

type Rs AttachNetworkInterface :: Type #

ToHeaders AttachNetworkInterface # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

ToPath AttachNetworkInterface # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

ToQuery AttachNetworkInterface # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

NFData AttachNetworkInterface # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Methods

rnf :: AttachNetworkInterface -> () #

type Rep AttachNetworkInterface # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

type Rep AttachNetworkInterface = D1 (MetaData "AttachNetworkInterface" "Network.AWS.EC2.AttachNetworkInterface" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" 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 # 
Instance details

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

Defined in Network.AWS.EC2.AttachNetworkInterface

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

Defined in Network.AWS.EC2.AttachNetworkInterface

Show AttachNetworkInterfaceResponse # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Generic AttachNetworkInterfaceResponse # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

Associated Types

type Rep AttachNetworkInterfaceResponse :: Type -> Type #

NFData AttachNetworkInterfaceResponse # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

type Rep AttachNetworkInterfaceResponse # 
Instance details

Defined in Network.AWS.EC2.AttachNetworkInterface

type Rep AttachNetworkInterfaceResponse = D1 (MetaData "AttachNetworkInterfaceResponse" "Network.AWS.EC2.AttachNetworkInterface" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" 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) #

The ID of the network interface attachment.