AmplifyGen3 / Client / resume_backend

resume_backend

AmplifyGen3.Client.resume_backend(**kwargs)

Resumes the paused backend of an app by restoring its database from a snapshot. The resume runs asynchronously. Call GetApp until the backend status is READY. You can resume only a backend that is PAUSED or PAUSING. For any other status, the request fails with a ConflictException. The operation isn’t idempotent: repeating the request after the backend is RESUMING or READY fails with a ConflictException. A backend that was paused because a database reached its storage limit can’t be resumed until the plan covers the size of the database or the database is deleted. A backend that used its plan’s monthly allowance can’t be resumed until the plan is upgraded or the allowance resets at the start of the next month (UTC). In both cases, the request fails with a ConflictException. If the account already has the maximum number of backends and the resume needs a new backend, the request fails with a ServiceQuotaExceededException.

See also: AWS API Documentation

Request Syntax

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

AppName (string) –

[REQUIRED]

The name of the app.

Return type:

dict

Returns:

Response Syntax

{
    'Status': 'READY'|'CREATING'|'DELETING'|'PAUSING'|'PAUSED'|'RESUMING'
}

Response Structure

  • (dict) –

    • Status (string) –

      The status of the backend after the request. The status is RESUMING, or PAUSING if a pause is still in progress. In that case, the resume starts after the pause finishes.

Exceptions