AmplifyGen3 / Client / get_app

get_app

AmplifyGen3.Client.get_app(**kwargs)

Retrieves a Gen 3 app.

See also: AWS API Documentation

Request Syntax

response = client.get_app(
    AppName='string'
)
Parameters:

AppName (string) –

[REQUIRED]

The name of the app.

Return type:

dict

Returns:

Response Syntax

{
    'AppName': 'string',
    'AppArn': 'string',
    'SourceConfig': {
        'GitHubSource': {
            'RepositoryUrl': 'string'
        },
        'GitLabSource': {
            'RepositoryUrl': 'string',
            'Owner': 'string'
        }
    },
    'Web': {
        'BuildConfig': {
            'InstallCommand': 'string',
            'BuildCommand': 'string',
            'RootDirectory': 'string',
            'OutputDirectory': 'string'
        }
    },
    'Backend': {
        'MigrationsDirectory': 'string',
        'Status': 'READY'|'CREATING'|'DELETING'|'PAUSING'|'PAUSED'|'RESUMING',
        'DatabaseUsage': {
            'LastUsedAt': datetime(2015, 1, 1),
            'MonthlyBackendCapacityUnitHours': 123.0
        }
    },
    'WafConfigs': [
        {
            'WebAclArn': 'string',
            'WafStatus': 'ASSOCIATING'|'ASSOCIATED'|'ASSOCIATION_FAILED'|'DISASSOCIATING'|'DISASSOCIATION_FAILED',
            'StatusReason': 'string',
            'StatusReasonCode': 'WEBACL_NOT_FOUND'|'ASSOCIATION_LIMIT_EXCEEDED'|'FIREWALL_UPDATE_TIMEOUT'|'FIREWALL_UPDATE_FAILED'|'INTERNAL_ERROR'
        },
    ],
    'CreatedAt': datetime(2015, 1, 1),
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • 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.

    • Web (dict) –

      The web hosting settings for the app.

      • BuildConfig (dict) –

        The build settings.

        • InstallCommand (string) –

          The command that installs dependencies during the build.

        • BuildCommand (string) –

          The command that builds the application.

        • RootDirectory (string) –

          The directory in the repository that contains the application source.

        • OutputDirectory (string) –

          The directory that contains the build output to deploy.

    • Backend (dict) –

      The backend settings for the app. Present only when the app has a backend.

      • MigrationsDirectory (string) –

        The directory that contains the migration files, relative to the root of the source.

      • Status (string) –

        The status of the app’s backend. The backend is created asynchronously, so wait until the status is READY before you deploy. Absent when the status can’t be read. An absent status doesn’t indicate a failure.

      • DatabaseUsage (dict) –

        The usage of the backend’s databases. Absent when the usage can’t be read.

        • LastUsedAt (datetime) –

          The time at which any of the backend’s databases was last used, either by a new connection or by load on an existing connection. An open idle connection doesn’t count as use. The value lags by a few minutes and is in ISO-8601 format. Absent when it isn’t reported.

        • MonthlyBackendCapacityUnitHours (float) –

          The backend capacity unit hours (BCU-hours) that the backend’s databases used in the current calendar month (UTC), across all branches. The value is 0 when the databases used none this month, resets to 0 at 00:00 UTC on the first day of each month, and lags actual use by about one hour. Only the Basic plan has a per-backend allowance that this value is compared with.

    • WafConfigs (list) –

      A list of the app’s AWS WAF configurations. Omitted when the app has no web ACL association.

      • (dict) –

        The AWS WAF web ACL association settings for a Gen 3 app.

        • WebAclArn (string) –

          The Amazon Resource Name (ARN) of the AWS WAF web ACL.

        • WafStatus (string) –

          The status of the AWS WAF web ACL association.

        • StatusReason (string) –

          A human-readable explanation of the status. Present when WafStatus is ASSOCIATION_FAILED or DISASSOCIATION_FAILED.

        • StatusReasonCode (string) –

          A code that identifies the reason for the status. Present when WafStatus is ASSOCIATION_FAILED or DISASSOCIATION_FAILED.

    • 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.

Exceptions