Skip to content

CreateGrantVersion

Source: src/AWS/LicenseManager/CreateGrantVersion.ts

Runtime binding for license-manager:CreateGrantVersion — publish a new version of an existing grant. This is also how a recipient activates an accepted grant: create a version with Status: "ACTIVE" (and how a grantor amends allowed operations or deactivates a grant).

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

// init
const createGrantVersion = yield* AWS.LicenseManager.CreateGrantVersion();
// runtime — after acceptGrant({ GrantArn })
yield* createGrantVersion({
GrantArn: grantArn,
Status: "ACTIVE",
ClientToken: crypto.randomUUID(),
});