1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. directconnect
  5. getDirectConnectGatewayAssociation

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.57.0
published on Monday, Mar 9, 2026 by Pulumi
aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.57.0
published on Monday, Mar 9, 2026 by Pulumi

    Resource Type definition for AWS::DirectConnect::DirectConnectGatewayAssociation

    Using getDirectConnectGatewayAssociation

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDirectConnectGatewayAssociation(args: GetDirectConnectGatewayAssociationArgs, opts?: InvokeOptions): Promise<GetDirectConnectGatewayAssociationResult>
    function getDirectConnectGatewayAssociationOutput(args: GetDirectConnectGatewayAssociationOutputArgs, opts?: InvokeOptions): Output<GetDirectConnectGatewayAssociationResult>
    def get_direct_connect_gateway_association(association_id: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetDirectConnectGatewayAssociationResult
    def get_direct_connect_gateway_association_output(association_id: Optional[pulumi.Input[str]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetDirectConnectGatewayAssociationResult]
    func LookupDirectConnectGatewayAssociation(ctx *Context, args *LookupDirectConnectGatewayAssociationArgs, opts ...InvokeOption) (*LookupDirectConnectGatewayAssociationResult, error)
    func LookupDirectConnectGatewayAssociationOutput(ctx *Context, args *LookupDirectConnectGatewayAssociationOutputArgs, opts ...InvokeOption) LookupDirectConnectGatewayAssociationResultOutput

    > Note: This function is named LookupDirectConnectGatewayAssociation in the Go SDK.

    public static class GetDirectConnectGatewayAssociation 
    {
        public static Task<GetDirectConnectGatewayAssociationResult> InvokeAsync(GetDirectConnectGatewayAssociationArgs args, InvokeOptions? opts = null)
        public static Output<GetDirectConnectGatewayAssociationResult> Invoke(GetDirectConnectGatewayAssociationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDirectConnectGatewayAssociationResult> getDirectConnectGatewayAssociation(GetDirectConnectGatewayAssociationArgs args, InvokeOptions options)
    public static Output<GetDirectConnectGatewayAssociationResult> getDirectConnectGatewayAssociation(GetDirectConnectGatewayAssociationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:directconnect:getDirectConnectGatewayAssociation
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AssociationId string
    The ID of the Direct Connect gateway association.
    AssociationId string
    The ID of the Direct Connect gateway association.
    associationId String
    The ID of the Direct Connect gateway association.
    associationId string
    The ID of the Direct Connect gateway association.
    association_id str
    The ID of the Direct Connect gateway association.
    associationId String
    The ID of the Direct Connect gateway association.

    getDirectConnectGatewayAssociation Result

    The following output properties are available:

    AllowedPrefixesToDirectConnectGateway List<string>
    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
    The ID of the Direct Connect gateway association.
    AllowedPrefixesToDirectConnectGateway []string
    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
    The ID of the Direct Connect gateway association.
    allowedPrefixesToDirectConnectGateway List<String>
    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
    The ID of the Direct Connect gateway association.
    allowedPrefixesToDirectConnectGateway string[]
    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
    The ID of the Direct Connect gateway association.
    allowed_prefixes_to_direct_connect_gateway Sequence[str]
    The Amazon VPC prefixes to advertise to the Direct Connect gateway. This parameter is required when you create an association to a transit gateway.
    association_id str
    The ID of the Direct Connect gateway association.
    allowedPrefixesToDirectConnectGateway List<String>
    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
    The ID of the Direct Connect gateway association.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.57.0
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.