import * as pulumi from "@pulumi/pulumi"; /** * This resource is used to manage the assignment of members and their roles within an organization. * * !> This resource appends a member to an organization. In contrast, the `auth0.OrganizationMembers` resource manages * all the members assigned to an organization. To avoid potential issues, it is recommended not to use this resource in * conjunction with the `auth0.OrganizationMembers` resource when managing members for the same organization id. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * const user = new auth0.User("user", { * email: "test-user@auth0.com", * connectionName: "Username-Password-Authentication", * emailVerified: true, * password: "MyPass123$", * }); * const myOrg = new auth0.Organization("my_org", { * name: "org-admin", * displayName: "Admin", * }); * const myOrgMember = new auth0.OrganizationMember("my_org_member", { * organizationId: myOrg.id, * userId: user.id, * }); * ``` * * ## Import * * This resource can be imported by specifying the * * organization ID and user ID separated by "::" (note the double colon) * * :: * * Example: * * ```sh * $ pulumi import auth0:index/organizationMember:OrganizationMember my_org_member "org_XXXXX::auth0|XXXXX" * ``` */ export declare class OrganizationMember extends pulumi.CustomResource { /** * Get an existing OrganizationMember 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?: OrganizationMemberState, opts?: pulumi.CustomResourceOptions): OrganizationMember; /** * Returns true if the given object is an instance of OrganizationMember. 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 OrganizationMember; /** * The ID of the organization to assign the member to. */ readonly organizationId: pulumi.Output; /** * ID of the user to add as an organization member. */ readonly userId: pulumi.Output; /** * Create a OrganizationMember 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: OrganizationMemberArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OrganizationMember resources. */ export interface OrganizationMemberState { /** * The ID of the organization to assign the member to. */ organizationId?: pulumi.Input; /** * ID of the user to add as an organization member. */ userId?: pulumi.Input; } /** * The set of arguments for constructing a OrganizationMember resource. */ export interface OrganizationMemberArgs { /** * The ID of the organization to assign the member to. */ organizationId: pulumi.Input; /** * ID of the user to add as an organization member. */ userId: pulumi.Input; }