deleteInternetGateway
inline suspend fun Ec2Client.deleteInternetGateway(crossinline block: DeleteInternetGatewayRequest.Builder.() -> Unit): DeleteInternetGatewayResponse
Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it.
Samples
fun main() {
//sampleStart
// This example deletes the specified Internet gateway.
ec2Client.deleteInternetGateway {
internetGatewayId = "igw-c0a643a9"
}
//sampleEnd
}