:doc:`DataZone <../../datazone>` / Client / get_environment_credentials

***************************
get_environment_credentials
***************************



.. py:method:: DataZone.Client.get_environment_credentials(**kwargs)

  

  Gets the credentials of an environment in Amazon DataZone.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datazone-2018-05-10/GetEnvironmentCredentials>`_  


  **Request Syntax**
  ::

    response = client.get_environment_credentials(
        domainIdentifier='string',
        environmentIdentifier='string'
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The ID of the Amazon DataZone domain in which this environment and its credentials exist.

    

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

    The ID of the environment whose credentials this operation gets.

    

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

    
    ::

      {
          'accessKeyId': 'string',
          'secretAccessKey': 'string',
          'sessionToken': 'string',
          'expiration': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **accessKeyId** *(string) --* 

        The access key ID of the environment.

        
      

      - **secretAccessKey** *(string) --* 

        The secret access key of the environment credentials.

        
      

      - **sessionToken** *(string) --* 

        The session token of the environment credentials.

        
      

      - **expiration** *(datetime) --* 

        The expiration timestamp of the environment credentials.

        
  
  **Exceptions**
  
  *   :py:class:`DataZone.Client.exceptions.InternalServerException`

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

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

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

  
  *   :py:class:`DataZone.Client.exceptions.ValidationException`

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

  