replace_transit_gateway_route
async
¶
replace_transit_gateway_route(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
destination_cidr_block: Optional[String] = None,
transit_gateway_route_table_id: Optional[TransitGatewayRouteTableId] = None,
transit_gateway_attachment_id: Optional[TransitGatewayAttachmentId] = None,
blackhole: Optional[Boolean] = None,
dry_run: Optional[Boolean] = None,
) -> ReplaceTransitGatewayRouteResult
Replaces the specified route in the specified transit gateway route table.
Parameters:
-
destination_cidr_block(Optional[String], default:None) –The CIDR range used for the destination match. Routing decisions are based on the most specific match.
-
transit_gateway_route_table_id(Optional[TransitGatewayRouteTableId], default:None) –The ID of the route table.
-
transit_gateway_attachment_id(Optional[TransitGatewayAttachmentId], default:None) –The ID of the attachment.
-
blackhole(Optional[Boolean], default:None) –Indicates whether traffic matching this route is to be dropped.
-
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.
Source code in docs_src/capo_ec2/_services/async_ec2.py
58129 58130 58131 58132 58133 58134 58135 58136 58137 58138 58139 58140 58141 58142 58143 58144 58145 58146 58147 58148 58149 58150 58151 58152 58153 58154 58155 58156 58157 58158 58159 58160 58161 58162 58163 58164 58165 58166 58167 58168 58169 58170 58171 58172 58173 58174 58175 58176 58177 58178 58179 58180 58181 58182 58183 58184 58185 58186 58187 58188 58189 58190 58191 58192 | |