detachNetworkInterface
inline suspend fun Ec2Client.detachNetworkInterface(crossinline block: DetachNetworkInterfaceRequest.Builder.() -> Unit): DetachNetworkInterfaceResponse
Detaches a network interface from an instance.
Samples
fun main() {
//sampleStart
// This example detaches the specified network interface from its attached instance.
ec2Client.detachNetworkInterface {
attachmentId = "eni-attach-66c4350a"
}
//sampleEnd
}