deleteDbCluster method

Future<DeleteDbClusterOutput> deleteDbCluster({
  1. required String dbClusterId,
})

Deletes a Timestream for InfluxDB cluster.

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

Parameter dbClusterId : Service-generated unique identifier of the DB cluster.

Implementation

Future<DeleteDbClusterOutput> deleteDbCluster({
  required String dbClusterId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'AmazonTimestreamInfluxDB.DeleteDbCluster'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'dbClusterId': dbClusterId,
    },
  );

  return DeleteDbClusterOutput.fromJson(jsonResponse.body);
}