Skip to content

GetLicenseConfiguration

Source: src/AWS/LicenseManager/GetLicenseConfiguration.ts

Runtime binding for license-manager:GetLicenseConfiguration — read the bound license configuration’s live state (counting type, license count, consumed count, rules, status) from a deployed Lambda or Task.

Provide the implementation with Effect.provide(AWS.LicenseManager.GetLicenseConfigurationHttp).

// init
const getConfiguration =
yield* AWS.LicenseManager.GetLicenseConfiguration(licenses);
// runtime
const config = yield* getConfiguration();
const remaining =
(config.LicenseCount ?? 0) - (config.ConsumedLicenses ?? 0);
// on the Function effect:
// .pipe(Effect.provide(AWS.LicenseManager.GetLicenseConfigurationHttp))