We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
Resource Type definition for AWS::DirectConnect::DirectConnectGatewayAssociation
Create DirectConnectGatewayAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DirectConnectGatewayAssociation(name: string, args: DirectConnectGatewayAssociationArgs, opts?: CustomResourceOptions);@overload
def DirectConnectGatewayAssociation(resource_name: str,
args: DirectConnectGatewayAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DirectConnectGatewayAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
associated_gateway_id: Optional[str] = None,
direct_connect_gateway_id: Optional[str] = None,
accept_direct_connect_gateway_association_proposal_role_arn: Optional[str] = None,
allowed_prefixes_to_direct_connect_gateway: Optional[Sequence[str]] = None)func NewDirectConnectGatewayAssociation(ctx *Context, name string, args DirectConnectGatewayAssociationArgs, opts ...ResourceOption) (*DirectConnectGatewayAssociation, error)public DirectConnectGatewayAssociation(string name, DirectConnectGatewayAssociationArgs args, CustomResourceOptions? opts = null)
public DirectConnectGatewayAssociation(String name, DirectConnectGatewayAssociationArgs args)
public DirectConnectGatewayAssociation(String name, DirectConnectGatewayAssociationArgs args, CustomResourceOptions options)
type: aws-native:directconnect:DirectConnectGatewayAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DirectConnectGatewayAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DirectConnectGatewayAssociationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DirectConnectGatewayAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DirectConnectGatewayAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DirectConnectGatewayAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DirectConnectGatewayAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DirectConnectGatewayAssociation resource accepts the following input properties:
- Associated
Gateway stringId - The ID or ARN of the virtual private gateway or transit gateway.
- Direct
Connect stringGateway Id - The ID or ARN of the Direct Connect gateway.
- Accept
Direct stringConnect Gateway Association Proposal Role Arn - The Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal. Needs directconnect:AcceptDirectConnectGatewayAssociationProposal permissions.
- Allowed
Prefixes List<string>To Direct Connect Gateway - The Amazon VPC prefixes to advertise to the Direct Connect gateway. This parameter is required when you create an association to a transit gateway.
- Associated
Gateway stringId - The ID or ARN of the virtual private gateway or transit gateway.
- Direct
Connect stringGateway Id - The ID or ARN of the Direct Connect gateway.
- Accept
Direct stringConnect Gateway Association Proposal Role Arn - The Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal. Needs directconnect:AcceptDirectConnectGatewayAssociationProposal permissions.
- Allowed
Prefixes []stringTo Direct Connect Gateway - The Amazon VPC prefixes to advertise to the Direct Connect gateway. This parameter is required when you create an association to a transit gateway.
- associated
Gateway StringId - The ID or ARN of the virtual private gateway or transit gateway.
- direct
Connect StringGateway Id - The ID or ARN of the Direct Connect gateway.
- accept
Direct StringConnect Gateway Association Proposal Role Arn - The Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal. Needs directconnect:AcceptDirectConnectGatewayAssociationProposal permissions.
- allowed
Prefixes List<String>To Direct Connect Gateway - The Amazon VPC prefixes to advertise to the Direct Connect gateway. This parameter is required when you create an association to a transit gateway.
- associated
Gateway stringId - The ID or ARN of the virtual private gateway or transit gateway.
- direct
Connect stringGateway Id - The ID or ARN of the Direct Connect gateway.
- accept
Direct stringConnect Gateway Association Proposal Role Arn - The Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal. Needs directconnect:AcceptDirectConnectGatewayAssociationProposal permissions.
- allowed
Prefixes string[]To Direct Connect Gateway - The Amazon VPC prefixes to advertise to the Direct Connect gateway. This parameter is required when you create an association to a transit gateway.
- associated_
gateway_ strid - The ID or ARN of the virtual private gateway or transit gateway.
- direct_
connect_ strgateway_ id - The ID or ARN of the Direct Connect gateway.
- accept_
direct_ strconnect_ gateway_ association_ proposal_ role_ arn - The Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal. Needs directconnect:AcceptDirectConnectGatewayAssociationProposal permissions.
- allowed_
prefixes_ Sequence[str]to_ direct_ connect_ gateway - The Amazon VPC prefixes to advertise to the Direct Connect gateway. This parameter is required when you create an association to a transit gateway.
- associated
Gateway StringId - The ID or ARN of the virtual private gateway or transit gateway.
- direct
Connect StringGateway Id - The ID or ARN of the Direct Connect gateway.
- accept
Direct StringConnect Gateway Association Proposal Role Arn - The Amazon Resource Name (ARN) of the role to accept the Direct Connect Gateway association proposal. Needs directconnect:AcceptDirectConnectGatewayAssociationProposal permissions.
- allowed
Prefixes List<String>To Direct Connect Gateway - The Amazon VPC prefixes to advertise to the Direct Connect gateway. This parameter is required when you create an association to a transit gateway.
Outputs
All input properties are implicitly available as output properties. Additionally, the DirectConnectGatewayAssociation resource produces the following output properties:
- Association
Id string - The ID of the Direct Connect gateway association.
- Id string
- The provider-assigned unique ID for this managed resource.
- Association
Id string - The ID of the Direct Connect gateway association.
- Id string
- The provider-assigned unique ID for this managed resource.
- association
Id String - The ID of the Direct Connect gateway association.
- id String
- The provider-assigned unique ID for this managed resource.
- association
Id string - The ID of the Direct Connect gateway association.
- id string
- The provider-assigned unique ID for this managed resource.
- association_
id str - The ID of the Direct Connect gateway association.
- id str
- The provider-assigned unique ID for this managed resource.
- association
Id String - The ID of the Direct Connect gateway association.
- id String
- The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
