:doc:`CodeBuild <../../codebuild>` / Client / list_source_credentials

***********************
list_source_credentials
***********************



.. py:method:: CodeBuild.Client.list_source_credentials()

  

  Returns a list of ``SourceCredentialsInfo`` objects.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListSourceCredentials>`_  


  **Request Syntax**
  ::

    response = client.list_source_credentials()
    
    
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'sourceCredentialsInfos': [
              {
                  'arn': 'string',
                  'serverType': 'GITHUB'|'BITBUCKET'|'GITHUB_ENTERPRISE'|'GITLAB'|'GITLAB_SELF_MANAGED',
                  'authType': 'OAUTH'|'BASIC_AUTH'|'PERSONAL_ACCESS_TOKEN'|'CODECONNECTIONS'|'SECRETS_MANAGER',
                  'resource': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **sourceCredentialsInfos** *(list) --* 

        A list of ``SourceCredentialsInfo`` objects. Each ``SourceCredentialsInfo`` object includes the authentication type, token ARN, and type of source provider for one set of credentials.

        
        

        - *(dict) --* 

          Information about the credentials for a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository.

          
          

          - **arn** *(string) --* 

            The Amazon Resource Name (ARN) of the token.

            
          

          - **serverType** *(string) --* 

            The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED, or BITBUCKET.

            
          

          - **authType** *(string) --* 

            The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER.

            
          

          - **resource** *(string) --* 

            The connection ARN if your authType is CODECONNECTIONS or SECRETS_MANAGER.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`CodeBuild.Client.exceptions.InvalidInputException`

  