stopBuildBatch method
Stops a running batch build.
May throw InvalidInputException. May throw ResourceNotFoundException.
Parameter id
:
The identifier of the batch build to stop.
Implementation
Future<StopBuildBatchOutput> stopBuildBatch({
required String id,
}) async {
ArgumentError.checkNotNull(id, 'id');
_s.validateStringLength(
'id',
id,
1,
1152921504606846976,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeBuild_20161006.StopBuildBatch'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'id': id,
},
);
return StopBuildBatchOutput.fromJson(jsonResponse.body);
}