Scalr\Service\Aws\Ec2\DataType\NetworkInterfaceAttachmentData::detach PHP Method

detach() public method

Detaches a network interface from an instance
public detach ( boolean $force = null ) : boolean
$force boolean optional Set to TRUE to force a detachment
return boolean Returns TRUE on success or throws an exception
    public function detach($force = null)
    {
        $this->throwExceptionIfNotInitialized();
        return $this->getEc2()->networkInterface->detach($this->attachmentId, $force);
    }
NetworkInterfaceAttachmentData