def METHOD_NAME(
    self,
    check_front_door_name_availability_input,  # type: "_models.CheckNameAvailabilityInput"
    **kwargs  # type: Any
):
    # type: (...) -> "_models.CheckNameAvailabilityOutput"
    """Check the availability of a Front Door resource name.
    :param check_front_door_name_availability_input: Input to check.
    :type check_front_door_name_availability_input: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityInput
    :keyword callable cls: A custom type or function that will be passed the direct response
    :return: CheckNameAvailabilityOutput, or the result of cls(response)
    :rtype: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityOutput
    :raises: ~azure.core.exceptions.HttpResponseError
    """
    cls = kwargs.pop('cls', None)  # type: ClsType["_models.CheckNameAvailabilityOutput"]
    error_map = {
        401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
    }
    error_map.update(kwargs.pop('error_map', {}))
    api_version = "2020-05-01"
    content_type = kwargs.pop("content_type", "application/json")
    accept = "application/json"
    # Construct URL
    url = self.METHOD_NAME.metadata['url']  # type: ignore
    # Construct parameters
    query_parameters = {}  # type: Dict[str, Any]
    query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
    # Construct headers
    header_parameters = {}  # type: Dict[str, Any]
    header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
    header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
    body_content_kwargs = {}  # type: Dict[str, Any]
    body_content = self._serialize.body(check_front_door_name_availability_input, 'CheckNameAvailabilityInput')
    body_content_kwargs['content'] = body_content
    request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
    pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
    response = pipeline_response.http_response
    if response.status_code not in [200]:
        map_error(status_code=response.status_code, response=response, error_map=error_map)
        error = self._deserialize(_models.ErrorResponse, response)
        raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
    deserialized = self._deserialize('CheckNameAvailabilityOutput', pipeline_response)
    if cls:
        return cls(pipeline_response, deserialized, {})
    return deserialized