CreateLicenseConfiguration - Amazon License Manager
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


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.

Request Syntax

{ "Description": "string", "DisassociateWhenNotFound": boolean, "LicenseCount": number, "LicenseCountHardLimit": boolean, "LicenseCountingType": "string", "LicenseRules": [ "string" ], "Name": "string", "ProductInformationList": [ { "ProductInformationFilterList": [ { "ProductInformationFilterComparator": "string", "ProductInformationFilterName": "string", "ProductInformationFilterValue": [ "string" ] } ], "ResourceType": "string" } ], "Tags": [ { "Key": "string", "Value": "string" } ] }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.


Description of the license configuration.

Type: String

Required: No


When true, disassociates a resource when software is uninstalled.

Type: Boolean

Required: No


Number of licenses managed by the license configuration.

Type: Long

Required: No


Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances.

Type: Boolean

Required: No


Dimension used to track the license inventory.

Type: String

Valid Values: vCPU | Instance | Core | Socket

Required: Yes


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.

Type: Array of strings

Required: No


Name of the license configuration.

Type: String

Required: Yes


Product information.

Type: Array of ProductInformation objects

Required: No


Tags to add to the license configuration.

Type: Array of Tag objects

Required: No

Response Syntax

{ "LicenseConfigurationArn": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.


Amazon Resource Name (ARN) of the license configuration.

Type: String


For information about the errors that are common to all actions, see Common Errors.


Access to resource denied.

HTTP Status Code: 400


The Amazon user account does not have permission to perform the action. Check the IAM policy associated with this account.

HTTP Status Code: 400


One or more parameter values are not valid.

HTTP Status Code: 400


Too many requests have been submitted. Try again after a brief wait.

HTTP Status Code: 400


Your resource limits have been exceeded.

HTTP Status Code: 400


The server experienced an internal error. Try again.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: