Skip to content

CheckoutBorrowLicense

Source: src/AWS/LicenseManager/CheckoutBorrowLicense.ts

Runtime binding for license-manager:CheckoutBorrowLicense — check out an offline-capable (borrow) entitlement from a seller-issued license that allows borrowing. The signed token proves the entitlement while the consumer is disconnected.

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

// init
const checkoutBorrow = yield* AWS.LicenseManager.CheckoutBorrowLicense();
// runtime
const borrowed = yield* checkoutBorrow({
LicenseArn: licenseArn,
Entitlements: [{ Name: "seats", Value: "1", Unit: "Count" }],
DigitalSignatureMethod: "JWT_PS384",
ClientToken: crypto.randomUUID(),
});