:doc:`APIGateway <../../apigateway>` / Client / generate_client_certificate

***************************
generate_client_certificate
***************************



.. py:method:: APIGateway.Client.generate_client_certificate(**kwargs)

  

  Generates a ClientCertificate resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/GenerateClientCertificate>`_  


  **Request Syntax**
  ::

    response = client.generate_client_certificate(
        description='string',
        tags={
            'string': 'string'
        }
    )
    
  :type description: string
  :param description: 

    The description of the ClientCertificate.

    

  
  :type tags: dict
  :param tags: 

    The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with ``aws:``. The tag value can be up to 256 characters.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {
          'clientCertificateId': 'string',
          'description': 'string',
          'pemEncodedCertificate': 'string',
          'createdDate': datetime(2015, 1, 1),
          'expirationDate': datetime(2015, 1, 1),
          'tags': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.

      
      

      - **clientCertificateId** *(string) --* 

        The identifier of the client certificate.

        
      

      - **description** *(string) --* 

        The description of the client certificate.

        
      

      - **pemEncodedCertificate** *(string) --* 

        The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .

        
      

      - **createdDate** *(datetime) --* 

        The timestamp when the client certificate was created.

        
      

      - **expirationDate** *(datetime) --* 

        The timestamp when the client certificate will expire.

        
      

      - **tags** *(dict) --* 

        The collection of tags. Each tag element is associated with a given resource.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`APIGateway.Client.exceptions.BadRequestException`

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

  
  *   :py:class:`APIGateway.Client.exceptions.LimitExceededException`

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

  
  *   :py:class:`APIGateway.Client.exceptions.TooManyRequestsException`

  