getDefaultPatchBaseline method
Future<GetDefaultPatchBaselineResult>
getDefaultPatchBaseline({
- OperatingSystem? operatingSystem,
Retrieves the default patch baseline. Note that Systems Manager supports creating multiple default patch baselines. For example, you can create a default patch baseline for each operating system.
If you do not specify an operating system value, the default patch baseline for Windows is returned.
May throw InternalServerError.
Parameter operatingSystem
:
Returns the default patch baseline for the specified operating system.
Implementation
Future<GetDefaultPatchBaselineResult> getDefaultPatchBaseline({
OperatingSystem? operatingSystem,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonSSM.GetDefaultPatchBaseline'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (operatingSystem != null)
'OperatingSystem': operatingSystem.toValue(),
},
);
return GetDefaultPatchBaselineResult.fromJson(jsonResponse.body);
}