create_local_gateway_route
¶
create_local_gateway_route(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 | |