LicenseManager

Table of Contents

Client

class LicenseManager.Client

A low-level client representing AWS License Manager:

client = session.create_client('license-manager')

These are the available methods:

can_paginate(operation_name)

Check if an operation can be paginated.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Returns
True if the operation can be paginated, False otherwise.
create_license_configuration(**kwargs)

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'
        },
    ]
)
Parameters
  • Name (string) --

    [REQUIRED]

    Name of the license configuration.

  • Description (string) -- Human-friendly description of the license configuration.
  • LicenseCountingType (string) --

    [REQUIRED]

    Dimension to use to track the license inventory.

  • LicenseCount (integer) -- Number of licenses managed by the license configuration.
  • LicenseCountHardLimit (boolean) -- Flag indicating whether hard or soft license enforcement is used. Exceeding a hard limit results in the blocked deployment of new instances.
  • LicenseRules (list) --

    Array of configured License Manager rules.

    • (string) --
  • Tags (list) --

    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 .

    • (dict) --

      Tag for a resource in a key-value format.

      • Key (string) --

        Key for the resource tag.

      • Value (string) --

        Value for the resource tag.

Return type

dict

Returns

Response Syntax

{
    'LicenseConfigurationArn': 'string'
}

Response Structure

  • (dict) --

    • LicenseConfigurationArn (string) --

      ARN of the license configuration object after its creation.

delete_license_configuration(**kwargs)

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

[REQUIRED]

Unique ID of the configuration object to delete.

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --
generate_presigned_url(ClientMethod, Params=None, ExpiresIn=3600, HttpMethod=None)

Generate a presigned url given a client, its method, and arguments

Parameters
  • ClientMethod (string) -- The client method to presign for
  • Params (dict) -- The parameters normally passed to ClientMethod.
  • ExpiresIn (int) -- The number of seconds the presigned url is valid for. By default it expires in an hour (3600 seconds)
  • HttpMethod (string) -- The http method to use on the generated url. By default, the http method is whatever is used in the method's model.
Returns

The presigned url

get_license_configuration(**kwargs)

Returns a detailed description of a license configuration.

See also: AWS API Documentation

Request Syntax

response = client.get_license_configuration(
    LicenseConfigurationArn='string'
)
Parameters
LicenseConfigurationArn (string) --

[REQUIRED]

ARN of the license configuration being requested.

Return type
dict
Returns
Response Syntax
{
    '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

  • (dict) --
    • LicenseConfigurationId (string) --

      Unique ID for the license configuration.

    • LicenseConfigurationArn (string) --

      ARN of the license configuration requested.

    • Name (string) --

      Name of the license configuration.

    • Description (string) --

      Description of the license configuration.

    • LicenseCountingType (string) --

      Dimension on which the licenses are counted (for example, instances, cores, sockets, or VCPUs).

    • LicenseRules (list) --

      List of flexible text strings designating license rules.

      • (string) --
    • LicenseCount (integer) --

      Number of available licenses.

    • LicenseCountHardLimit (boolean) --

      Sets the number of available licenses as a hard limit.

    • ConsumedLicenses (integer) --

      Number of licenses assigned to resources.

    • Status (string) --

      License configuration status (active, etc.).

    • OwnerAccountId (string) --

      Owner account ID for the license configuration.

    • ConsumedLicenseSummaryList (list) --

      List of summaries for consumed licenses used 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 of 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.

    • Tags (list) --

      List of tags attached to the license configuration.

      • (dict) --

        Tag for a resource in a key-value format.

        • Key (string) --

          Key for the resource tag.

        • Value (string) --

          Value for the resource tag.

get_paginator(operation_name)

Create a paginator for an operation.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Raises OperationNotPageableError
Raised if the operation is not pageable. You can use the client.can_paginate method to check if an operation is pageable.
Return type
L{botocore.paginate.Paginator}
Returns
A paginator object.
get_service_settings()

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()
Return type
dict
Returns
Response Syntax
{
    'S3BucketArn': 'string',
    'SnsTopicArn': 'string',
    'OrganizationConfiguration': {
        'EnableIntegration': True|False
    },
    'EnableCrossAccountsDiscovery': True|False
}

Response Structure

  • (dict) --
    • S3BucketArn (string) --

      Regional S3 bucket path for storing reports, license trail event data, discovery data, etc.

    • SnsTopicArn (string) --

      SNS topic configured to receive notifications from License Manager.

    • OrganizationConfiguration (dict) --

      Indicates whether AWS Organizations has been integrated with License Manager for cross-account discovery.

      • EnableIntegration (boolean) --

        Flag to activate AWS Organization integration.

    • EnableCrossAccountsDiscovery (boolean) --

      Indicates whether cross-account discovery has been enabled.

get_waiter(waiter_name)

Returns an object that can wait for some condition.

Parameters
waiter_name (str) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters.
Returns
The specified waiter object.
Return type
botocore.waiter.Waiter
list_associations_for_license_configuration(**kwargs)

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

    [REQUIRED]

    ARN of a LicenseConfiguration object.

  • MaxResults (integer) -- Maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.
  • 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',
            '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.

list_license_configurations(**kwargs)

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',
            ]
        },
    ]
)
Parameters
  • LicenseConfigurationArns (list) --

    An array of ARNs for the calling account’s license configurations.

    • (string) --
  • MaxResults (integer) -- Maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.
  • NextToken (string) -- Token for the next set of results.
  • Filters (list) --

    One or more filters.

    • (dict) --

      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 (string) --

        Name of the filter. Filter names are case-sensitive.

      • Values (list) --

        One or more filter values. Filter values are case-sensitive.

        • (string) --
