import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * **Note:** This resource is available from Grafana 9.2.4 onwards. * * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/service-accounts/#manage-users-and-teams-permissions-for-a-service-account-in-grafana) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@lbrlabs/pulumi-grafana"; * * const test = new grafana.ServiceAccount("test", { * role: "Editor", * isDisabled: false, * }); * const testTeam = new grafana.Team("testTeam", {}); * const testUser = new grafana.User("testUser", { * email: "tf_user@test.com", * login: "tf_user@test.com", * password: "password", * }); * const testPermissions = new grafana.ServiceAccountPermission("testPermissions", { * serviceAccountId: test.id, * permissions: [ * { * userId: testUser.id, * permission: "Edit", * }, * { * teamId: testTeam.id, * permission: "Admin", * }, * ], * }); * ``` */ export declare class ServiceAccountPermission extends pulumi.CustomResource { /** * Get an existing ServiceAccountPermission resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ServiceAccountPermissionState, opts?: pulumi.CustomResourceOptions): ServiceAccountPermission; /** * Returns true if the given object is an instance of ServiceAccountPermission. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ServiceAccountPermission; /** * The Organization ID. If not set, the Org ID defined in the provider block will be used. */ readonly orgId: pulumi.Output; /** * The permission items to add/update. Items that are omitted from the list will be removed. */ readonly permissions: pulumi.Output; /** * The id of the service account. */ readonly serviceAccountId: pulumi.Output; /** * Create a ServiceAccountPermission resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ServiceAccountPermissionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ServiceAccountPermission resources. */ export interface ServiceAccountPermissionState { /** * The Organization ID. If not set, the Org ID defined in the provider block will be used. */ orgId?: pulumi.Input; /** * The permission items to add/update. Items that are omitted from the list will be removed. */ permissions?: pulumi.Input[]>; /** * The id of the service account. */ serviceAccountId?: pulumi.Input; } /** * The set of arguments for constructing a ServiceAccountPermission resource. */ export interface ServiceAccountPermissionArgs { /** * The Organization ID. If not set, the Org ID defined in the provider block will be used. */ orgId?: pulumi.Input; /** * The permission items to add/update. Items that are omitted from the list will be removed. */ permissions: pulumi.Input[]>; /** * The id of the service account. */ serviceAccountId: pulumi.Input; }