LicenseManager ************** Client ====== class LicenseManager.Client A low-level client representing AWS License Manager License Manager makes it easier to manage licenses from software vendors across multiple Amazon Web Services accounts and on- premises servers. import boto3 client = boto3.client('license-manager') These are the available methods: * accept_grant * can_paginate * check_in_license * checkout_borrow_license * checkout_license * close * create_grant * create_grant_version * create_license * create_license_configuration * create_license_conversion_task_for_resource * create_license_manager_report_generator * create_license_version * create_token * delete_grant * delete_license * delete_license_configuration * delete_license_manager_report_generator * delete_token * extend_license_consumption * get_access_token * get_grant * get_license * get_license_configuration * get_license_conversion_task * get_license_manager_report_generator * get_license_usage * get_paginator * get_service_settings * get_waiter * list_associations_for_license_configuration * list_distributed_grants * list_failures_for_license_configuration_operations * list_license_configurations * list_license_conversion_tasks * list_license_manager_report_generators * list_license_specifications_for_resource * list_license_versions * list_licenses * list_received_grants * list_received_grants_for_organization * list_received_licenses * list_received_licenses_for_organization * list_resource_inventory * list_tags_for_resource * list_tokens * list_usage_for_license_configuration * reject_grant * tag_resource * untag_resource * update_license_configuration * update_license_manager_report_generator * update_license_specifications_for_resource * update_service_settings Paginators ========== Paginators are available on a client instance via the "get_paginator" method. For more detailed instructions and examples on the usage of paginators, see the paginators user guide. The available paginators are: * ListAssociationsForLicenseConfiguration * ListLicenseConfigurations * ListLicenseSpecificationsForResource * ListResourceInventory * ListUsageForLicenseConfiguration LicenseManager / Paginator / ListAssociationsForLicenseConfiguration ListAssociationsForLicenseConfiguration *************************************** 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_configurati on()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( LicenseConfigurationArn='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **LicenseConfigurationArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of a 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** { 'LicenseConfigurationAssociations': [ { 'ResourceArn': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceOwnerId': 'string', 'AssociationTime': datetime(2015, 1, 1), 'AmiAssociationScope': '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". LicenseManager / Paginator / ListUsageForLicenseConfiguration ListUsageForLicenseConfiguration ******************************** 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]** Amazon Resource Name (ARN) of the license configuration. * **Filters** (*list*) -- Filters to scope the results. The following filters and logical operators are supported: * "resourceArn" - The ARN of the license configuration resource. * "resourceType" - The resource type ( "EC2_INSTANCE" | "EC2_HOST" | "EC2_AMI" | "SYSTEMS_MANAGER_MANAGED_INSTANCE"). * "resourceAccount" - The ID of the account that owns the resource. * *(dict) --* A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. * **Name** *(string) --* Name of the filter. Filter names are case-sensitive. * **Values** *(list) --* The value of the filter, which is case-sensitive. You can only specify one value for the filter. * *(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'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceStatus': 'string', 'ResourceOwnerId': 'string', 'AssociationTime': datetime(2015, 1, 1), 'ConsumedLicenses': 123 }, ], } **Response Structure** * *(dict) --* * **LicenseConfigurationUsageList** *(list) --* Information about the license configurations. * *(dict) --* Details about the usage of a resource associated with a license configuration. * **ResourceArn** *(string) --* Amazon Resource Name (ARN) of the resource. * **ResourceType** *(string) --* Type of resource. * **ResourceStatus** *(string) --* Status of the resource. * **ResourceOwnerId** *(string) --* ID of the account that owns the resource. * **AssociationTime** *(datetime) --* Time when the license configuration was initially associated with the resource. * **ConsumedLicenses** *(integer) --* Number of licenses consumed by the resource. LicenseManager / Paginator / ListLicenseSpecificationsForResource ListLicenseSpecificationsForResource ************************************ 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]** Amazon Resource Name (ARN) of a resource 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', 'AmiAssociationScope': 'string' }, ], } **Response Structure** * *(dict) --* * **LicenseSpecifications** *(list) --* License configurations associated with a resource. * *(dict) --* Details for associating a license configuration with a resource. * **LicenseConfigurationArn** *(string) --* Amazon Resource Name (ARN) of the license configuration. * **AmiAssociationScope** *(string) --* Scope of AMI associations. The possible value is "cross-account". LicenseManager / Paginator / ListLicenseConfigurations ListLicenseConfigurations ************************* 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*) -- Amazon Resource Names (ARN) of the license configurations. * *(string) --* * **Filters** (*list*) -- Filters to scope the results. The following filters and logical operators are supported: * "licenseCountingType" - The dimension for which licenses are counted. Possible values are "vCPU" | "Instance" | "Core" | "Socket". * "enforceLicenseCount" - A Boolean value that indicates whether hard license enforcement is used. * "usagelimitExceeded" - A Boolean value that indicates whether the available licenses have been exceeded. * *(dict) --* A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. * **Name** *(string) --* Name of the filter. Filter names are case-sensitive. * **Values** *(list) --* The value of the filter, which is case-sensitive. You can only specify one value for the filter. * *(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, 'DisassociateWhenNotFound': True|False, 'ConsumedLicenses': 123, 'Status': 'string', 'OwnerAccountId': 'string', 'ConsumedLicenseSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ConsumedLicenses': 123 }, ], 'ManagedResourceSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'AssociationCount': 123 }, ], 'ProductInformationList': [ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ], 'AutomatedDiscoveryInformation': { 'LastRunTime': datetime(2015, 1, 1) } }, ], } **Response Structure** * *(dict) --* * **LicenseConfigurations** *(list) --* Information about the license configurations. * *(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), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), host affinity (how long a VM must be associated with a host), and the number of licenses purchased and used. * **LicenseConfigurationId** *(string) --* Unique ID of the license configuration. * **LicenseConfigurationArn** *(string) --* Amazon Resource Name (ARN) of the license configuration. * **Name** *(string) --* Name of the license configuration. * **Description** *(string) --* Description of the license configuration. * **LicenseCountingType** *(string) --* Dimension to use to track the license inventory. * **LicenseRules** *(list) --* License rules. * *(string) --* * **LicenseCount** *(integer) --* Number of licenses managed by the license configuration. * **LicenseCountHardLimit** *(boolean) --* Number of available licenses as a hard limit. * **DisassociateWhenNotFound** *(boolean) --* When true, disassociates a resource when software is uninstalled. * **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) --* Summaries for licenses consumed by various resources. * *(dict) --* Details about license consumption. * **ResourceType** *(string) --* Resource type of the resource consuming a license. * **ConsumedLicenses** *(integer) --* Number of licenses consumed by the resource. * **ManagedResourceSummaryList** *(list) --* Summaries for managed resources. * *(dict) --* Summary information about a managed resource. * **ResourceType** *(string) --* Type of resource associated with a license. * **AssociationCount** *(integer) --* Number of resources associated with licenses. * **ProductInformationList** *(list) --* Product information. * *(dict) --* Describes product information for a license configuration. * **ResourceType** *(string) --* Resource type. The possible values are "SSM_MANAGED" | "RDS". * **ProductInformationFilterList** *(list) --* A Product information filter consists of a "ProductInformationFilterComparator" which is a logical operator, a "ProductInformationFilterName" which specifies the type of filter being declared, and a "ProductInformationFilterValue" that specifies the value to filter on. Accepted values for "ProductInformationFilterName" are listed here along with descriptions and valid options for "ProductInformationFilterComparator". The following filters and are supported when the resource type is "SSM_MANAGED": * "Application Name" - The name of the application. Logical operator is "EQUALS". * "Application Publisher" - The publisher of the application. Logical operator is "EQUALS". * "Application Version" - The version of the application. Logical operator is "EQUALS". * "Platform Name" - The name of the platform. Logical operator is "EQUALS". * "Platform Type" - The platform type. Logical operator is "EQUALS". * "Tag:key" - The key of a tag attached to an Amazon Web Services resource you wish to exclude from automated discovery. Logical operator is "NOT_EQUALS". The key for your tag must be appended to "Tag:" following the example: "Tag:name-of-your-key". "ProductInformationFilterValue" is optional if you are not using values for the key. * "AccountId" - The 12-digit ID of an Amazon Web Services account you wish to exclude from automated discovery. Logical operator is "NOT_EQUALS". * "License Included" - The type of license included. Logical operators are "EQUALS" and "NOT_EQUALS". Possible values are: "sql-server- enterprise" | "sql-server-standard" | "sql- server-web" | "windows-server-datacenter". The following filters and logical operators are supported when the resource type is "RDS": * "Engine Edition" - The edition of the database engine. Logical operator is "EQUALS". Possible values are: "oracle-ee" | "oracle-se" | "oracle-se1" | "oracle-se2" | "db2-se" | "db2-ae". * "License Pack" - The license pack. Logical operator is "EQUALS". Possible values are: "data guard" | "diagnostic pack sqlt" | "tuning pack sqlt" | "ols" | "olap". * *(dict) --* Describes product information filters. * **ProductInformationFilterName** *(string) --* Filter name. * **ProductInformationFilterValue** *(list) --* Filter value. * *(string) --* * **ProductInformationFilterComparator** *(string) --* Logical operator. * **AutomatedDiscoveryInformation** *(dict) --* Automated discovery information. * **LastRunTime** *(datetime) --* Time that automated discovery last ran. LicenseManager / Paginator / ListResourceInventory ListResourceInventory ********************* 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*) -- Filters to scope the results. The following filters and logical operators are supported: * "account_id" - The ID of the Amazon Web Services account that owns the resource. Logical operators are "EQUALS" | "NOT_EQUALS". * "application_name" - The name of the application. Logical operators are "EQUALS" | "BEGINS_WITH". * "license_included" - The type of license included. Logical operators are "EQUALS" | "NOT_EQUALS". Possible values are "sql-server-enterprise" | "sql-server- standard" | "sql-server-web" | "windows-server- datacenter". * "platform" - The platform of the resource. Logical operators are "EQUALS" | "BEGINS_WITH". * "resource_id" - The ID of the resource. Logical operators are "EQUALS" | "NOT_EQUALS". * "tag:" - The key/value combination of a tag assigned to the resource. Logical operators are "EQUALS" (single account) or "EQUALS" | "NOT_EQUALS" (cross account). * *(dict) --* An inventory filter. * **Name** *(string) --* **[REQUIRED]** Name of the filter. * **Condition** *(string) --* **[REQUIRED]** 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'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceArn': 'string', 'Platform': 'string', 'PlatformVersion': 'string', 'ResourceOwningAccountId': 'string' }, ], } **Response Structure** * *(dict) --* * **ResourceInventoryList** *(list) --* Information about the resources. * *(dict) --* Details about a resource. * **ResourceId** *(string) --* ID of the resource. * **ResourceType** *(string) --* Type of resource. * **ResourceArn** *(string) --* Amazon Resource Name (ARN) of the resource. * **Platform** *(string) --* Platform of the resource. * **PlatformVersion** *(string) --* Platform version of the resource in the inventory. * **ResourceOwningAccountId** *(string) --* ID of the account that owns the resource. LicenseManager / Client / create_license_manager_report_generator create_license_manager_report_generator *************************************** LicenseManager.Client.create_license_manager_report_generator(**kwargs) Creates a report generator. See also: AWS API Documentation **Request Syntax** response = client.create_license_manager_report_generator( ReportGeneratorName='string', Type=[ 'LicenseConfigurationSummaryReport'|'LicenseConfigurationUsageReport', ], ReportContext={ 'licenseConfigurationArns': [ 'string', ] }, ReportFrequency={ 'value': 123, 'period': 'DAY'|'WEEK'|'MONTH' }, ClientToken='string', Description='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **ReportGeneratorName** (*string*) -- **[REQUIRED]** Name of the report generator. * **Type** (*list*) -- **[REQUIRED]** Type of reports to generate. The following report types an be generated: * License configuration report - Reports the number and details of consumed licenses for a license configuration. * Resource report - Reports the tracked licenses and resource consumption for a license configuration. * *(string) --* * **ReportContext** (*dict*) -- **[REQUIRED]** Defines the type of license configuration the report generator tracks. * **licenseConfigurationArns** *(list) --* **[REQUIRED]** Amazon Resource Name (ARN) of the license configuration that this generator reports on. * *(string) --* * **ReportFrequency** (*dict*) -- **[REQUIRED]** Frequency by which reports are generated. Reports can be generated daily, monthly, or weekly. * **value** *(integer) --* Number of times within the frequency period that a report is generated. The only supported value is "1". * **period** *(string) --* Time period between each report. The period can be daily, weekly, or monthly. * **ClientToken** (*string*) -- **[REQUIRED]** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. * **Description** (*string*) -- Description of the report generator. * **Tags** (*list*) -- Tags to add to the report generator. * *(dict) --* Details about the tags for a resource. For more information about tagging support in License Manager, see the TagResource operation. * **Key** *(string) --* The tag key. * **Value** *(string) --* The tag value. Return type: dict Returns: **Response Syntax** { 'LicenseManagerReportGeneratorArn': 'string' } **Response Structure** * *(dict) --* * **LicenseManagerReportGeneratorArn** *(string) --* The Amazon Resource Name (ARN) of the new report generator. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.ResourceNotFoundException" LicenseManager / Client / get_paginator get_paginator ************* LicenseManager.Client.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: "botocore.paginate.Paginator" Returns: A paginator object. LicenseManager / Client / list_received_grants_for_organization list_received_grants_for_organization ************************************* LicenseManager.Client.list_received_grants_for_organization(**kwargs) Lists the grants received for all accounts in the organization. See also: AWS API Documentation **Request Syntax** response = client.list_received_grants_for_organization( LicenseArn='string', Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ], NextToken='string', MaxResults=123 ) Parameters: * **LicenseArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the received license. * **Filters** (*list*) -- Filters to scope the results. The following filters are supported: * "ParentArn" * "GranteePrincipalArn" * *(dict) --* A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. * **Name** *(string) --* Name of the filter. Filter names are case-sensitive. * **Values** *(list) --* The value of the filter, which is case-sensitive. You can only specify one value for the filter. * *(string) --* * **NextToken** (*string*) -- Token for the next set of results. * **MaxResults** (*integer*) -- Maximum number of results to return in a single call. Return type: dict Returns: **Response Syntax** { 'Grants': [ { 'GrantArn': 'string', 'GrantName': 'string', 'ParentArn': 'string', 'LicenseArn': 'string', 'GranteePrincipalArn': 'string', 'HomeRegion': 'string', 'GrantStatus': 'PENDING_WORKFLOW'|'PENDING_ACCEPT'|'REJECTED'|'ACTIVE'|'FAILED_WORKFLOW'|'DELETED'|'PENDING_DELETE'|'DISABLED'|'WORKFLOW_COMPLETED', 'StatusReason': 'string', 'Version': 'string', 'GrantedOperations': [ 'CreateGrant'|'CheckoutLicense'|'CheckoutBorrowLicense'|'CheckInLicense'|'ExtendConsumptionLicense'|'ListPurchasedLicenses'|'CreateToken', ], 'Options': { 'ActivationOverrideBehavior': 'DISTRIBUTED_GRANTS_ONLY'|'ALL_GRANTS_PERMITTED_BY_ISSUER' } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Grants** *(list) --* Lists the grants the organization has received. * *(dict) --* Describes a grant. * **GrantArn** *(string) --* Amazon Resource Name (ARN) of the grant. * **GrantName** *(string) --* Grant name. * **ParentArn** *(string) --* Parent ARN. * **LicenseArn** *(string) --* License ARN. * **GranteePrincipalArn** *(string) --* The grantee principal ARN. * **HomeRegion** *(string) --* Home Region of the grant. * **GrantStatus** *(string) --* Grant status. * **StatusReason** *(string) --* Grant status reason. * **Version** *(string) --* Grant version. * **GrantedOperations** *(list) --* Granted operations. * *(string) --* * **Options** *(dict) --* The options specified for the grant. * **ActivationOverrideBehavior** *(string) --* An activation option for your grant that determines the behavior of activating a grant. Activation options can only be used with granted licenses sourced from the Amazon Web Services Marketplace. Additionally, the operation must specify the value of "ACTIVE" for the "Status" parameter. * As a license administrator, you can optionally specify an "ActivationOverrideBehavior" when activating a grant. * As a grantor, you can optionally specify an "ActivationOverrideBehavior" when you activate a grant for a grantee account in your organization. * As a grantee, if the grantor creating the distributed grant doesn’t specify an "ActivationOverrideBehavior", you can optionally specify one when you are activating the grant. DISTRIBUTED_GRANTS_ONLY Use this value to activate a grant without replacing any member account’s active grants for the same product. ALL_GRANTS_PERMITTED_BY_ISSUER Use this value to activate a grant and disable other active grants in any member accounts for the same product. This action will also replace their previously activated grants with this activated grant. * **NextToken** *(string) --* Token for the next set of results. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / delete_license_manager_report_generator delete_license_manager_report_generator *************************************** LicenseManager.Client.delete_license_manager_report_generator(**kwargs) Deletes the specified report generator. This action deletes the report generator, which stops it from generating future reports. The action cannot be reversed. It has no effect on the previous reports from this generator. See also: AWS API Documentation **Request Syntax** response = client.delete_license_manager_report_generator( LicenseManagerReportGeneratorArn='string' ) Parameters: **LicenseManagerReportGeneratorArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the report generator to be deleted. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.ResourceNotFoundException" LicenseManager / Client / list_received_grants list_received_grants ******************** LicenseManager.Client.list_received_grants(**kwargs) Lists grants that are received. Received grants are grants created while specifying the recipient as this Amazon Web Services account, your organization, or an organizational unit (OU) to which this member account belongs. See also: AWS API Documentation **Request Syntax** response = client.list_received_grants( GrantArns=[ 'string', ], Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ], NextToken='string', MaxResults=123 ) Parameters: * **GrantArns** (*list*) -- Amazon Resource Names (ARNs) of the grants. * *(string) --* * **Filters** (*list*) -- Filters to scope the results. The following filters are supported: * "ProductSKU" * "LicenseIssuerName" * "LicenseArn" * "GrantStatus" * "GranterAccountId" * *(dict) --* A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. * **Name** *(string) --* Name of the filter. Filter names are case-sensitive. * **Values** *(list) --* The value of the filter, which is case-sensitive. You can only specify one value for the filter. * *(string) --* * **NextToken** (*string*) -- Token for the next set of results. * **MaxResults** (*integer*) -- Maximum number of results to return in a single call. Return type: dict Returns: **Response Syntax** { 'Grants': [ { 'GrantArn': 'string', 'GrantName': 'string', 'ParentArn': 'string', 'LicenseArn': 'string', 'GranteePrincipalArn': 'string', 'HomeRegion': 'string', 'GrantStatus': 'PENDING_WORKFLOW'|'PENDING_ACCEPT'|'REJECTED'|'ACTIVE'|'FAILED_WORKFLOW'|'DELETED'|'PENDING_DELETE'|'DISABLED'|'WORKFLOW_COMPLETED', 'StatusReason': 'string', 'Version': 'string', 'GrantedOperations': [ 'CreateGrant'|'CheckoutLicense'|'CheckoutBorrowLicense'|'CheckInLicense'|'ExtendConsumptionLicense'|'ListPurchasedLicenses'|'CreateToken', ], 'Options': { 'ActivationOverrideBehavior': 'DISTRIBUTED_GRANTS_ONLY'|'ALL_GRANTS_PERMITTED_BY_ISSUER' } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Grants** *(list) --* Received grant details. * *(dict) --* Describes a grant. * **GrantArn** *(string) --* Amazon Resource Name (ARN) of the grant. * **GrantName** *(string) --* Grant name. * **ParentArn** *(string) --* Parent ARN. * **LicenseArn** *(string) --* License ARN. * **GranteePrincipalArn** *(string) --* The grantee principal ARN. * **HomeRegion** *(string) --* Home Region of the grant. * **GrantStatus** *(string) --* Grant status. * **StatusReason** *(string) --* Grant status reason. * **Version** *(string) --* Grant version. * **GrantedOperations** *(list) --* Granted operations. * *(string) --* * **Options** *(dict) --* The options specified for the grant. * **ActivationOverrideBehavior** *(string) --* An activation option for your grant that determines the behavior of activating a grant. Activation options can only be used with granted licenses sourced from the Amazon Web Services Marketplace. Additionally, the operation must specify the value of "ACTIVE" for the "Status" parameter. * As a license administrator, you can optionally specify an "ActivationOverrideBehavior" when activating a grant. * As a grantor, you can optionally specify an "ActivationOverrideBehavior" when you activate a grant for a grantee account in your organization. * As a grantee, if the grantor creating the distributed grant doesn’t specify an "ActivationOverrideBehavior", you can optionally specify one when you are activating the grant. DISTRIBUTED_GRANTS_ONLY Use this value to activate a grant without replacing any member account’s active grants for the same product. ALL_GRANTS_PERMITTED_BY_ISSUER Use this value to activate a grant and disable other active grants in any member accounts for the same product. This action will also replace their previously activated grants with this activated grant. * **NextToken** *(string) --* Token for the next set of results. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / get_license_conversion_task get_license_conversion_task *************************** LicenseManager.Client.get_license_conversion_task(**kwargs) Gets information about the specified license type conversion task. See also: AWS API Documentation **Request Syntax** response = client.get_license_conversion_task( LicenseConversionTaskId='string' ) Parameters: **LicenseConversionTaskId** (*string*) -- **[REQUIRED]** ID of the license type conversion task to retrieve information on. Return type: dict Returns: **Response Syntax** { 'LicenseConversionTaskId': 'string', 'ResourceArn': 'string', 'SourceLicenseContext': { 'UsageOperation': 'string', 'ProductCodes': [ { 'ProductCodeId': 'string', 'ProductCodeType': 'marketplace' }, ] }, 'DestinationLicenseContext': { 'UsageOperation': 'string', 'ProductCodes': [ { 'ProductCodeId': 'string', 'ProductCodeType': 'marketplace' }, ] }, 'StatusMessage': 'string', 'Status': 'IN_PROGRESS'|'SUCCEEDED'|'FAILED', 'StartTime': datetime(2015, 1, 1), 'LicenseConversionTime': datetime(2015, 1, 1), 'EndTime': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **LicenseConversionTaskId** *(string) --* ID of the license type conversion task. * **ResourceArn** *(string) --* Amazon Resource Names (ARN) of the resources the license conversion task is associated with. * **SourceLicenseContext** *(dict) --* Information about the license type converted from. * **UsageOperation** *(string) --* The Usage operation value that corresponds to the license type you are converting your resource from. For more information about which platforms correspond to which usage operation values see Sample data: usage operation by platform * **ProductCodes** *(list) --* Product codes referred to in the license conversion process. * *(dict) --* A list item that contains a product code. * **ProductCodeId** *(string) --* The product code ID * **ProductCodeType** *(string) --* The product code type * **DestinationLicenseContext** *(dict) --* Information about the license type converted to. * **UsageOperation** *(string) --* The Usage operation value that corresponds to the license type you are converting your resource from. For more information about which platforms correspond to which usage operation values see Sample data: usage operation by platform * **ProductCodes** *(list) --* Product codes referred to in the license conversion process. * *(dict) --* A list item that contains a product code. * **ProductCodeId** *(string) --* The product code ID * **ProductCodeType** *(string) --* The product code type * **StatusMessage** *(string) --* The status message for the conversion task. * **Status** *(string) --* Status of the license type conversion task. * **StartTime** *(datetime) --* Time at which the license type conversion task was started . * **LicenseConversionTime** *(datetime) --* Amount of time to complete the license type conversion. * **EndTime** *(datetime) --* Time at which the license type conversion task was completed. **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / can_paginate can_paginate ************ LicenseManager.Client.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. LicenseManager / Client / list_received_licenses_for_organization list_received_licenses_for_organization *************************************** LicenseManager.Client.list_received_licenses_for_organization(**kwargs) Lists the licenses received for all accounts in the organization. See also: AWS API Documentation **Request Syntax** response = client.list_received_licenses_for_organization( Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ], NextToken='string', MaxResults=123 ) Parameters: * **Filters** (*list*) -- Filters to scope the results. The following filters are supported: * "Beneficiary" * "ProductSKU" * *(dict) --* A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. * **Name** *(string) --* Name of the filter. Filter names are case-sensitive. * **Values** *(list) --* The value of the filter, which is case-sensitive. You can only specify one value for the filter. * *(string) --* * **NextToken** (*string*) -- Token for the next set of results. * **MaxResults** (*integer*) -- Maximum number of results to return in a single call. Return type: dict Returns: **Response Syntax** { 'Licenses': [ { 'LicenseArn': 'string', 'LicenseName': 'string', 'ProductName': 'string', 'ProductSKU': 'string', 'Issuer': { 'Name': 'string', 'SignKey': 'string', 'KeyFingerprint': 'string' }, 'HomeRegion': 'string', 'Status': 'AVAILABLE'|'PENDING_AVAILABLE'|'DEACTIVATED'|'SUSPENDED'|'EXPIRED'|'PENDING_DELETE'|'DELETED', 'Validity': { 'Begin': 'string', 'End': 'string' }, 'Beneficiary': 'string', 'Entitlements': [ { 'Name': 'string', 'Value': 'string', 'MaxCount': 123, 'Overage': True|False, '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', 'AllowCheckIn': True|False }, ], 'ConsumptionConfiguration': { 'RenewType': 'None'|'Weekly'|'Monthly', 'ProvisionalConfiguration': { 'MaxTimeToLiveInMinutes': 123 }, 'BorrowConfiguration': { 'AllowEarlyCheckIn': True|False, 'MaxTimeToLiveInMinutes': 123 } }, 'LicenseMetadata': [ { 'Name': 'string', 'Value': 'string' }, ], 'CreateTime': 'string', 'Version': 'string', 'ReceivedMetadata': { 'ReceivedStatus': 'PENDING_WORKFLOW'|'PENDING_ACCEPT'|'REJECTED'|'ACTIVE'|'FAILED_WORKFLOW'|'DELETED'|'DISABLED'|'WORKFLOW_COMPLETED', 'ReceivedStatusReason': 'string', 'AllowedOperations': [ 'CreateGrant'|'CheckoutLicense'|'CheckoutBorrowLicense'|'CheckInLicense'|'ExtendConsumptionLicense'|'ListPurchasedLicenses'|'CreateToken', ] } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Licenses** *(list) --* Lists the licenses the organization has received. * *(dict) --* Describes a license that is granted to a grantee. * **LicenseArn** *(string) --* Amazon Resource Name (ARN) of the license. * **LicenseName** *(string) --* License name. * **ProductName** *(string) --* Product name. * **ProductSKU** *(string) --* Product SKU. * **Issuer** *(dict) --* Granted license issuer. * **Name** *(string) --* Issuer name. * **SignKey** *(string) --* Asymmetric KMS key from Key Management Service. The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm. * **KeyFingerprint** *(string) --* Issuer key fingerprint. * **HomeRegion** *(string) --* Home Region of the granted license. * **Status** *(string) --* Granted license status. * **Validity** *(dict) --* Date and time range during which the granted license is valid, in ISO8601-UTC format. * **Begin** *(string) --* Start of the time range. * **End** *(string) --* End of the time range. * **Beneficiary** *(string) --* Granted license beneficiary. * **Entitlements** *(list) --* License entitlements. * *(dict) --* Describes a resource entitled for use with a license. * **Name** *(string) --* Entitlement name. * **Value** *(string) --* Entitlement resource. Use only if the unit is None. * **MaxCount** *(integer) --* Maximum entitlement count. Use if the unit is not None. * **Overage** *(boolean) --* Indicates whether overages are allowed. * **Unit** *(string) --* Entitlement unit. * **AllowCheckIn** *(boolean) --* Indicates whether check-ins are allowed. * **ConsumptionConfiguration** *(dict) --* Configuration for consumption of the license. * **RenewType** *(string) --* Renewal frequency. * **ProvisionalConfiguration** *(dict) --* Details about a provisional configuration. * **MaxTimeToLiveInMinutes** *(integer) --* Maximum time for the provisional configuration, in minutes. * **BorrowConfiguration** *(dict) --* Details about a borrow configuration. * **AllowEarlyCheckIn** *(boolean) --* Indicates whether early check-ins are allowed. * **MaxTimeToLiveInMinutes** *(integer) --* Maximum time for the borrow configuration, in minutes. * **LicenseMetadata** *(list) --* Granted license metadata. * *(dict) --* Describes key/value pairs. * **Name** *(string) --* The key name. * **Value** *(string) --* The value. * **CreateTime** *(string) --* Creation time of the granted license. * **Version** *(string) --* Version of the granted license. * **ReceivedMetadata** *(dict) --* Granted license received metadata. * **ReceivedStatus** *(string) --* Received status. * **ReceivedStatusReason** *(string) --* Received status reason. * **AllowedOperations** *(list) --* Allowed operations. * *(string) --* * **NextToken** *(string) --* Token for the next set of results. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / get_license_configuration get_license_configuration ************************* LicenseManager.Client.get_license_configuration(**kwargs) Gets detailed information about the specified license configuration. See also: AWS API Documentation **Request Syntax** response = client.get_license_configuration( LicenseConfigurationArn='string' ) Parameters: **LicenseConfigurationArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the license configuration. 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'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ConsumedLicenses': 123 }, ], 'ManagedResourceSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'AssociationCount': 123 }, ], 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'ProductInformationList': [ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ], 'AutomatedDiscoveryInformation': { 'LastRunTime': datetime(2015, 1, 1) }, 'DisassociateWhenNotFound': True|False } **Response Structure** * *(dict) --* * **LicenseConfigurationId** *(string) --* Unique ID for the license configuration. * **LicenseConfigurationArn** *(string) --* Amazon Resource Name (ARN) of the license configuration. * **Name** *(string) --* Name of the license configuration. * **Description** *(string) --* Description of the license configuration. * **LicenseCountingType** *(string) --* Dimension for which the licenses are counted. * **LicenseRules** *(list) --* 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. * **OwnerAccountId** *(string) --* Account ID of the owner of the license configuration. * **ConsumedLicenseSummaryList** *(list) --* Summaries of the licenses consumed by resources. * *(dict) --* Details about license consumption. * **ResourceType** *(string) --* Resource type of the resource consuming a license. * **ConsumedLicenses** *(integer) --* Number of licenses consumed by the resource. * **ManagedResourceSummaryList** *(list) --* Summaries of the managed resources. * *(dict) --* Summary information about a managed resource. * **ResourceType** *(string) --* Type of resource associated with a license. * **AssociationCount** *(integer) --* Number of resources associated with licenses. * **Tags** *(list) --* Tags for the license configuration. * *(dict) --* Details about the tags for a resource. For more information about tagging support in License Manager, see the TagResource operation. * **Key** *(string) --* The tag key. * **Value** *(string) --* The tag value. * **ProductInformationList** *(list) --* Product information. * *(dict) --* Describes product information for a license configuration. * **ResourceType** *(string) --* Resource type. The possible values are "SSM_MANAGED" | "RDS". * **ProductInformationFilterList** *(list) --* A Product information filter consists of a "ProductInformationFilterComparator" which is a logical operator, a "ProductInformationFilterName" which specifies the type of filter being declared, and a "ProductInformationFilterValue" that specifies the value to filter on. Accepted values for "ProductInformationFilterName" are listed here along with descriptions and valid options for "ProductInformationFilterComparator". The following filters and are supported when the resource type is "SSM_MANAGED": * "Application Name" - The name of the application. Logical operator is "EQUALS". * "Application Publisher" - The publisher of the application. Logical operator is "EQUALS". * "Application Version" - The version of the application. Logical operator is "EQUALS". * "Platform Name" - The name of the platform. Logical operator is "EQUALS". * "Platform Type" - The platform type. Logical operator is "EQUALS". * "Tag:key" - The key of a tag attached to an Amazon Web Services resource you wish to exclude from automated discovery. Logical operator is "NOT_EQUALS". The key for your tag must be appended to "Tag:" following the example: "Tag:name-of-your-key". "ProductInformationFilterValue" is optional if you are not using values for the key. * "AccountId" - The 12-digit ID of an Amazon Web Services account you wish to exclude from automated discovery. Logical operator is "NOT_EQUALS". * "License Included" - The type of license included. Logical operators are "EQUALS" and "NOT_EQUALS". Possible values are: "sql-server-enterprise" | "sql- server-standard" | "sql-server-web" | "windows-server- datacenter". The following filters and logical operators are supported when the resource type is "RDS": * "Engine Edition" - The edition of the database engine. Logical operator is "EQUALS". Possible values are: "oracle-ee" | "oracle-se" | "oracle-se1" | "oracle- se2" | "db2-se" | "db2-ae". * "License Pack" - The license pack. Logical operator is "EQUALS". Possible values are: "data guard" | "diagnostic pack sqlt" | "tuning pack sqlt" | "ols" | "olap". * *(dict) --* Describes product information filters. * **ProductInformationFilterName** *(string) --* Filter name. * **ProductInformationFilterValue** *(list) --* Filter value. * *(string) --* * **ProductInformationFilterComparator** *(string) --* Logical operator. * **AutomatedDiscoveryInformation** *(dict) --* Automated discovery information. * **LastRunTime** *(datetime) --* Time that automated discovery last ran. * **DisassociateWhenNotFound** *(boolean) --* When true, disassociates a resource when software is uninstalled. **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / get_license_manager_report_generator get_license_manager_report_generator ************************************ LicenseManager.Client.get_license_manager_report_generator(**kwargs) Gets information about the specified report generator. See also: AWS API Documentation **Request Syntax** response = client.get_license_manager_report_generator( LicenseManagerReportGeneratorArn='string' ) Parameters: **LicenseManagerReportGeneratorArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the report generator. Return type: dict Returns: **Response Syntax** { 'ReportGenerator': { 'ReportGeneratorName': 'string', 'ReportType': [ 'LicenseConfigurationSummaryReport'|'LicenseConfigurationUsageReport', ], 'ReportContext': { 'licenseConfigurationArns': [ 'string', ] }, 'ReportFrequency': { 'value': 123, 'period': 'DAY'|'WEEK'|'MONTH' }, 'LicenseManagerReportGeneratorArn': 'string', 'LastRunStatus': 'string', 'LastRunFailureReason': 'string', 'LastReportGenerationTime': 'string', 'ReportCreatorAccount': 'string', 'Description': 'string', 'S3Location': { 'bucket': 'string', 'keyPrefix': 'string' }, 'CreateTime': 'string', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } } **Response Structure** * *(dict) --* * **ReportGenerator** *(dict) --* A report generator that creates periodic reports about your license configurations. * **ReportGeneratorName** *(string) --* Name of the report generator. * **ReportType** *(list) --* Type of reports that are generated. * *(string) --* * **ReportContext** *(dict) --* License configuration type for this generator. * **licenseConfigurationArns** *(list) --* Amazon Resource Name (ARN) of the license configuration that this generator reports on. * *(string) --* * **ReportFrequency** *(dict) --* Details about how frequently reports are generated. * **value** *(integer) --* Number of times within the frequency period that a report is generated. The only supported value is "1". * **period** *(string) --* Time period between each report. The period can be daily, weekly, or monthly. * **LicenseManagerReportGeneratorArn** *(string) --* Amazon Resource Name (ARN) of the report generator. * **LastRunStatus** *(string) --* Status of the last report generation attempt. * **LastRunFailureReason** *(string) --* Failure message for the last report generation attempt. * **LastReportGenerationTime** *(string) --* Time the last report was generated at. * **ReportCreatorAccount** *(string) --* The Amazon Web Services account ID used to create the report generator. * **Description** *(string) --* Description of the report generator. * **S3Location** *(dict) --* Details of the S3 bucket that report generator reports are published to. * **bucket** *(string) --* Name of the S3 bucket reports are published to. * **keyPrefix** *(string) --* Prefix of the S3 bucket reports are published to. * **CreateTime** *(string) --* Time the report was created. * **Tags** *(list) --* Tags associated with the report generator. * *(dict) --* Details about the tags for a resource. For more information about tagging support in License Manager, see the TagResource operation. * **Key** *(string) --* The tag key. * **Value** *(string) --* The tag value. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.ResourceNotFoundException" LicenseManager / Client / get_access_token get_access_token **************** LicenseManager.Client.get_access_token(**kwargs) Gets a temporary access token to use with AssumeRoleWithWebIdentity. Access tokens are valid for one hour. See also: AWS API Documentation **Request Syntax** response = client.get_access_token( Token='string', TokenProperties=[ 'string', ] ) Parameters: * **Token** (*string*) -- **[REQUIRED]** Refresh token, encoded as a JWT token. * **TokenProperties** (*list*) -- Token properties to validate against those present in the JWT token. * *(string) --* Return type: dict Returns: **Response Syntax** { 'AccessToken': 'string' } **Response Structure** * *(dict) --* * **AccessToken** *(string) --* Temporary access token. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" LicenseManager / Client / update_license_manager_report_generator update_license_manager_report_generator *************************************** LicenseManager.Client.update_license_manager_report_generator(**kwargs) Updates a report generator. After you make changes to a report generator, it starts generating new reports within 60 minutes of being updated. See also: AWS API Documentation **Request Syntax** response = client.update_license_manager_report_generator( LicenseManagerReportGeneratorArn='string', ReportGeneratorName='string', Type=[ 'LicenseConfigurationSummaryReport'|'LicenseConfigurationUsageReport', ], ReportContext={ 'licenseConfigurationArns': [ 'string', ] }, ReportFrequency={ 'value': 123, 'period': 'DAY'|'WEEK'|'MONTH' }, ClientToken='string', Description='string' ) Parameters: * **LicenseManagerReportGeneratorArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the report generator to update. * **ReportGeneratorName** (*string*) -- **[REQUIRED]** Name of the report generator. * **Type** (*list*) -- **[REQUIRED]** Type of reports to generate. The following report types are supported: * License configuration report - Reports the number and details of consumed licenses for a license configuration. * Resource report - Reports the tracked licenses and resource consumption for a license configuration. * *(string) --* * **ReportContext** (*dict*) -- **[REQUIRED]** The report context. * **licenseConfigurationArns** *(list) --* **[REQUIRED]** Amazon Resource Name (ARN) of the license configuration that this generator reports on. * *(string) --* * **ReportFrequency** (*dict*) -- **[REQUIRED]** Frequency by which reports are generated. * **value** *(integer) --* Number of times within the frequency period that a report is generated. The only supported value is "1". * **period** *(string) --* Time period between each report. The period can be daily, weekly, or monthly. * **ClientToken** (*string*) -- **[REQUIRED]** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. * **Description** (*string*) -- Description of the report generator. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.ResourceNotFoundException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" LicenseManager / Client / checkout_borrow_license checkout_borrow_license *********************** LicenseManager.Client.checkout_borrow_license(**kwargs) Checks out the specified license for offline use. See also: AWS API Documentation **Request Syntax** response = client.checkout_borrow_license( LicenseArn='string', Entitlements=[ { 'Name': 'string', 'Value': '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' }, ], DigitalSignatureMethod='JWT_PS384', NodeId='string', CheckoutMetadata=[ { 'Name': 'string', 'Value': 'string' }, ], ClientToken='string' ) Parameters: * **LicenseArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the license. The license must use the borrow consumption configuration. * **Entitlements** (*list*) -- **[REQUIRED]** License entitlements. Partial checkouts are not supported. * *(dict) --* Data associated with an entitlement resource. * **Name** *(string) --* **[REQUIRED]** Entitlement data name. * **Value** *(string) --* Entitlement data value. * **Unit** *(string) --* **[REQUIRED]** Entitlement data unit. * **DigitalSignatureMethod** (*string*) -- **[REQUIRED]** Digital signature method. The possible value is JSON Web Signature (JWS) algorithm PS384. For more information, see RFC 7518 Digital Signature with RSASSA-PSS. * **NodeId** (*string*) -- Node ID. * **CheckoutMetadata** (*list*) -- Information about constraints. * *(dict) --* Describes key/value pairs. * **Name** *(string) --* The key name. * **Value** *(string) --* The value. * **ClientToken** (*string*) -- **[REQUIRED]** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Return type: dict Returns: **Response Syntax** { 'LicenseArn': 'string', 'LicenseConsumptionToken': 'string', 'EntitlementsAllowed': [ { 'Name': 'string', 'Value': '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' }, ], 'NodeId': 'string', 'SignedToken': 'string', 'IssuedAt': 'string', 'Expiration': 'string', 'CheckoutMetadata': [ { 'Name': 'string', 'Value': 'string' }, ] } **Response Structure** * *(dict) --* * **LicenseArn** *(string) --* Amazon Resource Name (ARN) of the license. * **LicenseConsumptionToken** *(string) --* License consumption token. * **EntitlementsAllowed** *(list) --* Allowed license entitlements. * *(dict) --* Data associated with an entitlement resource. * **Name** *(string) --* Entitlement data name. * **Value** *(string) --* Entitlement data value. * **Unit** *(string) --* Entitlement data unit. * **NodeId** *(string) --* Node ID. * **SignedToken** *(string) --* Signed token. * **IssuedAt** *(string) --* Date and time at which the license checkout is issued. * **Expiration** *(string) --* Date and time at which the license checkout expires. * **CheckoutMetadata** *(list) --* Information about constraints. * *(dict) --* Describes key/value pairs. * **Name** *(string) --* The key name. * **Value** *(string) --* The value. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ResourceNotFoundException" * "LicenseManager.Client.exceptions.NoEntitlementsAllowedException" * "LicenseManager.Client.exceptions.EntitlementNotAllowedException" * "LicenseManager.Client.exceptions.UnsupportedDigitalSignatureMet hodException" * "LicenseManager.Client.exceptions.RedirectException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" LicenseManager / Client / delete_grant delete_grant ************ LicenseManager.Client.delete_grant(**kwargs) Deletes the specified grant. See also: AWS API Documentation **Request Syntax** response = client.delete_grant( GrantArn='string', StatusReason='string', Version='string' ) Parameters: * **GrantArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the grant. * **StatusReason** (*string*) -- The Status reason for the delete request. * **Version** (*string*) -- **[REQUIRED]** Current version of the grant. Return type: dict Returns: **Response Syntax** { 'GrantArn': 'string', 'Status': 'PENDING_WORKFLOW'|'PENDING_ACCEPT'|'REJECTED'|'ACTIVE'|'FAILED_WORKFLOW'|'DELETED'|'PENDING_DELETE'|'DISABLED'|'WORKFLOW_COMPLETED', 'Version': 'string' } **Response Structure** * *(dict) --* * **GrantArn** *(string) --* Grant ARN. * **Status** *(string) --* Grant status. * **Version** *(string) --* Grant version. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" LicenseManager / Client / list_tokens list_tokens *********** LicenseManager.Client.list_tokens(**kwargs) Lists your tokens. See also: AWS API Documentation **Request Syntax** response = client.list_tokens( TokenIds=[ 'string', ], Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ], NextToken='string', MaxResults=123 ) Parameters: * **TokenIds** (*list*) -- Token IDs. * *(string) --* * **Filters** (*list*) -- Filters to scope the results. The following filter is supported: * "LicenseArns" * *(dict) --* A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. * **Name** *(string) --* Name of the filter. Filter names are case-sensitive. * **Values** *(list) --* The value of the filter, which is case-sensitive. You can only specify one value for the filter. * *(string) --* * **NextToken** (*string*) -- Token for the next set of results. * **MaxResults** (*integer*) -- Maximum number of results to return in a single call. Return type: dict Returns: **Response Syntax** { 'Tokens': [ { 'TokenId': 'string', 'TokenType': 'string', 'LicenseArn': 'string', 'ExpirationTime': 'string', 'TokenProperties': [ 'string', ], 'RoleArns': [ 'string', ], 'Status': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Tokens** *(list) --* Received token details. * *(dict) --* Describes a token. * **TokenId** *(string) --* Token ID. * **TokenType** *(string) --* Type of token generated. The supported value is "REFRESH_TOKEN". * **LicenseArn** *(string) --* Amazon Resource Name (ARN) of the license. * **ExpirationTime** *(string) --* Token expiration time, in ISO8601-UTC format. * **TokenProperties** *(list) --* Data specified by the caller. * *(string) --* * **RoleArns** *(list) --* Amazon Resource Names (ARN) of the roles included in the token. * *(string) --* * **Status** *(string) --* Token status. The possible values are "AVAILABLE" and "DELETED". * **NextToken** *(string) --* Token for the next set of results. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" LicenseManager / Client / delete_token delete_token ************ LicenseManager.Client.delete_token(**kwargs) Deletes the specified token. Must be called in the license home Region. See also: AWS API Documentation **Request Syntax** response = client.delete_token( TokenId='string' ) Parameters: **TokenId** (*string*) -- **[REQUIRED]** Token ID. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.ResourceNotFoundException" * "LicenseManager.Client.exceptions.RedirectException" LicenseManager / Client / get_license get_license *********** LicenseManager.Client.get_license(**kwargs) Gets detailed information about the specified license. See also: AWS API Documentation **Request Syntax** response = client.get_license( LicenseArn='string', Version='string' ) Parameters: * **LicenseArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the license. * **Version** (*string*) -- License version. Return type: dict Returns: **Response Syntax** { 'License': { 'LicenseArn': 'string', 'LicenseName': 'string', 'ProductName': 'string', 'ProductSKU': 'string', 'Issuer': { 'Name': 'string', 'SignKey': 'string', 'KeyFingerprint': 'string' }, 'HomeRegion': 'string', 'Status': 'AVAILABLE'|'PENDING_AVAILABLE'|'DEACTIVATED'|'SUSPENDED'|'EXPIRED'|'PENDING_DELETE'|'DELETED', 'Validity': { 'Begin': 'string', 'End': 'string' }, 'Beneficiary': 'string', 'Entitlements': [ { 'Name': 'string', 'Value': 'string', 'MaxCount': 123, 'Overage': True|False, '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', 'AllowCheckIn': True|False }, ], 'ConsumptionConfiguration': { 'RenewType': 'None'|'Weekly'|'Monthly', 'ProvisionalConfiguration': { 'MaxTimeToLiveInMinutes': 123 }, 'BorrowConfiguration': { 'AllowEarlyCheckIn': True|False, 'MaxTimeToLiveInMinutes': 123 } }, 'LicenseMetadata': [ { 'Name': 'string', 'Value': 'string' }, ], 'CreateTime': 'string', 'Version': 'string' } } **Response Structure** * *(dict) --* * **License** *(dict) --* License details. * **LicenseArn** *(string) --* Amazon Resource Name (ARN) of the license. * **LicenseName** *(string) --* License name. * **ProductName** *(string) --* Product name. * **ProductSKU** *(string) --* Product SKU. * **Issuer** *(dict) --* License issuer. * **Name** *(string) --* Issuer name. * **SignKey** *(string) --* Asymmetric KMS key from Key Management Service. The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm. * **KeyFingerprint** *(string) --* Issuer key fingerprint. * **HomeRegion** *(string) --* Home Region of the license. * **Status** *(string) --* License status. * **Validity** *(dict) --* Date and time range during which the license is valid, in ISO8601-UTC format. * **Begin** *(string) --* Start of the time range. * **End** *(string) --* End of the time range. * **Beneficiary** *(string) --* License beneficiary. * **Entitlements** *(list) --* License entitlements. * *(dict) --* Describes a resource entitled for use with a license. * **Name** *(string) --* Entitlement name. * **Value** *(string) --* Entitlement resource. Use only if the unit is None. * **MaxCount** *(integer) --* Maximum entitlement count. Use if the unit is not None. * **Overage** *(boolean) --* Indicates whether overages are allowed. * **Unit** *(string) --* Entitlement unit. * **AllowCheckIn** *(boolean) --* Indicates whether check-ins are allowed. * **ConsumptionConfiguration** *(dict) --* Configuration for consumption of the license. * **RenewType** *(string) --* Renewal frequency. * **ProvisionalConfiguration** *(dict) --* Details about a provisional configuration. * **MaxTimeToLiveInMinutes** *(integer) --* Maximum time for the provisional configuration, in minutes. * **BorrowConfiguration** *(dict) --* Details about a borrow configuration. * **AllowEarlyCheckIn** *(boolean) --* Indicates whether early check-ins are allowed. * **MaxTimeToLiveInMinutes** *(integer) --* Maximum time for the borrow configuration, in minutes. * **LicenseMetadata** *(list) --* License metadata. * *(dict) --* Describes key/value pairs. * **Name** *(string) --* The key name. * **Value** *(string) --* The value. * **CreateTime** *(string) --* License creation time. * **Version** *(string) --* License version. **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" LicenseManager / Client / accept_grant accept_grant ************ LicenseManager.Client.accept_grant(**kwargs) Accepts the specified grant. See also: AWS API Documentation **Request Syntax** response = client.accept_grant( GrantArn='string' ) Parameters: **GrantArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the grant. Return type: dict Returns: **Response Syntax** { 'GrantArn': 'string', 'Status': 'PENDING_WORKFLOW'|'PENDING_ACCEPT'|'REJECTED'|'ACTIVE'|'FAILED_WORKFLOW'|'DELETED'|'PENDING_DELETE'|'DISABLED'|'WORKFLOW_COMPLETED', 'Version': 'string' } **Response Structure** * *(dict) --* * **GrantArn** *(string) --* Grant ARN. * **Status** *(string) --* Grant status. * **Version** *(string) --* Grant version. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" LicenseManager / Client / list_tags_for_resource list_tags_for_resource ********************** LicenseManager.Client.list_tags_for_resource(**kwargs) Lists the tags for the specified resource. For more information about tagging support in License Manager, see the TagResource operation. See also: AWS API Documentation **Request Syntax** response = client.list_tags_for_resource( ResourceArn='string' ) Parameters: **ResourceArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the resource. Return type: dict Returns: **Response Syntax** { 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } **Response Structure** * *(dict) --* * **Tags** *(list) --* Information about the tags. * *(dict) --* Details about the tags for a resource. For more information about tagging support in License Manager, see the TagResource operation. * **Key** *(string) --* The tag key. * **Value** *(string) --* The tag value. **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / list_license_configurations list_license_configurations *************************** LicenseManager.Client.list_license_configurations(**kwargs) Lists the license configurations for your account. 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*) -- Amazon Resource Names (ARN) of the license configurations. * *(string) --* * **MaxResults** (*integer*) -- Maximum number of results to return in a single call. * **NextToken** (*string*) -- Token for the next set of results. * **Filters** (*list*) -- Filters to scope the results. The following filters and logical operators are supported: * "licenseCountingType" - The dimension for which licenses are counted. Possible values are "vCPU" | "Instance" | "Core" | "Socket". * "enforceLicenseCount" - A Boolean value that indicates whether hard license enforcement is used. * "usagelimitExceeded" - A Boolean value that indicates whether the available licenses have been exceeded. * *(dict) --* A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. * **Name** *(string) --* Name of the filter. Filter names are case-sensitive. * **Values** *(list) --* The value of the filter, which is case-sensitive. You can only specify one value for the filter. * *(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, 'DisassociateWhenNotFound': True|False, 'ConsumedLicenses': 123, 'Status': 'string', 'OwnerAccountId': 'string', 'ConsumedLicenseSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ConsumedLicenses': 123 }, ], 'ManagedResourceSummaryList': [ { 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'AssociationCount': 123 }, ], 'ProductInformationList': [ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ], 'AutomatedDiscoveryInformation': { 'LastRunTime': datetime(2015, 1, 1) } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **LicenseConfigurations** *(list) --* Information about the license configurations. * *(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), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), host affinity (how long a VM must be associated with a host), and the number of licenses purchased and used. * **LicenseConfigurationId** *(string) --* Unique ID of the license configuration. * **LicenseConfigurationArn** *(string) --* Amazon Resource Name (ARN) of the license configuration. * **Name** *(string) --* Name of the license configuration. * **Description** *(string) --* Description of the license configuration. * **LicenseCountingType** *(string) --* Dimension to use to track the license inventory. * **LicenseRules** *(list) --* License rules. * *(string) --* * **LicenseCount** *(integer) --* Number of licenses managed by the license configuration. * **LicenseCountHardLimit** *(boolean) --* Number of available licenses as a hard limit. * **DisassociateWhenNotFound** *(boolean) --* When true, disassociates a resource when software is uninstalled. * **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) --* Summaries for licenses consumed by various resources. * *(dict) --* Details about license consumption. * **ResourceType** *(string) --* Resource type of the resource consuming a license. * **ConsumedLicenses** *(integer) --* Number of licenses consumed by the resource. * **ManagedResourceSummaryList** *(list) --* Summaries for managed resources. * *(dict) --* Summary information about a managed resource. * **ResourceType** *(string) --* Type of resource associated with a license. * **AssociationCount** *(integer) --* Number of resources associated with licenses. * **ProductInformationList** *(list) --* Product information. * *(dict) --* Describes product information for a license configuration. * **ResourceType** *(string) --* Resource type. The possible values are "SSM_MANAGED" | "RDS". * **ProductInformationFilterList** *(list) --* A Product information filter consists of a "ProductInformationFilterComparator" which is a logical operator, a "ProductInformationFilterName" which specifies the type of filter being declared, and a "ProductInformationFilterValue" that specifies the value to filter on. Accepted values for "ProductInformationFilterName" are listed here along with descriptions and valid options for "ProductInformationFilterComparator". The following filters and are supported when the resource type is "SSM_MANAGED": * "Application Name" - The name of the application. Logical operator is "EQUALS". * "Application Publisher" - The publisher of the application. Logical operator is "EQUALS". * "Application Version" - The version of the application. Logical operator is "EQUALS". * "Platform Name" - The name of the platform. Logical operator is "EQUALS". * "Platform Type" - The platform type. Logical operator is "EQUALS". * "Tag:key" - The key of a tag attached to an Amazon Web Services resource you wish to exclude from automated discovery. Logical operator is "NOT_EQUALS". The key for your tag must be appended to "Tag:" following the example: "Tag :name-of-your-key". "ProductInformationFilterValue" is optional if you are not using values for the key. * "AccountId" - The 12-digit ID of an Amazon Web Services account you wish to exclude from automated discovery. Logical operator is "NOT_EQUALS". * "License Included" - The type of license included. Logical operators are "EQUALS" and "NOT_EQUALS". Possible values are: "sql-server-enterprise" | "sql-server-standard" | "sql-server-web" | "windows-server-datacenter". The following filters and logical operators are supported when the resource type is "RDS": * "Engine Edition" - The edition of the database engine. Logical operator is "EQUALS". Possible values are: "oracle-ee" | "oracle-se" | "oracle- se1" | "oracle-se2" | "db2-se" | "db2-ae". * "License Pack" - The license pack. Logical operator is "EQUALS". Possible values are: "data guard" | "diagnostic pack sqlt" | "tuning pack sqlt" | "ols" | "olap". * *(dict) --* Describes product information filters. * **ProductInformationFilterName** *(string) --* Filter name. * **ProductInformationFilterValue** *(list) --* Filter value. * *(string) --* * **ProductInformationFilterComparator** *(string) --* Logical operator. * **AutomatedDiscoveryInformation** *(dict) --* Automated discovery information. * **LastRunTime** *(datetime) --* Time that automated discovery last ran. * **NextToken** *(string) --* Token for the next set of results. **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.FilterLimitExceededException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / untag_resource untag_resource ************** LicenseManager.Client.untag_resource(**kwargs) Removes the specified tags from the specified resource. See also: AWS API Documentation **Request Syntax** response = client.untag_resource( ResourceArn='string', TagKeys=[ 'string', ] ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the resource. * **TagKeys** (*list*) -- **[REQUIRED]** Keys identifying the tags to remove. * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / create_license_conversion_task_for_resource create_license_conversion_task_for_resource ******************************************* LicenseManager.Client.create_license_conversion_task_for_resource(**kwargs) Creates a new license conversion task. See also: AWS API Documentation **Request Syntax** response = client.create_license_conversion_task_for_resource( ResourceArn='string', SourceLicenseContext={ 'UsageOperation': 'string', 'ProductCodes': [ { 'ProductCodeId': 'string', 'ProductCodeType': 'marketplace' }, ] }, DestinationLicenseContext={ 'UsageOperation': 'string', 'ProductCodes': [ { 'ProductCodeId': 'string', 'ProductCodeType': 'marketplace' }, ] } ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the resource you are converting the license type for. * **SourceLicenseContext** (*dict*) -- **[REQUIRED]** Information that identifies the license type you are converting from. For the structure of the source license, see Convert a license type using the CLI in the *License Manager User Guide*. * **UsageOperation** *(string) --* The Usage operation value that corresponds to the license type you are converting your resource from. For more information about which platforms correspond to which usage operation values see Sample data: usage operation by platform * **ProductCodes** *(list) --* Product codes referred to in the license conversion process. * *(dict) --* A list item that contains a product code. * **ProductCodeId** *(string) --* **[REQUIRED]** The product code ID * **ProductCodeType** *(string) --* **[REQUIRED]** The product code type * **DestinationLicenseContext** (*dict*) -- **[REQUIRED]** Information that identifies the license type you are converting to. For the structure of the destination license, see Convert a license type using the CLI in the *License Manager User Guide*. * **UsageOperation** *(string) --* The Usage operation value that corresponds to the license type you are converting your resource from. For more information about which platforms correspond to which usage operation values see Sample data: usage operation by platform * **ProductCodes** *(list) --* Product codes referred to in the license conversion process. * *(dict) --* A list item that contains a product code. * **ProductCodeId** *(string) --* **[REQUIRED]** The product code ID * **ProductCodeType** *(string) --* **[REQUIRED]** The product code type Return type: dict Returns: **Response Syntax** { 'LicenseConversionTaskId': 'string' } **Response Structure** * *(dict) --* * **LicenseConversionTaskId** *(string) --* The ID of the created license type conversion task. **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / list_license_manager_report_generators list_license_manager_report_generators ************************************** LicenseManager.Client.list_license_manager_report_generators(**kwargs) Lists the report generators for your account. See also: AWS API Documentation **Request Syntax** response = client.list_license_manager_report_generators( Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ], NextToken='string', MaxResults=123 ) Parameters: * **Filters** (*list*) -- Filters to scope the results. The following filters are supported: * "LicenseConfigurationArn" * *(dict) --* A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. * **Name** *(string) --* Name of the filter. Filter names are case-sensitive. * **Values** *(list) --* The value of the filter, which is case-sensitive. You can only specify one value for the filter. * *(string) --* * **NextToken** (*string*) -- Token for the next set of results. * **MaxResults** (*integer*) -- Maximum number of results to return in a single call. Return type: dict Returns: **Response Syntax** { 'ReportGenerators': [ { 'ReportGeneratorName': 'string', 'ReportType': [ 'LicenseConfigurationSummaryReport'|'LicenseConfigurationUsageReport', ], 'ReportContext': { 'licenseConfigurationArns': [ 'string', ] }, 'ReportFrequency': { 'value': 123, 'period': 'DAY'|'WEEK'|'MONTH' }, 'LicenseManagerReportGeneratorArn': 'string', 'LastRunStatus': 'string', 'LastRunFailureReason': 'string', 'LastReportGenerationTime': 'string', 'ReportCreatorAccount': 'string', 'Description': 'string', 'S3Location': { 'bucket': 'string', 'keyPrefix': 'string' }, 'CreateTime': 'string', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **ReportGenerators** *(list) --* A report generator that creates periodic reports about your license configurations. * *(dict) --* Describe the details of a report generator. * **ReportGeneratorName** *(string) --* Name of the report generator. * **ReportType** *(list) --* Type of reports that are generated. * *(string) --* * **ReportContext** *(dict) --* License configuration type for this generator. * **licenseConfigurationArns** *(list) --* Amazon Resource Name (ARN) of the license configuration that this generator reports on. * *(string) --* * **ReportFrequency** *(dict) --* Details about how frequently reports are generated. * **value** *(integer) --* Number of times within the frequency period that a report is generated. The only supported value is "1". * **period** *(string) --* Time period between each report. The period can be daily, weekly, or monthly. * **LicenseManagerReportGeneratorArn** *(string) --* Amazon Resource Name (ARN) of the report generator. * **LastRunStatus** *(string) --* Status of the last report generation attempt. * **LastRunFailureReason** *(string) --* Failure message for the last report generation attempt. * **LastReportGenerationTime** *(string) --* Time the last report was generated at. * **ReportCreatorAccount** *(string) --* The Amazon Web Services account ID used to create the report generator. * **Description** *(string) --* Description of the report generator. * **S3Location** *(dict) --* Details of the S3 bucket that report generator reports are published to. * **bucket** *(string) --* Name of the S3 bucket reports are published to. * **keyPrefix** *(string) --* Prefix of the S3 bucket reports are published to. * **CreateTime** *(string) --* Time the report was created. * **Tags** *(list) --* Tags associated with the report generator. * *(dict) --* Details about the tags for a resource. For more information about tagging support in License Manager, see the TagResource operation. * **Key** *(string) --* The tag key. * **Value** *(string) --* The tag value. * **NextToken** *(string) --* Token for the next set of results. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.ResourceNotFoundException" LicenseManager / Client / get_waiter get_waiter ********** LicenseManager.Client.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" LicenseManager / Client / check_in_license check_in_license **************** LicenseManager.Client.check_in_license(**kwargs) Checks in the specified license. Check in a license when it is no longer in use. See also: AWS API Documentation **Request Syntax** response = client.check_in_license( LicenseConsumptionToken='string', Beneficiary='string' ) Parameters: * **LicenseConsumptionToken** (*string*) -- **[REQUIRED]** License consumption token. * **Beneficiary** (*string*) -- License beneficiary. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ResourceNotFoundException" * "LicenseManager.Client.exceptions.ConflictException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" LicenseManager / Client / list_resource_inventory list_resource_inventory *********************** LicenseManager.Client.list_resource_inventory(**kwargs) Lists resources managed using Systems Manager inventory. 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. * **NextToken** (*string*) -- Token for the next set of results. * **Filters** (*list*) -- Filters to scope the results. The following filters and logical operators are supported: * "account_id" - The ID of the Amazon Web Services account that owns the resource. Logical operators are "EQUALS" | "NOT_EQUALS". * "application_name" - The name of the application. Logical operators are "EQUALS" | "BEGINS_WITH". * "license_included" - The type of license included. Logical operators are "EQUALS" | "NOT_EQUALS". Possible values are "sql-server-enterprise" | "sql-server-standard" | "sql- server-web" | "windows-server-datacenter". * "platform" - The platform of the resource. Logical operators are "EQUALS" | "BEGINS_WITH". * "resource_id" - The ID of the resource. Logical operators are "EQUALS" | "NOT_EQUALS". * "tag:" - The key/value combination of a tag assigned to the resource. Logical operators are "EQUALS" (single account) or "EQUALS" | "NOT_EQUALS" (cross account). * *(dict) --* An inventory filter. * **Name** *(string) --* **[REQUIRED]** Name of the filter. * **Condition** *(string) --* **[REQUIRED]** 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'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceArn': 'string', 'Platform': 'string', 'PlatformVersion': 'string', 'ResourceOwningAccountId': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **ResourceInventoryList** *(list) --* Information about the resources. * *(dict) --* Details about a resource. * **ResourceId** *(string) --* ID of the resource. * **ResourceType** *(string) --* Type of resource. * **ResourceArn** *(string) --* Amazon Resource Name (ARN) of the resource. * **Platform** *(string) --* Platform of the resource. * **PlatformVersion** *(string) --* Platform version of the resource in the inventory. * **ResourceOwningAccountId** *(string) --* ID of the account that owns the resource. * **NextToken** *(string) --* Token for the next set of results. **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.FilterLimitExceededException" * "LicenseManager.Client.exceptions.FailedDependencyException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / create_license create_license ************** LicenseManager.Client.create_license(**kwargs) Creates a license. See also: AWS API Documentation **Request Syntax** response = client.create_license( LicenseName='string', ProductName='string', ProductSKU='string', Issuer={ 'Name': 'string', 'SignKey': 'string' }, HomeRegion='string', Validity={ 'Begin': 'string', 'End': 'string' }, Entitlements=[ { 'Name': 'string', 'Value': 'string', 'MaxCount': 123, 'Overage': True|False, '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', 'AllowCheckIn': True|False }, ], Beneficiary='string', ConsumptionConfiguration={ 'RenewType': 'None'|'Weekly'|'Monthly', 'ProvisionalConfiguration': { 'MaxTimeToLiveInMinutes': 123 }, 'BorrowConfiguration': { 'AllowEarlyCheckIn': True|False, 'MaxTimeToLiveInMinutes': 123 } }, LicenseMetadata=[ { 'Name': 'string', 'Value': 'string' }, ], ClientToken='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **LicenseName** (*string*) -- **[REQUIRED]** License name. * **ProductName** (*string*) -- **[REQUIRED]** Product name. * **ProductSKU** (*string*) -- **[REQUIRED]** Product SKU. * **Issuer** (*dict*) -- **[REQUIRED]** License issuer. * **Name** *(string) --* **[REQUIRED]** Issuer name. * **SignKey** *(string) --* Asymmetric KMS key from Key Management Service. The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm. * **HomeRegion** (*string*) -- **[REQUIRED]** Home Region for the license. * **Validity** (*dict*) -- **[REQUIRED]** Date and time range during which the license is valid, in ISO8601-UTC format. * **Begin** *(string) --* **[REQUIRED]** Start of the time range. * **End** *(string) --* End of the time range. * **Entitlements** (*list*) -- **[REQUIRED]** License entitlements. * *(dict) --* Describes a resource entitled for use with a license. * **Name** *(string) --* **[REQUIRED]** Entitlement name. * **Value** *(string) --* Entitlement resource. Use only if the unit is None. * **MaxCount** *(integer) --* Maximum entitlement count. Use if the unit is not None. * **Overage** *(boolean) --* Indicates whether overages are allowed. * **Unit** *(string) --* **[REQUIRED]** Entitlement unit. * **AllowCheckIn** *(boolean) --* Indicates whether check-ins are allowed. * **Beneficiary** (*string*) -- **[REQUIRED]** License beneficiary. * **ConsumptionConfiguration** (*dict*) -- **[REQUIRED]** Configuration for consumption of the license. Choose a provisional configuration for workloads running with continuous connectivity. Choose a borrow configuration for workloads with offline usage. * **RenewType** *(string) --* Renewal frequency. * **ProvisionalConfiguration** *(dict) --* Details about a provisional configuration. * **MaxTimeToLiveInMinutes** *(integer) --* **[REQUIRED]** Maximum time for the provisional configuration, in minutes. * **BorrowConfiguration** *(dict) --* Details about a borrow configuration. * **AllowEarlyCheckIn** *(boolean) --* **[REQUIRED]** Indicates whether early check-ins are allowed. * **MaxTimeToLiveInMinutes** *(integer) --* **[REQUIRED]** Maximum time for the borrow configuration, in minutes. * **LicenseMetadata** (*list*) -- Information about the license. * *(dict) --* Describes key/value pairs. * **Name** *(string) --* The key name. * **Value** *(string) --* The value. * **ClientToken** (*string*) -- **[REQUIRED]** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. * **Tags** (*list*) -- Tags to add to the license. For more information about tagging support in License Manager, see the TagResource operation. * *(dict) --* Details about the tags for a resource. For more information about tagging support in License Manager, see the TagResource operation. * **Key** *(string) --* The tag key. * **Value** *(string) --* The tag value. Return type: dict Returns: **Response Syntax** { 'LicenseArn': 'string', 'Status': 'AVAILABLE'|'PENDING_AVAILABLE'|'DEACTIVATED'|'SUSPENDED'|'EXPIRED'|'PENDING_DELETE'|'DELETED', 'Version': 'string' } **Response Structure** * *(dict) --* * **LicenseArn** *(string) --* Amazon Resource Name (ARN) of the license. * **Status** *(string) --* License status. * **Version** *(string) --* License version. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.RedirectException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" LicenseManager / Client / delete_license_configuration delete_license_configuration **************************** LicenseManager.Client.delete_license_configuration(**kwargs) Deletes the specified license configuration. You cannot delete a license configuration that is in use. See also: AWS API Documentation **Request Syntax** response = client.delete_license_configuration( LicenseConfigurationArn='string' ) Parameters: **LicenseConfigurationArn** (*string*) -- **[REQUIRED]** ID of the license configuration. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / checkout_license checkout_license **************** LicenseManager.Client.checkout_license(**kwargs) Checks out the specified license. Note: If the account that created the license is the same that is performing the check out, you must specify the account as the beneficiary. See also: AWS API Documentation **Request Syntax** response = client.checkout_license( ProductSKU='string', CheckoutType='PROVISIONAL'|'PERPETUAL', KeyFingerprint='string', Entitlements=[ { 'Name': 'string', 'Value': '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' }, ], ClientToken='string', Beneficiary='string', NodeId='string' ) Parameters: * **ProductSKU** (*string*) -- **[REQUIRED]** Product SKU. * **CheckoutType** (*string*) -- **[REQUIRED]** Checkout type. * **KeyFingerprint** (*string*) -- **[REQUIRED]** Key fingerprint identifying the license. * **Entitlements** (*list*) -- **[REQUIRED]** License entitlements. * *(dict) --* Data associated with an entitlement resource. * **Name** *(string) --* **[REQUIRED]** Entitlement data name. * **Value** *(string) --* Entitlement data value. * **Unit** *(string) --* **[REQUIRED]** Entitlement data unit. * **ClientToken** (*string*) -- **[REQUIRED]** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. * **Beneficiary** (*string*) -- License beneficiary. * **NodeId** (*string*) -- Node ID. Return type: dict Returns: **Response Syntax** { 'CheckoutType': 'PROVISIONAL'|'PERPETUAL', 'LicenseConsumptionToken': 'string', 'EntitlementsAllowed': [ { 'Name': 'string', 'Value': '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' }, ], 'SignedToken': 'string', 'NodeId': 'string', 'IssuedAt': 'string', 'Expiration': 'string', 'LicenseArn': 'string' } **Response Structure** * *(dict) --* * **CheckoutType** *(string) --* Checkout type. * **LicenseConsumptionToken** *(string) --* License consumption token. * **EntitlementsAllowed** *(list) --* Allowed license entitlements. * *(dict) --* Data associated with an entitlement resource. * **Name** *(string) --* Entitlement data name. * **Value** *(string) --* Entitlement data value. * **Unit** *(string) --* Entitlement data unit. * **SignedToken** *(string) --* Signed token. * **NodeId** *(string) --* Node ID. * **IssuedAt** *(string) --* Date and time at which the license checkout is issued. * **Expiration** *(string) --* Date and time at which the license checkout expires. * **LicenseArn** *(string) --* Amazon Resource Name (ARN) of the checkout license. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ResourceNotFoundException" * "LicenseManager.Client.exceptions.NoEntitlementsAllowedException" * "LicenseManager.Client.exceptions.UnsupportedDigitalSignatureMet hodException" * "LicenseManager.Client.exceptions.RedirectException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" LicenseManager / Client / delete_license delete_license ************** LicenseManager.Client.delete_license(**kwargs) Deletes the specified license. See also: AWS API Documentation **Request Syntax** response = client.delete_license( LicenseArn='string', SourceVersion='string' ) Parameters: * **LicenseArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the license. * **SourceVersion** (*string*) -- **[REQUIRED]** Current version of the license. Return type: dict Returns: **Response Syntax** { 'Status': 'PENDING_DELETE'|'DELETED', 'DeletionDate': 'string' } **Response Structure** * *(dict) --* * **Status** *(string) --* License status. * **DeletionDate** *(string) --* Date when the license is deleted. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.RedirectException" * "LicenseManager.Client.exceptions.ConflictException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / get_grant get_grant ********* LicenseManager.Client.get_grant(**kwargs) Gets detailed information about the specified grant. See also: AWS API Documentation **Request Syntax** response = client.get_grant( GrantArn='string', Version='string' ) Parameters: * **GrantArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the grant. * **Version** (*string*) -- Grant version. Return type: dict Returns: **Response Syntax** { 'Grant': { 'GrantArn': 'string', 'GrantName': 'string', 'ParentArn': 'string', 'LicenseArn': 'string', 'GranteePrincipalArn': 'string', 'HomeRegion': 'string', 'GrantStatus': 'PENDING_WORKFLOW'|'PENDING_ACCEPT'|'REJECTED'|'ACTIVE'|'FAILED_WORKFLOW'|'DELETED'|'PENDING_DELETE'|'DISABLED'|'WORKFLOW_COMPLETED', 'StatusReason': 'string', 'Version': 'string', 'GrantedOperations': [ 'CreateGrant'|'CheckoutLicense'|'CheckoutBorrowLicense'|'CheckInLicense'|'ExtendConsumptionLicense'|'ListPurchasedLicenses'|'CreateToken', ], 'Options': { 'ActivationOverrideBehavior': 'DISTRIBUTED_GRANTS_ONLY'|'ALL_GRANTS_PERMITTED_BY_ISSUER' } } } **Response Structure** * *(dict) --* * **Grant** *(dict) --* Grant details. * **GrantArn** *(string) --* Amazon Resource Name (ARN) of the grant. * **GrantName** *(string) --* Grant name. * **ParentArn** *(string) --* Parent ARN. * **LicenseArn** *(string) --* License ARN. * **GranteePrincipalArn** *(string) --* The grantee principal ARN. * **HomeRegion** *(string) --* Home Region of the grant. * **GrantStatus** *(string) --* Grant status. * **StatusReason** *(string) --* Grant status reason. * **Version** *(string) --* Grant version. * **GrantedOperations** *(list) --* Granted operations. * *(string) --* * **Options** *(dict) --* The options specified for the grant. * **ActivationOverrideBehavior** *(string) --* An activation option for your grant that determines the behavior of activating a grant. Activation options can only be used with granted licenses sourced from the Amazon Web Services Marketplace. Additionally, the operation must specify the value of "ACTIVE" for the "Status" parameter. * As a license administrator, you can optionally specify an "ActivationOverrideBehavior" when activating a grant. * As a grantor, you can optionally specify an "ActivationOverrideBehavior" when you activate a grant for a grantee account in your organization. * As a grantee, if the grantor creating the distributed grant doesn’t specify an "ActivationOverrideBehavior", you can optionally specify one when you are activating the grant. DISTRIBUTED_GRANTS_ONLY Use this value to activate a grant without replacing any member account’s active grants for the same product. ALL_GRANTS_PERMITTED_BY_ISSUER Use this value to activate a grant and disable other active grants in any member accounts for the same product. This action will also replace their previously activated grants with this activated grant. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / extend_license_consumption extend_license_consumption ************************** LicenseManager.Client.extend_license_consumption(**kwargs) Extends the expiration date for license consumption. See also: AWS API Documentation **Request Syntax** response = client.extend_license_consumption( LicenseConsumptionToken='string', DryRun=True|False ) Parameters: * **LicenseConsumptionToken** (*string*) -- **[REQUIRED]** License consumption token. * **DryRun** (*boolean*) -- Checks whether you have the required permissions for the action, without actually making the request. Provides an error response if you do not have the required permissions. Return type: dict Returns: **Response Syntax** { 'LicenseConsumptionToken': 'string', 'Expiration': 'string' } **Response Structure** * *(dict) --* * **LicenseConsumptionToken** *(string) --* License consumption token. * **Expiration** *(string) --* Date and time at which the license consumption expires. **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" * "LicenseManager.Client.exceptions.ResourceNotFoundException" LicenseManager / Client / create_grant_version create_grant_version ******************** LicenseManager.Client.create_grant_version(**kwargs) Creates a new version of the specified grant. For more information, see Granted licenses in License Manager in the *License Manager User Guide*. See also: AWS API Documentation **Request Syntax** response = client.create_grant_version( ClientToken='string', GrantArn='string', GrantName='string', AllowedOperations=[ 'CreateGrant'|'CheckoutLicense'|'CheckoutBorrowLicense'|'CheckInLicense'|'ExtendConsumptionLicense'|'ListPurchasedLicenses'|'CreateToken', ], Status='PENDING_WORKFLOW'|'PENDING_ACCEPT'|'REJECTED'|'ACTIVE'|'FAILED_WORKFLOW'|'DELETED'|'PENDING_DELETE'|'DISABLED'|'WORKFLOW_COMPLETED', StatusReason='string', SourceVersion='string', Options={ 'ActivationOverrideBehavior': 'DISTRIBUTED_GRANTS_ONLY'|'ALL_GRANTS_PERMITTED_BY_ISSUER' } ) Parameters: * **ClientToken** (*string*) -- **[REQUIRED]** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. * **GrantArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the grant. * **GrantName** (*string*) -- Grant name. * **AllowedOperations** (*list*) -- Allowed operations for the grant. * *(string) --* * **Status** (*string*) -- Grant status. * **StatusReason** (*string*) -- Grant status reason. * **SourceVersion** (*string*) -- Current version of the grant. * **Options** (*dict*) -- The options specified for the grant. * **ActivationOverrideBehavior** *(string) --* An activation option for your grant that determines the behavior of activating a grant. Activation options can only be used with granted licenses sourced from the Amazon Web Services Marketplace. Additionally, the operation must specify the value of "ACTIVE" for the "Status" parameter. * As a license administrator, you can optionally specify an "ActivationOverrideBehavior" when activating a grant. * As a grantor, you can optionally specify an "ActivationOverrideBehavior" when you activate a grant for a grantee account in your organization. * As a grantee, if the grantor creating the distributed grant doesn’t specify an "ActivationOverrideBehavior", you can optionally specify one when you are activating the grant. DISTRIBUTED_GRANTS_ONLY Use this value to activate a grant without replacing any member account’s active grants for the same product. ALL_GRANTS_PERMITTED_BY_ISSUER Use this value to activate a grant and disable other active grants in any member accounts for the same product. This action will also replace their previously activated grants with this activated grant. Return type: dict Returns: **Response Syntax** { 'GrantArn': 'string', 'Status': 'PENDING_WORKFLOW'|'PENDING_ACCEPT'|'REJECTED'|'ACTIVE'|'FAILED_WORKFLOW'|'DELETED'|'PENDING_DELETE'|'DISABLED'|'WORKFLOW_COMPLETED', 'Version': 'string' } **Response Structure** * *(dict) --* * **GrantArn** *(string) --* Grant ARN. * **Status** *(string) --* Grant status. * **Version** *(string) --* New version of the grant. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / update_service_settings update_service_settings *********************** LicenseManager.Client.update_service_settings(**kwargs) Updates License Manager settings for the current Region. 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*) -- Amazon Resource Name (ARN) of the Amazon S3 bucket where the License Manager information is stored. * **SnsTopicArn** (*string*) -- Amazon Resource Name (ARN) of the Amazon SNS topic used for License Manager alerts. * **OrganizationConfiguration** (*dict*) -- Enables integration with Organizations for cross-account discovery. * **EnableIntegration** *(boolean) --* **[REQUIRED]** Enables Organizations integration. * **EnableCrossAccountsDiscovery** (*boolean*) -- Activates cross-account discovery. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / create_token create_token ************ LicenseManager.Client.create_token(**kwargs) Creates a long-lived token. A refresh token is a JWT token used to get an access token. With an access token, you can call AssumeRoleWithWebIdentity to get role credentials that you can use to call License Manager to manage the specified license. See also: AWS API Documentation **Request Syntax** response = client.create_token( LicenseArn='string', RoleArns=[ 'string', ], ExpirationInDays=123, TokenProperties=[ 'string', ], ClientToken='string' ) Parameters: * **LicenseArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the license. The ARN is mapped to the aud claim of the JWT token. * **RoleArns** (*list*) -- Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use. * *(string) --* * **ExpirationInDays** (*integer*) -- Token expiration, in days, counted from token creation. The default is 365 days. * **TokenProperties** (*list*) -- Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token. * *(string) --* * **ClientToken** (*string*) -- **[REQUIRED]** Idempotency token, valid for 10 minutes. Return type: dict Returns: **Response Syntax** { 'TokenId': 'string', 'TokenType': 'REFRESH_TOKEN', 'Token': 'string' } **Response Structure** * *(dict) --* * **TokenId** *(string) --* Token ID. * **TokenType** *(string) --* Token type. * **Token** *(string) --* Refresh token, encoded as a JWT token. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.ResourceNotFoundException" * "LicenseManager.Client.exceptions.RedirectException" LicenseManager / Client / list_failures_for_license_configuration_operations list_failures_for_license_configuration_operations ************************************************** LicenseManager.Client.list_failures_for_license_configuration_operations(**kwargs) Lists the license configuration operations that failed. See also: AWS API Documentation **Request Syntax** response = client.list_failures_for_license_configuration_operations( LicenseConfigurationArn='string', MaxResults=123, NextToken='string' ) Parameters: * **LicenseConfigurationArn** (*string*) -- **[REQUIRED]** Amazon Resource Name of the 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** { 'LicenseOperationFailureList': [ { 'ResourceArn': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ErrorMessage': 'string', 'FailureTime': datetime(2015, 1, 1), 'OperationName': 'string', 'ResourceOwnerId': 'string', 'OperationRequestedBy': 'string', 'MetadataList': [ { 'Name': 'string', 'Value': 'string' }, ] }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **LicenseOperationFailureList** *(list) --* License configuration operations that failed. * *(dict) --* Describes the failure of a license operation. * **ResourceArn** *(string) --* Amazon Resource Name (ARN) of the resource. * **ResourceType** *(string) --* Resource type. * **ErrorMessage** *(string) --* Error message. * **FailureTime** *(datetime) --* Failure time. * **OperationName** *(string) --* Name of the operation. * **ResourceOwnerId** *(string) --* ID of the Amazon Web Services account that owns the resource. * **OperationRequestedBy** *(string) --* The requester is "License Manager Automated Discovery". * **MetadataList** *(list) --* Reserved. * *(dict) --* Describes key/value pairs. * **Name** *(string) --* The key name. * **Value** *(string) --* The value. * **NextToken** *(string) --* Token for the next set of results. **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / create_grant create_grant ************ LicenseManager.Client.create_grant(**kwargs) Creates a grant for the specified license. A grant shares the use of license entitlements with a specific Amazon Web Services account, an organization, or an organizational unit (OU). For more information, see Granted licenses in License Manager in the *License Manager User Guide*. See also: AWS API Documentation **Request Syntax** response = client.create_grant( ClientToken='string', GrantName='string', LicenseArn='string', Principals=[ 'string', ], HomeRegion='string', AllowedOperations=[ 'CreateGrant'|'CheckoutLicense'|'CheckoutBorrowLicense'|'CheckInLicense'|'ExtendConsumptionLicense'|'ListPurchasedLicenses'|'CreateToken', ], Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **ClientToken** (*string*) -- **[REQUIRED]** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. * **GrantName** (*string*) -- **[REQUIRED]** Grant name. * **LicenseArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the license. * **Principals** (*list*) -- **[REQUIRED]** The grant principals. You can specify one of the following as an Amazon Resource Name (ARN): * An Amazon Web Services account, which includes only the account specified. * An organizational unit (OU), which includes all accounts in the OU. * An organization, which will include all accounts across your organization. * *(string) --* * **HomeRegion** (*string*) -- **[REQUIRED]** Home Region of the grant. * **AllowedOperations** (*list*) -- **[REQUIRED]** Allowed operations for the grant. * *(string) --* * **Tags** (*list*) -- Tags to add to the grant. For more information about tagging support in License Manager, see the TagResource operation. * *(dict) --* Details about the tags for a resource. For more information about tagging support in License Manager, see the TagResource operation. * **Key** *(string) --* The tag key. * **Value** *(string) --* The tag value. Return type: dict Returns: **Response Syntax** { 'GrantArn': 'string', 'Status': 'PENDING_WORKFLOW'|'PENDING_ACCEPT'|'REJECTED'|'ACTIVE'|'FAILED_WORKFLOW'|'DELETED'|'PENDING_DELETE'|'DISABLED'|'WORKFLOW_COMPLETED', 'Version': 'string' } **Response Structure** * *(dict) --* * **GrantArn** *(string) --* Grant ARN. * **Status** *(string) --* Grant status. * **Version** *(string) --* Grant version. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.AccessDeniedException" LicenseManager / Client / list_usage_for_license_configuration list_usage_for_license_configuration ************************************ LicenseManager.Client.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]** Amazon Resource Name (ARN) of the license configuration. * **MaxResults** (*integer*) -- Maximum number of results to return in a single call. * **NextToken** (*string*) -- Token for the next set of results. * **Filters** (*list*) -- Filters to scope the results. The following filters and logical operators are supported: * "resourceArn" - The ARN of the license configuration resource. * "resourceType" - The resource type ( "EC2_INSTANCE" | "EC2_HOST" | "EC2_AMI" | "SYSTEMS_MANAGER_MANAGED_INSTANCE"). * "resourceAccount" - The ID of the account that owns the resource. * *(dict) --* A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. * **Name** *(string) --* Name of the filter. Filter names are case-sensitive. * **Values** *(list) --* The value of the filter, which is case-sensitive. You can only specify one value for the filter. * *(string) --* Return type: dict Returns: **Response Syntax** { 'LicenseConfigurationUsageList': [ { 'ResourceArn': 'string', 'ResourceType': 'EC2_INSTANCE'|'EC2_HOST'|'EC2_AMI'|'RDS'|'SYSTEMS_MANAGER_MANAGED_INSTANCE', 'ResourceStatus': 'string', 'ResourceOwnerId': 'string', 'AssociationTime': datetime(2015, 1, 1), 'ConsumedLicenses': 123 }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **LicenseConfigurationUsageList** *(list) --* Information about the license configurations. * *(dict) --* Details about the usage of a resource associated with a license configuration. * **ResourceArn** *(string) --* Amazon Resource Name (ARN) of the resource. * **ResourceType** *(string) --* Type of resource. * **ResourceStatus** *(string) --* Status of the resource. * **ResourceOwnerId** *(string) --* ID of the account that owns the resource. * **AssociationTime** *(datetime) --* Time when the license configuration was initially associated with the resource. * **ConsumedLicenses** *(integer) --* Number of licenses consumed by the resource. * **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" 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** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.FilterLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / close close ***** LicenseManager.Client.close() Closes underlying endpoint connections. LicenseManager / Client / update_license_configuration update_license_configuration **************************** LicenseManager.Client.update_license_configuration(**kwargs) Modifies the attributes of an existing license configuration. 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', ProductInformationList=[ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ], DisassociateWhenNotFound=True|False ) Parameters: * **LicenseConfigurationArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the license configuration. * **LicenseConfigurationStatus** (*string*) -- New status of the license configuration. * **LicenseRules** (*list*) -- New license rule. The only rule that you can add after you create a license configuration is licenseAffinityToHost. * *(string) --* * **LicenseCount** (*integer*) -- New number of licenses managed by the license configuration. * **LicenseCountHardLimit** (*boolean*) -- New hard limit of the number of available licenses. * **Name** (*string*) -- New name of the license configuration. * **Description** (*string*) -- New description of the license configuration. * **ProductInformationList** (*list*) -- New product information. * *(dict) --* Describes product information for a license configuration. * **ResourceType** *(string) --* **[REQUIRED]** Resource type. The possible values are "SSM_MANAGED" | "RDS". * **ProductInformationFilterList** *(list) --* **[REQUIRED]** A Product information filter consists of a "ProductInformationFilterComparator" which is a logical operator, a "ProductInformationFilterName" which specifies the type of filter being declared, and a "ProductInformationFilterValue" that specifies the value to filter on. Accepted values for "ProductInformationFilterName" are listed here along with descriptions and valid options for "ProductInformationFilterComparator". The following filters and are supported when the resource type is "SSM_MANAGED": * "Application Name" - The name of the application. Logical operator is "EQUALS". * "Application Publisher" - The publisher of the application. Logical operator is "EQUALS". * "Application Version" - The version of the application. Logical operator is "EQUALS". * "Platform Name" - The name of the platform. Logical operator is "EQUALS". * "Platform Type" - The platform type. Logical operator is "EQUALS". * "Tag:key" - The key of a tag attached to an Amazon Web Services resource you wish to exclude from automated discovery. Logical operator is "NOT_EQUALS". The key for your tag must be appended to "Tag:" following the example: "Tag:name-of-your-key". "ProductInformationFilterValue" is optional if you are not using values for the key. * "AccountId" - The 12-digit ID of an Amazon Web Services account you wish to exclude from automated discovery. Logical operator is "NOT_EQUALS". * "License Included" - The type of license included. Logical operators are "EQUALS" and "NOT_EQUALS". Possible values are: "sql-server-enterprise" | "sql- server-standard" | "sql-server-web" | "windows-server- datacenter". The following filters and logical operators are supported when the resource type is "RDS": * "Engine Edition" - The edition of the database engine. Logical operator is "EQUALS". Possible values are: "oracle-ee" | "oracle-se" | "oracle-se1" | "oracle-se2" | "db2-se" | "db2-ae". * "License Pack" - The license pack. Logical operator is "EQUALS". Possible values are: "data guard" | "diagnostic pack sqlt" | "tuning pack sqlt" | "ols" | "olap". * *(dict) --* Describes product information filters. * **ProductInformationFilterName** *(string) --* **[REQUIRED]** Filter name. * **ProductInformationFilterValue** *(list) --* Filter value. * *(string) --* * **ProductInformationFilterComparator** *(string) --* **[REQUIRED]** Logical operator. * **DisassociateWhenNotFound** (*boolean*) -- When true, disassociates a resource when software is uninstalled. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ConflictException" LicenseManager / Client / list_received_licenses list_received_licenses ********************** LicenseManager.Client.list_received_licenses(**kwargs) Lists received licenses. See also: AWS API Documentation **Request Syntax** response = client.list_received_licenses( LicenseArns=[ 'string', ], Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ], NextToken='string', MaxResults=123 ) Parameters: * **LicenseArns** (*list*) -- Amazon Resource Names (ARNs) of the licenses. * *(string) --* * **Filters** (*list*) -- Filters to scope the results. The following filters are supported: * "ProductSKU" * "Status" * "Fingerprint" * "IssuerName" * "Beneficiary" * *(dict) --* A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. * **Name** *(string) --* Name of the filter. Filter names are case-sensitive. * **Values** *(list) --* The value of the filter, which is case-sensitive. You can only specify one value for the filter. * *(string) --* * **NextToken** (*string*) -- Token for the next set of results. * **MaxResults** (*integer*) -- Maximum number of results to return in a single call. Return type: dict Returns: **Response Syntax** { 'Licenses': [ { 'LicenseArn': 'string', 'LicenseName': 'string', 'ProductName': 'string', 'ProductSKU': 'string', 'Issuer': { 'Name': 'string', 'SignKey': 'string', 'KeyFingerprint': 'string' }, 'HomeRegion': 'string', 'Status': 'AVAILABLE'|'PENDING_AVAILABLE'|'DEACTIVATED'|'SUSPENDED'|'EXPIRED'|'PENDING_DELETE'|'DELETED', 'Validity': { 'Begin': 'string', 'End': 'string' }, 'Beneficiary': 'string', 'Entitlements': [ { 'Name': 'string', 'Value': 'string', 'MaxCount': 123, 'Overage': True|False, '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', 'AllowCheckIn': True|False }, ], 'ConsumptionConfiguration': { 'RenewType': 'None'|'Weekly'|'Monthly', 'ProvisionalConfiguration': { 'MaxTimeToLiveInMinutes': 123 }, 'BorrowConfiguration': { 'AllowEarlyCheckIn': True|False, 'MaxTimeToLiveInMinutes': 123 } }, 'LicenseMetadata': [ { 'Name': 'string', 'Value': 'string' }, ], 'CreateTime': 'string', 'Version': 'string', 'ReceivedMetadata': { 'ReceivedStatus': 'PENDING_WORKFLOW'|'PENDING_ACCEPT'|'REJECTED'|'ACTIVE'|'FAILED_WORKFLOW'|'DELETED'|'DISABLED'|'WORKFLOW_COMPLETED', 'ReceivedStatusReason': 'string', 'AllowedOperations': [ 'CreateGrant'|'CheckoutLicense'|'CheckoutBorrowLicense'|'CheckInLicense'|'ExtendConsumptionLicense'|'ListPurchasedLicenses'|'CreateToken', ] } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Licenses** *(list) --* Received license details. * *(dict) --* Describes a license that is granted to a grantee. * **LicenseArn** *(string) --* Amazon Resource Name (ARN) of the license. * **LicenseName** *(string) --* License name. * **ProductName** *(string) --* Product name. * **ProductSKU** *(string) --* Product SKU. * **Issuer** *(dict) --* Granted license issuer. * **Name** *(string) --* Issuer name. * **SignKey** *(string) --* Asymmetric KMS key from Key Management Service. The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm. * **KeyFingerprint** *(string) --* Issuer key fingerprint. * **HomeRegion** *(string) --* Home Region of the granted license. * **Status** *(string) --* Granted license status. * **Validity** *(dict) --* Date and time range during which the granted license is valid, in ISO8601-UTC format. * **Begin** *(string) --* Start of the time range. * **End** *(string) --* End of the time range. * **Beneficiary** *(string) --* Granted license beneficiary. * **Entitlements** *(list) --* License entitlements. * *(dict) --* Describes a resource entitled for use with a license. * **Name** *(string) --* Entitlement name. * **Value** *(string) --* Entitlement resource. Use only if the unit is None. * **MaxCount** *(integer) --* Maximum entitlement count. Use if the unit is not None. * **Overage** *(boolean) --* Indicates whether overages are allowed. * **Unit** *(string) --* Entitlement unit. * **AllowCheckIn** *(boolean) --* Indicates whether check-ins are allowed. * **ConsumptionConfiguration** *(dict) --* Configuration for consumption of the license. * **RenewType** *(string) --* Renewal frequency. * **ProvisionalConfiguration** *(dict) --* Details about a provisional configuration. * **MaxTimeToLiveInMinutes** *(integer) --* Maximum time for the provisional configuration, in minutes. * **BorrowConfiguration** *(dict) --* Details about a borrow configuration. * **AllowEarlyCheckIn** *(boolean) --* Indicates whether early check-ins are allowed. * **MaxTimeToLiveInMinutes** *(integer) --* Maximum time for the borrow configuration, in minutes. * **LicenseMetadata** *(list) --* Granted license metadata. * *(dict) --* Describes key/value pairs. * **Name** *(string) --* The key name. * **Value** *(string) --* The value. * **CreateTime** *(string) --* Creation time of the granted license. * **Version** *(string) --* Version of the granted license. * **ReceivedMetadata** *(dict) --* Granted license received metadata. * **ReceivedStatus** *(string) --* Received status. * **ReceivedStatusReason** *(string) --* Received status reason. * **AllowedOperations** *(list) --* Allowed operations. * *(string) --* * **NextToken** *(string) --* Token for the next set of results. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / update_license_specifications_for_resource update_license_specifications_for_resource ****************************************** LicenseManager.Client.update_license_specifications_for_resource(**kwargs) Adds or removes the specified license configurations for the specified Amazon Web Services resource. You can update the license specifications of AMIs, instances, and hosts. You cannot update the license specifications for launch templates and CloudFormation templates, as they send license configurations to the operation that creates the resource. See also: AWS API Documentation **Request Syntax** response = client.update_license_specifications_for_resource( ResourceArn='string', AddLicenseSpecifications=[ { 'LicenseConfigurationArn': 'string', 'AmiAssociationScope': 'string' }, ], RemoveLicenseSpecifications=[ { 'LicenseConfigurationArn': 'string', 'AmiAssociationScope': 'string' }, ] ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the Amazon Web Services resource. * **AddLicenseSpecifications** (*list*) -- ARNs of the license configurations to add. * *(dict) --* Details for associating a license configuration with a resource. * **LicenseConfigurationArn** *(string) --* **[REQUIRED]** Amazon Resource Name (ARN) of the license configuration. * **AmiAssociationScope** *(string) --* Scope of AMI associations. The possible value is "cross- account". * **RemoveLicenseSpecifications** (*list*) -- ARNs of the license configurations to remove. * *(dict) --* Details for associating a license configuration with a resource. * **LicenseConfigurationArn** *(string) --* **[REQUIRED]** Amazon Resource Name (ARN) of the license configuration. * **AmiAssociationScope** *(string) --* Scope of AMI associations. The possible value is "cross- account". Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.InvalidResourceStateException" * "LicenseManager.Client.exceptions.LicenseUsageException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.ConflictException" LicenseManager / Client / get_license_usage 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" LicenseManager / Client / list_license_conversion_tasks list_license_conversion_tasks ***************************** LicenseManager.Client.list_license_conversion_tasks(**kwargs) Lists the license type conversion tasks for your account. See also: AWS API Documentation **Request Syntax** response = client.list_license_conversion_tasks( NextToken='string', MaxResults=123, Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ] ) Parameters: * **NextToken** (*string*) -- Token for the next set of results. * **MaxResults** (*integer*) -- Maximum number of results to return in a single call. * **Filters** (*list*) -- Filters to scope the results. Valid filters are "ResourceArns" and "Status". * *(dict) --* A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. * **Name** *(string) --* Name of the filter. Filter names are case-sensitive. * **Values** *(list) --* The value of the filter, which is case-sensitive. You can only specify one value for the filter. * *(string) --* Return type: dict Returns: **Response Syntax** { 'LicenseConversionTasks': [ { 'LicenseConversionTaskId': 'string', 'ResourceArn': 'string', 'SourceLicenseContext': { 'UsageOperation': 'string', 'ProductCodes': [ { 'ProductCodeId': 'string', 'ProductCodeType': 'marketplace' }, ] }, 'DestinationLicenseContext': { 'UsageOperation': 'string', 'ProductCodes': [ { 'ProductCodeId': 'string', 'ProductCodeType': 'marketplace' }, ] }, 'Status': 'IN_PROGRESS'|'SUCCEEDED'|'FAILED', 'StatusMessage': 'string', 'StartTime': datetime(2015, 1, 1), 'LicenseConversionTime': datetime(2015, 1, 1), 'EndTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **LicenseConversionTasks** *(list) --* Information about the license configuration tasks for your account. * *(dict) --* Information about a license type conversion task. * **LicenseConversionTaskId** *(string) --* The ID of the license type conversion task. * **ResourceArn** *(string) --* The Amazon Resource Name (ARN) of the resource associated with the license type conversion task. * **SourceLicenseContext** *(dict) --* Information about the license type this conversion task converted from. * **UsageOperation** *(string) --* The Usage operation value that corresponds to the license type you are converting your resource from. For more information about which platforms correspond to which usage operation values see Sample data: usage operation by platform * **ProductCodes** *(list) --* Product codes referred to in the license conversion process. * *(dict) --* A list item that contains a product code. * **ProductCodeId** *(string) --* The product code ID * **ProductCodeType** *(string) --* The product code type * **DestinationLicenseContext** *(dict) --* Information about the license type this conversion task converted to. * **UsageOperation** *(string) --* The Usage operation value that corresponds to the license type you are converting your resource from. For more information about which platforms correspond to which usage operation values see Sample data: usage operation by platform * **ProductCodes** *(list) --* Product codes referred to in the license conversion process. * *(dict) --* A list item that contains a product code. * **ProductCodeId** *(string) --* The product code ID * **ProductCodeType** *(string) --* The product code type * **Status** *(string) --* The status of the conversion task. * **StatusMessage** *(string) --* The status message for the conversion task. * **StartTime** *(datetime) --* The time the conversion task was started at. * **LicenseConversionTime** *(datetime) --* The time the usage operation value of the resource was changed. * **EndTime** *(datetime) --* The time the conversion task was completed. * **NextToken** *(string) --* Token for the next set of results. **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / reject_grant reject_grant ************ LicenseManager.Client.reject_grant(**kwargs) Rejects the specified grant. See also: AWS API Documentation **Request Syntax** response = client.reject_grant( GrantArn='string' ) Parameters: **GrantArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the grant. Return type: dict Returns: **Response Syntax** { 'GrantArn': 'string', 'Status': 'PENDING_WORKFLOW'|'PENDING_ACCEPT'|'REJECTED'|'ACTIVE'|'FAILED_WORKFLOW'|'DELETED'|'PENDING_DELETE'|'DISABLED'|'WORKFLOW_COMPLETED', 'Version': 'string' } **Response Structure** * *(dict) --* * **GrantArn** *(string) --* Grant ARN. * **Status** *(string) --* Grant status. * **Version** *(string) --* Grant version. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" LicenseManager / Client / get_service_settings get_service_settings ******************** LicenseManager.Client.get_service_settings() Gets the License Manager settings for the current Region. 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, 'LicenseManagerResourceShareArn': 'string' } **Response Structure** * *(dict) --* * **S3BucketArn** *(string) --* Regional S3 bucket path for storing reports, license trail event data, discovery data, and so on. * **SnsTopicArn** *(string) --* SNS topic configured to receive notifications from License Manager. * **OrganizationConfiguration** *(dict) --* Indicates whether Organizations is integrated with License Manager for cross-account discovery. * **EnableIntegration** *(boolean) --* Enables Organizations integration. * **EnableCrossAccountsDiscovery** *(boolean) --* Indicates whether cross-account discovery is enabled. * **LicenseManagerResourceShareArn** *(string) --* Amazon Resource Name (ARN) of the resource share. The License Manager management account provides member accounts with access to this share. **Exceptions** * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / list_licenses list_licenses ************* LicenseManager.Client.list_licenses(**kwargs) Lists the licenses for your account. See also: AWS API Documentation **Request Syntax** response = client.list_licenses( LicenseArns=[ 'string', ], Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ], NextToken='string', MaxResults=123 ) Parameters: * **LicenseArns** (*list*) -- Amazon Resource Names (ARNs) of the licenses. * *(string) --* * **Filters** (*list*) -- Filters to scope the results. The following filters are supported: * "Beneficiary" * "ProductSKU" * "Fingerprint" * "Status" * *(dict) --* A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. * **Name** *(string) --* Name of the filter. Filter names are case-sensitive. * **Values** *(list) --* The value of the filter, which is case-sensitive. You can only specify one value for the filter. * *(string) --* * **NextToken** (*string*) -- Token for the next set of results. * **MaxResults** (*integer*) -- Maximum number of results to return in a single call. Return type: dict Returns: **Response Syntax** { 'Licenses': [ { 'LicenseArn': 'string', 'LicenseName': 'string', 'ProductName': 'string', 'ProductSKU': 'string', 'Issuer': { 'Name': 'string', 'SignKey': 'string', 'KeyFingerprint': 'string' }, 'HomeRegion': 'string', 'Status': 'AVAILABLE'|'PENDING_AVAILABLE'|'DEACTIVATED'|'SUSPENDED'|'EXPIRED'|'PENDING_DELETE'|'DELETED', 'Validity': { 'Begin': 'string', 'End': 'string' }, 'Beneficiary': 'string', 'Entitlements': [ { 'Name': 'string', 'Value': 'string', 'MaxCount': 123, 'Overage': True|False, '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', 'AllowCheckIn': True|False }, ], 'ConsumptionConfiguration': { 'RenewType': 'None'|'Weekly'|'Monthly', 'ProvisionalConfiguration': { 'MaxTimeToLiveInMinutes': 123 }, 'BorrowConfiguration': { 'AllowEarlyCheckIn': True|False, 'MaxTimeToLiveInMinutes': 123 } }, 'LicenseMetadata': [ { 'Name': 'string', 'Value': 'string' }, ], 'CreateTime': 'string', 'Version': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Licenses** *(list) --* License details. * *(dict) --* Software license that is managed in License Manager. * **LicenseArn** *(string) --* Amazon Resource Name (ARN) of the license. * **LicenseName** *(string) --* License name. * **ProductName** *(string) --* Product name. * **ProductSKU** *(string) --* Product SKU. * **Issuer** *(dict) --* License issuer. * **Name** *(string) --* Issuer name. * **SignKey** *(string) --* Asymmetric KMS key from Key Management Service. The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm. * **KeyFingerprint** *(string) --* Issuer key fingerprint. * **HomeRegion** *(string) --* Home Region of the license. * **Status** *(string) --* License status. * **Validity** *(dict) --* Date and time range during which the license is valid, in ISO8601-UTC format. * **Begin** *(string) --* Start of the time range. * **End** *(string) --* End of the time range. * **Beneficiary** *(string) --* License beneficiary. * **Entitlements** *(list) --* License entitlements. * *(dict) --* Describes a resource entitled for use with a license. * **Name** *(string) --* Entitlement name. * **Value** *(string) --* Entitlement resource. Use only if the unit is None. * **MaxCount** *(integer) --* Maximum entitlement count. Use if the unit is not None. * **Overage** *(boolean) --* Indicates whether overages are allowed. * **Unit** *(string) --* Entitlement unit. * **AllowCheckIn** *(boolean) --* Indicates whether check-ins are allowed. * **ConsumptionConfiguration** *(dict) --* Configuration for consumption of the license. * **RenewType** *(string) --* Renewal frequency. * **ProvisionalConfiguration** *(dict) --* Details about a provisional configuration. * **MaxTimeToLiveInMinutes** *(integer) --* Maximum time for the provisional configuration, in minutes. * **BorrowConfiguration** *(dict) --* Details about a borrow configuration. * **AllowEarlyCheckIn** *(boolean) --* Indicates whether early check-ins are allowed. * **MaxTimeToLiveInMinutes** *(integer) --* Maximum time for the borrow configuration, in minutes. * **LicenseMetadata** *(list) --* License metadata. * *(dict) --* Describes key/value pairs. * **Name** *(string) --* The key name. * **Value** *(string) --* The value. * **CreateTime** *(string) --* License creation time. * **Version** *(string) --* License version. * **NextToken** *(string) --* Token for the next set of results. **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" LicenseManager / Client / create_license_version create_license_version ********************** LicenseManager.Client.create_license_version(**kwargs) Creates a new version of the specified license. See also: AWS API Documentation **Request Syntax** response = client.create_license_version( LicenseArn='string', LicenseName='string', ProductName='string', Issuer={ 'Name': 'string', 'SignKey': 'string' }, HomeRegion='string', Validity={ 'Begin': 'string', 'End': 'string' }, LicenseMetadata=[ { 'Name': 'string', 'Value': 'string' }, ], Entitlements=[ { 'Name': 'string', 'Value': 'string', 'MaxCount': 123, 'Overage': True|False, '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', 'AllowCheckIn': True|False }, ], ConsumptionConfiguration={ 'RenewType': 'None'|'Weekly'|'Monthly', 'ProvisionalConfiguration': { 'MaxTimeToLiveInMinutes': 123 }, 'BorrowConfiguration': { 'AllowEarlyCheckIn': True|False, 'MaxTimeToLiveInMinutes': 123 } }, Status='AVAILABLE'|'PENDING_AVAILABLE'|'DEACTIVATED'|'SUSPENDED'|'EXPIRED'|'PENDING_DELETE'|'DELETED', ClientToken='string', SourceVersion='string' ) Parameters: * **LicenseArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the license. * **LicenseName** (*string*) -- **[REQUIRED]** License name. * **ProductName** (*string*) -- **[REQUIRED]** Product name. * **Issuer** (*dict*) -- **[REQUIRED]** License issuer. * **Name** *(string) --* **[REQUIRED]** Issuer name. * **SignKey** *(string) --* Asymmetric KMS key from Key Management Service. The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm. * **HomeRegion** (*string*) -- **[REQUIRED]** Home Region of the license. * **Validity** (*dict*) -- **[REQUIRED]** Date and time range during which the license is valid, in ISO8601-UTC format. * **Begin** *(string) --* **[REQUIRED]** Start of the time range. * **End** *(string) --* End of the time range. * **LicenseMetadata** (*list*) -- Information about the license. * *(dict) --* Describes key/value pairs. * **Name** *(string) --* The key name. * **Value** *(string) --* The value. * **Entitlements** (*list*) -- **[REQUIRED]** License entitlements. * *(dict) --* Describes a resource entitled for use with a license. * **Name** *(string) --* **[REQUIRED]** Entitlement name. * **Value** *(string) --* Entitlement resource. Use only if the unit is None. * **MaxCount** *(integer) --* Maximum entitlement count. Use if the unit is not None. * **Overage** *(boolean) --* Indicates whether overages are allowed. * **Unit** *(string) --* **[REQUIRED]** Entitlement unit. * **AllowCheckIn** *(boolean) --* Indicates whether check-ins are allowed. * **ConsumptionConfiguration** (*dict*) -- **[REQUIRED]** Configuration for consumption of the license. Choose a provisional configuration for workloads running with continuous connectivity. Choose a borrow configuration for workloads with offline usage. * **RenewType** *(string) --* Renewal frequency. * **ProvisionalConfiguration** *(dict) --* Details about a provisional configuration. * **MaxTimeToLiveInMinutes** *(integer) --* **[REQUIRED]** Maximum time for the provisional configuration, in minutes. * **BorrowConfiguration** *(dict) --* Details about a borrow configuration. * **AllowEarlyCheckIn** *(boolean) --* **[REQUIRED]** Indicates whether early check-ins are allowed. * **MaxTimeToLiveInMinutes** *(integer) --* **[REQUIRED]** Maximum time for the borrow configuration, in minutes. * **Status** (*string*) -- **[REQUIRED]** License status. * **ClientToken** (*string*) -- **[REQUIRED]** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. * **SourceVersion** (*string*) -- Current version of the license. Return type: dict Returns: **Response Syntax** { 'LicenseArn': 'string', 'Version': 'string', 'Status': 'AVAILABLE'|'PENDING_AVAILABLE'|'DEACTIVATED'|'SUSPENDED'|'EXPIRED'|'PENDING_DELETE'|'DELETED' } **Response Structure** * *(dict) --* * **LicenseArn** *(string) --* License ARN. * **Version** *(string) --* New version of the license. * **Status** *(string) --* License status. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.ResourceNotFoundException" * "LicenseManager.Client.exceptions.RedirectException" * "LicenseManager.Client.exceptions.ConflictException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / tag_resource tag_resource ************ LicenseManager.Client.tag_resource(**kwargs) Adds the specified tags to the specified resource. The following resources support tagging in License Manager: * Licenses * Grants * License configurations * Report generators See also: AWS API Documentation **Request Syntax** response = client.tag_resource( ResourceArn='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **ResourceArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the resource. The following examples provide an example ARN for each supported resource in License Manager: * Licenses - "arn:aws:license-manager::111122223333:license:l -EXAMPLE2da7646d6861033667f20e895" * Grants - "arn:aws:license-manager::111122223333:grant:g-EXA MPLE7b19f4a0ab73679b0beb52707" * License configurations - "arn:aws:license-manager:us- east-1:111122223333:license-configuration:lic- EXAMPLE6a788d4c8acd4264ff0ecf2ed2d" * Report generators - "arn:aws:license-manager:us- east-1:111122223333:report- generator:r-EXAMPLE825b4a4f8fe5a3e0c88824e5fc6" * **Tags** (*list*) -- **[REQUIRED]** One or more tags. * *(dict) --* Details about the tags for a resource. For more information about tagging support in License Manager, see the TagResource operation. * **Key** *(string) --* The tag key. * **Value** *(string) --* The tag value. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / list_license_specifications_for_resource list_license_specifications_for_resource **************************************** LicenseManager.Client.list_license_specifications_for_resource(**kwargs) Describes the license configurations for the specified 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]** Amazon Resource Name (ARN) of a resource that has an associated 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** { 'LicenseSpecifications': [ { 'LicenseConfigurationArn': 'string', 'AmiAssociationScope': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **LicenseSpecifications** *(list) --* License configurations associated with a resource. * *(dict) --* Details for associating a license configuration with a resource. * **LicenseConfigurationArn** *(string) --* Amazon Resource Name (ARN) of the license configuration. * **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.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / list_distributed_grants list_distributed_grants *********************** LicenseManager.Client.list_distributed_grants(**kwargs) Lists the grants distributed for the specified license. See also: AWS API Documentation **Request Syntax** response = client.list_distributed_grants( GrantArns=[ 'string', ], Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ], NextToken='string', MaxResults=123 ) Parameters: * **GrantArns** (*list*) -- Amazon Resource Names (ARNs) of the grants. * *(string) --* * **Filters** (*list*) -- Filters to scope the results. The following filters are supported: * "LicenseArn" * "GrantStatus" * "GranteePrincipalARN" * "ProductSKU" * "LicenseIssuerName" * *(dict) --* A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. * **Name** *(string) --* Name of the filter. Filter names are case-sensitive. * **Values** *(list) --* The value of the filter, which is case-sensitive. You can only specify one value for the filter. * *(string) --* * **NextToken** (*string*) -- Token for the next set of results. * **MaxResults** (*integer*) -- Maximum number of results to return in a single call. Return type: dict Returns: **Response Syntax** { 'Grants': [ { 'GrantArn': 'string', 'GrantName': 'string', 'ParentArn': 'string', 'LicenseArn': 'string', 'GranteePrincipalArn': 'string', 'HomeRegion': 'string', 'GrantStatus': 'PENDING_WORKFLOW'|'PENDING_ACCEPT'|'REJECTED'|'ACTIVE'|'FAILED_WORKFLOW'|'DELETED'|'PENDING_DELETE'|'DISABLED'|'WORKFLOW_COMPLETED', 'StatusReason': 'string', 'Version': 'string', 'GrantedOperations': [ 'CreateGrant'|'CheckoutLicense'|'CheckoutBorrowLicense'|'CheckInLicense'|'ExtendConsumptionLicense'|'ListPurchasedLicenses'|'CreateToken', ], 'Options': { 'ActivationOverrideBehavior': 'DISTRIBUTED_GRANTS_ONLY'|'ALL_GRANTS_PERMITTED_BY_ISSUER' } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Grants** *(list) --* Distributed grant details. * *(dict) --* Describes a grant. * **GrantArn** *(string) --* Amazon Resource Name (ARN) of the grant. * **GrantName** *(string) --* Grant name. * **ParentArn** *(string) --* Parent ARN. * **LicenseArn** *(string) --* License ARN. * **GranteePrincipalArn** *(string) --* The grantee principal ARN. * **HomeRegion** *(string) --* Home Region of the grant. * **GrantStatus** *(string) --* Grant status. * **StatusReason** *(string) --* Grant status reason. * **Version** *(string) --* Grant version. * **GrantedOperations** *(list) --* Granted operations. * *(string) --* * **Options** *(dict) --* The options specified for the grant. * **ActivationOverrideBehavior** *(string) --* An activation option for your grant that determines the behavior of activating a grant. Activation options can only be used with granted licenses sourced from the Amazon Web Services Marketplace. Additionally, the operation must specify the value of "ACTIVE" for the "Status" parameter. * As a license administrator, you can optionally specify an "ActivationOverrideBehavior" when activating a grant. * As a grantor, you can optionally specify an "ActivationOverrideBehavior" when you activate a grant for a grantee account in your organization. * As a grantee, if the grantor creating the distributed grant doesn’t specify an "ActivationOverrideBehavior", you can optionally specify one when you are activating the grant. DISTRIBUTED_GRANTS_ONLY Use this value to activate a grant without replacing any member account’s active grants for the same product. ALL_GRANTS_PERMITTED_BY_ISSUER Use this value to activate a grant and disable other active grants in any member accounts for the same product. This action will also replace their previously activated grants with this activated grant. * **NextToken** *(string) --* Token for the next set of results. **Exceptions** * "LicenseManager.Client.exceptions.ValidationException" * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / create_license_configuration create_license_configuration **************************** LicenseManager.Client.create_license_configuration(**kwargs) Creates a license configuration. 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), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), license affinity to host (how long a license must be associated with a host), and 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' }, ], DisassociateWhenNotFound=True|False, ProductInformationList=[ { 'ResourceType': 'string', 'ProductInformationFilterList': [ { 'ProductInformationFilterName': 'string', 'ProductInformationFilterValue': [ 'string', ], 'ProductInformationFilterComparator': 'string' }, ] }, ] ) Parameters: * **Name** (*string*) -- **[REQUIRED]** Name of the license configuration. * **Description** (*string*) -- Description of the license configuration. * **LicenseCountingType** (*string*) -- **[REQUIRED]** Dimension used to track the license inventory. * **LicenseCount** (*integer*) -- Number of licenses managed by the license configuration. * **LicenseCountHardLimit** (*boolean*) -- Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances. * **LicenseRules** (*list*) -- License rules. The syntax is #name=value (for example, #allowedTenancy=EC2-DedicatedHost). The available rules vary by dimension, as follows. * "Cores" dimension: "allowedTenancy" | "licenseAffinityToHost" | "maximumCores" | "minimumCores" * "Instances" dimension: "allowedTenancy" | "maximumVcpus" | "minimumVcpus" * "Sockets" dimension: "allowedTenancy" | "licenseAffinityToHost" | "maximumSockets" | "minimumSockets" * "vCPUs" dimension: "allowedTenancy" | "honorVcpuOptimization" | "maximumVcpus" | "minimumVcpus" The unit for "licenseAffinityToHost" is days and the range is 1 to 180. The possible values for "allowedTenancy" are "EC2-Default", "EC2-DedicatedHost", and "EC2-DedicatedInstance". The possible values for "honorVcpuOptimization" are "True" and "False". * *(string) --* * **Tags** (*list*) -- Tags to add to the license configuration. * *(dict) --* Details about the tags for a resource. For more information about tagging support in License Manager, see the TagResource operation. * **Key** *(string) --* The tag key. * **Value** *(string) --* The tag value. * **DisassociateWhenNotFound** (*boolean*) -- When true, disassociates a resource when software is uninstalled. * **ProductInformationList** (*list*) -- Product information. * *(dict) --* Describes product information for a license configuration. * **ResourceType** *(string) --* **[REQUIRED]** Resource type. The possible values are "SSM_MANAGED" | "RDS". * **ProductInformationFilterList** *(list) --* **[REQUIRED]** A Product information filter consists of a "ProductInformationFilterComparator" which is a logical operator, a "ProductInformationFilterName" which specifies the type of filter being declared, and a "ProductInformationFilterValue" that specifies the value to filter on. Accepted values for "ProductInformationFilterName" are listed here along with descriptions and valid options for "ProductInformationFilterComparator". The following filters and are supported when the resource type is "SSM_MANAGED": * "Application Name" - The name of the application. Logical operator is "EQUALS". * "Application Publisher" - The publisher of the application. Logical operator is "EQUALS". * "Application Version" - The version of the application. Logical operator is "EQUALS". * "Platform Name" - The name of the platform. Logical operator is "EQUALS". * "Platform Type" - The platform type. Logical operator is "EQUALS". * "Tag:key" - The key of a tag attached to an Amazon Web Services resource you wish to exclude from automated discovery. Logical operator is "NOT_EQUALS". The key for your tag must be appended to "Tag:" following the example: "Tag:name-of-your-key". "ProductInformationFilterValue" is optional if you are not using values for the key. * "AccountId" - The 12-digit ID of an Amazon Web Services account you wish to exclude from automated discovery. Logical operator is "NOT_EQUALS". * "License Included" - The type of license included. Logical operators are "EQUALS" and "NOT_EQUALS". Possible values are: "sql-server-enterprise" | "sql- server-standard" | "sql-server-web" | "windows-server- datacenter". The following filters and logical operators are supported when the resource type is "RDS": * "Engine Edition" - The edition of the database engine. Logical operator is "EQUALS". Possible values are: "oracle-ee" | "oracle-se" | "oracle-se1" | "oracle-se2" | "db2-se" | "db2-ae". * "License Pack" - The license pack. Logical operator is "EQUALS". Possible values are: "data guard" | "diagnostic pack sqlt" | "tuning pack sqlt" | "ols" | "olap". * *(dict) --* Describes product information filters. * **ProductInformationFilterName** *(string) --* **[REQUIRED]** Filter name. * **ProductInformationFilterValue** *(list) --* Filter value. * *(string) --* * **ProductInformationFilterComparator** *(string) --* **[REQUIRED]** Logical operator. Return type: dict Returns: **Response Syntax** { 'LicenseConfigurationArn': 'string' } **Response Structure** * *(dict) --* * **LicenseConfigurationArn** *(string) --* Amazon Resource Name (ARN) of the license configuration. **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.ServerInternalException" * "LicenseManager.Client.exceptions.ResourceLimitExceededException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" LicenseManager / Client / list_license_versions list_license_versions ********************* LicenseManager.Client.list_license_versions(**kwargs) Lists all versions of the specified license. See also: AWS API Documentation **Request Syntax** response = client.list_license_versions( LicenseArn='string', NextToken='string', MaxResults=123 ) Parameters: * **LicenseArn** (*string*) -- **[REQUIRED]** Amazon Resource Name (ARN) of the license. * **NextToken** (*string*) -- Token for the next set of results. * **MaxResults** (*integer*) -- Maximum number of results to return in a single call. Return type: dict Returns: **Response Syntax** { 'Licenses': [ { 'LicenseArn': 'string', 'LicenseName': 'string', 'ProductName': 'string', 'ProductSKU': 'string', 'Issuer': { 'Name': 'string', 'SignKey': 'string', 'KeyFingerprint': 'string' }, 'HomeRegion': 'string', 'Status': 'AVAILABLE'|'PENDING_AVAILABLE'|'DEACTIVATED'|'SUSPENDED'|'EXPIRED'|'PENDING_DELETE'|'DELETED', 'Validity': { 'Begin': 'string', 'End': 'string' }, 'Beneficiary': 'string', 'Entitlements': [ { 'Name': 'string', 'Value': 'string', 'MaxCount': 123, 'Overage': True|False, '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', 'AllowCheckIn': True|False }, ], 'ConsumptionConfiguration': { 'RenewType': 'None'|'Weekly'|'Monthly', 'ProvisionalConfiguration': { 'MaxTimeToLiveInMinutes': 123 }, 'BorrowConfiguration': { 'AllowEarlyCheckIn': True|False, 'MaxTimeToLiveInMinutes': 123 } }, 'LicenseMetadata': [ { 'Name': 'string', 'Value': 'string' }, ], 'CreateTime': 'string', 'Version': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Licenses** *(list) --* License details. * *(dict) --* Software license that is managed in License Manager. * **LicenseArn** *(string) --* Amazon Resource Name (ARN) of the license. * **LicenseName** *(string) --* License name. * **ProductName** *(string) --* Product name. * **ProductSKU** *(string) --* Product SKU. * **Issuer** *(dict) --* License issuer. * **Name** *(string) --* Issuer name. * **SignKey** *(string) --* Asymmetric KMS key from Key Management Service. The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm. * **KeyFingerprint** *(string) --* Issuer key fingerprint. * **HomeRegion** *(string) --* Home Region of the license. * **Status** *(string) --* License status. * **Validity** *(dict) --* Date and time range during which the license is valid, in ISO8601-UTC format. * **Begin** *(string) --* Start of the time range. * **End** *(string) --* End of the time range. * **Beneficiary** *(string) --* License beneficiary. * **Entitlements** *(list) --* License entitlements. * *(dict) --* Describes a resource entitled for use with a license. * **Name** *(string) --* Entitlement name. * **Value** *(string) --* Entitlement resource. Use only if the unit is None. * **MaxCount** *(integer) --* Maximum entitlement count. Use if the unit is not None. * **Overage** *(boolean) --* Indicates whether overages are allowed. * **Unit** *(string) --* Entitlement unit. * **AllowCheckIn** *(boolean) --* Indicates whether check-ins are allowed. * **ConsumptionConfiguration** *(dict) --* Configuration for consumption of the license. * **RenewType** *(string) --* Renewal frequency. * **ProvisionalConfiguration** *(dict) --* Details about a provisional configuration. * **MaxTimeToLiveInMinutes** *(integer) --* Maximum time for the provisional configuration, in minutes. * **BorrowConfiguration** *(dict) --* Details about a borrow configuration. * **AllowEarlyCheckIn** *(boolean) --* Indicates whether early check-ins are allowed. * **MaxTimeToLiveInMinutes** *(integer) --* Maximum time for the borrow configuration, in minutes. * **LicenseMetadata** *(list) --* License metadata. * *(dict) --* Describes key/value pairs. * **Name** *(string) --* The key name. * **Value** *(string) --* The value. * **CreateTime** *(string) --* License creation time. * **Version** *(string) --* License version. * **NextToken** *(string) --* Token for the next set of results. **Exceptions** * "LicenseManager.Client.exceptions.InvalidParameterValueException" * "LicenseManager.Client.exceptions.AuthorizationException" * "LicenseManager.Client.exceptions.AccessDeniedException" * "LicenseManager.Client.exceptions.RateLimitExceededException" * "LicenseManager.Client.exceptions.ServerInternalException"