Return type

dict

Returns

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.

          • (string) --
        • 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.

list_license_specifications_for_resource(**kwargs)

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'
)
Parameters
  • ResourceArn (string) --

    [REQUIRED]

    ARN of an AMI or Amazon EC2 instance that has an associated license configuration.

  • MaxResults (integer) -- Maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.
  • NextToken (string) -- Token for the next set of results.
Return type

dict

Returns

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.

list_resource_inventory(**kwargs)

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'
        },
    ]
)
Parameters
  • MaxResults (integer) -- Maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.
  • NextToken (string) -- Token for the next set of results.
  • Filters (list) --

    One or more filters.

    • (dict) --

      An inventory filter object.

      • Name (string) -- [REQUIRED]

        The name of the filter.

      • Condition (string) -- [REQUIRED]

        The condition of the filter.

      • Value (string) --

        Value of the filter.

Return type

dict

Returns

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.

list_tags_for_resource(**kwargs)

Lists tags attached to a resource.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    ResourceArn='string'
)
Parameters
ResourceArn (string) --

[REQUIRED]

ARN for the resource.

Return type
dict
Returns
Response Syntax
{
    'Tags': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) --
    • Tags (list) --

      List of tags attached to the resource.

      • (dict) --

        Tag for a resource in a key-value format.

        • Key (string) --

          Key for the resource tag.

        • Value (string) --

          Value for the resource tag.

list_usage_for_license_configuration(**kwargs)

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',
            ]
        },
    ]
)
Parameters
  • LicenseConfigurationArn (string) --

    [REQUIRED]

    ARN of the targeted LicenseConfiguration object.

  • MaxResults (integer) -- Maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.
  • NextToken (string) -- Token for the next set of results.
  • Filters (list) --

    List of filters to apply.

    • (dict) --

      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 (string) --

        Name of the filter. Filter names are case-sensitive.

      • Values (list) --

        One or more filter values. Filter values are case-sensitive.

        • (string) --
Return type

dict

Returns

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.

tag_resource(**kwargs)

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'
        },
    ]
)
Parameters
  • ResourceArn (string) --

    [REQUIRED]

    Resource of the ARN to be tagged.

  • Tags (list) --

    [REQUIRED]

    Names of the tags to attach to the resource.

    • (dict) --

      Tag for a resource in a key-value format.

      • Key (string) --

        Key for the resource tag.

      • Value (string) --

        Value for the resource tag.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

untag_resource(**kwargs)

Remove tags from a resource.

See also: AWS API Documentation

Request Syntax

response = client.untag_resource(
    ResourceArn='string',
    TagKeys=[
        'string',
    ]
)
Parameters
  • ResourceArn (string) --

    [REQUIRED]

    ARN of the resource.

  • TagKeys (list) --

    [REQUIRED]

    List keys identifying tags to remove.

    • (string) --
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

