:doc:`AppSync <../../appsync>` / Client / get_graphql_api_environment_variables

*************************************
get_graphql_api_environment_variables
*************************************



.. py:method:: AppSync.Client.get_graphql_api_environment_variables(**kwargs)

  

  Retrieves the list of environmental variable key-value pairs associated with an API by its ID value.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApiEnvironmentVariables>`_  


  **Request Syntax**
  ::

    response = client.get_graphql_api_environment_variables(
        apiId='string'
    )
    
  :type apiId: string
  :param apiId: **[REQUIRED]** 

    The ID of the API from which the environmental variable list will be retrieved.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **environmentVariables** *(dict) --* 

        The payload containing each environmental variable in the ``"key" : "value"`` format.

        
        

        - *(string) --* 
          

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

  
  *   :py:class:`AppSync.Client.exceptions.NotFoundException`

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

  
  *   :py:class:`AppSync.Client.exceptions.InternalFailureException`

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

  