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

*****************
update_authorizer
*****************



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

  

  Updates an authorizer.

   

  Requires permission to access the `UpdateAuthorizer <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/UpdateAuthorizer>`_  


  **Request Syntax**
  ::

    response = client.update_authorizer(
        authorizerName='string',
        authorizerFunctionArn='string',
        tokenKeyName='string',
        tokenSigningPublicKeys={
            'string': 'string'
        },
        status='ACTIVE'|'INACTIVE',
        enableCachingForHttp=True|False
    )
    
  :type authorizerName: string
  :param authorizerName: **[REQUIRED]** 

    The authorizer name.

    

  
  :type authorizerFunctionArn: string
  :param authorizerFunctionArn: 

    The ARN of the authorizer's Lambda function.

    

  
  :type tokenKeyName: string
  :param tokenKeyName: 

    The key used to extract the token from the HTTP headers.

    

  
  :type tokenSigningPublicKeys: dict
  :param tokenSigningPublicKeys: 

    The public keys used to verify the token signature.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type status: string
  :param status: 

    The status of the update authorizer request.

    

  
  :type enableCachingForHttp: boolean
  :param enableCachingForHttp: 

    When ``true``, the result from the authorizer’s Lambda function is cached for the time specified in ``refreshAfterInSeconds``. The cached result is used while the device reuses the same HTTP connection.

    

  
  
  :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.LimitExceededException`

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

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

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

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

  