DescribeTransitGatewayVpcAttachments#

Description#

Request to get the list of all existing VPC-to-transit-gateway attachments and their descriptions. One or more filters by VPC-to-transit-gateway attachment parameters can be applied.

Request Parameters#

  • Filter.N — One or more filters.

    • Type: List of Filter objects

    • Required: No

  • TransitGatewayAttachmentIds.N — IDs of the VPC-to-transit-gateway attachments.

    • Type: Array of strings

    • Required: No

Supported Filters#

  • state — The state of VPC-to-transit-gateway attachment (pending | available | deleting | failed).

  • transit-gateway-attachment-id — The ID VPC-to-transit-gateway attachment.

  • transit-gateway-id — The ID of the transit gateway.

  • vpc-id — The ID of the VPC.

Response Elements#

  • requestId — The request ID

    • Type: String

  • transitGatewayVpcAttachments — Information about the VPC-to-transit-gateway attachments.

Examples#

c2-ec2 DescribeTransitGatewayVpcAttachments

c2-ec2 DescribeTransitGatewayVpcAttachments Filter.0.Name state Filter.0.Value available

c2-ec2 DescribeTransitGatewayVpcAttachments Filter.0.Name vpc-id Filter.0.Value vpc-12345678