rebootDbCluster method
Reboots 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 to reboot.
Parameter instanceIds :
A list of service-generated unique DB Instance Ids belonging to the DB
Cluster to reboot.
Implementation
Future<RebootDbClusterOutput> rebootDbCluster({
required String dbClusterId,
List<String>? instanceIds,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AmazonTimestreamInfluxDB.RebootDbCluster'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'dbClusterId': dbClusterId,
if (instanceIds != null) 'instanceIds': instanceIds,
},
);
return RebootDbClusterOutput.fromJson(jsonResponse.body);
}