import * as pulumi from "@pulumi/pulumi"; /** * This resource is used to manage the roles assigned to an organization member. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * const reader = new auth0.Role("reader", {name: "Reader"}); * const writer = new auth0.Role("writer", {name: "Writer"}); * const user = new auth0.User("user", { * connectionName: "Username-Password-Authentication", * email: "test-user@auth0.com", * password: "MyPass123$", * }); * const myOrg = new auth0.Organization("my_org", { * name: "some-org", * displayName: "Some Org", * }); * const myOrgMember = new auth0.OrganizationMember("my_org_member", { * organizationId: myOrg.id, * userId: user.id, * }); * const role1 = new auth0.OrganizationMemberRole("role1", { * organizationId: myOrg.id, * userId: user.id, * roleId: reader.id, * }); * const role2 = new auth0.OrganizationMemberRole("role2", { * organizationId: myOrg.id, * userId: user.id, * roleId: writer.id, * }); * ``` * * ## Import * * This resource can be imported by specifying the * * organization ID, user ID and role ID separated by "::" (note the double colon) * * :::: * * Example: * * ```sh * $ pulumi import auth0:index/organizationMemberRole:OrganizationMemberRole my_org_member_role "org_XXXXX::auth0|XXXXX::role_XXXX" * ``` */ export declare class OrganizationMemberRole extends pulumi.CustomResource { /** * Get an existing OrganizationMemberRole 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?: OrganizationMemberRoleState, opts?: pulumi.CustomResourceOptions): OrganizationMemberRole; /** * Returns true if the given object is an instance of OrganizationMemberRole. 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 OrganizationMemberRole; /** * The ID of the organization. */ readonly organizationId: pulumi.Output; /** * Description of the role. */ readonly roleDescription: pulumi.Output; /** * The role ID to assign to the organization member. */ readonly roleId: pulumi.Output; /** * Name of the role. */ readonly roleName: pulumi.Output; /** * The user ID of the organization member. */ readonly userId: pulumi.Output; /** * Create a OrganizationMemberRole 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: OrganizationMemberRoleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OrganizationMemberRole resources. */ export interface OrganizationMemberRoleState { /** * The ID of the organization. */ organizationId?: pulumi.Input; /** * Description of the role. */ roleDescription?: pulumi.Input; /** * The role ID to assign to the organization member. */ roleId?: pulumi.Input; /** * Name of the role. */ roleName?: pulumi.Input; /** * The user ID of the organization member. */ userId?: pulumi.Input; } /** * The set of arguments for constructing a OrganizationMemberRole resource. */ export interface OrganizationMemberRoleArgs { /** * The ID of the organization. */ organizationId: pulumi.Input; /** * The role ID to assign to the organization member. */ roleId: pulumi.Input; /** * The user ID of the organization member. */ userId: pulumi.Input; }