EC2 / Client / delete_transit_gateway_route_table

delete_transit_gateway_route_table#

EC2.Client.delete_transit_gateway_route_table(**kwargs)#

Deletes the specified transit gateway route table. If there are any route tables associated with the transit gateway route table, you must first run DisassociateRouteTable before you can delete the transit gateway route table. This removes any route tables associated with the transit gateway route table.

See also: AWS API Documentation

Request Syntax

response = client.delete_transit_gateway_route_table(
    TransitGatewayRouteTableId='string',
    DryRun=True|False
)
Parameters:
  • TransitGatewayRouteTableId (string) –

    [REQUIRED]

    The ID of the transit gateway route table.

  • DryRun (boolean) – Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Return type:

dict

Returns:

Response Syntax

{
    'TransitGatewayRouteTable': {
        'TransitGatewayRouteTableId': 'string',
        'TransitGatewayId': 'string',
        'State': 'pending'|'available'|'deleting'|'deleted',
        'DefaultAssociationRouteTable': True|False,
        'DefaultPropagationRouteTable': True|False,
        'CreationTime': datetime(2015, 1, 1),
        'Tags': [
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) –

    • TransitGatewayRouteTable (dict) –

      Information about the deleted transit gateway route table.

      • TransitGatewayRouteTableId (string) –

        The ID of the transit gateway route table.

      • TransitGatewayId (string) –

        The ID of the transit gateway.

      • State (string) –

        The state of the transit gateway route table.

      • DefaultAssociationRouteTable (boolean) –

        Indicates whether this is the default association route table for the transit gateway.

      • DefaultPropagationRouteTable (boolean) –

        Indicates whether this is the default propagation route table for the transit gateway.

      • CreationTime (datetime) –

        The creation time.

      • Tags (list) –

        Any tags assigned to the route table.

        • (dict) –

          Describes a tag.

          • Key (string) –

            The key of the tag.

            Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

          • Value (string) –

            The value of the tag.

            Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.