UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

90 lines (89 loc) 3.03 kB
import * as pulumi from "@pulumi/pulumi"; /** * Equivalent to the the `teamSync` attribute of the `grafana.oss.Team` resource. Use one or the other to configure a team's external groups syncing config. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumiverse/grafana"; * * const myTeam = new grafana.oss.Team("my_team", {name: "My Team"}); * const test_team_group = new grafana.enterprise.TeamExternalGroup("test-team-group", { * teamId: myTeam.id, * groups: [ * "test-group-1", * "test-group-2", * ], * }); * ``` * * ## Import * * ```sh * $ pulumi import grafana:enterprise/teamExternalGroup:TeamExternalGroup name "{{ teamID }}" * ``` * * ```sh * $ pulumi import grafana:enterprise/teamExternalGroup:TeamExternalGroup name "{{ orgID }}:{{ teamID }}" * ``` */ export declare class TeamExternalGroup extends pulumi.CustomResource { /** * Get an existing TeamExternalGroup 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<pulumi.ID>, state?: TeamExternalGroupState, opts?: pulumi.CustomResourceOptions): TeamExternalGroup; /** * Returns true if the given object is an instance of TeamExternalGroup. 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 TeamExternalGroup; /** * The team external groups list */ readonly groups: pulumi.Output<string[]>; /** * The Team ID */ readonly teamId: pulumi.Output<string>; /** * Create a TeamExternalGroup 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: TeamExternalGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TeamExternalGroup resources. */ export interface TeamExternalGroupState { /** * The team external groups list */ groups?: pulumi.Input<pulumi.Input<string>[]>; /** * The Team ID */ teamId?: pulumi.Input<string>; } /** * The set of arguments for constructing a TeamExternalGroup resource. */ export interface TeamExternalGroupArgs { /** * The team external groups list */ groups: pulumi.Input<pulumi.Input<string>[]>; /** * The Team ID */ teamId: pulumi.Input<string>; }