Stops replicating a domain to its peer. Replication ends for both domains, and each domain keeps the data it holds at that point. Neither domain is deleted.
Parameters:
-
peer_domain_arn
(DomainArn)
–
The Amazon Resource Name (ARN) of the peer to stop replicating with. Both domains are named so that the request identifies exactly one replication relationship.
Raises:
Source code in docs_src/capo_opensearch/_services/open_search.py
| def remove_replication_peer(
self,
domain_name: "capo_opensearch.types.domain_name.DomainName",
peer_domain_arn: "capo_opensearch.types.domain_arn.DomainArn",
*,
config_overrides: Optional[OpenSearchClientConfig] = None,
) -> "capo_opensearch.types.remove_replication_peer_response.RemoveReplicationPeerResponse":
"""<p>Stops replicating a domain to its peer. Replication ends for both domains, and each domain keeps the data it holds at that point. Neither domain is deleted.</p>
Args:
peer_domain_arn: <p>The Amazon Resource Name (ARN) of the peer to stop replicating with. Both domains are named so that the request identifies exactly one replication relationship.</p>
Raises:
capo_opensearch.errors.disabled_operation_exception.DisabledOperationException: <p>An error occured because the client wanted to access an unsupported operation.</p>
capo_opensearch.errors.internal_exception.InternalException: <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
capo_opensearch.errors.resource_not_found_exception.ResourceNotFoundException: <p>An exception for accessing or deleting a resource that doesn't exist.</p>
capo_opensearch.errors.validation_exception.ValidationException: <p>An exception for accessing or deleting a resource that doesn't exist.</p>
capo_opensearch.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_opensearch.types.remove_replication_peer_request.RemoveReplicationPeerRequest]",
) -> OperationResponse[
"capo_opensearch.types.remove_replication_peer_response.RemoveReplicationPeerResponse"
]:
import capo_opensearch._operations.amazon_open_search_service.remove_replication_peer
output, http_response = (
capo_opensearch._operations.amazon_open_search_service.remove_replication_peer.remove_replication_peer(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("RemoveReplicationPeer")
)
input_: capo_opensearch.types.remove_replication_peer_request.RemoveReplicationPeerRequest = {
"domain_name": domain_name,
"peer_domain_arn": peer_domain_arn,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|