Skip to content

reboot_node async

reboot_node(
    cluster_name: String,
    node_id: String,
    *,
    config_overrides: Optional[AsyncDAXClientConfig] = None,
) -> RebootNodeResponse

Reboots a single node of a DAX cluster. The reboot action takes place as soon as possible. During the reboot, the node status is set to REBOOTING.

RebootNode restarts the DAX engine process and does not remove the contents of the cache.

Parameters:

  • cluster_name (String) –

    The name of the DAX cluster containing the node to be rebooted.

  • node_id (String) –

    The system-assigned ID of the node to be rebooted.

Raises:

Source code in docs_src/capo_dax/_services/async_dax.py
async def reboot_node(
    self,
    cluster_name: "capo_dax.types.string.String",
    node_id: "capo_dax.types.string.String",
    *,
    config_overrides: Optional[AsyncDAXClientConfig] = None,
) -> "capo_dax.types.reboot_node_response.RebootNodeResponse":
    """<p>Reboots a single node of a DAX cluster. The reboot action takes place as soon as possible. During the reboot, the node status is set to REBOOTING.</p> <note> <p> <code>RebootNode</code> restarts the DAX engine process and does not remove the contents of the cache.</p> </note>

    Args:
        cluster_name: <p>The name of the DAX cluster containing the node to be rebooted.</p>
        node_id: <p>The system-assigned ID of the node to be rebooted.</p>

    Raises:
        capo_dax.errors.cluster_not_found_fault.ClusterNotFoundFault: <p>The requested cluster ID does not refer to an existing DAX cluster.</p>
        capo_dax.errors.invalid_cluster_state_fault.InvalidClusterStateFault: <p>The requested DAX cluster is not in the <i>available</i> state.</p>
        capo_dax.errors.invalid_parameter_combination_exception.InvalidParameterCombinationException: <p>Two or more incompatible parameters were specified.</p>
        capo_dax.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>The value for a parameter is invalid.</p>
        capo_dax.errors.node_not_found_fault.NodeNotFoundFault: <p>None of the nodes in the cluster have the given node ID.</p>
        capo_dax.errors.service_linked_role_not_found_fault.ServiceLinkedRoleNotFoundFault: <p>The specified service linked role (SLR) was not found.</p>
        capo_dax.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_dax.types.reboot_node_request.RebootNodeRequest]",
    ) -> AsyncOperationResponse[
        "capo_dax.types.reboot_node_response.RebootNodeResponse"
    ]:
        import capo_dax._operations.amazon_daxv3.reboot_node

        (
            output,
            http_response,
        ) = await capo_dax._operations.amazon_daxv3.reboot_node.async_reboot_node(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("RebootNode")
    )
    input_: capo_dax.types.reboot_node_request.RebootNodeRequest = {
        "cluster_name": cluster_name,
        "node_id": node_id,
    }

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