detachNetworkInterface

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
}