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

*********************
update_ca_certificate
*********************



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

  

  Updates a registered CA certificate.

   

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


  **Request Syntax**
  ::

    response = client.update_ca_certificate(
        certificateId='string',
        newStatus='ACTIVE'|'INACTIVE',
        newAutoRegistrationStatus='ENABLE'|'DISABLE',
        registrationConfig={
            'templateBody': 'string',
            'roleArn': 'string',
            'templateName': 'string'
        },
        removeAutoRegistration=True|False
    )
    
  :type certificateId: string
  :param certificateId: **[REQUIRED]** 

    The CA certificate identifier.

    

  
  :type newStatus: string
  :param newStatus: 

    The updated status of the CA certificate.

     

    **Note:** The status value REGISTER_INACTIVE is deprecated and should not be used.

    

  
  :type newAutoRegistrationStatus: string
  :param newAutoRegistrationStatus: 

    The new value for the auto registration status. Valid values are: "ENABLE" or "DISABLE".

    

  
  :type registrationConfig: dict
  :param registrationConfig: 

    Information about the registration configuration.

    

  
    - **templateBody** *(string) --* 

      The template body.

      

    
    - **roleArn** *(string) --* 

      The ARN of the role.

      

    
    - **templateName** *(string) --* 

      The name of the provisioning template.

      

    
  
  :type removeAutoRegistration: boolean
  :param removeAutoRegistration: 

    If true, removes auto registration.

    

  
  
  :returns: None
  **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`

  