deleteKxCluster method

Future<void> deleteKxCluster({
  1. required String clusterName,
  2. required String environmentId,
  3. String? clientToken,
})

Deletes a kdb cluster.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw LimitExceededException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter clusterName : The name of the cluster that you want to delete.

Parameter environmentId : A unique identifier for the kdb environment.

Parameter clientToken : A token that ensures idempotency. This token expires in 10 minutes.

Implementation

Future<void> deleteKxCluster({
  required String clusterName,
  required String environmentId,
  String? clientToken,
}) async {
  final $query = <String, List<String>>{
    if (clientToken != null) 'clientToken': [clientToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/kx/environments/${Uri.encodeComponent(environmentId)}/clusters/${Uri.encodeComponent(clusterName)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
}