AmplifyGen3 / Client / list_git_connections

list_git_connections

AmplifyGen3.Client.list_git_connections(**kwargs)

Lists the GitHub and GitLab accounts that are connected to your AWS account in this Region.

See also: AWS API Documentation

Request Syntax

response = client.list_git_connections(
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • MaxResults (integer) – The maximum number of results to return in a single response.

  • NextToken (string) – The pagination token returned in a previous response, used to retrieve the next page of results.

Return type:

dict

Returns:

Response Syntax

{
    'GitConnections': [
        {
            'Provider': 'GITHUB'|'GITLAB',
            'Owner': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • GitConnections (list) –

      The connected Git provider accounts.

      • (dict) –

        A Git provider account that is connected to your AWS account.

        • Provider (string) –

          The Git provider.

        • Owner (string) –

          The account that the Git connection is for. The value depends on the provider:

          • For GitHub, this is the user or organization name.

          • For GitLab, this is the user name.

    • NextToken (string) –

      The token to use in the next request to get the next page of results. This value is absent when there are no more results.

Exceptions