AmplifyGen3 / Client / update_app

update_app

AmplifyGen3.Client.update_app(**kwargs)

Updates a Gen 3 app.

See also: AWS API Documentation

Request Syntax

response = client.update_app(
    AppName='string',
    SourceConfig={
        'GitHubSource': {
            'RepositoryUrl': 'string'
        },
        'GitLabSource': {
            'RepositoryUrl': 'string',
            'Owner': 'string'
        },
        'NoSource': {}

    },
    Web={
        'BuildConfig': {
            'InstallCommand': 'string',
            'BuildCommand': 'string',
            'RootDirectory': 'string',
            'OutputDirectory': 'string'
        }
    },
    Backend={
        'MigrationsDirectory': 'string'
    }
)
Parameters:
  • AppName (string) –

    [REQUIRED]

    The name 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 can be set: GitHubSource, GitLabSource, NoSource.

    • GitHubSource (dict) –

      The GitHub source repository settings.

      • RepositoryUrl (string) – [REQUIRED]

        The URL of the source repository.

    • GitLabSource (dict) –

      The GitLab source repository settings.

      • RepositoryUrl (string) – [REQUIRED]

        The URL of the source repository.

      • Owner (string) – [REQUIRED]

        The owner of the repository in the Git provider.

    • NoSource (dict) –

      Removes the configured source repository.

  • 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. Specify this to add a backend to an app that doesn’t have one. For an app that already has a backend, you can change only the migrations directory. Omit this to leave the backend unchanged.

    • MigrationsDirectory (string) –

      The directory that contains the migration files, relative to the root of the source. The default is migrations. Specify an empty string to reset to the default.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions