import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Gets information about an Aiven for PostgreSQL® service user. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * const example = aiven.getPgUser({ * project: "my-project", * serviceName: "my-pg", * username: "testuser", * }); * ``` */ export declare function getPgUser(args: GetPgUserArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getPgUser. */ export interface GetPgUserArgs { /** * Project name. */ project: string; /** * The name of the service. */ serviceName: string; timeouts?: inputs.GetPgUserTimeouts; /** * The name of the service user for this service. */ username: string; } /** * A collection of values returned by getPgUser. */ export interface GetPgUserResult { /** * Access certificate for TLS client authentication. */ readonly accessCert: string; /** * Access key for TLS client authentication. */ readonly accessKey: string; /** * Resource ID composed as: `project/service_name/username`. */ readonly id: string; /** * The password of the service user (auto-generated if not provided). The field conflicts with `passwordWo`. */ readonly password: string; /** * The password hashing algorithm used for this PostgreSQL user, derived from the stored password hash. 'unknown' is reported when the hash is missing or uses an unrecognised format. The possible values are `md5`, `scram-sha-256` and `unknown`. */ readonly passwordEncryptionType: string; /** * Allows replication. For the default avnadmin user this attribute is required and is always `true`. */ readonly pgAllowReplication: boolean; /** * Project name. */ readonly project: string; /** * The name of the service. */ readonly serviceName: string; readonly timeouts?: outputs.GetPgUserTimeouts; /** * The service user account type, either primary or regular. */ readonly type: string; /** * The name of the service user for this service. */ readonly username: string; } /** * Gets information about an Aiven for PostgreSQL® service user. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * const example = aiven.getPgUser({ * project: "my-project", * serviceName: "my-pg", * username: "testuser", * }); * ``` */ export declare function getPgUserOutput(args: GetPgUserOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getPgUser. */ export interface GetPgUserOutputArgs { /** * Project name. */ project: pulumi.Input; /** * The name of the service. */ serviceName: pulumi.Input; timeouts?: pulumi.Input; /** * The name of the service user for this service. */ username: pulumi.Input; } //# sourceMappingURL=getPgUser.d.ts.map