@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
94 lines (93 loc) • 3.08 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages the membership of a user in an organization.
*
* ## Import
*
* ```sh
* terraform import grafana_cloud_org_member.name "{{ orgSlugOrID }}:{{ usernameOrID }}"
* ```
*/
export declare class OrgMember extends pulumi.CustomResource {
/**
* Get an existing OrgMember 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?: OrgMemberState, opts?: pulumi.CustomResourceOptions): OrgMember;
/**
* Returns true if the given object is an instance of OrgMember. 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 OrgMember;
/**
* The slug or ID of the organization.
*/
readonly org: pulumi.Output<string>;
/**
* Whether the user should receive billing emails.
*/
readonly receiveBillingEmails: pulumi.Output<boolean>;
/**
* The role to assign to the user in the organization.
*/
readonly role: pulumi.Output<string>;
/**
* Username or ID of the user to add to the org's members.
*/
readonly user: pulumi.Output<string>;
/**
* Create a OrgMember 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: OrgMemberArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering OrgMember resources.
*/
export interface OrgMemberState {
/**
* The slug or ID of the organization.
*/
org?: pulumi.Input<string>;
/**
* Whether the user should receive billing emails.
*/
receiveBillingEmails?: pulumi.Input<boolean>;
/**
* The role to assign to the user in the organization.
*/
role?: pulumi.Input<string>;
/**
* Username or ID of the user to add to the org's members.
*/
user?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a OrgMember resource.
*/
export interface OrgMemberArgs {
/**
* The slug or ID of the organization.
*/
org: pulumi.Input<string>;
/**
* Whether the user should receive billing emails.
*/
receiveBillingEmails?: pulumi.Input<boolean>;
/**
* The role to assign to the user in the organization.
*/
role: pulumi.Input<string>;
/**
* Username or ID of the user to add to the org's members.
*/
user: pulumi.Input<string>;
}