AmplifyGen3 / Client / list_apps

list_apps

AmplifyGen3.Client.list_apps(**kwargs)

Returns a list of the existing Gen 3 apps.

See also: AWS API Documentation

Request Syntax

response = client.list_apps(
    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

{
    'Apps': [
        {
            'AppName': 'string',
            'AppArn': 'string',
            'SourceConfig': {
                'GitHubSource': {
                    'RepositoryUrl': 'string'
                },
                'GitLabSource': {
                    'RepositoryUrl': 'string',
                    'Owner': 'string'
                }
            },
            'CreatedAt': datetime(2015, 1, 1),
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • Apps (list) –

      The Gen 3 apps.

      • (dict) –

        Summary information for a Gen 3 app.

        • AppName (string) –

          The name of the app.

        • AppArn (string) –

          The Amazon Resource Name (ARN) of the app.

        • SourceConfig (dict) –

          The source configuration for the app.

          Note

          This is a Tagged Union structure. Only one of the following top level keys will be set: GitHubSource, GitLabSource. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

          'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
          
          • GitHubSource (dict) –

            The GitHub source repository settings.

            • RepositoryUrl (string) –

              The URL of the source repository.

          • GitLabSource (dict) –

            The GitLab source repository settings.

            • RepositoryUrl (string) –

              The URL of the source repository.

            • Owner (string) –

              The owner of the repository in the Git provider.

        • CreatedAt (datetime) –

          The time at which the app was created. The value is in ISO-8601 format.

        • UpdatedAt (datetime) –

          The time at which the app was last updated. The value is in ISO-8601 format.

    • NextToken (string) –

      The pagination token returned in a previous response, used to retrieve the next page of results.

Exceptions