update_license_configuration(**kwargs)

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

    [REQUIRED]

    ARN for a license configuration.

  • LicenseConfigurationStatus (string) -- New status of the license configuration (ACTIVE or INACTIVE ).
  • LicenseRules (list) --

    List of flexible text strings designating license rules.

    • (string) --
  • LicenseCount (integer) -- New number of licenses managed by the license configuration.
  • LicenseCountHardLimit (boolean) -- Sets the number of available licenses as a hard limit.
  • Name (string) -- New name of the license configuration.
  • Description (string) -- New human-friendly description of the license configuration.
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

update_license_specifications_for_resource(**kwargs)

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'
        },
    ]
)
Parameters
  • ResourceArn (string) --

    [REQUIRED]

    ARN for an AWS server resource.

  • AddLicenseSpecifications (list) --

    License configuration ARNs to be added to a resource.

    • (dict) --

      Object used for associating a license configuration with a resource.

      • LicenseConfigurationArn (string) -- [REQUIRED]

        ARN of the LicenseConfiguration object.

  • RemoveLicenseSpecifications (list) --

    License configuration ARNs to be removed from a resource.

    • (dict) --

      Object used for associating a license configuration with a resource.

      • LicenseConfigurationArn (string) -- [REQUIRED]

        ARN of the LicenseConfiguration object.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

update_service_settings(**kwargs)

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
)
Parameters
  • S3BucketArn (string) -- ARN of the Amazon S3 bucket where License Manager information is stored.
  • SnsTopicArn (string) -- ARN of the Amazon SNS topic used for License Manager alerts.
  • OrganizationConfiguration (dict) --

    Integrates AWS Organizations with License Manager for cross-account discovery.

    • EnableIntegration (boolean) -- [REQUIRED]

      Flag to activate AWS Organization integration.

  • EnableCrossAccountsDiscovery (boolean) -- Activates cross-account discovery.
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Paginators

The available paginators are:

class LicenseManager.Paginator.ListAssociationsForLicenseConfiguration
paginator = client.get_paginator('list_associations_for_license_configuration')
paginate(**kwargs)

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

    [REQUIRED]

    ARN of a LicenseConfiguration object.

  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      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.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

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.

class LicenseManager.Paginator.ListLicenseConfigurations
paginator = client.get_paginator('list_license_configurations')
paginate(**kwargs)

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'
    }
)
Parameters
  • LicenseConfigurationArns (list) --

    An array of ARNs for the calling account’s license configurations.

    • (string) --
  • Filters (list) --

    One or more filters.

    • (dict) --

      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 (string) --

        Name of the filter. Filter names are case-sensitive.

      • Values (list) --

        One or more filter values. Filter values are case-sensitive.

        • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      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.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

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.

          • (string) --
        • 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.

class LicenseManager.Paginator.ListLicenseSpecificationsForResource
paginator = client.get_paginator('list_license_specifications_for_resource')
paginate(**kwargs)

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'
    }
)
Parameters
  • ResourceArn (string) --

    [REQUIRED]

    ARN of an AMI or Amazon EC2 instance that has an associated license configuration.

  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      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.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

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.

class LicenseManager.Paginator.ListResourceInventory
paginator = client.get_paginator('list_resource_inventory')
paginate(**kwargs)

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'
    }
)
Parameters
  • Filters (list) --

    One or more filters.

    • (dict) --

      An inventory filter object.

      • Name (string) -- [REQUIRED]

        The name of the filter.

      • Condition (string) -- [REQUIRED]

        The condition of the filter.

      • Value (string) --

        Value of the filter.

  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      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.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

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.

class LicenseManager.Paginator.ListUsageForLicenseConfiguration
paginator = client.get_paginator('list_usage_for_license_configuration')
paginate(**kwargs)

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

    [REQUIRED]

    ARN of the targeted LicenseConfiguration object.

  • Filters (list) --

    List of filters to apply.

    • (dict) --

      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 (string) --

        Name of the filter. Filter names are case-sensitive.

      • Values (list) --

        One or more filter values. Filter values are case-sensitive.

        • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      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.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

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.