LicenseManager / Client / list_associations_for_license_configuration

list_associations_for_license_configuration#

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'
)
Parameters:
  • LicenseConfigurationArn (string) –

    [REQUIRED]

    Amazon Resource Name (ARN) of a license configuration.

  • MaxResults (integer) – Maximum number of results to return in a single call.

  • NextToken (string) – Token for the next set of results.

Return type:

dict

Returns:

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