{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-managed-grafana/json-schema/amazon-managed-grafana-create-workspace-service-account-token-request-schema.json",
  "title": "CreateWorkspaceServiceAccountTokenRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-managed-grafana-tokens-api-openapi.yml#/components/schemas/CreateWorkspaceServiceAccountTokenRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "A name for the token to create."
    },
    "secondsToLive": {
      "type": "integer",
      "description": "Sets how long the token will be valid, in seconds. You can set the time up to 30 days in the future."
    },
    "serviceAccountId": {
      "type": "string",
      "description": "The ID of the service account for which to create a token."
    },
    "workspaceId": {
      "type": "string",
      "description": "The ID of the workspace the service account resides within."
    }
  },
  "required": [
    "name",
    "secondsToLive",
    "serviceAccountId",
    "workspaceId"
  ]
}