import * as pulumi from "@pulumi/pulumi"; /** * SASL user details * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const kafkaUserDemo = new volcenginecc.kafka.User("KafkaUserDemo", { * instanceId: "kafka-cnngavomxxxxxx", * userName: "user1123", * userPassword: "********", * allAuthority: true, * description: "vip", * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:kafka/user:User example "instance_id|user_name" * ``` */ 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; /** * Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions * for all Topics - false: This user does not have read and write permissions for all Topics */ readonly allAuthority: pulumi.Output; /** * SASL user creation time */ readonly createTime: pulumi.Output; /** * SASL user description */ readonly description: pulumi.Output; /** * Instance ID to which the user belongs */ readonly instanceId: pulumi.Output; /** * SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type * **Note:** If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation. */ readonly passwordType: pulumi.Output; /** * SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - * Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance */ readonly userName: pulumi.Output; /** * SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of * the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters: * `!@#$%^&*()_+-=` */ readonly userPassword: 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 { /** * Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions * for all Topics - false: This user does not have read and write permissions for all Topics */ allAuthority?: pulumi.Input; /** * SASL user creation time */ createTime?: pulumi.Input; /** * SASL user description */ description?: pulumi.Input; /** * Instance ID to which the user belongs */ instanceId?: pulumi.Input; /** * SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type * **Note:** If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation. */ passwordType?: pulumi.Input; /** * SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - * Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance */ userName?: pulumi.Input; /** * SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of * the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters: * `!@#$%^&*()_+-=` */ userPassword?: pulumi.Input; } /** * The set of arguments for constructing a User resource. */ export interface UserArgs { /** * Whether the user has default read and write permissions for all Topics - true: This user has read and write permissions * for all Topics - false: This user does not have read and write permissions for all Topics */ allAuthority: pulumi.Input; /** * SASL user description */ description?: pulumi.Input; /** * Instance ID to which the user belongs */ instanceId: pulumi.Input; /** * SASL user type (password type). Supported types: - Scram: SASL user of SCRAM type - Plain: SASL user of PLAIN type * **Note:** If you create a PLAIN type user, it takes effect after a 1-minute delay. Please wait after creation. */ passwordType?: pulumi.Input; /** * SASL username. Must meet the following requirements: - Consists of letters, numbers, hyphens (-), or underscores (_) - * Length: 3–64 characters - Username cannot be set to admin or monitor, and must be unique within the instance */ userName: pulumi.Input; /** * SASL user password. Must meet the following requirements: - Length: 8–32 characters - Must include at least three of * the following: uppercase letters, lowercase letters, numbers, special characters - Supported special characters: * `!@#$%^&*()_+-=` */ userPassword: pulumi.Input; }