import * as pulumi from "@pulumi/pulumi"; /** * Sets a PostgreSQL Configuration value on a PostgreSQL Server. * * > **Note:** The `azure.postgresql.Configuration` resource is deprecated and will be removed in v5.0 of the AzureRM Provider. Azure Database for PostgreSQL Single Server and its sub resources have been retired as of 2025-03-28, please use the `azure.postgresql.FlexibleServerConfiguration` resource instead. For more information, see https://techcommunity.microsoft.com/blog/adforpostgresql/retiring-azure-database-for-postgresql-single-server-in-2025/3783783. * * ## Disclaimers * * > **Note:** Since this resource is provisioned by default, the Azure Provider will not check for the presence of an existing resource prior to attempting to create it. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "api-rg-pro", * location: "West Europe", * }); * const exampleServer = new azure.postgresql.Server("example", { * name: "postgresql-server-1", * location: example.location, * resourceGroupName: example.name, * skuName: "B_Gen5_2", * storageMb: 5120, * backupRetentionDays: 7, * geoRedundantBackupEnabled: false, * autoGrowEnabled: true, * administratorLogin: "psqladmin", * administratorLoginPassword: "H@Sh1CoR3!", * version: "9.5", * sslEnforcementEnabled: true, * }); * const exampleConfiguration = new azure.postgresql.Configuration("example", { * name: "backslash_quote", * resourceGroupName: example.name, * serverName: exampleServer.name, * value: "on", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.DBforPostgreSQL` - 2017-12-01 * * ## Import * * PostgreSQL Configurations can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:postgresql/configuration:Configuration backslash_quote /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.DBforPostgreSQL/servers/server1/configurations/backslash_quote * ``` */ export declare class Configuration extends pulumi.CustomResource { /** * Get an existing Configuration 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 state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ConfigurationState, opts?: pulumi.CustomResourceOptions): Configuration; /** * Returns true if the given object is an instance of Configuration. 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 Configuration; /** * Specifies the name of the PostgreSQL Configuration, which needs [to be a valid PostgreSQL configuration name](https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIER). Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of the resource group in which the PostgreSQL Server exists. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created. */ readonly serverName: pulumi.Output; /** * Specifies the value of the PostgreSQL Configuration. See the PostgreSQL documentation for valid values. Changing this forces a new resource to be created. */ readonly value: pulumi.Output; /** * Create a Configuration 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: ConfigurationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Configuration resources. */ export interface ConfigurationState { /** * Specifies the name of the PostgreSQL Configuration, which needs [to be a valid PostgreSQL configuration name](https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIER). Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the resource group in which the PostgreSQL Server exists. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created. */ serverName?: pulumi.Input; /** * Specifies the value of the PostgreSQL Configuration. See the PostgreSQL documentation for valid values. Changing this forces a new resource to be created. */ value?: pulumi.Input; } /** * The set of arguments for constructing a Configuration resource. */ export interface ConfigurationArgs { /** * Specifies the name of the PostgreSQL Configuration, which needs [to be a valid PostgreSQL configuration name](https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIER). Changing this forces a new resource to be created. */ name: pulumi.Input; /** * The name of the resource group in which the PostgreSQL Server exists. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * Specifies the name of the PostgreSQL Server. Changing this forces a new resource to be created. */ serverName: pulumi.Input; /** * Specifies the value of the PostgreSQL Configuration. See the PostgreSQL documentation for valid values. Changing this forces a new resource to be created. */ value: pulumi.Input; }