describePatchGroupState method

Future<DescribePatchGroupStateResult> describePatchGroupState({
  1. required String patchGroup,
})

Returns high-level aggregated patch compliance state for a patch group.

May throw InternalServerError. May throw InvalidNextToken.

Parameter patchGroup : The name of the patch group whose patch snapshot should be retrieved.

Implementation

Future<DescribePatchGroupStateResult> describePatchGroupState({
  required String patchGroup,
}) async {
  ArgumentError.checkNotNull(patchGroup, 'patchGroup');
  _s.validateStringLength(
    'patchGroup',
    patchGroup,
    1,
    256,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonSSM.DescribePatchGroupState'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'PatchGroup': patchGroup,
    },
  );

  return DescribePatchGroupStateResult.fromJson(jsonResponse.body);
}