CmdID

CmdID / aws / aws ec2

aws ec2 get-transit-gateway-prefix-list-references

Gets information about the prefix list references in a specified transit gateway route table. AWS CLI reference

1 example 5 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 get prefix list references in a transit gateway route table

The following get-transit-gateway-prefix-list-references example gets the prefix list references for the specified transit gateway route table, and filters by the ID of a specific prefix list.

aws ec2 get-transit-gateway-prefix-list-references --transit-gateway-route-table-id tgw-rtb-0123456789abcd123 --filters Name=prefix-list-id,Values=pl-11111122222222333Identify
--transit-gateway-route-table-idThe ID of the transit gateway route table.
--filtersOne or more filters.
Its output
{
    "TransitGatewayPrefixListReferences": [
        {
            "TransitGatewayRouteTableId": "tgw-rtb-0123456789abcd123",
            "PrefixListId": "pl-11111122222222333",
            "PrefixListOwnerId": "123456789012",
            "State": "available",
            "Blackhole": false,
            "TransitGatewayAttachment": {
                "TransitGatewayAttachmentId": "tgw-attach-aabbccddaabbccaab",
                "ResourceType": "vpc",
                "ResourceId": "vpc-1234567890abcdef0"
            }
        }
    ]
}

For more information, see Prefix list references in the Transit Gateways Guide.

Options

5 in the AWS CLI reference
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.
--filtersOne or more filters.
--max-resultsThe maximum number of results to return with a single call.
--next-tokenThe token for the next page of results.
--transit-gateway-route-table-idThe ID of the transit gateway route table.