get_license_usage

LicenseManager.Client.get_license_usage(**kwargs)

Gets detailed information about the usage of the specified license.

See also: AWS API Documentation

Request Syntax

response = client.get_license_usage(
    LicenseArn='string'
)
Parameters
LicenseArn (string) --

[REQUIRED]

Amazon Resource Name (ARN) of the license.

Return type
dict
Returns
Response Syntax
{
    'LicenseUsage': {
        'EntitlementUsages': [
            {
                'Name': 'string',
                'ConsumedValue': 'string',
                'MaxCount': 'string',
                'Unit': 'Count'|'None'|'Seconds'|'Microseconds'|'Milliseconds'|'Bytes'|'Kilobytes'|'Megabytes'|'Gigabytes'|'Terabytes'|'Bits'|'Kilobits'|'Megabits'|'Gigabits'|'Terabits'|'Percent'|'Bytes/Second'|'Kilobytes/Second'|'Megabytes/Second'|'Gigabytes/Second'|'Terabytes/Second'|'Bits/Second'|'Kilobits/Second'|'Megabits/Second'|'Gigabits/Second'|'Terabits/Second'|'Count/Second'
            },
        ]
    }
}

Response Structure

  • (dict) --
    • LicenseUsage (dict) --

      License usage details.

      • EntitlementUsages (list) --

        License entitlement usages.

        • (dict) --

          Usage associated with an entitlement resource.

          • Name (string) --

            Entitlement usage name.

          • ConsumedValue (string) --

            Resource usage consumed.

          • MaxCount (string) --

            Maximum entitlement usage count.

          • Unit (string) --

            Entitlement usage unit.

Exceptions

  • LicenseManager.Client.exceptions.ValidationException
  • LicenseManager.Client.exceptions.InvalidParameterValueException
  • LicenseManager.Client.exceptions.AuthorizationException
  • LicenseManager.Client.exceptions.AccessDeniedException
  • LicenseManager.Client.exceptions.RateLimitExceededException
  • LicenseManager.Client.exceptions.ServerInternalException