Skip to content

update_cross_region_routing async

update_cross_region_routing(
    instance_id: ACGRInstanceIdOrArn,
    isolated_all: Boolean,
    *,
    config_overrides: Optional[AsyncConnectClientConfig] = None,
) -> UpdateCrossRegionRoutingResponse

Updates the cross-region routing configuration for an Amazon Connect Global Resiliency instance enabled for global routing. When invoked with IsolatedAll set to true, this operation disables cross-region routing, meaning contacts originating in one Region will no longer be routed to agents in another Region.

This operation is available only for Amazon Connect Global Resiliency instances enabled for global routing. Reporting and contact search continue to operate globally after you use this operation.

Parameters:

  • instance_id (ACGRInstanceIdOrArn) –

    The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

  • isolated_all (Boolean) –

    Set to true to disable cross-region routing for all Regions associated with this instance. Set to false to re-enable cross-region routing.

Raises:

Source code in docs_src/capo_connect/_services/async_connect.py
async def update_cross_region_routing(
    self,
    instance_id: "capo_connect.types.acgr_instance_id_or_arn.ACGRInstanceIdOrArn",
    isolated_all: "capo_connect.types.boolean.Boolean",
    *,
    config_overrides: Optional[AsyncConnectClientConfig] = None,
) -> "capo_connect.types.update_cross_region_routing_response.UpdateCrossRegionRoutingResponse":
    """<p>Updates the cross-region routing configuration for an Amazon Connect Global Resiliency instance enabled for global routing. When invoked with <code>IsolatedAll</code> set to <code>true</code>, this operation disables cross-region routing, meaning contacts originating in one Region will no longer be routed to agents in another Region.</p> <note> <p>This operation is available only for Amazon Connect Global Resiliency instances enabled for global routing. Reporting and contact search continue to operate globally after you use this operation.</p> </note>

    Args:
        instance_id: <p>The identifier of the Connect Customer instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
        isolated_all: <p>Set to <code>true</code> to disable cross-region routing for all Regions associated with this instance. Set to <code>false</code> to re-enable cross-region routing.</p>

    Raises:
        capo_connect.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permissions to perform this action.</p>
        capo_connect.errors.internal_service_exception.InternalServiceException: <p>Request processing failed because of an error or failure with the service.</p>
        capo_connect.errors.invalid_request_exception.InvalidRequestException: <p>The request is not valid.</p>
        capo_connect.errors.resource_conflict_exception.ResourceConflictException: <p>A resource already has that name.</p>
        capo_connect.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
        capo_connect.errors.throttling_exception.ThrottlingException: <p>The throttling limit has been exceeded.</p>
        capo_connect.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_connect.types.update_cross_region_routing_request.UpdateCrossRegionRoutingRequest]",
    ) -> AsyncOperationResponse[
        "capo_connect.types.update_cross_region_routing_response.UpdateCrossRegionRoutingResponse"
    ]:
        import capo_connect._operations.amazon_connect_service.update_cross_region_routing

        (
            output,
            http_response,
        ) = await capo_connect._operations.amazon_connect_service.update_cross_region_routing.async_update_cross_region_routing(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateCrossRegionRouting")
    )
    input_: capo_connect.types.update_cross_region_routing_request.UpdateCrossRegionRoutingRequest = {
        "instance_id": instance_id,
        "isolated_all": isolated_all,
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output