Module Values.CreateWorkspaceServiceAccountRequestSource

Creates a service account for the workspace. A service account can be used to call Grafana HTTP APIs, and run automated workloads. After creating the service account with the correct GrafanaRole for your use case, use CreateWorkspaceServiceAccountToken to create a token that can be used to authenticate and authorize Grafana HTTP API calls. You can only create service accounts for workspaces that are compatible with Grafana version 9 and above. For more information about service accounts, see Service accounts in the Amazon Managed Grafana User Guide. For more information about the Grafana HTTP APIs, see Using Grafana HTTP APIs in the Amazon Managed Grafana User Guide.

Sourcetype nonrec t = {
  1. name : ServiceAccountName.t;
    (*

    A name for the service account. The name must be unique within the workspace, as it determines the ID associated with the service account.

    *)
  2. grafanaRole : Role.t;
    (*

    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.

    *)
  3. workspaceId : WorkspaceId.t;
    (*

    The ID of the workspace within which to create the service account.

    *)
}
Sourceval context_ : string
Sourceval make : name:ServiceAccountName.t -> grafanaRole:Role.t -> workspaceId:WorkspaceId.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of ServiceAccountName.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t