import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates and manages an Aiven for ClickHouse user. If this resource is missing (for example, after a service power off), it's removed from the state and a new create plan is generated. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * const example = new aiven.ClickhouseUser("example", { * project: "my-project", * serviceName: "my-clickhouse", * username: "alice", * passwordWo: "password123", * passwordWoVersion: 1, * }); * ``` * * ## Import * * ```sh * $ pulumi import aiven:index/clickhouseUser:ClickhouseUser example PROJECT/SERVICE_NAME/UUID * ``` */ export declare class ClickhouseUser extends pulumi.CustomResource { /** * Get an existing ClickhouseUser 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?: ClickhouseUserState, opts?: pulumi.CustomResourceOptions): ClickhouseUser; /** * Returns true if the given object is an instance of ClickhouseUser. 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 ClickhouseUser; /** * The password of the service user (auto-generated if not provided). The field conflicts with `passwordWo`. Length must be between `8` and `256`. */ readonly password: pulumi.Output; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * The password of the service user (write-only, not stored in state). The field is required with `passwordWoVersion`. The field conflicts with `password`. Length must be between `8` and `256`. */ readonly passwordWo: pulumi.Output; /** * Version number for `passwordWo`. Increment this to rotate the password. The field is required with `passwordWo`. Minimum value: `1`. */ readonly passwordWoVersion: pulumi.Output; /** * Project name. Changing this property forces recreation of the resource. */ readonly project: pulumi.Output; /** * Required user. */ readonly required: pulumi.Output; /** * Service name. Changing this property forces recreation of the resource. */ readonly serviceName: pulumi.Output; readonly timeouts: pulumi.Output; /** * User name. Maximum length: `64`. Changing this property forces recreation of the resource. */ readonly username: pulumi.Output; /** * User identifier. */ readonly uuid: pulumi.Output; /** * Create a ClickhouseUser 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: ClickhouseUserArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ClickhouseUser resources. */ export interface ClickhouseUserState { /** * The password of the service user (auto-generated if not provided). The field conflicts with `passwordWo`. Length must be between `8` and `256`. */ password?: pulumi.Input; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * The password of the service user (write-only, not stored in state). The field is required with `passwordWoVersion`. The field conflicts with `password`. Length must be between `8` and `256`. */ passwordWo?: pulumi.Input; /** * Version number for `passwordWo`. Increment this to rotate the password. The field is required with `passwordWo`. Minimum value: `1`. */ passwordWoVersion?: pulumi.Input; /** * Project name. Changing this property forces recreation of the resource. */ project?: pulumi.Input; /** * Required user. */ required?: pulumi.Input; /** * Service name. Changing this property forces recreation of the resource. */ serviceName?: pulumi.Input; timeouts?: pulumi.Input; /** * User name. Maximum length: `64`. Changing this property forces recreation of the resource. */ username?: pulumi.Input; /** * User identifier. */ uuid?: pulumi.Input; } /** * The set of arguments for constructing a ClickhouseUser resource. */ export interface ClickhouseUserArgs { /** * The password of the service user (auto-generated if not provided). The field conflicts with `passwordWo`. Length must be between `8` and `256`. */ password?: pulumi.Input; /** * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. * The password of the service user (write-only, not stored in state). The field is required with `passwordWoVersion`. The field conflicts with `password`. Length must be between `8` and `256`. */ passwordWo?: pulumi.Input; /** * Version number for `passwordWo`. Increment this to rotate the password. The field is required with `passwordWo`. Minimum value: `1`. */ passwordWoVersion?: pulumi.Input; /** * Project name. Changing this property forces recreation of the resource. */ project: pulumi.Input; /** * Service name. Changing this property forces recreation of the resource. */ serviceName: pulumi.Input; timeouts?: pulumi.Input; /** * User name. Maximum length: `64`. Changing this property forces recreation of the resource. */ username: pulumi.Input; } //# sourceMappingURL=clickhouseUser.d.ts.map