import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * 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; /** * Dual password status for the user. */ readonly dualPasswordType: pulumi.Output; /** * This field is deprecated and will be removed from a future version of the API. * * @deprecated This field is deprecated and will be removed from a future version of the API. */ readonly etag: pulumi.Output; /** * Optional. The host 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. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional. */ readonly host: pulumi.Output; readonly instance: pulumi.Output; /** * This is always `sql#user`. */ readonly kind: pulumi.Output; /** * The name of the user in the Cloud SQL instance. Can be omitted for `update` because it is already specified in the URL. */ readonly name: pulumi.Output; /** * The password for the user. */ readonly password: pulumi.Output; /** * User level password validation policy. */ readonly passwordPolicy: pulumi.Output; readonly project: pulumi.Output; readonly sqlserverUserDetails: pulumi.Output; /** * 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.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 { /** * Dual password status for the user. */ dualPasswordType?: pulumi.Input; /** * This field is deprecated and will be removed from a future version of the API. * * @deprecated This field is deprecated and will be removed from a future version of the API. */ etag?: pulumi.Input; /** * Optional. The host 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. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional. */ host?: pulumi.Input; /** * The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for *update* because it is already specified on the URL. */ instance: pulumi.Input; /** * This is always `sql#user`. */ kind?: pulumi.Input; /** * The name of the user in the Cloud SQL instance. Can be omitted for `update` because it is already specified in the URL. */ name?: pulumi.Input; /** * The password for the user. */ password?: pulumi.Input; /** * User level password validation policy. */ passwordPolicy?: 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* because it is already specified on the URL. */ project?: pulumi.Input; 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. */ type?: pulumi.Input; }