Skip to content

RestorationType

Source code in docs_src/capo_cognito_identity_provider/types/restoration_type.py
class RestorationType(TypedDict, closed=True):
    restore_id: NotRequired[
        "capo_cognito_identity_provider.types.restore_id_type.RestoreIdType"
    ]
    """<p>The ID of the recovery. Use this ID in requests to describe, start, or cancel the recovery.</p>"""
    restore_status: NotRequired[
        "capo_cognito_identity_provider.types.restore_status_type.RestoreStatusType"
    ]
    """<p>The status of the recovery. Can be one of the following values.</p> <dl> <dt>PREVIEW_GENERATING</dt> <dd> <p>Amazon Cognito is generating the recovery preview, which might not be available immediately. Write operations in the user pool are paused.</p> </dd> <dt>PREVIEW_GENERATED</dt> <dd> <p>The recovery preview is ready for review. Write operations in the user pool are paused. Within 24 hours after you initiate the recovery, apply it with a <code>StartPointInTimeRecovery</code> request or discard it with a <code>CancelPointInTimeRecovery</code> request.</p> </dd> <dt>PREVIEW_CANCELLED</dt> <dd> <p>You canceled the recovery. Amazon Cognito resumed write operations and didn't change your user pool data.</p> </dd> <dt>PREVIEW_GENERATION_FAILED</dt> <dd> <p>Amazon Cognito couldn't generate the recovery preview. Amazon Cognito resumed write operations and didn't change your user pool data. You can initiate a new recovery.</p> </dd> <dt>PREVIEW_EXPIRED</dt> <dd> <p>You didn't start or cancel the recovery within 24 hours after you initiated it. Amazon Cognito resumed write operations and didn't change your user pool data.</p> </dd> <dt>RESTORING</dt> <dd> <p>Amazon Cognito is restoring user data in the user pool to its state at the recovery point. Write operations in the user pool are paused.</p> </dd> <dt>RESTORE_COMPLETED</dt> <dd> <p>Amazon Cognito restored your user pool to its state at the recovery point and resumed write operations.</p> </dd> <dt>TEMPORARY_INTERNAL_ERROR_SEE_SUPPORT_CASE</dt> <dd> <p>The recovery encountered an internal error. Write operations in the user pool remain paused. Amazon Web Services Support contacts you through a support case to resolve the issue.</p> </dd> <dt>AWS_ABORTED</dt> <dd> <p>Amazon Cognito stopped the recovery because of an internal failure. Write operations in the user pool remain paused, and you can't cancel or retry the recovery. Amazon Web Services Support contacts you through a support case to resolve the issue.</p> </dd> </dl>"""
    restore_timestamp: NotRequired[
        "capo_cognito_identity_provider.types.date_type.DateType"
    ]
    """<p>The point in time that the recovery restores the user pool to.</p>"""
    trigger_timestamp: NotRequired[
        "capo_cognito_identity_provider.types.date_type.DateType"
    ]
    """<p>The end of the period of changes that the recovery reverts. This time is shortly after the time that you initiated the recovery. The recovery reverts changes to user data that occurred between <code>RestoreTimestamp</code> and <code>TriggerTimestamp</code>.</p>"""
    restore_preview: NotRequired[
        "capo_cognito_identity_provider.types.restore_preview_list_type.RestorePreviewListType"
    ]
    """<p>The recovery preview. For each type of entity, the preview shows the number of entities that the recovery creates, updates, and deletes. The preview doesn't include user data. Amazon Cognito returns the preview when it's available.</p>"""

restore_id instance-attribute

restore_id: NotRequired[RestoreIdType]

The ID of the recovery. Use this ID in requests to describe, start, or cancel the recovery.

restore_preview instance-attribute

restore_preview: NotRequired[RestorePreviewListType]

The recovery preview. For each type of entity, the preview shows the number of entities that the recovery creates, updates, and deletes. The preview doesn't include user data. Amazon Cognito returns the preview when it's available.

restore_status instance-attribute

restore_status: NotRequired[RestoreStatusType]

The status of the recovery. Can be one of the following values.

PREVIEW_GENERATING

Amazon Cognito is generating the recovery preview, which might not be available immediately. Write operations in the user pool are paused.

PREVIEW_GENERATED

The recovery preview is ready for review. Write operations in the user pool are paused. Within 24 hours after you initiate the recovery, apply it with a StartPointInTimeRecovery request or discard it with a CancelPointInTimeRecovery request.

PREVIEW_CANCELLED

You canceled the recovery. Amazon Cognito resumed write operations and didn't change your user pool data.

PREVIEW_GENERATION_FAILED

Amazon Cognito couldn't generate the recovery preview. Amazon Cognito resumed write operations and didn't change your user pool data. You can initiate a new recovery.

PREVIEW_EXPIRED

You didn't start or cancel the recovery within 24 hours after you initiated it. Amazon Cognito resumed write operations and didn't change your user pool data.

RESTORING

Amazon Cognito is restoring user data in the user pool to its state at the recovery point. Write operations in the user pool are paused.

RESTORE_COMPLETED

Amazon Cognito restored your user pool to its state at the recovery point and resumed write operations.

TEMPORARY_INTERNAL_ERROR_SEE_SUPPORT_CASE

The recovery encountered an internal error. Write operations in the user pool remain paused. Amazon Web Services Support contacts you through a support case to resolve the issue.

AWS_ABORTED

Amazon Cognito stopped the recovery because of an internal failure. Write operations in the user pool remain paused, and you can't cancel or retry the recovery. Amazon Web Services Support contacts you through a support case to resolve the issue.

restore_timestamp instance-attribute

restore_timestamp: NotRequired[DateType]

The point in time that the recovery restores the user pool to.

trigger_timestamp instance-attribute

trigger_timestamp: NotRequired[DateType]

The end of the period of changes that the recovery reverts. This time is shortly after the time that you initiated the recovery. The recovery reverts changes to user data that occurred between RestoreTimestamp and TriggerTimestamp.