AmplifyGen3 / Client / start_authorization_flow

start_authorization_flow

AmplifyGen3.Client.start_authorization_flow(**kwargs)

Starts connecting a GitHub or GitLab account to your AWS account. The returned URL opens the Git provider page where you sign in and grant access. The AWS Management Console uses this operation when you connect a Git provider account.

See also: AWS API Documentation

Request Syntax

response = client.start_authorization_flow(
    Provider='GITHUB'|'GITLAB',
    RedirectUrl='string'
)
Parameters:
  • Provider (string) –

    [REQUIRED]

    The Git provider.

  • RedirectUrl (string) –

    [REQUIRED]

    The AWS Management Console page to return to after authorization completes.

Return type:

dict

Returns:

Response Syntax

{
    'GitProviderAuthorizationUrl': 'string'
}

Response Structure

  • (dict) –

    • GitProviderAuthorizationUrl (string) –

      The Git provider page where you sign in and grant access.

Exceptions

  • AmplifyGen3.Client.exceptions.ThrottlingException

  • AmplifyGen3.Client.exceptions.AccessDeniedException

  • AmplifyGen3.Client.exceptions.ValidationException

  • AmplifyGen3.Client.exceptions.InternalServerException