Skip to content

ReplicationPeer

Source code in docs_src/capo_opensearch/types/replication_peer.py
class ReplicationPeer(TypedDict, closed=True):
    peer_domain_arn: NotRequired["capo_opensearch.types.domain_arn.DomainArn"]
    """<p>The Amazon Resource Name (ARN) of the peer domain.</p>"""
    peer_role: NotRequired["capo_opensearch.types.replication_role.ReplicationRole"]
    """<p>The peer's role in the relationship, either <code>PRIMARY</code> or <code>SECONDARY</code>.</p>"""
    status: NotRequired["capo_opensearch.types.replication_status.ReplicationStatus"]
    """<p>The state of the relationship:</p> <ul> <li> <p> <code>PENDING_SETUP</code> - replication is being established.</p> </li> <li> <p> <code>ACTIVE</code> - replication is running.</p> </li> <li> <p> <code>SWITCHING_OVER</code> - a planned promotion is in progress.</p> </li> <li> <p> <code>FAILING_OVER</code> - an unplanned promotion is in progress.</p> </li> <li> <p> <code>PENDING_REMOVAL</code> - replication is being stopped.</p> </li> <li> <p> <code>DETACHED</code> - the relationship has ended.</p> </li> <li> <p> <code>EJECTED</code> - a failover promoted the other domain. The former primary keeps the data it had when it was ejected and stays read-only until you remove the peer, or discard that data and pair again.</p> </li> <li> <p> <code>FAILED</code> - setup or teardown could not complete. You can still remove the relationship.</p> </li> </ul> <p>A relationship that is removed successfully no longer appears in <code>Peers</code>.</p>"""
    status_message: NotRequired[
        "capo_opensearch.types.replication_status_message.ReplicationStatusMessage"
    ]
    """<p>An explanation of why the relationship is in its current state, when more detail is available.</p>"""

peer_domain_arn instance-attribute

peer_domain_arn: NotRequired[DomainArn]

The Amazon Resource Name (ARN) of the peer domain.

peer_role instance-attribute

peer_role: NotRequired[ReplicationRole]

The peer's role in the relationship, either PRIMARY or SECONDARY.

status instance-attribute

status: NotRequired[ReplicationStatus]

The state of the relationship:

  • PENDING_SETUP - replication is being established.

  • ACTIVE - replication is running.

  • SWITCHING_OVER - a planned promotion is in progress.

  • FAILING_OVER - an unplanned promotion is in progress.

  • PENDING_REMOVAL - replication is being stopped.

  • DETACHED - the relationship has ended.

  • EJECTED - a failover promoted the other domain. The former primary keeps the data it had when it was ejected and stays read-only until you remove the peer, or discard that data and pair again.

  • FAILED - setup or teardown could not complete. You can still remove the relationship.

A relationship that is removed successfully no longer appears in Peers.

status_message instance-attribute

status_message: NotRequired[ReplicationStatusMessage]

An explanation of why the relationship is in its current state, when more detail is available.