def deregister_instance(InstanceId=None):
    """
    Deregister a registered Amazon EC2 or on-premises instance. This action removes the instance from the stack and returns it to your control. This action can not be used with instances that were created with AWS OpsWorks Stacks.
    See also: AWS API Documentation
    
    
    :example: response = client.deregister_instance(
        InstanceId='string'
    )
    
    
    :type InstanceId: string
    :param InstanceId: [REQUIRED]
            The instance ID.
            

    """
    pass
