deleteNetworkInterface
inline suspend fun Ec2Client.deleteNetworkInterface(crossinline block: DeleteNetworkInterfaceRequest.Builder.() -> Unit): DeleteNetworkInterfaceResponse
Deletes the specified network interface. You must detach the network interface before you can delete it.
Samples
fun main() {
//sampleStart
// This example deletes the specified network interface.
ec2Client.deleteNetworkInterface {
networkInterfaceId = "eni-e5aa89a3"
}
//sampleEnd
}