describeAvailablePatches method
Future<DescribeAvailablePatchesResult>
describeAvailablePatches({
- List<
PatchOrchestratorFilter> ? filters, - int? maxResults,
- String? nextToken,
Lists all patches eligible to be included in a patch baseline.
May throw InternalServerError.
Parameter filters
:
Filters used to scope down the returned patches.
Parameter maxResults
:
The maximum number of patches to return (per page).
Parameter nextToken
:
The token for the next set of items to return. (You received this token
from a previous call.)
Implementation
Future<DescribeAvailablePatchesResult> describeAvailablePatches({
List<PatchOrchestratorFilter>? filters,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonSSM.DescribeAvailablePatches'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (filters != null) 'Filters': filters,
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
);
return DescribeAvailablePatchesResult.fromJson(jsonResponse.body);
}