AmplifyGen3 / Client / get_restore_window

get_restore_window

AmplifyGen3.Client.get_restore_window(**kwargs)

Returns the point-in-time restore window for the production branch. The window is the range of times that you can specify in a RestoreBranch request. The latest restorable time advances continuously. If no restore window is available yet, for example because the production branch has no completed deployment, the response omits both times.

See also: AWS API Documentation

Request Syntax

response = client.get_restore_window(
    BranchArn='string'
)
Parameters:

BranchArn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the production branch of the Production environment. Other branches can’t be restored.

Return type:

dict

Returns:

Response Syntax

{
    'EarliestRestorableTime': datetime(2015, 1, 1),
    'LatestRestorableTime': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • EarliestRestorableTime (datetime) –

      The earliest time that you can restore the production branch to. Absent when no restore window is available yet.

    • LatestRestorableTime (datetime) –

      The latest time that you can restore the production branch to. Absent when no restore window is available yet.

Exceptions

  • AmplifyGen3.Client.exceptions.ThrottlingException

  • AmplifyGen3.Client.exceptions.AccessDeniedException

  • AmplifyGen3.Client.exceptions.ResourceNotFoundException

  • AmplifyGen3.Client.exceptions.ValidationException

  • AmplifyGen3.Client.exceptions.InternalServerException