odb / Client / switchover_autonomous_database

switchover_autonomous_database

odb.Client.switchover_autonomous_database(**kwargs)

Performs a switchover of the specified Autonomous Database to a standby peer database.

See also: AWS API Documentation

Request Syntax

response = client.switchover_autonomous_database(
    autonomousDatabaseId='string',
    peerDbArn='string'
)
Parameters:
  • autonomousDatabaseId (string) –

    [REQUIRED]

    The unique identifier of the Autonomous Database to switch over.

  • peerDbArn (string) – The Amazon Resource Name (ARN) of the peer Autonomous Database to switch over to.

Return type:

dict

Returns:

Response Syntax

{
    'autonomousDatabaseId': 'string',
    'displayName': 'string',
    'status': 'AVAILABLE'|'FAILED'|'PROVISIONING'|'TERMINATED'|'TERMINATING'|'UPDATING'|'MAINTENANCE_IN_PROGRESS'|'STOPPING'|'STOPPED'|'STARTING'|'UNAVAILABLE'|'RESTORE_IN_PROGRESS'|'RESTORE_FAILED'|'BACKUP_IN_PROGRESS'|'SCALE_IN_PROGRESS'|'AVAILABLE_NEEDS_ATTENTION'|'RESTARTING'|'RECREATING'|'ROLE_CHANGE_IN_PROGRESS'|'UPGRADING'|'INACCESSIBLE'|'STANDBY',
    'statusReason': 'string'
}

Response Structure

  • (dict) –

    • autonomousDatabaseId (string) –

      The unique identifier of the Autonomous Database that was switched over.

    • displayName (string) –

      The user-friendly name of the Autonomous Database.

    • status (string) –

      The current status of the Autonomous Database after the switchover operation.

    • statusReason (string) –

      Additional information about the status of the Autonomous Database after the switchover operation.

Exceptions

  • odb.Client.exceptions.ThrottlingException

  • odb.Client.exceptions.ValidationException

  • odb.Client.exceptions.ConflictException

  • odb.Client.exceptions.AccessDeniedException

  • odb.Client.exceptions.InternalServerException

  • odb.Client.exceptions.ResourceNotFoundException