Skip to content

DeleteWorkspaceServiceAccount

Source: src/AWS/Grafana/DeleteWorkspaceServiceAccount.ts

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

Deletes a Grafana service account from the workspace. Any API tokens minted for the account stop working immediately. Provide the implementation with Effect.provide(AWS.Grafana.DeleteWorkspaceServiceAccountHttp).

const deleteServiceAccount =
yield* Grafana.DeleteWorkspaceServiceAccount(workspace);
yield* deleteServiceAccount({ serviceAccountId: account.id });