Skip to content

AssociateLicense

Source: src/AWS/Grafana/AssociateLicense.ts

Runtime binding for the AssociateLicense operation (IAM action grafana:AssociateLicense), scoped to one Workspace.

Assigns a Grafana Enterprise license to the workspace. Pass a valid Grafana Labs token as grafanaToken when upgrading to ENTERPRISE. Upgrading incurs additional fees. Provide the implementation with Effect.provide(AWS.Grafana.AssociateLicenseHttp).

const associateLicense = yield* Grafana.AssociateLicense(workspace);
const { workspace: ws } = yield* associateLicense({
licenseType: "ENTERPRISE",
grafanaToken: token,
});
// ws.licenseType → "ENTERPRISE"