LicenseManager.Client.
list_associations_for_license_configuration
(**kwargs)¶Lists the resource associations for the specified license configuration.
Resource associations need not consume licenses from a license configuration. For example, an AMI or a stopped instance might not consume a license (depending on the license rules).
See also: AWS API Documentation
Request Syntax
response = client.list_associations_for_license_configuration(
LicenseConfigurationArn='string',
MaxResults=123,
NextToken='string'
)
[REQUIRED]
Amazon Resource Name (ARN) of a license configuration.
dict
Response Syntax
{
'LicenseConfigurationAssociations': [
{
'ResourceArn': 'string',
'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE',
'ResourceOwnerId': 'string',
'AssociationTime': datetime(2015, 1, 1),
'AmiAssociationScope': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
LicenseConfigurationAssociations (list) --
Information about the associations for the license configuration.
(dict) --
Describes an association with a license configuration.
ResourceArn (string) --
Amazon Resource Name (ARN) of the resource.
ResourceType (string) --
Type of server resource.
ResourceOwnerId (string) --
ID of the Amazon Web Services account that owns the resource consuming licenses.
AssociationTime (datetime) --
Time when the license configuration was associated with the resource.
AmiAssociationScope (string) --
Scope of AMI associations. The possible value is cross-account
.
NextToken (string) --
Token for the next set of results.
Exceptions
LicenseManager.Client.exceptions.InvalidParameterValueException
LicenseManager.Client.exceptions.FilterLimitExceededException
LicenseManager.Client.exceptions.ServerInternalException
LicenseManager.Client.exceptions.AuthorizationException
LicenseManager.Client.exceptions.AccessDeniedException
LicenseManager.Client.exceptions.RateLimitExceededException