import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages database users. * For more information refer to [the API documentation](https://www.scaleway.com/en/developers/api/managed-database-postgre-mysql/). * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as random from "@pulumi/random"; * import * as scaleway from "@ediri/scaleway"; * * const main = new scaleway.RdbInstance("main", { * nodeType: "DB-DEV-S", * engine: "PostgreSQL-15", * isHaCluster: true, * disableBackup: true, * userName: "my_initial_user", * password: "thiZ_is_v&ry_s3cret", * }); * const dbPassword = new random.RandomPassword("dbPassword", { * length: 16, * special: true, * }); * const dbAdmin = new scaleway.RdbUser("dbAdmin", { * instanceId: main.id, * password: dbPassword.result, * isAdmin: true, * }); * ``` * * ## Import * * Database users can be imported using `{region}/{instance_id}/{user_name}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/rdbUser:RdbUser admin fr-par/11111111-1111-1111-1111-111111111111/admin * ``` */ export declare class RdbUser extends pulumi.CustomResource { /** * Get an existing RdbUser 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?: RdbUserState, opts?: pulumi.CustomResourceOptions): RdbUser; /** * Returns true if the given object is an instance of RdbUser. 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 RdbUser; /** * UUID of the Database Instance. * * > **Important:** Updates to `instanceId` will recreate the database user. */ readonly instanceId: pulumi.Output; /** * Grant admin permissions to the database user. */ readonly isAdmin: pulumi.Output; /** * database user name. * * > **Important:** Updates to `name` will recreate the database user. */ readonly name: pulumi.Output; /** * database user password. */ readonly password: pulumi.Output; /** * The Scaleway region this resource resides in. */ readonly region: pulumi.Output; /** * Create a RdbUser 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: RdbUserArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RdbUser resources. */ export interface RdbUserState { /** * UUID of the Database Instance. * * > **Important:** Updates to `instanceId` will recreate the database user. */ instanceId?: pulumi.Input; /** * Grant admin permissions to the database user. */ isAdmin?: pulumi.Input; /** * database user name. * * > **Important:** Updates to `name` will recreate the database user. */ name?: pulumi.Input; /** * database user password. */ password?: pulumi.Input; /** * The Scaleway region this resource resides in. */ region?: pulumi.Input; } /** * The set of arguments for constructing a RdbUser resource. */ export interface RdbUserArgs { /** * UUID of the Database Instance. * * > **Important:** Updates to `instanceId` will recreate the database user. */ instanceId: pulumi.Input; /** * Grant admin permissions to the database user. */ isAdmin?: pulumi.Input; /** * database user name. * * > **Important:** Updates to `name` will recreate the database user. */ name?: pulumi.Input; /** * database user password. */ password: pulumi.Input; /** * The Scaleway region this resource resides in. */ region?: pulumi.Input; }