import * as pulumi from "@pulumi/pulumi"; import * as enums from "../../types/enums"; /** * Creates a new User in a given project, location, and cluster. * Auto-naming is currently not supported for this resource. */ 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, 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; readonly clusterId: pulumi.Output; /** * Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions. */ readonly databaseRoles: pulumi.Output; readonly location: pulumi.Output; /** * Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}. */ readonly name: pulumi.Output; /** * Input only. Password for the user. */ readonly password: pulumi.Output; readonly project: pulumi.Output; /** * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ readonly requestId: pulumi.Output; /** * Required. ID of the requesting object. */ readonly userId: pulumi.Output; /** * Optional. Type of this user. */ readonly userType: 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); } /** * The set of arguments for constructing a User resource. */ export interface UserArgs { clusterId: pulumi.Input; /** * Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions. */ databaseRoles?: pulumi.Input[]>; location?: pulumi.Input; /** * Input only. Password for the user. */ password?: pulumi.Input; project?: pulumi.Input; /** * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ requestId?: pulumi.Input; /** * Required. ID of the requesting object. */ userId: pulumi.Input; /** * Optional. Type of this user. */ userType?: pulumi.Input; }