---
type: resource-type
title: DirectConnectGatewayAssociation
description: aws resource type AWS::DirectConnect::DirectConnectGatewayAssociation
name: DirectConnectGatewayAssociation
lexicon: aws
resource_type: AWS::DirectConnect::DirectConnectGatewayAssociation
---
`AWS::DirectConnect::DirectConnectGatewayAssociation`, a resource type of the aws lexicon.

## Properties

- `AssociatedGatewayId` (`any`, required): The ID or ARN of the virtual private gateway or transit gateway.
- `DirectConnectGatewayId` (`any`, required): The ID or ARN of the Direct Connect gateway.
- `AcceptDirectConnectGatewayAssociationProposalRoleArn` (`string`, optional): The Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal. Needs directconnect:AcceptDirectConnectGatewayAssociationProposal permissions.
- `AllowedPrefixesToDirectConnectGateway` (`string[]`, optional): The Amazon VPC prefixes to advertise to the Direct Connect gateway. This parameter is required when you create an association to a transit gateway.
- `AssociationId` (`string`, optional): The ID of the Direct Connect gateway association.

## Attributes

- `AssociationId`
