deletePatchBaseline method
Deletes a patch baseline.
May throw ResourceInUseException. May throw InternalServerError.
Parameter baselineId
:
The ID of the patch baseline to delete.
Implementation
Future<DeletePatchBaselineResult> deletePatchBaseline({
required String baselineId,
}) async {
ArgumentError.checkNotNull(baselineId, 'baselineId');
_s.validateStringLength(
'baselineId',
baselineId,
20,
128,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonSSM.DeletePatchBaseline'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'BaselineId': baselineId,
},
);
return DeletePatchBaselineResult.fromJson(jsonResponse.body);
}