create_local_gateway_route
async
¶
create_local_gateway_route(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
destination_cidr_block: Optional[String] = None,
local_gateway_route_table_id: Optional[LocalGatewayRoutetableId] = None,
local_gateway_virtual_interface_group_id: Optional[
LocalGatewayVirtualInterfaceGroupId
] = None,
dry_run: Optional[Boolean] = None,
network_interface_id: Optional[NetworkInterfaceId] = None,
destination_prefix_list_id: Optional[PrefixListResourceId] = None,
) -> CreateLocalGatewayRouteResult
Creates a static route for the specified local gateway route table. You must specify one of the following targets:
-
LocalGatewayVirtualInterfaceGroupId -
NetworkInterfaceId
Parameters:
-
destination_cidr_block(Optional[String], default:None) –The CIDR range used for destination matches. Routing decisions are based on the most specific match.
-
local_gateway_route_table_id(Optional[LocalGatewayRoutetableId], default:None) –The ID of the local gateway route table.
-
local_gateway_virtual_interface_group_id(Optional[LocalGatewayVirtualInterfaceGroupId], default:None) –The ID of the virtual interface group.
-
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. -
network_interface_id(Optional[NetworkInterfaceId], default:None) –The ID of the network interface.
-
destination_prefix_list_id(Optional[PrefixListResourceId], default:None) –The ID of the prefix list. Use a prefix list in place of
DestinationCidrBlock. You cannot useDestinationPrefixListIdandDestinationCidrBlockin the same request.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 | |