CodeBuild / Client / list_source_credentials

list_source_credentials#

CodeBuild.Client.list_source_credentials()#

Returns a list of SourceCredentialsInfo objects.

See also: AWS API Documentation

Request Syntax

response = client.list_source_credentials()
Return type:

dict

Returns:

Response Syntax

{
    'sourceCredentialsInfos': [
        {
            'arn': 'string',
            'serverType': 'GITHUB'|'BITBUCKET'|'GITHUB_ENTERPRISE'|'GITLAB'|'GITLAB_SELF_MANAGED',
            'authType': 'OAUTH'|'BASIC_AUTH'|'PERSONAL_ACCESS_TOKEN'|'CODECONNECTIONS',
            '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, or CODECONNECTIONS.

        • resource (string) –

          The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and your authType is CODECONNECTIONS.

Exceptions

  • CodeBuild.Client.exceptions.InvalidInputException