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® database. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * const example = aiven.getPgDatabase({ * project: "my-project", * serviceName: "my-pg", * databaseName: "testdb", * }); * ``` */ export declare function getPgDatabase(args: GetPgDatabaseArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getPgDatabase. */ export interface GetPgDatabaseArgs { /** * Service database name. */ databaseName: string; /** * Project name. */ project: string; /** * Service name. */ serviceName: string; timeouts?: inputs.GetPgDatabaseTimeouts; } /** * A collection of values returned by getPgDatabase. */ export interface GetPgDatabaseResult { /** * Service database name. */ readonly databaseName: string; /** * Resource ID composed as: `project/service_name/database_name`. */ readonly id: string; /** * Default string sort order (`LC_COLLATE`) of the database. The default value is `en_US.UTF-8`. */ readonly lcCollate: string; /** * Default character classification (`LC_CTYPE`) of the database. The default value is `en_US.UTF-8`. */ readonly lcCtype: string; /** * Project name. */ readonly project: string; /** * Service name. */ readonly serviceName: string; /** * Client-side deletion protection that prevents the resource from being deleted by Terraform. **Resource can still be deleted in the Aiven Console**. The default value is `false`. **Deprecated**: Instead, use `preventDestroy` * * @deprecated Instead, use [`preventDestroy`](https://developer.hashicorp.com/terraform/tutorials/state/resource-lifecycle#prevent-resource-deletion) */ readonly terminationProtection: boolean; readonly timeouts?: outputs.GetPgDatabaseTimeouts; } /** * Gets information about an Aiven for PostgreSQL® database. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aiven from "@pulumi/aiven"; * * const example = aiven.getPgDatabase({ * project: "my-project", * serviceName: "my-pg", * databaseName: "testdb", * }); * ``` */ export declare function getPgDatabaseOutput(args: GetPgDatabaseOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getPgDatabase. */ export interface GetPgDatabaseOutputArgs { /** * Service database name. */ databaseName: pulumi.Input; /** * Project name. */ project: pulumi.Input; /** * Service name. */ serviceName: pulumi.Input; timeouts?: pulumi.Input; } //# sourceMappingURL=getPgDatabase.d.ts.map