:doc:`ACM <../../acm>` / Client / revoke_certificate

******************
revoke_certificate
******************



.. py:method:: ACM.Client.revoke_certificate(**kwargs)

  

  Revokes a public ACM certificate. You can only revoke certificates that have been previously exported.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RevokeCertificate>`_  


  **Request Syntax**
  ::

    response = client.revoke_certificate(
        CertificateArn='string',
        RevocationReason='UNSPECIFIED'|'KEY_COMPROMISE'|'CA_COMPROMISE'|'AFFILIATION_CHANGED'|'SUPERCEDED'|'SUPERSEDED'|'CESSATION_OF_OPERATION'|'CERTIFICATE_HOLD'|'REMOVE_FROM_CRL'|'PRIVILEGE_WITHDRAWN'|'A_A_COMPROMISE'
    )
    
  :type CertificateArn: string
  :param CertificateArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the public or private certificate that will be revoked. The ARN must have the following form:

     

    ``arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012``

    

  
  :type RevocationReason: string
  :param RevocationReason: **[REQUIRED]** 

    Specifies why you revoked the certificate.

    

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

    
    ::

      {
          'CertificateArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **CertificateArn** *(string) --* 

        The Amazon Resource Name (ARN) of the public or private certificate that was revoked.

        
  
  **Exceptions**
  
  *   :py:class:`ACM.Client.exceptions.ResourceInUseException`

  
  *   :py:class:`ACM.Client.exceptions.InvalidArnException`

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

  
  *   :py:class:`ACM.Client.exceptions.ConflictException`

  
  *   :py:class:`ACM.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`ACM.Client.exceptions.ResourceNotFoundException`

  