async def describe_app_license_usage(
self,
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = None,
billing_period: Optional["capo_appstream.types.string.String"] = None,
max_results: Optional["capo_appstream.types.integer.Integer"] = None,
next_token: Optional["capo_appstream.types.string.String"] = None,
) -> "capo_appstream.types.describe_app_license_usage_result.DescribeAppLicenseUsageResult":
"""<p>Retrieves license included application usage information.</p>
Args:
billing_period: <p>Billing period for the usage record.</p> <p>Specify the value in <i>yyyy-mm</i> format. For example, for August 2025, use <i>2025-08</i>.</p>
max_results: <p>The maximum number of results to return.</p>
next_token: <p>Token for pagination of results.</p>
Raises:
capo_appstream.errors.invalid_parameter_combination_exception.InvalidParameterCombinationException: <p>Indicates an incorrect combination of parameters, or a missing parameter.</p>
capo_appstream.errors.operation_not_permitted_exception.OperationNotPermittedException: <p>The attempted operation is not permitted.</p>
capo_appstream.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_appstream.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_appstream.types.describe_app_license_usage_request.DescribeAppLicenseUsageRequest]",
) -> AsyncOperationResponse[
"capo_appstream.types.describe_app_license_usage_result.DescribeAppLicenseUsageResult"
]:
import capo_appstream._operations.photon_admin_proxy_service.describe_app_license_usage
(
output,
http_response,
) = await capo_appstream._operations.photon_admin_proxy_service.describe_app_license_usage.async_describe_app_license_usage(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeAppLicenseUsage")
)
input_: capo_appstream.types.describe_app_license_usage_request.DescribeAppLicenseUsageRequest = {}
if billing_period is not None:
input_["billing_period"] = billing_period
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output