CreateToken
Source:
src/AWS/LicenseManager/CreateToken.ts
Runtime binding for license-manager:CreateToken — mint a long-lived
refresh token for a license. The token (a claims-based JWT, Redacted
end-to-end) is distributed to license consumers, who exchange it for
temporary credentials with GetAccessToken +
AssumeRoleWithWebIdentity.
Provide the implementation with
Effect.provide(AWS.LicenseManager.CreateTokenHttp).
License Checkout Data Plane
Section titled “License Checkout Data Plane”// initconst createToken = yield* AWS.LicenseManager.CreateToken();
// runtime — Token is Redacted; hand it to the consumer without logging itconst { TokenId, Token } = yield* createToken({ LicenseArn: licenseArn, ClientToken: crypto.randomUUID(),});