import * as pulumi from "@pulumi/pulumi"; import { input as inputs } from "../../types"; /** * Creates a new user in a Cloud SQL instance. */ 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; /** * 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 { /** * This field is deprecated and will be removed from a future version of the API. */ readonly etag?: pulumi.Input; /** * The host name from which the user can connect. For *insert* operations, host defaults to an empty string. For *update* operations, host is specified as part of the request URL. The host name cannot be updated after insertion. */ readonly host?: pulumi.Input; /** * The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for *update* since it is already specified on the URL. */ readonly instance: pulumi.Input; /** * This is always *sql#user*. */ readonly kind?: pulumi.Input; /** * The name of the user in the Cloud SQL instance. Can be omitted for *update* since it is already specified in the URL. */ readonly name?: pulumi.Input; /** * The password for the user. */ readonly password?: pulumi.Input; /** * The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for *update* since it is already specified on the URL. */ readonly project: pulumi.Input; readonly sqlserverUserDetails?: pulumi.Input; /** * The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type. */ readonly type?: pulumi.Input; }