getDbCluster method

Future<GetDbClusterOutput> getDbCluster({
  1. required String dbClusterId,
})

Retrieves information about a Timestream for InfluxDB cluster.

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

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

Implementation

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

  return GetDbClusterOutput.fromJson(jsonResponse.body);
}