Skip to content

DeleteWorkspaceServiceAccountToken

Source: src/AWS/Grafana/DeleteWorkspaceServiceAccountToken.ts

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

Revokes a service account API token — the other half of a token-rotation loop. Provide the implementation with Effect.provide(AWS.Grafana.DeleteWorkspaceServiceAccountTokenHttp).

const deleteToken =
yield* Grafana.DeleteWorkspaceServiceAccountToken(workspace);
yield* deleteToken({
serviceAccountId: account.id,
tokenId: staleToken.id,
});