libZSservicesZSamazonka-networkmanagerZSamazonka-networkmanager
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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. The transit gateway must be registered in your global network. When you register a transit gateway, 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
Eq AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

Read AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

Show 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 #

NFData AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

Hashable AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

ToJSON AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

AWSRequest 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

type Rep AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

type Rep AssociateCustomerGateway = D1 ('MetaData "AssociateCustomerGateway" "Amazonka.NetworkManager.AssociateCustomerGateway" "libZSservicesZSamazonka-networkmanagerZSamazonka-networkmanager" '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))))
type AWSResponse AssociateCustomerGateway Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

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:

$sel:linkId:AssociateCustomerGateway', associateCustomerGateway_linkId - The ID of the link.

$sel:customerGatewayArn:AssociateCustomerGateway', associateCustomerGateway_customerGatewayArn - The Amazon Resource Name (ARN) of the customer gateway. For more information, see Resources Defined by Amazon EC2.

$sel:globalNetworkId:AssociateCustomerGateway', associateCustomerGateway_globalNetworkId - The ID of the global network.

$sel:deviceId: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. For more information, see Resources Defined by Amazon EC2.

Destructuring the Response

data AssociateCustomerGatewayResponse Source #

See: newAssociateCustomerGatewayResponse smart constructor.

Constructors

AssociateCustomerGatewayResponse' 

Fields

Instances

Instances details
Eq AssociateCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

Read AssociateCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

Show AssociateCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

Generic AssociateCustomerGatewayResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.AssociateCustomerGateway

Associated Types

type Rep AssociateCustomerGatewayResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-networkmanagerZSamazonka-networkmanager" '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