list_usage_for_license_configuration
¶
list_usage_for_license_configuration(
license_configuration_arn: String,
*,
config_overrides: Optional[LicenseManagerClientConfig] = None,
max_results: Optional[BoxInteger] = None,
next_token: Optional[String] = None,
filters: Optional[Filters] = None,
) -> ListUsageForLicenseConfigurationResponse
Lists all license usage records for a license configuration, displaying license consumption details by resource at a selected point in time. Use this action to audit the current license consumption for any license inventory and configuration.
Parameters:
-
license_configuration_arn(String) –Amazon Resource Name (ARN) of the license configuration.
-
max_results(Optional[BoxInteger], default:None) –Maximum number of results to return in a single call.
-
next_token(Optional[String], default:None) –Token for the next set of results.
-
filters(Optional[Filters], default:None) –Filters to scope the results. The following filters and logical operators are supported:
-
resourceArn- The ARN of the license configuration resource. -
resourceType- The resource type (EC2_INSTANCE|EC2_HOST|EC2_AMI|SYSTEMS_MANAGER_MANAGED_INSTANCE). -
resourceAccount- The ID of the account that owns the resource.
-
Raises:
-
AccessDeniedException–Access to resource denied.
-
AuthorizationException–The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy associated with this account.
-
FilterLimitExceededException–The request uses too many filters or too many filter values.
-
InvalidParameterValueException–One or more parameter values are not valid.
-
RateLimitExceededException–Too many requests have been submitted. Try again after a brief wait.
-
ServerInternalException–The server experienced an internal error. Try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_license_manager/_services/license_manager.py
3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 | |