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
// This example deletes the specified Internet gateway.
ec2Client.deleteInternetGateway {
internetGatewayId = "igw-c0a643a9"
}Content copied to clipboard