import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * This resource represents a user in managed database. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as upcloud from "@upcloud/pulumi-upcloud"; * * const example = new upcloud.ManagedDatabasePostgresql("example", { * name: "postgres", * plan: "1x1xCPU-2GB-25GB", * title: "postgres", * zone: "fi-hel1", * }); * const exampleUser = new upcloud.ManagedDatabaseUser("example_user", { * service: example.id, * username: "example_user", * password: "", * }); * ``` */ export declare class ManagedDatabaseUser extends pulumi.CustomResource { /** * Get an existing ManagedDatabaseUser 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?: ManagedDatabaseUserState, opts?: pulumi.CustomResourceOptions): ManagedDatabaseUser; /** * Returns true if the given object is an instance of ManagedDatabaseUser. 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 ManagedDatabaseUser; /** * MySQL only, authentication type. */ readonly authentication: pulumi.Output; /** * OpenSearch access control object. */ readonly opensearchAccessControl: pulumi.Output; /** * Password for the database user. Defaults to a random value */ readonly password: pulumi.Output; /** * PostgreSQL access control object. */ readonly pgAccessControl: pulumi.Output; /** * Service's UUID for which this user belongs to */ readonly service: pulumi.Output; /** * Type of the user. Only normal type users can be created */ readonly type: pulumi.Output; /** * Name of the database user */ readonly username: pulumi.Output; /** * Valkey access control object. */ readonly valkeyAccessControl: pulumi.Output; /** * Create a ManagedDatabaseUser 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: ManagedDatabaseUserArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ManagedDatabaseUser resources. */ export interface ManagedDatabaseUserState { /** * MySQL only, authentication type. */ authentication?: pulumi.Input; /** * OpenSearch access control object. */ opensearchAccessControl?: pulumi.Input; /** * Password for the database user. Defaults to a random value */ password?: pulumi.Input; /** * PostgreSQL access control object. */ pgAccessControl?: pulumi.Input; /** * Service's UUID for which this user belongs to */ service?: pulumi.Input; /** * Type of the user. Only normal type users can be created */ type?: pulumi.Input; /** * Name of the database user */ username?: pulumi.Input; /** * Valkey access control object. */ valkeyAccessControl?: pulumi.Input; } /** * The set of arguments for constructing a ManagedDatabaseUser resource. */ export interface ManagedDatabaseUserArgs { /** * MySQL only, authentication type. */ authentication?: pulumi.Input; /** * OpenSearch access control object. */ opensearchAccessControl?: pulumi.Input; /** * Password for the database user. Defaults to a random value */ password?: pulumi.Input; /** * PostgreSQL access control object. */ pgAccessControl?: pulumi.Input; /** * Service's UUID for which this user belongs to */ service: pulumi.Input; /** * Name of the database user */ username: pulumi.Input; /** * Valkey access control object. */ valkeyAccessControl?: pulumi.Input; }