listReceivedLicenses method
Lists received licenses.
May throw ValidationException. May throw InvalidParameterValueException. May throw ResourceLimitExceededException. May throw ServerInternalException. May throw AuthorizationException. May throw AccessDeniedException. May throw RateLimitExceededException.
Parameter filters
:
Filters to scope the results. The following filters are supported:
-
ProductSKU
-
Status
-
KeyFingerprint
-
Issuer
Parameter licenseArns
:
Amazon Resource Names (ARNs) of the licenses.
Parameter maxResults
:
Maximum number of results to return in a single call.
Parameter nextToken
:
Token for the next set of results.
Implementation
Future<ListReceivedLicensesResponse> listReceivedLicenses({
List<Filter>? filters,
List<String>? licenseArns,
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': 'AWSLicenseManager.ListReceivedLicenses'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (filters != null) 'Filters': filters,
if (licenseArns != null) 'LicenseArns': licenseArns,
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
);
return ListReceivedLicensesResponse.fromJson(jsonResponse.body);
}