// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** * The provider type for the postgresql package. By default, resources use package-wide configuration * settings, however an explicit `Provider` instance may be created and passed during resource * construction to achieve fine-grained programmatic control over provider settings. See the * [documentation](https://pulumi.io/reference/programming-model.html#providers) for more information. */ export class Provider extends pulumi.ProviderResource { /** * Create a Provider 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?: ProviderArgs, opts?: pulumi.ResourceOptions) { let inputs: pulumi.Inputs = {}; { inputs["connectTimeout"] = pulumi.output(args ? args.connectTimeout : undefined).apply(JSON.stringify); inputs["database"] = args ? args.database : undefined; inputs["databaseUsername"] = args ? args.databaseUsername : undefined; inputs["expectedVersion"] = args ? args.expectedVersion : undefined; inputs["host"] = args ? args.host : undefined; inputs["maxConnections"] = pulumi.output(args ? args.maxConnections : undefined).apply(JSON.stringify); inputs["password"] = args ? args.password : undefined; inputs["port"] = pulumi.output(args ? args.port : undefined).apply(JSON.stringify); inputs["sslMode"] = args ? args.sslMode : undefined; inputs["sslmode"] = args ? args.sslmode : undefined; inputs["username"] = args ? args.username : undefined; } super("postgresql", name, inputs, opts); } } /** * The set of arguments for constructing a Provider resource. */ export interface ProviderArgs { /** * Maximum wait for connection, in seconds. Zero or not specified means wait indefinitely. */ readonly connectTimeout?: pulumi.Input; /** * The name of the database to connect to in order to conenct to (defaults to `postgres`). */ readonly database?: pulumi.Input; /** * Database username associated to the connected user (for user name maps) */ readonly databaseUsername?: pulumi.Input; /** * Specify the expected version of PostgreSQL. */ readonly expectedVersion?: pulumi.Input; /** * Name of PostgreSQL server address to connect to */ readonly host?: pulumi.Input; /** * Maximum number of connections to establish to the database. Zero means unlimited. */ readonly maxConnections?: pulumi.Input; /** * Password to be used if the PostgreSQL server demands password authentication */ readonly password?: pulumi.Input; /** * The PostgreSQL port number to connect to at the server host, or socket file name extension for Unix-domain * connections */ readonly port?: pulumi.Input; readonly sslMode?: pulumi.Input; /** * This option determines whether or with what priority a secure SSL TCP/IP connection will be negotiated with the * PostgreSQL server */ readonly sslmode?: pulumi.Input; /** * PostgreSQL user name to connect as */ readonly username?: pulumi.Input; }