CmdID

CmdID / aws / aws directconnect

aws directconnect delete-direct-connect-gateway-association

Deletes the association between the specified Direct Connect gateway and virtual private gateway. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To delete a Direct Connect gateway association

The following delete-direct-connect-gateway-association example deletes the Direct Connect gateway association with a transit gateway that has the specified association ID.

aws directconnect delete-direct-connect-gateway-association --association-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Identify
--association-idThe ID of the Direct Connect gateway association.
Its output
{
    "directConnectGatewayAssociation": {
        "directConnectGatewayId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
        "directConnectGatewayOwnerAccount": "123456789012",
        "associationState": "disassociating",
        "associatedGateway": {
            "id": "tgw-095b3b0b54EXAMPLE",
            "type": "transitGateway",
            "ownerAccount": "123456789012",
            "region": "us-west-2"
        },
        "associationId": " be85116d-46eb-4b43-a27a-da0c2ad648deEXAMPLE ",
        "allowedPrefixesToDirectConnectGateway": [
            {
                "cidr": "192.0.1.0/28"
            }
        ]
    }
}

For more information, see Associate or disassociate Direct Connect with a Transit Gateway in the AWS Direct Connect User Guide.

Options

3 in the AWS CLI reference
--association-idThe ID of the Direct Connect gateway association.
--direct-connect-gateway-idThe ID of the Direct Connect gateway.
--virtual-gateway-idThe ID of the virtual private gateway.