:doc:`CloudHSM <../../cloudhsm>` / Client / get_config

**********
get_config
**********



.. py:method:: CloudHSM.Client.get_config(**kwargs)

  

  This is documentation for **AWS CloudHSM Classic**. For more information, see `AWS CloudHSM Classic FAQs <http://aws.amazon.com/cloudhsm/faqs-classic/>`__, the `AWS CloudHSM Classic User Guide <https://docs.aws.amazon.com/cloudhsm/classic/userguide/>`__, and the `AWS CloudHSM Classic API Reference <https://docs.aws.amazon.com/cloudhsm/classic/APIReference/>`__.

   

  **For information about the current version of AWS CloudHSM**, see `AWS CloudHSM <http://aws.amazon.com/cloudhsm/>`__, the `AWS CloudHSM User Guide <https://docs.aws.amazon.com/cloudhsm/latest/userguide/>`__, and the `AWS CloudHSM API Reference <https://docs.aws.amazon.com/cloudhsm/latest/APIReference/>`__.

   

  Gets the configuration files necessary to connect to all high availability partition groups the client is associated with.

  

  .. danger::

        This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.


  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig>`_  


  **Request Syntax**
  ::

    response = client.get_config(
        ClientArn='string',
        ClientVersion='5.1'|'5.3',
        HapgList=[
            'string',
        ]
    )
    
  :type ClientArn: string
  :param ClientArn: **[REQUIRED]** 

    The ARN of the client.

    

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

    The client version.

    

  
  :type HapgList: list
  :param HapgList: **[REQUIRED]** 

    A list of ARNs that identify the high-availability partition groups that are associated with the client.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'ConfigType': 'string',
          'ConfigFile': 'string',
          'ConfigCred': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ConfigType** *(string) --* 

        The type of credentials.

        
      

      - **ConfigFile** *(string) --* 

        The chrystoki.conf configuration file.

        
      

      - **ConfigCred** *(string) --* 

        The certificate file containing the server.pem files of the HSMs.

        
  
  **Exceptions**
  
  *   :py:class:`CloudHSM.Client.exceptions.CloudHsmServiceException`

  
  *   :py:class:`CloudHSM.Client.exceptions.CloudHsmInternalException`

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

  