import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates and manages an Aiven for OpenSearch® service 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.OpensearchUser("example", { * project: "my-project", * serviceName: "my-opensearch", * username: "testuser", * passwordWo: "password123", * passwordWoVersion: 1, * }); * ``` * * ## Import * * ```sh * $ pulumi import aiven:index/opensearchUser:OpensearchUser example PROJECT/SERVICE_NAME/USERNAME * ``` */ export declare class OpensearchUser extends pulumi.CustomResource { /** * Get an existing OpensearchUser 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?: OpensearchUserState, opts?: pulumi.CustomResourceOptions): OpensearchUser; /** * Returns true if the given object is an instance of OpensearchUser. 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 OpensearchUser; /** * 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; /** * The password hashing algorithm used for this PostgreSQL user, derived from the stored password hash. 'unknown' is reported when the hash is missing or uses an unrecognised format. The possible values are `md5`, `scram-sha-256` and `unknown`. */ readonly passwordEncryptionType: 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. Must be >= 1. 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; /** * Service name. Changing this property forces recreation of the resource. */ readonly serviceName: pulumi.Output; readonly timeouts: pulumi.Output; /** * Account type. */ readonly type: pulumi.Output; /** * Account username. Maximum length: `64`. Changing this property forces recreation of the resource. */ readonly username: pulumi.Output; /** * Create a OpensearchUser 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: OpensearchUserArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OpensearchUser resources. */ export interface OpensearchUserState { /** * 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; /** * The password hashing algorithm used for this PostgreSQL user, derived from the stored password hash. 'unknown' is reported when the hash is missing or uses an unrecognised format. The possible values are `md5`, `scram-sha-256` and `unknown`. */ passwordEncryptionType?: 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. Must be >= 1. 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; /** * Account type. */ type?: pulumi.Input; /** * Account username. Maximum length: `64`. Changing this property forces recreation of the resource. */ username?: pulumi.Input; } /** * The set of arguments for constructing a OpensearchUser resource. */ export interface OpensearchUserArgs { /** * 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. Must be >= 1. 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; /** * Account username. Maximum length: `64`. Changing this property forces recreation of the resource. */ username: pulumi.Input; } //# sourceMappingURL=opensearchUser.d.ts.map