deleteInternetGateway
abstract suspend fun deleteInternetGateway(input: DeleteInternetGatewayRequest): 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
}