# AWS::NetworkManager::CustomerGatewayAssociation The AWS::NetworkManager::CustomerGatewayAssociation type associates a customer gateway with a device and optionally, with a link. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
"Type" : "AWS::NetworkManager::CustomerGatewayAssociation",
"Properties" : {
"GlobalNetworkId" : String,
"CustomerGatewayArn" : String,
"DeviceId" : String,
"LinkId" : String
}
}
### YAML
Type: AWS::NetworkManager::CustomerGatewayAssociation
Properties:
GlobalNetworkId: String
CustomerGatewayArn: String
DeviceId: String
LinkId: String
## Properties
#### GlobalNetworkId
The ID of the global network.
_Required_: Yes
_Type_: String
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### CustomerGatewayArn
The Amazon Resource Name (ARN) of the customer gateway.
_Required_: Yes
_Type_: String
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### DeviceId
The ID of the device
_Required_: Yes
_Type_: String
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### LinkId
The ID of the link
_Required_: No
_Type_: String
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)