License Configuration Args
Provides a License Manager license configuration resource.
Note: Removing the
license_count
attribute is not supported by the License Manager API - recreate the resource instead.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.licensemanager.LicenseConfiguration;
import com.pulumi.aws.licensemanager.LicenseConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new LicenseConfiguration("example", LicenseConfigurationArgs.builder()
.description("Example")
.licenseCount(10)
.licenseCountHardLimit(true)
.licenseCountingType("Socket")
.licenseRules("#minimumSockets=2")
.tags(Map.of("foo", "barr"))
.build());
}
}
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 ofEC2-Default
,EC2-DedicatedHost
,EC2-DedicatedInstance
Import
License configurations can be imported using the id
, e.g.,
$ pulumi import aws:licensemanager/licenseConfiguration:LicenseConfiguration example arn:aws:license-manager:eu-west-1:123456789012:license-configuration:lic-0123456789abcdef0123456789abcdef
Properties
Description of the license configuration.
Number of licenses managed by the license configuration.
Sets the number of available licenses as a hard limit.
Dimension to use to track license inventory. Specify either vCPU
, Instance
, Core
or Socket
.
Array of configured License Manager rules.