amazonka-networkmanager-2.0: Amazon Network Manager SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.NetworkManager.AssociateCustomerGateway

Description

Associates a customer gateway with a device and optionally, with a link. If you specify a link, it must be associated with the specified device.

You can only associate customer gateways that are connected to a VPN attachment on a transit gateway or core network registered in your global network. When you register a transit gateway or core network, customer gateways that are connected to the transit gateway are automatically included in the global network. To list customer gateways that are connected to a transit gateway, use the DescribeVpnConnections EC2 API and filter by transit-gateway-id.

You cannot associate a customer gateway with more than one device and link.

Synopsis

Creating a Request

data AssociateCustomerGateway Source #

See: newAssociateCustomerGateway smart constructor.

Constructors

AssociateCustomerGateway' 

Fields

Instances

Instances details
ToJSON AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

ToHeaders AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

ToPath AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

ToQuery AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

AWSRequest AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

Generic AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

Associated Types

type Rep AssociateCustomerGateway :: Type -> Type #

Read AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

Show AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

NFData AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

Eq AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

Hashable AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

type AWSResponse AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

type Rep AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

type Rep AssociateCustomerGateway = D1 ('MetaData "AssociateCustomerGateway" "Amazonka.NetworkManager.AssociateCustomerGateway" "amazonka-networkmanager-2.0-4HNcDlBc00x67cUJWWz3sw" 'False) (C1 ('MetaCons "AssociateCustomerGateway'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "linkId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "customerGatewayArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "globalNetworkId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "deviceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newAssociateCustomerGateway Source #

Create a value of AssociateCustomerGateway with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

AssociateCustomerGateway, associateCustomerGateway_linkId - The ID of the link.

AssociateCustomerGateway, associateCustomerGateway_customerGatewayArn - The Amazon Resource Name (ARN) of the customer gateway.

AssociateCustomerGateway, associateCustomerGateway_globalNetworkId - The ID of the global network.

AssociateCustomerGateway, associateCustomerGateway_deviceId - The ID of the device.

Request Lenses

associateCustomerGateway_customerGatewayArn :: Lens' AssociateCustomerGateway Text Source #

The Amazon Resource Name (ARN) of the customer gateway.

Destructuring the Response

data AssociateCustomerGatewayResponse Source #

See: newAssociateCustomerGatewayResponse smart constructor.

Constructors

AssociateCustomerGatewayResponse' 

Fields

Instances

Instances details
Generic AssociateCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

Associated Types

type Rep AssociateCustomerGatewayResponse :: Type -> Type #

Read AssociateCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

Show AssociateCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

NFData AssociateCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

Eq AssociateCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

type Rep AssociateCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

type Rep AssociateCustomerGatewayResponse = D1 ('MetaData "AssociateCustomerGatewayResponse" "Amazonka.NetworkManager.AssociateCustomerGateway" "amazonka-networkmanager-2.0-4HNcDlBc00x67cUJWWz3sw" 'False) (C1 ('MetaCons "AssociateCustomerGatewayResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "customerGatewayAssociation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CustomerGatewayAssociation)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAssociateCustomerGatewayResponse Source #

Create a value of AssociateCustomerGatewayResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:customerGatewayAssociation:AssociateCustomerGatewayResponse', associateCustomerGatewayResponse_customerGatewayAssociation - The customer gateway association.

$sel:httpStatus:AssociateCustomerGatewayResponse', associateCustomerGatewayResponse_httpStatus - The response's http status code.

Response Lenses