enable_vgw_route_propagation
async
¶
enable_vgw_route_propagation(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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.
>>> await client.enable_vgw_route_propagation(route_table_id='rtb-22574640', gateway_id='vgw-9a4cacf3')
Source code in docs_src/capo_ec2/_services/async_ec2.py
42484 42485 42486 42487 42488 42489 42490 42491 42492 42493 42494 42495 42496 42497 42498 42499 42500 42501 42502 42503 42504 42505 42506 42507 42508 42509 42510 42511 42512 42513 42514 42515 42516 42517 42518 42519 42520 42521 42522 42523 42524 42525 42526 42527 42528 42529 42530 42531 42532 42533 42534 42535 42536 42537 42538 42539 | |