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 myOrgMemberRoles = new auth0.OrganizationMemberRoles("my_org_member_roles", { * organizationId: myOrg.id, * userId: user.id, * roles: [ * reader.id, * writer.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/organizationMemberRoles:OrganizationMemberRoles my_org_member_roles "org_XXXXX::auth0|XXXXX" * ``` */ export declare class OrganizationMemberRoles extends pulumi.CustomResource { /** * Get an existing OrganizationMemberRoles 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?: OrganizationMemberRolesState, opts?: pulumi.CustomResourceOptions): OrganizationMemberRoles; /** * Returns true if the given object is an instance of OrganizationMemberRoles. 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 OrganizationMemberRoles; /** * The ID of the organization. */ readonly organizationId: pulumi.Output; /** * The role ID(s) to assign to the organization member. */ readonly roles: pulumi.Output; /** * The user ID of the organization member. */ readonly userId: pulumi.Output; /** * Create a OrganizationMemberRoles 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: OrganizationMemberRolesArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OrganizationMemberRoles resources. */ export interface OrganizationMemberRolesState { /** * The ID of the organization. */ organizationId?: pulumi.Input; /** * The role ID(s) to assign to the organization member. */ roles?: pulumi.Input[]>; /** * The user ID of the organization member. */ userId?: pulumi.Input; } /** * The set of arguments for constructing a OrganizationMemberRoles resource. */ export interface OrganizationMemberRolesArgs { /** * The ID of the organization. */ organizationId: pulumi.Input; /** * The role ID(s) to assign to the organization member. */ roles: pulumi.Input[]>; /** * The user ID of the organization member. */ userId: pulumi.Input; }