deleteRoute
inline suspend fun Ec2Client.deleteRoute(crossinline block: DeleteRouteRequest.Builder.() -> Unit): DeleteRouteResponse
Deletes the specified route from the specified route table.
Samples
fun main() {
//sampleStart
// This example deletes the specified route from the specified route table.
ec2Client.deleteRoute {
routeTableId = "rtb-22574640"
destinationCidrBlock = "0.0.0.0/0"
}
//sampleEnd
}