{
  "$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-request-schema.json",
  "title": "CreateWorkspaceServiceAccountRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-managed-grafana-serviceaccounts-api-openapi.yml#/components/schemas/CreateWorkspaceServiceAccountRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "A name for the service account. The name must be unique within the workspace, as it determines the ID associated with the service account."
    },
    "grafanaRole": {
      "type": "string",
      "description": "The permission level to use for this service account. For more information about the roles and the permissions each has, see User roles in the Amazon Managed Grafana User Guide."
    },
    "workspaceId": {
      "type": "string",
      "description": "The ID of the workspace within which to create the service account."
    }
  },
  "required": [
    "name",
    "grafanaRole",
    "workspaceId"
  ]
}