Skip to content

update_failback_replication_configuration

update_failback_replication_configuration(
    recovery_instance_id: RecoveryInstanceID,
    *,
    config_overrides: Optional[drsClientConfig] = None,
    name: Optional[BoundedString] = None,
    bandwidth_throttling: Optional[PositiveInteger] = None,
    use_private_ip: Optional[bool] = None,
    internet_protocol: Optional[InternetProtocol] = None,
) -> None

Allows you to update the failback replication configuration of a Recovery Instance by ID.

Parameters:

  • recovery_instance_id (RecoveryInstanceID) –

    The ID of the Recovery Instance.

  • name (Optional[BoundedString], default: None ) –

    The name of the Failback Replication Configuration.

  • bandwidth_throttling (Optional[PositiveInteger], default: None ) –

    Configure bandwidth throttling for the outbound data transfer rate of the Recovery Instance in Mbps.

  • use_private_ip (Optional[bool], default: None ) –

    Whether to use Private IP for the failback replication of the Recovery Instance.

  • internet_protocol (Optional[InternetProtocol], default: None ) –

    Which version of the Internet Protocol to use for replication of data. (IPv4 or IPv6)

Raises:

Source code in docs_src/capo_drs/_services/drs.py
def update_failback_replication_configuration(
    self,
    recovery_instance_id: "capo_drs.types.recovery_instance_id.RecoveryInstanceID",
    *,
    config_overrides: Optional[drsClientConfig] = None,
    name: Optional["capo_drs.types.bounded_string.BoundedString"] = None,
    bandwidth_throttling: Optional[
        "capo_drs.types.positive_integer.PositiveInteger"
    ] = None,
    use_private_ip: Optional[bool] = None,
    internet_protocol: Optional[
        "capo_drs.types.internet_protocol.InternetProtocol"
    ] = None,
) -> None:
    """<p>Allows you to update the failback replication configuration of a Recovery Instance by ID.</p>

    Args:
        recovery_instance_id: <p>The ID of the Recovery Instance.</p>
        name: <p>The name of the Failback Replication Configuration.</p>
        bandwidth_throttling: <p>Configure bandwidth throttling for the outbound data transfer rate of the Recovery Instance in Mbps.</p>
        use_private_ip: <p>Whether to use Private IP for the failback replication of the Recovery Instance.</p>
        internet_protocol: <p>Which version of the Internet Protocol to use for replication of data. (IPv4 or IPv6)</p>

    Raises:
        capo_drs.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_drs.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_drs.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource for this operation was not found.</p>
        capo_drs.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_drs.errors.uninitialized_account_exception.UninitializedAccountException: <p>The account performing the request has not been initialized.</p>
        capo_drs.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_drs.types.update_failback_replication_configuration_request.UpdateFailbackReplicationConfigurationRequest]",
    ) -> OperationResponse[None]:
        import capo_drs._operations.elastic_disaster_recovery_service.update_failback_replication_configuration

        output, http_response = (
            capo_drs._operations.elastic_disaster_recovery_service.update_failback_replication_configuration.update_failback_replication_configuration(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateFailbackReplicationConfiguration")
    )
    input_: capo_drs.types.update_failback_replication_configuration_request.UpdateFailbackReplicationConfigurationRequest = {
        "recovery_instance_id": recovery_instance_id
    }
    if name is not None:
        input_["name"] = name
    if bandwidth_throttling is not None:
        input_["bandwidth_throttling"] = bandwidth_throttling
    if use_private_ip is not None:
        input_["use_private_ip"] = use_private_ip
    if internet_protocol is not None:
        input_["internet_protocol"] = internet_protocol

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output