listLicenseAssetGroups method

Future<ListLicenseAssetGroupsResponse> listLicenseAssetGroups({
  1. List<Filter>? filters,
  2. int? maxResults,
  3. String? nextToken,
})

Lists license asset groups.

May throw AccessDeniedException. May throw AuthorizationException. May throw InvalidParameterValueException. May throw RateLimitExceededException. May throw ServerInternalException. May throw ValidationException.

Parameter filters : Filters to scope the results. Following filters are supported

  • LicenseAssetRulesetArn

Parameter maxResults : Maximum number of results to return in a single call.

Parameter nextToken : Token for the next set of results.

Implementation

Future<ListLicenseAssetGroupsResponse> listLicenseAssetGroups({
  List<Filter>? filters,
  int? maxResults,
  String? nextToken,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSLicenseManager.ListLicenseAssetGroups'
  };
  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 ListLicenseAssetGroupsResponse.fromJson(jsonResponse.body);
}