deregisterPatchBaselineForPatchGroup method
Removes a patch group from a patch baseline.
May throw InternalServerError.
May throw InvalidResourceId.
Parameter baselineId :
The ID of the patch baseline to deregister the patch group from.
Parameter patchGroup :
The name of the patch group that should be deregistered from the patch
baseline.
Implementation
Future<DeregisterPatchBaselineForPatchGroupResult>
deregisterPatchBaselineForPatchGroup({
required String baselineId,
required String patchGroup,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonSSM.DeregisterPatchBaselineForPatchGroup'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'BaselineId': baselineId,
'PatchGroup': patchGroup,
},
);
return DeregisterPatchBaselineForPatchGroupResult.fromJson(
jsonResponse.body);
}