getPatchBaseline method

Future<GetPatchBaselineResult> getPatchBaseline({
  1. required String baselineId,
})

Retrieves information about a patch baseline.

May throw DoesNotExistException. May throw InternalServerError. May throw InvalidResourceId.

Parameter baselineId : The ID of the patch baseline to retrieve.

Implementation

Future<GetPatchBaselineResult> getPatchBaseline({
  required String baselineId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonSSM.GetPatchBaseline'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'BaselineId': baselineId,
    },
  );

  return GetPatchBaselineResult.fromJson(jsonResponse.body);
}