Skip to content

delete_kx_cluster_node async

delete_kx_cluster_node(
    environment_id: KxEnvironmentId,
    cluster_name: KxClusterName,
    node_id: KxClusterNodeIdString,
    *,
    config_overrides: Optional[AsyncfinspaceClientConfig] = None,
) -> DeleteKxClusterNodeResponse

Deletes the specified nodes from a cluster.

Parameters:

  • environment_id (KxEnvironmentId) –

    A unique identifier for the kdb environment.

  • cluster_name (KxClusterName) –

    The name of the cluster, for which you want to delete the nodes.

  • node_id (KxClusterNodeIdString) –

    A unique identifier for the node that you want to delete.

Raises:

Source code in docs_src/capo_finspace/_services/async_finspace.py
async def delete_kx_cluster_node(
    self,
    environment_id: "capo_finspace.types.kx_environment_id.KxEnvironmentId",
    cluster_name: "capo_finspace.types.kx_cluster_name.KxClusterName",
    node_id: "capo_finspace.types.kx_cluster_node_id_string.KxClusterNodeIdString",
    *,
    config_overrides: Optional[AsyncfinspaceClientConfig] = None,
) -> "capo_finspace.types.delete_kx_cluster_node_response.DeleteKxClusterNodeResponse":
    """<p>Deletes the specified nodes from a cluster. </p>

    Args:
        environment_id: <p>A unique identifier for the kdb environment.</p>
        cluster_name: <p>The name of the cluster, for which you want to delete the nodes.</p>
        node_id: <p>A unique identifier for the node that you want to delete.</p>

    Raises:
        capo_finspace.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_finspace.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_finspace.errors.resource_not_found_exception.ResourceNotFoundException: <p>One or more resources can't be found.</p>
        capo_finspace.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_finspace.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an AWS service.</p>
        capo_finspace.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_finspace.types.delete_kx_cluster_node_request.DeleteKxClusterNodeRequest]",
    ) -> AsyncOperationResponse[
        "capo_finspace.types.delete_kx_cluster_node_response.DeleteKxClusterNodeResponse"
    ]:
        import capo_finspace._operations.aws_habanero_management_service.delete_kx_cluster_node

        (
            output,
            http_response,
        ) = await capo_finspace._operations.aws_habanero_management_service.delete_kx_cluster_node.async_delete_kx_cluster_node(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteKxClusterNode")
    )
    input_: capo_finspace.types.delete_kx_cluster_node_request.DeleteKxClusterNodeRequest = {
        "environment_id": environment_id,
        "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