LicenseConfiguration
Source:
src/AWS/LicenseManager/LicenseConfiguration.ts
An AWS License Manager license configuration — an abstraction of a customer license agreement that License Manager can track and enforce.
A license configuration specifies the licensing dimension (vCPUs, instances, cores, or sockets), an optional license count, and whether the count is a hard limit that blocks new launches once consumed.
Creating License Configurations
Section titled “Creating License Configurations”Track licenses by vCPU
import * as LicenseManager from "alchemy/AWS/LicenseManager";
const licenses = yield* LicenseManager.LicenseConfiguration("Licenses", { licenseCountingType: "vCPU",});Enforce a hard license limit
const licenses = yield* LicenseManager.LicenseConfiguration("Licenses", { licenseCountingType: "Instance", licenseCount: 10, licenseCountHardLimit: true,});Socket licensing with dedicated-host rules
const licenses = yield* LicenseManager.LicenseConfiguration("Licenses", { licenseCountingType: "Socket", licenseCount: 4, licenseRules: ["#allowedTenancy=EC2-DedicatedHost"], description: "Oracle DB socket licenses",});