:doc:`EC2 <../../ec2>` / Client / enable_vgw_route_propagation

****************************
enable_vgw_route_propagation
****************************



.. py:method:: EC2.Client.enable_vgw_route_propagation(**kwargs)

  

  Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagation>`_  


  **Request Syntax**
  ::

    response = client.enable_vgw_route_propagation(
        GatewayId='string',
        RouteTableId='string',
        DryRun=True|False
    )
    
  :type GatewayId: string
  :param GatewayId: **[REQUIRED]** 

    The ID of the virtual private gateway that is attached to a VPC. The virtual private gateway must be attached to the same VPC that the routing tables are associated with.

    

  
  :type RouteTableId: string
  :param RouteTableId: **[REQUIRED]** 

    The ID of the route table. The routing table must be associated with the same VPC that the virtual private gateway is attached to.

    

  
  :type DryRun: boolean
  :param DryRun: 

    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 enables the specified virtual private gateway to propagate static routes to the specified route table.
  ::

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

  
  Expected Output:
  ::

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

  