:doc:`IoT <../../iot>` / Client / set_default_authorizer

**********************
set_default_authorizer
**********************



.. py:method:: IoT.Client.set_default_authorizer(**kwargs)

  

  Sets the default authorizer. This will be used if a websocket connection is made without specifying an authorizer.

   

  Requires permission to access the `SetDefaultAuthorizer <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/SetDefaultAuthorizer>`_  


  **Request Syntax**
  ::

    response = client.set_default_authorizer(
        authorizerName='string'
    )
    
  :type authorizerName: string
  :param authorizerName: **[REQUIRED]** 

    The authorizer name.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'authorizerName': 'string',
          'authorizerArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **authorizerName** *(string) --* 

        The authorizer name.

        
      

      - **authorizerArn** *(string) --* 

        The authorizer ARN.

        
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`IoT.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`IoT.Client.exceptions.ThrottlingException`

  
  *   :py:class:`IoT.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`IoT.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`IoT.Client.exceptions.InternalFailureException`

  
  *   :py:class:`IoT.Client.exceptions.ResourceAlreadyExistsException`

  