amazonka-directconnect-1.6.1: Amazon Direct Connect 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.DirectConnect.AssociateVirtualInterface

Contents

Description

Associates a virtual interface with a specified link aggregation group (LAG) or connection. Connectivity to AWS is temporarily interrupted as the virtual interface is being migrated. If the target connection or LAG has an associated virtual interface with a conflicting VLAN number or a conflicting IP address, the operation fails.

Virtual interfaces associated with a hosted connection cannot be associated with a LAG; hosted connections must be migrated along with their virtual interfaces using AssociateHostedConnection .

In order to reassociate a virtual interface to a new connection or LAG, the requester must own either the virtual interface itself or the connection to which the virtual interface is currently associated. Additionally, the requester must own the connection or LAG to which the virtual interface will be newly associated.

Synopsis

Creating a Request

associateVirtualInterface Source #

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

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

  • aviVirtualInterfaceId - The ID of the virtual interface. Example: dxvif-123dfg56 Default: None
  • aviConnectionId - The ID of the LAG or connection with which to associate the virtual interface. Example: dxlag-abc123 or dxcon-abc123 Default: None

data AssociateVirtualInterface Source #

Container for the parameters to the AssociateVirtualInterface operation.

See: associateVirtualInterface smart constructor.

Instances
Eq AssociateVirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.AssociateVirtualInterface

Data AssociateVirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.AssociateVirtualInterface

Methods

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

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

toConstr :: AssociateVirtualInterface -> Constr #

dataTypeOf :: AssociateVirtualInterface -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AssociateVirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.AssociateVirtualInterface

Show AssociateVirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.AssociateVirtualInterface

Generic AssociateVirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.AssociateVirtualInterface

Associated Types

type Rep AssociateVirtualInterface :: Type -> Type #

Hashable AssociateVirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.AssociateVirtualInterface

ToJSON AssociateVirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.AssociateVirtualInterface

AWSRequest AssociateVirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.AssociateVirtualInterface

Associated Types

type Rs AssociateVirtualInterface :: Type #

ToHeaders AssociateVirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.AssociateVirtualInterface

ToPath AssociateVirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.AssociateVirtualInterface

ToQuery AssociateVirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.AssociateVirtualInterface

NFData AssociateVirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.AssociateVirtualInterface

type Rep AssociateVirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.AssociateVirtualInterface

type Rep AssociateVirtualInterface = D1 (MetaData "AssociateVirtualInterface" "Network.AWS.DirectConnect.AssociateVirtualInterface" "amazonka-directconnect-1.6.1-Jjw4CKEcom3TDRFDWXGnu" False) (C1 (MetaCons "AssociateVirtualInterface'" PrefixI True) (S1 (MetaSel (Just "_aviVirtualInterfaceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_aviConnectionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs AssociateVirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.AssociateVirtualInterface

Request Lenses

aviVirtualInterfaceId :: Lens' AssociateVirtualInterface Text Source #

The ID of the virtual interface. Example: dxvif-123dfg56 Default: None

aviConnectionId :: Lens' AssociateVirtualInterface Text Source #

The ID of the LAG or connection with which to associate the virtual interface. Example: dxlag-abc123 or dxcon-abc123 Default: None

Destructuring the Response

virtualInterface :: VirtualInterface Source #

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

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

data VirtualInterface Source #

A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect location and the customer.

See: virtualInterface smart constructor.

Instances
Eq VirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.Types.Product

Data VirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.Types.Product

Methods

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

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

toConstr :: VirtualInterface -> Constr #

dataTypeOf :: VirtualInterface -> DataType #

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

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

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

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

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

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

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

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

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

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

Read VirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.Types.Product

Show VirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.Types.Product

Generic VirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.Types.Product

Associated Types

type Rep VirtualInterface :: Type -> Type #

Hashable VirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.Types.Product

FromJSON VirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.Types.Product

NFData VirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.Types.Product

Methods

rnf :: VirtualInterface -> () #

type Rep VirtualInterface Source # 
Instance details

Defined in Network.AWS.DirectConnect.Types.Product

type Rep VirtualInterface = D1 (MetaData "VirtualInterface" "Network.AWS.DirectConnect.Types.Product" "amazonka-directconnect-1.6.1-Jjw4CKEcom3TDRFDWXGnu" False) (C1 (MetaCons "VirtualInterface'" PrefixI True) ((((S1 (MetaSel (Just "_viBgpPeers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [BGPPeer])) :*: S1 (MetaSel (Just "_viVirtualGatewayId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_viRouteFilterPrefixes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [RouteFilterPrefix])) :*: S1 (MetaSel (Just "_viCustomerAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_viVlan") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_viLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_viAmazonAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_viAddressFamily") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AddressFamily)) :*: S1 (MetaSel (Just "_viVirtualInterfaceState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VirtualInterfaceState)))))) :*: (((S1 (MetaSel (Just "_viConnectionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_viDirectConnectGatewayId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_viAmazonSideASN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 (MetaSel (Just "_viVirtualInterfaceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_viAsn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))))) :*: ((S1 (MetaSel (Just "_viAuthKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_viCustomerRouterConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_viOwnerAccount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_viVirtualInterfaceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_viVirtualInterfaceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))))

Response Lenses

viBgpPeers :: Lens' VirtualInterface [BGPPeer] Source #

Undocumented member.

viVlan :: Lens' VirtualInterface (Maybe Int) Source #

Undocumented member.

viAmazonSideASN :: Lens' VirtualInterface (Maybe Integer) Source #

The autonomous system number (ASN) for the Amazon side of the connection.

viAsn :: Lens' VirtualInterface (Maybe Int) Source #

Undocumented member.

viAuthKey :: Lens' VirtualInterface (Maybe Text) Source #

Undocumented member.

viCustomerRouterConfig :: Lens' VirtualInterface (Maybe Text) Source #

Information for generating the customer router configuration.

viOwnerAccount :: Lens' VirtualInterface (Maybe Text) Source #

The AWS account that will own the new virtual interface.