Resource: awsLicensemanagerLicenseConfiguration
Provides a License Manager license configuration resource.
\~> Note: Removing the licenseCount
attribute is not supported by the License Manager API - use terraformTaintAwsLicensemanagerLicenseConfiguration.<id>
to recreate the resource instead.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.licensemanagerLicenseConfiguration.LicensemanagerLicenseConfiguration(
this,
"example",
{
description: "Example",
licenseCount: 10,
licenseCountHardLimit: true,
licenseCountingType: "Socket",
licenseRules: ["#minimumSockets=2"],
name: "Example",
tags: {
foo: "barr",
},
}
);
Argument Reference
The following arguments are supported:
name
- (Required) Name of the license configuration.description
- (Optional) Description of the license configuration.licenseCount
- (Optional) Number of licenses managed by the license configuration.licenseCountHardLimit
- (Optional) Sets the number of available licenses as a hard limit.licenseCountingType
- (Required) Dimension to use to track license inventory. Specify eithervCpu
,instance
,core
orsocket
.licenseRules
- (Optional) Array of configured License Manager rules.tags
- (Optional) A map of tags to assign to the resource. If configured with a providerdefaultTags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Rules
License rules should be in the format of #ruleType=ruleValue
. Supported rule types:
minimumVcpus
- Resource must have minimum vCPU count in order to use the license. Default: 1maximumVcpus
- Resource must have maximum vCPU count in order to use the license. Default: unbounded, limit: 10000minimumCores
- Resource must have minimum core count in order to use the license. Default: 1maximumCores
- Resource must have maximum core count in order to use the license. Default: unbounded, limit: 10000minimumSockets
- Resource must have minimum socket count in order to use the license. Default: 1maximumSockets
- Resource must have maximum socket count in order to use the license. Default: unbounded, limit: 10000allowedTenancy
- Defines where the license can be used. If set, restricts license usage to selected tenancies. Specify a comma delimited list ofec2Default
,ec2DedicatedHost
,ec2DedicatedInstance
Attributes Reference
In addition to all arguments above, the following attributes are exported:
arn
- The license configuration ARN.id
- The license configuration ARN.ownerAccountId
- Account ID of the owner of the license configuration.tagsAll
- A map of tags assigned to the resource, including those inherited from the providerdefaultTags
configuration block.
Import
License configurations can be imported using the id
, e.g.,