import * as pulumi from "@pulumi/pulumi"; export declare class User extends pulumi.CustomResource { /** * Get an existing User 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?: UserState, opts?: pulumi.CustomResourceOptions): User; /** * Returns true if the given object is an instance of User. 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 User; /** * Description applied to the generated Portainer API key. Only used when generateApiKey is true. */ readonly apiKeyDescription: pulumi.Output; /** * Raw API key generated by Portainer when generateApiKey is true. Computed and only available after initial creation. */ readonly apiKeyRaw: pulumi.Output; /** * Whether to generate a Portainer API key for the user during creation. Requires password to be set. */ readonly generateApiKey: pulumi.Output; /** * Whether the user is authenticated via LDAP. When true, password must be empty and authentication is delegated to the configured LDAP server. */ readonly ldapUser: pulumi.Output; /** * Password for the Portainer user. Required for non-LDAP users; must be omitted for LDAP users. Stored in state as a sensitive value. */ readonly password: pulumi.Output; /** * Portainer role of the user: 1 = administrator, 2 = standard user. Defaults to 2. */ readonly role: pulumi.Output; /** * Optional Portainer team ID. Only applicable for standard users (role = 2). */ readonly teamId: pulumi.Output; readonly userId: pulumi.Output; /** * Username used to log in to Portainer. Must be unique within the Portainer instance. */ readonly username: pulumi.Output; /** * Create a User 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: UserArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering User resources. */ export interface UserState { /** * Description applied to the generated Portainer API key. Only used when generateApiKey is true. */ apiKeyDescription?: pulumi.Input; /** * Raw API key generated by Portainer when generateApiKey is true. Computed and only available after initial creation. */ apiKeyRaw?: pulumi.Input; /** * Whether to generate a Portainer API key for the user during creation. Requires password to be set. */ generateApiKey?: pulumi.Input; /** * Whether the user is authenticated via LDAP. When true, password must be empty and authentication is delegated to the configured LDAP server. */ ldapUser?: pulumi.Input; /** * Password for the Portainer user. Required for non-LDAP users; must be omitted for LDAP users. Stored in state as a sensitive value. */ password?: pulumi.Input; /** * Portainer role of the user: 1 = administrator, 2 = standard user. Defaults to 2. */ role?: pulumi.Input; /** * Optional Portainer team ID. Only applicable for standard users (role = 2). */ teamId?: pulumi.Input; userId?: pulumi.Input; /** * Username used to log in to Portainer. Must be unique within the Portainer instance. */ username?: pulumi.Input; } /** * The set of arguments for constructing a User resource. */ export interface UserArgs { /** * Description applied to the generated Portainer API key. Only used when generateApiKey is true. */ apiKeyDescription?: pulumi.Input; /** * Whether to generate a Portainer API key for the user during creation. Requires password to be set. */ generateApiKey?: pulumi.Input; /** * Whether the user is authenticated via LDAP. When true, password must be empty and authentication is delegated to the configured LDAP server. */ ldapUser?: pulumi.Input; /** * Password for the Portainer user. Required for non-LDAP users; must be omitted for LDAP users. Stored in state as a sensitive value. */ password?: pulumi.Input; /** * Portainer role of the user: 1 = administrator, 2 = standard user. Defaults to 2. */ role?: pulumi.Input; /** * Optional Portainer team ID. Only applicable for standard users (role = 2). */ teamId?: pulumi.Input; userId?: pulumi.Input; /** * Username used to log in to Portainer. Must be unique within the Portainer instance. */ username: pulumi.Input; } //# sourceMappingURL=user.d.ts.map