enable_vgw_route_propagation
¶
enable_vgw_route_propagation(
*,
config_overrides: Optional[EC2ClientConfig] = None,
gateway_id: Optional[VpnGatewayId] = None,
route_table_id: Optional[RouteTableId] = None,
dry_run: Optional[Boolean] = None,
) -> None
Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC.
Parameters:
-
gateway_id(Optional[VpnGatewayId], default:None) –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.
-
route_table_id(Optional[RouteTableId], default:None) –The ID of the route table. The routing table must be associated with the same VPC that the virtual private gateway is attached to.
-
dry_run(Optional[Boolean], default:None) –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 isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To enable route propagation This example enables the specified virtual private gateway to propagate static routes to the specified route table.
Source code in docs_src/capo_ec2/_services/ec2.py
41910 41911 41912 41913 41914 41915 41916 41917 41918 41919 41920 41921 41922 41923 41924 41925 41926 41927 41928 41929 41930 41931 41932 41933 41934 41935 41936 41937 41938 41939 41940 41941 41942 41943 41944 41945 41946 41947 41948 41949 41950 41951 41952 41953 41954 41955 41956 41957 41958 41959 41960 41961 41962 41963 41964 | |