def check_name_availability(check_name_availability_input, custom_headers:nil)
      response = check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def check_name_availability(check_name_availability_input, custom_headers:nil)
      response = check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Check the availability of a resource name. This is needed for resources where
 name is globally unique, such as a CDN endpoint.

 @param check_name_availability_input [CheckNameAvailabilityInput] Input to
 check.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [CheckNameAvailabilityOutput] operation results.