EC2 / Client / disable_vgw_route_propagation

disable_vgw_route_propagation#

EC2.Client.disable_vgw_route_propagation(**kwargs)#

Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC.

See also: AWS API Documentation

Request Syntax

response = client.disable_vgw_route_propagation(
    GatewayId='string',
    RouteTableId='string',
    DryRun=True|False
)
Parameters:
  • GatewayId (string) –

    [REQUIRED]

    The ID of the virtual private gateway.

  • RouteTableId (string) –

    [REQUIRED]

    The ID of the 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 .

Returns:

None

Examples

This example disables the specified virtual private gateway from propagating static routes to the specified route table.

response = client.disable_vgw_route_propagation(
    GatewayId='vgw-9a4cacf3',
    RouteTableId='rtb-22574640',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}