Table of Contents
A low-level client representing AWS License Manager:
import boto3
client = boto3.client('license-manager')
These are the available methods:
Check if an operation can be paginated.
Creates a new license configuration object. A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or VCPU), tenancy (shared tenancy, Amazon EC2 Dedicated Instance, Amazon EC2 Dedicated Host, or any of these), host affinity (how long a VM must be associated with a host), the number of licenses purchased and used.
See also: AWS API Documentation
Request Syntax
response = client.create_license_configuration(
Name='string',
Description='string',
LicenseCountingType='vCPU'|'Instance'|'Core'|'Socket',
LicenseCount=123,
LicenseCountHardLimit=True|False,
LicenseRules=[
'string',
],
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
Name of the license configuration.
[REQUIRED]
Dimension to use to track the license inventory.
Array of configured License Manager rules.
The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The specified tags are applied to all instances or volumes that are created during launch. To tag a resource after it has been created, see CreateTags .
Tag for a resource in a key-value format.
Key for the resource tag.
Value for the resource tag.
dict
Response Syntax
{
'LicenseConfigurationArn': 'string'
}
Response Structure
(dict) --
LicenseConfigurationArn (string) --
ARN of the license configuration object after its creation.
Deletes an existing license configuration. This action fails if the configuration is in use.
See also: AWS API Documentation
Request Syntax
response = client.delete_license_configuration(
LicenseConfigurationArn='string'
)
[REQUIRED]
Unique ID of the configuration object to delete.
{}
Response Structure
Generate a presigned url given a client, its method, and arguments
The presigned url
Returns a detailed description of a license configuration.
See also: AWS API Documentation
Request Syntax
response = client.get_license_configuration(
LicenseConfigurationArn='string'
)
[REQUIRED]
ARN of the license configuration being requested.
{
'LicenseConfigurationId': 'string',
'LicenseConfigurationArn': 'string',
'Name': 'string',
'Description': 'string',
'LicenseCountingType': 'vCPU'|'Instance'|'Core'|'Socket',
'LicenseRules': [
'string',
],
'LicenseCount': 123,
'LicenseCountHardLimit': True|False,
'ConsumedLicenses': 123,
'Status': 'string',
'OwnerAccountId': 'string',
'ConsumedLicenseSummaryList': [
{
'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI',
'ConsumedLicenses': 123
},
],
'ManagedResourceSummaryList': [
{
'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI',
'AssociationCount': 123
},
],
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
Response Structure
Unique ID for the license configuration.
ARN of the license configuration requested.
Name of the license configuration.
Description of the license configuration.
Dimension on which the licenses are counted (for example, instances, cores, sockets, or VCPUs).
List of flexible text strings designating license rules.
Number of available licenses.
Sets the number of available licenses as a hard limit.
Number of licenses assigned to resources.
License configuration status (active, etc.).
Owner account ID for the license configuration.
List of summaries for consumed licenses used by various resources.
Details about license consumption.
Resource type of the resource consuming a license (instance, host, or AMI).
Number of licenses consumed by a resource.
List of summaries of managed resources.
Summary for a resource.
Type of resource associated with a license (instance, host, or AMI).
Number of resources associated with licenses.
List of tags attached to the license configuration.
Tag for a resource in a key-value format.
Key for the resource tag.
Value for the resource tag.
Create a paginator for an operation.
Gets License Manager settings for a region. Exposes the configured S3 bucket, SNS topic, etc., for inspection.
See also: AWS API Documentation
Request Syntax
response = client.get_service_settings()
{
'S3BucketArn': 'string',
'SnsTopicArn': 'string',
'OrganizationConfiguration': {
'EnableIntegration': True|False
},
'EnableCrossAccountsDiscovery': True|False
}
Response Structure
Regional S3 bucket path for storing reports, license trail event data, discovery data, etc.
SNS topic configured to receive notifications from License Manager.
Indicates whether AWS Organizations has been integrated with License Manager for cross-account discovery.
Flag to activate AWS Organization integration.
Indicates whether cross-account discovery has been enabled.
Returns an object that can wait for some condition.
Lists the resource associations for a license configuration. Resource associations need not consume licenses from a license configuration. For example, an AMI or a stopped instance may not consume a license (depending on the license rules). Use this operation to find all resources associated with a license configuration.
See also: AWS API Documentation
Request Syntax
response = client.list_associations_for_license_configuration(
LicenseConfigurationArn='string',
MaxResults=123,
NextToken='string'
)
[REQUIRED]
ARN of a LicenseConfiguration object.
dict
Response Syntax
{
'LicenseConfigurationAssociations': [
{
'ResourceArn': 'string',
'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI',
'ResourceOwnerId': 'string',
'AssociationTime': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
LicenseConfigurationAssociations (list) --
Lists association objects for the license configuration, each containing the association time, number of consumed licenses, resource ARN, resource ID, account ID that owns the resource, resource size, and resource type.
(dict) --
Describes a server resource that is associated with a license configuration.
ResourceArn (string) --
ARN of the resource associated with the license configuration.
ResourceType (string) --
Type of server resource.
ResourceOwnerId (string) --
ID of the AWS account that owns the resource consuming licenses.
AssociationTime (datetime) --
Time when the license configuration was associated with the resource.
NextToken (string) --
Token for the next set of results.
Lists license configuration objects for an account, each containing the name, description, license type, and other license terms modeled from a license agreement.
See also: AWS API Documentation
Request Syntax
response = client.list_license_configurations(
LicenseConfigurationArns=[
'string',
],
MaxResults=123,
NextToken='string',
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
]
)
An array of ARNs for the calling account’s license configurations.
One or more filters.
A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. The filters supported by a Describe operation are documented with the Describe operation.
Name of the filter. Filter names are case-sensitive.
One or more filter values. Filter values are case-sensitive.
dict
Response Syntax
{
'LicenseConfigurations': [
{
'LicenseConfigurationId': 'string',
'LicenseConfigurationArn': 'string',
'Name': 'string',
'Description': 'string',
'LicenseCountingType': 'vCPU'|'Instance'|'Core'|'Socket',
'LicenseRules': [
'string',
],
'LicenseCount': 123,
'LicenseCountHardLimit': True|False,
'ConsumedLicenses': 123,
'Status': 'string',
'OwnerAccountId': 'string',
'ConsumedLicenseSummaryList': [
{
'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI',
'ConsumedLicenses': 123
},
],
'ManagedResourceSummaryList': [
{
'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI',
'AssociationCount': 123
},
]
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
LicenseConfigurations (list) --
Array of license configuration objects.
(dict) --
A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or VCPU), tenancy (shared tenancy, Amazon EC2 Dedicated Instance, Amazon EC2 Dedicated Host, or any of these), host affinity (how long a VM must be associated with a host), the number of licenses purchased and used.
LicenseConfigurationId (string) --
Unique ID of the LicenseConfiguration object.
LicenseConfigurationArn (string) --
ARN of the LicenseConfiguration object.
Name (string) --
Name of the license configuration.
Description (string) --
Description of the license configuration.
LicenseCountingType (string) --
Dimension to use to track license inventory.
LicenseRules (list) --
Array of configured License Manager rules.
LicenseCount (integer) --
Number of licenses managed by the license configuration.
LicenseCountHardLimit (boolean) --
Sets the number of available licenses as a hard limit.
ConsumedLicenses (integer) --
Number of licenses consumed.
Status (string) --
Status of the license configuration.
OwnerAccountId (string) --
Account ID of the license configuration's owner.
ConsumedLicenseSummaryList (list) --
List of summaries for licenses consumed by various resources.
(dict) --
Details about license consumption.
ResourceType (string) --
Resource type of the resource consuming a license (instance, host, or AMI).
ConsumedLicenses (integer) --
Number of licenses consumed by a resource.
ManagedResourceSummaryList (list) --
List of summaries for managed resources.
(dict) --
Summary for a resource.
ResourceType (string) --
Type of resource associated with a license (instance, host, or AMI).
AssociationCount (integer) --
Number of resources associated with licenses.
NextToken (string) --
Token for the next set of results.
Returns the license configuration for a resource.
See also: AWS API Documentation
Request Syntax
response = client.list_license_specifications_for_resource(
ResourceArn='string',
MaxResults=123,
NextToken='string'
)
[REQUIRED]
ARN of an AMI or Amazon EC2 instance that has an associated license configuration.
dict
Response Syntax
{
'LicenseSpecifications': [
{
'LicenseConfigurationArn': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
LicenseSpecifications (list) --
License configurations associated with a resource.
(dict) --
Object used for associating a license configuration with a resource.
LicenseConfigurationArn (string) --
ARN of the LicenseConfiguration object.
NextToken (string) --
Token for the next set of results.
Returns a detailed list of resources.
See also: AWS API Documentation
Request Syntax
response = client.list_resource_inventory(
MaxResults=123,
NextToken='string',
Filters=[
{
'Name': 'string',
'Condition': 'EQUALS'|'NOT_EQUALS'|'BEGINS_WITH'|'CONTAINS',
'Value': 'string'
},
]
)
One or more filters.
An inventory filter object.
The name of the filter.
The condition of the filter.
Value of the filter.
dict
Response Syntax
{
'ResourceInventoryList': [
{
'ResourceId': 'string',
'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI',
'ResourceArn': 'string',
'Platform': 'string',
'PlatformVersion': 'string',
'ResourceOwningAccountId': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
ResourceInventoryList (list) --
The detailed list of resources.
(dict) --
A set of attributes that describe a resource.
ResourceId (string) --
Unique ID of the resource.
ResourceType (string) --
The type of resource.
ResourceArn (string) --
The ARN of the resource.
Platform (string) --
The platform of the resource.
PlatformVersion (string) --
Platform version of the resource in the inventory.
ResourceOwningAccountId (string) --
Unique ID of the account that owns the resource.
NextToken (string) --
Token for the next set of results.
Lists tags attached to a resource.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
ResourceArn='string'
)
[REQUIRED]
ARN for the resource.
{
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
Response Structure
List of tags attached to the resource.
Tag for a resource in a key-value format.
Key for the resource tag.
Value for the resource tag.
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.
See also: AWS API Documentation
Request Syntax
response = client.list_usage_for_license_configuration(
LicenseConfigurationArn='string',
MaxResults=123,
NextToken='string',
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
]
)
[REQUIRED]
ARN of the targeted LicenseConfiguration object.
List of filters to apply.
A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. The filters supported by a Describe operation are documented with the Describe operation.
Name of the filter. Filter names are case-sensitive.
One or more filter values. Filter values are case-sensitive.
dict
Response Syntax
{
'LicenseConfigurationUsageList': [
{
'ResourceArn': 'string',
'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI',
'ResourceStatus': 'string',
'ResourceOwnerId': 'string',
'AssociationTime': datetime(2015, 1, 1),
'ConsumedLicenses': 123
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
LicenseConfigurationUsageList (list) --
An array of LicenseConfigurationUsage objects.
(dict) --
Contains details of the usage of each resource from the license pool.
ResourceArn (string) --
ARN of the resource associated with a license configuration.
ResourceType (string) --
Type of resource associated with athe license configuration.
ResourceStatus (string) --
Status of a resource associated with the license configuration.
ResourceOwnerId (string) --
ID of the account that owns a resource that is associated with the license configuration.
AssociationTime (datetime) --
Time when the license configuration was initially associated with a resource.
ConsumedLicenses (integer) --
Number of licenses consumed out of the total provisioned in the license configuration.
NextToken (string) --
Token for the next set of results.
Attach one of more tags to any resource.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
ResourceArn='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
Resource of the ARN to be tagged.
[REQUIRED]
Names of the tags to attach to the resource.
Tag for a resource in a key-value format.
Key for the resource tag.
Value for the resource tag.
dict
Response Syntax
{}
Response Structure
Remove tags from a resource.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
ResourceArn='string',
TagKeys=[
'string',
]
)
[REQUIRED]
ARN of the resource.
[REQUIRED]
List keys identifying tags to remove.
dict
Response Syntax
{}
Response Structure
Modifies the attributes of an existing license configuration object. A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (Instances, cores, sockets, VCPUs), tenancy (shared or Dedicated Host), host affinity (how long a VM is associated with a host), the number of licenses purchased and used.
See also: AWS API Documentation
Request Syntax
response = client.update_license_configuration(
LicenseConfigurationArn='string',
LicenseConfigurationStatus='AVAILABLE'|'DISABLED',
LicenseRules=[
'string',
],
LicenseCount=123,
LicenseCountHardLimit=True|False,
Name='string',
Description='string'
)
[REQUIRED]
ARN for a license configuration.
List of flexible text strings designating license rules.
dict
Response Syntax
{}
Response Structure
Adds or removes license configurations for a specified AWS resource. This operation currently supports updating the license specifications of AMIs, instances, and hosts. Launch templates and AWS CloudFormation templates are not managed from this operation as those resources send the license configurations directly to a resource creation operation, such as RunInstances .
See also: AWS API Documentation
Request Syntax
response = client.update_license_specifications_for_resource(
ResourceArn='string',
AddLicenseSpecifications=[
{
'LicenseConfigurationArn': 'string'
},
],
RemoveLicenseSpecifications=[
{
'LicenseConfigurationArn': 'string'
},
]
)
[REQUIRED]
ARN for an AWS server resource.
License configuration ARNs to be added to a resource.
Object used for associating a license configuration with a resource.
ARN of the LicenseConfiguration object.
License configuration ARNs to be removed from a resource.
Object used for associating a license configuration with a resource.
ARN of the LicenseConfiguration object.
dict
Response Syntax
{}
Response Structure
Updates License Manager service settings.
See also: AWS API Documentation
Request Syntax
response = client.update_service_settings(
S3BucketArn='string',
SnsTopicArn='string',
OrganizationConfiguration={
'EnableIntegration': True|False
},
EnableCrossAccountsDiscovery=True|False
)
Integrates AWS Organizations with License Manager for cross-account discovery.
Flag to activate AWS Organization integration.
dict
Response Syntax
{}
Response Structure
The available paginators are:
paginator = client.get_paginator('list_associations_for_license_configuration')
Creates an iterator that will paginate through responses from LicenseManager.Client.list_associations_for_license_configuration().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
LicenseConfigurationArn='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
ARN of a LicenseConfiguration object.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'LicenseConfigurationAssociations': [
{
'ResourceArn': 'string',
'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI',
'ResourceOwnerId': 'string',
'AssociationTime': datetime(2015, 1, 1)
},
],
}
Response Structure
(dict) --
LicenseConfigurationAssociations (list) --
Lists association objects for the license configuration, each containing the association time, number of consumed licenses, resource ARN, resource ID, account ID that owns the resource, resource size, and resource type.
(dict) --
Describes a server resource that is associated with a license configuration.
ResourceArn (string) --
ARN of the resource associated with the license configuration.
ResourceType (string) --
Type of server resource.
ResourceOwnerId (string) --
ID of the AWS account that owns the resource consuming licenses.
AssociationTime (datetime) --
Time when the license configuration was associated with the resource.
paginator = client.get_paginator('list_license_configurations')
Creates an iterator that will paginate through responses from LicenseManager.Client.list_license_configurations().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
LicenseConfigurationArns=[
'string',
],
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
An array of ARNs for the calling account’s license configurations.
One or more filters.
A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. The filters supported by a Describe operation are documented with the Describe operation.
Name of the filter. Filter names are case-sensitive.
One or more filter values. Filter values are case-sensitive.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'LicenseConfigurations': [
{
'LicenseConfigurationId': 'string',
'LicenseConfigurationArn': 'string',
'Name': 'string',
'Description': 'string',
'LicenseCountingType': 'vCPU'|'Instance'|'Core'|'Socket',
'LicenseRules': [
'string',
],
'LicenseCount': 123,
'LicenseCountHardLimit': True|False,
'ConsumedLicenses': 123,
'Status': 'string',
'OwnerAccountId': 'string',
'ConsumedLicenseSummaryList': [
{
'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI',
'ConsumedLicenses': 123
},
],
'ManagedResourceSummaryList': [
{
'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI',
'AssociationCount': 123
},
]
},
],
}
Response Structure
(dict) --
LicenseConfigurations (list) --
Array of license configuration objects.
(dict) --
A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or VCPU), tenancy (shared tenancy, Amazon EC2 Dedicated Instance, Amazon EC2 Dedicated Host, or any of these), host affinity (how long a VM must be associated with a host), the number of licenses purchased and used.
LicenseConfigurationId (string) --
Unique ID of the LicenseConfiguration object.
LicenseConfigurationArn (string) --
ARN of the LicenseConfiguration object.
Name (string) --
Name of the license configuration.
Description (string) --
Description of the license configuration.
LicenseCountingType (string) --
Dimension to use to track license inventory.
LicenseRules (list) --
Array of configured License Manager rules.
LicenseCount (integer) --
Number of licenses managed by the license configuration.
LicenseCountHardLimit (boolean) --
Sets the number of available licenses as a hard limit.
ConsumedLicenses (integer) --
Number of licenses consumed.
Status (string) --
Status of the license configuration.
OwnerAccountId (string) --
Account ID of the license configuration's owner.
ConsumedLicenseSummaryList (list) --
List of summaries for licenses consumed by various resources.
(dict) --
Details about license consumption.
ResourceType (string) --
Resource type of the resource consuming a license (instance, host, or AMI).
ConsumedLicenses (integer) --
Number of licenses consumed by a resource.
ManagedResourceSummaryList (list) --
List of summaries for managed resources.
(dict) --
Summary for a resource.
ResourceType (string) --
Type of resource associated with a license (instance, host, or AMI).
AssociationCount (integer) --
Number of resources associated with licenses.
paginator = client.get_paginator('list_license_specifications_for_resource')
Creates an iterator that will paginate through responses from LicenseManager.Client.list_license_specifications_for_resource().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
ResourceArn='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
ARN of an AMI or Amazon EC2 instance that has an associated license configuration.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'LicenseSpecifications': [
{
'LicenseConfigurationArn': 'string'
},
],
}
Response Structure
(dict) --
LicenseSpecifications (list) --
License configurations associated with a resource.
(dict) --
Object used for associating a license configuration with a resource.
LicenseConfigurationArn (string) --
ARN of the LicenseConfiguration object.
paginator = client.get_paginator('list_resource_inventory')
Creates an iterator that will paginate through responses from LicenseManager.Client.list_resource_inventory().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
Filters=[
{
'Name': 'string',
'Condition': 'EQUALS'|'NOT_EQUALS'|'BEGINS_WITH'|'CONTAINS',
'Value': 'string'
},
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
One or more filters.
An inventory filter object.
The name of the filter.
The condition of the filter.
Value of the filter.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'ResourceInventoryList': [
{
'ResourceId': 'string',
'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI',
'ResourceArn': 'string',
'Platform': 'string',
'PlatformVersion': 'string',
'ResourceOwningAccountId': 'string'
},
],
}
Response Structure
(dict) --
ResourceInventoryList (list) --
The detailed list of resources.
(dict) --
A set of attributes that describe a resource.
ResourceId (string) --
Unique ID of the resource.
ResourceType (string) --
The type of resource.
ResourceArn (string) --
The ARN of the resource.
Platform (string) --
The platform of the resource.
PlatformVersion (string) --
Platform version of the resource in the inventory.
ResourceOwningAccountId (string) --
Unique ID of the account that owns the resource.
paginator = client.get_paginator('list_usage_for_license_configuration')
Creates an iterator that will paginate through responses from LicenseManager.Client.list_usage_for_license_configuration().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
LicenseConfigurationArn='string',
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
ARN of the targeted LicenseConfiguration object.
List of filters to apply.
A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. The filters supported by a Describe operation are documented with the Describe operation.
Name of the filter. Filter names are case-sensitive.
One or more filter values. Filter values are case-sensitive.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'LicenseConfigurationUsageList': [
{
'ResourceArn': 'string',
'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI',
'ResourceStatus': 'string',
'ResourceOwnerId': 'string',
'AssociationTime': datetime(2015, 1, 1),
'ConsumedLicenses': 123
},
],
}
Response Structure
(dict) --
LicenseConfigurationUsageList (list) --
An array of LicenseConfigurationUsage objects.
(dict) --
Contains details of the usage of each resource from the license pool.
ResourceArn (string) --
ARN of the resource associated with a license configuration.
ResourceType (string) --
Type of resource associated with athe license configuration.
ResourceStatus (string) --
Status of a resource associated with the license configuration.
ResourceOwnerId (string) --
ID of the account that owns a resource that is associated with the license configuration.
AssociationTime (datetime) --
Time when the license configuration was initially associated with a resource.
ConsumedLicenses (integer) --
Number of licenses consumed out of the total provisioned in the license configuration.