getPatchBaseline method

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

Retrieves information about a patch baseline.

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

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

Implementation

Future<GetPatchBaselineResult> getPatchBaseline({
  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.GetPatchBaseline'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'BaselineId': baselineId,
    },
  );

  return GetPatchBaselineResult.fromJson(jsonResponse.body);
}