:doc:`AppConfig <../../appconfig>` / Client / get_hosted_configuration_version

********************************
get_hosted_configuration_version
********************************



.. py:method:: AppConfig.Client.get_hosted_configuration_version(**kwargs)

  

  Retrieves information about a specific configuration version.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetHostedConfigurationVersion>`_  


  **Request Syntax**
  ::

    response = client.get_hosted_configuration_version(
        ApplicationId='string',
        ConfigurationProfileId='string',
        VersionNumber=123
    )
    
  :type ApplicationId: string
  :param ApplicationId: **[REQUIRED]** 

    The application ID.

    

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

    The configuration profile ID.

    

  
  :type VersionNumber: integer
  :param VersionNumber: **[REQUIRED]** 

    The version.

    

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

    
    ::

      {
          'ApplicationId': 'string',
          'ConfigurationProfileId': 'string',
          'VersionNumber': 123,
          'Description': 'string',
          'Content': StreamingBody(),
          'ContentType': 'string',
          'VersionLabel': 'string',
          'KmsKeyArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ApplicationId** *(string) --* 

        The application ID.

        
      

      - **ConfigurationProfileId** *(string) --* 

        The configuration profile ID.

        
      

      - **VersionNumber** *(integer) --* 

        The configuration version.

        
      

      - **Description** *(string) --* 

        A description of the configuration.

        
      

      - **Content** (:class:`.StreamingBody`) -- 

        The content of the configuration or the configuration data.

        
      

      - **ContentType** *(string) --* 

        A standard MIME type describing the format of the configuration content. For more information, see `Content-Type <https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17>`__.

        
      

      - **VersionLabel** *(string) --* 

        A user-defined label for an AppConfig hosted configuration version.

        
      

      - **KmsKeyArn** *(string) --* 

        The Amazon Resource Name of the Key Management Service key that was used to encrypt this specific version of the configuration data in the AppConfig hosted configuration store.

        
  
  **Exceptions**
  
  *   :py:class:`AppConfig.Client.exceptions.BadRequestException`

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

  
  *   :py:class:`AppConfig.Client.exceptions.InternalServerException`

  

  **Examples**

  The following get-hosted-configuration-version example retrieves the configuration details of the AWS AppConfig hosted configuration.
  ::

    response = client.get_hosted_configuration_version(
        ApplicationId='339ohji',
        ConfigurationProfileId='ur8hx2f',
        VersionNumber=1,
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ApplicationId': '339ohji',
        'ConfigurationProfileId': 'ur8hx2f',
        'ContentType': 'application/json',
        'VersionNumber': 1,
        'ResponseMetadata': {
            '...': '...',
        },
    }

  