describeAppLicenseUsage method
Retrieves license included application usage information.
May throw InvalidParameterCombinationException.
May throw OperationNotPermittedException.
May throw ResourceNotFoundException.
Parameter billingPeriod :
Billing period for the usage record.
Specify the value in yyyy-mm format. For example, for August 2025, use 2025-08.
Parameter maxResults :
The maximum number of results to return.
Parameter nextToken :
Token for pagination of results.
Implementation
Future<DescribeAppLicenseUsageResult> describeAppLicenseUsage({
required String billingPeriod,
int? maxResults,
String? nextToken,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'PhotonAdminProxyService.DescribeAppLicenseUsage'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'BillingPeriod': billingPeriod,
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
);
return DescribeAppLicenseUsageResult.fromJson(jsonResponse.body);
}