ListWorkspaceServiceAccountTokens
Source:
src/AWS/Grafana/ListWorkspaceServiceAccountTokens.ts
Runtime binding for the ListWorkspaceServiceAccountTokens operation
(IAM action grafana:ListWorkspaceServiceAccountTokens), scoped to one
Workspace.
Lists the API tokens of a Grafana service account (metadata only — the
secret key is only returned at mint time). Provide the implementation with
Effect.provide(AWS.Grafana.ListWorkspaceServiceAccountTokensHttp).
Managing Service Accounts
Section titled “Managing Service Accounts”const listTokens = yield* Grafana.ListWorkspaceServiceAccountTokens(workspace);
const { serviceAccountTokens } = yield* listTokens({ serviceAccountId: account.id,});const expired = serviceAccountTokens.filter( (token) => token.expiresAt.getTime() < Date.now(),);