stopSandbox method
Stops a sandbox.
May throw InvalidInputException.
May throw ResourceNotFoundException.
Parameter id :
Information about the requested sandbox ID.
Implementation
Future<StopSandboxOutput> stopSandbox({
required String id,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeBuild_20161006.StopSandbox'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'id': id,
},
);
return StopSandboxOutput.fromJson(jsonResponse.body);
}